index-c8c1847c.js 1.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. (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 yT(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]}const Pn={},Cf=[],nn=()=>{},tY=()=>!1,nY=/^on[^a-z]/,Sb=e=>nY.test(e),bT=e=>e.startsWith("onUpdate:"),Un=Object.assign,_T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rY=Object.prototype.hasOwnProperty,$t=(e,t)=>rY.call(e,t),He=Array.isArray,xf=e=>Hp(e)==="[object Map]",Cb=e=>Hp(e)==="[object Set]",rc=e=>Hp(e)==="[object Date]",it=e=>typeof e=="function",lt=e=>typeof e=="string",Iv=e=>typeof e=="symbol",Mt=e=>e!==null&&typeof e=="object",Dv=e=>Mt(e)&&it(e.then)&&it(e.catch),CB=Object.prototype.toString,Hp=e=>CB.call(e),ny=e=>Hp(e).slice(8,-1),Zy=e=>Hp(e)==="[object Object]",wT=e=>lt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ry=yT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},aY=/-(\w)/g,ti=xb(e=>e.replace(aY,(t,n)=>n?n.toUpperCase():"")),iY=/\B([A-Z])/g,Cl=xb(e=>e.replace(iY,"-$1").toLowerCase()),Gp=xb(e=>e.charAt(0).toUpperCase()+e.slice(1)),ay=xb(e=>e?`on${Gp(e)}`:""),zf=(e,t)=>!Object.is(e,t),iy=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Jy=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},oC=e=>{const t=parseFloat(e);return isNaN(t)?e:t},oY=e=>{const t=lt(e)?Number(e):NaN;return isNaN(t)?e:t};let BE;const sC=()=>BE||(BE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ye(e){if(He(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=lt(r)?cY(r):Ye(r);if(a)for(const i in a)t[i]=a[i]}return t}else{if(lt(e))return e;if(Mt(e))return e}}const sY=/;(?![^(]*\))/g,lY=/:([^]+)/,uY=/\/\*[^]*?\*\//g;function cY(e){const t={};return e.replace(uY,"").split(sY).forEach(n=>{if(n){const r=n.split(lY);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function V(e){let t="";if(lt(e))t=e;else if(He(e))for(let n=0;n<e.length;n++){const r=V(e[n]);r&&(t+=r+" ")}else if(Mt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Mi(e){if(!e)return null;let{class:t,style:n}=e;return t&&!lt(t)&&(e.class=V(t)),n&&(e.style=Ye(n)),e}const fY="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dY=yT(fY);function xB(e){return!!e||e===""}function hY(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Hf(e[r],t[r]);return n}function Hf(e,t){if(e===t)return!0;let n=rc(e),r=rc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Iv(e),r=Iv(t),n||r)return e===t;if(n=He(e),r=He(t),n||r)return n&&r?hY(e,t):!1;if(n=Mt(e),r=Mt(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||!Hf(e[o],t[o]))return!1}}return String(e)===String(t)}function TB(e,t){return e.findIndex(n=>Hf(n,t))}const De=e=>lt(e)?e:e==null?"":He(e)||Mt(e)&&(e.toString===CB||!it(e.toString))?JSON.stringify(e,MB,2):String(e),MB=(e,t)=>t&&t.__v_isRef?MB(e,t.value):xf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:Cb(t)?{[`Set(${t.size})`]:[...t.values()]}:Mt(t)&&!He(t)&&!Zy(t)?String(t):t;let Ca;class kB{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ca,!t&&Ca&&(this.index=(Ca.scopes||(Ca.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ca;try{return Ca=this,t()}finally{Ca=n}}}on(){Ca=this}off(){Ca=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 AB(e){return new kB(e)}function vY(e,t=Ca){t&&t.active&&t.effects.push(e)}function EB(){return Ca}function IB(e){Ca&&Ca.cleanups.push(e)}const ST=e=>{const t=new Set(e);return t.w=0,t.n=0,t},DB=e=>(e.w&ll)>0,PB=e=>(e.n&ll)>0,pY=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ll},gY=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const a=t[r];DB(a)&&!PB(a)?a.delete(e):t[n++]=a,a.w&=~ll,a.n&=~ll}t.length=n}},Qy=new WeakMap;let Nh=0,ll=1;const lC=30;let Ti;const Wu=Symbol(""),uC=Symbol("");class CT{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,vY(this,r)}run(){if(!this.active)return this.fn();let t=Ti,n=Zs;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ti,Ti=this,Zs=!0,ll=1<<++Nh,Nh<=lC?pY(this):VE(this),this.fn()}finally{Nh<=lC&&gY(this),ll=1<<--Nh,Ti=this.parent,Zs=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ti===this?this.deferStop=!0:this.active&&(VE(this),this.onStop&&this.onStop(),this.active=!1)}}function VE(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Zs=!0;const LB=[];function wd(){LB.push(Zs),Zs=!1}function Sd(){const e=LB.pop();Zs=e===void 0?!0:e}function ya(e,t,n){if(Zs&&Ti){let r=Qy.get(e);r||Qy.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=ST()),RB(a)}}function RB(e,t){let n=!1;Nh<=lC?PB(e)||(e.n|=ll,n=!DB(e)):n=!e.has(Ti),n&&(e.add(Ti),Ti.deps.push(e))}function Xo(e,t,n,r,a,i){const o=Qy.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&He(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":He(e)?wT(n)&&s.push(o.get("length")):(s.push(o.get(Wu)),xf(e)&&s.push(o.get(uC)));break;case"delete":He(e)||(s.push(o.get(Wu)),xf(e)&&s.push(o.get(uC)));break;case"set":xf(e)&&s.push(o.get(Wu));break}if(s.length===1)s[0]&&cC(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);cC(ST(l))}}function cC(e,t){const n=He(e)?e:[...e];for(const r of n)r.computed&&FE(r);for(const r of n)r.computed||FE(r)}function FE(e,t){(e!==Ti||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function mY(e,t){var n;return(n=Qy.get(e))==null?void 0:n.get(t)}const yY=yT("__proto__,__v_isRef,__isVue"),OB=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Iv)),bY=xT(),_Y=xT(!1,!0),wY=xT(!0),zE=SY();function SY(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=en(this);for(let i=0,o=this.length;i<o;i++)ya(r,"get",i+"");const a=r[t](...n);return a===-1||a===!1?r[t](...n.map(en)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){wd();const r=en(this)[t].apply(this,n);return Sd(),r}}),e}function CY(e){const t=en(this);return ya(t,"has",e),t.hasOwnProperty(e)}function xT(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?VY:FB:t?VB:BB).get(r))return r;const o=He(r);if(!e){if(o&&$t(zE,a))return Reflect.get(zE,a,i);if(a==="hasOwnProperty")return CY}const s=Reflect.get(r,a,i);return(Iv(a)?OB.has(a):yY(a))||(e||ya(r,"get",a),t)?s:un(s)?o&&wT(a)?s:s.value:Mt(s)?e?Cd(s):jt(s):s}}const xY=NB(),TY=NB(!0);function NB(e=!1){return function(n,r,a,i){let o=n[r];if(Gf(o)&&un(o)&&!un(a))return!1;if(!e&&(!e0(a)&&!Gf(a)&&(o=en(o),a=en(a)),!He(n)&&un(o)&&!un(a)))return o.value=a,!0;const s=He(n)&&wT(r)?Number(r)<n.length:$t(n,r),l=Reflect.set(n,r,a,i);return n===en(i)&&(s?zf(a,o)&&Xo(n,"set",r,a):Xo(n,"add",r,a)),l}}function MY(e,t){const n=$t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Xo(e,"delete",t,void 0),r}function kY(e,t){const n=Reflect.has(e,t);return(!Iv(t)||!OB.has(t))&&ya(e,"has",t),n}function AY(e){return ya(e,"iterate",He(e)?"length":Wu),Reflect.ownKeys(e)}const $B={get:bY,set:xY,deleteProperty:MY,has:kY,ownKeys:AY},EY={get:wY,set(e,t){return!0},deleteProperty(e,t){return!0}},IY=Un({},$B,{get:_Y,set:TY}),TT=e=>e,Tb=e=>Reflect.getPrototypeOf(e);function Eg(e,t,n=!1,r=!1){e=e.__v_raw;const a=en(e),i=en(t);n||(t!==i&&ya(a,"get",t),ya(a,"get",i));const{has:o}=Tb(a),s=r?TT:n?AT:Pv;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 Ig(e,t=!1){const n=this.__v_raw,r=en(n),a=en(e);return t||(e!==a&&ya(r,"has",e),ya(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Dg(e,t=!1){return e=e.__v_raw,!t&&ya(en(e),"iterate",Wu),Reflect.get(e,"size",e)}function HE(e){e=en(e);const t=en(this);return Tb(t).has.call(t,e)||(t.add(e),Xo(t,"add",e,e)),this}function GE(e,t){t=en(t);const n=en(this),{has:r,get:a}=Tb(n);let i=r.call(n,e);i||(e=en(e),i=r.call(n,e));const o=a.call(n,e);return n.set(e,t),i?zf(t,o)&&Xo(n,"set",e,t):Xo(n,"add",e,t),this}function WE(e){const t=en(this),{has:n,get:r}=Tb(t);let a=n.call(t,e);a||(e=en(e),a=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return a&&Xo(t,"delete",e,void 0),i}function KE(){const e=en(this),t=e.size!==0,n=e.clear();return t&&Xo(e,"clear",void 0,void 0),n}function Pg(e,t){return function(r,a){const i=this,o=i.__v_raw,s=en(o),l=t?TT:e?AT:Pv;return!e&&ya(s,"iterate",Wu),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function Lg(e,t,n){return function(...r){const a=this.__v_raw,i=en(a),o=xf(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...r),c=n?TT:t?AT:Pv;return!t&&ya(i,"iterate",l?uC:Wu),{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 gs(e){return function(...t){return e==="delete"?!1:this}}function DY(){const e={get(i){return Eg(this,i)},get size(){return Dg(this)},has:Ig,add:HE,set:GE,delete:WE,clear:KE,forEach:Pg(!1,!1)},t={get(i){return Eg(this,i,!1,!0)},get size(){return Dg(this)},has:Ig,add:HE,set:GE,delete:WE,clear:KE,forEach:Pg(!1,!0)},n={get(i){return Eg(this,i,!0)},get size(){return Dg(this,!0)},has(i){return Ig.call(this,i,!0)},add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear"),forEach:Pg(!0,!1)},r={get(i){return Eg(this,i,!0,!0)},get size(){return Dg(this,!0)},has(i){return Ig.call(this,i,!0)},add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear"),forEach:Pg(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Lg(i,!1,!1),n[i]=Lg(i,!0,!1),t[i]=Lg(i,!1,!0),r[i]=Lg(i,!0,!0)}),[e,n,t,r]}const[PY,LY,RY,OY]=DY();function MT(e,t){const n=t?e?OY:RY:e?LY:PY;return(r,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get($t(n,a)&&a in r?n:r,a,i)}const NY={get:MT(!1,!1)},$Y={get:MT(!1,!0)},BY={get:MT(!0,!1)},BB=new WeakMap,VB=new WeakMap,FB=new WeakMap,VY=new WeakMap;function FY(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zY(e){return e.__v_skip||!Object.isExtensible(e)?0:FY(ny(e))}function jt(e){return Gf(e)?e:kT(e,!1,$B,NY,BB)}function zB(e){return kT(e,!1,IY,$Y,VB)}function Cd(e){return kT(e,!0,EY,BY,FB)}function kT(e,t,n,r,a){if(!Mt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=zY(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function Tf(e){return Gf(e)?Tf(e.__v_raw):!!(e&&e.__v_isReactive)}function Gf(e){return!!(e&&e.__v_isReadonly)}function e0(e){return!!(e&&e.__v_isShallow)}function HB(e){return Tf(e)||Gf(e)}function en(e){const t=e&&e.__v_raw;return t?en(t):e}function Js(e){return Jy(e,"__v_skip",!0),e}const Pv=e=>Mt(e)?jt(e):e,AT=e=>Mt(e)?Cd(e):e;function ET(e){Zs&&Ti&&(e=en(e),RB(e.dep||(e.dep=ST())))}function Mb(e,t){e=en(e);const n=e.dep;n&&cC(n)}function un(e){return!!(e&&e.__v_isRef===!0)}function H(e){return GB(e,!1)}function ln(e){return GB(e,!0)}function GB(e,t){return un(e)?e:new HY(e,t)}class HY{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:en(t),this._value=n?t:Pv(t)}get value(){return ET(this),this._value}set value(t){const n=this.__v_isShallow||e0(t)||Gf(t);t=n?t:en(t),zf(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Pv(t),Mb(this))}}function Zd(e){Mb(e)}function y(e){return un(e)?e.value:e}function lKe(e){return it(e)?e():y(e)}const GY={get:(e,t,n)=>y(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return un(a)&&!un(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function WB(e){return Tf(e)?e:new Proxy(e,GY)}class WY{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ET(this),()=>Mb(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function uKe(e){return new WY(e)}function ir(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=KB(e,n);return t}class KY{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 mY(en(this._object),this._key)}}class UY{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Mn(e,t,n){return un(e)?e:it(e)?new UY(e):Mt(e)&&arguments.length>1?KB(e,t,n):H(e)}function KB(e,t,n){const r=e[t];return un(r)?r:new KY(e,t,n)}class YY{constructor(t,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new CT(t,()=>{this._dirty||(this._dirty=!0,Mb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=en(this);return ET(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function UB(e,t,n=!1){let r,a;const i=it(e);return i?(r=e,a=nn):(r=e.get,a=e.set),new YY(r,a,i||!a,n)}function jY(e,...t){}function Qs(e,t,n,r){let a;try{a=r?e(...r):e()}catch(i){kb(i,t,n)}return a}function Ja(e,t,n,r){if(it(e)){const i=Qs(e,t,n,r);return i&&Dv(i)&&i.catch(o=>{kb(o,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(Ja(e[i],t,n,r));return a}function kb(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){Qs(l,null,10,[e,o,s]);return}}qY(e,n,a,r)}function qY(e,t,n,r=!0){console.error(e)}let Lv=!1,fC=!1;const Pr=[];let ro=0;const Mf=[];let No=null,_u=0;const YB=Promise.resolve();let IT=null;function Ue(e){const t=IT||YB;return e?t.then(this?e.bind(this):e):t}function XY(e){let t=ro+1,n=Pr.length;for(;t<n;){const r=t+n>>>1;Rv(Pr[r])<e?t=r+1:n=r}return t}function DT(e){(!Pr.length||!Pr.includes(e,Lv&&e.allowRecurse?ro+1:ro))&&(e.id==null?Pr.push(e):Pr.splice(XY(e.id),0,e),jB())}function jB(){!Lv&&!fC&&(fC=!0,IT=YB.then(XB))}function ZY(e){const t=Pr.indexOf(e);t>ro&&Pr.splice(t,1)}function JY(e){He(e)?Mf.push(...e):(!No||!No.includes(e,e.allowRecurse?_u+1:_u))&&Mf.push(e),jB()}function UE(e,t=Lv?ro+1:0){for(;t<Pr.length;t++){const n=Pr[t];n&&n.pre&&(Pr.splice(t,1),t--,n())}}function qB(e){if(Mf.length){const t=[...new Set(Mf)];if(Mf.length=0,No){No.push(...t);return}for(No=t,No.sort((n,r)=>Rv(n)-Rv(r)),_u=0;_u<No.length;_u++)No[_u]();No=null,_u=0}}const Rv=e=>e.id==null?1/0:e.id,QY=(e,t)=>{const n=Rv(e)-Rv(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function XB(e){fC=!1,Lv=!0,Pr.sort(QY);const t=nn;try{for(ro=0;ro<Pr.length;ro++){const n=Pr[ro];n&&n.active!==!1&&Qs(n,null,14)}}finally{ro=0,Pr.length=0,qB(),Lv=!1,IT=null,(Pr.length||Mf.length)&&XB()}}function ej(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Pn;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]||Pn;d&&(a=n.map(h=>lt(h)?h.trim():h)),f&&(a=n.map(oC))}let s,l=r[s=ay(t)]||r[s=ay(ti(t))];!l&&i&&(l=r[s=ay(Cl(t))]),l&&Ja(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,Ja(u,e,6,a)}}function ZB(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(!it(e)){const l=u=>{const c=ZB(u,t,!0);c&&(s=!0,Un(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Mt(e)&&r.set(e,null),null):(He(i)?i.forEach(l=>o[l]=null):Un(o,i),Mt(e)&&r.set(e,o),o)}function Ab(e,t){return!e||!Sb(t)?!1:(t=t.slice(2).replace(/Once$/,""),$t(e,t[0].toLowerCase()+t.slice(1))||$t(e,Cl(t))||$t(e,t))}let mr=null,Eb=null;function t0(e){const t=mr;return mr=e,Eb=e&&e.type.__scopeId||null,t}function cKe(e){Eb=e}function fKe(){Eb=null}function re(e,t=mr,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&iI(-1);const i=t0(t);let o;try{o=e(...a)}finally{t0(i),r._d&&iI(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function r_(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:v,inheritAttrs:p}=e;let g,m;const b=t0(e);try{if(n.shapeFlag&4){const w=a||r;g=no(c.call(w,w,f,i,h,d,v)),m=l}else{const w=t;g=no(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),m=t.props?l:tj(l)}}catch(w){tv.length=0,kb(w,e,1),g=X(Ur)}let _=g;if(m&&p!==!1){const w=Object.keys(m),{shapeFlag:C}=_;w.length&&C&7&&(o&&w.some(bT)&&(m=nj(m,o)),_=Jo(_,m))}return n.dirs&&(_=Jo(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_,t0(b),g}const tj=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sb(n))&&((t||(t={}))[n]=e[n]);return t},nj=(e,t)=>{const n={};for(const r in e)(!bT(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function rj(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?YE(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]&&!Ab(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?YE(r,o,u):!0:!!o;return!1}function YE(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]&&!Ab(n,i))return!0}return!1}function aj({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ij=e=>e.__isSuspense;function oj(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):JY(e)}function Ia(e,t){return PT(e,null,t)}const Rg={};function xe(e,t,n){return PT(e,t,n)}function PT(e,t,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=Pn){var s;const l=EB()===((s=fr)==null?void 0:s.scope)?fr:null;let u,c=!1,f=!1;if(un(e)?(u=()=>e.value,c=e0(e)):Tf(e)?(u=()=>e,r=!0):He(e)?(f=!0,c=e.some(w=>Tf(w)||e0(w)),u=()=>e.map(w=>{if(un(w))return w.value;if(Tf(w))return Eu(w);if(it(w))return Qs(w,l,2)})):it(e)?t?u=()=>Qs(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),Ja(e,l,3,[h])}:u=nn,t&&r){const w=u;u=()=>Eu(w())}let d,h=w=>{d=b.onStop=()=>{Qs(w,l,4)}},v;if(Bv)if(h=nn,t?n&&Ja(t,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const w=jj();v=w.__watcherHandles||(w.__watcherHandles=[])}else return nn;let p=f?new Array(e.length).fill(Rg):Rg;const g=()=>{if(b.active)if(t){const w=b.run();(r||c||(f?w.some((C,S)=>zf(C,p[S])):zf(w,p)))&&(d&&d(),Ja(t,l,3,[w,p===Rg?void 0:f&&p[0]===Rg?[]:p,h]),p=w)}else b.run()};g.allowRecurse=!!t;let m;a==="sync"?m=g:a==="post"?m=()=>ca(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),m=()=>DT(g));const b=new CT(u,m);t?n?g():p=b.run():a==="post"?ca(b.run.bind(b),l&&l.suspense):b.run();const _=()=>{b.stop(),l&&l.scope&&_T(l.scope.effects,b)};return v&&v.push(_),_}function sj(e,t,n){const r=this.proxy,a=lt(e)?e.includes(".")?JB(r,e):()=>r[e]:e.bind(r,r);let i;it(t)?i=t:(i=t.handler,n=t);const o=fr;Kf(this);const s=PT(a,i.bind(r),n);return o?Kf(o):Ku(),s}function JB(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 Eu(e,t){if(!Mt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),un(e))Eu(e.value,t);else if(He(e))for(let n=0;n<e.length;n++)Eu(e[n],t);else if(Cb(e)||xf(e))e.forEach(n=>{Eu(n,t)});else if(Zy(e))for(const n in e)Eu(e[n],t);return e}function dt(e,t){const n=mr;if(n===null)return e;const r=Ob(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,l,u=Pn]=t[i];o&&(it(o)&&(o={mounted:o,updated:o}),o.deep&&Eu(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function $l(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&&(wd(),Ja(l,n,8,[e.el,s,e,t]),Sd())}}function QB(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yt(()=>{e.isMounted=!0}),_n(()=>{e.isUnmounting=!0}),e}const Oa=[Function,Array],eV={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oa,onEnter:Oa,onAfterEnter:Oa,onEnterCancelled:Oa,onBeforeLeave:Oa,onLeave:Oa,onAfterLeave:Oa,onLeaveCancelled:Oa,onBeforeAppear:Oa,onAppear:Oa,onAfterAppear:Oa,onAppearCancelled:Oa},lj={name:"BaseTransition",props:eV,setup(e,{slots:t}){const n=gt(),r=QB();let a;return()=>{const i=t.default&&LT(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==Ur){o=p;break}}const s=en(e),{mode:l}=s;if(r.isLeaving)return a_(o);const u=jE(o);if(!u)return a_(o);const c=Ov(u,s,r,n);Nv(u,c);const f=n.subTree,d=f&&jE(f);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();a===void 0?a=p:p!==a&&(a=p,h=!0)}if(d&&d.type!==Ur&&(!wu(u,d)||h)){const p=Ov(d,s,r,n);if(Nv(d,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},a_(o);l==="in-out"&&u.type!==Ur&&(p.delayLeave=(g,m,b)=>{const _=tV(r,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return o}}},uj=lj;function tV(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 Ov(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:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:b}=t,_=String(e.key),w=tV(n,e),C=(T,M)=>{T&&Ja(T,r,9,M)},S=(T,M)=>{const A=M[1];C(T,M),He(T)?T.every(k=>k.length<=1)&&A():T.length<=1&&A()},x={mode:i,persisted:o,beforeEnter(T){let M=s;if(!n.isMounted)if(a)M=p||s;else return;T._leaveCb&&T._leaveCb(!0);const A=w[_];A&&wu(e,A)&&A.el._leaveCb&&A.el._leaveCb(),C(M,[T])},enter(T){let M=l,A=u,k=c;if(!n.isMounted)if(a)M=g||l,A=m||u,k=b||c;else return;let E=!1;const D=T._enterCb=L=>{E||(E=!0,L?C(k,[T]):C(A,[T]),x.delayedLeave&&x.delayedLeave(),T._enterCb=void 0)};M?S(M,[T,D]):D()},leave(T,M){const A=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return M();C(f,[T]);let k=!1;const E=T._leaveCb=D=>{k||(k=!0,M(),D?C(v,[T]):C(h,[T]),T._leaveCb=void 0,w[A]===e&&delete w[A])};w[A]=e,d?S(d,[T,E]):E()},clone(T){return Ov(T,t,n,r)}};return x}function a_(e){if(Ib(e))return e=Jo(e),e.children=null,e}function jE(e){return Ib(e)?e.children?e.children[0]:void 0:e}function Nv(e,t){e.shapeFlag&6&&e.component?Nv(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 LT(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===je?(o.patchFlag&128&&a++,r=r.concat(LT(o.children,t,s))):(t||o.type!==Ur)&&r.push(s!=null?Jo(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function j(e,t){return it(e)?(()=>Un({name:e.name},t,{setup:e}))():e}const Jh=e=>!!e.type.__asyncLoader,Ib=e=>e.type.__isKeepAlive;function cj(e,t){rV(e,"a",t)}function nV(e,t){rV(e,"da",t)}function rV(e,t,n=fr){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Db(t,r,n),n){let a=n.parent;for(;a&&a.parent;)Ib(a.parent.vnode)&&fj(r,t,n,a),a=a.parent}}function fj(e,t,n,r){const a=Db(t,e,r,!0);xl(()=>{_T(r[t],a)},n)}function Db(e,t,n=fr,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;wd(),Kf(n);const s=Ja(t,n,e,o);return Ku(),Sd(),s});return r?a.unshift(i):a.push(i),i}}const ls=e=>(t,n=fr)=>(!Bv||e==="sp")&&Db(e,(...r)=>t(...r),n),Pb=ls("bm"),yt=ls("m"),aV=ls("bu"),us=ls("u"),_n=ls("bum"),xl=ls("um"),dj=ls("sp"),hj=ls("rtg"),vj=ls("rtc");function pj(e,t=fr){Db("ec",e,t)}const RT="components",gj="directives";function ct(e,t){return OT(RT,e,!0,t)||e}const iV=Symbol.for("v-ndc");function Ct(e){return lt(e)?OT(RT,e,!1)||e:e||iV}function $v(e){return OT(gj,e)}function OT(e,t,n=!0,r=!1){const a=mr||fr;if(a){const i=a.type;if(e===RT){const s=Kj(i,!1);if(s&&(s===t||s===ti(t)||s===Gp(ti(t))))return i}const o=qE(a[e]||i[e],t)||qE(a.appContext[e],t);return!o&&r?i:o}}function qE(e,t){return e&&(e[t]||e[ti(t)]||e[Gp(ti(t))])}function Ot(e,t,n,r){let a;const i=n&&n[r];if(He(e)||lt(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(Mt(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 Zo(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(He(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 _e(e,t,n={},r,a){if(mr.isCE||mr.parent&&Jh(mr.parent)&&mr.parent.isCE)return t!=="default"&&(n.name=t),X("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),R();const o=i&&oV(i(n)),s=ce(je,{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 oV(e){return e.some(t=>xn(t)?!(t.type===Ur||t.type===je&&!oV(t.children)):!0)?e:null}function mj(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ay(r)]=e[r];return n}const dC=e=>e?yV(e)?Ob(e)||e.proxy:dC(e.parent):null,Qh=Un(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=>dC(e.parent),$root:e=>dC(e.root),$emit:e=>e.emit,$options:e=>NT(e),$forceUpdate:e=>e.f||(e.f=()=>DT(e.update)),$nextTick:e=>e.n||(e.n=Ue.bind(e.proxy)),$watch:e=>sj.bind(e)}),i_=(e,t)=>e!==Pn&&!e.__isScriptSetup&&$t(e,t),yj={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(i_(r,t))return o[t]=1,r[t];if(a!==Pn&&$t(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&$t(u,t))return o[t]=3,i[t];if(n!==Pn&&$t(n,t))return o[t]=4,n[t];hC&&(o[t]=0)}}const c=Qh[t];let f,d;if(c)return t==="$attrs"&&ya(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Pn&&$t(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,$t(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return i_(a,t)?(a[t]=n,!0):r!==Pn&&$t(r,t)?(r[t]=n,!0):$t(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!==Pn&&$t(e,o)||i_(t,o)||(s=i[0])&&$t(s,o)||$t(r,o)||$t(Qh,o)||$t(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$t(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Tr(){return sV().slots}function mc(){return sV().attrs}function sV(){const e=gt();return e.setupContext||(e.setupContext=_V(e))}function XE(e){return He(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function dKe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}let hC=!0;function bj(e){const t=NT(e),n=e.proxy,r=e.ctx;hC=!1,t.beforeCreate&&ZE(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:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:b,destroyed:_,unmounted:w,render:C,renderTracked:S,renderTriggered:x,errorCaptured:T,serverPrefetch:M,expose:A,inheritAttrs:k,components:E,directives:D,filters:L}=t;if(u&&_j(u,r,null),o)for(const O in o){const N=o[O];it(N)&&(r[O]=N.bind(n))}if(a){const O=a.call(n,n);Mt(O)&&(e.data=jt(O))}if(hC=!0,i)for(const O in i){const N=i[O],I=it(N)?N.bind(n,n):it(N.get)?N.get.bind(n,n):nn,F=!it(N)&&it(N.set)?N.set.bind(n):nn,G=P({get:I,set:F});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>G.value,set:U=>G.value=U})}if(s)for(const O in s)lV(s[O],r,n,O);if(l){const O=it(l)?l.call(n):l;Reflect.ownKeys(O).forEach(N=>{Et(N,O[N])})}c&&ZE(c,e,"c");function $(O,N){He(N)?N.forEach(I=>O(I.bind(n))):N&&O(N.bind(n))}if($(Pb,f),$(yt,d),$(aV,h),$(us,v),$(cj,p),$(nV,g),$(pj,T),$(vj,S),$(hj,x),$(_n,b),$(xl,w),$(dj,M),He(A))if(A.length){const O=e.exposed||(e.exposed={});A.forEach(N=>{Object.defineProperty(O,N,{get:()=>n[N],set:I=>n[N]=I})})}else e.exposed||(e.exposed={});C&&e.render===nn&&(e.render=C),k!=null&&(e.inheritAttrs=k),E&&(e.components=E),D&&(e.directives=D)}function _j(e,t,n=nn){He(e)&&(e=vC(e));for(const r in e){const a=e[r];let i;Mt(a)?"default"in a?i=Ge(a.from||r,a.default,!0):i=Ge(a.from||r):i=Ge(a),un(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function ZE(e,t,n){Ja(He(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function lV(e,t,n,r){const a=r.includes(".")?JB(n,r):()=>n[r];if(lt(e)){const i=t[e];it(i)&&xe(a,i)}else if(it(e))xe(a,e.bind(n));else if(Mt(e))if(He(e))e.forEach(i=>lV(i,t,n,r));else{const i=it(e.handler)?e.handler.bind(n):t[e.handler];it(i)&&xe(a,i,e)}}function NT(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=>n0(l,u,o,!0)),n0(l,t,o)),Mt(t)&&i.set(t,l),l}function n0(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&n0(e,i,n,!0),a&&a.forEach(o=>n0(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=wj[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const wj={data:JE,props:QE,emits:QE,methods:$h,computed:$h,beforeCreate:Fr,created:Fr,beforeMount:Fr,mounted:Fr,beforeUpdate:Fr,updated:Fr,beforeDestroy:Fr,beforeUnmount:Fr,destroyed:Fr,unmounted:Fr,activated:Fr,deactivated:Fr,errorCaptured:Fr,serverPrefetch:Fr,components:$h,directives:$h,watch:Cj,provide:JE,inject:Sj};function JE(e,t){return t?e?function(){return Un(it(e)?e.call(this,this):e,it(t)?t.call(this,this):t)}:t:e}function Sj(e,t){return $h(vC(e),vC(t))}function vC(e){if(He(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fr(e,t){return e?[...new Set([].concat(e,t))]:t}function $h(e,t){return e?Un(Object.create(null),e,t):t}function QE(e,t){return e?He(e)&&He(t)?[...new Set([...e,...t])]:Un(Object.create(null),XE(e),XE(t??{})):t}function Cj(e,t){if(!e)return t;if(!t)return e;const n=Un(Object.create(null),e);for(const r in t)n[r]=Fr(e[r],t[r]);return n}function uV(){return{app:null,config:{isNativeTag:tY,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 xj=0;function Tj(e,t){return function(r,a=null){it(r)||(r=Un({},r)),a!=null&&!Mt(a)&&(a=null);const i=uV(),o=new Set;let s=!1;const l=i.app={_uid:xj++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:qj,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&it(u.install)?(o.add(u),u.install(l,...c)):it(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=X(r,a);return d.appContext=i,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,Ob(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},runWithContext(u){r0=l;try{return u()}finally{r0=null}}};return l}}let r0=null;function Et(e,t){if(fr){let n=fr.provides;const r=fr.parent&&fr.parent.provides;r===n&&(n=fr.provides=Object.create(r)),n[e]=t}}function Ge(e,t,n=!1){const r=fr||mr;if(r||r0){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:r0._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&it(t)?t.call(r&&r.proxy):t}}function Mj(e,t,n,r=!1){const a={},i={};Jy(i,Lb,1),e.propsDefaults=Object.create(null),cV(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:zB(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function kj(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=en(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(Ab(e.emitsOptions,d))continue;const h=t[d];if(l)if($t(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const v=ti(d);a[v]=pC(l,s,v,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{cV(e,t,a,i)&&(u=!0);let c;for(const f in s)(!t||!$t(t,f)&&((c=Cl(f))===f||!$t(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=pC(l,s,f,void 0,e,!0)):delete a[f]);if(i!==s)for(const f in i)(!t||!$t(t,f))&&(delete i[f],u=!0)}u&&Xo(e,"set","$attrs")}function cV(e,t,n,r){const[a,i]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(ry(l))continue;const u=t[l];let c;a&&$t(a,c=ti(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:Ab(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=en(n),u=s||Pn;for(let c=0;c<i.length;c++){const f=i[c];n[f]=pC(a,l,f,u[f],e,!$t(u,f))}}return o}function pC(e,t,n,r,a,i){const o=e[n];if(o!=null){const s=$t(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&it(l)){const{propsDefaults:u}=a;n in u?r=u[n]:(Kf(a),r=u[n]=l.call(null,t),Ku())}else r=l}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===Cl(n))&&(r=!0))}return r}function fV(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(!it(e)){const c=f=>{l=!0;const[d,h]=fV(f,t,!0);Un(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 Mt(e)&&r.set(e,Cf),Cf;if(He(i))for(let c=0;c<i.length;c++){const f=ti(i[c]);eI(f)&&(o[f]=Pn)}else if(i)for(const c in i){const f=ti(c);if(eI(f)){const d=i[c],h=o[f]=He(d)||it(d)?{type:d}:Un({},d);if(h){const v=rI(Boolean,h.type),p=rI(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||$t(h,"default"))&&s.push(f)}}}const u=[o,s];return Mt(e)&&r.set(e,u),u}function eI(e){return e[0]!=="$"}function tI(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function nI(e,t){return tI(e)===tI(t)}function rI(e,t){return He(t)?t.findIndex(n=>nI(n,e)):it(t)&&nI(t,e)?0:-1}const dV=e=>e[0]==="_"||e==="$stable",$T=e=>He(e)?e.map(no):[no(e)],Aj=(e,t,n)=>{if(t._n)return t;const r=re((...a)=>$T(t(...a)),n);return r._c=!1,r},hV=(e,t,n)=>{const r=e._ctx;for(const a in e){if(dV(a))continue;const i=e[a];if(it(i))t[a]=Aj(a,i,r);else if(i!=null){const o=$T(i);t[a]=()=>o}}},vV=(e,t)=>{const n=$T(t);e.slots.default=()=>n},Ej=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=en(t),Jy(t,"_",n)):hV(t,e.slots={})}else e.slots={},t&&vV(e,t);Jy(e.slots,Lb,1)},Ij=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=Pn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Un(a,t),!n&&s===1&&delete a._):(i=!t.$stable,hV(t,a)),o=t}else t&&(vV(e,t),o={default:1});if(i)for(const s in a)!dV(s)&&!(s in o)&&delete a[s]};function gC(e,t,n,r,a=!1){if(He(e)){e.forEach((d,h)=>gC(d,t&&(He(t)?t[h]:t),n,r,a));return}if(Jh(r)&&!a)return;const i=r.shapeFlag&4?Ob(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Pn?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(lt(u)?(c[u]=null,$t(f,u)&&(f[u]=null)):un(u)&&(u.value=null)),it(l))Qs(l,s,12,[o,c]);else{const d=lt(l),h=un(l);if(d||h){const v=()=>{if(e.f){const p=d?$t(f,l)?f[l]:c[l]:l.value;a?He(p)&&_T(p,i):He(p)?p.includes(i)||p.push(i):d?(c[l]=[i],$t(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,$t(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,ca(v,n)):v()}}}const ca=oj;function Dj(e){return Pj(e)}function Pj(e,t){const n=sC();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=nn,insertStaticContent:v}=e,p=(W,Z,oe,pe=null,Se=null,me=null,Ee=!1,Ce=null,we=!!Z.dynamicChildren)=>{if(W===Z)return;W&&!wu(W,Z)&&(pe=te(W),U(W,Se,me,!0),W=null),Z.patchFlag===-2&&(we=!1,Z.dynamicChildren=null);const{type:Te,ref:Ne,shapeFlag:Be}=Z;switch(Te){case xd:g(W,Z,oe,pe);break;case Ur:m(W,Z,oe,pe);break;case o_:W==null&&b(Z,oe,pe,Ee);break;case je:E(W,Z,oe,pe,Se,me,Ee,Ce,we);break;default:Be&1?C(W,Z,oe,pe,Se,me,Ee,Ce,we):Be&6?D(W,Z,oe,pe,Se,me,Ee,Ce,we):(Be&64||Be&128)&&Te.process(W,Z,oe,pe,Se,me,Ee,Ce,we,de)}Ne!=null&&Se&&gC(Ne,W&&W.ref,me,Z||W,!Z)},g=(W,Z,oe,pe)=>{if(W==null)r(Z.el=s(Z.children),oe,pe);else{const Se=Z.el=W.el;Z.children!==W.children&&u(Se,Z.children)}},m=(W,Z,oe,pe)=>{W==null?r(Z.el=l(Z.children||""),oe,pe):Z.el=W.el},b=(W,Z,oe,pe)=>{[W.el,W.anchor]=v(W.children,Z,oe,pe,W.el,W.anchor)},_=({el:W,anchor:Z},oe,pe)=>{let Se;for(;W&&W!==Z;)Se=d(W),r(W,oe,pe),W=Se;r(Z,oe,pe)},w=({el:W,anchor:Z})=>{let oe;for(;W&&W!==Z;)oe=d(W),a(W),W=oe;a(Z)},C=(W,Z,oe,pe,Se,me,Ee,Ce,we)=>{Ee=Ee||Z.type==="svg",W==null?S(Z,oe,pe,Se,me,Ee,Ce,we):M(W,Z,Se,me,Ee,Ce,we)},S=(W,Z,oe,pe,Se,me,Ee,Ce)=>{let we,Te;const{type:Ne,props:Be,shapeFlag:We,transition:Ae,dirs:ze}=W;if(we=W.el=o(W.type,me,Be&&Be.is,Be),We&8?c(we,W.children):We&16&&T(W.children,we,null,pe,Se,me&&Ne!=="foreignObject",Ee,Ce),ze&&$l(W,null,pe,"created"),x(we,W,W.scopeId,Ee,pe),Be){for(const vt in Be)vt!=="value"&&!ry(vt)&&i(we,vt,null,Be[vt],me,W.children,pe,Se,ee);"value"in Be&&i(we,"value",null,Be.value),(Te=Be.onVnodeBeforeMount)&&Yi(Te,pe,W)}ze&&$l(W,null,pe,"beforeMount");const rt=(!Se||Se&&!Se.pendingBranch)&&Ae&&!Ae.persisted;rt&&Ae.beforeEnter(we),r(we,Z,oe),((Te=Be&&Be.onVnodeMounted)||rt||ze)&&ca(()=>{Te&&Yi(Te,pe,W),rt&&Ae.enter(we),ze&&$l(W,null,pe,"mounted")},Se)},x=(W,Z,oe,pe,Se)=>{if(oe&&h(W,oe),pe)for(let me=0;me<pe.length;me++)h(W,pe[me]);if(Se){let me=Se.subTree;if(Z===me){const Ee=Se.vnode;x(W,Ee,Ee.scopeId,Ee.slotScopeIds,Se.parent)}}},T=(W,Z,oe,pe,Se,me,Ee,Ce,we=0)=>{for(let Te=we;Te<W.length;Te++){const Ne=W[Te]=Ce?Ns(W[Te]):no(W[Te]);p(null,Ne,Z,oe,pe,Se,me,Ee,Ce)}},M=(W,Z,oe,pe,Se,me,Ee)=>{const Ce=Z.el=W.el;let{patchFlag:we,dynamicChildren:Te,dirs:Ne}=Z;we|=W.patchFlag&16;const Be=W.props||Pn,We=Z.props||Pn;let Ae;oe&&Bl(oe,!1),(Ae=We.onVnodeBeforeUpdate)&&Yi(Ae,oe,Z,W),Ne&&$l(Z,W,oe,"beforeUpdate"),oe&&Bl(oe,!0);const ze=Se&&Z.type!=="foreignObject";if(Te?A(W.dynamicChildren,Te,Ce,oe,pe,ze,me):Ee||N(W,Z,Ce,null,oe,pe,ze,me,!1),we>0){if(we&16)k(Ce,Z,Be,We,oe,pe,Se);else if(we&2&&Be.class!==We.class&&i(Ce,"class",null,We.class,Se),we&4&&i(Ce,"style",Be.style,We.style,Se),we&8){const rt=Z.dynamicProps;for(let vt=0;vt<rt.length;vt++){const kt=rt[vt],Qe=Be[kt],ye=We[kt];(ye!==Qe||kt==="value")&&i(Ce,kt,Qe,ye,Se,W.children,oe,pe,ee)}}we&1&&W.children!==Z.children&&c(Ce,Z.children)}else!Ee&&Te==null&&k(Ce,Z,Be,We,oe,pe,Se);((Ae=We.onVnodeUpdated)||Ne)&&ca(()=>{Ae&&Yi(Ae,oe,Z,W),Ne&&$l(Z,W,oe,"updated")},pe)},A=(W,Z,oe,pe,Se,me,Ee)=>{for(let Ce=0;Ce<Z.length;Ce++){const we=W[Ce],Te=Z[Ce],Ne=we.el&&(we.type===je||!wu(we,Te)||we.shapeFlag&70)?f(we.el):oe;p(we,Te,Ne,null,pe,Se,me,Ee,!0)}},k=(W,Z,oe,pe,Se,me,Ee)=>{if(oe!==pe){if(oe!==Pn)for(const Ce in oe)!ry(Ce)&&!(Ce in pe)&&i(W,Ce,oe[Ce],null,Ee,Z.children,Se,me,ee);for(const Ce in pe){if(ry(Ce))continue;const we=pe[Ce],Te=oe[Ce];we!==Te&&Ce!=="value"&&i(W,Ce,Te,we,Ee,Z.children,Se,me,ee)}"value"in pe&&i(W,"value",oe.value,pe.value)}},E=(W,Z,oe,pe,Se,me,Ee,Ce,we)=>{const Te=Z.el=W?W.el:s(""),Ne=Z.anchor=W?W.anchor:s("");let{patchFlag:Be,dynamicChildren:We,slotScopeIds:Ae}=Z;Ae&&(Ce=Ce?Ce.concat(Ae):Ae),W==null?(r(Te,oe,pe),r(Ne,oe,pe),T(Z.children,oe,Ne,Se,me,Ee,Ce,we)):Be>0&&Be&64&&We&&W.dynamicChildren?(A(W.dynamicChildren,We,oe,Se,me,Ee,Ce),(Z.key!=null||Se&&Z===Se.subTree)&&BT(W,Z,!0)):N(W,Z,oe,Ne,Se,me,Ee,Ce,we)},D=(W,Z,oe,pe,Se,me,Ee,Ce,we)=>{Z.slotScopeIds=Ce,W==null?Z.shapeFlag&512?Se.ctx.activate(Z,oe,pe,Ee,we):L(Z,oe,pe,Se,me,Ee,we):B(W,Z,we)},L=(W,Z,oe,pe,Se,me,Ee)=>{const Ce=W.component=zj(W,pe,Se);if(Ib(W)&&(Ce.ctx.renderer=de),Hj(Ce),Ce.asyncDep){if(Se&&Se.registerDep(Ce,$),!W.el){const we=Ce.subTree=X(Ur);m(null,we,Z,oe)}return}$(Ce,W,Z,oe,Se,me,Ee)},B=(W,Z,oe)=>{const pe=Z.component=W.component;if(rj(W,Z,oe))if(pe.asyncDep&&!pe.asyncResolved){O(pe,Z,oe);return}else pe.next=Z,ZY(pe.update),pe.update();else Z.el=W.el,pe.vnode=Z},$=(W,Z,oe,pe,Se,me,Ee)=>{const Ce=()=>{if(W.isMounted){let{next:Ne,bu:Be,u:We,parent:Ae,vnode:ze}=W,rt=Ne,vt;Bl(W,!1),Ne?(Ne.el=ze.el,O(W,Ne,Ee)):Ne=ze,Be&&iy(Be),(vt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Yi(vt,Ae,Ne,ze),Bl(W,!0);const kt=r_(W),Qe=W.subTree;W.subTree=kt,p(Qe,kt,f(Qe.el),te(Qe),W,Se,me),Ne.el=kt.el,rt===null&&aj(W,kt.el),We&&ca(We,Se),(vt=Ne.props&&Ne.props.onVnodeUpdated)&&ca(()=>Yi(vt,Ae,Ne,ze),Se)}else{let Ne;const{el:Be,props:We}=Z,{bm:Ae,m:ze,parent:rt}=W,vt=Jh(Z);if(Bl(W,!1),Ae&&iy(Ae),!vt&&(Ne=We&&We.onVnodeBeforeMount)&&Yi(Ne,rt,Z),Bl(W,!0),Be&&ie){const kt=()=>{W.subTree=r_(W),ie(Be,W.subTree,W,Se,null)};vt?Z.type.__asyncLoader().then(()=>!W.isUnmounted&&kt()):kt()}else{const kt=W.subTree=r_(W);p(null,kt,oe,pe,W,Se,me),Z.el=kt.el}if(ze&&ca(ze,Se),!vt&&(Ne=We&&We.onVnodeMounted)){const kt=Z;ca(()=>Yi(Ne,rt,kt),Se)}(Z.shapeFlag&256||rt&&Jh(rt.vnode)&&rt.vnode.shapeFlag&256)&&W.a&&ca(W.a,Se),W.isMounted=!0,Z=oe=pe=null}},we=W.effect=new CT(Ce,()=>DT(Te),W.scope),Te=W.update=()=>we.run();Te.id=W.uid,Bl(W,!0),Te()},O=(W,Z,oe)=>{Z.component=W;const pe=W.vnode.props;W.vnode=Z,W.next=null,kj(W,Z.props,pe,oe),Ij(W,Z.children,oe),wd(),UE(),Sd()},N=(W,Z,oe,pe,Se,me,Ee,Ce,we=!1)=>{const Te=W&&W.children,Ne=W?W.shapeFlag:0,Be=Z.children,{patchFlag:We,shapeFlag:Ae}=Z;if(We>0){if(We&128){F(Te,Be,oe,pe,Se,me,Ee,Ce,we);return}else if(We&256){I(Te,Be,oe,pe,Se,me,Ee,Ce,we);return}}Ae&8?(Ne&16&&ee(Te,Se,me),Be!==Te&&c(oe,Be)):Ne&16?Ae&16?F(Te,Be,oe,pe,Se,me,Ee,Ce,we):ee(Te,Se,me,!0):(Ne&8&&c(oe,""),Ae&16&&T(Be,oe,pe,Se,me,Ee,Ce,we))},I=(W,Z,oe,pe,Se,me,Ee,Ce,we)=>{W=W||Cf,Z=Z||Cf;const Te=W.length,Ne=Z.length,Be=Math.min(Te,Ne);let We;for(We=0;We<Be;We++){const Ae=Z[We]=we?Ns(Z[We]):no(Z[We]);p(W[We],Ae,oe,null,Se,me,Ee,Ce,we)}Te>Ne?ee(W,Se,me,!0,!1,Be):T(Z,oe,pe,Se,me,Ee,Ce,we,Be)},F=(W,Z,oe,pe,Se,me,Ee,Ce,we)=>{let Te=0;const Ne=Z.length;let Be=W.length-1,We=Ne-1;for(;Te<=Be&&Te<=We;){const Ae=W[Te],ze=Z[Te]=we?Ns(Z[Te]):no(Z[Te]);if(wu(Ae,ze))p(Ae,ze,oe,null,Se,me,Ee,Ce,we);else break;Te++}for(;Te<=Be&&Te<=We;){const Ae=W[Be],ze=Z[We]=we?Ns(Z[We]):no(Z[We]);if(wu(Ae,ze))p(Ae,ze,oe,null,Se,me,Ee,Ce,we);else break;Be--,We--}if(Te>Be){if(Te<=We){const Ae=We+1,ze=Ae<Ne?Z[Ae].el:pe;for(;Te<=We;)p(null,Z[Te]=we?Ns(Z[Te]):no(Z[Te]),oe,ze,Se,me,Ee,Ce,we),Te++}}else if(Te>We)for(;Te<=Be;)U(W[Te],Se,me,!0),Te++;else{const Ae=Te,ze=Te,rt=new Map;for(Te=ze;Te<=We;Te++){const ne=Z[Te]=we?Ns(Z[Te]):no(Z[Te]);ne.key!=null&&rt.set(ne.key,Te)}let vt,kt=0;const Qe=We-ze+1;let ye=!1,fe=0;const le=new Array(Qe);for(Te=0;Te<Qe;Te++)le[Te]=0;for(Te=Ae;Te<=Be;Te++){const ne=W[Te];if(kt>=Qe){U(ne,Se,me,!0);continue}let Ve;if(ne.key!=null)Ve=rt.get(ne.key);else for(vt=ze;vt<=We;vt++)if(le[vt-ze]===0&&wu(ne,Z[vt])){Ve=vt;break}Ve===void 0?U(ne,Se,me,!0):(le[Ve-ze]=Te+1,Ve>=fe?fe=Ve:ye=!0,p(ne,Z[Ve],oe,null,Se,me,Ee,Ce,we),kt++)}const ke=ye?Lj(le):Cf;for(vt=ke.length-1,Te=Qe-1;Te>=0;Te--){const ne=ze+Te,Ve=Z[ne],st=ne+1<Ne?Z[ne+1].el:pe;le[Te]===0?p(null,Ve,oe,st,Se,me,Ee,Ce,we):ye&&(vt<0||Te!==ke[vt]?G(Ve,oe,st,2):vt--)}}},G=(W,Z,oe,pe,Se=null)=>{const{el:me,type:Ee,transition:Ce,children:we,shapeFlag:Te}=W;if(Te&6){G(W.component.subTree,Z,oe,pe);return}if(Te&128){W.suspense.move(Z,oe,pe);return}if(Te&64){Ee.move(W,Z,oe,de);return}if(Ee===je){r(me,Z,oe);for(let Be=0;Be<we.length;Be++)G(we[Be],Z,oe,pe);r(W.anchor,Z,oe);return}if(Ee===o_){_(W,Z,oe);return}if(pe!==2&&Te&1&&Ce)if(pe===0)Ce.beforeEnter(me),r(me,Z,oe),ca(()=>Ce.enter(me),Se);else{const{leave:Be,delayLeave:We,afterLeave:Ae}=Ce,ze=()=>r(me,Z,oe),rt=()=>{Be(me,()=>{ze(),Ae&&Ae()})};We?We(me,ze,rt):rt()}else r(me,Z,oe)},U=(W,Z,oe,pe=!1,Se=!1)=>{const{type:me,props:Ee,ref:Ce,children:we,dynamicChildren:Te,shapeFlag:Ne,patchFlag:Be,dirs:We}=W;if(Ce!=null&&gC(Ce,null,oe,W,!0),Ne&256){Z.ctx.deactivate(W);return}const Ae=Ne&1&&We,ze=!Jh(W);let rt;if(ze&&(rt=Ee&&Ee.onVnodeBeforeUnmount)&&Yi(rt,Z,W),Ne&6)Q(W.component,oe,pe);else{if(Ne&128){W.suspense.unmount(oe,pe);return}Ae&&$l(W,null,Z,"beforeUnmount"),Ne&64?W.type.remove(W,Z,oe,Se,de,pe):Te&&(me!==je||Be>0&&Be&64)?ee(Te,Z,oe,!1,!0):(me===je&&Be&384||!Se&&Ne&16)&&ee(we,Z,oe),pe&&J(W)}(ze&&(rt=Ee&&Ee.onVnodeUnmounted)||Ae)&&ca(()=>{rt&&Yi(rt,Z,W),Ae&&$l(W,null,Z,"unmounted")},oe)},J=W=>{const{type:Z,el:oe,anchor:pe,transition:Se}=W;if(Z===je){ae(oe,pe);return}if(Z===o_){w(W);return}const me=()=>{a(oe),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(W.shapeFlag&1&&Se&&!Se.persisted){const{leave:Ee,delayLeave:Ce}=Se,we=()=>Ee(oe,me);Ce?Ce(W.el,me,we):we()}else me()},ae=(W,Z)=>{let oe;for(;W!==Z;)oe=d(W),a(W),W=oe;a(Z)},Q=(W,Z,oe)=>{const{bum:pe,scope:Se,update:me,subTree:Ee,um:Ce}=W;pe&&iy(pe),Se.stop(),me&&(me.active=!1,U(Ee,W,Z,oe)),Ce&&ca(Ce,Z),ca(()=>{W.isUnmounted=!0},Z),Z&&Z.pendingBranch&&!Z.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===Z.pendingId&&(Z.deps--,Z.deps===0&&Z.resolve())},ee=(W,Z,oe,pe=!1,Se=!1,me=0)=>{for(let Ee=me;Ee<W.length;Ee++)U(W[Ee],Z,oe,pe,Se)},te=W=>W.shapeFlag&6?te(W.component.subTree):W.shapeFlag&128?W.suspense.next():d(W.anchor||W.el),q=(W,Z,oe)=>{W==null?Z._vnode&&U(Z._vnode,null,null,!0):p(Z._vnode||null,W,Z,null,null,null,oe),UE(),qB(),Z._vnode=W},de={p,um:U,m:G,r:J,mt:L,mc:T,pc:N,pbc:A,n:te,o:e};let ve,ie;return t&&([ve,ie]=t(de)),{render:q,hydrate:ve,createApp:Tj(q,ve)}}function Bl({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function BT(e,t,n=!1){const r=e.children,a=t.children;if(He(r)&&He(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]=Ns(a[i]),s.el=o.el),n||BT(o,s)),s.type===xd&&(s.el=o.el)}}function Lj(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 Rj=e=>e.__isTeleport,ev=e=>e&&(e.disabled||e.disabled===""),aI=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mC=(e,t)=>{const n=e&&e.to;return lt(n)?t?t(n):null:n},Oj={__isTeleport:!0,process(e,t,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=ev(t.props);let{shapeFlag:b,children:_,dynamicChildren:w}=t;if(e==null){const C=t.el=p(""),S=t.anchor=p("");h(C,n,r),h(S,n,r);const x=t.target=mC(t.props,v),T=t.targetAnchor=p("");x&&(h(T,x),o=o||aI(x));const M=(A,k)=>{b&16&&c(_,A,k,a,i,o,s,l)};m?M(n,S):x&&M(x,T)}else{t.el=e.el;const C=t.anchor=e.anchor,S=t.target=e.target,x=t.targetAnchor=e.targetAnchor,T=ev(e.props),M=T?n:S,A=T?C:x;if(o=o||aI(S),w?(d(e.dynamicChildren,w,M,a,i,o,s),BT(e,t,!0)):l||f(e,t,M,A,a,i,o,s,!1),m)T||Og(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=mC(t.props,v);k&&Og(t,k,null,u,0)}else T&&Og(t,S,x,u,1)}pV(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||!ev(d))&&(i(u),s&16))for(let h=0;h<l.length;h++){const v=l[h];a(v,t,n,!0,!!v.dynamicChildren)}},move:Og,hydrate:Nj};function Og(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||ev(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],t,n,2);f&&r(s,t,n)}function Nj(e,t,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=mC(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(ev(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)}pV(t)}return t.anchor&&o(t.anchor)}const Wp=Oj;function pV(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 je=Symbol.for("v-fgt"),xd=Symbol.for("v-txt"),Ur=Symbol.for("v-cmt"),o_=Symbol.for("v-stc"),tv=[];let Ma=null;function R(e=!1){tv.push(Ma=e?null:[])}function $j(){tv.pop(),Ma=tv[tv.length-1]||null}let Wf=1;function iI(e){Wf+=e}function gV(e){return e.dynamicChildren=Wf>0?Ma||Cf:null,$j(),Wf>0&&Ma&&Ma.push(e),e}function K(e,t,n,r,a,i){return gV(Y(e,t,n,r,a,i,!0))}function ce(e,t,n,r,a){return gV(X(e,t,n,r,a,!0))}function xn(e){return e?e.__v_isVNode===!0:!1}function wu(e,t){return e.type===t.type&&e.key===t.key}const Lb="__vInternal",mV=({key:e})=>e??null,oy=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?lt(e)||un(e)||it(e)?{i:mr,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,r=0,a=null,i=e===je?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mV(t),ref:t&&oy(t),scopeId:Eb,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:mr};return s?(VT(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=lt(n)?8:16),Wf>0&&!o&&Ma&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ma.push(l),l}const X=Bj;function Bj(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===iV)&&(e=Ur),xn(e)){const s=Jo(e,t,!0);return n&&VT(s,n),Wf>0&&!i&&Ma&&(s.shapeFlag&6?Ma[Ma.indexOf(e)]=s:Ma.push(s)),s.patchFlag|=-2,s}if(Uj(e)&&(e=e.__vccOpts),t){t=Rb(t);let{class:s,style:l}=t;s&&!lt(s)&&(t.class=V(s)),Mt(l)&&(HB(l)&&!He(l)&&(l=Un({},l)),t.style=Ye(l))}const o=lt(e)?1:ij(e)?128:Rj(e)?64:Mt(e)?4:it(e)?2:0;return Y(e,t,n,r,a,o,i,!0)}function Rb(e){return e?HB(e)||Lb in e?Un({},e):e:null}function Jo(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=e,s=t?St(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&mV(s),ref:t&&t.ref?n&&a?He(a)?a.concat(oy(t)):[a,oy(t)]:oy(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!==je?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&&Jo(e.ssContent),ssFallback:e.ssFallback&&Jo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ut(e=" ",t=0){return X(xd,null,e,t)}function se(e="",t=!1){return t?(R(),ce(Ur,null,e)):X(Ur,null,e)}function no(e){return e==null||typeof e=="boolean"?X(Ur):He(e)?X(je,null,e.slice()):typeof e=="object"?Ns(e):X(xd,null,String(e))}function Ns(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jo(e)}function VT(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(He(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),VT(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(Lb in t)?t._ctx=mr:a===3&&mr&&(mr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else it(t)?(t={default:t,_ctx:mr},n=32):(t=String(t),r&64?(n=16,t=[Ut(t)]):n=8);e.children=t,e.shapeFlag|=n}function St(...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=V([t.class,r.class]));else if(a==="style")t.style=Ye([t.style,r.style]);else if(Sb(a)){const i=t[a],o=r[a];o&&i!==o&&!(He(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=r[a])}return t}function Yi(e,t,n,r=null){Ja(e,t,7,[n,r])}const Vj=uV();let Fj=0;function zj(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||Vj,i={uid:Fj++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new kB(!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:fV(r,a),emitsOptions:ZB(r,a),emit:null,emitted:null,propsDefaults:Pn,inheritAttrs:r.inheritAttrs,ctx:Pn,data:Pn,props:Pn,attrs:Pn,slots:Pn,refs:Pn,setupState:Pn,setupContext:null,attrsProxy:null,slotsProxy: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=ej.bind(null,i),e.ce&&e.ce(i),i}let fr=null;const gt=()=>fr||mr;let FT,Dc,oI="__VUE_INSTANCE_SETTERS__";(Dc=sC()[oI])||(Dc=sC()[oI]=[]),Dc.push(e=>fr=e),FT=e=>{Dc.length>1?Dc.forEach(t=>t(e)):Dc[0](e)};const Kf=e=>{FT(e),e.scope.on()},Ku=()=>{fr&&fr.scope.off(),FT(null)};function yV(e){return e.vnode.shapeFlag&4}let Bv=!1;function Hj(e,t=!1){Bv=t;const{props:n,children:r}=e.vnode,a=yV(e);Mj(e,n,a,t),Ej(e,r);const i=a?Gj(e,t):void 0;return Bv=!1,i}function Gj(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Js(new Proxy(e.ctx,yj));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?_V(e):null;Kf(e),wd();const i=Qs(r,e,0,[e.props,a]);if(Sd(),Ku(),Dv(i)){if(i.then(Ku,Ku),t)return i.then(o=>{sI(e,o,t)}).catch(o=>{kb(o,e,0)});e.asyncDep=i}else sI(e,i,t)}else bV(e,t)}function sI(e,t,n){it(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Mt(t)&&(e.setupState=WB(t)),bV(e,n)}let lI;function bV(e,t,n){const r=e.type;if(!e.render){if(!t&&lI&&!r.render){const a=r.template||NT(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Un(Un({isCustomElement:i,delimiters:s},o),l);r.render=lI(a,u)}}e.render=r.render||nn}Kf(e),wd(),bj(e),Sd(),Ku()}function Wj(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ya(e,"get","$attrs"),t[n]}}))}function _V(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Wj(e)},slots:e.slots,emit:e.emit,expose:t}}function Ob(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(WB(Js(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qh)return Qh[n](e)},has(t,n){return n in t||n in Qh}}))}function Kj(e,t=!0){return it(e)?e.displayName||e.name:e.name||t&&e.__name}function Uj(e){return it(e)&&"__vccOpts"in e}const P=(e,t)=>UB(e,t,Bv);function Ze(e,t,n){const r=arguments.length;return r===2?Mt(t)&&!He(t)?xn(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&xn(n)&&(n=[n]),X(e,t,n))}const Yj=Symbol.for("v-scx"),jj=()=>Ge(Yj);function hKe(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(zf(n[r],t[r]))return!1;return Wf>0&&Ma&&Ma.push(e),!0}const qj="3.3.4",Xj="http://www.w3.org/2000/svg",Su=typeof document<"u"?document:null,uI=Su&&Su.createElement("template"),Zj={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?Su.createElementNS(Xj,e):Su.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>Su.createTextNode(e),createComment:e=>Su.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Su.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{uI.innerHTML=r?`<svg>${e}</svg>`:e;const s=uI.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 Jj(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 Qj(e,t,n){const r=e.style,a=lt(n);if(n&&!a){if(t&&!lt(t))for(const i in t)n[i]==null&&yC(r,i,"");for(const i in n)yC(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 cI=/\s*!important$/;function yC(e,t,n){if(He(n))n.forEach(r=>yC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=eq(e,t);cI.test(n)?e.setProperty(Cl(r),n.replace(cI,""),"important"):e[r]=n}}const fI=["Webkit","Moz","ms"],s_={};function eq(e,t){const n=s_[t];if(n)return n;let r=ti(t);if(r!=="filter"&&r in e)return s_[t]=r;r=Gp(r);for(let a=0;a<fI.length;a++){const i=fI[a]+r;if(i in e)return s_[t]=i}return t}const dI="http://www.w3.org/1999/xlink";function tq(e,t,n,r,a){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(dI,t.slice(6,t.length)):e.setAttributeNS(dI,t,n);else{const i=dY(t);n==null||i&&!xB(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function nq(e,t,n,r,a,i,o){if(t==="innerHTML"||t==="textContent"){r&&o(r,a,i),e[t]=n??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){e._value=n;const u=s==="OPTION"?e.getAttribute("value"):e.value,c=n??"";u!==c&&(e.value=c),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=xB(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Fs(e,t,n,r){e.addEventListener(t,n,r)}function rq(e,t,n,r){e.removeEventListener(t,n,r)}function aq(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]=iq(t);if(r){const u=i[t]=lq(r,a);Fs(e,s,u,l)}else o&&(rq(e,s,o,l),i[t]=void 0)}}const hI=/(?:Once|Passive|Capture)$/;function iq(e){let t;if(hI.test(e)){t={};let r;for(;r=e.match(hI);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Cl(e.slice(2)),t]}let l_=0;const oq=Promise.resolve(),sq=()=>l_||(oq.then(()=>l_=0),l_=Date.now());function lq(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ja(uq(r,n.value),t,5,[r])};return n.value=e,n.attached=sq(),n}function uq(e,t){if(He(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 vI=/^on[a-z]/,cq=(e,t,n,r,a=!1,i,o,s,l)=>{t==="class"?Jj(e,r,a):t==="style"?Qj(e,n,r):Sb(t)?bT(t)||aq(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fq(e,t,r,a))?nq(e,t,r,i,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),tq(e,t,r,a))};function fq(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&vI.test(t)&&it(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||vI.test(t)&&lt(n)?!1:t in e}const ms="transition",Jd="animation",$n=(e,{slots:t})=>Ze(uj,SV(e),t);$n.displayName="Transition";const wV={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},dq=$n.props=Un({},eV,wV),Vl=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},pI=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function SV(e){const t={};for(const E in e)E in wV||(t[E]=e[E]);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,v=hq(a),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:_,onLeave:w,onLeaveCancelled:C,onBeforeAppear:S=m,onAppear:x=b,onAppearCancelled:T=_}=t,M=(E,D,L)=>{Is(E,D?c:s),Is(E,D?u:o),L&&L()},A=(E,D)=>{E._isLeaving=!1,Is(E,f),Is(E,h),Is(E,d),D&&D()},k=E=>(D,L)=>{const B=E?x:b,$=()=>M(D,E,L);Vl(B,[D,$]),gI(()=>{Is(D,E?l:i),Ro(D,E?c:s),pI(B)||mI(D,r,p,$)})};return Un(t,{onBeforeEnter(E){Vl(m,[E]),Ro(E,i),Ro(E,o)},onBeforeAppear(E){Vl(S,[E]),Ro(E,l),Ro(E,u)},onEnter:k(!1),onAppear:k(!0),onLeave(E,D){E._isLeaving=!0;const L=()=>A(E,D);Ro(E,f),xV(),Ro(E,d),gI(()=>{E._isLeaving&&(Is(E,f),Ro(E,h),pI(w)||mI(E,r,g,L))}),Vl(w,[E,L])},onEnterCancelled(E){M(E,!1),Vl(_,[E])},onAppearCancelled(E){M(E,!0),Vl(T,[E])},onLeaveCancelled(E){A(E),Vl(C,[E])}})}function hq(e){if(e==null)return null;if(Mt(e))return[u_(e.enter),u_(e.leave)];{const t=u_(e);return[t,t]}}function u_(e){return oY(e)}function Ro(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Is(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 gI(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vq=0;function mI(e,t,n,r){const a=e._endId=++vq,i=()=>{a===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=CV(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 CV(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),a=r(`${ms}Delay`),i=r(`${ms}Duration`),o=yI(a,i),s=r(`${Jd}Delay`),l=r(`${Jd}Duration`),u=yI(s,l);let c=null,f=0,d=0;t===ms?o>0&&(c=ms,f=o,d=i.length):t===Jd?u>0&&(c=Jd,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?ms:Jd:null,d=c?c===ms?i.length:l.length:0);const h=c===ms&&/\b(transform|all)(,|$)/.test(r(`${ms}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function yI(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>bI(n)+bI(e[r])))}function bI(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function xV(){return document.body.offsetHeight}const TV=new WeakMap,MV=new WeakMap,kV={name:"TransitionGroup",props:Un({},dq,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=gt(),r=QB();let a,i;return us(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!bq(a[0].el,n.vnode.el,o))return;a.forEach(gq),a.forEach(mq);const s=a.filter(yq);xV(),s.forEach(l=>{const u=l.el,c=u.style;Ro(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,Is(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=en(e),s=SV(o);let l=o.tag||je;a=i,i=t.default?LT(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Nv(c,Ov(c,s,r,n))}if(a)for(let u=0;u<a.length;u++){const c=a[u];Nv(c,Ov(c,s,r,n)),TV.set(c,c.el.getBoundingClientRect())}return X(l,null,i)}}},pq=e=>delete e.mode;kV.props;const AV=kV;function gq(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function mq(e){MV.set(e,e.el.getBoundingClientRect())}function yq(e){const t=TV.get(e),n=MV.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 bq(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}=CV(r);return a.removeChild(r),i}const Uf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>iy(t,n):t};function _q(e){e.target.composing=!0}function _I(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zT={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=Uf(a);const i=r||a.props&&a.props.type==="number";Fs(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=oC(s)),e._assign(s)}),n&&Fs(e,"change",()=>{e.value=e.value.trim()}),t||(Fs(e,"compositionstart",_q),Fs(e,"compositionend",_I),Fs(e,"change",_I))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},i){if(e._assign=Uf(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&oC(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},a0={deep:!0,created(e,t,n){e._assign=Uf(n),Fs(e,"change",()=>{const r=e._modelValue,a=IV(e),i=e.checked,o=e._assign;if(He(r)){const s=TB(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(Cb(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(DV(e,i))})},mounted:wI,beforeUpdate(e,t,n){e._assign=Uf(n),wI(e,t,n)}};function wI(e,{value:t,oldValue:n},r){e._modelValue=t,He(t)?e.checked=TB(t,r.props.value)>-1:Cb(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Hf(t,DV(e,!0)))}const EV={created(e,{value:t},n){e.checked=Hf(t,n.props.value),e._assign=Uf(n),Fs(e,"change",()=>{e._assign(IV(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Uf(r),t!==n&&(e.checked=Hf(t,r.props.value))}};function IV(e){return"_value"in e?e._value:e.value}function DV(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wq=["ctrl","shift","alt","meta"],Sq={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)=>wq.some(n=>e[`${n}Key`]&&!t.includes(n))},tt=(e,t)=>(n,...r)=>{for(let a=0;a<t.length;a++){const i=Sq[t[a]];if(i&&i(n,t))return}return e(n,...r)},Cq={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},zt=(e,t)=>n=>{if(!("key"in n))return;const r=Cl(n.key);if(t.some(a=>a===r||Cq[a]===r))return e(n)},Kt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Qd(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),Qd(e,!0),r.enter(e)):r.leave(e,()=>{Qd(e,!1)}):Qd(e,t))},beforeUnmount(e,{value:t}){Qd(e,t)}};function Qd(e,t){e.style.display=t?e._vod:"none"}const xq=Un({patchProp:cq},Zj);let SI;function PV(){return SI||(SI=Dj(xq))}const Yf=(...e)=>{PV().render(...e)},LV=(...e)=>{const t=PV().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=Tq(r);if(!a)return;const i=t._component;!it(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 Tq(e){return lt(e)?document.querySelector(e):e}const Mq=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},kq={};function Aq(e,t){const n=ct("router-view");return R(),ce(n)}const Eq=Mq(kq,[["render",Aq]]),Iq="modulepreload",Dq=function(e,t){return new URL(e,t).href},CI={},ys=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Dq(i,r),i in CI)return;CI[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const f=a[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Iq,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};/*!
  2. * vue-router v4.0.16
  3. * (c) 2022 Eduardo San Martin Morote
  4. * @license MIT
  5. */const RV=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Td=e=>RV?Symbol(e):"_vr_"+e,Pq=Td("rvlm"),xI=Td("rvd"),Nb=Td("r"),HT=Td("rl"),bC=Td("rvl"),af=typeof window<"u";function Lq(e){return e.__esModule||RV&&e[Symbol.toStringTag]==="Module"}const Tn=Object.assign;function c_(e,t){const n={};for(const r in t){const a=t[r];n[r]=Array.isArray(a)?a.map(e):e(a)}return n}const nv=()=>{},Rq=/\/$/,Oq=e=>e.replace(Rq,"");function f_(e,t,n="/"){let r,a={},i="",o="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(r=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),a=e(i)),l>-1&&(r=r||t.slice(0,l),o=t.slice(l,t.length)),r=Vq(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function Nq(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function TI(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $q(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&jf(t.matched[r],n.matched[a])&&OV(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function jf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function OV(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Bq(e[n],t[n]))return!1;return!0}function Bq(e,t){return Array.isArray(e)?MI(e,t):Array.isArray(t)?MI(t,e):e===t}function MI(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Vq(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],!(a===1||o==="."))if(o==="..")a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Vv;(function(e){e.pop="pop",e.push="push"})(Vv||(Vv={}));var rv;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rv||(rv={}));function Fq(e){if(!e)if(af){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Oq(e)}const zq=/^[^#]+#/;function Hq(e,t){return e.replace(zq,"#")+t}function Gq(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 $b=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wq(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=Gq(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 kI(e,t){return(history.state?history.state.position-t:-1)+e}const _C=new Map;function Kq(e,t){_C.set(e,t)}function Uq(e){const t=_C.get(e);return _C.delete(e),t}let Yq=()=>location.protocol+"//"+location.host;function NV(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),TI(l,"")}return TI(n,e)+r+a}function jq(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=NV(e,location),v=n.value,p=t.value;let g=0;if(d){if(n.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else r(h);a.forEach(m=>{m(n.value,v,{delta:g,type:Vv.pop,direction:g?g>0?rv.forward:rv.back:rv.unknown})})};function l(){o=n.value}function u(d){a.push(d);const h=()=>{const v=a.indexOf(d);v>-1&&a.splice(v,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(Tn({},d.state,{scroll:$b()}),"")}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 AI(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?$b():null}}function qq(e){const{history:t,location:n}=window,r={value:NV(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:Yq()+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=Tn({},t.state,AI(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=Tn({},a.value,t.state,{forward:l,scroll:$b()});i(c.current,c,!0);const f=Tn({},AI(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 Xq(e){e=Fq(e);const t=qq(e),n=jq(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=Tn({location:"",base:e,go:r,createHref:Hq.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 Zq(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Xq(e)}function Jq(e){return typeof e=="string"||e&&typeof e=="object"}function $V(e){return typeof e=="string"||typeof e=="symbol"}const bs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},BV=Td("nf");var EI;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(EI||(EI={}));function qf(e,t){return Tn(new Error,{type:e,[BV]:!0},t)}function _s(e,t){return e instanceof Error&&BV in e&&(t==null||!!(e.type&t))}const II="[^/]+?",Qq={sensitive:!1,strict:!1,start:!0,end:!0},eX=/[.+*?^${}()[\]/\\]/g;function tX(e,t){const n=Tn({},Qq,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(eX,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:p,optional:g,regexp:m}=d;i.push({name:v,repeatable:p,optional:g});const b=m||II;if(b!==II){h+=10;try{new RegExp(`(${b})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+w.message)}}let _=p?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),a+=_,h+=20,g&&(h+=-8),p&&(h+=-20),b===".*"&&(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]||"",v=i[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,m=v in u?u[v]:"";if(Array.isArray(m)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const b=Array.isArray(m)?m.join("/"):m;if(!b)if(g)d.length<2&&e.length>1&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=b}}return c}return{re:o,score:r,keys:i,parse:s,stringify:l}}function nX(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 rX(e,t){let n=0;const r=e.score,a=t.score;for(;n<r.length&&n<a.length;){const i=nX(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(DI(r))return 1;if(DI(a))return-1}return a.length-r.length}function DI(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const aX={type:0,value:""},iX=/[a-zA-Z0-9_]/;function oX(e){if(!e)return[[]];if(e==="/")return[[aX]];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:iX.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 sX(e,t,n){const r=tX(oX(e.path),n),a=Tn(r,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function lX(e,t){const n=[],r=new Map;t=LI({strict:!1,end:!0,sensitive:!1},t);function a(c){return r.get(c)}function i(c,f,d){const h=!d,v=cX(c);v.aliasOf=d&&d.record;const p=LI(t,c),g=[v];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const w of _)g.push(Tn({},v,{components:d?d.record.components:v.components,path:w,aliasOf:d?d.record:v}))}let m,b;for(const _ of g){const{path:w}=_;if(f&&w[0]!=="/"){const C=f.record.path,S=C[C.length-1]==="/"?"":"/";_.path=f.record.path+(w&&S+w)}if(m=sX(_,f,p),d?d.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),h&&c.name&&!PI(m)&&o(c.name)),"children"in v){const C=v.children;for(let S=0;S<C.length;S++)i(C[S],m,d&&d.children[S])}d=d||m,l(m)}return b?()=>{o(b)}:nv}function o(c){if($V(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&&rX(c,n[f])>=0&&(c.record.path!==n[f].record.path||!VV(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!PI(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},v,p;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw qf(1,{location:c});p=d.record.name,h=Tn(uX(f.params,d.keys.filter(b=>!b.optional).map(b=>b.name)),c.params),v=d.stringify(h)}else if("path"in c)v=c.path,d=n.find(b=>b.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!d)throw qf(1,{location:c,currentLocation:f});p=d.record.name,h=Tn({},f.params,c.params),v=d.stringify(h)}const g=[];let m=d;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:v,params:h,matched:g,meta:dX(g)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function uX(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function cX(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:fX(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function fX(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 PI(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dX(e){return e.reduce((t,n)=>Tn(t,n.meta),{})}function LI(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function VV(e,t){return t.children.some(n=>n===e||VV(e,n))}const FV=/#/g,hX=/&/g,vX=/\//g,pX=/=/g,gX=/\?/g,zV=/\+/g,mX=/%5B/g,yX=/%5D/g,HV=/%5E/g,bX=/%60/g,GV=/%7B/g,_X=/%7C/g,WV=/%7D/g,wX=/%20/g;function GT(e){return encodeURI(""+e).replace(_X,"|").replace(mX,"[").replace(yX,"]")}function SX(e){return GT(e).replace(GV,"{").replace(WV,"}").replace(HV,"^")}function wC(e){return GT(e).replace(zV,"%2B").replace(wX,"+").replace(FV,"%23").replace(hX,"%26").replace(bX,"`").replace(GV,"{").replace(WV,"}").replace(HV,"^")}function CX(e){return wC(e).replace(pX,"%3D")}function xX(e){return GT(e).replace(FV,"%23").replace(gX,"%3F")}function TX(e){return e==null?"":xX(e).replace(vX,"%2F")}function i0(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function MX(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(zV," "),o=i.indexOf("="),s=i0(o<0?i:i.slice(0,o)),l=o<0?null:i0(i.slice(o+1));if(s in t){let u=t[s];Array.isArray(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function RI(e){let t="";for(let n in e){const r=e[n];if(n=CX(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(r)?r.map(i=>i&&wC(i)):[r&&wC(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function kX(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Array.isArray(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}function eh(){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 $s(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(qf(4,{from:n,to:t})):f instanceof Error?s(f):Jq(f)?s(qf(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 d_(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(AX(s)){const u=(s.__vccOpts||s)[t];u&&a.push($s(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=Lq(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&$s(d,n,r,i,o)()}))}}return a}function AX(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function OI(e){const t=Ge(Nb),n=Ge(HT),r=P(()=>t.resolve(y(e.to))),a=P(()=>{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(jf.bind(null,c));if(d>-1)return d;const h=NI(l[u-2]);return u>1&&NI(c)===h&&f[f.length-1].path!==h?f.findIndex(jf.bind(null,l[u-2])):d}),i=P(()=>a.value>-1&&PX(n.params,r.value.params)),o=P(()=>a.value>-1&&a.value===n.matched.length-1&&OV(n.params,r.value.params));function s(l={}){return DX(l)?t[y(e.replace)?"replace":"push"](y(e.to)).catch(nv):Promise.resolve()}return{route:r,href:P(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const EX=j({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:OI,setup(e,{slots:t}){const n=jt(OI(e)),{options:r}=Ge(Nb),a=P(()=>({[$I(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[$I(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ze("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),IX=EX;function DX(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 PX(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(!Array.isArray(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function NI(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const $I=(e,t,n)=>e??t??n,LX=j({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ge(bC),a=P(()=>e.route||r.value),i=Ge(xI,0),o=P(()=>a.value.matched[i]);Et(xI,i+1),Et(Pq,o),Et(bC,a);const s=H();return xe(()=>[s.value,o.value,e.name],([l,u,c],[f,d,h])=>{u&&(u.instances[c]=l,d&&d!==u&&l&&l===f&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),l&&u&&(!d||!jf(u,d)||!f)&&(u.enterCallbacks[c]||[]).forEach(v=>v(l))},{flush:"post"}),()=>{const l=a.value,u=o.value,c=u&&u.components[e.name],f=e.name;if(!c)return BI(n.default,{Component:c,route:l});const d=u.props[e.name],h=d?d===!0?l.params:typeof d=="function"?d(l):d:null,p=Ze(c,Tn({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[f]=null)},ref:s}));return BI(n.default,{Component:p,route:l})||p}}});function BI(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const RX=LX;function OX(e){const t=lX(e.routes,e),n=e.parseQuery||MX,r=e.stringifyQuery||RI,a=e.history,i=eh(),o=eh(),s=eh(),l=ln(bs);let u=bs;af&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=c_.bind(null,Q=>""+Q),f=c_.bind(null,TX),d=c_.bind(null,i0);function h(Q,ee){let te,q;return $V(Q)?(te=t.getRecordMatcher(Q),q=ee):q=Q,t.addRoute(q,te)}function v(Q){const ee=t.getRecordMatcher(Q);ee&&t.removeRoute(ee)}function p(){return t.getRoutes().map(Q=>Q.record)}function g(Q){return!!t.getRecordMatcher(Q)}function m(Q,ee){if(ee=Tn({},ee||l.value),typeof Q=="string"){const W=f_(n,Q,ee.path),Z=t.resolve({path:W.path},ee),oe=a.createHref(W.fullPath);return Tn(W,Z,{params:d(Z.params),hash:i0(W.hash),redirectedFrom:void 0,href:oe})}let te;if("path"in Q)te=Tn({},Q,{path:f_(n,Q.path,ee.path).path});else{const W=Tn({},Q.params);for(const Z in W)W[Z]==null&&delete W[Z];te=Tn({},Q,{params:f(Q.params)}),ee.params=f(ee.params)}const q=t.resolve(te,ee),de=Q.hash||"";q.params=c(d(q.params));const ve=Nq(r,Tn({},Q,{hash:SX(de),path:q.path})),ie=a.createHref(ve);return Tn({fullPath:ve,hash:de,query:r===RI?kX(Q.query):Q.query||{}},q,{redirectedFrom:void 0,href:ie})}function b(Q){return typeof Q=="string"?f_(n,Q,l.value.path):Tn({},Q)}function _(Q,ee){if(u!==Q)return qf(8,{from:ee,to:Q})}function w(Q){return x(Q)}function C(Q){return w(Tn(b(Q),{replace:!0}))}function S(Q){const ee=Q.matched[Q.matched.length-1];if(ee&&ee.redirect){const{redirect:te}=ee;let q=typeof te=="function"?te(Q):te;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=b(q):{path:q},q.params={}),Tn({query:Q.query,hash:Q.hash,params:Q.params},q)}}function x(Q,ee){const te=u=m(Q),q=l.value,de=Q.state,ve=Q.force,ie=Q.replace===!0,W=S(te);if(W)return x(Tn(b(W),{state:de,force:ve,replace:ie}),ee||te);const Z=te;Z.redirectedFrom=ee;let oe;return!ve&&$q(r,q,te)&&(oe=qf(16,{to:Z,from:q}),F(q,q,!0,!1)),(oe?Promise.resolve(oe):M(Z,q)).catch(pe=>_s(pe)?_s(pe,2)?pe:I(pe):O(pe,Z,q)).then(pe=>{if(pe){if(_s(pe,2))return x(Tn(b(pe.to),{state:de,force:ve,replace:ie}),ee||Z)}else pe=k(Z,q,!0,ie,de);return A(Z,q,pe),pe})}function T(Q,ee){const te=_(Q,ee);return te?Promise.reject(te):Promise.resolve()}function M(Q,ee){let te;const[q,de,ve]=NX(Q,ee);te=d_(q.reverse(),"beforeRouteLeave",Q,ee);for(const W of q)W.leaveGuards.forEach(Z=>{te.push($s(Z,Q,ee))});const ie=T.bind(null,Q,ee);return te.push(ie),Pc(te).then(()=>{te=[];for(const W of i.list())te.push($s(W,Q,ee));return te.push(ie),Pc(te)}).then(()=>{te=d_(de,"beforeRouteUpdate",Q,ee);for(const W of de)W.updateGuards.forEach(Z=>{te.push($s(Z,Q,ee))});return te.push(ie),Pc(te)}).then(()=>{te=[];for(const W of Q.matched)if(W.beforeEnter&&!ee.matched.includes(W))if(Array.isArray(W.beforeEnter))for(const Z of W.beforeEnter)te.push($s(Z,Q,ee));else te.push($s(W.beforeEnter,Q,ee));return te.push(ie),Pc(te)}).then(()=>(Q.matched.forEach(W=>W.enterCallbacks={}),te=d_(ve,"beforeRouteEnter",Q,ee),te.push(ie),Pc(te))).then(()=>{te=[];for(const W of o.list())te.push($s(W,Q,ee));return te.push(ie),Pc(te)}).catch(W=>_s(W,8)?W:Promise.reject(W))}function A(Q,ee,te){for(const q of s.list())q(Q,ee,te)}function k(Q,ee,te,q,de){const ve=_(Q,ee);if(ve)return ve;const ie=ee===bs,W=af?history.state:{};te&&(q||ie?a.replace(Q.fullPath,Tn({scroll:ie&&W&&W.scroll},de)):a.push(Q.fullPath,de)),l.value=Q,F(Q,ee,te,ie),I()}let E;function D(){E||(E=a.listen((Q,ee,te)=>{const q=m(Q),de=S(q);if(de){x(Tn(de,{replace:!0}),q).catch(nv);return}u=q;const ve=l.value;af&&Kq(kI(ve.fullPath,te.delta),$b()),M(q,ve).catch(ie=>_s(ie,12)?ie:_s(ie,2)?(x(ie.to,q).then(W=>{_s(W,20)&&!te.delta&&te.type===Vv.pop&&a.go(-1,!1)}).catch(nv),Promise.reject()):(te.delta&&a.go(-te.delta,!1),O(ie,q,ve))).then(ie=>{ie=ie||k(q,ve,!1),ie&&(te.delta?a.go(-te.delta,!1):te.type===Vv.pop&&_s(ie,20)&&a.go(-1,!1)),A(q,ve,ie)}).catch(nv)}))}let L=eh(),B=eh(),$;function O(Q,ee,te){I(Q);const q=B.list();return q.length?q.forEach(de=>de(Q,ee,te)):console.error(Q),Promise.reject(Q)}function N(){return $&&l.value!==bs?Promise.resolve():new Promise((Q,ee)=>{L.add([Q,ee])})}function I(Q){return $||($=!Q,D(),L.list().forEach(([ee,te])=>Q?te(Q):ee()),L.reset()),Q}function F(Q,ee,te,q){const{scrollBehavior:de}=e;if(!af||!de)return Promise.resolve();const ve=!te&&Uq(kI(Q.fullPath,0))||(q||!te)&&history.state&&history.state.scroll||null;return Ue().then(()=>de(Q,ee,ve)).then(ie=>ie&&Wq(ie)).catch(ie=>O(ie,Q,ee))}const G=Q=>a.go(Q);let U;const J=new Set;return{currentRoute:l,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:w,replace:C,go:G,back:()=>G(-1),forward:()=>G(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:B.add,isReady:N,install(Q){const ee=this;Q.component("RouterLink",IX),Q.component("RouterView",RX),Q.config.globalProperties.$router=ee,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>y(l)}),af&&!U&&l.value===bs&&(U=!0,w(a.location).catch(de=>{}));const te={};for(const de in bs)te[de]=P(()=>l.value[de]);Q.provide(Nb,ee),Q.provide(HT,jt(te)),Q.provide(bC,l);const q=Q.unmount;J.add(Q),Q.unmount=function(){J.delete(Q),J.size<1&&(u=bs,E&&E(),E=null,l.value=bs,U=!1,$=!1),q()}}}}function Pc(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function NX(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=>jf(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>jf(u,l))||a.push(l))}return[n,r,a]}function vKe(){return Ge(Nb)}function pKe(){return Ge(HT)}const WT=OX({history:Zq(),routes:[{path:"/",name:"启动页",component:()=>ys(()=>import("./openpage-c4732551.js"),["./openpage-c4732551.js","./request-bf092964.js","./header-4e2d5654.js","./header-e43c5b03.css","./openpage-c5350773.css"],import.meta.url),meta:{keepAlive:!1,title:"启动页"},children:[{path:"/home/newfile",name:"首页",component:()=>ys(()=>import("./newfile-202687b8.js"),["./newfile-202687b8.js","./request-bf092964.js","./newfile-9f334932.css"],import.meta.url)},{path:"/home/querylist",name:"打开",component:()=>ys(()=>import("./querylist-d51c3994.js"),["./querylist-d51c3994.js","./request-bf092964.js","./querylist-35ebd990.css"],import.meta.url)},{path:"/home/savefile",name:"savefile",component:()=>ys(()=>import("./savefile-6de9c033.js"),["./savefile-6de9c033.js","./request-bf092964.js"],import.meta.url)}]},{path:"/index",name:"主页1",component:()=>ys(()=>import("./index-b137d930.js"),["./index-b137d930.js","./f41-7b3fdef7.js","./request-bf092964.js","./f41-c7c0c85b.css","./header-4e2d5654.js","./header-e43c5b03.css","./index-1cca7fd7.js","./vue-flow-core-bbf6fe1c.js","./delete-7c52bf59.js","./delete-c44b0073.css","./f22-deb38015.js","./index-b2a1d9f7.css","./index-74b1ca7e.css"],import.meta.url),meta:{keepAlive:!1,title:"主页1"}},{path:"/home",name:"主页",component:()=>ys(()=>import("./home-75e3e3d8.js"),["./home-75e3e3d8.js","./f41-7b3fdef7.js","./request-bf092964.js","./f41-c7c0c85b.css","./header-4e2d5654.js","./header-e43c5b03.css","./f22-deb38015.js","./vue-flow-core-bbf6fe1c.js","./vue-flow-background-5ffac9e3.js","./home-7a080328.css"],import.meta.url),meta:{keepAlive:!1,title:"主页"}},{path:"/vueflow",name:"vueflow",component:()=>ys(()=>import("./index-1cca7fd7.js").then(e=>e.i),["./index-1cca7fd7.js","./vue-flow-core-bbf6fe1c.js","./delete-7c52bf59.js","./delete-c44b0073.css","./f22-deb38015.js","./index-b2a1d9f7.css"],import.meta.url),meta:{keepAlive:!1,title:"vueflow"}},{path:"/demo",name:"demo",component:()=>ys(()=>import("./demo-1ab3cf87.js"),["./demo-1ab3cf87.js","./vue-flow-core-bbf6fe1c.js","./vue-flow-background-5ffac9e3.js","./delete-7c52bf59.js","./delete-c44b0073.css","./demo-22818a63.css"],import.meta.url),meta:{keepAlive:!1,title:"vueflow"}}]});WT.beforeEach((e,t,n)=>{window.document.title=e.name,n()});WT.afterEach((e,t,n)=>{window.scrollTo(0,0)});var $X=!1;/*!
  6. * pinia v2.1.6
  7. * (c) 2023 Eduardo San Martin Morote
  8. * @license MIT
  9. */const BX=Symbol();var VI;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(VI||(VI={}));function VX(){const e=AB(!0),t=e.run(()=>H({}));let n=[],r=[];const a=Js({install(i){a._a=i,i.provide(BX,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!$X?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}function FX(e){return typeof e=="object"&&e!==null}function FI(e,t){return e=FX(e)?e:Object.create(null),new Proxy(e,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(t,r,a)}})}function zX(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function HX(e,t,n){return t.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},e)[t[t.length-1]]=n,e}function GX(e,t){return t.reduce((n,r)=>{const a=r.split(".");return HX(n,a,zX(e,a))},{})}function zI(e,{storage:t,serializer:n,key:r,debug:a}){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function HI(e,{storage:t,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?GX(e,a):e;t.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function WX(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:a,pinia:i}=t;if(!r)return;if(!(a.$id in i.state.value)){const s=i._s.get(a.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const o=(Array.isArray(r)?r.map(s=>FI(s,e)):[FI(r,e)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:u=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:f=a.$id,paths:d=null,debug:h=!1})=>{var v;return{storage:s,beforeRestore:l,afterRestore:u,serializer:c,key:((v=e.key)!=null?v:p=>p)(typeof f=="string"?f:f(a.$id)),paths:d,debug:h}});a.$persist=()=>{o.forEach(s=>{HI(a.$state,s)})},a.$hydrate=({runHooks:s=!0}={})=>{o.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;s&&(u==null||u(t)),zI(a,l),s&&(c==null||c(t))})},o.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;l==null||l(t),zI(a,s),u==null||u(t),a.$subscribe((c,f)=>{HI(f,s)},{detached:!0})})}}var KX=WX();const KV=VX();KV.use(KX);const UX='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',YX=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,GI=e=>Array.from(e.querySelectorAll(UX)).filter(t=>jX(t)&&YX(t)),jX=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}},sy=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},UV=e=>!e.getAttribute("aria-owns"),YV=(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},ly=e=>{e&&(e.focus(),!UV(e)&&e.click())},En=(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)},WI=e=>t=>t.pointerType==="mouse"?e(t):void 0;var qX=Object.defineProperty,XX=Object.defineProperties,ZX=Object.getOwnPropertyDescriptors,KI=Object.getOwnPropertySymbols,JX=Object.prototype.hasOwnProperty,QX=Object.prototype.propertyIsEnumerable,UI=(e,t,n)=>t in e?qX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eZ=(e,t)=>{for(var n in t||(t={}))JX.call(t,n)&&UI(e,n,t[n]);if(KI)for(var n of KI(t))QX.call(t,n)&&UI(e,n,t[n]);return e},tZ=(e,t)=>XX(e,ZX(t));function YI(e,t){var n;const r=ln();return Ia(()=>{r.value=e()},tZ(eZ({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Cd(r)}var jI;const Vt=typeof window<"u",nZ=e=>typeof e<"u",rZ=e=>typeof e=="function",aZ=e=>typeof e=="string",Xf=()=>{},jV=Vt&&((jI=window==null?void 0:window.navigator)==null?void 0:jI.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ul(e){return typeof e=="function"?e():y(e)}function qV(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 iZ(e,t={}){let n,r,a=Xf;const i=s=>{clearTimeout(s),a(),a=Xf};return s=>{const l=ul(e),u=ul(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 oZ(e,t=!0,n=!0,r=!1){let a=0,i,o=!0,s=Xf,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=Xf)};return f=>{const d=ul(e),h=Date.now()-a,v=()=>l=f();return u(),d<=0?(a=Date.now(),v()):(h>d&&(n||!o)?(a=Date.now(),v()):t&&(l=new Promise((p,g)=>{s=r?g:p,i=setTimeout(()=>{a=Date.now(),o=!0,p(v()),u()},Math.max(0,d-h))})),!n&&!i&&(i=setTimeout(()=>o=!0,d)),o=!1,l)}}function sZ(e){return e}function Bb(e){return EB()?(IB(e),!0):!1}function lZ(e,t=200,n={}){return qV(iZ(t,n),e)}function uZ(e,t=200,n={}){const r=H(e.value),a=lZ(()=>{r.value=e.value},t,n);return xe(e,()=>a()),r}function XV(e,t=200,n=!1,r=!0,a=!1){return qV(oZ(t,n,r,a),e)}function KT(e,t=!0){gt()?yt(e):t?e():Ue(e)}function ac(e,t,n={}){const{immediate:r=!0}=n,a=H(!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)},ul(t))}return r&&(a.value=!0,Vt&&l()),Bb(s),{isPending:Cd(a),start:l,stop:s}}function ka(e){var t;const n=ul(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Md=Vt?window:void 0,cZ=Vt?window.document:void 0;function yn(...e){let t,n,r,a;if(aZ(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=Md):[t,n,r,a]=e,!t)return Xf;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=xe(()=>[ka(t),ul(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 Bb(u),u}let qI=!1;function UT(e,t,n={}){const{window:r=Md,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;jV&&!qI&&(qI=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",Xf)));let s=!0;const l=d=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(v=>v===d.target||d.composedPath().includes(v));{const v=ka(h);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[yn(r,"click",d=>{const h=ka(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}),yn(r,"pointerdown",d=>{const h=ka(e);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&yn(r,"blur",d=>{var h;const v=ka(e);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function fZ(e,t=!1){const n=H(),r=()=>n.value=!!e();return r(),KT(r,t),n}function dZ(e){return JSON.parse(JSON.stringify(e))}const XI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ZI="__vueuse_ssr_handlers__";XI[ZI]=XI[ZI]||{};function hZ(e,t,{window:n=Md,initialValue:r=""}={}){const a=H(r),i=P(()=>{var o;return ka(t)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return xe([i,()=>ul(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}),xe(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(ul(e),o)}),a}function vZ({document:e=cZ}={}){if(!e)return H("visible");const t=H(e.visibilityState);return yn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var JI=Object.getOwnPropertySymbols,pZ=Object.prototype.hasOwnProperty,gZ=Object.prototype.propertyIsEnumerable,mZ=(e,t)=>{var n={};for(var r in e)pZ.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&JI)for(var r of JI(e))t.indexOf(r)<0&&gZ.call(e,r)&&(n[r]=e[r]);return n};function Or(e,t,n={}){const r=n,{window:a=Md}=r,i=mZ(r,["window"]);let o;const s=fZ(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=xe(()=>ka(e),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Bb(c),{isSupported:s,stop:c}}function QI(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=t,o=H(0),s=H(0),l=H(0),u=H(0),c=H(0),f=H(0),d=H(0),h=H(0);function v(){const p=ka(e);if(!p){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=p.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 Or(e,v),xe(()=>ka(e),p=>!p&&v()),a&&yn("scroll",v,{capture:!0,passive:!0}),r&&yn("resize",v,{passive:!0}),KT(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:v}}var eD;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(eD||(eD={}));var yZ=Object.defineProperty,tD=Object.getOwnPropertySymbols,bZ=Object.prototype.hasOwnProperty,_Z=Object.prototype.propertyIsEnumerable,nD=(e,t,n)=>t in e?yZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wZ=(e,t)=>{for(var n in t||(t={}))bZ.call(t,n)&&nD(e,n,t[n]);if(tD)for(var n of tD(t))_Z.call(t,n)&&nD(e,n,t[n]);return e};const SZ={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]};wZ({linear:sZ},SZ);function CZ(e,t,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=gt(),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 v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const p=m=>s?rZ(s)?s(m):dZ(m):m,g=()=>nZ(e[t])?p(e[t]):f;if(l){const m=g(),b=H(m);return xe(()=>e[t],_=>b.value=p(_)),xe(b,_=>{(_!==e[t]||c)&&h(v,_)},{deep:c}),b}else return P({get(){return g()},set(m){h(v,m)}})}function xZ({window:e=Md}={}){if(!e)return H(!1);const t=H(e.document.hasFocus());return yn(e,"blur",()=>{t.value=!1}),yn(e,"focus",()=>{t.value=!0}),t}function TZ(e={}){const{window:t=Md,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=H(n),s=H(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(),KT(l),yn("resize",l,{passive:!0}),a&&yn("orientationchange",l,{passive:!0}),{width:o,height:s}}const ZV=()=>Vt&&/firefox/i.test(window.navigator.userAgent),MZ=(e,t)=>{if(!Vt||!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},rD=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},kZ=(e,t)=>Math.abs(rD(e)-rD(t)),YT=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 AZ=typeof global=="object"&&global&&global.Object===Object&&global;const JV=AZ;var EZ=typeof self=="object"&&self&&self.Object===Object&&self,IZ=JV||EZ||Function("return this")();const Gi=IZ;var DZ=Gi.Symbol;const ni=DZ;var QV=Object.prototype,PZ=QV.hasOwnProperty,LZ=QV.toString,th=ni?ni.toStringTag:void 0;function RZ(e){var t=PZ.call(e,th),n=e[th];try{e[th]=void 0;var r=!0}catch{}var a=LZ.call(e);return r&&(t?e[th]=n:delete e[th]),a}var OZ=Object.prototype,NZ=OZ.toString;function $Z(e){return NZ.call(e)}var BZ="[object Null]",VZ="[object Undefined]",aD=ni?ni.toStringTag:void 0;function yc(e){return e==null?e===void 0?VZ:BZ:aD&&aD in Object(e)?RZ(e):$Z(e)}function mo(e){return e!=null&&typeof e=="object"}var FZ="[object Symbol]";function Vb(e){return typeof e=="symbol"||mo(e)&&yc(e)==FZ}function e5(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 zZ=Array.isArray;const Xr=zZ;var HZ=1/0,iD=ni?ni.prototype:void 0,oD=iD?iD.toString:void 0;function t5(e){if(typeof e=="string")return e;if(Xr(e))return e5(e,t5)+"";if(Vb(e))return oD?oD.call(e):"";var t=e+"";return t=="0"&&1/e==-HZ?"-0":t}var GZ=/\s/;function WZ(e){for(var t=e.length;t--&&GZ.test(e.charAt(t)););return t}var KZ=/^\s+/;function UZ(e){return e&&e.slice(0,WZ(e)+1).replace(KZ,"")}function Zr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sD=0/0,YZ=/^[-+]0x[0-9a-f]+$/i,jZ=/^0b[01]+$/i,qZ=/^0o[0-7]+$/i,XZ=parseInt;function SC(e){if(typeof e=="number")return e;if(Vb(e))return sD;if(Zr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=UZ(e);var n=jZ.test(e);return n||qZ.test(e)?XZ(e.slice(2),n?2:8):YZ.test(e)?sD:+e}var lD=1/0,ZZ=17976931348623157e292;function JZ(e){if(!e)return e===0?e:0;if(e=SC(e),e===lD||e===-lD){var t=e<0?-1:1;return t*ZZ}return e===e?e:0}function QZ(e){var t=JZ(e),n=t%1;return t===t?n?t-n:t:0}function jT(e){return e}var eJ="[object AsyncFunction]",tJ="[object Function]",nJ="[object GeneratorFunction]",rJ="[object Proxy]";function qT(e){if(!Zr(e))return!1;var t=yc(e);return t==tJ||t==nJ||t==eJ||t==rJ}var aJ=Gi["__core-js_shared__"];const h_=aJ;var uD=function(){var e=/[^.]+$/.exec(h_&&h_.keys&&h_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function iJ(e){return!!uD&&uD in e}var oJ=Function.prototype,sJ=oJ.toString;function bc(e){if(e!=null){try{return sJ.call(e)}catch{}try{return e+""}catch{}}return""}var lJ=/[\\^$.*+?()[\]{}|]/g,uJ=/^\[object .+?Constructor\]$/,cJ=Function.prototype,fJ=Object.prototype,dJ=cJ.toString,hJ=fJ.hasOwnProperty,vJ=RegExp("^"+dJ.call(hJ).replace(lJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pJ(e){if(!Zr(e)||iJ(e))return!1;var t=qT(e)?vJ:uJ;return t.test(bc(e))}function gJ(e,t){return e==null?void 0:e[t]}function _c(e,t){var n=gJ(e,t);return pJ(n)?n:void 0}var mJ=_c(Gi,"WeakMap");const CC=mJ;var cD=Object.create,yJ=function(){function e(){}return function(t){if(!Zr(t))return{};if(cD)return cD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const bJ=yJ;function _J(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 wJ(){}function n5(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var SJ=800,CJ=16,xJ=Date.now;function TJ(e){var t=0,n=0;return function(){var r=xJ(),a=CJ-(r-n);if(n=r,a>0){if(++t>=SJ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function MJ(e){return function(){return e}}var kJ=function(){try{var e=_c(Object,"defineProperty");return e({},"",{}),e}catch{}}();const o0=kJ;var AJ=o0?function(e,t){return o0(e,"toString",{configurable:!0,enumerable:!1,value:MJ(t),writable:!0})}:jT;const EJ=AJ;var IJ=TJ(EJ);const r5=IJ;function DJ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function a5(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 PJ(e){return e!==e}function LJ(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function RJ(e,t,n){return t===t?LJ(e,t,n):a5(e,PJ,n)}function OJ(e,t){var n=e==null?0:e.length;return!!n&&RJ(e,t,0)>-1}var NJ=9007199254740991,$J=/^(?:0|[1-9]\d*)$/;function Fb(e,t){var n=typeof e;return t=t??NJ,!!t&&(n=="number"||n!="symbol"&&$J.test(e))&&e>-1&&e%1==0&&e<t}function XT(e,t,n){t=="__proto__"&&o0?o0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kp(e,t){return e===t||e!==e&&t!==t}var BJ=Object.prototype,VJ=BJ.hasOwnProperty;function ZT(e,t,n){var r=e[t];(!(VJ.call(e,t)&&Kp(r,n))||n===void 0&&!(t in e))&&XT(e,t,n)}function Up(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?XT(n,s,l):ZT(n,s,l)}return n}var fD=Math.max;function i5(e,t,n){return t=fD(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=fD(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),_J(e,this,s)}}function o5(e,t){return r5(i5(e,t,jT),e+"")}var FJ=9007199254740991;function JT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=FJ}function kd(e){return e!=null&&JT(e.length)&&!qT(e)}function zJ(e,t,n){if(!Zr(n))return!1;var r=typeof t;return(r=="number"?kd(n)&&Fb(t,n.length):r=="string"&&t in n)?Kp(n[t],e):!1}function HJ(e){return o5(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&&zJ(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 GJ=Object.prototype;function QT(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||GJ;return e===n}function WJ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var KJ="[object Arguments]";function dD(e){return mo(e)&&yc(e)==KJ}var s5=Object.prototype,UJ=s5.hasOwnProperty,YJ=s5.propertyIsEnumerable,jJ=dD(function(){return arguments}())?dD:function(e){return mo(e)&&UJ.call(e,"callee")&&!YJ.call(e,"callee")};const Fv=jJ;function qJ(){return!1}var l5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hD=l5&&typeof module=="object"&&module&&!module.nodeType&&module,XJ=hD&&hD.exports===l5,vD=XJ?Gi.Buffer:void 0,ZJ=vD?vD.isBuffer:void 0,JJ=ZJ||qJ;const zv=JJ;var QJ="[object Arguments]",eQ="[object Array]",tQ="[object Boolean]",nQ="[object Date]",rQ="[object Error]",aQ="[object Function]",iQ="[object Map]",oQ="[object Number]",sQ="[object Object]",lQ="[object RegExp]",uQ="[object Set]",cQ="[object String]",fQ="[object WeakMap]",dQ="[object ArrayBuffer]",hQ="[object DataView]",vQ="[object Float32Array]",pQ="[object Float64Array]",gQ="[object Int8Array]",mQ="[object Int16Array]",yQ="[object Int32Array]",bQ="[object Uint8Array]",_Q="[object Uint8ClampedArray]",wQ="[object Uint16Array]",SQ="[object Uint32Array]",Dn={};Dn[vQ]=Dn[pQ]=Dn[gQ]=Dn[mQ]=Dn[yQ]=Dn[bQ]=Dn[_Q]=Dn[wQ]=Dn[SQ]=!0;Dn[QJ]=Dn[eQ]=Dn[dQ]=Dn[tQ]=Dn[hQ]=Dn[nQ]=Dn[rQ]=Dn[aQ]=Dn[iQ]=Dn[oQ]=Dn[sQ]=Dn[lQ]=Dn[uQ]=Dn[cQ]=Dn[fQ]=!1;function CQ(e){return mo(e)&&JT(e.length)&&!!Dn[yc(e)]}function eM(e){return function(t){return e(t)}}var u5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,av=u5&&typeof module=="object"&&module&&!module.nodeType&&module,xQ=av&&av.exports===u5,v_=xQ&&JV.process,TQ=function(){try{var e=av&&av.require&&av.require("util").types;return e||v_&&v_.binding&&v_.binding("util")}catch{}}();const Zf=TQ;var pD=Zf&&Zf.isTypedArray,MQ=pD?eM(pD):CQ;const tM=MQ;var kQ=Object.prototype,AQ=kQ.hasOwnProperty;function c5(e,t){var n=Xr(e),r=!n&&Fv(e),a=!n&&!r&&zv(e),i=!n&&!r&&!a&&tM(e),o=n||r||a||i,s=o?WJ(e.length,String):[],l=s.length;for(var u in e)(t||AQ.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Fb(u,l)))&&s.push(u);return s}function f5(e,t){return function(n){return e(t(n))}}var EQ=f5(Object.keys,Object);const IQ=EQ;var DQ=Object.prototype,PQ=DQ.hasOwnProperty;function LQ(e){if(!QT(e))return IQ(e);var t=[];for(var n in Object(e))PQ.call(e,n)&&n!="constructor"&&t.push(n);return t}function Yp(e){return kd(e)?c5(e):LQ(e)}function RQ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var OQ=Object.prototype,NQ=OQ.hasOwnProperty;function $Q(e){if(!Zr(e))return RQ(e);var t=QT(e),n=[];for(var r in e)r=="constructor"&&(t||!NQ.call(e,r))||n.push(r);return n}function jp(e){return kd(e)?c5(e,!0):$Q(e)}var BQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VQ=/^\w*$/;function nM(e,t){if(Xr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Vb(e)?!0:VQ.test(e)||!BQ.test(e)||t!=null&&e in Object(t)}var FQ=_c(Object,"create");const Hv=FQ;function zQ(){this.__data__=Hv?Hv(null):{},this.size=0}function HQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GQ="__lodash_hash_undefined__",WQ=Object.prototype,KQ=WQ.hasOwnProperty;function UQ(e){var t=this.__data__;if(Hv){var n=t[e];return n===GQ?void 0:n}return KQ.call(t,e)?t[e]:void 0}var YQ=Object.prototype,jQ=YQ.hasOwnProperty;function qQ(e){var t=this.__data__;return Hv?t[e]!==void 0:jQ.call(t,e)}var XQ="__lodash_hash_undefined__";function ZQ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Hv&&t===void 0?XQ:t,this}function ic(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])}}ic.prototype.clear=zQ;ic.prototype.delete=HQ;ic.prototype.get=UQ;ic.prototype.has=qQ;ic.prototype.set=ZQ;function JQ(){this.__data__=[],this.size=0}function zb(e,t){for(var n=e.length;n--;)if(Kp(e[n][0],t))return n;return-1}var QQ=Array.prototype,eee=QQ.splice;function tee(e){var t=this.__data__,n=zb(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():eee.call(t,n,1),--this.size,!0}function nee(e){var t=this.__data__,n=zb(t,e);return n<0?void 0:t[n][1]}function ree(e){return zb(this.__data__,e)>-1}function aee(e,t){var n=this.__data__,r=zb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function cs(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])}}cs.prototype.clear=JQ;cs.prototype.delete=tee;cs.prototype.get=nee;cs.prototype.has=ree;cs.prototype.set=aee;var iee=_c(Gi,"Map");const Gv=iee;function oee(){this.size=0,this.__data__={hash:new ic,map:new(Gv||cs),string:new ic}}function see(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Hb(e,t){var n=e.__data__;return see(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lee(e){var t=Hb(this,e).delete(e);return this.size-=t?1:0,t}function uee(e){return Hb(this,e).get(e)}function cee(e){return Hb(this,e).has(e)}function fee(e,t){var n=Hb(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function fs(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])}}fs.prototype.clear=oee;fs.prototype.delete=lee;fs.prototype.get=uee;fs.prototype.has=cee;fs.prototype.set=fee;var dee="Expected a function";function Gb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dee);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(Gb.Cache||fs),n}Gb.Cache=fs;var hee=500;function vee(e){var t=Gb(e,function(r){return n.size===hee&&n.clear(),r}),n=t.cache;return t}var pee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gee=/\\(\\)?/g,mee=vee(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(pee,function(n,r,a,i){t.push(a?i.replace(gee,"$1"):r||n)}),t});const yee=mee;function bee(e){return e==null?"":t5(e)}function Wb(e,t){return Xr(e)?e:nM(e,t)?[e]:yee(bee(e))}var _ee=1/0;function qp(e){if(typeof e=="string"||Vb(e))return e;var t=e+"";return t=="0"&&1/e==-_ee?"-0":t}function rM(e,t){t=Wb(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qp(t[n++])];return n&&n==r?e:void 0}function wn(e,t,n){var r=e==null?void 0:rM(e,t);return r===void 0?n:r}function aM(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var gD=ni?ni.isConcatSpreadable:void 0;function wee(e){return Xr(e)||Fv(e)||!!(gD&&e&&e[gD])}function Xp(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=wee),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?Xp(s,t-1,n,r,a):aM(a,s):r||(a[a.length]=s)}return a}function d5(e){var t=e==null?0:e.length;return t?Xp(e,1):[]}function See(e){return r5(i5(e,void 0,d5),e+"")}var Cee=f5(Object.getPrototypeOf,Object);const iM=Cee;var xee="[object Object]",Tee=Function.prototype,Mee=Object.prototype,h5=Tee.toString,kee=Mee.hasOwnProperty,Aee=h5.call(Object);function Eee(e){if(!mo(e)||yc(e)!=xee)return!1;var t=iM(e);if(t===null)return!0;var n=kee.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&h5.call(n)==Aee}function oc(){if(!arguments.length)return[];var e=arguments[0];return Xr(e)?e:[e]}function Iee(){this.__data__=new cs,this.size=0}function Dee(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Pee(e){return this.__data__.get(e)}function Lee(e){return this.__data__.has(e)}var Ree=200;function Oee(e,t){var n=this.__data__;if(n instanceof cs){var r=n.__data__;if(!Gv||r.length<Ree-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new fs(r)}return n.set(e,t),this.size=n.size,this}function Di(e){var t=this.__data__=new cs(e);this.size=t.size}Di.prototype.clear=Iee;Di.prototype.delete=Dee;Di.prototype.get=Pee;Di.prototype.has=Lee;Di.prototype.set=Oee;function Nee(e,t){return e&&Up(t,Yp(t),e)}function $ee(e,t){return e&&Up(t,jp(t),e)}var v5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mD=v5&&typeof module=="object"&&module&&!module.nodeType&&module,Bee=mD&&mD.exports===v5,yD=Bee?Gi.Buffer:void 0,bD=yD?yD.allocUnsafe:void 0;function p5(e,t){if(t)return e.slice();var n=e.length,r=bD?bD(n):new e.constructor(n);return e.copy(r),r}function Vee(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 g5(){return[]}var Fee=Object.prototype,zee=Fee.propertyIsEnumerable,_D=Object.getOwnPropertySymbols,Hee=_D?function(e){return e==null?[]:(e=Object(e),Vee(_D(e),function(t){return zee.call(e,t)}))}:g5;const oM=Hee;function Gee(e,t){return Up(e,oM(e),t)}var Wee=Object.getOwnPropertySymbols,Kee=Wee?function(e){for(var t=[];e;)aM(t,oM(e)),e=iM(e);return t}:g5;const m5=Kee;function Uee(e,t){return Up(e,m5(e),t)}function y5(e,t,n){var r=t(e);return Xr(e)?r:aM(r,n(e))}function xC(e){return y5(e,Yp,oM)}function Yee(e){return y5(e,jp,m5)}var jee=_c(Gi,"DataView");const TC=jee;var qee=_c(Gi,"Promise");const MC=qee;var Xee=_c(Gi,"Set");const kf=Xee;var wD="[object Map]",Zee="[object Object]",SD="[object Promise]",CD="[object Set]",xD="[object WeakMap]",TD="[object DataView]",Jee=bc(TC),Qee=bc(Gv),ete=bc(MC),tte=bc(kf),nte=bc(CC),du=yc;(TC&&du(new TC(new ArrayBuffer(1)))!=TD||Gv&&du(new Gv)!=wD||MC&&du(MC.resolve())!=SD||kf&&du(new kf)!=CD||CC&&du(new CC)!=xD)&&(du=function(e){var t=yc(e),n=t==Zee?e.constructor:void 0,r=n?bc(n):"";if(r)switch(r){case Jee:return TD;case Qee:return wD;case ete:return SD;case tte:return CD;case nte:return xD}return t});const Wv=du;var rte=Object.prototype,ate=rte.hasOwnProperty;function ite(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ate.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ote=Gi.Uint8Array;const s0=ote;function sM(e){var t=new e.constructor(e.byteLength);return new s0(t).set(new s0(e)),t}function ste(e,t){var n=t?sM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var lte=/\w*$/;function ute(e){var t=new e.constructor(e.source,lte.exec(e));return t.lastIndex=e.lastIndex,t}var MD=ni?ni.prototype:void 0,kD=MD?MD.valueOf:void 0;function cte(e){return kD?Object(kD.call(e)):{}}function b5(e,t){var n=t?sM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var fte="[object Boolean]",dte="[object Date]",hte="[object Map]",vte="[object Number]",pte="[object RegExp]",gte="[object Set]",mte="[object String]",yte="[object Symbol]",bte="[object ArrayBuffer]",_te="[object DataView]",wte="[object Float32Array]",Ste="[object Float64Array]",Cte="[object Int8Array]",xte="[object Int16Array]",Tte="[object Int32Array]",Mte="[object Uint8Array]",kte="[object Uint8ClampedArray]",Ate="[object Uint16Array]",Ete="[object Uint32Array]";function Ite(e,t,n){var r=e.constructor;switch(t){case bte:return sM(e);case fte:case dte:return new r(+e);case _te:return ste(e,n);case wte:case Ste:case Cte:case xte:case Tte:case Mte:case kte:case Ate:case Ete:return b5(e,n);case hte:return new r;case vte:case mte:return new r(e);case pte:return ute(e);case gte:return new r;case yte:return cte(e)}}function _5(e){return typeof e.constructor=="function"&&!QT(e)?bJ(iM(e)):{}}var Dte="[object Map]";function Pte(e){return mo(e)&&Wv(e)==Dte}var AD=Zf&&Zf.isMap,Lte=AD?eM(AD):Pte;const Rte=Lte;var Ote="[object Set]";function Nte(e){return mo(e)&&Wv(e)==Ote}var ED=Zf&&Zf.isSet,$te=ED?eM(ED):Nte;const Bte=$te;var Vte=1,Fte=2,zte=4,w5="[object Arguments]",Hte="[object Array]",Gte="[object Boolean]",Wte="[object Date]",Kte="[object Error]",S5="[object Function]",Ute="[object GeneratorFunction]",Yte="[object Map]",jte="[object Number]",C5="[object Object]",qte="[object RegExp]",Xte="[object Set]",Zte="[object String]",Jte="[object Symbol]",Qte="[object WeakMap]",ene="[object ArrayBuffer]",tne="[object DataView]",nne="[object Float32Array]",rne="[object Float64Array]",ane="[object Int8Array]",ine="[object Int16Array]",one="[object Int32Array]",sne="[object Uint8Array]",lne="[object Uint8ClampedArray]",une="[object Uint16Array]",cne="[object Uint32Array]",An={};An[w5]=An[Hte]=An[ene]=An[tne]=An[Gte]=An[Wte]=An[nne]=An[rne]=An[ane]=An[ine]=An[one]=An[Yte]=An[jte]=An[C5]=An[qte]=An[Xte]=An[Zte]=An[Jte]=An[sne]=An[lne]=An[une]=An[cne]=!0;An[Kte]=An[S5]=An[Qte]=!1;function iv(e,t,n,r,a,i){var o,s=t&Vte,l=t&Fte,u=t&zte;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!Zr(e))return e;var c=Xr(e);if(c){if(o=ite(e),!s)return n5(e,o)}else{var f=Wv(e),d=f==S5||f==Ute;if(zv(e))return p5(e,s);if(f==C5||f==w5||d&&!a){if(o=l||d?{}:_5(e),!s)return l?Uee(e,$ee(o,e)):Gee(e,Nee(o,e))}else{if(!An[f])return a?e:{};o=Ite(e,f,s)}}i||(i=new Di);var h=i.get(e);if(h)return h;i.set(e,o),Bte(e)?e.forEach(function(g){o.add(iv(g,t,n,g,e,i))}):Rte(e)&&e.forEach(function(g,m){o.set(m,iv(g,t,n,m,e,i))});var v=u?l?Yee:xC:l?jp:Yp,p=c?void 0:v(e);return DJ(p||e,function(g,m){p&&(m=g,g=e[m]),ZT(o,m,iv(g,t,n,m,e,i))}),o}var fne=4;function ID(e){return iv(e,fne)}var dne=1,hne=4;function l0(e){return iv(e,dne|hne)}var vne="__lodash_hash_undefined__";function pne(e){return this.__data__.set(e,vne),this}function gne(e){return this.__data__.has(e)}function Kv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new fs;++t<n;)this.add(e[t])}Kv.prototype.add=Kv.prototype.push=pne;Kv.prototype.has=gne;function mne(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 x5(e,t){return e.has(t)}var yne=1,bne=2;function T5(e,t,n,r,a,i){var o=n&yne,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&bne?new Kv:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var v=e[f],p=t[f];if(r)var g=o?r(p,v,f,t,e,i):r(v,p,f,e,t,i);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!mne(t,function(m,b){if(!x5(h,b)&&(v===m||a(v,m,n,r,i)))return h.push(b)})){d=!1;break}}else if(!(v===p||a(v,p,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function _ne(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function lM(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var wne=1,Sne=2,Cne="[object Boolean]",xne="[object Date]",Tne="[object Error]",Mne="[object Map]",kne="[object Number]",Ane="[object RegExp]",Ene="[object Set]",Ine="[object String]",Dne="[object Symbol]",Pne="[object ArrayBuffer]",Lne="[object DataView]",DD=ni?ni.prototype:void 0,p_=DD?DD.valueOf:void 0;function Rne(e,t,n,r,a,i,o){switch(n){case Lne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Pne:return!(e.byteLength!=t.byteLength||!i(new s0(e),new s0(t)));case Cne:case xne:case kne:return Kp(+e,+t);case Tne:return e.name==t.name&&e.message==t.message;case Ane:case Ine:return e==t+"";case Mne:var s=_ne;case Ene:var l=r&wne;if(s||(s=lM),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=Sne,o.set(e,t);var c=T5(s(e),s(t),r,a,i,o);return o.delete(e),c;case Dne:if(p_)return p_.call(e)==p_.call(t)}return!1}var One=1,Nne=Object.prototype,$ne=Nne.hasOwnProperty;function Bne(e,t,n,r,a,i){var o=n&One,s=xC(e),l=s.length,u=xC(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:$ne.call(t,d)))return!1}var h=i.get(e),v=i.get(t);if(h&&v)return h==t&&v==e;var p=!0;i.set(e,t),i.set(t,e);for(var g=o;++f<l;){d=s[f];var m=e[d],b=t[d];if(r)var _=o?r(b,m,d,t,e,i):r(m,b,d,e,t,i);if(!(_===void 0?m===b||a(m,b,n,r,i):_)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var w=e.constructor,C=t.constructor;w!=C&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(p=!1)}return i.delete(e),i.delete(t),p}var Vne=1,PD="[object Arguments]",LD="[object Array]",Ng="[object Object]",Fne=Object.prototype,RD=Fne.hasOwnProperty;function zne(e,t,n,r,a,i){var o=Xr(e),s=Xr(t),l=o?LD:Wv(e),u=s?LD:Wv(t);l=l==PD?Ng:l,u=u==PD?Ng:u;var c=l==Ng,f=u==Ng,d=l==u;if(d&&zv(e)){if(!zv(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new Di),o||tM(e)?T5(e,t,n,r,a,i):Rne(e,t,l,n,r,a,i);if(!(n&Vne)){var h=c&&RD.call(e,"__wrapped__"),v=f&&RD.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return i||(i=new Di),a(p,g,n,r,i)}}return d?(i||(i=new Di),Bne(e,t,n,r,a,i)):!1}function Kb(e,t,n,r,a){return e===t?!0:e==null||t==null||!mo(e)&&!mo(t)?e!==e&&t!==t:zne(e,t,n,r,Kb,a)}var Hne=1,Gne=2;function Wne(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 Di;if(r)var d=r(u,c,l,e,t,f);if(!(d===void 0?Kb(c,u,Hne|Gne,r,f):d))return!1}}return!0}function M5(e){return e===e&&!Zr(e)}function Kne(e){for(var t=Yp(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,M5(a)]}return t}function k5(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Une(e){var t=Kne(e);return t.length==1&&t[0][2]?k5(t[0][0],t[0][1]):function(n){return n===e||Wne(n,e,t)}}function Yne(e,t){return e!=null&&t in Object(e)}function jne(e,t,n){t=Wb(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=qp(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&&JT(a)&&Fb(o,a)&&(Xr(e)||Fv(e)))}function A5(e,t){return e!=null&&jne(e,t,Yne)}var qne=1,Xne=2;function Zne(e,t){return nM(e)&&M5(t)?k5(qp(e),t):function(n){var r=wn(n,e);return r===void 0&&r===t?A5(n,e):Kb(t,r,qne|Xne)}}function Jne(e){return function(t){return t==null?void 0:t[e]}}function Qne(e){return function(t){return rM(t,e)}}function ere(e){return nM(e)?Jne(qp(e)):Qne(e)}function E5(e){return typeof e=="function"?e:e==null?jT:typeof e=="object"?Xr(e)?Zne(e[0],e[1]):Une(e):ere(e)}function tre(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 nre=tre();const I5=nre;function rre(e,t){return e&&I5(e,t,Yp)}function are(e,t){return function(n,r){if(n==null)return n;if(!kd(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 ire=are(rre);const ore=ire;var sre=function(){return Gi.Date.now()};const g_=sre;var lre="Expected a function",ure=Math.max,cre=Math.min;function Jr(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(lre);t=SC(t)||0,Zr(n)&&(c=!!n.leading,f="maxWait"in n,i=f?ure(SC(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(S){var x=r,T=a;return r=a=void 0,u=S,o=e.apply(T,x),o}function v(S){return u=S,s=setTimeout(m,t),c?h(S):o}function p(S){var x=S-l,T=S-u,M=t-x;return f?cre(M,i-T):M}function g(S){var x=S-l,T=S-u;return l===void 0||x>=t||x<0||f&&T>=i}function m(){var S=g_();if(g(S))return b(S);s=setTimeout(m,p(S))}function b(S){return s=void 0,d&&r?h(S):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:b(g_())}function C(){var S=g_(),x=g(S);if(r=arguments,a=this,l=S,x){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return C.cancel=_,C.flush=w,C}function kC(e,t,n){(n!==void 0&&!Kp(e[t],n)||n===void 0&&!(t in e))&&XT(e,t,n)}function D5(e){return mo(e)&&kd(e)}function AC(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function fre(e){return Up(e,jp(e))}function dre(e,t,n,r,a,i,o){var s=AC(e,n),l=AC(t,n),u=o.get(l);if(u){kC(e,n,u);return}var c=i?i(s,l,n+"",e,t,o):void 0,f=c===void 0;if(f){var d=Xr(l),h=!d&&zv(l),v=!d&&!h&&tM(l);c=l,d||h||v?Xr(s)?c=s:D5(s)?c=n5(s):h?(f=!1,c=p5(l,!0)):v?(f=!1,c=b5(l,!0)):c=[]:Eee(l)||Fv(l)?(c=s,Fv(s)?c=fre(s):(!Zr(s)||qT(s))&&(c=_5(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),kC(e,n,c)}function P5(e,t,n,r,a){e!==t&&I5(t,function(i,o){if(a||(a=new Di),Zr(i))dre(e,t,o,n,P5,r,a);else{var s=r?r(AC(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),kC(e,o,s)}},jp)}function hre(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var vre=Math.max,pre=Math.min;function gre(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=QZ(n),a=n<0?vre(r+a,0):pre(a,r-1)),a5(e,E5(t),a,!0)}function mre(e,t){var n=-1,r=kd(e)?Array(e.length):[];return ore(e,function(a,i,o){r[++n]=t(a,i,o)}),r}function yre(e,t){var n=Xr(e)?e5:mre;return n(e,E5(t))}function bre(e,t){return Xp(yre(e,t),1)}var _re=1/0;function wre(e){var t=e==null?0:e.length;return t?Xp(e,_re):[]}function u0(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 va(e,t){return Kb(e,t)}function Wn(e){return e==null}function Sre(e){return e===void 0}var Cre=HJ(function(e,t,n){P5(e,t,n)});const L5=Cre;function R5(e,t,n,r){if(!Zr(e))return e;t=Wb(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=qp(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=Zr(c)?c:Fb(t[a+1])?[]:{})}ZT(s,l,u),s=s[l]}return e}function xre(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=rM(e,o);n(s,o)&&R5(i,Wb(o,e),s)}return i}function Tre(e,t){return xre(e,t,function(n,r){return A5(e,r)})}var Mre=See(function(e,t){return e==null?{}:Tre(e,t)});const zo=Mre;function kre(e,t,n){return e==null?e:R5(e,t,n)}var Are="Expected a function";function Uu(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Are);return Zr(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Jr(e,t,{leading:r,maxWait:t,trailing:a})}var Ere=1/0,Ire=kf&&1/lM(new kf([,-0]))[1]==Ere?function(e){return new kf(e)}:wJ;const Dre=Ire;var Pre=200;function Lre(e,t,n){var r=-1,a=OJ,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=hre;else if(i>=Pre){var u=t?null:Dre(e);if(u)return lM(u);o=!1,a=x5,l=new Kv}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 Rre=o5(function(e){return Lre(Xp(e,1,D5,!0))});const m_=Rre,Qn=e=>e===void 0,Kn=e=>typeof e=="boolean",at=e=>typeof e=="number",ja=e=>!e&&e!==0||He(e)&&e.length===0||Mt(e)&&!Object.keys(e).length,ri=e=>typeof Element>"u"?!1:e instanceof Element,Ore=e=>Wn(e),Nre=e=>lt(e)?!Number.isNaN(Number(e)):!1,O5=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ao=e=>Gp(e),Uv=e=>Object.keys(e),$re=e=>Object.entries(e),uy=(e,t,n)=>({get value(){return wn(e,t,n)},set value(r){kre(e,t,r)}});class Bre extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Yn(e,t){throw new Bre(`[${e}] ${t}`)}const N5=(e="")=>e.split(" ").filter(t=>!!t.trim()),Pi=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},so=(e,t)=>{!e||!t.trim()||e.classList.add(...N5(t))},pa=(e,t)=>{!e||!t.trim()||e.classList.remove(...N5(t))},zs=(e,t)=>{var n;if(!Vt||!e||!t)return"";let r=ti(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 Rn(e,t="px"){if(!e)return"";if(at(e)||Nre(e))return`${e}${t}`;if(lt(e))return e}const Vre=(e,t)=>{if(!Vt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=zs(e,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},uM=(e,t)=>{if(!Vt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Vre(n,t))return n;n=n.parentNode}return n};let $g;const $5=e=>{var t;if(!Vt)return 0;if($g!==void 0)return $g;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),$g=r-i,$g};function B5(e,t){if(!Vt)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.3.1 */var Fre=j({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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"})]))}}),Tl=Fre,zre=j({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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"})]))}}),cl=zre,Hre=j({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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"})]))}}),Yr=Hre,Gre=j({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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 0"})]))}}),Ub=Gre,Wre=j({name:"Back",__name:"back",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),Y("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.312z"})]))}}),Kre=Wre,Ure=j({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-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 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Yre=Ure,jre=j({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),gKe=jre,qre=j({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),V5=qre,Xre=j({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Zre=Xre,Jre=j({name:"Check",__name:"check",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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"})]))}}),Zp=Jre,Qre=j({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-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.336z"})]))}}),eae=Qre,tae=j({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),Y("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"})]))}}),cM=tae,nae=j({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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.336z"})]))}}),fM=nae,rae=j({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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.248z"}),Y("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Ml=rae,aae=j({name:"Clock",__name:"clock",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),Y("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),Y("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),F5=aae,iae=j({name:"Close",__name:"close",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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"})]))}}),$i=iae,oae=j({name:"Crop",__name:"crop",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),Y("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),mKe=oae,sae=j({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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"})]))}}),Jf=sae,lae=j({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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.688m-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"})]))}}),Qf=lae,uae=j({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),yKe=uae,cae=j({name:"Delete",__name:"delete",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),fae=cae,dae=j({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"})]))}}),bKe=dae,hae=j({name:"Document",__name:"document",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),vae=hae,pae=j({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 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-64z"})]))}}),gae=pae,mae=j({name:"Hide",__name:"hide",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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.2zM889.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"}),Y("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"})]))}}),yae=mae,bae=j({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.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.344M590.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"})]))}}),dM=bae,_ae=j({name:"Loading",__name:"loading",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.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 0m-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"})]))}}),kl=_ae,wae=j({name:"Minus",__name:"minus",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Sae=wae,Cae=j({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),OD=Cae,xae=j({name:"More",__name:"more",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Tae=xae,Mae=j({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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 32zm315.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.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),kae=Mae,Aae=j({name:"Plus",__name:"plus",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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-64z"})]))}}),z5=Aae,Eae=j({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.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"})]))}}),Iae=Eae,Dae=j({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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"})]))}}),Pae=Dae,Lae=j({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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"})]))}}),Rae=Lae,Oae=j({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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.118M512 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.412M512 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 512"})]))}}),Nae=Oae,$ae=j({name:"Search",__name:"search",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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 704"})]))}}),Bae=$ae,Vae=j({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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 0"})]))}}),Fae=Vae,zae=j({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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.248"})]))}}),Hae=zae,Gae=j({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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"})]))}}),Bg=Gae,Wae=j({name:"Star",__name:"star",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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.72zM313.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"})]))}}),Kae=Wae,Uae=j({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-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.336z"})]))}}),H5=Uae,Yae=j({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),_Ke=Yae,jae=j({name:"View",__name:"view",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 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-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),qae=jae,Xae=j({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Yb=Xae,Zae=j({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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 704m-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-64z"})]))}}),G5=Zae,Jae=j({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(R(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Y("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 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Qae=Jae;const W5="__epPropKey",ue=e=>e,eie=e=>Mt(e)&&!!e[W5],Wi=(e,t)=>{if(!Mt(e)||eie(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),$t(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(", ");jY(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[W5]:!0};return $t(e,"default")&&(l.default=a),l},Le=e=>u0(Object.entries(e).map(([t,n])=>[t,Wi(n,t)])),cn=ue([String,Object,Function]),K5={Close:$i},hM={Close:$i,SuccessFilled:H5,InfoFilled:dM,WarningFilled:Yb,CircleCloseFilled:fM},fl={success:H5,warning:Yb,error:fM,info:dM},vM={validating:kl,success:cM,error:Ml},_t=(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},U5=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),tie=(e,t)=>(e.install=n=>{n.directive(t,e)},e),In=e=>(e.install=nn,e),jb=(...e)=>t=>{e.forEach(n=>{it(n)?n(t):n.value=t})},Xe={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"},nie=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],y_=["sun","mon","tue","wed","thu","fri","sat"],wt="update:modelValue",gn="change",jr="input",ND=Symbol("INSTALLED_KEY"),To=["","default","small","large"],rie={large:40,default:32,small:24},aie=e=>rie[e||"default"],qb=e=>["",...To].includes(e);var Ga=(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))(Ga||{});function EC(e){return xn(e)&&e.type===je}function iie(e){return xn(e)&&e.type===Ur}function oie(e){return xn(e)&&!EC(e)&&!iie(e)}const sie=e=>{if(!xn(e))return{};const t=e.props||{},n=(xn(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{$t(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[ti(a)]=t[a]}),r},lie=e=>{if(!He(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Af=e=>{const t=He(e)?e:[e],n=[];return t.forEach(r=>{var a;He(r)?n.push(...Af(r)):xn(r)&&He(r.children)?n.push(...Af(r.children)):(n.push(r),xn(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...Af(r.component.subTree)))}),n},$D=e=>[...new Set(e)],Yo=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Xb=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),ed=e=>Vt?window.requestAnimationFrame(e):setTimeout(e,16),Zb=e=>Vt?window.cancelAnimationFrame(e):clearTimeout(e),Jb=()=>Math.floor(Math.random()*1e4),Sn=e=>e,uie=["class","style"],cie=/^on[A-Z]/,pM=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=P(()=>((n==null?void 0:n.value)||[]).concat(uie)),a=gt();return P(a?()=>{var i;return u0(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&cie.test(o))))}:()=>({}))},yo=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},o)=>{xe(()=>y(o),s=>{},{immediate:!0})},Y5=(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,v=d.top,p=d.width,g=d.height,m=document.documentElement.clientWidth,b=document.documentElement.clientHeight,_=-h+c,w=-v+f,C=m-h-p+c,S=b-v-g+f,x=M=>{const A=Math.min(Math.max(c+M.clientX-l,_),C),k=Math.min(Math.max(f+M.clientY-u,w),S);r={offsetX:A,offsetY:k},e.value.style.transform=`translate(${Rn(A)}, ${Rn(k)})`},T=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",T)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};yt(()=>{Ia(()=>{n.value?i():o()})}),_n(()=>{o()})};var fie={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 die=e=>(t,n)=>hie(t,n,y(e)),hie=(e,t,n)=>wn(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),vie=e=>{const t=P(()=>y(e).name),n=un(e)?e:H(e);return{lang:t,locale:n,t:die(e)}},j5=Symbol("localeContextKey"),Ht=e=>{const t=e||Ge(j5,H());return vie(P(()=>t.value||fie))},ov="el",pie="is-",Fl=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},q5=Symbol("namespaceContextKey"),gM=e=>{const t=e||(gt()?Ge(q5,H(ov)):H(ov));return P(()=>y(t)||ov)},Me=(e,t)=>{const n=gM(t);return{namespace:n,b:(p="")=>Fl(n.value,e,p,"",""),e:p=>p?Fl(n.value,e,"",p,""):"",m:p=>p?Fl(n.value,e,"","",p):"",be:(p,g)=>p&&g?Fl(n.value,e,p,g,""):"",em:(p,g)=>p&&g?Fl(n.value,e,"",p,g):"",bm:(p,g)=>p&&g?Fl(n.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?Fl(n.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${pie}${p}`:""},cssVar:p=>{const g={};for(const m in p)p[m]&&(g[`--${n.value}-${m}`]=p[m]);return g},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const g={};for(const m in p)p[m]&&(g[`--${n.value}-${e}-${m}`]=p[m]);return g},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}},X5=(e,t={})=>{un(e)||Yn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Me("popup"),r=UB(()=>n.bm("parent","hidden"));if(!Vt||Pi(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{pa(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};xe(e,l=>{if(!l){s();return}i=!Pi(document.body,r.value),i&&(o=document.body.style.width),a=$5(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=zs(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),so(document.body,r.value)}),IB(()=>s())},gie=Wi({type:ue(Boolean),default:null}),mie=Wi({type:ue(Function)}),Z5=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:gie,[n]:mie};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=gt(),{emit:h}=d,v=d.props,p=P(()=>it(v[n])),g=P(()=>v[e]===null),m=x=>{o.value!==!0&&(o.value=!0,s&&(s.value=x),it(c)&&c(x))},b=x=>{o.value!==!1&&(o.value=!1,s&&(s.value=x),it(f)&&f(x))},_=x=>{if(v.disabled===!0||it(u)&&!u())return;const T=p.value&&Vt;T&&h(t,!0),(g.value||!T)&&m(x)},w=x=>{if(v.disabled===!0||!Vt)return;const T=p.value&&Vt;T&&h(t,!1),(g.value||!T)&&b(x)},C=x=>{Kn(x)&&(v.disabled&&x?p.value&&h(t,!1):o.value!==x&&(x?m():b()))},S=()=>{o.value?w():_()};return xe(()=>v[e],C),l&&d.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&w()}),yt(()=>{C(v[e])}),{hide:w,show:_,toggle:S,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:r}};Z5("modelValue");const J5=e=>{const t=gt();return P(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var ga="top",ai="bottom",ii="right",ma="left",mM="auto",Jp=[ga,ai,ii,ma],td="start",Yv="end",yie="clippingParents",Q5="viewport",nh="popper",bie="reference",BD=Jp.reduce(function(e,t){return e.concat([t+"-"+td,t+"-"+Yv])},[]),wc=[].concat(Jp,[mM]).reduce(function(e,t){return e.concat([t,t+"-"+td,t+"-"+Yv])},[]),_ie="beforeRead",wie="read",Sie="afterRead",Cie="beforeMain",xie="main",Tie="afterMain",Mie="beforeWrite",kie="write",Aie="afterWrite",Eie=[_ie,wie,Sie,Cie,xie,Tie,Mie,kie,Aie];function bo(e){return e?(e.nodeName||"").toLowerCase():null}function Ki(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nd(e){var t=Ki(e).Element;return e instanceof t||e instanceof Element}function Qa(e){var t=Ki(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yM(e){if(typeof ShadowRoot>"u")return!1;var t=Ki(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Iie(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];!Qa(i)||!bo(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 Die(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},{});!Qa(a)||!bo(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var eF={name:"applyStyles",enabled:!0,phase:"write",fn:Iie,effect:Die,requires:["computeStyles"]};function ho(e){return e.split("-")[0]}var Yu=Math.max,c0=Math.min,rd=Math.round;function ad(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Qa(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(r=rd(n.width)/o||1),i>0&&(a=rd(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 bM(e){var t=ad(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 tF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qo(e){return Ki(e).getComputedStyle(e)}function Pie(e){return["table","td","th"].indexOf(bo(e))>=0}function Al(e){return((nd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qb(e){return bo(e)==="html"?e:e.assignedSlot||e.parentNode||(yM(e)?e.host:null)||Al(e)}function VD(e){return!Qa(e)||Qo(e).position==="fixed"?null:e.offsetParent}function Lie(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Qa(e)){var r=Qo(e);if(r.position==="fixed")return null}var a=Qb(e);for(yM(a)&&(a=a.host);Qa(a)&&["html","body"].indexOf(bo(a))<0;){var i=Qo(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 Qp(e){for(var t=Ki(e),n=VD(e);n&&Pie(n)&&Qo(n).position==="static";)n=VD(n);return n&&(bo(n)==="html"||bo(n)==="body"&&Qo(n).position==="static")?t:n||Lie(e)||t}function _M(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sv(e,t,n){return Yu(e,c0(t,n))}function Rie(e,t,n){var r=sv(e,t,n);return r>n?n:r}function nF(){return{top:0,right:0,bottom:0,left:0}}function rF(e){return Object.assign({},nF(),e)}function aF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Oie=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,rF(typeof e!="number"?e:aF(e,Jp))};function Nie(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=_M(s),u=[ma,ii].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=Oie(a.padding,n),d=bM(i),h=l==="y"?ga:ma,v=l==="y"?ai:ii,p=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],m=Qp(i),b=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,w=f[h],C=b-d[c]-f[v],S=b/2-d[c]/2+_,x=sv(w,S,C),T=l;n.modifiersData[r]=(t={},t[T]=x,t.centerOffset=x-S,t)}}function $ie(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)||!tF(t.elements.popper,a)||(t.elements.arrow=a))}var Bie={name:"arrow",enabled:!0,phase:"main",fn:Nie,effect:$ie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function id(e){return e.split("-")[1]}var Vie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fie(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:rd(t*a)/a||0,y:rd(n*a)/a||0}}function FD(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,v=o.y,p=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),_=ma,w=ga,C=window;if(u){var S=Qp(n),x="clientHeight",T="clientWidth";if(S===Ki(n)&&(S=Al(n),Qo(S).position!=="static"&&s==="absolute"&&(x="scrollHeight",T="scrollWidth")),S=S,a===ga||(a===ma||a===ii)&&i===Yv){w=ai;var M=f&&S===C&&C.visualViewport?C.visualViewport.height:S[x];p-=M-r.height,p*=l?1:-1}if(a===ma||(a===ga||a===ai)&&i===Yv){_=ii;var A=f&&S===C&&C.visualViewport?C.visualViewport.width:S[T];h-=A-r.width,h*=l?1:-1}}var k=Object.assign({position:s},u&&Vie),E=c===!0?Fie({x:h,y:p}):{x:h,y:p};if(h=E.x,p=E.y,l){var D;return Object.assign({},k,(D={},D[w]=b?"0":"",D[_]=m?"0":"",D.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",D))}return Object.assign({},k,(t={},t[w]=b?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function zie(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:id(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,FD(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,FD(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 iF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zie,data:{}},Vg={passive:!0};function Hie(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=Ki(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Vg)}),s&&l.addEventListener("resize",n.update,Vg),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Vg)}),s&&l.removeEventListener("resize",n.update,Vg)}}var oF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hie,data:{}},Gie={left:"right",right:"left",bottom:"top",top:"bottom"};function cy(e){return e.replace(/left|right|bottom|top/g,function(t){return Gie[t]})}var Wie={start:"end",end:"start"};function zD(e){return e.replace(/start|end/g,function(t){return Wie[t]})}function wM(e){var t=Ki(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function SM(e){return ad(Al(e)).left+wM(e).scrollLeft}function Kie(e){var t=Ki(e),n=Al(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+SM(e),y:s}}function Uie(e){var t,n=Al(e),r=wM(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Yu(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Yu(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+SM(e),l=-r.scrollTop;return Qo(a||n).direction==="rtl"&&(s+=Yu(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function CM(e){var t=Qo(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function sF(e){return["html","body","#document"].indexOf(bo(e))>=0?e.ownerDocument.body:Qa(e)&&CM(e)?e:sF(Qb(e))}function lv(e,t){var n;t===void 0&&(t=[]);var r=sF(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ki(r),o=a?[i].concat(i.visualViewport||[],CM(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(lv(Qb(o)))}function IC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yie(e){var t=ad(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 HD(e,t){return t===Q5?IC(Kie(e)):nd(t)?Yie(t):IC(Uie(Al(e)))}function jie(e){var t=lv(Qb(e)),n=["absolute","fixed"].indexOf(Qo(e).position)>=0,r=n&&Qa(e)?Qp(e):e;return nd(r)?t.filter(function(a){return nd(a)&&tF(a,r)&&bo(a)!=="body"}):[]}function qie(e,t,n){var r=t==="clippingParents"?jie(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=HD(e,l);return s.top=Yu(u.top,s.top),s.right=c0(u.right,s.right),s.bottom=c0(u.bottom,s.bottom),s.left=Yu(u.left,s.left),s},HD(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 lF(e){var t=e.reference,n=e.element,r=e.placement,a=r?ho(r):null,i=r?id(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case ga:l={x:o,y:t.y-n.height};break;case ai:l={x:o,y:t.y+t.height};break;case ii:l={x:t.x+t.width,y:s};break;case ma:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?_M(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case td:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Yv:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function jv(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?yie:i,s=n.rootBoundary,l=s===void 0?Q5:s,u=n.elementContext,c=u===void 0?nh:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,p=rF(typeof v!="number"?v:aF(v,Jp)),g=c===nh?bie:nh,m=e.rects.popper,b=e.elements[d?g:c],_=qie(nd(b)?b:b.contextElement||Al(e.elements.popper),o,l),w=ad(e.elements.reference),C=lF({reference:w,element:m,strategy:"absolute",placement:a}),S=IC(Object.assign({},m,C)),x=c===nh?S:w,T={top:_.top-x.top+p.top,bottom:x.bottom-_.bottom+p.bottom,left:_.left-x.left+p.left,right:x.right-_.right+p.right},M=e.modifiersData.offset;if(c===nh&&M){var A=M[a];Object.keys(T).forEach(function(k){var E=[ii,ai].indexOf(k)>=0?1:-1,D=[ga,ai].indexOf(k)>=0?"y":"x";T[k]+=A[D]*E})}return T}function Xie(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?wc:l,c=id(r),f=c?s?BD:BD.filter(function(v){return id(v)===c}):Jp,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,p){return v[p]=jv(e,{placement:p,boundary:a,rootBoundary:i,padding:o})[ho(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function Zie(e){if(ho(e)===mM)return[];var t=cy(e);return[zD(e),t,zD(t)]}function Jie(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,v=h===void 0?!0:h,p=n.allowedAutoPlacements,g=t.options.placement,m=ho(g),b=m===g,_=l||(b||!v?[cy(g)]:Zie(g)),w=[g].concat(_).reduce(function(ae,Q){return ae.concat(ho(Q)===mM?Xie(t,{placement:Q,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):Q)},[]),C=t.rects.reference,S=t.rects.popper,x=new Map,T=!0,M=w[0],A=0;A<w.length;A++){var k=w[A],E=ho(k),D=id(k)===td,L=[ga,ai].indexOf(E)>=0,B=L?"width":"height",$=jv(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),O=L?D?ii:ma:D?ai:ga;C[B]>S[B]&&(O=cy(O));var N=cy(O),I=[];if(i&&I.push($[E]<=0),s&&I.push($[O]<=0,$[N]<=0),I.every(function(ae){return ae})){M=k,T=!1;break}x.set(k,I)}if(T)for(var F=v?3:1,G=function(ae){var Q=w.find(function(ee){var te=x.get(ee);if(te)return te.slice(0,ae).every(function(q){return q})});if(Q)return M=Q,"break"},U=F;U>0;U--){var J=G(U);if(J==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var Qie={name:"flip",enabled:!0,phase:"main",fn:Jie,requiresIfExists:["offset"],data:{_skip:!1}};function GD(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 WD(e){return[ga,ii,ai,ma].some(function(t){return e[t]>=0})}function eoe(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=jv(t,{elementContext:"reference"}),s=jv(t,{altBoundary:!0}),l=GD(o,r),u=GD(s,a,i),c=WD(l),f=WD(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 toe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eoe};function noe(e,t,n){var r=ho(e),a=[ma,ga].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,[ma,ii].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function roe(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=wc.reduce(function(c,f){return c[f]=noe(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 aoe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:roe};function ioe(e){var t=e.state,n=e.name;t.modifiersData[n]=lF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var uF={name:"popperOffsets",enabled:!0,phase:"read",fn:ioe,data:{}};function ooe(e){return e==="x"?"y":"x"}function soe(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,v=n.tetherOffset,p=v===void 0?0:v,g=jv(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=ho(t.placement),b=id(t.placement),_=!b,w=_M(m),C=ooe(w),S=t.modifiersData.popperOffsets,x=t.rects.reference,T=t.rects.popper,M=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,A=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(S){if(i){var D,L=w==="y"?ga:ma,B=w==="y"?ai:ii,$=w==="y"?"height":"width",O=S[w],N=O+g[L],I=O-g[B],F=h?-T[$]/2:0,G=b===td?x[$]:T[$],U=b===td?-T[$]:-x[$],J=t.elements.arrow,ae=h&&J?bM(J):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nF(),ee=Q[L],te=Q[B],q=sv(0,x[$],ae[$]),de=_?x[$]/2-F-q-ee-A.mainAxis:G-q-ee-A.mainAxis,ve=_?-x[$]/2+F+q+te+A.mainAxis:U+q+te+A.mainAxis,ie=t.elements.arrow&&Qp(t.elements.arrow),W=ie?w==="y"?ie.clientTop||0:ie.clientLeft||0:0,Z=(D=k==null?void 0:k[w])!=null?D:0,oe=O+de-Z-W,pe=O+ve-Z,Se=sv(h?c0(N,oe):N,O,h?Yu(I,pe):I);S[w]=Se,E[w]=Se-O}if(s){var me,Ee=w==="x"?ga:ma,Ce=w==="x"?ai:ii,we=S[C],Te=C==="y"?"height":"width",Ne=we+g[Ee],Be=we-g[Ce],We=[ga,ma].indexOf(m)!==-1,Ae=(me=k==null?void 0:k[C])!=null?me:0,ze=We?Ne:we-x[Te]-T[Te]-Ae+A.altAxis,rt=We?we+x[Te]+T[Te]-Ae-A.altAxis:Be,vt=h&&We?Rie(ze,we,rt):sv(h?ze:Ne,we,h?rt:Be);S[C]=vt,E[C]=vt-we}t.modifiersData[r]=E}}var loe={name:"preventOverflow",enabled:!0,phase:"main",fn:soe,requiresIfExists:["offset"]};function uoe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function coe(e){return e===Ki(e)||!Qa(e)?wM(e):uoe(e)}function foe(e){var t=e.getBoundingClientRect(),n=rd(t.width)/e.offsetWidth||1,r=rd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function doe(e,t,n){n===void 0&&(n=!1);var r=Qa(t),a=Qa(t)&&foe(t),i=Al(t),o=ad(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((bo(t)!=="body"||CM(i))&&(s=coe(t)),Qa(t)?(l=ad(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=SM(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function hoe(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 voe(e){var t=hoe(e);return Eie.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function poe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function goe(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 KD={placement:"bottom",modifiers:[],strategy:"absolute"};function UD(){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 xM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?KD:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},KD,i),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:nd(o)?lv(o):o.contextElement?lv(o.contextElement):[],popper:lv(s)};var m=voe(goe([].concat(r,u.options.modifiers)));return u.orderedModifiers=m.filter(function(b){return b.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var p=u.elements,g=p.reference,m=p.popper;if(UD(g,m)){u.rects={reference:doe(g,Qp(m),u.options.strategy==="fixed"),popper:bM(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 b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var _=u.orderedModifiers[b],w=_.fn,C=_.options,S=C===void 0?{}:C,x=_.name;typeof w=="function"&&(u=w({state:u,options:S,name:x,instance:d})||u)}}}},update:poe(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!UD(o,s))return d;d.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,b=m===void 0?{}:m,_=p.effect;if(typeof _=="function"){var w=_({state:u,name:g,instance:d,options:b}),C=function(){};c.push(w||C)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}xM();var moe=[oF,uF,iF,eF];xM({defaultModifiers:moe});var yoe=[oF,uF,iF,eF,aoe,Qie,loe,Bie,toe],cF=xM({defaultModifiers:yoe});const boe=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=_oe(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=P(()=>{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=ln(),o=H({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 xe(a,l=>{const u=y(i);u&&u.setOptions(l)},{deep:!0}),xe([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=cF(l,u,y(a)))}),_n(()=>{s()}),{state:P(()=>{var l;return{...((l=y(i))==null?void 0:l.state)||{}}}),styles:P(()=>y(o).styles),attributes:P(()=>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:P(()=>y(i))}};function _oe(e){const t=Object.keys(e.elements),n=u0(t.map(a=>[a,e.styles[a]||{}])),r=u0(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const TM=e=>{if(!e)return{onClick:nn,onMousedown:nn,onMouseup:nn};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}}},woe=(e,t=0)=>{if(t===0)return e;const n=H(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return yt(a),xe(()=>e.value,i=>{i?a():n.value=i}),n};function YD(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return Bb(()=>n()),{registerTimeout:t,cancelTimeout:n}}const jD={prefix:Math.floor(Math.random()*1e4),current:0},Soe=Symbol("elIdInjection"),fF=()=>gt()?Ge(Soe,jD):jD,oi=e=>{const t=fF(),n=gM();return P(()=>y(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let of=[];const qD=e=>{const t=e;t.key===Xe.esc&&of.forEach(n=>n(t))},Coe=e=>{yt(()=>{of.length===0&&document.addEventListener("keydown",qD),Vt&&of.push(e)}),_n(()=>{of=of.filter(t=>t!==e),of.length===0&&Vt&&document.removeEventListener("keydown",qD)})};let XD;const dF=()=>{const e=gM(),t=fF(),n=P(()=>`${e.value}-popper-container-${t.prefix}`),r=P(()=>`#${n.value}`);return{id:n,selector:r}},xoe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Toe=()=>{const{id:e,selector:t}=dF();return Pb(()=>{Vt&&!XD&&!document.body.querySelector(t.value)&&(XD=xoe(e.value))}),{id:e,selector:t}},Moe=Le({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),hF=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=YD(),{registerTimeout:o,cancelTimeout:s}=YD();return{onOpen:c=>{i(()=>{r(c);const f=y(n);at(f)&&f>0&&o(()=>{a(c)},f)},y(e))},onClose:c=>{s(),i(()=>{a(c)},y(t))}}},vF=Symbol("elForwardRef"),koe=e=>{Et(vF,{setForwardRef:n=>{e.value=n}})},Aoe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),ZD=H(0),pF=2e3,gF=Symbol("zIndexContextKey"),Ad=e=>{const t=e||(gt()?Ge(gF,void 0):void 0),n=P(()=>{const i=y(t);return at(i)?i:pF}),r=P(()=>n.value+ZD.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(ZD.value++,r.value)}},qv=Math.min,Ef=Math.max,f0=Math.round,dl=e=>({x:e,y:e});function Eoe(e,t,n){return Ef(e,qv(t,n))}function mF(e,t){return typeof e=="function"?e(t):e}function MM(e){return e.split("-")[0]}function kM(e){return e.split("-")[1]}function Ioe(e){return e==="x"?"y":"x"}function yF(e){return e==="y"?"height":"width"}function AM(e){return["top","bottom"].includes(MM(e))?"y":"x"}function bF(e){return Ioe(AM(e))}function Doe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Poe(e){return typeof e!="number"?Doe(e):{top:e,right:e,bottom:e,left:e}}function _F(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function JD(e,t,n){let{reference:r,floating:a}=e;const i=AM(t),o=bF(t),s=yF(o),l=MM(t),u=i==="y",c=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,d=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-a.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-a.width,y:f};break;default:h={x:r.x,y:r.y}}switch(kM(t)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}const Loe=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}=JD(u,r,l),d=r,h={},v=0;for(let p=0;p<s.length;p++){const{name:g,fn:m}=s[p],{x:b,y:_,data:w,reset:C}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=b??c,f=_??f,h={...h,[g]:{...h[g],...w}},C&&v<=50){v++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:c,y:f}=JD(u,d,l)),p=-1;continue}}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}},Roe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=mF(e,t)||{};if(u==null)return{};const f=Poe(c),d={x:n,y:r},h=bF(a),v=yF(h),p=await o.getDimensions(u),g=h==="y",m=g?"top":"left",b=g?"bottom":"right",_=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[h]-d[h]-i.floating[v],C=d[h]-i.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let x=S?S[_]:0;(!x||!await(o.isElement==null?void 0:o.isElement(S)))&&(x=s.floating[_]||i.floating[v]);const T=w/2-C/2,M=x/2-p[v]/2-1,A=qv(f[m],M),k=qv(f[b],M),E=A,D=x-p[v]-k,L=x/2-p[v]/2+T,B=Eoe(E,L,D),$=!l.arrow&&kM(a)!=null&&L!=B&&i.reference[v]/2-(L<E?A:k)-p[v]/2<0,O=$?L<E?L-E:L-D:0;return{[h]:d[h]+O,data:{[h]:B,centerOffset:L-B-O,...$&&{alignmentOffset:O}},reset:$}}});async function Ooe(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=MM(n),s=kM(n),l=AM(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,f=mF(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const Noe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await Ooe(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function hl(e){return wF(e)?(e.nodeName||"").toLowerCase():"#document"}function Da(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function El(e){var t;return(t=(wF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wF(e){return e instanceof Node||e instanceof Da(e).Node}function es(e){return e instanceof Element||e instanceof Da(e).Element}function _o(e){return e instanceof HTMLElement||e instanceof Da(e).HTMLElement}function QD(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Da(e).ShadowRoot}function eg(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function $oe(e){return["table","td","th"].includes(hl(e))}function EM(e){const t=IM(),n=si(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Boe(e){let t=od(e);for(;_o(t)&&!e1(t);){if(EM(t))return t;t=od(t)}return null}function IM(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function e1(e){return["html","body","#document"].includes(hl(e))}function si(e){return Da(e).getComputedStyle(e)}function t1(e){return es(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function od(e){if(hl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||QD(e)&&e.host||El(e);return QD(t)?t.host:t}function SF(e){const t=od(e);return e1(t)?e.ownerDocument?e.ownerDocument.body:e.body:_o(t)&&eg(t)?t:SF(t)}function DC(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=SF(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Da(a);return i?t.concat(o,o.visualViewport||[],eg(a)?a:[],o.frameElement&&n?DC(o.frameElement):[]):t.concat(a,DC(a,[],n))}function CF(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=_o(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=f0(n)!==i||f0(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function xF(e){return es(e)?e:e.contextElement}function If(e){const t=xF(e);if(!_o(t))return dl(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=CF(t);let o=(i?f0(n.width):n.width)/r,s=(i?f0(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Voe=dl(0);function TF(e){const t=Da(e);return!IM()||!t.visualViewport?Voe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Foe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Da(e)?!1:t}function Xv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=xF(e);let o=dl(1);t&&(r?es(r)&&(o=If(r)):o=If(e));const s=Foe(i,n,r)?TF(i):dl(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,c=a.width/o.x,f=a.height/o.y;if(i){const d=Da(i),h=r&&es(r)?Da(r):r;let v=d.frameElement;for(;v&&r&&h!==d;){const p=If(v),g=v.getBoundingClientRect(),m=si(v),b=g.left+(v.clientLeft+parseFloat(m.paddingLeft))*p.x,_=g.top+(v.clientTop+parseFloat(m.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=b,u+=_,v=Da(v).frameElement}}return _F({width:c,height:f,x:l,y:u})}function zoe(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=_o(n),i=El(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},s=dl(1);const l=dl(0);if((a||!a&&r!=="fixed")&&((hl(n)!=="body"||eg(i))&&(o=t1(n)),_o(n))){const u=Xv(n);s=If(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}}function Hoe(e){return Array.from(e.getClientRects())}function MF(e){return Xv(El(e)).left+t1(e).scrollLeft}function Goe(e){const t=El(e),n=t1(e),r=e.ownerDocument.body,a=Ef(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ef(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+MF(e);const s=-n.scrollTop;return si(r).direction==="rtl"&&(o+=Ef(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function Woe(e,t){const n=Da(e),r=El(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=IM();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function Koe(e,t){const n=Xv(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=_o(e)?If(e):dl(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=r*i.y;return{width:o,height:s,x:l,y:u}}function eP(e,t,n){let r;if(t==="viewport")r=Woe(e,n);else if(t==="document")r=Goe(El(e));else if(es(t))r=Koe(t,n);else{const a=TF(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return _F(r)}function kF(e,t){const n=od(e);return n===t||!es(n)||e1(n)?!1:si(n).position==="fixed"||kF(n,t)}function Uoe(e,t){const n=t.get(e);if(n)return n;let r=DC(e,[],!1).filter(s=>es(s)&&hl(s)!=="body"),a=null;const i=si(e).position==="fixed";let o=i?od(e):e;for(;es(o)&&!e1(o);){const s=si(o),l=EM(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||eg(o)&&!l&&kF(e,o))?r=r.filter(c=>c!==o):a=s,o=od(o)}return t.set(e,r),r}function Yoe(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?Uoe(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const f=eP(t,c,a);return u.top=Ef(f.top,u.top),u.right=qv(f.right,u.right),u.bottom=qv(f.bottom,u.bottom),u.left=Ef(f.left,u.left),u},eP(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function joe(e){return CF(e)}function qoe(e,t,n){const r=_o(t),a=El(t),i=n==="fixed",o=Xv(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=dl(0);if(r||!r&&!i)if((hl(t)!=="body"||eg(a))&&(s=t1(t)),r){const u=Xv(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else a&&(l.x=MF(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function tP(e,t){return!_o(e)||si(e).position==="fixed"?null:t?t(e):e.offsetParent}function AF(e,t){const n=Da(e);if(!_o(e))return n;let r=tP(e,t);for(;r&&$oe(r)&&si(r).position==="static";)r=tP(r,t);return r&&(hl(r)==="html"||hl(r)==="body"&&si(r).position==="static"&&!EM(r))?n:r||Boe(e)||n}const Xoe=async function(e){let{reference:t,floating:n,strategy:r}=e;const a=this.getOffsetParent||AF,i=this.getDimensions;return{reference:qoe(t,await a(n),r),floating:{x:0,y:0,...await i(n)}}};function Zoe(e){return si(e).direction==="rtl"}const Joe={convertOffsetParentRelativeRectToViewportRelativeRect:zoe,getDocumentElement:El,getClippingRect:Yoe,getOffsetParent:AF,getElementRects:Xoe,getClientRects:Hoe,getDimensions:joe,getScale:If,isElement:es,isRTL:Zoe},Qoe=(e,t,n)=>{const r=new Map,a={platform:Joe,...n},i={...a.platform,_c:r};return Loe(e,t,{...a,platform:i})};Le({});const ese=e=>{if(!Vt)return;if(!e)return e;const t=ka(e);return t||(un(e)?t:e)},tse=({middleware:e,placement:t,strategy:n})=>{const r=H(),a=H(),i=H(),o=H(),s=H({}),l={x:i,y:o,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!Vt)return;const c=ese(r),f=ka(a);if(!c||!f)return;const d=await Qoe(c,f,{placement:y(t),strategy:y(n),middleware:y(e)});Uv(l).forEach(h=>{l[h].value=d[h]})};return yt(()=>{Ia(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},nse=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=y(e);return r?Roe({element:r,padding:t}).fn(n):{}}});function rse(e){const t=H();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 ase=(e,t,n)=>Af(e.subTree).filter(i=>{var o;return xn(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),DM=(e,t)=>{const n={},r=ln([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=ase(e,t,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},wr=Wi({type:String,values:To,required:!1}),EF=Symbol("size"),ise=()=>{const e=Ge(EF,{});return P(()=>y(e.size)||"")};function ose(e,{afterFocus:t,afterBlur:n}={}){const r=gt(),{emit:a}=r,i=ln(),o=H(!1),s=c=>{o.value||(o.value=!0,a("focus",c),t==null||t())},l=c=>{var f;c.relatedTarget&&((f=i.value)!=null&&f.contains(c.relatedTarget))||(o.value=!1,a("blur",c),n==null||n())},u=()=>{var c;(c=e.value)==null||c.focus()};return xe(i,c=>{c&&c.setAttribute("tabindex","-1")}),yn(i,"click",u),{wrapperRef:i,isFocused:o,handleFocus:s,handleBlur:l}}const IF=Symbol(),d0=H();function n1(e,t=void 0){const n=gt()?Ge(IF,d0):d0;return e?P(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function r1(e,t){const n=n1(),r=Me(e,P(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||ov})),a=Ht(P(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Ad(P(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||pF})),o=P(()=>{var s;return y(t)||((s=n.value)==null?void 0:s.size)||""});return PM(P(()=>y(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const PM=(e,t,n=!1)=>{var r;const a=!!gt(),i=a?n1():void 0,o=(r=t==null?void 0:t.provide)!=null?r:a?Et:void 0;if(!o)return;const s=P(()=>{const l=y(e);return i!=null&&i.value?sse(i.value,l):l});return o(IF,s),o(j5,P(()=>s.value.locale)),o(q5,P(()=>s.value.namespace)),o(gF,P(()=>s.value.zIndex)),o(EF,{size:P(()=>s.value.size||"")}),(n||!d0.value)&&(d0.value=s.value),s},sse=(e,t)=>{var n;const r=[...new Set([...Uv(e),...Uv(t)])],a={};for(const i of r)a[i]=(n=t[i])!=null?n:e[i];return a},lse=Le({a11y:{type:Boolean,default:!0},locale:{type:ue(Object)},size:wr,button:{type:ue(Object)},experimentalFeatures:{type:ue(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ue(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),PC={},use=j({name:"ElConfigProvider",props:lse,setup(e,{slots:t}){xe(()=>e.message,r=>{Object.assign(PC,r??{})},{immediate:!0,deep:!0});const n=PM(e);return()=>_e(t,"default",{config:n==null?void 0:n.value})}}),cse=_t(use),fse="2.3.14",dse=(e=[])=>({version:fse,install:(n,r)=>{n[ND]||(n[ND]=!0,e.forEach(a=>n.use(a)),r&&PM(r,n,!0))}}),hse=Le({zIndex:{type:ue([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),vse={scroll:({scrollTop:e,fixed:t})=>at(e)&&Kn(t),[gn]:e=>Kn(e)};var Pe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const DF="ElAffix",pse=j({name:DF}),gse=j({...pse,props:hse,emits:vse,setup(e,{expose:t,emit:n}){const r=e,a=Me("affix"),i=ln(),o=ln(),s=ln(),{height:l}=TZ(),{height:u,width:c,top:f,bottom:d,update:h}=QI(o,{windowScroll:!1}),v=QI(i),p=H(!1),g=H(0),m=H(0),b=P(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),_=P(()=>{if(!p.value)return{};const S=r.offset?Rn(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?S:"",bottom:r.position==="bottom"?S:"",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 S=v.bottom.value-r.offset-u.value;p.value=r.offset>f.value&&v.bottom.value>0,m.value=S<0?S:0}else p.value=r.offset>f.value;else if(r.target){const S=l.value-v.top.value-r.offset-u.value;p.value=l.value-r.offset<d.value&&l.value>v.top.value,m.value=S<0?-S:0}else p.value=l.value-r.offset<d.value},C=()=>{h(),n("scroll",{scrollTop:g.value,fixed:p.value})};return xe(p,S=>n("change",S)),yt(()=>{var S;r.target?(i.value=(S=document.querySelector(r.target))!=null?S:void 0,i.value||Yn(DF,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=uM(o.value,!0),h()}),yn(s,"scroll",C),Ia(w),t({update:w,updateRoot:h}),(S,x)=>(R(),K("div",{ref_key:"root",ref:o,class:V(y(a).b()),style:Ye(y(b))},[Y("div",{class:V({[y(a).m("fixed")]:p.value}),style:Ye(y(_))},[_e(S.$slots,"default")],6)],6))}});var mse=Pe(gse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const yse=_t(mse),bse=Le({size:{type:ue([Number,String])},color:{type:String}}),_se=j({name:"ElIcon",inheritAttrs:!1}),wse=j({..._se,props:bse,setup(e){const t=e,n=Me("icon"),r=P(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Qn(a)?void 0:Rn(a),"--color":i}});return(a,i)=>(R(),K("i",St({class:y(n).b(),style:y(r)},a.$attrs),[_e(a.$slots,"default")],16))}});var Sse=Pe(wse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Ke=_t(Sse),Cse=["light","dark"],xse=Le({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Uv(fl),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Cse,default:"light"}}),Tse={close:e=>e instanceof MouseEvent},Mse=j({name:"ElAlert"}),kse=j({...Mse,props:xse,emits:Tse,setup(e,{emit:t}){const n=e,{Close:r}=hM,a=Tr(),i=Me("alert"),o=H(!0),s=P(()=>fl[n.type]),l=P(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=P(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,t("close",f)};return(f,d)=>(R(),ce($n,{name:y(i).b("fade"),persisted:""},{default:re(()=>[dt(Y("div",{class:V([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)?(R(),ce(y(Ke),{key:0,class:V(y(l))},{default:re(()=>[(R(),ce(Ct(y(s))))]),_:1},8,["class"])):se("v-if",!0),Y("div",{class:V(y(i).e("content"))},[f.title||f.$slots.title?(R(),K("span",{key:0,class:V([y(i).e("title"),y(u)])},[_e(f.$slots,"title",{},()=>[Ut(De(f.title),1)])],2)):se("v-if",!0),f.$slots.default||f.description?(R(),K("p",{key:1,class:V(y(i).e("description"))},[_e(f.$slots,"default",{},()=>[Ut(De(f.description),1)])],2)):se("v-if",!0),f.closable?(R(),K(je,{key:2},[f.closeText?(R(),K("div",{key:0,class:V([y(i).e("close-btn"),y(i).is("customed")]),onClick:c},De(f.closeText),3)):(R(),ce(y(Ke),{key:1,class:V(y(i).e("close-btn")),onClick:c},{default:re(()=>[X(y(r))]),_:1},8,["class"]))],64)):se("v-if",!0)],2)],2),[[Kt,o.value]])]),_:3},8,["name"]))}});var Ase=Pe(kse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const Ese=_t(Ase),Sc=Symbol("formContextKey"),wo=Symbol("formItemContextKey"),jn=(e,t={})=>{const n=H(void 0),r=t.prop?n:J5("size"),a=t.global?n:ise(),i=t.form?{size:void 0}:Ge(Sc,void 0),o=t.formItem?{size:void 0}:Ge(wo,void 0);return P(()=>r.value||y(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},_a=e=>{const t=J5("disabled"),n=Ge(Sc,void 0);return P(()=>t.value||y(e)||(n==null?void 0:n.disabled)||!1)},ra=()=>{const e=Ge(Sc,void 0),t=Ge(wo,void 0);return{form:e,formItem:t}},Il=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=H(!1)),r||(r=H(!1));const a=H();let i;const o=P(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return yt(()=>{i=xe([Mn(e,"id"),n],([s,l])=>{const u=s??(l?void 0:oi().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})}),xl(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},Ise=Le({size:{type:String,values:To},disabled:Boolean}),Dse=Le({...Ise,model:Object,rules:{type:ue(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:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Pse={validate:(e,t,n)=>(He(e)||lt(e))&&Kn(t)&&lt(n)};function Lse(){const e=H([]),t=P(()=>{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 Fg=(e,t)=>{const n=oc(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},Rse="ElForm",Ose=j({name:Rse}),Nse=j({...Ose,props:Dse,emits:Pse,setup(e,{expose:t,emit:n}){const r=e,a=[],i=jn(),o=Me("form"),s=P(()=>{const{labelPosition:b,inline:_}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${b}`)]:b,[o.m("inline")]:_}]}),l=b=>{a.push(b)},u=b=>{b.prop&&a.splice(a.indexOf(b),1)},c=(b=[])=>{r.model&&Fg(a,b).forEach(_=>_.resetField())},f=(b=[])=>{Fg(a,b).forEach(_=>_.clearValidate())},d=P(()=>!!r.model),h=b=>{if(a.length===0)return[];const _=Fg(a,b);return _.length?_:[]},v=async b=>g(void 0,b),p=async(b=[])=>{if(!d.value)return!1;const _=h(b);if(_.length===0)return!0;let w={};for(const C of _)try{await C.validate("")}catch(S){w={...w,...S}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(b=[],_)=>{const w=!it(_);try{const C=await p(b);return C===!0&&(_==null||_(C)),C}catch(C){if(C instanceof Error)throw C;const S=C;return r.scrollToError&&m(Object.keys(S)[0]),_==null||_(!1,S),w&&Promise.reject(S)}},m=b=>{var _;const w=Fg(a,b)[0];w&&((_=w.$el)==null||_.scrollIntoView(r.scrollIntoViewOptions))};return xe(()=>r.rules,()=>{r.validateOnRuleChange&&v().catch(b=>void 0)},{deep:!0}),Et(Sc,jt({...ir(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...Lse()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(b,_)=>(R(),K("form",{class:V(y(s))},[_e(b.$slots,"default")],2))}});var $se=Pe(Nse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Iu(){return Iu=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},Iu.apply(this,arguments)}function Bse(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zv(e,t)}function LC(e){return LC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},LC(e)}function Zv(e,t){return Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Zv(e,t)}function Vse(){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 fy(e,t,n){return Vse()?fy=Reflect.construct.bind():fy=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&Zv(u,o.prototype),u},fy.apply(null,arguments)}function Fse(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function RC(e){var t=typeof Map=="function"?new Map:void 0;return RC=function(r){if(r===null||!Fse(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 fy(r,arguments,LC(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Zv(a,r)},RC(e)}var zse=/%[sdj%]/g,Hse=function(){};typeof process<"u"&&process.env;function OC(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 Aa(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(zse,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 Gse(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function or(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Gse(t)&&typeof e=="string"&&!e)}function Wse(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 nP(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 Kse(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var rP=function(e){Bse(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}(RC(Error));function Use(e,t,n,r,a){if(t.first){var i=new Promise(function(d,h){var v=function(m){return r(m),m.length?h(new rP(m,OC(m))):d(a)},p=Kse(e);nP(p,n,v)});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 v=function(g){if(c.push.apply(c,g),u++,u===l)return r(c),c.length?h(new rP(c,OC(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?nP(g,n,v):Wse(g,n,v)})});return f.catch(function(d){return d}),f}function Yse(e){return!!(e&&e.message!==void 0)}function jse(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function aP(e,t){return function(n){var r;return e.fullFields?r=jse(t,e.fullFields):r=t[n.field||e.fullField],Yse(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 iP(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]=Iu({},e[n],r):e[n]=r}}return e}var PF=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||or(n,o||t.type))&&a.push(Aa(i.messages.required,t.fullField))},qse=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Aa(i.messages.whitespace,t.fullField))},zg,Xse=function(){if(zg)return zg;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=(`
  10. (?:
  11. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  12. (?:`+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
  13. (?:`+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
  14. (?:`+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
  15. (?:`+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
  16. (?:`+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
  17. (?:`+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
  18. (?::(?:(?::`+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
  19. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  20. `).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(_){return _&&_.exact?o:new RegExp(""+t(_)+n+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+a+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+v+p+")"+g+m;return zg=new RegExp("(?:^"+b+"$)","i"),zg},oP={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},Bh={integer:function(t){return Bh.number(t)&&parseInt(t,10)===t},float:function(t){return Bh.number(t)&&!Bh.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"&&!Bh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(oP.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Xse())},hex:function(t){return typeof t=="string"&&!!t.match(oP.hex)}},Zse=function(t,n,r,a,i){if(t.required&&n===void 0){PF(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?Bh[s](n)||a.push(Aa(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(Aa(i.messages.types[s],t.fullField,t.type))},Jse=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",v=Array.isArray(n);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==t.len&&a.push(Aa(i.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(Aa(i.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(Aa(i.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(Aa(i.messages[f].range,t.fullField,t.min,t.max))},Lc="enum",Qse=function(t,n,r,a,i){t[Lc]=Array.isArray(t[Lc])?t[Lc]:[],t[Lc].indexOf(n)===-1&&a.push(Aa(i.messages[Lc],t.fullField,t[Lc].join(", ")))},ele=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Aa(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(Aa(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},an={required:PF,whitespace:qse,type:Zse,range:Jse,enum:Qse,pattern:ele},tle=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n,"string")&&!t.required)return r();an.required(t,n,a,o,i,"string"),or(n,"string")||(an.type(t,n,a,o,i),an.range(t,n,a,o,i),an.pattern(t,n,a,o,i),t.whitespace===!0&&an.whitespace(t,n,a,o,i))}r(o)},nle=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n)&&!t.required)return r();an.required(t,n,a,o,i),n!==void 0&&an.type(t,n,a,o,i)}r(o)},rle=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),or(n)&&!t.required)return r();an.required(t,n,a,o,i),n!==void 0&&(an.type(t,n,a,o,i),an.range(t,n,a,o,i))}r(o)},ale=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n)&&!t.required)return r();an.required(t,n,a,o,i),n!==void 0&&an.type(t,n,a,o,i)}r(o)},ile=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n)&&!t.required)return r();an.required(t,n,a,o,i),or(n)||an.type(t,n,a,o,i)}r(o)},ole=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n)&&!t.required)return r();an.required(t,n,a,o,i),n!==void 0&&(an.type(t,n,a,o,i),an.range(t,n,a,o,i))}r(o)},sle=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n)&&!t.required)return r();an.required(t,n,a,o,i),n!==void 0&&(an.type(t,n,a,o,i),an.range(t,n,a,o,i))}r(o)},lle=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();an.required(t,n,a,o,i,"array"),n!=null&&(an.type(t,n,a,o,i),an.range(t,n,a,o,i))}r(o)},ule=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n)&&!t.required)return r();an.required(t,n,a,o,i),n!==void 0&&an.type(t,n,a,o,i)}r(o)},cle="enum",fle=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n)&&!t.required)return r();an.required(t,n,a,o,i),n!==void 0&&an[cle](t,n,a,o,i)}r(o)},dle=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n,"string")&&!t.required)return r();an.required(t,n,a,o,i),or(n,"string")||an.pattern(t,n,a,o,i)}r(o)},hle=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n,"date")&&!t.required)return r();if(an.required(t,n,a,o,i),!or(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),an.type(t,l,a,o,i),l&&an.range(t,l.getTime(),a,o,i)}}r(o)},vle=function(t,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;an.required(t,n,a,o,i,s),r(o)},b_=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(or(n,o)&&!t.required)return r();an.required(t,n,a,s,i,o),or(n,o)||an.type(t,n,a,s,i)}r(s)},ple=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(or(n)&&!t.required)return r();an.required(t,n,a,o,i)}r(o)},uv={string:tle,method:nle,number:rle,boolean:ale,regexp:ile,integer:ole,float:sle,array:lle,object:ule,enum:fle,pattern:dle,date:hle,url:b_,hex:b_,email:b_,required:vle,any:ple};function NC(){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 $C=NC(),tg=function(){function e(n){this.rules=null,this._messages=$C,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=iP(NC(),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(p){var g=[],m={};function b(w){if(Array.isArray(w)){var C;g=(C=g).concat.apply(C,w)}else g.push(w)}for(var _=0;_<p.length;_++)b(p[_]);g.length?(m=OC(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===$C&&(f=NC()),iP(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(p){var g=o.rules[p],m=s[p];g.forEach(function(b){var _=b;typeof _.transform=="function"&&(s===r&&(s=Iu({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=Iu({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=p,_.fullField=_.fullField||p,_.type=o.getType(_),d[p]=d[p]||[],d[p].push({rule:_,value:m,source:s,field:p}))})});var v={};return Use(d,l,function(p,g){var m=p.rule,b=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");b=b&&(m.required||!m.required&&p.value),m.field=p.field;function _(S,x){return Iu({},x,{fullField:m.fullField+"."+S,fullFields:m.fullFields?[].concat(m.fullFields,[S]):[S]})}function w(S){S===void 0&&(S=[]);var x=Array.isArray(S)?S:[S];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&m.message!==void 0&&(x=[].concat(m.message));var T=x.map(aP(m,s));if(l.first&&T.length)return v[m.field]=1,g(T);if(!b)g(T);else{if(m.required&&!p.value)return m.message!==void 0?T=[].concat(m.message).map(aP(m,s)):l.error&&(T=[l.error(m,Aa(l.messages.required,m.field))]),g(T);var M={};m.defaultField&&Object.keys(p.value).map(function(E){M[E]=m.defaultField}),M=Iu({},M,p.rule.fields);var A={};Object.keys(M).forEach(function(E){var D=M[E],L=Array.isArray(D)?D:[D];A[E]=L.map(_.bind(null,E))});var k=new e(A);k.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),k.validate(p.value,p.rule.options||l,function(E){var D=[];T&&T.length&&D.push.apply(D,T),E&&E.length&&D.push.apply(D,E),g(D.length?D:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,p.value,w,p.source,l);else if(m.validator){try{C=m.validator(m,p.value,w,p.source,l)}catch(S){console.error==null||console.error(S),l.suppressValidatorError||setTimeout(function(){throw S},0),w(S.message)}C===!0?w():C===!1?w(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):C instanceof Array?w(C):C instanceof Error&&w(C.message)}C&&C.then&&C.then(function(){return w()},function(S){return w(S)})},function(p){c(p)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!uv.hasOwnProperty(r.type))throw new Error(Aa("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"?uv.required:uv[this.getType(r)]||void 0},e}();tg.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");uv[t]=n};tg.warning=Hse;tg.messages=$C;tg.validators=uv;const gle=["","error","validating","success"],mle=Le({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:ue([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ue([Object,Array])},error:String,validateStatus:{type:String,values:gle},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:To}}),sP="ElLabelWrap";var yle=j({name:sP,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ge(Sc,void 0),r=Ge(wo);r||Yn(sP,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Me("form"),i=H(),o=H(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")=>{Ue(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return yt(()=>{u()}),_n(()=>{l("remove")}),us(()=>u()),xe(o,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),Or(P(()=>{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,v=r==null?void 0:r.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return X("div",{ref:i,class:[a.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return X(je,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const ble=["role","aria-labelledby"],_le=j({name:"ElFormItem"}),wle=j({..._le,props:mle,setup(e,{expose:t}){const n=e,r=Tr(),a=Ge(Sc,void 0),i=Ge(wo,void 0),o=jn(void 0,{formItem:!1}),s=Me("form-item"),l=oi().value,u=H([]),c=H(""),f=uZ(c,100),d=H(""),h=H();let v,p=!1;const g=P(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const te=Rn(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return te?{width:te}:{}}),m=P(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const te=Rn(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:te}:{}}),b=P(()=>[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}]),_=P(()=>Kn(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=P(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),C=P(()=>n.prop?lt(n.prop)?n.prop:n.prop.join("."):""),S=P(()=>!!(n.label||r.label)),x=P(()=>n.for||u.value.length===1?u.value[0]:void 0),T=P(()=>!x.value&&S.value),M=!!i,A=P(()=>{const te=a==null?void 0:a.model;if(!(!te||!n.prop))return uy(te,n.prop).value}),k=P(()=>{const{required:te}=n,q=[];n.rules&&q.push(...oc(n.rules));const de=a==null?void 0:a.rules;if(de&&n.prop){const ve=uy(de,n.prop).value;ve&&q.push(...oc(ve))}if(te!==void 0){const ve=q.map((ie,W)=>[ie,W]).filter(([ie])=>Object.keys(ie).includes("required"));if(ve.length>0)for(const[ie,W]of ve)ie.required!==te&&(q[W]={...ie,required:te});else q.push({required:te})}return q}),E=P(()=>k.value.length>0),D=te=>k.value.filter(de=>!de.trigger||!te?!0:Array.isArray(de.trigger)?de.trigger.includes(te):de.trigger===te).map(({trigger:de,...ve})=>ve),L=P(()=>k.value.some(te=>te.required)),B=P(()=>{var te;return f.value==="error"&&n.showMessage&&((te=a==null?void 0:a.showMessage)!=null?te:!0)}),$=P(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),O=te=>{c.value=te},N=te=>{var q,de;const{errors:ve,fields:ie}=te;(!ve||!ie)&&console.error(te),O("error"),d.value=ve?(de=(q=ve==null?void 0:ve[0])==null?void 0:q.message)!=null?de:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},I=()=>{O("success"),a==null||a.emit("validate",n.prop,!0,"")},F=async te=>{const q=C.value;return new tg({[q]:te}).validate({[q]:A.value},{firstFields:!0}).then(()=>(I(),!0)).catch(ve=>(N(ve),Promise.reject(ve)))},G=async(te,q)=>{if(p||!n.prop)return!1;const de=it(q);if(!E.value)return q==null||q(!1),!1;const ve=D(te);return ve.length===0?(q==null||q(!0),!0):(O("validating"),F(ve).then(()=>(q==null||q(!0),!0)).catch(ie=>{const{fields:W}=ie;return q==null||q(!1,W),de?!1:Promise.reject(W)}))},U=()=>{O(""),d.value="",p=!1},J=async()=>{const te=a==null?void 0:a.model;if(!te||!n.prop)return;const q=uy(te,n.prop);p=!0,q.value=ID(v),await Ue(),U(),p=!1},ae=te=>{u.value.includes(te)||u.value.push(te)},Q=te=>{u.value=u.value.filter(q=>q!==te)};xe(()=>n.error,te=>{d.value=te||"",O(te?"error":"")},{immediate:!0}),xe(()=>n.validateStatus,te=>O(te||""));const ee=jt({...ir(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:T,hasLabel:S,addInputId:ae,removeInputId:Q,resetField:J,clearValidate:U,validate:G});return Et(wo,ee),yt(()=>{n.prop&&(a==null||a.addField(ee),v=ID(A.value))}),_n(()=>{a==null||a.removeField(ee)}),t({size:o,validateMessage:d,validateState:c,validate:G,clearValidate:U,resetField:J}),(te,q)=>{var de;return R(),K("div",{ref_key:"formItemRef",ref:h,class:V(y(b)),role:y(T)?"group":void 0,"aria-labelledby":y(T)?y(l):void 0},[X(y(yle),{"is-auto-width":y(g).width==="auto","update-all":((de=y(a))==null?void 0:de.labelWidth)==="auto"},{default:re(()=>[y(S)?(R(),ce(Ct(y(x)?"label":"div"),{key:0,id:y(l),for:y(x),class:V(y(s).e("label")),style:Ye(y(g))},{default:re(()=>[_e(te.$slots,"label",{label:y($)},()=>[Ut(De(y($)),1)])]),_:3},8,["id","for","class","style"])):se("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Y("div",{class:V(y(s).e("content")),style:Ye(y(m))},[_e(te.$slots,"default"),X(AV,{name:`${y(s).namespace.value}-zoom-in-top`},{default:re(()=>[y(B)?_e(te.$slots,"error",{key:0,error:d.value},()=>[Y("div",{class:V(y(w))},De(d.value),3)]):se("v-if",!0)]),_:3},8,["name"])],6)],10,ble)}}});var LF=Pe(wle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Sle=_t($se,{FormItem:LF}),Cle=In(LF);let gi;const xle=`
  21. height:0 !important;
  22. visibility:hidden !important;
  23. ${ZV()?"":"overflow:hidden !important;"}
  24. position:absolute !important;
  25. z-index:-1000 !important;
  26. top:0 !important;
  27. right:0 !important;
  28. `,Tle=["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 Mle(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:Tle.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function lP(e,t=1,n){var r;gi||(gi=document.createElement("textarea"),document.body.appendChild(gi));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=Mle(e);gi.setAttribute("style",`${s};${xle}`),gi.value=e.value||e.placeholder||"";let l=gi.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),gi.value="";const c=gi.scrollHeight-a;if(at(t)){let f=c*t;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(at(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=gi.parentNode)==null||r.removeChild(gi),gi=void 0,u}const kle=Le({id:{type:String,default:void 0},size:wr,disabled:Boolean,modelValue:{type:ue([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ue([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:cn},prefixIcon:{type:cn},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:ue([Object,Array,String]),default:()=>Sn({})},autofocus:{type:Boolean,default:!1}}),Ale={[wt]:e=>lt(e),input:e=>lt(e),change:e=>lt(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},Ele=["role"],Ile=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Dle=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Ple=j({name:"ElInput",inheritAttrs:!1}),Lle=j({...Ple,props:kle,emits:Ale,setup(e,{expose:t,emit:n}){const r=e,a=mc(),i=Tr(),o=P(()=>{const Ae={};return r.containerRole==="combobox"&&(Ae["aria-haspopup"]=a["aria-haspopup"],Ae["aria-owns"]=a["aria-owns"],Ae["aria-expanded"]=a["aria-expanded"]),Ae}),s=P(()=>[r.type==="textarea"?g.b():p.b(),p.m(h.value),p.is("disabled",v.value),p.is("exceed",ae.value),{[p.b("group")]:i.prepend||i.append,[p.bm("group","append")]:i.append,[p.bm("group","prepend")]:i.prepend,[p.m("prefix")]:i.prefix||r.prefixIcon,[p.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:F.value&&G.value},a.class]),l=P(()=>[p.e("wrapper"),p.is("focus",A.value)]),u=pM({excludeKeys:P(()=>Object.keys(o.value))}),{form:c,formItem:f}=ra(),{inputId:d}=Il(r,{formItemContext:f}),h=jn(),v=_a(),p=Me("input"),g=Me("textarea"),m=ln(),b=ln(),_=H(!1),w=H(!1),C=H(!1),S=H(),x=ln(r.inputStyle),T=P(()=>m.value||b.value),{wrapperRef:M,isFocused:A,handleFocus:k,handleBlur:E}=ose(T,{afterBlur(){var Ae;r.validateEvent&&((Ae=f==null?void 0:f.validate)==null||Ae.call(f,"blur").catch(ze=>void 0))}}),D=P(()=>{var Ae;return(Ae=c==null?void 0:c.statusIcon)!=null?Ae:!1}),L=P(()=>(f==null?void 0:f.validateState)||""),B=P(()=>L.value&&vM[L.value]),$=P(()=>C.value?qae:yae),O=P(()=>[a.style,r.inputStyle]),N=P(()=>[r.inputStyle,x.value,{resize:r.resize}]),I=P(()=>Wn(r.modelValue)?"":String(r.modelValue)),F=P(()=>r.clearable&&!v.value&&!r.readonly&&!!I.value&&(A.value||_.value)),G=P(()=>r.showPassword&&!v.value&&!r.readonly&&!!I.value&&(!!I.value||A.value)),U=P(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!v.value&&!r.readonly&&!r.showPassword),J=P(()=>I.value.length),ae=P(()=>!!U.value&&J.value>Number(u.value.maxlength)),Q=P(()=>!!i.suffix||!!r.suffixIcon||F.value||r.showPassword||U.value||!!L.value&&D.value),[ee,te]=rse(m);Or(b,Ae=>{if(ve(),!U.value||r.resize!=="both")return;const ze=Ae[0],{width:rt}=ze.contentRect;S.value={right:`calc(100% - ${rt+15+6}px)`}});const q=()=>{const{type:Ae,autosize:ze}=r;if(!(!Vt||Ae!=="textarea"||!b.value))if(ze){const rt=Mt(ze)?ze.minRows:void 0,vt=Mt(ze)?ze.maxRows:void 0,kt=lP(b.value,rt,vt);x.value={overflowY:"hidden",...kt},Ue(()=>{b.value.offsetHeight,x.value=kt})}else x.value={minHeight:lP(b.value).minHeight}},ve=(Ae=>{let ze=!1;return()=>{var rt;if(ze||!r.autosize)return;((rt=b.value)==null?void 0:rt.offsetParent)===null||(Ae(),ze=!0)}})(q),ie=()=>{const Ae=T.value,ze=r.formatter?r.formatter(I.value):I.value;!Ae||Ae.value===ze||(Ae.value=ze)},W=async Ae=>{ee();let{value:ze}=Ae.target;if(r.formatter&&(ze=r.parser?r.parser(ze):ze),!w.value){if(ze===I.value){ie();return}n(wt,ze),n("input",ze),await Ue(),ie(),te()}},Z=Ae=>{n("change",Ae.target.value)},oe=Ae=>{n("compositionstart",Ae),w.value=!0},pe=Ae=>{var ze;n("compositionupdate",Ae);const rt=(ze=Ae.target)==null?void 0:ze.value,vt=rt[rt.length-1]||"";w.value=!Xb(vt)},Se=Ae=>{n("compositionend",Ae),w.value&&(w.value=!1,W(Ae))},me=()=>{C.value=!C.value,Ee()},Ee=async()=>{var Ae;await Ue(),(Ae=T.value)==null||Ae.focus()},Ce=()=>{var Ae;return(Ae=T.value)==null?void 0:Ae.blur()},we=Ae=>{_.value=!1,n("mouseleave",Ae)},Te=Ae=>{_.value=!0,n("mouseenter",Ae)},Ne=Ae=>{n("keydown",Ae)},Be=()=>{var Ae;(Ae=T.value)==null||Ae.select()},We=()=>{n(wt,""),n("change",""),n("clear"),n("input","")};return xe(()=>r.modelValue,()=>{var Ae;Ue(()=>q()),r.validateEvent&&((Ae=f==null?void 0:f.validate)==null||Ae.call(f,"change").catch(ze=>void 0))}),xe(I,()=>ie()),xe(()=>r.type,async()=>{await Ue(),ie(),q()}),yt(()=>{!r.formatter&&r.parser,ie(),Ue(q)}),t({input:m,textarea:b,ref:T,textareaStyle:N,autosize:Mn(r,"autosize"),focus:Ee,blur:Ce,select:Be,clear:We,resizeTextarea:q}),(Ae,ze)=>dt((R(),K("div",St(y(o),{class:y(s),style:y(O),role:Ae.containerRole,onMouseenter:Te,onMouseleave:we}),[se(" input "),Ae.type!=="textarea"?(R(),K(je,{key:0},[se(" prepend slot "),Ae.$slots.prepend?(R(),K("div",{key:0,class:V(y(p).be("group","prepend"))},[_e(Ae.$slots,"prepend")],2)):se("v-if",!0),Y("div",{ref_key:"wrapperRef",ref:M,class:V(y(l))},[se(" prefix slot "),Ae.$slots.prefix||Ae.prefixIcon?(R(),K("span",{key:0,class:V(y(p).e("prefix"))},[Y("span",{class:V(y(p).e("prefix-inner"))},[_e(Ae.$slots,"prefix"),Ae.prefixIcon?(R(),ce(y(Ke),{key:0,class:V(y(p).e("icon"))},{default:re(()=>[(R(),ce(Ct(Ae.prefixIcon)))]),_:1},8,["class"])):se("v-if",!0)],2)],2)):se("v-if",!0),Y("input",St({id:y(d),ref_key:"input",ref:m,class:y(p).e("inner")},y(u),{type:Ae.showPassword?C.value?"text":"password":Ae.type,disabled:y(v),formatter:Ae.formatter,parser:Ae.parser,readonly:Ae.readonly,autocomplete:Ae.autocomplete,tabindex:Ae.tabindex,"aria-label":Ae.label,placeholder:Ae.placeholder,style:Ae.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:oe,onCompositionupdate:pe,onCompositionend:Se,onInput:W,onFocus:ze[0]||(ze[0]=(...rt)=>y(k)&&y(k)(...rt)),onBlur:ze[1]||(ze[1]=(...rt)=>y(E)&&y(E)(...rt)),onChange:Z,onKeydown:Ne}),null,16,Ile),se(" suffix slot "),y(Q)?(R(),K("span",{key:1,class:V(y(p).e("suffix"))},[Y("span",{class:V(y(p).e("suffix-inner"))},[!y(F)||!y(G)||!y(U)?(R(),K(je,{key:0},[_e(Ae.$slots,"suffix"),Ae.suffixIcon?(R(),ce(y(Ke),{key:0,class:V(y(p).e("icon"))},{default:re(()=>[(R(),ce(Ct(Ae.suffixIcon)))]),_:1},8,["class"])):se("v-if",!0)],64)):se("v-if",!0),y(F)?(R(),ce(y(Ke),{key:1,class:V([y(p).e("icon"),y(p).e("clear")]),onMousedown:tt(y(nn),["prevent"]),onClick:We},{default:re(()=>[X(y(Ml))]),_:1},8,["class","onMousedown"])):se("v-if",!0),y(G)?(R(),ce(y(Ke),{key:2,class:V([y(p).e("icon"),y(p).e("password")]),onClick:me},{default:re(()=>[(R(),ce(Ct(y($))))]),_:1},8,["class"])):se("v-if",!0),y(U)?(R(),K("span",{key:3,class:V(y(p).e("count"))},[Y("span",{class:V(y(p).e("count-inner"))},De(y(J))+" / "+De(y(u).maxlength),3)],2)):se("v-if",!0),y(L)&&y(B)&&y(D)?(R(),ce(y(Ke),{key:4,class:V([y(p).e("icon"),y(p).e("validateIcon"),y(p).is("loading",y(L)==="validating")])},{default:re(()=>[(R(),ce(Ct(y(B))))]),_:1},8,["class"])):se("v-if",!0)],2)],2)):se("v-if",!0)],2),se(" append slot "),Ae.$slots.append?(R(),K("div",{key:1,class:V(y(p).be("group","append"))},[_e(Ae.$slots,"append")],2)):se("v-if",!0)],64)):(R(),K(je,{key:1},[se(" textarea "),Y("textarea",St({id:y(d),ref_key:"textarea",ref:b,class:y(g).e("inner")},y(u),{tabindex:Ae.tabindex,disabled:y(v),readonly:Ae.readonly,autocomplete:Ae.autocomplete,style:y(N),"aria-label":Ae.label,placeholder:Ae.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:oe,onCompositionupdate:pe,onCompositionend:Se,onInput:W,onFocus:ze[2]||(ze[2]=(...rt)=>y(k)&&y(k)(...rt)),onBlur:ze[3]||(ze[3]=(...rt)=>y(E)&&y(E)(...rt)),onChange:Z,onKeydown:Ne}),null,16,Dle),y(U)?(R(),K("span",{key:0,style:Ye(S.value),class:V(y(p).e("count"))},De(y(J))+" / "+De(y(u).maxlength),7)):se("v-if",!0)],64))],16,Ele)),[[Kt,Ae.type!=="hidden"]])}});var Rle=Pe(Lle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Lr=_t(Rle),pf=4,RF={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"}},Ole=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),OF=Symbol("scrollbarContextKey"),Nle=Le({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),$le="Thumb",Ble=j({__name:"thumb",props:Nle,setup(e){const t=e,n=Ge(OF),r=Me("scrollbar");n||Yn($le,"can not inject scrollbar context");const a=H(),i=H(),o=H({}),s=H(!1);let l=!1,u=!1,c=Vt?document.onselectstart:null;const f=P(()=>RF[t.vertical?"vertical":"horizontal"]),d=P(()=>Ole({size:t.size,move:t.move,bar:f.value})),h=P(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),v=S=>{var x;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(x=window.getSelection())==null||x.removeAllRanges(),g(S);const T=S.currentTarget;T&&(o.value[f.value.axis]=T[f.value.offset]-(S[f.value.client]-T.getBoundingClientRect()[f.value.direction]))},p=S=>{if(!i.value||!a.value||!n.wrapElement)return;const x=Math.abs(S.target.getBoundingClientRect()[f.value.direction]-S[f.value.client]),T=i.value[f.value.offset]/2,M=(x-T)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=M*n.wrapElement[f.value.scrollSize]/100},g=S=>{S.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",b),c=document.onselectstart,document.onselectstart=()=>!1},m=S=>{if(!a.value||!i.value||l===!1)return;const x=o.value[f.value.axis];if(!x)return;const T=(a.value.getBoundingClientRect()[f.value.direction]-S[f.value.client])*-1,M=i.value[f.value.offset]-x,A=(T-M)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=A*n.wrapElement[f.value.scrollSize]/100},b=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",b),C(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},w=()=>{u=!0,s.value=l};_n(()=>{C(),document.removeEventListener("mouseup",b)});const C=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return yn(Mn(n,"scrollbarElement"),"mousemove",_),yn(Mn(n,"scrollbarElement"),"mouseleave",w),(S,x)=>(R(),ce($n,{name:y(r).b("fade"),persisted:""},{default:re(()=>[dt(Y("div",{ref_key:"instance",ref:a,class:V([y(r).e("bar"),y(r).is(y(f).key)]),onMousedown:p},[Y("div",{ref_key:"thumb",ref:i,class:V(y(r).e("thumb")),style:Ye(y(d)),onMousedown:v},null,38)],34),[[Kt,S.always||s.value]])]),_:1},8,["name"]))}});var uP=Pe(Ble,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Vle=Le({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Fle=j({__name:"bar",props:Vle,setup(e,{expose:t}){const n=e,r=H(0),a=H(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-pf,l=o.offsetWidth-pf;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>(R(),K(je,null,[X(uP,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),X(uP,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var zle=Pe(Fle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Hle=Le({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ue([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}}),Gle={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(at)},Wle="ElScrollbar",Kle=j({name:Wle}),Ule=j({...Kle,props:Hle,emits:Gle,setup(e,{expose:t,emit:n}){const r=e,a=Me("scrollbar");let i,o;const s=H(),l=H(),u=H(),c=H("0"),f=H("0"),d=H(),h=H(1),v=H(1),p=P(()=>{const x={};return r.height&&(x.height=Rn(r.height)),r.maxHeight&&(x.maxHeight=Rn(r.maxHeight)),[r.wrapStyle,x]}),g=P(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),m=P(()=>[a.e("view"),r.viewClass]),b=()=>{var x;l.value&&((x=d.value)==null||x.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(x,T){Mt(x)?l.value.scrollTo(x):at(x)&&at(T)&&l.value.scrollTo(x,T)}const w=x=>{at(x)&&(l.value.scrollTop=x)},C=x=>{at(x)&&(l.value.scrollLeft=x)},S=()=>{if(!l.value)return;const x=l.value.offsetHeight-pf,T=l.value.offsetWidth-pf,M=x**2/l.value.scrollHeight,A=T**2/l.value.scrollWidth,k=Math.max(M,r.minSize),E=Math.max(A,r.minSize);h.value=M/(x-M)/(k/(x-k)),v.value=A/(T-A)/(E/(T-E)),f.value=k+pf<x?`${k}px`:"",c.value=E+pf<T?`${E}px`:""};return xe(()=>r.noresize,x=>{x?(i==null||i(),o==null||o()):({stop:i}=Or(u,S),o=yn("resize",S))},{immediate:!0}),xe(()=>[r.maxHeight,r.height],()=>{r.native||Ue(()=>{var x;S(),l.value&&((x=d.value)==null||x.handleScroll(l.value))})}),Et(OF,jt({scrollbarElement:s,wrapElement:l})),yt(()=>{r.native||Ue(()=>{S()})}),us(()=>S()),t({wrapRef:l,update:S,scrollTo:_,setScrollTop:w,setScrollLeft:C,handleScroll:b}),(x,T)=>(R(),K("div",{ref_key:"scrollbarRef",ref:s,class:V(y(a).b())},[Y("div",{ref_key:"wrapRef",ref:l,class:V(y(g)),style:Ye(y(p)),onScroll:b},[(R(),ce(Ct(x.tag),{ref_key:"resizeRef",ref:u,class:V(y(m)),style:Ye(x.viewStyle)},{default:re(()=>[_e(x.$slots,"default")]),_:3},8,["class","style"]))],38),x.native?se("v-if",!0):(R(),ce(zle,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:x.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Yle=Pe(Ule,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ds=_t(Yle),LM=Symbol("popper"),NF=Symbol("popperContent"),jle=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],$F=Le({role:{type:String,values:jle,default:"tooltip"}}),qle=j({name:"ElPopper",inheritAttrs:!1}),Xle=j({...qle,props:$F,setup(e,{expose:t}){const n=e,r=H(),a=H(),i=H(),o=H(),s=P(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(l),Et(LM,l),(u,c)=>_e(u.$slots,"default")}});var Zle=Pe(Xle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const BF=Le({arrowOffset:{type:Number,default:5}}),Jle=j({name:"ElPopperArrow",inheritAttrs:!1}),Qle=j({...Jle,props:BF,setup(e,{expose:t}){const n=e,r=Me("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=Ge(NF,void 0);return xe(()=>n.arrowOffset,s=>{a.value=s}),_n(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(R(),K("span",{ref_key:"arrowRef",ref:i,class:V(y(r).e("arrow")),style:Ye(y(o)),"data-popper-arrow":""},null,6))}});var eue=Pe(Qle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const tue="ElOnlyChild",VF=j({name:tue,setup(e,{slots:t,attrs:n}){var r;const a=Ge(vF),i=Aoe((r=a==null?void 0:a.setForwardRef)!=null?r:nn);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,n);if(!s||s.length>1)return null;const l=FF(s);return l?dt(Jo(l,n),[[i]]):null}}});function FF(e){if(!e)return null;const t=e;for(const n of t){if(Mt(n))switch(n.type){case Ur:continue;case xd:case"svg":return cP(n);case je:return FF(n.children);default:return n}return cP(n)}return null}function cP(e){const t=Me("only-child");return X("span",{class:t.e("content")},[e])}const zF=Le({virtualRef:{type:ue(Object)},virtualTriggering:Boolean,onMouseenter:{type:ue(Function)},onMouseleave:{type:ue(Function)},onClick:{type:ue(Function)},onKeydown:{type:ue(Function)},onFocus:{type:ue(Function)},onBlur:{type:ue(Function)},onContextmenu:{type:ue(Function)},id:String,open:Boolean}),nue=j({name:"ElPopperTrigger",inheritAttrs:!1}),rue=j({...nue,props:zF,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=Ge(LM,void 0);koe(a);const i=P(()=>s.value?n.id:void 0),o=P(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=P(()=>{if(r&&r.value!=="tooltip")return r.value}),l=P(()=>s.value?`${n.open}`:void 0);let u;return yt(()=>{xe(()=>n.virtualRef,c=>{c&&(a.value=ka(c))},{immediate:!0}),xe(a,(c,f)=>{u==null||u(),u=void 0,ri(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=n[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=xe([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{Wn(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),ri(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),_n(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(c,f)=>c.virtualTriggering?se("v-if",!0):(R(),ce(y(VF),St({key:0},c.$attrs,{"aria-controls":y(i),"aria-describedby":y(o),"aria-expanded":y(l),"aria-haspopup":y(s)}),{default:re(()=>[_e(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var aue=Pe(rue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const __="focus-trap.focus-after-trapped",w_="focus-trap.focus-after-released",iue="focus-trap.focusout-prevented",fP={cancelable:!0,bubbles:!1},oue={cancelable:!0,bubbles:!1},dP="focusAfterTrapped",hP="focusAfterReleased",RM=Symbol("elFocusTrap"),OM=H(),a1=H(0),NM=H(0);let Hg=0;const HF=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},vP=(e,t)=>{for(const n of e)if(!sue(n,t))return n},sue=(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},lue=e=>{const t=HF(e),n=vP(t,e),r=vP(t.reverse(),e);return[n,r]},uue=e=>e instanceof HTMLInputElement&&"select"in e,Ds=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),NM.value=window.performance.now(),e!==n&&uue(e)&&t&&e.select()}};function pP(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const cue=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=pP(e,r),e.unshift(r)},remove:r=>{var a,i;e=pP(e,r),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},fue=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Ds(r,t),document.activeElement!==n)return},gP=cue(),due=()=>a1.value>NM.value,Gg=()=>{OM.value="pointer",a1.value=window.performance.now()},mP=()=>{OM.value="keyboard",a1.value=window.performance.now()},hue=()=>(yt(()=>{Hg===0&&(document.addEventListener("mousedown",Gg),document.addEventListener("touchstart",Gg),document.addEventListener("keydown",mP)),Hg++}),_n(()=>{Hg--,Hg<=0&&(document.removeEventListener("mousedown",Gg),document.removeEventListener("touchstart",Gg),document.removeEventListener("keydown",mP))}),{focusReason:OM,lastUserFocusTimestamp:a1,lastAutomatedFocusTimestamp:NM}),Wg=e=>new CustomEvent(iue,{...oue,detail:e}),vue=j({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[dP,hP,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=H();let r,a;const{focusReason:i}=hue();Coe(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:m,metaKey:b,currentTarget:_,shiftKey:w}=v,{loop:C}=e,S=p===Xe.tab&&!g&&!m&&!b,x=document.activeElement;if(S&&x){const T=_,[M,A]=lue(T);if(M&&A){if(!w&&x===A){const E=Wg({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),C&&Ds(M,!0))}else if(w&&[M,T].includes(x)){const E=Wg({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),C&&Ds(A,!0))}}else if(x===T){const E=Wg({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||v.preventDefault()}}};Et(RM,{focusTrapRef:n,onKeydown:s}),xe(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),xe([n],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=v=>{t(dP,v)},u=v=>t(hP,v),c=v=>{const p=y(n);if(!p)return;const g=v.target,m=v.relatedTarget,b=g&&p.contains(g);e.trapped||m&&p.contains(m)||(r=m),b&&t("focusin",v),!o.paused&&e.trapped&&(b?a=g:Ds(a,!0))},f=v=>{const p=y(n);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!Wn(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=Wg({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||Ds(a,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await Ue();const v=y(n);if(v){gP.push(o);const p=v.contains(document.activeElement)?r:document.activeElement;if(r=p,!v.contains(p)){const m=new Event(__,fP);v.addEventListener(__,l),v.dispatchEvent(m),m.defaultPrevented||Ue(()=>{let b=e.focusStartEl;lt(b)||(Ds(b),document.activeElement!==b&&(b="first")),b==="first"&&fue(HF(v),!0),(document.activeElement===p||b==="container")&&Ds(v)})}}}function h(){const v=y(n);if(v){v.removeEventListener(__,l);const p=new CustomEvent(w_,{...fP,detail:{focusReason:i.value}});v.addEventListener(w_,u),v.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!due()||v.contains(document.activeElement))&&Ds(r??document.body),v.removeEventListener(w_,u),gP.remove(o)}}return yt(()=>{e.trapped&&d(),xe(()=>e.trapped,v=>{v?d():h()})}),_n(()=>{e.trapped&&h()}),{onKeydown:s}}});function pue(e,t,n,r,a,i){return _e(e.$slots,"default",{handleKeydown:e.onKeydown})}var i1=Pe(vue,[["render",pue],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const gue=["fixed","absolute"],mue=Le({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ue(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:wc,default:"bottom"},popperOptions:{type:ue(Object),default:()=>({})},strategy:{type:String,values:gue,default:"absolute"}}),GF=Le({...mue,id:String,style:{type:ue([String,Array,Object])},className:{type:ue([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:ue([String,Array,Object])},popperStyle:{type:ue([String,Array,Object])},referenceEl:{type:ue(Object)},triggerTargetEl:{type:ue(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),yue={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},bue=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...wue(e),...t]};return Sue(i,a==null?void 0:a.modifiers),i},_ue=e=>{if(Vt)return ka(e)};function wue(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 Sue(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Cue=0,xue=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=Ge(LM,void 0),i=H(),o=H(),s=P(()=>({name:"eventListeners",enabled:!!e.visible})),l=P(()=>{var m;const b=y(i),_=(m=y(o))!=null?m:Cue;return{name:"arrow",enabled:!Sre(b),options:{element:b,padding:_}}}),u=P(()=>({onFirstUpdate:()=>{v()},...bue(e,[y(l),y(s)])})),c=P(()=>_ue(e.referenceEl)||y(r)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=boe(c,n,u);return xe(g,m=>t.value=m),yt(()=>{xe(()=>{var m;return(m=y(c))==null?void 0:m.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:a,forceUpdate:p,update:v}},Tue=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=Ad(),i=Me("popper"),o=P(()=>y(t).popper),s=H(e.zIndex||a()),l=P(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=P(()=>[{zIndex:y(s)},y(n).popper,e.popperStyle||{}]),c=P(()=>r.value==="dialog"?"false":void 0),f=P(()=>y(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=e.zIndex||a()}}},Mue=(e,t)=>{const n=H(!1),r=H();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")}}},kue=j({name:"ElPopperContent"}),Aue=j({...kue,props:GF,emits:yue,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=Mue(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:m}=xue(r),{ariaModal:b,arrowStyle:_,contentAttrs:w,contentClass:C,contentStyle:S,updateZIndex:x}=Tue(r,{styles:v,attributes:f,role:g}),T=Ge(wo,void 0),M=H();Et(NF,{arrowStyle:_,arrowRef:d,arrowOffset:M}),T&&(T.addInputId||T.removeInputId)&&Et(wo,{...T,addInputId:nn,removeInputId:nn});let A;const k=(D=!0)=>{m(),D&&x()},E=()=>{k(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return yt(()=>{xe(()=>r.triggerTargetEl,(D,L)=>{A==null||A(),A=void 0;const B=y(D||h.value),$=y(L||h.value);ri(B)&&(A=xe([g,()=>r.ariaLabel,b,()=>r.id],O=>{["role","aria-label","aria-modal","id"].forEach((N,I)=>{Wn(O[I])?B.removeAttribute(N):B.setAttribute(N,O[I])})},{immediate:!0})),$!==B&&ri($)&&["role","aria-label","aria-modal","id"].forEach(O=>{$.removeAttribute(O)})},{immediate:!0}),xe(()=>r.visible,E,{immediate:!0})}),_n(()=>{A==null||A(),A=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:k,contentStyle:S}),(D,L)=>(R(),K("div",St({ref_key:"contentRef",ref:h},y(w),{style:y(S),class:y(C),tabindex:"-1",onMouseenter:L[0]||(L[0]=B=>D.$emit("mouseenter",B)),onMouseleave:L[1]||(L[1]=B=>D.$emit("mouseleave",B))}),[X(y(i1),{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:re(()=>[_e(D.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Eue=Pe(Aue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const WF=_t(Zle),o1=Symbol("elTooltip"),ur=Le({...Moe,...GF,appendTo:{type:ue([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ue(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Jv=Le({...zF,disabled:Boolean,trigger:{type:ue([String,Array]),default:"hover"},triggerKeys:{type:ue(Array),default:()=>[Xe.enter,Xe.space]}}),{useModelToggleProps:Iue,useModelToggleEmits:Due,useModelToggle:Pue}=Z5("visible"),Lue=Le({...$F,...Iue,...ur,...Jv,...BF,showArrow:{type:Boolean,default:!0}}),Rue=[...Due,"before-show","before-hide","show","hide","open","close"],Oue=(e,t)=>He(e)?e.includes(t):e===t,Rc=(e,t,n)=>r=>{Oue(y(e),t)&&n(r)},Nue=j({name:"ElTooltipTrigger"}),$ue=j({...Nue,props:Jv,setup(e,{expose:t}){const n=e,r=Me("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=Ge(o1,void 0),c=H(null),f=()=>{if(y(a)||n.disabled)return!0},d=Mn(n,"trigger"),h=En(f,Rc(d,"hover",s)),v=En(f,Rc(d,"hover",l)),p=En(f,Rc(d,"click",w=>{w.button===0&&u(w)})),g=En(f,Rc(d,"focus",s)),m=En(f,Rc(d,"focus",l)),b=En(f,Rc(d,"contextmenu",w=>{w.preventDefault(),u(w)})),_=En(f,w=>{const{code:C}=w;n.triggerKeys.includes(C)&&(w.preventDefault(),u(w))});return t({triggerRef:c}),(w,C)=>(R(),ce(y(aue),{id:y(i),"virtual-ref":w.virtualRef,open:y(o),"virtual-triggering":w.virtualTriggering,class:V(y(r).e("trigger")),onBlur:y(m),onClick:y(p),onContextmenu:y(b),onFocus:y(g),onMouseenter:y(h),onMouseleave:y(v),onKeydown:y(_)},{default:re(()=>[_e(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Bue=Pe($ue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Vue=j({name:"ElTooltipContent",inheritAttrs:!1}),Fue=j({...Vue,props:ur,setup(e,{expose:t}){const n=e,{selector:r}=dF(),a=Me("tooltip"),i=H(null),o=H(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=Ge(o1,void 0),m=P(()=>n.transition||`${a.namespace.value}-fade-in-linear`),b=P(()=>n.persistent);_n(()=>{o.value=!0});const _=P(()=>y(b)?!0:y(u)),w=P(()=>n.disabled?!1:y(u)),C=P(()=>n.appendTo||r.value),S=P(()=>{var O;return(O=n.style)!=null?O:{}}),x=P(()=>!y(u)),T=()=>{v()},M=()=>{if(y(s))return!0},A=En(M,()=>{n.enterable&&y(c)==="hover"&&d()}),k=En(M,()=>{y(c)==="hover"&&f()}),E=()=>{var O,N;(N=(O=i.value)==null?void 0:O.updatePopper)==null||N.call(O),p==null||p()},D=()=>{g==null||g()},L=()=>{h(),$=UT(P(()=>{var O;return(O=i.value)==null?void 0:O.popperContentRef}),()=>{if(y(s))return;y(c)!=="hover"&&f()})},B=()=>{n.virtualTriggering||f()};let $;return xe(()=>y(u),O=>{O||$==null||$()},{flush:"post"}),xe(()=>n.content,()=>{var O,N;(N=(O=i.value)==null?void 0:O.updatePopper)==null||N.call(O)}),t({contentRef:i}),(O,N)=>(R(),ce(Wp,{disabled:!O.teleported,to:y(C)},[X($n,{name:y(m),onAfterLeave:T,onBeforeEnter:E,onAfterEnter:L,onBeforeLeave:D},{default:re(()=>[y(_)?dt((R(),ce(y(Eue),St({key:0,id:y(l),ref_key:"contentRef",ref:i},O.$attrs,{"aria-label":O.ariaLabel,"aria-hidden":y(x),"boundaries-padding":O.boundariesPadding,"fallback-placements":O.fallbackPlacements,"gpu-acceleration":O.gpuAcceleration,offset:O.offset,placement:O.placement,"popper-options":O.popperOptions,strategy:O.strategy,effect:O.effect,enterable:O.enterable,pure:O.pure,"popper-class":O.popperClass,"popper-style":[O.popperStyle,y(S)],"reference-el":O.referenceEl,"trigger-target-el":O.triggerTargetEl,visible:y(w),"z-index":O.zIndex,onMouseenter:y(A),onMouseleave:y(k),onBlur:B,onClose:y(f)}),{default:re(()=>[o.value?se("v-if",!0):_e(O.$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"])),[[Kt,y(w)]]):se("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var zue=Pe(Fue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Hue=["innerHTML"],Gue={key:1},Wue=j({name:"ElTooltip"}),Kue=j({...Wue,props:Lue,emits:Rue,setup(e,{expose:t,emit:n}){const r=e;Toe();const a=oi(),i=H(),o=H(),s=()=>{var m;const b=y(i);b&&((m=b.popperInstanceRef)==null||m.update())},l=H(!1),u=H(),{show:c,hide:f,hasUpdateHandler:d}=Pue({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=hF({showAfter:Mn(r,"showAfter"),hideAfter:Mn(r,"hideAfter"),autoClose:Mn(r,"autoClose"),open:c,close:f}),p=P(()=>Kn(r.visible)&&!d.value);Et(o1,{controlled:p,id:a,open:Cd(l),trigger:Mn(r,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{y(l)?v(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}),xe(()=>r.disabled,m=>{m&&l.value&&(l.value=!1)});const g=m=>{var b,_;const w=(_=(b=o.value)==null?void 0:b.contentRef)==null?void 0:_.popperContentRef,C=(m==null?void 0:m.relatedTarget)||document.activeElement;return w&&w.contains(C)};return nV(()=>l.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,b)=>(R(),ce(y(WF),{ref_key:"popperRef",ref:i,role:m.role},{default:re(()=>[X(Bue,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:re(()=>[m.$slots.default?_e(m.$slots,"default",{key:0}):se("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),X(zue,{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:re(()=>[_e(m.$slots,"content",{},()=>[m.rawContent?(R(),K("span",{key:0,innerHTML:m.content},null,8,Hue)):(R(),K("span",Gue,De(m.content),1))]),m.showArrow?(R(),ce(y(eue),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):se("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 Uue=Pe(Kue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Qr=_t(Uue),Yue=Le({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ue(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ue([Function,Array]),default:nn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:ur.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),jue={[wt]:e=>lt(e),[jr]:e=>lt(e),[gn]:e=>lt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Mt(e)},que=["aria-expanded","aria-owns"],Xue={key:0},Zue=["id","aria-selected","onClick"],KF="ElAutocomplete",Jue=j({name:KF,inheritAttrs:!1}),Que=j({...Jue,props:Yue,emits:jue,setup(e,{expose:t,emit:n}){const r=e,a=pM(),i=mc(),o=_a(),s=Me("autocomplete"),l=H(),u=H(),c=H(),f=H();let d=!1,h=!1;const v=H([]),p=H(-1),g=H(""),m=H(!1),b=H(!1),_=H(!1),w=P(()=>s.b(String(Jb()))),C=P(()=>i.style),S=P(()=>(v.value.length>0||_.value)&&m.value),x=P(()=>!r.hideLoading&&_.value),T=P(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),M=()=>{S.value&&(g.value=`${l.value.$el.offsetWidth}px`)},A=()=>{p.value=-1},E=Jr(async ee=>{if(b.value)return;const te=q=>{_.value=!1,!b.value&&(He(q)?(v.value=q,p.value=r.highlightFirstItem?0:-1):Yn(KF,"autocomplete suggestions must be an array"))};if(_.value=!0,He(r.fetchSuggestions))te(r.fetchSuggestions);else{const q=await r.fetchSuggestions(ee,te);He(q)&&te(q)}},r.debounce),D=ee=>{const te=!!ee;if(n(jr,ee),n(wt,ee),b.value=!1,m.value||(m.value=te),!r.triggerOnFocus&&!ee){b.value=!0,v.value=[];return}E(ee)},L=ee=>{var te;o.value||(((te=ee.target)==null?void 0:te.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(m.value=!0)},B=ee=>{n(gn,ee)},$=ee=>{h?h=!1:(m.value=!0,n("focus",ee),r.triggerOnFocus&&!d&&E(String(r.modelValue)))},O=ee=>{setTimeout(()=>{var te;if((te=c.value)!=null&&te.isFocusInsideContent()){h=!0;return}m.value&&G(),n("blur",ee)})},N=()=>{m.value=!1,n(wt,""),n("clear")},I=async()=>{S.value&&p.value>=0&&p.value<v.value.length?ae(v.value[p.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],p.value=-1)},F=ee=>{S.value&&(ee.preventDefault(),ee.stopPropagation(),G())},G=()=>{m.value=!1},U=()=>{var ee;(ee=l.value)==null||ee.focus()},J=()=>{var ee;(ee=l.value)==null||ee.blur()},ae=async ee=>{n(jr,ee[r.valueKey]),n(wt,ee[r.valueKey]),n("select",ee),v.value=[],p.value=-1},Q=ee=>{if(!S.value||_.value)return;if(ee<0){p.value=-1;return}ee>=v.value.length&&(ee=v.value.length-1);const te=u.value.querySelector(`.${s.be("suggestion","wrap")}`),de=te.querySelectorAll(`.${s.be("suggestion","list")} li`)[ee],ve=te.scrollTop,{offsetTop:ie,scrollHeight:W}=de;ie+W>ve+te.clientHeight&&(te.scrollTop+=W),ie<ve&&(te.scrollTop-=W),p.value=ee,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${p.value}`)};return UT(f,()=>{S.value&&G()}),yt(()=>{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-${p.value}`),d=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:m,loading:_,inputRef:l,popperRef:c,suggestions:v,handleSelect:ae,handleKeyEnter:I,focus:U,blur:J,close:G,highlight:Q}),(ee,te)=>(R(),ce(y(Qr),{ref_key:"popperRef",ref:c,visible:y(S),placement:ee.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[y(s).e("popper"),ee.popperClass],teleported:ee.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${y(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:M,onHide:A},{content:re(()=>[Y("div",{ref_key:"regionRef",ref:u,class:V([y(s).b("suggestion"),y(s).is("loading",y(x))]),style:Ye({[ee.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[X(y(ds),{id:y(w),tag:"ul","wrap-class":y(s).be("suggestion","wrap"),"view-class":y(s).be("suggestion","list"),role:"listbox"},{default:re(()=>[y(x)?(R(),K("li",Xue,[X(y(Ke),{class:V(y(s).is("loading"))},{default:re(()=>[X(y(kl))]),_:1},8,["class"])])):(R(!0),K(je,{key:1},Ot(v.value,(q,de)=>(R(),K("li",{id:`${y(w)}-item-${de}`,key:de,class:V({highlighted:p.value===de}),role:"option","aria-selected":p.value===de,onClick:ve=>ae(q)},[_e(ee.$slots,"default",{item:q},()=>[Ut(De(q[ee.valueKey]),1)])],10,Zue))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:re(()=>[Y("div",{ref_key:"listboxRef",ref:f,class:V([y(s).b(),ee.$attrs.class]),style:Ye(y(C)),role:"combobox","aria-haspopup":"listbox","aria-expanded":y(S),"aria-owns":y(w)},[X(y(Lr),St({ref_key:"inputRef",ref:l},y(a),{clearable:ee.clearable,disabled:y(o),name:ee.name,"model-value":ee.modelValue,onInput:D,onChange:B,onFocus:$,onBlur:O,onClear:N,onKeydown:[te[0]||(te[0]=zt(tt(q=>Q(p.value-1),["prevent"]),["up"])),te[1]||(te[1]=zt(tt(q=>Q(p.value+1),["prevent"]),["down"])),zt(I,["enter"]),zt(G,["tab"]),zt(F,["esc"])],onMousedown:L}),Zo({_:2},[ee.$slots.prepend?{name:"prepend",fn:re(()=>[_e(ee.$slots,"prepend")])}:void 0,ee.$slots.append?{name:"append",fn:re(()=>[_e(ee.$slots,"append")])}:void 0,ee.$slots.prefix?{name:"prefix",fn:re(()=>[_e(ee.$slots,"prefix")])}:void 0,ee.$slots.suffix?{name:"suffix",fn:re(()=>[_e(ee.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,que)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var ece=Pe(Que,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const tce=_t(ece),nce=Le({size:{type:[Number,String],values:To,default:"",validator:e=>at(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:cn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ue(String),default:"cover"}}),rce={error:e=>e instanceof Event},ace=["src","alt","srcset"],ice=j({name:"ElAvatar"}),oce=j({...ice,props:nce,emits:rce,setup(e,{emit:t}){const n=e,r=Me("avatar"),a=H(!1),i=P(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return lt(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=P(()=>{const{size:u}=n;return at(u)?r.cssVarBlock({size:Rn(u)||""}):void 0}),s=P(()=>({objectFit:n.fit}));xe(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,t("error",u)}return(u,c)=>(R(),K("span",{class:V(y(i)),style:Ye(y(o))},[(u.src||u.srcSet)&&!a.value?(R(),K("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Ye(y(s)),onError:l},null,44,ace)):u.icon?(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(u.icon)))]),_:1})):_e(u.$slots,"default",{key:2})],6))}});var sce=Pe(oce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const lce=_t(sce),uce={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},cce={click:e=>e instanceof MouseEvent},fce=(e,t,n)=>{const r=ln(),a=ln(),i=H(!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=XV(o,300,!0);return yn(a,"scroll",l),yt(()=>{var u;a.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||Yn(n,`target does not exist: ${e.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},UF="ElBacktop",dce=j({name:UF}),hce=j({...dce,props:uce,emits:cce,setup(e,{emit:t}){const n=e,r=Me("backtop"),{handleClick:a,visible:i}=fce(n,t,UF),o=P(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(R(),ce($n,{name:`${y(r).namespace.value}-fade-in`},{default:re(()=>[y(i)?(R(),K("div",{key:0,style:Ye(y(o)),class:V(y(r).b()),onClick:l[0]||(l[0]=tt((...u)=>y(a)&&y(a)(...u),["stop"]))},[_e(s.$slots,"default",{},()=>[X(y(Ke),{class:V(y(r).e("icon"))},{default:re(()=>[X(y(Zre))]),_:1},8,["class"])])],6)):se("v-if",!0)]),_:3},8,["name"]))}});var vce=Pe(hce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const pce=_t(vce),gce=Le({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"}}),mce=["textContent"],yce=j({name:"ElBadge"}),bce=j({...yce,props:gce,setup(e,{expose:t}){const n=e,r=Me("badge"),a=P(()=>n.isDot?"":at(n.value)&&at(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(i,o)=>(R(),K("div",{class:V(y(r).b())},[_e(i.$slots,"default"),X($n,{name:`${y(r).namespace.value}-zoom-in-center`,persisted:""},{default:re(()=>[dt(Y("sup",{class:V([y(r).e("content"),y(r).em("content",i.type),y(r).is("fixed",!!i.$slots.default),y(r).is("dot",i.isDot)]),textContent:De(y(a))},null,10,mce),[[Kt,!i.hidden&&(y(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var _ce=Pe(bce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const YF=_t(_ce),jF=Symbol("breadcrumbKey"),wce=Le({separator:{type:String,default:"/"},separatorIcon:{type:cn}}),Sce=j({name:"ElBreadcrumb"}),Cce=j({...Sce,props:wce,setup(e){const t=e,n=Me("breadcrumb"),r=H();return Et(jF,t),yt(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(R(),K("div",{ref_key:"breadcrumb",ref:r,class:V(y(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[_e(a.$slots,"default")],2))}});var xce=Pe(Cce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Tce=Le({to:{type:ue([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Mce=j({name:"ElBreadcrumbItem"}),kce=j({...Mce,props:Tce,setup(e){const t=e,n=gt(),r=Ge(jF,void 0),a=Me("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=H(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return R(),K("span",{class:V(y(a).e("item"))},[Y("span",{ref_key:"link",ref:o,class:V([y(a).e("inner"),y(a).is("link",!!l.to)]),role:"link",onClick:s},[_e(l.$slots,"default")],2),(c=y(r))!=null&&c.separatorIcon?(R(),ce(y(Ke),{key:0,class:V(y(a).e("separator"))},{default:re(()=>[(R(),ce(Ct(y(r).separatorIcon)))]),_:1},8,["class"])):(R(),K("span",{key:1,class:V(y(a).e("separator")),role:"presentation"},De((f=y(r))==null?void 0:f.separator),3))],2)}}});var qF=Pe(kce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Ace=_t(xce,{BreadcrumbItem:qF}),Ece=In(qF),XF=Symbol("buttonGroupContextKey"),Ice=(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"},P(()=>e.type==="text"));const n=Ge(XF,void 0),r=n1("button"),{form:a}=ra(),i=jn(P(()=>n==null?void 0:n.size)),o=_a(),s=H(),l=Tr(),u=P(()=>e.type||(n==null?void 0:n.type)||""),c=P(()=>{var v,p,g;return(g=(p=e.autoInsertSpace)!=null?p:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),f=P(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),d=P(()=>{var v;const p=(v=l.default)==null?void 0:v.call(l);if(c.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===xd){const m=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(m.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:v=>{e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",v)}}},BC=["default","primary","success","warning","info","danger","text",""],Dce=["button","submit","reset"],VC=Le({size:wr,disabled:Boolean,type:{type:String,values:BC,default:""},icon:{type:cn},nativeType:{type:String,values:Dce,default:"button"},loading:Boolean,loadingIcon:{type:cn,default:()=>kl},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ue([String,Object]),default:"button"}}),Pce={click:e=>e instanceof MouseEvent};function yr(e,t){Lce(e)&&(e="100%");var n=Rce(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 Kg(e){return Math.min(1,Math.max(0,e))}function Lce(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Rce(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ZF(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ug(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Du(e){return e.length===1?"0"+e:String(e)}function Oce(e,t,n){return{r:yr(e,255)*255,g:yr(t,255)*255,b:yr(n,255)*255}}function yP(e,t,n){e=yr(e,255),t=yr(t,255),n=yr(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 S_(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 Nce(e,t,n){var r,a,i;if(e=yr(e,360),t=yr(t,100),n=yr(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=S_(s,o,e+1/3),a=S_(s,o,e),i=S_(s,o,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function bP(e,t,n){e=yr(e,255),t=yr(t,255),n=yr(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 $ce(e,t,n){e=yr(e,360)*6,t=yr(t,100),n=yr(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 _P(e,t,n,r){var a=[Du(Math.round(e).toString(16)),Du(Math.round(t).toString(16)),Du(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 Bce(e,t,n,r,a){var i=[Du(Math.round(e).toString(16)),Du(Math.round(t).toString(16)),Du(Math.round(n).toString(16)),Du(Vce(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 Vce(e){return Math.round(parseFloat(e)*255).toString(16)}function wP(e){return Sa(e)/255}function Sa(e){return parseInt(e,16)}function Fce(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var FC={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 zce(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=Wce(e)),typeof e=="object"&&(Io(e.r)&&Io(e.g)&&Io(e.b)?(t=Oce(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Io(e.h)&&Io(e.s)&&Io(e.v)?(r=Ug(e.s),a=Ug(e.v),t=$ce(e.h,r,a),o=!0,s="hsv"):Io(e.h)&&Io(e.s)&&Io(e.l)&&(r=Ug(e.s),i=Ug(e.l),t=Nce(e.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ZF(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 Hce="[-\\+]?\\d+%?",Gce="[-\\+]?\\d*\\.\\d+%?",Hs="(?:".concat(Gce,")|(?:").concat(Hce,")"),C_="[\\s|\\(]+(".concat(Hs,")[,|\\s]+(").concat(Hs,")[,|\\s]+(").concat(Hs,")\\s*\\)?"),x_="[\\s|\\(]+(".concat(Hs,")[,|\\s]+(").concat(Hs,")[,|\\s]+(").concat(Hs,")[,|\\s]+(").concat(Hs,")\\s*\\)?"),bi={CSS_UNIT:new RegExp(Hs),rgb:new RegExp("rgb"+C_),rgba:new RegExp("rgba"+x_),hsl:new RegExp("hsl"+C_),hsla:new RegExp("hsla"+x_),hsv:new RegExp("hsv"+C_),hsva:new RegExp("hsva"+x_),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 Wce(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(FC[e])e=FC[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:Sa(n[1]),g:Sa(n[2]),b:Sa(n[3]),a:wP(n[4]),format:t?"name":"hex8"}:(n=bi.hex6.exec(e),n?{r:Sa(n[1]),g:Sa(n[2]),b:Sa(n[3]),format:t?"name":"hex"}:(n=bi.hex4.exec(e),n?{r:Sa(n[1]+n[1]),g:Sa(n[2]+n[2]),b:Sa(n[3]+n[3]),a:wP(n[4]+n[4]),format:t?"name":"hex8"}:(n=bi.hex3.exec(e),n?{r:Sa(n[1]+n[1]),g:Sa(n[2]+n[2]),b:Sa(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Io(e){return!!bi.CSS_UNIT.exec(String(e))}var JF=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=Fce(t)),this.originalInput=t;var a=zce(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=ZF(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=bP(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=bP(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=yP(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=yP(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),_P(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),Bce(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(yr(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(yr(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="#"+_P(this.r,this.g,this.b,!1),n=0,r=Object.entries(FC);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=Kg(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=Kg(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=Kg(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=Kg(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 ws(e,t=20){return e.mix("#141414",t).toString()}function Kce(e){const t=_a(),n=Me("button");return P(()=>{let r={};const a=e.color;if(a){const i=new JF(a),o=e.dark?i.tint(20).toString():ws(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ws(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?ws(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?ws(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ws(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ws(i,80):i.tint(80).toString());else{const s=e.dark?ws(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?ws(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 Uce=j({name:"ElButton"}),Yce=j({...Uce,props:VC,emits:Pce,setup(e,{expose:t,emit:n}){const r=e,a=Kce(r),i=Me("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=Ice(r,n);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,v)=>(R(),ce(Ct(h.tag),St({ref_key:"_ref",ref:o},y(c),{class:[y(i).b(),y(i).m(y(l)),y(i).m(y(s)),y(i).is("disabled",y(u)),y(i).is("loading",h.loading),y(i).is("plain",h.plain),y(i).is("round",h.round),y(i).is("circle",h.circle),y(i).is("text",h.text),y(i).is("link",h.link),y(i).is("has-bg",h.bg)],style:y(a),onClick:y(d)}),{default:re(()=>[h.loading?(R(),K(je,{key:0},[h.$slots.loading?_e(h.$slots,"loading",{key:0}):(R(),ce(y(Ke),{key:1,class:V(y(i).is("loading"))},{default:re(()=>[(R(),ce(Ct(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(R(),ce(y(Ke),{key:1},{default:re(()=>[h.icon?(R(),ce(Ct(h.icon),{key:0})):_e(h.$slots,"icon",{key:1})]),_:3})):se("v-if",!0),h.$slots.default?(R(),K("span",{key:2,class:V({[y(i).em("text","expand")]:y(f)})},[_e(h.$slots,"default")],2)):se("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var jce=Pe(Yce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const qce={size:VC.size,type:VC.type},Xce=j({name:"ElButtonGroup"}),Zce=j({...Xce,props:qce,setup(e){const t=e;Et(XF,jt({size:Mn(t,"size"),type:Mn(t,"type")}));const n=Me("button");return(r,a)=>(R(),K("div",{class:V(`${y(n).b("group")}`)},[_e(r.$slots,"default")],2))}});var QF=Pe(Zce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const br=_t(jce,{ButtonGroup:QF}),ez=In(QF);var hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hs,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",v="date",p="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,b={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(L){var B=["th","st","nd","rd"],$=L%100;return"["+L+(B[($-20)%10]||B[$]||B[0])+"]"}},_=function(L,B,$){var O=String(L);return!O||O.length>=B?L:""+Array(B+1-O.length).join($)+L},w={s:_,z:function(L){var B=-L.utcOffset(),$=Math.abs(B),O=Math.floor($/60),N=$%60;return(B<=0?"+":"-")+_(O,2,"0")+":"+_(N,2,"0")},m:function L(B,$){if(B.date()<$.date())return-L($,B);var O=12*($.year()-B.year())+($.month()-B.month()),N=B.clone().add(O,f),I=$-N<0,F=B.clone().add(O+(I?-1:1),f);return+(-(O+($-N)/(I?N-F:F-N))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:o,ms:i,Q:d}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},C="en",S={};S[C]=b;var x="$isDayjsObject",T=function(L){return L instanceof E||!(!L||!L[x])},M=function L(B,$,O){var N;if(!B)return C;if(typeof B=="string"){var I=B.toLowerCase();S[I]&&(N=I),$&&(S[I]=$,N=I);var F=B.split("-");if(!N&&F.length>1)return L(F[0])}else{var G=B.name;S[G]=B,N=G}return!O&&N&&(C=N),N||!O&&C},A=function(L,B){if(T(L))return L.clone();var $=typeof B=="object"?B:{};return $.date=L,$.args=arguments,new E($)},k=w;k.l=M,k.i=T,k.w=function(L,B){return A(L,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var E=function(){function L($){this.$L=M($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[x]=!0}var B=L.prototype;return B.parse=function($){this.$d=function(O){var N=O.date,I=O.utc;if(N===null)return new Date(NaN);if(k.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var F=N.match(g);if(F){var G=F[2]-1||0,U=(F[7]||"0").substring(0,3);return I?new Date(Date.UTC(F[1],G,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)):new Date(F[1],G,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)}}return new Date(N)}($),this.init()},B.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},B.$utils=function(){return k},B.isValid=function(){return this.$d.toString()!==p},B.isSame=function($,O){var N=A($);return this.startOf(O)<=N&&N<=this.endOf(O)},B.isAfter=function($,O){return A($)<this.startOf(O)},B.isBefore=function($,O){return this.endOf(O)<A($)},B.$g=function($,O,N){return k.u($)?this[O]:this.set(N,$)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function($,O){var N=this,I=!!k.u(O)||O,F=k.p($),G=function(de,ve){var ie=k.w(N.$u?Date.UTC(N.$y,ve,de):new Date(N.$y,ve,de),N);return I?ie:ie.endOf(u)},U=function(de,ve){return k.w(N.toDate()[de].apply(N.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(ve)),N)},J=this.$W,ae=this.$M,Q=this.$D,ee="set"+(this.$u?"UTC":"");switch(F){case h:return I?G(1,0):G(31,11);case f:return I?G(1,ae):G(0,ae+1);case c:var te=this.$locale().weekStart||0,q=(J<te?J+7:J)-te;return G(I?Q-q:Q+(6-q),ae);case u:case v:return U(ee+"Hours",0);case l:return U(ee+"Minutes",1);case s:return U(ee+"Seconds",2);case o:return U(ee+"Milliseconds",3);default:return this.clone()}},B.endOf=function($){return this.startOf($,!1)},B.$set=function($,O){var N,I=k.p($),F="set"+(this.$u?"UTC":""),G=(N={},N[u]=F+"Date",N[v]=F+"Date",N[f]=F+"Month",N[h]=F+"FullYear",N[l]=F+"Hours",N[s]=F+"Minutes",N[o]=F+"Seconds",N[i]=F+"Milliseconds",N)[I],U=I===u?this.$D+(O-this.$W):O;if(I===f||I===h){var J=this.clone().set(v,1);J.$d[G](U),J.init(),this.$d=J.set(v,Math.min(this.$D,J.daysInMonth())).$d}else G&&this.$d[G](U);return this.init(),this},B.set=function($,O){return this.clone().$set($,O)},B.get=function($){return this[k.p($)]()},B.add=function($,O){var N,I=this;$=Number($);var F=k.p(O),G=function(ae){var Q=A(I);return k.w(Q.date(Q.date()+Math.round(ae*$)),I)};if(F===f)return this.set(f,this.$M+$);if(F===h)return this.set(h,this.$y+$);if(F===u)return G(1);if(F===c)return G(7);var U=(N={},N[s]=r,N[l]=a,N[o]=n,N)[F]||1,J=this.$d.getTime()+$*U;return k.w(J,this)},B.subtract=function($,O){return this.add(-1*$,O)},B.format=function($){var O=this,N=this.$locale();if(!this.isValid())return N.invalidDate||p;var I=$||"YYYY-MM-DDTHH:mm:ssZ",F=k.z(this),G=this.$H,U=this.$m,J=this.$M,ae=N.weekdays,Q=N.months,ee=N.meridiem,te=function(ve,ie,W,Z){return ve&&(ve[ie]||ve(O,I))||W[ie].slice(0,Z)},q=function(ve){return k.s(G%12||12,ve,"0")},de=ee||function(ve,ie,W){var Z=ve<12?"AM":"PM";return W?Z.toLowerCase():Z};return I.replace(m,function(ve,ie){return ie||function(W){switch(W){case"YY":return String(O.$y).slice(-2);case"YYYY":return k.s(O.$y,4,"0");case"M":return J+1;case"MM":return k.s(J+1,2,"0");case"MMM":return te(N.monthsShort,J,Q,3);case"MMMM":return te(Q,J);case"D":return O.$D;case"DD":return k.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return te(N.weekdaysMin,O.$W,ae,2);case"ddd":return te(N.weekdaysShort,O.$W,ae,3);case"dddd":return ae[O.$W];case"H":return String(G);case"HH":return k.s(G,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return de(G,U,!0);case"A":return de(G,U,!1);case"m":return String(U);case"mm":return k.s(U,2,"0");case"s":return String(O.$s);case"ss":return k.s(O.$s,2,"0");case"SSS":return k.s(O.$ms,3,"0");case"Z":return F}return null}(ve)||F.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function($,O,N){var I,F=this,G=k.p(O),U=A($),J=(U.utcOffset()-this.utcOffset())*r,ae=this-U,Q=function(){return k.m(F,U)};switch(G){case h:I=Q()/12;break;case f:I=Q();break;case d:I=Q()/3;break;case c:I=(ae-J)/6048e5;break;case u:I=(ae-J)/864e5;break;case l:I=ae/a;break;case s:I=ae/r;break;case o:I=ae/n;break;default:I=ae}return N?I:k.a(I)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return S[this.$L]},B.locale=function($,O){if(!$)return this.$L;var N=this.clone(),I=M($,O,!0);return I&&(N.$L=I),N},B.clone=function(){return k.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},L}(),D=E.prototype;return A.prototype=D,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function(L){D[L[1]]=function(B){return this.$g(B,L[0],L[1])}}),A.extend=function(L,B){return L.$i||(L(B,E,A),L.$i=!0),A},A.locale=M,A.isDayjs=T,A.unix=function(L){return A(1e3*L)},A.en=S[C],A.Ls=S,A.p={},A})})(tz);var Jce=tz.exports;const mt=Mo(Jce);var nz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hs,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(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(g){this[p]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var m=g.match(/([+-]|\d\d)/g),b=60*m[1]+(+m[2]||0);return b===0?0:m[0]==="+"?-b:b}(p)}],f=function(p){var g=s[p];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(p,g){var m,b=s.meridiem;if(b){for(var _=1;_<=24;_+=1)if(p.indexOf(b(_,0,g))>-1){m=_>12;break}}else m=p===(g?"pm":"PM");return m},h={A:[o,function(p){this.afternoon=d(p,!1)}],a:[o,function(p){this.afternoon=d(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],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(p){var g=s.ordinal,m=p.match(/\d+/);if(this.day=m[0],g)for(var b=1;b<=31;b+=1)g(b).replace(/\[|\]/g,"")===p&&(this.day=b)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(p){var g=f("months"),m=(f("monthsShort")||g.map(function(b){return b.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[o,function(p){var g=f("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(p){this.year=l(p)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function v(p){var g,m;g=p,m=s&&s.formats;for(var b=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,A,k){var E=k&&k.toUpperCase();return A||m[k]||n[k]||m[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,L,B){return L||B.slice(1)})})).match(r),_=b.length,w=0;w<_;w+=1){var C=b[w],S=h[C],x=S&&S[0],T=S&&S[1];b[w]=T?{regex:x,parser:T}:C.replace(/^\[|\]$/g,"")}return function(M){for(var A={},k=0,E=0;k<_;k+=1){var D=b[k];if(typeof D=="string")E+=D.length;else{var L=D.regex,B=D.parser,$=M.slice(E),O=L.exec($)[0];B.call(A,O),M=M.replace(O,"")}}return function(N){var I=N.afternoon;if(I!==void 0){var F=N.hours;I?F<12&&(N.hours+=12):F===12&&(N.hours=0),delete N.afternoon}}(A),A}}return function(p,g,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(l=p.parseTwoDigitYear);var b=g.prototype,_=b.parse;b.parse=function(w){var C=w.date,S=w.utc,x=w.args;this.$u=S;var T=x[1];if(typeof T=="string"){var M=x[2]===!0,A=x[3]===!0,k=M||A,E=x[2];A&&(E=x[2]),s=this.$locale(),!M&&E&&(s=m.Ls[E]),this.$d=function($,O,N){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*$);var I=v(O)($),F=I.year,G=I.month,U=I.day,J=I.hours,ae=I.minutes,Q=I.seconds,ee=I.milliseconds,te=I.zone,q=new Date,de=U||(F||G?1:q.getDate()),ve=F||q.getFullYear(),ie=0;F&&!G||(ie=G>0?G-1:q.getMonth());var W=J||0,Z=ae||0,oe=Q||0,pe=ee||0;return te?new Date(Date.UTC(ve,ie,de,W,Z,oe,pe+60*te.offset*1e3)):N?new Date(Date.UTC(ve,ie,de,W,Z,oe,pe)):new Date(ve,ie,de,W,Z,oe,pe)}catch{return new Date("")}}(C,T,S),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),k&&C!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var D=T.length,L=1;L<=D;L+=1){x[1]=T[L-1];var B=m.apply(this,x);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}L===D&&(this.$d=new Date(""))}else _.call(this,w)}}})})(nz);var Qce=nz.exports;const $M=Mo(Qce),SP=["hours","minutes","seconds"],zC="HH:mm:ss",sf="YYYY-MM-DD",efe={date:sf,dates:sf,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${sf} ${zC}`,monthrange:"YYYY-MM",daterange:sf,datetimerange:`${sf} ${zC}`},T_=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],el=e=>Array.from(Array.from({length:e}).keys()),rz=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),az=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),CP=function(e,t){const n=rc(e),r=rc(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},xP=function(e,t){const n=He(e),r=He(t);return n&&r?e.length!==t.length?!1:e.every((a,i)=>CP(a,t[i])):!n&&!r?CP(e,t):!1},TP=function(e,t,n){const r=ja(t)||t==="x"?mt(e).locale(n):mt(e,t).locale(n);return r.isValid()?r:void 0},MP=function(e,t,n){return ja(t)?e:t==="x"?+e:mt(e).locale(n).format(t)},M_=(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},iz=Le({disabledHours:{type:ue(Function)},disabledMinutes:{type:ue(Function)},disabledSeconds:{type:ue(Function)}}),oz=Le({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),BM=Le({id:{type:ue([Array,String])},name:{type:ue([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ue([String,Object]),default:Ml},editable:{type:Boolean,default:!0},prefixIcon:{type:ue([String,Object]),default:""},size:wr,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:ue(Object),default:()=>({})},modelValue:{type:ue([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ue([Date,Array])},defaultTime:{type:ue([Date,Array])},isRange:{type:Boolean,default:!1},...iz,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:ue([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),tfe=["id","name","placeholder","value","disabled","readonly"],nfe=["id","name","placeholder","value","disabled","readonly"],rfe=j({name:"Picker"}),afe=j({...rfe,props:BM,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,a=mc(),{lang:i}=Ht(),o=Me("date"),s=Me("input"),l=Me("range"),{form:u,formItem:c}=ra(),f=Ge("ElPopperOptions",{}),d=H(),h=H(),v=H(!1),p=H(!1),g=H(null);let m=!1,b=!1;const _=P(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",U.value),o.is("active",v.value),l.b("editor"),me?l.bm("editor",me.value):"",a.class]),w=P(()=>[s.e("icon"),l.e("close-icon"),de.value?"":l.e("close-icon--hidden")]);xe(v,ne=>{ne?Ue(()=>{ne&&(g.value=r.modelValue)}):(we.value=null,Ue(()=>{C(r.modelValue)}))});const C=(ne,Ve)=>{(Ve||!xP(ne,g.value))&&(n("change",ne),r.validateEvent&&(c==null||c.validate("change").catch(st=>void 0)))},S=ne=>{if(!xP(r.modelValue,ne)){let Ve;He(ne)?Ve=ne.map(st=>MP(st,r.valueFormat,i.value)):ne&&(Ve=MP(ne,r.valueFormat,i.value)),n("update:modelValue",ne&&Ve,i.value)}},x=ne=>{n("keydown",ne)},T=P(()=>{if(h.value){const ne=Se.value?h.value:h.value.$el;return Array.from(ne.querySelectorAll("input"))}return[]}),M=(ne,Ve,st)=>{const It=T.value;It.length&&(!st||st==="min"?(It[0].setSelectionRange(ne,Ve),It[0].focus()):st==="max"&&(It[1].setSelectionRange(ne,Ve),It[1].focus()))},A=()=>{N(!0,!0),Ue(()=>{b=!1})},k=(ne="",Ve=!1)=>{Ve||(b=!0),v.value=Ve;let st;He(ne)?st=ne.map(It=>It.toDate()):st=ne&&ne.toDate(),we.value=null,S(st)},E=()=>{p.value=!0},D=()=>{n("visible-change",!0)},L=ne=>{(ne==null?void 0:ne.key)===Xe.esc&&N(!0,!0)},B=()=>{p.value=!1,v.value=!1,b=!1,n("visible-change",!1)},$=()=>{v.value=!0},O=()=>{v.value=!1},N=(ne=!0,Ve=!1)=>{b=Ve;const[st,It]=y(T);let Vn=st;!ne&&Se.value&&(Vn=It),Vn&&Vn.focus()},I=ne=>{r.readonly||U.value||v.value||b||(v.value=!0,n("focus",ne))};let F;const G=ne=>{const Ve=async()=>{setTimeout(()=>{var st;F===Ve&&(!((st=d.value)!=null&&st.isFocusInsideContent()&&!m)&&T.value.filter(It=>It.contains(document.activeElement)).length===0&&(Te(),v.value=!1,n("blur",ne),r.validateEvent&&(c==null||c.validate("blur").catch(It=>void 0))),m=!1)},0)};F=Ve,Ve()},U=P(()=>r.disabled||(u==null?void 0:u.disabled)),J=P(()=>{let ne;if(ie.value?ye.value.getDefaultValue&&(ne=ye.value.getDefaultValue()):He(r.modelValue)?ne=r.modelValue.map(Ve=>TP(Ve,r.valueFormat,i.value)):ne=TP(r.modelValue,r.valueFormat,i.value),ye.value.getRangeAvailableTime){const Ve=ye.value.getRangeAvailableTime(ne);va(Ve,ne)||(ne=Ve,S(He(ne)?ne.map(st=>st.toDate()):ne.toDate()))}return He(ne)&&ne.some(Ve=>!Ve)&&(ne=[]),ne}),ae=P(()=>{if(!ye.value.panelReady)return"";const ne=Be(J.value);return He(we.value)?[we.value[0]||ne&&ne[0]||"",we.value[1]||ne&&ne[1]||""]:we.value!==null?we.value:!ee.value&&ie.value||!v.value&&ie.value?"":ne?te.value?ne.join(", "):ne:""}),Q=P(()=>r.type.includes("time")),ee=P(()=>r.type.startsWith("time")),te=P(()=>r.type==="dates"),q=P(()=>r.prefixIcon||(Q.value?F5:Yre)),de=H(!1),ve=ne=>{r.readonly||U.value||de.value&&(ne.stopPropagation(),A(),S(null),C(null,!0),de.value=!1,v.value=!1,ye.value.handleClear&&ye.value.handleClear())},ie=P(()=>{const{modelValue:ne}=r;return!ne||He(ne)&&!ne.filter(Boolean).length}),W=async ne=>{var Ve;r.readonly||U.value||(((Ve=ne.target)==null?void 0:Ve.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},Z=()=>{r.readonly||U.value||!ie.value&&r.clearable&&(de.value=!0)},oe=()=>{de.value=!1},pe=ne=>{var Ve;r.readonly||U.value||(((Ve=ne.touches[0].target)==null?void 0:Ve.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},Se=P(()=>r.type.includes("range")),me=jn(),Ee=P(()=>{var ne,Ve;return(Ve=(ne=y(d))==null?void 0:ne.popperRef)==null?void 0:Ve.contentRef}),Ce=P(()=>{var ne;return y(Se)?y(h):(ne=y(h))==null?void 0:ne.$el});UT(Ce,ne=>{const Ve=y(Ee),st=y(Ce);Ve&&(ne.target===Ve||ne.composedPath().includes(Ve))||ne.target===st||ne.composedPath().includes(st)||(v.value=!1)});const we=H(null),Te=()=>{if(we.value){const ne=Ne(ae.value);ne&&We(ne)&&(S(He(ne)?ne.map(Ve=>Ve.toDate()):ne.toDate()),we.value=null)}we.value===""&&(S(null),C(null),we.value=null)},Ne=ne=>ne?ye.value.parseUserInput(ne):null,Be=ne=>ne?ye.value.formatToString(ne):null,We=ne=>ye.value.isValidValue(ne),Ae=async ne=>{if(r.readonly||U.value)return;const{code:Ve}=ne;if(x(ne),Ve===Xe.esc){v.value===!0&&(v.value=!1,ne.preventDefault(),ne.stopPropagation());return}if(Ve===Xe.down&&(ye.value.handleFocusPicker&&(ne.preventDefault(),ne.stopPropagation()),v.value===!1&&(v.value=!0,await Ue()),ye.value.handleFocusPicker)){ye.value.handleFocusPicker();return}if(Ve===Xe.tab){m=!0;return}if(Ve===Xe.enter||Ve===Xe.numpadEnter){(we.value===null||we.value===""||We(Ne(ae.value)))&&(Te(),v.value=!1),ne.stopPropagation();return}if(we.value){ne.stopPropagation();return}ye.value.handleKeydownInput&&ye.value.handleKeydownInput(ne)},ze=ne=>{we.value=ne,v.value||(v.value=!0)},rt=ne=>{const Ve=ne.target;we.value?we.value=[Ve.value,we.value[1]]:we.value=[Ve.value,null]},vt=ne=>{const Ve=ne.target;we.value?we.value=[we.value[0],Ve.value]:we.value=[null,Ve.value]},kt=()=>{var ne;const Ve=we.value,st=Ne(Ve&&Ve[0]),It=y(J);if(st&&st.isValid()){we.value=[Be(st),((ne=ae.value)==null?void 0:ne[1])||null];const Vn=[st,It&&(It[1]||null)];We(Vn)&&(S(Vn),we.value=null)}},Qe=()=>{var ne;const Ve=y(we),st=Ne(Ve&&Ve[1]),It=y(J);if(st&&st.isValid()){we.value=[((ne=y(ae))==null?void 0:ne[0])||null,Be(st)];const Vn=[It&&It[0],st];We(Vn)&&(S(Vn),we.value=null)}},ye=H({}),fe=ne=>{ye.value[ne[0]]=ne[1],ye.value.panelReady=!0},le=ne=>{n("calendar-change",ne)},ke=(ne,Ve,st)=>{n("panel-change",ne,Ve,st)};return Et("EP_PICKER_BASE",{props:r}),t({focus:N,handleFocusInput:I,handleBlurInput:G,handleOpen:$,handleClose:O,onPick:k}),(ne,Ve)=>(R(),ce(y(Qr),St({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},ne.$attrs,{role:"dialog",teleported:"",transition:`${y(o).namespace.value}-zoom-in-top`,"popper-class":[`${y(o).namespace.value}-picker__popper`,ne.popperClass],"popper-options":y(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:E,onShow:D,onHide:B}),{default:re(()=>[y(Se)?(R(),K("div",{key:1,ref_key:"inputRef",ref:h,class:V(y(_)),style:Ye(ne.$attrs.style),onClick:I,onMouseenter:Z,onMouseleave:oe,onTouchstart:pe,onKeydown:Ae},[y(q)?(R(),ce(y(Ke),{key:0,class:V([y(s).e("icon"),y(l).e("icon")]),onMousedown:tt(W,["prevent"]),onTouchstart:pe},{default:re(()=>[(R(),ce(Ct(y(q))))]),_:1},8,["class","onMousedown"])):se("v-if",!0),Y("input",{id:ne.id&&ne.id[0],autocomplete:"off",name:ne.name&&ne.name[0],placeholder:ne.startPlaceholder,value:y(ae)&&y(ae)[0],disabled:y(U),readonly:!ne.editable||ne.readonly,class:V(y(l).b("input")),onMousedown:W,onInput:rt,onChange:kt,onFocus:I,onBlur:G},null,42,tfe),_e(ne.$slots,"range-separator",{},()=>[Y("span",{class:V(y(l).b("separator"))},De(ne.rangeSeparator),3)]),Y("input",{id:ne.id&&ne.id[1],autocomplete:"off",name:ne.name&&ne.name[1],placeholder:ne.endPlaceholder,value:y(ae)&&y(ae)[1],disabled:y(U),readonly:!ne.editable||ne.readonly,class:V(y(l).b("input")),onMousedown:W,onFocus:I,onBlur:G,onInput:vt,onChange:Qe},null,42,nfe),ne.clearIcon?(R(),ce(y(Ke),{key:1,class:V(y(w)),onClick:ve},{default:re(()=>[(R(),ce(Ct(ne.clearIcon)))]),_:1},8,["class"])):se("v-if",!0)],38)):(R(),ce(y(Lr),{key:0,id:ne.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":y(ae),name:ne.name,size:y(me),disabled:y(U),placeholder:ne.placeholder,class:V([y(o).b("editor"),y(o).bm("editor",ne.type),ne.$attrs.class]),style:Ye(ne.$attrs.style),readonly:!ne.editable||ne.readonly||y(te)||ne.type==="week",label:ne.label,tabindex:ne.tabindex,"validate-event":!1,onInput:ze,onFocus:I,onBlur:G,onKeydown:Ae,onChange:Te,onMousedown:W,onMouseenter:Z,onMouseleave:oe,onTouchstart:pe,onClick:Ve[0]||(Ve[0]=tt(()=>{},["stop"]))},{prefix:re(()=>[y(q)?(R(),ce(y(Ke),{key:0,class:V(y(s).e("icon")),onMousedown:tt(W,["prevent"]),onTouchstart:pe},{default:re(()=>[(R(),ce(Ct(y(q))))]),_:1},8,["class","onMousedown"])):se("v-if",!0)]),suffix:re(()=>[de.value&&ne.clearIcon?(R(),ce(y(Ke),{key:0,class:V(`${y(s).e("icon")} clear-icon`),onClick:tt(ve,["stop"])},{default:re(()=>[(R(),ce(Ct(ne.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:re(()=>[_e(ne.$slots,"default",{visible:v.value,actualVisible:p.value,parsedValue:y(J),format:ne.format,unlinkPanels:ne.unlinkPanels,type:ne.type,defaultValue:ne.defaultValue,onPick:k,onSelectRange:M,onSetPickerOption:fe,onCalendarChange:le,onPanelChange:ke,onKeydown:L,onMousedown:Ve[1]||(Ve[1]=tt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var sz=Pe(afe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const ife=Le({...oz,datetimeRole:String,parsedValue:{type:ue(Object)}}),lz=({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 v=c[d];switch(d){case"minute":{h=v(f.hour(),s,u);break}case"second":{h=v(f.hour(),f.minute(),s,u);break}default:{h=v(s,u);break}}if(h!=null&&h.length&&!h.includes(f[d]())){const p=l?0:h.length-1;f=f[d](h[p])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([o,s])=>{a[o]=s}}},k_=e=>{const t=(r,a)=>r||a,n=r=>r!==!0;return e.map(t).filter(n)},uz=(e,t,n)=>({getHoursList:(o,s)=>M_(24,e&&(()=>e==null?void 0:e(o,s))),getMinutesList:(o,s,l)=>M_(60,t&&(()=>t==null?void 0:t(o,s,l))),getSecondsList:(o,s,l,u)=>M_(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),cz=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=uz(e,t,n);return{getAvailableHours:(u,c)=>k_(r(u,c)),getAvailableMinutes:(u,c,f)=>k_(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>k_(i(u,c,f,d))}},fz=e=>{const t=H(e.parsedValue);return xe(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Ps=new Map;let kP;Vt&&(document.addEventListener("mousedown",e=>kP=e),document.addEventListener("mouseup",e=>{for(const t of Ps.values())for(const{documentHandler:n}of t)n(e,kP)}));function AP(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:ri(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(v=>v==null?void 0:v.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 vl={beforeMount(e,t){Ps.has(e)||Ps.set(e,[]),Ps.get(e).push({documentHandler:AP(e,t),bindingFn:t.value})},updated(e,t){Ps.has(e)||Ps.set(e,[]);const n=Ps.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:AP(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){Ps.delete(e)}},ofe=100,sfe=600,h0={beforeMount(e,t){const n=t.value,{interval:r=ofe,delay:a=sfe}=it(n)?{}:n;let i,o;const s=()=>it(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))})}},HC="_trap-focus-children",Pu=[],EP=e=>{if(Pu.length===0)return;const t=Pu[Pu.length-1][HC];if(t.length>0&&e.code===Xe.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())}},lfe={beforeMount(e){e[HC]=GI(e),Pu.push(e),Pu.length<=1&&document.addEventListener("keydown",EP)},updated(e){Ue(()=>{e[HC]=GI(e)})},unmounted(){Pu.shift(),Pu.length===0&&document.removeEventListener("keydown",EP)}};var IP=!1,Cu,GC,WC,dy,hy,dz,vy,KC,UC,YC,hz,jC,qC,vz,pz;function oa(){if(!IP){IP=!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(jC=/\b(iPhone|iP[ao]d)/.exec(e),qC=/\b(iP[ao]d)/.exec(e),YC=/Android/i.exec(e),vz=/FBAN\/\w+;/i.exec(e),pz=/Mobile/i.exec(e),hz=!!/Win64/.exec(e),t){Cu=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Cu&&document&&document.documentMode&&(Cu=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);dz=r?parseFloat(r[1])+4:Cu,GC=t[2]?parseFloat(t[2]):NaN,WC=t[3]?parseFloat(t[3]):NaN,dy=t[4]?parseFloat(t[4]):NaN,dy?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),hy=t&&t[1]?parseFloat(t[1]):NaN):hy=NaN}else Cu=GC=WC=hy=dy=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);vy=a?parseFloat(a[1].replace("_",".")):!0}else vy=!1;KC=!!n[2],UC=!!n[3]}else vy=KC=UC=!1}}var XC={ie:function(){return oa()||Cu},ieCompatibilityMode:function(){return oa()||dz>Cu},ie64:function(){return XC.ie()&&hz},firefox:function(){return oa()||GC},opera:function(){return oa()||WC},webkit:function(){return oa()||dy},safari:function(){return XC.webkit()},chrome:function(){return oa()||hy},windows:function(){return oa()||KC},osx:function(){return oa()||vy},linux:function(){return oa()||UC},iphone:function(){return oa()||jC},mobile:function(){return oa()||jC||qC||YC||pz},nativeApp:function(){return oa()||vz},android:function(){return oa()||YC},ipad:function(){return oa()||qC}},ufe=XC,Yg=!!(typeof window<"u"&&window.document&&window.document.createElement),cfe={canUseDOM:Yg,canUseWorkers:typeof Worker<"u",canUseEventListeners:Yg&&!!(window.addEventListener||window.attachEvent),canUseViewport:Yg&&!!window.screen,isInWorker:!Yg},gz=cfe,mz;gz.canUseDOM&&(mz=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function ffe(e,t){if(!gz.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&&mz&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var dfe=ffe,DP=10,PP=40,LP=800;function yz(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*DP,a=n*DP,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=PP,a*=PP):(r*=LP,a*=LP)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}yz.getEventType=function(){return ufe.firefox()?"DOMMouseScroll":dfe("wheel")?"wheel":"mousewheel"};var hfe=yz;/**
  29. * Checks if an event is supported in the current execution environment.
  30. *
  31. * NOTE: This will not work correctly for non-generic events such as `change`,
  32. * `reset`, `load`, `error`, and `select`.
  33. *
  34. * Borrows from Modernizr.
  35. *
  36. * @param {string} eventNameSuffix Event name, e.g. "click".
  37. * @param {?boolean} capture Check if the capture phase is supported.
  38. * @return {boolean} True if the event is supported.
  39. * @internal
  40. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  41. */const vfe=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=hfe(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",n,{passive:!0})}},pfe={beforeMount(e,t){vfe(e,t.value)}},gfe=Le({role:{type:String,required:!0},spinnerDate:{type:ue(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ue(String),default:""},...iz}),mfe=["onClick"],yfe=["onMouseenter"],bfe=j({__name:"basic-time-spinner",props:gfe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Me("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=uz(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=H(),u=H(),c=H(),f=H(),d={hours:u,minutes:c,seconds:f},h=P(()=>n.showSeconds?SP:SP.slice(0,2)),v=P(()=>{const{spinnerDate:I}=n,F=I.hour(),G=I.minute(),U=I.second();return{hours:F,minutes:G,seconds:U}}),p=P(()=>{const{hours:I,minutes:F}=y(v);return{hours:a(n.role),minutes:i(I,n.role),seconds:o(I,F,n.role)}}),g=P(()=>{const{hours:I,minutes:F,seconds:G}=y(v);return{hours:T_(I,23),minutes:T_(F,59),seconds:T_(G,59)}}),m=Jr(I=>{s=!1,w(I)},200),b=I=>{if(!!!n.amPmMode)return"";const G=n.amPmMode==="A";let U=I<12?" am":" pm";return G&&(U=U.toUpperCase()),U},_=I=>{let F;switch(I){case"hours":F=[0,2];break;case"minutes":F=[3,5];break;case"seconds":F=[6,8];break}const[G,U]=F;t("select-range",G,U),l.value=I},w=I=>{x(I,y(v)[I])},C=()=>{w("hours"),w("minutes"),w("seconds")},S=I=>I.querySelector(`.${r.namespace.value}-scrollbar__wrap`),x=(I,F)=>{if(n.arrowControl)return;const G=y(d[I]);G&&G.$el&&(S(G.$el).scrollTop=Math.max(0,F*T(I)))},T=I=>{const F=y(d[I]),G=F==null?void 0:F.$el.querySelector("li");return G&&Number.parseFloat(zs(G,"height"))||0},M=()=>{k(1)},A=()=>{k(-1)},k=I=>{l.value||_("hours");const F=l.value,G=y(v)[F],U=l.value==="hours"?24:60,J=E(F,G,I,U);D(F,J),x(F,J),Ue(()=>_(F))},E=(I,F,G,U)=>{let J=(F+G+U)%U;const ae=y(p)[I];for(;ae[J]&&J!==F;)J=(J+G+U)%U;return J},D=(I,F)=>{if(y(p)[I][F])return;const{hours:J,minutes:ae,seconds:Q}=y(v);let ee;switch(I){case"hours":ee=n.spinnerDate.hour(F).minute(ae).second(Q);break;case"minutes":ee=n.spinnerDate.hour(J).minute(F).second(Q);break;case"seconds":ee=n.spinnerDate.hour(J).minute(ae).second(F);break}t("change",ee)},L=(I,{value:F,disabled:G})=>{G||(D(I,F),_(I),x(I,F))},B=I=>{s=!0,m(I);const F=Math.min(Math.round((S(y(d[I]).$el).scrollTop-($(I)*.5-10)/T(I)+3)/T(I)),I==="hours"?23:59);D(I,F)},$=I=>y(d[I]).$el.offsetHeight,O=()=>{const I=F=>{const G=y(d[F]);G&&G.$el&&(S(G.$el).onscroll=()=>{B(F)})};I("hours"),I("minutes"),I("seconds")};yt(()=>{Ue(()=>{!n.arrowControl&&O(),C(),n.role==="start"&&_("hours")})});const N=(I,F)=>{d[F].value=I};return t("set-option",[`${n.role}_scrollDown`,k]),t("set-option",[`${n.role}_emitSelectRange`,_]),xe(()=>n.spinnerDate,()=>{s||C()}),(I,F)=>(R(),K("div",{class:V([y(r).b("spinner"),{"has-seconds":I.showSeconds}])},[I.arrowControl?se("v-if",!0):(R(!0),K(je,{key:0},Ot(y(h),G=>(R(),ce(y(ds),{key:G,ref_for:!0,ref:U=>N(U,G),class:V(y(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":y(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:U=>_(G),onMousemove:U=>w(G)},{default:re(()=>[(R(!0),K(je,null,Ot(y(p)[G],(U,J)=>(R(),K("li",{key:J,class:V([y(r).be("spinner","item"),y(r).is("active",J===y(v)[G]),y(r).is("disabled",U)]),onClick:ae=>L(G,{value:J,disabled:U})},[G==="hours"?(R(),K(je,{key:0},[Ut(De(("0"+(I.amPmMode?J%12||12:J)).slice(-2))+De(b(J)),1)],64)):(R(),K(je,{key:1},[Ut(De(("0"+J).slice(-2)),1)],64))],10,mfe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),I.arrowControl?(R(!0),K(je,{key:1},Ot(y(h),G=>(R(),K("div",{key:G,class:V([y(r).be("spinner","wrapper"),y(r).is("arrow")]),onMouseenter:U=>_(G)},[dt((R(),ce(y(Ke),{class:V(["arrow-up",y(r).be("spinner","arrow")])},{default:re(()=>[X(y(Ub))]),_:1},8,["class"])),[[y(h0),A]]),dt((R(),ce(y(Ke),{class:V(["arrow-down",y(r).be("spinner","arrow")])},{default:re(()=>[X(y(Tl))]),_:1},8,["class"])),[[y(h0),M]]),Y("ul",{class:V(y(r).be("spinner","list"))},[(R(!0),K(je,null,Ot(y(g)[G],(U,J)=>(R(),K("li",{key:J,class:V([y(r).be("spinner","item"),y(r).is("active",U===y(v)[G]),y(r).is("disabled",y(p)[G][U])])},[typeof U=="number"?(R(),K(je,{key:0},[G==="hours"?(R(),K(je,{key:0},[Ut(De(("0"+(I.amPmMode?U%12||12:U)).slice(-2))+De(b(U)),1)],64)):(R(),K(je,{key:1},[Ut(De(("0"+U).slice(-2)),1)],64))],64)):se("v-if",!0)],2))),128))],2)],42,yfe))),128)):se("v-if",!0)],2))}});var ZC=Pe(bfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _fe=j({__name:"panel-time-pick",props:ife,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=Ge("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=cz(i,o,s),d=Me("time"),{t:h,lang:v}=Ht(),p=H([0,2]),g=fz(n),m=P(()=>Qn(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),b=P(()=>n.format.includes("ss")),_=P(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=N=>{const I=mt(N).locale(v.value),F=L(I);return I.isSame(F)},C=()=>{t("pick",g.value,!1)},S=(N=!1,I=!1)=>{I||t("pick",n.parsedValue,N)},x=N=>{if(!n.visible)return;const I=L(N).millisecond(0);t("pick",I,!0)},T=(N,I)=>{t("select-range",N,I),p.value=[N,I]},M=N=>{const I=[0,3].concat(b.value?[6]:[]),F=["hours","minutes"].concat(b.value?["seconds"]:[]),U=(I.indexOf(p.value[0])+N+I.length)%I.length;k.start_emitSelectRange(F[U])},A=N=>{const I=N.code,{left:F,right:G,up:U,down:J}=Xe;if([F,G].includes(I)){M(I===F?-1:1),N.preventDefault();return}if([U,J].includes(I)){const ae=I===U?-1:1;k.start_scrollDown(ae),N.preventDefault();return}},{timePickerOptions:k,onSetOption:E,getAvailableTime:D}=lz({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),L=N=>D(N,n.datetimeRole||"",!0),B=N=>N?mt(N,n.format).locale(v.value):null,$=N=>N?N.format(n.format):null,O=()=>mt(l).locale(v.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",$]),t("set-picker-option",["parseUserInput",B]),t("set-picker-option",["handleKeydownInput",A]),t("set-picker-option",["getRangeAvailableTime",L]),t("set-picker-option",["getDefaultValue",O]),(N,I)=>(R(),ce($n,{name:y(m)},{default:re(()=>[N.actualVisible||N.visible?(R(),K("div",{key:0,class:V(y(d).b("panel"))},[Y("div",{class:V([y(d).be("panel","content"),{"has-seconds":y(b)}])},[X(ZC,{ref:"spinner",role:N.datetimeRole||"start","arrow-control":y(a),"show-seconds":y(b),"am-pm-mode":y(_),"spinner-date":N.parsedValue,"disabled-hours":y(i),"disabled-minutes":y(o),"disabled-seconds":y(s),onChange:x,onSetOption:y(E),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),Y("div",{class:V(y(d).be("panel","footer"))},[Y("button",{type:"button",class:V([y(d).be("panel","btn"),"cancel"]),onClick:C},De(y(h)("el.datepicker.cancel")),3),Y("button",{type:"button",class:V([y(d).be("panel","btn"),"confirm"]),onClick:I[0]||(I[0]=F=>S())},De(y(h)("el.datepicker.confirm")),3)],2)],2)):se("v-if",!0)]),_:1},8,["name"]))}});var v0=Pe(_fe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const wfe=Le({...oz,parsedValue:{type:ue(Array)}}),Sfe=["disabled"],Cfe=j({__name:"panel-time-range",props:wfe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(ie,W)=>{const Z=[];for(let oe=ie;oe<=W;oe++)Z.push(oe);return Z},{t:a,lang:i}=Ht(),o=Me("time"),s=Me("picker"),l=Ge("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,v=P(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),p=P(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),g=P(()=>n.parsedValue[0]),m=P(()=>n.parsedValue[1]),b=fz(n),_=()=>{t("pick",b.value,!1)},w=P(()=>n.format.includes("ss")),C=P(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=(ie=!1)=>{t("pick",[g.value,m.value],ie)},x=ie=>{A(ie.millisecond(0),m.value)},T=ie=>{A(g.value,ie.millisecond(0))},M=ie=>{const W=ie.map(oe=>mt(oe).locale(i.value)),Z=G(W);return W[0].isSame(Z[0])&&W[1].isSame(Z[1])},A=(ie,W)=>{t("pick",[ie,W],!0)},k=P(()=>g.value>m.value),E=H([0,2]),D=(ie,W)=>{t("select-range",ie,W,"min"),E.value=[ie,W]},L=P(()=>w.value?11:8),B=(ie,W)=>{t("select-range",ie,W,"max");const Z=y(L);E.value=[ie+Z,W+Z]},$=ie=>{const W=w.value?[0,3,6,11,14,17]:[0,3,8,11],Z=["hours","minutes"].concat(w.value?["seconds"]:[]),pe=(W.indexOf(E.value[0])+ie+W.length)%W.length,Se=W.length/2;pe<Se?Q.start_emitSelectRange(Z[pe]):Q.end_emitSelectRange(Z[pe-Se])},O=ie=>{const W=ie.code,{left:Z,right:oe,up:pe,down:Se}=Xe;if([Z,oe].includes(W)){$(W===Z?-1:1),ie.preventDefault();return}if([pe,Se].includes(W)){const me=W===pe?-1:1,Ee=E.value[0]<L.value?"start":"end";Q[`${Ee}_scrollDown`](me),ie.preventDefault();return}},N=(ie,W)=>{const Z=c?c(ie):[],oe=ie==="start",Se=(W||(oe?m.value:g.value)).hour(),me=oe?r(Se+1,23):r(0,Se-1);return m_(Z,me)},I=(ie,W,Z)=>{const oe=f?f(ie,W):[],pe=W==="start",Se=Z||(pe?m.value:g.value),me=Se.hour();if(ie!==me)return oe;const Ee=Se.minute(),Ce=pe?r(Ee+1,59):r(0,Ee-1);return m_(oe,Ce)},F=(ie,W,Z,oe)=>{const pe=d?d(ie,W,Z):[],Se=Z==="start",me=oe||(Se?m.value:g.value),Ee=me.hour(),Ce=me.minute();if(ie!==Ee||W!==Ce)return pe;const we=me.second(),Te=Se?r(we+1,59):r(0,we-1);return m_(pe,Te)},G=([ie,W])=>[ee(ie,"start",!0,W),ee(W,"end",!1,ie)],{getAvailableHours:U,getAvailableMinutes:J,getAvailableSeconds:ae}=cz(N,I,F),{timePickerOptions:Q,getAvailableTime:ee,onSetOption:te}=lz({getAvailableHours:U,getAvailableMinutes:J,getAvailableSeconds:ae}),q=ie=>ie?He(ie)?ie.map(W=>mt(W,n.format).locale(i.value)):mt(ie,n.format).locale(i.value):null,de=ie=>ie?He(ie)?ie.map(W=>W.format(n.format)):ie.format(n.format):null,ve=()=>{if(He(h))return h.map(W=>mt(W).locale(i.value));const ie=mt(h).locale(i.value);return[ie,ie.add(60,"m")]};return t("set-picker-option",["formatToString",de]),t("set-picker-option",["parseUserInput",q]),t("set-picker-option",["isValidValue",M]),t("set-picker-option",["handleKeydownInput",O]),t("set-picker-option",["getDefaultValue",ve]),t("set-picker-option",["getRangeAvailableTime",G]),(ie,W)=>ie.actualVisible?(R(),K("div",{key:0,class:V([y(o).b("range-picker"),y(s).b("panel")])},[Y("div",{class:V(y(o).be("range-picker","content"))},[Y("div",{class:V(y(o).be("range-picker","cell"))},[Y("div",{class:V(y(o).be("range-picker","header"))},De(y(a)("el.datepicker.startTime")),3),Y("div",{class:V(y(v))},[X(ZC,{ref:"minSpinner",role:"start","show-seconds":y(w),"am-pm-mode":y(C),"arrow-control":y(u),"spinner-date":y(g),"disabled-hours":N,"disabled-minutes":I,"disabled-seconds":F,onChange:x,onSetOption:y(te),onSelectRange:D},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),Y("div",{class:V(y(o).be("range-picker","cell"))},[Y("div",{class:V(y(o).be("range-picker","header"))},De(y(a)("el.datepicker.endTime")),3),Y("div",{class:V(y(p))},[X(ZC,{ref:"maxSpinner",role:"end","show-seconds":y(w),"am-pm-mode":y(C),"arrow-control":y(u),"spinner-date":y(m),"disabled-hours":N,"disabled-minutes":I,"disabled-seconds":F,onChange:T,onSetOption:y(te),onSelectRange:B},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),Y("div",{class:V(y(o).be("panel","footer"))},[Y("button",{type:"button",class:V([y(o).be("panel","btn"),"cancel"]),onClick:W[0]||(W[0]=Z=>_())},De(y(a)("el.datepicker.cancel")),3),Y("button",{type:"button",class:V([y(o).be("panel","btn"),"confirm"]),disabled:y(k),onClick:W[1]||(W[1]=Z=>S())},De(y(a)("el.datepicker.confirm")),11,Sfe)],2)],2)):se("v-if",!0)}});var xfe=Pe(Cfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);mt.extend($M);var Tfe=j({name:"ElTimePicker",install:null,props:{...BM,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=H(),[r,a]=e.isRange?["timerange",xfe]:["time",v0],i=o=>t.emit("update:modelValue",o);return Et("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:zC;return X(sz,St(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>X(a,l,null)})}}});const py=Tfe;py.install=e=>{e.component(py.name,py)};const Mfe=py,kfe=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return el(t).map((r,a)=>n-(t-a-1))},Afe=e=>{const t=e.daysInMonth();return el(t).map((n,r)=>r+1)},Efe=e=>el(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Ife=Le({selectedDay:{type:ue(Object)},range:{type:ue(Array)},date:{type:ue(Object),required:!0},hideHeader:{type:Boolean}}),Dfe={pick:e=>Mt(e)};var bz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hs,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,v,p){var g=f.name?f:f.$locale(),m=o(g[d]),b=o(g[h]),_=m||b.map(function(C){return C.slice(0,v)});if(!p)return _;var w=g.weekStart;return _.map(function(C,S){return _[(S+(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(v,p,g){return p||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)}}})})(bz);var Pfe=bz.exports;const _z=Mo(Pfe),Lfe=(e,t)=>{mt.extend(_z);const n=mt.localeData().firstDayOfWeek(),{t:r,lang:a}=Ht(),i=mt().locale(a.value),o=P(()=>!!e.range&&!!e.range.length),s=P(()=>{let d=[];if(o.value){const[h,v]=e.range,p=el(v.date()-h.date()+1).map(b=>({text:h.date()+b,type:"current"}));let g=p.length%7;g=g===0?0:7-g;const m=el(g).map((b,_)=>({text:_+1,type:"next"}));d=p.concat(m)}else{const h=e.date.startOf("month").day(),v=kfe(e.date,(h-n+7)%7).map(b=>({text:b,type:"prev"})),p=Afe(e.date).map(b=>({text:b,type:"current"}));d=[...v,...p];const g=7-(d.length%7||7),m=el(g).map((b,_)=>({text:_+1,type:"next"}));d=d.concat(m)}return Efe(d)}),l=P(()=>{const d=n;return d===0?y_.map(h=>r(`el.datepicker.weeks.${h}`)):y_.slice(d).concat(y_.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 v=u(d,h);t("pick",v)},getSlotData:({text:d,type:h})=>{const v=u(d,h);return{isSelected:v.isSame(e.selectedDay),type:`${h}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},Rfe={key:0},Ofe=["onClick"],Nfe=j({name:"DateTable"}),$fe=j({...Nfe,props:Ife,emits:Dfe,setup(e,{expose:t,emit:n}){const r=e,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=Lfe(r,n),f=Me("calendar-table"),d=Me("calendar-day"),h=({text:v,type:p})=>{const g=[p];if(p==="current"){const m=l(v,p);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}),(v,p)=>(R(),K("table",{class:V([y(f).b(),y(f).is("range",y(a))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?se("v-if",!0):(R(),K("thead",Rfe,[(R(!0),K(je,null,Ot(y(s),g=>(R(),K("th",{key:g},De(g),1))),128))])),Y("tbody",null,[(R(!0),K(je,null,Ot(y(o),(g,m)=>(R(),K("tr",{key:m,class:V({[y(f).e("row")]:!0,[y(f).em("row","hide-border")]:m===0&&v.hideHeader})},[(R(!0),K(je,null,Ot(g,(b,_)=>(R(),K("td",{key:_,class:V(h(b)),onClick:w=>y(u)(b)},[Y("div",{class:V(y(d).b())},[_e(v.$slots,"date-cell",{data:y(c)(b)},()=>[Y("span",null,De(b.text),1)])],2)],10,Ofe))),128))],2))),128))])],2))}});var RP=Pe($fe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const Bfe=(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]]},Vfe=(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]]},Ffe=(e,t,n)=>{const r=Tr(),{lang:a}=Ht(),i=H(),o=mt().locale(a.value),s=P({get(){return e.modelValue?u.value:i.value},set(m){if(!m)return;i.value=m;const b=m.toDate();t(jr,b),t(wt,b)}}),l=P(()=>{if(!e.range)return[];const m=e.range.map(w=>mt(w).locale(a.value)),[b,_]=m;return b.isAfter(_)?[]:b.isSame(_,"month")?v(b,_):b.add(1,"month").month()!==_.month()?[]:v(b,_)}),u=P(()=>e.modelValue?mt(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=P(()=>u.value.subtract(1,"month").date(1)),f=P(()=>u.value.add(1,"month").date(1)),d=P(()=>u.value.subtract(1,"year").date(1)),h=P(()=>u.value.add(1,"year").date(1)),v=(m,b)=>{const _=m.startOf("week"),w=b.endOf("week"),C=_.get("month"),S=w.get("month");return C===S?[[_,w]]:(C+1)%12===S?Bfe(_,w):C+2===S||(C+1)%11===S?Vfe(_,w):[]},p=m=>{s.value=m},g=m=>{const _={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[m];_.isSame(u.value,"day")||p(_)};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"},P(()=>!!r.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:p,selectDate:g,validatedRange:l}},zfe=e=>He(e)&&e.length===2&&e.every(t=>rc(t)),Hfe=Le({modelValue:{type:Date},range:{type:ue(Array),validator:zfe}}),Gfe={[wt]:e=>rc(e),[jr]:e=>rc(e)},Wfe="ElCalendar",Kfe=j({name:Wfe}),Ufe=j({...Kfe,props:Hfe,emits:Gfe,setup(e,{expose:t,emit:n}){const r=e,a=Me("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=Ffe(r,n),{t:f}=Ht(),d=P(()=>{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,v)=>(R(),K("div",{class:V(y(a).b())},[Y("div",{class:V(y(a).e("header"))},[_e(h.$slots,"header",{date:y(d)},()=>[Y("div",{class:V(y(a).e("title"))},De(y(d)),3),y(c).length===0?(R(),K("div",{key:0,class:V(y(a).e("button-group"))},[X(y(ez),null,{default:re(()=>[X(y(br),{size:"small",onClick:v[0]||(v[0]=p=>y(u)("prev-month"))},{default:re(()=>[Ut(De(y(f)("el.datepicker.prevMonth")),1)]),_:1}),X(y(br),{size:"small",onClick:v[1]||(v[1]=p=>y(u)("today"))},{default:re(()=>[Ut(De(y(f)("el.datepicker.today")),1)]),_:1}),X(y(br),{size:"small",onClick:v[2]||(v[2]=p=>y(u)("next-month"))},{default:re(()=>[Ut(De(y(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):se("v-if",!0)])],2),y(c).length===0?(R(),K("div",{key:0,class:V(y(a).e("body"))},[X(RP,{date:y(o),"selected-day":y(l),onPick:y(s)},Zo({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:re(p=>[h.$slots["date-cell"]?_e(h.$slots,"date-cell",Mi(St({key:0},p))):_e(h.$slots,"dateCell",Mi(St({key:1},p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(R(),K("div",{key:1,class:V(y(a).e("body"))},[(R(!0),K(je,null,Ot(y(c),(p,g)=>(R(),ce(RP,{key:g,date:p[0],"selected-day":y(l),range:p,"hide-header":g!==0,onPick:y(s)},Zo({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:re(m=>[h.$slots["date-cell"]?_e(h.$slots,"date-cell",Mi(St({key:0},m))):_e(h.$slots,"dateCell",Mi(St({key:1},m)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Yfe=Pe(Ufe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const jfe=_t(Yfe),qfe=Le({header:{type:String,default:""},bodyStyle:{type:ue([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),Xfe=j({name:"ElCard"}),Zfe=j({...Xfe,props:qfe,setup(e){const t=Me("card");return(n,r)=>(R(),K("div",{class:V([y(t).b(),y(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(R(),K("div",{key:0,class:V(y(t).e("header"))},[_e(n.$slots,"header",{},()=>[Ut(De(n.header),1)])],2)):se("v-if",!0),Y("div",{class:V([y(t).e("body"),n.bodyClass]),style:Ye(n.bodyStyle)},[_e(n.$slots,"default")],6)],2))}});var Jfe=Pe(Zfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const Qfe=_t(Jfe),ede=Le({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}}),tde={change:(e,t)=>[e,t].every(at)},wz=Symbol("carouselContextKey"),OP=300,nde=(e,t,n)=>{const{children:r,addChild:a,removeChild:i}=DM(gt(),"ElCarouselItem"),o=H(-1),s=H(null),l=H(!1),u=H(),c=H(0),f=P(()=>e.arrow!=="never"&&!y(v)),d=P(()=>r.value.some(I=>I.props.label.toString().length>0)),h=P(()=>e.type==="card"),v=P(()=>e.direction==="vertical"),p=P(()=>e.height!=="auto"?{height:e.height}:{height:`${c.value}px`,overflow:"hidden"}),g=Uu(I=>{C(I)},OP,{trailing:!0}),m=Uu(I=>{D(I)},OP);function b(){s.value&&(clearInterval(s.value),s.value=null)}function _(){e.interval<=0||!e.autoplay||s.value||(s.value=setInterval(()=>w(),e.interval))}const w=()=>{o.value<r.value.length-1?o.value=o.value+1:e.loop&&(o.value=0)};function C(I){if(lt(I)){const U=r.value.filter(J=>J.props.name===I);U.length>0&&(I=r.value.indexOf(U[0]))}if(I=Number(I),Number.isNaN(I)||I!==Math.floor(I))return;const F=r.value.length,G=o.value;I<0?o.value=e.loop?F-1:0:I>=F?o.value=e.loop?0:F-1:o.value=I,G===o.value&&S(G),$()}function S(I){r.value.forEach((F,G)=>{F.translateItem(G,o.value,I)})}function x(I,F){var G,U,J,ae;const Q=y(r),ee=Q.length;if(ee===0||!I.states.inStage)return!1;const te=F+1,q=F-1,de=ee-1,ve=Q[de].states.active,ie=Q[0].states.active,W=(U=(G=Q[te])==null?void 0:G.states)==null?void 0:U.active,Z=(ae=(J=Q[q])==null?void 0:J.states)==null?void 0:ae.active;return F===de&&ie||W?"left":F===0&&ve||Z?"right":!1}function T(){l.value=!0,e.pauseOnHover&&b()}function M(){l.value=!1,_()}function A(I){y(v)||r.value.forEach((F,G)=>{I===x(F,G)&&(F.states.hover=!0)})}function k(){y(v)||r.value.forEach(I=>{I.states.hover=!1})}function E(I){o.value=I}function D(I){e.trigger==="hover"&&I!==o.value&&(o.value=I)}function L(){C(o.value-1)}function B(){C(o.value+1)}function $(){b(),_()}function O(I){e.height==="auto"&&(c.value=I)}xe(()=>o.value,(I,F)=>{S(F),F>-1&&t("change",I,F)}),xe(()=>e.autoplay,I=>{I?_():b()}),xe(()=>e.loop,()=>{C(o.value)}),xe(()=>e.interval,()=>{$()}),xe(()=>r.value,()=>{r.value.length>0&&C(e.initialIndex)});const N=ln();return yt(()=>{N.value=Or(u.value,()=>{S()}),_()}),_n(()=>{b(),u.value&&N.value&&N.value.stop()}),Et(wz,{root:u,isCardType:h,isVertical:v,items:r,loop:e.loop,addItem:a,removeItem:i,setActiveItem:C,setContainerHeight:O}),{root:u,activeIndex:o,arrowDisplay:f,hasLabel:d,hover:l,isCardType:h,items:r,isVertical:v,containerStyle:p,handleButtonEnter:A,handleButtonLeave:k,handleIndicatorClick:E,handleMouseEnter:T,handleMouseLeave:M,setActiveItem:C,prev:L,next:B,throttledArrowClick:g,throttledIndicatorHover:m}},rde=["onMouseenter","onClick"],ade={key:0},ide="ElCarousel",ode=j({name:ide}),sde=j({...ode,props:ede,emits:tde,setup(e,{expose:t,emit:n}){const r=e,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:d,handleButtonEnter:h,handleButtonLeave:v,handleIndicatorClick:p,handleMouseEnter:g,handleMouseLeave:m,setActiveItem:b,prev:_,next:w,throttledArrowClick:C,throttledIndicatorHover:S}=nde(r,n),x=Me("carousel"),T=P(()=>{const A=[x.b(),x.m(r.direction)];return y(u)&&A.push(x.m("card")),A}),M=P(()=>{const A=[x.e("indicators"),x.em("indicators",r.direction)];return y(s)&&A.push(x.em("indicators","labels")),r.indicatorPosition==="outside"&&A.push(x.em("indicators","outside")),y(f)&&A.push(x.em("indicators","right")),A});return t({setActiveItem:b,prev:_,next:w}),(A,k)=>(R(),K("div",{ref_key:"root",ref:a,class:V(y(T)),onMouseenter:k[6]||(k[6]=tt((...E)=>y(g)&&y(g)(...E),["stop"])),onMouseleave:k[7]||(k[7]=tt((...E)=>y(m)&&y(m)(...E),["stop"]))},[Y("div",{class:V(y(x).e("container")),style:Ye(y(d))},[y(o)?(R(),ce($n,{key:0,name:"carousel-arrow-left",persisted:""},{default:re(()=>[dt(Y("button",{type:"button",class:V([y(x).e("arrow"),y(x).em("arrow","left")]),onMouseenter:k[0]||(k[0]=E=>y(h)("left")),onMouseleave:k[1]||(k[1]=(...E)=>y(v)&&y(v)(...E)),onClick:k[2]||(k[2]=tt(E=>y(C)(y(i)-1),["stop"]))},[X(y(Ke),null,{default:re(()=>[X(y(cl))]),_:1})],34),[[Kt,(A.arrow==="always"||y(l))&&(r.loop||y(i)>0)]])]),_:1})):se("v-if",!0),y(o)?(R(),ce($n,{key:1,name:"carousel-arrow-right",persisted:""},{default:re(()=>[dt(Y("button",{type:"button",class:V([y(x).e("arrow"),y(x).em("arrow","right")]),onMouseenter:k[3]||(k[3]=E=>y(h)("right")),onMouseleave:k[4]||(k[4]=(...E)=>y(v)&&y(v)(...E)),onClick:k[5]||(k[5]=tt(E=>y(C)(y(i)+1),["stop"]))},[X(y(Ke),null,{default:re(()=>[X(y(Yr))]),_:1})],34),[[Kt,(A.arrow==="always"||y(l))&&(r.loop||y(i)<y(c).length-1)]])]),_:1})):se("v-if",!0),_e(A.$slots,"default")],6),A.indicatorPosition!=="none"?(R(),K("ul",{key:0,class:V(y(M))},[(R(!0),K(je,null,Ot(y(c),(E,D)=>(R(),K("li",{key:D,class:V([y(x).e("indicator"),y(x).em("indicator",A.direction),y(x).is("active",D===y(i))]),onMouseenter:L=>y(S)(D),onClick:tt(L=>y(p)(D),["stop"])},[Y("button",{class:V(y(x).e("button"))},[y(s)?(R(),K("span",ade,De(E.props.label),1)):se("v-if",!0)],2)],42,rde))),128))],2)):se("v-if",!0)],34))}});var lde=Pe(sde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const ude=Le({name:{type:String,default:""},label:{type:[String,Number],default:""}}),cde=(e,t)=>{const n=Ge(wz),r=gt(),a=.83,i=H(),o=H(!1),s=H(0),l=H(1),u=H(!1),c=H(!1),f=H(!1),d=H(!1),{isCardType:h,isVertical:v}=n;function p(w,C,S){const x=S-1,T=C-1,M=C+1,A=S/2;return C===0&&w===x?-1:C===x&&w===0?S:w<T&&C-w>=A?S+1:w>M&&w-C>=A?-2:w}function g(w,C){var S,x;const T=y(v)?((S=n.root.value)==null?void 0:S.offsetHeight)||0:((x=n.root.value)==null?void 0:x.offsetWidth)||0;return f.value?T*((2-a)*(w-C)+1)/4:w<C?-(1+a)*T/4:(3+a)*T/4}function m(w,C,S){const x=n.root.value;return x?((S?x.offsetHeight:x.offsetWidth)||0)*(w-C):0}const b=(w,C,S)=>{var x;const T=y(h),M=(x=n.items.value.length)!=null?x:Number.NaN,A=w===C;!T&&!Qn(S)&&(d.value=A||w===S),!A&&M>2&&n.loop&&(w=p(w,C,M));const k=y(v);u.value=A,T?(f.value=Math.round(Math.abs(w-C))<=1,s.value=g(w,C),l.value=y(u)?1:a):s.value=m(w,C,k),c.value=!0,A&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function _(){if(n&&y(h)){const w=n.items.value.findIndex(({uid:C})=>C===r.uid);n.setActiveItem(w)}}return yt(()=>{n.addItem({props:e,states:jt({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:r.uid,translateItem:b})}),xl(()=>{n.removeItem(r.uid)}),{carouselItemRef:i,active:u,animating:d,hover:o,inStage:f,isVertical:v,translate:s,isCardType:h,scale:l,ready:c,handleItemClick:_}},fde=j({name:"ElCarouselItem"}),dde=j({...fde,props:ude,setup(e){const t=e,n=Me("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=cde(t),v=P(()=>{const g=`${`translate${y(l)?"Y":"X"}`}(${y(u)}px)`,m=`scale(${y(f)})`;return{transform:[g,m].join(" ")}});return(p,g)=>dt((R(),K("div",{ref_key:"carouselItemRef",ref:r,class:V([y(n).e("item"),y(n).is("active",y(a)),y(n).is("in-stage",y(s)),y(n).is("hover",y(o)),y(n).is("animating",y(i)),{[y(n).em("item","card")]:y(c),[y(n).em("item","card-vertical")]:y(c)&&y(l)}]),style:Ye(y(v)),onClick:g[0]||(g[0]=(...m)=>y(h)&&y(h)(...m))},[y(c)?dt((R(),K("div",{key:0,class:V(y(n).e("mask"))},null,2)),[[Kt,!y(a)]]):se("v-if",!0),_e(p.$slots,"default")],6)),[[Kt,y(d)]])}});var Sz=Pe(dde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const hde=_t(lde,{CarouselItem:Sz}),vde=In(Sz),Cz={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:wr,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},xz={[wt]:e=>lt(e)||at(e)||Kn(e),change:e=>lt(e)||at(e)||Kn(e)},Ed=Symbol("checkboxGroupContextKey"),pde=({model:e,isChecked:t})=>{const n=Ge(Ed,void 0),r=P(()=>{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!Qn(s)&&e.value.length>=s&&!t.value||!Qn(l)&&e.value.length<=l&&t.value});return{isDisabled:_a(P(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},gde=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=Ge(Ed,void 0),{formItem:s}=ra(),{emit:l}=gt();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function c(v,p){l("change",u(v),p)}function f(v){if(n.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){n.value||!r.value&&!a.value&&i.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Ue(),c(t.value,v)))}const h=P(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return xe(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},mde=e=>{const t=H(!1),{emit:n}=gt(),r=Ge(Ed,void 0),a=P(()=>Qn(r)===!1),i=H(!1);return{model:P({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&&He(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(wt,s),t.value=s)}}),isGroup:a,isLimitExceeded:i}},yde=(e,t,{model:n})=>{const r=Ge(Ed,void 0),a=H(!1),i=P(()=>{const u=n.value;return Kn(u)?u:He(u)?Mt(e.label)?u.map(en).some(c=>va(c,e.label)):u.map(en).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=jn(P(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=jn(P(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=P(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},bde=(e,{model:t})=>{function n(){He(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},Tz=(e,t)=>{const{formItem:n}=ra(),{model:r,isGroup:a,isLimitExceeded:i}=mde(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=yde(e,t,{model:r}),{isDisabled:f}=pde({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=Il(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:v,onClickRoot:p}=gde(e,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return bde(e,{model:r}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:v,onClickRoot:p}},_de=["tabindex","role","aria-checked"],wde=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Sde=["id","aria-hidden","disabled","value","name","tabindex"],Cde=j({name:"ElCheckbox"}),xde=j({...Cde,props:Cz,emits:xz,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}=Tz(t,n),h=Me("checkbox"),v=P(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",i.value)]),p=P(()=>[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)=>(R(),ce(Ct(!y(u)&&y(a)?"span":"label"),{class:V(y(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:y(d)},{default:re(()=>[Y("span",{class:V(y(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?dt((R(),K("input",{key:0,id:y(r),"onUpdate:modelValue":m[0]||(m[0]=b=>un(c)?c.value=b:null),class:V(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]=(...b)=>y(f)&&y(f)(...b)),onFocus:m[2]||(m[2]=b=>s.value=!0),onBlur:m[3]||(m[3]=b=>s.value=!1),onClick:m[4]||(m[4]=tt(()=>{},["stop"]))},null,42,wde)),[[a0,y(c)]]):dt((R(),K("input",{key:1,id:y(r),"onUpdate:modelValue":m[5]||(m[5]=b=>un(c)?c.value=b:null),class:V(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[6]||(m[6]=(...b)=>y(f)&&y(f)(...b)),onFocus:m[7]||(m[7]=b=>s.value=!0),onBlur:m[8]||(m[8]=b=>s.value=!1),onClick:m[9]||(m[9]=tt(()=>{},["stop"]))},null,42,Sde)),[[a0,y(c)]]),Y("span",{class:V(y(h).e("inner"))},null,2)],10,_de),y(u)?(R(),K("span",{key:0,class:V(y(h).e("label"))},[_e(g.$slots,"default"),g.$slots.default?se("v-if",!0):(R(),K(je,{key:0},[Ut(De(g.label),1)],64))],2)):se("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Tde=Pe(xde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Mde=["name","tabindex","disabled","true-value","false-value"],kde=["name","tabindex","disabled","value"],Ade=j({name:"ElCheckboxButton"}),Ede=j({...Ade,props:Cz,emits:xz,setup(e){const t=e,n=Tr(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=Tz(t,n),u=Ge(Ed,void 0),c=Me("checkbox"),f=P(()=>{var h,v,p,g;const m=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=P(()=>[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,v)=>(R(),K("label",{class:V(y(d))},[h.trueLabel||h.falseLabel?dt((R(),K("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>un(s)?s.value=p:null),class:V(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:v[1]||(v[1]=(...p)=>y(l)&&y(l)(...p)),onFocus:v[2]||(v[2]=p=>r.value=!0),onBlur:v[3]||(v[3]=p=>r.value=!1),onClick:v[4]||(v[4]=tt(()=>{},["stop"]))},null,42,Mde)),[[a0,y(s)]]):dt((R(),K("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>un(s)?s.value=p:null),class:V(y(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:y(i),value:h.label,onChange:v[6]||(v[6]=(...p)=>y(l)&&y(l)(...p)),onFocus:v[7]||(v[7]=p=>r.value=!0),onBlur:v[8]||(v[8]=p=>r.value=!1),onClick:v[9]||(v[9]=tt(()=>{},["stop"]))},null,42,kde)),[[a0,y(s)]]),h.$slots.default||h.label?(R(),K("span",{key:2,class:V(y(c).be("button","inner")),style:Ye(y(a)?y(f):void 0)},[_e(h.$slots,"default",{},()=>[Ut(De(h.label),1)])],6)):se("v-if",!0)],2))}});var Mz=Pe(Ede,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Ide=Le({modelValue:{type:ue(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:wr,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Dde={[wt]:e=>He(e),change:e=>He(e)},Pde=j({name:"ElCheckboxGroup"}),Lde=j({...Pde,props:Ide,emits:Dde,setup(e,{emit:t}){const n=e,r=Me("checkbox"),{formItem:a}=ra(),{inputId:i,isLabeledByFormItem:o}=Il(n,{formItemContext:a}),s=async u=>{t(wt,u),await Ue(),t("change",u)},l=P({get(){return n.modelValue},set(u){s(u)}});return Et(Ed,{...zo(ir(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),xe(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return R(),ce(Ct(u.tag),{id:y(i),class:V(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:re(()=>[_e(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var kz=Pe(Lde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const li=_t(Tde,{CheckboxButton:Mz,CheckboxGroup:kz}),Rde=In(Mz),Az=In(kz),Ez=Le({size:wr,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Ode=Le({...Ez,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Iz={[wt]:e=>lt(e)||at(e)||Kn(e),[gn]:e=>lt(e)||at(e)||Kn(e)},Dz=Symbol("radioGroupKey"),Pz=(e,t)=>{const n=H(),r=Ge(Dz,void 0),a=P(()=>!!r),i=P({get(){return a.value?r.modelValue:e.modelValue},set(c){a.value?r.changeEvent(c):t&&t(wt,c),n.value.checked=e.modelValue===e.label}}),o=jn(P(()=>r==null?void 0:r.size)),s=_a(P(()=>r==null?void 0:r.disabled)),l=H(!1),u=P(()=>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}},Nde=["value","name","disabled"],$de=j({name:"ElRadio"}),Bde=j({...$de,props:Ode,emits:Iz,setup(e,{emit:t}){const n=e,r=Me("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=Pz(n,t);function c(){Ue(()=>t("change",u.value))}return(f,d)=>{var h;return R(),K("label",{class:V([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))])},[Y("span",{class:V([y(r).e("input"),y(r).is("disabled",y(l)),y(r).is("checked",y(u)===f.label)])},[dt(Y("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=v=>un(u)?u.value=v:null),class:V(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]=v=>o.value=!0),onBlur:d[2]||(d[2]=v=>o.value=!1),onChange:c,onClick:d[3]||(d[3]=tt(()=>{},["stop"]))},null,42,Nde),[[EV,y(u)]]),Y("span",{class:V(y(r).e("inner"))},null,2)],2),Y("span",{class:V(y(r).e("label")),onKeydown:d[4]||(d[4]=tt(()=>{},["stop"]))},[_e(f.$slots,"default",{},()=>[Ut(De(f.label),1)])],34)],2)}}});var Vde=Pe(Bde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Fde=Le({...Ez,name:{type:String,default:""}}),zde=["value","name","disabled"],Hde=j({name:"ElRadioButton"}),Gde=j({...Hde,props:Fde,setup(e){const t=e,n=Me("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=Pz(t),u=P(()=>({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 R(),K("label",{class:V([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))])},[dt(Y("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>un(s)?s.value=h:null),class:V(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),onClick:f[3]||(f[3]=tt(()=>{},["stop"]))},null,42,zde),[[EV,y(s)]]),Y("span",{class:V(y(n).be("button","inner")),style:Ye(y(s)===c.label?y(u):{}),onKeydown:f[4]||(f[4]=tt(()=>{},["stop"]))},[_e(c.$slots,"default",{},()=>[Ut(De(c.label),1)])],38)],2)}}});var Lz=Pe(Gde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Wde=Le({id:{type:String,default:void 0},size:wr,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}}),Kde=Iz,Ude=["id","aria-label","aria-labelledby"],Yde=j({name:"ElRadioGroup"}),jde=j({...Yde,props:Wde,emits:Kde,setup(e,{emit:t}){const n=e,r=Me("radio"),a=oi(),i=H(),{formItem:o}=ra(),{inputId:s,isLabeledByFormItem:l}=Il(n,{formItemContext:o}),u=f=>{t(wt,f),Ue(()=>t("change",f))};yt(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=P(()=>n.name||a.value);return Et(Dz,jt({...ir(n),changeEvent:u,name:c})),xe(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(R(),K("div",{id:y(s),ref_key:"radioGroupRef",ref:i,class:V(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},[_e(f.$slots,"default")],10,Ude))}});var Rz=Pe(jde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Oz=_t(Vde,{RadioButton:Lz,RadioGroup:Rz}),qde=In(Rz),Xde=In(Lz);var Zde=j({name:"NodeContent",setup(){return{ns:Me("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=n;return Ze("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const VM=Symbol(),Jde=j({name:"ElCascaderNode",components:{ElCheckbox:li,ElRadio:Oz,NodeContent:Zde,ElIcon:Ke,Check:Zp,Loading:kl,ArrowRight:Yr},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Ge(VM),r=Me("cascader-node"),a=P(()=>n.isHoverMenu),i=P(()=>n.config.multiple),o=P(()=>n.config.checkStrictly),s=P(()=>{var S;return(S=n.checkedNodes[0])==null?void 0:S.uid}),l=P(()=>e.node.isDisabled),u=P(()=>e.node.isLeaf),c=P(()=>o.value&&!u.value||!l.value),f=P(()=>h(n.expandingNode)),d=P(()=>o.value&&n.checkedNodes.some(h)),h=S=>{var x;const{level:T,uid:M}=e.node;return((x=S==null?void 0:S.pathNodes[T-1])==null?void 0:x.uid)===M},v=()=>{f.value||n.expandNode(e.node)},p=S=>{const{node:x}=e;S!==x.checked&&n.handleCheckChange(x,S)},g=()=>{n.lazyLoad(e.node,()=>{u.value||v()})},m=S=>{a.value&&(b(),!u.value&&t("expand",S))},b=()=>{const{node:S}=e;!c.value||S.loading||(S.loaded?v():g())},_=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?C(!0):b())},w=S=>{o.value?(p(S),e.node.loaded&&v()):C(S)},C=S=>{e.node.loaded?(p(S),!o.value&&v()):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:b,handleClick:_,handleCheck:C,handleSelectCheck:w}}}),Qde=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],ehe=Y("span",null,null,-1);function the(e,t,n,r,a,i){const o=ct("el-checkbox"),s=ct("el-radio"),l=ct("check"),u=ct("el-icon"),c=ct("node-content"),f=ct("loading"),d=ct("arrow-right");return R(),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:V([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))},[se(" prefix "),e.multiple?(R(),ce(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=tt(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(R(),ce(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=tt(()=>{},["stop"]))},{default:re(()=>[se(`
  42. Add an empty element to avoid render label,
  43. do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
  44. `),ehe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(R(),ce(u,{key:2,class:V(e.ns.e("prefix"))},{default:re(()=>[X(l)]),_:1},8,["class"])):se("v-if",!0),se(" content "),X(c),se(" postfix "),e.isLeaf?se("v-if",!0):(R(),K(je,{key:3},[e.node.loading?(R(),ce(u,{key:0,class:V([e.ns.is("loading"),e.ns.e("postfix")])},{default:re(()=>[X(f)]),_:1},8,["class"])):(R(),ce(u,{key:1,class:V(["arrow-right",e.ns.e("postfix")])},{default:re(()=>[X(d)]),_:1},8,["class"]))],64))],42,Qde)}var nhe=Pe(Jde,[["render",the],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const rhe=j({name:"ElCascaderMenu",components:{Loading:kl,ElIcon:Ke,ElScrollbar:ds,ElCascaderNode:nhe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=gt(),n=Me("cascader-menu"),{t:r}=Ht(),a=Jb();let i=null,o=null;const s=Ge(VM),l=H(null),u=P(()=>!e.nodes.length),c=P(()=>!s.initialLoaded),f=P(()=>`cascader-menu-${a}-${e.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){v();const m=t.vnode.el,{left:b}=m.getBoundingClientRect(),{offsetWidth:_,offsetHeight:w}=m,C=g.clientX-b,S=i.offsetTop,x=S+i.offsetHeight;l.value.innerHTML=`
  45. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${S} L${_} 0 V${S} Z" />
  46. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${x} L${_} ${w} V${x} Z" />
  47. `}else o||(o=window.setTimeout(p,s.config.hoverThreshold))},v=()=>{o&&(clearTimeout(o),o=null)},p=()=>{l.value&&(l.value.innerHTML="",v())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:r,handleExpand:d,handleMouseMove:h,clearHoverZone:p}}});function ahe(e,t,n,r,a,i){const o=ct("el-cascader-node"),s=ct("loading"),l=ct("el-icon"),u=ct("el-scrollbar");return R(),ce(u,{key:e.menuId,tag:"ul",role:"menu",class:V(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:re(()=>{var c;return[(R(!0),K(je,null,Ot(e.nodes,f=>(R(),ce(o,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(R(),K("div",{key:0,class:V(e.ns.e("empty-text"))},[X(l,{size:"14",class:V(e.ns.is("loading"))},{default:re(()=>[X(s)]),_:1},8,["class"]),Ut(" "+De(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(R(),K("div",{key:1,class:V(e.ns.e("empty-text"))},De(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(R(),K("svg",{key:2,ref:"hoverZone",class:V(e.ns.e("hover-zone"))},null,2)):se("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ihe=Pe(rhe,[["render",ahe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let ohe=0;const she=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let JC=class QC{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=ohe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=t[s],u=she(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 QC(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!ja(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(it(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=it(o)?o(t,this):t[o];return Qn(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 QC(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${ao(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${ao(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 ex=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(ex(r.children,t))),n),[]);class NP{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new JC(a,this.config));this.nodes=r,this.allNodes=ex(r,!1),this.leafNodes=ex(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new JC(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=>va(a.value,t)||va(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>va(t.value,r)&&t.level===a)||null}}const Nz=Le({modelValue:{type:ue([Number,String,Array])},options:{type:ue(Array),default:()=>[]},props:{type:ue(Object),default:()=>({})}}),lhe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:nn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},uhe=e=>P(()=>({...lhe,...e.props})),$P=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},che=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():UV(e)&&e.click()},fhe=(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},dhe=j({name:"ElCascaderPanel",components:{ElCascaderMenu:ihe},props:{...Nz,border:{type:Boolean,default:!0},renderLabel:Function},emits:[wt,gn,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=Me("cascader"),i=uhe(e);let o=null;const s=H(!0),l=H([]),u=H(null),c=H([]),f=H(null),d=H([]),h=P(()=>i.value.expandTrigger==="hover"),v=P(()=>e.renderLabel||n.default),p=()=>{const{options:E}=e,D=i.value;r=!1,o=new NP(E,D),c.value=[o.getNodes()],D.lazy&&ja(e.options)?(s.value=!1,g(void 0,L=>{L&&(o=new NP(L,D),c.value=[o.getNodes()]),s.value=!0,T(!1,!0)})):T(!1,!0)},g=(E,D)=>{const L=i.value;E=E||new JC({},L,void 0,!0),E.loading=!0;const B=$=>{const O=E,N=O.root?null:O;$&&(o==null||o.appendNodes($,N)),O.loading=!1,O.loaded=!0,O.childrenData=O.childrenData||[],D&&D($)};L.lazyLoad(E,B)},m=(E,D)=>{var L;const{level:B}=E,$=c.value.slice(0,B);let O;E.isLeaf?O=E.pathNodes[B-2]:(O=E,$.push(E.children)),((L=f.value)==null?void 0:L.uid)!==(O==null?void 0:O.uid)&&(f.value=E,c.value=$,!D&&t("expand-change",(E==null?void 0:E.pathValues)||[]))},b=(E,D,L=!0)=>{const{checkStrictly:B,multiple:$}=i.value,O=d.value[0];r=!0,!$&&(O==null||O.doCheck(!1)),E.doCheck(D),x(),L&&!$&&!B&&t("close"),!L&&!$&&!B&&_(E)},_=E=>{E&&(E=E.parent,_(E),E&&m(E))},w=E=>o==null?void 0:o.getFlattedNodes(E),C=E=>{var D;return(D=w(E))==null?void 0:D.filter(L=>L.checked!==!1)},S=()=>{d.value.forEach(E=>E.doCheck(!1)),x(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},x=()=>{var E;const{checkStrictly:D,multiple:L}=i.value,B=d.value,$=C(!D),O=fhe(B,$),N=O.map(I=>I.valueByOption);d.value=O,u.value=L?N:(E=N[0])!=null?E:null},T=(E=!1,D=!1)=>{const{modelValue:L}=e,{lazy:B,multiple:$,checkStrictly:O}=i.value,N=!O;if(!(!s.value||r||!D&&va(L,u.value)))if(B&&!E){const F=$D(wre(Yo(L))).map(G=>o==null?void 0:o.getNodeByValue(G)).filter(G=>!!G&&!G.loaded&&!G.loading);F.length?F.forEach(G=>{g(G,()=>T(!1,D))}):T(!0,D)}else{const I=$?Yo(L):[L],F=$D(I.map(G=>o==null?void 0:o.getNodeByValue(G,N)));M(F,D),u.value=l0(L)}},M=(E,D=!0)=>{const{checkStrictly:L}=i.value,B=d.value,$=E.filter(I=>!!I&&(L||I.isLeaf)),O=o==null?void 0:o.getSameNode(f.value),N=D&&O||$[0];N?N.pathNodes.forEach(I=>m(I,!0)):f.value=null,B.forEach(I=>I.doCheck(!1)),e.props.multiple?jt($).forEach(I=>I.doCheck(!0)):$.forEach(I=>I.doCheck(!0)),d.value=$,Ue(A)},A=()=>{Vt&&l.value.forEach(E=>{const D=E==null?void 0:E.$el;if(D){const L=D.querySelector(`.${a.namespace.value}-scrollbar__wrap`),B=D.querySelector(`.${a.b("node")}.${a.is("active")}`)||D.querySelector(`.${a.b("node")}.in-active-path`);B5(L,B)}})},k=E=>{const D=E.target,{code:L}=E;switch(L){case Xe.up:case Xe.down:{E.preventDefault();const B=L===Xe.up?-1:1;ly(YV(D,B,`.${a.b("node")}[tabindex="-1"]`));break}case Xe.left:{E.preventDefault();const B=l.value[$P(D)-1],$=B==null?void 0:B.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);ly($);break}case Xe.right:{E.preventDefault();const B=l.value[$P(D)+1],$=B==null?void 0:B.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);ly($);break}case Xe.enter:che(D);break}};return Et(VM,jt({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:v,lazyLoad:g,expandNode:m,handleCheckChange:b})),xe([i,()=>e.options],p,{deep:!0,immediate:!0}),xe(()=>e.modelValue,()=>{r=!1,T()},{deep:!0}),xe(()=>u.value,E=>{va(E,e.modelValue)||(t(wt,E),t(gn,E))}),aV(()=>l.value=[]),yt(()=>!ja(e.modelValue)&&T()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:k,handleCheckChange:b,getFlattedNodes:w,getCheckedNodes:C,clearCheckedNodes:S,calculateCheckedValue:x,scrollToExpandingNode:A}}});function hhe(e,t,n,r,a,i){const o=ct("el-cascader-menu");return R(),K("div",{class:V([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...s)=>e.handleKeyDown&&e.handleKeyDown(...s))},[(R(!0),K(je,null,Ot(e.menus,(s,l)=>(R(),ce(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var gy=Pe(dhe,[["render",hhe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);gy.install=e=>{e.component(gy.name,gy)};const $z=gy,vhe=$z,FM=Le({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:To,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),phe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},ghe=j({name:"ElTag"}),mhe=j({...ghe,props:FM,emits:phe,setup(e,{emit:t}){const n=e,r=jn(),a=Me("tag"),i=P(()=>{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?(R(),K("span",{key:0,class:V(y(i)),style:Ye({backgroundColor:l.color}),onClick:s},[Y("span",{class:V(y(a).e("content"))},[_e(l.$slots,"default")],2),l.closable?(R(),ce(y(Ke),{key:0,class:V(y(a).e("close")),onClick:tt(o,["stop"])},{default:re(()=>[X(y($i))]),_:1},8,["class","onClick"])):se("v-if",!0)],6)):(R(),ce($n,{key:1,name:`${y(a).namespace.value}-zoom-in-center`,appear:""},{default:re(()=>[Y("span",{class:V(y(i)),style:Ye({backgroundColor:l.color}),onClick:s},[Y("span",{class:V(y(a).e("content"))},[_e(l.$slots,"default")],2),l.closable?(R(),ce(y(Ke),{key:0,class:V(y(a).e("close")),onClick:tt(o,["stop"])},{default:re(()=>[X(y($i))]),_:1},8,["class","onClick"])):se("v-if",!0)],6)]),_:3},8,["name"]))}});var yhe=Pe(mhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const Qv=_t(yhe),bhe=Le({...Nz,size:wr,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:ue(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:ue(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:ur.teleported,tagType:{...FM.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),_he={[wt]:e=>!!e||e===null,[gn]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Kn(e),expandChange:e=>!!e,removeTag:e=>!!e},whe={key:0},She=["placeholder","onKeydown"],Che=["onClick"],xhe="ElCascader",The=j({name:xhe}),Mhe=j({...The,props:bhe,emits:_he,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:fe})=>{const{modifiersData:le,placement:ke}=fe;["right","left","bottom","top"].includes(ke)||(le.arrow.x=35)},requires:["arrow"]}]},i=mc();let o=0,s=0;const l=Me("cascader"),u=Me("input"),{t:c}=Ht(),{form:f,formItem:d}=ra(),h=H(null),v=H(null),p=H(null),g=H(null),m=H(null),b=H(!1),_=H(!1),w=H(!1),C=H(!1),S=H(""),x=H(""),T=H([]),M=H([]),A=H([]),k=H(!1),E=P(()=>i.style),D=P(()=>r.disabled||(f==null?void 0:f.disabled)),L=P(()=>r.placeholder||c("el.cascader.placeholder")),B=P(()=>x.value||T.value.length>0||k.value?"":L.value),$=jn(),O=P(()=>["small"].includes($.value)?"small":"default"),N=P(()=>!!r.props.multiple),I=P(()=>!r.filterable||N.value),F=P(()=>N.value?x.value:S.value),G=P(()=>{var fe;return((fe=g.value)==null?void 0:fe.checkedNodes)||[]}),U=P(()=>!r.clearable||D.value||w.value||!_.value?!1:!!G.value.length),J=P(()=>{const{showAllLevels:fe,separator:le}=r,ke=G.value;return ke.length?N.value?"":ke[0].calcText(fe,le):""}),ae=P({get(){return l0(r.modelValue)},set(fe){n(wt,fe),n(gn,fe),r.validateEvent&&(d==null||d.validate("change").catch(le=>void 0))}}),Q=P(()=>[l.b(),l.m($.value),l.is("disabled",D.value),i.class]),ee=P(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",b.value)]),te=P(()=>l.is("focus",b.value||C.value)),q=P(()=>{var fe,le;return(le=(fe=h.value)==null?void 0:fe.popperRef)==null?void 0:le.contentRef}),de=fe=>{var le,ke,ne;D.value||(fe=fe??!b.value,fe!==b.value&&(b.value=fe,(ke=(le=v.value)==null?void 0:le.input)==null||ke.setAttribute("aria-expanded",`${fe}`),fe?(ve(),Ue((ne=g.value)==null?void 0:ne.scrollToExpandingNode)):r.filterable&&Be(),n("visibleChange",fe)))},ve=()=>{Ue(()=>{var fe;(fe=h.value)==null||fe.updatePopper()})},ie=()=>{w.value=!1},W=fe=>{const{showAllLevels:le,separator:ke}=r;return{node:fe,key:fe.uid,text:fe.calcText(le,ke),hitState:!1,closable:!D.value&&!fe.isDisabled,isCollapseTag:!1}},Z=fe=>{var le;const ke=fe.node;ke.doCheck(!1),(le=g.value)==null||le.calculateCheckedValue(),n("removeTag",ke.valueByOption)},oe=()=>{if(!N.value)return;const fe=G.value,le=[],ke=[];if(fe.forEach(ne=>ke.push(W(ne))),M.value=ke,fe.length){fe.slice(0,r.maxCollapseTags).forEach(st=>le.push(W(st)));const ne=fe.slice(r.maxCollapseTags),Ve=ne.length;Ve&&(r.collapseTags?le.push({key:-1,text:`+ ${Ve}`,closable:!1,isCollapseTag:!0}):ne.forEach(st=>le.push(W(st))))}T.value=le},pe=()=>{var fe,le;const{filterMethod:ke,showAllLevels:ne,separator:Ve}=r,st=(le=(fe=g.value)==null?void 0:fe.getFlattedNodes(!r.props.checkStrictly))==null?void 0:le.filter(It=>It.isDisabled?!1:(It.calcText(ne,Ve),ke(It,F.value)));N.value&&(T.value.forEach(It=>{It.hitState=!1}),M.value.forEach(It=>{It.hitState=!1})),w.value=!0,A.value=st,ve()},Se=()=>{var fe;let le;w.value&&m.value?le=m.value.$el.querySelector(`.${l.e("suggestion-item")}`):le=(fe=g.value)==null?void 0:fe.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),le&&(le.focus(),!w.value&&le.click())},me=()=>{var fe,le;const ke=(fe=v.value)==null?void 0:fe.input,ne=p.value,Ve=(le=m.value)==null?void 0:le.$el;if(!(!Vt||!ke)){if(Ve){const st=Ve.querySelector(`.${l.e("suggestion-list")}`);st.style.minWidth=`${ke.offsetWidth}px`}if(ne){const{offsetHeight:st}=ne,It=T.value.length>0?`${Math.max(st+6,o)}px`:`${o}px`;ke.style.height=It,ve()}}},Ee=fe=>{var le;return(le=g.value)==null?void 0:le.getCheckedNodes(fe)},Ce=fe=>{ve(),n("expandChange",fe)},we=fe=>{var le;const ke=(le=fe.target)==null?void 0:le.value;if(fe.type==="compositionend")k.value=!1,Ue(()=>Qe(ke));else{const ne=ke[ke.length-1]||"";k.value=!Xb(ne)}},Te=fe=>{if(!k.value)switch(fe.code){case Xe.enter:de();break;case Xe.down:de(!0),Ue(Se),fe.preventDefault();break;case Xe.esc:b.value===!0&&(fe.preventDefault(),fe.stopPropagation(),de(!1));break;case Xe.tab:de(!1);break}},Ne=()=>{var fe;(fe=g.value)==null||fe.clearCheckedNodes(),!b.value&&r.filterable&&Be(),de(!1)},Be=()=>{const{value:fe}=J;S.value=fe,x.value=fe},We=fe=>{var le,ke;const{checked:ne}=fe;N.value?(le=g.value)==null||le.handleCheckChange(fe,!ne,!1):(!ne&&((ke=g.value)==null||ke.handleCheckChange(fe,!0,!1)),de(!1))},Ae=fe=>{const le=fe.target,{code:ke}=fe;switch(ke){case Xe.up:case Xe.down:{const ne=ke===Xe.up?-1:1;ly(YV(le,ne,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Xe.enter:le.click();break}},ze=()=>{const fe=T.value,le=fe[fe.length-1];s=x.value?0:s+1,!(!le||!s||r.collapseTags&&fe.length>1)&&(le.hitState?Z(le):le.hitState=!0)},rt=fe=>{const le=fe.target,ke=l.e("search-input");le.className===ke&&(C.value=!0),n("focus",fe)},vt=fe=>{C.value=!1,n("blur",fe)},kt=Jr(()=>{const{value:fe}=F;if(!fe)return;const le=r.beforeFilter(fe);Dv(le)?le.then(pe).catch(()=>{}):le!==!1?pe():ie()},r.debounce),Qe=(fe,le)=>{!b.value&&de(!0),!(le!=null&&le.isComposing)&&(fe?kt():ie())},ye=fe=>Number.parseFloat(hZ(u.cssVarName("input-height"),fe).value)-2;return xe(w,ve),xe([G,D],oe),xe(T,()=>{Ue(()=>me())}),xe($,async()=>{await Ue();const fe=v.value.input;o=ye(fe)||o,me()}),xe(J,Be,{immediate:!0}),yt(()=>{const fe=v.value.input,le=ye(fe);o=fe.offsetHeight||le,Or(fe,me)}),t({getCheckedNodes:Ee,cascaderPanelRef:g,togglePopperVisible:de,contentRef:q}),(fe,le)=>(R(),ce(y(Qr),{ref_key:"tooltipRef",ref:h,visible:b.value,teleported:fe.teleported,"popper-class":[y(l).e("dropdown"),fe.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:ie},{default:re(()=>[dt((R(),K("div",{class:V(y(Q)),style:Ye(y(E)),onClick:le[5]||(le[5]=()=>de(y(I)?void 0:!0)),onKeydown:Te,onMouseenter:le[6]||(le[6]=ke=>_.value=!0),onMouseleave:le[7]||(le[7]=ke=>_.value=!1)},[X(y(Lr),{ref_key:"input",ref:v,modelValue:S.value,"onUpdate:modelValue":le[1]||(le[1]=ke=>S.value=ke),placeholder:y(B),readonly:y(I),disabled:y(D),"validate-event":!1,size:y($),class:V(y(te)),tabindex:y(N)&&fe.filterable&&!y(D)?-1:void 0,onCompositionstart:we,onCompositionupdate:we,onCompositionend:we,onFocus:rt,onBlur:vt,onInput:Qe},{suffix:re(()=>[y(U)?(R(),ce(y(Ke),{key:"clear",class:V([y(u).e("icon"),"icon-circle-close"]),onClick:tt(Ne,["stop"])},{default:re(()=>[X(y(Ml))]),_:1},8,["class","onClick"])):(R(),ce(y(Ke),{key:"arrow-down",class:V(y(ee)),onClick:le[0]||(le[0]=tt(ke=>de(),["stop"]))},{default:re(()=>[X(y(Tl))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),y(N)?(R(),K("div",{key:0,ref_key:"tagWrapper",ref:p,class:V(y(l).e("tags"))},[(R(!0),K(je,null,Ot(T.value,ke=>(R(),ce(y(Qv),{key:ke.key,type:fe.tagType,size:y(O),hit:ke.hitState,closable:ke.closable,"disable-transitions":"",onClose:ne=>Z(ke)},{default:re(()=>[ke.isCollapseTag===!1?(R(),K("span",whe,De(ke.text),1)):(R(),ce(y(Qr),{key:1,disabled:b.value||!fe.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:re(()=>[Y("span",null,De(ke.text),1)]),content:re(()=>[Y("div",{class:V(y(l).e("collapse-tags"))},[(R(!0),K(je,null,Ot(M.value.slice(fe.maxCollapseTags),(ne,Ve)=>(R(),K("div",{key:Ve,class:V(y(l).e("collapse-tag"))},[(R(),ce(y(Qv),{key:ne.key,class:"in-tooltip",type:fe.tagType,size:y(O),hit:ne.hitState,closable:ne.closable,"disable-transitions":"",onClose:st=>Z(ne)},{default:re(()=>[Y("span",null,De(ne.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),fe.filterable&&!y(D)?dt((R(),K("input",{key:0,"onUpdate:modelValue":le[2]||(le[2]=ke=>x.value=ke),type:"text",class:V(y(l).e("search-input")),placeholder:y(J)?"":y(L),onInput:le[3]||(le[3]=ke=>Qe(x.value,ke)),onClick:le[4]||(le[4]=tt(ke=>de(!0),["stop"])),onKeydown:zt(ze,["delete"]),onCompositionstart:we,onCompositionupdate:we,onCompositionend:we,onFocus:rt,onBlur:vt},null,42,She)),[[zT,x.value]]):se("v-if",!0)],2)):se("v-if",!0)],38)),[[y(vl),()=>de(!1),y(q)]])]),content:re(()=>[dt(X(y($z),{ref_key:"cascaderPanelRef",ref:g,modelValue:y(ae),"onUpdate:modelValue":le[8]||(le[8]=ke=>un(ae)?ae.value=ke:null),options:fe.options,props:r.props,border:!1,"render-label":fe.$slots.default,onExpandChange:Ce,onClose:le[9]||(le[9]=ke=>fe.$nextTick(()=>de(!1)))},null,8,["modelValue","options","props","render-label"]),[[Kt,!w.value]]),fe.filterable?dt((R(),ce(y(ds),{key:0,ref_key:"suggestionPanel",ref:m,tag:"ul",class:V(y(l).e("suggestion-panel")),"view-class":y(l).e("suggestion-list"),onKeydown:Ae},{default:re(()=>[A.value.length?(R(!0),K(je,{key:0},Ot(A.value,ke=>(R(),K("li",{key:ke.uid,class:V([y(l).e("suggestion-item"),y(l).is("checked",ke.checked)]),tabindex:-1,onClick:ne=>We(ke)},[Y("span",null,De(ke.text),1),ke.checked?(R(),ce(y(Ke),{key:0},{default:re(()=>[X(y(Zp))]),_:1})):se("v-if",!0)],10,Che))),128)):_e(fe.$slots,"empty",{key:1},()=>[Y("li",{class:V(y(l).e("empty-text"))},De(y(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Kt,w.value]]):se("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var my=Pe(Mhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);my.install=e=>{e.component(my.name,my)};const khe=my,Ahe=khe,Ehe=Le({checked:{type:Boolean,default:!1}}),Ihe={"update:checked":e=>Kn(e),[gn]:e=>Kn(e)},Dhe=j({name:"ElCheckTag"}),Phe=j({...Dhe,props:Ehe,emits:Ihe,setup(e,{emit:t}){const n=e,r=Me("check-tag"),a=P(()=>[r.b(),r.is("checked",n.checked)]),i=()=>{const o=!n.checked;t(gn,o),t("update:checked",o)};return(o,s)=>(R(),K("span",{class:V(y(a)),onClick:i},[_e(o.$slots,"default")],2))}});var Lhe=Pe(Phe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const Rhe=_t(Lhe),Bz=Symbol("rowContextKey"),Ohe=["start","center","end","space-around","space-between","space-evenly"],Nhe=["top","middle","bottom"],$he=Le({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Ohe,default:"start"},align:{type:String,values:Nhe}}),Bhe=j({name:"ElRow"}),Vhe=j({...Bhe,props:$he,setup(e){const t=e,n=Me("row"),r=P(()=>t.gutter);Et(Bz,{gutter:r});const a=P(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=P(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(o,s)=>(R(),ce(Ct(o.tag),{class:V(y(i)),style:Ye(y(a))},{default:re(()=>[_e(o.$slots,"default")]),_:3},8,["class","style"]))}});var Fhe=Pe(Vhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const zhe=_t(Fhe),Hhe=Le({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:ue([Number,Object]),default:()=>Sn({})},sm:{type:ue([Number,Object]),default:()=>Sn({})},md:{type:ue([Number,Object]),default:()=>Sn({})},lg:{type:ue([Number,Object]),default:()=>Sn({})},xl:{type:ue([Number,Object]),default:()=>Sn({})}}),Ghe=j({name:"ElCol"}),Whe=j({...Ghe,props:Hhe,setup(e){const t=e,{gutter:n}=Ge(Bz,{gutter:P(()=>0)}),r=Me("col"),a=P(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=P(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];at(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=>{at(t[u])?o.push(r.b(`${u}-${t[u]}`)):Mt(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)=>(R(),ce(Ct(o.tag),{class:V(y(i)),style:Ye(y(a))},{default:re(()=>[_e(o.$slots,"default")]),_:3},8,["class","style"]))}});var Khe=Pe(Whe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Uhe=_t(Khe),BP=e=>typeof at(e),Yhe=Le({accordion:Boolean,modelValue:{type:ue([Array,String,Number]),default:()=>Sn([])}}),jhe={[wt]:BP,[gn]:BP},Vz=Symbol("collapseContextKey"),qhe=(e,t)=>{const n=H(oc(e.modelValue)),r=i=>{n.value=i;const o=e.accordion?n.value[0]:n.value;t(wt,o),t(gn,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 xe(()=>e.modelValue,()=>n.value=oc(e.modelValue),{deep:!0}),Et(Vz,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},Xhe=()=>{const e=Me("collapse");return{rootKls:P(()=>e.b())}},Zhe=j({name:"ElCollapse"}),Jhe=j({...Zhe,props:Yhe,emits:jhe,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:i}=qhe(r,n),{rootKls:o}=Xhe();return t({activeNames:a,setActiveNames:i}),(s,l)=>(R(),K("div",{class:V(y(o))},[_e(s.$slots,"default")],2))}});var Qhe=Pe(Jhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const eve=j({name:"ElCollapseTransition"}),tve=j({...eve,setup(e){const t=Me("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){a.dataset.oldOverflow=a.style.overflow,a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,i)=>(R(),ce($n,St({name:y(t).b()},mj(r)),{default:re(()=>[_e(a.$slots,"default")]),_:3},16,["name"]))}});var yy=Pe(tve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);yy.install=e=>{e.component(yy.name,yy)};const s1=yy,nve=s1,rve=Le({title:{type:String,default:""},name:{type:ue([String,Number]),default:()=>Jb()},disabled:Boolean}),ave=e=>{const t=Ge(Vz),n=H(!1),r=H(!1),a=H(Jb()),i=P(()=>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)}}},ive=(e,{focusing:t,isActive:n,id:r})=>{const a=Me("collapse"),i=P(()=>[a.b("item"),a.is("active",y(n)),a.is("disabled",e.disabled)]),o=P(()=>[a.be("item","header"),a.is("active",y(n)),{focusing:y(t)&&!e.disabled}]),s=P(()=>[a.be("item","arrow"),a.is("active",y(n))]),l=P(()=>a.be("item","wrap")),u=P(()=>a.be("item","content")),c=P(()=>a.b(`content-${y(r)}`)),f=P(()=>a.b(`head-${y(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},ove=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],sve=["id","aria-hidden","aria-labelledby"],lve=j({name:"ElCollapseItem"}),uve=j({...lve,props:rve,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=ave(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:v,scopedHeadId:p}=ive(n,{focusing:r,isActive:i,id:a});return t({isActive:i}),(g,m)=>(R(),K("div",{class:V(y(f))},[Y("button",{id:y(p),class:V(y(c)),"aria-expanded":y(i),"aria-controls":y(v),"aria-describedby":y(v),tabindex:g.disabled?-1:0,onClick:m[0]||(m[0]=(...b)=>y(s)&&y(s)(...b)),onKeydown:m[1]||(m[1]=zt(tt((...b)=>y(l)&&y(l)(...b),["stop","prevent"]),["space","enter"])),onFocus:m[2]||(m[2]=(...b)=>y(o)&&y(o)(...b)),onBlur:m[3]||(m[3]=b=>r.value=!1)},[_e(g.$slots,"title",{},()=>[Ut(De(g.title),1)]),X(y(Ke),{class:V(y(u))},{default:re(()=>[X(y(Yr))]),_:1},8,["class"])],42,ove),X(y(s1),null,{default:re(()=>[dt(Y("div",{id:y(v),role:"region",class:V(y(d)),"aria-hidden":!y(i),"aria-labelledby":y(p)},[Y("div",{class:V(y(h))},[_e(g.$slots,"default")],2)],10,sve),[[Kt,y(i)]])]),_:3})],2))}});var Fz=Pe(uve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const cve=_t(Qhe,{CollapseItem:Fz}),fve=In(Fz),dve=Le({color:{type:ue(Object),required:!0},vertical:{type:Boolean,default:!1}});let A_=!1;function ep(e,t){if(!Vt)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,A_=!1,(o=t.end)==null||o.call(t,i)},a=function(i){var o;A_||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),A_=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const hve=e=>{const t=gt(),n=ln(),r=ln();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}=YT(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}},vve=(e,{bar:t,thumb:n,handleDrag:r})=>{const a=gt(),i=Me("color-alpha-slider"),o=H(0),s=H(0),l=H();function u(){if(!n.value||e.vertical)return 0;const b=a.vnode.el,_=e.color.get("alpha");return b?Math.round(_*(b.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const b=a.vnode.el;if(!e.vertical)return 0;const _=e.color.get("alpha");return b?Math.round(_*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:b,g:_,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()}yt(()=>{if(!t.value||!n.value)return;const b={drag:_=>{r(_)},end:_=>{r(_)}};ep(t.value,b),ep(n.value,b),d()}),xe(()=>e.color.get("alpha"),()=>d()),xe(()=>e.color.value,()=>d());const h=P(()=>[i.b(),i.is("vertical",e.vertical)]),v=P(()=>i.e("bar")),p=P(()=>i.e("thumb")),g=P(()=>({background:l.value})),m=P(()=>({left:Rn(o.value),top:Rn(s.value)}));return{rootKls:h,barKls:v,barStyle:g,thumbKls:p,thumbStyle:m,update:d}},pve="ElColorAlphaSlider",gve=j({name:pve}),mve=j({...gve,props:dve,setup(e,{expose:t}){const n=e,{bar:r,thumb:a,handleDrag:i,handleClick:o}=hve(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=vve(n,{bar:r,thumb:a,handleDrag:i});return t({update:d,bar:r,thumb:a}),(h,v)=>(R(),K("div",{class:V(y(s))},[Y("div",{ref_key:"bar",ref:r,class:V(y(l)),style:Ye(y(u)),onClick:v[0]||(v[0]=(...p)=>y(o)&&y(o)(...p))},null,6),Y("div",{ref_key:"thumb",ref:a,class:V(y(c)),style:Ye(y(f))},null,6)],2))}});var yve=Pe(mve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const bve=j({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Me("color-hue-slider"),n=gt(),r=H(),a=H(),i=H(0),o=H(0),s=P(()=>e.color.get("hue"));xe(()=>s.value,()=>{d()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!a.value||!r.value)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:m}=YT(h);let b;if(e.vertical){let _=m-p.top;_=Math.min(_,p.height-r.value.offsetHeight/2),_=Math.max(r.value.offsetHeight/2,_),b=Math.round((_-r.value.offsetHeight/2)/(p.height-r.value.offsetHeight)*360)}else{let _=g-p.left;_=Math.min(_,p.width-r.value.offsetWidth/2),_=Math.max(r.value.offsetWidth/2,_),b=Math.round((_-r.value.offsetWidth/2)/(p.width-r.value.offsetWidth)*360)}e.color.set("hue",b)}function c(){if(!r.value)return 0;const h=n.vnode.el;if(e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(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 v=e.color.get("hue");return h?Math.round(v*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return yt(()=>{if(!a.value||!r.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};ep(a.value,h),ep(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:t}}});function _ve(e,t,n,r,a,i){return R(),K("div",{class:V([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Y("div",{ref:"bar",class:V(e.ns.e("bar")),onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},null,2),Y("div",{ref:"thumb",class:V(e.ns.e("thumb")),style:Ye({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var wve=Pe(bve,[["render",_ve],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const Sve=Le({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:wr,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:ue(Array)},validateEvent:{type:Boolean,default:!0}}),Cve={[wt]:e=>lt(e)||Wn(e),[gn]:e=>lt(e)||Wn(e),activeChange:e=>lt(e)||Wn(e)},zz=Symbol("colorPickerContextKey"),VP=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},xve=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},Tve=function(e){return typeof e=="string"&&e.includes("%")},Df=function(e,t){xve(e)&&(e="100%");const n=Tve(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)},FP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},by=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${FP[t]||t}${FP[n]||n}`},zP=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${by(e)}${by(t)}${by(n)}`},E_={A:10,B:11,C:12,D:13,E:14,F:15},zl=function(e){return e.length===2?(E_[e[0].toUpperCase()]||+e[0])*16+(E_[e[1].toUpperCase()]||+e[1]):E_[e[1].toUpperCase()]||+e[1]},Mve=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}},HP=(e,t,n)=>{e=Df(e,255),t=Df(t,255),n=Df(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}},rh=function(e,t,n){e=Df(e,360)*6,t=Df(t,100),n=Df(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 cv{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)$t(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)$t(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 rh(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}=Mve(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}=HP(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=zl(r[0]+r[0]),i=zl(r[1]+r[1]),o=zl(r[2]+r[2])):(r.length===6||r.length===8)&&(a=zl(r.slice(0,2)),i=zl(r.slice(2,4)),o=zl(r.slice(4,6))),r.length===8?this._alpha=zl(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=HP(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=VP(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=`${zP(rh(t,n,r))}${by(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=rh(t,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=VP(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}=rh(t,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=zP(rh(t,n,r))}}}const kve=j({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Me("color-predefine"),{currentColor:n}=Ge(zz),r=H(i(e.colors,e.color));xe(()=>n.value,o=>{const s=new cv;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),Ia(()=>{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 cv;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:t}}}),Ave=["onClick"];function Eve(e,t,n,r,a,i){return R(),K("div",{class:V(e.ns.b())},[Y("div",{class:V(e.ns.e("colors"))},[(R(!0),K(je,null,Ot(e.rgbaColors,(o,s)=>(R(),K("div",{key:e.colors[s],class:V([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(s)},[Y("div",{style:Ye({backgroundColor:o.value})},null,4)],10,Ave))),128))],2)],2)}var Ive=Pe(kve,[["render",Eve],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Dve=j({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Me("color-svpanel"),n=gt(),r=H(0),a=H(0),i=H("hsl(0, 100%, 50%)"),o=P(()=>{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}=YT(u);let v=d-f.left,p=h-f.top;v=Math.max(0,v),v=Math.min(v,f.width),p=Math.max(0,p),p=Math.min(p,f.height),a.value=v,r.value=p,e.color.set({saturation:v/f.width*100,value:100-p/f.height*100})}return xe(()=>o.value,()=>{s()}),yt(()=>{ep(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}}}),Pve=Y("div",null,null,-1),Lve=[Pve];function Rve(e,t,n,r,a,i){return R(),K("div",{class:V(e.ns.b()),style:Ye({backgroundColor:e.background})},[Y("div",{class:V(e.ns.e("white"))},null,2),Y("div",{class:V(e.ns.e("black"))},null,2),Y("div",{class:V(e.ns.e("cursor")),style:Ye({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Lve,6)],6)}var Ove=Pe(Dve,[["render",Rve],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const Nve=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],$ve=j({name:"ElColorPicker"}),Bve=j({...$ve,props:Sve,emits:Cve,setup(e,{expose:t,emit:n}){const r=e,{t:a}=Ht(),i=Me("color"),{formItem:o}=ra(),s=jn(),l=_a(),{inputId:u,isLabeledByFormItem:c}=Il(r,{formItemContext:o}),f=H(),d=H(),h=H(),v=H();let p=!0;const g=jt(new cv({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),m=H(!1),b=H(!1),_=H(""),w=P(()=>!r.modelValue&&!b.value?"transparent":M(g,r.showAlpha)),C=P(()=>!r.modelValue&&!b.value?"":g.value),S=P(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),x=P(()=>c.value?o==null?void 0:o.labelId:void 0),T=P(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function M(I,F){if(!(I instanceof cv))throw new TypeError("color should be instance of _color Class");const{r:G,g:U,b:J}=I.toRgb();return F?`rgba(${G}, ${U}, ${J}, ${I.get("alpha")/100})`:`rgb(${G}, ${U}, ${J})`}function A(I){m.value=I}const k=Jr(A,100);function E(){l.value||A(!0)}function D(){k(!1),L()}function L(){Ue(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",Ue(()=>{b.value=!1}))})}function B(){l.value||k(!m.value)}function $(){g.fromString(_.value)}function O(){const I=g.value;n(wt,I),n("change",I),r.validateEvent&&(o==null||o.validate("change").catch(F=>void 0)),k(!1),Ue(()=>{const F=new cv({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare(F)||L()})}function N(){k(!1),n(wt,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(I=>void 0)),L()}return yt(()=>{r.modelValue&&(_.value=C.value)}),xe(()=>r.modelValue,I=>{I?I&&I!==g.value&&(p=!1,g.fromString(I)):b.value=!1}),xe(()=>C.value,I=>{_.value=I,p&&n("activeChange",I),p=!0}),xe(()=>g.value,()=>{!r.modelValue&&!b.value&&(b.value=!0)}),xe(()=>m.value,()=>{Ue(()=>{var I,F,G;(I=f.value)==null||I.update(),(F=d.value)==null||F.update(),(G=h.value)==null||G.update()})}),Et(zz,{currentColor:C}),t({color:g,show:E,hide:D}),(I,F)=>(R(),ce(y(Qr),{ref_key:"popper",ref:v,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"),I.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${y(i).namespace.value}-zoom-in-top`,persistent:""},{content:re(()=>[dt((R(),K("div",null,[Y("div",{class:V(y(i).be("dropdown","main-wrapper"))},[X(wve,{ref_key:"hue",ref:f,class:"hue-slider",color:y(g),vertical:""},null,8,["color"]),X(Ove,{ref_key:"sv",ref:d,color:y(g)},null,8,["color"])],2),I.showAlpha?(R(),ce(yve,{key:0,ref_key:"alpha",ref:h,color:y(g)},null,8,["color"])):se("v-if",!0),I.predefine?(R(),ce(Ive,{key:1,ref:"predefine",color:y(g),colors:I.predefine},null,8,["color","colors"])):se("v-if",!0),Y("div",{class:V(y(i).be("dropdown","btns"))},[Y("span",{class:V(y(i).be("dropdown","value"))},[X(y(Lr),{modelValue:_.value,"onUpdate:modelValue":F[0]||(F[0]=G=>_.value=G),"validate-event":!1,size:"small",onKeyup:zt($,["enter"]),onBlur:$},null,8,["modelValue","onKeyup"])],2),X(y(br),{class:V(y(i).be("dropdown","link-btn")),text:"",size:"small",onClick:N},{default:re(()=>[Ut(De(y(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),X(y(br),{plain:"",size:"small",class:V(y(i).be("dropdown","btn")),onClick:O},{default:re(()=>[Ut(De(y(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[y(vl),D]])]),default:re(()=>[Y("div",{id:y(u),class:V(y(T)),role:"button","aria-label":y(S),"aria-labelledby":y(x),"aria-description":y(a)("el.colorpicker.description",{color:I.modelValue||""}),tabindex:I.tabindex,onKeydown:zt(B,["enter"])},[y(l)?(R(),K("div",{key:0,class:V(y(i).be("picker","mask"))},null,2)):se("v-if",!0),Y("div",{class:V(y(i).be("picker","trigger")),onClick:B},[Y("span",{class:V([y(i).be("picker","color"),y(i).is("alpha",I.showAlpha)])},[Y("span",{class:V(y(i).be("picker","color-inner")),style:Ye({backgroundColor:y(w)})},[dt(X(y(Ke),{class:V([y(i).be("picker","icon"),y(i).is("icon-arrow-down")])},{default:re(()=>[X(y(Tl))]),_:1},8,["class"]),[[Kt,I.modelValue||b.value]]),dt(X(y(Ke),{class:V([y(i).be("picker","empty"),y(i).is("icon-close")])},{default:re(()=>[X(y($i))]),_:1},8,["class"]),[[Kt,!I.modelValue&&!b.value]])],6)],2)],2)],42,Nve)]),_:1},8,["visible","popper-class","transition"]))}});var Vve=Pe(Bve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Fve=_t(Vve),zve=j({name:"ElContainer"}),Hve=j({...zve,props:{direction:{type:String}},setup(e){const t=e,n=Tr(),r=Me("container"),a=P(()=>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)=>(R(),K("section",{class:V([y(r).b(),y(r).is("vertical",y(a))])},[_e(i.$slots,"default")],2))}});var Gve=Pe(Hve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const Wve=j({name:"ElAside"}),Kve=j({...Wve,props:{width:{type:String,default:null}},setup(e){const t=e,n=Me("aside"),r=P(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,i)=>(R(),K("aside",{class:V(y(n).b()),style:Ye(y(r))},[_e(a.$slots,"default")],6))}});var Hz=Pe(Kve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Uve=j({name:"ElFooter"}),Yve=j({...Uve,props:{height:{type:String,default:null}},setup(e){const t=e,n=Me("footer"),r=P(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(R(),K("footer",{class:V(y(n).b()),style:Ye(y(r))},[_e(a.$slots,"default")],6))}});var Gz=Pe(Yve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const jve=j({name:"ElHeader"}),qve=j({...jve,props:{height:{type:String,default:null}},setup(e){const t=e,n=Me("header"),r=P(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(R(),K("header",{class:V(y(n).b()),style:Ye(y(r))},[_e(a.$slots,"default")],6))}});var Wz=Pe(qve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Xve=j({name:"ElMain"}),Zve=j({...Xve,setup(e){const t=Me("main");return(n,r)=>(R(),K("main",{class:V(y(t).b())},[_e(n.$slots,"default")],2))}});var Kz=Pe(Zve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Jve=_t(Gve,{Aside:Hz,Footer:Gz,Header:Wz,Main:Kz}),Qve=In(Hz),epe=In(Gz),tpe=In(Wz),npe=In(Kz);var Uz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hs,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)}}})})(Uz);var rpe=Uz.exports;const ape=Mo(rpe);var Yz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hs,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)}}})})(Yz);var ipe=Yz.exports;const ope=Mo(ipe);var jz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hs,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}}})})(jz);var spe=jz.exports;const lpe=Mo(spe);var qz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hs,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")}}})})(qz);var upe=qz.exports;const cpe=Mo(upe);var Xz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hs,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(Xz);var fpe=Xz.exports;const dpe=Mo(fpe);var Zz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hs,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(Zz);var hpe=Zz.exports;const vpe=Mo(hpe),zM=Symbol(),ppe=Le({...BM,type:{type:ue(String),default:"date"}}),gpe=["date","dates","year","month","week","range"],HM=Le({disabledDate:{type:ue(Function)},date:{type:ue(Object),required:!0},minDate:{type:ue(Object)},maxDate:{type:ue(Object)},parsedValue:{type:ue([Object,Array])},rangeState:{type:ue(Object),default:()=>({endDate:null,selecting:!1})}}),Jz=Le({type:{type:ue(String),required:!0,values:nie}}),Qz=Le({unlinkPanels:Boolean,parsedValue:{type:ue(Array)}}),e6=e=>({type:String,values:gpe,default:e}),mpe=Le({...Jz,parsedValue:{type:ue([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),ype=Le({...HM,cellClassName:{type:ue(Function)},showWeekNumber:Boolean,selectionMode:e6("date")}),bpe=["changerange","pick","select"],tx=e=>{if(!He(e))return!1;const[t,n]=e;return mt.isDayjs(t)&&mt.isDayjs(n)&&t.isSameOrBefore(n)},t6=(e,{lang:t,unit:n,unlinkPanels:r})=>{let a;if(He(e)){let[i,o]=e.map(s=>mt(s).locale(t));return r||(o=i.add(1,n)),[i,o]}else e?a=mt(e):a=mt();return a=a.locale(t),[a,a.add(1,n)]},_pe=(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 v=c*e.column+d,p=s(v);h.dayjs=p,h.date=p.toDate(),h.timestamp=p.valueOf(),h.type="normal",h.inRange=!!(r&&p.isSameOrAfter(r,o)&&a&&p.isSameOrBefore(a,o))||!!(r&&p.isSameOrBefore(r,o)&&a&&p.isSameOrAfter(a,o)),r!=null&&r.isSameOrAfter(a)?(h.start=!!a&&p.isSame(a,o),h.end=r&&p.isSame(r,o)):(h.start=!!r&&p.isSame(r,o),h.end=!!a&&p.isSame(a,o)),p.isSame(i,o)&&(h.type="today"),l==null||l(h,{rowIndex:c,columnIndex:d}),f[d+n]=h}u==null||u(f)}},nx=(e="")=>["normal","today"].includes(e),wpe=(e,t)=>{const{lang:n}=Ht(),r=H(),a=H(),i=H(),o=H(),s=H([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(I=>I.toLowerCase()),f=P(()=>u>3?7-u:-u),d=P(()=>{const I=e.date.startOf("month");return I.subtract(I.day()||7,"day")}),h=P(()=>c.concat(c).slice(u,u+7)),v=P(()=>d5(y(w)).some(I=>I.isCurrent)),p=P(()=>{const I=e.date.startOf("month"),F=I.day()||7,G=I.daysInMonth(),U=I.subtract(1,"month").daysInMonth();return{startOfMonthDay:F,dateCountOfMonth:G,dateCountOfLastMonth:U}}),g=P(()=>e.selectionMode==="dates"?Yo(e.parsedValue):[]),m=(I,{count:F,rowIndex:G,columnIndex:U})=>{const{startOfMonthDay:J,dateCountOfMonth:ae,dateCountOfLastMonth:Q}=y(p),ee=y(f);if(G>=0&&G<=1){const te=J+ee<0?7+J+ee:J+ee;if(U+G*7>=te)return I.text=F,!0;I.text=Q-(te-U%7)+1+G*7,I.type="prev-month"}else return F<=ae?I.text=F:(I.text=F-ae,I.type="next-month"),!0;return!1},b=(I,{columnIndex:F,rowIndex:G},U)=>{const{disabledDate:J,cellClassName:ae}=e,Q=y(g),ee=m(I,{count:U,rowIndex:G,columnIndex:F}),te=I.dayjs.toDate();return I.selected=Q.find(q=>q.valueOf()===I.dayjs.valueOf()),I.isSelected=!!I.selected,I.isCurrent=S(I),I.disabled=J==null?void 0:J(te),I.customClass=ae==null?void 0:ae(te),ee},_=I=>{if(e.selectionMode==="week"){const[F,G]=e.showWeekNumber?[1,7]:[0,6],U=N(I[F+1]);I[F].inRange=U,I[F].start=U,I[G].inRange=U,I[G].end=U}},w=P(()=>{const{minDate:I,maxDate:F,rangeState:G,showWeekNumber:U}=e,J=y(f),ae=y(s),Q="day";let ee=1;if(U)for(let te=0;te<6;te++)ae[te][0]||(ae[te][0]={type:"week",text:y(d).add(te*7+1,Q).week()});return _pe({row:6,column:7},ae,{startDate:I,columnIndexOffset:U?1:0,nextEndDate:G.endDate||F||G.selecting&&I||null,now:mt().locale(y(n)).startOf(Q),unit:Q,relativeDateGetter:te=>y(d).add(te-J,Q),setCellMetadata:(...te)=>{b(...te,ee)&&(ee+=1)},setRowMetadata:_}),ae});xe(()=>e.date,async()=>{var I;(I=y(r))!=null&&I.contains(document.activeElement)&&(await Ue(),await C())});const C=async()=>{var I;return(I=y(a))==null?void 0:I.focus()},S=I=>e.selectionMode==="date"&&nx(I.type)&&x(I,e.parsedValue),x=(I,F)=>F?mt(F).locale(y(n)).isSame(e.date.date(Number(I.text)),"day"):!1,T=(I,F)=>{const G=I*7+(F-(e.showWeekNumber?1:0))-y(f);return y(d).add(G,"day")},M=I=>{var F;if(!e.rangeState.selecting)return;let G=I.target;if(G.tagName==="SPAN"&&(G=(F=G.parentNode)==null?void 0:F.parentNode),G.tagName==="DIV"&&(G=G.parentNode),G.tagName!=="TD")return;const U=G.parentNode.rowIndex-1,J=G.cellIndex;y(w)[U][J].disabled||(U!==y(i)||J!==y(o))&&(i.value=U,o.value=J,t("changerange",{selecting:!0,endDate:T(U,J)}))},A=I=>!y(v)&&(I==null?void 0:I.text)===1&&I.type==="normal"||I.isCurrent,k=I=>{l||y(v)||e.selectionMode!=="date"||O(I,!0)},E=I=>{I.target.closest("td")&&(l=!0)},D=I=>{I.target.closest("td")&&(l=!1)},L=I=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:I,maxDate:null}),t("select",!0)):(I>=e.minDate?t("pick",{minDate:e.minDate,maxDate:I}):t("pick",{minDate:I,maxDate:e.minDate}),t("select",!1))},B=I=>{const F=I.week(),G=`${I.year()}w${F}`;t("pick",{year:I.year(),week:F,value:G,date:I.startOf("week")})},$=(I,F)=>{const G=F?Yo(e.parsedValue).filter(U=>(U==null?void 0:U.valueOf())!==I.valueOf()):Yo(e.parsedValue).concat([I]);t("pick",G)},O=(I,F=!1)=>{const G=I.target.closest("td");if(!G)return;const U=G.parentNode.rowIndex-1,J=G.cellIndex,ae=y(w)[U][J];if(ae.disabled||ae.type==="week")return;const Q=T(U,J);switch(e.selectionMode){case"range":{L(Q);break}case"date":{t("pick",Q,F);break}case"week":{B(Q);break}case"dates":{$(Q,!!ae.selected);break}}},N=I=>{if(e.selectionMode!=="week")return!1;let F=e.date.startOf("day");if(I.type==="prev-month"&&(F=F.subtract(1,"month")),I.type==="next-month"&&(F=F.add(1,"month")),F=F.date(Number.parseInt(I.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const G=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(G,"day").isSame(F,"day")}return!1};return{WEEKS:h,rows:w,tbodyRef:r,currentCellRef:a,focus:C,isCurrent:S,isWeekActive:N,isSelectedCell:A,handlePickDate:O,handleMouseUp:D,handleMouseDown:E,handleMouseMove:M,handleFocus:k}},Spe=(e,{isCurrent:t,isWeekActive:n})=>{const r=Me("date-table"),{t:a}=Ht(),i=P(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),o=P(()=>a("el.datepicker.dateTablePrompt")),s=P(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return nx(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(nx(c.type)||e.selectionMode==="week")&&(f.push("in-range"),c.start&&f.push("start-date"),c.end&&f.push("end-date")),c.disabled&&f.push("disabled"),c.selected&&f.push("selected"),c.customClass&&f.push(c.customClass),f.join(" ")},getRowKls:c=>[r.e("row"),{current:n(c)}],t:a}},Cpe=Le({cell:{type:ue(Object)}});var xpe=j({name:"ElDatePickerCell",props:Cpe,setup(e){const t=Me("date-table-cell"),{slots:n}=Ge(zM);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 X("div",{class:t.b()},[X("span",{class:t.e("text")},[r==null?void 0:r.text])])}}});const Tpe=["aria-label"],Mpe={key:0,scope:"col"},kpe=["aria-label"],Ape=["aria-current","aria-selected","tabindex"],Epe=j({__name:"basic-date-table",props:ype,emits:bpe,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:a,rows:i,tbodyRef:o,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:f,handlePickDate:d,handleMouseUp:h,handleMouseDown:v,handleMouseMove:p,handleFocus:g}=wpe(r,n),{tableLabel:m,tableKls:b,weekLabel:_,getCellClasses:w,getRowKls:C,t:S}=Spe(r,{isCurrent:u,isWeekActive:c});return t({focus:l}),(x,T)=>(R(),K("table",{"aria-label":y(m),class:V(y(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:T[1]||(T[1]=(...M)=>y(d)&&y(d)(...M)),onMousemove:T[2]||(T[2]=(...M)=>y(p)&&y(p)(...M)),onMousedown:T[3]||(T[3]=tt((...M)=>y(v)&&y(v)(...M),["prevent"])),onMouseup:T[4]||(T[4]=(...M)=>y(h)&&y(h)(...M))},[Y("tbody",{ref_key:"tbodyRef",ref:o},[Y("tr",null,[x.showWeekNumber?(R(),K("th",Mpe,De(y(_)),1)):se("v-if",!0),(R(!0),K(je,null,Ot(y(a),(M,A)=>(R(),K("th",{key:A,"aria-label":y(S)("el.datepicker.weeksFull."+M),scope:"col"},De(y(S)("el.datepicker.weeks."+M)),9,kpe))),128))]),(R(!0),K(je,null,Ot(y(i),(M,A)=>(R(),K("tr",{key:A,class:V(y(C)(M[1]))},[(R(!0),K(je,null,Ot(M,(k,E)=>(R(),K("td",{key:`${A}.${E}`,ref_for:!0,ref:D=>y(f)(k)&&(s.value=D),class:V(y(w)(k)),"aria-current":k.isCurrent?"date":void 0,"aria-selected":k.isCurrent,tabindex:y(f)(k)?0:-1,onFocus:T[0]||(T[0]=(...D)=>y(g)&&y(g)(...D))},[X(y(xpe),{cell:k},null,8,["cell"])],42,Ape))),128))],2))),128))],512)],42,Tpe))}});var rx=Pe(Epe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const Ipe=Le({...HM,selectionMode:e6("month")}),Dpe=["aria-label"],Ppe=["aria-selected","aria-label","tabindex","onKeydown"],Lpe={class:"cell"},Rpe=j({__name:"basic-month-table",props:Ipe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=(w,C,S)=>{const x=mt().locale(S).startOf("month").month(C).year(w),T=x.daysInMonth();return el(T).map(M=>x.add(M,"day").toDate())},i=Me("month-table"),{t:o,lang:s}=Ht(),l=H(),u=H(),c=H(r.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),f=H([[],[],[]]),d=H(),h=H(),v=P(()=>{var w,C;const S=f.value,x=mt().locale(s.value).startOf("month");for(let T=0;T<3;T++){const M=S[T];for(let A=0;A<4;A++){const k=M[A]||(M[A]={row:T,column:A,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});k.type="normal";const E=T*4+A,D=r.date.startOf("year").month(E),L=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;k.inRange=!!(r.minDate&&D.isSameOrAfter(r.minDate,"month")&&L&&D.isSameOrBefore(L,"month"))||!!(r.minDate&&D.isSameOrBefore(r.minDate,"month")&&L&&D.isSameOrAfter(L,"month")),(w=r.minDate)!=null&&w.isSameOrAfter(L)?(k.start=!!(L&&D.isSame(L,"month")),k.end=r.minDate&&D.isSame(r.minDate,"month")):(k.start=!!(r.minDate&&D.isSame(r.minDate,"month")),k.end=!!(L&&D.isSame(L,"month"))),x.isSame(D)&&(k.type="today"),k.text=E,k.disabled=((C=r.disabledDate)==null?void 0:C.call(r,D.toDate()))||!1}}return S}),p=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const C={},S=r.date.year(),x=new Date,T=w.text;return C.disabled=r.disabledDate?a(S,T,s.value).every(r.disabledDate):!1,C.current=Yo(r.parsedValue).findIndex(M=>mt.isDayjs(M)&&M.year()===S&&M.month()===T)>=0,C.today=x.getFullYear()===S&&x.getMonth()===T,w.inRange&&(C["in-range"]=!0,w.start&&(C["start-date"]=!0),w.end&&(C["end-date"]=!0)),C},m=w=>{const C=r.date.year(),S=w.text;return Yo(r.date).findIndex(x=>x.year()===C&&x.month()===S)>=0},b=w=>{var C;if(!r.rangeState.selecting)return;let S=w.target;if(S.tagName==="A"&&(S=(C=S.parentNode)==null?void 0:C.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const x=S.parentNode.rowIndex,T=S.cellIndex;v.value[x][T].disabled||(x!==d.value||T!==h.value)&&(d.value=x,h.value=T,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(x*4+T)}))},_=w=>{var C;const S=(C=w.target)==null?void 0:C.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Pi(S,"disabled"))return;const x=S.cellIndex,M=S.parentNode.rowIndex*4+x,A=r.date.startOf("year").month(M);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",M)};return xe(()=>r.date,async()=>{var w,C;(w=l.value)!=null&&w.contains(document.activeElement)&&(await Ue(),(C=u.value)==null||C.focus())}),t({focus:p}),(w,C)=>(R(),K("table",{role:"grid","aria-label":y(o)("el.datepicker.monthTablePrompt"),class:V(y(i).b()),onClick:_,onMousemove:b},[Y("tbody",{ref_key:"tbodyRef",ref:l},[(R(!0),K(je,null,Ot(y(v),(S,x)=>(R(),K("tr",{key:x},[(R(!0),K(je,null,Ot(S,(T,M)=>(R(),K("td",{key:M,ref_for:!0,ref:A=>m(T)&&(u.value=A),class:V(g(T)),"aria-selected":`${m(T)}`,"aria-label":y(o)(`el.datepicker.month${+T.text+1}`),tabindex:m(T)?0:-1,onKeydown:[zt(tt(_,["prevent","stop"]),["space"]),zt(tt(_,["prevent","stop"]),["enter"])]},[Y("div",null,[Y("span",Lpe,De(y(o)("el.datepicker.months."+c.value[T.text])),1)])],42,Ppe))),128))]))),128))],512)],42,Dpe))}});var ax=Pe(Rpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:Ope,disabledDate:Npe,parsedValue:$pe}=HM,Bpe=Le({date:Ope,disabledDate:Npe,parsedValue:$pe}),Vpe=["aria-label"],Fpe=["aria-selected","tabindex","onKeydown"],zpe={class:"cell"},Hpe={key:1},Gpe=j({__name:"basic-year-table",props:Bpe,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,a=(p,g)=>{const m=mt(String(p)).locale(g).startOf("year"),_=m.endOf("year").dayOfYear();return el(_).map(w=>m.add(w,"day").toDate())},i=Me("year-table"),{t:o,lang:s}=Ht(),l=H(),u=H(),c=P(()=>Math.floor(r.date.year()/10)*10),f=()=>{var p;(p=u.value)==null||p.focus()},d=p=>{const g={},m=mt().locale(s.value);return g.disabled=r.disabledDate?a(p,s.value).every(r.disabledDate):!1,g.current=Yo(r.parsedValue).findIndex(b=>b.year()===p)>=0,g.today=m.year()===p,g},h=p=>p===c.value&&r.date.year()<c.value&&r.date.year()>c.value+9||Yo(r.date).findIndex(g=>g.year()===p)>=0,v=p=>{const m=p.target.closest("td");if(m&&m.textContent){if(Pi(m,"disabled"))return;const b=m.textContent||m.innerText;n("pick",Number(b))}};return xe(()=>r.date,async()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&(await Ue(),(g=u.value)==null||g.focus())}),t({focus:f}),(p,g)=>(R(),K("table",{role:"grid","aria-label":y(o)("el.datepicker.yearTablePrompt"),class:V(y(i).b()),onClick:v},[Y("tbody",{ref_key:"tbodyRef",ref:l},[(R(),K(je,null,Ot(3,(m,b)=>Y("tr",{key:b},[(R(),K(je,null,Ot(4,(_,w)=>(R(),K(je,{key:b+"_"+w},[b*4+w<10?(R(),K("td",{key:0,ref_for:!0,ref:C=>h(y(c)+b*4+w)&&(u.value=C),class:V(["available",d(y(c)+b*4+w)]),"aria-selected":`${h(y(c)+b*4+w)}`,tabindex:h(y(c)+b*4+w)?0:-1,onKeydown:[zt(tt(v,["prevent","stop"]),["space"]),zt(tt(v,["prevent","stop"]),["enter"])]},[Y("span",zpe,De(y(c)+b*4+w),1)],42,Fpe)):(R(),K("td",Hpe))],64))),64))])),64))],512)],10,Vpe))}});var Wpe=Pe(Gpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const Kpe=["onClick"],Upe=["aria-label"],Ype=["aria-label"],jpe=["aria-label"],qpe=["aria-label"],Xpe=j({__name:"panel-date-pick",props:mpe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(ye,fe,le)=>!0,a=Me("picker-panel"),i=Me("date-picker"),o=mc(),s=Tr(),{t:l,lang:u}=Ht(),c=Ge("EP_PICKER_BASE"),f=Ge(o1),{shortcuts:d,disabledDate:h,cellClassName:v,defaultTime:p}=c.props,g=Mn(c.props,"defaultValue"),m=H(),b=H(mt().locale(u.value)),_=H(!1);let w=!1;const C=P(()=>mt(p).locale(u.value)),S=P(()=>b.value.month()),x=P(()=>b.value.year()),T=H([]),M=H(null),A=H(null),k=ye=>T.value.length>0?r(ye,T.value,n.format||"HH:mm:ss"):!0,E=ye=>p&&!oe.value&&!_.value&&!w?C.value.year(ye.year()).month(ye.month()).date(ye.date()):ee.value?ye.millisecond(0):ye.startOf("day"),D=(ye,...fe)=>{if(!ye)t("pick",ye,...fe);else if(He(ye)){const le=ye.map(E);t("pick",le,...fe)}else t("pick",E(ye),...fe);M.value=null,A.value=null,_.value=!1,w=!1},L=(ye,fe)=>{if(F.value==="date"){ye=ye;let le=n.parsedValue?n.parsedValue.year(ye.year()).month(ye.month()).date(ye.date()):ye;k(le)||(le=T.value[0][0].year(ye.year()).month(ye.month()).date(ye.date())),b.value=le,D(le,ee.value||fe)}else F.value==="week"?D(ye.date):F.value==="dates"&&D(ye,!0)},B=ye=>{const fe=ye?"add":"subtract";b.value=b.value[fe](1,"month"),Qe("month")},$=ye=>{const fe=b.value,le=ye?"add":"subtract";b.value=O.value==="year"?fe[le](10,"year"):fe[le](1,"year"),Qe("year")},O=H("date"),N=P(()=>{const ye=l("el.datepicker.year");if(O.value==="year"){const fe=Math.floor(x.value/10)*10;return ye?`${fe} ${ye} - ${fe+9} ${ye}`:`${fe} - ${fe+9}`}return`${x.value} ${ye}`}),I=ye=>{const fe=it(ye.value)?ye.value():ye.value;if(fe){w=!0,D(mt(fe).locale(u.value));return}ye.onClick&&ye.onClick({attrs:o,slots:s,emit:t})},F=P(()=>{const{type:ye}=n;return["week","month","year","dates"].includes(ye)?ye:"date"}),G=P(()=>F.value==="date"?O.value:F.value),U=P(()=>!!d.length),J=async ye=>{b.value=b.value.startOf("month").month(ye),F.value==="month"?D(b.value,!1):(O.value="date",["month","year","date","week"].includes(F.value)&&(D(b.value,!0),await Ue(),rt())),Qe("month")},ae=async ye=>{F.value==="year"?(b.value=b.value.startOf("year").year(ye),D(b.value,!1)):(b.value=b.value.year(ye),O.value="month",["month","year","date","week"].includes(F.value)&&(D(b.value,!0),await Ue(),rt())),Qe("year")},Q=async ye=>{O.value=ye,await Ue(),rt()},ee=P(()=>n.type==="datetime"||n.type==="datetimerange"),te=P(()=>ee.value||F.value==="dates"),q=P(()=>h?n.parsedValue?He(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),de=()=>{if(F.value==="dates")D(n.parsedValue);else{let ye=n.parsedValue;if(!ye){const fe=mt(p).locale(u.value),le=ze();ye=fe.year(le.year()).month(le.month()).date(le.date())}b.value=ye,D(ye)}},ve=P(()=>h?h(mt().locale(u.value).toDate()):!1),ie=()=>{const fe=mt().locale(u.value).toDate();_.value=!0,(!h||!h(fe))&&k(fe)&&(b.value=mt().locale(u.value),D(b.value))},W=P(()=>az(n.format)),Z=P(()=>rz(n.format)),oe=P(()=>{if(A.value)return A.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(W.value)}),pe=P(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(Z.value)}),Se=H(!1),me=()=>{Se.value=!0},Ee=()=>{Se.value=!1},Ce=ye=>({hour:ye.hour(),minute:ye.minute(),second:ye.second(),year:ye.year(),month:ye.month(),date:ye.date()}),we=(ye,fe,le)=>{const{hour:ke,minute:ne,second:Ve}=Ce(ye),st=n.parsedValue?n.parsedValue.hour(ke).minute(ne).second(Ve):ye;b.value=st,D(b.value,!0),le||(Se.value=fe)},Te=ye=>{const fe=mt(ye,W.value).locale(u.value);if(fe.isValid()&&k(fe)){const{year:le,month:ke,date:ne}=Ce(b.value);b.value=fe.year(le).month(ke).date(ne),A.value=null,Se.value=!1,D(b.value,!0)}},Ne=ye=>{const fe=mt(ye,Z.value).locale(u.value);if(fe.isValid()){if(h&&h(fe.toDate()))return;const{hour:le,minute:ke,second:ne}=Ce(b.value);b.value=fe.hour(le).minute(ke).second(ne),M.value=null,D(b.value,!0)}},Be=ye=>mt.isDayjs(ye)&&ye.isValid()&&(h?!h(ye.toDate()):!0),We=ye=>F.value==="dates"?ye.map(fe=>fe.format(n.format)):ye.format(n.format),Ae=ye=>mt(ye,n.format).locale(u.value),ze=()=>{const ye=mt(g.value).locale(u.value);if(!g.value){const fe=C.value;return mt().hour(fe.hour()).minute(fe.minute()).second(fe.second()).locale(u.value)}return ye},rt=async()=>{var ye;["week","month","year","date"].includes(F.value)&&((ye=m.value)==null||ye.focus(),F.value==="week"&&kt(Xe.down))},vt=ye=>{const{code:fe}=ye;[Xe.up,Xe.down,Xe.left,Xe.right,Xe.home,Xe.end,Xe.pageUp,Xe.pageDown].includes(fe)&&(kt(fe),ye.stopPropagation(),ye.preventDefault()),[Xe.enter,Xe.space,Xe.numpadEnter].includes(fe)&&M.value===null&&A.value===null&&(ye.preventDefault(),D(b.value,!1))},kt=ye=>{var fe;const{up:le,down:ke,left:ne,right:Ve,home:st,end:It,pageUp:Vn,pageDown:Xn}=Xe,ia={year:{[le]:-4,[ke]:4,[ne]:-1,[Ve]:1,offset:(be,$e)=>be.setFullYear(be.getFullYear()+$e)},month:{[le]:-4,[ke]:4,[ne]:-1,[Ve]:1,offset:(be,$e)=>be.setMonth(be.getMonth()+$e)},week:{[le]:-1,[ke]:1,[ne]:-1,[Ve]:1,offset:(be,$e)=>be.setDate(be.getDate()+$e*7)},date:{[le]:-7,[ke]:7,[ne]:-1,[Ve]:1,[st]:be=>-be.getDay(),[It]:be=>-be.getDay()+6,[Vn]:be=>-new Date(be.getFullYear(),be.getMonth(),0).getDate(),[Xn]:be=>new Date(be.getFullYear(),be.getMonth()+1,0).getDate(),offset:(be,$e)=>be.setDate(be.getDate()+$e)}},vr=b.value.toDate();for(;Math.abs(b.value.diff(vr,"year",!0))<1;){const be=ia[G.value];if(!be)return;if(be.offset(vr,it(be[ye])?be[ye](vr):(fe=be[ye])!=null?fe:0),h&&h(vr))break;const $e=mt(vr).locale(u.value);b.value=$e,t("pick",$e,!0);break}},Qe=ye=>{t("panel-change",b.value.toDate(),ye,O.value)};return xe(()=>F.value,ye=>{if(["month","year"].includes(ye)){O.value=ye;return}O.value="date"},{immediate:!0}),xe(()=>O.value,()=>{f==null||f.updatePopper()}),xe(()=>g.value,ye=>{ye&&(b.value=ze())},{immediate:!0}),xe(()=>n.parsedValue,ye=>{if(ye){if(F.value==="dates"||Array.isArray(ye))return;b.value=ye}else b.value=ze()},{immediate:!0}),t("set-picker-option",["isValidValue",Be]),t("set-picker-option",["formatToString",We]),t("set-picker-option",["parseUserInput",Ae]),t("set-picker-option",["handleFocusPicker",rt]),(ye,fe)=>(R(),K("div",{class:V([y(a).b(),y(i).b(),{"has-sidebar":ye.$slots.sidebar||y(U),"has-time":y(ee)}])},[Y("div",{class:V(y(a).e("body-wrapper"))},[_e(ye.$slots,"sidebar",{class:V(y(a).e("sidebar"))}),y(U)?(R(),K("div",{key:0,class:V(y(a).e("sidebar"))},[(R(!0),K(je,null,Ot(y(d),(le,ke)=>(R(),K("button",{key:ke,type:"button",class:V(y(a).e("shortcut")),onClick:ne=>I(le)},De(le.text),11,Kpe))),128))],2)):se("v-if",!0),Y("div",{class:V(y(a).e("body"))},[y(ee)?(R(),K("div",{key:0,class:V(y(i).e("time-header"))},[Y("span",{class:V(y(i).e("editor-wrap"))},[X(y(Lr),{placeholder:y(l)("el.datepicker.selectDate"),"model-value":y(pe),size:"small","validate-event":!1,onInput:fe[0]||(fe[0]=le=>M.value=le),onChange:Ne},null,8,["placeholder","model-value"])],2),dt((R(),K("span",{class:V(y(i).e("editor-wrap"))},[X(y(Lr),{placeholder:y(l)("el.datepicker.selectTime"),"model-value":y(oe),size:"small","validate-event":!1,onFocus:me,onInput:fe[1]||(fe[1]=le=>A.value=le),onChange:Te},null,8,["placeholder","model-value"]),X(y(v0),{visible:Se.value,format:y(W),"parsed-value":b.value,onPick:we},null,8,["visible","format","parsed-value"])],2)),[[y(vl),Ee]])],2)):se("v-if",!0),dt(Y("div",{class:V([y(i).e("header"),(O.value==="year"||O.value==="month")&&y(i).e("header--bordered")])},[Y("span",{class:V(y(i).e("prev-btn"))},[Y("button",{type:"button","aria-label":y(l)("el.datepicker.prevYear"),class:V(["d-arrow-left",y(a).e("icon-btn")]),onClick:fe[2]||(fe[2]=le=>$(!1))},[X(y(Ke),null,{default:re(()=>[X(y(Jf))]),_:1})],10,Upe),dt(Y("button",{type:"button","aria-label":y(l)("el.datepicker.prevMonth"),class:V([y(a).e("icon-btn"),"arrow-left"]),onClick:fe[3]||(fe[3]=le=>B(!1))},[X(y(Ke),null,{default:re(()=>[X(y(cl))]),_:1})],10,Ype),[[Kt,O.value==="date"]])],2),Y("span",{role:"button",class:V(y(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:fe[4]||(fe[4]=zt(le=>Q("year"),["enter"])),onClick:fe[5]||(fe[5]=le=>Q("year"))},De(y(N)),35),dt(Y("span",{role:"button","aria-live":"polite",tabindex:"0",class:V([y(i).e("header-label"),{active:O.value==="month"}]),onKeydown:fe[6]||(fe[6]=zt(le=>Q("month"),["enter"])),onClick:fe[7]||(fe[7]=le=>Q("month"))},De(y(l)(`el.datepicker.month${y(S)+1}`)),35),[[Kt,O.value==="date"]]),Y("span",{class:V(y(i).e("next-btn"))},[dt(Y("button",{type:"button","aria-label":y(l)("el.datepicker.nextMonth"),class:V([y(a).e("icon-btn"),"arrow-right"]),onClick:fe[8]||(fe[8]=le=>B(!0))},[X(y(Ke),null,{default:re(()=>[X(y(Yr))]),_:1})],10,jpe),[[Kt,O.value==="date"]]),Y("button",{type:"button","aria-label":y(l)("el.datepicker.nextYear"),class:V([y(a).e("icon-btn"),"d-arrow-right"]),onClick:fe[9]||(fe[9]=le=>$(!0))},[X(y(Ke),null,{default:re(()=>[X(y(Qf))]),_:1})],10,qpe)],2)],2),[[Kt,O.value!=="time"]]),Y("div",{class:V(y(a).e("content")),onKeydown:vt},[O.value==="date"?(R(),ce(rx,{key:0,ref_key:"currentViewRef",ref:m,"selection-mode":y(F),date:b.value,"parsed-value":ye.parsedValue,"disabled-date":y(h),"cell-class-name":y(v),onPick:L},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):se("v-if",!0),O.value==="year"?(R(),ce(Wpe,{key:1,ref_key:"currentViewRef",ref:m,date:b.value,"disabled-date":y(h),"parsed-value":ye.parsedValue,onPick:ae},null,8,["date","disabled-date","parsed-value"])):se("v-if",!0),O.value==="month"?(R(),ce(ax,{key:2,ref_key:"currentViewRef",ref:m,date:b.value,"parsed-value":ye.parsedValue,"disabled-date":y(h),onPick:J},null,8,["date","parsed-value","disabled-date"])):se("v-if",!0)],34)],2)],2),dt(Y("div",{class:V(y(a).e("footer"))},[dt(X(y(br),{text:"",size:"small",class:V(y(a).e("link-btn")),disabled:y(ve),onClick:ie},{default:re(()=>[Ut(De(y(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Kt,y(F)!=="dates"]]),X(y(br),{plain:"",size:"small",class:V(y(a).e("link-btn")),disabled:y(q),onClick:de},{default:re(()=>[Ut(De(y(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Kt,y(te)&&O.value==="date"]])],2))}});var Zpe=Pe(Xpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const Jpe=Le({...Jz,...Qz}),Qpe=e=>{const{emit:t}=gt(),n=mc(),r=Tr();return i=>{const o=it(i.value)?i.value():i.value;if(o){t("pick",[mt(o[0]).locale(e.value),mt(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},n6=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=gt(),{pickerNs:s}=Ge(zM),l=Me("date-range-picker"),{t:u,lang:c}=Ht(),f=Qpe(c),d=H(),h=H(),v=H({endDate:null,selecting:!1}),p=_=>{v.value=_},g=(_=!1)=>{const w=y(d),C=y(h);tx([w,C])&&o("pick",[w,C],_)},m=_=>{v.value.selecting=_,_||(v.value.endDate=null)},b=()=>{const[_,w]=t6(y(t),{lang:y(c),unit:a,unlinkPanels:e.unlinkPanels});d.value=void 0,h.value=void 0,n.value=_,r.value=w};return xe(t,_=>{_&&b()},{immediate:!0}),xe(()=>e.parsedValue,_=>{if(He(_)&&_.length===2){const[w,C]=_;d.value=w,n.value=w,h.value=C,i(y(d),y(h))}else b()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:v,lang:c,ppNs:s,drpNs:l,handleChangeRange:p,handleRangeConfirm:g,handleShortcutClick:f,onSelect:m,t:u}},ege=["onClick"],tge=["aria-label"],nge=["aria-label"],rge=["disabled","aria-label"],age=["disabled","aria-label"],ige=["disabled","aria-label"],oge=["disabled","aria-label"],sge=["aria-label"],lge=["aria-label"],jg="month",uge=j({__name:"panel-date-range",props:Jpe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=Ge("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=r.props,u=Mn(r.props,"shortcuts"),c=Mn(r.props,"defaultValue"),{lang:f}=Ht(),d=H(mt().locale(f.value)),h=H(mt().locale(f.value).add(1,jg)),{minDate:v,maxDate:p,rangeState:g,ppNs:m,drpNs:b,handleChangeRange:_,handleRangeConfirm:w,handleShortcutClick:C,onSelect:S,t:x}=n6(n,{defaultValue:c,leftDate:d,rightDate:h,unit:jg,onParsedValueChanged:fe}),T=H({min:null,max:null}),M=H({min:null,max:null}),A=P(()=>`${d.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${d.value.month()+1}`)}`),k=P(()=>`${h.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${h.value.month()+1}`)}`),E=P(()=>d.value.year()),D=P(()=>d.value.month()),L=P(()=>h.value.year()),B=P(()=>h.value.month()),$=P(()=>!!u.value.length),O=P(()=>T.value.min!==null?T.value.min:v.value?v.value.format(U.value):""),N=P(()=>T.value.max!==null?T.value.max:p.value||v.value?(p.value||v.value).format(U.value):""),I=P(()=>M.value.min!==null?M.value.min:v.value?v.value.format(G.value):""),F=P(()=>M.value.max!==null?M.value.max:p.value||v.value?(p.value||v.value).format(G.value):""),G=P(()=>az(o)),U=P(()=>rz(o)),J=le=>tx(le)&&(a?!a(le[0].toDate())&&!a(le[1].toDate()):!0),ae=()=>{d.value=d.value.subtract(1,"year"),n.unlinkPanels||(h.value=d.value.add(1,"month")),W("year")},Q=()=>{d.value=d.value.subtract(1,"month"),n.unlinkPanels||(h.value=d.value.add(1,"month")),W("month")},ee=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),W("year")},te=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),W("month")},q=()=>{d.value=d.value.add(1,"year"),W("year")},de=()=>{d.value=d.value.add(1,"month"),W("month")},ve=()=>{h.value=h.value.subtract(1,"year"),W("year")},ie=()=>{h.value=h.value.subtract(1,"month"),W("month")},W=le=>{t("panel-change",[d.value.toDate(),h.value.toDate()],le)},Z=P(()=>{const le=(D.value+1)%12,ke=D.value+1>=12?1:0;return n.unlinkPanels&&new Date(E.value+ke,le)<new Date(L.value,B.value)}),oe=P(()=>n.unlinkPanels&&L.value*12+B.value-(E.value*12+D.value+1)>=12),pe=P(()=>!(v.value&&p.value&&!g.value.selecting&&tx([v.value,p.value]))),Se=P(()=>n.type==="datetime"||n.type==="datetimerange"),me=(le,ke)=>{if(le)return s?mt(s[ke]||s).locale(f.value).year(le.year()).month(le.month()).date(le.date()):le},Ee=(le,ke=!0)=>{const ne=le.minDate,Ve=le.maxDate,st=me(ne,0),It=me(Ve,1);p.value===It&&v.value===st||(t("calendar-change",[ne.toDate(),Ve&&Ve.toDate()]),p.value=It,v.value=st,!(!ke||Se.value)&&w())},Ce=H(!1),we=H(!1),Te=()=>{Ce.value=!1},Ne=()=>{we.value=!1},Be=(le,ke)=>{T.value[ke]=le;const ne=mt(le,U.value).locale(f.value);if(ne.isValid()){if(a&&a(ne.toDate()))return;ke==="min"?(d.value=ne,v.value=(v.value||d.value).year(ne.year()).month(ne.month()).date(ne.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(v.value))&&(h.value=ne.add(1,"month"),p.value=v.value.add(1,"month"))):(h.value=ne,p.value=(p.value||h.value).year(ne.year()).month(ne.month()).date(ne.date()),!n.unlinkPanels&&(!v.value||v.value.isAfter(p.value))&&(d.value=ne.subtract(1,"month"),v.value=p.value.subtract(1,"month")))}},We=(le,ke)=>{T.value[ke]=null},Ae=(le,ke)=>{M.value[ke]=le;const ne=mt(le,G.value).locale(f.value);ne.isValid()&&(ke==="min"?(Ce.value=!0,v.value=(v.value||d.value).hour(ne.hour()).minute(ne.minute()).second(ne.second()),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value)):(we.value=!0,p.value=(p.value||h.value).hour(ne.hour()).minute(ne.minute()).second(ne.second()),h.value=p.value,p.value&&p.value.isBefore(v.value)&&(v.value=p.value)))},ze=(le,ke)=>{M.value[ke]=null,ke==="min"?(d.value=v.value,Ce.value=!1):(h.value=p.value,we.value=!1)},rt=(le,ke,ne)=>{M.value.min||(le&&(d.value=le,v.value=(v.value||d.value).hour(le.hour()).minute(le.minute()).second(le.second())),ne||(Ce.value=ke),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value,h.value=le))},vt=(le,ke,ne)=>{M.value.max||(le&&(h.value=le,p.value=(p.value||h.value).hour(le.hour()).minute(le.minute()).second(le.second())),ne||(we.value=ke),p.value&&p.value.isBefore(v.value)&&(v.value=p.value))},kt=()=>{d.value=t6(y(c),{lang:y(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=d.value.add(1,"month"),t("pick",null)},Qe=le=>He(le)?le.map(ke=>ke.format(o)):le.format(o),ye=le=>He(le)?le.map(ke=>mt(ke,o).locale(f.value)):mt(le,o).locale(f.value);function fe(le,ke){if(n.unlinkPanels&&ke){const ne=(le==null?void 0:le.year())||0,Ve=(le==null?void 0:le.month())||0,st=ke.year(),It=ke.month();h.value=ne===st&&Ve===It?ke.add(1,jg):ke}else h.value=d.value.add(1,jg),ke&&(h.value=h.value.hour(ke.hour()).minute(ke.minute()).second(ke.second()))}return t("set-picker-option",["isValidValue",J]),t("set-picker-option",["parseUserInput",ye]),t("set-picker-option",["formatToString",Qe]),t("set-picker-option",["handleClear",kt]),(le,ke)=>(R(),K("div",{class:V([y(m).b(),y(b).b(),{"has-sidebar":le.$slots.sidebar||y($),"has-time":y(Se)}])},[Y("div",{class:V(y(m).e("body-wrapper"))},[_e(le.$slots,"sidebar",{class:V(y(m).e("sidebar"))}),y($)?(R(),K("div",{key:0,class:V(y(m).e("sidebar"))},[(R(!0),K(je,null,Ot(y(u),(ne,Ve)=>(R(),K("button",{key:Ve,type:"button",class:V(y(m).e("shortcut")),onClick:st=>y(C)(ne)},De(ne.text),11,ege))),128))],2)):se("v-if",!0),Y("div",{class:V(y(m).e("body"))},[y(Se)?(R(),K("div",{key:0,class:V(y(b).e("time-header"))},[Y("span",{class:V(y(b).e("editors-wrap"))},[Y("span",{class:V(y(b).e("time-picker-wrap"))},[X(y(Lr),{size:"small",disabled:y(g).selecting,placeholder:y(x)("el.datepicker.startDate"),class:V(y(b).e("editor")),"model-value":y(O),"validate-event":!1,onInput:ke[0]||(ke[0]=ne=>Be(ne,"min")),onChange:ke[1]||(ke[1]=ne=>We(ne,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),dt((R(),K("span",{class:V(y(b).e("time-picker-wrap"))},[X(y(Lr),{size:"small",class:V(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(x)("el.datepicker.startTime"),"model-value":y(I),"validate-event":!1,onFocus:ke[2]||(ke[2]=ne=>Ce.value=!0),onInput:ke[3]||(ke[3]=ne=>Ae(ne,"min")),onChange:ke[4]||(ke[4]=ne=>ze(ne,"min"))},null,8,["class","disabled","placeholder","model-value"]),X(y(v0),{visible:Ce.value,format:y(G),"datetime-role":"start","parsed-value":d.value,onPick:rt},null,8,["visible","format","parsed-value"])],2)),[[y(vl),Te]])],2),Y("span",null,[X(y(Ke),null,{default:re(()=>[X(y(Yr))]),_:1})]),Y("span",{class:V([y(b).e("editors-wrap"),"is-right"])},[Y("span",{class:V(y(b).e("time-picker-wrap"))},[X(y(Lr),{size:"small",class:V(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(x)("el.datepicker.endDate"),"model-value":y(N),readonly:!y(v),"validate-event":!1,onInput:ke[5]||(ke[5]=ne=>Be(ne,"max")),onChange:ke[6]||(ke[6]=ne=>We(ne,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),dt((R(),K("span",{class:V(y(b).e("time-picker-wrap"))},[X(y(Lr),{size:"small",class:V(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(x)("el.datepicker.endTime"),"model-value":y(F),readonly:!y(v),"validate-event":!1,onFocus:ke[7]||(ke[7]=ne=>y(v)&&(we.value=!0)),onInput:ke[8]||(ke[8]=ne=>Ae(ne,"max")),onChange:ke[9]||(ke[9]=ne=>ze(ne,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),X(y(v0),{"datetime-role":"end",visible:we.value,format:y(G),"parsed-value":h.value,onPick:vt},null,8,["visible","format","parsed-value"])],2)),[[y(vl),Ne]])],2)],2)):se("v-if",!0),Y("div",{class:V([[y(m).e("content"),y(b).e("content")],"is-left"])},[Y("div",{class:V(y(b).e("header"))},[Y("button",{type:"button",class:V([y(m).e("icon-btn"),"d-arrow-left"]),"aria-label":y(x)("el.datepicker.prevYear"),onClick:ae},[X(y(Ke),null,{default:re(()=>[X(y(Jf))]),_:1})],10,tge),Y("button",{type:"button",class:V([y(m).e("icon-btn"),"arrow-left"]),"aria-label":y(x)("el.datepicker.prevMonth"),onClick:Q},[X(y(Ke),null,{default:re(()=>[X(y(cl))]),_:1})],10,nge),le.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(oe),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(oe)}],"d-arrow-right"]),"aria-label":y(x)("el.datepicker.nextYear"),onClick:q},[X(y(Ke),null,{default:re(()=>[X(y(Qf))]),_:1})],10,rge)):se("v-if",!0),le.unlinkPanels?(R(),K("button",{key:1,type:"button",disabled:!y(Z),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(Z)}],"arrow-right"]),"aria-label":y(x)("el.datepicker.nextMonth"),onClick:de},[X(y(Ke),null,{default:re(()=>[X(y(Yr))]),_:1})],10,age)):se("v-if",!0),Y("div",null,De(y(A)),1)],2),X(rx,{"selection-mode":"range",date:d.value,"min-date":y(v),"max-date":y(p),"range-state":y(g),"disabled-date":y(a),"cell-class-name":y(i),onChangerange:y(_),onPick:Ee,onSelect:y(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),Y("div",{class:V([[y(m).e("content"),y(b).e("content")],"is-right"])},[Y("div",{class:V(y(b).e("header"))},[le.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(oe),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(oe)}],"d-arrow-left"]),"aria-label":y(x)("el.datepicker.prevYear"),onClick:ve},[X(y(Ke),null,{default:re(()=>[X(y(Jf))]),_:1})],10,ige)):se("v-if",!0),le.unlinkPanels?(R(),K("button",{key:1,type:"button",disabled:!y(Z),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(Z)}],"arrow-left"]),"aria-label":y(x)("el.datepicker.prevMonth"),onClick:ie},[X(y(Ke),null,{default:re(()=>[X(y(cl))]),_:1})],10,oge)):se("v-if",!0),Y("button",{type:"button","aria-label":y(x)("el.datepicker.nextYear"),class:V([y(m).e("icon-btn"),"d-arrow-right"]),onClick:ee},[X(y(Ke),null,{default:re(()=>[X(y(Qf))]),_:1})],10,sge),Y("button",{type:"button",class:V([y(m).e("icon-btn"),"arrow-right"]),"aria-label":y(x)("el.datepicker.nextMonth"),onClick:te},[X(y(Ke),null,{default:re(()=>[X(y(Yr))]),_:1})],10,lge),Y("div",null,De(y(k)),1)],2),X(rx,{"selection-mode":"range",date:h.value,"min-date":y(v),"max-date":y(p),"range-state":y(g),"disabled-date":y(a),"cell-class-name":y(i),onChangerange:y(_),onPick:Ee,onSelect:y(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),y(Se)?(R(),K("div",{key:0,class:V(y(m).e("footer"))},[y(l)?(R(),ce(y(br),{key:0,text:"",size:"small",class:V(y(m).e("link-btn")),onClick:kt},{default:re(()=>[Ut(De(y(x)("el.datepicker.clear")),1)]),_:1},8,["class"])):se("v-if",!0),X(y(br),{plain:"",size:"small",class:V(y(m).e("link-btn")),disabled:y(pe),onClick:ke[10]||(ke[10]=ne=>y(w)(!1))},{default:re(()=>[Ut(De(y(x)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):se("v-if",!0)],2))}});var cge=Pe(uge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const fge=Le({...Qz}),dge=["pick","set-picker-option","calendar-change"],hge=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Ht(),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=P(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=P(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=P(()=>t.value.year()),f=P(()=>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}},vge=["onClick"],pge=["disabled"],gge=["disabled"],qg="year",mge=j({name:"DatePickerMonthRange"}),yge=j({...mge,props:fge,emits:dge,setup(e,{emit:t}){const n=e,{lang:r}=Ht(),a=Ge("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=Mn(a.props,"defaultValue"),u=H(mt().locale(r.value)),c=H(mt().locale(r.value).add(1,qg)),{minDate:f,maxDate:d,rangeState:h,ppNs:v,drpNs:p,handleChangeRange:g,handleRangeConfirm:m,handleShortcutClick:b,onSelect:_}=n6(n,{defaultValue:l,leftDate:u,rightDate:c,unit:qg,onParsedValueChanged:$}),w=P(()=>!!i.length),{leftPrevYear:C,rightNextYear:S,leftNextYear:x,rightPrevYear:T,leftLabel:M,rightLabel:A,leftYear:k,rightYear:E}=hge({unlinkPanels:Mn(n,"unlinkPanels"),leftDate:u,rightDate:c}),D=P(()=>n.unlinkPanels&&E.value>k.value+1),L=(O,N=!0)=>{const I=O.minDate,F=O.maxDate;d.value===F&&f.value===I||(t("calendar-change",[I.toDate(),F&&F.toDate()]),d.value=F,f.value=I,N&&m())},B=O=>O.map(N=>N.format(s));function $(O,N){if(n.unlinkPanels&&N){const I=(O==null?void 0:O.year())||0,F=N.year();c.value=I===F?N.add(1,qg):N}else c.value=u.value.add(1,qg)}return t("set-picker-option",["formatToString",B]),(O,N)=>(R(),K("div",{class:V([y(v).b(),y(p).b(),{"has-sidebar":!!O.$slots.sidebar||y(w)}])},[Y("div",{class:V(y(v).e("body-wrapper"))},[_e(O.$slots,"sidebar",{class:V(y(v).e("sidebar"))}),y(w)?(R(),K("div",{key:0,class:V(y(v).e("sidebar"))},[(R(!0),K(je,null,Ot(y(i),(I,F)=>(R(),K("button",{key:F,type:"button",class:V(y(v).e("shortcut")),onClick:G=>y(b)(I)},De(I.text),11,vge))),128))],2)):se("v-if",!0),Y("div",{class:V(y(v).e("body"))},[Y("div",{class:V([[y(v).e("content"),y(p).e("content")],"is-left"])},[Y("div",{class:V(y(p).e("header"))},[Y("button",{type:"button",class:V([y(v).e("icon-btn"),"d-arrow-left"]),onClick:N[0]||(N[0]=(...I)=>y(C)&&y(C)(...I))},[X(y(Ke),null,{default:re(()=>[X(y(Jf))]),_:1})],2),O.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(D),class:V([[y(v).e("icon-btn"),{[y(v).is("disabled")]:!y(D)}],"d-arrow-right"]),onClick:N[1]||(N[1]=(...I)=>y(x)&&y(x)(...I))},[X(y(Ke),null,{default:re(()=>[X(y(Qf))]),_:1})],10,pge)):se("v-if",!0),Y("div",null,De(y(M)),1)],2),X(ax,{"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(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),Y("div",{class:V([[y(v).e("content"),y(p).e("content")],"is-right"])},[Y("div",{class:V(y(p).e("header"))},[O.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(D),class:V([[y(v).e("icon-btn"),{"is-disabled":!y(D)}],"d-arrow-left"]),onClick:N[2]||(N[2]=(...I)=>y(T)&&y(T)(...I))},[X(y(Ke),null,{default:re(()=>[X(y(Jf))]),_:1})],10,gge)):se("v-if",!0),Y("button",{type:"button",class:V([y(v).e("icon-btn"),"d-arrow-right"]),onClick:N[3]||(N[3]=(...I)=>y(S)&&y(S)(...I))},[X(y(Ke),null,{default:re(()=>[X(y(Qf))]),_:1})],2),Y("div",null,De(y(A)),1)],2),X(ax,{"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(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var bge=Pe(yge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const _ge=function(e){switch(e){case"daterange":case"datetimerange":return cge;case"monthrange":return bge;default:return Zpe}};mt.extend(_z);mt.extend(ape);mt.extend($M);mt.extend(ope);mt.extend(lpe);mt.extend(cpe);mt.extend(dpe);mt.extend(vpe);var wge=j({name:"ElDatePicker",install:null,props:ppe,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const a=Me("picker-panel");Et("ElPopperOptions",jt(Mn(e,"popperOptions"))),Et(zM,{slots:r,pickerNs:a});const i=H();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:efe[e.type]||sf,c=_ge(e.type);return X(sz,St(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:f=>X(c,f,null),"range-separator":r["range-separator"]})}}});const _y=wge;_y.install=e=>{e.component(_y.name,_y)};const Sge=_y,GM=Symbol("elDescriptions");var ah=j({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Ge(GM,{})}},render(){var e,t,n,r,a,i;const o=sie(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}`:"",v=o.labelAlign?`is-${o.labelAlign}`:h,p=o.className,g=o.labelClassName,m={width:Rn(o.width),minWidth:Rn(o.minWidth)},b=Me("descriptions");switch(this.type){case"label":return Ze(this.tag,{style:m,class:[b.e("cell"),b.e("label"),b.is("bordered-label",s),b.is("vertical-label",u),v,g],colSpan:u?d:1},c);case"content":return Ze(this.tag,{style:m,class:[b.e("cell"),b.e("content"),b.is("bordered-content",s),b.is("vertical-content",u),h,p],colSpan:u?d:d*2-1},f);default:return Ze("td",{style:m,class:[b.e("cell"),h],colSpan:d},[Wn(c)?void 0:Ze("span",{class:[b.e("label"),g]},c),Ze("span",{class:[b.e("content"),p]},f)])}}});const Cge=Le({row:{type:Array,default:()=>[]}}),xge={key:1},Tge=j({name:"ElDescriptionsRow"}),Mge=j({...Tge,props:Cge,setup(e){const t=Ge(GM,{});return(n,r)=>y(t).direction==="vertical"?(R(),K(je,{key:0},[Y("tr",null,[(R(!0),K(je,null,Ot(n.row,(a,i)=>(R(),ce(y(ah),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),Y("tr",null,[(R(!0),K(je,null,Ot(n.row,(a,i)=>(R(),ce(y(ah),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(R(),K("tr",xge,[(R(!0),K(je,null,Ot(n.row,(a,i)=>(R(),K(je,{key:`tr3-${i}`},[y(t).border?(R(),K(je,{key:0},[X(y(ah),{cell:a,tag:"td",type:"label"},null,8,["cell"]),X(y(ah),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(R(),ce(y(ah),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var kge=Pe(Mge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const Age=Le({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:wr,title:{type:String,default:""},extra:{type:String,default:""}}),Ege=j({name:"ElDescriptions"}),Ige=j({...Ege,props:Age,setup(e){const t=e,n=Me("descriptions"),r=jn(),a=Tr();Et(GM,t);const i=P(()=>[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=Af((l=a.default)==null?void 0:l.call(a)).filter(v=>{var p;return((p=v==null?void 0:v.type)==null?void 0:p.name)==="ElDescriptionsItem"}),c=[];let f=[],d=t.column,h=0;return u.forEach((v,p)=>{var g;const m=((g=v.props)==null?void 0:g.span)||1;if(p<u.length-1&&(h+=m>d?d:m),p===u.length-1){const b=t.column-h%t.column;f.push(o(v,b,d,!0)),c.push(f);return}m<d?(d-=m,f.push(v)):(f.push(o(v,m,d)),c.push(f),d=t.column,f=[])}),c};return(l,u)=>(R(),K("div",{class:V(y(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(R(),K("div",{key:0,class:V(y(n).e("header"))},[Y("div",{class:V(y(n).e("title"))},[_e(l.$slots,"title",{},()=>[Ut(De(l.title),1)])],2),Y("div",{class:V(y(n).e("extra"))},[_e(l.$slots,"extra",{},()=>[Ut(De(l.extra),1)])],2)],2)):se("v-if",!0),Y("div",{class:V(y(n).e("body"))},[Y("table",{class:V([y(n).e("table"),y(n).is("bordered",l.border)])},[Y("tbody",null,[(R(!0),K(je,null,Ot(s(),(c,f)=>(R(),ce(kge,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var Dge=Pe(Ige,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),r6=j({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 Pge=_t(Dge,{DescriptionsItem:r6}),Lge=In(r6),Rge=Le({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ue([String,Array,Object])},zIndex:{type:ue([String,Number])}}),Oge={click:e=>e instanceof MouseEvent},Nge="overlay";var $ge=j({name:"ElOverlay",props:Rge,emits:Oge,setup(e,{slots:t,emit:n}){const r=Me(Nge),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=TM(e.customMaskEvent?void 0:a);return()=>e.mask?X("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[_e(t,"default")],Ga.STYLE|Ga.CLASS|Ga.PROPS,["onClick","onMouseup","onMousedown"]):Ze("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[_e(t,"default")])}});const WM=$ge,a6=Symbol("dialogInjectionKey"),i6=Le({center:Boolean,alignCenter:Boolean,closeIcon:{type:cn},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),Bge={close:()=>!0},Vge=["aria-level"],Fge=["aria-label"],zge=["id"],Hge=j({name:"ElDialogContent"}),Gge=j({...Hge,props:i6,emits:Bge,setup(e){const t=e,{t:n}=Ht(),{Close:r}=K5,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=Ge(a6),{focusTrapRef:u}=Ge(RM),c=P(()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center},t.customClass]),f=jb(u,a),d=P(()=>t.draggable);return Y5(a,i,d),(h,v)=>(R(),K("div",{ref:y(f),class:V(y(c)),style:Ye(y(l)),tabindex:"-1"},[Y("header",{ref_key:"headerRef",ref:i,class:V(y(s).e("header"))},[_e(h.$slots,"header",{},()=>[Y("span",{role:"heading","aria-level":h.ariaLevel,class:V(y(s).e("title"))},De(h.title),11,Vge)]),h.showClose?(R(),K("button",{key:0,"aria-label":y(n)("el.dialog.close"),class:V(y(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>h.$emit("close"))},[X(y(Ke),{class:V(y(s).e("close"))},{default:re(()=>[(R(),ce(Ct(h.closeIcon||y(r))))]),_:1},8,["class"])],10,Fge)):se("v-if",!0)],2),Y("div",{id:y(o),class:V(y(s).e("body"))},[_e(h.$slots,"default")],10,zge),h.$slots.footer?(R(),K("footer",{key:0,class:V(y(s).e("footer"))},[_e(h.$slots,"footer")],2)):se("v-if",!0)],6))}});var Wge=Pe(Gge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const o6=Le({...i6,appendToBody:Boolean,beforeClose:{type:ue(Function)},destroyOnClose:Boolean,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:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),s6={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[wt]:e=>Kn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},l6=(e,t)=>{const r=gt().emit,{nextZIndex:a}=Ad();let i="";const o=oi(),s=oi(),l=H(!1),u=H(!1),c=H(!1),f=H(e.zIndex||a());let d,h;const v=n1("namespace",ov),p=P(()=>{const L={},B=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(L[`${B}-margin-top`]=e.top),e.width&&(L[`${B}-width`]=Rn(e.width))),L}),g=P(()=>e.alignCenter?{display:"flex"}:{});function m(){r("opened")}function b(){r("closed"),r(wt,!1),e.destroyOnClose&&(c.value=!1)}function _(){r("close")}function w(){h==null||h(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=ac(()=>T(),e.openDelay):T()}function C(){d==null||d(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=ac(()=>M(),e.closeDelay):M()}function S(){function L(B){B||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(L):C()}function x(){e.closeOnClickModal&&S()}function T(){Vt&&(l.value=!0)}function M(){l.value=!1}function A(){r("openAutoFocus")}function k(){r("closeAutoFocus")}function E(L){var B;((B=L.detail)==null?void 0:B.focusReason)==="pointer"&&L.preventDefault()}e.lockScroll&&X5(l);function D(){e.closeOnPressEscape&&S()}return xe(()=>e.modelValue,L=>{L?(u.value=!1,w(),c.value=!0,f.value=e.zIndex?f.value++:a(),Ue(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):l.value&&C()}),xe(()=>e.fullscreen,L=>{t.value&&(L?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),yt(()=>{e.modelValue&&(l.value=!0,c.value=!0,w())}),{afterEnter:m,afterLeave:b,beforeLeave:_,handleClose:S,onModalClick:x,close:C,doClose:M,onOpenAutoFocus:A,onCloseAutoFocus:k,onCloseRequested:D,onFocusoutPrevented:E,titleId:o,bodyId:s,closed:u,style:p,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},Kge=["aria-label","aria-labelledby","aria-describedby"],Uge=j({name:"ElDialog",inheritAttrs:!1}),Yge=j({...Uge,props:o6,emits:s6,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"},P(()=>!!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"},P(()=>!!n.customClass));const a=Me("dialog"),i=H(),o=H(),s=H(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:v,afterEnter:p,afterLeave:g,beforeLeave:m,handleClose:b,onModalClick:_,onOpenAutoFocus:w,onCloseAutoFocus:C,onCloseRequested:S,onFocusoutPrevented:x}=l6(n,i);Et(a6,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const T=TM(_),M=P(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s}),(A,k)=>(R(),ce(Wp,{to:"body",disabled:!A.appendToBody},[X($n,{name:"dialog-fade",onAfterEnter:y(p),onAfterLeave:y(g),onBeforeLeave:y(m),persisted:""},{default:re(()=>[dt(X(y(WM),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":y(v)},{default:re(()=>[Y("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:V(`${y(a).namespace.value}-overlay-dialog`),style:Ye(y(d)),onClick:k[0]||(k[0]=(...E)=>y(T).onClick&&y(T).onClick(...E)),onMousedown:k[1]||(k[1]=(...E)=>y(T).onMousedown&&y(T).onMousedown(...E)),onMouseup:k[2]||(k[2]=(...E)=>y(T).onMouseup&&y(T).onMouseup(...E))},[X(y(i1),{loop:"",trapped:y(l),"focus-start-el":"container",onFocusAfterTrapped:y(w),onFocusAfterReleased:y(C),onFocusoutPrevented:y(x),onReleaseRequested:y(S)},{default:re(()=>[y(h)?(R(),ce(Wge,St({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(M),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,"aria-level":A.headerAriaLevel,onClose:y(b)}),Zo({header:re(()=>[A.$slots.title?_e(A.$slots,"title",{key:1}):_e(A.$slots,"header",{key:0,close:y(b),titleId:y(u),titleClass:y(a).e("title")})]),default:re(()=>[_e(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:re(()=>[_e(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):se("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Kge)]),_:3},8,["mask","overlay-class","z-index"]),[[Kt,y(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var jge=Pe(Yge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const qge=_t(jge),Xge=Le({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ue(String),default:"solid"}}),Zge=j({name:"ElDivider"}),Jge=j({...Zge,props:Xge,setup(e){const t=e,n=Me("divider"),r=P(()=>n.cssVar({"border-style":t.borderStyle}));return(a,i)=>(R(),K("div",{class:V([y(n).b(),y(n).m(a.direction)]),style:Ye(y(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(R(),K("div",{key:0,class:V([y(n).e("text"),y(n).is(a.contentPosition)])},[_e(a.$slots,"default")],2)):se("v-if",!0)],6))}});var Qge=Pe(Jge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const u6=_t(Qge),eme=Le({...o6,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},headerAriaLevel:{type:String,default:"2"}}),tme=s6,nme=j({name:"ElDrawer",components:{ElOverlay:WM,ElFocusTrap:i1,ElIcon:Ke,Close:$i},inheritAttrs:!1,props:eme,emits:tme,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"},P(()=>!!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"},P(()=>!!e.customClass));const n=H(),r=H(),a=Me("drawer"),{t:i}=Ht(),o=P(()=>e.direction==="rtl"||e.direction==="ltr"),s=P(()=>Rn(e.size));return{...l6(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),rme=["aria-label","aria-labelledby","aria-describedby"],ame=["id","aria-level"],ime=["aria-label"],ome=["id"];function sme(e,t,n,r,a,i){const o=ct("close"),s=ct("el-icon"),l=ct("el-focus-trap"),u=ct("el-overlay");return R(),ce(Wp,{to:"body",disabled:!e.appendToBody},[X($n,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:re(()=>[dt(X(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:re(()=>[X(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:re(()=>[Y("div",St({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]=tt(()=>{},["stop"]))}),[Y("span",{ref:"focusStartRef",class:V(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(R(),K("header",{key:0,class:V(e.ns.e("header"))},[e.$slots.title?_e(e.$slots,"title",{key:1},()=>[se(" DEPRECATED SLOT ")]):_e(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?se("v-if",!0):(R(),K("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:V(e.ns.e("title"))},De(e.title),11,ame))]),e.showClose?(R(),K("button",{key:2,"aria-label":e.t("el.drawer.close"),class:V(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[X(s,{class:V(e.ns.e("close"))},{default:re(()=>[X(o)]),_:1},8,["class"])],10,ime)):se("v-if",!0)],2)):se("v-if",!0),e.rendered?(R(),K("div",{key:1,id:e.bodyId,class:V(e.ns.e("body"))},[_e(e.$slots,"default")],10,ome)):se("v-if",!0),e.$slots.footer?(R(),K("div",{key:2,class:V(e.ns.e("footer"))},[_e(e.$slots,"footer")],2)):se("v-if",!0)],16,rme)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Kt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var lme=Pe(nme,[["render",sme],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ume=_t(lme),cme=j({inheritAttrs:!1});function fme(e,t,n,r,a,i){return _e(e.$slots,"default")}var dme=Pe(cme,[["render",fme],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const hme=j({name:"ElCollectionItem",inheritAttrs:!1});function vme(e,t,n,r,a,i){return _e(e.$slots,"default")}var pme=Pe(hme,[["render",vme],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const c6="data-el-collection-item",f6=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...dme,name:t,setup(){const s=H(null),l=new Map;Et(r,{itemMap:l,getItems:()=>{const c=y(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${c6}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...pme,name:n,setup(s,{attrs:l}){const u=H(null),c=Ge(r,void 0);Et(a,{collectionItemRef:u}),yt(()=>{const f=y(u);f&&c.itemMap.set(f,{ref:f,...l})}),_n(()=>{const f=y(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},gme=Le({style:{type:ue([String,Array,Object])},currentTabId:{type:ue(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ue(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:mme,ElCollectionItem:yme,COLLECTION_INJECTION_KEY:KM,COLLECTION_ITEM_INJECTION_KEY:bme}=f6("RovingFocusGroup"),UM=Symbol("elRovingFocusGroup"),d6=Symbol("elRovingFocusGroupItem"),_me={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},wme=(e,t)=>{if(t!=="rtl")return e;switch(e){case Xe.right:return Xe.left;case Xe.left:return Xe.right;default:return e}},Sme=(e,t,n)=>{const r=wme(e.key,n);if(!(t==="vertical"&&[Xe.left,Xe.right].includes(r))&&!(t==="horizontal"&&[Xe.up,Xe.down].includes(r)))return _me[r]},Cme=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),YM=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},GP="currentTabIdChange",WP="rovingFocusGroup.entryFocus",xme={bubbles:!1,cancelable:!0},Tme=j({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:gme,emits:[GP,"entryFocus"],setup(e,{emit:t}){var n;const r=H((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=H(!1),i=H(!1),o=H(null),{getItems:s}=Ge(KM,void 0),l=P(()=>[{outline:"none"},e.style]),u=p=>{t(GP,p)},c=()=>{a.value=!0},f=En(p=>{var g;(g=e.onMousedown)==null||g.call(e,p)},()=>{i.value=!0}),d=En(p=>{var g;(g=e.onFocus)==null||g.call(e,p)},p=>{const g=!y(i),{target:m,currentTarget:b}=p;if(m===b&&g&&!y(a)){const _=new Event(WP,xme);if(b==null||b.dispatchEvent(_),!_.defaultPrevented){const w=s().filter(M=>M.focusable),C=w.find(M=>M.active),S=w.find(M=>M.id===y(r)),T=[C,S,...w].filter(Boolean).map(M=>M.ref);YM(T)}}i.value=!1}),h=En(p=>{var g;(g=e.onBlur)==null||g.call(e,p)},()=>{a.value=!1}),v=(...p)=>{t("entryFocus",...p)};Et(UM,{currentTabbedId:Cd(r),loop:Mn(e,"loop"),tabIndex:P(()=>y(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:Mn(e,"orientation"),dir:Mn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),xe(()=>e.currentTabId,p=>{r.value=p??null}),yn(o,WP,v)}});function Mme(e,t,n,r,a,i){return _e(e.$slots,"default")}var kme=Pe(Tme,[["render",Mme],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const Ame=j({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:mme,ElRovingFocusGroupImpl:kme}});function Eme(e,t,n,r,a,i){const o=ct("el-roving-focus-group-impl"),s=ct("el-focus-group-collection");return R(),ce(s,null,{default:re(()=>[X(o,Mi(Rb(e.$attrs)),{default:re(()=>[_e(e.$slots,"default")]),_:3},16)]),_:3})}var Ime=Pe(Ame,[["render",Eme],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Dme=j({components:{ElRovingFocusCollectionItem:yme},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}=Ge(UM,void 0),{getItems:o}=Ge(KM,void 0),s=oi(),l=H(null),u=En(h=>{t("mousedown",h)},h=>{e.focusable?a(y(s)):h.preventDefault()}),c=En(h=>{t("focus",h)},()=>{a(y(s))}),f=En(h=>{t("keydown",h)},h=>{const{key:v,shiftKey:p,target:g,currentTarget:m}=h;if(v===Xe.tab&&p){i();return}if(g!==m)return;const b=Sme(h);if(b){h.preventDefault();let w=o().filter(C=>C.focusable).map(C=>C.ref);switch(b){case"last":{w.reverse();break}case"prev":case"next":{b==="prev"&&w.reverse();const C=w.indexOf(m);w=r.value?Cme(w,C+1):w.slice(C+1);break}}Ue(()=>{YM(w)})}}),d=P(()=>n.value===y(s));return Et(d6,{rovingFocusGroupItemRef:l,tabIndex:P(()=>y(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function Pme(e,t,n,r,a,i){const o=ct("el-roving-focus-collection-item");return R(),ce(o,{id:e.id,focusable:e.focusable,active:e.active},{default:re(()=>[_e(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Lme=Pe(Dme,[["render",Pme],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const wy=Le({trigger:Jv.trigger,effect:{...ur.effect,default:"light"},type:{type:ue(String)},placement:{type:ue(String),default:"bottom"},popperOptions:{type:ue(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:ue([Number,String]),default:0},maxHeight:{type:ue([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ue(Object)},teleported:ur.teleported}),h6=Le({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:cn}}),Rme=Le({onKeydown:{type:ue(Function)}}),Ome=[Xe.down,Xe.pageDown,Xe.home],v6=[Xe.up,Xe.pageUp,Xe.end],Nme=[...Ome,...v6],{ElCollection:$me,ElCollectionItem:Bme,COLLECTION_INJECTION_KEY:Vme,COLLECTION_ITEM_INJECTION_KEY:Fme}=f6("Dropdown"),l1=Symbol("elDropdown"),{ButtonGroup:zme}=br,Hme=j({name:"ElDropdown",components:{ElButton:br,ElButtonGroup:zme,ElScrollbar:ds,ElDropdownCollection:$me,ElTooltip:Qr,ElRovingFocusGroup:Ime,ElOnlyChild:VF,ElIcon:Ke,ArrowDown:Tl},props:wy,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=gt(),r=Me("dropdown"),{t:a}=Ht(),i=H(),o=H(),s=H(null),l=H(null),u=H(null),c=H(null),f=H(!1),d=[Xe.enter,Xe.space,Xe.down],h=P(()=>({maxHeight:Rn(e.maxHeight)})),v=P(()=>[r.m(C.value)]),p=P(()=>oc(e.trigger)),g=oi().value,m=P(()=>e.id||g);xe([i,p],([O,N],[I])=>{var F,G,U;(F=I==null?void 0:I.$el)!=null&&F.removeEventListener&&I.$el.removeEventListener("pointerenter",x),(G=O==null?void 0:O.$el)!=null&&G.removeEventListener&&O.$el.removeEventListener("pointerenter",x),(U=O==null?void 0:O.$el)!=null&&U.addEventListener&&N.includes("hover")&&O.$el.addEventListener("pointerenter",x)},{immediate:!0}),_n(()=>{var O,N;(N=(O=i.value)==null?void 0:O.$el)!=null&&N.removeEventListener&&i.value.$el.removeEventListener("pointerenter",x)});function b(){_()}function _(){var O;(O=s.value)==null||O.onClose()}function w(){var O;(O=s.value)==null||O.onOpen()}const C=jn();function S(...O){t("command",...O)}function x(){var O,N;(N=(O=i.value)==null?void 0:O.$el)==null||N.focus()}function T(){}function M(){const O=y(l);p.value.includes("hover")&&(O==null||O.focus()),c.value=null}function A(O){c.value=O}function k(O){f.value||(O.preventDefault(),O.stopImmediatePropagation())}function E(){t("visible-change",!0)}function D(O){(O==null?void 0:O.type)==="keydown"&&l.value.focus()}function L(){t("visible-change",!1)}return Et(l1,{contentRef:l,role:P(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:T,onItemLeave:M}),Et("elDropdown",{instance:n,dropdownSize:C,handleClick:b,commandHandler:S,trigger:Mn(e,"trigger"),hideOnClick:Mn(e,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:C,triggerId:m,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:A,handlerMainButtonClick:O=>{t("click",O)},handleEntryFocus:k,handleClose:_,handleOpen:w,handleBeforeShowTooltip:E,handleShowTooltip:D,handleBeforeHideTooltip:L,onFocusAfterTrapped:O=>{var N,I;O.preventDefault(),(I=(N=l.value)==null?void 0:N.focus)==null||I.call(N,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function Gme(e,t,n,r,a,i){var o;const s=ct("el-dropdown-collection"),l=ct("el-roving-focus-group"),u=ct("el-scrollbar"),c=ct("el-only-child"),f=ct("el-tooltip"),d=ct("el-button"),h=ct("arrow-down"),v=ct("el-icon"),p=ct("el-button-group");return R(),K("div",{class:V([e.ns.b(),e.ns.is("disabled",e.disabled)])},[X(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},Zo({content:re(()=>[X(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:re(()=>[X(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:re(()=>[X(s,null,{default:re(()=>[_e(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:re(()=>[X(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:re(()=>[_e(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?(R(),ce(p,{key:0},{default:re(()=>[X(d,St({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:re(()=>[_e(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),X(d,St({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:re(()=>[X(v,{class:V(e.ns.e("icon"))},{default:re(()=>[X(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):se("v-if",!0)],2)}var Wme=Pe(Hme,[["render",Gme],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Kme=j({name:"DropdownItemImpl",components:{ElIcon:Ke},props:h6,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Me("dropdown"),{role:r}=Ge(l1,void 0),{collectionItemRef:a}=Ge(Fme,void 0),{collectionItemRef:i}=Ge(bme,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=Ge(d6,void 0),f=jb(a,i,o),d=P(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=En(v=>{const{code:p}=v;if(p===Xe.enter||p===Xe.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:n,itemRef:f,dataset:{[c6]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),Ume=["aria-disabled","tabindex","role"];function Yme(e,t,n,r,a,i){const o=ct("el-icon");return R(),K(je,null,[e.divided?(R(),K("li",St({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):se("v-if",!0),Y("li",St({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]=tt((...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?(R(),ce(o,{key:0},{default:re(()=>[(R(),ce(Ct(e.icon)))]),_:1})):se("v-if",!0),_e(e.$slots,"default")],16,Ume)],64)}var jme=Pe(Kme,[["render",Yme],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const p6=()=>{const e=Ge("elDropdown",{}),t=P(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},qme=j({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Bme,ElRovingFocusItem:Lme,ElDropdownItemImpl:jme},inheritAttrs:!1,props:h6,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=p6(),a=gt(),i=H(null),o=P(()=>{var h,v;return(v=(h=y(i))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=Ge(l1,void 0),u=En(h=>(t("pointermove",h),h.defaultPrevented),WI(h=>{if(e.disabled){l(h);return}const v=h.currentTarget;v===document.activeElement||v.contains(document.activeElement)||(s(h),h.defaultPrevented||v==null||v.focus())})),c=En(h=>(t("pointerleave",h),h.defaultPrevented),WI(h=>{l(h)})),f=En(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var v,p,g;if(e.disabled){h.stopImmediatePropagation();return}(v=r==null?void 0:r.hideOnClick)!=null&&v.value&&((p=r.handleClick)==null||p.call(r)),(g=r.commandHandler)==null||g.call(r,e.command,a,h)}),d=P(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function Xme(e,t,n,r,a,i){var o;const s=ct("el-dropdown-item-impl"),l=ct("el-roving-focus-item"),u=ct("el-dropdown-collection-item");return R(),ce(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:re(()=>[X(l,{focusable:!e.disabled},{default:re(()=>[X(s,St(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:re(()=>[_e(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var g6=Pe(qme,[["render",Xme],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Zme=j({name:"ElDropdownMenu",props:Rme,setup(e){const t=Me("dropdown"),{_elDropdownSize:n}=p6(),r=n.value,{focusTrapRef:a,onKeydown:i}=Ge(RM,void 0),{contentRef:o,role:s,triggerId:l}=Ge(l1,void 0),{collectionRef:u,getItems:c}=Ge(Vme,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:v,onFocus:p,onMousedown:g}=Ge(UM,void 0),{collectionRef:m}=Ge(KM,void 0),b=P(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),_=jb(o,u,a,f,m),w=En(S=>{var x;(x=e.onKeydown)==null||x.call(e,S)},S=>{const{currentTarget:x,code:T,target:M}=S;if(x.contains(M),Xe.tab===T&&S.stopImmediatePropagation(),S.preventDefault(),M!==y(o)||!Nme.includes(T))return;const k=c().filter(E=>!E.disabled).map(E=>E.ref);v6.includes(T)&&k.reverse(),YM(k)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:b,role:s,triggerId:l,dropdownListWrapperRef:_,handleKeydown:S=>{w(S),i(S)},onBlur:v,onFocus:p,onMousedown:g}}}),Jme=["role","aria-labelledby"];function Qme(e,t,n,r,a,i){return R(),K("ul",{ref:e.dropdownListWrapperRef,class:V(e.dropdownKls),style:Ye(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]=tt((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=tt((...o)=>e.onMousedown&&e.onMousedown(...o),["self"]))},[_e(e.$slots,"default")],46,Jme)}var m6=Pe(Zme,[["render",Qme],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const eye=_t(Wme,{DropdownItem:g6,DropdownMenu:m6}),tye=In(g6),nye=In(m6),rye={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},aye=["id"],iye=["stop-color"],oye=["stop-color"],sye=["id"],lye=["stop-color"],uye=["stop-color"],cye=["id"],fye={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},dye={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},hye={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},vye=["fill"],pye=["fill"],gye={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)"},mye=["fill"],yye=["fill"],bye=["fill"],_ye=["fill"],wye=["fill"],Sye={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},Cye=["fill","xlink:href"],xye=["fill","mask"],Tye=["fill"],Mye=j({name:"ImgEmpty"}),kye=j({...Mye,setup(e){const t=Me("empty"),n=oi();return(r,a)=>(R(),K("svg",rye,[Y("defs",null,[Y("linearGradient",{id:`linearGradient-1-${y(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,iye),Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,oye)],8,aye),Y("linearGradient",{id:`linearGradient-2-${y(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,lye),Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,uye)],8,sye),Y("rect",{id:`path-3-${y(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,cye)]),Y("g",fye,[Y("g",dye,[Y("g",hye,[Y("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,vye),Y("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,pye),Y("g",gye,[Y("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,mye),Y("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,yye),Y("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,bye),Y("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,_ye)]),Y("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${y(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,wye),Y("g",Sye,[Y("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,Cye),Y("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,xye)]),Y("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,Tye)])])])]))}});var Aye=Pe(kye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const Eye=Le({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Iye=["src"],Dye={key:1},Pye=j({name:"ElEmpty"}),Lye=j({...Pye,props:Eye,setup(e){const t=e,{t:n}=Ht(),r=Me("empty"),a=P(()=>t.description||n("el.table.emptyText")),i=P(()=>({width:Rn(t.imageSize)}));return(o,s)=>(R(),K("div",{class:V(y(r).b())},[Y("div",{class:V(y(r).e("image")),style:Ye(y(i))},[o.image?(R(),K("img",{key:0,src:o.image,ondragstart:"return false"},null,8,Iye)):_e(o.$slots,"image",{key:1},()=>[X(Aye)])],6),Y("div",{class:V(y(r).e("description"))},[o.$slots.description?_e(o.$slots,"description",{key:0}):(R(),K("p",Dye,De(y(a)),1))],2),o.$slots.default?(R(),K("div",{key:0,class:V(y(r).e("bottom"))},[_e(o.$slots,"default")],2)):se("v-if",!0)],2))}});var Rye=Pe(Lye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const y6=_t(Rye),Oye=Le({urlList:{type:ue(Array),default:()=>Sn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),Nye={close:()=>!0,switch:e=>at(e),rotate:e=>at(e)},$ye=["src"],Bye=j({name:"ElImageViewer"}),Vye=j({...Bye,props:Oye,emits:Nye,setup(e,{expose:t,emit:n}){const r=e,a={CONTAIN:{name:"contain",icon:Js(gae)},ORIGINAL:{name:"original",icon:Js(Nae)}},{t:i}=Ht(),o=Me("image-viewer"),{nextZIndex:s}=Ad(),l=H(),u=H([]),c=AB(),f=H(!0),d=H(r.initialIndex),h=ln(a.CONTAIN),v=H({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=P(()=>{const{urlList:I}=r;return I.length<=1}),g=P(()=>d.value===0),m=P(()=>d.value===r.urlList.length-1),b=P(()=>r.urlList[d.value]),_=P(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&g.value)]),w=P(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&m.value)]),C=P(()=>{const{scale:I,deg:F,offsetX:G,offsetY:U,enableTransition:J}=v.value;let ae=G/I,Q=U/I;switch(F%360){case 90:case-270:[ae,Q]=[Q,-ae];break;case 180:case-180:[ae,Q]=[-ae,-Q];break;case 270:case-90:[ae,Q]=[-Q,ae];break}const ee={transform:`scale(${I}) rotate(${F}deg) translate(${ae}px, ${Q}px)`,transition:J?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(ee.maxWidth=ee.maxHeight="100%"),ee}),S=P(()=>at(r.zIndex)?r.zIndex:s());function x(){M(),n("close")}function T(){const I=Uu(G=>{switch(G.code){case Xe.esc:r.closeOnPressEscape&&x();break;case Xe.space:L();break;case Xe.left:$();break;case Xe.up:N("zoomIn");break;case Xe.right:O();break;case Xe.down:N("zoomOut");break}}),F=Uu(G=>{const U=G.deltaY||G.deltaX;N(U<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{yn(document,"keydown",I),yn(document,"wheel",F)})}function M(){c.stop()}function A(){f.value=!1}function k(I){f.value=!1,I.target.alt=i("el.image.error")}function E(I){if(f.value||I.button!==0||!l.value)return;v.value.enableTransition=!1;const{offsetX:F,offsetY:G}=v.value,U=I.pageX,J=I.pageY,ae=Uu(ee=>{v.value={...v.value,offsetX:F+ee.pageX-U,offsetY:G+ee.pageY-J}}),Q=yn(document,"mousemove",ae);yn(document,"mouseup",()=>{Q()}),I.preventDefault()}function D(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function L(){if(f.value)return;const I=Uv(a),F=Object.values(a),G=h.value.name,J=(F.findIndex(ae=>ae.name===G)+1)%I.length;h.value=a[I[J]],D()}function B(I){const F=r.urlList.length;d.value=(I+F)%F}function $(){g.value&&!r.infinite||B(d.value-1)}function O(){m.value&&!r.infinite||B(d.value+1)}function N(I,F={}){if(f.value)return;const{zoomRate:G,rotateDeg:U,enableTransition:J}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...F};switch(I){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/G).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*G).toFixed(3)));break;case"clockwise":v.value.deg+=U,n("rotate",v.value.deg);break;case"anticlockwise":v.value.deg-=U,n("rotate",v.value.deg);break}v.value.enableTransition=J}return xe(b,()=>{Ue(()=>{const I=u.value[0];I!=null&&I.complete||(f.value=!0)})}),xe(d,I=>{D(),n("switch",I)}),yt(()=>{var I,F;T(),(F=(I=l.value)==null?void 0:I.focus)==null||F.call(I)}),t({setActiveItem:B}),(I,F)=>(R(),ce(Wp,{to:"body",disabled:!I.teleported},[X($n,{name:"viewer-fade",appear:""},{default:re(()=>[Y("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:V(y(o).e("wrapper")),style:Ye({zIndex:y(S)})},[Y("div",{class:V(y(o).e("mask")),onClick:F[0]||(F[0]=tt(G=>I.hideOnClickModal&&x(),["self"]))},null,2),se(" CLOSE "),Y("span",{class:V([y(o).e("btn"),y(o).e("close")]),onClick:x},[X(y(Ke),null,{default:re(()=>[X(y($i))]),_:1})],2),se(" ARROW "),y(p)?se("v-if",!0):(R(),K(je,{key:0},[Y("span",{class:V(y(_)),onClick:$},[X(y(Ke),null,{default:re(()=>[X(y(cl))]),_:1})],2),Y("span",{class:V(y(w)),onClick:O},[X(y(Ke),null,{default:re(()=>[X(y(Yr))]),_:1})],2)],64)),se(" ACTIONS "),Y("div",{class:V([y(o).e("btn"),y(o).e("actions")])},[Y("div",{class:V(y(o).e("actions__inner"))},[X(y(Ke),{onClick:F[1]||(F[1]=G=>N("zoomOut"))},{default:re(()=>[X(y(Qae))]),_:1}),X(y(Ke),{onClick:F[2]||(F[2]=G=>N("zoomIn"))},{default:re(()=>[X(y(G5))]),_:1}),Y("i",{class:V(y(o).e("actions__divider"))},null,2),X(y(Ke),{onClick:L},{default:re(()=>[(R(),ce(Ct(y(h).icon)))]),_:1}),Y("i",{class:V(y(o).e("actions__divider"))},null,2),X(y(Ke),{onClick:F[3]||(F[3]=G=>N("anticlockwise"))},{default:re(()=>[X(y(Pae))]),_:1}),X(y(Ke),{onClick:F[4]||(F[4]=G=>N("clockwise"))},{default:re(()=>[X(y(Rae))]),_:1})],2)],2),se(" CANVAS "),Y("div",{class:V(y(o).e("canvas"))},[(R(!0),K(je,null,Ot(I.urlList,(G,U)=>dt((R(),K("img",{ref_for:!0,ref:J=>u.value[U]=J,key:G,src:G,style:Ye(y(C)),class:V(y(o).e("img")),onLoad:A,onError:k,onMousedown:E},null,46,$ye)),[[Kt,U===d.value]])),128))],2),_e(I.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var Fye=Pe(Vye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const b6=_t(Fye),zye=Le({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:ue([String,Object])},previewSrcList:{type:ue(Array),default:()=>Sn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),Hye={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>at(e),close:()=>!0,show:()=>!0},Gye=["src","loading"],Wye={key:0},Kye=j({name:"ElImage",inheritAttrs:!1}),Uye=j({...Kye,props:zye,emits:Hye,setup(e,{emit:t}){const n=e;let r="";const{t:a}=Ht(),i=Me("image"),o=mc(),s=pM(),l=H(),u=H(!1),c=H(!0),f=H(!1),d=H(),h=H(),v=Vt&&"loading"in HTMLImageElement.prototype;let p,g;const m=P(()=>[i.e("inner"),w.value&&i.e("preview"),c.value&&i.is("loading")]),b=P(()=>o.style),_=P(()=>{const{fit:N}=n;return Vt&&N?{objectFit:N}:{}}),w=P(()=>{const{previewSrcList:N}=n;return Array.isArray(N)&&N.length>0}),C=P(()=>{const{previewSrcList:N,initialIndex:I}=n;let F=I;return I>N.length-1&&(F=0),F}),S=P(()=>n.loading==="eager"?!1:!v&&n.loading==="lazy"||n.lazy),x=()=>{Vt&&(c.value=!0,u.value=!1,l.value=n.src)};function T(N){c.value=!1,u.value=!1,t("load",N)}function M(N){c.value=!1,u.value=!0,t("error",N)}function A(){MZ(d.value,h.value)&&(x(),D())}const k=XV(A,200,!0);async function E(){var N;if(!Vt)return;await Ue();const{scrollContainer:I}=n;ri(I)?h.value=I:lt(I)&&I!==""?h.value=(N=document.querySelector(I))!=null?N:void 0:d.value&&(h.value=uM(d.value)),h.value&&(p=yn(h,"scroll",k),setTimeout(()=>A(),100))}function D(){!Vt||!h.value||!k||(p==null||p(),h.value=void 0)}function L(N){if(N.ctrlKey){if(N.deltaY<0)return N.preventDefault(),!1;if(N.deltaY>0)return N.preventDefault(),!1}}function B(){w.value&&(g=yn("wheel",L,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function $(){g==null||g(),document.body.style.overflow=r,f.value=!1,t("close")}function O(N){t("switch",N)}return xe(()=>n.src,()=>{S.value?(c.value=!0,u.value=!1,D(),E()):x()}),yt(()=>{S.value?E():x()}),(N,I)=>(R(),K("div",{ref_key:"container",ref:d,class:V([y(i).b(),N.$attrs.class]),style:Ye(y(b))},[u.value?_e(N.$slots,"error",{key:0},()=>[Y("div",{class:V(y(i).e("error"))},De(y(a)("el.image.error")),3)]):(R(),K(je,{key:1},[l.value!==void 0?(R(),K("img",St({key:0},y(s),{src:l.value,loading:N.loading,style:y(_),class:y(m),onClick:B,onLoad:T,onError:M}),null,16,Gye)):se("v-if",!0),c.value?(R(),K("div",{key:1,class:V(y(i).e("wrapper"))},[_e(N.$slots,"placeholder",{},()=>[Y("div",{class:V(y(i).e("placeholder"))},null,2)])],2)):se("v-if",!0)],64)),y(w)?(R(),K(je,{key:2},[f.value?(R(),ce(y(b6),{key:0,"z-index":N.zIndex,"initial-index":y(C),infinite:N.infinite,"zoom-rate":N.zoomRate,"url-list":N.previewSrcList,"hide-on-click-modal":N.hideOnClickModal,teleported:N.previewTeleported,"close-on-press-escape":N.closeOnPressEscape,onClose:$,onSwitch:O},{default:re(()=>[N.$slots.viewer?(R(),K("div",Wye,[_e(N.$slots,"viewer")])):se("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):se("v-if",!0)],64)):se("v-if",!0)],6))}});var Yye=Pe(Uye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const jye=_t(Yye),qye=Le({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:wr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||at(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}}),Xye={[gn]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[jr]:e=>at(e)||Wn(e),[wt]:e=>at(e)||Wn(e)},Zye=["aria-label","onKeydown"],Jye=["aria-label","onKeydown"],Qye=j({name:"ElInputNumber"}),e0e=j({...Qye,props:qye,emits:Xye,setup(e,{expose:t,emit:n}){const r=e,{t:a}=Ht(),i=Me("input-number"),o=H(),s=jt({currentValue:r.modelValue,userInput:null}),{formItem:l}=ra(),u=P(()=>at(r.modelValue)&&r.modelValue<=r.min),c=P(()=>at(r.modelValue)&&r.modelValue>=r.max),f=P(()=>{const D=m(r.step);return Qn(r.precision)?Math.max(m(r.modelValue),D):(D>r.precision,r.precision)}),d=P(()=>r.controls&&r.controlsPosition==="right"),h=jn(),v=_a(),p=P(()=>{if(s.userInput!==null)return s.userInput;let D=s.currentValue;if(Wn(D))return"";if(at(D)){if(Number.isNaN(D))return"";Qn(r.precision)||(D=D.toFixed(r.precision))}return D}),g=(D,L)=>{if(Qn(L)&&(L=f.value),L===0)return Math.round(D);let B=String(D);const $=B.indexOf(".");if($===-1||!B.replace(".","").split("")[$+L])return D;const I=B.length;return B.charAt(I-1)==="5"&&(B=`${B.slice(0,Math.max(0,I-1))}6`),Number.parseFloat(Number(B).toFixed(L))},m=D=>{if(Wn(D))return 0;const L=D.toString(),B=L.indexOf(".");let $=0;return B!==-1&&($=L.length-B-1),$},b=(D,L=1)=>at(D)?g(D+r.step*L):s.currentValue,_=()=>{if(r.readonly||v.value||c.value)return;const D=Number(p.value)||0,L=b(D);S(L),n(jr,s.currentValue)},w=()=>{if(r.readonly||v.value||u.value)return;const D=Number(p.value)||0,L=b(D,-1);S(L),n(jr,s.currentValue)},C=(D,L)=>{const{max:B,min:$,step:O,precision:N,stepStrictly:I,valueOnClear:F}=r;B<$&&Yn("InputNumber","min should not be greater than max.");let G=Number(D);if(Wn(D)||Number.isNaN(G))return null;if(D===""){if(F===null)return null;G=lt(F)?{min:$,max:B}[F]:F}return I&&(G=g(Math.round(G/O)*O,N)),Qn(N)||(G=g(G,N)),(G>B||G<$)&&(G=G>B?B:$,L&&n(wt,G)),G},S=(D,L=!0)=>{var B;const $=s.currentValue,O=C(D);if(!L){n(wt,O);return}$!==O&&(s.userInput=null,n(wt,O),n(gn,O,$),r.validateEvent&&((B=l==null?void 0:l.validate)==null||B.call(l,"change").catch(N=>void 0)),s.currentValue=O)},x=D=>{s.userInput=D;const L=D===""?null:Number(D);n(jr,L),S(L,!1)},T=D=>{const L=D!==""?Number(D):"";(at(L)&&!Number.isNaN(L)||D==="")&&S(L),s.userInput=null},M=()=>{var D,L;(L=(D=o.value)==null?void 0:D.focus)==null||L.call(D)},A=()=>{var D,L;(L=(D=o.value)==null?void 0:D.blur)==null||L.call(D)},k=D=>{n("focus",D)},E=D=>{var L;n("blur",D),r.validateEvent&&((L=l==null?void 0:l.validate)==null||L.call(l,"blur").catch(B=>void 0))};return xe(()=>r.modelValue,D=>{const L=C(s.userInput),B=C(D,!0);!at(L)&&(!L||L!==B)&&(s.currentValue=B,s.userInput=null)},{immediate:!0}),yt(()=>{var D;const{min:L,max:B,modelValue:$}=r,O=(D=o.value)==null?void 0:D.input;if(O.setAttribute("role","spinbutton"),Number.isFinite(B)?O.setAttribute("aria-valuemax",String(B)):O.removeAttribute("aria-valuemax"),Number.isFinite(L)?O.setAttribute("aria-valuemin",String(L)):O.removeAttribute("aria-valuemin"),O.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),O.setAttribute("aria-disabled",String(v.value)),!at($)&&$!=null){let N=Number($);Number.isNaN(N)&&(N=null),n(wt,N)}}),us(()=>{var D,L;const B=(D=o.value)==null?void 0:D.input;B==null||B.setAttribute("aria-valuenow",`${(L=s.currentValue)!=null?L:""}`)}),t({focus:M,blur:A}),(D,L)=>(R(),K("div",{class:V([y(i).b(),y(i).m(y(h)),y(i).is("disabled",y(v)),y(i).is("without-controls",!D.controls),y(i).is("controls-right",y(d))]),onDragstart:L[1]||(L[1]=tt(()=>{},["prevent"]))},[D.controls?dt((R(),K("span",{key:0,role:"button","aria-label":y(a)("el.inputNumber.decrease"),class:V([y(i).e("decrease"),y(i).is("disabled",y(u))]),onKeydown:zt(w,["enter"])},[X(y(Ke),null,{default:re(()=>[y(d)?(R(),ce(y(Tl),{key:0})):(R(),ce(y(Sae),{key:1}))]),_:1})],42,Zye)),[[y(h0),w]]):se("v-if",!0),D.controls?dt((R(),K("span",{key:1,role:"button","aria-label":y(a)("el.inputNumber.increase"),class:V([y(i).e("increase"),y(i).is("disabled",y(c))]),onKeydown:zt(_,["enter"])},[X(y(Ke),null,{default:re(()=>[y(d)?(R(),ce(y(Ub),{key:0})):(R(),ce(y(z5),{key:1}))]),_:1})],42,Jye)),[[y(h0),_]]):se("v-if",!0),X(y(Lr),{id:D.id,ref_key:"input",ref:o,type:"number",step:D.step,"model-value":y(p),placeholder:D.placeholder,readonly:D.readonly,disabled:y(v),size:y(h),max:D.max,min:D.min,name:D.name,label:D.label,"validate-event":!1,onWheel:L[0]||(L[0]=tt(()=>{},["prevent"])),onKeydown:[zt(tt(_,["prevent"]),["up"]),zt(tt(w,["prevent"]),["down"])],onBlur:E,onFocus:k,onInput:x,onChange:T},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var t0e=Pe(e0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const _6=_t(t0e),n0e=Le({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:cn}}),r0e={click:e=>e instanceof MouseEvent},a0e=["href"],i0e=j({name:"ElLink"}),o0e=j({...i0e,props:n0e,emits:r0e,setup(e,{emit:t}){const n=e,r=Me("link"),a=P(()=>[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)=>(R(),K("a",{class:V(y(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(o.icon)))]),_:1})):se("v-if",!0),o.$slots.default?(R(),K("span",{key:1,class:V(y(r).e("inner"))},[_e(o.$slots,"default")],2)):se("v-if",!0),o.$slots.icon?_e(o.$slots,"icon",{key:2}):se("v-if",!0)],10,a0e))}});var s0e=Pe(o0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const l0e=_t(s0e);let u0e=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 Xe.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case Xe.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case Xe.tab:{sy(t,"mouseleave");break}case Xe.enter:case Xe.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},c0e=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 u0e(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Xe.down:{sy(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Xe.up:{sy(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Xe.tab:{sy(t.currentTarget,"mouseleave");break}case Xe.enter:case Xe.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},f0e=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 c0e(r,t)})}};const d0e=j({name:"ElMenuCollapseTransition",setup(){const e=Me("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){so(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){pa(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Pi(n,e.m("collapse"))?(pa(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),so(n,e.m("collapse"))):(so(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),pa(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){so(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function h0e(e,t,n,r,a,i){return R(),ce($n,St({mode:"out-in"},e.listeners),{default:re(()=>[_e(e.$slots,"default")]),_:3},16)}var v0e=Pe(d0e,[["render",h0e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function w6(e,t){const n=P(()=>{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:P(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function p0e(e){return P(()=>{const n=e.backgroundColor;return n?new JF(n).shade(20).toString():""})}const S6=(e,t)=>{const n=Me("menu");return P(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":p0e(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},g0e=Le({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:cn},expandOpenIcon:{type:cn},collapseCloseIcon:{type:cn},collapseOpenIcon:{type:cn}}),Xg="ElSubMenu";var jM=j({name:Xg,props:g0e,setup(e,{slots:t,expose:n}){yo({from:"popper-append-to-body",replacement:"teleported",scope:Xg,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},P(()=>e.popperAppendToBody!==void 0));const r=gt(),{indexPath:a,parentMenu:i}=w6(r,P(()=>e.index)),o=Me("menu"),s=Me("sub-menu"),l=Ge("rootMenu");l||Yn(Xg,"can not inject root menu");const u=Ge(`subMenu:${i.value.uid}`);u||Yn(Xg,"can not inject sub menu");const c=H({}),f=H({});let d;const h=H(!1),v=H(),p=H(null),g=P(()=>k.value==="horizontal"&&b.value?"bottom-start":"right-start"),m=P(()=>k.value==="horizontal"&&b.value||k.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:Tl:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:Yr),b=P(()=>u.level===0),_=P(()=>{var F;const G=(F=e.teleported)!=null?F:e.popperAppendToBody;return G===void 0?b.value:G}),w=P(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),C=P(()=>k.value==="horizontal"&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),S=P(()=>l.openedMenus.includes(e.index)),x=P(()=>{let F=!1;return Object.values(c.value).forEach(G=>{G.active&&(F=!0)}),Object.values(f.value).forEach(G=>{G.active&&(F=!0)}),F}),T=P(()=>l.props.backgroundColor||""),M=P(()=>l.props.activeTextColor||""),A=P(()=>l.props.textColor||""),k=P(()=>l.props.mode),E=jt({index:e.index,indexPath:a,active:x}),D=S6(l.props,u.level+1),L=P(()=>k.value!=="horizontal"?{color:A.value}:{borderBottomColor:x.value?l.props.activeTextColor?M.value:"":"transparent",color:x.value?M.value:A.value}),B=()=>{var F,G,U;return(U=(G=(F=p.value)==null?void 0:F.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:U.destroy()},$=F=>{F||B()},O=()=>{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:x.value})},N=(F,G=e.showTimeout)=>{var U;F.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}=ac(()=>{l.openMenu(e.index,a.value)},G),_.value&&((U=i.value.vnode.el)==null||U.dispatchEvent(new MouseEvent("mouseenter")))))},I=(F=!1)=>{var G,U;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=ac(()=>!h.value&&l.closeMenu(e.index,a.value),e.hideTimeout),_.value&&F&&((G=r.parent)==null?void 0:G.type.name)==="ElSubMenu"&&((U=u.handleMouseleave)==null||U.call(u,!0)))};xe(()=>l.props.collapse,F=>$(!!F));{const F=U=>{f.value[U.index]=U},G=U=>{delete f.value[U.index]};Et(`subMenu:${r.uid}`,{addSubMenu:F,removeSubMenu:G,handleMouseleave:I,mouseInChild:h,level:u.level+1})}return n({opened:S}),yt(()=>{l.addSubMenu(E),u.addSubMenu(E)}),_n(()=>{u.removeSubMenu(E),l.removeSubMenu(E)}),()=>{var F;const G=[(F=t.title)==null?void 0:F.call(t),Ze(Ke,{class:s.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>lt(m.value)?Ze(r.appContext.components[m.value]):Ze(m.value)})],U=l.isMenuPopup?Ze(Qr,{ref:p,visible:S.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:C.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var J;return Ze("div",{class:[o.m(k.value),o.m("popup-container"),e.popperClass],onMouseenter:ae=>N(ae,100),onMouseleave:()=>I(!0),onFocus:ae=>N(ae,100)},[Ze("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:D.value},[(J=t.default)==null?void 0:J.call(t)])])},default:()=>Ze("div",{class:s.e("title"),style:[L.value,{backgroundColor:T.value}],onClick:O},G)}):Ze(je,{},[Ze("div",{class:s.e("title"),style:[L.value,{backgroundColor:T.value}],ref:v,onClick:O},G),Ze(s1,{},{default:()=>{var J;return dt(Ze("ul",{role:"menu",class:[o.b(),o.m("inline")],style:D.value},[(J=t.default)==null?void 0:J.call(t)]),[[Kt,S.value]])}})]);return Ze("li",{class:[s.b(),s.is("active",x.value),s.is("opened",S.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:N,onMouseleave:()=>I(!0),onFocus:N},[U])}}});const m0e=Le({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ue(Array),default:()=>Sn([])},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"}}),I_=e=>Array.isArray(e)&&e.every(t=>lt(t)),y0e={close:(e,t)=>lt(e)&&I_(t),open:(e,t)=>lt(e)&&I_(t),select:(e,t,n,r)=>lt(e)&&I_(t)&&Mt(n)&&(r===void 0||r instanceof Promise)};var b0e=j({name:"ElMenu",props:m0e,emits:y0e,setup(e,{emit:t,slots:n,expose:r}){const a=gt(),i=a.appContext.config.globalProperties.$router,o=H(),s=Me("menu"),l=Me("sub-menu"),u=H(-1),c=H(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=H(e.defaultActive),d=H({}),h=H({}),v=P(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const k=f.value&&d.value[f.value];if(!k||e.mode==="horizontal"||e.collapse)return;k.indexPath.forEach(D=>{const L=h.value[D];L&&g(D,L.indexPath)})},g=(k,E)=>{c.value.includes(k)||(e.uniqueOpened&&(c.value=c.value.filter(D=>E.includes(D))),c.value.push(k),t("open",k,E))},m=k=>{const E=c.value.indexOf(k);E!==-1&&c.value.splice(E,1)},b=(k,E)=>{m(k),t("close",k,E)},_=({index:k,indexPath:E})=>{c.value.includes(k)?b(k,E):g(k,E)},w=k=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:E,indexPath:D}=k;if(!(Wn(E)||Wn(D)))if(e.router&&i){const L=k.route||E,B=i.push(L).then($=>($||(f.value=E),$));t("select",E,D,{index:E,indexPath:D,route:L},B)}else f.value=E,t("select",E,D,{index:E,indexPath:D})},C=k=>{const E=d.value,D=E[k]||f.value&&E[f.value]||E[e.defaultActive];D?f.value=D.index:f.value=k},S=()=>{var k,E;if(!o.value)return-1;const D=Array.from((E=(k=o.value)==null?void 0:k.childNodes)!=null?E:[]).filter(F=>F.nodeName!=="#comment"&&(F.nodeName!=="#text"||F.nodeValue)),L=64,B=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),$=Number.parseInt(getComputedStyle(o.value).paddingRight,10),O=o.value.clientWidth-B-$;let N=0,I=0;return D.forEach((F,G)=>{N+=F.offsetWidth||0,N<=O-L&&(I=G+1)}),I===D.length?-1:I},x=(k,E=33.34)=>{let D;return()=>{D&&clearTimeout(D),D=setTimeout(()=>{k()},E)}};let T=!0;const M=()=>{const k=()=>{u.value=-1,Ue(()=>{u.value=S()})};T?k():x(k)(),T=!1};xe(()=>e.defaultActive,k=>{d.value[k]||(f.value=""),C(k)}),xe(()=>e.collapse,k=>{k&&(c.value=[])}),xe(d.value,p);let A;Ia(()=>{e.mode==="horizontal"&&e.ellipsis?A=Or(o,M).stop:A==null||A()});{const k=B=>{h.value[B.index]=B},E=B=>{delete h.value[B.index]};Et("rootMenu",jt({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:B=>{d.value[B.index]=B},removeMenuItem:B=>{delete d.value[B.index]},addSubMenu:k,removeSubMenu:E,openMenu:g,closeMenu:b,handleMenuItemClick:w,handleSubMenuClick:_})),Et(`subMenu:${a.uid}`,{addSubMenu:k,removeSubMenu:E,mouseInChild:H(!1),level:0})}return yt(()=>{e.mode==="horizontal"&&new f0e(a.vnode.el,s.namespace.value)}),r({open:E=>{const{indexPath:D}=h.value[E];D.forEach(L=>g(L,D))},close:m,handleResize:M}),()=>{var k,E;let D=(E=(k=n.default)==null?void 0:k.call(n))!=null?E:[];const L=[];if(e.mode==="horizontal"&&o.value){const O=Af(D),N=u.value===-1?O:O.slice(0,u.value),I=u.value===-1?[]:O.slice(u.value);I!=null&&I.length&&e.ellipsis&&(D=N,L.push(Ze(jM,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>Ze(Ke,{class:l.e("icon-more")},{default:()=>Ze(Tae)}),default:()=>I})))}const B=S6(e,0),$=Ze("ul",{key:String(e.collapse),role:"menubar",ref:o,style:B.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...D,...L]);return e.collapseTransition&&e.mode==="vertical"?Ze(v0e,()=>$):$}}});const _0e=Le({index:{type:ue([String,null]),default:null},route:{type:ue([String,Object])},disabled:Boolean}),w0e={click:e=>lt(e.index)&&Array.isArray(e.indexPath)},D_="ElMenuItem",S0e=j({name:D_,components:{ElTooltip:Qr},props:_0e,emits:w0e,setup(e,{emit:t}){const n=gt(),r=Ge("rootMenu"),a=Me("menu"),i=Me("menu-item");r||Yn(D_,"can not inject root menu");const{parentMenu:o,indexPath:s}=w6(n,Mn(e,"index")),l=Ge(`subMenu:${o.value.uid}`);l||Yn(D_,"can not inject sub menu");const u=P(()=>e.index===r.activeIndex),c=jt({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 yt(()=>{l.addSubMenu(c),r.addMenuItem(c)}),_n(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function C0e(e,t,n,r,a,i){const o=ct("el-tooltip");return R(),K("li",{class:V([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?(R(),ce(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:re(()=>[_e(e.$slots,"title")]),default:re(()=>[Y("div",{class:V(e.nsMenu.be("tooltip","trigger"))},[_e(e.$slots,"default")],2)]),_:3},8,["effect"])):(R(),K(je,{key:1},[_e(e.$slots,"default"),_e(e.$slots,"title")],64))],2)}var C6=Pe(S0e,[["render",C0e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const x0e={title:String},T0e="ElMenuItemGroup",M0e=j({name:T0e,props:x0e,setup(){return{ns:Me("menu-item-group")}}});function k0e(e,t,n,r,a,i){return R(),K("li",{class:V(e.ns.b())},[Y("div",{class:V(e.ns.e("title"))},[e.$slots.title?_e(e.$slots,"title",{key:1}):(R(),K(je,{key:0},[Ut(De(e.title),1)],64))],2),Y("ul",null,[_e(e.$slots,"default")])],2)}var x6=Pe(M0e,[["render",k0e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const A0e=_t(b0e,{MenuItem:C6,MenuItemGroup:x6,SubMenu:jM}),E0e=In(C6),I0e=In(x6),D0e=In(jM),P0e=Le({icon:{type:cn,default:()=>Kre},title:String,content:{type:String,default:""}}),L0e={back:()=>!0},R0e=["aria-label"],O0e=j({name:"ElPageHeader"}),N0e=j({...O0e,props:P0e,emits:L0e,setup(e,{emit:t}){const n=Tr(),{t:r}=Ht(),a=Me("page-header"),i=P(()=>[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)=>(R(),K("div",{class:V(y(i))},[s.$slots.breadcrumb?(R(),K("div",{key:0,class:V(y(a).e("breadcrumb"))},[_e(s.$slots,"breadcrumb")],2)):se("v-if",!0),Y("div",{class:V(y(a).e("header"))},[Y("div",{class:V(y(a).e("left"))},[Y("div",{class:V(y(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(R(),K("div",{key:0,"aria-label":s.title||y(r)("el.pageHeader.title"),class:V(y(a).e("icon"))},[_e(s.$slots,"icon",{},()=>[s.icon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(s.icon)))]),_:1})):se("v-if",!0)])],10,R0e)):se("v-if",!0),Y("div",{class:V(y(a).e("title"))},[_e(s.$slots,"title",{},()=>[Ut(De(s.title||y(r)("el.pageHeader.title")),1)])],2)],2),X(y(u6),{direction:"vertical"}),Y("div",{class:V(y(a).e("content"))},[_e(s.$slots,"content",{},()=>[Ut(De(s.content),1)])],2)],2),s.$slots.extra?(R(),K("div",{key:0,class:V(y(a).e("extra"))},[_e(s.$slots,"extra")],2)):se("v-if",!0)],2),s.$slots.default?(R(),K("div",{key:1,class:V(y(a).e("main"))},[_e(s.$slots,"default")],2)):se("v-if",!0)],2))}});var $0e=Pe(N0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const B0e=_t($0e),T6=Symbol("elPaginationKey"),V0e=Le({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:cn}}),F0e={click:e=>e instanceof MouseEvent},z0e=["disabled","aria-label","aria-disabled"],H0e={key:0},G0e=j({name:"ElPaginationPrev"}),W0e=j({...G0e,props:V0e,emits:F0e,setup(e){const t=e,{t:n}=Ht(),r=P(()=>t.disabled||t.currentPage<=1);return(a,i)=>(R(),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?(R(),K("span",H0e,De(a.prevText),1)):(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(a.prevIcon)))]),_:1}))],8,z0e))}});var K0e=Pe(W0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const U0e=Le({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:cn}}),Y0e=["disabled","aria-label","aria-disabled"],j0e={key:0},q0e=j({name:"ElPaginationNext"}),X0e=j({...q0e,props:U0e,emits:["click"],setup(e){const t=e,{t:n}=Ht(),r=P(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>(R(),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?(R(),K("span",j0e,De(a.nextText),1)):(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(a.nextIcon)))]),_:1}))],8,Y0e))}});var Z0e=Pe(X0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const M6=Symbol("ElSelectGroup"),ng=Symbol("ElSelect");function J0e(e,t){const n=Ge(ng),r=Ge(M6,{disabled:!1}),a=P(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=P(()=>n.props.multiple?f(n.props.modelValue,e.value):d(e.value,n.props.modelValue)),o=P(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!i.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=P(()=>e.label||(a.value?"":e.value)),l=P(()=>e.value||e.label||""),u=P(()=>e.disabled||t.groupDisabled||o.value),c=gt(),f=(p=[],g)=>{if(a.value){const m=n.props.valueKey;return p&&p.some(b=>en(wn(b,m))===wn(g,m))}else return p&&p.includes(g)},d=(p,g)=>{if(a.value){const{valueKey:m}=n.props;return wn(p,m)===wn(g,m)}else return p===g},h=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};xe(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),xe(()=>e.value,(p,g)=>{const{remote:m,valueKey:b}=n.props;if(Object.is(p,g)||(n.onOptionDestroy(g,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(b&&typeof p=="object"&&typeof g=="object"&&p[b]===g[b])return;n.setSelected()}}),xe(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:v}=en(n);return xe(v,p=>{const{query:g}=y(p),m=new RegExp(O5(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 Q0e=j({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Me("select"),n=P(()=>[t.be("dropdown","item"),t.is("disabled",y(o)),{selected:y(i),hover:y(c)}]),r=jt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l}=J0e(e,r),{visible:u,hover:c}=ir(r),f=gt().proxy;s.onOptionCreate(f),_n(()=>{const h=f.value,{selected:v}=s,g=(s.props.multiple?v:[v]).some(m=>m.value===f.value);Ue(()=>{s.cachedOptions.get(h)===f&&!g&&s.cachedOptions.delete(h)}),s.onOptionDestroy(h,f)});function d(){e.disabled!==!0&&r.groupDisabled!==!0&&s.handleOptionSelect(f)}return{ns:t,containerKls:n,currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l,visible:u,hover:c,selectOptionClick:d,states:r}}});function ebe(e,t,n,r,a,i){return dt((R(),K("li",{class:V(e.containerKls),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=tt((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[_e(e.$slots,"default",{},()=>[Y("span",null,De(e.currentLabel),1)])],34)),[[Kt,e.visible]])}var qM=Pe(Q0e,[["render",ebe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const tbe=j({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ge(ng),t=Me("select"),n=P(()=>e.props.popperClass),r=P(()=>e.props.multiple),a=P(()=>e.props.fitInputWidth),i=H("");function o(){var s;i.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return yt(()=>{o(),Or(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function nbe(e,t,n,r,a,i){return R(),K("div",{class:V([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ye({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[_e(e.$slots,"default")],6)}var rbe=Pe(tbe,[["render",nbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function abe(e){const{t}=Ht();return jt({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const ibe=(e,t,n)=>{const{t:r}=Ht(),a=Me("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"},P(()=>e.suffixTransition===!1));const i=H(null),o=H(null),s=H(null),l=H(null),u=H(null),c=H(null),f=H(null),d=H(null),h=H(-1),v=ln({query:""}),p=ln(""),g=H([]);let m=0;const{form:b,formItem:_}=ra(),w=P(()=>!e.filterable||e.multiple||!t.visible),C=P(()=>e.disabled||(b==null?void 0:b.disabled)),S=P(()=>{const be=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!C.value&&t.inputHovering&&be}),x=P(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),T=P(()=>a.is("reverse",x.value&&t.visible&&e.suffixTransition)),M=P(()=>(b==null?void 0:b.statusIcon)&&(_==null?void 0:_.validateState)&&vM[_==null?void 0:_.validateState]),A=P(()=>e.remote?300:0),k=P(()=>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),E=P(()=>{const be=Array.from(t.options.values()),$e=[];return g.value.forEach(he=>{const Fe=be.findIndex(At=>At.currentLabel===he);Fe>-1&&$e.push(be[Fe])}),$e.length>=be.length?$e:be}),D=P(()=>Array.from(t.cachedOptions.values())),L=P(()=>{const be=E.value.filter($e=>!$e.created).some($e=>$e.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!be}),B=jn(),$=P(()=>["small"].includes(B.value)?"small":"default"),O=P({get(){return t.visible&&k.value!==!1},set(be){t.visible=be}});xe([()=>C.value,()=>B.value,()=>b==null?void 0:b.size],()=>{Ue(()=>{N()})}),xe(()=>e.placeholder,be=>{t.cachedPlaceHolder=t.currentPlaceholder=be,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),xe(()=>e.modelValue,(be,$e)=>{e.multiple&&(N(),be&&be.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",I(t.query))),U(),e.filterable&&!e.multiple&&(t.inputLength=20),!va(be,$e)&&e.validateEvent&&(_==null||_.validate("change").catch(he=>void 0))},{flush:"post",deep:!0}),xe(()=>t.visible,be=>{var $e,he,Fe,At,Wt;be?((he=($e=l.value)==null?void 0:$e.updatePopper)==null||he.call($e),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(At=(Fe=s.value)==null?void 0:Fe.focus)==null||At.call(Fe),e.multiple?(Wt=o.value)==null||Wt.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),I(t.query),!e.multiple&&!e.remote&&(v.value.query="",Zd(v),Zd(p)))):(e.filterable&&(it(e.filterMethod)&&e.filterMethod(""),it(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ae(),Ue(()=>{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",be)}),xe(()=>t.options.entries(),()=>{var be,$e,he;if(!Vt)return;($e=(be=l.value)==null?void 0:be.updatePopper)==null||$e.call(be),e.multiple&&N();const Fe=((he=f.value)==null?void 0:he.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Qn(e.modelValue)||!Array.from(Fe).includes(document.activeElement))&&U(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&G()},{flush:"post"}),xe(()=>t.hoverIndex,be=>{at(be)&&be>-1?h.value=E.value[be]||{}:h.value={},E.value.forEach($e=>{$e.hover=h.value===$e})});const N=()=>{Ue(()=>{var be,$e;if(!i.value)return;const he=i.value.$el.querySelector("input");m=m||(he.clientHeight>0?he.clientHeight+2:0);const Fe=c.value,At=aie(B.value||(b==null?void 0:b.size)),Wt=B.value||At===m||m<=0?At:m;!(he.offsetParent===null)&&(he.style.height=`${(t.selected.length===0?Wt:Math.max(Fe?Fe.clientHeight+(Fe.clientHeight>Wt?6:0):0,Wt))-2}px`),t.visible&&k.value!==!1&&(($e=(be=l.value)==null?void 0:be.updatePopper)==null||$e.call(be))})},I=async be=>{if(!(t.previousQuery===be||t.isOnComposition)){if(t.previousQuery===null&&(it(e.filterMethod)||it(e.remoteMethod))){t.previousQuery=be;return}t.previousQuery=be,Ue(()=>{var $e,he;t.visible&&((he=($e=l.value)==null?void 0:$e.updatePopper)==null||he.call($e))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Ue(()=>{if(!C.value){const $e=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,$e):$e,F()}N()}),e.remote&&it(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(be)):it(e.filterMethod)?(e.filterMethod(be),Zd(p)):(t.filteredOptionsCount=t.optionsCount,v.value.query=be,Zd(v),Zd(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Ue(),G())}},F=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},G=()=>{const be=E.value.filter(Fe=>Fe.visible&&!Fe.disabled&&!Fe.states.groupDisabled),$e=be.find(Fe=>Fe.created),he=be[0];t.hoverIndex=Se(E.value,$e||he)},U=()=>{var be;if(e.multiple)t.selectedLabel="";else{const he=J(e.modelValue);(be=he.props)!=null&&be.created?(t.createdLabel=he.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=he.currentLabel,t.selected=he,e.filterable&&(t.query=t.selectedLabel);return}const $e=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(he=>{$e.push(J(he))}),t.selected=$e,Ue(()=>{N()})},J=be=>{let $e;const he=ny(be).toLowerCase()==="object",Fe=ny(be).toLowerCase()==="null",At=ny(be).toLowerCase()==="undefined";for(let Jn=t.cachedOptions.size-1;Jn>=0;Jn--){const Mr=D.value[Jn];if(he?wn(Mr.value,e.valueKey)===wn(be,e.valueKey):Mr.value===be){$e={value:be,currentLabel:Mr.currentLabel,isDisabled:Mr.isDisabled};break}}if($e)return $e;const Wt=he?be.label:!Fe&&!At?be:"",Zn={value:be,currentLabel:Wt};return e.multiple&&(Zn.hitState=!1),Zn},ae=()=>{setTimeout(()=>{const be=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map($e=>E.value.findIndex(he=>wn(he,be)===wn($e,be)))):t.hoverIndex=-1:t.hoverIndex=E.value.findIndex($e=>ke($e)===ke(t.selected))},300)},Q=()=>{var be,$e;ee(),($e=(be=l.value)==null?void 0:be.updatePopper)==null||$e.call(be),e.multiple&&N()},ee=()=>{var be;t.inputWidth=(be=i.value)==null?void 0:be.$el.offsetWidth},te=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,I(t.query))},q=Jr(()=>{te()},A.value),de=Jr(be=>{I(be.target.value)},A.value),ve=be=>{va(e.modelValue,be)||n.emit(gn,be)},ie=be=>gre(be,$e=>!t.disabledOptions.has($e)),W=be=>{if(be.code!==Xe.delete){if(be.target.value.length<=0&&!Ne()){const $e=e.modelValue.slice(),he=ie($e);if(he<0)return;$e.splice(he,1),n.emit(wt,$e),ve($e)}be.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},Z=(be,$e)=>{const he=t.selected.indexOf($e);if(he>-1&&!C.value){const Fe=e.modelValue.slice();Fe.splice(he,1),n.emit(wt,Fe),ve(Fe),n.emit("remove-tag",$e.value)}be.stopPropagation(),ze()},oe=be=>{be.stopPropagation();const $e=e.multiple?[]:"";if(!lt($e))for(const he of t.selected)he.isDisabled&&$e.push(he.value);n.emit(wt,$e),ve($e),t.hoverIndex=-1,t.visible=!1,n.emit("clear"),ze()},pe=be=>{var $e;if(e.multiple){const he=(e.modelValue||[]).slice(),Fe=Se(he,be.value);Fe>-1?he.splice(Fe,1):(e.multipleLimit<=0||he.length<e.multipleLimit)&&he.push(be.value),n.emit(wt,he),ve(he),be.created&&(t.query="",I(""),t.inputLength=20),e.filterable&&(($e=o.value)==null||$e.focus())}else n.emit(wt,be.value),ve(be.value),t.visible=!1;me(),!t.visible&&Ue(()=>{Ee(be)})},Se=(be=[],$e)=>{if(!Mt($e))return be.indexOf($e);const he=e.valueKey;let Fe=-1;return be.some((At,Wt)=>en(wn(At,he))===wn($e,he)?(Fe=Wt,!0):!1),Fe},me=()=>{const be=o.value||i.value;be&&(be==null||be.focus())},Ee=be=>{var $e,he,Fe,At,Wt;const Zn=Array.isArray(be)?be[0]:be;let Jn=null;if(Zn!=null&&Zn.value){const Mr=E.value.filter(kr=>kr.value===Zn.value);Mr.length>0&&(Jn=Mr[0].$el)}if(l.value&&Jn){const Mr=(At=(Fe=(he=($e=l.value)==null?void 0:$e.popperRef)==null?void 0:he.contentRef)==null?void 0:Fe.querySelector)==null?void 0:At.call(Fe,`.${a.be("dropdown","wrap")}`);Mr&&B5(Mr,Jn)}(Wt=d.value)==null||Wt.handleScroll()},Ce=be=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(be.value,be),t.cachedOptions.set(be.value,be),be.disabled&&t.disabledOptions.set(be.value,be)},we=(be,$e)=>{t.options.get(be)===$e&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(be))},Te=be=>{be.code!==Xe.backspace&&Ne(!1),t.inputLength=o.value.value.length*15+20,N()},Ne=be=>{if(!Array.isArray(t.selected))return;const $e=ie(t.selected.map(Fe=>Fe.value)),he=t.selected[$e];if(he)return be===!0||be===!1?(he.hitState=be,be):(he.hitState=!he.hitState,he.hitState)},Be=be=>{const $e=be.target.value;if(be.type==="compositionend")t.isOnComposition=!1,Ue(()=>I($e));else{const he=$e[$e.length-1]||"";t.isOnComposition=!Xb(he)}},We=()=>{Ue(()=>Ee(t.selected))},Ae=be=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,n.emit("focus",be))},ze=()=>{var be,$e;t.visible?(be=o.value||i.value)==null||be.focus():($e=i.value)==null||$e.focus()},rt=()=>{var be,$e,he;t.visible=!1,(be=i.value)==null||be.blur(),(he=($e=s.value)==null?void 0:$e.blur)==null||he.call($e)},vt=be=>{var $e,he,Fe;($e=l.value)!=null&&$e.isFocusInsideContent(be)||(he=u.value)!=null&&he.isFocusInsideContent(be)||(Fe=f.value)!=null&&Fe.contains(be.relatedTarget)||(t.visible&&Qe(),t.focused=!1,n.emit("blur",be))},kt=be=>{oe(be)},Qe=()=>{t.visible=!1},ye=be=>{t.visible&&(be.preventDefault(),be.stopPropagation(),t.visible=!1)},fe=be=>{be&&!t.mouseEnter||C.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),ze())},le=()=>{t.visible?E.value[t.hoverIndex]&&pe(E.value[t.hoverIndex]):fe()},ke=be=>Mt(be.value)?wn(be.value,e.valueKey):be.value,ne=P(()=>E.value.filter(be=>be.visible).every(be=>be.disabled)),Ve=P(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),st=P(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),It=be=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!ne.value){be==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):be==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const $e=E.value[t.hoverIndex];($e.disabled===!0||$e.states.groupDisabled===!0||!$e.visible)&&It(be),Ue(()=>Ee(h.value))}},Vn=()=>{t.mouseEnter=!0},Xn=()=>{t.mouseEnter=!1},ia=(be,$e)=>{var he,Fe;Z(be,$e),(Fe=(he=u.value)==null?void 0:he.updatePopper)==null||Fe.call(he)},vr=P(()=>({maxWidth:`${y(t.inputWidth)-32-(M.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:E,selectSize:B,handleResize:Q,debouncedOnInputChange:q,debouncedQueryChange:de,deletePrevTag:W,deleteTag:Z,deleteSelected:oe,handleOptionSelect:pe,scrollToOption:Ee,readonly:w,resetInputHeight:N,showClose:S,iconComponent:x,iconReverse:T,showNewOption:L,collapseTagSize:$,setSelected:U,managePlaceholder:F,selectDisabled:C,emptyText:k,toggleLastOptionHitState:Ne,resetInputState:Te,handleComposition:Be,onOptionCreate:Ce,onOptionDestroy:we,handleMenuEnter:We,handleFocus:Ae,focus:ze,blur:rt,handleBlur:vt,handleClearClick:kt,handleClose:Qe,handleKeydownEscape:ye,toggleMenu:fe,selectOption:le,getValueKey:ke,navigateOptions:It,handleDeleteTooltipTag:ia,dropMenuVisible:O,queryChange:v,groupQueryChange:p,showTagList:Ve,collapseTagList:st,selectTagsStyle:vr,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:Vn,handleMouseLeave:Xn}};var obe=j({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,v,p;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!lt(f.children)&&!Array.isArray(f.children)&&it((h=f.children)==null?void 0:h.default)?(v=f.children)==null?void 0:v.default():f.children):g==="ElOption"?l.push((p=f.props)==null?void 0:p.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 KP="ElSelect",sbe=j({name:KP,componentName:KP,components:{ElInput:Lr,ElSelectMenu:rbe,ElOption:qM,ElOptions:obe,ElTag:Qv,ElScrollbar:ds,ElTooltip:Qr,ElIcon:Ke},directives:{ClickOutside:vl},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:qb},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:Boolean,maxCollapseTags:{type:Number,default:1},teleported:ur.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:cn,default:Ml},fitInputWidth:Boolean,suffixIcon:{type:cn,default:Tl},tagType:{...FM.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:wc,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[wt,gn,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Me("select"),r=Me("input"),{t:a}=Ht(),i=abe(e),{optionList:o,optionsArray:s,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,setSelected:_,resetInputHeight:w,managePlaceholder:C,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:M,showNewOption:A,emptyText:k,toggleLastOptionHitState:E,resetInputState:D,handleComposition:L,onOptionCreate:B,onOptionDestroy:$,handleMenuEnter:O,handleFocus:N,focus:I,blur:F,handleBlur:G,handleClearClick:U,handleClose:J,handleKeydownEscape:ae,toggleMenu:Q,selectOption:ee,getValueKey:te,navigateOptions:q,handleDeleteTooltipTag:de,dropMenuVisible:ve,reference:ie,input:W,iOSInput:Z,tooltipRef:oe,tagTooltipRef:pe,tags:Se,selectWrapper:me,scrollbar:Ee,queryChange:Ce,groupQueryChange:we,handleMouseEnter:Te,handleMouseLeave:Ne,showTagList:Be,collapseTagList:We,selectTagsStyle:Ae}=ibe(e,i,t),{inputWidth:ze,selected:rt,inputLength:vt,filteredOptionsCount:kt,visible:Qe,selectedLabel:ye,hoverIndex:fe,query:le,inputHovering:ke,currentPlaceholder:ne,menuVisibleOnFocus:Ve,isOnComposition:st,options:It,cachedOptions:Vn,optionsCount:Xn,prefixWidth:ia}=ir(i),vr=P(()=>{const kr=[n.b()],Nl=y(l);return Nl&&kr.push(n.m(Nl)),e.disabled&&kr.push(n.m("disabled")),kr}),be=P(()=>[n.e("tags"),n.is("disabled",y(x))]),$e=P(()=>[n.b("tags-wrapper"),{"has-prefix":y(ia)&&y(rt).length}]),he=P(()=>[n.e("input"),n.is(y(l)),n.is("disabled",y(x))]),Fe=P(()=>[n.e("input"),n.is(y(l)),n.em("input","iOS")]),At=P(()=>[n.is("empty",!e.allowCreate&&!!y(le)&&y(kt)===0)]),Wt=P(()=>({maxWidth:`${y(ze)>123?y(ze)-123:y(ze)-75}px`})),Zn=P(()=>({marginLeft:`${y(ia)}px`,flexGrow:1,width:`${y(vt)/(y(ze)-32)}%`,maxWidth:`${y(ze)-42}px`}));Et(ng,jt({props:e,options:It,optionsArray:s,cachedOptions:Vn,optionsCount:Xn,filteredOptionsCount:kt,hoverIndex:fe,handleOptionSelect:m,onOptionCreate:B,onOptionDestroy:$,selectWrapper:me,selected:rt,setSelected:_,queryChange:Ce,groupQueryChange:we})),yt(()=>{i.cachedPlaceHolder=ne.value=e.placeholder||(()=>a("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(ne.value=""),Or(me,c),e.remote&&e.multiple&&w(),Ue(()=>{const kr=ie.value&&ie.value.$el;if(kr&&(ze.value=kr.getBoundingClientRect().width,t.slots.prefix)){const Nl=kr.querySelector(`.${r.e("prefix")}`);ia.value=Math.max(Nl.getBoundingClientRect().width+11,30)}}),_()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(wt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(wt,"");const Jn=P(()=>{var kr,Nl;return(Nl=(kr=oe.value)==null?void 0:kr.popperRef)==null?void 0:Nl.contentRef});return{isIOS:jV,onOptionsRendered:kr=>{o.value=kr},prefixWidth:ia,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,handleDeleteTooltipTag:de,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,inputWidth:ze,selected:rt,inputLength:vt,filteredOptionsCount:kt,visible:Qe,selectedLabel:ye,hoverIndex:fe,query:le,inputHovering:ke,currentPlaceholder:ne,menuVisibleOnFocus:Ve,isOnComposition:st,options:It,resetInputHeight:w,managePlaceholder:C,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:M,showNewOption:A,emptyText:k,toggleLastOptionHitState:E,resetInputState:D,handleComposition:L,handleMenuEnter:O,handleFocus:N,focus:I,blur:F,handleBlur:G,handleClearClick:U,handleClose:J,handleKeydownEscape:ae,toggleMenu:Q,selectOption:ee,getValueKey:te,navigateOptions:q,dropMenuVisible:ve,reference:ie,input:W,iOSInput:Z,tooltipRef:oe,popperPaneRef:Jn,tags:Se,selectWrapper:me,scrollbar:Ee,wrapperKls:vr,tagsKls:be,tagWrapperKls:$e,inputKls:he,iOSInputKls:Fe,scrollbarKls:At,selectTagsStyle:Ae,nsSelect:n,tagTextStyle:Wt,inputStyle:Zn,handleMouseEnter:Te,handleMouseLeave:Ne,showTagList:Be,collapseTagList:We,tagTooltipRef:pe}}}),lbe=["disabled","autocomplete","aria-label"],ube=["disabled"],cbe={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function fbe(e,t,n,r,a,i){const o=ct("el-tag"),s=ct("el-tooltip"),l=ct("el-icon"),u=ct("el-input"),c=ct("el-option"),f=ct("el-options"),d=ct("el-scrollbar"),h=ct("el-select-menu"),v=$v("click-outside");return dt((R(),K("div",{ref:"selectWrapper",class:V(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...p)=>e.handleMouseEnter&&e.handleMouseEnter(...p)),onMouseleave:t[23]||(t[23]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p)),onClick:t[24]||(t[24]=tt((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},[X(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:re(()=>[Y("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=p=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=p=>e.inputHovering=!1)},[e.multiple?(R(),K("div",{key:0,ref:"tags",tabindex:"-1",class:V(e.tagsKls),style:Ye(e.selectTagsStyle),onClick:t[15]||(t[15]=(...p)=>e.focus&&e.focus(...p))},[e.collapseTags&&e.selected.length?(R(),ce($n,{key:0,onAfterLeave:e.resetInputHeight},{default:re(()=>[Y("span",{class:V(e.tagWrapperKls)},[(R(!0),K(je,null,Ot(e.showTagList,p=>(R(),ce(o,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,p)},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text")),style:Ye(e.tagTextStyle)},De(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(R(),ce(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:re(()=>[e.collapseTagsTooltip?(R(),ce(s,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text"))},"+ "+De(e.selected.length-e.maxCollapseTags),3)]),content:re(()=>[Y("div",{class:V(e.nsSelect.e("collapse-tags"))},[(R(!0),K(je,null,Ot(e.collapseTagList,p=>(R(),K("div",{key:e.getValueKey(p),class:V(e.nsSelect.e("collapse-tag"))},[X(o,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>e.handleDeleteTooltipTag(g,p)},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text")),style:Ye({maxWidth:e.inputWidth-75+"px"})},De(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(R(),K("span",{key:1,class:V(e.nsSelect.e("tags-text"))},"+ "+De(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):se("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):se("v-if",!0),e.collapseTags?se("v-if",!0):(R(),ce($n,{key:1,onAfterLeave:e.resetInputHeight},{default:re(()=>[Y("span",{class:V(e.tagWrapperKls),style:Ye(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(R(!0),K(je,null,Ot(e.selected,p=>(R(),ce(o,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,p)},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text")),style:Ye({maxWidth:e.inputWidth-75+"px"})},De(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?dt((R(),K("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=p=>e.query=p),type:"text",class:V(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ye(e.inputStyle),"aria-label":e.ariaLabel,onFocus:t[1]||(t[1]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onBlur:t[2]||(t[2]=(...p)=>e.handleBlur&&e.handleBlur(...p)),onKeyup:t[3]||(t[3]=(...p)=>e.managePlaceholder&&e.managePlaceholder(...p)),onKeydown:[t[4]||(t[4]=(...p)=>e.resetInputState&&e.resetInputState(...p)),t[5]||(t[5]=zt(tt(p=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=zt(tt(p=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=zt((...p)=>e.handleKeydownEscape&&e.handleKeydownEscape(...p),["esc"])),t[8]||(t[8]=zt(tt((...p)=>e.selectOption&&e.selectOption(...p),["stop","prevent"]),["enter"])),t[9]||(t[9]=zt((...p)=>e.deletePrevTag&&e.deletePrevTag(...p),["delete"])),t[10]||(t[10]=zt(p=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionupdate:t[12]||(t[12]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionend:t[13]||(t[13]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onInput:t[14]||(t[14]=(...p)=>e.debouncedQueryChange&&e.debouncedQueryChange(...p))},null,46,lbe)),[[zT,e.query]]):se("v-if",!0)],6)):se("v-if",!0),se(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(R(),K("input",{key:1,ref:"iOSInput",class:V(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,ube)):se("v-if",!0),X(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=p=>e.selectedLabel=p),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:V([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,label:e.ariaLabel,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=zt(tt(p=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=zt(tt(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),zt(tt(e.selectOption,["stop","prevent"]),["enter"]),zt(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=zt(p=>e.visible=!1,["tab"]))]},Zo({suffix:re(()=>[e.iconComponent&&!e.showClose?(R(),ce(l,{key:0,class:V([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),e.showClose&&e.clearIcon?(R(),ce(l,{key:1,class:V([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:re(()=>[(R(),ce(Ct(e.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:re(()=>[Y("div",cbe,[_e(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:re(()=>[X(h,null,{default:re(()=>[dt(X(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:V(e.scrollbarKls)},{default:re(()=>[e.showNewOption?(R(),ce(c,{key:0,value:e.query,created:!0},null,8,["value"])):se("v-if",!0),X(f,{onUpdateOptions:e.onOptionsRendered},{default:re(()=>[_e(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Kt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(R(),K(je,{key:0},[e.$slots.empty?_e(e.$slots,"empty",{key:0}):(R(),K("p",{key:1,class:V(e.nsSelect.be("dropdown","empty"))},De(e.emptyText),3))],64)):se("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}var dbe=Pe(sbe,[["render",fbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const hbe=j({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Me("select"),n=H(!0),r=gt(),a=H([]);Et(M6,jt({...ir(e)}));const i=Ge(ng);yt(()=>{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}=en(i);return xe(s,()=>{n.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function vbe(e,t,n,r,a,i){return dt((R(),K("ul",{class:V(e.ns.be("group","wrap"))},[Y("li",{class:V(e.ns.be("group","title"))},De(e.label),3),Y("li",null,[Y("ul",{class:V(e.ns.b("group"))},[_e(e.$slots,"default")],2)])],2)),[[Kt,e.visible]])}var k6=Pe(hbe,[["render",vbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const sc=_t(dbe,{Option:qM,OptionGroup:k6}),p0=In(qM),pbe=In(k6),XM=()=>Ge(T6,{}),gbe=Le({pageSize:{type:Number,required:!0},pageSizes:{type:ue(Array),default:()=>Sn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:To}}),mbe=j({name:"ElPaginationSizes"}),ybe=j({...mbe,props:gbe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Ht(),a=Me("pagination"),i=XM(),o=H(n.pageSize);xe(()=>n.pageSizes,(u,c)=>{if(!va(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),xe(()=>n.pageSize,u=>{o.value=u});const s=P(()=>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)=>(R(),K("span",{class:V(y(a).e("sizes"))},[X(y(sc),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:re(()=>[(R(!0),K(je,null,Ot(y(s),f=>(R(),ce(y(p0),{key:f,value:f,label:f+y(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var bbe=Pe(ybe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const _be=Le({size:{type:String,values:To}}),wbe=["disabled"],Sbe=j({name:"ElPaginationJumper"}),Cbe=j({...Sbe,props:_be,setup(e){const{t}=Ht(),n=Me("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=XM(),s=H(),l=P(()=>{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)=>(R(),K("span",{class:V(y(n).e("jump")),disabled:y(a)},[Y("span",{class:V([y(n).e("goto")])},De(y(t)("el.pagination.goto")),3),X(y(Lr),{size:f.size,class:V([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"]),Y("span",{class:V([y(n).e("classifier")])},De(y(t)("el.pagination.pageClassifier")),3)],10,wbe))}});var xbe=Pe(Cbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const Tbe=Le({total:{type:Number,default:1e3}}),Mbe=["disabled"],kbe=j({name:"ElPaginationTotal"}),Abe=j({...kbe,props:Tbe,setup(e){const{t}=Ht(),n=Me("pagination"),{disabled:r}=XM();return(a,i)=>(R(),K("span",{class:V(y(n).e("total")),disabled:y(r)},De(y(t)("el.pagination.total",{total:a.total})),11,Mbe))}});var Ebe=Pe(Abe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const Ibe=Le({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Dbe=["onKeyup"],Pbe=["aria-current","aria-label","tabindex"],Lbe=["tabindex","aria-label"],Rbe=["aria-current","aria-label","tabindex"],Obe=["tabindex","aria-label"],Nbe=["aria-current","aria-label","tabindex"],$be=j({name:"ElPaginationPager"}),Bbe=j({...$be,props:Ibe,emits:["change"],setup(e,{emit:t}){const n=e,r=Me("pager"),a=Me("icon"),{t:i}=Ht(),o=H(!1),s=H(!1),l=H(!1),u=H(!1),c=H(!1),f=H(!1),d=P(()=>{const w=n.pagerCount,C=(w-1)/2,S=Number(n.currentPage),x=Number(n.pageCount);let T=!1,M=!1;x>w&&(S>w-C&&(T=!0),S<x-C&&(M=!0));const A=[];if(T&&!M){const k=x-(w-2);for(let E=k;E<x;E++)A.push(E)}else if(!T&&M)for(let k=2;k<w;k++)A.push(k);else if(T&&M){const k=Math.floor(w/2)-1;for(let E=S-k;E<=S+k;E++)A.push(E)}else for(let k=2;k<x;k++)A.push(k);return A}),h=P(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),v=P(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),p=P(()=>n.disabled?-1:0);Ia(()=>{const w=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-w&&(o.value=!0),n.currentPage<n.pageCount-w&&(s.value=!0))});function g(w=!1){n.disabled||(w?l.value=!0:u.value=!0)}function m(w=!1){w?c.value=!0:f.value=!0}function b(w){const C=w.target;if(C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("number")){const S=Number(C.textContent);S!==n.currentPage&&t("change",S)}else C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("more")&&_(w)}function _(w){const C=w.target;if(C.tagName.toLowerCase()==="ul"||n.disabled)return;let S=Number(C.textContent);const x=n.pageCount,T=n.currentPage,M=n.pagerCount-2;C.className.includes("more")&&(C.className.includes("quickprev")?S=T-M:C.className.includes("quicknext")&&(S=T+M)),Number.isNaN(+S)||(S<1&&(S=1),S>x&&(S=x)),S!==T&&t("change",S)}return(w,C)=>(R(),K("ul",{class:V(y(r).b()),onClick:_,onKeyup:zt(b,["enter"])},[w.pageCount>0?(R(),K("li",{key:0,class:V([[y(r).is("active",w.currentPage===1),y(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":y(i)("el.pagination.currentPage",{pager:1}),tabindex:y(p)}," 1 ",10,Pbe)):se("v-if",!0),o.value?(R(),K("li",{key:1,class:V(y(h)),tabindex:y(p),"aria-label":y(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:C[0]||(C[0]=S=>g(!0)),onMouseleave:C[1]||(C[1]=S=>l.value=!1),onFocus:C[2]||(C[2]=S=>m(!0)),onBlur:C[3]||(C[3]=S=>c.value=!1)},[(l.value||c.value)&&!w.disabled?(R(),ce(y(Jf),{key:0})):(R(),ce(y(OD),{key:1}))],42,Lbe)):se("v-if",!0),(R(!0),K(je,null,Ot(y(d),S=>(R(),K("li",{key:S,class:V([[y(r).is("active",w.currentPage===S),y(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===S,"aria-label":y(i)("el.pagination.currentPage",{pager:S}),tabindex:y(p)},De(S),11,Rbe))),128)),s.value?(R(),K("li",{key:2,class:V(y(v)),tabindex:y(p),"aria-label":y(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:C[4]||(C[4]=S=>g()),onMouseleave:C[5]||(C[5]=S=>u.value=!1),onFocus:C[6]||(C[6]=S=>m()),onBlur:C[7]||(C[7]=S=>f.value=!1)},[(u.value||f.value)&&!w.disabled?(R(),ce(y(Qf),{key:0})):(R(),ce(y(OD),{key:1}))],42,Obe)):se("v-if",!0),w.pageCount>1?(R(),K("li",{key:3,class:V([[y(r).is("active",w.currentPage===w.pageCount),y(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":y(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:y(p)},De(w.pageCount),11,Nbe)):se("v-if",!0)],42,Dbe))}});var Vbe=Pe(Bbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Br=e=>typeof e!="number",Fbe=Le({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>at(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ue(Array),default:()=>Sn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:cn,default:()=>cl},nextText:{type:String,default:""},nextIcon:{type:cn,default:()=>Yr},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),zbe={"update:current-page":e=>at(e),"update:page-size":e=>at(e),"size-change":e=>at(e),"current-change":e=>at(e),"prev-click":e=>at(e),"next-click":e=>at(e)},UP="ElPagination";var Hbe=j({name:UP,props:Fbe,emits:zbe,setup(e,{emit:t,slots:n}){const{t:r}=Ht(),a=Me("pagination"),i=gt().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=P(()=>{if(Br(e.total)&&Br(e.pageCount)||!Br(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(Br(e.pageCount)){if(!Br(e.total)&&!Br(e.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=H(Br(e.defaultPageSize)?10:e.defaultPageSize),c=H(Br(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=P({get(){return Br(e.pageSize)?u.value:e.pageSize},set(_){Br(e.pageSize)&&(u.value=_),s&&(t("update:page-size",_),t("size-change",_))}}),d=P(()=>{let _=0;return Br(e.pageCount)?Br(e.total)||(_=Math.max(1,Math.ceil(e.total/f.value))):_=e.pageCount,_}),h=P({get(){return Br(e.currentPage)?c.value:e.currentPage},set(_){let w=_;_<1?w=1:_>d.value&&(w=d.value),Br(e.currentPage)&&(c.value=w),o&&(t("update:current-page",w),t("current-change",w))}});xe(d,_=>{h.value>_&&(h.value=_)});function v(_){h.value=_}function p(_){f.value=_;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){_&&(_.props||(_.props={}),_.props.class=[_.props.class,w].join(" "))}return Et(T6,{pageCount:d,disabled:P(()=>e.disabled),currentPage:h,changeEvent:v,handleSizeChange:p}),()=>{var _,w;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const C=[],S=[],x=Ze("div",{class:a.e("rightwrapper")},S),T={prev:Ze(K0e,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:Ze(xbe,{size:e.small?"small":"default"}),pager:Ze(Vbe,{currentPage:h.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:Ze(Z0e,{disabled:e.disabled,currentPage:h.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:Ze(bbe,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(w=(_=n==null?void 0:n.default)==null?void 0:_.call(n))!=null?w:null,total:Ze(Ebe,{total:Br(e.total)?0:e.total})},M=e.layout.split(",").map(k=>k.trim());let A=!1;return M.forEach(k=>{if(k==="->"){A=!0;return}A?S.push(T[k]):C.push(T[k])}),b(C[0],a.is("first")),b(C[C.length-1],a.is("last")),A&&S.length>0&&(b(S[0],a.is("first")),b(S[S.length-1],a.is("last")),C.push(x)),Ze("div",{class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},C)}}});const Gbe=_t(Hbe),Wbe=Le({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:BC,default:"primary"},cancelButtonType:{type:String,values:BC,default:"text"},icon:{type:cn,default:()=>Iae},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:ur.teleported,persistent:ur.persistent,width:{type:[String,Number],default:150}}),Kbe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Ube=j({name:"ElPopconfirm"}),Ybe=j({...Ube,props:Wbe,emits:Kbe,setup(e,{emit:t}){const n=e,{t:r}=Ht(),a=Me("popconfirm"),i=H(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=P(()=>({width:Rn(n.width)})),l=d=>{t("confirm",d),o()},u=d=>{t("cancel",d),o()},c=P(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=P(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>(R(),ce(y(Qr),St({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:re(()=>[Y("div",{class:V(y(a).b())},[Y("div",{class:V(y(a).e("main"))},[!d.hideIcon&&d.icon?(R(),ce(y(Ke),{key:0,class:V(y(a).e("icon")),style:Ye({color:d.iconColor})},{default:re(()=>[(R(),ce(Ct(d.icon)))]),_:1},8,["class","style"])):se("v-if",!0),Ut(" "+De(d.title),1)],2),Y("div",{class:V(y(a).e("action"))},[X(y(br),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:re(()=>[Ut(De(y(f)),1)]),_:1},8,["type","text"]),X(y(br),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:re(()=>[Ut(De(y(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:re(()=>[d.$slots.reference?_e(d.$slots,"reference",{key:0}):se("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var jbe=Pe(Ybe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const qbe=_t(jbe),Xbe=Le({trigger:Jv.trigger,placement:wy.placement,disabled:Jv.disabled,visible:ur.visible,transition:ur.transition,popperOptions:wy.popperOptions,tabindex:wy.tabindex,content:ur.content,popperStyle:ur.popperStyle,popperClass:ur.popperClass,enterable:{...ur.enterable,default:!0},effect:{...ur.effect,default:"light"},teleported:ur.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}}),Zbe={"update:visible":e=>Kn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Jbe="onUpdate:visible",Qbe=j({name:"ElPopover"}),e1e=j({...Qbe,props:Xbe,emits:Zbe,setup(e,{expose:t,emit:n}){const r=e,a=P(()=>r[Jbe]),i=Me("popover"),o=H(),s=P(()=>{var g;return(g=y(o))==null?void 0:g.popperRef}),l=P(()=>[{width:Rn(r.width)},r.popperStyle]),u=P(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=P(()=>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")},v=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:f}),(g,m)=>(R(),ce(y(Qr),St({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:v,onHide:p}),{content:re(()=>[g.title?(R(),K("div",{key:0,class:V(y(i).e("title")),role:"title"},De(g.title),3)):se("v-if",!0),_e(g.$slots,"default",{},()=>[Ut(De(g.content),1)])]),default:re(()=>[g.$slots.reference?_e(g.$slots,"reference",{key:0}):se("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 t1e=Pe(e1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const YP=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var n1e={mounted(e,t){YP(e,t)},updated(e,t){YP(e,t)}};const r1e="popover",A6=tie(n1e,r1e),a1e=_t(t1e,{directive:A6}),i1e=Le({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:ue(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ue([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ue(Function),default:e=>`${e}%`}}),o1e=["aria-valuenow"],s1e={viewBox:"0 0 100 100"},l1e=["d","stroke","stroke-linecap","stroke-width"],u1e=["d","stroke","opacity","stroke-linecap","stroke-width"],c1e={key:0},f1e=j({name:"ElProgress"}),d1e=j({...f1e,props:i1e,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Me("progress"),a=P(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:b(t.percentage)})),i=P(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=P(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=P(()=>{const _=o.value,w=t.type==="dashboard";return`
  48. M 50 50
  49. m 0 ${w?"":"-"}${_}
  50. a ${_} ${_} 0 1 1 0 ${w?"-":""}${_*2}
  51. a ${_} ${_} 0 1 1 0 ${w?"":"-"}${_*2}
  52. `}),l=P(()=>2*Math.PI*o.value),u=P(()=>t.type==="dashboard"?.75:1),c=P(()=>`${-1*l.value*(1-u.value)/2}px`),f=P(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=P(()=>({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=P(()=>{let _;return t.color?_=b(t.percentage):_=n[t.status]||n.default,_}),v=P(()=>t.status==="warning"?Yb:t.type==="line"?t.status==="success"?cM:Ml:t.status==="success"?Zp:$i),p=P(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=P(()=>t.format(t.percentage));function m(_){const w=100/_.length;return _.map((S,x)=>lt(S)?{color:S,percentage:(x+1)*w}:S).sort((S,x)=>S.percentage-x.percentage)}const b=_=>{var w;const{color:C}=t;if(it(C))return C(_);if(lt(C))return C;{const S=m(C);for(const x of S)if(x.percentage>_)return x.color;return(w=S[S.length-1])==null?void 0:w.color}};return(_,w)=>(R(),K("div",{class:V([y(r).b(),y(r).m(_.type),y(r).is(_.status),{[y(r).m("without-text")]:!_.showText,[y(r).m("text-inside")]:_.textInside}]),role:"progressbar","aria-valuenow":_.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_.type==="line"?(R(),K("div",{key:0,class:V(y(r).b("bar"))},[Y("div",{class:V(y(r).be("bar","outer")),style:Ye({height:`${_.strokeWidth}px`})},[Y("div",{class:V([y(r).be("bar","inner"),{[y(r).bem("bar","inner","indeterminate")]:_.indeterminate},{[y(r).bem("bar","inner","striped")]:_.striped},{[y(r).bem("bar","inner","striped-flow")]:_.stripedFlow}]),style:Ye(y(a))},[(_.showText||_.$slots.default)&&_.textInside?(R(),K("div",{key:0,class:V(y(r).be("bar","innerText"))},[_e(_.$slots,"default",{percentage:_.percentage},()=>[Y("span",null,De(y(g)),1)])],2)):se("v-if",!0)],6)],6)],2)):(R(),K("div",{key:1,class:V(y(r).b("circle")),style:Ye({height:`${_.width}px`,width:`${_.width}px`})},[(R(),K("svg",s1e,[Y("path",{class:V(y(r).be("circle","track")),d:y(s),stroke:`var(${y(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":_.strokeLinecap,"stroke-width":y(i),fill:"none",style:Ye(y(f))},null,14,l1e),Y("path",{class:V(y(r).be("circle","path")),d:y(s),stroke:y(h),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":y(i),style:Ye(y(d))},null,14,u1e)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(R(),K("div",{key:2,class:V(y(r).e("text")),style:Ye({fontSize:`${y(p)}px`})},[_e(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(y(v))))]),_:1})):(R(),K("span",c1e,De(y(g)),1))])],6)):se("v-if",!0)],10,o1e))}});var h1e=Pe(d1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const E6=_t(h1e),v1e=Le({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:ue([Array,Object]),default:()=>Sn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ue([Array,Object]),default:()=>[Bg,Bg,Bg]},voidIcon:{type:cn,default:()=>Kae},disabledVoidIcon:{type:cn,default:()=>Bg},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ue(Array),default:()=>Sn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:wr,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),p1e={[gn]:e=>at(e),[wt]:e=>at(e)},g1e=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],m1e=["onMousemove","onClick"],y1e=j({name:"ElRate"}),b1e=j({...y1e,props:v1e,emits:p1e,setup(e,{expose:t,emit:n}){const r=e;function a($,O){const N=G=>Mt(G),I=Object.keys(O).map(G=>+G).filter(G=>{const U=O[G];return(N(U)?U.excluded:!1)?$<G:$<=G}).sort((G,U)=>G-U),F=O[I[0]];return N(F)&&F.value||F}const i=Ge(Sc,void 0),o=Ge(wo,void 0),s=jn(),l=Me("rate"),{inputId:u,isLabeledByFormItem:c}=Il(r,{formItemContext:o}),f=H(r.modelValue),d=H(-1),h=H(!0),v=P(()=>[l.b(),l.m(s.value)]),p=P(()=>r.disabled||(i==null?void 0:i.disabled)),g=P(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":w.value})),m=P(()=>{let $="";return r.showScore?$=r.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${r.modelValue}`:`${f.value}`):r.showText&&($=r.texts[Math.ceil(f.value)-1]),$}),b=P(()=>r.modelValue*100-Math.floor(r.modelValue)*100),_=P(()=>He(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),w=P(()=>{const $=a(f.value,_.value);return Mt($)?"":$}),C=P(()=>{let $="";return p.value?$=`${b.value}%`:r.allowHalf&&($="50%"),{color:w.value,width:$}}),S=P(()=>{let $=He(r.icons)?[...r.icons]:{...r.icons};return $=Js($),He($)?{[r.lowThreshold]:$[0],[r.highThreshold]:{value:$[1],excluded:!0},[r.max]:$[2]}:$}),x=P(()=>a(r.modelValue,S.value)),T=P(()=>p.value?lt(r.disabledVoidIcon)?r.disabledVoidIcon:Js(r.disabledVoidIcon):lt(r.voidIcon)?r.voidIcon:Js(r.voidIcon)),M=P(()=>a(f.value,S.value));function A($){const O=p.value&&b.value>0&&$-1<r.modelValue&&$>r.modelValue,N=r.allowHalf&&h.value&&$-.5<=f.value&&$>f.value;return O||N}function k($){r.clearable&&$===r.modelValue&&($=0),n(wt,$),r.modelValue!==$&&n("change",$)}function E($){p.value||(r.allowHalf&&h.value?k(f.value):k($))}function D($){if(p.value)return;let O=f.value;const N=$.code;return N===Xe.up||N===Xe.right?(r.allowHalf?O+=.5:O+=1,$.stopPropagation(),$.preventDefault()):(N===Xe.left||N===Xe.down)&&(r.allowHalf?O-=.5:O-=1,$.stopPropagation(),$.preventDefault()),O=O<0?0:O,O=O>r.max?r.max:O,n(wt,O),n("change",O),O}function L($,O){if(!p.value){if(r.allowHalf&&O){let N=O.target;Pi(N,l.e("item"))&&(N=N.querySelector(`.${l.e("icon")}`)),(N.clientWidth===0||Pi(N,l.e("decimal")))&&(N=N.parentNode),h.value=O.offsetX*2<=N.clientWidth,f.value=h.value?$-.5:$}else f.value=$;d.value=$}}function B(){p.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return xe(()=>r.modelValue,$=>{f.value=$,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(wt,0),t({setCurrentValue:L,resetCurrentValue:B}),($,O)=>{var N;return R(),K("div",{id:y(u),class:V([y(v),y(l).is("disabled",y(p))]),role:"slider","aria-label":y(c)?void 0:$.label||"rating","aria-labelledby":y(c)?(N=y(o))==null?void 0:N.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":y(m)||void 0,"aria-valuemin":"0","aria-valuemax":$.max,tabindex:"0",style:Ye(y(g)),onKeydown:D},[(R(!0),K(je,null,Ot($.max,(I,F)=>(R(),K("span",{key:F,class:V(y(l).e("item")),onMousemove:G=>L(I,G),onMouseleave:B,onClick:G=>E(I)},[X(y(Ke),{class:V([y(l).e("icon"),{hover:d.value===I},y(l).is("active",I<=f.value)])},{default:re(()=>[A(I)?se("v-if",!0):(R(),K(je,{key:0},[dt((R(),ce(Ct(y(M)),null,null,512)),[[Kt,I<=f.value]]),dt((R(),ce(Ct(y(T)),null,null,512)),[[Kt,!(I<=f.value)]])],64)),A(I)?(R(),ce(y(Ke),{key:1,style:Ye(y(C)),class:V([y(l).e("icon"),y(l).e("decimal")])},{default:re(()=>[(R(),ce(Ct(y(x))))]),_:1},8,["style","class"])):se("v-if",!0)]),_:2},1032,["class"])],42,m1e))),128)),$.showText||$.showScore?(R(),K("span",{key:0,class:V(y(l).e("text")),style:Ye({color:$.textColor})},De(y(m)),7)):se("v-if",!0)],46,g1e)}}});var _1e=Pe(b1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const w1e=_t(_1e),gf={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},jP={[gf.success]:eae,[gf.warning]:Yb,[gf.error]:fM,[gf.info]:dM},S1e=Le({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),C1e=j({name:"ElResult"}),x1e=j({...C1e,props:S1e,setup(e){const t=e,n=Me("result"),r=P(()=>{const a=t.icon,i=a&&gf[a]?gf[a]:"icon-info",o=jP[i]||jP["icon-info"];return{class:i,component:o}});return(a,i)=>(R(),K("div",{class:V(y(n).b())},[Y("div",{class:V(y(n).e("icon"))},[_e(a.$slots,"icon",{},()=>[y(r).component?(R(),ce(Ct(y(r).component),{key:0,class:V(y(r).class)},null,8,["class"])):se("v-if",!0)])],2),a.title||a.$slots.title?(R(),K("div",{key:0,class:V(y(n).e("title"))},[_e(a.$slots,"title",{},()=>[Y("p",null,De(a.title),1)])],2)):se("v-if",!0),a.subTitle||a.$slots["sub-title"]?(R(),K("div",{key:1,class:V(y(n).e("subtitle"))},[_e(a.$slots,"sub-title",{},()=>[Y("p",null,De(a.subTitle),1)])],2)):se("v-if",!0),a.$slots.extra?(R(),K("div",{key:2,class:V(y(n).e("extra"))},[_e(a.$slots,"extra")],2)):se("v-if",!0)],2))}});var T1e=Pe(x1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const M1e=_t(T1e);var qP=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function k1e(e,t){return!!(e===t||qP(e)&&qP(t))}function A1e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!k1e(e[n],t[n]))return!1;return!0}function E1e(e,t){t===void 0&&(t=A1e);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 I6=()=>{const t=gt().proxy.$props;return P(()=>{const n=(r,a,i)=>({});return t.perfMode?Gb(n):E1e(n)})},ix=50,g0="itemRendered",m0="scroll",mf="forward",y0="backward",Xa="auto",u1="smart",tp="start",lo="center",np="end",sd="horizontal",ZM="vertical",I1e="ltr",Pf="rtl",rp="negative",JM="positive-ascending",QM="positive-descending",D1e={[sd]:"left",[ZM]:"top"},P1e=20,L1e={[sd]:"deltaX",[ZM]:"deltaY"},R1e=({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=>{Zb(a);const u=l[L1e[n.value]];o(i)&&o(i+u)||(i+=u,ZV()||l.preventDefault(),a=ed(()=>{r(i),i=0}))}}},ox=Wi({type:ue([Number,Function]),required:!0}),sx=Wi({type:Number}),lx=Wi({type:Number,default:2}),O1e=Wi({type:String,values:["ltr","rtl"],default:"ltr"}),ux=Wi({type:Number,default:0}),b0=Wi({type:Number,required:!0}),D6=Wi({type:String,values:["horizontal","vertical"],default:ZM}),P6=Le({className:{type:String,default:""},containerElement:{type:ue([String,Object]),default:"div"},data:{type:ue(Array),default:()=>Sn([])},direction:O1e,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ue([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),L6=Le({cache:lx,estimatedItemSize:sx,layout:D6,initScrollOffset:ux,total:b0,itemSize:ox,...P6}),cx={type:Number,default:6},R6={type:Number,default:0},O6={type:Number,default:2},ju=Le({columnCache:lx,columnWidth:ox,estimatedColumnWidth:sx,estimatedRowHeight:sx,initScrollLeft:ux,initScrollTop:ux,itemKey:{type:ue(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:lx,rowHeight:ox,totalColumn:b0,totalRow:b0,hScrollbarSize:cx,vScrollbarSize:cx,scrollbarStartGap:R6,scrollbarEndGap:O6,role:String,...P6}),N6=Le({alwaysOn:Boolean,class:String,layout:D6,total:b0,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:cx,startGap:R6,endGap:O6,visible:Boolean}),Lu=(e,t)=>e<t?mf:y0,ap=e=>e===I1e||e===Pf||e===sd,XP=e=>e===Pf;let Oc=null;function _0(e=!1){if(Oc===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?Oc=QM:(t.scrollLeft=1,t.scrollLeft===0?Oc=rp:Oc=JM),document.body.removeChild(t),Oc}return Oc}function N1e({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 fx=j({name:"ElVirtualScrollBar",props:N6,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=P(()=>e.startGap+e.endGap),r=Me("virtual-scrollbar"),a=Me("scrollbar"),i=H(),o=H();let s=null,l=null;const u=jt({isDragging:!1,traveled:0}),c=P(()=>RF[e.layout]),f=P(()=>e.clientSize-y(n)),d=P(()=>({position:"absolute",width:`${sd===e.layout?f.value:e.scrollbarSize}px`,height:`${sd===e.layout?e.scrollbarSize:f.value}px`,[D1e[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=P(()=>{const S=e.ratio,x=e.clientSize;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*x/100;const T=x/3;return Math.floor(Math.min(Math.max(S*x,P1e),T))}),v=P(()=>{if(!Number.isFinite(h.value))return{display:"none"};const S=`${h.value}px`;return N1e({bar:c.value,size:S,move:u.traveled},e.layout)}),p=P(()=>Math.floor(e.clientSize-h.value-y(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",_);const S=y(o);S&&(l=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",w),S.addEventListener("touchend",_))},m=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",_),document.onselectstart=l,l=null;const S=y(o);S&&(S.removeEventListener("touchmove",w),S.removeEventListener("touchend",_))},b=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(u.isDragging=!0,u[c.value.axis]=S.currentTarget[c.value.offset]-(S[c.value.client]-S.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},_=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},w=S=>{const{isDragging:x}=u;if(!x||!o.value||!i.value)return;const T=u[c.value.axis];if(!T)return;Zb(s);const M=(i.value.getBoundingClientRect()[c.value.direction]-S[c.value.client])*-1,A=o.value[c.value.offset]-T,k=M-A;s=ed(()=>{u.traveled=Math.max(e.startGap,Math.min(k,p.value)),t("scroll",k,p.value)})},C=S=>{const x=Math.abs(S.target.getBoundingClientRect()[c.value.direction]-S[c.value.client]),T=o.value[c.value.offset]/2,M=x-T;u.traveled=Math.max(0,Math.min(M,p.value)),t("scroll",M,p.value)};return xe(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*p.value))}),_n(()=>{m()}),()=>Ze("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:tt(C,["stop","prevent"]),onTouchstartPrevent:b},Ze("div",{ref:o,class:a.e("thumb"),style:v.value,onMousedown:b},[]))}}),$6=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>j({name:e??"ElVirtualList",props:L6,emits:[g0,m0],setup(c,{emit:f,expose:d}){u(c);const h=gt(),v=Me("vl"),p=H(s(c,h)),g=I6(),m=H(),b=H(),_=H(),w=H({isScrolling:!1,scrollDir:"forward",scrollOffset:at(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),C=P(()=>{const{total:J,cache:ae}=c,{isScrolling:Q,scrollDir:ee,scrollOffset:te}=y(w);if(J===0)return[0,0,0,0];const q=i(c,te,y(p)),de=o(c,q,te,y(p)),ve=!Q||ee===y0?Math.max(1,ae):1,ie=!Q||ee===mf?Math.max(1,ae):1;return[Math.max(0,q-ve),Math.max(0,Math.min(J-1,de+ie)),q,de]}),S=P(()=>a(c,y(p))),x=P(()=>ap(c.layout)),T=P(()=>[{position:"relative",[`overflow-${x.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:at(c.height)?`${c.height}px`:c.height,width:at(c.width)?`${c.width}px`:c.width},c.style]),M=P(()=>{const J=y(S),ae=y(x);return{height:ae?"100%":`${J}px`,pointerEvents:y(w).isScrolling?"none":void 0,width:ae?`${J}px`:"100%"}}),A=P(()=>x.value?c.width:c.height),{onWheel:k}=R1e({atStartEdge:P(()=>w.value.scrollOffset<=0),atEndEdge:P(()=>w.value.scrollOffset>=S.value),layout:P(()=>c.layout)},J=>{var ae,Q;(Q=(ae=_.value).onMouseUp)==null||Q.call(ae),O(Math.min(w.value.scrollOffset+J,S.value-A.value))}),E=()=>{const{total:J}=c;if(J>0){const[te,q,de,ve]=y(C);f(g0,te,q,de,ve)}const{scrollDir:ae,scrollOffset:Q,updateRequested:ee}=y(w);f(m0,ae,Q,ee)},D=J=>{const{clientHeight:ae,scrollHeight:Q,scrollTop:ee}=J.currentTarget,te=y(w);if(te.scrollOffset===ee)return;const q=Math.max(0,Math.min(ee,Q-ae));w.value={...te,isScrolling:!0,scrollDir:Lu(te.scrollOffset,q),scrollOffset:q,updateRequested:!1},Ue(F)},L=J=>{const{clientWidth:ae,scrollLeft:Q,scrollWidth:ee}=J.currentTarget,te=y(w);if(te.scrollOffset===Q)return;const{direction:q}=c;let de=Q;if(q===Pf)switch(_0()){case rp:{de=-Q;break}case QM:{de=ee-ae-Q;break}}de=Math.max(0,Math.min(de,ee-ae)),w.value={...te,isScrolling:!0,scrollDir:Lu(te.scrollOffset,de),scrollOffset:de,updateRequested:!1},Ue(F)},B=J=>{y(x)?L(J):D(J),E()},$=(J,ae)=>{const Q=(S.value-A.value)/ae*J;O(Math.min(S.value-A.value,Q))},O=J=>{J=Math.max(J,0),J!==y(w).scrollOffset&&(w.value={...y(w),scrollOffset:J,scrollDir:Lu(y(w).scrollOffset,J),updateRequested:!0},Ue(F))},N=(J,ae=Xa)=>{const{scrollOffset:Q}=y(w);J=Math.max(0,Math.min(J,c.total-1)),O(t(c,J,ae,Q,y(p)))},I=J=>{const{direction:ae,itemSize:Q,layout:ee}=c,te=g.value(l&&Q,l&&ee,l&&ae);let q;if($t(te,String(J)))q=te[J];else{const de=r(c,J,y(p)),ve=n(c,J,y(p)),ie=y(x),W=ae===Pf,Z=ie?de:0;te[J]=q={position:"absolute",left:W?void 0:`${Z}px`,right:W?`${Z}px`:void 0,top:ie?0:`${de}px`,height:ie?"100%":`${ve}px`,width:ie?`${ve}px`:"100%"}}return q},F=()=>{w.value.isScrolling=!1,Ue(()=>{g.value(-1,null,null)})},G=()=>{const J=m.value;J&&(J.scrollTop=0)};yt(()=>{if(!Vt)return;const{initScrollOffset:J}=c,ae=y(m);at(J)&&ae&&(y(x)?ae.scrollLeft=J:ae.scrollTop=J),E()}),us(()=>{const{direction:J,layout:ae}=c,{scrollOffset:Q,updateRequested:ee}=y(w),te=y(m);if(ee&&te)if(ae===sd)if(J===Pf)switch(_0()){case rp:{te.scrollLeft=-Q;break}case JM:{te.scrollLeft=Q;break}default:{const{clientWidth:q,scrollWidth:de}=te;te.scrollLeft=de-q-Q;break}}else te.scrollLeft=Q;else te.scrollTop=Q});const U={ns:v,clientSize:A,estimatedTotalSize:S,windowStyle:T,windowRef:m,innerRef:b,innerStyle:M,itemsToRender:C,scrollbarRef:_,states:w,getItemStyle:I,onScroll:B,onScrollbarScroll:$,onWheel:k,scrollTo:O,scrollToItem:N,resetScrollTop:G};return d({windowRef:m,innerRef:b,getItemStyleCache:g,scrollTo:O,scrollToItem:N,resetScrollTop:G,states:w}),U},render(c){var f;const{$slots:d,className:h,clientSize:v,containerElement:p,data:g,getItemStyle:m,innerElement:b,itemsToRender:_,innerStyle:w,layout:C,total:S,onScroll:x,onScrollbarScroll:T,onWheel:M,states:A,useIsScrolling:k,windowStyle:E,ns:D}=c,[L,B]=_,$=Ct(p),O=Ct(b),N=[];if(S>0)for(let U=L;U<=B;U++)N.push((f=d.default)==null?void 0:f.call(d,{data:g,key:U,index:U,isScrolling:k?A.isScrolling:void 0,style:m(U)}));const I=[Ze(O,{style:w,ref:"innerRef"},lt(O)?N:{default:()=>N})],F=Ze(fx,{ref:"scrollbarRef",clientSize:v,layout:C,onScroll:T,ratio:v*100/this.estimatedTotalSize,scrollFrom:A.scrollOffset/(this.estimatedTotalSize-v),total:S}),G=Ze($,{class:[D.e("window"),h],style:E,onScroll:x,onWheel:M,ref:"windowRef",key:0},lt($)?[I]:{default:()=>[I]});return Ze("div",{key:0,class:[D.e("wrapper"),A.scrollbarAlwaysOn?"always-on":""]},[G,F])}}),B6=$6({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=ap(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===u1&&(s>=f-l&&s<=c+l?o=Xa:o=lo),o){case tp:return c;case np:return f;case lo:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case Xa: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=ap(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(){}}),yf=(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]},$1e=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=n?V6(e,t,0,a,n):B1e(e,t,Math.max(0,a),n)},V6=(e,t,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=yf(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)},B1e=(e,t,n,r)=>{const{total:a}=e;let i=1;for(;n<a&&yf(e,n,t).offset<r;)n+=i,i*=2;return V6(e,t,Math.floor(n/2),Math.min(n,a-1),r)},ZP=({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},V1e=$6({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>yf(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:ZP,getOffset:(e,t,n,r,a)=>{const{height:i,layout:o,width:s}=e,l=ap(o)?s:i,u=yf(e,t,a),c=ZP(e,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===u1&&(r>=d-l&&r<=f+l?n=Xa:n=lo),n){case tp:return f;case np:return d;case lo:return Math.round(d+(f-d)/2);case Xa:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(e,t,n)=>$1e(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:i,layout:o,width:s}=e,l=ap(o)?s:a,u=yf(e,t,r),c=n+l;let f=u.offset+u.size,d=t;for(;d<i-1&&f<c;)d++,f+=yf(e,d,r).size;return d},initCache({estimatedItemSize:e=ix},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})=>{}}),F1e=({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=>{Zb(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=ed(()=>{a(o,s),o=0,s=0}))}}},F6=({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:v})=>j({name:e??"ElVirtualList",props:ju,emits:[g0,m0],setup(p,{emit:g,expose:m,slots:b}){const _=Me("vl");v(p);const w=gt(),C=H(d(p,w));h==null||h(w,C);const S=H(),x=H(),T=H(),M=H(null),A=H({isScrolling:!1,scrollLeft:at(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:at(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:mf,yAxisScrollDir:mf}),k=I6(),E=P(()=>Number.parseInt(`${p.height}`,10)),D=P(()=>Number.parseInt(`${p.width}`,10)),L=P(()=>{const{totalColumn:me,totalRow:Ee,columnCache:Ce}=p,{isScrolling:we,xAxisScrollDir:Te,scrollLeft:Ne}=y(A);if(me===0||Ee===0)return[0,0,0,0];const Be=r(p,Ne,y(C)),We=a(p,Be,Ne,y(C)),Ae=!we||Te===y0?Math.max(1,Ce):1,ze=!we||Te===mf?Math.max(1,Ce):1;return[Math.max(0,Be-Ae),Math.max(0,Math.min(me-1,We+ze)),Be,We]}),B=P(()=>{const{totalColumn:me,totalRow:Ee,rowCache:Ce}=p,{isScrolling:we,yAxisScrollDir:Te,scrollTop:Ne}=y(A);if(me===0||Ee===0)return[0,0,0,0];const Be=c(p,Ne,y(C)),We=f(p,Be,Ne,y(C)),Ae=!we||Te===y0?Math.max(1,Ce):1,ze=!we||Te===mf?Math.max(1,Ce):1;return[Math.max(0,Be-Ae),Math.max(0,Math.min(Ee-1,We+ze)),Be,We]}),$=P(()=>i(p,y(C))),O=P(()=>o(p,y(C))),N=P(()=>{var me;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:at(p.height)?`${p.height}px`:p.height,width:at(p.width)?`${p.width}px`:p.width},(me=p.style)!=null?me:{}]}),I=P(()=>{const me=`${y(O)}px`;return{height:`${y($)}px`,pointerEvents:y(A).isScrolling?"none":void 0,width:me}}),F=()=>{const{totalColumn:me,totalRow:Ee}=p;if(me>0&&Ee>0){const[We,Ae,ze,rt]=y(L),[vt,kt,Qe,ye]=y(B);g(g0,{columnCacheStart:We,columnCacheEnd:Ae,rowCacheStart:vt,rowCacheEnd:kt,columnVisibleStart:ze,columnVisibleEnd:rt,rowVisibleStart:Qe,rowVisibleEnd:ye})}const{scrollLeft:Ce,scrollTop:we,updateRequested:Te,xAxisScrollDir:Ne,yAxisScrollDir:Be}=y(A);g(m0,{xAxisScrollDir:Ne,scrollLeft:Ce,yAxisScrollDir:Be,scrollTop:we,updateRequested:Te})},G=me=>{const{clientHeight:Ee,clientWidth:Ce,scrollHeight:we,scrollLeft:Te,scrollTop:Ne,scrollWidth:Be}=me.currentTarget,We=y(A);if(We.scrollTop===Ne&&We.scrollLeft===Te)return;let Ae=Te;if(XP(p.direction))switch(_0()){case rp:Ae=-Te;break;case QM:Ae=Be-Ce-Te;break}A.value={...We,isScrolling:!0,scrollLeft:Ae,scrollTop:Math.max(0,Math.min(Ne,we-Ee)),updateRequested:!0,xAxisScrollDir:Lu(We.scrollLeft,Ae),yAxisScrollDir:Lu(We.scrollTop,Ne)},Ue(()=>q()),de(),F()},U=(me,Ee)=>{const Ce=y(E),we=($.value-Ce)/Ee*me;Q({scrollTop:Math.min($.value-Ce,we)})},J=(me,Ee)=>{const Ce=y(D),we=(O.value-Ce)/Ee*me;Q({scrollLeft:Math.min(O.value-Ce,we)})},{onWheel:ae}=F1e({atXStartEdge:P(()=>A.value.scrollLeft<=0),atXEndEdge:P(()=>A.value.scrollLeft>=O.value-y(D)),atYStartEdge:P(()=>A.value.scrollTop<=0),atYEndEdge:P(()=>A.value.scrollTop>=$.value-y(E))},(me,Ee)=>{var Ce,we,Te,Ne;(we=(Ce=x.value)==null?void 0:Ce.onMouseUp)==null||we.call(Ce),(Ne=(Te=T.value)==null?void 0:Te.onMouseUp)==null||Ne.call(Te);const Be=y(D),We=y(E);Q({scrollLeft:Math.min(A.value.scrollLeft+me,O.value-Be),scrollTop:Math.min(A.value.scrollTop+Ee,$.value-We)})}),Q=({scrollLeft:me=A.value.scrollLeft,scrollTop:Ee=A.value.scrollTop})=>{me=Math.max(me,0),Ee=Math.max(Ee,0);const Ce=y(A);Ee===Ce.scrollTop&&me===Ce.scrollLeft||(A.value={...Ce,xAxisScrollDir:Lu(Ce.scrollLeft,me),yAxisScrollDir:Lu(Ce.scrollTop,Ee),scrollLeft:me,scrollTop:Ee,updateRequested:!0},Ue(()=>q()),de(),F())},ee=(me=0,Ee=0,Ce=Xa)=>{const we=y(A);Ee=Math.max(0,Math.min(Ee,p.totalColumn-1)),me=Math.max(0,Math.min(me,p.totalRow-1));const Te=$5(_.namespace.value),Ne=y(C),Be=i(p,Ne),We=o(p,Ne);Q({scrollLeft:s(p,Ee,Ce,we.scrollLeft,Ne,We>p.width?Te:0),scrollTop:l(p,me,Ce,we.scrollTop,Ne,Be>p.height?Te:0)})},te=(me,Ee)=>{const{columnWidth:Ce,direction:we,rowHeight:Te}=p,Ne=k.value(t&&Ce,t&&Te,t&&we),Be=`${me},${Ee}`;if($t(Ne,Be))return Ne[Be];{const[,We]=n(p,Ee,y(C)),Ae=y(C),ze=XP(we),[rt,vt]=u(p,me,Ae),[kt]=n(p,Ee,Ae);return Ne[Be]={position:"absolute",left:ze?void 0:`${We}px`,right:ze?`${We}px`:void 0,top:`${vt}px`,height:`${rt}px`,width:`${kt}px`},Ne[Be]}},q=()=>{A.value.isScrolling=!1,Ue(()=>{k.value(-1,null,null)})};yt(()=>{if(!Vt)return;const{initScrollLeft:me,initScrollTop:Ee}=p,Ce=y(S);Ce&&(at(me)&&(Ce.scrollLeft=me),at(Ee)&&(Ce.scrollTop=Ee)),F()});const de=()=>{const{direction:me}=p,{scrollLeft:Ee,scrollTop:Ce,updateRequested:we}=y(A),Te=y(S);if(we&&Te){if(me===Pf)switch(_0()){case rp:{Te.scrollLeft=-Ee;break}case JM:{Te.scrollLeft=Ee;break}default:{const{clientWidth:Ne,scrollWidth:Be}=Te;Te.scrollLeft=Be-Ne-Ee;break}}else Te.scrollLeft=Math.max(0,Ee);Te.scrollTop=Math.max(0,Ce)}},{resetAfterColumnIndex:ve,resetAfterRowIndex:ie,resetAfter:W}=w.proxy;m({windowRef:S,innerRef:M,getItemStyleCache:k,scrollTo:Q,scrollToItem:ee,states:A,resetAfterColumnIndex:ve,resetAfterRowIndex:ie,resetAfter:W});const Z=()=>{const{scrollbarAlwaysOn:me,scrollbarStartGap:Ee,scrollbarEndGap:Ce,totalColumn:we,totalRow:Te}=p,Ne=y(D),Be=y(E),We=y(O),Ae=y($),{scrollLeft:ze,scrollTop:rt}=y(A),vt=Ze(fx,{ref:x,alwaysOn:me,startGap:Ee,endGap:Ce,class:_.e("horizontal"),clientSize:Ne,layout:"horizontal",onScroll:J,ratio:Ne*100/We,scrollFrom:ze/(We-Ne),total:Te,visible:!0}),kt=Ze(fx,{ref:T,alwaysOn:me,startGap:Ee,endGap:Ce,class:_.e("vertical"),clientSize:Be,layout:"vertical",onScroll:U,ratio:Be*100/Ae,scrollFrom:rt/(Ae-Be),total:we,visible:!0});return{horizontalScrollbar:vt,verticalScrollbar:kt}},oe=()=>{var me;const[Ee,Ce]=y(L),[we,Te]=y(B),{data:Ne,totalColumn:Be,totalRow:We,useIsScrolling:Ae,itemKey:ze}=p,rt=[];if(We>0&&Be>0)for(let vt=we;vt<=Te;vt++)for(let kt=Ee;kt<=Ce;kt++)rt.push((me=b.default)==null?void 0:me.call(b,{columnIndex:kt,data:Ne,key:ze({columnIndex:kt,data:Ne,rowIndex:vt}),isScrolling:Ae?y(A).isScrolling:void 0,style:te(vt,kt),rowIndex:vt}));return rt},pe=()=>{const me=Ct(p.innerElement),Ee=oe();return[Ze(me,{style:y(I),ref:M},lt(me)?Ee:{default:()=>Ee})]};return()=>{const me=Ct(p.containerElement),{horizontalScrollbar:Ee,verticalScrollbar:Ce}=Z(),we=pe();return Ze("div",{key:0,class:_.e("wrapper"),role:p.role},[Ze(me,{class:p.className,style:y(N),onScroll:G,onWheel:ae,ref:S},lt(me)?we:{default:()=>we}),Ee,Ce])}}}),z1e=F6({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=Xa:a=lo),a){case tp:return u;case np:return c;case lo:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Xa: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===u1&&(i>=c-t&&i<=u+t?a=Xa:a=lo),a){case tp:return u;case np:return c;case lo:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Xa: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:w0,min:z6,floor:H6}=Math,H1e={column:"columnWidth",row:"rowHeight"},dx={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Vo=(e,t,n,r)=>{const[a,i,o]=[n[r],e[H1e[r]],n[dx[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[dx[r]]=t}return a[t]},G6=(e,t,n,r,a,i)=>{for(;n<=r;){const o=n+H6((r-n)/2),s=Vo(e,o,t,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return w0(0,n-1)},G1e=(e,t,n,r,a)=>{const i=a==="column"?e.totalColumn:e.totalRow;let o=1;for(;n<i&&Vo(e,n,t,a).offset<r;)n+=o,o*=2;return G6(e,t,H6(n/2),z6(n,i-1),r,a)},JP=(e,t,n,r)=>{const[a,i]=[t[r],t[dx[r]]];return(i>0?a[i].offset:0)>=n?G6(e,t,0,i,n,r):G1e(e,t,w0(0,i),n,r)},W6=({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},K6=({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},W1e={column:K6,row:W6},QP=(e,t,n,r,a,i,o)=>{const[s,l]=[i==="row"?e.height:e.width,W1e[i]],u=Vo(e,t,a,i),c=l(e,a),f=w0(0,z6(c-s,u.offset)),d=w0(0,u.offset-s+o+u.size);switch(n===u1&&(r>=d-s&&r<=f+s?n=Xa:n=lo),n){case tp:return f;case np:return d;case lo:return Math.round(d+(f-d)/2);case Xa:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},K1e=F6({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=Vo(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=Vo(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,i)=>QP(e,t,n,r,a,"column",i),getRowOffset:(e,t,n,r,a,i)=>QP(e,t,n,r,a,"row",i),getColumnStartIndexForOffset:(e,t,n)=>JP(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=Vo(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+=Vo(e,t,r,"column").size;return s},getEstimatedTotalHeight:W6,getEstimatedTotalWidth:K6,getRowStartIndexForOffset:(e,t,n)=>JP(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:i}=e,o=Vo(e,t,r,"row"),s=n+i;let l=o.size+o.offset,u=t;for(;u<a-1&&l<s;)u++,l+=Vo(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=Qn(s)?!0:s,at(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),at(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=ix,estimatedRowHeight:t=ix})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),U1e=j({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Me("select")}}});function Y1e(e,t,n,r,a,i){return e.item.isTitle?(R(),K("div",{key:0,class:V(e.ns.be("group","title")),style:Ye([e.style,{lineHeight:`${e.height}px`}])},De(e.item.label),7)):(R(),K("div",{key:1,class:V(e.ns.be("group","split")),style:Ye(e.style)},[Y("span",{class:V(e.ns.be("group","split-dash")),style:Ye({top:`${e.height/2}px`})},null,6)],6))}var j1e=Pe(U1e,[["render",Y1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function q1e(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const X1e={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:Ml},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:ur.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:qb},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:ue(String),values:wc,default:"bottom-start"}},Z1e={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},J1e=j({props:Z1e,emits:["select","hover"],setup(e,{emit:t}){const n=Me("select"),{hoverItem:r,selectOptionClick:a}=q1e(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:a}}}),Q1e=["aria-selected"];function e_e(e,t,n,r,a,i){return R(),K("li",{"aria-selected":e.selected,style:Ye(e.style),class:V([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]=tt((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[_e(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[Y("span",null,De(e.item.label),1)])],46,Q1e)}var t_e=Pe(J1e,[["render",e_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const U6=Symbol("ElSelectV2Injection");var n_e=j({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=Ge(U6),a=Me("select"),i=H([]),o=H(),s=P(()=>e.data.length);xe(()=>s.value,()=>{var T,M;(M=(T=r.popper.value).updatePopper)==null||M.call(T)});const l=P(()=>Qn(r.props.estimatedOptionHeight)),u=P(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:T=>i.value[T]}),c=(T=[],M)=>{const{props:{valueKey:A}}=r;return Mt(M)?T&&T.some(k=>wn(k,A)===wn(M,A)):T.includes(M)},f=(T,M)=>{if(Mt(M)){const{valueKey:A}=r.props;return wn(T,A)===wn(M,A)}else return T===M},d=(T,M)=>{const{valueKey:A}=r.props;return r.props.multiple?c(T,wn(M,A)):f(T,wn(M,A))},h=(T,M)=>{const{disabled:A,multiple:k,multipleLimit:E}=r.props;return A||!M&&(k?E>0&&T.length>=E:!1)},v=T=>e.hoveringIndex===T;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:v,isItemSelected:d,scrollToItem:T=>{const M=o.value;M&&M.scrollToItem(T)},resetScrollTop:()=>{const T=o.value;T&&T.resetScrollTop()}});const m=T=>{const{index:M,data:A,style:k}=T,E=y(l),{itemSize:D,estimatedSize:L}=y(u),{modelValue:B}=r.props,{onSelect:$,onHover:O}=r,N=A[M];if(N.type==="Group")return X(j1e,{item:N,style:k,height:E?D:L},null);const I=d(B,N),F=h(B,I),G=v(M);return X(t_e,St(T,{selected:I,disabled:N.disabled||F,created:!!N.created,hovering:G,item:N,onSelect:$,onHover:O}),{default:U=>{var J;return((J=t.default)==null?void 0:J.call(t,U))||X("span",null,[N.label])}})},{onKeyboardNavigate:b,onKeyboardSelect:_}=r,w=()=>{b("forward")},C=()=>{b("backward")},S=()=>{r.expanded=!1},x=T=>{const{code:M}=T,{tab:A,esc:k,down:E,up:D,enter:L}=Xe;switch(M!==A&&(T.preventDefault(),T.stopPropagation()),M){case A:case k:{S();break}case E:{w();break}case D:{C();break}case L:{_();break}}};return()=>{var T;const{data:M,width:A}=e,{height:k,multiple:E,scrollbarAlwaysOn:D}=r.props;if(M.length===0)return X("div",{class:a.b("dropdown"),style:{width:`${A}px`}},[(T=t.empty)==null?void 0:T.call(t)]);const L=y(l)?B6:V1e;return X("div",{class:[a.b("dropdown"),a.is("multiple",E)]},[X(L,St({ref:o},y(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:D,data:M,height:k,width:A,total:M.length,onKeydown:x}),{default:B=>X(m,B,null)})])}}});function r_e(e,t){const n=H(0),r=H(null),a=P(()=>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 a_e=e=>{const t=[];return e.forEach(n=>{He(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 i_e(e){const t=H(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";t.value=!Xb(s)},handleCompositionEnd:i=>{t.value&&(t.value=!1,it(e)&&e(i))}}}const eL="",tL=11,o_e={larget:51,default:42,small:33},s_e=(e,t)=>{const{t:n}=Ht(),r=Me("select-v2"),a=Me("input"),{form:i,formItem:o}=ra(),s=jt({inputValue:eL,displayInputValue:eL,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=H(-1),u=H(-1),c=H(null),f=H(null),d=H(null),h=H(null),v=H(null),p=H(null),g=H(null),m=H(!1),b=P(()=>e.disabled||(i==null?void 0:i.disabled)),_=P(()=>{const he=E.value.length*34;return he>e.height?e.height:he}),w=P(()=>!Wn(e.modelValue)),C=P(()=>{const he=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:w.value;return e.clearable&&!b.value&&s.comboBoxHovering&&he}),S=P(()=>e.remote&&e.filterable?"":Ub),x=P(()=>S.value&&r.is("reverse",m.value)),T=P(()=>(o==null?void 0:o.validateState)||""),M=P(()=>vM[T.value]),A=P(()=>e.remote?300:0),k=P(()=>{const he=E.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&s.inputValue===""&&he.length===0?!1:e.filterable&&s.inputValue&&he.length>0?e.noMatchText||n("el.select.noMatch"):he.length===0?e.noDataText||n("el.select.noData"):null}),E=P(()=>{const he=Fe=>{const At=s.inputValue,Wt=new RegExp(O5(At),"i");return At?Wt.test(Fe.label||""):!0};return e.loading?[]:a_e(e.options.concat(s.createdOptions).map(Fe=>{if(He(Fe.options)){const At=Fe.options.filter(he);if(At.length>0)return{...Fe,options:At}}else if(e.remote||he(Fe))return Fe;return null}).filter(Fe=>Fe!==null))}),D=P(()=>{const he=new Map;return E.value.forEach((Fe,At)=>{he.set(Ne(Fe),{option:Fe,index:At})}),he}),L=P(()=>E.value.every(he=>he.disabled)),B=jn(),$=P(()=>B.value==="small"?"small":"default"),O=P(()=>{const he=p.value,Fe=$.value||"default",At=he?Number.parseInt(getComputedStyle(he).paddingLeft):0,Wt=he?Number.parseInt(getComputedStyle(he).paddingRight):0;return s.selectWidth-Wt-At-o_e[Fe]}),N=()=>{var he;u.value=((he=v.value)==null?void 0:he.offsetWidth)||200},I=P(()=>({width:`${s.calculatedWidth===0?tL:Math.ceil(s.calculatedWidth)+tL}px`})),F=P(()=>He(e.modelValue)?e.modelValue.length===0&&!s.displayInputValue:e.filterable?s.displayInputValue.length===0:!0),G=P(()=>{const he=e.placeholder||n("el.select.placeholder");return e.multiple||Wn(e.modelValue)?he:s.selectedLabel}),U=P(()=>{var he,Fe;return(Fe=(he=h.value)==null?void 0:he.popperRef)==null?void 0:Fe.contentRef}),J=P(()=>{if(e.multiple){const he=e.modelValue.length;if(e.modelValue.length>0&&D.value.has(e.modelValue[he-1])){const{index:Fe}=D.value.get(e.modelValue[he-1]);return Fe}}else if(e.modelValue&&D.value.has(e.modelValue)){const{index:he}=D.value.get(e.modelValue);return he}return-1}),ae=P({get(){return m.value&&k.value!==!1},set(he){m.value=he}}),Q=P(()=>s.cachedOptions.slice(0,e.maxCollapseTags)),ee=P(()=>s.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:te,removeNewOption:q,selectNewOption:de,clearAllNewOption:ve}=r_e(e,s),{handleCompositionStart:ie,handleCompositionUpdate:W,handleCompositionEnd:Z}=i_e(he=>Xn(he)),oe=()=>{var he,Fe,At;(Fe=(he=f.value)==null?void 0:he.focus)==null||Fe.call(he),(At=h.value)==null||At.updatePopper()},pe=()=>{if(!e.automaticDropdown&&!b.value)return s.isComposing&&(s.softFocus=!0),Ue(()=>{var he,Fe;m.value=!m.value,(Fe=(he=f.value)==null?void 0:he.focus)==null||Fe.call(he)})},Se=()=>(e.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),Ee(s.inputValue),Ue(()=>{te(s.inputValue)})),me=Jr(Se,A.value),Ee=he=>{s.previousQuery!==he&&(s.previousQuery=he,e.filterable&&it(e.filterMethod)?e.filterMethod(he):e.filterable&&e.remote&&it(e.remoteMethod)&&e.remoteMethod(he))},Ce=he=>{va(e.modelValue,he)||t(gn,he)},we=he=>{t(wt,he),Ce(he),s.previousValue=he==null?void 0:he.toString()},Te=(he=[],Fe)=>{if(!Mt(Fe))return he.indexOf(Fe);const At=e.valueKey;let Wt=-1;return he.some((Zn,Jn)=>wn(Zn,At)===wn(Fe,At)?(Wt=Jn,!0):!1),Wt},Ne=he=>Mt(he)?wn(he,e.valueKey):he,Be=he=>Mt(he)?he.label:he,We=()=>Ue(()=>{var he,Fe;if(!f.value)return;const At=p.value;v.value.height=At.offsetHeight,m.value&&k.value!==!1&&((Fe=(he=h.value)==null?void 0:he.updatePopper)==null||Fe.call(he))}),Ae=()=>{var he,Fe;if(ze(),N(),(Fe=(he=h.value)==null?void 0:he.updatePopper)==null||Fe.call(he),e.multiple)return We()},ze=()=>{const he=p.value;he&&(s.selectWidth=he.getBoundingClientRect().width)},rt=(he,Fe,At=!0)=>{var Wt,Zn;if(e.multiple){let Jn=e.modelValue.slice();const Mr=Te(Jn,Ne(he));Mr>-1?(Jn=[...Jn.slice(0,Mr),...Jn.slice(Mr+1)],s.cachedOptions.splice(Mr,1),q(he)):(e.multipleLimit<=0||Jn.length<e.multipleLimit)&&(Jn=[...Jn,Ne(he)],s.cachedOptions.push(he),de(he),st(Fe)),we(Jn),he.created&&(s.query="",Ee(""),s.inputLength=20),e.filterable&&!e.reserveKeyword&&((Zn=(Wt=f.value).focus)==null||Zn.call(Wt),ke("")),e.filterable&&(s.calculatedWidth=g.value.getBoundingClientRect().width),We(),Vn()}else l.value=Fe,s.selectedLabel=he.label,we(Ne(he)),m.value=!1,s.isComposing=!1,s.isSilentBlur=At,de(he),he.created||ve(),st(Fe)},vt=(he,Fe)=>{const{valueKey:At}=e,Wt=e.modelValue.indexOf(wn(Fe,At));if(Wt>-1&&!b.value){const Zn=[...e.modelValue.slice(0,Wt),...e.modelValue.slice(Wt+1)];return s.cachedOptions.splice(Wt,1),we(Zn),t("remove-tag",wn(Fe,At)),s.softFocus=!0,q(Fe),Ue(oe)}he.stopPropagation()},kt=he=>{const Fe=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:Fe||t("focus",he)},Qe=he=>(s.softFocus=!1,Ue(()=>{var Fe,At;(At=(Fe=f.value)==null?void 0:Fe.blur)==null||At.call(Fe),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&t("blur",he),s.isComposing=!1})),ye=()=>{s.displayInputValue.length>0?ke(""):m.value=!1},fe=he=>{if(s.displayInputValue.length===0){he.preventDefault();const Fe=e.modelValue.slice();Fe.pop(),q(s.cachedOptions.pop()),we(Fe)}},le=()=>{let he;return He(e.modelValue)?he=[]:he=void 0,s.softFocus=!0,e.multiple?s.cachedOptions=[]:s.selectedLabel="",m.value=!1,we(he),t("clear"),ve(),Ue(oe)},ke=he=>{s.displayInputValue=he,s.inputValue=he},ne=(he,Fe=void 0)=>{const At=E.value;if(!["forward","backward"].includes(he)||b.value||At.length<=0||L.value)return;if(!m.value)return pe();Fe===void 0&&(Fe=s.hoveringIndex);let Wt=-1;he==="forward"?(Wt=Fe+1,Wt>=At.length&&(Wt=0)):he==="backward"&&(Wt=Fe-1,(Wt<0||Wt>=At.length)&&(Wt=At.length-1));const Zn=At[Wt];if(Zn.disabled||Zn.type==="Group")return ne(he,Wt);st(Wt),be(Wt)},Ve=()=>{if(m.value)~s.hoveringIndex&&E.value[s.hoveringIndex]&&rt(E.value[s.hoveringIndex],s.hoveringIndex,!1);else return pe()},st=he=>{s.hoveringIndex=he},It=()=>{s.hoveringIndex=-1},Vn=()=>{var he;const Fe=f.value;Fe&&((he=Fe.focus)==null||he.call(Fe))},Xn=he=>{const Fe=he.target.value;if(ke(Fe),s.displayInputValue.length>0&&!m.value&&(m.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,e.multiple&&We(),e.remote)me();else return Se()},ia=()=>(m.value=!1,Qe()),vr=()=>(s.inputValue=s.displayInputValue,Ue(()=>{~J.value&&(st(J.value),be(s.hoveringIndex))})),be=he=>{d.value.scrollToItem(he)},$e=()=>{if(It(),e.multiple)if(e.modelValue.length>0){let he=!1;s.cachedOptions.length=0,s.previousValue=e.modelValue.toString();for(const Fe of e.modelValue)if(D.value.has(Fe)){const{index:At,option:Wt}=D.value.get(Fe);s.cachedOptions.push(Wt),he||st(At),he=!0}}else s.cachedOptions=[],s.previousValue=void 0;else if(w.value){s.previousValue=e.modelValue;const he=E.value,Fe=he.findIndex(At=>Ne(At)===Ne(e.modelValue));~Fe?(s.selectedLabel=he[Fe].label,st(Fe)):s.selectedLabel=`${e.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;ve(),N()};return xe(m,he=>{var Fe,At;t("visible-change",he),he?(At=(Fe=h.value).update)==null||At.call(Fe):(s.displayInputValue="",s.previousQuery=null,te(""))}),xe(()=>e.modelValue,(he,Fe)=>{var At;(!he||he.toString()!==s.previousValue)&&$e(),!va(he,Fe)&&e.validateEvent&&((At=o==null?void 0:o.validate)==null||At.call(o,"change").catch(Wt=>void 0))},{deep:!0}),xe(()=>e.options,()=>{const he=f.value;(!he||he&&document.activeElement!==he)&&$e()},{deep:!0}),xe(E,()=>Ue(d.value.resetScrollTop)),xe(()=>ae.value,he=>{he||It()}),yt(()=>{$e()}),Or(v,Ae),{collapseTagSize:$,currentPlaceholder:G,expanded:m,emptyText:k,popupHeight:_,debounce:A,filteredOptions:E,iconComponent:S,iconReverse:x,inputWrapperStyle:I,popperSize:u,dropdownMenuVisible:ae,hasModelValue:w,shouldShowPlaceholder:F,selectDisabled:b,selectSize:B,showClearBtn:C,states:s,tagMaxWidth:O,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:v,selectionRef:p,popperRef:U,validateState:T,validateIcon:M,showTagList:Q,collapseTagList:ee,debouncedOnInputChange:me,deleteTag:vt,getLabel:Be,getValueKey:Ne,handleBlur:Qe,handleClear:le,handleClickOutside:ia,handleDel:fe,handleEsc:ye,handleFocus:kt,handleMenuEnter:vr,handleResize:Ae,toggleMenu:pe,scrollTo:be,onInput:Xn,onKeyboardNavigate:ne,onKeyboardSelect:Ve,onSelect:rt,onHover:st,onUpdateInputValue:ke,handleCompositionStart:ie,handleCompositionEnd:Z,handleCompositionUpdate:W}},l_e=j({name:"ElSelectV2",components:{ElSelectMenu:n_e,ElTag:Qv,ElTooltip:Qr,ElIcon:Ke},directives:{ClickOutside:vl,ModelText:zT},props:X1e,emits:[wt,gn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=P(()=>{const{modelValue:a,multiple:i}=e,o=i?[]:void 0;return He(a)?i?a:o:i?o:a}),r=s_e(jt({...ir(e),modelValue:n}),t);return Et(U6,{props:jt({...ir(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),u_e={key:0},c_e=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],f_e=["textContent"],d_e=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],h_e=["textContent"];function v_e(e,t,n,r,a,i){const o=ct("el-tag"),s=ct("el-tooltip"),l=ct("el-icon"),u=ct("el-select-menu"),c=$v("model-text"),f=$v("click-outside");return dt((R(),K("div",{ref:"selectRef",class:V([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=tt((...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)},[X(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:re(()=>[Y("div",{ref:"selectionRef",class:V([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?(R(),K("div",u_e,[_e(e.$slots,"prefix")])):se("v-if",!0),e.multiple?(R(),K("div",{key:1,class:V(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(R(),K(je,{key:0},[(R(!0),K(je,null,Ot(e.showTagList,d=>(R(),K("div",{key:e.getValueKey(d),class:V(e.nsSelectV2.e("selected-item"))},[X(o,{closable:!e.selectDisabled&&!(d!=null&&d.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},De(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),Y("div",{class:V(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(R(),ce(o,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:re(()=>[e.collapseTagsTooltip?(R(),ce(s,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},"+ "+De(e.modelValue.length-e.maxCollapseTags),7)]),content:re(()=>[Y("div",{class:V(e.nsSelectV2.e("selection"))},[(R(!0),K(je,null,Ot(e.collapseTagList,d=>(R(),K("div",{key:e.getValueKey(d),class:V(e.nsSelectV2.e("selected-item"))},[X(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},De(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(R(),K("span",{key:1,class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},"+ "+De(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):se("v-if",!0)],2)],64)):(R(!0),K(je,{key:1},Ot(e.states.cachedOptions,d=>(R(),K("div",{key:e.getValueKey(d),class:V(e.nsSelectV2.e("selected-item"))},[X(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},De(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),Y("div",{class:V([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Ye(e.inputWrapperStyle)},[dt(Y("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:V([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]=zt(tt(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=zt(tt(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=zt(tt((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=zt(tt((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"])),t[11]||(t[11]=zt(tt((...d)=>e.handleDel&&e.handleDel(...d),["stop"]),["delete"]))]},null,42,c_e),[[c,e.states.displayInputValue]]),e.filterable?(R(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:V(e.nsSelectV2.e("input-calculator")),textContent:De(e.states.displayInputValue)},null,10,f_e)):se("v-if",!0)],6)],2)):(R(),K(je,{key:2},[Y("div",{class:V([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[dt(Y("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:V(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]=zt(tt(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=zt(tt(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=zt(tt((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[21]||(t[21]=zt(tt((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d))},null,42,d_e),[[c,e.states.displayInputValue]])],2),e.filterable?(R(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:V([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:De(e.states.displayInputValue)},null,10,h_e)):se("v-if",!0)],64)),e.shouldShowPlaceholder?(R(),K("span",{key:3,class:V([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},De(e.currentPlaceholder),3)):se("v-if",!0),Y("span",{class:V(e.nsSelectV2.e("suffix"))},[e.iconComponent?dt((R(),ce(l,{key:0,class:V([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])),[[Kt,!e.showClearBtn]]):se("v-if",!0),e.showClearBtn&&e.clearIcon?(R(),ce(l,{key:1,class:V([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:tt(e.handleClear,["prevent","stop"])},{default:re(()=>[(R(),ce(Ct(e.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0),e.validateState&&e.validateIcon?(R(),ce(l,{key:2,class:V([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:re(()=>[(R(),ce(Ct(e.validateIcon)))]),_:1},8,["class"])):se("v-if",!0)],2)],2)]),content:re(()=>[X(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:re(d=>[_e(e.$slots,"default",Mi(Rb(d)))]),empty:re(()=>[_e(e.$slots,"empty",{},()=>[Y("p",{class:V(e.nsSelectV2.e("empty"))},De(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 Sy=Pe(l_e,[["render",v_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Sy.install=e=>{e.component(Sy.name,Sy)};const p_e=Sy,g_e=p_e,m_e=Le({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),y_e=Le({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),b_e=j({name:"ElSkeletonItem"}),__e=j({...b_e,props:y_e,setup(e){const t=Me("skeleton");return(n,r)=>(R(),K("div",{class:V([y(t).e("item"),y(t).e(n.variant)])},[n.variant==="image"?(R(),ce(y(kae),{key:0})):se("v-if",!0)],2))}});var S0=Pe(__e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const w_e=j({name:"ElSkeleton"}),S_e=j({...w_e,props:m_e,setup(e,{expose:t}){const n=e,r=Me("skeleton"),a=woe(Mn(n,"loading"),n.throttle);return t({uiLoading:a}),(i,o)=>y(a)?(R(),K("div",St({key:0,class:[y(r).b(),y(r).is("animated",i.animated)]},i.$attrs),[(R(!0),K(je,null,Ot(i.count,s=>(R(),K(je,{key:s},[i.loading?_e(i.$slots,"template",{key:s},()=>[X(S0,{class:V(y(r).is("first")),variant:"p"},null,8,["class"]),(R(!0),K(je,null,Ot(i.rows,l=>(R(),ce(S0,{key:l,class:V([y(r).e("paragraph"),y(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):se("v-if",!0)],64))),128))],16)):_e(i.$slots,"default",Mi(St({key:1},i.$attrs)))}});var C_e=Pe(S_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const x_e=_t(C_e,{SkeletonItem:S0}),T_e=In(S0),Y6=Symbol("sliderContextKey"),M_e=Le({modelValue:{type:ue([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:wr,inputSize:wr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ue(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:ue(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:wc,default:"top"},marks:{type:ue(Object)},validateEvent:{type:Boolean,default:!0}}),P_=e=>at(e)||He(e)&&e.every(at),k_e={[wt]:P_,[jr]:P_,[gn]:P_},A_e=(e,t,n)=>{const r=H();return yt(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),yn(window,"resize",n),await Ue(),n()}),{sliderWrapper:r}},E_e=e=>P(()=>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]})):[]),I_e=(e,t,n)=>{const{form:r,formItem:a}=ra(),i=ln(),o=H(),s=H(),l={firstButton:o,secondButton:s},u=P(()=>e.disabled||(r==null?void 0:r.disabled)||!1),c=P(()=>Math.min(t.firstValue,t.secondValue)),f=P(()=>Math.max(t.firstValue,t.secondValue)),d=P(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=P(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),v=P(()=>e.vertical?{height:e.height}:{}),p=P(()=>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=k=>{const E=e.min+k*(e.max-e.min)/100;if(!e.range)return o;let D;return Math.abs(c.value-E)<Math.abs(f.value-E)?D=t.firstValue<t.secondValue?"firstButton":"secondButton":D=t.firstValue>t.secondValue?"firstButton":"secondButton",l[D]},b=k=>{const E=m(k);return E.value.setPosition(k),E},_=k=>{t.firstValue=k,C(e.range?[c.value,f.value]:k)},w=k=>{t.secondValue=k,e.range&&C([c.value,f.value])},C=k=>{n(wt,k),n(jr,k)},S=async()=>{await Ue(),n(gn,e.range?[c.value,f.value]:e.modelValue)},x=k=>{var E,D,L,B,$,O;if(u.value||t.dragging)return;g();let N=0;if(e.vertical){const I=(L=(D=(E=k.touches)==null?void 0:E.item(0))==null?void 0:D.clientY)!=null?L:k.clientY;N=(i.value.getBoundingClientRect().bottom-I)/t.sliderSize*100}else{const I=(O=($=(B=k.touches)==null?void 0:B.item(0))==null?void 0:$.clientX)!=null?O:k.clientX,F=i.value.getBoundingClientRect().left;N=(I-F)/t.sliderSize*100}if(!(N<0||N>100))return b(N)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:v,barStyle:p,resetSize:g,setPosition:b,emitChange:S,onSliderWrapperPrevent:k=>{var E,D;((E=l.firstButton.value)!=null&&E.dragging||(D=l.secondButton.value)!=null&&D.dragging)&&k.preventDefault()},onSliderClick:k=>{x(k)&&S()},onSliderDown:async k=>{const E=x(k);E&&(await Ue(),E.value.onButtonDown(k))},setFirstValue:_,setSecondValue:w}},{left:D_e,down:P_e,right:L_e,up:R_e,home:O_e,end:N_e,pageUp:$_e,pageDown:B_e}=Xe,V_e=(e,t,n)=>{const r=H(),a=H(!1),i=P(()=>t.value instanceof Function),o=P(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Jr(()=>{n.value&&(a.value=!0)},50),l=Jr(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},F_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}=Ge(Y6),{tooltip:v,tooltipVisible:p,formatValue:g,displayTooltip:m,hideTooltip:b}=V_e(e,c,s),_=H(),w=P(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),C=P(()=>e.vertical?{bottom:w.value}:{left:w.value}),S=()=>{t.hovering=!0,m()},x=()=>{t.hovering=!1,t.dragging||b()},T=U=>{r.value||(U.preventDefault(),N(U),window.addEventListener("mousemove",I),window.addEventListener("touchmove",I),window.addEventListener("mouseup",F),window.addEventListener("touchend",F),window.addEventListener("contextmenu",F),_.value.focus())},M=U=>{r.value||(t.newPosition=Number.parseFloat(w.value)+U/(i.value-a.value)*100,G(t.newPosition),f())},A=()=>{M(-o.value)},k=()=>{M(o.value)},E=()=>{M(-o.value*4)},D=()=>{M(o.value*4)},L=()=>{r.value||(G(0),f())},B=()=>{r.value||(G(100),f())},$=U=>{let J=!0;[D_e,P_e].includes(U.key)?A():[L_e,R_e].includes(U.key)?k():U.key===O_e?L():U.key===N_e?B():U.key===B_e?E():U.key===$_e?D():J=!1,J&&U.preventDefault()},O=U=>{let J,ae;return U.type.startsWith("touch")?(ae=U.touches[0].clientY,J=U.touches[0].clientX):(ae=U.clientY,J=U.clientX),{clientX:J,clientY:ae}},N=U=>{t.dragging=!0,t.isClick=!0;const{clientX:J,clientY:ae}=O(U);e.vertical?t.startY=ae:t.startX=J,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},I=U=>{if(t.dragging){t.isClick=!1,m(),d();let J;const{clientX:ae,clientY:Q}=O(U);e.vertical?(t.currentY=Q,J=(t.startY-t.currentY)/u.value*100):(t.currentX=ae,J=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+J,G(t.newPosition)}},F=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||G(t.newPosition),f()},0),window.removeEventListener("mousemove",I),window.removeEventListener("touchmove",I),window.removeEventListener("mouseup",F),window.removeEventListener("touchend",F),window.removeEventListener("contextmenu",F))},G=async U=>{if(U===null||Number.isNaN(+U))return;U<0?U=0:U>100&&(U=100);const J=100/((i.value-a.value)/o.value);let Q=Math.round(U/J)*J*(i.value-a.value)*.01+a.value;Q=Number.parseFloat(Q.toFixed(l.value)),Q!==e.modelValue&&n(wt,Q),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ue(),t.dragging&&m(),v.value.updatePopper()};return xe(()=>t.dragging,U=>{h(U)}),{disabled:r,button:_,tooltip:v,tooltipVisible:p,showTooltip:s,wrapperStyle:C,formatValue:g,handleMouseEnter:S,handleMouseLeave:x,onButtonDown:T,onKeyDown:$,setPosition:G}},z_e=(e,t,n,r)=>({stops:P(()=>{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}%`}}),H_e=(e,t,n,r,a,i)=>{const o=u=>{a(wt,u),a(jr,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&&Yn("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(),xe(()=>t.dragging,u=>{u||l()}),xe(()=>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}),xe(()=>[e.min,e.max],()=>{l()})},G_e=Le({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:wc,default:"top"}}),W_e={[wt]:e=>at(e)},K_e=["tabindex"],U_e=j({name:"ElSliderButton"}),Y_e=j({...U_e,props:G_e,emits:W_e,setup(e,{expose:t,emit:n}){const r=e,a=Me("slider"),i=jt({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:v,onButtonDown:p,onKeyDown:g,setPosition:m}=F_e(r,i,n),{hovering:b,dragging:_}=ir(i);return t({onButtonDown:p,onKeyDown:g,setPosition:m,hovering:b,dragging:_}),(w,C)=>(R(),K("div",{ref_key:"button",ref:s,class:V([y(a).e("button-wrapper"),{hover:y(b),dragging:y(_)}]),style:Ye(y(f)),tabindex:y(o)?-1:0,onMouseenter:C[0]||(C[0]=(...S)=>y(h)&&y(h)(...S)),onMouseleave:C[1]||(C[1]=(...S)=>y(v)&&y(v)(...S)),onMousedown:C[2]||(C[2]=(...S)=>y(p)&&y(p)(...S)),onTouchstart:C[3]||(C[3]=(...S)=>y(p)&&y(p)(...S)),onFocus:C[4]||(C[4]=(...S)=>y(h)&&y(h)(...S)),onBlur:C[5]||(C[5]=(...S)=>y(v)&&y(v)(...S)),onKeydown:C[6]||(C[6]=(...S)=>y(g)&&y(g)(...S))},[X(y(Qr),{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:re(()=>[Y("span",null,De(y(d)),1)]),default:re(()=>[Y("div",{class:V([y(a).e("button"),{hover:y(b),dragging:y(_)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,K_e))}});var nL=Pe(Y_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const j_e=Le({mark:{type:ue([String,Object]),default:void 0}});var q_e=j({name:"ElSliderMarker",props:j_e,setup(e){const t=Me("slider"),n=P(()=>lt(e.mark)?e.mark:e.mark.label),r=P(()=>lt(e.mark)?void 0:e.mark.style);return()=>Ze("div",{class:t.e("marks-text"),style:r.value},n.value)}});const X_e=["id","role","aria-label","aria-labelledby"],Z_e={key:1},J_e=j({name:"ElSlider"}),Q_e=j({...J_e,props:M_e,emits:k_e,setup(e,{expose:t,emit:n}){const r=e,a=Me("slider"),{t:i}=Ht(),o=jt({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:v,barStyle:p,resetSize:g,emitChange:m,onSliderWrapperPrevent:b,onSliderClick:_,onSliderDown:w,setFirstValue:C,setSecondValue:S}=I_e(r,o,n),{stops:x,getStopStyle:T}=z_e(r,o,d,h),{inputId:M,isLabeledByFormItem:A}=Il(r,{formItemContext:s}),k=jn(),E=P(()=>r.inputSize||k.value),D=P(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),L=P(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):D.value),B=P(()=>r.formatValueText?r.formatValueText(U.value):`${U.value}`),$=P(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),O=P(()=>r.formatValueText?r.formatValueText(J.value):`${J.value}`),N=P(()=>[a.b(),a.m(k.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),I=E_e(r);H_e(r,o,d,h,n,s);const F=P(()=>{const ee=[r.min,r.max,r.step].map(te=>{const q=`${te}`.split(".")[1];return q?q.length:0});return Math.max.apply(null,ee)}),{sliderWrapper:G}=A_e(r,o,g),{firstValue:U,secondValue:J,sliderSize:ae}=ir(o),Q=ee=>{o.dragging=ee};return Et(Y6,{...ir(r),sliderSize:ae,disabled:f,precision:F,emitChange:m,resetSize:g,updateDragging:Q}),t({onSliderClick:_}),(ee,te)=>{var q,de;return R(),K("div",{id:ee.range?y(M):void 0,ref_key:"sliderWrapper",ref:G,class:V(y(N)),role:ee.range?"group":void 0,"aria-label":ee.range&&!y(A)?y(D):void 0,"aria-labelledby":ee.range&&y(A)?(q=y(s))==null?void 0:q.labelId:void 0,onTouchstart:te[2]||(te[2]=(...ve)=>y(b)&&y(b)(...ve)),onTouchmove:te[3]||(te[3]=(...ve)=>y(b)&&y(b)(...ve))},[Y("div",{ref_key:"slider",ref:l,class:V([y(a).e("runway"),{"show-input":ee.showInput&&!ee.range},y(a).is("disabled",y(f))]),style:Ye(y(v)),onMousedown:te[0]||(te[0]=(...ve)=>y(w)&&y(w)(...ve)),onTouchstart:te[1]||(te[1]=(...ve)=>y(w)&&y(w)(...ve))},[Y("div",{class:V(y(a).e("bar")),style:Ye(y(p))},null,6),X(nL,{id:ee.range?void 0:y(M),ref_key:"firstButton",ref:u,"model-value":y(U),vertical:ee.vertical,"tooltip-class":ee.tooltipClass,placement:ee.placement,role:"slider","aria-label":ee.range||!y(A)?y(L):void 0,"aria-labelledby":!ee.range&&y(A)?(de=y(s))==null?void 0:de.labelId:void 0,"aria-valuemin":ee.min,"aria-valuemax":ee.range?y(J):ee.max,"aria-valuenow":y(U),"aria-valuetext":y(B),"aria-orientation":ee.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(C)},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"]),ee.range?(R(),ce(nL,{key:0,ref_key:"secondButton",ref:c,"model-value":y(J),vertical:ee.vertical,"tooltip-class":ee.tooltipClass,placement:ee.placement,role:"slider","aria-label":y($),"aria-valuemin":y(U),"aria-valuemax":ee.max,"aria-valuenow":y(J),"aria-valuetext":y(O),"aria-orientation":ee.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(S)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):se("v-if",!0),ee.showStops?(R(),K("div",Z_e,[(R(!0),K(je,null,Ot(y(x),(ve,ie)=>(R(),K("div",{key:ie,class:V(y(a).e("stop")),style:Ye(y(T)(ve))},null,6))),128))])):se("v-if",!0),y(I).length>0?(R(),K(je,{key:2},[Y("div",null,[(R(!0),K(je,null,Ot(y(I),(ve,ie)=>(R(),K("div",{key:ie,style:Ye(y(T)(ve.position)),class:V([y(a).e("stop"),y(a).e("marks-stop")])},null,6))),128))]),Y("div",{class:V(y(a).e("marks"))},[(R(!0),K(je,null,Ot(y(I),(ve,ie)=>(R(),ce(y(q_e),{key:ie,mark:ve.mark,style:Ye(y(T)(ve.position))},null,8,["mark","style"]))),128))],2)],64)):se("v-if",!0)],38),ee.showInput&&!ee.range?(R(),ce(y(_6),{key:0,ref:"input","model-value":y(U),class:V(y(a).e("input")),step:ee.step,disabled:y(f),controls:ee.showInputControls,min:ee.min,max:ee.max,debounce:ee.debounce,size:y(E),"onUpdate:modelValue":y(C),onChange:y(m)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):se("v-if",!0)],42,X_e)}}});var ewe=Pe(Q_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const twe=_t(ewe),nwe=Le({prefixCls:{type:String}}),rL=j({name:"ElSpaceItem",props:nwe,setup(e,{slots:t}){const n=Me("space"),r=P(()=>`${e.prefixCls||n.b()}__item`);return()=>Ze("div",{class:r.value},_e(t,"default"))}}),aL={small:8,default:12,large:16};function rwe(e){const t=Me("space"),n=P(()=>[t.b(),t.m(e.direction),e.class]),r=H(0),a=H(0),i=P(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:e.alignment};return[s,l,e.style]}),o=P(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${r.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[s,l]});return Ia(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(He(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;at(s)?f=s:f=aL[s||"small"]||aL.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 awe=Le({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ue([String,Object,Array]),default:""},style:{type:ue([String,Array,Object]),default:""},alignment:{type:ue(String),default:"center"},prefixCls:{type:String},spacer:{type:ue([Object,String,Number,Array]),default:null,validator:e=>xn(e)||at(e)||lt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:To,validator:e=>at(e)||He(e)&&e.length===2&&e.every(at)}}),iwe=j({name:"ElSpace",props:awe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=rwe(e);function i(o,s="",l=[]){const{prefixCls:u}=e;return o.forEach((c,f)=>{EC(c)?He(c.children)&&c.children.forEach((d,h)=>{EC(d)&&He(d.children)?i(d.children,`${s+h}-`,l):l.push(X(rL,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},Ga.PROPS|Ga.STYLE,["style","prefixCls"]))}):oie(c)&&l.push(X(rL,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},Ga.PROPS|Ga.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=e,u=_e(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(He(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,v)=>{const p=[...d,h];return v!==f&&p.push(X("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[xn(s)?s:Ut(s,Ga.TEXT)],Ga.STYLE)),p},[])}return X("div",{class:n.value,style:r.value},c,Ga.STYLE|Ga.CLASS)}return u.children}}}),owe=_t(iwe),swe=Le({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ue([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ue([String,Object,Array])}}),lwe=j({name:"ElStatistic"}),uwe=j({...lwe,props:swe,setup(e,{expose:t}){const n=e,r=Me("statistic"),a=P(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(it(o))return o(i);if(!at(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)=>(R(),K("div",{class:V(y(r).b())},[i.$slots.title||i.title?(R(),K("div",{key:0,class:V(y(r).e("head"))},[_e(i.$slots,"title",{},()=>[Ut(De(i.title),1)])],2)):se("v-if",!0),Y("div",{class:V(y(r).e("content"))},[i.$slots.prefix||i.prefix?(R(),K("div",{key:0,class:V(y(r).e("prefix"))},[_e(i.$slots,"prefix",{},()=>[Y("span",null,De(i.prefix),1)])],2)):se("v-if",!0),Y("span",{class:V(y(r).e("number")),style:Ye(i.valueStyle)},De(y(a)),7),i.$slots.suffix||i.suffix?(R(),K("div",{key:1,class:V(y(r).e("suffix"))},[_e(i.$slots,"suffix",{},()=>[Y("span",null,De(i.suffix),1)])],2)):se("v-if",!0)],2)],2))}});var cwe=Pe(uwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const j6=_t(cwe),fwe=Le({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ue([Number,Object]),default:0},valueStyle:{type:ue([String,Object,Array])}}),dwe={finish:()=>!0,[gn]:e=>at(e)},hwe=[["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]],iL=e=>at(e)?new Date(e).getTime():e.valueOf(),oL=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return hwe.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")},vwe=j({name:"ElCountdown"}),pwe=j({...vwe,props:fwe,emits:dwe,setup(e,{expose:t,emit:n}){const r=e;let a;const i=H(iL(r.value)-Date.now()),o=P(()=>oL(i.value,r.format)),s=c=>oL(c,r.format),l=()=>{a&&(Zb(a),a=void 0)},u=()=>{const c=iL(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=ed(f),i.value=d};a=ed(f)};return xe(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),_n(()=>{l()}),t({displayValue:o}),(c,f)=>(R(),ce(y(j6),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Zo({_:2},[Ot(c.$slots,(d,h)=>({name:h,fn:re(()=>[_e(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var gwe=Pe(pwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const mwe=_t(gwe),ywe=Le({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"}}),bwe={[gn]:(e,t)=>[e,t].every(at)},_we=j({name:"ElSteps"}),wwe=j({..._we,props:ywe,emits:bwe,setup(e,{emit:t}){const n=e,r=Me("steps"),{children:a,addChild:i,removeChild:o}=DM(gt(),"ElStep");return xe(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),Et("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),xe(()=>n.active,(s,l)=>{t(gn,s,l)}),(s,l)=>(R(),K("div",{class:V([y(r).b(),y(r).m(s.simple?"simple":s.direction)])},[_e(s.$slots,"default")],2))}});var Swe=Pe(wwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const Cwe=Le({title:{type:String,default:""},icon:{type:cn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),xwe=j({name:"ElStep"}),Twe=j({...xwe,props:Cwe,setup(e){const t=e,n=Me("step"),r=H(-1),a=H({}),i=H(""),o=Ge("ElSteps"),s=gt();yt(()=>{xe([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([S])=>{w(S)},{immediate:!0})}),_n(()=>{o.removeStep(C.uid)});const l=P(()=>t.status||i.value),u=P(()=>{const S=o.steps.value[r.value-1];return S?S.currentStatus:"wait"}),c=P(()=>o.props.alignCenter),f=P(()=>o.props.direction==="vertical"),d=P(()=>o.props.simple),h=P(()=>o.steps.value.length),v=P(()=>{var S;return((S=o.steps.value[h.value-1])==null?void 0:S.uid)===(s==null?void 0:s.uid)}),p=P(()=>d.value?"":o.props.space),g=P(()=>[n.b(),n.is(d.value?"simple":o.props.direction),n.is("flex",v.value&&!p.value&&!c.value),n.is("center",c.value&&!f.value&&!d.value)]),m=P(()=>{const S={flexBasis:at(p.value)?`${p.value}px`:p.value?p.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||v.value&&(S.maxWidth=`${100/h.value}%`),S}),b=S=>{r.value=S},_=S=>{const x=S==="wait",T={transitionDelay:`${x?"-":""}${150*r.value}ms`},M=S===o.props.processStatus||x?0:100;T.borderWidth=M&&!d.value?"1px":0,T[o.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=T},w=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)},C=jt({uid:s.uid,currentStatus:l,setIndex:b,calcProgress:_});return o.addStep(C),(S,x)=>(R(),K("div",{style:Ye(y(m)),class:V(y(g))},[se(" icon & line "),Y("div",{class:V([y(n).e("head"),y(n).is(y(l))])},[y(d)?se("v-if",!0):(R(),K("div",{key:0,class:V(y(n).e("line"))},[Y("i",{class:V(y(n).e("line-inner")),style:Ye(a.value)},null,6)],2)),Y("div",{class:V([y(n).e("icon"),y(n).is(S.icon||S.$slots.icon?"icon":"text")])},[_e(S.$slots,"icon",{},()=>[S.icon?(R(),ce(y(Ke),{key:0,class:V(y(n).e("icon-inner"))},{default:re(()=>[(R(),ce(Ct(S.icon)))]),_:1},8,["class"])):y(l)==="success"?(R(),ce(y(Ke),{key:1,class:V([y(n).e("icon-inner"),y(n).is("status")])},{default:re(()=>[X(y(Zp))]),_:1},8,["class"])):y(l)==="error"?(R(),ce(y(Ke),{key:2,class:V([y(n).e("icon-inner"),y(n).is("status")])},{default:re(()=>[X(y($i))]),_:1},8,["class"])):y(d)?se("v-if",!0):(R(),K("div",{key:3,class:V(y(n).e("icon-inner"))},De(r.value+1),3))])],2)],2),se(" title & description "),Y("div",{class:V(y(n).e("main"))},[Y("div",{class:V([y(n).e("title"),y(n).is(y(l))])},[_e(S.$slots,"title",{},()=>[Ut(De(S.title),1)])],2),y(d)?(R(),K("div",{key:0,class:V(y(n).e("arrow"))},null,2)):(R(),K("div",{key:1,class:V([y(n).e("description"),y(n).is(y(l))])},[_e(S.$slots,"description",{},()=>[Ut(De(S.description),1)])],2))],2)],6))}});var q6=Pe(Twe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const Mwe=_t(Swe,{Step:q6}),kwe=In(q6),Awe=Le({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:qb},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:cn},activeActionIcon:{type:cn},activeIcon:{type:cn},inactiveIcon:{type:cn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:ue(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),Ewe={[wt]:e=>Kn(e)||lt(e)||at(e),[gn]:e=>Kn(e)||lt(e)||at(e),[jr]:e=>Kn(e)||lt(e)||at(e)},Iwe=["onClick"],Dwe=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Pwe=["aria-hidden"],Lwe=["aria-hidden"],Rwe=["aria-hidden"],hx="ElSwitch",Owe=j({name:hx}),Nwe=j({...Owe,props:Awe,emits:Ewe,setup(e,{expose:t,emit:n}){const r=e,a=gt(),{formItem:i}=ra(),o=jn(),s=Me("switch");(T=>{T.forEach(M=>{yo({from:M[0],replacement:M[1],scope:hx,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},P(()=>{var A;return!!((A=a.vnode.props)!=null&&A[M[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=Il(r,{formItemContext:i}),c=_a(P(()=>r.loading)),f=H(r.modelValue!==!1),d=H(),h=H(),v=P(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",_.value)]),p=P(()=>[s.e("label"),s.em("label","left"),s.is("active",!_.value)]),g=P(()=>[s.e("label"),s.em("label","right"),s.is("active",_.value)]),m=P(()=>({width:Rn(r.width)}));xe(()=>r.modelValue,()=>{f.value=!0}),xe(()=>r.value,()=>{f.value=!1});const b=P(()=>f.value?r.modelValue:r.value),_=P(()=>b.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(b.value)||(n(wt,r.inactiveValue),n(gn,r.inactiveValue),n(jr,r.inactiveValue)),xe(_,T=>{var M;d.value.checked=T,r.validateEvent&&((M=i==null?void 0:i.validate)==null||M.call(i,"change").catch(A=>void 0))});const w=()=>{const T=_.value?r.inactiveValue:r.activeValue;n(wt,T),n(gn,T),n(jr,T),Ue(()=>{d.value.checked=_.value})},C=()=>{if(c.value)return;const{beforeChange:T}=r;if(!T){w();return}const M=T();[Dv(M),Kn(M)].includes(!0)||Yn(hx,"beforeChange must return type `Promise<boolean>` or `boolean`"),Dv(M)?M.then(k=>{k&&w()}).catch(k=>{}):M&&w()},S=P(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),x=()=>{var T,M;(M=(T=d.value)==null?void 0:T.focus)==null||M.call(T)};return yt(()=>{d.value.checked=_.value}),t({focus:x,checked:_}),(T,M)=>(R(),K("div",{class:V(y(v)),style:Ye(y(S)),onClick:tt(C,["prevent"])},[Y("input",{id:y(u),ref_key:"input",ref:d,class:V(y(s).e("input")),type:"checkbox",role:"switch","aria-checked":y(_),"aria-disabled":y(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:y(c),tabindex:T.tabindex,onChange:w,onKeydown:zt(C,["enter"])},null,42,Dwe),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(R(),K("span",{key:0,class:V(y(p))},[T.inactiveIcon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(T.inactiveIcon)))]),_:1})):se("v-if",!0),!T.inactiveIcon&&T.inactiveText?(R(),K("span",{key:1,"aria-hidden":y(_)},De(T.inactiveText),9,Pwe)):se("v-if",!0)],2)):se("v-if",!0),Y("span",{ref_key:"core",ref:h,class:V(y(s).e("core")),style:Ye(y(m))},[T.inlinePrompt?(R(),K("div",{key:0,class:V(y(s).e("inner"))},[T.activeIcon||T.inactiveIcon?(R(),ce(y(Ke),{key:0,class:V(y(s).is("icon"))},{default:re(()=>[(R(),ce(Ct(y(_)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(R(),K("span",{key:1,class:V(y(s).is("text")),"aria-hidden":!y(_)},De(y(_)?T.activeText:T.inactiveText),11,Lwe)):se("v-if",!0)],2)):se("v-if",!0),Y("div",{class:V(y(s).e("action"))},[T.loading?(R(),ce(y(Ke),{key:0,class:V(y(s).is("loading"))},{default:re(()=>[X(y(kl))]),_:1},8,["class"])):T.activeActionIcon&&y(_)?(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(T.activeActionIcon)))]),_:1})):T.inactiveActionIcon&&!y(_)?(R(),ce(y(Ke),{key:2},{default:re(()=>[(R(),ce(Ct(T.inactiveActionIcon)))]),_:1})):se("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(R(),K("span",{key:1,class:V(y(g))},[T.activeIcon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(T.activeIcon)))]),_:1})):se("v-if",!0),!T.activeIcon&&T.activeText?(R(),K("span",{key:1,"aria-hidden":!y(_)},De(T.activeText),9,Rwe)):se("v-if",!0)],2)):se("v-if",!0)],14,Iwe))}});var $we=Pe(Nwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Bwe=_t($we);/*!
  53. * escape-html
  54. * Copyright(c) 2012-2013 TJ Holowaychuk
  55. * Copyright(c) 2015 Andreas Lubbe
  56. * Copyright(c) 2015 Tiancheng "Timothy" Gu
  57. * MIT Licensed
  58. */var Vwe=/["'&<>]/,Fwe=zwe;function zwe(e){var t=""+e,n=Vwe.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 Hwe=Mo(Fwe),L_=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Gwe=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"?wn(s,u):u(s,l,e))):(t!=="$key"&&Mt(s)&&"$value"in s&&(s=s.$value),[Mt(s)?wn(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)},X6=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},Wwe=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||Yn("ElTable",`No column matching with column-key: ${t}`),n},sL=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?X6(e,r[0]):null},gr=(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)},Ru=function(e,t){const n={};return(e||[]).forEach((r,a)=>{n[gr(r,t)]={row:r,index:a}}),n};function Kwe(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if($t(t,r)){const a=t[r];typeof a<"u"&&(n[r]=a)}return n}function ek(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Z6(e){return e===""||e!==void 0&&(e=ek(e),Number.isNaN(e)&&(e=80)),e}function Uwe(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Ywe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function fv(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,He(t.children)&&t.children.forEach(l=>{fv(e,l,n??!i)})};return Kn(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function jwe(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 Oo;function qwe(e,t,n,r,a){a=L5({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=Hwe(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()}Oo==null||Oo(),Oo=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",Oo),Oo=void 0}catch{}};let c=null,f=u,d=Oo;a.enterable&&({onOpen:f,onClose:d}=hF({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:Oo}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(a.offset&&v.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=a.popperOptions||{};return c=cF(t,h,{placement:a.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",Oo),c}function J6(e){return e.children?bre(e.children,J6):[e]}function lL(e,t){return e+t.colSpan}const Q6=(e,t,n,r)=>{let a=0,i=e;const o=n.states.columns.value;if(r){const l=J6(r[e]);a=o.slice(0,o.indexOf(l[0])).reduce(lL,0),i=a+l.reduce(lL,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}:{}},tk=(e,t,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=Q6(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 uL(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const nk=(e,t,n,r)=>{const{direction:a,start:i=0,after:o=0}=Q6(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(uL,0):s.right=u.slice(o+1).reverse().reduce(uL,0),s},ld=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Xwe(e){const t=gt(),n=H(!1),r=H([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=Ru(r.value,u);r.value=l.reduce((f,d)=>{const h=gr(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{fv(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=Ru(u,c);r.value=l.reduce((d,h)=>{const v=f[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Ru(r.value,u)[gr(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function Zwe(e){const t=gt(),n=H(null),r=H(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=>gr(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=gr(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 Jwe(e){const t=H([]),n=H({}),r=H(16),a=H(!1),i=H({}),o=H("hasChildren"),s=H("children"),l=gt(),u=P(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=P(()=>{const m=e.rowKey.value,b=Object.keys(i.value),_={};return b.length&&b.forEach(w=>{if(i.value[w].length){const C={children:[]};i.value[w].forEach(S=>{const x=gr(S,m);C.children.push(x),S[o.value]&&!_[x]&&(_[x]={children:[]})}),_[w]=C}}),_}),f=m=>{const b=e.rowKey.value,_={};return jwe(m,(w,C,S)=>{const x=gr(w,b);Array.isArray(C)?_[x]={children:C.map(T=>gr(T,b)),level:S}:a.value&&(_[x]={children:[],lazy:!0,level:S})},s.value,o.value),_},d=(m=!1,b=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const w=u.value,C=c.value,S=Object.keys(w),x={};if(S.length){const T=y(n),M=[],A=(E,D)=>{if(m)return t.value?b||t.value.includes(D):!!(b||E!=null&&E.expanded);{const L=b||t.value&&t.value.includes(D);return!!(E!=null&&E.expanded||L)}};S.forEach(E=>{const D=T[E],L={...w[E]};if(L.expanded=A(D,E),L.lazy){const{loaded:B=!1,loading:$=!1}=D||{};L.loaded=!!B,L.loading=!!$,M.push(E)}x[E]=L});const k=Object.keys(C);a.value&&k.length&&M.length&&k.forEach(E=>{const D=T[E],L=C[E].children;if(M.includes(E)){if(x[E].children.length!==0)throw new Error("[ElTable]children must be an empty array.");x[E].children=L}else{const{loaded:B=!1,loading:$=!1}=D||{};x[E]={lazy:!0,loaded:!!B,loading:!!$,expanded:A(D,E),children:L,level:""}}})}n.value=x,(_=l.store)==null||_.updateTableScrollY()};xe(()=>t.value,()=>{d(!0)}),xe(()=>u.value,()=>{d()}),xe(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,b)=>{l.store.assertRowKey();const _=e.rowKey.value,w=gr(m,_),C=w&&n.value[w];if(w&&C&&"expanded"in C){const S=C.expanded;b=typeof b>"u"?!C.expanded:b,n.value[w].expanded=b,S!==b&&l.emit("expand-change",m,b),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const b=e.rowKey.value,_=gr(m,b),w=n.value[_];a.value&&w&&"loaded"in w&&!w.loaded?g(m,_,w):v(m,void 0)},g=(m,b,_)=>{const{load:w}=l.props;w&&!n.value[b].loaded&&(n.value[b].loading=!0,w(m,_,C=>{if(!Array.isArray(C))throw new TypeError("[ElTable] data must be an array");n.value[b].loading=!1,n.value[b].loaded=!0,n.value[b].expanded=!0,C.length&&(i.value[b]=C),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:t,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const Qwe=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:Gwe(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Cy=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Cy(n.children)):t.push(n)}),t};function eSe(){var e;const t=gt(),{size:n}=ir((e=t.proxy)==null?void 0:e.$props),r=H(null),a=H([]),i=H([]),o=H(!1),s=H([]),l=H([]),u=H([]),c=H([]),f=H([]),d=H([]),h=H([]),v=H([]),p=[],g=H(0),m=H(0),b=H(0),_=H(!1),w=H([]),C=H(!1),S=H(!1),x=H(null),T=H({}),M=H(null),A=H(null),k=H(null),E=H(null),D=H(null);xe(a,()=>t.state&&O(!1),{deep:!0});const L=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},B=Qe=>{var ye;(ye=Qe.children)==null||ye.forEach(fe=>{fe.fixed=Qe.fixed,B(fe)})},$=()=>{s.value.forEach(ke=>{B(ke)}),c.value=s.value.filter(ke=>ke.fixed===!0||ke.fixed==="left"),f.value=s.value.filter(ke=>ke.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 Qe=s.value.filter(ke=>!ke.fixed);l.value=[].concat(c.value).concat(Qe).concat(f.value);const ye=Cy(Qe),fe=Cy(c.value),le=Cy(f.value);g.value=ye.length,m.value=fe.length,b.value=le.length,u.value=[].concat(fe).concat(ye).concat(le),o.value=c.value.length>0||f.value.length>0},O=(Qe,ye=!1)=>{Qe&&$(),ye?t.state.doLayout():t.state.debouncedUpdateLayout()},N=Qe=>w.value.includes(Qe),I=()=>{_.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},F=()=>{let Qe;if(r.value){Qe=[];const ye=Ru(w.value,r.value),fe=Ru(a.value,r.value);for(const le in ye)$t(ye,le)&&!fe[le]&&Qe.push(ye[le].row)}else Qe=w.value.filter(ye=>!a.value.includes(ye));if(Qe.length){const ye=w.value.filter(fe=>!Qe.includes(fe));w.value=ye,t.emit("selection-change",ye.slice())}},G=()=>(w.value||[]).slice(),U=(Qe,ye=void 0,fe=!0)=>{if(fv(w.value,Qe,ye)){const ke=(w.value||[]).slice();fe&&t.emit("select",ke,Qe),t.emit("selection-change",ke)}},J=()=>{var Qe,ye;const fe=S.value?!_.value:!(_.value||w.value.length);_.value=fe;let le=!1,ke=0;const ne=(ye=(Qe=t==null?void 0:t.store)==null?void 0:Qe.states)==null?void 0:ye.rowKey.value;a.value.forEach((Ve,st)=>{const It=st+ke;x.value?x.value.call(null,Ve,It)&&fv(w.value,Ve,fe)&&(le=!0):fv(w.value,Ve,fe)&&(le=!0),ke+=ee(gr(Ve,ne))}),le&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},ae=()=>{const Qe=Ru(w.value,r.value);a.value.forEach(ye=>{const fe=gr(ye,r.value),le=Qe[fe];le&&(w.value[le.index]=ye)})},Q=()=>{var Qe,ye,fe;if(((Qe=a.value)==null?void 0:Qe.length)===0){_.value=!1;return}let le;r.value&&(le=Ru(w.value,r.value));const ke=function(It){return le?!!le[gr(It,r.value)]:w.value.includes(It)};let ne=!0,Ve=0,st=0;for(let It=0,Vn=(a.value||[]).length;It<Vn;It++){const Xn=(fe=(ye=t==null?void 0:t.store)==null?void 0:ye.states)==null?void 0:fe.rowKey.value,ia=It+st,vr=a.value[It],be=x.value&&x.value.call(null,vr,ia);if(ke(vr))Ve++;else if(!x.value||be){ne=!1;break}st+=ee(gr(vr,Xn))}Ve===0&&(ne=!1),_.value=ne},ee=Qe=>{var ye;if(!t||!t.store)return 0;const{treeData:fe}=t.store.states;let le=0;const ke=(ye=fe.value[Qe])==null?void 0:ye.children;return ke&&(le+=ke.length,ke.forEach(ne=>{le+=ee(ne)})),le},te=(Qe,ye)=>{Array.isArray(Qe)||(Qe=[Qe]);const fe={};return Qe.forEach(le=>{T.value[le.id]=ye,fe[le.columnKey||le.id]=ye}),fe},q=(Qe,ye,fe)=>{A.value&&A.value!==Qe&&(A.value.order=null),A.value=Qe,k.value=ye,E.value=fe},de=()=>{let Qe=y(i);Object.keys(T.value).forEach(ye=>{const fe=T.value[ye];if(!fe||fe.length===0)return;const le=X6({columns:u.value},ye);le&&le.filterMethod&&(Qe=Qe.filter(ke=>fe.some(ne=>le.filterMethod.call(null,ne,ke,le))))}),M.value=Qe},ve=()=>{a.value=Qwe(M.value,{sortingColumn:A.value,sortProp:k.value,sortOrder:E.value})},ie=(Qe=void 0)=>{Qe&&Qe.filter||de(),ve()},W=Qe=>{const{tableHeaderRef:ye}=t.refs;if(!ye)return;const fe=Object.assign({},ye.filterPanels),le=Object.keys(fe);if(le.length)if(typeof Qe=="string"&&(Qe=[Qe]),Array.isArray(Qe)){const ke=Qe.map(ne=>Wwe({columns:u.value},ne));le.forEach(ne=>{const Ve=ke.find(st=>st.id===ne);Ve&&(Ve.filteredValue=[])}),t.store.commit("filterChange",{column:ke,values:[],silent:!0,multi:!0})}else le.forEach(ke=>{const ne=u.value.find(Ve=>Ve.id===ke);ne&&(ne.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Z=()=>{A.value&&(q(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:oe,toggleRowExpansion:pe,updateExpandRows:Se,states:me,isRowExpanded:Ee}=Xwe({data:a,rowKey:r}),{updateTreeExpandKeys:Ce,toggleTreeExpansion:we,updateTreeData:Te,loadOrToggle:Ne,states:Be}=Jwe({data:a,rowKey:r}),{updateCurrentRowData:We,updateCurrentRow:Ae,setCurrentRowKey:ze,states:rt}=Zwe({data:a,rowKey:r});return{assertRowKey:L,updateColumns:$,scheduleLayout:O,isSelected:N,clearSelection:I,cleanSelection:F,getSelectionRows:G,toggleRowSelection:U,_toggleAllSelection:J,toggleAllSelection:null,updateSelectionByRowKey:ae,updateAllSelected:Q,updateFilters:te,updateCurrentRow:Ae,updateSort:q,execFilter:de,execSort:ve,execQuery:ie,clearFilter:W,clearSort:Z,toggleRowExpansion:pe,setExpandRowKeysAdapter:Qe=>{oe(Qe),Ce(Qe)},setCurrentRowKey:ze,toggleRowExpansionAdapter:(Qe,ye)=>{u.value.some(({type:le})=>le==="expand")?pe(Qe,ye):we(Qe,ye)},isRowExpanded:Ee,updateExpandRows:Se,updateCurrentRowData:We,loadOrToggle:Ne,updateTreeData:Te,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:v,updateOrderFns:p,leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:b,isAllSelected:_,selection:w,reserveSelection:C,selectOnIndeterminate:S,selectable:x,filters:T,filteredData:M,sortingColumn:A,sortProp:k,sortOrder:E,hoverRow:D,...me,...Be,...rt}}}function vx(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=vx(n.children,t)),n)})}function px(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&px(t.children)}),e.sort((t,n)=>t.no-n.no)}function tSe(){const e=gt(),t=eSe();return{ns:Me("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=vx(c,l)):(c.push(s),f=c),px(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&&(px(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),Ue(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=vx(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 v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:f,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){Ue(()=>e.layout.updateScrollY.apply(e.layout))}}}const dv={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 nSe(e,t){if(!e)throw new Error("Table is required.");const n=tSe();return n.toggleAllSelection=Jr(n._toggleAllSelection,10),Object.keys(dv).forEach(r=>{e8(t8(t,r),r,n)}),rSe(n,t),n}function rSe(e,t){Object.keys(dv).forEach(n=>{xe(()=>t8(t,n),r=>{e8(r,n,e)})})}function e8(e,t,n){let r=e,a=dv[t];typeof dv[t]=="object"&&(a=a.key,r=r||dv[t].default),n.states[a].value=r}function t8(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 aSe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=H(null),this.scrollX=H(!1),this.scrollY=H(!1),this.bodyWidth=H(null),this.fixedWidth=H(null),this.rightFixedWidth=H(null),this.gutterWidth=0;for(const n in t)$t(t,n)&&(un(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(!Vt)return;const r=this.table.vnode.el;if(t=Uwe(t),this.height.value=Number(t),!r&&(t||t===0))return Ue(()=>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(!Vt)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 v=Math.floor(Number(d.minWidth||80)*c);f+=v,d.realWidth=Number(d.minWidth||80)+v}),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:iSe}=li,oSe=j({name:"ElTableFilterPanel",components:{ElCheckbox:li,ElCheckboxGroup:iSe,ElScrollbar:ds,ElTooltip:Qr,ElIcon:Ke,ArrowDown:Tl,ArrowUp:Ub},directives:{ClickOutside:vl},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=gt(),{t:n}=Ht(),r=Me("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=H(!1),o=H(null),s=P(()=>e.column&&e.column.filters),l=P({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=P({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),c=P(()=>e.column?e.column.filterMultiple:!0),f=w=>w.value===l.value,d=()=>{i.value=!1},h=w=>{w.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},p=()=>{b(u.value),d()},g=()=>{u.value=[],b(u.value),d()},m=w=>{l.value=w,b(typeof w<"u"&&w!==null?u.value:[]),d()},b=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};xe(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const _=P(()=>{var w,C;return(C=(w=o.value)==null?void 0:w.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:f,t:n,ns:r,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),sSe={key:0},lSe=["disabled"],uSe=["label","onClick"];function cSe(e,t,n,r,a,i){const o=ct("el-checkbox"),s=ct("el-checkbox-group"),l=ct("el-scrollbar"),u=ct("arrow-up"),c=ct("arrow-down"),f=ct("el-icon"),d=ct("el-tooltip"),h=$v("click-outside");return R(),ce(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:re(()=>[e.multiple?(R(),K("div",sSe,[Y("div",{class:V(e.ns.e("content"))},[X(l,{"wrap-class":e.ns.e("wrap")},{default:re(()=>[X(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:V(e.ns.e("checkbox-group"))},{default:re(()=>[(R(!0),K(je,null,Ot(e.filters,v=>(R(),ce(o,{key:v.value,label:v.value},{default:re(()=>[Ut(De(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),Y("div",{class:V(e.ns.e("bottom"))},[Y("button",{class:V({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},De(e.t("el.table.confirmFilter")),11,lSe),Y("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},De(e.t("el.table.resetFilter")),1)],2)])):(R(),K("ul",{key:1,class:V(e.ns.e("list"))},[Y("li",{class:V([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},De(e.t("el.table.clearFilter")),3),(R(!0),K(je,null,Ot(e.filters,v=>(R(),K("li",{key:v.value,class:V([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},De(v.text),11,uSe))),128))],2))]),default:re(()=>[dt((R(),K("span",{class:V([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[X(f,null,{default:re(()=>[e.column.filterOpened?(R(),ce(u,{key:0})):(R(),ce(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var fSe=Pe(oSe,[["render",cSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function n8(e){const t=gt();Pb(()=>{n.value.addObserver(t)}),yt(()=>{r(n.value),a(n.value)}),us(()=>{r(n.value),a(n.value)}),xl(()=>{n.value.removeObserver(t)});const n=P(()=>{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"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.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 ko=Symbol("ElTable");function dSe(e,t){const n=gt(),r=Ge(ko),a=p=>{p.stopPropagation()},i=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&a(p),r==null||r.emit("header-click",g,p)},o=(p,g)=>{r==null||r.emit("header-contextmenu",g,p)},s=H(null),l=H(!1),u=H({}),c=(p,g)=>{if(Vt&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=r;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${g.id}`),C=w.getBoundingClientRect(),S=C.left-_+30;so(w,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:C.right-_,startColumnLeft:C.left-_,tableLeft:_};const x=m==null?void 0:m.refs.resizeProxy;x.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=A=>{const k=A.clientX-u.value.startMouseLeft,E=u.value.startLeft+k;x.style.left=`${Math.max(S,E)}px`},M=()=>{if(l.value){const{startColumnLeft:A,startLeft:k}=u.value,D=Number.parseInt(x.style.left,10)-A;g.width=g.realWidth=D,m==null||m.emit("header-dragend",g.width,k-A,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{pa(w,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",M)}},f=(p,g)=>{if(g.children&&g.children.length>0)return;const m=p.target;if(!ri(m))return;const b=m==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=b.getBoundingClientRect(),w=document.body.style;_.width>12&&_.right-p.pageX<8?(w.cursor="col-resize",Pi(b,"is-sortable")&&(b.style.cursor="col-resize"),s.value=g):l.value||(w.cursor="",Pi(b,"is-sortable")&&(b.style.cursor="pointer"),s.value=null)}},d=()=>{Vt&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},v=(p,g,m)=>{var b;p.stopPropagation();const _=g.order===m?null:m||h(g),w=(b=p.target)==null?void 0:b.closest("th");if(w&&Pi(w,"noclick")){pa(w,"noclick");return}if(!g.sortable)return;const C=e.store.states;let S=C.sortProp.value,x;const T=C.sortingColumn.value;(T!==g||T===g&&T.order===null)&&(T&&(T.order=null),C.sortingColumn.value=g,S=g.property),_?x=g.order=_:x=g.order=null,C.sortProp.value=S,C.sortOrder.value=x,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:a}}function hSe(e){const t=Ge(ko),n=Me("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=nk(l,c.fixed,e.store,u);return ld(h,"left"),ld(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=tk(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(v=>!!v).join(" ")}}}const r8=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,r8(n.children))):t.push(n)}),t},vSe=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 r8(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 pSe(e){const t=Ge(ko),n=P(()=>vSe(e.store.states.originColumns.value));return{isGroup:P(()=>{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 gSe=j({name:"ElTableHeader",components:{ElCheckbox:li},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=gt(),r=Ge(ko),a=Me("table"),i=H({}),{onColumnsChange:o,onScrollableChange:s}=n8(r);yt(async()=>{await Ue(),await Ue();const{prop:S,order:x}=e.defaultSort;r==null||r.store.commit("sort",{prop:S,order:x,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=dSe(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:b}=hSe(e),{isGroup:_,toggleAllSelection:w,columnRows:C}=pSe(e);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:C,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:b,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,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:v}=this;let p=1;return Ze("thead",{class:{[e.is("group")]:t}},n.map((g,m)=>Ze("tr",{class:i(m),key:m,style:o(m)},g.map((b,_)=>(b.rowSpan>p&&(p=b.rowSpan),Ze("th",{class:a(m,_,g,b),colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:r(m,_,g,b),onClick:w=>s(w,b),onContextmenu:w=>l(w,b),onMousedown:w=>u(w,b),onMousemove:w=>c(w,b),onMouseout:d},[Ze("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:_,store:h,_self:v}):b.label,b.sortable&&Ze("span",{onClick:w=>f(w,b),class:"caret-wrapper"},[Ze("i",{onClick:w=>f(w,b,"ascending"),class:"sort-caret ascending"}),Ze("i",{onClick:w=>f(w,b,"descending"),class:"sort-caret descending"})]),b.filterable&&Ze(fSe,{store:h,placement:b.filterPlacement||"bottom-start",column:b,upDataColumn:(w,C)=>{b[w]=C}})])]))))))}});function mSe(e){const t=Ge(ko),n=H(""),r=H(Ze("div")),{nextZIndex:a}=Ad(),i=(v,p,g)=>{var m;const b=t,_=L_(v);let w;const C=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;_&&(w=sL({columns:e.store.states.columns.value},_,C),w&&(b==null||b.emit(`cell-${g}`,p,w,_,v))),b==null||b.emit(`row-${g}`,p,w,v)},o=(v,p)=>{i(v,p,"dblclick")},s=(v,p)=>{e.store.commit("setCurrentRow",p),i(v,p,"click")},l=(v,p)=>{i(v,p,"contextmenu")},u=Jr(v=>{e.store.commit("setHoverRow",v)},30),c=Jr(()=>{e.store.commit("setHoverRow",null)},30),f=v=>{const p=window.getComputedStyle(v,null),g=Number.parseInt(p.paddingLeft,10)||0,m=Number.parseInt(p.paddingRight,10)||0,b=Number.parseInt(p.paddingTop,10)||0,_=Number.parseInt(p.paddingBottom,10)||0;return{left:g,right:m,top:b,bottom:_}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(v,p,g)=>{var m;const b=t,_=L_(v),w=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;if(_){const O=sL({columns:e.store.states.columns.value},_,w),N=b.hoverState={cell:_,column:O,row:p};b==null||b.emit("cell-mouse-enter",N.row,N.column,N.cell,v)}if(!g)return;const C=v.target.querySelector(".cell");if(!(Pi(C,`${w}-tooltip`)&&C.childNodes.length))return;const S=document.createRange();S.setStart(C,0),S.setEnd(C,C.childNodes.length);let x=S.getBoundingClientRect().width,T=S.getBoundingClientRect().height;x-Math.floor(x)<.001&&(x=Math.floor(x)),T-Math.floor(T)<.001&&(T=Math.floor(T));const{top:k,left:E,right:D,bottom:L}=f(C),B=E+D,$=k+L;(x+B>C.offsetWidth||T+$>C.offsetHeight||C.scrollWidth>C.offsetWidth)&&qwe(t==null?void 0:t.refs.tableWrapper,_,_.innerText||_.textContent,a,g)},handleCellMouseLeave:v=>{if(!L_(v))return;const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,v)},tooltipContent:n,tooltipTrigger:r}}function ySe(e){const t=Ge(ko),n=Me("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 v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=nk(c,e==null?void 0:e.fixed,e.store);return ld(p,"left"),ld(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=tk(n.b(),c,e==null?void 0:e.fixed,e.store,void 0,h),p=[d.id,d.align,d.className,...v],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),p.push(n.e("cell")),p.filter(m=>!!m).join(" ")},getSpan:(u,c,f,d)=>{let h=1,v=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const g=p({row:u,column:c,rowIndex:f,columnIndex:d});Array.isArray(g)?(h=g[0],v=g[1]):typeof g=="object"&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(f,f+c);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function bSe(e){const t=Ge(ko),n=Me("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=mSe(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=ySe(e),b=P(()=>e.store.states.columns.value.findIndex(({type:x})=>x==="default")),_=(x,T)=>{const M=t.props.rowKey;return M?gr(x,M):T},w=(x,T,M,A=!1)=>{const{tooltipEffect:k,tooltipOptions:E,store:D}=e,{indent:L,columns:B}=D.states,$=h(x,T);let O=!0;return M&&($.push(n.em("row",`level-${M.level}`)),O=M.display),Ze("tr",{style:[O?null:{display:"none"},d(x,T)],class:$,key:_(x,T),onDblclick:I=>r(I,x),onClick:I=>a(I,x),onContextmenu:I=>i(I,x),onMouseenter:()=>o(T),onMouseleave:s},B.value.map((I,F)=>{const{rowspan:G,colspan:U}=g(x,I,T,F);if(!G||!U)return null;const J=Object.assign({},I);J.realWidth=m(B.value,U,F);const ae={store:e.store,_self:e.context||t,column:J,row:x,$index:T,cellIndex:F,expanded:A};F===b.value&&M&&(ae.treeNode={indent:M.level*L.value,level:M.level},typeof M.expanded=="boolean"&&(ae.treeNode.expanded=M.expanded,"loading"in M&&(ae.treeNode.loading=M.loading),"noLazyChildren"in M&&(ae.treeNode.noLazyChildren=M.noLazyChildren)));const Q=`${T},${F}`,ee=J.columnKey||J.rawColumnKey||"",te=C(F,I,ae),q=I.showOverflowTooltip&&L5({effect:k},E,I.showOverflowTooltip);return Ze("td",{style:v(T,F,x,I),class:p(T,F,x,I,U-1),key:`${ee}${Q}`,rowspan:G,colspan:U,onMouseenter:de=>l(de,x,q),onMouseleave:u},[te])}))},C=(x,T,M)=>T.renderCell(M);return{wrappedRowRender:(x,T)=>{const M=e.store,{isRowExpanded:A,assertRowKey:k}=M,{treeData:E,lazyTreeNodeMap:D,childrenColumnName:L,rowKey:B}=M.states,$=M.states.columns.value;if($.some(({type:N})=>N==="expand")){const N=A(x),I=w(x,T,void 0,N),F=t.renderExpanded;return N?F?[[I,Ze("tr",{key:`expanded-row__${I.key}`},[Ze("td",{colspan:$.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[F({row:x,$index:T,store:M,expanded:N})])])]]:(console.error("[Element Error]renderExpanded is required."),I):[[I]]}else if(Object.keys(E.value).length){k();const N=gr(x,B.value);let I=E.value[N],F=null;I&&(F={expanded:I.expanded,level:I.level,display:!0},typeof I.lazy=="boolean"&&(typeof I.loaded=="boolean"&&I.loaded&&(F.noLazyChildren=!(I.children&&I.children.length)),F.loading=I.loading));const G=[w(x,T,F)];if(I){let U=0;const J=(Q,ee)=>{Q&&Q.length&&ee&&Q.forEach(te=>{const q={display:ee.display&&ee.expanded,level:ee.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=gr(te,B.value);if(de==null)throw new Error("For nested data item, row-key is required.");if(I={...E.value[de]},I&&(q.expanded=I.expanded,I.level=I.level||q.level,I.display=!!(I.expanded&&q.display),typeof I.lazy=="boolean"&&(typeof I.loaded=="boolean"&&I.loaded&&(q.noLazyChildren=!(I.children&&I.children.length)),q.loading=I.loading)),U++,G.push(w(te,T+U,q)),I){const ve=D.value[de]||te[L.value];J(ve,I)}})};I.display=!0;const ae=D.value[N]||x[L.value];J(ae,I)}return G}else return w(x,T,void 0)},tooltipContent:c,tooltipTrigger:f}}const _Se={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 wSe=j({name:"ElTableBody",props:_Se,setup(e){const t=gt(),n=Ge(ko),r=Me("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=bSe(e),{onColumnsChange:s,onScrollableChange:l}=n8(n);return xe(e.store.states.hoverRow,(u,c)=>{!e.store.states.isComplex.value||!Vt||ed(()=>{const f=t==null?void 0:t.vnode.el,d=Array.from((f==null?void 0:f.children)||[]).filter(p=>p==null?void 0:p.classList.contains(`${r.e("row")}`)),h=d[c],v=d[u];h&&pa(h,"hover-row"),v&&so(v,"hover-row")})}),xl(()=>{var u;(u=Oo)==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 Ze("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function rk(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 Ze("colgroup",{},n.map(a=>Ze("col",r(a))))}rk.props=["columns","tableLayout"];function SSe(){const e=Ge(ko),t=e==null?void 0:e.store,n=P(()=>t.states.fixedLeafColumnsLength.value),r=P(()=>t.states.rightFixedColumns.value.length),a=P(()=>t.states.columns.value.length),i=P(()=>t.states.fixedColumns.value.length),o=P(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function CSe(e){const{columns:t}=SSe(),n=Me("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...tk(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=nk(o,i.fixed,e.store);return ld(s,"left"),ld(s,"right"),s},columns:t}}var xSe=j({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}=CSe(e);return{ns:Me("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(v=>Number(v[l.property])),f=[];let d=!0;c.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];f.push(p?p.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),Ze("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[rk({columns:e}),Ze("tbody",[Ze("tr",{},[...e.map((l,u)=>Ze("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[Ze("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function TSe(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 MSe(e,t,n,r){const a=H(!1),i=H(null),o=H(!1),s=I=>{o.value=I},l=H({width:null,height:null,headerHeight:null}),u=H(!1),c={display:"inline-block",verticalAlign:"middle"},f=H(),d=H(0),h=H(0),v=H(0),p=H(0),g=H(0);Ia(()=>{t.setHeight(e.height)}),Ia(()=>{t.setMaxHeight(e.maxHeight)}),xe(()=>[e.currentRowKey,n.states.rowKey],([I,F])=>{!y(F)||!y(I)||n.setCurrentRowKey(`${I}`)},{immediate:!0}),xe(()=>e.data,I=>{r.store.commit("setData",I)},{immediate:!0,deep:!0}),Ia(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},b=(I,F)=>{const{pixelX:G,pixelY:U}=F;Math.abs(G)>=Math.abs(U)&&(r.refs.bodyWrapper.scrollLeft+=F.pixelX/5)},_=P(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=P(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),C=()=>{_.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(M)};yt(async()=>{await Ue(),n.updateColumns(),A(),requestAnimationFrame(C);const I=r.vnode.el,F=r.refs.headerWrapper;e.flexible&&I&&I.parentElement&&(I.parentElement.style.minWidth="0"),l.value={width:f.value=I.offsetWidth,height:I.offsetHeight,headerHeight:e.showHeader&&F?F.offsetHeight:null},n.states.columns.value.forEach(G=>{G.filteredValue&&G.filteredValue.length&&r.store.commit("filterChange",{column:G,values:G.filteredValue,silent:!0})}),r.$ready=!0});const S=(I,F)=>{if(!I)return;const G=Array.from(I.classList).filter(U=>!U.startsWith("is-scrolling-"));G.push(t.scrollX.value?F:"is-scrolling-none"),I.className=G.join(" ")},x=I=>{const{tableWrapper:F}=r.refs;S(F,I)},T=I=>{const{tableWrapper:F}=r.refs;return!!(F&&F.classList.contains(I))},M=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const ee="is-scrolling-none";T(ee)||x(ee);return}const I=r.refs.scrollBarRef.wrapRef;if(!I)return;const{scrollLeft:F,offsetWidth:G,scrollWidth:U}=I,{headerWrapper:J,footerWrapper:ae}=r.refs;J&&(J.scrollLeft=F),ae&&(ae.scrollLeft=F);const Q=U-G-1;F>=Q?x("is-scrolling-right"):x(F===0?"is-scrolling-left":"is-scrolling-middle")},A=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&yn(r.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?Or(r.vnode.el,k):yn(window,"resize",k),Or(r.refs.bodyWrapper,()=>{var I,F;k(),(F=(I=r.refs)==null?void 0:I.scrollBarRef)==null||F.update()}))},k=()=>{var I,F,G,U;const J=r.vnode.el;if(!r.$ready||!J)return;let ae=!1;const{width:Q,height:ee,headerHeight:te}=l.value,q=f.value=J.offsetWidth;Q!==q&&(ae=!0);const de=J.offsetHeight;(e.height||_.value)&&ee!==de&&(ae=!0);const ve=e.tableLayout==="fixed"?r.refs.headerWrapper:(I=r.refs.tableHeaderRef)==null?void 0:I.$el;e.showHeader&&(ve==null?void 0:ve.offsetHeight)!==te&&(ae=!0),d.value=((F=r.refs.tableWrapper)==null?void 0:F.scrollHeight)||0,v.value=(ve==null?void 0:ve.scrollHeight)||0,p.value=((G=r.refs.footerWrapper)==null?void 0:G.offsetHeight)||0,g.value=((U=r.refs.appendWrapper)==null?void 0:U.offsetHeight)||0,h.value=d.value-v.value-p.value-g.value,ae&&(l.value={width:q,height:de,headerHeight:e.showHeader&&(ve==null?void 0:ve.offsetHeight)||0},C())},E=jn(),D=P(()=>{const{bodyWidth:I,scrollY:F,gutterWidth:G}=t;return I.value?`${I.value-(F.value?G:0)}px`:""}),L=P(()=>e.maxHeight?"fixed":e.tableLayout),B=P(()=>{if(e.data&&e.data.length)return null;let I="100%";e.height&&h.value&&(I=`${h.value}px`);const F=f.value;return{width:F?`${F}px`:"",height:I}}),$=P(()=>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`}:{}),O=P(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`}:{maxHeight:`${e.maxHeight-v.value-p.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:m,handleHeaderFooterMousewheel:b,tableSize:E,emptyBlockStyle:B,handleFixedMousewheel:(I,F)=>{const G=r.refs.bodyWrapper;if(Math.abs(F.spinY)>0){const U=G.scrollTop;F.pixelY<0&&U!==0&&I.preventDefault(),F.pixelY>0&&G.scrollHeight-G.clientHeight>U&&I.preventDefault(),G.scrollTop+=Math.ceil(F.pixelY/5)}else G.scrollLeft+=Math.ceil(F.pixelX/5)},resizeProxyVisible:o,bodyWidth:D,resizeState:l,doLayout:C,tableBodyStyles:w,tableLayout:L,scrollbarViewStyle:c,tableInnerStyle:$,scrollbarStyle:O}}function kSe(e){const t=H(),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)};yt(()=>{n()}),xl(()=>{var r;(r=t.value)==null||r.disconnect()})}var ASe={data:{type:Array,default:()=>[]},size:wr,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,showOverflowTooltip:[Boolean,Object]};const ESe=()=>{const e=H(),t=(i,o)=>{const s=e.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=e.value;s&&at(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 ISe=1;const DSe=j({name:"ElTable",directives:{Mousewheel:pfe},components:{TableHeader:gSe,TableBody:wSe,TableFooter:xSe,ElScrollbar:ds,hColgroup:rk},props:ASe,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}=Ht(),n=Me("table"),r=gt();Et(ko,r);const a=nSe(r,e);r.store=a;const i=new aSe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const o=P(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=TSe(a),{isHidden:g,renderExpanded:m,setDragVisible:b,isGroup:_,handleMouseLeave:w,handleHeaderFooterMousewheel:C,tableSize:S,emptyBlockStyle:x,handleFixedMousewheel:T,resizeProxyVisible:M,bodyWidth:A,resizeState:k,doLayout:E,tableBodyStyles:D,tableLayout:L,scrollbarViewStyle:B,tableInnerStyle:$,scrollbarStyle:O}=MSe(e,i,a,r),{scrollBarRef:N,scrollTo:I,setScrollLeft:F,setScrollTop:G}=ESe(),U=Jr(E,50),J=`${n.namespace.value}-table_${ISe++}`;r.tableId=J,r.state={isGroup:_,resizeState:k,doLayout:E,debouncedUpdateLayout:U};const ae=P(()=>e.sumText||t("el.table.sumText")),Q=P(()=>e.emptyText||t("el.table.emptyText"));return kSe(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:C,handleMouseLeave:w,tableId:J,tableSize:S,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:M,resizeState:k,isGroup:_,bodyWidth:A,tableBodyStyles:D,emptyBlockStyle:x,debouncedUpdateLayout:U,handleFixedMousewheel:T,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:E,sort:p,t,setDragVisible:b,context:r,computedSumText:ae,computedEmptyText:Q,tableLayout:L,scrollbarViewStyle:B,tableInnerStyle:$,scrollbarStyle:O,scrollBarRef:N,scrollTo:I,setScrollLeft:F,setScrollTop:G}}}),PSe=["data-prefix"],LSe={ref:"hiddenColumns",class:"hidden-columns"};function RSe(e,t,n,r,a,i){const o=ct("hColgroup"),s=ct("table-header"),l=ct("table-body"),u=ct("el-scrollbar"),c=ct("table-footer"),f=$v("mousewheel");return R(),K("div",{ref:"tableWrapper",class:V([{[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:Ye(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[Y("div",{class:V(e.ns.e("inner-wrapper")),style:Ye(e.tableInnerStyle)},[Y("div",LSe,[_e(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?dt((R(),K("div",{key:0,ref:"headerWrapper",class:V(e.ns.e("header-wrapper"))},[Y("table",{ref:"tableHeader",class:V(e.ns.e("header")),style:Ye(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[X(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),X(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]]):se("v-if",!0),Y("div",{ref:"bodyWrapper",class:V(e.ns.e("body-wrapper"))},[X(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:re(()=>[Y("table",{ref:"tableBody",class:V(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ye({width:e.bodyWidth,tableLayout:e.tableLayout})},[X(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(R(),ce(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"])):se("v-if",!0),X(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?(R(),K("div",{key:0,ref:"emptyBlock",style:Ye(e.emptyBlockStyle),class:V(e.ns.e("empty-block"))},[Y("span",{class:V(e.ns.e("empty-text"))},[_e(e.$slots,"empty",{},()=>[Ut(De(e.computedEmptyText),1)])],2)],6)):se("v-if",!0),e.$slots.append?(R(),K("div",{key:1,ref:"appendWrapper",class:V(e.ns.e("append-wrapper"))},[_e(e.$slots,"append")],2)):se("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?dt((R(),K("div",{key:1,ref:"footerWrapper",class:V(e.ns.e("footer-wrapper"))},[X(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Ye(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Kt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):se("v-if",!0),e.border||e.isGroup?(R(),K("div",{key:2,class:V(e.ns.e("border-left-patch"))},null,2)):se("v-if",!0)],6),dt(Y("div",{ref:"resizeProxy",class:V(e.ns.e("column-resize-proxy"))},null,2),[[Kt,e.resizeProxyVisible]])],46,PSe)}var OSe=Pe(DSe,[["render",RSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const NSe={selection:"table-column--selection",expand:"table__expand-column"},$Se={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:""}},BSe=e=>NSe[e]||"",VSe={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Ze(li,{disabled:n(),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,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return Ze(li,{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),ariaLabel:t.label})},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)),Ze("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")),Ze("div",{class:a,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ze(Ke,null,{default:()=>[Ze(Yr)]})]})},sortable:!1,resizable:!1}};function FSe({row:e,column:t,$index:n}){var r;const a=t.property,i=a&&uy(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 zSe({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[Ze("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(Ze("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=Yr;t.loading&&(l=kl),i.push(Ze("div",{class:s,onClick:o},{default:()=>[Ze(Ke,{class:{[a.is("loading")]:t.loading}},{default:()=>[Ze(l)]})]}))}else i.push(Ze("span",{class:a.e("placeholder")}));return i}function cL(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function HSe(e,t){const n=gt();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=cL(i,o);Object.keys(s).forEach(l=>{const u=o[l];$t(t,u)&&xe(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=ek(c)),u==="minWidth"&&l==="realMinWidth"&&(f=Z6(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","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=cL(i,o);Object.keys(s).forEach(l=>{const u=o[l];$t(t,u)&&xe(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function GSe(e,t,n){const r=gt(),a=H(""),i=H(!1),o=H(),s=H(),l=Me("table");Ia(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),Ia(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=P(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),c=P(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:C}=w.states,S=C.value;return S&&Object.keys(S).length>0}),f=H(ek(e.width)),d=H(Z6(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),v=w=>{const C=w.type,S=VSe[C]||{};Object.keys(S).forEach(T=>{const M=S[T];T!=="className"&&M!==void 0&&(w[T]=M)});const x=BSe(C);if(x){const T=`${y(l.namespace)}-${x}`;w.className=w.className?`${w.className} ${T}`:T}return w},p=w=>{Array.isArray(w)?w.forEach(S=>C(S)):C(w);function C(S){var x;((x=S==null?void 0:S.type)==null?void 0:x.name)==="ElTableColumn"&&(S.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=S=>{r.columnConfig.value.label;const x=t.header;return x?x(S):w.label});let C=w.renderCell;return w.type==="expand"?(w.renderCell=S=>Ze("div",{class:"cell"},[C(S)]),n.value.renderExpanded=S=>t.default?t.default(S):t.default):(C=C||FSe,w.renderCell=S=>{let x=null;if(t.default){const D=t.default(S);x=D.some(L=>L.type!==Ur)?D:C(S)}else x=C(S);const{columns:T}=n.value.store.states,M=T.value.findIndex(D=>D.type==="default"),A=c.value&&S.cellIndex===M,k=zSe(S,A),E={class:"cell",style:{}};return w.showOverflowTooltip&&(E.class=`${E.class} ${y(l.namespace)}-tooltip`,E.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),p(x),Ze("div",E,[k,x])}),w},getPropsData:(...w)=>w.reduce((C,S)=>(Array.isArray(S)&&S.forEach(x=>{C[x]=e[x]}),C),{}),getColumnElIndex:(w,C)=>Array.prototype.indexOf.call(w,C),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var WSe={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:{type:[Boolean,Object],default:void 0},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 KSe=1;var a8=j({name:"ElTableColumn",components:{ElCheckbox:li},props:WSe,setup(e,{slots:t}){const n=gt(),r=H({}),a=P(()=>{let _=n.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:i,registerComplexWatchers:o}=HSe(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=GSe(e,t,a),b=c.value;s.value=`${b.tableId||b.columnId}_column_${KSe++}`,Pb(()=>{l.value=a.value!==b;const _=e.type||"default",w=e.sortable===""?!0:e.sortable,C=Qn(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,S={...$Se[_],id:s.value,type:_,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:C,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:n.vnode.key};let k=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);k=Kwe(S,k),k=Ywe(h,f,d)(k),r.value=k,i(),o()}),yt(()=>{var _;const w=c.value,C=l.value?w.vnode.el.children:(_=w.refs.hiddenColumns)==null?void 0:_.children,S=()=>p(C||[],n.vnode.el);r.value.getColumnIndex=S,S()>-1&&a.value.store.commit("insertColumn",r.value,l.value?w.columnConfig.value:null,m)}),_n(()=>{a.value.store.commit("removeColumn",r.value,l.value?b.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===je&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!lt(s==null?void 0:s.children)&&a.push(s)});return Ze("div",a)}catch{return Ze("div",[])}}});const USe=_t(OSe,{TableColumn:a8}),YSe=In(a8);var ip=(e=>(e.ASC="asc",e.DESC="desc",e))(ip||{}),op=(e=>(e.CENTER="center",e.RIGHT="right",e))(op||{}),i8=(e=>(e.LEFT="left",e.RIGHT="right",e))(i8||{});const gx={asc:"desc",desc:"asc"},sp=Symbol("placeholder"),jSe=(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 qSe(e,t,n){const r=P(()=>y(t).filter(p=>!p.hidden)),a=P(()=>y(r).filter(p=>p.fixed==="left"||p.fixed===!0)),i=P(()=>y(r).filter(p=>p.fixed==="right")),o=P(()=>y(r).filter(p=>!p.fixed)),s=P(()=>{const p=[];return y(a).forEach(g=>{p.push({...g,placeholderSign:sp})}),y(o).forEach(g=>{p.push(g)}),y(i).forEach(g=>{p.push({...g,placeholderSign:sp})}),p}),l=P(()=>y(a).length||y(i).length),u=P(()=>y(t).reduce((g,m)=>(g[m.key]=jSe(m,y(n),e.fixed),g),{})),c=P(()=>y(r).reduce((p,g)=>p+g.width,0)),f=p=>y(t).find(g=>g.key===p),d=p=>y(u)[p],h=(p,g)=>{p.width=g};function v(p){var g;const{key:m}=p.currentTarget.dataset;if(!m)return;const{sortState:b,sortBy:_}=e;let w=ip.ASC;Mt(b)?w=gx[b[m]]:w=gx[_.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:v}}const XSe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=H({scrollLeft:0,scrollTop:0});function o(h){var v,p,g;const{scrollTop:m}=h;(v=t.value)==null||v.scrollTo(h),(p=n.value)==null||p.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 v,p;i.value.scrollLeft=h,(p=(v=t.value)==null?void 0:v.scrollTo)==null||p.call(v,y(i))}function c(h){var v;s(h),(v=e.onScroll)==null||v.call(e,h)}function f({scrollTop:h}){const{scrollTop:v}=y(i);h!==v&&l(h)}function d(h,v="auto"){var p;(p=t.value)==null||p.scrollToRow(h,v)}return xe(()=>y(i).scrollTop,(h,v)=>{h>v&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},ZSe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const a=gt(),{emit:i}=a,o=ln(!1),s=ln(null),l=H(e.defaultExpandedRowKeys||[]),u=H(-1),c=ln(null),f=H({}),d=H({}),h=ln({}),v=ln({}),p=ln({}),g=P(()=>at(e.estimatedRowHeight));function m(T){var M;(M=e.onRowsRendered)==null||M.call(e,T),T.rowCacheEnd>y(u)&&(u.value=T.rowCacheEnd)}function b({hovered:T,rowKey:M}){s.value=T?M:null}function _({expanded:T,rowData:M,rowIndex:A,rowKey:k}){var E,D;const L=[...y(l)],B=L.indexOf(k);T?B===-1&&L.push(k):B>-1&&L.splice(B,1),l.value=L,i("update:expandedRowKeys",L),(E=e.onRowExpand)==null||E.call(e,{expanded:T,rowData:M,rowIndex:A,rowKey:k}),(D=e.onExpandedRowsChange)==null||D.call(e,L)}const w=Jr(()=>{var T,M,A,k;o.value=!0,f.value={...y(f),...y(d)},C(y(c),!1),d.value={},c.value=null,(T=t.value)==null||T.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(A=r.value)==null||A.forceUpdate(),(k=a.proxy)==null||k.$forceUpdate(),o.value=!1},0);function C(T,M=!1){y(g)&&[t,n,r].forEach(A=>{const k=y(A);k&&k.resetAfterRowIndex(T,M)})}function S(T,M,A){const k=y(c);(k===null||k>A)&&(c.value=A),d.value[T]=M}function x({rowKey:T,height:M,rowIndex:A},k){k?k===i8.RIGHT?p.value[T]=M:h.value[T]=M:v.value[T]=M;const E=Math.max(...[h,p,v].map(D=>D.value[T]||0));y(f)[T]!==E&&(S(T,E,A),w())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:C,onRowExpanded:_,onRowHovered:b,onRowsRendered:m,onRowHeightChange:x}},JSe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=H({}),i=P(()=>{const s={},{data:l,rowKey:u}=e,c=y(t);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(v=>d.add(v));let h=l.slice();for(h.forEach(v=>s[v[u]]=0);h.length>0;){const v=h.shift();f.push(v),d.has(v[u])&&Array.isArray(v.children)&&v.children.length>0&&(h=[...v.children,...h],v.children.forEach(p=>s[p[u]]=s[v[u]]+1))}return a.value=s,f}),o=P(()=>{const{data:s,expandColumnKey:l}=e;return l?y(i):s});return xe(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},QSe=(e,t)=>e+t,xy=e=>He(e)?e.reduce(QSe,0):e,lc=(e,t,n={})=>it(e)?e(t):e??n,Gs=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Rn(e[t])}),e),o8=e=>xn(e)?t=>Ze(e,t):e,eCe=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=P(()=>{const{fixed:_,width:w,vScrollbarSize:C}=e,S=w-C;return _?Math.max(Math.round(y(t)),S):S}),o=P(()=>y(i)+(e.fixed?e.vScrollbarSize:0)),s=P(()=>{const{height:_=0,maxHeight:w=0,footerHeight:C,hScrollbarSize:S}=e;if(w>0){const x=y(v),T=y(l),A=y(h)+x+T+S;return Math.min(A,w-C)}return _-C}),l=P(()=>{const{rowHeight:_,estimatedRowHeight:w}=e,C=y(n);return at(w)?C.length*w:C.length*_}),u=P(()=>{const{maxHeight:_}=e,w=y(s);if(at(_)&&_>0)return w;const C=y(l)+y(h)+y(v);return Math.min(w,C)}),c=_=>_.width,f=P(()=>xy(y(r).map(c))),d=P(()=>xy(y(a).map(c))),h=P(()=>xy(e.headerHeight)),v=P(()=>{var _;return(((_=e.fixedData)==null?void 0:_.length)||0)*e.rowHeight}),p=P(()=>y(s)-y(h)-y(v)),g=P(()=>{const{style:_={},height:w,width:C}=e;return Gs({..._,height:w,width:C})}),m=P(()=>Gs({height:e.footerHeight})),b=P(()=>({top:Rn(y(h)),bottom:Rn(e.footerHeight),width:Rn(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:p,footerHeight:m,emptyStyle:b,rootStyle:g,headerHeight:h}},tCe=e=>{const t=H(),n=H(0),r=H(0);let a;return yt(()=>{a=Or(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,v=Number.parseInt(c)||0,p=Number.parseInt(f)||0;n.value=o-d-h,r.value=s-v-p}).stop}),_n(()=>{a==null||a()}),xe([n,r],([i,o])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:o})}),{sizer:t,width:n,height:r}};function nCe(e){const t=H(),n=H(),r=H(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=qSe(e,Mn(e,"columns"),Mn(e,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m,scrollPos:b}=XSe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:W}),{expandedRowKeys:_,hoveringRowKey:w,lastRenderedRowIndex:C,isDynamic:S,isResetting:x,rowHeights:T,resetAfterIndex:M,onRowExpanded:A,onRowHeightChange:k,onRowHovered:E,onRowsRendered:D}=ZSe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:L,depthMap:B}=JSe(e,{expandedRowKeys:_,lastRenderedRowIndex:C,resetAfterIndex:M}),{bodyWidth:$,fixedTableHeight:O,mainTableHeight:N,leftTableWidth:I,rightTableWidth:F,headerWidth:G,rowsHeight:U,windowHeight:J,footerHeight:ae,emptyStyle:Q,rootStyle:ee,headerHeight:te}=eCe(e,{columnsTotalWidth:o,data:L,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),q=ln(!1),de=H(),ve=P(()=>{const Z=y(L).length===0;return He(e.fixedData)?e.fixedData.length===0&&Z:Z});function ie(Z){const{estimatedRowHeight:oe,rowHeight:pe,rowKey:Se}=e;return oe?y(T)[y(L)[Z][Se]]||oe:pe}function W(){const{onEndReached:Z}=e;if(!Z)return;const{scrollTop:oe}=y(b),pe=y(U),Se=y(J),me=pe-(oe+Se)+e.hScrollbarSize;y(C)>=0&&pe===oe+y(N)-y(te)&&Z(me)}return xe(()=>e.expandedRowKeys,Z=>_.value=Z,{deep:!0}),{columns:a,containerRef:de,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:S,isResetting:x,isScrolling:q,hoveringRowKey:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:L,expandedRowKeys:_,depthMap:B,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:$,emptyStyle:Q,rootStyle:ee,headerWidth:G,footerHeight:ae,mainTableHeight:N,fixedTableHeight:O,leftTableWidth:I,rightTableWidth:F,showEmpty:ve,getRowHeight:ie,onColumnSorted:f,onRowHovered:E,onRowExpanded:A,onRowsRendered:D,onRowHeightChange:k,scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m}}const ak=Symbol("tableV2"),s8=String,rg={type:ue(Array),required:!0},ik={type:ue(Array)},l8={...ik,required:!0},rCe=String,fL={type:ue(Array),default:()=>Sn([])},xu={type:Number,required:!0},u8={type:ue([String,Number,Symbol]),default:"id"},dL={type:ue(Object)},Ou=Le({class:String,columns:rg,columnsStyles:{type:ue(Object),required:!0},depth:Number,expandColumnKey:rCe,estimatedRowHeight:{...ju.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ue(Function)},onRowHover:{type:ue(Function)},onRowHeightChange:{type:ue(Function)},rowData:{type:ue(Object),required:!0},rowEventHandlers:{type:ue(Object)},rowIndex:{type:Number,required:!0},rowKey:u8,style:{type:ue(Object)}}),R_={type:Number,required:!0},ok=Le({class:String,columns:rg,fixedHeaderData:{type:ue(Array)},headerData:{type:ue(Array),required:!0},headerHeight:{type:ue([Number,Array]),default:50},rowWidth:R_,rowHeight:{type:Number,default:50},height:R_,width:R_}),Ty=Le({columns:rg,data:l8,fixedData:ik,estimatedRowHeight:Ou.estimatedRowHeight,width:xu,height:xu,headerWidth:xu,headerHeight:ok.headerHeight,bodyWidth:xu,rowHeight:xu,cache:L6.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:ju.scrollbarAlwaysOn,scrollbarStartGap:ju.scrollbarStartGap,scrollbarEndGap:ju.scrollbarEndGap,class:s8,style:dL,containerStyle:dL,getRowHeight:{type:ue(Function),required:!0},rowKey:Ou.rowKey,onRowsRendered:{type:ue(Function)},onScroll:{type:ue(Function)}}),aCe=Le({cache:Ty.cache,estimatedRowHeight:Ou.estimatedRowHeight,rowKey:u8,headerClass:{type:ue([String,Function])},headerProps:{type:ue([Object,Function])},headerCellProps:{type:ue([Object,Function])},headerHeight:ok.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ue([String,Function])},rowProps:{type:ue([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ue([Object,Function])},columns:rg,data:l8,dataGetter:{type:ue(Function)},fixedData:ik,expandColumnKey:Ou.expandColumnKey,expandedRowKeys:fL,defaultExpandedRowKeys:fL,class:s8,fixed:Boolean,style:{type:ue(Object)},width:xu,height:xu,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:ju.hScrollbarSize,vScrollbarSize:ju.vScrollbarSize,scrollbarAlwaysOn:N6.alwaysOn,sortBy:{type:ue(Object),default:()=>({})},sortState:{type:ue(Object),default:void 0},onColumnSort:{type:ue(Function)},onExpandedRowsChange:{type:ue(Function)},onEndReached:{type:ue(Function)},onRowExpand:Ou.onRowExpand,onScroll:Ty.onScroll,onRowsRendered:Ty.onRowsRendered,rowEventHandlers:Ou.rowEventHandlers}),sk=(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 X("div",{class:e.class,title:i,style:a},[t.default?t.default(e):i])};sk.displayName="ElTableV2Cell";sk.inheritAttrs=!1;const lk=(e,{slots:t})=>{var n,r;return t.default?t.default(e):X("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])};lk.displayName="ElTableV2HeaderCell";lk.inheritAttrs=!1;const iCe=Le({class:String,columns:rg,columnsStyles:{type:ue(Object),required:!0},headerIndex:Number,style:{type:ue(Object)}}),oCe=j({name:"ElTableV2HeaderRow",props:iCe,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=>He(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),X("div",{class:e.class,style:i,role:"row"},[o])}}}),sCe="ElTableV2Header",lCe=j({name:sCe,props:ok,setup(e,{slots:t,expose:n}){const r=Me("table-v2"),a=H(),i=P(()=>Gs({width:e.width,height:e.height})),o=P(()=>Gs({width:e.rowWidth,height:e.height})),s=P(()=>oc(y(e.headerHeight))),l=f=>{const d=y(a);Ue(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=r.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:v}=e;return h==null?void 0:h.map((p,g)=>{var m;const b=Gs({height:v,width:"100%"});return(m=t.fixed)==null?void 0:m.call(t,{class:f,columns:d,rowData:p,rowIndex:-(g+1),style:b})})},c=()=>{const f=r.e("dynamic-header-row"),{columns:d}=e;return y(s).map((h,v)=>{var p;const g=Gs({width:"100%",height:h});return(p=t.dynamic)==null?void 0:p.call(t,{class:f,columns:d,headerIndex:v,style:g})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return X("div",{ref:a,class:e.class,style:y(i),role:"rowgroup"},[X("div",{style:y(o),class:r.e("header")},[c(),u()])])}}}),uCe=e=>{const{isScrolling:t}=Ge(ak),n=H(!1),r=H(),a=P(()=>at(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:v}=e,{height:p}=u.getBoundingClientRect();n.value=!0,Ue(()=>{if(l||p!==Number.parseInt(v.height)){const g=c[0],m=(g==null?void 0:g.placeholderSign)===sp;f==null||f({rowKey:d,height:p,rowIndex:h},g&&!m&&g.fixed)}})},o=P(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,d=e.rowEventHandlers||{},h={};return Object.entries(d).forEach(([v,p])=>{it(p)&&(h[v]=g=>{p({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:p})=>{const g=h[v];h[v]=m=>{f({event:m,hovered:p,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 yt(()=>{y(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},cCe="ElTableV2TableRow",fCe=j({name:cCe,props:Ou,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=uCe(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:v,rowIndex:p,style:g}=e;let m=c.map((b,_)=>{const w=He(v.children)&&v.children.length>0&&b.key===d;return n.cell({column:b,columns:c,columnIndex:_,depth:h,style:f[b.key],rowData:v,rowIndex:p,isScrolling:y(i),expandIconProps:w?{rowData:v,rowIndex:p,onExpand:u}:void 0})});if(n.row&&(m=n.row({cells:m.map(b=>He(b)&&b.length===1?b[0]:b),style:g,columns:c,depth:h,rowData:v,rowIndex:p,isScrolling:y(i)})),y(o)){const{height:b,..._}=g||{},w=y(s);return X("div",St({ref:l,class:e.class,style:w?g:_,role:"row"},r,y(a)),[m])}return X("div",St(r,{ref:l,class:e.class,style:g,role:"row"},y(a)),[m])}}}),dCe=e=>{const{sortOrder:t}=e;return X(Ke,{size:14,class:e.class},{default:()=>[t===ip.ASC?X(Hae,null,null):X(Fae,null,null)]})},hCe=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:i}=e,o={onClick:n?()=>r(!t):void 0,class:e.class};return X(Ke,St(o,{size:i,style:a}),{default:()=>[X(Yr,null,null)]})},vCe="ElTableV2Grid",pCe=e=>{const t=H(),n=H(),r=P(()=>{const{data:p,rowHeight:g,estimatedRowHeight:m}=e;if(!m)return p.length*g}),a=P(()=>{const{fixedData:p,rowHeight:g}=e;return((p==null?void 0:p.length)||0)*g}),i=P(()=>xy(e.headerHeight)),o=P(()=>{const{height:p}=e;return Math.max(0,p-y(i)-y(a))}),s=P(()=>y(i)+y(a)>0),l=({data:p,rowIndex:g})=>p[g][e.rowKey];function u({rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:b}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:b})}function c(p,g){var m;(m=n.value)==null||m.resetAfterRowIndex(p,g)}function f(p,g){const m=y(t),b=y(n);!m||!b||(Mt(p)?(m.scrollToLeft(p.scrollLeft),b.scrollTo(p)):(m.scrollToLeft(p),b.scrollTo({scrollLeft:p,scrollTop:g})))}function d(p){var g;(g=y(n))==null||g.scrollTo({scrollTop:p})}function h(p,g){var m;(m=y(n))==null||m.scrollToItem(p,1,g)}function v(){var p,g;(p=y(n))==null||p.$forceUpdate(),(g=y(t))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:v,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:t,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},uk=j({name:vCe,props:Ty,setup(e,{slots:t,expose:n}){const{ns:r}=Ge(ak),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:h,resetAfterRowIndex:v,scrollTo:p,scrollToTop:g,scrollToRow:m}=pCe(e);n({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:g,scrollToRow:m,resetAfterRowIndex:v});const b=()=>e.bodyWidth;return()=>{const{cache:_,columns:w,data:C,fixedData:S,useIsScrolling:x,scrollbarAlwaysOn:T,scrollbarEndGap:M,scrollbarStartGap:A,style:k,rowHeight:E,bodyWidth:D,estimatedRowHeight:L,headerWidth:B,height:$,width:O,getRowHeight:N,onScroll:I}=e,F=at(L),G=F?K1e:z1e,U=y(u);return X("div",{role:"table",class:[r.e("table"),e.class],style:k},[X(G,{ref:a,data:C,useIsScrolling:x,itemKey:d,columnCache:0,columnWidth:F?b:D,totalColumn:1,totalRow:C.length,rowCache:_,rowHeight:F?N:E,width:O,height:y(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:A,scrollbarEndGap:M,scrollbarAlwaysOn:T,onScroll:I,onItemRendered:h,perfMode:!1},{default:J=>{var ae;const Q=C[J.rowIndex];return(ae=t.row)==null?void 0:ae.call(t,{...J,columns:w,rowData:Q})}}),y(s)&&X(lCe,{ref:l,class:r.e("header-wrapper"),columns:w,headerData:C,headerHeight:e.headerHeight,fixedHeaderData:S,rowWidth:B,rowHeight:E,width:O,height:Math.min(U+y(i),$)},{dynamic:t.header,fixed:t.row})])}}});function gCe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!xn(e)}const mCe=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return X(uk,St({ref:n},r),gCe(t)?t:{default:()=>[t]})};function yCe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!xn(e)}const bCe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return X(uk,St({ref:n},r),yCe(t)?t:{default:()=>[t]})};function _Ce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!xn(e)}const wCe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return X(uk,St({ref:n},r),_Ce(t)?t:{default:()=>[t]})};function SCe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!xn(e)}const CCe=(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:v,rowClass:p,rowKey:g,rowEventHandlers:m,ns:b,onRowHovered:_,onRowExpanded:w}=e,C=lc(p,{columns:n,rowData:c,rowIndex:f},""),S=lc(v,{columns:n,rowData:c,rowIndex:f}),x=c[g],T=a[x]||0,M=!!i,A=f<0,k=[b.e("row"),C,{[b.e(`row-depth-${T}`)]:M&&f>=0,[b.is("expanded")]:M&&o.includes(x),[b.is("hovered")]:!h&&x===u,[b.is("fixed")]:!T&&A,[b.is("customized")]:!!t.row}],E=l?_:void 0,D={...S,columns:n,columnsStyles:r,class:k,depth:T,expandColumnKey:i,estimatedRowHeight:A?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:x,rowEventHandlers:m,style:d};return X(fCe,St(D,{onRowHover:E,onRowExpand:w}),SCe(t)?t:{default:()=>[t]})},mx=({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:v,rowKey:p},{slots:g})=>{const m=Gs(l);if(t.placeholderSign===sp)return X("div",{class:c.em("row-cell","placeholder"),style:m},null);const{cellRenderer:b,dataKey:_,dataGetter:w}=t,S=o8(b)||g.default||($=>X(sk,$,null)),x=it(w)?w({columns:e,column:t,columnIndex:n,rowData:o,rowIndex:s}):wn(o,_??""),T=lc(f,{cellData:x,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:o}),M={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:x,isScrolling:i,rowData:o,rowIndex:s},A=S(M),k=[c.e("row-cell"),t.class,t.align===op.CENTER&&c.is("align-center"),t.align===op.RIGHT&&c.is("align-right")],E=s>=0&&d&&t.key===d,D=s>=0&&u.includes(o[p]);let L;const B=`margin-inline-start: ${r*h}px;`;return E&&(Mt(a)?L=X(hCe,St(a,{class:[c.e("expand-icon"),c.is("expanded",D)],size:v,expanded:D,style:B,expandable:!0}),null):L=X("div",{style:[B,`width: ${v}px; height: ${v}px;`].join(" ")},null)),X("div",St({class:k,style:m},T,{role:"cell"}),[L,A])};mx.inheritAttrs=!1;function xCe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!xn(e)}const TCe=({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"),lc(a,l,""),{[o.is("customized")]:!!s.header}],c={...lc(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return X(oCe,c,xCe(s)?s:{default:()=>[s]})},hL=(e,{slots:t})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=e,o=Gs(a);if(n.placeholderSign===sp)return X("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=(o8(s)||t.default||(w=>X(lk,w,null)))(c),{sortBy:h,sortState:v,headerCellProps:p}=e;let g,m;if(v){const w=v[n.key];g=!!gx[w],m=g?w:ip.ASC}else g=n.key===h.key,m=g?h.order:ip.ASC;const b=[r.e("header-cell"),lc(l,e,""),n.align===op.CENTER&&r.is("align-center"),n.align===op.RIGHT&&r.is("align-right"),u&&r.is("sortable")],_={...lc(p,e),onClick:n.sortable?i:void 0,class:b,style:o,"data-key":n.key};return X("div",St(_,{role:"columnheader"}),[d,u&&X(dCe,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:m},null)])},c8=(e,{slots:t})=>{var n;return X("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};c8.displayName="ElTableV2Footer";const f8=(e,{slots:t})=>X("div",{class:e.class,style:e.style},[t.default?t.default():X(y6,null,null)]);f8.displayName="ElTableV2Empty";const d8=(e,{slots:t})=>{var n;return X("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};d8.displayName="ElTableV2Overlay";function ih(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!xn(e)}const MCe="ElTableV2",kCe=j({name:MCe,props:aCe,setup(e,{slots:t,expose:n}){const r=Me("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:v,hasFixedColumns:p,hoveringRowKey:g,mainTableRef:m,leftTableRef:b,rightTableRef:_,isDynamic:w,isResetting:C,isScrolling:S,bodyWidth:x,emptyStyle:T,rootStyle:M,headerWidth:A,footerHeight:k,showEmpty:E,scrollTo:D,scrollToLeft:L,scrollToTop:B,scrollToRow:$,getRowHeight:O,onColumnSorted:N,onRowHeightChange:I,onRowHovered:F,onRowExpanded:G,onRowsRendered:U,onScroll:J,onVerticalScroll:ae}=nCe(e);return n({scrollTo:D,scrollToLeft:L,scrollToTop:B,scrollToRow:$}),Et(ak,{ns:r,isResetting:C,hoveringRowKey:g,isScrolling:S}),()=>{const{cache:Q,cellProps:ee,estimatedRowHeight:te,expandColumnKey:q,fixedData:de,headerHeight:ve,headerClass:ie,headerProps:W,headerCellProps:Z,sortBy:oe,sortState:pe,rowHeight:Se,rowClass:me,rowEventHandlers:Ee,rowKey:Ce,rowProps:we,scrollbarAlwaysOn:Te,indentSize:Ne,iconSize:Be,useIsScrolling:We,vScrollbarSize:Ae,width:ze}=e,rt=y(d),vt={cache:Q,class:r.e("main"),columns:y(s),data:rt,fixedData:de,estimatedRowHeight:te,bodyWidth:y(x)+Ae,headerHeight:ve,headerWidth:y(A),height:y(l),mainTableRef:m,rowKey:Ce,rowHeight:Se,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Ae,useIsScrolling:We,width:ze,getRowHeight:O,onRowsRendered:U,onScroll:J},kt=y(c),Qe=y(u),ye={cache:Q,class:r.e("left"),columns:y(i),data:rt,estimatedRowHeight:te,leftTableRef:b,rowHeight:Se,bodyWidth:kt,headerWidth:kt,headerHeight:ve,height:Qe,rowKey:Ce,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Ae,useIsScrolling:We,width:kt,getRowHeight:O,onScroll:ae},le=y(f)+Ae,ke={cache:Q,class:r.e("right"),columns:y(o),data:rt,estimatedRowHeight:te,rightTableRef:_,rowHeight:Se,bodyWidth:le,headerWidth:le,headerHeight:ve,height:Qe,rowKey:Ce,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Ae,width:le,style:`--${y(r.namespace)}-table-scrollbar-size: ${Ae}px`,useIsScrolling:We,getRowHeight:O,onScroll:ae},ne=y(a),Ve={ns:r,depthMap:y(h),columnsStyles:ne,expandColumnKey:q,expandedRowKeys:y(v),estimatedRowHeight:te,hasFixedColumns:y(p),hoveringRowKey:y(g),rowProps:we,rowClass:me,rowKey:Ce,rowEventHandlers:Ee,onRowHovered:F,onRowExpanded:G,onRowHeightChange:I},st={cellProps:ee,expandColumnKey:q,indentSize:Ne,iconSize:Be,rowKey:Ce,expandedRowKeys:y(v),ns:r},It={ns:r,headerClass:ie,headerProps:W,columnsStyles:ne},Vn={ns:r,sortBy:oe,sortState:pe,headerCellProps:Z,onColumnSorted:N},Xn={row:be=>X(CCe,St(be,Ve),{row:t.row,cell:$e=>{let he;return t.cell?X(mx,St($e,st,{style:ne[$e.column.key]}),ih(he=t.cell($e))?he:{default:()=>[he]}):X(mx,St($e,st,{style:ne[$e.column.key]}),null)}}),header:be=>X(TCe,St(be,It),{header:t.header,cell:$e=>{let he;return t["header-cell"]?X(hL,St($e,Vn,{style:ne[$e.column.key]}),ih(he=t["header-cell"]($e))?he:{default:()=>[he]}):X(hL,St($e,Vn,{style:ne[$e.column.key]}),null)}})},ia=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:y(w)}],vr={class:r.e("footer"),style:y(k)};return X("div",{class:ia,style:y(M)},[X(mCe,vt,ih(Xn)?Xn:{default:()=>[Xn]}),X(bCe,ye,ih(Xn)?Xn:{default:()=>[Xn]}),X(wCe,ke,ih(Xn)?Xn:{default:()=>[Xn]}),t.footer&&X(c8,vr,{default:t.footer}),y(E)&&X(f8,{class:r.e("empty"),style:y(T)},{default:t.empty}),t.overlay&&X(d8,{class:r.e("overlay")},{default:t.overlay})])}}}),ACe=Le({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ue(Function)}}),ECe=j({name:"ElAutoResizer",props:ACe,setup(e,{slots:t}){const n=Me("auto-resizer"),{height:r,width:a,sizer:i}=tCe(e),o={width:"100%",height:"100%"};return()=>{var s;return X("div",{ref:i,class:n.b(),style:o},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:a.value})])}}}),ICe=_t(kCe),DCe=_t(ECe),c1=Symbol("tabsRootContextKey"),PCe=Le({tabs:{type:ue(Array),default:()=>Sn([])}}),h8="ElTabBar",LCe=j({name:h8}),RCe=j({...LCe,props:PCe,setup(e,{expose:t}){const n=e,r=gt(),a=Ge(c1);a||Yn(h8,"<el-tabs><el-tab-bar /></el-tabs>");const i=Me("tabs"),o=H(),s=H(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",v=h==="x"?"left":"top";return n.tabs.every(p=>{var g,m;const b=(m=(g=r.parent)==null?void 0:g.refs)==null?void 0:m[`tab-${p.uid}`];if(!b)return!1;if(!p.active)return!0;c=b[`offset${ao(v)}`],f=b[`client${ao(d)}`];const _=window.getComputedStyle(b);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight)),c+=Number.parseFloat(_.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${ao(h)}(${c}px)`}},u=()=>s.value=l();return xe(()=>n.tabs,async()=>{await Ue(),u()},{immediate:!0}),Or(o,()=>u()),t({ref:o,update:u}),(c,f)=>(R(),K("div",{ref_key:"barRef",ref:o,class:V([y(i).e("active-bar"),y(i).is(y(a).props.tabPosition)]),style:Ye(s.value)},null,6))}});var OCe=Pe(RCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const NCe=Le({panes:{type:ue(Array),default:()=>Sn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),$Ce={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},vL="ElTabNav",BCe=j({name:vL,props:NCe,emits:$Ce,setup(e,{expose:t,emit:n}){const r=gt(),a=Ge(c1);a||Yn(vL,"<el-tabs><tab-nav /></el-tabs>");const i=Me("tabs"),o=vZ(),s=xZ(),l=H(),u=H(),c=H(),f=H(),d=H(!1),h=H(0),v=H(!1),p=H(!0),g=P(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),m=P(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),b=()=>{if(!l.value)return;const M=l.value[`offset${ao(g.value)}`],A=h.value;if(!A)return;const k=A>M?A-M:0;h.value=k},_=()=>{if(!l.value||!u.value)return;const M=u.value[`offset${ao(g.value)}`],A=l.value[`offset${ao(g.value)}`],k=h.value;if(M-k<=A)return;const E=M-k>A*2?k+A:M-A;h.value=E},w=async()=>{const M=u.value;if(!d.value||!c.value||!l.value||!M)return;await Ue();const A=c.value.querySelector(".is-active");if(!A)return;const k=l.value,E=["top","bottom"].includes(a.props.tabPosition),D=A.getBoundingClientRect(),L=k.getBoundingClientRect(),B=E?M.offsetWidth-L.width:M.offsetHeight-L.height,$=h.value;let O=$;E?(D.left<L.left&&(O=$-(L.left-D.left)),D.right>L.right&&(O=$+D.right-L.right)):(D.top<L.top&&(O=$-(L.top-D.top)),D.bottom>L.bottom&&(O=$+(D.bottom-L.bottom))),O=Math.max(O,0),h.value=Math.min(O,B)},C=()=>{var M;if(!u.value||!l.value)return;e.stretch&&((M=f.value)==null||M.update());const A=u.value[`offset${ao(g.value)}`],k=l.value[`offset${ao(g.value)}`],E=h.value;k<A?(d.value=d.value||{},d.value.prev=E,d.value.next=E+k<A,A-E<k&&(h.value=A-k)):(d.value=!1,E>0&&(h.value=0))},S=M=>{const A=M.code,{up:k,down:E,left:D,right:L}=Xe;if(![k,E,D,L].includes(A))return;const B=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),$=B.indexOf(M.target);let O;A===D||A===k?$===0?O=B.length-1:O=$-1:$<B.length-1?O=$+1:O=0,B[O].focus({preventScroll:!0}),B[O].click(),x()},x=()=>{p.value&&(v.value=!0)},T=()=>v.value=!1;return xe(o,M=>{M==="hidden"?p.value=!1:M==="visible"&&setTimeout(()=>p.value=!0,50)}),xe(s,M=>{M?setTimeout(()=>p.value=!0,50):p.value=!1}),Or(c,C),yt(()=>setTimeout(()=>w(),0)),us(()=>C()),t({scrollToActiveTab:w,removeFocus:T}),xe(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const M=d.value?[X("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:b},[X(Ke,null,{default:()=>[X(cl,null,null)]})]),X("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:_},[X(Ke,null,{default:()=>[X(Yr,null,null)]})])]:null,A=e.panes.map((k,E)=>{var D,L,B,$;const O=k.uid,N=k.props.disabled,I=(L=(D=k.props.name)!=null?D:k.index)!=null?L:`${E}`,F=!N&&(k.isClosable||e.editable);k.index=`${E}`;const G=F?X(Ke,{class:"is-icon-close",onClick:ae=>n("tabRemove",k,ae)},{default:()=>[X($i,null,null)]}):null,U=(($=(B=k.slots).label)==null?void 0:$.call(B))||k.props.label,J=!N&&k.active?0:-1;return X("div",{ref:`tab-${O}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",k.active),i.is("disabled",N),i.is("closable",F),i.is("focus",v.value)],id:`tab-${I}`,key:`tab-${O}`,"aria-controls":`pane-${I}`,role:"tab","aria-selected":k.active,tabindex:J,onFocus:()=>x(),onBlur:()=>T(),onClick:ae=>{T(),n("tabClick",k,I,ae)},onKeydown:ae=>{F&&(ae.code===Xe.delete||ae.code===Xe.backspace)&&n("tabRemove",k,ae)}},[U,G])});return X("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[M,X("div",{class:i.e("nav-scroll"),ref:l},[X("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:S},[e.type?null:X(OCe,{ref:f,tabs:[...e.panes]},null),A])])])}}}),VCe=Le({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:ue(Function),default:()=>!0},stretch:Boolean}),O_=e=>lt(e)||at(e),FCe={[wt]:e=>O_(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>O_(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>O_(e),tabAdd:()=>!0};var zCe=j({name:"ElTabs",props:VCe,emits:FCe,setup(e,{emit:t,slots:n,expose:r}){var a,i;const o=Me("tabs"),{children:s,addChild:l,removeChild:u}=DM(gt(),"ElTabPane"),c=H(),f=H((i=(a=e.modelValue)!=null?a:e.activeName)!=null?i:"0"),d=m=>{f.value=m,t(wt,m),t("tabChange",m)},h=async m=>{var b,_,w;if(!(f.value===m||Qn(m)))try{await((b=e.beforeLeave)==null?void 0:b.call(e,m,f.value))!==!1&&(d(m),(w=(_=c.value)==null?void 0:_.removeFocus)==null||w.call(_))}catch{}},v=(m,b,_)=>{m.props.disabled||(h(b),t("tabClick",m,_))},p=(m,b)=>{m.props.disabled||Qn(m.props.name)||(b.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"},P(()=>!!e.activeName)),xe(()=>e.activeName,m=>h(m)),xe(()=>e.modelValue,m=>h(m)),xe(f,async()=>{var m;await Ue(),(m=c.value)==null||m.scrollToActiveTab()}),Et(c1,{props:e,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const m=e.editable||e.addable?X("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:w=>{w.code===Xe.enter&&g()}},[X(Ke,{class:o.is("icon-plus")},{default:()=>[X(z5,null,null)]})]):null,b=X("div",{class:[o.e("header"),o.is(e.tabPosition)]},[m,X(BCe,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:v,onTabRemove:p},null)]),_=X("div",{class:o.e("content")},[_e(n,"default")]);return X("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 HCe=Le({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),GCe=["id","aria-hidden","aria-labelledby"],v8="ElTabPane",WCe=j({name:v8}),KCe=j({...WCe,props:HCe,setup(e){const t=e,n=gt(),r=Tr(),a=Ge(c1);a||Yn(v8,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Me("tab-pane"),o=H(),s=P(()=>t.closable||a.props.closable),l=YI(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:o.value)}),u=H(l.value),c=P(()=>{var h;return(h=t.name)!=null?h:o.value}),f=YI(()=>!t.lazy||u.value||l.value);xe(l,h=>{h&&(u.value=!0)});const d=jt({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:o,isClosable:s});return yt(()=>{a.registerPane(d)}),xl(()=>{a.unregisterPane(d.uid)}),(h,v)=>y(f)?dt((R(),K("div",{key:0,id:`pane-${y(c)}`,class:V(y(i).b()),role:"tabpanel","aria-hidden":!y(l),"aria-labelledby":`tab-${y(c)}`},[_e(h.$slots,"default")],10,GCe)),[[Kt,y(l)]]):se("v-if",!0)}});var p8=Pe(KCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const UCe=_t(zCe,{TabPane:p8}),YCe=In(p8),jCe=Le({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:To,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),qCe=j({name:"ElText"}),XCe=j({...qCe,props:jCe,setup(e){const t=e,n=jn(),r=Me("text"),a=P(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(i,o)=>(R(),ce(Ct(i.tag),{class:V(y(a))},{default:re(()=>[_e(i.$slots,"default")]),_:3},8,["class"]))}});var ZCe=Pe(XCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const JCe=_t(ZCe),QCe=Le({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:wr,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:ue([String,Object]),default:()=>F5},clearIcon:{type:ue([String,Object]),default:()=>Ml}}),Fo=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},N_=(e,t)=>{const n=Fo(e);if(!n)return-1;const r=Fo(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},pL=e=>`${e}`.padStart(2,"0"),lf=e=>`${pL(e.hours)}:${pL(e.minutes)}`,exe=(e,t)=>{const n=Fo(e);if(!n)return"";const r=Fo(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,lf(a)},txe=j({name:"ElTimeSelect"}),nxe=j({...txe,props:QCe,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;mt.extend($M);const{Option:r}=sc,a=Me("input"),i=H(),o=_a(),s=P(()=>n.modelValue),l=P(()=>{const g=Fo(n.start);return g?lf(g):null}),u=P(()=>{const g=Fo(n.end);return g?lf(g):null}),c=P(()=>{const g=Fo(n.step);return g?lf(g):null}),f=P(()=>{const g=Fo(n.minTime||"");return g?lf(g):null}),d=P(()=>{const g=Fo(n.maxTime||"");return g?lf(g):null}),h=P(()=>{const g=[];if(n.start&&n.end&&n.step){let m=l.value,b;for(;m&&u.value&&N_(m,u.value)<=0;)b=mt(m,"HH:mm").format(n.format),g.push({value:b,disabled:N_(m,f.value||"-1:-1")<=0||N_(m,d.value||"100:100")>=0}),m=exe(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)=>(R(),ce(y(sc),{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]=b=>g.$emit("update:modelValue",b)),onChange:m[1]||(m[1]=b=>g.$emit("change",b)),onBlur:m[2]||(m[2]=b=>g.$emit("blur",b)),onFocus:m[3]||(m[3]=b=>g.$emit("focus",b))},{prefix:re(()=>[g.prefixIcon?(R(),ce(y(Ke),{key:0,class:V(y(a).e("prefix-icon"))},{default:re(()=>[(R(),ce(Ct(g.prefixIcon)))]),_:1},8,["class"])):se("v-if",!0)]),default:re(()=>[(R(!0),K(je,null,Ot(y(h),b=>(R(),ce(y(r),{key:b.value,label:b.value,value:b.value,disabled:b.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var My=Pe(nxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);My.install=e=>{e.component(My.name,My)};const rxe=My,axe=rxe,ixe=j({name:"ElTimeline",setup(e,{slots:t}){const n=Me("timeline");return Et("timeline",t),()=>Ze("ul",{class:[n.b()]},[_e(t,"default")])}}),oxe=Le({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:cn},hollow:{type:Boolean,default:!1}}),sxe=j({name:"ElTimelineItem"}),lxe=j({...sxe,props:oxe,setup(e){const t=e,n=Me("timeline-item"),r=P(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,i)=>(R(),K("li",{class:V([y(n).b(),{[y(n).e("center")]:a.center}])},[Y("div",{class:V(y(n).e("tail"))},null,2),a.$slots.dot?se("v-if",!0):(R(),K("div",{key:0,class:V(y(r)),style:Ye({backgroundColor:a.color})},[a.icon?(R(),ce(y(Ke),{key:0,class:V(y(n).e("icon"))},{default:re(()=>[(R(),ce(Ct(a.icon)))]),_:1},8,["class"])):se("v-if",!0)],6)),a.$slots.dot?(R(),K("div",{key:1,class:V(y(n).e("dot"))},[_e(a.$slots,"dot")],2)):se("v-if",!0),Y("div",{class:V(y(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(R(),K("div",{key:0,class:V([y(n).e("timestamp"),y(n).is("top")])},De(a.timestamp),3)):se("v-if",!0),Y("div",{class:V(y(n).e("content"))},[_e(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(R(),K("div",{key:1,class:V([y(n).e("timestamp"),y(n).is("bottom")])},De(a.timestamp),3)):se("v-if",!0)],2)],2))}});var g8=Pe(lxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const uxe=_t(ixe,{TimelineItem:g8}),cxe=In(g8),m8=Le({nowrap:Boolean});var y8=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(y8||{});const fxe=Object.values(y8),ck=Le({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ue(Object),default:null}}),dxe=Le({side:{type:ue(String),values:fxe,required:!0}}),hxe=["absolute","fixed"],vxe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],fk=Le({ariaLabel:String,arrowPadding:{type:ue(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:ue(String),values:vxe,default:"bottom"},reference:{type:ue(Object),default:null},offset:{type:Number,default:8},strategy:{type:ue(String),values:hxe,default:"absolute"},showArrow:{type:Boolean,default:!1}}),dk=Le({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ue(Function)},"onUpdate:open":{type:ue(Function)}}),Nc={type:ue(Function)},hk=Le({onBlur:Nc,onClick:Nc,onFocus:Nc,onMouseDown:Nc,onMouseEnter:Nc,onMouseLeave:Nc}),pxe=Le({...dk,...ck,...hk,...fk,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ue(Object),default:null},teleported:Boolean,to:{type:ue(String),default:"body"}}),f1=Symbol("tooltipV2"),b8=Symbol("tooltipV2Content"),$_="tooltip_v2.open",gxe=j({name:"ElTooltipV2Root"}),mxe=j({...gxe,props:dk,setup(e,{expose:t}){const n=e,r=H(n.defaultOpen),a=H(null),i=P({get:()=>Ore(n.open)?r.value:n.open,set:g=>{var m;r.value=g,(m=n["onUpdate:open"])==null||m.call(n,g)}}),o=P(()=>at(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=ac(()=>{i.value=!0},P(()=>n.delayDuration),{immediate:!1}),u=Me("tooltip-v2"),c=oi(),f=()=>{l(),i.value=!0},d=()=>{y(o)?s():f()},h=f,v=()=>{l(),i.value=!1};return xe(i,g=>{var m;g&&(document.dispatchEvent(new CustomEvent($_)),h()),(m=n.onOpenChange)==null||m.call(n,g)}),yt(()=>{document.addEventListener($_,v)}),_n(()=>{l(),document.removeEventListener($_,v)}),Et(f1,{contentId:c,triggerRef:a,ns:u,onClose:v,onDelayOpen:d,onOpen:h}),t({onOpen:h,onClose:v}),(g,m)=>_e(g.$slots,"default",{open:y(i)})}});var yxe=Pe(mxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const bxe=j({name:"ElTooltipV2Arrow"}),_xe=j({...bxe,props:{...ck,...dxe},setup(e){const t=e,{ns:n}=Ge(f1),{arrowRef:r}=Ge(b8),a=P(()=>{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)=>(R(),K("span",{ref_key:"arrowRef",ref:r,style:Ye(y(a)),class:V(y(n).e("arrow"))},null,6))}});var gL=Pe(_xe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const wxe=Le({style:{type:ue([String,Object,Array]),default:()=>({})}}),Sxe=j({name:"ElVisuallyHidden"}),Cxe=j({...Sxe,props:wxe,setup(e){const t=e,n=P(()=>[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)=>(R(),K("span",St(r.$attrs,{style:y(n)}),[_e(r.$slots,"default")],16))}});var xxe=Pe(Cxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const Txe=["data-side"],Mxe=j({name:"ElTooltipV2Content"}),kxe=j({...Mxe,props:{...fk,...m8},setup(e){const t=e,{triggerRef:n,contentId:r}=Ge(f1),a=H(t.placement),i=H(t.strategy),o=H(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=tse({placement:a,strategy:i,middleware:P(()=>{const _=[Noe(t.offset)];return t.showArrow&&_.push(nse({arrowRef:o})),_})}),h=Ad().nextZIndex(),v=Me("tooltip-v2"),p=P(()=>a.value.split("-")[0]),g=P(()=>({position:y(i),top:`${y(f)||0}px`,left:`${y(c)||0}px`,zIndex:h})),m=P(()=>{if(!t.showArrow)return{};const{arrow:_}=y(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${_==null?void 0:_.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${_==null?void 0:_.y}px`||""}}),b=P(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(y(i)),t.contentClass]);return xe(o,()=>d()),xe(()=>t.placement,_=>a.value=_),yt(()=>{xe(()=>t.reference||n.value,_=>{s.value=_||void 0},{immediate:!0})}),Et(b8,{arrowRef:o}),(_,w)=>(R(),K("div",{ref_key:"contentRef",ref:l,style:Ye(y(g)),"data-tooltip-v2-root":""},[_.nowrap?se("v-if",!0):(R(),K("div",{key:0,"data-side":y(p),class:V(y(b))},[_e(_.$slots,"default",{contentStyle:y(g),contentClass:y(b)}),X(y(xxe),{id:y(r),role:"tooltip"},{default:re(()=>[_.ariaLabel?(R(),K(je,{key:0},[Ut(De(_.ariaLabel),1)],64)):_e(_.$slots,"default",{key:1})]),_:3},8,["id"]),_e(_.$slots,"arrow",{style:Ye(y(m)),side:y(p)})],10,Txe))],4))}});var mL=Pe(kxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const Axe=Le({setRef:{type:ue(Function),required:!0},onlyChild:Boolean});var Exe=j({props:Axe,setup(e,{slots:t}){const n=H(),r=jb(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?lie(i.children):i.children;return X(je,{ref:r},[o])}}});const Ixe=j({name:"ElTooltipV2Trigger"}),Dxe=j({...Ixe,props:{...m8,...hk},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=Ge(f1);let s=!1;const l=b=>{i.value=b},u=()=>{s=!1},c=En(t.onMouseEnter,a),f=En(t.onMouseLeave,n),d=En(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=En(t.onFocus,()=>{s||r()}),v=En(t.onBlur,n),p=En(t.onClick,b=>{b.detail===0&&n()}),g={blur:v,click:p,focus:h,mousedown:d,mouseenter:c,mouseleave:f},m=(b,_,w)=>{b&&Object.entries(_).forEach(([C,S])=>{b[w](C,S)})};return xe(i,(b,_)=>{m(b,g,"addEventListener"),m(_,g,"removeEventListener"),b&&b.setAttribute("aria-describedby",o.value)}),_n(()=>{m(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(b,_)=>b.nowrap?(R(),ce(y(Exe),{key:0,"set-ref":l,"only-child":""},{default:re(()=>[_e(b.$slots,"default")]),_:3})):(R(),K("button",St({key:1,ref_key:"triggerRef",ref:i},b.$attrs),[_e(b.$slots,"default")],16))}});var Pxe=Pe(Dxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const Lxe=j({name:"ElTooltipV2"}),Rxe=j({...Lxe,props:pxe,setup(e){const n=ir(e),r=jt(zo(n,Object.keys(ck))),a=jt(zo(n,Object.keys(fk))),i=jt(zo(n,Object.keys(dk))),o=jt(zo(n,Object.keys(hk)));return(s,l)=>(R(),ce(yxe,Mi(Rb(i)),{default:re(({open:u})=>[X(Pxe,St(o,{nowrap:""}),{default:re(()=>[_e(s.$slots,"trigger")]),_:3},16),(R(),ce(Wp,{to:s.to,disabled:!s.teleported},[s.fullTransition?(R(),ce($n,Mi(St({key:0},s.transitionProps)),{default:re(()=>[s.alwaysOn||u?(R(),ce(mL,Mi(St({key:0},a)),{arrow:re(({style:c,side:f})=>[s.showArrow?(R(),ce(gL,St({key:0},r,{style:c,side:f}),null,16,["style","side"])):se("v-if",!0)]),default:re(()=>[_e(s.$slots,"default")]),_:3},16)):se("v-if",!0)]),_:2},1040)):(R(),K(je,{key:1},[s.alwaysOn||u?(R(),ce(mL,Mi(St({key:0},a)),{arrow:re(({style:c,side:f})=>[s.showArrow?(R(),ce(gL,St({key:0},r,{style:c,side:f}),null,16,["style","side"])):se("v-if",!0)]),default:re(()=>[_e(s.$slots,"default")]),_:3},16)):se("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var Oxe=Pe(Rxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const Nxe=_t(Oxe),_8="left-check-change",w8="right-check-change",uf=Le({data:{type:ue(Array),default:()=>[]},titles:{type:ue(Array),default:()=>[]},buttonTexts:{type:ue(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ue(Function)},leftDefaultChecked:{type:ue(Array),default:()=>[]},rightDefaultChecked:{type:ue(Array),default:()=>[]},renderContent:{type:ue(Function)},modelValue:{type:ue(Array),default:()=>[]},format:{type:ue(Object),default:()=>({})},filterable:Boolean,props:{type:ue(Object),default:()=>Sn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),yx=(e,t)=>[e,t].every(He)||He(e)&&Wn(t),$xe={[gn]:(e,t,n)=>[e,n].every(He)&&["left","right"].includes(t),[wt]:e=>He(e),[_8]:yx,[w8]:yx},bx="checked-change",Bxe=Le({data:uf.data,optionRender:{type:ue(Function)},placeholder:String,title:String,filterable:Boolean,format:uf.format,filterMethod:uf.filterMethod,defaultChecked:uf.leftDefaultChecked,props:uf.props}),Vxe={[bx]:yx},ag=e=>{const t={label:"label",key:"key",disabled:"disabled"};return P(()=>({...t,...e.props}))},Fxe=(e,t,n)=>{const r=ag(e),a=P(()=>e.data.filter(c=>it(e.filterMethod)?e.filterMethod(t.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=P(()=>a.value.filter(c=>!c[r.value.disabled])),o=P(()=>{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=P(()=>{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 xe(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(bx,c,d)}else n(bx,c),t.checkChangeByUser=!0}),xe(i,()=>{l()}),xe(()=>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}),xe(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(v=>f.includes(v)))return;const d=[],h=i.value.map(v=>v[r.value.key]);c.forEach(v=>{h.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},zxe=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(_8,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t(w8,a,i)}}),Hxe=e=>{const t=ag(e),n=P(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),r=P(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=P(()=>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}},Gxe=(e,t,n)=>{const r=ag(e),a=(s,l,u)=>{n(wt,s),n(gn,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)}}},Wxe=j({name:"ElTransferPanel"}),Kxe=j({...Wxe,props:Bxe,emits:Vxe,setup(e,{expose:t,emit:n}){const r=e,a=Tr(),i=({option:_})=>_,{t:o}=Ht(),s=Me("transfer"),l=jt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=ag(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=Fxe(r,l,n),v=P(()=>!ja(l.query)&&ja(c.value)),p=P(()=>!ja(a.default()[0].children)),{checked:g,allChecked:m,query:b}=ir(l);return t({query:b}),(_,w)=>(R(),K("div",{class:V(y(s).b("panel"))},[Y("p",{class:V(y(s).be("panel","header"))},[X(y(li),{modelValue:y(m),"onUpdate:modelValue":w[0]||(w[0]=C=>un(m)?m.value=C:null),indeterminate:y(d),"validate-event":!1,onChange:y(h)},{default:re(()=>[Ut(De(_.title)+" ",1),Y("span",null,De(y(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),Y("div",{class:V([y(s).be("panel","body"),y(s).is("with-footer",y(p))])},[_.filterable?(R(),ce(y(Lr),{key:0,modelValue:y(b),"onUpdate:modelValue":w[1]||(w[1]=C=>un(b)?b.value=C:null),class:V(y(s).be("panel","filter")),size:"default",placeholder:_.placeholder,"prefix-icon":y(Bae),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):se("v-if",!0),dt(X(y(Az),{modelValue:y(g),"onUpdate:modelValue":w[2]||(w[2]=C=>un(g)?g.value=C:null),"validate-event":!1,class:V([y(s).is("filterable",_.filterable),y(s).be("panel","list")])},{default:re(()=>[(R(!0),K(je,null,Ot(y(c),C=>(R(),ce(y(li),{key:C[y(u).key],class:V(y(s).be("panel","item")),label:C[y(u).key],disabled:C[y(u).disabled],"validate-event":!1},{default:re(()=>{var S;return[X(i,{option:(S=_.optionRender)==null?void 0:S.call(_,C)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Kt,!y(v)&&!y(ja)(_.data)]]),dt(Y("p",{class:V(y(s).be("panel","empty"))},De(y(v)?y(o)("el.transfer.noMatch"):y(o)("el.transfer.noData")),3),[[Kt,y(v)||y(ja)(_.data)]])],2),y(p)?(R(),K("p",{key:0,class:V(y(s).be("panel","footer"))},[_e(_.$slots,"default")],2)):se("v-if",!0)],2))}});var yL=Pe(Kxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Uxe={key:0},Yxe={key:0},jxe=j({name:"ElTransfer"}),qxe=j({...jxe,props:uf,emits:$xe,setup(e,{expose:t,emit:n}){const r=e,a=Tr(),{t:i}=Ht(),o=Me("transfer"),{formItem:s}=ra(),l=jt({leftChecked:[],rightChecked:[]}),u=ag(r),{sourceData:c,targetData:f}=Hxe(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=zxe(l,n),{addToLeft:v,addToRight:p}=Gxe(r,l,n),g=H(),m=H(),b=T=>{switch(T){case"left":g.value.query="";break;case"right":m.value.query="";break}},_=P(()=>r.buttonTexts.length===2),w=P(()=>r.titles[0]||i("el.transfer.titles.0")),C=P(()=>r.titles[1]||i("el.transfer.titles.1")),S=P(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));xe(()=>r.modelValue,()=>{var T;r.validateEvent&&((T=s==null?void 0:s.validate)==null||T.call(s,"change").catch(M=>void 0))});const x=P(()=>T=>r.renderContent?r.renderContent(Ze,T):a.default?a.default({option:T}):Ze("span",T[u.value.label]||T[u.value.key]));return t({clearQuery:b,leftPanel:g,rightPanel:m}),(T,M)=>(R(),K("div",{class:V(y(o).b())},[X(yL,{ref_key:"leftPanel",ref:g,data:y(c),"option-render":y(x),placeholder:y(S),title:y(w),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:r.props,onCheckedChange:y(d)},{default:re(()=>[_e(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),Y("div",{class:V(y(o).e("buttons"))},[X(y(br),{type:"primary",class:V([y(o).e("button"),y(o).is("with-texts",y(_))]),disabled:y(ja)(l.rightChecked),onClick:y(v)},{default:re(()=>[X(y(Ke),null,{default:re(()=>[X(y(cl))]),_:1}),y(Qn)(T.buttonTexts[0])?se("v-if",!0):(R(),K("span",Uxe,De(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),X(y(br),{type:"primary",class:V([y(o).e("button"),y(o).is("with-texts",y(_))]),disabled:y(ja)(l.leftChecked),onClick:y(p)},{default:re(()=>[y(Qn)(T.buttonTexts[1])?se("v-if",!0):(R(),K("span",Yxe,De(T.buttonTexts[1]),1)),X(y(Ke),null,{default:re(()=>[X(y(Yr))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),X(yL,{ref_key:"rightPanel",ref:m,data:y(f),"option-render":y(x),placeholder:y(S),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:y(C),"default-checked":T.rightDefaultChecked,props:r.props,onCheckedChange:y(h)},{default:re(()=>[_e(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Xxe=Pe(qxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const Zxe=_t(Xxe),Lf="$treeNodeId",bL=function(e,t){!t||t[Lf]||Object.defineProperty(t,Lf,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},vk=function(e,t){return e?t[e]:t[Lf]},_x=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},Sx=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}},ky=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=Sx(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||ky(a)},Zg=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 Jxe=0,Cx=class Ay{constructor(t){this.id=Jxe++,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)$t(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=Zg(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)||bL(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)||bL(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Zg(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return Zg(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Zg(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 Ay)){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=jt(new Ay(t)),t instanceof Ay&&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||ky(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}=Sx(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 v=u[d];a=a||t!==!1;const p=v.disabled?v.checked:a;v.setChecked(p,n,!0,a)}const{half:c,all:f}=Sx(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),ky(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||ky(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[Lf];!!s&&n.findIndex(u=>u[Lf]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[Lf]]||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 Qxe{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)$t(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Cx({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 Cx)return t;const n=Mt(t)?vk(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)$t(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(v){v.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 e2e=j({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Me("tree"),n=Ge("NodeInstance"),r=Ge("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(Ze,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):Ze("span",{class:t.be("node","label")},[a.label])}}});var t2e=Pe(e2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function S8(e){const t=Ge("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),Et("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const C8=Symbol("dragEvents");function n2e({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const i=Me("tree"),o=H({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Et(C8,{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.node.id!==d.node.id&&pa(h.$el,i.is("drop-inner"));const v=o.value.draggingNode;if(!v||!d)return;let p=!0,g=!0,m=!0,b=!0;typeof e.allowDrop=="function"&&(p=e.allowDrop(v.node,d.node,"prev"),b=g=e.allowDrop(v.node,d.node,"inner"),m=e.allowDrop(v.node,d.node,"next")),c.dataTransfer.dropEffect=g||p||m?"move":"none",(p||g||m)&&(h==null?void 0:h.node.id)!==d.node.id&&(h&&t.emit("node-drag-leave",v.node,h.node,c),t.emit("node-drag-enter",v.node,d.node,c)),(p||g||m)&&(o.value.dropNode=d),d.node.nextSibling===v.node&&(m=!1),d.node.previousSibling===v.node&&(p=!1),d.node.contains(v.node,!1)&&(g=!1),(v.node===d.node||v.node.contains(d.node))&&(p=!1,g=!1,m=!1);const _=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let C;const S=p?g?.25:m?.45:1:-1,x=m?g?.75:p?.55:0:1;let T=-9999;const M=c.clientY-_.top;M<_.height*S?C="before":M>_.height*x?C="after":g?C="inner":C="none";const A=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),k=r.value;C==="before"?T=A.top-w.top:C==="after"&&(T=A.bottom-w.top),k.style.top=`${T}px`,k.style.left=`${A.right-w.left}px`,C==="inner"?so(d.$el,i.is("drop-inner")):pa(d.$el,i.is("drop-inner")),o.value.showDropIndicator=C==="before"||C==="after",o.value.allowDrop=o.value.showDropIndicator||b,o.value.dropType=C,t.emit("node-drag-over",v.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 v={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(v,h.node):d==="after"?h.node.parent.insertAfter(v,h.node):d==="inner"&&h.node.insertChild(v),d!=="none"&&a.value.registerNode(v),pa(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 r2e=j({name:"ElTreeNode",components:{ElCollapseTransition:s1,ElCheckbox:li,NodeContent:t2e,ElIcon:Ke,Loading:kl},props:{node:{type:Cx,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Me("tree"),{broadcastExpanded:r}=S8(e),a=Ge("RootTree"),i=H(!1),o=H(!1),s=H(null),l=H(null),u=H(null),c=Ge(C8),f=gt();Et("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";xe(()=>{const M=e.node.data[d];return M&&[...M]},()=>{e.node.updateChildren()}),xe(()=>e.node.indeterminate,M=>{p(e.node.checked,M)}),xe(()=>e.node.checked,M=>{p(M,e.node.indeterminate)}),xe(()=>e.node.expanded,M=>{Ue(()=>i.value=M),M&&(o.value=!0)});const h=M=>vk(a.props.nodeKey,M.data),v=M=>{const A=e.props.class;if(!A)return{};let k;if(it(A)){const{data:E}=M;k=A(E,M)}else k=A;return lt(k)?{[k]:!0}:k},p=(M,A)=>{(s.value!==M||l.value!==A)&&a.ctx.emit("check-change",e.node.data,M,A),s.value=M,l.value=A},g=M=>{_x(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&b(),a.props.checkOnClickNode&&!e.node.disabled&&_(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,M)},m=M=>{a.instance.vnode.props.onNodeContextmenu&&(M.stopPropagation(),M.preventDefault()),a.ctx.emit("node-contextmenu",M,e.node.data,e.node,f)},b=()=>{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)))},_=(M,A)=>{e.node.setChecked(A.target.checked,!a.props.checkStrictly),Ue(()=>{const k=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:k.getCheckedNodes(),checkedKeys:k.getCheckedKeys(),halfCheckedNodes:k.getHalfCheckedNodes(),halfCheckedKeys:k.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:v,handleSelectChange:p,handleClick:g,handleContextMenu:m,handleExpandIconClick:b,handleCheckChange:_,handleChildNodeExpand:(M,A,k)=>{r(A),a.ctx.emit("node-expand",M,A,k)},handleDragStart:M=>{a.props.draggable&&c.treeNodeDragStart({event:M,treeNode:e})},handleDragOver:M=>{M.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:M,treeNode:{$el:u.value,node:e.node}})},handleDrop:M=>{M.preventDefault()},handleDragEnd:M=>{a.props.draggable&&c.treeNodeDragEnd(M)},CaretRight:V5}}}),a2e=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],i2e=["aria-expanded"];function o2e(e,t,n,r,a,i){const o=ct("el-icon"),s=ct("el-checkbox"),l=ct("loading"),u=ct("node-content"),c=ct("el-tree-node"),f=ct("el-collapse-transition");return dt((R(),K("div",{ref:"node$",class:V([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]=tt((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[3]||(t[3]=tt((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[4]||(t[4]=tt((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[5]||(t[5]=tt((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[6]||(t[6]=tt((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[Y("div",{class:V(e.ns.be("node","content")),style:Ye({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(R(),ce(o,{key:0,class:V([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:tt(e.handleExpandIconClick,["stop"])},{default:re(()=>[(R(),ce(Ct(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):se("v-if",!0),e.showCheckbox?(R(),ce(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=tt(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):se("v-if",!0),e.node.loading?(R(),ce(o,{key:2,class:V([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:re(()=>[X(l)]),_:1},8,["class"])):se("v-if",!0),X(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),X(f,null,{default:re(()=>[!e.renderAfterExpand||e.childNodeRendered?dt((R(),K("div",{key:0,class:V(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(R(!0),K(je,null,Ot(e.node.childNodes,d=>(R(),ce(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,i2e)),[[Kt,e.expanded]]):se("v-if",!0)]),_:1})],42,a2e)),[[Kt,e.node.visible]])}var s2e=Pe(r2e,[["render",o2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function l2e({el$:e},t){const n=Me("tree"),r=ln([]),a=ln([]);yt(()=>{o()}),us(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),xe(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),yn(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([Xe.up,Xe.down].includes(u)){if(s.preventDefault(),u===Xe.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()}[Xe.left,Xe.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[Xe.enter,Xe.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 u2e=j({name:"ElTree",components:{ElTreeNode:s2e},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:cn}},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}=Ht(),r=Me("tree"),a=H(new Qxe({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=H(a.value.root),o=H(null),s=H(null),l=H(null),{broadcastExpanded:u}=S8(e),{dragState:c}=n2e({props:e,ctx:t,el$:s,dropIndicator$:l,store:a});l2e({el$:s},a);const f=P(()=>{const{childNodes:O}=i.value;return!O||O.length===0||O.every(({visible:N})=>!N)});xe(()=>e.currentNodeKey,O=>{a.value.setCurrentNodeKey(O)}),xe(()=>e.defaultCheckedKeys,O=>{a.value.setDefaultCheckedKey(O)}),xe(()=>e.defaultExpandedKeys,O=>{a.value.setDefaultExpandedKeys(O)}),xe(()=>e.data,O=>{a.value.setData(O)},{deep:!0}),xe(()=>e.checkStrictly,O=>{a.value.checkStrictly=O});const d=O=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(O)},h=O=>vk(e.nodeKey,O.data),v=O=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const N=a.value.getNode(O);if(!N)return[];const I=[N.data];let F=N.parent;for(;F&&F!==i.value;)I.push(F.data),F=F.parent;return I.reverse()},p=(O,N)=>a.value.getCheckedNodes(O,N),g=O=>a.value.getCheckedKeys(O),m=()=>{const O=a.value.getCurrentNode();return O?O.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const O=m();return O?O[e.nodeKey]:null},_=(O,N)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(O,N)},w=(O,N)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(O,N)},C=(O,N,I)=>{a.value.setChecked(O,N,I)},S=()=>a.value.getHalfCheckedNodes(),x=()=>a.value.getHalfCheckedKeys(),T=(O,N=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");_x(a,t.emit,()=>a.value.setUserCurrentNode(O,N))},M=(O,N=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");_x(a,t.emit,()=>a.value.setCurrentNodeKey(O,N))},A=O=>a.value.getNode(O),k=O=>{a.value.remove(O)},E=(O,N)=>{a.value.append(O,N)},D=(O,N)=>{a.value.insertBefore(O,N)},L=(O,N)=>{a.value.insertAfter(O,N)},B=(O,N,I)=>{u(N),t.emit("node-expand",O,N,I)},$=(O,N)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(O,N)};return Et("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:o,instance:gt()}),Et(wo,void 0),{ns:r,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:v,getCheckedNodes:p,getCheckedKeys:g,getCurrentNode:m,getCurrentKey:b,setCheckedNodes:_,setCheckedKeys:w,setChecked:C,getHalfCheckedNodes:S,getHalfCheckedKeys:x,setCurrentNode:T,setCurrentKey:M,t:n,getNode:A,remove:k,append:E,insertBefore:D,insertAfter:L,handleNodeExpand:B,updateKeyChildren:$}}});function c2e(e,t,n,r,a,i){const o=ct("el-tree-node");return R(),K("div",{ref:"el$",class:V([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"},[(R(!0),K(je,null,Ot(e.root.childNodes,s=>(R(),ce(o,{key:e.getNodeKey(s),node:s,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?(R(),K("div",{key:0,class:V(e.ns.e("empty-block"))},[_e(e.$slots,"empty",{},()=>{var s;return[Y("span",{class:V(e.ns.e("empty-text"))},De((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):se("v-if",!0),dt(Y("div",{ref:"dropIndicator$",class:V(e.ns.e("drop-indicator"))},null,2),[[Kt,e.dragState.showDropIndicator]])],2)}var Ey=Pe(u2e,[["render",c2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Ey.install=e=>{e.component(Ey.name,Ey)};const C0=Ey,f2e=C0,d2e=(e,{attrs:t},{tree:n,key:r})=>{const a=Me("tree-select"),i={...zo(ir(e),Object.keys(sc.props)),...t,valueKey:r,popperClass:P(()=>{const o=[a.e("popper")];return e.popperClass&&o.push(e.popperClass),o.join(" ")}),filterMethod:(o="")=>{e.filterMethod&&e.filterMethod(o),Ue(()=>{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},h2e=j({extends:p0,setup(e,t){const n=p0.setup(e,t);delete n.selectOptionClick;const r=gt().proxy;return Ue(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function xx(e){return e||e===0}function pk(e){return Array.isArray(e)&&e.length}function oh(e){return Array.isArray(e)?e:xx(e)?[e]:[]}function Iy(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(pk(s)){const l=Iy(s,t,n,r,o);if(l)return l}}}}function x8(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);pk(o)&&x8(o,t,n,i)}}const v2e=(e,{attrs:t,slots:n,emit:r},{select:a,tree:i,key:o})=>{xe(()=>e.modelValue,()=>{e.showCheckbox&&Ue(()=>{const d=i.value;d&&!va(d.getCheckedKeys(),oh(e.modelValue))&&d.setCheckedKeys(oh(e.modelValue))})},{immediate:!0,deep:!0});const s=P(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(d,h)=>{var v;const p=s.value[d];return it(p)?p(h,(v=i.value)==null?void 0:v.getNode(l("value",h))):h[p]},u=oh(e.modelValue).map(d=>Iy(e.data||[],h=>l("value",h)===d,h=>l("children",h),(h,v,p,g)=>g&&l("value",g))).filter(d=>xx(d)),c=P(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return x8(e.data.concat(e.cacheData),h=>{const v=l("value",h);d.push({value:v,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=P(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...zo(ir(e),Object.keys(C0.props)),...t,nodeKey:o,expandOnClickNode:P(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:P(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:v,store:p})=>d(h2e,{value:l("value",v),label:l("label",v),disabled:l("disabled",v)},e.renderContent?()=>e.renderContent(d,{node:h,data:v,store:p}):n.default?()=>n.default({node:h,data:v,store:p}):void 0),filterNodeMethod:(d,h,v)=>{var p;return e.filterNodeMethod?e.filterNodeMethod(d,h,v):d?(p=l("label",h))==null?void 0:p.includes(d):!0},onNodeClick:(d,h,v)=>{var p,g,m;if((p=t.onNodeClick)==null||p.call(t,d,h,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!l("disabled",d)){const b=(g=a.value)==null?void 0:g.options.get(l("value",d));(m=a.value)==null||m.handleOptionSelect(b)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(d,h)=>{if(!e.showCheckbox)return;const v=l("value",d),p=h.checkedKeys,g=e.multiple?oh(e.modelValue).filter(b=>b in f.value&&!i.value.getNode(b)&&!p.includes(b)):[],m=p.concat(g);if(e.checkStrictly)r(wt,e.multiple?m:m.includes(v)?v:void 0);else if(e.multiple)r(wt,i.value.getCheckedKeys(!0));else{const b=Iy([d],C=>!pk(l("children",C))&&!l("disabled",C),C=>l("children",C)),_=b?l("value",b):void 0,w=xx(e.modelValue)&&!!Iy([d],C=>l("value",C)===e.modelValue,C=>l("children",C));r(wt,_===e.modelValue||w?void 0:_)}Ue(()=>{var b;const _=oh(e.modelValue);i.value.setCheckedKeys(_),(b=t.onCheck)==null||b.call(t,d,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})},cacheOptions:c}};var p2e=j({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ge(ng);return xe(()=>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 g2e=j({name:"ElTreeSelect",inheritAttrs:!1,props:{...sc.props,...C0.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=H(),i=H(),o=P(()=>e.nodeKey||e.valueKey||"value"),s=d2e(e,t,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=v2e(e,t,{select:a,tree:i,key:o}),c=jt({});return r(c),yt(()=>{Object.assign(c,{...zo(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...zo(a.value,["focus","blur"])})}),()=>Ze(sc,jt({...s,ref:f=>a.value=f}),{...n,default:()=>[Ze(p2e,{data:l.value}),Ze(C0,jt({...u,ref:f=>i.value=f}))]})}});var Dy=Pe(g2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);Dy.install=e=>{e.component(Dy.name,Dy)};const m2e=Dy,y2e=m2e,gk=Symbol(),b2e={key:-1,level:-1,data:{}};var Vh=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Vh||{}),Tx=(e=>(e.ADD="add",e.DELETE="delete",e))(Tx||{});const T8={type:Number,default:26},_2e=Le({data:{type:ue(Array),default:()=>Sn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ue(Object),default:()=>Sn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:ue(Array),default:()=>Sn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:ue(Array),default:()=>Sn([])},indent:{type:Number,default:16},itemSize:T8,icon:{type:cn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:ue([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:ue(Function)},perfMode:{type:Boolean,default:!0}}),w2e=Le({node:{type:ue(Object),default:()=>Sn(b2e)},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:T8}),S2e=Le({node:{type:ue(Object),required:!0}}),M8="node-click",k8="node-expand",A8="node-collapse",E8="current-change",I8="check",D8="check-change",P8="node-contextmenu",C2e={[M8]:(e,t,n)=>e&&t&&n,[k8]:(e,t)=>e&&t,[A8]:(e,t)=>e&&t,[E8]:(e,t)=>e&&t,[I8]:(e,t)=>e&&t,[D8]:(e,t)=>e&&typeof t=="boolean",[P8]:(e,t,n)=>e&&t&&n},x2e={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function T2e(e,t){const n=H(new Set),r=H(new Set),{emit:a}=gt();xe([()=>t.value,()=>e.defaultCheckedKeys],()=>Ue(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:_,maxLevel:w}=t.value,C=n.value,S=new Set;for(let x=w-1;x>=1;--x){const T=_.get(x);T&&T.forEach(M=>{const A=M.children;if(A){let k=!0,E=!1;for(const D of A){const L=D.key;if(C.has(L))E=!0;else if(S.has(L)){k=!1,E=!0;break}else k=!1}k?C.add(M.key):E?(S.add(M.key),C.delete(M.key)):(C.delete(M.key),S.delete(M.key))}})}r.value=S},o=_=>n.value.has(_.key),s=_=>r.value.has(_.key),l=(_,w,C=!0)=>{const S=n.value,x=(T,M)=>{S[M?Tx.ADD:Tx.DELETE](T.key);const A=T.children;!e.checkStrictly&&A&&A.forEach(k=>{k.disabled||x(k,M)})};x(_,w),i(),C&&u(_,w)},u=(_,w)=>{const{checkedNodes:C,checkedKeys:S}=v(),{halfCheckedNodes:x,halfCheckedKeys:T}=p();a(I8,_.data,{checkedKeys:S,checkedNodes:C,halfCheckedKeys:T,halfCheckedNodes:x}),a(D8,_.data,w)};function c(_=!1){return v(_).checkedKeys}function f(_=!1){return v(_).checkedNodes}function d(){return p().halfCheckedKeys}function h(){return p().halfCheckedNodes}function v(_=!1){const w=[],C=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;n.value.forEach(x=>{const T=S.get(x);T&&(!_||_&&T.isLeaf)&&(C.push(x),w.push(T.data))})}return{checkedKeys:C,checkedNodes:w}}function p(){const _=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:C}=t.value;r.value.forEach(S=>{const x=C.get(S);x&&(w.push(S),_.push(x.data))})}return{halfCheckedNodes:_,halfCheckedKeys:w}}function g(_){n.value.clear(),r.value.clear(),b(_)}function m(_,w){if(t!=null&&t.value&&e.showCheckbox){const C=t.value.treeNodeMap.get(_);C&&l(C,w,!1)}}function b(_){if(t!=null&&t.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&_)for(const C of _){const S=w.get(C);S&&!o(S)&&l(S,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}}function M2e(e,t){const n=H(new Set([])),r=H(new Set([])),a=P(()=>it(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)||[],v=e.filterMethod;f.clear();function p(g){g.forEach(m=>{d.push(m),v!=null&&v(s,m.data)?d.forEach(_=>{u.add(_.key)}):m.isLeaf&&f.add(m.key);const b=m.children;if(b&&p(b),!m.isLeaf){if(!u.has(m.key))f.add(m.key);else if(b){let _=!0;for(const w of b)if(!f.has(w.key)){_=!1;break}_?c.add(m.key):c.delete(m.key)}}d.pop()})}return p(h),u}function o(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function k2e(e,t){const n=H(new Set(e.defaultExpandedKeys)),r=H(),a=ln();xe(()=>e.currentNodeKey,q=>{r.value=q},{immediate:!0}),xe(()=>e.data,q=>{ee(q)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=T2e(e,a),{doFilter:v,hiddenNodeKeySet:p,isForceHiddenExpandIcon:g}=M2e(e,a),m=P(()=>{var q;return((q=e.props)==null?void 0:q.value)||Vh.KEY}),b=P(()=>{var q;return((q=e.props)==null?void 0:q.children)||Vh.CHILDREN}),_=P(()=>{var q;return((q=e.props)==null?void 0:q.disabled)||Vh.DISABLED}),w=P(()=>{var q;return((q=e.props)==null?void 0:q.label)||Vh.LABEL}),C=P(()=>{const q=n.value,de=p.value,ve=[],ie=a.value&&a.value.treeNodes||[];function W(){const Z=[];for(let oe=ie.length-1;oe>=0;--oe)Z.push(ie[oe]);for(;Z.length;){const oe=Z.pop();if(oe&&(de.has(oe.key)||ve.push(oe),q.has(oe.key))){const pe=oe.children;if(pe){const Se=pe.length;for(let me=Se-1;me>=0;--me)Z.push(pe[me])}}}}return W(),ve}),S=P(()=>C.value.length>0);function x(q){const de=new Map,ve=new Map;let ie=1;function W(oe,pe=1,Se=void 0){var me;const Ee=[];for(const Ce of oe){const we=A(Ce),Te={level:pe,key:we,data:Ce};Te.label=E(Ce),Te.parent=Se;const Ne=M(Ce);Te.disabled=k(Ce),Te.isLeaf=!Ne||Ne.length===0,Ne&&Ne.length&&(Te.children=W(Ne,pe+1,Te)),Ee.push(Te),de.set(we,Te),ve.has(pe)||ve.set(pe,[]),(me=ve.get(pe))==null||me.push(Te)}return pe>ie&&(ie=pe),Ee}const Z=W(q);return{treeNodeMap:de,levelTreeNodeMap:ve,maxLevel:ie,treeNodes:Z}}function T(q){const de=v(q);de&&(n.value=de)}function M(q){return q[b.value]}function A(q){return q?q[m.value]:""}function k(q){return q[_.value]}function E(q){return q[w.value]}function D(q){n.value.has(q.key)?I(q):N(q)}function L(q){n.value=new Set(q)}function B(q,de){t(M8,q.data,q,de),$(q),e.expandOnClickNode&&D(q),e.showCheckbox&&e.checkOnClickNode&&!q.disabled&&s(q,!o(q),!0)}function $(q){U(q)||(r.value=q.key,t(E8,q.data,q))}function O(q,de){s(q,de)}function N(q){const de=n.value;if(a.value&&e.accordion){const{treeNodeMap:ve}=a.value;de.forEach(ie=>{const W=ve.get(ie);q&&q.level===(W==null?void 0:W.level)&&de.delete(ie)})}de.add(q.key),t(k8,q.data,q)}function I(q){n.value.delete(q.key),t(A8,q.data,q)}function F(q){return n.value.has(q.key)}function G(q){return!!q.disabled}function U(q){const de=r.value;return de!==void 0&&de===q.key}function J(){var q,de;if(r.value)return(de=(q=a.value)==null?void 0:q.treeNodeMap.get(r.value))==null?void 0:de.data}function ae(){return r.value}function Q(q){r.value=q}function ee(q){Ue(()=>a.value=x(q))}function te(q){var de;const ve=Mt(q)?A(q):q;return(de=a.value)==null?void 0:de.treeNodeMap.get(ve)}return{tree:a,flattenTree:C,isNotEmpty:S,getKey:A,getChildren:M,toggleExpand:D,toggleCheckbox:s,isExpanded:F,isChecked:o,isIndeterminate:i,isDisabled:G,isCurrent:U,isForceHiddenExpandIcon:g,handleNodeClick:B,handleNodeCheck:O,getCurrentNode:J,getCurrentKey:ae,setCurrentKey:Q,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:T,setData:ee,getNode:te,expandNode:N,collapseNode:I,setExpandedKeys:L}}var A2e=j({name:"ElTreeNodeContent",props:S2e,setup(e){const t=Ge(gk),n=Me("tree");return()=>{const r=e.node,{data:a}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):Ze("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const E2e=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],I2e=j({name:"ElTreeNode"}),D2e=j({...I2e,props:w2e,emits:x2e,setup(e,{emit:t}){const n=e,r=Ge(gk),a=Me("tree"),i=P(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=P(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:V5}),s=f=>{t("click",n.node,f)},l=()=>{t("toggle",n.node)},u=f=>{t("check",n.node,f)},c=f=>{var d,h,v,p;(v=(h=(d=r==null?void 0:r.instance)==null?void 0:d.vnode)==null?void 0:h.props)!=null&&v.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),r==null||r.ctx.emit(P8,f,(p=n.node)==null?void 0:p.data,n.node)};return(f,d)=>{var h,v,p;return R(),K("div",{ref:"node$",class:V([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:tt(s,["stop"]),onContextmenu:c},[Y("div",{class:V(y(a).be("node","content")),style:Ye({paddingLeft:`${(f.node.level-1)*y(i)}px`,height:f.itemSize+"px"})},[y(o)?(R(),ce(y(Ke),{key:0,class:V([y(a).is("leaf",!!((v=f.node)!=null&&v.isLeaf)),y(a).is("hidden",f.hiddenExpandIcon),{expanded:!((p=f.node)!=null&&p.isLeaf)&&f.expanded},y(a).be("node","expand-icon")]),onClick:tt(l,["stop"])},{default:re(()=>[(R(),ce(Ct(y(o))))]),_:1},8,["class","onClick"])):se("v-if",!0),f.showCheckbox?(R(),ce(y(li),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=tt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):se("v-if",!0),X(y(A2e),{node:f.node},null,8,["node"])],6)],42,E2e)}}});var P2e=Pe(D2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const L2e=j({name:"ElTreeV2"}),R2e=j({...L2e,props:_2e,emits:C2e,setup(e,{expose:t,emit:n}){const r=e,a=Tr(),i=P(()=>r.itemSize);Et(gk,{ctx:{emit:n,slots:a},props:r,instance:gt()}),Et(wo,void 0);const{t:o}=Ht(),s=Me("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:v,isCurrent:p,isForceHiddenExpandIcon:g,handleNodeClick:m,handleNodeCheck:b,toggleCheckbox:_,getCurrentNode:w,getCurrentKey:C,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:A,setChecked:k,setCheckedKeys:E,filter:D,setData:L,getNode:B,expandNode:$,collapseNode:O,setExpandedKeys:N}=k2e(r,n);return t({toggleCheckbox:_,getCurrentNode:w,getCurrentKey:C,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:A,setChecked:k,setCheckedKeys:E,filter:D,setData:L,getNode:B,expandNode:$,collapseNode:O,setExpandedKeys:N}),(I,F)=>{var G;return R(),K("div",{class:V([y(s).b(),{[y(s).m("highlight-current")]:I.highlightCurrent}]),role:"tree"},[y(u)?(R(),ce(y(B6),{key:0,"class-name":y(s).b("virtual-list"),data:y(l),total:y(l).length,height:I.height,"item-size":y(i),"perf-mode":I.perfMode},{default:re(({data:U,index:J,style:ae})=>[(R(),ce(P2e,{key:U[J].key,style:Ye(ae),node:U[J],expanded:y(f)(U[J]),"show-checkbox":I.showCheckbox,checked:y(h)(U[J]),indeterminate:y(d)(U[J]),"item-size":y(i),disabled:y(v)(U[J]),current:y(p)(U[J]),"hidden-expand-icon":y(g)(U[J]),onClick:y(m),onToggle:y(c),onCheck:y(b)},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"])):(R(),K("div",{key:1,class:V(y(s).e("empty-block"))},[Y("span",{class:V(y(s).e("empty-text"))},De((G=I.emptyText)!=null?G:y(o)("el.tree.emptyText")),3)],2))],2)}}});var O2e=Pe(R2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const N2e=_t(O2e),L8=Symbol("uploadContextKey"),$2e="ElUpload";class B2e extends Error{constructor(t,n,r,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function _L(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 B2e(r,n.status,t.method,e)}function V2e(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const F2e=e=>{typeof XMLHttpRequest>"u"&&Yn($2e,"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))He(o)&&o.length?r.append(i,...o):r.append(i,o);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(_L(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(_L(n,e,t));e.onSuccess(V2e(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))Wn(o)||t.setRequestHeader(i,String(o));return t.send(r),t},R8=["text","picture","picture-card"];let z2e=1;const Mx=()=>Date.now()+z2e++,O8=Le({action:{type:String,default:"#"},headers:{type:ue(Object)},method:{type:String,default:"post"},data:{type:ue([Object,Function,Promise]),default:()=>Sn({})},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:ue(Array),default:()=>Sn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:R8,default:"text"},httpRequest:{type:ue(Function),default:F2e},disabled:Boolean,limit:Number}),H2e=Le({...O8,beforeUpload:{type:ue(Function),default:nn},beforeRemove:{type:ue(Function)},onRemove:{type:ue(Function),default:nn},onChange:{type:ue(Function),default:nn},onPreview:{type:ue(Function),default:nn},onSuccess:{type:ue(Function),default:nn},onProgress:{type:ue(Function),default:nn},onError:{type:ue(Function),default:nn},onExceed:{type:ue(Function),default:nn}}),G2e=Le({files:{type:ue(Array),default:()=>Sn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:ue(Function),default:nn},listType:{type:String,values:R8,default:"text"}}),W2e={remove:e=>!!e},K2e=["onKeydown"],U2e=["src"],Y2e=["onClick"],j2e=["title"],q2e=["onClick"],X2e=["onClick"],Z2e=j({name:"ElUploadList"}),J2e=j({...Z2e,props:G2e,emits:W2e,setup(e,{emit:t}){const{t:n}=Ht(),r=Me("upload"),a=Me("icon"),i=Me("list"),o=_a(),s=H(!1),l=u=>{t("remove",u)};return(u,c)=>(R(),ce(AV,{tag:"ul",class:V([y(r).b("list"),y(r).bm("list",u.listType),y(r).is("disabled",y(o))]),name:y(i).b()},{default:re(()=>[(R(!0),K(je,null,Ot(u.files,f=>(R(),K("li",{key:f.uid||f.name,class:V([y(r).be("list","item"),y(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:zt(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)},[_e(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(R(),K("img",{key:0,class:V(y(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,U2e)):se("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(R(),K("div",{key:1,class:V(y(r).be("list","item-info"))},[Y("a",{class:V(y(r).be("list","item-name")),onClick:tt(d=>u.handlePreview(f),["prevent"])},[X(y(Ke),{class:V(y(a).m("document"))},{default:re(()=>[X(y(vae))]),_:1},8,["class"]),Y("span",{class:V(y(r).be("list","item-file-name")),title:f.name},De(f.name),11,j2e)],10,Y2e),f.status==="uploading"?(R(),ce(y(E6),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:Ye(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):se("v-if",!0)],2)):se("v-if",!0),Y("label",{class:V(y(r).be("list","item-status-label"))},[u.listType==="text"?(R(),ce(y(Ke),{key:0,class:V([y(a).m("upload-success"),y(a).m("circle-check")])},{default:re(()=>[X(y(cM))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(R(),ce(y(Ke),{key:1,class:V([y(a).m("upload-success"),y(a).m("check")])},{default:re(()=>[X(y(Zp))]),_:1},8,["class"])):se("v-if",!0)],2),y(o)?se("v-if",!0):(R(),ce(y(Ke),{key:2,class:V(y(a).m("close")),onClick:d=>l(f)},{default:re(()=>[X(y($i))]),_:2},1032,["class","onClick"])),se(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),se(" This is a bug which needs to be fixed "),se(" TODO: Fix the incorrect navigation interaction "),y(o)?se("v-if",!0):(R(),K("i",{key:3,class:V(y(a).m("close-tip"))},De(y(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(R(),K("span",{key:4,class:V(y(r).be("list","item-actions"))},[Y("span",{class:V(y(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[X(y(Ke),{class:V(y(a).m("zoom-in"))},{default:re(()=>[X(y(G5))]),_:1},8,["class"])],10,q2e),y(o)?se("v-if",!0):(R(),K("span",{key:0,class:V(y(r).be("list","item-delete")),onClick:d=>l(f)},[X(y(Ke),{class:V(y(a).m("delete"))},{default:re(()=>[X(y(fae))]),_:1},8,["class"])],10,X2e))],2)):se("v-if",!0)])],42,K2e))),128)),_e(u.$slots,"append")]),_:3},8,["class","name"]))}});var wL=Pe(J2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const Q2e=Le({disabled:{type:Boolean,default:!1}}),eTe={file:e=>He(e)},tTe=["onDrop","onDragover"],N8="ElUploadDrag",nTe=j({name:N8}),rTe=j({...nTe,props:Q2e,emits:eTe,setup(e,{emit:t}){const n=Ge(L8);n||Yn(N8,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Me("upload"),a=H(!1),i=_a(),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:v}=d,p=v.includes(".")?`.${v.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(m=>m.trim()).filter(m=>m).some(m=>m.startsWith(".")?p===m:/\/\*$/.test(m)?g===m.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(m)?h===m:!1)});t("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(R(),K("div",{class:V([y(r).b("dragger"),y(r).is("dragover",a.value)]),onDrop:tt(o,["prevent"]),onDragover:tt(s,["prevent"]),onDragleave:u[0]||(u[0]=tt(c=>a.value=!1,["prevent"]))},[_e(l.$slots,"default")],42,tTe))}});var aTe=Pe(rTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const iTe=Le({...O8,beforeUpload:{type:ue(Function),default:nn},onRemove:{type:ue(Function),default:nn},onStart:{type:ue(Function),default:nn},onSuccess:{type:ue(Function),default:nn},onProgress:{type:ue(Function),default:nn},onError:{type:ue(Function),default:nn},onExceed:{type:ue(Function),default:nn}}),oTe=["onKeydown"],sTe=["name","multiple","accept"],lTe=j({name:"ElUploadContent",inheritAttrs:!1}),uTe=j({...lTe,props:iTe,setup(e,{expose:t}){const n=e,r=Me("upload"),a=_a(),i=ln({}),o=ln(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:m,fileList:b,multiple:_,onStart:w,onExceed:C}=n;if(m&&b.length+p.length>m){C(p,b);return}_||(p=p.slice(0,1));for(const S of p){const x=S;x.uid=Mx(),w(x),g&&l(x)}},l=async p=>{if(o.value.value="",!n.beforeUpload)return c(p);let g,m={};try{const _=n.data,w=n.beforeUpload(p);m=Zy(n.data)?l0(n.data):n.data,g=await w,Zy(n.data)&&va(_,m)&&(m=l0(n.data))}catch{g=!1}if(g===!1){n.onRemove(p);return}let b=p;g instanceof Blob&&(g instanceof File?b=g:b=new File([g],p.name,{type:p.type})),c(Object.assign(b,{uid:p.uid}),m)},u=async(p,g)=>it(p)?p(g):p,c=async(p,g)=>{const{headers:m,data:b,method:_,withCredentials:w,name:C,action:S,onProgress:x,onSuccess:T,onError:M,httpRequest:A}=n;try{g=await u(g??b,p)}catch{n.onRemove(p);return}const{uid:k}=p,E={headers:m||{},withCredentials:w,file:p,data:g,method:_,filename:C,action:S,onProgress:L=>{x(L,p)},onSuccess:L=>{T(L,p),delete i.value[k]},onError:L=>{M(L,p),delete i.value[k]}},D=A(E);i.value[k]=D,D instanceof Promise&&D.then(E.onSuccess,E.onError)},f=p=>{const g=p.target.files;g&&s(Array.from(g))},d=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{d()};return t({abort:p=>{$re(i.value).filter(p?([m])=>String(p.uid)===m:()=>!0).forEach(([m,b])=>{b instanceof XMLHttpRequest&&b.abort(),delete i.value[m]})},upload:l}),(p,g)=>(R(),K("div",{class:V([y(r).b(),y(r).m(p.listType),y(r).is("drag",p.drag)]),tabindex:"0",onClick:d,onKeydown:zt(tt(h,["self"]),["enter","space"])},[p.drag?(R(),ce(aTe,{key:0,disabled:y(a),onFile:s},{default:re(()=>[_e(p.$slots,"default")]),_:3},8,["disabled"])):_e(p.$slots,"default",{key:1}),Y("input",{ref_key:"inputRef",ref:o,class:V(y(r).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=tt(()=>{},["stop"]))},null,42,sTe)],42,oTe))}});var SL=Pe(uTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const CL="ElUpload",xL=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},cTe=(e,t)=>{const n=CZ(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 v=r(h);v&&(console.error(d),v.status="fail",n.value.splice(n.value.indexOf(v),1),e.onError(d,v,n.value),e.onChange(v,n.value))},s=(d,h)=>{const v=r(h);v&&(e.onProgress(d,v,n.value),v.status="uploading",v.percentage=Math.round(d.percent))},l=(d,h)=>{const v=r(h);v&&(v.status="success",v.response=d,e.onSuccess(d,v,n.value),e.onChange(v,n.value))},u=d=>{Wn(d.uid)&&(d.uid=Mx());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(v){v.message,e.onError(v,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||Yn(CL,"file to be removed not found");const v=p=>{a(p);const g=n.value;g.splice(g.indexOf(p),1),e.onRemove(p,g),xL(p)};e.beforeRemove?await e.beforeRemove(h,n.value)!==!1&&v(h):v(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 xe(()=>e.listType,d=>{d!=="picture-card"&&d!=="picture"||(n.value=n.value.map(h=>{const{raw:v,url:p}=h;if(!p&&v)try{h.url=URL.createObjectURL(v)}catch(g){e.onError(g,h,n.value)}return h}))}),xe(n,d=>{for(const h of d)h.uid||(h.uid=Mx()),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,revokeFileObjectURL:xL}},fTe=j({name:"ElUpload"}),dTe=j({...fTe,props:H2e,setup(e,{expose:t}){const n=e,r=_a(),a=ln(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:v}=cTe(n,a),p=P(()=>n.listType==="picture-card"),g=P(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return _n(()=>{l.value.forEach(v)}),Et(L8,{accept:Mn(n,"accept")}),t({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(m,b)=>(R(),K("div",null,[y(p)&&m.showFileList?(R(),ce(wL,{key:0,disabled:y(r),"list-type":m.listType,files:y(l),"handle-preview":m.onPreview,onRemove:y(f)},Zo({append:re(()=>[X(SL,St({ref_key:"uploadRef",ref:a},y(g)),{default:re(()=>[m.$slots.trigger?_e(m.$slots,"trigger",{key:0}):se("v-if",!0),!m.$slots.trigger&&m.$slots.default?_e(m.$slots,"default",{key:1}):se("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:re(({file:_})=>[_e(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):se("v-if",!0),!y(p)||y(p)&&!m.showFileList?(R(),ce(SL,St({key:1,ref_key:"uploadRef",ref:a},y(g)),{default:re(()=>[m.$slots.trigger?_e(m.$slots,"trigger",{key:0}):se("v-if",!0),!m.$slots.trigger&&m.$slots.default?_e(m.$slots,"default",{key:1}):se("v-if",!0)]),_:3},16)):se("v-if",!0),m.$slots.trigger?_e(m.$slots,"default",{key:2}):se("v-if",!0),_e(m.$slots,"tip"),!y(p)&&m.showFileList?(R(),ce(wL,{key:3,disabled:y(r),"list-type":m.listType,files:y(l),"handle-preview":m.onPreview,onRemove:y(f)},Zo({_:2},[m.$slots.file?{name:"default",fn:re(({file:_})=>[_e(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):se("v-if",!0)]))}});var hTe=Pe(dTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const vTe=_t(hTe);var pTe=[yse,Ese,tce,DCe,lce,pce,YF,Ace,Ece,br,ez,jfe,Qfe,hde,vde,Ahe,vhe,Rhe,li,Rde,Az,Uhe,cve,fve,nve,Fve,cse,Jve,Qve,epe,tpe,npe,Sge,Pge,Lge,qge,u6,ume,eye,tye,nye,y6,Sle,Cle,Ke,jye,b6,Lr,_6,l0e,A0e,E0e,I0e,D0e,B0e,Gbe,qbe,a1e,WF,E6,Oz,Xde,qde,w1e,M1e,zhe,ds,sc,p0,pbe,g_e,x_e,T_e,twe,owe,j6,mwe,Mwe,kwe,Bwe,USe,YSe,ICe,UCe,YCe,Qv,JCe,Mfe,axe,uxe,cxe,Qr,Nxe,Zxe,f2e,y2e,N2e,vTe];const xi="ElInfiniteScroll",gTe=50,mTe=200,yTe=0,bTe={delay:{type:Number,default:mTe},distance:{type:Number,default:yTe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},mk=(e,t)=>Object.entries(bTe).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},{}),$8=e=>{const{observer:t}=e[xi];t&&(t.disconnect(),delete e[xi].observer)},_Te=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=e[xi],{disabled:s,distance:l}=mk(e,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(e[xi].lastScrollTop=f,i||s||d<0)return;let h=!1;if(n===e)h=c-(u+f)<=l;else{const{clientTop:v,scrollHeight:p}=e,g=kZ(e,r);h=f+u>=g+v+p-l}h&&t.call(a)};function B_(e,t){const{containerEl:n,instance:r}=e[xi],{disabled:a}=mk(e,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):$8(e))}const wTe={async mounted(e,t){const{instance:n,value:r}=t;it(r)||Yn(xi,"'v-infinite-scroll' binding value must be a function"),await Ue();const{delay:a,immediate:i}=mk(e,n),o=uM(e,!0),s=o===window?document.documentElement:o,l=Uu(_Te.bind(null,e,r),a);if(o){if(e[xi]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Uu(B_.bind(null,e,r),gTe));e[xi].observer=u,u.observe(e,{childList:!0,subtree:!0}),B_(e,r)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[xi];t==null||t.removeEventListener("scroll",n),$8(e)},async updated(e){if(!e[xi])await Ue();else{const{containerEl:t,cb:n,observer:r}=e[xi];t.clientHeight&&r&&B_(e,n)}}},kx=wTe;kx.install=e=>{e.directive("InfiniteScroll",kx)};const STe=kx;function CTe(e){let t;const n=H(!1),r=jt({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(d){r.text=d}function i(){const d=r.parent,h=f.ns;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(pa(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),pa(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=j({name:"ElLoading",setup(d,{expose:h}){const{ns:v,zIndex:p}=r1("loading");return h({ns:v,zIndex:p}),()=>{const g=r.spinner||r.svg,m=Ze("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[Ze("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=r.text?Ze("p",{class:v.b("text")},[r.text]):void 0;return Ze($n,{name:v.b("fade"),onAfterLeave:l},{default:re(()=>[dt(X("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Ze("div",{class:v.b("spinner")},[m,b])]),[[Kt,r.visible]])])})}}}),c=LV(u),f=c.mount(document.createElement("div"));return{...ir(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let Jg;const Ax=function(e={}){if(!Vt)return;const t=xTe(e);if(t.fullscreen&&Jg)return Jg;const n=CTe({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Jg=void 0)}});TTe(t,t.parent,n),TL(t,t.parent,n),t.parent.vLoadingAddClassList=()=>TL(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),Ue(()=>n.visible.value=t.visible),t.fullscreen&&(Jg=n),n},xTe=e=>{var t,n,r,a;let i;return lt(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}},TTe=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=zs(document.body,"position"),n.originalOverflow.value=zs(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=zs(document.body,"position"),await Ue();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(zs(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=zs(t,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},TL=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?pa(t,r.bm("parent","relative")):so(t,r.bm("parent","relative")),e.fullscreen&&e.lock?so(t,r.bm("parent","hidden")):pa(t,r.bm("parent","hidden"))},Ex=Symbol("ElLoading"),ML=(e,t)=>{var n,r,a,i;const o=t.instance,s=d=>Mt(t.value)?t.value[d]:void 0,l=d=>{const h=lt(d)&&(o==null?void 0:o[d])||d;return h&&H(h)},u=d=>l(s(d)||e.getAttribute(`element-loading-${Cl(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[Ex]={options:f,instance:Ax(f)}},MTe=(e,t)=>{for(const n of Object.keys(t))un(t[n])&&(t[n].value=e[n])},kL={mounted(e,t){t.value&&ML(e,t)},updated(e,t){const n=e[Ex];t.oldValue!==t.value&&(t.value&&!t.oldValue?ML(e,t):t.value&&t.oldValue?Mt(t.value)&&MTe(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ex])==null||t.instance.close()}},kTe={install(e){e.directive("loading",kL),e.config.globalProperties.$loading=Ax},directive:kL,service:Ax},B8=["success","info","warning","error"],ua=Sn({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:Vt?document.body:void 0}),ATe=Le({customClass:{type:String,default:ua.customClass},center:{type:Boolean,default:ua.center},dangerouslyUseHTMLString:{type:Boolean,default:ua.dangerouslyUseHTMLString},duration:{type:Number,default:ua.duration},icon:{type:cn,default:ua.icon},id:{type:String,default:ua.id},message:{type:ue([String,Object,Function]),default:ua.message},onClose:{type:ue(Function),required:!1},showClose:{type:Boolean,default:ua.showClose},type:{type:String,values:B8,default:ua.type},offset:{type:Number,default:ua.offset},zIndex:{type:Number,default:ua.zIndex},grouping:{type:Boolean,default:ua.grouping},repeatNum:{type:Number,default:ua.repeatNum}}),ETe={destroy:()=>!0},ki=zB([]),ITe=e=>{const t=ki.findIndex(a=>a.id===e),n=ki[t];let r;return t>0&&(r=ki[t-1]),{current:n,prev:r}},DTe=e=>{const{prev:t}=ITe(e);return t?t.vm.exposed.bottom.value:0},PTe=(e,t)=>ki.findIndex(r=>r.id===e)>0?20:t,LTe=["id"],RTe=["innerHTML"],OTe=j({name:"ElMessage"}),NTe=j({...OTe,props:ATe,emits:ETe,setup(e,{expose:t}){const n=e,{Close:r}=hM,{ns:a,zIndex:i}=r1("message"),{currentZIndex:o,nextZIndex:s}=i,l=H(),u=H(!1),c=H(0);let f;const d=P(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=P(()=>{const x=n.type;return{[a.bm("icon",x)]:x&&fl[x]}}),v=P(()=>n.icon||fl[n.type]||""),p=P(()=>DTe(n.id)),g=P(()=>PTe(n.id,n.offset)+p.value),m=P(()=>c.value+g.value),b=P(()=>({top:`${g.value}px`,zIndex:o.value}));function _(){n.duration!==0&&({stop:f}=ac(()=>{C()},n.duration))}function w(){f==null||f()}function C(){u.value=!1}function S({code:x}){x===Xe.esc&&C()}return yt(()=>{_(),s(),u.value=!0}),xe(()=>n.repeatNum,()=>{w(),_()}),yn(document,"keydown",S),Or(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:C}),(x,T)=>(R(),ce($n,{name:y(a).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:T[0]||(T[0]=M=>x.$emit("destroy")),persisted:""},{default:re(()=>[dt(Y("div",{id:x.id,ref_key:"messageRef",ref:l,class:V([y(a).b(),{[y(a).m(x.type)]:x.type&&!x.icon},y(a).is("center",x.center),y(a).is("closable",x.showClose),x.customClass]),style:Ye(y(b)),role:"alert",onMouseenter:w,onMouseleave:_},[x.repeatNum>1?(R(),ce(y(YF),{key:0,value:x.repeatNum,type:y(d),class:V(y(a).e("badge"))},null,8,["value","type","class"])):se("v-if",!0),y(v)?(R(),ce(y(Ke),{key:1,class:V([y(a).e("icon"),y(h)])},{default:re(()=>[(R(),ce(Ct(y(v))))]),_:1},8,["class"])):se("v-if",!0),_e(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(R(),K(je,{key:1},[se(" Caution here, message could've been compromised, never use user's input as message "),Y("p",{class:V(y(a).e("content")),innerHTML:x.message},null,10,RTe)],2112)):(R(),K("p",{key:0,class:V(y(a).e("content"))},De(x.message),3))]),x.showClose?(R(),ce(y(Ke),{key:2,class:V(y(a).e("closeBtn")),onClick:tt(C,["stop"])},{default:re(()=>[X(y(r))]),_:1},8,["class","onClick"])):se("v-if",!0)],46,LTe),[[Kt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var $Te=Pe(NTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let BTe=1;const V8=e=>{const t=!e||lt(e)||xn(e)||it(e)?{message:e}:e,n={...ua,...t};if(!n.appendTo)n.appendTo=document.body;else if(lt(n.appendTo)){let r=document.querySelector(n.appendTo);ri(r)||(r=document.body),n.appendTo=r}return n},VTe=e=>{const t=ki.indexOf(e);if(t===-1)return;ki.splice(t,1);const{handler:n}=e;n.close()},FTe=({appendTo:e,...t},n)=>{const r=`message_${BTe++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:r,onClose:()=>{a==null||a(),VTe(c)},onDestroy:()=>{Yf(null,i)}},s=X($Te,o,it(o.message)||xn(o.message)?{default:it(o.message)?o.message:()=>o.message}:null);s.appContext=n||ud._context,Yf(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},ud=(e={},t)=>{if(!Vt)return{close:()=>{}};if(at(PC.max)&&ki.length>=PC.max)return{close:()=>{}};const n=V8(e);if(n.grouping&&ki.length){const a=ki.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=FTe(n,t);return ki.push(r),r.handler};B8.forEach(e=>{ud[e]=(t={},n)=>{const r=V8(t);return ud({...r,type:e},n)}});function zTe(e){for(const t of ki)(!e||e===t.props.type)&&t.handler.close()}ud.closeAll=zTe;ud._context=null;const HTe=U5(ud,"$message"),GTe=j({name:"ElMessageBox",directives:{TrapFocus:lfe},components:{ElButton:br,ElFocusTrap:i1,ElInput:Lr,ElOverlay:WM,ElIcon:Ke,...hM},inheritAttrs:!1,props:{buttonSize:{type:String,validator:qb},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}=r1("message-box",P(()=>e.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=H(!1),u=jt({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=P(()=>{const B=u.type;return{[a.bm("icon",B)]:B&&fl[B]}}),f=oi(),d=oi(),h=P(()=>u.icon||fl[u.type]||""),v=P(()=>!!u.message),p=H(),g=H(),m=H(),b=H(),_=H(),w=P(()=>u.confirmButtonClass);xe(()=>u.inputValue,async B=>{await Ue(),e.boxType==="prompt"&&B!==null&&k()},{immediate:!0}),xe(()=>l.value,B=>{var $,O;B&&(e.boxType!=="prompt"&&(u.autofocus?m.value=(O=($=_.value)==null?void 0:$.$el)!=null?O:p.value:m.value=p.value),u.zIndex=s()),e.boxType==="prompt"&&(B?Ue().then(()=>{var N;b.value&&b.value.$el&&(u.autofocus?m.value=(N=E())!=null?N:p.value:m.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const C=P(()=>e.draggable);Y5(p,g,C),yt(async()=>{await Ue(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),_n(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){l.value&&(l.value=!1,Ue(()=>{u.action&&t("action",u.action)}))}const x=()=>{e.closeOnClickModal&&A(u.distinguishCancelAndClose?"close":"cancel")},T=TM(x),M=B=>{if(u.inputType!=="textarea")return B.preventDefault(),A("confirm")},A=B=>{var $;e.boxType==="prompt"&&B==="confirm"&&!k()||(u.action=B,u.beforeClose?($=u.beforeClose)==null||$.call(u,B,u,S):S())},k=()=>{if(e.boxType==="prompt"){const B=u.inputPattern;if(B&&!B.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const $=u.inputValidator;if(typeof $=="function"){const O=$(u.inputValue);if(O===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof O=="string")return u.editorErrorMessage=O,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},E=()=>{const B=b.value.$refs;return B.input||B.textarea},D=()=>{A("close")},L=()=>{e.closeOnPressEscape&&D()};return e.lockScroll&&X5(l),{...ir(u),ns:a,overlayEvent:T,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:w,rootRef:p,focusStartRef:m,headerRef:g,inputRef:b,confirmRef:_,doClose:S,handleClose:D,onCloseRequested:L,handleWrapperClick:x,handleInputEnter:M,handleAction:A,t:o}}}),WTe=["aria-label","aria-describedby"],KTe=["aria-label"],UTe=["id"];function YTe(e,t,n,r,a,i){const o=ct("el-icon"),s=ct("close"),l=ct("el-input"),u=ct("el-button"),c=ct("el-focus-trap"),f=ct("el-overlay");return R(),ce($n,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:re(()=>[dt(X(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:re(()=>[Y("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:V(`${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))},[X(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:re(()=>[Y("div",{ref:"rootRef",class:V([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ye(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=tt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(R(),K("div",{key:0,ref:"headerRef",class:V(e.ns.e("header"))},[Y("div",{class:V(e.ns.e("title"))},[e.iconComponent&&e.center?(R(),ce(o,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),Y("span",null,De(e.title),1)],2),e.showClose?(R(),K("button",{key:0,type:"button",class:V(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]=zt(tt(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[X(o,{class:V(e.ns.e("close"))},{default:re(()=>[X(s)]),_:1},8,["class"])],42,KTe)):se("v-if",!0)],2)):se("v-if",!0),Y("div",{id:e.contentId,class:V(e.ns.e("content"))},[Y("div",{class:V(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(R(),ce(o,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),e.hasMessage?(R(),K("div",{key:1,class:V(e.ns.e("message"))},[_e(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(R(),ce(Ct(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(R(),ce(Ct(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:re(()=>[Ut(De(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):se("v-if",!0)],2),dt(Y("div",{class:V(e.ns.e("input"))},[X(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:V({invalid:e.validateError}),onKeydown:zt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Y("div",{class:V(e.ns.e("errormsg")),style:Ye({visibility:e.editorErrorMessage?"visible":"hidden"})},De(e.editorErrorMessage),7)],2),[[Kt,e.showInput]])],10,UTe),Y("div",{class:V(e.ns.e("btns"))},[e.showCancelButton?(R(),ce(u,{key:0,loading:e.cancelButtonLoading,class:V([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=zt(tt(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:re(()=>[Ut(De(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):se("v-if",!0),dt(X(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:V([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]=zt(tt(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:re(()=>[Ut(De(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Kt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,WTe)]),_:3},8,["z-index","overlay-class","mask"]),[[Kt,e.visible]])]),_:3})}var jTe=Pe(GTe,[["render",YTe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const lp=new Map,qTe=e=>{let t=document.body;return e.appendTo&&(lt(e.appendTo)&&(t=document.querySelector(e.appendTo)),ri(e.appendTo)&&(t=e.appendTo),ri(t)||(t=document.body)),t},XTe=(e,t,n=null)=>{const r=X(jTe,e,it(e.message)||xn(e.message)?{default:it(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Yf(r,t),qTe(e).appendChild(t.firstElementChild),r.component},ZTe=()=>document.createElement("div"),JTe=(e,t)=>{const n=ZTe();e.onVanish=()=>{Yf(null,n),lp.delete(a)},e.onAction=i=>{const o=lp.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=XTe(e,n,t),a=r.proxy;for(const i in e)$t(e,i)&&!$t(a.$props,i)&&(a[i]=e[i]);return a.visible=!0,a};function Id(e,t=null){if(!Vt)return Promise.reject();let n;return lt(e)||xn(e)?e={message:e}:n=e.callback,new Promise((r,a)=>{const i=JTe(e,t??Id._context);lp.set(i,{options:e,callback:n,resolve:r,reject:a})})}const QTe=["alert","confirm","prompt"],eMe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};QTe.forEach(e=>{Id[e]=tMe(e)});function tMe(e){return(t,n,r,a)=>{let i="";return Mt(n)?(r=n,i=""):Qn(n)?i="":i=n,Id(Object.assign({title:i,message:t,type:"",...eMe[e]},r,{boxType:e}),a)}}Id.close=()=>{lp.forEach((e,t)=>{t.doClose()}),lp.clear()};Id._context=null;const Ls=Id;Ls.install=e=>{Ls._context=e._context,e.config.globalProperties.$msgbox=Ls,e.config.globalProperties.$messageBox=Ls,e.config.globalProperties.$alert=Ls.alert,e.config.globalProperties.$confirm=Ls.confirm,e.config.globalProperties.$prompt=Ls.prompt};const nMe=Ls,F8=["success","info","warning","error"],rMe=Le({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:cn},id:{type:String,default:""},message:{type:ue([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:ue(Function),default:()=>{}},onClose:{type:ue(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:[...F8,""],default:""},zIndex:Number}),aMe={destroy:()=>!0},iMe=["id"],oMe=["textContent"],sMe={key:0},lMe=["innerHTML"],uMe=j({name:"ElNotification"}),cMe=j({...uMe,props:rMe,emits:aMe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=r1("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=K5,l=H(!1);let u;const c=P(()=>{const _=n.type;return _&&fl[n.type]?r.m(_):""}),f=P(()=>n.type&&fl[n.type]||n.icon),d=P(()=>n.position.endsWith("right")?"right":"left"),h=P(()=>n.position.startsWith("top")?"top":"bottom"),v=P(()=>{var _;return{[h.value]:`${n.offset}px`,zIndex:(_=n.zIndex)!=null?_:o.value}});function p(){n.duration>0&&({stop:u}=ac(()=>{l.value&&m()},n.duration))}function g(){u==null||u()}function m(){l.value=!1}function b({code:_}){_===Xe.delete||_===Xe.backspace?g():_===Xe.esc?l.value&&m():p()}return yt(()=>{p(),i(),l.value=!0}),yn(document,"keydown",b),t({visible:l,close:m}),(_,w)=>(R(),ce($n,{name:y(r).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:w[1]||(w[1]=C=>_.$emit("destroy")),persisted:""},{default:re(()=>[dt(Y("div",{id:_.id,class:V([y(r).b(),_.customClass,y(d)]),style:Ye(y(v)),role:"alert",onMouseenter:g,onMouseleave:p,onClick:w[0]||(w[0]=(...C)=>_.onClick&&_.onClick(...C))},[y(f)?(R(),ce(y(Ke),{key:0,class:V([y(r).e("icon"),y(c)])},{default:re(()=>[(R(),ce(Ct(y(f))))]),_:1},8,["class"])):se("v-if",!0),Y("div",{class:V(y(r).e("group"))},[Y("h2",{class:V(y(r).e("title")),textContent:De(_.title)},null,10,oMe),dt(Y("div",{class:V(y(r).e("content")),style:Ye(_.title?void 0:{margin:0})},[_e(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(R(),K(je,{key:1},[se(" Caution here, message could've been compromised, never use user's input as message "),Y("p",{innerHTML:_.message},null,8,lMe)],2112)):(R(),K("p",sMe,De(_.message),1))])],6),[[Kt,_.message]]),_.showClose?(R(),ce(y(Ke),{key:0,class:V(y(r).e("closeBtn")),onClick:tt(m,["stop"])},{default:re(()=>[X(y(s))]),_:1},8,["class","onClick"])):se("v-if",!0)],2)],46,iMe),[[Kt,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var fMe=Pe(cMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const x0={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ix=16;let dMe=1;const cd=function(e={},t=null){if(!Vt)return{close:()=>{}};(typeof e=="string"||xn(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;x0[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+Ix}),r+=Ix;const a=`notification_${dMe++}`,i=e.onClose,o={...e,offset:r,id:a,onClose:()=>{hMe(a,n,i)}};let s=document.body;ri(e.appendTo)?s=e.appendTo:lt(e.appendTo)&&(s=document.querySelector(e.appendTo)),ri(s)||(s=document.body);const l=document.createElement("div"),u=X(fMe,o,xn(o.message)?{default:()=>o.message}:null);return u.appContext=t??cd._context,u.props.onDestroy=()=>{Yf(null,l)},Yf(u,l),x0[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};F8.forEach(e=>{cd[e]=(t={})=>((typeof t=="string"||xn(t))&&(t={message:t}),cd({...t,type:e}))});function hMe(e,t,n){const r=x0[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-Ix;f.props.offset=d}}function vMe(){for(const e of Object.values(x0))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}cd.closeAll=vMe;cd._context=null;const pMe=U5(cd,"$notify");var gMe=[STe,kTe,HTe,nMe,pMe,A6],mMe=dse([...pTe,...gMe]);/*! *****************************************************************************
  59. Copyright (c) Microsoft Corporation.
  60. Permission to use, copy, modify, and/or distribute this software for any
  61. purpose with or without fee is hereby granted.
  62. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  63. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  64. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  65. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  66. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  67. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  68. PERFORMANCE OF THIS SOFTWARE.
  69. ***************************************************************************** */var Dx=function(e,t){return Dx=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])},Dx(e,t)};function ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dx(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var yMe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),bMe=function(){function e(){this.browser=new yMe,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}(),hu=new bMe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(hu.wxa=!0,hu.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?hu.worker=!0:typeof navigator>"u"?(hu.node=!0,hu.svgSupported=!0):_Me(navigator.userAgent,hu);function _Me(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 Zt=hu;var yk=12,z8="sans-serif",pl=yk+"px "+z8,wMe=20,SMe=100,CMe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function xMe(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)-wMe)/SMe;t[r]=a}return t}var TMe=xMe(CMe),Bi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var a=Bi.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==r&&(t=e.font=r||pl),e.measureText(n);n=n||"",r=r||pl;var i=/(\d+)px/.exec(r),o=i&&+i[1]||yk,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=TMe[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 H8(e){for(var t in Bi)e[t]&&(Bi[t]=e[t])}var G8=ui(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),W8=ui(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Dd=Object.prototype.toString,d1=Array.prototype,MMe=d1.forEach,kMe=d1.filter,bk=d1.slice,AMe=d1.map,AL=(function(){}).constructor,Qg=AL?AL.prototype:null,_k="__proto__",EMe=2311;function wk(){return EMe++}function h1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function pt(e){if(e==null||typeof e!="object")return e;var t=e,n=Dd.call(e);if(n==="[object Array]"){if(!Rf(e)){t=[];for(var r=0,a=e.length;r<a;r++)t[r]=pt(e[r])}}else if(W8[n]){if(!Rf(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(!G8[n]&&!Rf(e)&&!fd(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==_k&&(t[o]=pt(e[o]))}return t}function Dt(e,t,n){if(!ht(t)||!ht(e))return n?pt(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==_k){var a=e[r],i=t[r];ht(i)&&ht(a)&&!Re(i)&&!Re(a)&&!fd(i)&&!fd(a)&&!Px(i)&&!Px(a)&&!Rf(i)&&!Rf(a)?Dt(a,i,n):(n||!(r in e))&&(e[r]=pt(t[r]))}return e}function v1(e,t){for(var n=e[0],r=1,a=e.length;r<a;r++)n=Dt(n,e[r],t);return n}function Ie(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==_k&&(e[n]=t[n]);return e}function ft(e,t,n){for(var r=Gt(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 IMe=Bi.createCanvas;function Nt(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 Sk(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 Bn(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 ft(e,t,n)}function Sr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function z(e,t,n){if(e&&t)if(e.forEach&&e.forEach===MMe)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 Oe(e,t,n){if(!e)return[];if(!t)return p1(e);if(e.map&&e.map===AMe)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 ui(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 sn(e,t,n){if(!e)return[];if(!t)return p1(e);if(e.filter&&e.filter===kMe)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 K8(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 Gt(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 DMe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(bk.call(arguments)))}}var et=Qg&&ut(Qg.bind)?Qg.call.bind(Qg.bind):DMe;function xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(bk.call(arguments)))}}function Re(e){return Array.isArray?Array.isArray(e):Dd.call(e)==="[object Array]"}function ut(e){return typeof e=="function"}function Je(e){return typeof e=="string"}function T0(e){return Dd.call(e)==="[object String]"}function Jt(e){return typeof e=="number"}function ht(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Px(e){return!!G8[Dd.call(e)]}function ba(e){return!!W8[Dd.call(e)]}function fd(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function ig(e){return e.colorStops!=null}function U8(e){return e.image!=null}function Y8(e){return Dd.call(e)==="[object RegExp]"}function dd(e){return e!==e}function nr(){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 Lt(e,t){return e??t}function Li(e,t,n){return e??t??n}function p1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return bk.apply(e,t)}function g1(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 Nr(e,t){if(!e)throw new Error(t)}function Za(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var j8="__ec_primitive__";function up(e){e[j8]=!0}function Rf(e){return e[j8]}var PMe=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 Gt(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),q8=typeof Map=="function";function LMe(){return q8?new Map:new PMe}var X8=function(){function e(t){var n=Re(t);this.data=LMe();var r=this;t instanceof e?t.each(a):t&&z(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 q8?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ot(e){return new X8(e)}function cp(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 og(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Ie(n,t),n}function Ck(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function nt(e,t){return e.hasOwnProperty(t)}function Nn(){}var hv=180/Math.PI;const RMe=Object.freeze(Object.defineProperty({__proto__:null,HashMap:X8,RADIAN_TO_DEGREE:hv,assert:Nr,bind:et,clone:pt,concatArray:cp,createCanvas:IMe,createHashMap:ot,createObject:og,curry:xt,defaults:ft,disableUserSelect:Ck,each:z,eqNaN:dd,extend:Ie,filter:sn,find:K8,guid:wk,hasOwn:nt,indexOf:Nt,inherits:Sk,isArray:Re,isArrayLike:Sr,isBuiltInObject:Px,isDom:fd,isFunction:ut,isGradientObject:ig,isImagePatternObject:U8,isNumber:Jt,isObject:ht,isPrimitive:Rf,isRegExp:Y8,isString:Je,isStringSafe:T0,isTypedArray:ba,keys:Gt,logError:h1,map:Oe,merge:Dt,mergeAll:v1,mixin:Bn,noop:Nn,normalizeCssArray:g1,reduce:ui,retrieve:nr,retrieve2:Lt,retrieve3:Li,setAsPrimitive:up,slice:p1,trim:Za},Symbol.toStringTag,{value:"Module"}));function Dl(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ir(e,t){return e[0]=t[0],e[1]=t[1],e}function vo(e){return[e[0],e[1]]}function Z8(e,t,n){return e[0]=t,e[1]=n,e}function Lx(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function M0(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Ws(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function fp(e){return Math.sqrt(xk(e))}var OMe=fp;function xk(e){return e[0]*e[0]+e[1]*e[1]}var NMe=xk;function $Me(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function BMe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function VMe(e,t){return e[0]*t[0]+e[1]*t[1]}function vv(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Cc(e,t){var n=fp(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function k0(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ho=k0;function J8(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var tl=J8;function FMe(e,t){return e[0]=-t[0],e[1]=-t[1],e}function pv(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 dr(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 Go(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Wo(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}const zMe=Object.freeze(Object.defineProperty({__proto__:null,add:Lx,applyTransform:dr,clone:vo,copy:Ir,create:Dl,dist:Ho,distSquare:tl,distance:k0,distanceSquare:J8,div:BMe,dot:VMe,len:fp,lenSquare:xk,length:OMe,lengthSquare:NMe,lerp:pv,max:Wo,min:Go,mul:$Me,negate:FMe,normalize:Cc,scale:vv,scaleAndAdd:M0,set:Z8,sub:Ws},Symbol.toStringTag,{value:"Module"}));var $c=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),HMe=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 $c(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 $c(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 $c(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new $c(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new $c(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $c(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const GMe=HMe;var WMe=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 fi=WMe;var KMe=Math.log(2);function Rx(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)/KMe);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 v=1<<d;v&a||(f+=(h%2?-1:1)*e[n][d]*Rx(e,t-1,c,u,a|v,i),h++)}return i[o]=f,f}function EL(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=Rx(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)*Rx(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 IL="___zrEVENTSAVED",V_=[];function UMe(e,t,n,r,a){return Ox(V_,t,r,a,!0)&&Ox(e,n,V_[0],V_[1])}function Ox(e,t,n,r,a){if(t.getBoundingClientRect&&Zt.domSupported&&!Q8(t)){var i=t[IL]||(t[IL]={}),o=YMe(t,i),s=jMe(o,i,a);if(s)return s(e,n,r),!0}return!1}function YMe(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 jMe(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?EL(s,o):EL(o,s))}function Q8(e){return e.nodeName.toUpperCase()==="CANVAS"}var qMe=/([&<>"'])/g,XMe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Kr(e){return e==null?"":(e+"").replace(qMe,function(t,n){return XMe[n]})}var ZMe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,F_=[],JMe=Zt.browser.firefox&&+Zt.browser.version.split(".")[0]<39;function Nx(e,t,n,r){return n=n||{},r?DL(e,t,n):JMe&&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):DL(e,t,n),n}function DL(e,t,n){if(Zt.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(Q8(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(Ox(F_,e,r,a)){n.zrX=F_[0],n.zrY=F_[1];return}}n.zrX=n.zrY=0}function Tk(e){return e||window.event}function za(e,t,n){if(t=Tk(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&&Nx(e,o,t,n)}else{Nx(e,t,t,n);var i=QMe(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&ZMe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function QMe(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 $x(e,t,n,r){e.addEventListener(t,n,r)}function eke(e,t,n,r){e.removeEventListener(t,n,r)}var ts=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function PL(e){return e.which===2||e.which===3}var tke=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=Nx(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 z_)if(z_.hasOwnProperty(n)){var r=z_[n](this._track,t);if(r)return r}},e}();function LL(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function nke(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var z_={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=LL(r)/LL(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=nke(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function La(){return[1,0,0,1,0,0]}function sg(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function m1(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 po(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 Vi(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 Pl(e,t,n){var r=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*u,e[1]=-r*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e}function y1(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 xc(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 eH(e){var t=La();return m1(t,e),t}const rke=Object.freeze(Object.defineProperty({__proto__:null,clone:eH,copy:m1,create:La,identity:sg,invert:xc,mul:po,rotate:Pl,scale:y1,translate:Vi},Symbol.toStringTag,{value:"Module"}));var ake=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 Pt=ake;var em=Math.min,tm=Math.max,Hl=new Pt,Gl=new Pt,Wl=new Pt,Kl=new Pt,sh=new Pt,lh=new Pt,ike=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=em(t.x,this.x),r=em(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=tm(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=tm(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=La();return Vi(i,i,[-n.x,-n.y]),y1(i,i,[r,a]),Vi(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,v=0,p=Math.abs(i-l),g=Math.abs(u-a),m=Math.abs(s-c),b=Math.abs(f-o),_=Math.min(p,g),w=Math.min(m,b);i<l||u<a?_>v&&(v=_,p<g?Pt.set(lh,-p,0):Pt.set(lh,g,0)):_<h&&(h=_,p<g?Pt.set(sh,p,0):Pt.set(sh,-g,0)),s<c||f<o?w>v&&(v=w,m<b?Pt.set(lh,0,-m):Pt.set(lh,0,b)):_<h&&(h=_,m<b?Pt.set(sh,0,m):Pt.set(sh,0,-b))}return n&&Pt.copy(n,d?sh:lh),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}Hl.x=Wl.x=n.x,Hl.y=Kl.y=n.y,Gl.x=Kl.x=n.x+n.width,Gl.y=Wl.y=n.y+n.height,Hl.transform(r),Kl.transform(r),Gl.transform(r),Wl.transform(r),t.x=em(Hl.x,Gl.x,Wl.x,Kl.x),t.y=em(Hl.y,Gl.y,Wl.y,Kl.y);var l=tm(Hl.x,Gl.x,Wl.x,Kl.x),u=tm(Hl.y,Gl.y,Wl.y,Kl.y);t.width=l-t.x,t.height=u-t.y},e}();const Rt=ike;var tH="silent";function oke(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:ske}}function ske(){ts(this.event)}var lke=function(e){ge(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}(fi),uh=function(){function e(t,n){this.x=t,this.y=n}return e}(),uke=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],H_=new Rt(0,0,0,0),nH=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new uh(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new lke,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new GMe(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(z(uke,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=rH(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 uh(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 uh(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=oke(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 uh(n,r);if(RL(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Rt(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)&&(H_.copy(d.getBoundingRect()),d.transform&&H_.applyTransform(d.transform),H_.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=v){var b=n+g*Math.cos(m),_=r+g*Math.sin(m);if(RL(s,o,b,_,a),o.target)return o}}return o},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new tke);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 uh;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(fi);z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){nH.prototype[e]=function(t){var n=t.zrX,r=t.zrY,a=rH(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||Ho(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function cke(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?tH:!0}return!1}function RL(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=cke(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==tH)){t.target=o;break}}}function rH(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}const fke=nH;var aH=32,ch=7;function dke(e){for(var t=0;e>=aH;)t|=e&1,e>>=1;return e+t}function OL(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++;hke(e,t,a)}else for(;a<n&&r(e[a],e[a-1])>=0;)a++;return a-t}function hke(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function NL(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 G_(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 W_(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 vke(e,t){var n=ch,r,a,i=0;e.length;var o=[];r=[],a=[];function s(h,v){r[i]=h,a[i]=v,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 v=r[h],p=a[h],g=r[h+1],m=a[h+1];a[h]=p+m,h===i-3&&(r[h+1]=r[h+2],a[h+1]=a[h+2]),i--;var b=W_(e[g],e,v,p,0,t);v+=b,p-=b,p!==0&&(m=G_(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(v,p,g,m):d(v,p,g,m)))}function f(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var b=0,_=p,w=h;if(e[w++]=e[_++],--g===0){for(m=0;m<v;m++)e[w+m]=o[b+m];return}if(v===1){for(m=0;m<g;m++)e[w+m]=e[_+m];e[w+g]=o[b];return}for(var C=n,S,x,T;;){S=0,x=0,T=!1;do if(t(e[_],o[b])<0){if(e[w++]=e[_++],x++,S=0,--g===0){T=!0;break}}else if(e[w++]=o[b++],S++,x=0,--v===1){T=!0;break}while((S|x)<C);if(T)break;do{if(S=W_(e[_],o,b,v,0,t),S!==0){for(m=0;m<S;m++)e[w+m]=o[b+m];if(w+=S,b+=S,v-=S,v<=1){T=!0;break}}if(e[w++]=e[_++],--g===0){T=!0;break}if(x=G_(o[b],e,_,g,0,t),x!==0){for(m=0;m<x;m++)e[w+m]=e[_+m];if(w+=x,_+=x,g-=x,g===0){T=!0;break}}if(e[w++]=o[b++],--v===1){T=!0;break}C--}while(S>=ch||x>=ch);if(T)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),v===1){for(m=0;m<g;m++)e[w+m]=e[_+m];e[w+g]=o[b]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[w+m]=o[b+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var b=h+v-1,_=g-1,w=p+g-1,C=0,S=0;if(e[w--]=e[b--],--v===0){for(C=w-(g-1),m=0;m<g;m++)e[C+m]=o[m];return}if(g===1){for(w-=v,b-=v,S=w+1,C=b+1,m=v-1;m>=0;m--)e[S+m]=e[C+m];e[w]=o[_];return}for(var x=n;;){var T=0,M=0,A=!1;do if(t(o[_],e[b])<0){if(e[w--]=e[b--],T++,M=0,--v===0){A=!0;break}}else if(e[w--]=o[_--],M++,T=0,--g===1){A=!0;break}while((T|M)<x);if(A)break;do{if(T=v-W_(o[_],e,h,v,v-1,t),T!==0){for(w-=T,b-=T,v-=T,S=w+1,C=b+1,m=T-1;m>=0;m--)e[S+m]=e[C+m];if(v===0){A=!0;break}}if(e[w--]=o[_--],--g===1){A=!0;break}if(M=g-G_(e[b],o,0,g,g-1,t),M!==0){for(w-=M,_-=M,g-=M,S=w+1,C=_+1,m=0;m<M;m++)e[S+m]=o[C+m];if(g<=1){A=!0;break}}if(e[w--]=e[b--],--v===0){A=!0;break}x--}while(T>=ch||M>=ch);if(A)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),g===1){for(w-=v,b-=v,S=w+1,C=b+1,m=v-1;m>=0;m--)e[S+m]=e[C+m];e[w]=o[_]}else{if(g===0)throw new Error;for(C=w-(g-1),m=0;m<g;m++)e[C+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Py(e,t,n,r){n||(n=0),r||(r=e.length);var a=r-n;if(!(a<2)){var i=0;if(a<aH){i=OL(e,n,r,t),NL(e,n,r,n+i,t);return}var o=vke(e,t),s=dke(a);do{if(i=OL(e,n,r,t),i<s){var l=a;l>s&&(l=s),NL(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 xa=1,Fh=2,cf=4,$L=!1;function K_(){$L||($L=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function BL(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var pke=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=BL}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,Py(r,BL)},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|=xa),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)&&(K_(),c.z=0),isNaN(c.z2)&&(K_(),c.z2=0),isNaN(c.zlevel)&&(K_(),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=Nt(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 gke=pke;var iH;iH=Zt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Bx=iH;var Ly={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-Ly.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?Ly.bounceIn(e*2)*.5:Ly.bounceOut(e*2-1)*.5+.5}};const oH=Ly;var nm=Math.pow,nl=Math.sqrt,A0=1e-8,sH=1e-4,VL=nl(3),rm=1/3,io=Dl(),Ua=Dl(),Of=Dl();function Ks(e){return e>-A0&&e<A0}function lH(e){return e>A0||e<-A0}function tr(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 FL(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function E0(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(Ks(c)&&Ks(f))if(Ks(s))i[0]=0;else{var v=-l/s;v>=0&&v<=1&&(i[h++]=v)}else{var p=f*f-4*c*d;if(Ks(p)){var g=f/c,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m)}else if(p>0){var b=nl(p),_=c*s+1.5*o*(-f+b),w=c*s+1.5*o*(-f-b);_<0?_=-nm(-_,rm):_=nm(_,rm),w<0?w=-nm(-w,rm):w=nm(w,rm);var v=(-s-(_+w))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var C=(2*c*s-3*o*f)/(2*nl(c*c*c)),S=Math.acos(C)/3,x=nl(c),T=Math.cos(S),v=(-s-2*x*T)/(3*o),m=(-s+x*(T+VL*Math.sin(S)))/(3*o),M=(-s+x*(T-VL*Math.sin(S)))/(3*o);v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m),M>=0&&M<=1&&(i[h++]=M)}}return h}function uH(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(Ks(o)){if(lH(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Ks(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 gl(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 cH(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;io[0]=l,io[1]=u;for(var b=0;b<1;b+=.05)Ua[0]=tr(e,n,a,o,b),Ua[1]=tr(t,r,i,s,b),g=tl(io,Ua),g<h&&(f=b,h=g);h=1/0;for(var _=0;_<32&&!(d<sH);_++)v=f-d,p=f+d,Ua[0]=tr(e,n,a,o,v),Ua[1]=tr(t,r,i,s,v),g=tl(Ua,io),v>=0&&g<h?(f=v,h=g):(Of[0]=tr(e,n,a,o,p),Of[1]=tr(t,r,i,s,p),m=tl(Of,io),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=tr(e,n,a,o,f),c[1]=tr(t,r,i,s,f)),nl(h)}function mke(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 v=h*d,p=tr(e,n,a,o,v),g=tr(t,r,i,s,v),m=p-u,b=g-c;f+=Math.sqrt(m*m+b*b),u=p,c=g}return f}function cr(e,t,n,r){var a=1-r;return a*(a*e+2*r*t)+r*r*n}function Vx(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function yke(e,t,n,r,a){var i=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(Ks(i)){if(lH(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Ks(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 fH(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function dp(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 dH(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;io[0]=o,io[1]=s;for(var d=0;d<1;d+=.05){Ua[0]=cr(e,n,a,d),Ua[1]=cr(t,r,i,d);var h=tl(io,Ua);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<sH);v++){var p=u-c,g=u+c;Ua[0]=cr(e,n,a,p),Ua[1]=cr(t,r,i,p);var h=tl(Ua,io);if(p>=0&&h<f)u=p,f=h;else{Of[0]=cr(e,n,a,g),Of[1]=cr(t,r,i,g);var m=tl(Of,io);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=cr(e,n,a,u),l[1]=cr(t,r,i,u)),nl(f)}function bke(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=cr(e,n,a,d),v=cr(t,r,i,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var _ke=/cubic-bezier\(([0-9,\.e ]+)\)/;function Mk(e){var t=e&&_ke.exec(e);if(t){var n=t[1].split(","),r=+Za(n[0]),a=+Za(n[1]),i=+Za(n[2]),o=+Za(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:E0(0,r,i,1,l,s)&&tr(0,a,o,1,s[0])}}}var wke=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||Nn,this.ondestroy=t.ondestroy||Nn,this.onrestart=t.onrestart||Nn,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=ut(t)?t:oH[t]||Mk(t)},e}();const Ske=wke;var hH=function(){function e(t){this.value=t}return e}(),Cke=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new hH(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}(),xke=function(){function e(t){this._list=new Cke,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 hH(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 lg=xke;var zL={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 Ri(e){return e=Math.round(e),e<0?0:e>255?255:e}function Tke(e){return e=Math.round(e),e<0?0:e>360?360:e}function hp(e){return e<0?0:e>1?1:e}function U_(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ri(parseFloat(t)/100*255):Ri(parseInt(t,10))}function qu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?hp(parseFloat(t)/100):hp(parseFloat(t))}function Y_(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 Us(e,t,n){return e+(t-e)*n}function Fa(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function Fx(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vH=new lg(20),am=null;function Bc(e,t){am&&Fx(am,t),am=vH.put(e,am||t.slice())}function qr(e,t){if(e){t=t||[];var n=vH.get(e);if(n)return Fx(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in zL)return Fx(t,zL[r]),Bc(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)){Fa(t,0,0,0,1);return}return Fa(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),Bc(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Fa(t,0,0,0,1);return}return Fa(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Bc(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?Fa(t,+u[0],+u[1],+u[2],1):Fa(t,0,0,0,1);c=qu(u.pop());case"rgb":if(u.length>=3)return Fa(t,U_(u[0]),U_(u[1]),U_(u[2]),u.length===3?c:qu(u[3])),Bc(e,t),t;Fa(t,0,0,0,1);return;case"hsla":if(u.length!==4){Fa(t,0,0,0,1);return}return u[3]=qu(u[3]),zx(u,t),Bc(e,t),t;case"hsl":if(u.length!==3){Fa(t,0,0,0,1);return}return zx(u,t),Bc(e,t),t;default:return}}Fa(t,0,0,0,1)}}function zx(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=qu(e[1]),a=qu(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],Fa(t,Ri(Y_(o,i,n+1/3)*255),Ri(Y_(o,i,n)*255),Ri(Y_(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Mke(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 I0(e,t){var n=qr(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 Oi(n,n.length===4?"rgba":"rgb")}}function kke(e){var t=qr(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function gv(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]=Ri(Us(o[0],s[0],l)),n[1]=Ri(Us(o[1],s[1],l)),n[2]=Ri(Us(o[2],s[2],l)),n[3]=hp(Us(o[3],s[3],l)),n}}var Ake=gv;function kk(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=qr(t[a]),s=qr(t[i]),l=r-a,u=Oi([Ri(Us(o[0],s[0],l)),Ri(Us(o[1],s[1],l)),Ri(Us(o[2],s[2],l)),hp(Us(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var Eke=kk;function Nf(e,t,n,r){var a=qr(e);if(e)return a=Mke(a),t!=null&&(a[0]=Tke(t)),n!=null&&(a[1]=qu(n)),r!=null&&(a[2]=qu(r)),Oi(zx(a),"rgba")}function vp(e,t){var n=qr(e);if(n&&t!=null)return n[3]=hp(t),Oi(n,"rgba")}function Oi(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 pp(e,t){var n=qr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Ike(){return Oi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const Dke=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:gv,fastMapToColor:Ake,lerp:kk,lift:I0,lum:pp,mapToColor:Eke,modifyAlpha:vp,modifyHSL:Nf,parse:qr,random:Ike,stringify:Oi,toHex:kke},Symbol.toStringTag,{value:"Module"}));var D0=Math.round;function gp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=qr(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var HL=1e-4;function Ys(e){return e<HL&&e>-HL}function im(e){return D0(e*1e3)/1e3}function Hx(e){return D0(e*1e4)/1e4}function Pke(e){return"matrix("+im(e[0])+","+im(e[1])+","+im(e[2])+","+im(e[3])+","+Hx(e[4])+","+Hx(e[5])+")"}var Lke={left:"start",right:"end",center:"middle",middle:"middle"};function Rke(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function Oke(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Nke(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 pH(e){return e&&!!e.image}function $ke(e){return e&&!!e.svgElement}function Ak(e){return pH(e)||$ke(e)}function gH(e){return e.type==="linear"}function mH(e){return e.type==="radial"}function yH(e){return e&&(e.type==="linear"||e.type==="radial")}function b1(e){return"url(#"+e+")"}function bH(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 _H(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*hv,a=Lt(e.scaleX,1),i=Lt(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("+D0(o*hv)+"deg, "+D0(s*hv)+"deg)"),l.join(" ")}var Bke=function(){return Zt.hasGlobalWindow&&ut(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}}(),Gx=Array.prototype.slice;function $o(e,t,n){return(t-e)*n+e}function j_(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=$o(t[i],n[i],r);return e}function Vke(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]=$o(t[o][s],n[o][s],r)}return e}function om(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+n[i]*r;return e}function GL(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 Fke(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 zke(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]:Gx.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 mv(e){if(Sr(e)){var t=e.length;if(Sr(e[0])){for(var n=[],r=0;r<t;r++)n.push(Gx.call(e[r]));return n}return Gx.call(e)}return e}function Ry(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 Hke(e){return Sr(e&&e[0])?2:1}var sm=0,Oy=1,wH=2,zh=3,Wx=4,Kx=5,WL=6;function KL(e){return e===Wx||e===Kx}function lm(e){return e===Oy||e===wH}var fh=[0,0,0,0],Gke=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=WL,l=n;if(Sr(n)){var u=Hke(n);s=u,(u===1&&!Jt(n[0])||u===2&&!Jt(n[0][0]))&&(o=!0)}else if(Jt(n)&&!dd(n))s=sm;else if(Je(n))if(!isNaN(+n))s=sm;else{var c=qr(n);c&&(l=c,s=zh)}else if(ig(n)){var f=Ie({},l);f.colorStops=Oe(n.colorStops,function(h){return{offset:h.offset,color:qr(h.color)}}),gH(n)?s=Wx:mH(n)&&(s=Kx),l=f}i===0?this.valType=s:(s!==this.valType||s===WL)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=ut(r)?r:oH[r]||Mk(r)),a.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=lm(a),u=KL(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?zke(d,h,a):u&&Fke(d.colorStops,h.colorStops))}if(!s&&a!==Kx&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var v=r[0].value,c=0;c<i;c++)a===sm?r[c].additiveValue=r[c].value-v:a===zh?r[c].additiveValue=om([],r[c].value,v,-1):lm(a)&&(r[c].additiveValue=a===Oy?om([],r[c].value,v,-1):GL([],r[c].value,v,-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===zh,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(n<0)c=0;else if(n<this._lastFrP){var p=d(f+1,s-1);for(c=p;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)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=n;var g=v.percent-h.percent,m=g===0?1:d((n-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var b=r?this._additiveValue:u?fh:t[l];if((lm(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(lm(i))i===Oy?j_(b,h[a],v[a],m):Vke(b,h[a],v[a],m);else if(KL(i)){var _=h[a],w=v[a],C=i===Wx;t[l]={type:C?"linear":"radial",x:$o(_.x,w.x,m),y:$o(_.y,w.y,m),colorStops:Oe(_.colorStops,function(x,T){var M=w.colorStops[T];return{offset:$o(x.offset,M.offset,m),color:Ry(j_([],x.color,M.color,m))}}),global:w.global},C?(t[l].x2=$o(_.x2,w.x2,m),t[l].y2=$o(_.y2,w.y2,m)):t[l].r=$o(_.r,w.r,m)}else if(u)j_(b,h[a],v[a],m),r||(t[l]=Ry(b));else{var S=$o(h[a],v[a],m);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===sm?t[r]=t[r]+a:n===zh?(qr(t[r],fh),om(fh,fh,a,1),t[r]=Ry(fh)):n===Oy?om(t[r],t[r],a,1):n===wH&&GL(t[r],t[r],a,1)},e}(),Wke=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){h1("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,Gt(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 Gke(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===zh&&u&&(u=Ry(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,mv(u),a),this._trackKeys.push(s)}l.addKeyframe(t,mv(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 Ske({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var v=n._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(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 Oe(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]=mv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||Gt(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 Ek=Wke;function bf(){return new Date().getTime()}var Kke=function(e){ge(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=bf()-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&&(Bx(r),!n._paused&&n.update())}Bx(r)},t.prototype.start=function(){this._running||(this._time=bf(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=bf(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=bf()-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 Ek(n,r.loop);return this.addAnimator(a),a},t}(fi);const Uke=Kke;var Yke=300,q_=Zt.domSupported,X_=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=Oe(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),UL={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},YL=!1;function Ux(e){var t=e.pointerType;return t==="pen"||t==="touch"}function jke(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 Z_(e){e&&(e.zrByTouch=!0)}function qke(e,t){return za(e.dom,new Xke(e,t),!0)}function SH(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 Xke=function(){function e(t,n){this.stopPropagation=Nn,this.stopImmediatePropagation=Nn,this.preventDefault=Nn,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),wi={mousedown:function(e){e=za(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=za(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=za(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=za(this.dom,e);var t=e.toElement||e.relatedTarget;SH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){YL=!0,e=za(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){YL||(e=za(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=za(this.dom,e),Z_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),wi.mousemove.call(this,e),wi.mousedown.call(this,e)},touchmove:function(e){e=za(this.dom,e),Z_(e),this.handler.processGesture(e,"change"),wi.mousemove.call(this,e)},touchend:function(e){e=za(this.dom,e),Z_(e),this.handler.processGesture(e,"end"),wi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Yke&&wi.click.call(this,e)},pointerdown:function(e){wi.mousedown.call(this,e)},pointermove:function(e){Ux(e)||wi.mousemove.call(this,e)},pointerup:function(e){wi.mouseup.call(this,e)},pointerout:function(e){Ux(e)||wi.mouseout.call(this,e)}};z(["click","dblclick","contextmenu"],function(e){wi[e]=function(t){t=za(this.dom,t),this.trigger(e,t)}});var Yx={pointermove:function(e){Ux(e)||Yx.mousemove.call(this,e)},pointerup:function(e){Yx.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 Zke(e,t){var n=t.domHandlers;Zt.pointerEventsSupported?z(X_.pointer,function(r){Ny(t,r,function(a){n[r].call(e,a)})}):(Zt.touchEventsSupported&&z(X_.touch,function(r){Ny(t,r,function(a){n[r].call(e,a),jke(t)})}),z(X_.mouse,function(r){Ny(t,r,function(a){a=Tk(a),t.touching||n[r].call(e,a)})}))}function Jke(e,t){Zt.pointerEventsSupported?z(UL.pointer,n):Zt.touchEventsSupported||z(UL.mouse,n);function n(r){function a(i){i=Tk(i),SH(e,i.target)||(i=qke(e,i),t.domHandlers[r].call(e,i))}Ny(t,r,a,{capture:!0})}}function Ny(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,$x(e.domTarget,t,n,r)}function J_(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&eke(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var jL=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),Qke=function(e){ge(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 jL(n,wi),q_&&(a._globalHandlerScope=new jL(document,Yx)),Zke(a,a._localHandlerScope),a}return t.prototype.dispose=function(){J_(this._localHandlerScope),q_&&J_(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,q_&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?Jke(this,r):J_(r)}},t}(fi);const eAe=Qke;var CH=1;Zt.hasGlobalWindow&&(CH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var P0=CH,jx=.4,qx="#333",Xx="#ccc",tAe="#eee",qL=sg,XL=5e-5;function Ul(e){return e>XL||e<-XL}var Yl=[],Vc=[],Q_=La(),ew=Math.abs,nAe=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 Ul(this.rotation)||Ul(this.x)||Ul(this.y)||Ul(this.scaleX-1)||Ul(this.scaleY-1)||Ul(this.skewX)||Ul(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(qL(r),this.invTransform=null);return}r=r||La(),n?this.getLocalTransform(r):qL(r),t&&(n?po(r,t,r):m1(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Yl);var r=Yl[0]<0?-1:1,a=Yl[1]<0?-1:1,i=((Yl[0]-r)*n+r)/Yl[0]||0,o=((Yl[1]-a)*n+a)/Yl[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||La(),xc(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&&(po(Vc,t.invTransform,n),n=Vc);var r=this.originX,a=this.originY;(r||a)&&(Q_[4]=r,Q_[5]=a,po(Vc,n,Q_),Vc[4]-=r,Vc[5]-=a,n=Vc),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&&dr(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&dr(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&ew(t[0]-1)>1e-10&&ew(t[3]-1)>1e-10?Math.sqrt(ew(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){xH(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 v=r+s,p=a+l;n[4]=-v*i-d*p*o,n[5]=-p*o-h*v*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=h*i,n[2]=d*o,u&&Pl(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}(),So=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function xH(e,t){for(var n=0;n<So.length;n++){var r=So[n];e[r]=t[r]}}const Ko=nAe;var ZL={};function Pa(e,t){t=t||pl;var n=ZL[t];n||(n=ZL[t]=new lg(500));var r=n.get(e);return r==null&&(r=Bi.measureText(e,t).width,n.put(e,r)),r}function JL(e,t,n,r){var a=Pa(e,t),i=_1(t),o=Hh(0,a,n),s=ff(0,i,r),l=new Rt(o,s,a,i);return l}function ug(e,t,n,r){var a=((e||"")+"").split(`
  70. `),i=a.length;if(i===1)return JL(a[0],t,n,r);for(var o=new Rt(0,0,0,0),s=0;s<a.length;s++){var l=JL(a[s],t,n,r);s===0?o.copy(l):o.union(l)}return o}function Hh(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function ff(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function _1(e){return Pa("国",e)}function Fi(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function L0(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+=Fi(r[0],n.width),u+=Fi(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 tw="__zr_normal__",nw=So.concat(["ignore"]),rAe=ui(So,function(e,t){return e[t]=!0,e},{ignore:!1}),Fc={},aAe=new Rt(0,0,0,0),Ik=function(){function e(t){this.id=wk(),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=aAe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fc,r,c):L0(Fc,r,c),i.x=Fc.x,i.y=Fc.y,o=Fc.align,s=Fc.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=Fi(f[0],c.width),h=Fi(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 v=r.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[1]));var p=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,b=void 0,_=void 0;p&&this.canBeInsideText()?(m=r.insideFill,b=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(m),_=!0)):(m=r.outsideFill,b=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||b!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=b,g.autoStroke=_,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=xa,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()?Xx:qx},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&qr(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,Oi(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||{},Ie(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(ht(t))for(var r=t,a=Gt(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!==tw)){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,nw)},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(tw,!1,t)},e.prototype.useState=function(t,n,r,a){var i=t===tw,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Nt(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){h1("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&=~xa),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),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.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&=~xa)}},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=Nt(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=Nt(a,t),o=Nt(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];Ie(n,i),i.textConfig&&(r=r||{},Ie(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=Ie({},a?this.textConfig:r.textConfig),Ie(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<nw.length;c++){var f=nw[c],d=i&&rAe[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],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(n||r)[v]: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 Ko,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ie(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|=xa;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 Ek(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=Nt(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){rw(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){rw(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,a){for(var i=rw(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=xa;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}();Bn(Ik,fi);Bn(Ik,Ko);function rw(e,t,n,r,a){n=n||{};var i=[];TH(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(v,p){n.during(p)});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 aw(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function iAe(e){return Sr(e[0])}function oAe(e,t,n){if(Sr(t[n]))if(Sr(e[n])||(e[n]=[]),ba(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),aw(e[n],t[n],r))}else{var a=t[n],i=e[n],o=a.length;if(iAe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?aw(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else aw(i,a,o);i.length=a.length}else e[n]=t[n]}function sAe(e,t){return e===t||Sr(e)&&Sr(t)&&lAe(e,t)}function lAe(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 TH(e,t,n,r,a,i,o,s){for(var l=Gt(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!ht(i),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],b=r[m];if(b!=null&&n[m]!=null&&(h||i[m]))if(ht(b)&&!Sr(b)&&!ig(b)){if(t){s||(n[m]=b,e.updateDuringAnimation(t));continue}TH(e,m,n[m],b,a,i&&i[m],o,s)}else p.push(m);else s||(n[m]=b,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!f&&_)for(var w=0;w<v.length;w++){var C=v[w];if(C.targetName===t){var S=C.stopTracks(p);if(S){var x=Nt(v,C);v.splice(x,1)}}}if(a.force||(p=sn(p,function(k){return!sAe(r[k],n[k])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,M=void 0,A=void 0;if(s){M={},d&&(T={});for(var w=0;w<_;w++){var m=p[w];M[m]=n[m],d?T[m]=r[m]:n[m]=r[m]}}else if(d){A={};for(var w=0;w<_;w++){var m=p[w];A[m]=mv(n[m]),oAe(n,r,m)}}var C=new Ek(n,!1,!1,f?sn(v,function(E){return E.targetName===t}):null);C.targetName=t,a.scope&&(C.scope=a.scope),d&&T&&C.whenWithKeys(0,T,p),A&&C.whenWithKeys(0,A,p),C.whenWithKeys(u??500,s?M:r,p).delay(c||0),e.addAnimator(C,t),o.push(C)}}const MH=Ik;var kH=function(e){ge(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=Nt(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=Nt(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 Rt(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?(Rt.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},t}(MH);kH.prototype.type="group";const bt=kH;/*!
  71. * ZRender, a high performance 2d drawing library.
  72. *
  73. * Copyright (c) 2013, Baidu Inc.
  74. * All rights reserved.
  75. *
  76. * LICENSE
  77. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  78. */var $y={},Nu={};function uAe(e){delete Nu[e]}function cAe(e){if(!e)return!1;if(typeof e=="string")return pp(e,1)<jx;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,a=0;a<r;a++)n+=pp(t[a].color,1);return n/=r,n<jx}return!1}var fAe=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 gke,o=r.renderer||"canvas";$y[o]||(o=Gt($y)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new $y[o](n,i,r,t),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Zt.node&&!Zt.worker&&!l?new eAe(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Zt.touchEventsSupported:!!c,d=44,h;f&&(h=Lt(r.pointerSize,d)),this.handler=new fke(i,s,u,s.root,h),this.animation=new Uke({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=cAe(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var n,r=bf();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=bf();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.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this.handler.off(t,n)},e.prototype.trigger=function(t,n){this.handler.trigger(t,n)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof bt&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,uAe(this.id)},e}();function Zx(e,t){var n=new fAe(wk(),e,t);return Nu[n.id]=n,n}function dAe(e){e.dispose()}function hAe(){for(var e in Nu)Nu.hasOwnProperty(e)&&Nu[e].dispose();Nu={}}function vAe(e){return Nu[e]}function AH(e,t){$y[e]=t}var pAe="5.4.4";const gAe=Object.freeze(Object.defineProperty({__proto__:null,dispose:dAe,disposeAll:hAe,getInstance:vAe,init:Zx,registerPainter:AH,version:pAe},Symbol.toStringTag,{value:"Module"}));var QL=1e-4,EH=20;function mAe(e){return e.replace(/^\s+|\s+$/g,"")}function on(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 Je(e)?mAe(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ln(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),EH),e=(+e).toFixed(t),n?e:+e}function Ea(e){return e.sort(function(t,n){return t-n}),e}function Ai(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 IH(e)}function IH(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 Dk(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 yAe(e,t,n){if(!e[t])return 0;var r=DH(e,n);return r[t]||0}function DH(e,t){var n=ui(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=Oe(e,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=Oe(a,function(h){return Math.floor(h)}),s=ui(o,function(h,v){return h+v},0),l=Oe(a,function(h,v){return h-o[v]});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 Oe(o,function(h){return h/r})}function bAe(e,t){var n=Math.max(Ai(e),Ai(t)),r=e+t;return n>EH?r:Ln(r,n)}var Jx=9007199254740991;function Pk(e){var t=Math.PI*2;return(e%t+t)%t}function mp(e){return e>-QL&&e<QL}var _Ae=/^(?:(\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 Ra(e){if(e instanceof Date)return e;if(Je(e)){var t=_Ae.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 PH(e){return Math.pow(10,w1(e))}function w1(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 Lk(e,t){var n=w1(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 By(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 Qx(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 Co(e){var t=parseFloat(e);return t==e&&(t!==0||!Je(e)||e.indexOf("x")<=0)?t:NaN}function Rk(e){return!isNaN(Co(e))}function LH(){return Math.round(Math.random()*9)}function RH(e,t){return t===0?e:RH(t,e%t)}function eR(e,t){return e==null?t:t==null?e:e*t/RH(e,t)}function rn(e){throw new Error(e)}function tR(e,t,n){return(t-e)*n+e}var OH="series\0",NH="\0_ec_\0";function dn(e){return e instanceof Array?e:e==null?[]:[e]}function uc(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 nR=["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 Pd(e){return ht(e)&&!Re(e)&&!(e instanceof Date)?e.value:e}function wAe(e){return ht(e)&&!(e instanceof Array)}function $H(e,t,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";e=e||[],t=(t||[]).slice();var o=ot();z(t,function(l,u){if(!ht(l)){t[u]=null;return}});var s=SAe(e,o,n);return(r||a)&&CAe(s,e,o,t),r&&xAe(s,t),r||a?TAe(s,t,a):i&&MAe(s,t),kAe(s),s}function SAe(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"||yp(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function CAe(e,t,n,r){z(r,function(a,i){if(!(!a||a.id==null)){var o=yv(a.id),s=n.get(o);if(s!=null){var l=e[s];Nr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],r[i]=null}}})}function xAe(e,t){z(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)&&!yp(n)&&!yp(i)&&BH("name",i,n)){e[a].newOption=n,t[r]=null;return}}})}function TAe(e,t,n){z(t,function(r){if(r){for(var a,i=0;(a=e[i])&&(a.newOption||yp(a.existing)||a.existing&&r.id!=null&&!BH("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function MAe(e,t){z(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function kAe(e){var t=ot();z(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),z(e,function(n){var r=n.newOption;Nr(!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={})}),z(e,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(ht(i)){if(o.name=i.name!=null?yv(i.name):a?a.name:OH+r,a)o.id=yv(a.id);else if(i.id!=null)o.id=yv(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 BH(e,t,n){var r=er(t[e],null),a=er(n[e],null);return r!=null&&a!=null&&r===a}function yv(e){return er(e,"")}function er(e,t){return e==null?t:Je(e)?e:Jt(e)||T0(e)?e+"":t}function Ok(e){var t=e.name;return!!(t&&t.indexOf(OH))}function yp(e){return e&&e.id!=null&&yv(e.id).indexOf(NH)===0}function AAe(e){return NH+e}function EAe(e,t,n){z(e,function(r){var a=r.newOption;ht(a)&&(r.keyInfo.mainType=t,r.keyInfo.subType=IAe(t,a,r.existing,n))})}function IAe(e,t,n,r){var a=t.type?t.type:n?n.subType:r.determineSubType(e,t);return a}function DAe(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=er(o[u].seriesId,null);if(f==null)return;for(var d=dn(o[u].dataIndex),h=l&&l[f],v=0,p=d.length;v<p;v++){var g=d[v];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 cc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Re(t.dataIndex)?Oe(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Re(t.name)?Oe(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function Qt(){var e="__ec_inner_"+PAe++;return function(t){return t[e]||(t[e]={})}}var PAe=LH();function bv(e,t,n){var r=Nk(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=cg(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 Nk(e,t){var n;if(Je(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var a=ot(),i={},o=!1;return z(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&&Nt(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 Gn={useDefault:!0,enableAll:!1,enableNone:!1},LAe={useDefault:!1,enableAll:!0,enableNone:!0};function cg(e,t,n,r){r=r||Gn;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?(Nr(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Nr(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 VH(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function RAe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function OAe(e){return e==="auto"?Zt.domSupported?"html":"richText":e||"html"}function e2(e,t){var n=ot(),r=[];return z(e,function(a){var i=t(a);(n.get(i)||(r.push(i),n.set(i,[]))).push(a)}),{keys:r,buckets:n}}function FH(e,t,n,r,a){var i=t==null||t==="auto";if(r==null)return r;if(Jt(r)){var o=tR(n||0,r,a);return Ln(o,i?Math.max(Ai(n||0),Ai(r)):t)}else{if(Je(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,v=u[f],o=tR(h,v,a);s[f]=Ln(o,i?Math.max(Ai(h),Ai(v)):t)}}return s}}var NAe=".",jl="___EC__COMPONENT__CONTAINER___",zH="___EC__EXTENDED_CLASS___";function uo(e){var t={main:"",sub:""};if(e){var n=e.split(NAe);t.main=n[0]||"",t.sub=n[1]||""}return t}function $Ae(e){Nr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function BAe(e){return!!(e&&e[zH])}function $k(e,t){e.$constructor=e,e.extend=function(n){var r=this,a;return VAe(r)?a=function(i){ge(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},Sk(a,this)),Ie(a.prototype,n),a[zH]=!0,a.extend=this.extend,a.superCall=HAe,a.superApply=GAe,a.superClass=r,a}}function VAe(e){return ut(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function HH(e,t){e.extend=t.extend}var FAe=Math.round(Math.random()*10);function zAe(e){var t=["__\0is_clz",FAe++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function HAe(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 GAe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function S1(e){var t={};e.registerClass=function(r){var a=r.type||r.prototype.type;if(a){$Ae(a),r.prototype.type=a;var i=uo(a);if(!i.sub)t[i.main]=r;else if(i.sub!==jl){var o=n(i);o[i.sub]=r}}return r},e.getClass=function(r,a,i){var o=t[r];if(o&&o[jl]&&(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=uo(r),i=[],o=t[a.main];return o&&o[jl]?z(o,function(s,l){l!==jl&&i.push(s)}):i.push(o),i},e.hasClass=function(r){var a=uo(r);return!!t[a.main]},e.getAllClassMainTypes=function(){var r=[];return z(t,function(a,i){r.push(i)}),r},e.hasSubTypes=function(r){var a=uo(r),i=t[a.main];return i&&i[jl]};function n(r){var a=t[r.main];return(!a||!a[jl])&&(a=t[r.main]={},a[jl]=!0),a}}function fc(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&&Nt(a,l)>=0||i&&Nt(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var WAe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],KAe=fc(WAe),UAe=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return KAe(this,t,n)},e}(),t2=new lg(50);function YAe(e){if(typeof e=="string"){var t=t2.get(e);return t&&t.image}else return e}function Bk(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=t2.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!C1(t)&&i.pending.push(o)):(t=Bi.loadImage(e,rR,rR),t.__zrImageSrc=e,t2.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function rR(){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 C1(e){return e&&e.width&&e.height}var iw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function GH(e,t,n,r,a){if(!t)return"";var i=(e+"").split(`
  79. `);a=WH(t,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=KH(i[o],a);return i.join(`
  80. `)}function WH(e,t,n,r){r=r||{};var a=Ie({},r);a.font=t,n=Lt(n,"..."),a.maxIterations=Lt(r.maxIterations,2);var i=a.minChar=Lt(r.minChar,0);a.cnCharWidth=Pa("国",t);var o=a.ascCharWidth=Pa("a",t);a.placeholder=Lt(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=Pa(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 KH(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=Pa(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?jAe(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=Pa(e,r)}return e===""&&(e=t.placeholder),e}function jAe(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 qAe(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,a=t.font,i=n==="truncate",o=_1(a),s=Lt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(n==="break"||n==="breakAll")?f=e?UH(e,t.font,c,n==="breakAll",0).lines:[]:f=e?e.split(`
  81. `):[];var d=f.length*s,h=Lt(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&i&&c!=null)for(var p=WH(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=KH(f[g],p);for(var m=h,b=0,g=0;g<f.length;g++)b=Math.max(Pa(f[g],a),b);c==null&&(c=b);var _=b;return r&&(m+=r[0]+r[2],_+=r[1]+r[3],c+=r[1]+r[3]),l&&(_=c),{lines:f,height:h,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:c}}var XAe=function(){function e(){}return e}(),aR=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),ZAe=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 JAe(e,t){var n=new ZAe;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=iw.lastIndex=0,l;(l=iw.exec(e))!=null;){var u=l.index;u>s&&ow(n,e.substring(s,u),t,o),ow(n,l[2],t,o,l[1]),s=iw.lastIndex}s<e.length&&ow(n,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=i==="truncate",p=t.lineOverflow==="truncate";function g(N,I,F){N.width=I,N.lineHeight=F,f+=F,d=Math.max(d,I)}e:for(var m=0;m<n.lines.length;m++){for(var b=n.lines[m],_=0,w=0,C=0;C<b.tokens.length;C++){var S=b.tokens[C],x=S.styleName&&t.rich[S.styleName]||{},T=S.textPadding=x.padding,M=T?T[1]+T[3]:0,A=S.font=x.font||t.font;S.contentHeight=_1(A);var k=Lt(x.height,S.contentHeight);if(S.innerHeight=k,T&&(k+=T[0]+T[2]),S.height=k,S.lineHeight=Li(x.lineHeight,t.lineHeight,k),S.align=x&&x.align||t.align,S.verticalAlign=x&&x.verticalAlign||"middle",p&&a!=null&&f+S.lineHeight>a){C>0?(b.tokens=b.tokens.slice(0,C),g(b,w,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var E=x.width,D=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")S.percentWidth=E,c.push(S),S.contentWidth=Pa(S.text,A);else{if(D){var L=x.backgroundColor,B=L&&L.image;B&&(B=YAe(B),C1(B)&&(S.width=Math.max(S.width,B.width*k/B.height)))}var $=v&&r!=null?r-w:null;$!=null&&$<S.width?!D||$<M?(S.text="",S.width=S.contentWidth=0):(S.text=GH(S.text,$-M,A,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=Pa(S.text,A)):S.contentWidth=Pa(S.text,A)}S.width+=M,w+=S.width,x&&(_=Math.max(_,S.lineHeight))}g(b,w,_)}n.outerWidth=n.width=Lt(r,d),n.outerHeight=n.height=Lt(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 S=c[m],O=S.percentWidth;S.width=parseInt(O,10)/100*n.width}return n}function ow(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 v=Fi(o.width,r.width)+h;s.length>0&&v+r.accumWidth>r.width&&(c=t.split(`
  82. `),u=!0),r.accumWidth=v}else{var p=UH(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
  83. `);for(var g=0;g<c.length;g++){var m=c[g],b=new XAe;if(b.styleName=a,b.text=m,b.isLineHolder=!m&&!i,typeof o.width=="number"?b.width=o.width:b.width=f?f[g]:Pa(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new aR)).tokens,w=_.length;w===1&&_[0].isLineHolder?_[0]=b:(m||!w||i)&&_.push(b)}else s.push(new aR([b]))}}function QAe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var eEe=ui(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function tEe(e){return QAe(e)?!!eEe[e]:!0}function UH(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===`
  84. `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Pa(d,t),v=r?!1:!tEe(d);if(i.length?c+h>n:a+c+h>n){c?(s||l)&&(v?(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)):v?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,v?(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 n2="__zr_style_"+Math.round(Math.random()*10),Xu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},x1={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xu[n2]=!0;var iR=["z","z2","invisible"],nEe=["invisible"],rEe=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Gt(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&&aEe(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 Rt(0,0,0,0)),r?Rt.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 Rt(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:Ie(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Fh,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Fh)},t.prototype.styleUpdated=function(){this.__dirty&=~Fh},t.prototype.createStyle=function(n){return og(Xu,n)},t.prototype.useStyle=function(n){n[n2]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[n2]},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,iR)},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=Gt(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Gt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?nEe:iR,d=0;d<p.length;d++){var h=p[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 Ie(n,r),n},t.prototype.getAnimationStyleProps=function(){return x1},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=xa|Fh}(),t}(MH),sw=new Rt(0,0,0,0),lw=new Rt(0,0,0,0);function aEe(e,t,n){return sw.copy(e.getBoundingRect()),e.transform&&sw.applyTransform(e.transform),lw.width=t,lw.height=n,!sw.intersect(lw)}const ci=rEe;var fa=Math.min,da=Math.max,uw=Math.sin,cw=Math.cos,ql=Math.PI*2,um=Dl(),cm=Dl(),fm=Dl();function T1(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=fa(a,r[0]),i=da(i,r[0]),o=fa(o,r[1]),s=da(s,r[1]);t[0]=a,t[1]=o,n[0]=i,n[1]=s}}function oR(e,t,n,r,a,i){a[0]=fa(e,n),a[1]=fa(t,r),i[0]=da(e,n),i[1]=da(t,r)}var sR=[],lR=[];function iEe(e,t,n,r,a,i,o,s,l,u){var c=uH,f=tr,d=c(e,n,a,o,sR);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,n,a,o,sR[h]);l[0]=fa(v,l[0]),u[0]=da(v,u[0])}d=c(t,r,i,s,lR);for(var h=0;h<d;h++){var p=f(t,r,i,s,lR[h]);l[1]=fa(p,l[1]),u[1]=da(p,u[1])}l[0]=fa(e,l[0]),u[0]=da(e,u[0]),l[0]=fa(o,l[0]),u[0]=da(o,u[0]),l[1]=fa(t,l[1]),u[1]=da(t,u[1]),l[1]=fa(s,l[1]),u[1]=da(s,u[1])}function oEe(e,t,n,r,a,i,o,s){var l=fH,u=cr,c=da(fa(l(e,n,a),1),0),f=da(fa(l(t,r,i),1),0),d=u(e,n,a,c),h=u(t,r,i,f);o[0]=fa(e,a,d),o[1]=fa(t,i,h),s[0]=da(e,a,d),s[1]=da(t,i,h)}function sEe(e,t,n,r,a,i,o,s,l){var u=Go,c=Wo,f=Math.abs(a-i);if(f%ql<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(um[0]=cw(a)*n+e,um[1]=uw(a)*r+t,cm[0]=cw(i)*n+e,cm[1]=uw(i)*r+t,u(s,um,cm),c(l,um,cm),a=a%ql,a<0&&(a=a+ql),i=i%ql,i<0&&(i=i+ql),a>i&&!o?i+=ql:a<i&&o&&(a+=ql),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(fm[0]=cw(h)*n+e,fm[1]=uw(h)*r+t,u(s,fm,s),c(l,fm,l))}var vn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Xl=[],Zl=[],ji=[],Ss=[],qi=[],Xi=[],fw=Math.min,dw=Math.max,Jl=Math.cos,Ql=Math.sin,Do=Math.abs,r2=Math.PI,Rs=r2*2,hw=typeof Float32Array<"u",dh=[];function vw(e){var t=Math.round(e/r2*1e8)/1e8;return t%2*r2}function YH(e,t){var n=vw(e[0]);n<0&&(n+=Rs);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=Rs?a=n+Rs:t&&n-a>=Rs?a=n-Rs:!t&&n>a?a=n+(Rs-vw(n-a)):t&&n<a&&(a=n-(Rs-vw(a-n))),e[0]=n,e[1]=a}var lEe=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=Do(r/P0/t)||0,this._uy=Do(r/P0/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(vn.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=Do(t-this._xi),a=Do(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(vn.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(vn.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(vn.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(),dh[0]=a,dh[1]=i,YH(dh,o),a=dh[0],i=dh[1];var s=i-a;return this.addData(vn.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=Jl(i)*r+t,this._yi=Ql(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(vn.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(vn.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)&&hw&&(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();hw&&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,hw&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ji[0]=ji[1]=qi[0]=qi[1]=Number.MAX_VALUE,Ss[0]=Ss[1]=Xi[0]=Xi[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 vn.M:n=a=t[o++],r=i=t[o++],qi[0]=a,qi[1]=i,Xi[0]=a,Xi[1]=i;break;case vn.L:oR(n,r,t[o],t[o+1],qi,Xi),n=t[o++],r=t[o++];break;case vn.C:iEe(n,r,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],qi,Xi),n=t[o++],r=t[o++];break;case vn.Q:oEe(n,r,t[o++],t[o++],t[o],t[o+1],qi,Xi),n=t[o++],r=t[o++];break;case vn.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];l&&(a=Jl(h)*f+u,i=Ql(h)*d+c),sEe(u,c,f,d,h,v,p,qi,Xi),n=Jl(v)*f+u,r=Ql(v)*d+c;break;case vn.R:a=n=t[o++],i=r=t[o++];var g=t[o++],m=t[o++];oR(a,i,a+g,i+m,qi,Xi);break;case vn.Z:n=a,r=i;break}Go(ji,ji,qi),Wo(Ss,Ss,Xi)}return o===0&&(ji[0]=ji[1]=Ss[0]=Ss[1]=0),new Rt(ji[0],ji[1],Ss[0]-ji[0],Ss[1]-ji[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++],v=d===1;v&&(i=t[d],o=t[d+1],s=i,l=o);var p=-1;switch(h){case vn.M:i=s=t[d++],o=l=t[d++];break;case vn.L:{var g=t[d++],m=t[d++],b=g-i,_=m-o;(Do(b)>r||Do(_)>a||d===n-1)&&(p=Math.sqrt(b*b+_*_),i=g,o=m);break}case vn.C:{var w=t[d++],C=t[d++],g=t[d++],m=t[d++],S=t[d++],x=t[d++];p=mke(i,o,w,C,g,m,S,x,10),i=S,o=x;break}case vn.Q:{var w=t[d++],C=t[d++],g=t[d++],m=t[d++];p=bke(i,o,w,C,g,m,10),i=g,o=m;break}case vn.A:var T=t[d++],M=t[d++],A=t[d++],k=t[d++],E=t[d++],D=t[d++],L=D+E;d+=1,t[d++],v&&(s=Jl(E)*A+T,l=Ql(E)*k+M),p=dw(A,k)*fw(Rs,Math.abs(D)),i=Jl(L)*A+T,o=Ql(L)*k+M;break;case vn.R:{s=i=t[d++],l=o=t[d++];var B=t[d++],$=t[d++];p=B*2+$*2;break}case vn.Z:{var b=s-i,_=l-o;p=Math.sqrt(b*b+_*_),i=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}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,v,p,g=0,m=0,b,_=0,w,C;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,b=n*p,!b)))e:for(var S=0;S<o;){var x=r[S++],T=S===1;switch(T&&(u=r[S],c=r[S+1],s=u,l=c),x!==vn.L&&_>0&&(t.lineTo(w,C),_=0),x){case vn.M:s=u=r[S++],l=c=r[S++],t.moveTo(u,c);break;case vn.L:{f=r[S++],d=r[S++];var M=Do(f-u),A=Do(d-c);if(M>a||A>i){if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;t.lineTo(u*(1-E)+f*E,c*(1-E)+d*E);break e}g+=k}t.lineTo(f,d),u=f,c=d,_=0}else{var D=M*M+A*A;D>_&&(w=f,C=d,_=D)}break}case vn.C:{var L=r[S++],B=r[S++],$=r[S++],O=r[S++],N=r[S++],I=r[S++];if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;gl(u,L,$,N,E,Xl),gl(c,B,O,I,E,Zl),t.bezierCurveTo(Xl[1],Zl[1],Xl[2],Zl[2],Xl[3],Zl[3]);break e}g+=k}t.bezierCurveTo(L,B,$,O,N,I),u=N,c=I;break}case vn.Q:{var L=r[S++],B=r[S++],$=r[S++],O=r[S++];if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;dp(u,L,$,E,Xl),dp(c,B,O,E,Zl),t.quadraticCurveTo(Xl[1],Zl[1],Xl[2],Zl[2]);break e}g+=k}t.quadraticCurveTo(L,B,$,O),u=$,c=O;break}case vn.A:var F=r[S++],G=r[S++],U=r[S++],J=r[S++],ae=r[S++],Q=r[S++],ee=r[S++],te=!r[S++],q=U>J?U:J,de=Do(U-J)>.001,ve=ae+Q,ie=!1;if(h){var k=v[m++];g+k>b&&(ve=ae+Q*(b-g)/k,ie=!0),g+=k}if(de&&t.ellipse?t.ellipse(F,G,U,J,ee,ae,ve,te):t.arc(F,G,q,ae,ve,te),ie)break e;T&&(s=Jl(ae)*U+F,l=Ql(ae)*J+G),u=Jl(ve)*U+F,c=Ql(ve)*J+G;break;case vn.R:s=u=r[S],l=c=r[S+1],f=r[S++],d=r[S++];var W=r[S++],Z=r[S++];if(h){var k=v[m++];if(g+k>b){var oe=b-g;t.moveTo(f,d),t.lineTo(f+fw(oe,W),d),oe-=W,oe>0&&t.lineTo(f+W,d+fw(oe,Z)),oe-=Z,oe>0&&t.lineTo(f+dw(W-oe,0),d+Z),oe-=W,oe>0&&t.lineTo(f,d+dw(Z-oe,0));break e}g+=k}t.rect(f,d,W,Z);break;case vn.Z:if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;t.lineTo(u*(1-E)+s*E,c*(1-E)+l*E);break e}g+=k}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=vn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const xo=lEe;function Bs(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 uEe(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=cH(e,t,n,r,a,i,o,s,u,c,null);return d<=f/2}function jH(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=dH(e,t,n,r,a,i,s,l,null);return c<=u/2}var uR=Math.PI*2;function Ei(e){return e%=uR,e<0&&(e+=uR),e}var hh=Math.PI*2;function cEe(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)%hh<1e-4)return!0;if(i){var f=r;r=Ei(a),a=Ei(f)}else r=Ei(r),a=Ei(a);r>a&&(a+=hh);var d=Math.atan2(l,s);return d<0&&(d+=hh),d>=r&&d<=a||d+hh>=r&&d+hh<=a}function Bo(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 Cs=xo.CMD,eu=Math.PI*2,fEe=1e-4;function dEe(e,t){return Math.abs(e-t)<fEe}var Hr=[-1,-1,-1],Wa=[-1,-1];function hEe(){var e=Wa[0];Wa[0]=Wa[1],Wa[1]=e}function vEe(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=E0(t,r,i,s,u,Hr);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=Hr[p],m=g===0||g===1?.5:1,b=tr(e,n,a,o,g);b<l||(d<0&&(d=uH(t,r,i,s,Wa),Wa[1]<Wa[0]&&d>1&&hEe(),h=tr(t,r,i,s,Wa[0]),d>1&&(v=tr(t,r,i,s,Wa[1]))),d===2?g<Wa[0]?f+=h<t?m:-m:g<Wa[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<Wa[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function pEe(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=yke(t,r,i,s,Hr);if(l===0)return 0;var u=fH(t,r,i);if(u>=0&&u<=1){for(var c=0,f=cr(t,r,i,u),d=0;d<l;d++){var h=Hr[d]===0||Hr[d]===1?.5:1,v=cr(e,n,a,Hr[d]);v<o||(Hr[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=Hr[0]===0||Hr[0]===1?.5:1,v=cr(e,n,a,Hr[0]);return v<o?0:i<t?h:-h}}function gEe(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);Hr[0]=-l,Hr[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=eu-1e-4){r=0,a=eu;var c=i?1:-1;return o>=Hr[0]+e&&o<=Hr[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=eu,a+=eu);for(var d=0,h=0;h<2;h++){var v=Hr[h];if(v+e>o){var p=Math.atan2(s,v),c=i?1:-1;p<0&&(p=eu+p),(p>=r&&p<=a||p+eu>=r&&p+eu<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function qH(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,v=0;v<o;){var p=i[v++],g=v===1;switch(p===Cs.M&&v>1&&(n||(s+=Bo(l,u,c,f,r,a))),g&&(l=i[v],u=i[v+1],c=l,f=u),p){case Cs.M:c=i[v++],f=i[v++],l=c,u=f;break;case Cs.L:if(n){if(Bs(l,u,i[v],i[v+1],t,r,a))return!0}else s+=Bo(l,u,i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case Cs.C:if(n){if(uEe(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=vEe(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case Cs.Q:if(n){if(jH(l,u,i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=pEe(l,u,i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case Cs.A:var m=i[v++],b=i[v++],_=i[v++],w=i[v++],C=i[v++],S=i[v++];v+=1;var x=!!(1-i[v++]);d=Math.cos(C)*_+m,h=Math.sin(C)*w+b,g?(c=d,f=h):s+=Bo(l,u,d,h,r,a);var T=(r-m)*w/_+m;if(n){if(cEe(m,b,w,C,C+S,x,t,T,a))return!0}else s+=gEe(m,b,w,C,C+S,x,T,a);l=Math.cos(C+S)*_+m,u=Math.sin(C+S)*w+b;break;case Cs.R:c=l=i[v++],f=u=i[v++];var M=i[v++],A=i[v++];if(d=c+M,h=f+A,n){if(Bs(c,f,d,f,t,r,a)||Bs(d,f,d,h,t,r,a)||Bs(d,h,c,h,t,r,a)||Bs(c,h,c,f,t,r,a))return!0}else s+=Bo(d,f,d,h,r,a),s+=Bo(c,h,c,f,r,a);break;case Cs.Z:if(n){if(Bs(l,u,c,f,t,r,a))return!0}else s+=Bo(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!dEe(u,f)&&(s+=Bo(l,u,c,f,r,a)||0),s!==0}function mEe(e,t,n){return qH(e,0,!1,t,n)}function yEe(e,t,n,r){return qH(e,t,!0,n,r)}var R0=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xu),bEe={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},x1.style)},pw=So.concat(["invisible","culling","z","z2","zlevel","parent"]),_Ee=function(e){ge(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<pw.length;++s)a[pw[s]]=this[pw[s]];a.__dirty|=xa}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=Gt(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?Ie(this.style,s):this.useStyle(s):o==="shape"?Ie(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(Je(n)){var r=pp(n,0);return r>.5?qx:r>.2?tAe:Xx}else if(n)return Xx}return qx},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Je(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=pp(n,0)<jx;if(i===o)return r}},t.prototype.buildPath=function(n,r,a){},t.prototype.pathUpdated=function(){this.__dirty&=~cf},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 xo(!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&cf)&&(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)),yEe(s,l/u,n,r)))return!0}if(this.hasFill())return mEe(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=cf,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:Ie(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&cf)},t.prototype.createStyle=function(n){return og(R0,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Ie({},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=Ie({},a.shape),Ie(u,r.shape)):(u=Ie({},i?this.shape:a.shape),Ie(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=Ie({},this.shape);for(var c={},f=Gt(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 bEe},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(i){ge(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 pt(n.style)},o.prototype.getDefaultShape=function(){return pt(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=xa|Fh|cf}(),t}(ci);const Ft=_Ee;var wEe=ft({strokeFirst:!0,font:pl,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},R0),XH=function(e){ge(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 og(wEe,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=ug(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}(ci);XH.prototype.type="tspan";const bp=XH;var SEe=ft({x:0,y:0},Xu),CEe={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},x1.style)};function xEe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ZH=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return og(SEe,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=xEe(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 CEe},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Rt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ci);ZH.prototype.type="image";const hr=ZH;function TEe(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 _f=Math.round;function JH(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&&(_f(r*2)===_f(a*2)&&(e.x1=e.x2=$u(r,s,!0)),_f(i*2)===_f(o*2)&&(e.y1=e.y2=$u(i,s,!0))),e}}function QH(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=$u(r,s,!0),e.y=$u(a,s,!0),e.width=Math.max($u(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max($u(a+o,s,!1)-e.y,o===0?0:1)),e}}function $u(e,t,n){if(!t)return e;var r=_f(e*2);return(r+_f(t))%2===0?r/2:(r+(n?1:-1))/2}var MEe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),kEe={},eG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new MEe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=QH(kEe,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?TEe(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ft);eG.prototype.type="rect";const Xt=eG;var cR={fill:"#000"},fR=2,AEe={style:ft({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},x1.style)},tG=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=cR,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,DEe(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 Rt(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||cR},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return Ie(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=Gt(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},Ie(n[o],r[o])}},t.prototype.getAnimationStyleProps=function(){return AEe},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||pl,a=n.padding,i=yR(n),o=qAe(i,n),s=gw(n),l=!!n.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=n.x||0,g=n.y||0,m=n.align||v.align||"left",b=n.verticalAlign||v.verticalAlign||"top",_=p,w=ff(g,o.contentHeight,b);if(s||a){var C=Hh(p,c,m),S=ff(g,u,b);s&&this._renderBackground(n,n,C,S,c,u)}w+=h/2,a&&(_=mR(p,m,a),b==="top"?w+=a[0]:b==="bottom"&&(w-=a[2]));for(var x=0,T=!1,M=gR("fill"in n?n.fill:(T=!0,v.fill)),A=pR("stroke"in n?n.stroke:!l&&(!v.autoStroke||T)?(x=fR,v.stroke):null),k=n.textShadowBlur>0,E=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),D=o.calculatedLineHeight,L=0;L<d.length;L++){var B=this._getOrCreateChild(bp),$=B.createStyle();B.useStyle($),$.text=d[L],$.x=_,$.y=w,m&&($.textAlign=m),$.textBaseline="middle",$.opacity=n.opacity,$.strokeFirst=!0,k&&($.shadowBlur=n.textShadowBlur||0,$.shadowColor=n.textShadowColor||"transparent",$.shadowOffsetX=n.textShadowOffsetX||0,$.shadowOffsetY=n.textShadowOffsetY||0),$.stroke=A,$.fill=M,A&&($.lineWidth=n.lineWidth||x,$.lineDash=n.lineDash,$.lineDashOffset=n.lineDashOffset||0),$.font=r,hR($,n),w+=h,E&&B.setBoundingRect(new Rt(Hh($.x,n.width,$.textAlign),ff($.y,D,$.textBaseline),f,D))}},t.prototype._updateRichTexts=function(){var n=this.style,r=yR(n),a=JAe(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,v=Hh(u,o,d),p=ff(c,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var b=g+i;gw(n)&&this._renderBackground(n,n,v,p,o,s);for(var _=!!n.backgroundColor,w=0;w<a.lines.length;w++){for(var C=a.lines[w],S=C.tokens,x=S.length,T=C.lineHeight,M=C.width,A=0,k=g,E=b,D=x-1,L=void 0;A<x&&(L=S[A],!L.align||L.align==="left");)this._placeToken(L,n,T,m,k,"left",_),M-=L.width,k+=L.width,A++;for(;D>=0&&(L=S[D],L.align==="right");)this._placeToken(L,n,T,m,E,"right",_),M-=L.width,E-=L.width,D--;for(k+=(i-(k-g)-(b-E)-M)/2;A<=D;)L=S[A],this._placeToken(L,n,T,m,k+L.width/2,"center",_),k+=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&&gw(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,v=n.textPadding;v&&(o=mR(o,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var p=this._getOrCreateChild(bp),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,b=!1,_=0,w=gR("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,m.fill)),C=pR("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!m.autoStroke||b)?(_=fR,m.stroke):null),S=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,S&&(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||pl,g.opacity=Li(u.opacity,r.opacity,1),hR(g,u),C&&(g.lineWidth=Li(u.lineWidth,r.lineWidth,_),g.lineDash=Lt(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=C),w&&(g.fill=w);var x=n.contentWidth,T=n.contentHeight;p.setBoundingRect(new Rt(Hh(g.x,x,g.textAlign),ff(g.y,T,g.textBaseline),x,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,v=this,p,g;if(d||n.lineHeight||u&&c){p=this._getOrCreateChild(Xt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var b=p.style;b.fill=l||null,b.fillOpacity=Lt(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(hr),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=p.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Lt(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(p||g).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=Li(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return rG(n)&&(r=[n.fontStyle,n.fontWeight,nG(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Za(r)||n.textFont||n.font},t}(ci),EEe={left:!0,right:1,center:1},IEe={top:1,bottom:1,middle:1},dR=["fontStyle","fontWeight","fontSize","fontFamily"];function nG(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?yk+"px":e+"px"}function hR(e,t){for(var n=0;n<dR.length;n++){var r=dR[n],a=t[r];a!=null&&(e[r]=a)}}function rG(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function DEe(e){return vR(e),z(e.rich,vR),e}function vR(e){if(e){e.font=tG.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||EEe[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||IEe[n]?n:"top";var r=e.padding;r&&(e.padding=g1(e.padding))}}function pR(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function gR(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function mR(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function yR(e){var t=e.text;return t!=null&&(t+=""),t}function gw(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const qt=tG;var Tt=Qt(),a2=function(e,t,n,r){if(r){var a=Tt(r);a.dataIndex=n,a.dataType=t,a.seriesIndex=e,r.type==="group"&&r.traverse(function(i){var o=Tt(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t})}},bR=1,_R={},aG=Qt(),Vk=Qt(),Fk=0,fg=1,M1=2,ea=["emphasis","blur","select"],_p=["normal","emphasis","blur","select"],Ld=10,PEe=9,Zu="highlight",Vy="downplay",_v="select",Fy="unselect",wv="toggleSelect";function zc(e){return e!=null&&e!=="none"}var wR=new lg(100);function SR(e){if(Je(e)){var t=wR.get(e);return t||(t=I0(e,-.1),wR.put(e,t)),t}else if(ig(e)){var n=Ie({},e);return n.colorStops=Oe(e.colorStops,function(r){return{offset:r.offset,color:I0(r.color,-.1)}}),n}return e}function k1(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function iG(e){k1(e,"emphasis",M1)}function oG(e){e.hoverState===M1&&k1(e,"normal",Fk)}function zk(e){k1(e,"blur",fg)}function sG(e){e.hoverState===fg&&k1(e,"normal",Fk)}function LEe(e){e.selected=!0}function REe(e){e.selected=!1}function CR(e,t,n){t(e,n)}function vs(e,t,n){CR(e,t,n),e.isGroup&&e.traverse(function(r){CR(r,t,n)})}function O0(e,t){switch(t){case"emphasis":e.hoverState=M1;break;case"normal":e.hoverState=Fk;break;case"blur":e.hoverState=fg;break;case"select":e.selected=!0}}function OEe(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 NEe(e,t,n,r){var a=n&&Nt(n,"select")>=0,i=!1;if(e instanceof Ft){var o=aG(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(zc(s)||zc(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=Ie({},r),u=Ie({},u),u.fill=s):!zc(u.fill)&&zc(s)?(i=!0,r=Ie({},r),u=Ie({},u),u.fill=SR(s)):!zc(u.stroke)&&zc(l)&&(i||(r=Ie({},r),u=Ie({},u)),u.stroke=SR(l)),r.style=u}}if(r&&r.z2==null){i||(r=Ie({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Ld)}return r}function $Ee(e,t,n){if(n&&n.z2==null){n=Ie({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??PEe)}return n}function BEe(e,t,n){var r=Nt(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:OEe(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=Ie({},n),o=Ie({opacity:r?a:i.opacity*.1},o),n.style=o),n}function mw(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return NEe(this,e,t,n);if(e==="blur")return BEe(this,e,n);if(e==="select")return $Ee(this,e,n)}return n}function dc(e){e.stateProxy=mw;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=mw),n&&(n.stateProxy=mw)}function xR(e,t){!fG(e,t)&&!e.__highByOuter&&vs(e,iG)}function TR(e,t){!fG(e,t)&&!e.__highByOuter&&vs(e,oG)}function ns(e,t){e.__highByOuter|=1<<(t||0),vs(e,iG)}function rs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&vs(e,oG)}function lG(e){vs(e,zk)}function Hk(e){vs(e,sG)}function uG(e){vs(e,LEe)}function cG(e){vs(e,REe)}function fG(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function dG(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=Vk(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){sG(u)}),s&&n.push(i)),o.isBlured=!1}),z(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function i2(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&&Hk(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"||zk(g)}),Sr(t))i(u.getData(),t);else if(ht(t))for(var v=Gt(t),p=0;p<v.length;p++)i(u.getData(v[p]),t[v[p]]);l.push(u),Vk(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 o2(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){Vk(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){zk(i)})}}}function VEe(e,t,n){var r=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=cc(a,t);i=(Re(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=Tt(o);i2(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&i2(r,c,f,n)}}}function Gk(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(Tt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function FEe(e,t,n){var r=Tt(e),a=Gk(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&o2(r.componentMainType,r.componentIndex,n),z(i,function(s){return xR(s,t)})):(i2(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&o2(r.componentMainType,r.componentIndex,n),xR(e,t))}function zEe(e,t,n){dG(n);var r=Tt(e),a=Gk(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?z(a,function(i){return TR(i,t)}):TR(e,t)}function HEe(e,t,n){if(l2(t)){var r=t.dataType,a=e.getData(r),i=cc(a,t);Re(i)||(i=[i]),e[t.type===wv?"toggleSelect":t.type===_v?"select":"unselect"](i,r)}}function MR(e){var t=e.getAllData();z(t,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?uG(i):cG(i)})})}function GEe(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();z(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 rl(e,t,n){Bu(e,!0),vs(e,dc),s2(e,t,n)}function WEe(e){Bu(e,!1)}function On(e,t,n,r){r?WEe(e):rl(e,t,n)}function s2(e,t,n){var r=Tt(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var kR=["emphasis","blur","select"],KEe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Cr(e,t,n,r){n=n||"itemStyle";for(var a=0;a<kR.length;a++){var i=kR[a],o=t.getModel([i,n]),s=e.ensureState(i);s.style=r?r(o):o[KEe[n]]()}}function Bu(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 wp(e){return!!(e&&e.__highDownDispatcher)}function UEe(e,t,n){var r=Tt(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function YEe(e){var t=_R[e];return t==null&&bR<=32&&(t=_R[e]=bR++),t}function l2(e){var t=e.type;return t===_v||t===Fy||t===wv}function AR(e){var t=e.type;return t===Zu||t===Vy}function jEe(e){var t=aG(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 Hc=xo.CMD,qEe=[[],[],[]],ER=Math.sqrt,XEe=Math.atan2;function hG(e,t){if(t){var n=e.data,r=e.len(),a,i,o,s,l,u,c=Hc.M,f=Hc.C,d=Hc.L,h=Hc.R,v=Hc.A,p=Hc.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 p:i=2;break;case v:var g=t[4],m=t[5],b=ER(t[0]*t[0]+t[1]*t[1]),_=ER(t[2]*t[2]+t[3]*t[3]),w=XEe(-t[1]/_,t[0]/b);n[o]*=b,n[o++]+=g,n[o]*=_,n[o++]+=m,n[o++]*=b,n[o++]*=_,n[o++]+=w,n[o++]+=w,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],dr(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],dr(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<i;l++){var C=qEe[l];C[0]=n[o++],C[1]=n[o++],dr(C,C,t),n[s++]=C[0],n[s++]=C[1]}}e.increaseVersion()}}var yw=Math.sqrt,dm=Math.sin,hm=Math.cos,vh=Math.PI;function IR(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function u2(e,t){return(e[0]*t[0]+e[1]*t[1])/(IR(e)*IR(t))}function DR(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(u2(e,t))}function PR(e,t,n,r,a,i,o,s,l,u,c){var f=l*(vh/180),d=hm(f)*(e-n)/2+dm(f)*(t-r)/2,h=-1*dm(f)*(e-n)/2+hm(f)*(t-r)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=yw(v),s*=yw(v));var p=(a===i?-1:1)*yw((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,b=(e+n)/2+hm(f)*g-dm(f)*m,_=(t+r)/2+dm(f)*g+hm(f)*m,w=DR([1,0],[(d-g)/o,(h-m)/s]),C=[(d-g)/o,(h-m)/s],S=[(-1*d-g)/o,(-1*h-m)/s],x=DR(C,S);if(u2(C,S)<=-1&&(x=vh),u2(C,S)>=1&&(x=0),x<0){var T=Math.round(x/vh*1e6)/1e6;x=vh*2+T%2*vh}c.addData(u,b,_,o,s,w,x,f,i)}var ZEe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,JEe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function QEe(e){var t=new xo;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=xo.CMD,l=e.match(ZEe);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(JEe)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,b=void 0,_=void 0,w=void 0,C=void 0,S=void 0,x=void 0,T=n,M=r,A=void 0,k=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,b=r,A=t.len(),k=t.data,o===s.C&&(m+=n-k[A-4],b+=r-k[A-3]),d=s.C,T=h[g++],M=h[g++],n=h[g++],r=h[g++],t.addData(d,m,b,T,M,n,r);break;case"s":m=n,b=r,A=t.len(),k=t.data,o===s.C&&(m+=n-k[A-4],b+=r-k[A-3]),d=s.C,T=n+h[g++],M=r+h[g++],n+=h[g++],r+=h[g++],t.addData(d,m,b,T,M,n,r);break;case"Q":T=h[g++],M=h[g++],n=h[g++],r=h[g++],d=s.Q,t.addData(d,T,M,n,r);break;case"q":T=h[g++]+n,M=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,T,M,n,r);break;case"T":m=n,b=r,A=t.len(),k=t.data,o===s.Q&&(m+=n-k[A-4],b+=r-k[A-3]),n=h[g++],r=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"t":m=n,b=r,A=t.len(),k=t.data,o===s.Q&&(m+=n-k[A-4],b+=r-k[A-3]),n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"A":_=h[g++],w=h[g++],C=h[g++],S=h[g++],x=h[g++],T=n,M=r,n=h[g++],r=h[g++],d=s.A,PR(T,M,n,r,S,x,_,w,C,d,t);break;case"a":_=h[g++],w=h[g++],C=h[g++],S=h[g++],x=h[g++],T=n,M=r,n+=h[g++],r+=h[g++],d=s.A,PR(T,M,n,r,S,x,_,w,C,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=a,r=i),o=d}return t.toStatic(),t}var vG=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(Ft);function pG(e){return e.setData!=null}function gG(e,t){var n=QEe(e),r=Ie({},t);return r.buildPath=function(a){if(pG(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){hG(n,a),this.dirtyShape()},r}function mG(e,t){return new vG(gG(e,t))}function eIe(e,t){var n=gG(e,t),r=function(a){ge(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(vG);return r}function tIe(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 Ft(t);return o.createPathProxy(),o.buildPath=function(s){if(pG(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Wk(e,t){t=t||{};var n=new Ft;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?hG(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 nIe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),yG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new nIe},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}(Ft);yG.prototype.type="circle";const zi=yG;var rIe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),bG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new rIe},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}(Ft);bG.prototype.type="ellipse";const A1=bG;var _G=Math.PI,bw=_G*2,tu=Math.sin,Gc=Math.cos,aIe=Math.acos,Ar=Math.atan2,LR=Math.abs,Sv=Math.sqrt,Gh=Math.max,Zi=Math.min,_i=1e-4;function iIe(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<_i))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function vm(e,t,n,r,a,i,o){var s=e-n,l=t-r,u=(o?i:-i)/Sv(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=n+c,p=r+f,g=(d+v)/2,m=(h+p)/2,b=v-d,_=p-h,w=b*b+_*_,C=a-i,S=d*p-v*h,x=(_<0?-1:1)*Sv(Gh(0,C*C*w-S*S)),T=(S*_-b*x)/w,M=(-S*b-_*x)/w,A=(S*_+b*x)/w,k=(-S*b+_*x)/w,E=T-g,D=M-m,L=A-g,B=k-m;return E*E+D*D>L*L+B*B&&(T=A,M=k),{cx:T,cy:M,x0:-c,y0:-f,x1:T*(a/C-1),y1:M*(a/C-1)}}function oIe(e){var t;if(Re(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 sIe(e,t){var n,r=Gh(t.r,0),a=Gh(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=LR(u-l),v=h>bw&&h%bw;if(v>_i&&(h=v),!(r>_i))e.moveTo(c,f);else if(h>bw-_i)e.moveTo(c+r*Gc(l),f+r*tu(l)),e.arc(c,f,r,l,u,!d),a>_i&&(e.moveTo(c+a*Gc(u),f+a*tu(u)),e.arc(c,f,a,u,l,d));else{var p=void 0,g=void 0,m=void 0,b=void 0,_=void 0,w=void 0,C=void 0,S=void 0,x=void 0,T=void 0,M=void 0,A=void 0,k=void 0,E=void 0,D=void 0,L=void 0,B=r*Gc(l),$=r*tu(l),O=a*Gc(u),N=a*tu(u),I=h>_i;if(I){var F=t.cornerRadius;F&&(n=oIe(F),p=n[0],g=n[1],m=n[2],b=n[3]);var G=LR(r-a)/2;if(_=Zi(G,m),w=Zi(G,b),C=Zi(G,p),S=Zi(G,g),M=x=Gh(_,w),A=T=Gh(C,S),(x>_i||T>_i)&&(k=r*Gc(u),E=r*tu(u),D=a*Gc(l),L=a*tu(l),h<_G)){var U=iIe(B,$,D,L,k,E,O,N);if(U){var J=B-U[0],ae=$-U[1],Q=k-U[0],ee=E-U[1],te=1/tu(aIe((J*Q+ae*ee)/(Sv(J*J+ae*ae)*Sv(Q*Q+ee*ee)))/2),q=Sv(U[0]*U[0]+U[1]*U[1]);M=Zi(x,(r-q)/(te+1)),A=Zi(T,(a-q)/(te-1))}}}if(!I)e.moveTo(c+B,f+$);else if(M>_i){var de=Zi(m,M),ve=Zi(b,M),ie=vm(D,L,B,$,r,de,d),W=vm(k,E,O,N,r,ve,d);e.moveTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),M<x&&de===ve?e.arc(c+ie.cx,f+ie.cy,M,Ar(ie.y0,ie.x0),Ar(W.y0,W.x0),!d):(de>0&&e.arc(c+ie.cx,f+ie.cy,de,Ar(ie.y0,ie.x0),Ar(ie.y1,ie.x1),!d),e.arc(c,f,r,Ar(ie.cy+ie.y1,ie.cx+ie.x1),Ar(W.cy+W.y1,W.cx+W.x1),!d),ve>0&&e.arc(c+W.cx,f+W.cy,ve,Ar(W.y1,W.x1),Ar(W.y0,W.x0),!d))}else e.moveTo(c+B,f+$),e.arc(c,f,r,l,u,!d);if(!(a>_i)||!I)e.lineTo(c+O,f+N);else if(A>_i){var de=Zi(p,A),ve=Zi(g,A),ie=vm(O,N,k,E,a,-ve,d),W=vm(B,$,D,L,a,-de,d);e.lineTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),A<T&&de===ve?e.arc(c+ie.cx,f+ie.cy,A,Ar(ie.y0,ie.x0),Ar(W.y0,W.x0),!d):(ve>0&&e.arc(c+ie.cx,f+ie.cy,ve,Ar(ie.y0,ie.x0),Ar(ie.y1,ie.x1),!d),e.arc(c,f,a,Ar(ie.cy+ie.y1,ie.cx+ie.x1),Ar(W.cy+W.y1,W.cx+W.x1),d),de>0&&e.arc(c+W.cx,f+W.cy,de,Ar(W.y1,W.x1),Ar(W.y0,W.x0),!d))}else e.lineTo(c+O,f+N),e.arc(c,f,a,u,l,d)}e.closePath()}}}var lIe=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}(),wG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new lIe},t.prototype.buildPath=function(n,r){sIe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ft);wG.prototype.type="sector";const ta=wG;var uIe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),SG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new uIe},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}(Ft);SG.prototype.type="ring";const dg=SG;function cIe(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++)Go(c,c,e[d]),Wo(f,f,e[d]);Go(c,c,r[0]),Wo(f,f,r[1])}for(var d=0,h=e.length;d<h;d++){var v=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(vo(e[d]));continue}else l=e[d-1],u=e[d+1];Ws(i,u,l),vv(i,i,t);var p=k0(v,l),g=k0(v,u),m=p+g;m!==0&&(p/=m,g/=m),vv(o,i,-p),vv(s,i,g);var b=Lx([],v,o),_=Lx([],v,s);r&&(Wo(b,b,c),Go(b,b,f),Wo(_,_,c),Go(_,_,f)),a.push(b),a.push(_)}return n&&a.push(a.shift()),a}function CG(e,t,n){var r=t.smooth,a=t.points;if(a&&a.length>=2){if(r){var i=cIe(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 fIe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),xG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new fIe},t.prototype.buildPath=function(n,r){CG(n,r,!0)},t}(Ft);xG.prototype.type="polygon";const na=xG;var dIe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),TG=function(e){ge(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 dIe},t.prototype.buildPath=function(n,r){CG(n,r,!1)},t}(Ft);TG.prototype.type="polyline";const aa=TG;var hIe={},vIe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),MG=function(e){ge(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 vIe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=JH(hIe,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}(Ft);MG.prototype.type="line";const rr=MG;var sa=[],pIe=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 RR(e,t,n){var r=e.cpx2,a=e.cpy2;return r!=null||a!=null?[(n?FL:tr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?FL:tr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Vx:cr)(e.x1,e.cpx1,e.x2,t),(n?Vx:cr)(e.y1,e.cpy1,e.y2,t)]}var kG=function(e){ge(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 pIe},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&&(dp(a,l,o,d,sa),l=sa[1],o=sa[2],dp(i,u,s,d,sa),u=sa[1],s=sa[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(gl(a,l,c,o,d,sa),l=sa[1],c=sa[2],o=sa[3],gl(i,u,f,s,d,sa),u=sa[1],f=sa[2],s=sa[3]),n.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(n){return RR(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=RR(this.shape,n,!0);return Cc(r,r)},t}(Ft);kG.prototype.type="bezier-curve";const hg=kG;var gIe=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}(),AG=function(e){ge(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 gIe},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}(Ft);AG.prototype.type="arc";const E1=AG;var mIe=function(e){ge(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),Ft.prototype.getBoundingRect.call(this)},t}(Ft);const I1=mIe;var yIe=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}();const EG=yIe;var bIe=function(e){ge(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}(EG);const Rd=bIe;var _Ie=function(e){ge(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}(EG);const Kk=_Ie;var nu=[0,0],ru=[0,0],pm=new Pt,gm=new Pt,wIe=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Pt;for(var r=0;r<2;r++)this._axes[r]=new Pt;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);Pt.sub(a[0],r[1],r[0]),Pt.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 pm.set(1/0,1/0),gm.set(0,0),!this._intersectCheckOneSide(this,t,pm,gm,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(t,this,pm,gm,a,-1)&&(r=!1,a)||a||Pt.copy(n,r?pm:gm),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,nu),this._getProjMinMaxOnAxis(l,n._corners,ru),nu[1]<ru[0]||nu[0]>ru[1]){if(s=!1,i)return s;var c=Math.abs(ru[0]-nu[1]),f=Math.abs(nu[0]-ru[1]);Math.min(c,f)>a.len()&&(c<f?Pt.scale(a,u,-c*o):Pt.scale(a,u,f*o))}else if(r){var c=Math.abs(ru[0]-nu[1]),f=Math.abs(nu[0]-ru[1]);Math.min(c,f)<r.len()&&(c<f?Pt.scale(r,u,c*o):Pt.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 N0=wIe;var SIe=[],CIe=function(e){ge(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 Rt(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(SIe)),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}(ci);const IG=CIe;var DG=Qt();function Od(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=Lt(r.duration,200),c=Lt(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)),ut(f)&&(f=f(n,a)),ut(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Uk(e,t,n,r,a,i,o){var s=!1,l;ut(a)?(o=i,i=a,a=null):ht(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=Od(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,v={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(n,v):t.animateTo(n,v)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),i&&i()}function tn(e,t,n,r,a,i){Uk("update",e,t,n,r,a,i)}function Cn(e,t,n,r,a,i){Uk("enter",e,t,n,r,a,i)}function $f(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 ml(e,t,n,r,a,i){$f(e)||Uk("leave",e,t,n,r,a,i)}function OR(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),ml(e,{style:{opacity:0}},t,n,r)}function Sp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||OR(a,t,n,r)}):OR(e,t,n,r)}function Hi(e){DG(e).oldStyle=e.style}function xIe(e){return DG(e).oldStyle}var $0=Math.max,B0=Math.min,c2={};function PG(e){return Ft.extend(e)}var TIe=eIe;function LG(e,t){return TIe(e,t)}function di(e,t){c2[e]=t}function D1(e){if(c2.hasOwnProperty(e))return c2[e]}function vg(e,t,n,r){var a=mG(e,t);return n&&(r==="center"&&(n=RG(n,a.getBoundingRect())),jk(a,n)),a}function Yk(e,t,n){var r=new hr({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(RG(t,i))}}});return r}function RG(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 Ta=tIe;function jk(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function hd(e,t){return JH(e,e,{lineWidth:t}),e}function MIe(e){return QH(e.shape,e.shape,e.style),e}var zy=$u;function al(e,t){for(var n=sg([]);e&&e!==t;)po(n,e.getLocalTransform(),n),e=e.parent;return n}function Ni(e,t,n){return t&&!Sr(t)&&(t=Ko.getLocalTransform(t)),n&&(t=xc([],t)),dr([],e,t)}function P1(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=Ni(i,t,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function NR(e){return!e.isGroup}function kIe(e){return e.shape!=null}function pg(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){NR(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return kIe(o)&&(s.shape=Ie({},o.shape)),s}var i=r(e);t.traverse(function(o){if(NR(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),tn(o,l,n,Tt(o).dataIndex)}}})}function qk(e,t){return Oe(e,function(n){var r=n[0];r=$0(r,t.x),r=B0(r,t.x+t.width);var a=n[1];return a=$0(a,t.y),a=B0(a,t.y+t.height),[r,a]})}function OG(e,t){var n=$0(e.x,t.x),r=B0(e.x+e.width,t.x+t.width),a=$0(e.y,t.y),i=B0(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 Nd(e,t,n){var r=Ie({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),ft(a,n),new hr(r)):vg(e.replace("path://",""),r,n,"center")}function Wh(e,t,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(NG(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function NG(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=_w(c,f,l,u);if(AIe(d))return!1;var h=e-a,v=t-i,p=_w(h,v,l,u)/d;if(p<0||p>1)return!1;var g=_w(h,v,c,f)/d;return!(g<0||g>1)}function _w(e,t,n,r){return e*r-n*t}function AIe(e){return e<=1e-6&&e>=-1e-6}function $d(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=Je(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&&z(Gt(l),function(c){nt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Tt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:ft({content:r,formatterParams:s},a)}}function $R(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Ll(e,t){if(e)if(Re(e))for(var n=0;n<e.length;n++)$R(e[n],t);else $R(e,t)}di("circle",zi);di("ellipse",A1);di("sector",ta);di("ring",dg);di("polygon",na);di("polyline",aa);di("rect",Xt);di("line",rr);di("bezierCurve",hg);di("arc",E1);const gg=Object.freeze(Object.defineProperty({__proto__:null,Arc:E1,BezierCurve:hg,BoundingRect:Rt,Circle:zi,CompoundPath:I1,Ellipse:A1,Group:bt,Image:hr,IncrementalDisplayable:IG,Line:rr,LinearGradient:Rd,OrientedBoundingRect:N0,Path:Ft,Point:Pt,Polygon:na,Polyline:aa,RadialGradient:Kk,Rect:Xt,Ring:dg,Sector:ta,Text:qt,applyTransform:Ni,clipPointsByRect:qk,clipRectByRect:OG,createIcon:Nd,extendPath:LG,extendShape:PG,getShapeClass:D1,getTransform:al,groupTransition:pg,initProps:Cn,isElementRemoved:$f,lineLineIntersect:NG,linePolygonIntersect:Wh,makeImage:Yk,makePath:vg,mergePath:Ta,registerShape:di,removeElement:ml,removeElementWithFadeOut:Sp,resizePath:jk,setTooltipConfig:$d,subPixelOptimize:zy,subPixelOptimizeLine:hd,subPixelOptimizeRect:MIe,transformDirection:P1,traverseElements:Ll,updateProps:tn},Symbol.toStringTag,{value:"Module"}));var L1={};function $G(e,t){for(var n=0;n<ea.length;n++){var r=ea[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 f2(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=ut(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:s},u=0;u<ea.length;u++){var c=ea[u],f=t[c];l[c]=Lt(r?r.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function xr(e,t,n,r){n=n||L1;for(var a=e instanceof qt,i=!1,o=0;o<_p.length;o++){var s=t[_p[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new qt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=f2(n,t),c=t.normal,f=!!c.getShallow("show"),d=pn(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||e.setTextConfig(V0(c,n,!1));for(var o=0;o<ea.length;o++){var h=ea[o],s=t[h];if(s){var v=l.ensureState(h),p=!!Lt(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=pn(s,r&&r[h],n,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=V0(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&&(Bd(l).setLabelText=function(m){var b=f2(n,t,m);$G(l,b)})}else l&&(l.ignore=!0);e.dirty()}function sr(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<ea.length;r++){var a=ea[r];n[a]=e.getModel([a,t])}return n}function pn(e,t,n,r,a){var i={};return EIe(i,e,n,r,a),t&&Ie(i,t),i}function V0(e,t,n){t=t||{};var r={},a,i=e.getShallow("rotate"),o=Lt(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 EIe(e,t,n,r,a){n=n||L1;var i=t.ecModel,o=i&&i.option.textStyle,s=IIe(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);zR(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),zR(e,t,o,n,r,a,!0,!1)}function IIe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||L1).rich;if(n){t=t||{};for(var r=Gt(n),a=0;a<r.length;a++){var i=r[a];t[i]=1}}e=e.parentModel}return t}var BR=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],VR=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],FR=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function zR(e,t,n,r,a,i,o,s){n=!a&&n||L1;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Lt(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=Lt(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var h=Lt(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var v=Lt(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!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 p=0;p<BR.length;p++){var g=BR[p],m=Lt(t.getShallow(g),n[g]);m!=null&&(e[g]=m)}for(var p=0;p<VR.length;p++){var g=VR[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!o||!r.disableBox){for(var p=0;p<FR.length;p++){var g=FR[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function BG(e,t){var n=t&&t.getModel("textStyle");return Za([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 Bd=Qt();function VG(e,t,n,r){if(e){var a=Bd(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 FG(e,t,n,r,a){var i=Bd(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Lt(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=FH(n,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=f2({labelDataIndex:t,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);$G(e,d)}e.percent=0,(i.prevValue==null?Cn:tn)(e,{percent:1},r,t,null,u)}var DIe=["textStyle","color"],ww=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Sw=new qt,PIe=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(DIe):null)},e.prototype.getFont=function(){return BG({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<ww.length;r++)n[ww[r]]=this.getShallow(ww[r]);return Sw.useStyle(n),Sw.update(),Sw.getBoundingRect()},e}();const LIe=PIe;var zG=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],RIe=fc(zG),OIe=function(){function e(){}return e.prototype.getLineStyle=function(t){return RIe(this,t)},e}(),HG=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],NIe=fc(HG),$Ie=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return NIe(this,t,n)},e}(),Tc=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){Dt(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(pt(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(!Zt.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}();$k(Tc);zAe(Tc);Bn(Tc,OIe);Bn(Tc,$Ie);Bn(Tc,UAe);Bn(Tc,LIe);const fn=Tc;var BIe=Math.round(Math.random()*10);function Vd(e){return[e||"",BIe++].join("_")}function VIe(e){var t={};e.registerSubTypeDefaulter=function(n,r){var a=uo(n);t[a.main]=r},e.determineSubType=function(n,r){var a=r.type;if(!a){var i=uo(n).main;e.hasSubTypes(n)&&t[i]&&(a=t[i](r))}return a}}function FIe(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(z(i,function(b){d[b]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),z(v.successor,p?m:g)}z(d,function(){var b="";throw new Error(b)});function g(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function m(b){d[b]=!0,g(b)}};function n(i){var o={},s=[];return z(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),z(f,function(d){Nt(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);Nt(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 z(i,function(l){Nt(o,l)>=0&&s.push(l)}),s}}function Rl(e,t){return Dt(Dt({},e,!0),t,!0)}const zIe={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},HIe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var F0="ZH",Xk="EN",Cp=Xk,Hy={},Zk={},GG=Zt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(F0)>-1?F0:Cp}():Cp;function Jk(e,t){e=e.toUpperCase(),Zk[e]=new fn(t),Hy[e]=t}function GIe(e){if(Je(e)){var t=Hy[e.toUpperCase()]||{};return e===F0||e===Xk?pt(t):Dt(pt(t),pt(Hy[Cp]),!1)}else return Dt(pt(e),pt(Hy[Cp]),!1)}function d2(e){return Zk[e]}function WIe(){return Zk[Cp]}Jk(Xk,zIe);Jk(F0,HIe);var Qk=1e3,eA=Qk*60,Cv=eA*60,qa=Cv*24,HR=qa*365,Kh={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}"},mm="{yyyy}-{MM}-{dd}",GR={year:"{yyyy}",month:"{yyyy}-{MM}",day:mm,hour:mm+" "+Kh.hour,minute:mm+" "+Kh.minute,second:mm+" "+Kh.second,millisecond:Kh.none},Cw=["year","month","day","hour","minute","second","millisecond"],WG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Gr(e,t){return e+="","0000".substr(0,t-e.length)+e}function Bf(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 KIe(e){return e===Bf(e)}function UIe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function mg(e,t,n,r){var a=Ra(e),i=a[tA(n)](),o=a[Vf(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[R1(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[xp(n)](),f=(c-1)%12+1,d=a[O1(n)](),h=a[N1(n)](),v=a[$1(n)](),p=r instanceof fn?r:d2(r||GG)||WIe(),g=p.getModel("time"),m=g.get("month"),b=g.get("monthAbbr"),_=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Gr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Gr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Gr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Gr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Gr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Gr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Gr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Gr(v,3)).replace(/{S}/g,v+"")}function YIe(e,t,n,r,a){var i=null;if(Je(n))i=n;else if(ut(n))i=n(e.value,t,{level:e.level});else{var o=Ie({},Kh);if(e.level>0)for(var s=0;s<Cw.length;++s)o[Cw[s]]="{primary|"+o[Cw[s]]+"}";var l=n?n.inherit===!1?n:ft(n,o):o,u=KG(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=WG.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Re(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 mg(new Date(e.value),i,a,r)}function KG(e,t){var n=Ra(e),r=n[Vf(t)]()+1,a=n[R1(t)](),i=n[xp(t)](),o=n[O1(t)](),s=n[N1(t)](),l=n[$1(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,v=h&&r===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function WR(e,t,n){var r=Jt(e)?Ra(e):e;switch(t=t||KG(e,n),t){case"year":return r[tA(n)]();case"half-year":return r[Vf(n)]()>=6?1:0;case"quarter":return Math.floor((r[Vf(n)]()+1)/4);case"month":return r[Vf(n)]();case"day":return r[R1(n)]();case"half-day":return r[xp(n)]()/24;case"hour":return r[xp(n)]();case"minute":return r[O1(n)]();case"second":return r[N1(n)]();case"millisecond":return r[$1(n)]()}}function tA(e){return e?"getUTCFullYear":"getFullYear"}function Vf(e){return e?"getUTCMonth":"getMonth"}function R1(e){return e?"getUTCDate":"getDate"}function xp(e){return e?"getUTCHours":"getHours"}function O1(e){return e?"getUTCMinutes":"getMinutes"}function N1(e){return e?"getUTCSeconds":"getSeconds"}function $1(e){return e?"getUTCMilliseconds":"getMilliseconds"}function jIe(e){return e?"setUTCFullYear":"setFullYear"}function UG(e){return e?"setUTCMonth":"setMonth"}function YG(e){return e?"setUTCDate":"setDate"}function jG(e){return e?"setUTCHours":"setHours"}function qG(e){return e?"setUTCMinutes":"setMinutes"}function XG(e){return e?"setUTCSeconds":"setSeconds"}function ZG(e){return e?"setUTCMilliseconds":"setMilliseconds"}function qIe(e,t,n,r,a,i,o,s){var l=new qt({style:{text:e,font:t,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function nA(e){if(!Rk(e))return Je(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function rA(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 Mc=g1;function h2(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Za(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?Ra(e):e;if(isNaN(+l)){if(s)return"-"}else return mg(l,r,n)}if(t==="ordinal")return T0(e)?a(e):Jt(e)&&i(e)?e+"":"-";var u=Co(e);return i(u)?nA(u):T0(e)?a(e):typeof e=="boolean"?e+"":"-"}var KR=["a","b","c","d","e","f","g"],xw=function(e,t){return"{"+e+(t??"")+"}"};function aA(e,t,n){Re(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=KR[i];e=e.replace(xw(o),xw(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(xw(KR[l],s),n?Kr(u):u)}return e}function XIe(e,t,n){return z(t,function(r,a){e=e.replace("{"+a+"}",n?Kr(r):r)}),e}function JG(e,t){var n=Je(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:'+Kr(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Kr(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 ZIe(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
  85. yyyy`);var r=Ra(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",Gr(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Gr(i%100+"",2)).replace("dd",Gr(s,2)).replace("d",s).replace("hh",Gr(l,2)).replace("h",l).replace("mm",Gr(u,2)).replace("m",u).replace("ss",Gr(c,2)).replace("s",c).replace("SSS",Gr(f,3)),e}function JIe(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function hc(e,t){return t=t||"transparent",Je(e)?e:ht(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function z0(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Gy=z,QG=["left","right","top","bottom","width","height"],Vu=[["width","left","right"],["height","top","bottom"]];function iA(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,v;if(e==="horizontal"){var p=c.width+(d?-d.x+c.x:0);h=i+p,h>r||l.newline?(i=0,h=p,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>a||l.newline?(i+=s+n,o=0,v=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=v+n)})}var Ju=iA;xt(iA,"vertical");xt(iA,"horizontal");function QIe(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=Mc(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function qn(e,t,n){n=Mc(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 v=new Rt(i+n[3],o+n[0],u,c);return v.margin=n,v}function B1(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 Rt(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=qn(ft({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 eDe(e,t){return e[Vu[t][0]]!=null||e[Vu[t][1]]!=null&&e[Vu[t][2]]!=null}function Tp(e){var t=e.layoutMode||e.constructor.layoutMode;return ht(t)?t:t?{type:t}:null}function yl(e,t,n){var r=n&&n.ignoreSize;!Re(r)&&(r=[r,r]);var a=o(Vu[0],0),i=o(Vu[1],1);u(Vu[0],e,a),u(Vu[1],e,i);function o(c,f){var d={},h=0,v={},p=0,g=2;if(Gy(c,function(_){v[_]=e[_]}),Gy(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),r[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m<c.length;m++){var b=c[m];if(!s(d,b)&&s(e,b)){d[b]=e[b];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){Gy(c,function(h){f[h]=d[h]})}}function Fd(e){return eW({},e)}function eW(e,t){return t&&e&&Gy(QG,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var tDe=Qt(),zd=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n,r,a)||this;return i.uid=Vd("ec_cpt_model"),i}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Tp(this),i=a?Fd(n):{},o=r.getTheme();Dt(n,o.get(this.mainType)),Dt(n,this.getDefaultOption()),a&&yl(n,i,a)},t.prototype.mergeOption=function(n,r){Dt(this.option,n,!0);var a=Tp(this);a&&yl(this.option,n,a)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!BAe(n))return n.defaultOption;var r=tDe(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=Dt(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return cg(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}(fn);HH(zd,fn);S1(zd);VIe(zd);FIe(zd,nDe);function nDe(e){var t=[];return z(zd.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Oe(t,function(n){return uo(n).main}),e!=="dataset"&&Nt(t,"dataset")<=0&&t.unshift("dataset"),t}const Yt=zd;var tW="";typeof navigator<"u"&&(tW=navigator.platform||"");var Wc="rgba(0, 0, 0, 0.2)";const rDe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Wc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:tW.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 nW=ot(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),hi="original",$r="arrayRows",vi="objectRows",Ao="keyedColumns",il="typedArray",rW="unknown",go="column",Hd="row",pr={Must:1,Might:2,Not:3},aW=Qt();function aDe(e){aW(e).datasetMap=ot()}function iW(e,t,n){var r={},a=sA(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=aW(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),z(e,function(p,g){var m=ht(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});z(e,function(p,g){var m=p.name,b=v(p);if(c==null){var _=d.valueWayDim;h(r[m],_,b),h(o,_,b),d.valueWayDim+=b}else if(c===g)h(r[m],0,b),h(i,0,b);else{var _=d.categoryWayDim;h(r[m],_,b),h(o,_,b),d.categoryWayDim+=b}});function h(p,g,m){for(var b=0;b<m;b++)p.push(g+b)}function v(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function oA(e,t,n){var r={},a=sA(e);if(!a)return r;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===vi||i===Ao)&&z(o,function(c,f){(ht(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,n);h<v;h++){var p=sW(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===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||(p===pr.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(b){return b.v!=null&&b.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 sA(e){var t=e.get("data",!0);if(!t)return cg(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Gn).models[0]}function iDe(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:cg(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Gn).models}function oW(e,t){return sW(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function sW(e,t,n,r,a,i){var o,s=5;if(ba(e))return pr.Not;var l,u;if(r){var c=r[i];ht(c)?(l=c.name,u=c.type):Je(c)&&(l=c)}if(u!=null)return u==="ordinal"?pr.Must:pr.Not;if(t===$r){var f=e;if(n===Hd){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 v=f[a+h];if(v&&(o=w(v[i]))!=null)return o}}else if(t===vi){var p=e;if(!l)return pr.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=w(g[l]))!=null)return o}}else if(t===Ao){var m=e;if(!l)return pr.Not;var d=m[l];if(!d||ba(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===hi)for(var b=e,h=0;h<b.length&&h<s;h++){var g=b[h],_=Pd(g);if(!Re(_))return pr.Not;if((o=w(_[i]))!=null)return o}function w(C){var S=Je(C);if(C!=null&&isFinite(C)&&C!=="")return S?pr.Might:pr.Not;if(S&&C!=="-")return pr.Must}return pr.Not}var v2=ot();function oDe(e,t){Nr(v2.get(e)==null&&t),v2.set(e,t)}function sDe(e,t,n){var r=v2.get(t);if(!r)return n;var a=r(e);return a?n.concat(a):n}var UR=Qt(),lDe=Qt(),lA=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var a=dn(this.get("color",!0)),i=this.get("colorLayer",!0);return lW(this,UR,a,i,t,n,r)},e.prototype.clearColorPalette=function(){cDe(this,UR)},e}();function p2(e,t,n,r){var a=dn(e.get(["aria","decal","decals"]));return lW(e,lDe,a,null,t,n,r)}function uDe(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 lW(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:uDe(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 cDe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ym,ph,YR,jR="\0_ec_inner",fDe=1,uW=function(e){ge(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 fn(i),this._locale=new fn(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=ZR(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,ZR(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"?YR(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&&z(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=ot(),u=r&&r.replaceMergeMainTypeMap;aDe(this),z(n,function(f,d){f!=null&&(Yt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?pt(f):Dt(a[d],f,!0))}),u&&u.each(function(f,d){Yt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Yt.topologicalTravel(s,Yt.getAllClassMainTypes(),c,this);function c(f){var d=sDe(this,f,dn(n[f])),h=i.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=$H(h,d,v);EAe(p,f,Yt),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],b=0,_;z(p,function(w,C){var S=w.existing,x=w.newOption;if(!x)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=f==="series",M=Yt.getClass(f,w.keyInfo.subType,!T);if(!M)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===M)S.name=w.keyInfo.name,S.mergeOption(x,this),S.optionUpdated(x,!1);else{var A=Ie({componentIndex:C},w.keyInfo);S=new M(x,this,this,A),Ie(S,A),w.brandNew&&(S.__requireNewView=!0),S.init(x,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),m.push(S),b++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,b),f==="series"&&ym(this)}this._seriesIndices||ym(this)},t.prototype.getOption=function(){var n=pt(this.option);return z(n,function(r,a){if(Yt.hasClass(a)){for(var i=dn(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!yp(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[jR],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=[],z(dn(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=qR("id",i,s):o!=null?l=qR("name",o,s):l=sn(s,function(u){return!!u}),XR(l,n)},t.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):sn(this._componentsMap.get(a),function(u){return!!u});return l(XR(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?sn(u,n.filter):u}},t.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(ut(n)){var o=r,s=n;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=Je(n)?i.get(n):ht(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=er(n,null);return sn(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 sn(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return sn(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){ph(this),z(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},t.prototype.eachRawSeries=function(n,r){z(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,a){ph(this),z(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 z(this.getSeriesByType(n),r,a)},t.prototype.isSeriesFiltered=function(n){return ph(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){ph(this);var a=[];z(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=ot(a)},t.prototype.restoreData=function(n){ym(this);var r=this._componentsMap,a=[];r.each(function(i,o){Yt.hasClass(o)&&a.push(o)}),Yt.topologicalTravel(a,Yt.getAllClassMainTypes(),function(i){z(r.get(i),function(o){o&&(i!=="series"||!dDe(o,n))&&o.restoreData()})})},t.internalField=function(){ym=function(n){var r=n._seriesIndices=[];z(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=ot(r)},ph=function(n){},YR=function(n,r){n.option={},n.option[jR]=fDe,n._componentsMap=ot({series:[]}),n._componentsCount=ot();var a=r.aria;ht(a)&&a.enabled==null&&(a.enabled=!0),hDe(r,n._theme.option),Dt(r,rDe,!1),n._mergeOption(r,null)}}(),t}(fn);function dDe(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 hDe(e,t){var n=e.color&&!e.colorLayer;z(t,function(r,a){a==="colorLayer"&&n||Yt.hasClass(a)||(typeof r=="object"?e[a]=e[a]?Dt(e[a],r,!1):pt(r):e[a]==null&&(e[a]=r))})}function qR(e,t,n){if(Re(t)){var r=ot();return z(t,function(i){if(i!=null){var o=er(i,null);o!=null&&r.set(i,!0)}}),sn(n,function(i){return i&&r.get(i[e])})}else{var a=er(t,null);return sn(n,function(i){return i&&a!=null&&i[e]===a})}}function XR(e,t){return t.hasOwnProperty("subType")?sn(e,function(n){return n&&n.subType===t.subType}):e}function ZR(e){var t=ot();return e&&z(dn(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Bn(uW,lA);const cW=uW;var vDe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],pDe=function(){function e(t){z(vDe,function(n){this[n]=et(t[n],t)},this)}return e}();const fW=pDe;var Tw={},gDe=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];z(Tw,function(a,i){var o=a.create(t,n);r=r.concat(o||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){z(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){Tw[t]=n},e.get=function(t){return Tw[t]},e}();const Gd=gDe;var mDe=/^(min|max)?(.+)$/,yDe=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(z(dn(t.series),function(o){o&&o.data&&ba(o.data)&&up(o.data)}),z(dn(t.dataset),function(o){o&&o.source&&ba(o.source)&&up(o.source)})),t=pt(t);var a=this._optionBackup,i=bDe(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=[],pt(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=pt(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++)_De(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!SDe(o,this._currentMediaIndices)&&(s=Oe(o,function(c){return pt(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function bDe(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&&Re(u)&&z(u,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),z(l,function(h){return d(h)}),z(r,function(h){return d(h.option)});function d(h){z(t,function(v){v(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function _De(e,t,n){var r={width:t,height:n,aspectratio:t/n},a=!0;return z(e,function(i,o){var s=o.match(mDe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();wDe(r[u],i,l)||(a=!1)}}),a}function wDe(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function SDe(e,t){return e.join(",")===t.join(",")}const CDe=yDe;var mi=z,Mp=ht,JR=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Mw(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=JR.length;n<r;n++){var a=JR[n],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?Dt(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?Dt(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Dr(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,ft(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 Uh(e){Dr(e,"itemStyle"),Dr(e,"lineStyle"),Dr(e,"areaStyle"),Dr(e,"label"),Dr(e,"labelLine"),Dr(e,"upperLabel"),Dr(e,"edgeLabel")}function Hn(e,t){var n=Mp(e)&&e[t],r=Mp(n)&&n.textStyle;if(r)for(var a=0,i=nR.length;a<i;a++){var o=nR[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Ha(e){e&&(Uh(e),Hn(e,"label"),e.emphasis&&Hn(e.emphasis,"label"))}function xDe(e){if(Mp(e)){Mw(e),Uh(e),Hn(e,"label"),Hn(e,"upperLabel"),Hn(e,"edgeLabel"),e.emphasis&&(Hn(e.emphasis,"label"),Hn(e.emphasis,"upperLabel"),Hn(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Mw(t),Ha(t));var n=e.markLine;n&&(Mw(n),Ha(n));var r=e.markArea;r&&Ha(r);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!ba(i))for(var o=0;o<i.length;o++)Ha(i[o]);z(e.categories,function(u){Uh(u)})}if(a&&!ba(a))for(var o=0;o<a.length;o++)Ha(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ha(s[o]);if(n=e.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)Re(l[o])?(Ha(l[o][0]),Ha(l[o][1])):Ha(l[o]);e.type==="gauge"?(Hn(e,"axisLabel"),Hn(e,"title"),Hn(e,"detail")):e.type==="treemap"?(Dr(e.breadcrumb,"itemStyle"),z(e.levels,function(u){Uh(u)})):e.type==="tree"&&Uh(e.leaves)}}function Po(e){return Re(e)?e:e?[e]:[]}function QR(e){return(Re(e)?e[0]:e)||{}}function TDe(e,t){mi(Po(e.series),function(r){Mp(r)&&xDe(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),mi(n,function(r){mi(Po(e[r]),function(a){a&&(Hn(a,"axisLabel"),Hn(a.axisPointer,"label"))})}),mi(Po(e.parallel),function(r){var a=r&&r.parallelAxisDefault;Hn(a,"axisLabel"),Hn(a&&a.axisPointer,"label")}),mi(Po(e.calendar),function(r){Dr(r,"itemStyle"),Hn(r,"dayLabel"),Hn(r,"monthLabel"),Hn(r,"yearLabel")}),mi(Po(e.radar),function(r){Hn(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)}),mi(Po(e.geo),function(r){Mp(r)&&(Ha(r),mi(Po(r.regions),function(a){Ha(a)}))}),mi(Po(e.timeline),function(r){Ha(r),Dr(r,"label"),Dr(r,"itemStyle"),Dr(r,"controlStyle",!0);var a=r.data;Re(a)&&z(a,function(i){ht(i)&&(Dr(i,"label"),Dr(i,"itemStyle"))})}),mi(Po(e.toolbox),function(r){Dr(r,"iconStyle"),mi(r.feature,function(a){Dr(a,"iconStyle")})}),Hn(QR(e.axisPointer),"label"),Hn(QR(e.tooltip).axisPointer,"label")}function MDe(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 kDe(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 eO(e){e&&z(ADe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var ADe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],EDe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],kw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function gh(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<kw.length;n++){var r=kw[n][1],a=kw[n][0];t[r]!=null&&(t[a]=t[r])}}function tO(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function nO(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function IDe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function dW(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&dW(e[n].children,t)}function hW(e,t){TDe(e,t),e.series=dn(e.series),z(e.series,function(n){if(ht(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),tO(n.label);var a=n.data;if(a&&!ba(a))for(var i=0;i<a.length;i++)tO(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=MDe(n,"pointer.color");o!=null&&kDe(n,"itemStyle.color",o)}else if(r==="bar"){gh(n),gh(n.backgroundStyle),gh(n.emphasis);var a=n.data;if(a&&!ba(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(gh(a[i]),gh(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)),nO(n),dW(n.data,nO)}else r==="graph"||r==="sankey"?IDe(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&ft(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),eO(n)}}),e.dataRange&&(e.visualMap=e.dataRange),z(EDe,function(n){var r=e[n];r&&(Re(r)||(r=[r]),z(r,function(a){eO(a)}))})}function DDe(e){var t=ot();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(PDe)}function PDe(e){z(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,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var b=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=bAe(d,b),p=b;break}}}return r[0]=d,r[1]=p,r})})}var V1=function(){function e(t){this.data=t.data||(t.sourceFormat===Ao?{}:[]),this.sourceFormat=t.sourceFormat||rW,this.seriesLayoutBy=t.seriesLayoutBy||go,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&&oW(this,r)===pr.Must&&(a.type="ordinal")}}return e}();function uA(e){return e instanceof V1}function g2(e,t,n){n=n||vW(e);var r=t.seriesLayoutBy,a=RDe(e,n,r,t.sourceHeader,t.dimensions),i=new V1({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:pt(t)});return i}function cA(e){return new V1({data:e,sourceFormat:ba(e)?il:hi})}function LDe(e){return new V1({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:pt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function vW(e){var t=rW;if(ba(e))t=il;else if(Re(e)){e.length===0&&(t=$r);for(var n=0,r=e.length;n<r;n++){var a=e[n];if(a!=null){if(Re(a)){t=$r;break}else if(ht(a)){t=vi;break}}}}else if(ht(e)){for(var i in e)if(nt(e,i)&&Sr(e[i])){t=Ao;break}}return t}function RDe(e,t,n,r,a){var i,o;if(!e)return{dimensionsDefine:rO(a),startIndex:o,dimensionsDetectedCount:i};if(t===$r){var s=e;r==="auto"||r==null?aO(function(u){u!=null&&u!=="-"&&(Je(u)?o==null&&(o=1):o=0)},n,s,10):o=Jt(r)?r:r?1:0,!a&&o===1&&(a=[],aO(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),i=a?a.length:n===Hd?s.length:s[0]?s[0].length:null}else if(t===vi)a||(a=ODe(e));else if(t===Ao)a||(a=[],z(e,function(u,c){a.push(c)}));else if(t===hi){var l=Pd(e[0]);i=Re(l)&&l.length||1}return{startIndex:o,dimensionsDefine:rO(a),dimensionsDetectedCount:i}}function ODe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Gt(n)}function rO(e){if(e){var t=ot();return Oe(e,function(n,r){n=ht(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 aO(e,t,n,r){if(t===Hd)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 pW(e){var t=e.sourceFormat;return t===vi||t===Ao}var au,iu,ou,iO,oO,gW=function(){function e(t,n){var r=uA(t)?t:cA(t);this._source=r;var a=this._data=r.data;r.sourceFormat===il&&(this._offset=0,this._dimSize=n,this._data=a),oO(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;oO=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=iO[fA(u,c)];if(Ie(o,h),u===il)o.getItem=n,o.count=a,o.fillStorage=r;else{var v=mW(u,c);o.getItem=et(v,null,s,f,d);var p=yW(u,c);o.count=et(p,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],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[d],b=0;b<g;b++){var _=c[b*f+d];m[o+b]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};iO=(t={},t[$r+"_"+go]={pure:!0,appendData:i},t[$r+"_"+Hd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[vi]={pure:!0,appendData:i},t[Ao]={pure:!0,appendData:function(o){var s=this._data;z(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[hi]={appendData:i},t[il]={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}(),sO=function(e,t,n,r){return e[r]},NDe=(au={},au[$r+"_"+go]=function(e,t,n,r){return e[r+t]},au[$r+"_"+Hd]=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},au[vi]=sO,au[Ao]=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},au[hi]=sO,au);function mW(e,t){var n=NDe[fA(e,t)];return n}var lO=function(e,t,n){return e.length},$De=(iu={},iu[$r+"_"+go]=function(e,t,n){return Math.max(0,e.length-t)},iu[$r+"_"+Hd]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},iu[vi]=lO,iu[Ao]=function(e,t,n){var r=n[0].name,a=e[r];return a?a.length:0},iu[hi]=lO,iu);function yW(e,t){var n=$De[fA(e,t)];return n}var Aw=function(e,t,n){return e[t]},BDe=(ou={},ou[$r]=Aw,ou[vi]=function(e,t,n){return e[n]},ou[Ao]=Aw,ou[hi]=function(e,t,n){var r=Pd(e);return r instanceof Array?r[t]:r},ou[il]=Aw,ou);function bW(e){var t=BDe[e];return t}function fA(e,t){return e===$r?e+"_"+t:e}function vd(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 bW(i)(r,o,s)}else{var l=r;return i===hi&&(l=Pd(r)),l}}}}var VDe=/\{@(.+?)\}/g,dA=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&&Re(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(ut(i))return l.status=n,l.dimensionIndex=a,i(l);if(Je(i)){var c=aA(i,l);return c.replace(VDe,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=vd(s,t,v);if(o&&Re(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,n){return vd(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function uO(e){var t,n;return ht(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function xv(e){return new FDe(e)}var FDe=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(b){return!(b>=1)&&(b=1),b}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,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h<v)){var p=this._progress;if(Re(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,a,i){cO.reset(n,r,a,i),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:cO.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),Re(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}(),cO=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 ol(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!Jt(e)&&e!=null&&e!=="-"&&(e=+Ra(e)),e==null||e===""?NaN:+e)}var zDe=ot({number:function(e){return parseFloat(e)},time:function(e){return+Ra(e)},trim:function(e){return Je(e)?Za(e):e}});function _W(e){return zDe.get(e)}var wW={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}},HDe=function(){function e(t,n){if(!Jt(n)){var r="";rn(r)}this._opFn=wW[t],this._rvalFloat=Co(n)}return e.prototype.evaluate=function(t){return Jt(t)?this._opFn(t,this._rvalFloat):this._opFn(Co(t),this._rvalFloat)},e}(),SW=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=Jt(t)?t:Co(t),a=Jt(n)?n:Co(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Je(t),l=Je(n);s&&(r=l?t:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},e}(),GDe=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=Co(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=Co(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function WDe(e,t){return e==="eq"||e==="ne"?new GDe(e==="eq",t):nt(wW,e)?new HDe(e,t):null}var KDe=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 ol(t,n)},e}();function UDe(e,t){var n=new KDe,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==go&&rn(o);var s=[],l={},u=e.dimensionsDefine;if(u)z(u,function(p,g){var m=p.name,b={index:g,name:m,displayName:p.displayName};if(s.push(b),m!=null){var _="";nt(l,m)&&rn(_),l[m]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=mW(a,go);t.__isBuiltIn&&(n.getRawDataItem=function(p){return f(r,i,s,p)},n.getRawData=et(YDe,null,e)),n.cloneRawData=et(jDe,null,e);var d=yW(a,go);n.count=et(d,null,r,i,s);var h=bW(a);n.retrieveValue=function(p,g){var m=f(r,i,s,p);return v(m,g)};var v=n.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return n.getDimensionInfo=et(qDe,null,s,l),n.cloneAllDimensionInfo=et(XDe,null,s),n}function YDe(e){var t=e.sourceFormat;if(!hA(t)){var n="";rn(n)}return e.data}function jDe(e){var t=e.sourceFormat,n=e.data;if(!hA(t)){var r="";rn(r)}if(t===$r){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(t===vi){for(var a=[],i=0,o=n.length;i<o;i++)a.push(Ie({},n[i]));return a}}function qDe(e,t,n){if(n!=null){if(Jt(n)||!isNaN(n)&&!nt(t,n))return e[n];if(nt(t,n))return t[n]}}function XDe(e){return pt(e)}var CW=ot();function ZDe(e){e=pt(e);var t=e.type,n="";t||rn(n);var r=t.split(":");r.length!==2&&rn(n);var a=!1;r[0]==="echarts"&&(t=r[1],a=!0),e.__isBuiltIn=a,CW.set(t,e)}function JDe(e,t,n){var r=dn(e),a=r.length,i="";a||rn(i);for(var o=0,s=a;o<s;o++){var l=r[o];t=QDe(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function QDe(e,t,n,r){var a="";t.length||rn(a),ht(e)||rn(a);var i=e.type,o=CW.get(i);o||rn(a);var s=Oe(t,function(u){return UDe(u,o)}),l=dn(o.transform({upstream:s[0],upstreamList:s,config:pt(e.config)}));return Oe(l,function(u,c){var f="";ht(u)||rn(f),u.data||rn(f);var d=vW(u.data);hA(d)||rn(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:go,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:go,sourceHeader:0,dimensions:u.dimensions};return g2(u.data,h,null)})}function hA(e){return e===$r||e===vi}var F1="undefined",ePe=typeof Uint32Array===F1?Array:Uint32Array,tPe=typeof Uint16Array===F1?Array:Uint16Array,xW=typeof Int32Array===F1?Array:Int32Array,fO=typeof Float64Array===F1?Array:Float64Array,TW={float:fO,int:xW,ordinal:Array,number:Array,time:fO},Ew;function mh(e){return e>65535?ePe:tPe}function Kc(){return[1/0,-1/0]}function nPe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function dO(e,t,n,r,a){var i=TW[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 rPe=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ot()}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=Ew[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],pW(a),this._dimensions=Oe(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 TW[n||"float"](this._rawCount),this._rawExtent[i]=Kc(),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]=Kc());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];dO(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<i;v++){var c=a[v],p=Ew.arrayRows.call(this,t[h]||f,c.property,h,v);r[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Oe(o,function(b){return b.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Kc()),dO(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 v=0;v<s;v++){var p=i[v],g=this._dimValueGetter(d,u[v],h,v);p[h]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!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],v=Math.abs(h);v<=r&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,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=mh(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=mh(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,v=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var p=f[c][v];h=n(p,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=n.apply(null,s)}h&&(o[u++]=v)}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=Gt(t),i=a.length;if(!i)return this;var o=n.count(),s=mh(n._rawCount),l=new s(o),u=0,c=a[0],f=t[c][0],d=t[c][1],h=n._chunks,v=!1;if(!n._indices){var p=0;if(i===1){for(var g=h[a[0]],m=0;m<r;m++){var b=g[m];(b>=f&&b<=d||isNaN(b))&&(l[u++]=p),p++}v=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],w=t[a[1]][0],C=t[a[1]][1],m=0;m<r;m++){var b=g[m],S=_[m];(b>=f&&b<=d||isNaN(b))&&(S>=w&&S<=C||isNaN(S))&&(l[u++]=p),p++}v=!0}}if(!v)if(i===1)for(var m=0;m<o;m++){var x=n.getRawIndex(m),b=h[a[0]][x];(b>=f&&b<=d||isNaN(b))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var T=!0,x=n.getRawIndex(m),M=0;M<i;M++){var A=a[M],b=h[A][x];(b<t[A][0]||b>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]]=Kc();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 v=r&&r.apply(null,l);if(v!=null){typeof v!="object"&&(i[0]=v,v=i);for(var c=0;c<v.length;c++){var p=n[c],g=v[c],m=u[p],b=a[p];b&&(b[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(mh(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,b=0,_=p;_<g;_++){var w=this.getRawIndex(_),C=i[w];isNaN(C)||(b+=C)}b/=g-p;var S=v,x=Math.min(v+l,o),T=v-1,M=i[u];c=-1,d=S;for(var A=-1,k=0,_=S;_<x;_++){var w=this.getRawIndex(_),C=i[w];if(isNaN(C)){k++,A<0&&(A=w);continue}f=Math.abs((T-m)*(C-M)-(T-_)*(b-M)),f>c&&(c=f,d=w)}k>0&&k<x-S&&(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]=Kc(),d=new(mh(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=r(s),b=this.getRawIndex(Math.min(v+a(s,m)||0,c-1));u[b]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),d[h++]=b}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=Kc();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&&ui(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?nPe(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=pt(this._extent),t._rawExtent=pt(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 ol(n[i],this._dimensions[i])}Ew={arrayRows:t,objectRows:function(n,r,a,i){return ol(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return ol(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}();const m2=rPe;var MW=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(bm(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=ba(s)?il:hi,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Lt(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Lt(f.sourceHeader,d.sourceHeader),p=Lt(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;a=g?[g2(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(r){var b=this._applyTransform(n);a=b.sourceList,i=b.upstreamSignList}else{var _=m.get("source",!0);a=[g2(_,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&&vO(i)}var o,s=[],l=[];return z(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&vO(f),s.push(c),l.push(u._getVersionSign())}),r?o=JDe(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[LDe(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];bm(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new m2,s.initData(new gW(n,t.length),t)),o[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(bm(t)){var n=sA(t);return n?[n.getSourceManager()]:[]}else return Oe(iDe(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,a;if(bm(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 hO(e){var t=e.option.transform;t&&up(e.option.transform)}function bm(e){return e.mainType==="series"}function vO(e){throw new Error(e)}var kW="line-height:1";function AW(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:"+Kr(r+"")+"px;color:"+Kr(n)+";font-weight:"+Kr(a+""),valueStyle:"font-size:"+Kr(o+"")+"px;color:"+Kr(i)+";font-weight:"+Kr(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var aPe=[0,10,20,30],iPe=["",`
  86. `,`
  87. `,`
  88. `];function lr(e,t){return t.type=e,t}function y2(e){return e.type==="section"}function EW(e){return y2(e)?oPe:sPe}function IW(e){if(y2(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return z(e.blocks,function(a){var i=IW(a);i>=t&&(t=i+ +(r&&(!i||y2(a)&&!a.noHeader)))}),t}return 0}function oPe(e,t,n,r){var a=t.noHeader,i=lPe(IW(t)),o=[],s=t.blocks||[];Nr(!s||Re(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(nt(u,l)){var c=new SW(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}z(s,function(v,p){var g=t.valueFormatter,m=EW(v)(g?Ie(Ie({},e),{valueFormatter:g}):e,v,p>0?i.html:0,r);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):b2(o.join(""),a?n:i.html);if(a)return f;var d=h2(t.header,"ordinal",e.useUTC),h=AW(r,e.renderMode).nameStyle;return e.renderMode==="richText"?DW(e,d,h)+i.richText+f:b2('<div style="'+h+";"+kW+';">'+Kr(d)+"</div>"+f,n)}function sPe(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=Re(w)?w:[w],Oe(w,function(C,S){return h2(C,Re(h)?h[S]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":h2(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!i,g=!s&&i,m=AW(r,a),b=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":DW(e,d,b))+(o?"":fPe(e,v,p,g,_)):b2((s?"":f)+(i?"":uPe(d,!s,b))+(o?"":cPe(v,p,g,_)),n)}}function pO(e,t,n,r,a,i){if(e){var o=EW(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function lPe(e){return{html:aPe[e],richText:iPe[e]}}function b2(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+kW+';">'+e+n+"</div>"}function uPe(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Kr(e)+"</span>"}function cPe(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Re(e)?e:[e],'<span style="'+i+";"+r+'">'+Oe(e,function(o){return Kr(o)}).join("&nbsp;&nbsp;")+"</span>"}function DW(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function fPe(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(Re(t)?t.join(" "):t,i)}function PW(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return hc(r)}function LW(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Iw=function(){function e(){this.richTextStyles={},this._nextStyleNameId=LH()}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=JG({color:n,type:t,renderMode:r,markerId:a});return Je(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Re(n)?z(n,function(i){return Ie(r,i)}):Ie(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function RW(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=Re(s),u=PW(t,n),c,f,d,h;if(o>1||l&&!o){var v=dPe(s,t,n,i,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=c=vd(a,n,i[0]),f=p.type}else h=c=l?s[0]:s;var g=Ok(t),m=g&&t.name||"",b=a.getName(n),_=r?m:b;return lr("section",{header:m,noHeader:r||!g,sortParam:h,blocks:[lr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Za(_),value:c,valueType:f})].concat(d||[])})}function dPe(e,t,n,r,a){var i=t.getData(),o=ui(e,function(f,d,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?z(r,function(f){c(vd(i,n,f),f)}):z(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(lr("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 xs=Qt();function _m(e,t){return e.getName(t)||e.getId(t)}var Wy="__universalTransitionEnabled",z1=function(e){ge(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=xv({count:vPe,reset:pPe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=xs(this).sourceManager=new MW(this);i.prepareSource();var o=this.getInitialData(n,a);mO(o,this),this.dataTask.context.data=o,xs(this).dataBeforeProcessed=o,gO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Tp(this),i=a?Fd(n):{},o=this.subType;Yt.hasClass(o)&&(o+="Series"),Dt(n,r.getTheme().get(this.subType)),Dt(n,this.getDefaultOption()),uc(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&yl(n,i,a)},t.prototype.mergeOption=function(n,r){n=Dt(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Tp(this);a&&yl(this.option,n,a);var i=xs(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);mO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xs(this).dataBeforeProcessed=o,gO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!ba(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&uc(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=_2(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return xs(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=_2(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}xs(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return ot(n)},t.prototype.getSourceManager=function(){return xs(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return xs(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 RW({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Zt.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=lA.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=_m(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=Gt(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[_m(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Wy])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"){ht(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=_m(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=_m(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 Yt.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}(Yt);Bn(z1,dA);Bn(z1,lA);HH(z1,Yt);function gO(e){var t=e.name;Ok(e)||(e.name=hPe(e)||t)}function hPe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return z(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function vPe(e){return e.model.getRawData().count()}function pPe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),gPe}function gPe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function mO(e,t){z(cp(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,xt(mPe,t))})}function mPe(e,t){var n=_2(e);return n&&n.setOutputEnd((t||this).count()),t}function _2(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 bn=z1;var vA=function(){function e(){this.group=new bt,this.uid=Vd("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}();$k(vA);S1(vA);const kn=vA;function Wd(){var e=Qt();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 OW=Qt(),yPe=Wd(),pA=function(){function e(){this.group=new bt,this.uid=Vd("viewChart"),this.renderTask=xv({plan:bPe,reset:_Pe}),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&&bO(i,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&bO(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){Ll(this.group,t)},e.markUpdateMethod=function(t,n){OW(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function yO(e,t,n){e&&wp(e)&&(t==="emphasis"?ns:rs)(e,n)}function bO(e,t,n){var r=cc(e,t),a=t&&t.highlightKey!=null?YEe(t.highlightKey):null;r!=null?z(dn(r),function(i){yO(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){yO(i,n,a)})}$k(pA);S1(pA);function bPe(e){return yPe(e.model)}function _Pe(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&OW(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),wPe[l]}var wPe={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 hn=pA;var H0="\0__throttleOriginMethod",_O="\0__throttleRate",wO="\0__throttleType";function H1(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=[],v=0;v<arguments.length;v++)h[v]=arguments[v];r=new Date().getTime(),l=this,u=h;var p=c||t,g=c||n;c=null,s=r-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(f,p):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 Kd(e,t,n,r){var a=e[t];if(a){var i=a[H0]||a,o=a[wO],s=a[_O];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=H1(i,n,r==="debounce"),a[H0]=i,a[wO]=r,a[_O]=n}return a}}function kp(e,t){var n=e[t];n&&n[H0]&&(n.clear&&n.clear(),e[t]=n[H0])}var SO=Qt(),CO={itemStyle:fc(HG,!0),lineStyle:fc(zG,!0)},SPe={lineStyle:"stroke",itemStyle:"fill"};function NW(e,t){var n=e.visualStyleMapper||CO[t];return n||(console.warn("Unknown style type '"+t+"'."),CO.itemStyle)}function $W(e,t){var n=e.visualDrawType||SPe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var CPe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=NW(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=$W(e,r),u=o[l],c=ut(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"||ut(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ut(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,v){var p=e.getDataParams(v),g=Ie({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},yh=new fn,xPe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=NW(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){yh.option=l[r];var u=a(yh),c=o.ensureUniqueItemVisual(s,"style");Ie(c,u),yh.option.decal&&(o.setItemVisual(s,"decal",yh.option.decal),yh.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},TPe={performRawSeries:!0,overallReset:function(e){var t=ot();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)),SO(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=SO(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=$W(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+"",v=r.count();d[l]=n.getColorFromPalette(h,o,v)}})}})}},wm=Math.PI;function MPe(e,t){t=t||{},ft(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 bt,r=new Xt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new qt({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 Xt({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 E1({shape:{startAngle:-wm/2,endAngle:-wm/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:wm*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:wm*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 kPe=function(){function e(t,n,r,a){this._stageTaskMap=ot(),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=ot();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;z(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Nr(!(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;z(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,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var p=o.getPerformArgs(d,a.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var b=o.getPerformArgs(g,a.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(b)&&(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=ot(),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)||xv({plan:PPe,reset:LPe,count:OPe}));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||xv({reset:APe});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ot(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";Nr(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,a).each(v):(f=!1,z(r.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,xv({reset:EPe,onDirty:DPe})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,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 ut(t)&&(t={overallReset:t,seriesType:NPe(t)}),t.uid=Vd("stageHandler"),n&&(t.visualType=n),t},e}();function APe(e){e.overallReset(e.ecModel,e.api,e.payload)}function EPe(e){return e.overallProgress&&IPe}function IPe(){this.agent.dirty(),this.getDownstream().dirty()}function DPe(){this.agent&&this.agent.dirty()}function PPe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function LPe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=dn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Oe(t,function(n,r){return BW(r)}):RPe}var RPe=BW(0);function BW(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 OPe(e){return e.data.count()}function NPe(e){G0=null;try{e(Ap,VW)}catch{}return G0}var Ap={},VW={},G0;FW(Ap,cW);FW(VW,fW);Ap.eachSeriesByType=Ap.eachRawSeriesByType=function(e){G0=e};Ap.eachComponent=function(e){e.mainType==="series"&&e.subType&&(G0=e.subType)};function FW(e,t){for(var n in t.prototype)e[n]=Nn}const zW=kPe;var xO=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const $Pe={color:xO,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],xO]};var zr="#B9B8CE",TO="#100C2A",Sm=function(){return{axisLine:{lineStyle:{color:zr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},MO=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],HW={darkMode:!0,color:MO,backgroundColor:TO,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:zr}},textStyle:{color:zr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:zr}},dataZoom:{borderColor:"#71708A",textStyle:{color:zr},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:zr}},timeline:{lineStyle:{color:zr},label:{color:zr},controlStyle:{color:zr,borderColor:zr}},calendar:{itemStyle:{color:TO},dayLabel:{color:zr},monthLabel:{color:zr},yearLabel:{color:zr}},timeAxis:Sm(),logAxis:Sm(),valueAxis:Sm(),categoryAxis:Sm(),line:{symbol:"circle"},graph:{color:MO},gauge:{title:{color:zr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:zr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};HW.categoryAxis.splitLine.show=!1;const BPe=HW;var VPe=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},a={};if(Je(t)){var i=uo(t);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};z(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(n.mainType=v,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,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),w2=["symbol","symbolSize","symbolRotate","symbolOffset"],kO=w2.concat(["symbolKeepAspect"]),FPe={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<w2.length;o++){var s=w2[o],l=e.get(s);ut(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Ie({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=Gt(a);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(d,g,a[g](h,v))}}return{dataEach:i?c:null}}},zPe={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<kO.length;s++){var l=kO[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function gA(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 yg(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 GW(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 WW(e,t){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}z([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(r){t(r[0],function(a,i,o){a=Ie({},a),o.dispatchAction(Ie(a,{type:r[1],seriesIndex:n(i,a)}))})})}function Uc(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=cc(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:Re(d)?f.getName(d[0]):f.getName(d),selected:Je(l)?l:Ie({},l)})}})}function HPe(e,t,n){e.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Uc("map","selectchanged",t,a,r),Uc("pie","selectchanged",t,a,r)):r.fromAction==="select"?(Uc("map","selected",t,a,r),Uc("pie","selected",t,a,r)):r.fromAction==="unselect"&&(Uc("map","unselected",t,a,r),Uc("pie","unselected",t,a,r))})}function Fu(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var GPe=Math.round(Math.random()*9),WPe=typeof Object.defineProperty=="function",KPe=function(){function e(){this._id="__ec_inner_"+GPe++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return WPe?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 UPe=KPe;var YPe=Ft.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()}}),jPe=Ft.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()}}),qPe=Ft.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,v=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-v,n,r),e.bezierCurveTo(n,r-v,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),XPe=Ft.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()}}),ZPe={line:rr,rect:Xt,roundRect:Xt,square:Xt,circle:zi,diamond:jPe,pin:qPe,arrow:XPe,triangle:YPe},JPe={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}},W0={};z(ZPe,function(e,t){W0[t]=new e});var QPe=Ft.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=L0(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=W0[r];a||(r="rect",a=W0[r]),JPe[r](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,n)}}});function eLe(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 zn(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=Yk(e.slice(8),new Rt(t,n,r,a),o?"center":"cover"):e.indexOf("path://")===0?l=vg(e.slice(7),{},new Rt(t,n,r,a),o?"center":"cover"):l=new QPe({shape:{symbolType:e,x:t,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=eLe,i&&l.setColor(i),l}function Ud(e){return Re(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function kc(e,t){if(e!=null)return Re(e)||(e=[e,e]),[qe(e[0],t[0])||0,qe(Lt(e[1],e[0]),t[1])||0]}function zu(e){return isFinite(e)}function tLe(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=zu(r)?r:0,a=zu(a)?a:1,i=zu(i)?i:0,o=zu(o)?o:0;var s=e.createLinearGradient(r,i,a,o);return s}function nLe(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=zu(o)?o:.5,s=zu(s)?s:.5,l=l>=0&&zu(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function S2(e,t,n){for(var r=t.type==="radial"?nLe(e,t,n):tLe(e,t,n),a=t.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function rLe(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 Cm(e){return parseInt(e,10)}function wf(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]||Cm(s[r])||Cm(e.style[r]))-(Cm(s[i])||0)-(Cm(s[o])||0)|0}function aLe(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Jt(e)?[e]:Re(e)?e:null}function mA(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&aLe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=Oe(n,function(i){return i/a}),r/=a)}return[n,r]}var iLe=new xo(!0);function K0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function AO(e){return typeof e=="string"&&e!=="none"}function U0(e){var t=e.fill;return t!=null&&t!=="none"}function EO(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 IO(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 C2(e,t,n){var r=Bk(t.image,t.__image,n);if(C1(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)*hv),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function oLe(e,t,n,r){var a,i=K0(n),o=U0(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||iLe,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,v=o&&!!d.colorStops,p=i&&!!h.colorStops,g=o&&!!d.image,m=i&&!!h.image,b=void 0,_=void 0,w=void 0,C=void 0,S=void 0;(v||p)&&(S=t.getBoundingRect()),v&&(b=f?S2(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=b),p&&(_=f?S2(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(w=f||!t.__canvasFillPattern?C2(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),m&&(C=f||!t.__canvasStrokePattern?C2(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=b:g&&(w?e.fillStyle=w:o=!1),p?e.strokeStyle=_:m&&(C?e.strokeStyle=C:i=!1)}var x=t.getGlobalScale();c.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,M;e.setLineDash&&n.lineDash&&(a=mA(t),T=a[0],M=a[1]);var A=!0;(u||f&cf)&&(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=M),r||(n.strokeFirst?(i&&IO(e,n),o&&EO(e,n)):(o&&EO(e,n),i&&IO(e,n))),T&&e.setLineDash([])}function sLe(e,t,n){var r=t.__image=Bk(n.image,t.__image,t,t.onload);if(!(!r||!C1(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 lLe(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||pl,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=mA(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(K0(n)&&e.strokeText(a,n.x,n.y),U0(n)&&e.fillText(a,n.x,n.y)):(U0(n)&&e.fillText(a,n.x,n.y),K0(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var DO=["shadowBlur","shadowOffsetX","shadowOffsetY"],PO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function KW(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){ha(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Xu.opacity:o}(r||t.blend!==n.blend)&&(i||(ha(e,a),i=!0),e.globalCompositeOperation=t.blend||Xu.blend);for(var s=0;s<DO.length;s++){var l=DO[s];(r||t[l]!==n[l])&&(i||(ha(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(i||(ha(e,a),i=!0),e.shadowColor=t.shadowColor||Xu.shadowColor),i}function LO(e,t,n,r,a){var i=Ep(t,a.inHover),o=r?null:n&&Ep(n,a.inHover)||{};if(i===o)return!1;var s=KW(e,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(ha(e,a),s=!0),AO(i.fill)&&(e.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(ha(e,a),s=!0),AO(i.stroke)&&(e.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(ha(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||(ha(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<PO.length;c++){var f=PO[c],d=f[0];(r||i[d]!==o[d])&&(s||(ha(e,a),s=!0),e[d]=i[d]||f[1])}return s}function uLe(e,t,n,r,a){return KW(e,Ep(t,a.inHover),n&&Ep(n,a.inHover),r,a)}function UW(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 cLe(e,t,n){for(var r=!1,a=0;a<e.length;a++){var i=e[a];r=r||i.isZeroArea(),UW(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}n.allClipped=r}function fLe(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 RO=1,OO=2,NO=3,$O=4;function dLe(e){var t=U0(e),n=K0(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 ha(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Ep(e,t){return t&&e.__hoverStyle||e.style}function yA(e,t){Hu(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Hu(e,t,n,r){var a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~xa,t.__isRendered=!1;return}var i=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||rLe(i,o))&&(o&&o.length&&(ha(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(ha(e,n),e.save(),cLe(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 Ft&&t.autoBatch&&dLe(t.style);s||fLe(a,u.transform)?(ha(e,n),UW(e,t)):c||ha(e,n);var f=Ep(t,n.inHover);t instanceof Ft?(n.lastDrawType!==RO&&(l=!0,n.lastDrawType=RO),LO(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),oLe(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof bp?(n.lastDrawType!==NO&&(l=!0,n.lastDrawType=NO),LO(e,t,u,l,n),lLe(e,t,f)):t instanceof hr?(n.lastDrawType!==OO&&(l=!0,n.lastDrawType=OO),uLe(e,t,u,l,n),sLe(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==$O&&(l=!0,n.lastDrawType=$O),hLe(e,t,n)),c&&r&&ha(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function hLe(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(),Hu(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(),Hu(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Dw=new UPe,BO=new lg(100),VO=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pd(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),a=r.painter.type==="svg";e.dirty&&Dw.delete(e);var i=Dw.get(e);if(i)return i;var o=ft(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,Dw.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<VO.length;++d){var h=o[VO[d]];if(h!=null&&!Re(h)&&!Je(h)&&!Jt(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var p=BO.get(v);p&&(a?u.svgElement=p:u.image=p)}var g=jW(o.dashArrayX),m=vLe(o.dashArrayY),b=YW(o.symbol),_=pLe(g),w=qW(m),C=!a&&Bi.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=M(),T;C&&(C.width=x.width*n,C.height=x.height*n,T=C.getContext("2d")),A(),f&&BO.put(v,C||S),u.image=C,u.svgElement=S,u.svgWidth=x.width,u.svgHeight=x.height;function M(){for(var k=1,E=0,D=_.length;E<D;++E)k=eR(k,_[E]);for(var L=1,E=0,D=b.length;E<D;++E)L=eR(L,b[E].length);k*=L;var B=w*_.length*b.length;return{width:Math.max(1,Math.min(k,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,C.width,C.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,C.width,C.height)));for(var k=0,E=0;E<m.length;++E)k+=m[E];if(k<=0)return;for(var D=-w,L=0,B=0,$=0;D<x.height;){if(L%2===0){for(var O=B/2%b.length,N=0,I=0,F=0;N<x.width*2;){for(var G=0,E=0;E<g[$].length;++E)G+=g[$][E];if(G<=0)break;if(I%2===0){var U=(1-o.symbolSize)*.5,J=N+g[$][I]*U,ae=D+m[L]*U,Q=g[$][I]*o.symbolSize,ee=m[L]*o.symbolSize,te=F/2%b[O].length;q(J,ae,Q,ee,b[O][te])}N+=g[$][I],++F,++I,I===g[$].length&&(I=0)}++$,$===g.length&&($=0)}D+=m[L],++B,++L,L===m.length&&(L=0)}function q(de,ve,ie,W,Z){var oe=a?1:n,pe=zn(Z,de*oe,ve*oe,ie*oe,W*oe,o.color,o.symbolKeepAspect);if(a){var Se=r.painter.renderOneToVNode(pe);Se&&S.children.push(Se)}else yA(T,pe)}}}}function YW(e){if(!e||e.length===0)return[["rect"]];if(Je(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Je(e[n])){t=!1;break}if(t)return YW([e]);for(var r=[],n=0;n<e.length;++n)Je(e[n])?r.push([e[n]]):r.push(e[n]);return r}function jW(e){if(!e||e.length===0)return[[0,0]];if(Jt(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Jt(e[r])){n=!1;break}if(n)return jW([e]);for(var a=[],r=0;r<e.length;++r)if(Jt(e[r])){var t=Math.ceil(e[r]);a.push([t,t])}else{var t=Oe(e[r],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function vLe(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Jt(e)){var t=Math.ceil(e);return[t,t]}var n=Oe(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function pLe(e){return Oe(e,function(t){return qW(t)})}function qW(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function gLe(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=pd(s,t)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=pd(a,t)}}})}var mLe=new fi;const Si=mLe;var XW={};function yLe(e,t){XW[e]=t}function ZW(e){return XW[e]}var bLe="5.4.3",_Le={zrender:"5.4.4"},wLe=1,SLe=800,CLe=900,xLe=1e3,TLe=2e3,MLe=5e3,JW=1e3,kLe=1100,bA=2e3,QW=3e3,ALe=4e3,G1=4500,ELe=4600,ILe=5e3,DLe=6e3,e9=7e3,t9={PROCESSOR:{FILTER:xLe,SERIES_FILTER:SLe,STATISTIC:MLe},VISUAL:{LAYOUT:JW,PROGRESSIVE_LAYOUT:kLe,GLOBAL:bA,CHART:QW,POST_CHART_LAYOUT:ELe,COMPONENT:ALe,BRUSH:ILe,CHART_ITEM:G1,ARIA:DLe,DECAL:e9}},Er="__flagInMainProcess",la="__pendingUpdate",Pw="__needsUpdateStatus",FO=/^[a-zA-Z0-9_]+$/,Lw="__connectUpdateStatus",zO=0,PLe=1,LLe=2;function n9(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return a9(this,e,t)}}function r9(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a9(this,e,t)}}function a9(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),fi.prototype[t].apply(e,n)}var i9=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(fi),o9=i9.prototype;o9.on=r9("on");o9.off=r9("off");var Yc,Rw,xm,Ts,Ow,Nw,$w,bh,_h,HO,GO,Bw,WO,Tm,KO,s9,Na,UO,Y0=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,new VPe)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Je(r)&&(r=l9[r]),i._dom=n;var o="canvas",s="auto",l=!1,u=i._zr=Zx(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Lt(a.useDirtyRect,l),useCoarsePointer:Lt(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=H1(et(u.flush,u),17),r=pt(r),r&&hW(r,!0),i._theme=r,i._locale=GIe(a.locale||GG),i._coordSysMgr=new Gd;var c=i._api=KO(i);function f(d,h){return d.__prio-h.__prio}return Py(q0,f),Py(x2,f),i._scheduler=new zW(i,c,x2,q0),i._messageCenter=new i9,i._initEvents(),i.resize=et(i.resize,i),u.animation.on("frame",i._onframe,i),HO(u,i),GO(u,i),up(i),i}return t.prototype._onframe=function(){if(!this._disposed){UO(this);var n=this._scheduler;if(this[la]){var r=this[la].silent;this[Er]=!0;try{Yc(this),Ts.update.call(this,null,this[la].updateParams)}catch(l){throw this[Er]=!1,this[la]=null,l}this._zr.flush(),this[Er]=!1,this[la]=null,bh.call(this,r),_h.call(this,r)}else if(n.unfinished){var a=wLe,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),Nw(this,i),n.performVisualTasks(i),Tm(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[Er]){if(this._disposed){this.id;return}var i,o,s;if(ht(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Er]=!0,!this._model||r){var l=new CDe(this._api),u=this._theme,c=this._model=new cW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},T2);var f={seriesTransition:s,optionChanged:!0};if(a)this[la]={silent:i,updateParams:f},this[Er]=!1,this.getZr().wakeUp();else{try{Yc(this),Ts.update.call(this,null,f)}catch(d){throw this[la]=null,this[Er]=!1,d}this._ssr||this._zr.flush(),this[la]=null,this[Er]=!1,bh.call(this,i),_h.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||Zt.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(Zt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return z(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;z(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 z(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(X0[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();z(Qu,function(_,w){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(pt(n)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:C,left:S.left,top:S.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Bi.createCanvas(),m=Zx(g,{renderer:r?"svg":"canvas"});if(m.resize({width:v,height:p}),r){var b="";return z(d,function(_){var w=_.left-l,C=_.top-u;b+='<g transform="translate('+w+","+C+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new Xt({shape:{x:0,y:0,width:v,height:p},style:{fill:n.connectedBackgroundColor}})),z(d,function(_){var w=new hr({style:{x:_.left*h-l,y:_.top*h-u,image:_.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 Ow(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return Ow(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=bv(a,n);return z(o,function(s,l){l.indexOf("Models")>=0&&z(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=bv(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?gA(s,l,r):yg(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;z(RLe,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Fu(s,function(v){var p=Tt(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=Ie({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&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)}),z(Tv,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),z(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),HPe(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&&VH(this.getDom(),wA,"");var r=this,a=r._api,i=r._model;z(r._componentsViews,function(o){o.dispose(i,a)}),z(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 Qu[r.id]},t.prototype.resize=function(n){if(!this[Er]){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[la]&&(i==null&&(i=this[la].silent),a=!0,this[la]=null),this[Er]=!0;try{a&&Yc(this),Ts.update.call(this,{type:"resize",animation:Ie({duration:0},n&&n.animation)})}catch(o){throw this[Er]=!1,o}this[Er]=!1,bh.call(this,i),_h.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(ht(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!M2[n]){var a=M2[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=Ie({},n);return r.type=Tv[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(ht(r)||(r={silent:!!r}),!!j0[n.type]&&this._model){if(this[Er]){this._pendingActions.push(n);return}var a=r.silent;$w.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&Zt.browser.weChat&&this._throttledZrFlush(),bh.call(this,a),_h.call(this,a)}},t.prototype.updateLabelLayout=function(){Si.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(){Yc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Rw(f,!0),Rw(f,!1),d.plan()},Rw=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,b=f._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(S,x){S!=="series"&&w(x)}):h.eachSeries(w);function w(S){var x=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,M=!x&&g[T];if(!M){var A=uo(S.type),k=d?kn.getClass(A.main,A.sub):hn.getClass(A.sub);M=new k,M.init(h,b),g[T]=M,p.push(M),m.add(M.group)}S.__viewId=M.__id=T,M.__alive=!0,M.__model=S,M.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!d&&v.prepareView(M,S,h,b)}for(var _=0;_<p.length;){var C=p[_];C.__alive?_++:(!d&&C.renderTask.dispose(),m.remove(C.group),C.dispose(h,b),p.splice(_,1),g[C.__id]===C&&delete g[C.__id],C.__id=C.group.__ecComponentInfo=null)}},xm=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){z([].concat(f._componentsViews).concat(f._chartsViews),C);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var b={mainType:v,query:m};p&&(b.subType=p);var _=h.excludeSeriesId,w;_!=null&&(w=ot(),z(dn(_),function(S){var x=er(S,null);x!=null&&w.set(x,!0)})),g&&g.eachComponent(b,function(S){var x=w&&w.get(S.id)!=null;if(!x)if(AR(h))if(S instanceof bn)h.type===Zu&&!h.notBlur&&!S.get(["emphasis","disabled"])&&VEe(S,h,f._api);else{var T=Gk(S.mainType,S.componentIndex,h.name,f._api),M=T.focusSelf,A=T.dispatchers;h.type===Zu&&M&&!h.notBlur&&o2(S.mainType,S.componentIndex,f._api),A&&z(A,function(k){h.type===Zu?ns(k):rs(k)})}else l2(h)&&S instanceof bn&&(HEe(S,h,f._api),MR(S),Na(f))},f),g&&g.eachComponent(b,function(S){var x=w&&w.get(S.id)!=null;x||C(f[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function C(S){S&&S.__alive&&S[d]&&S[d](S.__model,g,f._api,h)}},Ts={prepareAndUpdate:function(f){Yc(this),Ts.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,v),m.performDataProcessorTasks(h,f),Nw(this,h),g.update(h,v),n(h),m.performVisualTasks(h,f),Bw(this,h,v,f,d);var b=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(b),_!=null&&_!=="auto"&&p.setDarkMode(_),Si.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(m,b){if(m!=="series"){var _=d.getViewOfComponentModel(b);if(_&&_.__alive)if(_.updateTransform){var w=_.updateTransform(b,h,v,f);w&&w.update&&p.push(_)}else p.push(_)}});var g=ot();h.eachSeries(function(m){var b=d._chartsMap[m.__viewId];if(b.updateTransform){var _=b.updateTransform(m,h,v,f);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Tm(this,h,v,f,{},g),Si.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),hn.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Bw(this,d,this._api,f,{}),Si.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),hn.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,f)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,f)}),Si.trigger("afterupdate",h,this._api))},updateLayout:function(f){Ts.update.call(this,f)}},Ow=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,b=bv(p,h),_=0;_<g.length;_++){var w=g[_];if(w[d]&&(m=w[d](p,b,v))!=null)return m}},Nw=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},$w=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=j0[p],b=m.actionInfo,_=(b.update||"update").split(":"),w=_.pop(),C=_[0]!=null&&uo(_[0]);this[Er]=!0;var S=[f],x=!1;f.batch&&(x=!0,S=Oe(f.batch,function(L){return L=ft(Ie({},L),f),L.batch=null,L}));var T=[],M,A=l2(f),k=AR(f);if(k&&dG(this._api),z(S,function(L){if(M=m.action(L,h._model,h._api),M=M||Ie({},L),M.type=b.event||M.type,T.push(M),k){var B=Nk(f),$=B.queryOptionMap,O=B.mainTypeSpecified,N=O?$.keys()[0]:"series";xm(h,w,L,N),Na(h)}else A?(xm(h,w,L,"series"),Na(h)):C&&xm(h,w,L,C.main,C.sub)}),w!=="none"&&!k&&!A&&!C)try{this[la]?(Yc(this),Ts.update.call(this,f),this[la]=null):Ts[w].call(this,f)}catch(L){throw this[Er]=!1,L}if(x?M={type:b.event||p,escapeConnect:g,batch:T}:M=T[0],this[Er]=!1,!d){var E=this._messageCenter;if(E.trigger(M.type,M),A){var D={type:"selectchanged",escapeConnect:g,selected:GEe(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};E.trigger(D.type,D)}}},bh=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();$w.call(this,h,f)}},_h=function(f){!f&&this.trigger("updated")},HO=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[la]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},GO=function(f,d){f.on("mouseover",function(h){var v=h.target,p=Fu(v,wp);p&&(FEe(p,h,d._api),Na(d))}).on("mouseout",function(h){var v=h.target,p=Fu(v,wp);p&&(zEe(p,h,d._api),Na(d))}).on("click",function(h){var v=h.target,p=Fu(v,function(b){return Tt(b).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Tt(p);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=[],v=!1;if(f.eachComponent(function(b,_){var w=_.get("zlevel")||0,C=_.get("z")||0,S=_.getZLevelKey();v=v||!!S,(b==="series"?h:d).push({zlevel:w,z:C,idx:_.componentIndex,type:b,key:S})}),v){var p=d.concat(h),g,m;Py(p,function(b,_){return b.zlevel===_.zlevel?b.z-_.z:b.zlevel-_.zlevel}),z(p,function(b){var _=f.getComponent(b.type,b.idx),w=b.zlevel,C=b.key;g!=null&&(w=Math.max(g,w)),C?(w===g&&C!==m&&w++,m=C):m&&(w===g&&w++,m=""),g=w,_.setZLevel(w)})}}Bw=function(f,d,h,v,p){r(d),WO(f,d,h,v,p),z(f._chartsViews,function(g){g.__alive=!1}),Tm(f,d,h,v,p),z(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},WO=function(f,d,h,v,p,g){z(g||f._componentsViews,function(m){var b=m.__model;u(b,m),m.render(b,d,h,v),s(b,m),c(b,m)})},Tm=function(f,d,h,v,p,g){var m=f._scheduler;p=Ie(p||{},{updatedSeries:d.getSeries()}),Si.trigger("series:beforeupdate",d,h,p);var b=!1;d.eachSeries(function(_){var w=f._chartsMap[_.__viewId];w.__alive=!0;var C=w.renderTask;m.updatePayload(C,v),u(_,w),g&&g.get(_.uid)&&C.dirty(),C.perform(m.getPerformArgs(C))&&(b=!0),w.group.silent=!!_.get("silent"),o(_,w),MR(_)}),m.unfinished=b||m.unfinished,Si.trigger("series:layoutlabels",d,h,p),Si.trigger("series:transition",d,h,p),d.eachSeries(function(_){var w=f._chartsMap[_.__viewId];s(_,w),c(_,w)}),i(f,d),Si.trigger("series:afterupdate",d,h,p)},Na=function(f){f[Pw]=!0,f.getZr().wakeUp()},UO=function(f){f[Pw]&&(f.getZr().storage.traverse(function(d){$f(d)||a(d)}),f[Pw]=!1)};function a(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}f.selected&&f.states.select&&d.push("select"),f.hoverState===M1&&f.states.emphasis?d.push("emphasis"):f.hoverState===fg&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!Zt.node&&!Zt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(f,d,h,v){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var b=f.childrenRef(),_=0;_<b.length;_++)v=Math.max(l(b[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var w=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!$f(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if($f(m))return;if(m instanceof Ft&&jEe(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(v){m.stateTransition=g;var _=m.getTextContent(),w=m.getTextGuideLine();_&&(_.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&a(m)}})}KO=function(f){return new(function(d){ge(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){ns(v,p),Na(f)},h.prototype.leaveEmphasis=function(v,p){rs(v,p),Na(f)},h.prototype.enterBlur=function(v){lG(v),Na(f)},h.prototype.leaveBlur=function(v){Hk(v),Na(f)},h.prototype.enterSelect=function(v){uG(v),Na(f)},h.prototype.leaveSelect=function(v){cG(v),Na(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(fW))(f)},s9=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Lw]=v}}z(Tv,function(h,v){f._messageCenter.on(v,function(p){if(X0[f.group]&&f[Lw]!==zO){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];z(Qu,function(b){b!==f&&b.group===f.group&&m.push(b)}),d(m,zO),z(m,function(b){b[Lw]!==PLe&&b.dispatchAction(g)}),d(m,LLe)}})})}}(),t}(fi),_A=Y0.prototype;_A.on=n9("on");_A.off=n9("off");_A.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 RLe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var j0={},Tv={},x2=[],T2=[],q0=[],l9={},M2={},Qu={},X0={},OLe=+new Date-0,NLe=+new Date-0,wA="_echarts_instance_";function $Le(e,t,n){var r=!(n&&n.ssr);if(r){var a=SA(e);if(a)return a}var i=new Y0(e,t,n);return i.id="ec_"+OLe++,Qu[i.id]=i,r&&VH(e,wA,i.id),s9(i),Si.trigger("afterinit",i),i}function BLe(e){if(Re(e)){var t=e;e=null,z(t,function(n){n.group!=null&&(e=n.group)}),e=e||"g_"+NLe++,z(t,function(n){n.group=e})}return X0[e]=!0,e}function u9(e){X0[e]=!1}var VLe=u9;function FLe(e){Je(e)?e=Qu[e]:e instanceof Y0||(e=SA(e)),e instanceof Y0&&!e.isDisposed()&&e.dispose()}function SA(e){return Qu[RAe(e,wA)]}function zLe(e){return Qu[e]}function CA(e,t){l9[e]=t}function xA(e){Nt(T2,e)<0&&T2.push(e)}function TA(e,t){MA(x2,e,t,TLe)}function c9(e){W1("afterinit",e)}function f9(e){W1("afterupdate",e)}function W1(e,t){Si.on(e,t)}function Ui(e,t,n){ut(t)&&(n=t,t="");var r=ht(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!Tv[t]&&(Nr(FO.test(r)&&FO.test(t)),j0[r]||(j0[r]={action:n,actionInfo:e}),Tv[t]=r)}function d9(e,t){Gd.register(e,t)}function HLe(e){var t=Gd.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function h9(e,t){MA(q0,e,t,JW,"layout")}function Ol(e,t){MA(q0,e,t,QW,"visual")}var YO=[];function MA(e,t,n,r,a){if((ut(t)||ht(t))&&(n=t,t=r),!(Nt(YO,n)>=0)){YO.push(n);var i=zW.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function kA(e,t){M2[e]=t}function GLe(e){H8({createCanvas:e})}function v9(e,t,n){var r=ZW("registerMap");r&&r(e,t,n)}function WLe(e){var t=ZW("getMap");return t&&t(e)}var p9=ZDe;Ol(bA,CPe);Ol(G1,xPe);Ol(G1,TPe);Ol(bA,FPe);Ol(G1,zPe);Ol(e9,gLe);xA(hW);TA(CLe,DDe);kA("default",MPe);Ui({type:Zu,event:Zu,update:Zu},Nn);Ui({type:Vy,event:Vy,update:Vy},Nn);Ui({type:_v,event:_v,update:_v},Nn);Ui({type:Fy,event:Fy,update:Fy},Nn);Ui({type:wv,event:wv,update:wv},Nn);CA("light",$Pe);CA("dark",BPe);var KLe={},jO=[],ULe={registerPreprocessor:xA,registerProcessor:TA,registerPostInit:c9,registerPostUpdate:f9,registerUpdateLifecycle:W1,registerAction:Ui,registerCoordinateSystem:d9,registerLayout:h9,registerVisual:Ol,registerTransform:p9,registerLoading:kA,registerMap:v9,registerImpl:yLe,PRIORITY:t9,ComponentModel:Yt,ComponentView:kn,SeriesModel:bn,ChartView:hn,registerComponentModel:function(e){Yt.registerClass(e)},registerComponentView:function(e){kn.registerClass(e)},registerSeriesModel:function(e){bn.registerClass(e)},registerChartView:function(e){hn.registerClass(e)},registerSubTypeDefaulter:function(e,t){Yt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){AH(e,t)}};function Bt(e){if(Re(e)){z(e,function(t){Bt(t)});return}Nt(jO,e)>=0||(jO.push(e),ut(e)&&(e={install:e}),e.install(ULe))}function wh(e){return e==null?0:e.length||1}function qO(e){return e}var YLe=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||qO,this._newKeyGetter=a||qO,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=wh(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=wh(u),d=wh(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=wh(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=wh(l);u===0?(n[s]=o,i&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},e}();const as=YLe;var jLe=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 qLe(e,t){var n={},r=n.encode={},a=ot(),i=[],o=[],s={};z(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;Vw(r,v)[p]=d,h.isExtraCoord||(a.set(v,1),XLe(h.type)&&(i[0]=d),Vw(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}nW.each(function(g,m){var b=Vw(r,m),_=h.otherDims[m];_!=null&&_!==!1&&(b[_]=h.name)})});var l=[],u={};a.each(function(d,h){var v=r[h];u[h]=v[0],l=l.concat(v)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Oe(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 jLe(s,t),n}function Vw(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Z0(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function XLe(e){return!(e==="ordinal"||e==="time")}var ZLe=function(){function e(t){this.otherDims={},t!=null&&Ie(this,t)}return e}();const Ky=ZLe;var JLe=Qt(),QLe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},g9=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=b9(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Lt(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=pW(this.source),r=!_9(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+=QLe[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:v}},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 m9(e){return e instanceof g9}function y9(e){for(var t=ot(),n=0;n<(e||[]).length;n++){var r=e[n],a=ht(r)?r.name:r;a!=null&&t.get(a)==null&&t.set(a,n)}return t}function b9(e){var t=JLe(e);return t.dimNameMap||(t.dimNameMap=y9(e.dimensionsDefine))}function _9(e){return e>30}var Sh=ht,Ms=Oe,eRe=typeof Int32Array>"u"?Array:Int32Array,tRe="e\0\0",XO=-1,nRe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],rRe=["_approximateExtent"],ZO,Mm,Ch,xh,Fw,km,zw,aRe=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;m9(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=Je(f)?new Ky({name:f}):f instanceof Ky?f:new Ky(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.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 p=this._dimIdxToName=ot();z(o,function(g){p.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(Jt(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 m2&&(i=t),!i){var o=this.dimensions,s=uA(t)||Sr(t)?new gW(t,o.length):t;i=new m2;var l=Ms(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=qLe(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&&zw(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!==il&&!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===hi;if(l&&!a.pure)for(var u=[],c=t;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&wAe(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=er(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=er(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)zw(this,c);ZO(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){Sh(t)?Ie(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=Ch(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 Mm(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 Re(t)?a.getValues(Ms(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)?XO:a},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){ut(t)&&(r=n,n=t,t=[]);var a=r||this,i=Ms(xh(t),this._getStoreDimIndex,this);this._store.each(i,a?et(n,a):n)},e.prototype.filterSelf=function(t,n,r){ut(t)&&(r=n,n=t,t=[]);var a=r||this,i=Ms(xh(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?et(n,a):n),this},e.prototype.selectRange=function(t){var n=this,r={},a=Gt(t);return z(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){ut(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=Ms(xh(t),this._getStoreDimIndex,this),s=km(this);return s._store=this._store.map(o,i?et(n,i):n),s},e.prototype.modify=function(t,n,r,a){var i=r||a||this,o=Ms(xh(t),this._getStoreDimIndex,this);this._store.modify(o,i?et(n,i):n)},e.prototype.downSample=function(t,n,r,a){var i=km(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),n,r,a),i},e.prototype.lttbDownSample=function(t,n){var r=km(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 fn(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new as(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Mm(t,r)},function(r){return Mm(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||{},Sh(t)?Ie(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),Re(i)?i=i.slice():Sh(i)&&(i=Ie({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Sh(n)?Ie(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Sh(t)?Ie(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?Ie(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;a2(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){z(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:Ms(this.dimensions,this._getDimInfo,this),this.hostModel)),Fw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ut(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(p1(arguments)))})},e.internalField=function(){ZO=function(t){var n=t._invertedIndicesMap;z(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new eRe(o.categories.length);for(var l=0;l<r.length;l++)r[l]=XO;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},Ch=function(t,n,r){return er(t._getCategory(n,r),null)},Mm=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=Ch(t,t._idDimIdx,n)),r==null&&(r=tRe+n),r},xh=function(t){return Re(t)||(t=t!=null?[t]:[]),t},km=function(t){var n=new e(t._schema?t._schema:Ms(t.dimensions,t._getDimInfo,t),t.hostModel);return Fw(n,t),n},Fw=function(t,n){z(nRe.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,z(rRe,function(r){t[r]=pt(n[r])}),t._calculationInfo=Ie({},n._calculationInfo)},zw=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=Ch(t,i,n)),l==null&&o!=null&&(a[n]=l=Ch(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 Rr=aRe;function iRe(e,t){return Yd(e,t).dimensions}function Yd(e,t){uA(e)||(e=cA(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=ot(),i=[],o=sRe(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&_9(o),l=r===e.dimensionsDefine,u=l?b9(e):y9(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ot(c),d=new xW(o),h=0;h<d.length;h++)d[h]=-1;function v(M){var A=d[M];if(A<0){var k=r[M],E=ht(k)?k:{name:k},D=new Ky,L=E.name;L!=null&&u.get(L)!=null&&(D.name=D.displayName=L),E.type!=null&&(D.type=E.type),E.displayName!=null&&(D.displayName=E.displayName);var B=i.length;return d[M]=B,D.storeDimIndex=M,i.push(D),D}return i[A]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(M,A){var k=dn(M).slice();if(k.length===1&&!Je(k[0])&&k[0]<0){f.set(A,!1);return}var E=f.set(A,[]);z(k,function(D,L){var B=Je(D)?u.get(D):D;B!=null&&B<o&&(E[L]=B,g(v(B),A,L))})});var p=0;z(n,function(M){var A,k,E,D;if(Je(M))A=M,D={};else{D=M,A=D.name;var L=D.ordinalMeta;D.ordinalMeta=null,D=Ie({},D),D.ordinalMeta=L,k=D.dimsDef,E=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var B=f.get(A);if(B!==!1){if(B=dn(B),!B.length)for(var $=0;$<(k&&k.length||1);$++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&B.push(p++)}z(B,function(O,N){var I=v(O);if(l&&D.type!=null&&(I.type=D.type),g(ft(I,D),A,N),I.name==null&&k){var F=k[N];!ht(F)&&(F={name:F}),I.name=I.displayName=F.name,I.defaultTooltip=F.defaultTooltip}E&&ft(I.otherDims,E)})}});function g(M,A,k){nW.get(A)!=null?M.otherDims[A]=k:(M.coordDim=A,M.coordDimIndex=k,a.set(A,!0))}var m=t.generateCoord,b=t.generateCoordCount,_=b!=null;b=m?b||1:0;var w=m||"value";function C(M){M.name==null&&(M.name=M.coordDim)}if(s)z(i,function(M){C(M)}),i.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var S=0;S<o;S++){var x=v(S),T=x.coordDim;T==null&&(x.coordDim=lRe(w,a,_),x.coordDimIndex=0,(!m||b<=0)&&(x.isExtraCoord=!0),b--),C(x),x.type==null&&(oW(e,S)===pr.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return oRe(i),new g9({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function oRe(e){for(var t=ot(),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 sRe(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return z(t,function(i){var o;ht(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function lRe(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 uRe=function(){function e(t){this.coordSysDims=[],this.axisMap=ot(),this.categoryAxisMap=ot(),this.coordSysName=t}return e}();function cRe(e){var t=e.get("coordinateSystem"),n=new uRe(t),r=fRe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var fRe={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",Gn).models[0],i=e.getReferringComponents("yAxis",Gn).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),jc(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),jc(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",Gn).models[0];t.coordSysDims=["single"],n.set("single",a),jc(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",Gn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),jc(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),jc(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();z(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),jc(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function jc(e){return e.get("type")==="category"}function w9(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;dRe(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(z(i,function(b,_){Je(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;z(i,function(b){b.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(f,v)),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 dRe(e){return!m9(e.schema)}function is(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function AA(e,t){return is(e,t)?e.getCalculationInfo("stackResultDimension"):t}function hRe(e,t){var n=e.get("coordinateSystem"),r=Gd.get(n),a;return t&&t.coordSysDims&&(a=Oe(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Z0(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function vRe(e,t,n){var r,a;return n&&z(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 Eo(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=cA(e)):(a=r.getSource(),i=a.sourceFormat===hi);var o=cRe(t),s=hRe(t,o),l=n.useEncodeDefaulter,u=ut(l)?l:l?xt(iW,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Yd(a,c),d=vRe(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),v=w9(t,{schema:f,store:h}),p=new Rr(f,t);p.setCalculationInfo(v);var g=d!=null&&pRe(a)?function(m,b,_,w){return w===d?_:this.defaultDimValueGetter(m,b,_,w)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function pRe(e){if(e.sourceFormat===hi){var t=gRe(e.data||[]);return!Re(Pd(t))}}function gRe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var S9=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}();S1(S9);const ps=S9;var mRe=0,yRe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++mRe}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&Oe(r,bRe);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(!Je(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=ot(this.categories))},e}();function bRe(e){return ht(e)&&e.value!=null?e.value:e+""}const k2=yRe;function A2(e){return e.type==="interval"||e.type==="log"}function _Re(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=Lk(i/t,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var s=a.intervalPrecision=C9(o),l=a.niceTickExtent=[Ln(Math.ceil(e[0]/o)*o,s),Ln(Math.floor(e[1]/o)*o,s)];return wRe(l,e),a}function Hw(e){var t=Math.pow(10,w1(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Ln(n*t)}function C9(e){return Ai(e)+2}function JO(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function wRe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),JO(e,0,t),JO(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function K1(e,t){return e>=t[0]&&e<=t[1]}function U1(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Y1(e,t){return e*(t[1]-t[0])+t[0]}var x9=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new k2({})),Re(a)&&(a=new k2({categories:Oe(a,function(i){return ht(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:Je(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),K1(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),U1(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(Y1(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}(ps);ps.registerClass(x9);const EA=x9;var su=Ln,T9=function(e){ge(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 K1(n,this._extent)},t.prototype.normalize=function(n){return U1(n,this._extent)},t.prototype.scale=function(n){return Y1(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=C9(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:su(i[0]-r,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=su(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:su(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=su(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=Ai(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=su(n.value,a,!0);return nA(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=_Re(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]=su(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=su(Math.ceil(r[1]/o)*o))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(ps);ps.registerClass(T9);const bl=T9;var M9=typeof Float32Array<"u",SRe=M9?Float32Array:Array;function co(e){return Re(e)?M9?new Float32Array(e):e:new SRe(e)}var E2="__ec_stack_";function IA(e){return e.get("stack")||E2+e.seriesIndex}function DA(e){return e.dim+e.index}function CRe(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(ft({bandWidth:a,axisKey:r,stackId:E2+i},e));for(var o=E9(t),s=[],i=0;i<e.count;i++){var l=o[r][E2+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function k9(e,t){var n=[];return t.eachSeriesByType(e,function(r){P9(r)&&n.push(r)}),n}function xRe(e){var t={};z(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);t[d]?t[d].push(m):t[d]=[m]}});var 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 A9(e){var t=xRe(e),n=[];return z(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 v=qe(r.get("barWidth"),s),p=qe(r.get("barMaxWidth"),s),g=qe(r.get("barMinWidth")||(L9(r)?.5:1),s),m=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:b,axisKey:DA(i),stackId:IA(r)})}),E9(n)}function E9(e){var t={};z(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 v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return z(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Gt(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),z(i,function(m){var b=m.maxWidth,_=m.minWidth;if(m.width){var w=m.width;b&&(w=Math.min(w,b)),_&&(w=Math.max(w,_)),m.width=w,f-=w+c*w,d--}else{var w=h;b&&b<w&&(w=Math.min(b,f)),_&&_>w&&(w=_),w!==h&&(m.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;z(i,function(m,b){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;z(i,function(m,b){n[a][b]=n[a][b]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),n}function TRe(e,t,n){if(e&&t){var r=e[DA(t)];return r!=null&&n!=null?r[IA(n)]:r}}function I9(e,t){var n=k9(e,t),r=A9(n);z(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=IA(a),u=r[DA(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function D9(e){return{seriesType:e,plan:Wd(),reset:function(t){if(P9(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=is(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=MRe(a,i),v=L9(t),p=t.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),m=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(_,w){for(var C=_.count,S=v&&co(C*3),x=v&&l&&co(C*3),T=v&&co(C),M=r.master.getRect(),A=d?M.width:M.height,k,E=w.getStore(),D=0;(k=_.next())!=null;){var L=E.get(f?g:o,k),B=E.get(s,k),$=h,O=void 0;f&&(O=+L-E.get(o,k));var N=void 0,I=void 0,F=void 0,G=void 0;if(d){var U=r.dataToPoint([L,B]);if(f){var J=r.dataToPoint([O,B]);$=J[0]}N=$,I=U[1]+b,F=U[0]-$,G=m,Math.abs(F)<p&&(F=(F<0?-1:1)*p)}else{var U=r.dataToPoint([B,L]);if(f){var J=r.dataToPoint([B,O]);$=J[1]}N=U[0]+b,I=$,F=m,G=U[1]-$,Math.abs(G)<p&&(G=(G<=0?-1:1)*p)}v?(S[D]=N,S[D+1]=I,S[D+2]=d?F:G,x&&(x[D]=d?M.x:N,x[D+1]=d?I:M.y,x[D+2]=A),T[k]=k):w.setItemLayout(k,{x:N,y:I,width:F,height:G}),D+=3}v&&w.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function P9(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function L9(e){return e.pipelineContext&&e.pipelineContext.large}function MRe(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var kRe=function(e,t,n,r){for(;n<r;){var a=n+r>>>1;e[a][1]<t?n=a+1:r=a}return n},R9=function(e){ge(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 mg(n.value,GR[UIe(Bf(this._minLevelUnit))]||GR.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return YIe(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=RRe(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]-=qa,r[1]+=qa),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]-qa}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=Am.length,l=Math.min(kRe(Am,this._approxInterval,0,s),s-1);this._interval=Am[l][1],this._minLevelUnit=Am[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Jt(n)?n:+Ra(n)},t.prototype.contain=function(n){return K1(this.parse(n),this._extent)},t.prototype.normalize=function(n){return U1(this.parse(n),this._extent)},t.prototype.scale=function(n){return Y1(n,this._extent)},t.type="time",t}(bl),Am=[["second",Qk],["minute",eA],["hour",Cv],["quarter-day",Cv*6],["half-day",Cv*12],["day",qa*1.2],["half-week",qa*3.5],["week",qa*7],["month",qa*31],["quarter",qa*95],["half-year",HR/2],["year",HR]];function ARe(e,t,n,r){var a=Ra(t),i=Ra(n),o=function(v){return WR(a,v,r)===WR(i,v,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 ERe(e,t){return e/=qa,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function IRe(e){var t=30*qa;return e/=t,e>6?6:e>3?3:e>2?2:1}function DRe(e){return e/=Cv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function QO(e,t){return e/=t?eA:Qk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function PRe(e){return Lk(e,!0)}function LRe(e,t,n){var r=new Date(e);switch(Bf(t)){case"year":case"month":r[UG(n)](0);case"day":r[YG(n)](1);case"hour":r[jG(n)](0);case"minute":r[qG(n)](0);case"second":r[XG(n)](0),r[ZG(n)](0)}return r.getTime()}function RRe(e,t,n,r){var a=1e4,i=WG,o=0;function s(A,k,E,D,L,B,$){for(var O=new Date(k),N=k,I=O[D]();N<E&&N<=r[1];)$.push({value:N}),I+=A,O[L](I),N=O.getTime();$.push({value:N,notAdd:!0})}function l(A,k,E){var D=[],L=!k.length;if(!ARe(Bf(A),r[0],r[1],n)){L&&(k=[{value:LRe(new Date(r[0]),A,n)},{value:r[1]}]);for(var B=0;B<k.length-1;B++){var $=k[B].value,O=k[B+1].value;if($!==O){var N=void 0,I=void 0,F=void 0,G=!1;switch(A){case"year":N=Math.max(1,Math.round(t/qa/365)),I=tA(n),F=jIe(n);break;case"half-year":case"quarter":case"month":N=IRe(t),I=Vf(n),F=UG(n);break;case"week":case"half-week":case"day":N=ERe(t),I=R1(n),F=YG(n),G=!0;break;case"half-day":case"quarter-day":case"hour":N=DRe(t),I=xp(n),F=jG(n);break;case"minute":N=QO(t,!0),I=O1(n),F=qG(n);break;case"second":N=QO(t,!1),I=N1(n),F=XG(n);break;case"millisecond":N=PRe(t),I=$1(n),F=ZG(n);break}s(N,$,O,I,F,G,D),A==="year"&&E.length>1&&B===0&&E.unshift({value:E[0].value-N})}}for(var B=0;B<D.length;B++)E.push(D[B]);return D}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var v=Bf(i[h]);if(KIe(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?Bf(i[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(A,k){return A.value-k.value});for(var g=[],m=0;m<c.length;++m){var b=c[m].value;(m===0||c[m-1].value!==b)&&(g.push(c[m]),b>=r[0]&&b<=r[1]&&f++)}var _=(r[1]-r[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===i[h]))break}c=[]}}}for(var w=sn(Oe(u,function(A){return sn(A,function(k){return k.value>=r[0]&&k.value<=r[1]&&!k.notAdd})}),function(A){return A.length>0}),C=[],S=w.length-1,h=0;h<w.length;++h)for(var x=w[h],T=0;T<x.length;++T)C.push({value:x[T].value,level:S-h});C.sort(function(A,k){return A.value-k.value});for(var M=[],h=0;h<C.length;++h)(h===0||C[h].value!==C[h-1].value)&&M.push(C[h]);return M}ps.registerClass(R9);const O9=R9;var eN=ps.prototype,Mv=bl.prototype,ORe=Ln,NRe=Math.floor,$Re=Math.ceil,Em=Math.pow,yi=Math.log,PA=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new bl,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=Mv.getTicks.call(this,n);return Oe(o,function(s){var l=s.value,u=Ln(Em(this.base,l));return u=l===a[0]&&this._fixMin?Im(u,i[0]):u,u=l===a[1]&&this._fixMax?Im(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(n,r){var a=yi(this.base);n=yi(Math.max(0,n))/a,r=yi(Math.max(0,r))/a,Mv.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=eN.getExtent.call(this);r[0]=Em(n,r[0]),r[1]=Em(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=Im(r[0],i[0])),this._fixMax&&(r[1]=Im(r[1],i[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=yi(n[0])/yi(r),n[1]=yi(n[1])/yi(r),eN.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=PH(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Ln($Re(r[0]/i)*i),Ln(NRe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){Mv.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=yi(n)/yi(this.base),K1(n,this._extent)},t.prototype.normalize=function(n){return n=yi(n)/yi(this.base),U1(n,this._extent)},t.prototype.scale=function(n){return n=Y1(n,this._extent),Em(this.base,n)},t.type="log",t}(ps),N9=PA.prototype;N9.getMinorTicks=Mv.getMinorTicks;N9.getLabel=Mv.getLabel;function Im(e,t){return ORe(e,Ai(t))}ps.registerClass(PA);const BRe=PA;var VRe=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=this._modelMinRaw=n.get("min",!0);ut(i)?this._modelMinNum=Dm(t,i({min:r[0],max:r[1]})):i!=="dataMin"&&(this._modelMinNum=Dm(t,i));var o=this._modelMaxRaw=n.get("max",!0);if(ut(o)?this._modelMaxNum=Dm(t,o({min:r[0],max:r[1]})):o!=="dataMax"&&(this._modelMaxNum=Dm(t,o)),a)this._axisDataLen=n.getCategories().length;else{var s=n.get("boundaryGap"),l=Re(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Fi(l[0],1),Fi(l[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=dd(s)||dd(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[zRe[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=FRe[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),FRe={min:"_determinedMin",max:"_determinedMax"},zRe={min:"_dataMin",max:"_dataMax"};function $9(e,t,n){var r=e.rawExtentInfo;return r||(r=new VRe(e,t,n),e.rawExtentInfo=r,r)}function Dm(e,t){return t==null?null:dd(t)?NaN:e.parse(t)}function B9(e,t){var n=e.type,r=$9(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=k9("bar",o),l=!1;if(z(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=A9(s),c=HRe(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function HRe(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=TRe(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;z(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;z(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 vc(e,t){var n=t,r=B9(e,n),a=r.extent,i=n.get("splitNumber");e instanceof BRe&&(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 bg(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new EA({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new O9({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(ps.getClass(t)||bl)}}function GRe(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function _g(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):Je(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):ut(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(LA(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function LA(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function WRe(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof EA?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=_g(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),v=KRe(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function KRe(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 Rt(e.x,e.y,i,o);return s}function RA(e){var t=e.get("interval");return t??"auto"}function V9(e){return e.type==="category"&&RA(e.getLabelModel())===0}function J0(e,t){var n={};return z(e.mapDimensionsAll(t),function(r){n[AA(e,r)]=!0}),Gt(n)}function URe(e,t,n){t&&z(J0(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 jd=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function YRe(e){return Eo(null,e)}var jRe={isDimensionStacked:is,enableDataStack:w9,getStackedDimension:AA};function qRe(e,t){var n=t;t instanceof fn||(n=new fn(t));var r=bg(n);return r.setExtent(e[0],e[1]),vc(r,n),r}function XRe(e){Bn(e,jd)}function ZRe(e,t){return t=t||{},pn(e,null,null,t.state!=="normal")}const JRe=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:iRe,createList:YRe,createScale:qRe,createSymbol:zn,createTextStyle:ZRe,dataStack:jRe,enableHoverEmphasis:rl,getECData:Tt,getLayoutRect:qn,mixinAxisModelCommonMethods:XRe},Symbol.toStringTag,{value:"Module"}));var QRe=1e-8;function tN(e,t){return Math.abs(e-t)<QRe}function Tu(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+=Bo(a[0],a[1],o[0],o[1],t,n),a=o}var s=e[0];return(!tN(a[0],s[0])||!tN(a[1],s[1]))&&(r+=Bo(a[0],a[1],s[0],s[1],t,n)),r!==0}var eOe=[];function Gw(e,t){for(var n=0;n<e.length;n++)dr(e[n],e[n],t)}function nN(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])&&(Go(t,t,i),Wo(n,n,i))}}function tOe(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 F9=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}(),rN=function(){function e(t,n){this.type="polygon",this.exterior=t,this.interiors=n}return e}(),aN=function(){function e(t){this.type="linestring",this.points=t}return e}(),z9=function(e){ge(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 tOe(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 z(o,function(s){s.type==="polygon"?nN(s.exterior,a,i,n):z(s.points,function(l){nN(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 Rt(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(Tu(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(Tu(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 Rt(n,r,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(Gw(d.exterior,u),z(d.interiors,function(h){Gw(h,u)})):z(d.points,function(h){Gw(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}(F9),nOe=function(e){ge(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=sg(eOe),o=n;o&&!o.isGeoSVGGraphicRoot;)po(i,o.getLocalTransform(),i),o=o.parent;return xc(i,i),dr(a,a,i),a},t}(F9);function rOe(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return z(r,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=H9(s,o,n);break;case"Polygon":Ww(s,o,n);break;case"MultiLineString":Ww(s,o,n);break;case"MultiPolygon":z(s,function(l,u){return Ww(l,o[u],n)})}}),t.UTF8Encoding=!1,t}function Ww(e,t,n){for(var r=0;r<e.length;r++)e[r]=H9(e[r],t[r],n)}function H9(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 I2(e,t){return e=rOe(e),Oe(sn(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 rN(o[0],o.slice(1)));break;case"MultiPolygon":z(a.coordinates,function(l){l[0]&&i.push(new rN(l[0],l.slice(1)))});break;case"LineString":i.push(new aN([a.coordinates]));break;case"MultiLineString":i.push(new aN(a.coordinates))}var s=new z9(r[t||"name"],i,r.cp);return s.properties=r,s})}const aOe=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Jx,asc:Ea,getPercentWithPrecision:yAe,getPixelPrecision:Dk,getPrecision:Ai,getPrecisionSafe:IH,isNumeric:Rk,isRadianAroundZero:mp,linearMap:on,nice:Lk,numericToNumber:Co,parseDate:Ra,quantile:By,quantity:PH,quantityExponent:w1,reformIntervals:Qx,remRadian:Pk,round:Ln},Symbol.toStringTag,{value:"Module"})),iOe=Object.freeze(Object.defineProperty({__proto__:null,format:mg,parse:Ra},Symbol.toStringTag,{value:"Module"})),oOe=Object.freeze(Object.defineProperty({__proto__:null,Arc:E1,BezierCurve:hg,BoundingRect:Rt,Circle:zi,CompoundPath:I1,Ellipse:A1,Group:bt,Image:hr,IncrementalDisplayable:IG,Line:rr,LinearGradient:Rd,Polygon:na,Polyline:aa,RadialGradient:Kk,Rect:Xt,Ring:dg,Sector:ta,Text:qt,clipPointsByRect:qk,clipRectByRect:OG,createIcon:Nd,extendPath:LG,extendShape:PG,getShapeClass:D1,getTransform:al,initProps:Cn,makeImage:Yk,makePath:vg,mergePath:Ta,registerShape:di,resizePath:jk,updateProps:tn},Symbol.toStringTag,{value:"Module"})),sOe=Object.freeze(Object.defineProperty({__proto__:null,addCommas:nA,capitalFirst:JIe,encodeHTML:Kr,formatTime:ZIe,formatTpl:aA,getTextRect:qIe,getTooltipMarker:JG,normalizeCssArray:Mc,toCamelCase:rA,truncateText:GH},Symbol.toStringTag,{value:"Module"})),lOe=Object.freeze(Object.defineProperty({__proto__:null,bind:et,clone:pt,curry:xt,defaults:ft,each:z,extend:Ie,filter:sn,indexOf:Nt,inherits:Sk,isArray:Re,isFunction:ut,isObject:ht,isString:Je,map:Oe,merge:Dt,reduce:ui},Symbol.toStringTag,{value:"Module"}));var Ip=Qt();function uOe(e){return e.type==="category"?fOe(e):hOe(e)}function cOe(e,t){return e.type==="category"?dOe(e,t):{ticks:Oe(e.scale.getTicks(),function(n){return n.value})}}function fOe(e){var t=e.getLabelModel(),n=G9(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function G9(e,t){var n=W9(e,"labels"),r=RA(t),a=K9(n,r);if(a)return a;var i,o;return ut(r)?i=j9(e,r):(o=r==="auto"?vOe(e):r,i=Y9(e,o)),U9(n,r,{labels:i,labelCategoryInterval:o})}function dOe(e,t){var n=W9(e,"ticks"),r=RA(t),a=K9(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ut(r))i=j9(e,r,!0);else if(r==="auto"){var s=G9(e,e.getLabelModel());o=s.labelCategoryInterval,i=Oe(s.labels,function(l){return l.tickValue})}else o=r,i=Y9(e,o,!0);return U9(n,r,{ticks:i,tickCategoryInterval:o})}function hOe(e){var t=e.scale.getTicks(),n=_g(e);return{labels:Oe(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function W9(e,t){return Ip(e)[t]||(Ip(e)[t]=[])}function K9(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function U9(e,t,n){return e.push({key:t,value:n}),n}function vOe(e){var t=Ip(e).autoInterval;return t??(Ip(e).autoInterval=e.calculateCategoryInterval())}function pOe(e){var t=gOe(e),n=_g(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 v=0,p=0,g=ug(n({value:l}),t.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/c,b=h/f;isNaN(m)&&(m=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(m,b))),w=Ip(e.model),C=e.getExtent(),S=w.lastAutoInterval,x=w.lastTickCount;return S!=null&&x!=null&&Math.abs(S-_)<=1&&Math.abs(x-o)<=1&&S>_&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?_=S:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=C[0],w.axisExtent1=C[1]),_}function gOe(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 Y9(e,t,n){var r=_g(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=V9(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&p(i[0]);for(var v=u;v<=i[1];v+=l)p(v);h&&v-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(n?g:{formattedLabel:r(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function j9(e,t,n){var r=e.scale,a=_g(e),i=[];return z(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 iN=[0,1],mOe=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 Dk(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(),oN(r,a.count())),on(t,iN,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),oN(r,a.count()));var i=on(t,r,iN,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=cOe(this,n),a=r.ticks,i=Oe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return yOe(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=Oe(r,function(i){return Oe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return uOe(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 pOe(this)},e}();function oN(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function yOe(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;z(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,v){return h=Ln(h),v=Ln(v),f?h>v:h<v}}const pi=mOe;function bOe(e){var t=Yt.extend(e);return Yt.registerClass(t),t}function _Oe(e){var t=kn.extend(e);return kn.registerClass(t),t}function wOe(e){var t=bn.extend(e);return bn.registerClass(t),t}function SOe(e){var t=hn.extend(e);return hn.registerClass(t),t}var Th=Math.PI*2,lu=xo.CMD,COe=["top","right","bottom","left"];function xOe(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 TOe(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)%Th<1e-4)return l[0]=c,l[1]=f,u-n;if(i){var d=r;r=Ei(a),a=Ei(d)}else r=Ei(r),a=Ei(a);r>a&&(a+=Th);var h=Math.atan2(s,o);if(h<0&&(h+=Th),h>=r&&h<=a||h+Th>=r&&h+Th<=a)return l[0]=c,l[1]=f,u-n;var v=n*Math.cos(r)+e,p=n*Math.sin(r)+t,g=n*Math.cos(a)+e,m=n*Math.sin(a)+t,b=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return b<_?(l[0]=v,l[1]=p,Math.sqrt(b)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Q0(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,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*c,g=o[1]=t+v*f;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function q9(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 Ci=[];function MOe(e,t,n){var r=q9(t.x,t.y,t.width,t.height,e.x,e.y,Ci);return n.set(Ci[0],Ci[1]),r}function kOe(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 v=c[h++];h===1&&(r=c[h],a=c[h+1],i=r,o=a);var p=u;switch(v){case lu.M:i=c[h++],o=c[h++],r=i,a=o;break;case lu.L:p=Q0(r,a,c[h],c[h+1],f,d,Ci,!0),r=c[h++],a=c[h++];break;case lu.C:p=cH(r,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Ci),r=c[h++],a=c[h++];break;case lu.Q:p=dH(r,a,c[h++],c[h++],c[h],c[h+1],f,d,Ci),r=c[h++],a=c[h++];break;case lu.A:var g=c[h++],m=c[h++],b=c[h++],_=c[h++],w=c[h++],C=c[h++];h+=1;var S=!!(1-c[h++]);s=Math.cos(w)*b+g,l=Math.sin(w)*_+m,h<=1&&(i=s,o=l);var x=(f-g)*_/b+g;p=TOe(g,m,_,w,w+C,S,x,d,Ci),r=Math.cos(w+C)*b+g,a=Math.sin(w+C)*_+m;break;case lu.R:i=r=c[h++],o=a=c[h++];var T=c[h++],M=c[h++];p=q9(i,o,T,M,f,d,Ci);break;case lu.Z:p=Q0(r,a,i,o,f,d,Ci,!0),r=i,a=o;break}p<u&&(u=p,n.set(Ci[0],Ci[1]))}return u}var Ii=new Pt,mn=new Pt,Fn=new Pt,fo=new Pt,oo=new Pt;function sN(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||COe,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),f=c&&xc([],c),d=t.get("length2")||0;u&&Fn.copy(u);for(var h=0;h<o.length;h++){var v=o[h];xOe(v,0,s,Ii,fo),Pt.scaleAndAdd(mn,Ii,fo,d),mn.transform(f);var p=e.getBoundingRect(),g=u?u.distance(mn):e instanceof Ft?kOe(mn,e.path,Fn):MOe(mn,p,Fn);g<l&&(l=g,mn.transform(c),Fn.transform(c),Fn.toArray(i[0]),mn.toArray(i[1]),Ii.toArray(i[2]))}X9(i,t.get("minTurnAngle")),n.setShape({points:i})}}}var eb=[],Wr=new Pt;function X9(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ii.fromArray(e[0]),mn.fromArray(e[1]),Fn.fromArray(e[2]),Pt.sub(fo,Ii,mn),Pt.sub(oo,Fn,mn);var n=fo.len(),r=oo.len();if(!(n<.001||r<.001)){fo.scale(1/n),oo.scale(1/r);var a=fo.dot(oo),i=Math.cos(t);if(i<a){var o=Q0(mn.x,mn.y,Fn.x,Fn.y,Ii.x,Ii.y,eb,!1);Wr.fromArray(eb),Wr.scaleAndAdd(oo,o/Math.tan(Math.PI-t));var s=Fn.x!==mn.x?(Wr.x-mn.x)/(Fn.x-mn.x):(Wr.y-mn.y)/(Fn.y-mn.y);if(isNaN(s))return;s<0?Pt.copy(Wr,mn):s>1&&Pt.copy(Wr,Fn),Wr.toArray(e[1])}}}}function AOe(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Ii.fromArray(e[0]),mn.fromArray(e[1]),Fn.fromArray(e[2]),Pt.sub(fo,mn,Ii),Pt.sub(oo,Fn,mn);var r=fo.len(),a=oo.len();if(!(r<.001||a<.001)){fo.scale(1/r),oo.scale(1/a);var i=fo.dot(t),o=Math.cos(n);if(i<o){var s=Q0(mn.x,mn.y,Fn.x,Fn.y,Ii.x,Ii.y,eb,!1);Wr.fromArray(eb);var l=Math.PI/2,u=Math.acos(oo.dot(t)),c=l+u-n;if(c>=l)Pt.copy(Wr,Fn);else{Wr.scaleAndAdd(oo,s/Math.tan(Math.PI/2-c));var f=Fn.x!==mn.x?(Wr.x-mn.x)/(Fn.x-mn.x):(Wr.y-mn.y)/(Fn.y-mn.y);if(isNaN(f))return;f<0?Pt.copy(Wr,mn):f>1&&Pt.copy(Wr,Fn)}Wr.toArray(e[1])}}}}function lN(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 EOe(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=Ho(r[0],r[1]),i=Ho(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=pv([],r[1],r[0],o/a),l=pv([],r[1],r[2],o/i),u=pv([],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 OA(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<_p.length;l++){var u=_p[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Lt(a.states[u]&&a.states[u].ignore,s);if(h||!Lt(d,o)){var v=f?r:r&&r.states[u];v&&(v.ignore=!0);continue}r||(r=new aa,e.setTextGuideLine(r),!f&&(s||!o)&&lN(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),lN(r,!1,u,c)}}if(r){ft(r.style,n),r.style.fill=null;var p=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,r.buildPath=EOe}}function NA(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<ea.length;r++){var a=ea[r];n[a]=e.getModel([a,t])}return n}function Z9(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 N0(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 J9(e,t,n,r,a,i){var o=e.length;if(o<2)return;e.sort(function(T,M){return T.rect[t]-M.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[n]}c>0&&i&&C(-c/o,0,o);var p=e[0],g=e[o-1],m,b;_(),m<0&&S(-m,.8),b<0&&S(b,.8),_(),w(m,b,1),w(b,m,-1),_(),m<0&&x(-m),b<0&&x(b);function _(){m=p.rect[t]-r,b=a-g.rect[t]-g.rect[n]}function w(T,M,A){if(T<0){var k=Math.min(M,-T);if(k>0){C(k*A,0,o);var E=k+T;E<0&&S(-E*A,1)}else S(-T*A,1)}}function C(T,M,A){T!==0&&(u=!0);for(var k=M;k<A;k++){var E=e[k],D=E.rect;D[t]+=T,E.label[t]+=T}}function S(T,M){for(var A=[],k=0,E=1;E<o;E++){var D=e[E-1].rect,L=Math.max(e[E].rect[t]-D[t]-D[n],0);A.push(L),k+=L}if(k){var B=Math.min(Math.abs(T)/k,M);if(T>0)for(var E=0;E<o-1;E++){var $=A[E]*B;C($,0,E+1)}else for(var E=o-1;E>0;E--){var $=A[E-1]*B;C(-$,E,o)}}}function x(T){var M=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),k=0;k<o-1;k++)if(M>0?C(A,0,k+1):C(-A,o-k-1,o),T-=A,T<=0)return}return u}function IOe(e,t,n,r){return J9(e,"x","width",t,n,r)}function Q9(e,t,n,r){return J9(e,"y","height",t,n,r)}function e7(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var n=new Rt(0,0,0,0);function r(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.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 v=t[h];if(n.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new N0(v.localRect,v.transform)),f||(f=new N0(s,l)),f.intersect(v.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 DOe(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function POe(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:DOe(r&&r.shape.points)}}var uN=["align","verticalAlign","width","height","fontSize"],Vr=new Ko,Kw=Qt(),LOe=Qt();function Pm(e,t,n){for(var r=0;r<n.length;r++){var a=n[r];t[a]!=null&&(e[a]=t[a])}}var Lm=["x","y","rotation"],ROe=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();Rt.applyTransform(c,c,u),u?Vr.setLocalTransform(u):(Vr.x=Vr.y=Vr.rotation=Vr.originX=Vr.originY=0,Vr.scaleX=Vr.scaleY=1),Vr.rotation=Ei(Vr.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();Rt.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:v,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:v&&v.ignore,x:Vr.x,y:Vr.y,scaleX:Vr.scaleX,scaleY:Vr.scaleY,rotation:Vr.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");(ut(a)||Gt(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Tt(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(_,w){return function(){sN(_,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;ut(o.layoutOption)?c=o.layoutOption(POe(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 v=Kw(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<uN.length;p++){var g=uN[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var b=o.seriesModel.getData(o.dataType);m=b.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=Z9(this._labelList),i=sn(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=sn(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});IOe(i,0,n),Q9(o,0,r);var s=sn(a,function(l){return l.layoutOption.hideOverlap});e7(s)},e.prototype.processLabelsOverall=function(){var t=this;z(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=Kw(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,r),i&&t._animateLabels(o,r)})})},e.prototype._updateLabelLine=function(t,n){var r=t.getTextContent(),a=Tt(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");OA(t,NA(s),l),sN(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&&!$f(t))){var i=Kw(r),o=i.oldLayout,s=Tt(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&&(Nt(d,"select")>=0&&r.attr(i.oldLayoutSelect),Nt(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),tn(r,u,n,l)}else if(r.attr(u),!Bd(r).valueAnimation){var f=Lt(r.style.opacity,1);r.style.opacity=0,Cn(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};Pm(h,u,Lm),Pm(h,r.states.select,Lm)}if(r.states.emphasis){var v=i.oldLayoutEmphasis={};Pm(v,u,Lm),Pm(v,r.states.emphasis,Lm)}FG(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=LOe(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),tn(a,{shape:p},n)):(a.setShape(p),a.style.strokePercent=0,Cn(a,{style:{strokePercent:1}},n)),i.oldLayout=p}},e}();const OOe=ROe;var Uw=Qt();function NOe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=Uw(n).labelManager;a||(a=Uw(n).labelManager=new OOe),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=Uw(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var Yw=Math.sin,jw=Math.cos,t7=Math.PI,uu=Math.PI*2,$Oe=180/t7,BOe=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=Ys(f-uu)||(c?u>=uu:-u>=uu),h=u>0?u%uu:u%uu+uu,v=!1;d?v=!0:Ys(f)?v=!1:v=h>=t7==!!c;var p=t+r*jw(o),g=n+a*Yw(o);this._start&&this._add("M",p,g);var m=Math.round(i*$Oe);if(d){var b=1/this._p,_=(c?1:-1)*(uu-b);this._add("A",r,a,m,1,+c,t+r*jw(o+_),n+a*Yw(o+_)),b>.01&&this._add("A",r,a,m,0,+c,p,g)}else{var w=t+r*jw(s),C=n+a*Yw(s);this._add("A",r,a,m,+v,+c,w,C)}},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 n7=BOe;var kv="none",VOe=Math.round;function FOe(e){var t=e.fill;return t!=null&&t!==kv}function zOe(e){var t=e.stroke;return t!=null&&t!==kv}var D2=["lineCap","miterLimit","lineJoin"],HOe=Oe(D2,function(e){return"stroke-"+e.toLowerCase()});function GOe(e,t,n,r){var a=t.opacity==null?1:t.opacity;if(n instanceof hr){e("opacity",a);return}if(FOe(t)){var i=gp(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",kv);if(zOe(t)){var s=gp(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=mA(n),h=d[0],v=d[1];h&&(v=VOe(v||0),e("stroke-dasharray",h.join(",")),(v||r)&&e("stroke-dashoffset",v))}else r&&e("stroke-dasharray",kv);for(var p=0;p<D2.length;p++){var g=D2[p];if(r||t[g]!==R0[g]){var m=t[g]||R0[g];m&&e(HOe[p],m)}}}else r&&e("stroke",kv)}var r7="http://www.w3.org/2000/svg",a7="http://www.w3.org/1999/xlink",WOe="http://www.w3.org/2000/xmlns/",KOe="http://www.w3.org/XML/1998/namespace";function i7(e){return document.createElementNS(r7,e)}function ar(e,t,n,r,a){return{tag:e,attrs:n||{},children:r,text:a,key:t}}function UOe(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 YOe(e){return"</"+e+">"}function $A(e,t){t=t||{};var n=t.newline?`
  89. `:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return UOe(o,s)+(o!=="style"?Kr(l):l||"")+(i?""+n+Oe(i,function(u){return r(u)}).join(n)+n:"")+YOe(o)}return r(e)}function jOe(e,t,n){n=n||{};var r=n.newline?`
  90. `:"",a=" {"+r,i=r+"}",o=Oe(Gt(e),function(l){return l+a+Oe(Gt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+i}).join(r),s=Oe(Gt(t),function(l){return"@keyframes "+l+a+Oe(Gt(t[l]),function(u){return u+a+Oe(Gt(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 P2(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function cN(e,t,n,r){return ar("svg","root",{width:e,height:t,xmlns:r7,"xmlns:xlink":a7,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var fN={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"},vu="transform-origin";function qOe(e,t,n){var r=Ie({},e.shape);Ie(r,t),e.buildPath(n,r);var a=new n7;return a.reset(bH(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function XOe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[vu]=n+"px "+r+"px")}var ZOe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function o7(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function JOe(e,t,n){var r=e.shape.paths,a={},i,o;if(z(r,function(l){var u=P2(n.zrId);u.animation=!0,j1(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Gt(c),h=d.length;if(h){o=d[h-1];var v=c[o];for(var p in v){var g=v[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var m in f){var b=f[m].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){t.d=!1;var s=o7(a,n);return i.replace(o,s)}}function dN(e){return Je(e)?fN[e]?"cubic-bezier("+fN[e]+")":Mk(e)?e:"":""}function j1(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof I1){var s=JOe(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=dN(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 v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function p(b){var _=b[1],w=_.length,C={},S={},x={},T="animation-timing-function";function M(q,de,ve){for(var ie=q.getTracks(),W=q.getMaxTime(),Z=0;Z<ie.length;Z++){var oe=ie[Z];if(oe.needsAnimate()){var pe=oe.keyframes,Se=oe.propName;if(ve&&(Se=ve(Se)),Se)for(var me=0;me<pe.length;me++){var Ee=pe[me],Ce=Math.round(Ee.time/W*100)+"%",we=dN(Ee.easing),Te=Ee.rawValue;(Je(Te)||Jt(Te))&&(de[Ce]=de[Ce]||{},de[Ce][Se]=Ee.rawValue,we&&(de[Ce][T]=we))}}}}for(var A=0;A<w;A++){var k=_[A],E=k.targetName;E?E==="shape"&&M(k,S):!r&&M(k,C)}for(var D in C){var L={};xH(L,e),Ie(L,C[D]);var B=_H(L),$=C[D][T];x[D]=B?{transform:B}:{},XOe(x[D],L),$&&(x[D][T]=$)}var O,N=!0;for(var D in S){x[D]=x[D]||{};var I=!O,$=S[D][T];I&&(O=new xo);var F=O.len();O.reset(),x[D].d=qOe(e,S[D],O);var G=O.len();if(!I&&F!==G){N=!1;break}$&&(x[D][T]=$)}if(!N)for(var D in x)delete x[D].d;if(!r)for(var A=0;A<w;A++){var k=_[A],E=k.targetName;E==="style"&&M(k,x,function(ie){return ZOe[ie]})}for(var U=Gt(x),J=!0,ae,A=1;A<U.length;A++){var Q=U[A-1],ee=U[A];if(x[Q][vu]!==x[ee][vu]){J=!1;break}ae=x[Q][vu]}if(J&&ae){for(var D in x)x[D][vu]&&delete x[D][vu];t[vu]=ae}if(sn(U,function(q){return Gt(x[q]).length>0}).length){var te=o7(x,n);return te+" "+b[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var Dp=Math.round;function s7(e){return e&&Je(e.src)}function l7(e){return e&&ut(e.toDataURL)}function BA(e,t,n,r){GOe(function(a,i){var o=a==="fill"||a==="stroke";o&&yH(i)?c7(t,e,a,r):o&&Ak(i)?f7(n,e,a,r):e[a]=i},t,n,!1),iNe(n,e,r)}function hN(e){return Ys(e[0]-1)&&Ys(e[1])&&Ys(e[2])&&Ys(e[3]-1)}function QOe(e){return Ys(e[4])&&Ys(e[5])}function VA(e,t,n){if(t&&!(QOe(t)&&hN(t))){var r=n?10:1e4;e.transform=hN(t)?"translate("+Dp(t[4]*r)/r+" "+Dp(t[5]*r)/r+")":Pke(t)}}function vN(e,t,n){for(var r=e.points,a=[],i=0;i<r.length;i++)a.push(Dp(r[i][0]*n)/n),a.push(Dp(r[i][1]*n)/n);t.points=a.join(" ")}function pN(e){return!e.smooth}function eNe(e){var t=Oe(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]]=Dp(s*a)/a)}}}var tNe={circle:[eNe(["cx","cy","r"])],polyline:[vN,pN],polygon:[vN,pN]};function nNe(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function u7(e,t){var n=e.style,r=e.shape,a=tNe[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&bH(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&nNe(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(),v=e,p=v.__svgPathBuilder;(v.__svgPathVersion!==h||!p||l!==v.__svgPathStrokePercent)&&(p||(p=v.__svgPathBuilder=new n7),p.reset(u),d.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),i.d=p.getStr()}return VA(i,e.transform),BA(i,n,e,t),t.animation&&j1(e,i,t),ar(s,e.id+"",i)}function rNe(e,t){var n=e.style,r=n.image;if(r&&!Je(r)&&(s7(r)?r=r.src:l7(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),VA(l,e.transform),BA(l,n,e,t),t.animation&&j1(e,l,t),ar("image",e.id+"",l)}}function aNe(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||pl,i=n.x||0,o=Rke(n.y||0,_1(a),n.textBaseline),s=Lke[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(rG(n)){var u="",c=n.fontStyle,f=nG(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||z8,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),VA(l,e.transform),BA(l,n,e,t),t.animation&&j1(e,l,t),ar("text",e.id+"",l,void 0,r)}}function gN(e,t){if(e instanceof Ft)return u7(e,t);if(e instanceof hr)return rNe(e,t);if(e instanceof bp)return aNe(e,t)}function iNe(e,t,n){var r=e.style;if(Oke(r)){var a=Nke(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=gp(r.shadowColor),v=h.opacity,p=h.color,g=d/2/l,m=d/2/u,b=g+" "+m;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=ar("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ar("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":p,"flood-opacity":v})]),i[a]=o}t.filter=b1(o)}}function c7(e,t,n,r){var a=e[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(gH(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(mH(a))i="radialGradient",o.cx=Lt(a.x,.5),o.cy=Lt(a.y,.5),o.r=Lt(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Hx(s[u].offset)*100+"%",d=s[u].color,h=gp(d),v=h.color,p=h.opacity,g={offset:f};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),l.push(ar("stop",u+"",g))}var m=ar(i,"",o,l),b=$A(m),_=r.gradientCache,w=_[b];w||(w=r.zrId+"-g"+r.gradientIdx++,_[b]=w,o.id=w,r.defs[w]=ar(i,w,o,l)),t[n]=b1(w)}function f7(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(pH(a)){var d=a.imageWidth,h=a.imageHeight,v=void 0,p=a.image;if(Je(p)?v=p:s7(p)?v=p.src:l7(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Nr(d,g),Nr(h,g)}else if(d==null||h==null){var m=function(A,k){if(A){var E=A.elm,D=d||k.width,L=h||k.height;A.tag==="pattern"&&(u?(L=1,D/=i.width):c&&(D=1,L/=i.height)),A.attrs.width=D,A.attrs.height=L,E&&(E.setAttribute("width",D),E.setAttribute("height",L))}},b=Bk(v,null,e,function(A){l||m(S,A),m(f,A)});b&&b.width&&b.height&&(d=d||b.width,h=h||b.height)}f=ar("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=pt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,w;l?_=w=1:u?(w=1,_=o.width/i.width):c?(_=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),w!=null&&!isNaN(w)&&(o.height=w);var C=_H(a);C&&(o.patternTransform=C);var S=ar("pattern","",o,[f]),x=$A(S),T=r.patternCache,M=T[x];M||(M=r.zrId+"-p"+r.patternIdx++,T[x]=M,o.id=M,S=r.defs[M]=ar("pattern",M,o,[f])),t[n]=b1(M)}}function oNe(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]=ar("clipPath",i,o,[u7(e,n)])}t["clip-path"]=b1(i)}function mN(e){return document.createTextNode(e)}function Mu(e,t,n){e.insertBefore(t,n)}function yN(e,t){e.removeChild(t)}function bN(e,t){e.appendChild(t)}function d7(e){return e.parentNode}function h7(e){return e.nextSibling}function qw(e,t){e.textContent=t}var _N=58,sNe=120,lNe=ar("","");function L2(e){return e===void 0}function to(e){return e!==void 0}function uNe(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 Yh(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function Pp(e){var t,n=e.children,r=e.tag;if(to(r)){var a=e.elm=i7(r);if(FA(lNe,e),Re(n))for(t=0;t<n.length;++t){var i=n[t];i!=null&&bN(a,Pp(i))}else to(e.text)&&!ht(e.text)&&bN(a,mN(e.text))}else e.elm=mN(e.text);return e.elm}function v7(e,t,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&Mu(e,Pp(i),t)}}function tb(e,t,n,r){for(;n<=r;++n){var a=t[n];if(a!=null)if(to(a.tag)){var i=d7(a.elm);yN(i,a.elm)}else yN(e,a.elm)}}function FA(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.charCodeAt(0)!==sNe?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(WOe,n,o):n.charCodeAt(3)===_N?r.setAttributeNS(KOe,n,o):n.charCodeAt(5)===_N?r.setAttributeNS(a7,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function cNe(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,v;r<=i&&a<=l;)o==null?o=t[++r]:s==null?s=t[--i]:u==null?u=n[++a]:c==null?c=n[--l]:Yh(o,u)?(df(o,u),o=t[++r],u=n[++a]):Yh(s,c)?(df(s,c),s=t[--i],c=n[--l]):Yh(o,c)?(df(o,c),Mu(e,o.elm,h7(s.elm)),o=t[++r],c=n[--l]):Yh(s,u)?(df(s,u),Mu(e,s.elm,o.elm),s=t[--i],u=n[++a]):(L2(f)&&(f=uNe(t,r,i)),d=f[u.key],L2(d)?Mu(e,Pp(u),o.elm):(h=t[d],h.tag!==u.tag?Mu(e,Pp(u),o.elm):(df(h,u),t[d]=void 0,Mu(e,h.elm,o.elm))),u=n[++a]);(r<=i||a<=l)&&(r>i?(v=n[l+1]==null?null:n[l+1].elm,v7(e,v,n,a,l)):tb(e,t,r,i))}function df(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(FA(e,t),L2(t.text)?to(r)&&to(a)?r!==a&&cNe(n,r,a):to(a)?(to(e.text)&&qw(n,""),v7(n,null,a,0,a.length-1)):to(r)?tb(n,r,0,r.length-1):to(e.text)&&qw(n,""):e.text!==t.text&&(to(r)&&tb(n,r,0,r.length-1),qw(n,t.text)))}function fNe(e,t){if(Yh(e,t))df(e,t);else{var n=e.elm,r=d7(n);Pp(t),r!==null&&(Mu(r,t.elm,h7(n)),tb(r,[e],0,0))}return t}var dNe=0,hNe=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=wN(),this.configLayer=wN(),this.storage=n,this._opts=r=Ie({},r),this.root=t,this._id="zr"+dNe++,this._oldVNode=cN(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=i7("svg");FA(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",fNe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return gN(t,P2(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=P2(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=vNe(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=ar("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=Oe(Gt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(ar("defs","defs",{},u)),t.animation){var c=jOe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=ar("style","stl",{},[],c);o.push(f)}}return cN(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},$A(this.renderToVNode({animation:Lt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Lt(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,v=l&&l.length||0,p=void 0;for(p=Math.max(h-1,v-1);p>=0&&!(d&&l&&d[p]===l[p]);p--);for(var g=v-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m<h;m++){var b={};oNe(d[m],b,n);var _=ar("g","clip-g-"+u++,b,[]);(s?s.children:r).push(_),i[o++]=_,s=_}l=d;var w=gN(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=wf(a,0,r),n=wf(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(Ak(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=Bke(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e}();function wN(e){return function(){}}function vNe(e,t,n,r){var a;if(n&&n!=="none")if(a=ar("rect","bg",{width:e,height:t,x:"0",y:"0",id:"0"}),yH(n))c7({fill:n},a.attrs,"fill",r);else if(Ak(n))f7({style:{fill:n},dirty:Nn,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",r);else{var i=gp(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const pNe=hNe;function gNe(e){e.registerPainter("svg",pNe)}function SN(e,t,n){var r=Bi.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 mNe=function(e){ge(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||P0,typeof n=="string"?o=SN(n,r,a):ht(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var s=o.style;return s&&(Ck(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=SN("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 Rt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var _=new Rt(0,0,0,0);_.copy(b),o.push(_)}else{for(var w=!1,C=1/0,S=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(b)){var M=new Rt(0,0,0,0);M.copy(T),M.union(b),o[x]=M,w=!0;break}else if(l){u.copy(b),u.union(T);var A=b.width*b.height,k=T.width*T.height,E=u.width*u.height,D=E-A-k;D<C&&(C=D,S=x)}}if(l&&(o[S].union(b),w=!0),!w){var _=new Rt(0,0,0,0);_.copy(b),o.push(_)}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),v=d.__isRendered&&(d.__dirty&xa||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&xa||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d.shouldBePainted(a,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(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 v(p,g,m,b){if(o.clearRect(p,g,m,b),r&&r!=="transparent"){var _=void 0;if(ig(r)){var w=r.global||r.__width===m&&r.__height===b;_=w&&r.__canvasGradient||S2(o,r,{x:0,y:0,width:m,height:b}),r.__canvasGradient=_,r.__width=m,r.__height=b}else U8(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,_=C2(o,r,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=_||r,o.fillRect(p,g,m,b),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,m,b),o.restore())}!a||u?v(0,0,s,l):a.length&&z(a,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(fi);const Xw=mNe;var CN=1e5,cu=314159,Rm=.01,yNe=.001;function bNe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function _Ne(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 wNe=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=Ie({},r||{}),this.dpr=r.devicePixelRatio||P0,this._singleCanvas=i,this.root=t;var o=t.style;o&&(Ck(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 Xw(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[cu]=h,h.zlevel=cu,s.push(cu),this._domRoot=t}else{this._width=wf(t,0,r),this._height=wf(t,1,r);var u=this._domRoot=_Ne(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(CN)),i||(i=r.ctx,i.save()),Hu(i,s,a,o===n-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(CN)},e.prototype.paintOne=function(t,n){yA(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;Bx(function(){l._paintList(t,n,r,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(cu).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(p){var g=i[p],m=g.ctx,b=o&&g.createRepaintRects(t,n,h._width,h._height),_=r?g.__startIndex:g.__drawIndex,w=!r&&g.incremental&&Date.now,C=w&&Date.now(),S=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,S,b);else if(_===g.__startIndex){var x=t[_];(!x.incremental||!x.notClear||r)&&g.clear(!1,S,b)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,M=function(D){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<g.__endIndex;T++){var B=t[T];if(B.__inHover&&(f=!0),a._doPaintEl(B,g,o,D,L,T===g.__endIndex-1),w){var $=Date.now()-C;if($>15)break}}L.prevElClipPaths&&m.restore()};if(b)if(b.length===0)T=g.__endIndex;else for(var A=h.dpr,k=0;k<b.length;++k){var E=b[k];m.save(),m.beginPath(),m.rect(E.x*A,E.y*A,E.width*A,E.height*A),m.clip(),M(E),m.restore()}else m.save(),M(),m.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<i.length;v++)d(v);return Zt.wxa&&z(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.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))&&(Hu(s,t,i,o),t.setPrevPaintRect(l))}else Hu(s,t,i,o)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=cu);var r=this._layers[t];return r||(r=new Xw("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?Dt(r,this._layerConfig[t],!0):this._layerConfig[t-Rm]&&Dt(r,this._layerConfig[t-Rm],!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]&&bNe(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=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+yNe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Rm:0),this._needsManuallyCompositing),c.__builtin__||h1("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&xa&&!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,z(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Dt(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+Rm){var o=this._layers[i];Dt(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(Nt(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=wf(i,0,a),n=wf(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(cu).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[cu].dom;var n=new Xw("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];Hu(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 SNe=wNe;function CNe(e){e.registerPainter("canvas",SNe)}var xNe=function(e){ge(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 Eo(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new bt,a=zn("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=zn(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}(bn);const TNe=xNe;function gd(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=vd(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(vd(e,t,n[o]));return i.join(" ")}}function p7(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Re(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 MNe=function(e){ge(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=zn(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=kNe,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(){rs(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):tn(d,h,s,r),Hi(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,Cn(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,v,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,v=i.emphasisDisabled),!i||n.hasItemOption){var b=i&&i.itemModel?i.itemModel:n.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),p=sr(b),g=_.getShallow("scale"),m=b.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=kc(n.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),m&&s.attr("cursor",m);var S=n.getItemVisual(r,"style"),x=S.fill;if(s instanceof hr){var T=s.style;s.useStyle(Ie({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(Ie({},S)):s.useStyle(S),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=n.getItemVisual(r,"liftZ"),A=this._z2;M!=null?A==null&&(this._z2=s.z2,s.z2+=M):A!=null&&(s.z2=A,this._z2=null);var k=o&&o.useNameLabel;xr(s,p,{labelFetcher:l,labelDataIndex:r,defaultText:E,inheritColor:x,defaultOpacity:S.opacity});function E(B){return k?n.getName(B):gd(n,B)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var D=s.ensureState("emphasis");D.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;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),On(this,d,h,v)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=Tt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ml(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ml(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Ud(n.getItemVisual(r,"symbolSize"))},t}(bt);function kNe(e,t){this.parent.drift(e,t)}const wg=MNe;function Zw(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 xN(e){return e!=null&&!ht(e)&&(e={isIgnore:e}),e||{}}function TN(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:sr(t),cursorStyle:t.get("cursor")}}var ANe=function(){function e(t){this.group=new bt,this._SymbolCtor=t||wg}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=xN(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=TN(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(Zw(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),v=c(f);if(!Zw(t,v,f,n)){r.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)r.remove(h),h=new o(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var m={x:v[0],y:v[1]};s?h.attr(m):tn(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=TN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=xN(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(Zw(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){Ll(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 Sg=ANe;function g7(e,t,n){var r=e.getBaseAxis(),a=e.getOtherAxis(r),i=ENe(a,n),o=r.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=Oe(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return is(t,f[0])&&(d=!0,f[0]=h),is(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 ENe(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:Jt(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function m7(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 INe(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 DNe(e,t,n,r,a,i,o,s){for(var l=INe(e,t),u=[],c=[],f=[],d=[],h=[],v=[],p=[],g=g7(a,t,o),m=e.getLayout("points")||[],b=t.getLayout("points")||[],_=0;_<l.length;_++){var w=l[_],C=!0,S=void 0,x=void 0;switch(w.cmd){case"=":S=w.idx*2,x=w.idx1*2;var T=m[S],M=m[S+1],A=b[x],k=b[x+1];(isNaN(T)||isNaN(M))&&(T=A,M=k),u.push(T,M),c.push(A,k),f.push(n[S],n[S+1]),d.push(r[x],r[x+1]),p.push(t.getRawIndex(w.idx1));break;case"+":var E=w.idx,D=g.dataDimsForPoint,L=a.dataToPoint([t.get(D[0],E),t.get(D[1],E)]);x=E*2,u.push(L[0],L[1]),c.push(b[x],b[x+1]);var B=m7(g,a,t,E);f.push(B[0],B[1]),d.push(r[x],r[x+1]),p.push(t.getRawIndex(E));break;case"-":C=!1}C&&(h.push(w),v.push(v.length))}v.sort(function(Q,ee){return p[Q]-p[ee]});for(var $=u.length,O=co($),N=co($),I=co($),F=co($),G=[],_=0;_<v.length;_++){var U=v[_],J=_*2,ae=U*2;O[J]=u[ae],O[J+1]=u[ae+1],N[J]=c[ae],N[J+1]=c[ae+1],I[J]=f[ae],I[J+1]=f[ae+1],F[J]=d[ae],F[J+1]=d[ae+1],G[_]=h[U]}return{current:O,next:N,stackedOnCurrent:I,stackedOnNext:F,status:G}}var ks=Math.min,As=Math.max;function ec(e,t){return isNaN(e)||isNaN(t)}function R2(e,t,n,r,a,i,o,s,l){for(var u,c,f,d,h,v,p=n,g=0;g<r;g++){var m=t[p*2],b=t[p*2+1];if(p>=a||p<0)break;if(ec(m,b)){if(l){p+=i;continue}break}if(p===n)e[i>0?"moveTo":"lineTo"](m,b),f=m,d=b;else{var _=m-u,w=b-c;if(_*_+w*w<.5){p+=i;continue}if(o>0){for(var C=p+i,S=t[C*2],x=t[C*2+1];S===m&&x===b&&g<r;)g++,C+=i,p+=i,S=t[C*2],x=t[C*2+1],m=t[p*2],b=t[p*2+1],_=m-u,w=b-c;var T=g+1;if(l)for(;ec(S,x)&&T<r;)T++,C+=i,S=t[C*2],x=t[C*2+1];var M=.5,A=0,k=0,E=void 0,D=void 0;if(T>=r||ec(S,x))h=m,v=b;else{A=S-u,k=x-c;var L=m-u,B=S-m,$=b-c,O=x-b,N=void 0,I=void 0;if(s==="x"){N=Math.abs(L),I=Math.abs(B);var F=A>0?1:-1;h=m-F*N*o,v=b,E=m+F*I*o,D=b}else if(s==="y"){N=Math.abs($),I=Math.abs(O);var G=k>0?1:-1;h=m,v=b-G*N*o,E=m,D=b+G*I*o}else N=Math.sqrt(L*L+$*$),I=Math.sqrt(B*B+O*O),M=I/(I+N),h=m-A*o*(1-M),v=b-k*o*(1-M),E=m+A*o*M,D=b+k*o*M,E=ks(E,As(S,m)),D=ks(D,As(x,b)),E=As(E,ks(S,m)),D=As(D,ks(x,b)),A=E-m,k=D-b,h=m-A*N/I,v=b-k*N/I,h=ks(h,As(u,m)),v=ks(v,As(c,b)),h=As(h,ks(u,m)),v=As(v,ks(c,b)),A=m-h,k=b-v,E=m+A*I/N,D=b+k*I/N}e.bezierCurveTo(f,d,h,v,m,b),f=E,d=D}else e.lineTo(m,b)}u=m,c=b,p+=i}return g}var y7=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),PNe=function(e){ge(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 y7},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&ec(a[o*2-2],a[o*2-1]);o--);for(;i<o&&ec(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=R2(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=xo.CMD,s,l,u=r==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,v=void 0,p=void 0,g=void 0,m=void 0,b=void 0,_=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],v=i[f++],_=u?(n-s)/(h-s):(n-l)/(v-l),_<=1&&_>=0){var w=u?(v-l)*_+l:(h-s)*_+s;return u?[n,w]:[w,n]}s=h,l=v;break;case o.C:h=i[f++],v=i[f++],p=i[f++],g=i[f++],m=i[f++],b=i[f++];var C=u?E0(s,h,p,m,n,c):E0(l,v,g,b,n,c);if(C>0)for(var S=0;S<C;S++){var x=c[S];if(x<=1&&x>=0){var w=u?tr(l,v,g,b,x):tr(s,h,p,m,x);return u?[n,w]:[w,n]}}s=m,l=b;break}}},t}(Ft),LNe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(y7),b7=function(e){ge(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 LNe},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&&ec(a[s*2-2],a[s*2-1]);s--);for(;o<s&&ec(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=R2(n,a,o,s,s,1,r.smooth,l,r.connectNulls);R2(n,i,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},t}(Ft);function _7(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,o=Math.floor(o),l=Math.round(l);var f=new Xt({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var p=ut(a)?function(g){a(g,f)}:null;Cn(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,p)}return f}function w7(e,t,n){var r=e.getArea(),a=Ln(r.r0,1),i=Ln(r.r,1),o=new ta({shape:{cx:Ln(e.cx,1),cy:Ln(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,Cn(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function q1(e,t,n,r,a){if(e){if(e.type==="polar")return w7(e,t,n);if(e.type==="cartesian2d")return _7(e,t,n,r,a)}else return null;return null}function Ac(e,t){return e.type===t}function MN(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function kN(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 AN(e,t){var n=kN(e),r=n[0],a=n[1],i=kN(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 EN(e){return Jt(e)?e:e?.5:0}function RNe(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),a=co(r*2),i=0;i<r;i++){var o=m7(n,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Es(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 ONe(e,t){var n=[],r=e.length,a,i;function o(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),p=kk(v,[c.color,f.color]);return{coord:d,color:p}}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 NNe(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=Oe(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=ONe(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 v=10,p=d[0].coord-v,g=d[h-1].coord+v,m=g-p;if(m<.001)return"transparent";z(d,function(_){_.offset=(_.coord-p)/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 b=new Rd(0,0,0,0,d,!0);return b[a]=p,b[a+"2"]=g,b}}}function $Ne(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&BNe(i,t))){var o=t.mapDimension(i.dim),s={};return z(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function BNe(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(wg.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function VNe(e,t){return isNaN(e)||isNaN(t)}function FNe(e){for(var t=e.length/2;t>0&&VNe(e[t*2-2],e[t*2-1]);t--);return t-1}function IN(e,t){return[e[t*2],e[t*2+1]]}function zNe(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 S7(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<ea.length;t++)if(e.get([ea[t],"endLabel","show"]))return!0;return!1}function Jw(e,t,n,r){if(Ac(t,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=S7(r)?function(h,v){e._endLabelOnDuring(h,v,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=_7(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 w7(t,n,r)}function HNe(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 GNe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new bt,r=new Sg;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,v=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,b=!r.ssr&&n.isAnimationEnabled(),_=!c.isEmpty(),w=c.get("origin"),C=g7(o,l,w),S=_&&RNe(o,l,C),x=n.get("showSymbol"),T=n.get("connectNulls"),M=x&&!d&&$Ne(n,l,o),A=this._data;A&&A.eachItemGraphicEl(function(ee,te){ee.__temp&&(s.remove(ee),A.setItemGraphicEl(te,null))}),x||v.remove(),s.add(m);var k=d?!1:n.get("step"),E;o&&o.getArea&&n.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var D=NNe(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&k===this._step))x&&v.updateData(l,{isIgnore:M,clipShape:E,disableAnimation:!0,getSymbolPoint:function(ee){return[f[ee*2],f[ee*2+1]]}}),b&&this._initSymbolLabelAnimation(l,o,E),k&&(f=Es(f,o,k,T),S&&(S=Es(S,o,k,T))),p=this._newPolyline(f),_?g=this._newPolygon(f,S):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,hc(D)),m.setClipPath(Jw(this,o,!0,n));else{_&&!g?g=this._newPolygon(f,S):g&&!_&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,hc(D));var L=m.getClipPath();if(L){var B=Jw(this,o,!1,n);Cn(L,{shape:B.shape},n)}else m.setClipPath(Jw(this,o,!0,n));x&&v.updateData(l,{isIgnore:M,clipShape:E,disableAnimation:!0,getSymbolPoint:function(ee){return[f[ee*2],f[ee*2+1]]}}),(!MN(this._stackedOnPoints,S)||!MN(this._points,f))&&(b?this._doUpdateAnimation(l,S,o,a,k,w,T):(k&&(f=Es(f,o,k,T),S&&(S=Es(S,o,k,T))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:S})))}var $=n.getModel("emphasis"),O=$.get("focus"),N=$.get("blurScope"),I=$.get("disabled");if(p.useStyle(ft(u.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Cr(p,n,"lineStyle"),p.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var F=p.getState("emphasis").style;F.lineWidth=+p.style.lineWidth+1}Tt(p).seriesIndex=n.seriesIndex,On(p,O,N,I);var G=EN(n.get("smooth")),U=n.get("smoothMonotone");if(p.setShape({smooth:G,smoothMonotone:U,connectNulls:T}),g){var J=l.getCalculationInfo("stackedOnSeries"),ae=0;g.useStyle(ft(c.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),J&&(ae=EN(J.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:ae,smoothMonotone:U,connectNulls:T}),Cr(g,n,"areaStyle"),Tt(g).seriesIndex=n.seriesIndex,On(g,O,N,I)}var Q=function(ee){i._changePolyState(ee)};l.eachItemGraphicEl(function(ee){ee&&(ee.onHoverStateChange=Q)}),this._polyline.onHoverStateChange=Q,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=k,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,p),g&&this.packEventData(n,g))},t.prototype.packEventData=function(n,r){Tt(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=cc(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 wg(o,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else hn.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=cc(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 hn.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;O0(this._polyline,n),r&&O0(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new PNe({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 b7({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");ut(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ut(f)?f(null):f;n.eachItemGraphicEl(function(h,v){var p=h;if(p){var g=[h.x,h.y],m=void 0,b=void 0,_=void 0;if(a)if(o){var w=a,C=r.pointToCoord(g);i?(m=w.startAngle,b=w.endAngle,_=-C[1]/180*Math.PI):(m=w.r0,b=w.r,_=C[0])}else{var S=a;i?(m=S.x,b=S.x+S.width,_=h.x):(m=S.y+S.height,b=S.y,_=h.y)}var x=b===m?0:(_-m)/(b-m);l&&(x=1-x);var T=ut(f)?f(v):c*x+d,M=p.getSymbolPath(),A=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(S7(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 qt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=FNe(l);c>=0&&(xr(s,sr(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?p7(o,h):gd(o,f)},enableTextSetter:!0},HNe(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"),v=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),b=g.inverse,_=r.shape,w=b?m?_.x:_.y+_.height:m?_.x+_.width:_.y,C=(m?p:0)*(b?-1:1),S=(m?0:-p)*(b?-1:1),x=m?"x":"y",T=zNe(f,w,x),M=T.range,A=M[1]-M[0],k=void 0;if(A>=1){if(A>1&&!h){var E=IN(f,M[0]);u.attr({x:E[0]+C,y:E[1]+S}),o&&(k=d.getRawValue(M[0]))}else{var E=c.getPointOn(w,x);E&&u.attr({x:E[0]+C,y:E[1]+S});var D=d.getRawValue(M[0]),L=d.getRawValue(M[1]);o&&(k=FH(a,v,D,L,T.t))}i.lastFrameIndex=M[0]}else{var B=n===1||i.lastFrameIndex>0?M[0]:0,E=IN(f,B);o&&(k=d.getRawValue(B)),u.attr({x:E[0]+C,y:E[1]+S})}if(o){var $=Bd(u);typeof $.setLabelText=="function"&&$.setLabelText(k)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=DNe(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(h=Es(d.current,a,o,l),v=Es(d.stackedOnCurrent,a,o,l),p=Es(d.next,a,o,l),g=Es(d.stackedOnNext,a,o,l)),AN(h,p)>3e3||c&&AN(v,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:p}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),tn(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),tn(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<_.length;w++){var C=_[w].cmd;if(C==="="){var S=n.getItemGraphicEl(_[w].idx1);S&&b.push({el:S,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var x=u.shape.__points,T=0;T<b.length;T++){var M=b[T].el,A=b[T].ptIdx*2;M.x=x[A],M.y=x[A+1],M.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}(hn);const WNe=GNe;function Cg(e,t){return{seriesType:e,plan:Wd(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=t||i.large;if(a){var s=Oe(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");is(r,s[0])&&(s[0]=u),is(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,v){for(var p=h.end-h.start,g=o&&co(p*l),m=[],b=[],_=h.start,w=0;_<h.end;_++){var C=void 0;if(l===1){var S=c.get(f,_);C=a.dataToPoint(S,null,b)}else m[0]=c.get(f,_),m[1]=c.get(d,_),C=a.dataToPoint(m,null,b);o?(g[w++]=C[0],g[w++]=C[1]):v.setItemLayout(_,C.slice())}o&&v.setLayout("points",g)}}}}}}var KNe={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},nearest:function(e){return e[0]}},UNe=function(e){return Math.round(e.length/2)};function C7(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 v=void 0;Je(i)?v=KNe[i]:ut(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,UNe))}}}}}function YNe(e){e.registerChartView(WNe),e.registerSeriesModel(TNe),e.registerLayout(Cg("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,C7("line"))}var x7=function(e){ge(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 Eo(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)z(i.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var v=d.getTicksCoords(),p=o[h],g=r[h]==="x1"||r[h]==="y1";if(g&&(p+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,b=void 0,_=1,w=0;w<v.length;w++){var C=v[w].coord,S=w===v.length-1?v[w-1].tickValue+_:v[w].tickValue;if(S===p){b=C;break}else if(S<p)m=C;else if(m!=null&&S>p){b=(C+m)/2;break}w===1&&(_=S-v[0].tickValue)}b==null&&(m?m&&(b=v[v.length-1].coord):b=v[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}(bn);bn.registerClass(x7);const nb=x7;var jNe=function(e){ge(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 Eo(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=Rl(nb.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}(nb);const qNe=jNe;var XNe=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}(),ZNe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new XNe},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,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),b=Math.sin(f);v?(n.moveTo(p*o+a,g*o+i),n.arc(p*u+a,g*u+i,l,-Math.PI+c,c,!d)):n.moveTo(p*s+a,g*s+i),n.arc(a,i,s,c,f,!d),n.arc(m*u+a,b*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&n.arc(a,i,o,f,c,d)},t}(Ft);const rb=ZNe;function JNe(e,t){t=t||{};var n=t.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return L0(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,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,b=n?Math.abs(d-h)/2:0,_=Math.cos,w=Math.sin,C=c+d*_(p),S=f+d*w(p),x="left",T="top";switch(s){case"startArc":C=c+(h-l)*_(m),S=f+(h-l)*w(m),x="center",T="top";break;case"insideStartArc":C=c+(h+l)*_(m),S=f+(h+l)*w(m),x="center",T="bottom";break;case"startAngle":C=c+v*_(p)+Om(p,l+b,!1),S=f+v*w(p)+Nm(p,l+b,!1),x="right",T="middle";break;case"insideStartAngle":C=c+v*_(p)+Om(p,-l+b,!1),S=f+v*w(p)+Nm(p,-l+b,!1),x="left",T="middle";break;case"middle":C=c+v*_(m),S=f+v*w(m),x="center",T="middle";break;case"endArc":C=c+(d+l)*_(m),S=f+(d+l)*w(m),x="center",T="bottom";break;case"insideEndArc":C=c+(d-l)*_(m),S=f+(d-l)*w(m),x="center",T="top";break;case"endAngle":C=c+v*_(g)+Om(g,l+b,!0),S=f+v*w(g)+Nm(g,l+b,!0),x="left",T="middle";break;case"insideEndAngle":C=c+v*_(g)+Om(g,-l+b,!0),S=f+v*w(g)+Nm(g,-l+b,!0),x="right",T="middle";break;default:return L0(r,a,i)}return r=r||{},r.x=C,r.y=S,r.align=x,r.verticalAlign=T,r}}function QNe(e,t,n,r){if(Jt(r)){e.setTextConfig({rotation:r});return}else if(Re(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 Om(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Nm(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Gu(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;Re(r)||(r=[r,r,r,r]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Oe(r,function(i){return Fi(i,a)})}}var Qw=Math.max,eS=Math.min;function e$e(e,t){var n=e.getArea&&e.getArea();if(Ac(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 t$e=function(e){ge(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){Ll(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=n$e(n,u);h&&this._enableRealtimeSort(h,s,a);var v=n.get("clip",!0)||h,p=e$e(u,s);o.removeClipPath();var g=n.get("roundCap",!0),m=n.get("showBackground",!0),b=n.getModel("backgroundStyle"),_=b.get("borderRadius")||0,w=[],C=this._backgroundEls,S=i&&i.isInitSort,x=i&&i.type==="changeAxisOrder";function T(k){var E=$m[u.type](s,k),D=u$e(u,f,E);return D.useStyle(b.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",_):D.setShape("cornerRadius",_),w[k]=D,D}s.diff(l).add(function(k){var E=s.getItemModel(k),D=$m[u.type](s,k,E);if(m&&T(k),!(!s.hasValue(k)||!ON[u.type](D))){var L=!1;v&&(L=DN[u.type](p,D));var B=PN[u.type](n,s,k,D,f,d,c.model,!1,g);h&&(B.forceLabelAnimation=!0),NN(B,s,k,E,D,n,f,u.type==="polar"),S?B.attr({shape:D}):h?LN(h,d,B,D,k,f,!1,!1):Cn(B,{shape:D},n,k),s.setItemGraphicEl(k,B),o.add(B),B.ignore=L}}).update(function(k,E){var D=s.getItemModel(k),L=$m[u.type](s,k,D);if(m){var B=void 0;C.length===0?B=T(E):(B=C[E],B.useStyle(b.getItemStyle()),u.type==="cartesian2d"?B.setShape("r",_):B.setShape("cornerRadius",_),w[k]=B);var $=$m[u.type](s,k),O=M7(f,$,u);tn(B,{shape:O},d,k)}var N=l.getItemGraphicEl(E);if(!s.hasValue(k)||!ON[u.type](L)){o.remove(N);return}var I=!1;if(v&&(I=DN[u.type](p,L),I&&o.remove(N)),N?Hi(N):N=PN[u.type](n,s,k,L,f,d,c.model,!!N,g),h&&(N.forceLabelAnimation=!0),x){var F=N.getTextContent();if(F){var G=Bd(F);G.prevValue!=null&&(G.prevValue=G.value)}}else NN(N,s,k,D,L,n,f,u.type==="polar");S?N.attr({shape:L}):h?LN(h,d,N,L,k,f,!0,x):tn(N,{shape:L},n,k,null),s.setItemGraphicEl(k,N),N.ignore=I,o.add(N)}).remove(function(k){var E=l.getItemGraphicEl(k);E&&Sp(E,n,k)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new bt);M.removeAll();for(var A=0;A<w.length;++A)M.add(w[A]);o.add(M),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(n,r,a){this._clear(),BN(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),BN(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&q1(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:Oe(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){Sp(i,n,Tt(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}(hn),DN={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=Qw(t.x,e.x),s=eS(t.x+t.width,a),l=Qw(t.y,e.y),u=eS(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=eS(t.r,e.r),i=Qw(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}},PN={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new Xt({shape:Ie({},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?rb:ta,c=new u({shape:r,z2:1});c.name="item";var f=T7(a);if(c.calculateTextPosition=JNe(f,{isRoundCap:u===rb}),i){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?r.r0:r.startAngle,v[h]=r[h],(s?tn:Cn)(c,{shape:v},i)}return c}};function n$e(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 LN(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?tn:Cn)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?tn:Cn)(n,{shape:u},c,a)}function RN(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var r$e=["x","y","width","height"],a$e=["cx","cy","r","startAngle","endAngle"],ON={cartesian2d:function(e){return!RN(e,r$e)},polar:function(e){return!RN(e,a$e)}},$m={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),a=n?o$e(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 i$e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function T7(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 NN(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=Gu(r.getModel("itemStyle"),c,!0);Ie(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",v=sr(r);xr(e,v,{labelFetcher:i,labelDataIndex:n,defaultText:gd(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=e.getTextContent();if(s&&p){var g=r.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,QNe(e,g==="outside"?h:g,T7(o),r.get(["label","rotate"]))}VG(p,v,i.getRawValue(n),function(b){return p7(t,b)});var m=r.getModel(["emphasis"]);On(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Cr(e,r),i$e(a)&&(e.style.fill="none",e.style.stroke="none",z(e.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function o$e(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 s$e=function(){function e(){}return e}(),$N=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new s$e},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}(Ft);function BN(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 $N({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 $N({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")),Tt(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",VN),f.on("mousemove",VN)),n&&n.push(f)}var VN=H1(function(e){var t=this,n=l$e(t,e.offsetX,e.offsetY);Tt(t).dataIndex=n>=0?n:null},30,!1);function l$e(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 M7(e,t,n){if(Ac(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 u$e(e,t,n){var r=e.type==="polar"?ta:Xt;return new r({shape:M7(t,n,e),silent:!0,z2:0})}const c$e=t$e;function f$e(e){e.registerChartView(c$e),e.registerSeriesModel(qNe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,xt(I9,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D9("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,C7("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 Bm=Math.PI*2,FN=Math.PI/180;function k7(e,t){return qn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function A7(e,t){var n=k7(e,t),r=e.get("center"),a=e.get("radius");Re(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 Re(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 d$e(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=k7(r,n),s=A7(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*FN,h=r.get("minAngle")*FN,v=0;a.each(i,function(A){!isNaN(A)&&v++});var p=a.getSum(i),g=Math.PI/(p||v)*2,m=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var C=Bm,S=0,x=d,T=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(A,k){var E;if(isNaN(A)){a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?E=p===0&&_?g:A*g:E=Bm/v,E<h?(E=h,C-=h):S+=A;var D=x+T*E;a.setItemLayout(k,{angle:E,startAngle:x,endAngle:D,clockwise:m,cx:l,cy:u,r0:f,r:b?on(A,w,[f,c]):c}),x=D}),C<Bm&&v)if(C<=.001){var M=Bm/v;a.each(i,function(A,k){if(!isNaN(A)){var E=a.getItemLayout(k);E.angle=M,E.startAngle=d+T*k*M,E.endAngle=d+T*(k+1)*M}})}else g=C/S,x=d,a.each(i,function(A,k){if(!isNaN(A)){var E=a.getItemLayout(k),D=E.angle===h?h:A*g;E.startAngle=x,E.endAngle=x+T*D,x+=T*D}})})}function xg(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 h$e=Math.PI/180;function zN(e,t,n,r,a,i,o,s,l,u){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,b=0;b<p.list.length;b++){var _=p.list[b],w=Math.abs(_.label.y-n),C=r+_.len,S=C*C,x=Math.sqrt((1-Math.abs(w*w/m))*S),T=t+(x+_.len2)*a,M=T-_.label.x,A=_.targetTextWidth-M*a;E7(_,A,!0),_.label.x=T}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},b=0;b<p.length;b++)if(p[b].labelAlignTo==="none"){var _=p[b],w=_.label.y>n?m:g,C=Math.abs(_.label.y-n);if(C>=w.maxY){var S=_.label.x-t-_.len2*a,x=r+_.len,T=Math.abs(S)<x?Math.sqrt(C*C/(1-S*S/x/x)):x;w.rB=T,w.maxY=C}w.list.push(_)}c(g),c(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}Q9(e,l,l+o)&&f(e)}function v$e(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;tS(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!tS(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+a-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-o-v.bleedMargin:g=o+a-f-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+a-h.x-v.bleedMargin,v.targetTextWidth=g,E7(v,g)}}zN(u,t,n,r,1,a,i,o,s,f),zN(l,t,n,r,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!tS(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",b=h.style.padding,_=b?b[1]+b[3]:0,w=h.style.backgroundColor?0:_,C=v.rect.width+w,S=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+C+v.labelDistance:p[2][0]=o+a-v.edgeDistance-C-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+S),p[1][1]=p[2][1]=h.y}}}function E7(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,v=t<c?h:n?h>e.unconstrainedWidth?null:h:null;r.setStyle("width",v)}var p=r.getBoundingRect();i.width=p.width;var g=(r.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function tS(e){return e.position==="center"}function p$e(e){var t=e.getData(),n=[],r,a,i=!1,o=(e.get("minShowLabelAngle")||0)*h$e,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var x in S.states)if(S.states[x].ignore===!1)return!0;return!1}t.each(function(S){var x=t.getItemGraphicEl(S),T=x.shape,M=x.getTextContent(),A=x.getTextGuideLine(),k=t.getItemModel(S),E=k.getModel("label"),D=E.get("position")||k.get(["emphasis","label","position"]),L=E.get("distanceToLabelLine"),B=E.get("alignTo"),$=qe(E.get("edgeDistance"),u),O=E.get("bleedMargin"),N=k.getModel("labelLine"),I=N.get("length");I=qe(I,u);var F=N.get("length2");if(F=qe(F,u),Math.abs(T.endAngle-T.startAngle)<o){z(M.states,h),M.ignore=!0,A&&(z(A.states,h),A.ignore=!0);return}if(v(M)){var G=(T.startAngle+T.endAngle)/2,U=Math.cos(G),J=Math.sin(G),ae,Q,ee,te;r=T.cx,a=T.cy;var q=D==="inside"||D==="inner";if(D==="center")ae=T.cx,Q=T.cy,te="center";else{var de=(q?(T.r+T.r0)/2*U:T.r*U)+r,ve=(q?(T.r+T.r0)/2*J:T.r*J)+a;if(ae=de+U*3,Q=ve+J*3,!q){var ie=de+U*(I+l-T.r),W=ve+J*(I+l-T.r),Z=ie+(U<0?-1:1)*F,oe=W;B==="edge"?ae=U<0?c+$:c+u-$:ae=Z+(U<0?-L:L),Q=oe,ee=[[de,ve],[ie,W],[Z,oe]]}te=q?"center":B==="edge"?U>0?"right":"left":U>0?"left":"right"}var pe=Math.PI,Se=0,me=E.get("rotate");if(Jt(me))Se=me*(pe/180);else if(D==="center")Se=0;else if(me==="radial"||me===!0){var Ee=U<0?-G+pe:-G;Se=Ee}else if(me==="tangential"&&D!=="outside"&&D!=="outer"){var Ce=Math.atan2(U,J);Ce<0&&(Ce=pe*2+Ce);var we=J>0;we&&(Ce=pe+Ce),Se=Ce-pe}if(i=!!Se,M.x=ae,M.y=Q,M.rotation=Se,M.setStyle({verticalAlign:"middle"}),q){M.setStyle({align:te});var Be=M.states.select;Be&&(Be.x+=M.x,Be.y+=M.y)}else{var Te=M.getBoundingRect().clone();Te.applyTransform(M.getComputedTransform());var Ne=(M.style.margin||0)+2.1;Te.y-=Ne/2,Te.height+=Ne,n.push({label:M,labelLine:A,position:D,len:I,len2:F,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Pt(U,J),linePoints:ee,textAlign:te,labelDistance:L,labelAlignTo:B,edgeDistance:$,bleedMargin:O,rect:Te,unconstrainedWidth:Te.width,labelStyleWidth:M.style.width})}x.setTextConfig({inside:q})}}),!i&&e.get("avoidLabelOverlap")&&v$e(n,r,a,l,u,d,c,f);for(var p=0;p<n.length;p++){var g=n[p],m=g.label,b=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(z(m.states,h),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(b){var C=g.linePoints;_||!C?(z(b.states,h),b.ignore=!0):(X9(C,g.minTurnAngle),AOe(C,g.surfaceNormal,g.maxSurfaceAngle),b.setShape({points:C}),m.__hostTarget.textGuideLineConfig={anchor:new Pt(C[0][0],C[0][1])})}}}var g$e=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;i.z2=2;var o=new qt;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=Ie(Gu(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?(Cn(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,Cn(o,{shape:{r:c.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Cn(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,tn(o,{shape:{endAngle:c.endAngle}},s,r))}else Hi(o),tn(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),Cr(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,n,r),o.ensureState("emphasis").shape=Ie({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Gu(u.getModel("itemStyle"),c)),Ie(o.ensureState("select"),{x:p,y:g,shape:Gu(l.getModel(["select","itemStyle"]),c)}),Ie(o.ensureState("blur"),{shape:Gu(l.getModel(["blur","itemStyle"]),c)});var b=o.getTextGuideLine(),_=o.getTextContent();b&&Ie(b.ensureState("select"),{x:p,y:g}),Ie(_.ensureState("select"),{x:p,y:g}),On(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;xr(i,sr(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 aa,this.setTextGuideLine(h)),OA(this,NA(o),{stroke:u,opacity:Li(s.get(["lineStyle","opacity"]),c,1)})}},t}(ta),m$e=function(e){ge(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=new ta({shape:A7(n,a)});d.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new g$e(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var p=s.getItemGraphicEl(v);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var v=s.getItemGraphicEl(h);Sp(v,n,h)}).execute(),p$e(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}(hn);const y$e=m$e;function qd(e,t,n){t=Re(t)&&{coordDimensions:t}||Ie({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=Yd(r,t).dimensions,i=new Rr(a,e);return i.initData(r,n),i}var b$e=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 Tg=b$e;var _$e=Qt(),w$e=function(e){ge(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 Tg(et(this.getData,this),et(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return qd(this,{coordDimensions:["value"],encodeDefaulter:xt(oA,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=_$e(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=DH(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){uc(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,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}(bn);const S$e=w$e;function C$e(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!(Jt(o)&&!isNaN(o)&&o<0)})}}}function x$e(e){e.registerChartView(y$e),e.registerSeriesModel(S$e),WW("pie",e.registerAction),e.registerLayout(xt(d$e,"pie")),e.registerProcessor(xg("pie")),e.registerProcessor(C$e("pie"))}var T$e=function(e){ge(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 Eo(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}(bn);const M$e=T$e;var I7=4,k$e=function(){function e(){}return e}(),A$e=function(e){ge(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 k$e},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]<I7,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++],v=a[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(v,u),f=Math.max(v,f)}n=this._rect=new Rt(l-o/2,u-s/2,c-l+o,f-u+s)}return n},t}(Ft),E$e=function(){function e(){this.group=new bt}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 A$e({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=zn(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<I7;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=Tt(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 I$e=E$e;var D$e=function(e){ge(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=Cg("").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){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},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 I$e:new Sg,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}(hn);const P$e=D$e;var L$e=function(e){ge(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}(Yt);const R$e=L$e;var O2=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Gn).models[0]},t.type="cartesian2dAxis",t}(Yt);Bn(O2,jd);var D7={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)"]}}},O$e=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},D7),zA=Dt({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}}},D7),N$e=Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},zA),$$e=ft({logBase:10},zA);const P7={category:O$e,value:zA,time:N$e,log:$$e};var B$e={value:1,category:1,time:1,log:1};function md(e,t,n,r){z(B$e,function(a,i){var o=Dt(Dt({},P7[i],!0),r,!0),s=function(l){ge(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=Tp(this),h=d?Fd(c):{},v=f.getTheme();Dt(c,v.get(i+"Axis")),Dt(c,this.getDefaultOption()),c.type=HN(c),d&&yl(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=k2.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",HN)}function HN(e){return e.type||(e.data?"category":"value")}var V$e=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 Oe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),sn(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 F$e=V$e;var N2=["x","y"];function GN(e){return e.type==="interval"||e.type==="time"}var z$e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=N2,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!GN(n)||!GN(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,v=this._transform=[c,0,0,f,d,h];this._invTransform=xc([],v)}}},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 Rt(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 dr(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 dr(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(){var n=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1]),i=Math.min(r[0],r[1]),o=Math.max(n[0],n[1])-a,s=Math.max(r[0],r[1])-i;return new Rt(a,i,o,s)},t}(F$e),H$e=function(e){ge(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}(pi);const G$e=H$e;function $2(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,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}i.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[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?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),nr(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 WN(e){return e.get("coordinateSystem")==="cartesian2d"}function KN(e){var t={xAxisModel:null,yAxisModel:null};return z(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,Gn).models[0];t[r]=i}),t}var nS=Math.log;function L7(e,t,n){var r=bl.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=B9(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=nS(e.base);u=[nS(u[0])/d,nS(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 v=r.getInterval.call(e),p=u[0],g=u[1];if(c&&f)v=(g-p)/o;else if(c)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=Hw(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=Hw(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=Hw(v));var b=v*o;g=Math.ceil(u[1]/v)*v,p=Ln(g-b),p<0&&u[0]>=0?(p=0,g=Ln(b)):g>0&&u[1]<=0&&(g=0,p=-Ln(b))}var _=(a[0].value-i[0].value)/s,w=(a[o].value-i[o].value)/s;r.setExtent.call(e,p+v*_,g+v*w),r.setInterval.call(e,v),(_||w)&&r.setNiceExtent.call(e,p+v,g-v)}var W$e=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=N2,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=Gt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,p=h.scale;A2(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(vc(p,v),A2(p)&&(s=h))}c.length&&(s||(s=c.pop(),vc(s.scale,s.model)),z(c,function(g){L7(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};z(r.x,function(o){UN(r,"y",o,i)}),z(r.y,function(o){UN(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=qn(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(z(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=WRe(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()),z(this._coordsList,function(u){u.calcAffineTransform()});function l(){z(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]),K$e(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]}ht(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",Gn).models[0],a=t.yAxisModel||n&&n.getReferringComponents("yAxis",Gn).models[0],i=t.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,Nt(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,z(s.x,function(c,f){z(s.y,function(d,h){var v="x"+f+"y"+h,p=new z$e(v);p.master=a,p.model=t,a._coordsMap[v]=p,a._coordsList.push(p),p.addAxis(c),p.addAxis(d)})});function u(c){return function(f,d){if(rS(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new G$e(c,bg(f),[0,0],f.get("type"),h),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=i,v.index=d,i._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,n){z(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(WN(a)){var i=KN(a),o=i.xAxisModel,s=i.yAxisModel;if(!rS(o,n)||!rS(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){z(J0(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return z(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);Nt(n,i)<0&&n.push(i),Nt(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(WN(a)){var i=KN(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},e.dimensions=N2,e}();function rS(e,t){return e.getCoordSysModel()===t}function UN(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)YN(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&YN(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function YN(e){return e&&e.type!=="category"&&e.type!=="time"&&GRe(e)}function K$e(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 U$e=W$e;var js=Math.PI,tc=function(){function e(t,n){this.group=new bt,this.opt=n,this.axisModel=t,ft(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new bt({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!jN[t]},e.prototype.add=function(t){jN[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var a=Pk(n-t),i,o;return mp(a)?(o=r>0?"top":"bottom",i="center"):mp(a-js)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<js?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}(),jN={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&&(dr(s,s,o),dr(l,l,o));var c=Ie({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new rr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});hd(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"]);Je(d)&&(d=[d,d]),(Je(h)||Jt(h))&&(h=[h,h]);var v=kc(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];z([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,b){if(d[b]!=="none"&&d[b]!=null){var _=zn(d[b],-p/2,-g/2,p,g,c.stroke,!0),w=m.r+m.offset,C=u?l:s;_.attr({rotation:m.rotate,x:C[0]+w*Math.cos(e.rotation),y:C[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(e,t,n,r){var a=q$e(n,r,t,e),i=Z$e(n,r,t,e);if(j$e(t,i,a),X$e(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Z9(Oe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));e7(o)}},axisName:function(e,t,n,r){var a=nr(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,XN(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*js/180);var v;XN(i)?d=tc.innerTextLayout(e.rotation,h??e.rotation,o):(d=Y$e(e.rotation,i,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,b=nr(e.nameTruncateMaxWidth,g.maxWidth,v),_=new qt({x:f[0],y:f[1],rotation:d.rotation,silent:tc.isLabelSilent(t),style:pn(s,{text:a,font:p,overflow:"truncate",width:b,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($d({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var w=tc.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Tt(_).eventData=w}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Y$e(e,t,n,r){var a=Pk(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return mp(a-js/2)?(o=l?"bottom":"top",i="center"):mp(a-js*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<js*1.5&&a>js/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function j$e(e,t,n){if(!V9(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?($a(i),$a(u)):qN(i,o)&&(r?($a(o),$a(c)):($a(i),$a(u))),a===!1?($a(s),$a(f)):qN(l,s)&&(a?($a(l),$a(d)):($a(s),$a(f)))}}function $a(e){e&&(e.ignore=!0)}function qN(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=sg([]);return Pl(a,a,-e.rotation),n.applyTransform(po([],a,e.getLocalTransform())),r.applyTransform(po([],a,t.getLocalTransform())),n.intersect(r)}}function XN(e){return e==="middle"||e==="center"}function R7(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&&(dr(o,o,t),dr(s,s,t));var c=new rr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});hd(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function q$e(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=R7(u,t.transform,l,ft(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function X$e(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=ft(s.getLineStyle(),ft(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=R7(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function Z$e(e,t,n,r){var a=n.axis,i=nr(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(nr(r.labelRotate,o.get("rotate"))||0)*js/180,c=tc.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=tc.isLabelSilent(n),v=n.get("triggerEvent");return z(l,function(p,g){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,b=p.formattedLabel,_=p.rawLabel,w=o;if(f&&f[m]){var C=f[m];ht(C)&&C.textStyle&&(w=new fn(C.textStyle,o,n.ecModel))}var S=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=a.dataToCoord(m),T=new qt({x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:pn(w,{text:b,align:w.getShallow("align",!0)||c.textAlign,verticalAlign:w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,fill:ut(S)?S(a.type==="category"?_:a.type==="value"?m+"":m,g):S})});if(T.anid="label_"+m,v){var M=tc.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=_,M.tickIndex=g,a.type==="category"&&(M.dataIndex=m),Tt(T).eventData=M}t.add(T),T.updateTransform(),d.push(T),e.add(T),T.decomposeTransform()}),d}}const os=tc;function J$e(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Q$e(n,e,t),n.seriesInvolved&&t3e(n,e),n}function Q$e(e,t,n){var r=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];z(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Lp(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(z(s.getAxes(),xt(p,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&z(v.baseAxes,xt(p,h?"cross":!0,d)),h&&z(v.otherAxes,xt(p,"cross",!1))}function p(g,m,b){var _=b.model.getModel("axisPointer",a),w=_.get("show");if(!(!w||w==="auto"&&!g&&!B2(_))){m==null&&(m=_.get("triggerTooltip")),_=g?e3e(b,f,a,t,g,m):_;var C=_.get("snap"),S=_.get("triggerEmphasis"),x=Lp(b.model),T=m||C||b.type==="category",M=e.axesInfo[x]={key:x,axis:b,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:S,involveSeries:T,snap:C,useHandle:B2(_),seriesModels:[],linkGroup:null};u[x]=M,e.seriesInvolved=e.seriesInvolved||T;var A=n3e(i,b);if(A!=null){var k=o[A]||(o[A]={axesInfo:{}});k.axesInfo[x]=M,k.mapper=i[A].mapper,M.linkGroup=k}}}})}function e3e(e,t,n,r,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};z(s,function(d){l[d]=pt(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&&ft(u,f.textStyle)}}return e.model.getModel("axisPointer",new fn(l,n,r))}function t3e(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||z(e.coordSysAxesInfo[Lp(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 n3e(e,t){for(var n=t.model,r=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(aS(i[r+"AxisId"],n.id)||aS(i[r+"AxisIndex"],n.componentIndex)||aS(i[r+"AxisName"],n.name))return a}}function aS(e,t){return e==="all"||Re(e)&&Nt(e,t)>=0||e===t}function r3e(e){var t=HA(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=B2(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 HA(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Lp(e)]}function a3e(e){var t=HA(e);return t&&t.axisPointerModel}function B2(e){return!!e.get(["handle","show"])}function Lp(e){return e.type+"||"+e.id}var ZN={},i3e=function(e){ge(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&&r3e(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=a3e(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){ZN[n]=r},t.getAxisPointerClass=function(n){return n&&ZN[n]},t.type="axis",t}(kn);const Ec=i3e;var V2=Qt();function O7(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=V2(e).splitAreaColors,d=ot(),h=0;if(f)for(var v=0;v<u.length;v++){var p=f.get(u[v].tickValue);if(p!=null){h=(p+(c-1)*v)%c;break}}var g=a.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=Re(s)?s:[s];for(var v=1;v<u.length;v++){var b=a.toGlobalCoord(u[v].coord),_=void 0,w=void 0,C=void 0,S=void 0;a.isHorizontal()?(_=g,w=l.y,C=b-_,S=l.height,g=_+C):(_=l.x,w=g,C=l.width,S=b-w,g=w+S);var x=u[v-1].tickValue;x!=null&&d.set(x,h),t.add(new Xt({anid:x!=null?"area_"+x:null,shape:{x:_,y:w,width:C,height:S},style:ft({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}V2(e).splitAreaColors=d}}}function N7(e){V2(e).splitAreaColors=null}var o3e=["axisLine","axisTickLabel","axisName"],s3e=["splitArea","splitLine","minorSplitLine"],$7=function(e){ge(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 bt,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=$2(s,n),u=new os(n,Ie({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(A2(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));z(o3e,u.add,u),this._axisGroup.add(u.getGroup()),z(s3e,function(f){n.get([f,"show"])&&l3e[f](this,this._axisGroup,n,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||pg(o,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)}},t.prototype.remove=function(){N7(this)},t.type="cartesianAxis",t}(Ec),l3e={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=Re(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],v=o.getLineStyle(),p=0;p<f.length;p++){var g=a.toGlobalCoord(f[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=c++%s.length,b=f[p].tickValue,_=new rr({anid:b!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:ft({stroke:s[m]},v),silent:!0});hd(_.shape,v.lineWidth),t.add(_)}}},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 v=0;v<u[h].length;v++){var p=a.toGlobalCoord(u[h][v].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new rr({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});hd(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){O7(e,t,n,r)}},B7=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t}($7),u3e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=B7.type,n}return t.type="yAxis",t}($7),c3e=function(e){ge(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 Xt({shape:n.coordinateSystem.getRect(),style:ft({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(kn),JN={offset:0};function V7(e){e.registerComponentView(c3e),e.registerComponentModel(R$e),e.registerCoordinateSystem("cartesian2d",U$e),md(e,"x",O2,JN),md(e,"y",O2,JN),e.registerComponentView(B7),e.registerComponentView(u3e),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function f3e(e){Bt(V7),e.registerSeriesModel(M$e),e.registerChartView(P$e),e.registerLayout(Cg("scatter"))}function d3e(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),r=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();z(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]=QN(c)?c:e$(a)})}),n.each(function(o){var s=K8(r[o],function(l){return QN(l)})||e$(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function QN(e){return!isNaN(e[0])&&!isNaN(e[1])}function e$(e){return[e.cx,e.cy]}function h3e(e){var t=e.polar;if(t){Re(t)||(t=[t]);var n=[];z(t,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),e.radar=e.radar||[],Re(e.radar)||(e.radar=[e.radar]),e.radar.push(r)):n.push(r)}),e.polar=n}z(e.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var v3e=function(e){ge(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 v=d.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var p=Ud(d.getItemVisual(h,"symbolSize")),g=zn(v,-1,-1,2,2),m=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function c(d,h,v,p,g,m){v.removeAll();for(var b=0;b<h.length-1;b++){var _=u(p,g);_&&(_.__dimIdx=b,d[b]?(_.setPosition(d[b]),gg[m?"initProps":"updateProps"](_,{x:h[b][0],y:h[b][1]},n,g)):_.setPosition(h[b]),v.add(_))}}function f(d){return Oe(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new na,p=new aa,g={shape:{points:h}};v.shape.points=f(h),p.shape.points=f(h),Cn(v,g,n,d),Cn(p,g,n,d);var m=new bt,b=new bt;m.add(p),m.add(v),m.add(b),c(p.shape.points,h,b,s,d,!0),s.setItemGraphicEl(d,m)}}).update(function(d,h){var v=l.getItemGraphicEl(h),p=v.childAt(0),g=v.childAt(1),m=v.childAt(2),b={shape:{points:s.getItemLayout(d)}};b.shape.points&&(c(p.shape.points,b.shape.points,m,s,d,!1),Hi(g),Hi(p),tn(p,b,n),tn(g,b,n),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var v=s.getItemModel(h),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),b=s.getItemVisual(h,"style"),_=b.fill;o.add(d),p.useStyle(ft(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Cr(p,v,"lineStyle"),Cr(g,v,"areaStyle");var w=v.getModel("areaStyle"),C=w.isEmpty()&&w.parentModel.isEmpty();g.ignore=C,z(["emphasis","select","blur"],function(T){var M=v.getModel([T,"areaStyle"]),A=M.isEmpty()&&M.parentModel.isEmpty();g.ensureState(T).ignore=A&&C}),g.useStyle(ft(w.getAreaStyle(),{fill:_,opacity:.7,decal:b.decal}));var S=v.getModel("emphasis"),x=S.getModel("itemStyle").getItemStyle();m.eachChild(function(T){if(T instanceof hr){var M=T.style;T.useStyle(Ie({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else T.useStyle(b),T.setColor(_),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=pt(x);var k=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(k==null||isNaN(k))&&(k=""),xr(T,sr(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:k,inheritColor:_,defaultOpacity:b.opacity})}),On(d,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(hn);const p3e=v3e;var g3e=function(e){ge(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 Tg(et(this.getData,this),et(this.getRawData,this))},t.prototype.getInitialData=function(n,r){return qd(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=PW(this,n);return lr("section",{header:u,sortBlocks:!0,blocks:Oe(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return lr("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(Oe(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}(bn);const m3e=g3e;var Mh=P7.value;function Vm(e,t){return ft({show:t},e)}var y3e=function(e){ge(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=Oe(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=ft({color:v.color},l));var g=Dt(pt(v),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:d},!1);if(Je(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else ut(c)&&(g.name=c(g.name,g));var b=new fn(g,null,this.ecModel);return Bn(b,jd.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},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:Dt({lineStyle:{color:"#bbb"}},Mh.axisLine),axisLabel:Vm(Mh.axisLabel,!1),axisTick:Vm(Mh.axisTick,!1),splitLine:Vm(Mh.splitLine,!0),splitArea:Vm(Mh.splitArea,!0),indicator:[]},t}(Yt);const b3e=y3e;var _3e=["axisLine","axisTickLabel","axisName"],w3e=function(e){ge(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=Oe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new os(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});z(i,function(o){z(_3e,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"),v=Re(d)?d:[d],p=Re(h)?h:[h],g=[],m=[];function b(B,$,O){var N=O%$.length;return B[N]=B[N]||[],N}if(i==="circle")for(var _=a[0].getTicksCoords(),w=r.cx,C=r.cy,S=0;S<_.length;S++){if(c){var x=b(g,v,S);g[x].push(new zi({shape:{cx:w,cy:C,r:_[S].coord}}))}if(f&&S<_.length-1){var x=b(m,p,S);m[x].push(new dg({shape:{cx:w,cy:C,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var T,M=Oe(a,function(B,$){var O=B.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),Oe(O,function(N){return r.coordToPoint(N.coord,$)})}),A=[],S=0;S<=T;S++){for(var k=[],E=0;E<a.length;E++)k.push(M[E][S]);if(k[0]&&k.push(k[0].slice()),c){var x=b(g,v,S);g[x].push(new aa({shape:{points:k}}))}if(f&&A){var x=b(m,p,S-1);m[x].push(new na({shape:{points:k.concat(A)}}))}A=k.slice().reverse()}var D=l.getLineStyle(),L=u.getAreaStyle();z(m,function(B,$){this.group.add(Ta(B,{style:ft({stroke:"none",fill:p[$%p.length]},L),silent:!0}))},this),z(g,function(B,$){this.group.add(Ta(B,{style:ft({fill:"none",stroke:v[$%v.length]},D),silent:!0}))},this)},t.type="radar",t}(kn);const S3e=w3e;var C3e=function(e){ge(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}(pi);const x3e=C3e;var T3e=function(){function e(t,n,r){this.dimensions=[],this._model=t,this._indicatorAxes=Oe(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new x3e(o,new bl);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");(Je(s)||Jt(s))&&(s=[0,s]),this.r0=qe(s[0],o),this.r=qe(s[1],o),z(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;z(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();z(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new bl;o.setExtent(0,i),o.setInterval(1),z(r,function(s,l){L7(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 M3e=T3e;function k3e(e){e.registerCoordinateSystem("radar",M3e),e.registerComponentModel(b3e),e.registerComponentView(S3e),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 A3e(e){Bt(k3e),e.registerChartView(p3e),e.registerSeriesModel(m3e),e.registerLayout(d3e),e.registerProcessor(xg("radar")),e.registerPreprocessor(h3e)}var t$="\0_ec_interaction_mutex";function E3e(e,t,n){var r=GA(e);r[t]=n}function I3e(e,t,n){var r=GA(e),a=r[t];a===n&&(r[t]=null)}function n$(e,t){return!!GA(e)[t]}function GA(e){return e[t$]||(e[t$]={})}Ui({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Nn);var D3e=function(e){ge(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var a=et(r._mousedownHandler,r),i=et(r._mousemoveHandler,r),o=et(r._mouseupHandler,r),s=et(r._mousewheelHandler,r),l=et(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=ft(pt(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(!PL(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||!Uy("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||n$(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&&ts(n.event),F7(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){PL(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var r=Uy("zoomOnMouseWheel",n,this._opt),a=Uy("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;iS(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);iS(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!n$(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;iS(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(fi);function iS(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(ts(r.event),F7(e,t,n,r,a))}function F7(e,t,n,r,a){a.isAvailableBehavior=et(Uy,null,n,r),e.trigger(t,a)}function Uy(e,t,n){var r=n[e];return!e||r&&(!Je(r)||t.event[r+"Key"])}const Mg=D3e;function WA(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function KA(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 P3e={axisPointer:1,tooltip:1,brush:1};function X1(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!P3e.hasOwnProperty(r.mainType)&&a&&a.model!==n}function z7(e){if(Je(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 oS,ab={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"},r$=Gt(ab),ib={"alignment-baseline":"textBaseline","stop-color":"stopColor"},a$=Gt(ib),L3e=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=z7(t);this._defsUsePending=[];var a=new bt;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),wa(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;N3e(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Z1(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=G7(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=a;a=new bt,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 Xt({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=oS[s];if(c&&nt(oS,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=i$[s];if(h&&nt(i$,s)){var v=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=v)}}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 bp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ba(n,r),wa(t,r,this._defsUsePending,!1,!1),R3e(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(){oS={g:function(t,n){var r=new bt;return Ba(n,r),wa(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new Xt;return Ba(n,r),wa(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 zi;return Ba(n,r),wa(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 rr;return Ba(n,r),wa(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 A1;return Ba(n,r),wa(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=l$(r));var i=new na({shape:{points:a||[]},silent:!0});return Ba(n,i),wa(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=l$(r));var i=new aa({shape:{points:a||[]},silent:!0});return Ba(n,i),wa(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new hr;return Ba(n,r),wa(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 bt;return Ba(n,s),wa(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 bt;return Ba(n,s),wa(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=mG(r);return Ba(n,a),wa(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),i$={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 Rd(t,n,r,a);return o$(e,i),s$(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 Kk(t,n,r);return o$(e,a),s$(e,a),a}};function o$(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function s$(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={};H7(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Ba(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),ft(t.__inheritedStyle,e.__inheritedStyle))}function l$(e){for(var t=Z1(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 wa(e,t,n,r,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(V3e(e,t),H7(e,o,s),r||F3e(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=u$(i,"fill",o.fill,n)),o.stroke!=null&&(i.style.stroke=u$(i,"stroke",o.stroke,n)),z(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),z(["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=Oe(Z1(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function R3e(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 O3e=/^url\(\s*#(.*?)\)/;function u$(e,t,n,r){var a=n&&n.match(O3e);if(a){var i=Za(a[1]);r.push([e,t,i]);return}return n==="none"&&(n=null),n}function N3e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var $3e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Z1(e){return e.match($3e)||[]}var B3e=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,sS=Math.PI/180;function V3e(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(B3e,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=Z1(o);switch(a=a||La(),s){case"translate":Vi(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":y1(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Pl(a,a,-parseFloat(l[0])*sS);break;case"skewX":var u=Math.tan(parseFloat(l[0])*sS);po(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*sS);po(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 c$=/([^\s:;]+)\s*:\s*([^:;]+)/g;function H7(e,t,n){var r=e.getAttribute("style");if(r){c$.lastIndex=0;for(var a;(a=c$.exec(r))!=null;){var i=a[1],o=nt(ab,i)?ab[i]:null;o&&(t[o]=a[2]);var s=nt(ib,i)?ib[i]:null;s&&(n[s]=a[2])}}}function F3e(e,t,n){for(var r=0;r<r$.length;r++){var a=r$[r],i=e.getAttribute(a);i!=null&&(t[ab[a]]=i)}for(var r=0;r<a$.length;r++){var a=a$[r],i=e.getAttribute(a);i!=null&&(n[ib[a]]=i)}}function G7(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 z3e(e,t){var n=new L3e;return n.parse(e,t)}var H3e=ot(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),G3e=function(){function e(t,n){this.type="geoSVG",this._usedGraphicMap=ot(),this._freedGraphics=[],this._mapName=t,this._parsedXML=z7(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=K3e(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&&z3e(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Nr(r!=null)}catch(g){throw new Error(`Invalid svg format
  91. `+g.message)}var a=new bt;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 Rt(u,c,f,d)}if(s){var v=G7(s,l);r.scaleX=r.scaleY=v.scale,r.x=v.x,r.y=v.y}a.setClipPath(new Xt({shape:l.plain()}));var p=[];return z(n.named,function(g){H3e.get(g.svgNodeTagLower)!=null&&(p.push(g),W3e(g.el))}),{root:a,boundingRect:l,named:p}},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 W3e(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function K3e(e){var t=[],n=ot();return z(e,function(r){if(r.namedFrom==null){var a=new nOe(r.name,r.el);t.push(a),n.set(r.name,a)}}),{regions:t,regionsMap:n}}var F2=[126,25],f$="南海诸岛",pu=[[[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 fu=0;fu<pu.length;fu++)for(var qc=0;qc<pu[fu].length;qc++)pu[fu][qc][0]/=10.5,pu[fu][qc][1]/=-10.5/.75,pu[fu][qc][0]+=F2[0],pu[fu][qc][1]+=F2[1];function U3e(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===f$)return;t.push(new z9(f$,Oe(pu,function(r){return{type:"polygon",exterior:r}}),F2))}}var Y3e={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function j3e(e,t){if(e==="china"){var n=Y3e[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 q3e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function X3e(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:q3e[0]})}var Z3e="name",J3e=function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=ot(),this._mapName=t,this._specialAreas=r,this._geoJSON=e4e(n)}return e.prototype.load=function(t,n){n=n||Z3e;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:Q3e(a)})}var i=ot(),o=[];return z(r.regions,function(s){var l=s.name;t&&nt(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new Rt(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,a;try{a=r?I2(r,t):[]}catch(i){throw new Error(`Invalid geoJson format
  92. `+i.message)}return U3e(n,a),z(a,function(i){var o=i.name;j3e(n,i),X3e(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 Q3e(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 e4e(e){return Je(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var kh=ot();const ss={registerMap:function(e,t,n){if(t.svg){var r=new G3e(e,t.svg);kh.set(e,r)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;var r=new J3e(e,a,n);kh.set(e,r)}},getGeoResource:function(e){return kh.get(e)},getMapForUser:function(e){var t=kh.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=kh.get(e);if(r)return r.load(t,n)}};var UA=["rect","circle","line","ellipse","polygon","polyline","path"],t4e=ot(UA),n4e=ot(UA.concat(["g"])),r4e=ot(UA.concat(["g"])),W7=Qt();function Fm(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function d$(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var a4e=function(){function e(t){var n=new bt;this.uid=Vd("ec_map_draw"),this._controller=new Mg(t.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new bt),n.add(this._svgGroup=new bt)}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,v=!u.childAt(0)||i;v?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):tn(c,h,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,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=ot(),r=ot(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var m=c(h[g],p);m&&v.push(m)}return v}function d(h){return{shape:{points:f(h)}}}a.removeAll(),z(t.geo.regions,function(h){var v=h.name,p=n.get(v),g=r.get(v)||{},m=g.dataIdx,b=g.regionModel;p||(p=n.set(v,new bt),a.add(p),m=s?s.indexOfName(v):null,b=t.isGeo?o.getRegionModel(v):s?s.getItemModel(m):null,r.set(v,{dataIdx:m,regionModel:b}));var _=[],w=[];z(h.geometries,function(x){if(x.type==="polygon"){var T=[x.exterior].concat(x.interiors||[]);u&&(T=y$(T,u)),z(T,function(A){_.push(new na(d(A)))})}else{var M=x.points;u&&(M=y$(M,u,!0)),z(M,function(A){w.push(new aa(d(A)))})}});var C=c(h.getCenter(),l&&l.project);function S(x,T){if(x.length){var M=new I1({culling:!0,segmentIgnoreThreshold:1,shape:{paths:x}});p.add(M),h$(t,M,m,b),v$(t,M,v,b,o,m,C),T&&(d$(M),z(M.states,d$))}}S(_),S(w,!0)}),n.each(function(h,v){var p=r.get(v),g=p.dataIdx,m=p.regionModel;p$(t,h,v,m,o,g),g$(t,h,v,m,o),m$(t,h,v,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=ot(),i=!1;z(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(t4e.get(c)!=null&&f instanceof ci&&h$(t,f,d,h),f instanceof ci&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(r4e.get(c)!=null&&v$(t,f,s,h,l,d,null),p$(t,f,s,h,l,d),g$(t,f,s,h,l),n4e.get(c)!=null)){var v=m$(t,f,s,h,l);v==="self"&&(i=!0);var p=a.get(s)||a.set(s,[]);p.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){dc(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=ss.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=ss.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,WA(o,u.dx,u.dy),r.dispatchAction(Ie(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,KA(o,u.scale,u.originX,u.originY),r.dispatchAction(Ie(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return a.containPoint([c,f])&&!X1(u,r,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var n=t.getTextContent();n&&(n.ignore=W7(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 h$(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=Fm(a),u=Fm(i),c=Fm(s),f=Fm(o),d=e.data;if(d){var h=d.getItemVisual(n,"style"),v=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),v&&(l.decal=pd(v,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,dc(t)}function v$(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;xr(t,sr(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var v=t.getTextContent();if(v&&(W7(v).ignore=v.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function p$(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):Tt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function g$(e,t,n,r,a){e.data||$d({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function m$(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return On(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&UEe(t,a,n),o}function y$(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(),z(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 K7=a4e;var i4e=function(e){ge(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 K7(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 zi({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Ld+1)});if(!f){var h=n.mainSeries.getData(),v=i.getName(l),p=h.indexOfName(v),g=i.getItemModel(l),m=g.getModel("label"),b=h.getItemGraphicEl(p);xr(d,sr(g),{labelFetcher:{getFormattedLabel:function(_,w){return n.getFormattedLabel(p,w)}},defaultText:v}),d.disableLabelAnimation=!0,m.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(_){O0(d,_)}}o.add(d)}}})},t.type="map",t}(hn);const o4e=i4e;var s4e=function(e){ge(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=qd(this,{coordDimensions:["value"],encodeDefaulter:xt(oA,this)}),a=ot(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);a.set(l,!0)}var u=ss.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return z(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 lr("section",{header:u.join(", "),noHeader:!u.length,blocks:[lr("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=zn(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}(bn);const l4e=s4e;function u4e(e,t){var n={};return z(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 c4e(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)}),z(t,function(n,r){for(var a=u4e(Oe(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 f4e(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var a={};z(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,v=s.dataToPoint(d.getCenter());a[f]=h+1,l.setItemLayout(c,{point:v,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 b$=dr,d4e=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Ko,r._rawTransformable=new Ko,r.name=n,r}return t.prototype.setBoundingRect=function(n,r,a,i){return this._rect=new Rt(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 Rt(n,r,a,i)},t.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Rt(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=dr([],i,n),a=dr([],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(),m1(this.transform||(this.transform=[]),r.transform||La()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],xc(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new Ko;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?b$(a,n,i):Ir(a,n)},t.prototype.pointToData=function(n){var r=this.invTransform;return r?b$([],n,r):[n[0],n[1]]},t.prototype.convertToPixel=function(n,r,a){var i=_$(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=_$(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}(Ko);function _$(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const kg=d4e;var h4e={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},U7=["lng","lat"],Y7=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n)||this;i.dimensions=U7,i.type="geo",i._nameCoordMap=ot(),i.map=r;var o=a.projection,s=ss.load(r,a.nameMap,a.nameProperty),l=ss.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=h4e[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:Lt(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 Rt(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(Je(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=w$(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=w$(r);return i===this?i.pointToData(a):null},t}(kg);Bn(Y7,kg);function w$(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Gn).models[0]||{}).coordinateSystem:null}const S$=Y7;function C$(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(S,x,T,M){for(var A=T-S,k=M-x,E=0;E<=100;E++){var D=E/100,L=i.project([S+A*D,x+k*D]);Go(r,r,L),Wo(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"),v=t.getWidth(),p=t.getHeight(),g=f.width/f.height*this.aspectScale,m=!1,b,_;d&&h&&(b=[qe(d[0],v),qe(d[1],p)],_=qe(h,Math.min(v,p)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(_)&&(m=!0));var w;if(m)w={},g>1?(w.width=_,w.height=_/g):(w.height=_,w.width=_*g),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2;else{var C=e.getBoxLayoutParams();C.aspect=g,w=qn(C,{width:v,height:p})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function v4e(e,t){z(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var p4e=function(){function e(){this.dimensions=U7}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 S$(l+s,l,Ie({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=C$,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)}}),z(i,function(o,s){var l=Oe(o,function(c){return c.get("nameMap")}),u=new S$(s,s,Ie({nameMap:v1(l)},a(o[0])));u.zoomLimit=nr.apply(null,Oe(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=C$,u.resize(o[0],n),z(o,function(c){c.coordinateSystem=u,v4e(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=ot(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ss.load(n,r,a);return z(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},e}(),g4e=new p4e;const j7=g4e;var m4e=function(e){ge(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=ss.getGeoResource(n.map);if(i&&i.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,a),uc(n,"label",["show"])},t.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=j7.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=ui(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new fn(o,n,n.ecModel)),o.selected&&(a[s]=!0)),i},ot()),r.selectedMap||(r.selectedMap=a)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new fn(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(ut(i))return o.status=r,i(o);if(Je(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}(Yt);const y4e=m4e;function x$(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function YA(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(x$(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(x$(e,s),r),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var b4e=function(e){ge(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 K7(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;Fu(n.target,function(a){return(r=Tt(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=Tt(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}(kn);const _4e=b4e;function w4e(e,t,n){ss.registerMap(e,t,n)}function q7(e){e.registerCoordinateSystem("geo",j7),e.registerComponentModel(y4e),e.registerComponentView(_4e),e.registerImpl("registerMap",w4e),e.registerImpl("getMap",function(n){return ss.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;z(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];z(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=YA(s,n,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&z(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function S4e(e){Bt(q7),e.registerChartView(o4e),e.registerSeriesModel(l4e),e.registerLayout(f4e),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,c4e),WW("map",e.registerAction)}function C4e(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 x4e(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){k4e(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=A4e(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function T4e(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function T$(e){return arguments.length?e:D4e}function jh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function M4e(e,t){return qn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function k4e(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 A4e(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=lS(s),i=uS(i),s&&i;){a=lS(a),o=uS(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(I4e(E4e(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&&!lS(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!uS(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function lS(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function uS(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function E4e(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function I4e(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 D4e(e,t){return e.parentNode===t.parentNode?1:2}var P4e=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),L4e=function(e){ge(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 P4e},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 v=1;v<i-1;v++){var p=a[v];n.moveTo(p[0],p[1]),h[c]=p[c],n.lineTo(h[0],h[1])}},t}(Ft),R4e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new bt,n}return t.prototype.init=function(n,r){this._controller=new Mg(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){M$(i,c)&&k$(i,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!M$(i,c)){d&&E$(u,f,d,s,n);return}k$(i,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&E$(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=[];T1(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 kg;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)&&!X1(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){WA(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){KA(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}(hn);function M$(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function k$(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(),v=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,p=o.getLayout();i?(n=new wg(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=v.x,n.y=v.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,tn(n,{x:p.x,y:p.y},a);var g=n.getSymbolPath();if(a.get("layout")==="radial"){var m=c.children[0],b=m.getLayout(),_=m.children.length,w=void 0,C=void 0;if(p.x===b.x&&o.isExpand===!0&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};w=Math.atan2(S.y-b.y,S.x-b.x),w<0&&(w=Math.PI*2+w),C=S.x<b.x,C&&(w=w-Math.PI)}else w=Math.atan2(p.y-b.y,p.x-b.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(C=p.x<b.x,C&&(w=w-Math.PI)):(C=p.x>b.x,C||(w=w-Math.PI));var x=C?"left":"right",T=s.getModel("label"),M=T.get("rotate"),A=M*(Math.PI/180),k=g.getTextContent();k&&(g.setTextConfig({position:T.get("position")||x,rotation:M==null?-w:A,origin:"center"}),k.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),D=E==="relative"?cp(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;D&&(Tt(n).focus=D),O4e(a,o,c,n,v,h,p,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var B=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);B&&B.hoverState===fg||O0(n.__edge,L)}})}function O4e(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"),v=l.getModel("lineStyle").getLineStyle(),p=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==n&&(p||(p=r.__edge=new hg({shape:z2(c,f,d,a,a)})),tn(p,{shape:z2(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=[],b=0;b<g.length;b++){var _=g[b].getLayout();m.push([_.x,_.y])}p||(p=r.__edge=new L4e({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),tn(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(ft({strokeNoScale:!0,fill:null},v)),Cr(p,l,"lineStyle"),dc(p),s.add(p))}function A$(e,t,n,r,a){var i=t.tree.root,o=X7(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"),v=r.get("layout"),p=r.get("orient"),g=r.get(["lineStyle","curveness"]);d&&(h==="curve"?ml(d,{shape:z2(v,p,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):h==="polyline"&&r.get("layout")==="orthogonal"&&ml(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function X7(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 E$(e,t,n,r,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=X7(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};ml(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){A$(u,e,r,a,l)}),A$(i,e,r,a,l)}function z2(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=jh(u,f),v=jh(u,f+(d-f)*n),p=jh(c,d+(f-d)*n),g=jh(c,d);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:p.x||0,cpy2:p.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 N4e=R4e;var ei=Qt();function Z7(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,J7(t,n,e),z(n,function(r){z(t.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,xt($4e,e))})}),t.wrapMethod("cloneShallow",xt(V4e,e)),z(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,xt(B4e,e))}),Nr(n[t.dataType]===t)}function $4e(e,t){if(H4e(this)){var n=Ie({},ei(this).datas);n[this.dataType]=t,J7(t,n,e)}else jA(t,this.dataType,ei(this).mainData,e);return t}function B4e(e,t){return e.struct&&e.struct.update(),t}function V4e(e,t){return z(ei(t).datas,function(n,r){n!==t&&jA(n.cloneShallow(),r,t,e)}),t}function F4e(e){var t=ei(this).mainData;return e==null||t==null?t:ei(t).datas[e]}function z4e(){var e=ei(this).mainData;return e==null?[{data:e}]:Oe(Gt(ei(e).datas),function(t){return{type:t,data:ei(e).datas[t]}})}function H4e(e){return ei(e).mainData===e}function J7(e,t,n){ei(e).datas={},z(t,function(r,a){jA(r,a,e,n)})}function jA(e,t,n,r){ei(n).datas[t]=e,ei(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=F4e,e.getLinkedDataAll=z4e}var G4e=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){ut(t)&&(r=n,n=t,t=null),t=t||{},Je(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}(),W4e=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,Re(d)?d.length:1),i.push(c);var h=new G4e(er(c.name,""),a);f?K4e(h,f):a.root=h,a._nodes.push(h);var v=c.children;if(v)for(var p=0;p<v.length;p++)s(v[p],h)}a.root.updateDepthAndHeight(0);var l=Yd(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Rr(l,n);return u.initData(i),r&&r(u),Z7({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function K4e(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const qA=W4e;function Rp(e,t,n){if(e&&Nt(t,e.type)>=0){var r=n.getData().tree.root,a=e.targetNode;if(Je(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 Q7(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function XA(e,t){var n=Q7(e);return Nt(n,t)>=0}function J1(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 U4e=function(e){ge(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 fn(a,this,this.ecModel),o=qA.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.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 lr("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=J1(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}(bn);const Y4e=U4e;function j4e(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 Ah(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 q4e(e,t){e.eachSeriesByType("tree",function(n){X4e(n,t)})}function X4e(e,t){var n=M4e(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=T$(function(_,w){return(_.parentNode===w.parentNode?1:2)/_.depth})):(a=n.width,i=n.height,o=T$());var s=e.getData().tree.root,l=s.children[0];if(l){C4e(s),j4e(l,x4e,o),s.hierNode.modifier=-l.hierNode.prelim,Ah(l,T4e);var u=l,c=l,f=l;Ah(l,function(_){var w=_.getLayout().x;w<u.getLayout().x&&(u=_),w>c.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,v=0,p=0,g=0,m=0;if(r==="radial")v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Ah(l,function(_){g=(_.getLayout().x+h)*v,m=(_.depth-1)*p;var w=jh(g,m);_.setLayout({x:w.x,y:w.y,rawX:g,rawY:m},!0)});else{var b=e.getOrient();b==="RL"||b==="LR"?(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Ah(l,function(_){m=(_.getLayout().x+h)*p,g=b==="LR"?(_.depth-1)*v:a-(_.depth-1)*v,_.setLayout({x:g,y:m},!0)})):(b==="TB"||b==="BT")&&(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Ah(l,function(_){g=(_.getLayout().x+h)*v,m=b==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function Z4e(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");Ie(s,o)})})}function J4e(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=YA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function Q4e(e){e.registerChartView(N4e),e.registerSeriesModel(Y4e),e.registerLayout(q4e),e.registerVisual(Z4e),J4e(e)}var I$=["treemapZoomToNode","treemapRender","treemapMove"];function eBe(e){for(var t=0;t<I$.length;t++)e.registerAction({type:I$[t],update:"updateView"},Nn);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=Rp(n,s,i);if(l){var u=i.getViewRoot();u&&(n.direction=XA(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function eK(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=p2(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var tBe=function(e){ge(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};tK(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new fn({itemStyle:o},this,r);i=n.levels=nBe(i,r);var l=Oe(i||[],function(f){return new fn(f,s,r)},this),u=qA.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var v=u.getNodeByDataIndex(h),p=v?l[v.depth]:null;return d.parentModel=p||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 lr("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=J1(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Ie(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=ot(),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(){eK(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,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}(bn);function tK(e){var t=0;z(e.children,function(r){tK(r);var a=r.value;Re(a)&&(a=a[0]),t+=a});var n=e.value;Re(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Re(e.value)?e.value[0]=n:e.value=n}function nBe(e,t){var n=dn(t.get("color")),r=dn(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;z(e,function(s){var l=new fn(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 rBe=tBe;var aBe=8,D$=8,cS=5,iBe=function(){function e(t){this.group=new bt,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),B1(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=er(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+aBe*2,n.emptyItemWidth);n.totalWidth+=s+D$,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=QIe(n.pos,n.box),d=n.totalWidth,h=n.renderList,v=a.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],m=g.node,b=g.width,_=g.text;d>f.width&&(d-=b-u,b=u,_=null);var w=new na({shape:{points:oBe(l,0,b,c,p===h.length-1,p===0)},style:ft(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new qt({style:pn(i,{text:_})}),textConfig:{position:"inside"},z2:Ld*1e4,onclick:xt(s,m)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=pn(o,{text:_}),w.ensureState("emphasis").style=v,On(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),sBe(w,t,m),l+=b+D$}},e.prototype.remove=function(){this.group.removeAll()},e}();function oBe(e,t,n,r,a,i){var o=[[a?e:e-cS,t],[e+n,t],[e+n,t+r],[a?e:e-cS,t+r]];return!i&&o.splice(2,0,[e+n+cS,t+r/2]),!a&&o.push([e,t+r/2]),o}function sBe(e,t,n){Tt(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&&J1(n,t)}}const lBe=iBe;var uBe=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 cBe(){return new uBe}var H2=bt,P$=Xt,L$=3,R$="label",O$="upperLabel",fBe=Ld*10,dBe=Ld*2,hBe=Ld*3,gu=fc([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),N$=function(e){var t=gu(e);return t.stroke=t.fill=t.lineWidth=null,t},ob=Qt(),vBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=Eh(),n}return t.prototype.render=function(n,r,a,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Nt(o,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Rp(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,v=this._giveContainerGroup(c),p=n.get("animation"),g=this._doRender(v,n,h);p&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,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 H2,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=Eh(),l=Eh(),u=this._storage,c=[];function f(g,m,b,_){return pBe(r,l,u,a,s,c,g,m,b,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],n,i===o||!o,0);var d=v(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:p};function h(g,m,b,_,w){_?(m=g,z(g,function(x,T){!x.isRemoved()&&S(T,T)})):new as(m,g,C,C).add(S).update(S).remove(xt(S,null)).execute();function C(x){return x.getId()}function S(x,T){var M=x!=null?g[x]:null,A=T!=null?m[T]:null,k=f(M,A,b,w);k&&h(M&&M.viewChildren||[],A&&A.viewChildren||[],k,_,w+1)}}function v(g){var m=Eh();return g&&z(g,function(b,_){var w=m[_];z(b,function(C){C&&(w.push(C),ob(C).willDelete=!0)})}),m}function p(){z(d,function(g){z(g,function(m){m.parent&&m.parent.remove(m)})}),z(c,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(n,r,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ut(o)?0:o)||0,u=(ut(s)?null:s)||"cubicOut",c=cBe();z(r.willDeleteEls,function(f,d){z(f,function(h,v){if(!h.invisible){var p=h.parent,g,m=ob(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,_=0;m.willDelete||(b=m.nodeWidth/2,_=m.nodeHeight/2),g=d==="nodeGroup"?{x:b,y:_,style:{opacity:0}}:{shape:{x:b,y:_,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),z(this._storage,function(f,d){z(f,function(h,v){var p=r.lastsForAnimation[d][v],g={};p&&(h instanceof bt?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=Ie({},h.shape),h.setShape(p.oldShape)),p.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(et(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(n){var r=this._controller;r||(r=this._controller=new Mg(n.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",et(this._onPan,this)),r.on("zoom",et(this._onZoom,this)));var a=new Rt(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(i,o,s){return a.contain(o,s)})},t.prototype._clearController=function(){var n=this._controller;n&&(n.dispose(),n=null)},t.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>L$||Math.abs(n.dy)>L$)){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;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new Rt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=La();Vi(u,u,[-r,-a]),y1(u,u,[n.scale,n.scale]),Vi(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.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&&z0(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 lBe(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(XA(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Eh(),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}(hn);function Eh(){return{nodeGroup:[],background:[],content:[]}}function pBe(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,v=c.height,p=c.borderWidth,g=c.invisible,m=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,w=c.upperHeight,C=_&&_.length,S=d.getModel("itemStyle"),x=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),M=d.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,k=ae("nodeGroup",H2);if(!k)return;if(l.add(k),k.x=c.x||0,k.y=c.y||0,k.markRedraw(),ob(k).nodeWidth=h,ob(k).nodeHeight=v,c.isAboveViewRoot)return k;var E=ae("background",P$,u,dBe);E&&I(k,E,C&&c.upperLabelHeight);var D=d.getModel("emphasis"),L=D.get("focus"),B=D.get("blurScope"),$=D.get("disabled"),O=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)wp(k)&&Bu(k,!1),E&&(Bu(E,!$),f.setItemGraphicEl(o.dataIndex,E),s2(E,O,B));else{var N=ae("content",P$,u,hBe);N&&F(k,N),E.disableMorphing=!0,E&&wp(E)&&Bu(E,!1),Bu(k,!$),f.setItemGraphicEl(o.dataIndex,k),s2(k,O,B)}return k;function I(te,q,de){var ve=Tt(q);if(ve.dataIndex=o.dataIndex,ve.seriesIndex=e.seriesIndex,q.setShape({x:0,y:0,width:h,height:v,r:A}),g)G(q);else{q.invisible=!1;var ie=o.getVisual("style"),W=ie.stroke,Z=N$(S);Z.fill=W;var oe=gu(x);oe.fill=x.get("borderColor");var pe=gu(T);pe.fill=T.get("borderColor");var Se=gu(M);if(Se.fill=M.get("borderColor"),de){var me=h-2*p;U(q,W,ie.opacity,{x:p,y:0,width:me,height:w})}else q.removeTextContent();q.setStyle(Z),q.ensureState("emphasis").style=oe,q.ensureState("blur").style=pe,q.ensureState("select").style=Se,dc(q)}te.add(q)}function F(te,q){var de=Tt(q);de.dataIndex=o.dataIndex,de.seriesIndex=e.seriesIndex;var ve=Math.max(h-2*p,0),ie=Math.max(v-2*p,0);if(q.culling=!0,q.setShape({x:p,y:p,width:ve,height:ie,r:A}),g)G(q);else{q.invisible=!1;var W=o.getVisual("style"),Z=W.fill,oe=N$(S);oe.fill=Z,oe.decal=W.decal;var pe=gu(x),Se=gu(T),me=gu(M);U(q,Z,W.opacity,null),q.setStyle(oe),q.ensureState("emphasis").style=pe,q.ensureState("blur").style=Se,q.ensureState("select").style=me,dc(q)}te.add(q)}function G(te){!te.invisible&&i.push(te)}function U(te,q,de,ve){var ie=d.getModel(ve?O$:R$),W=er(d.get("name"),null),Z=ie.getShallow("show");xr(te,sr(d,ve?O$:R$),{defaultText:Z?W:null,inheritColor:q,defaultOpacity:de,labelFetcher:e,labelDataIndex:o.dataIndex});var oe=te.getTextContent();if(oe){var pe=oe.style,Se=g1(pe.padding||0);ve&&(te.setTextConfig({layoutRect:ve}),oe.disableLabelLayout=!0),oe.beforeUpdate=function(){var Ee=Math.max((ve?ve.width:te.shape.width)-Se[1]-Se[3],0),Ce=Math.max((ve?ve.height:te.shape.height)-Se[0]-Se[2],0);(pe.width!==Ee||pe.height!==Ce)&&oe.setStyle({width:Ee,height:Ce})},pe.truncateMinChar=2,pe.lineOverflow="truncate",J(pe,ve,c);var me=oe.getState("emphasis");J(me?me.style:null,ve,c)}}function J(te,q,de){var ve=te?te.text:null;if(!q&&de.isLeafRoot&&ve!=null){var ie=e.get("drillDownIcon",!0);te.text=ie?ie+" "+ve:ve}}function ae(te,q,de,ve){var ie=b!=null&&n[te][b],W=a[te];return ie?(n[te][b]=null,Q(W,ie)):g||(ie=new q,ie instanceof ci&&(ie.z2=gBe(de,ve)),ee(W,ie)),t[te][m]=ie}function Q(te,q){var de=te[m]={};q instanceof H2?(de.oldX=q.x,de.oldY=q.y):de.oldShape=Ie({},q.shape)}function ee(te,q){var de=te[m]={},ve=o.parentNode,ie=q instanceof bt;if(ve&&(!r||r.direction==="drillDown")){var W=0,Z=0,oe=a.background[ve.getRawIndex()];!r&&oe&&oe.oldShape&&(W=oe.oldShape.width,Z=oe.oldShape.height),ie?(de.oldX=0,de.oldY=Z):de.oldShape={x:W,y:Z,width:0,height:0}}de.fadein=!ie}}function gBe(e,t){return e*fBe+t}const mBe=vBe;var Op=z,yBe=ht,sb=-1,ZA=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=pt(t);this.type=r,this.mappingMethod=n,this._normalizeData=wBe[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(fS(a),bBe(a)):n==="category"?a.categories?_Be(a):fS(a,!0):(Nr(n!=="linear"||a.dataExtent),fS(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return et(this._normalizeData,this)},e.listVisualTypes=function(){return Gt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){ht(t)?z(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=Re(t)?[]:ht(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&&Op(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(Re(t))t=t.slice();else if(yBe(t)){var n=[];Op(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||Je(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(Hm(f[1],t,c[1]))return o}else if(c[1]===1/0){if(Hm(f[0],c[0],t))return o}else if(Hm(f[0],c[0],t)&&Hm(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,v){var p=Math.abs(h-t);p<i&&(i=p,a=v)}},e.visualHandlers={color:{applyVisual:Ih("color"),getColorMapper:function(){var t=this.option;return et(t.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),qh.call(this,n)}:function(n,r,a){var i=!!a;return!r&&(n=this._normalizeData(n)),a=gv(n,t.parsedVisual,a),i?a:Oi(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Oi(gv(t,this.option.parsedVisual),"rgba")},category:qh,piecewise:function(t,n){var r=W2.call(this,n);return r==null&&(r=Oi(gv(t,this.option.parsedVisual),"rgba")),r},fixed:mu}},colorHue:zm(function(t,n){return Nf(t,n)}),colorSaturation:zm(function(t,n){return Nf(t,null,n)}),colorLightness:zm(function(t,n){return Nf(t,null,null,n)}),colorAlpha:zm(function(t,n){return vp(t,n)}),decal:{applyVisual:Ih("decal"),_normalizedToVisual:{linear:null,category:qh,piecewise:null,fixed:null}},opacity:{applyVisual:Ih("opacity"),_normalizedToVisual:G2([0,1])},liftZ:{applyVisual:Ih("liftZ"),_normalizedToVisual:{linear:mu,category:mu,piecewise:mu,fixed:mu}},symbol:{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("symbol",a)},_normalizedToVisual:{linear:$$,category:qh,piecewise:function(t,n){var r=W2.call(this,n);return r==null&&(r=$$.call(this,t)),r},fixed:mu}},symbolSize:{applyVisual:Ih("symbolSize"),_normalizedToVisual:G2([0,1])}},e}();function bBe(e){var t=e.pieceList;e.hasSpecialVisual=!1,z(t,function(n,r){n.originIndex=r,n.visual!=null&&(e.hasSpecialVisual=!0)})}function _Be(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Op(t,function(o,s){n[o]=s}),!Re(r)){var a=[];ht(r)?Op(r,function(o,s){var l=n[s];a[l??sb]=o}):a[sb]=r,r=nK(e,a)}for(var i=t.length-1;i>=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function fS(e,t){var n=e.visual,r=[];ht(n)?Op(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]),nK(e,r)}function zm(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:G2([0,1])}}function $$(e){var t=this.option.visual;return t[Math.round(on(e,[0,1],[0,t.length-1],!0))]||{}}function Ih(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function qh(e){var t=this.option.visual;return t[this.option.loop&&e!==sb?e%t.length:e]}function mu(){return this.option.visual[0]}function G2(e){return{linear:function(t){return on(t,e,this.option.visual,!0)},category:qh,piecewise:function(t,n){var r=W2.call(this,n);return r==null&&(r=on(t,e,this.option.visual,!0)),r},fixed:mu}}function W2(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=ZA.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function nK(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Oe(t,function(n){var r=qr(n);return r||[0,0,0,1]})),t}var wBe={linear:function(e){return on(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=ZA.findPieceIndex(e,t,!0);if(n!=null)return on(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??sb},fixed:Nn};function Hm(e,t,n){return e?t<=n:t<n}const _r=ZA;var SBe="itemStyle",rK=Qt();const CBe={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||aK(n,{},e.getViewRoot().getAncestors(),e)}};function aK(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(SBe),l=xBe(s,t,r),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=B$(l),c=TBe(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=B$(l),u.fill=d;else{var v=MBe(e,a,i,s,l,h);z(h,function(p,g){if(p.depth>=n.length||p===n[p.depth]){var m=kBe(a,l,p,g,v,r);aK(p,m,n,r)}})}}}function xBe(e,t,n){var r=Ie({},t),a=n.designatedVisualItemStyle;return z(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function B$(e){var t=dS(e,"color");if(t){var n=dS(e,"colorAlpha"),r=dS(e,"colorSaturation");return r&&(t=Nf(t,null,null,r)),n&&(t=vp(t,n)),t}}function TBe(e,t){return t!=null?Nf(t,null,null,e):null}function dS(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function MBe(e,t,n,r,a,i){if(!(!i||!i.length)){var o=hS(t,"color")||a.color!=null&&a.color!=="none"&&(hS(t,"colorAlpha")||hS(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 rK(d).drColorMappingBy=c,d}}}function hS(e,t){var n=e.get(t);return Re(n)&&n.length?{name:t,range:n}:null}function kBe(e,t,n,r,a,i){var o=Ie({},t);if(a){var s=a.type,l=s==="color"&&rK(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 Np=Math.max,lb=Math.min,V$=nr,JA=z,iK=["itemStyle","borderWidth"],ABe=["itemStyle","gapWidth"],EBe=["upperLabel","show"],IBe=["upperLabel","height"];const DBe={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=qn(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=qe(V$(s.width,l[0]),a),c=qe(V$(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=Rp(r,d,e),v=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,p=e.getViewRoot(),g=Q7(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?$Be(e,h,p,u,c):v?[v.width,v.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var w={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(w),oK(p,_,!1,0),w=p.getLayout(),JA(g,function(S,x){var T=(g[x+1]||p).getValue();S.setLayout(Ie({dataExtent:[T,T],borderWidth:0,upperHeight:0},w))})}var C=e.getData().tree.root;C.setLayout(BBe(s,v,h),!0),e.setLayoutInfo(s),sK(C,new Rt(-s.x,-s.y,a,i),g,p,0)}};function oK(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(iK),u=s.get(ABe)/2,c=lK(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=Np(a-2*d,0),i=Np(i-d-h,0);var v=a*i,p=PBe(e,s,v,t,n,r);if(p.length){var g={x:d,y:h,width:a,height:i},m=lb(a,i),b=1/0,_=[];_.area=0;for(var w=0,C=p.length;w<C;){var S=p[w];_.push(S),_.area+=S.getLayout().area;var x=NBe(_,m,t.squareRatio);x<=b?(w++,b=x):(_.area-=_.pop().getLayout().area,F$(_,m,g,u,!1),m=lb(g.width,g.height),_.length=_.area=0,b=1/0)}if(_.length&&F$(_,m,g,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&v<T&&(n=!0)}for(var w=0,C=p.length;w<C;w++)oK(p[w],t,n,r+1)}}}function PBe(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=sn(o,function(h){return!h.isRemoved()}),RBe(o,s);var u=OBe(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=LBe(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 LBe(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 RBe(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 OBe(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],JA(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 NBe(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?Np(u*r/l,l/(u*a)):1/0}function F$(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],v={},p=c?h.getLayout().area/c:0,g=v[l[o]]=Np(c-2*r,0),m=n[s[i]]+n[l[i]]-u,b=f===d-1||m<p?m:p,_=v[l[i]]=Np(b-2*r,0);v[s[o]]=n[s[o]]+lb(r,g/2),v[s[i]]=u+lb(r,_/2),u+=b,h.setLayout(v,!0)}n[s[o]]+=c,n[l[o]]-=c}function $Be(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 v=i.getValue();if(v===0)return o;u*=c/v;var p=s.getModel(),g=p.get(iK),m=Math.max(g,lK(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>Jx&&(u=Jx),i=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[r*b,a*b]}function BBe(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 sK(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 Rt(t.x-i.x,t.y-i.y,t.width,t.height);JA(e.viewChildren||[],function(u){sK(u,l,n,r,a+1)})}}function lK(e){return e.get(EBe)?e.get(IBe):0}function VBe(e){e.registerSeriesModel(rBe),e.registerChartView(mBe),e.registerVisual(CBe),e.registerLayout(DBe),eBe(e)}function FBe(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){Jt(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function zBe(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){Je(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Ie(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 Gm(e){return e instanceof Array||(e=[e,e]),e}function HBe(e){e.eachSeriesByType("graph",function(t){var n=t.getGraph(),r=t.getEdgeData(),a=Gm(t.get("edgeSymbol")),i=Gm(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=Gm(s.getShallow("symbol",!0)),c=Gm(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(Ie(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 K2="-->",Q1=function(e){return e.get("autoCurveness")||null},uK=function(e,t){var n=Q1(e),r=20,a=[];if(Jt(n))r=n;else if(Re(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},$p=function(e,t,n){var r=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,r,a].join(K2)},cK=function(e){var t=e.split(K2);return[t[0],t[2],t[1]].join(K2)},GBe=function(e,t){var n=$p(e.node1,e.node2,t);return t.__edgeMap[n]},WBe=function(e,t){var n=U2($p(e.node1,e.node2,t),t),r=U2($p(e.node2,e.node1,t),t);return n+r},U2=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function KBe(e){Q1(e)&&(e.__curvenessList=[],e.__edgeMap={},uK(e))}function UBe(e,t,n,r){if(Q1(n)){var a=$p(e,t,n),i=n.__edgeMap,o=i[cK(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 QA(e,t,n,r){var a=Q1(t),i=Re(a);if(!a)return null;var o=GBe(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=WBe(e,t);uK(t,u),e.lineStyle=e.lineStyle||{};var c=$p(e.node1,e.node2,t),f=t.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=cK(c),v=U2(h,t),p=f[s+v+d];return r?i?a&&a[0]===0?(v+d)%2?p:-p:((v%2?0:1)+d)%2?p:-p:(v+d)%2?p:-p:f[s+v+d]}function fK(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")])}),eE(n,e)}}function eE(e,t){e.eachEdge(function(n,r){var a=Li(n.getModel().get(["lineStyle","curveness"]),-QA(n,t,r,!0),0),i=vo(n.node1.getLayout()),o=vo(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 YBe(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=[];z(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])}eE(i.graph,n)}else(!r||r==="none")&&fK(n)})}function Xh(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 Zh(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var z$=Math.PI,vS=[];function tE(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],v=d[1],p=[h-l,v-u];Cc(p,p),vv(p,p,c),n.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);dK(n,g,l,u)}jBe[t](e,s,o,c,l,u,f),s.eachEdge(function(m,b){var _=Li(m.getModel().get(["lineStyle","curveness"]),QA(m,e,b),0),w=vo(m.node1.getLayout()),C=vo(m.node2.getLayout()),S,x=(w[0]+C[0])/2,T=(w[1]+C[1])/2;+_&&(_*=3,S=[l*_+x*(1-_),u*_+T*(1-_)]),m.setLayout([w,C,S])})}}}var jBe={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;vS.length=o;var l=Xh(e);t.eachNode(function(f){var d=Zh(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=z$/2),vS[f.dataIndex]=h,s+=h*2});var u=(2*z$-s)/o/2,c=0;t.eachNode(function(f){var d=u+vS[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+i]),c+=d})}};function dK(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");Ie(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function qBe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&tE(t,"symbolSize")})}var Xc=M0;function XBe(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=Dl(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=vo(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,h=d,v,p;return{warmUp:function(){h=d*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){v=g},afterStep:function(g){p=g},step:function(g){v&&v(r,a);for(var m=[],b=r.length,_=0;_<a.length;_++){var w=a[_];if(!w.ignoreForceLayout){var C=w.n1,S=w.n2;Ws(m,S.p,C.p);var x=fp(m)-w.d,T=S.w/(C.w+S.w);isNaN(T)&&(T=0),Cc(m,m),!C.fixed&&Xc(C.p,C.p,m,T*x*h),!S.fixed&&Xc(S.p,S.p,m,-(1-T)*x*h)}}for(var _=0;_<b;_++){var M=r[_];M.fixed||(Ws(m,l,M.p),Xc(M.p,M.p,m,u*h))}for(var _=0;_<b;_++)for(var C=r[_],A=_+1;A<b;A++){var S=r[A];Ws(m,S.p,C.p);var x=fp(m);x===0&&(Z8(m,Math.random()-.5,Math.random()-.5),x=1);var k=(C.rep+S.rep)/x/x;!C.fixed&&Xc(C.pp,C.pp,m,k),!S.fixed&&Xc(S.pp,S.pp,m,-k)}for(var E=[],_=0;_<b;_++){var M=r[_];M.fixed||(Ws(E,M.p,M.pp),Xc(M.p,M.p,E,h),Ir(M.pp,M.p))}h=h*.992;var D=h<.01;p&&p(r,a,D),g&&g(D)}}}function ZBe(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(_){var w=i.getId(_);i.setItemLayout(_,r[w]||[NaN,NaN])}):!l||l==="none"?fK(t):l==="circular"&&tE(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=Re(f)?f:[f,f],v=Re(d)?d:[d,d];v=[v[1],v[0]];var p=i.mapArray("value",function(_,w){var C=i.getItemLayout(w),S=on(_,u,h);return isNaN(S)&&(S=(h[0]+h[1])/2),{w:S,rep:S,fixed:i.getItemModel(w).get("fixed"),p:!C||isNaN(C[0])||isNaN(C[1])?null:C}}),g=o.mapArray("value",function(_,w){var C=a.getEdgeByIndex(w),S=on(_,c,v);isNaN(S)&&(S=(v[0]+v[1])/2);var x=C.getModel(),T=Li(C.getModel().get(["lineStyle","curveness"]),-QA(C,t,w,!0),0);return{n1:p[C.node1.dataIndex],n2:p[C.node2.dataIndex],d:S,curveness:T,ignoreForceLayout:x.get("ignoreForceLayout")}}),m=n.getBoundingRect(),b=XBe(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(_,w){for(var C=0,S=_.length;C<S;C++)_[C].fixed&&Ir(_[C].p,a.getNodeByIndex(C).getLayout())}),b.afterStep(function(_,w,C){for(var S=0,x=_.length;S<x;S++)_[S].fixed||a.getNodeByIndex(S).setLayout(_[S].p),r[i.getId(S)]=_[S].p;for(var S=0,x=w.length;S<x;S++){var T=w[S],M=a.getEdgeByIndex(S),A=T.n1.p,k=T.n2.p,E=M.getLayout();E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],Ir(E[0],A),Ir(E[1],k),+T.curveness&&(E[2]=[(A[0]+k[0])/2-(A[1]-k[1])*T.curveness,(A[1]+k[1])/2-(k[0]-A[0])*T.curveness]),M.setLayout(E)}}),t.forceLayout=b,t.preservedPoints=r,b.step()}else t.forceLayout=null})}function JBe(e,t,n){var r=Ie(e.getBoxLayoutParams(),{aspect:n});return qn(r,{width:t.getWidth(),height:t.getHeight()})}function QBe(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=[];T1(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=JBe(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,v=c.height,p=r.coordinateSystem=new kg;p.zoomLimit=r.get("scaleLimit"),p.setBoundingRect(s[0],s[1],f,d),p.setViewRect(c.x,c.y,h,v),p.setCenter(r.get("center"),t),p.setZoom(r.get("zoom")),n.push(p)}}),n}var H$=rr.prototype,pS=hg.prototype,hK=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(hK);function gS(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var eVe=function(e){ge(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 hK},t.prototype.buildPath=function(n,r){gS(r)?H$.buildPath.call(this,n,r):pS.buildPath.call(this,n,r)},t.prototype.pointAt=function(n){return gS(this.shape)?H$.pointAt.call(this,n):pS.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var r=this.shape,a=gS(r)?[r.x2-r.x1,r.y2-r.y1]:pS.tangentAt.call(this,n);return Cc(a,a)},t}(Ft);const tVe=eVe;var mS=["fromSymbol","toSymbol"];function G$(e){return"_"+e+"Type"}function W$(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=Ud(a),u=kc(o||0,l);return r+l+u+(i||"")+(s||"")}function K$(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=Ud(a),u=kc(o||0,l),c=zn(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 nVe(e){var t=new tVe({name:"line",subPixelOptimize:!0});return Y2(t.shape,e),t}function Y2(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 rVe=function(e){ge(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=nVe(o);s.shape.percent=0,Cn(s,{shape:{percent:1}},i,r),this.add(s),z(mS,function(l){var u=K$(l,n,r);this.add(u),this[G$(l)]=W$(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:{}};Y2(l.shape,s),tn(o,l,i,r),z(mS,function(u){var c=W$(u,n,r),f=G$(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=K$(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 v=n.getItemModel(r),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),d=p.get("focus"),h=p.get("blurScope"),c=sr(v)}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,z(mS,function(S){var x=this.childOfName(S);if(x){x.setColor(m),x.style.opacity=g.opacity;for(var T=0;T<ea.length;T++){var M=ea[T],A=o.getState(M);if(A){var k=A.style||{},E=x.ensureState(M),D=E.style||(E.style={});k.stroke!=null&&(D[x.__isEmptyBrush?"stroke":"fill"]=k.stroke),k.opacity!=null&&(D.opacity=k.opacity)}}x.markRedraw()}},this);var b=i.getRawValue(r);xr(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(S,x){return i.getFormattedLabel(S,x,n.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(b==null?n.getName(r):isFinite(b)?Ln(b):b)+""});var _=this.getTextContent();if(_){var w=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=w.get("position")||"middle";var C=w.get("distance");Re(C)||(C=[C,C]),_.__labelDistance=C}this.setTextConfig({position:null,local:!0,inside:!1}),On(this,d,h,f)},t.prototype.highlight=function(){ns(this)},t.prototype.downplay=function(){rs(this)},t.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},t.prototype.setLinePoints=function(n){var r=this.childOfName("line");Y2(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=Ws([],f,c);Cc(d,d);function h(A,k){var E=A.__specifiedRotation;if(E==null){var D=l.tangentAt(k);A.attr("rotation",(k===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else A.attr("rotation",E)}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 v=void 0,p=void 0,g=i.__labelDistance,m=g[0]*o,b=g[1]*o,_=u/2,w=l.tangentAt(_),C=[w[1],-w[0]],S=l.pointAt(_);C[1]>0&&(C[0]=-C[0],C[1]=-C[1]);var x=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 M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-b,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=b,p="top";break;default:M=0,p="middle"}switch(i.__position){case"end":i.x=d[0]*m+f[0],i.y=d[1]*b+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",p=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*b+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",p=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*x+c[0],i.y=c[1]+M,v=w[0]<0?"right":"left",i.originX=-m*x,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+M,v="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*x+f[0],i.y=f[1]+M,v=w[0]>=0?"right":"left",i.originX=m*x,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||v})}},t}(bt);const nE=rVe;var aVe=function(){function e(t){this.group=new bt,this._LineCtor=t||nE}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=U$(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=U$(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!iVe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=n.getItemLayout(a);if(yS(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){Ll(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,r){var a=t.getItemLayout(n);if(yS(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(!yS(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 iVe(e){return e.animators&&e.animators.length>0}function U$(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:sr(t)}}function Y$(e){return isNaN(e[0])||isNaN(e[1])}function yS(e){return e&&!Y$(e[0])&&!Y$(e[1])}const rE=aVe;var bS=[],_S=[],wS=[],Zc=cr,SS=tl,j$=Math.abs;function q$(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){bS[0]=Zc(r[0],a[0],i[0],c),bS[1]=Zc(r[1],a[1],i[1],c);var f=j$(SS(bS,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;_S[0]=Zc(r[0],a[0],i[0],s),_S[1]=Zc(r[1],a[1],i[1],s),wS[0]=Zc(r[0],a[0],i[0],h),wS[1]=Zc(r[1],a[1],i[1],h);var f=SS(_S,t)-l;if(j$(f)<.01)break;var v=SS(wS,t)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function CS(e,t){var n=[],r=dp,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=[vo(u[0]),vo(u[1])],u[2]&&u.__original.push(vo(u[2])));var d=u.__original;if(u[2]!=null){if(Ir(a[0],d[0]),Ir(a[1],d[2]),Ir(a[2],d[1]),c&&c!=="none"){var h=Zh(s.node1),v=q$(a,d[0],h*t);r(a[0][0],a[1][0],a[2][0],v,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],v,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var h=Zh(s.node2),v=q$(a,d[1],h*t);r(a[0][0],a[1][0],a[2][0],v,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],v,n),a[1][1]=n[1],a[2][1]=n[2]}Ir(u[0],a[0]),Ir(u[1],a[2]),Ir(u[2],a[1])}else{if(Ir(i[0],d[0]),Ir(i[1],d[1]),Ws(o,i[1],i[0]),Cc(o,o),c&&c!=="none"){var h=Zh(s.node1);M0(i[0],i[0],o,h*t)}if(f&&f!=="none"){var h=Zh(s.node2);M0(i[1],i[1],o,-h*t)}Ir(u[0],i[0]),Ir(u[1],i[1])}})}function X$(e){return e.type==="view"}var oVe=function(e){ge(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 Sg,i=new rE,o=this.group;this._controller=new Mg(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(X$(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):tn(u,c,n)}CS(n.getGraph(),Xh(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,v=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var p=n.get("layout");f.graph.eachNode(function(_){var w=_.dataIndex,C=_.getGraphicEl(),S=_.getModel();if(C){C.off("drag").off("dragend");var x=S.get("draggable");x&&C.on("drag",function(M){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[C.x,C.y]);break;case"circular":f.setItemLayout(w,[C.x,C.y]),_.setLayout({fixed:!0},!0),tE(n,"symbolSize",_,[M.offsetX,M.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(w,[C.x,C.y]),eE(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),C.setDraggable(x,!!S.get("cursor"));var T=S.get(["emphasis","focus"]);T==="adjacency"&&(Tt(C).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var w=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);w&&C==="adjacency"&&(Tt(w).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),m=f.getLayout("cx"),b=f.getLayout("cy");f.graph.eachNode(function(_){dK(_,g,m,b)}),this._firstRender=!1},t.prototype.dispose=function(){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)&&!X1(u,a,n)}),!X$(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){WA(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){KA(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(),CS(n.getGraph(),Xh(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=Xh(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){CS(n.getGraph(),Xh(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(hn);const sVe=oVe;function Jc(e){return"_EC_"+e}var lVe=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[Jc(t)]){var a=new yu(t,n);return a.hostGraph=this,this.nodes.push(a),r[Jc(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[Jc(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(Jt(t)&&(t=this.nodes[t]),Jt(n)&&(n=this.nodes[n]),t instanceof yu||(t=a[Jc(t)]),n instanceof yu||(n=a[Jc(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new vK(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 yu&&(t=t.id),n instanceof yu&&(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 yu||(n=this._nodesMap[Jc(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}(),yu=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=ot(),n=ot(),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}(),vK=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=ot(),n=ot();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 pK(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)}}}Bn(yu,pK("hostGraph","data"));Bn(vK,pK("hostGraph","edgeData"));const uVe=lVe;function gK(e,t,n,r,a){for(var i=new uVe(r),o=0;o<e.length;o++)i.addNode(nr(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(nr(er(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=Eo(e,n);else{var p=Gd.get(h),g=p?p.dimensions||[]:[];Nt(g,"value")<0&&g.concat(["value"]);var m=Yd(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;v=new Rr(m,n),v.initData(e)}var b=new Rr(["value"],n);return b.initData(l,s),a&&a(v,b),Z7({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var cVe=function(e){ge(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 Tg(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),uc(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){KBe(this);var s=gK(i,a,this,!0,l);return z(s.edges,function(u){UBe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),m=p[g];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var f=fn.prototype.getModel;function d(v,p){var g=f.call(this,v,p);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=d,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},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),lr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=RW({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=Oe(this.option.categories||[],function(a){return a.value!=null?a:Ie({value:0},a)}),r=new Rr(["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}(bn);const fVe=cVe;var dVe={type:"graphRoam",event:"graphRoam",update:"none"};function hVe(e){e.registerChartView(sVe),e.registerSeriesModel(fVe),e.registerProcessor(FBe),e.registerVisual(zBe),e.registerVisual(HBe),e.registerLayout(YBe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,qBe),e.registerLayout(ZBe),e.registerCoordinateSystem("graphView",{dimensions:kg.dimensions,create:QBe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Nn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Nn),e.registerAction(dVe,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=YA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var vVe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),pVe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new vVe},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}(Ft);const gVe=pVe;function mVe(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 Wm(e,t){var n=e==null?"":e+"";return t&&(Je(t)?n=t.replace("{value}",n):ut(t)&&(n=t(e))),n}var yVe=function(e){ge(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=mVe(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?rb:ta,v=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];YH(m,!l),u=m[0],c=m[1];for(var b=c-u,_=u,w=[],C=0;v&&C<i.length;C++){var S=Math.min(Math.max(i[C][0],0),1);c=u+b*S;var x=new h({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});x.setStyle({fill:i[C][1]}),x.setStyle(p.getLineStyle(["color","width"])),w.push(x),_=c}w.reverse(),z(w,function(M){return s.add(M)});var T=function(M){if(M<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=M&&(A===0?0:i[A-1][0])<M)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,v=o.r,p=+n.get("min"),g=+n.get("max"),m=n.getModel("splitLine"),b=n.getModel("axisTick"),_=n.getModel("axisLabel"),w=n.get("splitNumber"),C=b.get("splitNumber"),S=qe(m.get("length"),v),x=qe(b.get("length"),v),T=s,M=(l-s)/w,A=M/C,k=m.getModel("lineStyle").getLineStyle(),E=b.getModel("lineStyle").getLineStyle(),D=m.get("distance"),L,B,$=0;$<=w;$++){if(L=Math.cos(T),B=Math.sin(T),m.get("show")){var O=D?D+c:c,N=new rr({shape:{x1:L*(v-O)+d,y1:B*(v-O)+h,x2:L*(v-S-O)+d,y2:B*(v-S-O)+h},style:k,silent:!0});k.stroke==="auto"&&N.setStyle({stroke:i($/w)}),f.add(N)}if(_.get("show")){var O=_.get("distance")+D,I=Wm(Ln($/w*(g-p)+p),_.get("formatter")),F=i($/w),G=L*(v-S-O)+d,U=B*(v-S-O)+h,J=_.get("rotate"),ae=0;J==="radial"?(ae=-T+2*Math.PI,ae>Math.PI/2&&(ae+=Math.PI)):J==="tangential"?ae=-T-Math.PI/2:Jt(J)&&(ae=J*Math.PI/180),ae===0?f.add(new qt({style:pn(_,{text:I,x:G,y:U,verticalAlign:B<-.8?"top":B>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:F}),silent:!0})):f.add(new qt({style:pn(_,{text:I,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:G,originY:U,rotation:ae}))}if(b.get("show")&&$!==w){var O=b.get("distance");O=O?O+c:c;for(var Q=0;Q<=C;Q++){L=Math.cos(T),B=Math.sin(T);var ee=new rr({shape:{x1:L*(v-O)+d,y1:B*(v-O)+h,x2:L*(v-x-O)+d,y2:B*(v-x-O)+h},silent:!0,style:E});E.stroke==="auto"&&ee.setStyle({stroke:i(($+Q/C)/w)}),f.add(ee),T+=A}T-=A}else T+=M}},t.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,v=[],p=n.get(["pointer","show"]),g=n.getModel("progress"),m=g.get("show"),b=n.getData(),_=b.mapDimension("value"),w=+n.get("min"),C=+n.get("max"),S=[w,C],x=[s,l];function T(A,k){var E=b.getItemModel(A),D=E.getModel("pointer"),L=qe(D.get("width"),o.r),B=qe(D.get("length"),o.r),$=n.get(["pointer","icon"]),O=D.get("offsetCenter"),N=qe(O[0],o.r),I=qe(O[1],o.r),F=D.get("keepAspect"),G;return $?G=zn($,N-L/2,I-B,L,B,null,F):G=new gVe({shape:{angle:-Math.PI/2,width:L,r:B,x:N,y:I}}),G.rotation=-(k+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function M(A,k){var E=g.get("roundCap"),D=E?rb:ta,L=g.get("overlap"),B=L?g.get("width"):c/b.count(),$=L?o.r-B:o.r-(A+1)*B,O=L?o.r:o.r-A*B,N=new D({shape:{startAngle:s,endAngle:k,cx:o.cx,cy:o.cy,clockwise:u,r0:$,r:O}});return L&&(N.z2=C-b.get(_,A)%C),N}(m||p)&&(b.diff(d).add(function(A){var k=b.get(_,A);if(p){var E=T(A,s);Cn(E,{rotation:-((isNaN(+k)?x[0]:on(k,S,x,!0))+Math.PI/2)},n),f.add(E),b.setItemGraphicEl(A,E)}if(m){var D=M(A,s),L=g.get("clip");Cn(D,{shape:{endAngle:on(k,S,x,L)}},n),f.add(D),a2(n.seriesIndex,b.dataType,A,D),v[A]=D}}).update(function(A,k){var E=b.get(_,A);if(p){var D=d.getItemGraphicEl(k),L=D?D.rotation:s,B=T(A,L);B.rotation=L,tn(B,{rotation:-((isNaN(+E)?x[0]:on(E,S,x,!0))+Math.PI/2)},n),f.add(B),b.setItemGraphicEl(A,B)}if(m){var $=h[k],O=$?$.shape.endAngle:s,N=M(A,O),I=g.get("clip");tn(N,{shape:{endAngle:on(E,S,x,I)}},n),f.add(N),a2(n.seriesIndex,b.dataType,A,N),v[A]=N}}).execute(),b.each(function(A){var k=b.getItemModel(A),E=k.getModel("emphasis"),D=E.get("focus"),L=E.get("blurScope"),B=E.get("disabled");if(p){var $=b.getItemGraphicEl(A),O=b.getItemVisual(A,"style"),N=O.fill;if($ instanceof hr){var I=$.style;$.useStyle(Ie({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},O))}else $.useStyle(O),$.type!=="pointer"&&$.setColor(N);$.setStyle(k.getModel(["pointer","itemStyle"]).getItemStyle()),$.style.fill==="auto"&&$.setStyle("fill",i(on(b.get(_,A),S,[0,1],!0))),$.z2EmphasisLift=0,Cr($,k),On($,D,L,B)}if(m){var F=v[A];F.useStyle(b.getItemVisual(A,"style")),F.setStyle(k.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,Cr(F,k),On(F,D,L,B)}}),this._progressEls=v)},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=zn(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 bt,h=[],v=[],p=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new qt({silent:!0}),v[m]=new qt({silent:!0})}).update(function(m,b){h[m]=s._titleEls[b],v[m]=s._detailEls[b]}).execute(),l.each(function(m){var b=l.getItemModel(m),_=l.get(u,m),w=new bt,C=i(on(_,[c,f],[0,1],!0)),S=b.getModel("title");if(S.get("show")){var x=S.get("offsetCenter"),T=o.cx+qe(x[0],o.r),M=o.cy+qe(x[1],o.r),A=h[m];A.attr({z2:g?0:2,style:pn(S,{x:T,y:M,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:C})}),w.add(A)}var k=b.getModel("detail");if(k.get("show")){var E=k.get("offsetCenter"),D=o.cx+qe(E[0],o.r),L=o.cy+qe(E[1],o.r),B=qe(k.get("width"),o.r),$=qe(k.get("height"),o.r),O=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:C,A=v[m],N=k.get("formatter");A.attr({z2:g?0:2,style:pn(k,{x:D,y:L,text:Wm(_,N),width:isNaN(B)?null:B,height:isNaN($)?null:$,align:"center",verticalAlign:"middle"},{inheritColor:O})}),VG(A,{normal:k},_,function(F){return Wm(F,N)}),p&&FG(A,m,l,n,{getFormattedLabel:function(F,G,U,J,ae,Q){return Wm(Q?Q.interpolatedValue:_,N)}}),w.add(A)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(hn);const bVe=yVe;var _Ve=function(e){ge(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 qd(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}(bn);const wVe=_Ve;function SVe(e){e.registerChartView(bVe),e.registerSeriesModel(wVe)}var CVe=["itemStyle","opacity"],xVe=function(e){ge(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new aa,s=new qt;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(CVe);c=c??1,a||Hi(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Cn(i,{style:{opacity:c}},o,r)):tn(i,{style:{opacity:c},shape:{points:l.points}},o,r),Cr(i,s),this._updateLabel(n,r),On(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;xr(o,sr(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 Pt(h[0][0],h[0][1]):null},tn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),OA(a,NA(l),{stroke:d})},t}(na),TVe=function(e){ge(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 xVe(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);Sp(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}(hn);const MVe=TVe;var kVe=function(e){ge(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 Tg(et(this.getData,this),et(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return qd(this,{coordDimensions:["value"],encodeDefaulter:xt(oA,this)})},t.prototype._defaultLabelLine=function(n){uc(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}(bn);const AVe=kVe;function EVe(e,t){return qn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IVe(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 ut(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),a}function DVe(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,v;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"),v=[[d,h],[d,h]];else{var p=void 0,g=void 0,m=void 0,b=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-_,d=m-5,f="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+_,d=m+5,f="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,b=g-_,h=b-5,f="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,b=g+_,h=b+5,f="center"):o==="rightTop"?(p=n==="horizontal"?u[3][0]:u[1][0],g=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(b=g-_,h=b-5,f="center"):(m=p+_,d=m+5,f="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],n==="horizontal"?(b=g+_,h=b+5,f="center"):(m=p+_,d=m+5,f="bottom")):o==="leftTop"?(p=u[0][0],g=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(b=g-_,h=b-5,f="center"):(m=p-_,d=m-5,f="right")):o==="leftBottom"?(p=n==="horizontal"?u[1][0]:u[3][0],g=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(b=g+_,h=b+5,f="center"):(m=p-_,d=m-5,f="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,n==="horizontal"?(b=g+_,h=b+5,f="center"):(m=p+_,d=m+5,f="left")),n==="horizontal"?(m=p,d=m):(b=g,h=b),v=[[p,g],[m,b]]}l.label={linePoints:v,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function PVe(e,t){e.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),i=n.get("sort"),o=EVe(n,t),s=n.get("orient"),l=o.width,u=o.height,c=IVe(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)],v=r.getDataExtent(a),p=n.get("min"),g=n.get("max");p==null&&(p=Math.min(v[0],0)),g==null&&(g=v[1]);var m=n.get("funnelAlign"),b=n.get("gap"),_=s==="horizontal"?l:u,w=(_-b*(r.count()-1))/r.count(),C=function(L,B){if(s==="horizontal"){var $=r.get(a,L)||0,O=on($,[p,g],h,!0),N=void 0;switch(m){case"top":N=d;break;case"center":N=d+(u-O)/2;break;case"bottom":N=d+(u-O);break}return[[B,N],[B,N+O]]}var I=r.get(a,L)||0,F=on(I,[p,g],h,!0),G;switch(m){case"left":G=f;break;case"center":G=f+(l-F)/2;break;case"right":G=f+l-F;break}return[[G,B],[G+F,B]]};i==="ascending"&&(w=-w,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var S=0;S<c.length;S++){var x=c[S],T=c[S+1],M=r.getItemModel(x);if(s==="horizontal"){var A=M.get(["itemStyle","width"]);A==null?A=w:(A=qe(A,l),i==="ascending"&&(A=-A));var k=C(x,f),E=C(T,f+A);f+=A+b,r.setItemLayout(x,{points:k.concat(E.slice().reverse())})}else{var D=M.get(["itemStyle","height"]);D==null?D=w:(D=qe(D,u),i==="ascending"&&(D=-D));var k=C(x,d),E=C(T,d+D);d+=D+b,r.setItemLayout(x,{points:k.concat(E.slice().reverse())})}}DVe(r)})}function LVe(e){e.registerChartView(MVe),e.registerSeriesModel(AVe),e.registerLayout(PVe),e.registerProcessor(xg("funnel"))}var RVe=.3,OVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new bt,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=J$(n);s.diff(l).add(d).update(h).remove(v).execute();function d(g){var m=Z$(s,o,g,c,u);xS(m,s,g,f)}function h(g,m){var b=l.getItemGraphicEl(m),_=mK(s,g,c,u);s.setItemGraphicEl(g,b),tn(b,{shape:{points:_}},n,g),Hi(b),xS(b,s,g,f)}function v(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=NVe(u,n,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}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=J$(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=Z$(i,this._dataGroup,c,s,o);f.incremental=!0,xS(f,i,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(hn);function NVe(e,t,n){var r=e.model,a=e.getRect(),i=new Xt({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),Cn(i,{shape:{width:a.width,height:a.height}},t,n),i}function mK(e,t,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],s=e.get(e.mapDimension(o),t);$Ve(s,r.getAxis(o).type)||a.push(r.dataToPoint(s,o))}return a}function Z$(e,t,n,r,a){var i=mK(e,n,r,a),o=new aa({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function J$(e){var t=e.get("smooth",!0);return t===!0&&(t=RVe),t=Co(t),dd(t)&&(t=0),{smooth:t}}function xS(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");Cr(e,a,"lineStyle"),On(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function $Ve(e,t){return t==="category"?e==null:e==null||isNaN(e)}const BVe=OVe;var VVe=function(e){ge(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 Eo(null,this,{useEncodeDefaulter:et(FVe,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}(bn);function FVe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return z(t.dimensions,function(r){var a=zVe(r);n[r]=a}),n}}function zVe(e){return+e.replace("dim","")}const HVe=VVe;var GVe=["lineStyle","opacity"],WVe={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(GVe,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const KVe=WVe;function UVe(e){YVe(e),jVe(e)}function YVe(e){if(!e.parallel){var t=!1;z(e.series,function(n){n&&n.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function jVe(e){var t=dn(e.parallelAxis);z(t,function(n){if(ht(n)){var r=n.parallelIndex||0,a=dn(e.parallel)[r];a&&a.parallelAxisDefault&&Dt(n,a.parallelAxisDefault,!1)}})}var qVe=5,XVe=function(e){ge(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={},z(ZVe,function(i,o){a.getZr().on(o,this._handlers[o]=et(i,this))},this)),Kd(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(n,r){kp(this,"_throttledDispatchExpand"),z(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(Ie({type:"parallelAxisExpand"},n))},t.type="parallel",t}(kn),ZVe={mousedown:function(e){TS(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(TS(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>qVe)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||!TS(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 TS(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const JVe=XVe;var QVe=function(e){ge(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&&Dt(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){z(["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=sn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);z(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}(Yt);const e5e=QVe;var t5e=function(e){ge(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}(pi);const n5e=t5e;function Ic(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=Qc(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=Qc(s,[0,o]),a=i=Qc(s,[a,i]),r=0}t[0]=Qc(t[0],n),t[1]=Qc(t[1],n);var l=MS(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=Qc(t[r],c);var f;return f=MS(t,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-r]=t[r]+l.sign*a),f=MS(t,r),i!=null&&f.span>i&&(t[1-r]=t[r]+f.sign*i),t}function MS(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 Qc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var kS=z,yK=Math.min,bK=Math.max,Q$=Math.floor,r5e=Math.ceil,e3=Ln,a5e=Math.PI,i5e=function(){function e(t,n,r){this.type="parallel",this._axesMap=ot(),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;kS(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new n5e(o,bg(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();kS(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),vc(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=qn(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=Km(t.get("axisExpandWidth"),l),f=Km(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),v;if(h)v=Km(h[1]-h[0],l),h[1]=h[0]+v;else{v=Km(c*(f-1),l);var p=t.get("axisExpandCenter")||Q$(u/2);h=[c*p-v/2],h[1]=h[0]+v}var g=(s-v)/(u-f);g<3&&(g=0);var m=[Q$(e3(h[0]/c,1))+1,r5e(e3(h[1]/c,1))-1],b=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:b}},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])}),kS(r,function(o,s){var l=(a.axisExpandable?s5e:o5e)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:a5e/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],h=La();Pl(h,h,d),Vi(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=[];z(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,v=o.length;h<v;h++){var p=l[h].getActiveState(d[h]);if(p==="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 Ni([t,0],r.transform)},e.prototype.getAxisLayout=function(t){return pt(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?Ic(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[bK(0,v-h/2)],a[1]=yK(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function Km(e,t){return yK(bK(e,t[0]),t[1])}function o5e(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function s5e(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 l5e=i5e;function u5e(e,t){var n=[];return e.eachComponent("parallel",function(r,a){var i=new l5e(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",Gn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var c5e={create:u5e};const f5e=c5e;var _K=function(e){ge(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 fc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=pt(n);if(r)for(var a=r.length-1;a>=0;a--)Ea(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}(Yt);Bn(_K,jd);const t3=_K;var pc=!0,Bp=Math.min,yd=Math.max,d5e=Math.pow,h5e=1e4,v5e=6,p5e=6,n3="globalPan",g5e={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},m5e={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},r3={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},y5e=0,b5e=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new bt,r._uid="brushController_"+y5e++,z(M5e,function(a,i){this._handlers[i]=et(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||E3e(r,n3,this._uid),z(this._handlers,function(a,i){r.on(i,a)}),this._brushType=n.brushType,this._brushOption=Dt(pt(r3),n,!0)},t.prototype._doDisableBrush=function(){var n=this._zr;I3e(n,n3,this._uid),z(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={};z(n,function(a){r[a.panelId]=pt(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=Oe(n,function(d){return Dt(pt(r3),d,!0)});var r="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new as(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 v=n[d];if(h!=null&&a[h]===s)i[d]=a[h];else{var p=i[d]=h!=null?(a[h].__brushOption=v,a[h]):SK(o,wK(o,v));aE(o,p)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),j2(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(fi);function wK(e,t){var n=e_[t.brushType].createCover(e,t);return n.__brushOption=t,xK(n,t),e.group.add(n),n}function SK(e,t){var n=iE(t);return n.endCreating&&(n.endCreating(e,t),xK(t,t.__brushOption)),t}function CK(e,t){var n=t.__brushOption;iE(t).updateCoverShape(e,t,n.range,n)}function xK(e,t){var n=t.z;n==null&&(n=h5e),e.traverse(function(r){r.z=n,r.z2=n})}function aE(e,t){iE(t).updateCommon(e,t),CK(e,t)}function iE(e){return e_[e.__brushOption.brushType]}function oE(e,t,n){var r=e._panels;if(!r)return pc;var a,i=e._transform;return z(r,function(o){o.isTargetByCursor(t,n,i)&&(a=o)}),a}function TK(e,t){var n=e._panels;if(!n)return pc;var r=t.__brushOption.panelId;return r!=null?n[r]:pc}function j2(e){var t=e._covers,n=t.length;return z(t,function(r){e.group.remove(r)},e),t.length=0,!!n}function gc(e,t){var n=Oe(e._covers,function(r){var a=r.__brushOption,i=pt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function _5e(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=d5e(a*a+i*i,.5);return o>v5e}function MK(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function kK(e,t,n,r){var a=new bt;return a.add(new Xt({name:"main",style:sE(n),silent:!0,draggable:!0,cursor:"move",drift:xt(a3,e,t,a,["n","s","w","e"]),ondragend:xt(gc,t,{isEnd:!0})})),z(r,function(i){a.add(new Xt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(a3,e,t,a,i),ondragend:xt(gc,t,{isEnd:!0})}))}),a}function AK(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=yd(a,p5e),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,v=c-o,p=f-s,g=v+a,m=p+a;Lo(e,t,"main",o,s,v,p),r.transformable&&(Lo(e,t,"w",l,u,i,m),Lo(e,t,"e",d,u,i,m),Lo(e,t,"n",l,u,g,i),Lo(e,t,"s",l,h,g,i),Lo(e,t,"nw",l,u,i,i),Lo(e,t,"ne",d,u,i,i),Lo(e,t,"sw",l,h,i,i),Lo(e,t,"se",d,h,i,i))}function q2(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(sE(n)),a.attr({silent:!r,cursor:r?"move":"default"}),z([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?X2(e,i[0]):S5e(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?m5e[s]+"-resize":null})})}function Lo(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(x5e(lE(e,t,[[r,a],[r+i,a+o]])))}function sE(e){return ft({strokeNoScale:!0},e.brushStyle)}function EK(e,t,n,r){var a=[Bp(e,n),Bp(t,r)],i=[yd(e,n),yd(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function w5e(e){return al(e.group)}function X2(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=P1(n[t],w5e(e));return r[a]}function S5e(e,t){var n=[X2(e,t[0]),X2(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function a3(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=IK(t,a,i);z(r,function(u){var c=g5e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(EK(s[0][0],s[1][0],s[0][1],s[1][1])),aE(t,n),gc(t,{isEnd:!1})}function C5e(e,t,n,r){var a=t.__brushOption.range,i=IK(e,n,r);z(a,function(o){o[0]+=i[0],o[1]+=i[1]}),aE(e,t),gc(e,{isEnd:!1})}function IK(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 lE(e,t,n){var r=TK(e,t);return r&&r!==pc?r.clipPath(n,e._transform):pt(n)}function x5e(e){var t=Bp(e[0][0],e[1][0]),n=Bp(e[0][1],e[1][1]),r=yd(e[0][0],e[1][0]),a=yd(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function T5e(e,t,n){if(!(!e._brushType||k5e(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=oE(e,t,n);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===pc||s.panelId===i.panelId)&&e_[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function Z2(e){var t=e.event;t.preventDefault&&t.preventDefault()}function J2(e,t,n){return e.childOfName("main").contain(t,n)}function DK(e,t,n,r){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),_5e(e)||a){if(i&&!a){o.brushMode==="single"&&j2(e);var l=pt(o);l.brushType=i3(l.brushType,i),l.panelId=i===pc?null:i.panelId,a=e._creatingCover=wK(e,l),e._covers.push(a)}if(a){var u=e_[i3(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(lE(e,a,e._track)),r&&(SK(e,a),u.updateCommon(e,a)),CK(e,a),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&oE(e,t,n)&&j2(e)&&(s={isEnd:r,removeOnClick:!0});return s}function i3(e,t){return e==="auto"?t.defaultBrushType:e}var M5e={mousedown:function(e){if(this._dragging)o3(this,e);else if(!e.target||!e.target.draggable){Z2(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=oE(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(T5e(this,e,r),this._dragging){Z2(e);var a=DK(this,e,r,!1);a&&gc(this,a)}},mouseup:function(e){o3(this,e)}};function o3(e,t){if(e._dragging){Z2(t);var n=t.offsetX,r=t.offsetY,a=e.group.transformCoordToLocal(n,r),i=DK(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&gc(e,i)}}function k5e(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var e_={lineX:s3(0),lineY:s3(1),rect:{createCover:function(e,t){function n(r){return r}return kK({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=MK(e);return EK(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){AK(e,t,n,r)},updateCommon:q2,contain:J2},polygon:{createCover:function(e,t){var n=new bt;return n.add(new aa({name:"main",style:sE(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new na({name:"main",draggable:!0,drift:xt(C5e,e,t),ondragend:xt(gc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:lE(e,t,n)})},updateCommon:q2,contain:J2}};function s3(e){return{createCover:function(t,n){return kK({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=MK(t),r=Bp(n[0][e],n[1][e]),a=yd(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=TK(t,n);if(o!==pc&&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(),AK(t,n,l,a)},updateCommon:q2,contain:J2}}const uE=b5e;function PK(e){return e=cE(e),function(t){return qk(t,e)}}function LK(e,t){return e=cE(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 RK(e,t,n){var r=cE(e);return function(a,i){return r.contain(i[0],i[1])&&!X1(a,t,n)}}function cE(e){return Rt.create(e)}var A5e=["axisLine","axisTickLabel","axisName"],E5e=function(e){ge(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 uE(r.getZr())).on("brush",et(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!I5e(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new bt,this.group.add(this._axisGroup),!!n.get("show")){var s=P5e(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=Ie({strokeContainThreshold:c},d),v=new os(n,h);z(A5e,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,n,s,c,a),pg(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=Rt.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:PK(f),isTargetByCursor:RK(f,s,i),getLinearBrushOtherExtent:LK(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(D5e(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=Oe(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}(kn);function I5e(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function D5e(e){var t=e.axis;return Oe(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function P5e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const L5e=E5e;var R5e={type:"axisAreaSelect",event:"axisAreaSelected"};function O5e(e){e.registerAction(R5e,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 N5e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function OK(e){e.registerComponentView(JVe),e.registerComponentModel(e5e),e.registerCoordinateSystem("parallel",f5e),e.registerPreprocessor(UVe),e.registerComponentModel(t3),e.registerComponentView(L5e),md(e,"parallel",t3,N5e),O5e(e)}function $5e(e){Bt(OK),e.registerChartView(BVe),e.registerSeriesModel(HVe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,KVe)}var B5e=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}(),V5e=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new B5e},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(){rs(this)},t}(Ft),F5e=function(e){ge(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(v){var p=new V5e,g=Tt(p);g.dataIndex=v.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var m=v.getModel(),b=m.getModel("lineStyle"),_=b.get("curveness"),w=v.node1.getLayout(),C=v.node1.getModel(),S=C.get("localX"),x=C.get("localY"),T=v.node2.getLayout(),M=v.node2.getModel(),A=M.get("localX"),k=M.get("localY"),E=v.getLayout(),D,L,B,$,O,N,I,F;p.shape.extent=Math.max(1,E.dy),p.shape.orient=h,h==="vertical"?(D=(S!=null?S*u:w.x)+E.sy,L=(x!=null?x*c:w.y)+w.dy,B=(A!=null?A*u:T.x)+E.ty,$=k!=null?k*c:T.y,O=D,N=L*(1-_)+$*_,I=B,F=L*_+$*(1-_)):(D=(S!=null?S*u:w.x)+w.dx,L=(x!=null?x*c:w.y)+E.sy,B=A!=null?A*u:T.x,$=(k!=null?k*c:T.y)+E.ty,O=D*(1-_)+B*_,N=L,I=D*_+B*(1-_),F=$),p.setShape({x1:D,y1:L,x2:B,y2:$,cpx1:O,cpy1:N,cpx2:I,cpy2:F}),p.useStyle(b.getItemStyle()),l3(p.style,h,v);var G=""+m.get("value"),U=sr(m,"edgeLabel");xr(p,U,{labelFetcher:{getFormattedLabel:function(Q,ee,te,q,de,ve){return n.getFormattedLabel(Q,ee,"edge",q,Li(de,U.normal&&U.normal.get("formatter"),G),ve)}},labelDataIndex:v.dataIndex,defaultText:G}),p.setTextConfig({position:"inside"});var J=m.getModel("emphasis");Cr(p,m,"lineStyle",function(Q){var ee=Q.getItemStyle();return l3(ee,h,v),ee}),s.add(p),d.setItemGraphicEl(v.dataIndex,p);var ae=J.get("focus");On(p,ae==="adjacency"?v.getAdjacentDataIndices():ae==="trajectory"?v.getTrajectoryDataIndices():ae,J.get("blurScope"),J.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),m=g.get("localX"),b=g.get("localY"),_=g.getModel("emphasis"),w=new Xt({shape:{x:m!=null?m*u:p.x,y:b!=null?b*c:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});xr(w,sr(g),{labelFetcher:{getFormattedLabel:function(S,x){return n.getFormattedLabel(S,x,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),w.disableLabelAnimation=!0,w.setStyle("fill",v.getVisual("color")),w.setStyle("decal",v.getVisual("style").decal),Cr(w,g),s.add(w),f.setItemGraphicEl(v.dataIndex,w),Tt(w).dataType="node";var C=_.get("focus");On(w,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(v,p){var g=f.getItemModel(p);g.get("draggable")&&(v.drift=function(m,b){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(z5e(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(hn);function l3(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");Je(r)&&Je(a)&&(e.fill=new Rd(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function z5e(e,t,n){var r=new Xt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Cn(r,{shape:{width:e.width+20}},t,n),r}const H5e=F5e;var G5e=function(e){ge(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 fn(o[l],this,r));if(i&&a){var u=gK(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getData().getItemLayout(v);if(g){var m=g.depth,b=p.levelModels[m];b&&(h.parentModel=b)}return h}),d.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(v),m=g.node1.getLayout();if(m){var b=m.depth,_=p.levelModels[b];_&&(h.parentModel=_)}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 lr("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 lr("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}(bn);const W5e=G5e;function K5e(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=U5e(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;j5e(u);var f=sn(u,function(p){return p.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),v=n.get("nodeAlign");Y5e(u,c,r,a,o,s,d,h,v)})}function U5e(e,t){return qn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Y5e(e,t,n,r,a,i,o,s,l){q5e(e,t,n,a,i,s,l),Q5e(e,t,i,a,r,o,s),lFe(e,s)}function j5e(e){z(e,function(t){var n=sl(t.outEdges,ub),r=sl(t.inEdges,ub),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function q5e(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 v=0;v<u.length;v++){var p=u[v],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>h&&(h=g.depth),p.setLayout({depth:m?g.depth:f},!0),i==="vertical"?p.setLayout({dy:n},!0):p.setLayout({dx:n},!0);for(var b=0;b<p.outEdges.length;b++){var _=p.outEdges[b],w=t.indexOf(_);s[w]=0;var C=_.node2,S=e.indexOf(C);--l[S]===0&&c.indexOf(C)<0&&c.push(C)}}++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 x=h>f-1?h:f-1;o&&o!=="left"&&X5e(e,o,i,x);var T=i==="vertical"?(a-n)/x:(r-n)/x;J5e(e,T,i)}function NK(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function X5e(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}z(e,function(f){NK(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&Z5e(e,r)}function Z5e(e,t){z(e,function(n){!NK(n)&&!n.outEdges.length&&n.setLayout({depth:t},!0)})}function J5e(e,t,n){z(e,function(r){var a=r.getLayout().depth*t;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function Q5e(e,t,n,r,a,i,o){var s=eFe(e,o);tFe(s,t,n,r,a,o),AS(s,a,n,r,o);for(var l=1;i>0;i--)l*=.99,nFe(s,l,o),AS(s,a,n,r,o),sFe(s,l,o),AS(s,a,n,r,o)}function eFe(e,t){var n=[],r=t==="vertical"?"y":"x",a=e2(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),z(a.keys,function(i){n.push(a.buckets.get(i))}),n}function tFe(e,t,n,r,a,i){var o=1/0;z(e,function(s){var l=s.length,u=0;z(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)}),z(e,function(s){z(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))})}),z(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function AS(e,t,n,r,a){var i=a==="vertical"?"x":"y";z(e,function(o){o.sort(function(p,g){return p.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 v=a==="vertical"?r:n;if(u=c-t-v,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 nFe(e,t,n){z(e.slice().reverse(),function(r){z(r,function(a){if(a.outEdges.length){var i=sl(a.outEdges,rFe,n)/sl(a.outEdges,ub);if(isNaN(i)){var o=a.outEdges.length;i=o?sl(a.outEdges,aFe,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-_l(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-_l(a,n))*t;a.setLayout({y:l},!0)}}})})}function rFe(e,t){return _l(e.node2,t)*e.getValue()}function aFe(e,t){return _l(e.node2,t)}function iFe(e,t){return _l(e.node1,t)*e.getValue()}function oFe(e,t){return _l(e.node1,t)}function _l(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function ub(e){return e.getValue()}function sl(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 sFe(e,t,n){z(e,function(r){z(r,function(a){if(a.inEdges.length){var i=sl(a.inEdges,iFe,n)/sl(a.inEdges,ub);if(isNaN(i)){var o=a.inEdges.length;i=o?sl(a.inEdges,oFe,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-_l(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-_l(a,n))*t;a.setLayout({y:l},!0)}}})})}function lFe(e,t){var n=t==="vertical"?"x":"y";z(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]})}),z(e,function(r){var a=0,i=0;z(r.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),z(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function uFe(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;z(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),z(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&&z(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function cFe(e){e.registerChartView(H5e),e.registerSeriesModel(W5e),e.registerLayout(K5e),e.registerVisual(uFe),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 $K=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],v=h[c].get("type"),p=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];z(g,function(w,C){var S;Re(w)?(S=w.slice(),w.unshift(C)):Re(w.value)?(S=Ie({},w),S.value=S.value.slice(),w.value.unshift(C)):S=w,m.push(S)}),t.data=m}var b=this.defaultValueDimensions,_=[{name:f,type:Z0(v),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Z0(p),dimsDef:b.slice()}];return qd(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:xt(iW,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),BK=function(e){ge(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}(bn);Bn(BK,$K,!0);const fFe=BK;var dFe=function(e){ge(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=u3(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?(Hi(f),VK(d,f,i,u)):f=u3(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}(hn),hFe=function(){function e(){}return e}(),vFe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new hFe},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}(Ft);function u3(e,t,n,r,a){var i=e.ends,o=new vFe({shape:{points:a?pFe(i,r,e):i}});return VK(e,o,t,n,a),o}function VK(e,t,n,r,a){var i=n.hostModel,o=gg[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");Cr(t,s),On(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function pFe(e,t,n){return Oe(e,function(r){return r=r.slice(),r[t]=n.initBaseline,r})}const gFe=dFe;var Av=z;function mFe(e){var t=yFe(e);Av(t,function(n){var r=n.seriesModels;r.length&&(bFe(n),Av(r,function(a,i){_Fe(a,n.boxOffsetList[i],n.boxWidthList[i])}))})}function yFe(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),i=Nt(n,a);i<0&&(i=n.length,n[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(r)}),t}function bFe(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;Av(n,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Av(n,function(v){var p=v.get("boxWidth");Re(p)||(p=[p,p]),o.push([qe(p[0],s)||0,qe(p[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;Av(n,function(v,p){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[p][0]),o[p][1]))})}function _Fe(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=_(d,c[2],f),v=_(d,c[0],f),p=_(d,c[1],f),g=_(d,c[3],f),m=_(d,c[4],f),b=[];w(b,p,!1),w(b,g,!0),b.push(v,p,m,g),C(b,v),C(b,m),C(b,h),a.setItemLayout(f,{initBaseline:h[s],ends:b})}function _(S,x,T){var M=a.get(x,T),A=[];A[o]=S,A[s]=M;var k;return isNaN(S)||isNaN(M)?k=[NaN,NaN]:(k=r.dataToPoint(A),k[o]+=t),k}function w(S,x,T){var M=x.slice(),A=x.slice();M[o]+=i,A[o]-=i,T?S.push(M,A):S.push(A,M)}function C(S,x){var T=x.slice(),M=x.slice();T[o]-=i,M[o]+=i,S.push(T,M)}}function wFe(e,t){t=t||{};for(var n=[],r=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Ea(e[o].slice()),l=By(s,.25),u=By(s,.5),c=By(s,.75),f=s[0],d=s[s.length-1],h=(a??1.5)*(c-l),v=i?f:Math.max(f,l-h),p=i?d:Math.min(d,c+h),g=t.itemNameFormatter,m=ut(g)?g({value:o}):Je(g)?g.replace("{value}",o+""):o+"";n.push([m,v,l,u,c,p]);for(var b=0;b<s.length;b++){var _=s[b];if(_<v||_>p){var w=[m,_];r.push(w)}}}return{boxData:n,outliers:r}}var SFe={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==$r){var r="";rn(r)}var a=wFe(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function CFe(e){e.registerSeriesModel(fFe),e.registerChartView(gFe),e.registerLayout(mFe),e.registerTransform(SFe)}var xFe=["color","borderColor"],TFe=function(e){ge(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){Ll(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&&c3(u,f))return;var d=ES(f,c,!0);Cn(d,{shape:{points:f.ends}},n,c),IS(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&&c3(u,h)){i.remove(d);return}d?(tn(d,{shape:{points:h.ends}},n,c),Hi(d)):d=ES(h),IS(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(),f3(n,this.group);var r=n.get("clip",!0)?q1(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=ES(s);IS(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){f3(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}(hn),MFe=function(){function e(){}return e}(),kFe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new MFe},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}(Ft);function ES(e,t,n){var r=e.ends;return new kFe({shape:{points:n?AFe(r,e):r},z2:100})}function c3(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 IS(e,t,n,r){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Cr(e,a)}function AFe(e,t){return Oe(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var EFe=function(){function e(){}return e}(),DS=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new EFe},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}(Ft);function f3(e,t,n,r){var a=e.getData(),i=a.getLayout("largePoints"),o=new DS({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new DS({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new DS({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),PS(1,o,e),PS(-1,s,e),PS(0,l,e),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function PS(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(xFe);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const IFe=TFe;var FK=function(e){ge(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}(bn);Bn(FK,$K,!0);const DFe=FK;function PFe(e){!e||!Re(e.series)||z(e.series,function(t){ht(t)&&t.type==="k"&&(t.type="candlestick")})}var LFe=["itemStyle","borderColor"],RFe=["itemStyle","borderColor0"],OFe=["itemStyle","borderColorDoji"],NFe=["itemStyle","color"],$Fe=["itemStyle","color0"],BFe={seriesType:"candlestick",plan:Wd(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?NFe:$Fe)}function r(i,o){return o.get(i===0?OFe:i>0?LFe:RFe)}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");Ie(f,c)}}}}}};const VFe=BFe;var FFe={seriesType:"candlestick",plan:Wd(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=zFe(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=Oe(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?v:h};function h(p,g){for(var m,b=g.getStore();(m=p.next())!=null;){var _=b.get(s,m),w=b.get(u,m),C=b.get(c,m),S=b.get(f,m),x=b.get(d,m),T=Math.min(w,C),M=Math.max(w,C),A=O(T,_),k=O(M,_),E=O(S,_),D=O(x,_),L=[];N(L,k,0),N(L,A,1),L.push(F(D),F(k),F(E),F(A));var B=g.getItemModel(m),$=!!B.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:d3(b,m,w,C,c,$),initBaseline:w>C?k[i]:A[i],ends:L,brushRect:I(S,x,_)})}function O(G,U){var J=[];return J[a]=U,J[i]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(J)}function N(G,U,J){var ae=U.slice(),Q=U.slice();ae[a]=zy(ae[a]+r/2,1,!1),Q[a]=zy(Q[a]-r/2,1,!0),J?G.push(ae,Q):G.push(Q,ae)}function I(G,U,J){var ae=O(G,J),Q=O(U,J);return ae[a]-=r/2,Q[a]-=r/2,{x:ae[0],y:ae[1],width:r,height:Q[1]-ae[1]}}function F(G){return G[a]=zy(G[a],1),G}}function v(p,g){for(var m=co(p.count*4),b=0,_,w=[],C=[],S,x=g.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(S=p.next())!=null;){var M=x.get(s,S),A=x.get(u,S),k=x.get(c,S),E=x.get(f,S),D=x.get(d,S);if(isNaN(M)||isNaN(E)||isNaN(D)){m[b++]=NaN,b+=3;continue}m[b++]=d3(x,S,A,k,c,T),w[a]=M,w[i]=E,_=t.dataToPoint(w,null,C),m[b++]=_?_[0]:NaN,m[b++]=_?_[1]:NaN,w[i]=D,_=t.dataToPoint(w,null,C),m[b++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function d3(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 zFe(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(Lt(e.get("barMaxWidth"),a),a),o=qe(Lt(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?qe(s,a):Math.max(Math.min(a/2,i),o)}const HFe=FFe;function GFe(e){e.registerChartView(IFe),e.registerSeriesModel(DFe),e.registerPreprocessor(PFe),e.registerVisual(VFe),e.registerLayout(HFe)}function h3(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 WFe=function(e){ge(t,e);function t(n,r){var a=e.call(this)||this,i=new wg(n,r),o=new bt;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=zn(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)}h3(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}}h3(a,n)},t.prototype.highlight=function(){ns(this)},t.prototype.downplay=function(){rs(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=Ud(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=kc(n.getItemVisual(r,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var v=n.getItemVisual(r,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=r/n.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,On(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t}(bt);const KFe=WFe;var UFe=function(e){ge(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 Sg(KFe)},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=Cg("").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=eH(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(hn);const YFe=UFe;var jFe=function(e){ge(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 Eo(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}(bn);const qFe=jFe;function XFe(e){e.registerChartView(YFe),e.registerSeriesModel(qFe),e.registerLayout(Cg("effectScatter"))}var ZFe=function(e){ge(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 nE(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");Re(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=zn(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=nr(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;ut(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 Ho(n.__p1,n.__cp1)+Ho(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=cr,c=Vx;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=Ho(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*Ho(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}(bt);const zK=ZFe;var JFe=function(e){ge(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 aa({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)}};tn(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,On(this,l,u,c)},t.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},t}(bt);const HK=JFe;var QFe=function(e){ge(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 HK(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+=Ho(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],v=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t}(zK);const eze=QFe;var tze=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),nze=function(e){ge(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 tze},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,v=(c+d)/2-(f-u)*i;n.quadraticCurveTo(h,v,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 v=i[u++],p=i[u++];if(Bs(f,d,v,p,s,n,r))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],v=i[u++],p=i[u++];if(o>0){var g=(f+v)/2-(d-p)*o,m=(d+p)/2-(v-f)*o;if(jH(f,d,g,m,v,p,s,n,r))return l}else if(Bs(f,d,v,p,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 Rt(i,o,s,l)}return n},t}(Ft),rze=function(){function e(){this.group=new bt}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 nze({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=Tt(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 aze=rze;var ize={seriesType:"lines",plan:Wd(),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 v=0;v<h;v++)d=t.dataToPoint(o[v],!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 p=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 b=p.get(["lineStyle","curveness"]);+b&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*b,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*b])}i.setItemLayout(c,g)}}}}}};const GK=ize;var oze=function(e){ge(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)&&q1(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=GK.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 aze:new rE(o?i?eze:HK:i?zK:nE),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}(hn);const sze=oze;var lze=typeof Uint32Array>"u"?Array:Uint32Array,uze=typeof Float64Array>"u"?Array:Float64Array;function v3(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Oe(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),v1([a,n[0],n[1]])}))}var cze=function(e){ge(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||[],v3(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(v3(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=cp(this._flatCoords,r.flatCoords),this._flatCoordsOffset=cp(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),Jt(n[0])){for(var a=n.length,i=new lze(a),o=new uze(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++],v=n[c++];o[s++]=h,o[s++]=v}}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 Rr(["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),lr("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}(bn);const fze=cze;function Um(e){return e instanceof Array||(e=[e,e]),e}var dze={seriesType:"lines",reset:function(e){var t=Um(e.get("symbol")),n=Um(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=Um(s.getShallow("symbol",!0)),u=Um(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 hze=dze;function vze(e){e.registerChartView(sze),e.registerSeriesModel(fze),e.registerLayout(GK),e.registerVisual(hze)}var pze=256,gze=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Bi.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 v=0;v<h;++v){var p=t[v],g=p[0],m=p[1],b=p[2],_=a(b);d.globalAlpha=_,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),C=w.data,S=0,x=C.length,T=this.minOpacity,M=this.maxOpacity,A=M-T;S<x;){var _=C[S+3]/256,k=Math.floor(_*(pze-1))*4;if(_>0){var E=o(_)?l:u;_>0&&(_=_*A+T),C[S++]=E[k],C[S++]=E[k+1],C[S++]=E[k+2],C[S++]=E[k+3]*_*256}else S+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Bi.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 mze=gze;function yze(e,t,n){var r=e[1]-e[0];t=Oe(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 bze(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 p3(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var _ze=function(e){ge(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()):p3(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&&(p3(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){Ll(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=Ac(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,c=v.getBandWidth()+.5,f=h.scale.getExtent(),d=v.scale.getExtent()}for(var p=this.group,g=n.getData(),m=n.getModel(["emphasis","itemStyle"]).getItemStyle(),b=n.getModel(["blur","itemStyle"]).getItemStyle(),_=n.getModel(["select","itemStyle"]).getItemStyle(),w=n.get(["itemStyle","borderRadius"]),C=sr(n),S=n.getModel("emphasis"),x=S.get("focus"),T=S.get("blurScope"),M=S.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],k=a;k<i;k++){var E=void 0,D=g.getItemVisual(k,"style");if(l){var L=g.get(A[0],k),B=g.get(A[1],k);if(isNaN(g.get(A[2],k))||isNaN(L)||isNaN(B)||L<f[0]||L>f[1]||B<d[0]||B>d[1])continue;var $=s.dataToPoint([L,B]);E=new Xt({shape:{x:$[0]-u/2,y:$[1]-c/2,width:u,height:c},style:D})}else{if(isNaN(g.get(A[1],k)))continue;E=new Xt({z2:1,shape:s.dataToRect([g.get(A[0],k)]).contentShape,style:D})}if(g.hasItemOption){var O=g.getItemModel(k),N=O.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),b=O.getModel(["blur","itemStyle"]).getItemStyle(),_=O.getModel(["select","itemStyle"]).getItemStyle(),w=O.get(["itemStyle","borderRadius"]),x=N.get("focus"),T=N.get("blurScope"),M=N.get("disabled"),C=sr(O)}E.shape.r=w;var I=n.getRawValue(k),F="-";I&&I[2]!=null&&(F=I[2]+""),xr(E,C,{labelFetcher:n,labelDataIndex:k,defaultOpacity:D.opacity,defaultText:F}),E.ensureState("emphasis").style=m,E.ensureState("blur").style=b,E.ensureState("select").style=_,On(E,x,T,M),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),p.add(E),g.setItemGraphicEl(k,E),this._progressiveEls&&this._progressiveEls.push(E)}},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 mze;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),v=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=v-d,m=p-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(x,T,M){var A=n.dataToPoint([x,T]);return A[0]-=d,A[1]-=h,A.push(M),A}),w=a.getExtent(),C=a.type==="visualMap.continuous"?bze(w,a.option.range):yze(w,a.getPieceList(),a.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var S=new hr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(hn);const wze=_ze;var Sze=function(e){ge(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 Eo(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=Gd.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}(bn);const Cze=Sze;function xze(e){e.registerChartView(wze),e.registerSeriesModel(Cze)}var Tze=["itemStyle","borderWidth"],g3=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],LS=new zi,Mze=function(e){ge(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:g3[+c],categoryDim:g3[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var v=y3(o,h),p=m3(o,h,v,d),g=b3(o,d,p);o.setItemGraphicEl(h,g),i.add(g),w3(g,d,p)}}).update(function(h,v){var p=s.getItemGraphicEl(v);if(!o.hasValue(h)){i.remove(p);return}var g=y3(o,h),m=m3(o,h,g,d),b=qK(o,m);p&&b!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?Lze(p,d,m):p=b3(o,d,m,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=m,i.add(p),w3(p,d,m)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&_3(s,h,v.__pictorialSymbolMeta.animationModel,v)}).execute(),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){_3(i,Tt(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(hn);function m3(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};kze(n,i,a,r,d),Aze(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),Eze(n,d.symbolScale,u,r,d);var h=d.symbolSize,v=kc(n.get("symbolOffset"),h);return Ize(n,h,a,i,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function kze(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(Re(o)){var f=[RS(s,o[0])-l,RS(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=RS(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 RS(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Aze(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"),v;Re(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=qe(v[f.index],d),v[c.index]=qe(v[c.index],r?d:Math.abs(i)),u.symbolSize=v;var p=u.symbolScale=[v[0]/s,v[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function Eze(e,t,n,r,a){var i=e.get(Tze)||0;i&&(LS.attr({scaleX:t[0],scaleY:t[1],rotation:n}),LS.updateTransform(),i/=LS.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function Ize(e,t,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,v=f.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(r){var m=Math.abs(l),b=nr(e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var w=qe(b,t[h.index]),C=Math.max(p+w*2,0),S=_?0:w*2,x=Rk(r),T=x?r:S3((m+S)/C),M=m-T*p;w=M/2/(_?T:Math.max(T-1,1)),C=p+w*2,S=_?0:w*2,!x&&r!=="fixed"&&(T=u?S3((Math.abs(u)+S)/C):0),g=T*C-S,f.repeatTimes=T,f.symbolMargin=w}var A=v*(g/2),k=f.pathPosition=[];k[d.index]=n[d.wh]/2,k[h.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(k[0]+=i[0],k[1]+=i[1]);var E=f.bundlePosition=[];E[d.index]=n[d.xy],E[h.index]=n[h.xy];var D=f.barRectShape=Ie({},n);D[h.wh]=v*Math.max(Math.abs(n[h.wh]),Math.abs(k[h.index]+A)),D[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 WK(e){var t=e.symbolPatternSize,n=zn(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function KK(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(fE(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Ff(p,null,v(c),n,r):Ff(p,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(p)}),c++});c<u;c++){var d=WK(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=v(c);Ff(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function v(p){var g=s.slice(),m=n.pxSign,b=p;return(n.symbolRepeatDirection==="start"?m>0:m<0)&&(b=u-1-p),g[l.index]=f*(b-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function UK(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Ff(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=WK(n),a.add(i),Ff(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 YK(e,t,n){var r=Ie({},t.barRectShape),a=e.__pictorialBarRect;a?Ff(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new Xt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function jK(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=Ie({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)tn(a,{shape:i},s,l);else{i[o.wh]=0,a=new Xt({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],gg[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function y3(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Dze,n.isAnimationEnabled=Pze,n}function Dze(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Pze(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function b3(e,t,n,r){var a=new bt,i=new bt;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?KK(a,t,n):UK(a,t,n),YK(a,n,r),jK(a,t,n,r),a.__pictorialShapeStr=qK(e,n),a.__pictorialSymbolMeta=n,a}function Lze(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;tn(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?KK(e,t,n,!0):UK(e,t,n,!0),YK(e,n,!0),jK(e,t,n,!0)}function _3(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];fE(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),z(i,function(o){ml(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function qK(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function fE(e,t,n){z(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function Ff(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&gg[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function w3(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");fE(e,function(p){if(p instanceof hr){var g=p.style;p.useStyle(Ie({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},n.style))}else p.useStyle(n.style);var m=p.ensureState("emphasis");m.style=o,d&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=n.z2});var h=t.valueDim.posDesc[+(n.boundingLength>0)],v=e.__pictorialBarRect;xr(v,sr(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:gd(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),On(e,c,f,i.get("disabled"))}function S3(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const Rze=Mze;var Oze=function(e){ge(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=Rl(nb.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%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(nb);const Nze=Oze;function $ze(e){e.registerChartView(Rze),e.registerSeriesModel(Nze),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,xt(I9,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D9("pictorialBar"))}var Bze=function(e){ge(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 as(this._layersSeries||[],l,d,d),v=[];h.add(et(p,this,"add")).update(et(p,this,"update")).remove(et(p,this,"remove")).execute();function p(g,m,b){var _=o._layers;if(g==="remove"){s.remove(_[m]);return}for(var w=[],C=[],S,x=l[m].indices,T=0;T<x.length;T++){var M=i.getItemLayout(x[T]),A=M.x,k=M.y0,E=M.y;w.push(A,k),C.push(A,k+E),S=i.getItemVisual(x[T],"style")}var D,L=i.getItemLayout(x[0]),B=n.getModel("label"),$=B.get("margin"),O=n.getModel("emphasis");if(g==="add"){var N=v[m]=new bt;D=new b7({shape:{points:w,stackedOnPoints:C,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),N.add(D),s.add(N),n.isAnimationEnabled()&&D.setClipPath(Vze(D.getBoundingRect(),n,function(){D.removeClipPath()}))}else{var N=_[b];D=N.childAt(0),s.add(N),v[m]=N,tn(D,{shape:{points:w,stackedOnPoints:C}},n),Hi(D)}xr(D,sr(n),{labelDataIndex:x[T-1],defaultText:i.getName(x[T-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),D.setTextConfig({position:null,local:!0});var I=D.getTextContent();I&&(I.x=L.x-$,I.y=L.y0+L.y/2),D.useStyle(S),i.setItemGraphicEl(m,D),Cr(D,n),On(D,O.get("focus"),O.get("blurScope"),O.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(hn);function Vze(e,t,n){var r=new Xt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Cn(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}const Fze=Bze;var OS=2,zze=function(e){ge(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 Tg(et(this.getData,this),et(this.getRawData,this))},t.prototype.fixData=function(n){var r=n.length,a={},i=e2(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",Gn).models[0],i=a.get("type"),o=sn(n.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ot(),c=0,f=0;f<s.length;++f)l.push(s[f][OS]),u.get(s[f][OS])||(u.set(s[f][OS],c),c++);var d=Yd(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Z0(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Rr(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=e2(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){Re(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,v=0;v<h;++v){var p=i.get(n[0],o[c].indices[v]),g=Math.abs(p-r);g<=f&&(u=p,f=g,d=o[c].indices[v])}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 lr("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}(bn);const Hze=zze;function Gze(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];C3(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];C3(r,n,c)}r.setLayout("layoutInfo",i)})}function C3(e,t,n){if(e.count())for(var r=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=Oe(a,function(g){return Oe(g.indices,function(m){var b=r.dataToPoint(e.get(i,m));return b[1]=e.get(o,m),b})}),l=Wze(s),u=l.y0,c=n/l.max,f=a.length,d=a[0].indices.length,h,v=0;v<d;++v){h=u[v]*c,e.setItemLayout(a[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:h,y:s[0][v][1]*c});for(var p=1;p<f;++p)h+=s[p-1][v][1]*c,e.setItemLayout(a[p].indices[v],{layerIndex:p,x:s[p][v][0],y0:h,y:s[p][v][1]*c})}}function Wze(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 Kze(e){e.registerChartView(Fze),e.registerSeriesModel(Hze),e.registerLayout(Gze),e.registerProcessor(xg("themeRiver"))}var Uze=2,Yze=4,jze=function(e){ge(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=Uze,o.textConfig={inside:!0},Tt(o).seriesIndex=r.seriesIndex;var s=new qt({z2:Yze,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;Tt(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=Ie({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=pd(h,o));var v=Gu(l.getModel("itemStyle"),f,!0);Ie(f,v),z(ea,function(b){var _=s.ensureState(b),w=l.getModel([b,"itemStyle"]);_.style=w.getItemStyle();var C=Gu(w,f);C&&(_.shape=C)}),n?(s.setShape(f),s.shape.r=c.r0,Cn(s,{shape:{r:c.r}},a,r.dataIndex)):(tn(s,{shape:f},a),Hi(s)),s.useStyle(d),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;On(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,v=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!p,z(_p,function(m){var b=m==="normal"?a.getModel("label"):a.getModel([m,"label"]),_=m==="normal",w=_?d:d.ensureState(m),C=n.getFormattedLabel(h,m);_&&(C=C||r.node.name),w.style=pn(b,{},null,m!=="normal",!0),C&&(w.style.text=C);var S=b.get("show");S!=null&&!_&&(w.ignore=!S);var x=g(b,"position"),T=_?f:f.states[m],M=T.style.fill;T.textConfig={outsideFill:b.get("color")==="inherit"?M:null,inside:x!=="outside"};var A,k=g(b,"distance")||0,E=g(b,"align");x==="outside"?(A=o.r+k,E=l>Math.PI/2?"right":"left"):!E||E==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,E="center"):E==="left"?(A=o.r0+k,l>Math.PI/2&&(E="right")):E==="right"&&(A=o.r-k,l>Math.PI/2&&(E="left")),w.style.align=E,w.style.verticalAlign=g(b,"verticalAlign")||"middle",w.x=A*u+o.cx,w.y=A*c+o.cy;var D=g(b,"rotate"),L=0;D==="radial"?(L=Ei(-l),L>Math.PI/2&&L<Math.PI*1.5&&(L+=Math.PI)):D==="tangential"?(L=Math.PI/2-l,L>Math.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):Jt(D)&&(L=D*Math.PI/180),w.rotation=Ei(L)});function g(m,b){var _=m.get(b);return _??i.get(b)}d.dirtyStyle()},t}(ta);const x3=jze;var Q2="sunburstRootToNode",T3="sunburstHighlight",qze="sunburstUnhighlight";function Xze(e){e.registerAction({type:Q2,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(a,i){var o=Rp(t,[Q2],a);if(o){var s=a.getViewRoot();s&&(t.direction=XA(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:T3,update:"none"},function(t,n,r){t=Ie({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Rp(t,[T3],i);o&&(t.dataIndex=o.node.dataIndex)}r.dispatchAction(Ie(t,{type:"highlight"}))}),e.registerAction({type:qze,update:"updateView"},function(t,n,r){t=Ie({},t),r.dispatchAction(Ie(t,{type:"downplay"}))})}var Zze=function(e){ge(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(b){d.push(b)});var h=this._oldChildren||[];v(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function v(b,_){if(b.length===0&&_.length===0)return;new as(_,b,w,w).add(C).update(C).remove(xt(C,null)).execute();function w(S){return S.getId()}function C(S,x){var T=S==null?null:b[S],M=x==null?null:_[x];p(T,M)}}function p(b,_){if(!f&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,n,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):g(_);else if(b){var w=new x3(b,n,r,a);c.add(w),s.setItemGraphicEl(b.dataIndex,w)}}}function g(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function m(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,n,r,a):(o.virtualPiece=new x3(b,n,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(_.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";z0(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Q2,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}(hn);const Jze=Zze;var Qze=function(e){ge(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};XK(a);var i=this._levelModels=Oe(n.levels||[],function(l){return new fn(l,this,r)},this),o=qA.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=J1(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(){eK(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}(bn);function XK(e){var t=0;z(e.children,function(r){XK(r);var a=r.value;Re(a)&&(a=a[0]),t+=a});var n=e.value;Re(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Re(e.value)?e.value[0]=n:e.value=n}const e6e=Qze;var M3=Math.PI/180;function t6e(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");Re(i)||(i=[0,i]),Re(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")*M3,v=r.get("minAngle")*M3,p=r.getData().tree.root,g=r.getViewRoot(),m=g.depth,b=r.get("sort");b!=null&&ZK(g,b);var _=0;z(g.children,function($){!isNaN($.getValue())&&_++});var w=g.getValue(),C=Math.PI/(w||_)*2,S=g.depth>0,x=g.height-(S?-1:1),T=(d-f)/(x||1),M=r.get("clockwise"),A=r.get("stillShowZeroSum"),k=M?1:-1,E=function($,O){if($){var N=O;if($!==p){var I=$.getValue(),F=w===0&&A?C:I*C;F<v&&(F=v),N=O+k*F;var G=$.depth-m-(S?-1:1),U=f+T*G,J=f+T*(G+1),ae=r.getLevelModel($);if(ae){var Q=ae.get("r0",!0),ee=ae.get("r",!0),te=ae.get("radius",!0);te!=null&&(Q=te[0],ee=te[1]),Q!=null&&(U=qe(Q,l/2)),ee!=null&&(J=qe(ee,l/2))}$.setLayout({angle:F,startAngle:O,endAngle:N,clockwise:M,cx:u,cy:c,r0:U,r:J})}if($.children&&$.children.length){var q=0;z($.children,function(de){q+=E(de,O+q)})}return N-O}};if(S){var D=f,L=f+T,B=Math.PI*2;p.setLayout({angle:B,startAngle:h,endAngle:h+B,clockwise:M,cx:u,cy:c,r0:D,r:L})}E(g,h)})}function ZK(e,t){var n=e.children||[];e.children=n6e(n,t),n.length&&z(e.children,function(r){ZK(r,t)})}function n6e(e,t){if(ut(t)){var n=Oe(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)}),Oe(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 r6e(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&&Je(s)&&(s=I0(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");Ie(u,l)})})}function a6e(e){e.registerChartView(Jze),e.registerSeriesModel(e6e),e.registerLayout(xt(t6e,"sunburst")),e.registerProcessor(xt(xg,"sunburst")),e.registerVisual(r6e),Xze(e)}var k3={color:"fill",borderColor:"stroke"},i6e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},jo=Qt(),o6e=function(e){ge(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 Eo(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=jo(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}(bn);const s6e=o6e;function l6e(e,t){return t=t||[0,0],Oe(["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 u6e(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:et(l6e,e)}}}function c6e(e,t){return t=t||[0,0],Oe([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 f6e(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:et(c6e,e)}}}function d6e(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 h6e(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:et(d6e,e)}}}function v6e(e,t){return t=t||[0,0],Oe(["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 p6e(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:et(v6e,e)}}}function g6e(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 JK(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||nt(e,"text")))}function QK(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},nt(r,"text")&&(o.text=r.text),nt(r,"rich")&&(o.rich=r.rich),nt(r,"textFill")&&(o.fill=r.textFill),nt(r,"textStroke")&&(o.stroke=r.textStroke),nt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),nt(r,"fontSize")&&(o.fontSize=r.fontSize),nt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),nt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=nt(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),nt(r,"textPosition")&&(a.position=r.textPosition),nt(r,"textOffset")&&(a.offset=r.textOffset),nt(r,"textRotation")&&(a.rotation=r.textRotation),nt(r,"textDistance")&&(a.distance=r.textDistance)}return A3(o,e),z(o.rich,function(l){A3(l,l)}),{textConfig:a,textContent:i}}function A3(e,t){t&&(t.font=t.textFont||t.font,nt(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),nt(t,"textAlign")&&(e.align=t.textAlign),nt(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),nt(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),nt(t,"textWidth")&&(e.width=t.textWidth),nt(t,"textHeight")&&(e.height=t.textHeight),nt(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),nt(t,"textPadding")&&(e.padding=t.textPadding),nt(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),nt(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),nt(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),nt(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),nt(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),nt(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),nt(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function E3(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";I3(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,z(t.rich,function(s){I3(s,s)}),r}function I3(e,t){t&&(nt(t,"fill")&&(e.textFill=t.fill),nt(t,"stroke")&&(e.textStroke=t.fill),nt(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),nt(t,"font")&&(e.font=t.font),nt(t,"fontStyle")&&(e.fontStyle=t.fontStyle),nt(t,"fontWeight")&&(e.fontWeight=t.fontWeight),nt(t,"fontSize")&&(e.fontSize=t.fontSize),nt(t,"fontFamily")&&(e.fontFamily=t.fontFamily),nt(t,"align")&&(e.textAlign=t.align),nt(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),nt(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),nt(t,"width")&&(e.textWidth=t.width),nt(t,"height")&&(e.textHeight=t.height),nt(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),nt(t,"padding")&&(e.textPadding=t.padding),nt(t,"borderColor")&&(e.textBorderColor=t.borderColor),nt(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),nt(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),nt(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),nt(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),nt(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),nt(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),nt(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),nt(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),nt(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),nt(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var eU={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},D3=Gt(eU);ui(So,function(e,t){return e[t]=1,e},{});So.join(", ");var cb=["","style","shape","extra"],bd=Qt();function dE(e,t,n,r,a){var i=e+"Animation",o=Od(e,r,a)||{},s=bd(t).userDuring;return o.duration>0&&(o.during=s?et(w6e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Ie(o,n[i]),o}function Yy(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=bd(e),u=t.style;l.userDuring=t.during;var c={},f={};if(C6e(e,t,f),L3("shape",t,f),L3("extra",t,f),!i&&s&&(S6e(e,t,c),P3("shape",e,t,c),P3("extra",e,t,c),x6e(e,t,u,c)),f.style=u,m6e(e,f,o),b6e(e,t),s)if(i){var d={};z(cb,function(v){var p=v?t[v]:t;p&&p.enterFrom&&(v&&(d[v]=d[v]||{}),Ie(v?d[v]:d,p.enterFrom))});var h=dE("enter",e,t,n,a);h.duration>0&&e.animateFrom(d,h)}else y6e(e,t,a||0,n,c);tU(e,t),u?e.dirty():e.markRedraw()}function tU(e,t){for(var n=bd(e).leaveToProps,r=0;r<cb.length;r++){var a=cb[r],i=a?t[a]:t;i&&i.leaveTo&&(n||(n=bd(e).leaveToProps={}),a&&(n[a]=n[a]||{}),Ie(a?n[a]:n,i.leaveTo))}}function t_(e,t,n,r){if(e){var a=e.parent,i=bd(e).leaveToProps;if(i){var o=dE("update",e,t,n,0);o.done=function(){a.remove(e),r&&r()},e.animateTo(i,o)}else a.remove(e),r&&r()}}function nc(e){return e==="all"}function m6e(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 y6e(e,t,n,r,a){if(a){var i=dE("update",e,t,r,n);i.duration>0&&e.animateFrom(a,i)}}function b6e(e,t){nt(t,"silent")&&(e.silent=t.silent),nt(t,"ignore")&&(e.ignore=t.ignore),e instanceof ci&&nt(t,"invisible")&&(e.invisible=t.invisible),e instanceof Ft&&nt(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Qi={},_6e={setTransform:function(e,t){return Qi.el[e]=t,this},getTransform:function(e){return Qi.el[e]},setShape:function(e,t){var n=Qi.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Qi.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Qi.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Qi.el.style;if(t)return t[e]},setExtra:function(e,t){var n=Qi.el.extra||(Qi.el.extra={});return n[e]=t,this},getExtra:function(e){var t=Qi.el.extra;if(t)return t[e]}};function w6e(){var e=this,t=e.el;if(t){var n=bd(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}Qi.el=t,r(_6e)}}function P3(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]={}),nc(l))Ie(o,i);else for(var u=dn(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(nc(s)||Nt(s,e)>=0){!o&&(o=r[e]={});for(var h=Gt(i),c=0;c<h.length;c++){var f=h[c],d=i[f];T6e(a[f],d)&&(o[f]=d)}}}}}function L3(e,t,n){var r=t[e];if(r)for(var a=n[e]={},i=Gt(r),o=0;o<i.length;o++){var s=i[o];a[s]=mv(r[s])}}function S6e(e,t,n){for(var r=t.transition,a=nc(r)?So:dn(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 C6e(e,t,n){for(var r=0;r<D3.length;r++){var a=D3[r],i=eU[a],o=t[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<So.length;r++){var s=So[r];t[s]!=null&&(n[s]=t[s])}}function x6e(e,t,n,r){if(n){var a=e.style,i;if(a){var o=n.transition,s=t.transition;if(o&&!nc(o)){var l=dn(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&&(nc(s)||nc(o)||Nt(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var v=Gt(n),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function T6e(e,t){return Sr(e)?e!==t:e!=null&&isFinite(e)}var nU=Qt(),M6e=["percent","easing","shape","style","extra"];function rU(e){e.stopAnimation("keyframe"),e.attr(nU(e))}function fb(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Re(t)){z(t,function(s){fb(e,s,n)});return}var r=t.keyframes,a=t.duration;if(n&&a==null){var i=Od("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=nU(e);z(cb,function(s){if(!(s&&!e[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),z(r,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=Gt(f);if(s||(d=sn(d,function(p){return Nt(M6e,p)<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 v=s?o[s]:o;z(d,function(p){v[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var qo="emphasis",qs="normal",hE="blur",vE="select",wl=[qs,qo,hE,vE],NS={normal:["itemStyle"],emphasis:[qo,"itemStyle"],blur:[hE,"itemStyle"],select:[vE,"itemStyle"]},$S={normal:["label"],emphasis:[qo,"label"],blur:[hE,"label"],select:[vE,"label"]},k6e=["x","y"],A6e="e\0\0",Va={normal:{},emphasis:{},blur:{},select:{}},E6e={cartesian2d:u6e,geo:f6e,single:h6e,polar:p6e,calendar:g6e};function eT(e){return e instanceof Ft}function tT(e){return e instanceof ci}function I6e(e,t){t.copyTransform(e),tT(t)&&tT(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,eT(t)&&eT(e)&&t.setShape(e.shape))}var D6e=function(e){ge(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=R3(n,s,r,a);o||l.removeAll(),s.diff(o).add(function(f){BS(a,null,f,u(f,i),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&t_(d,jo(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);BS(a,h,f,u(f,i),n,l,s)}).execute();var c=n.get("clip",!0)?q1(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=R3(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=BS(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(n){Ll(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}(hn);const P6e=D6e;function pE(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=oU(r);n=vg(i,null,a,r.layout||"center"),jo(n).customPathData=i}else if(t==="image")n=new hr({}),jo(n).customImagePath=e.style.image;else if(t==="text")n=new qt({});else if(t==="group")n=new bt;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=D1(t);if(!o){var s="";rn(s)}n=new o}return jo(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function gE(e,t,n,r,a,i,o){rU(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=k6e);var l=r&&r.style;if(l){if(t.type==="text"){var u=l;nt(u,"textFill")&&(u.fill=u.textFill),nt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=eT(t)?l.decal:null;e&&f&&(f.dirty=!0,c=pd(f,e)),l.__decalPattern=c}if(tT(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Yy(t,r,i,{dataIndex:n,isInit:o,clearStyle:!0}),fb(t,r.keyframeAnimation,i)}function aU(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),dc(i)}}function L6e(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<wl.length;s++)R6e(r,t,wl[s])}}function R6e(e,t,n){var r=n===qs,a=r?t:db(t,n),i=a?a.z2:null,o;i!=null&&(o=r?e:e.ensureState(n),o.z2=i||0)}function R3(e,t,n,r){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):E6e[i.type](i));for(var s=ft({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:S,ordinalRawValue:C,styleEmphasis:x,visual:A,barLayout:k,currentSeriesIndices:E,font:D},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:O6e(e.getData())},u,c,f={},d={},h={},v={},p=0;p<wl.length;p++){var g=wl[p];h[g]=e.getModel(NS[g]),v[g]=e.getModel($S[g])}function m(L){return L===u?c||(c=t.getItemModel(L)):t.getItemModel(L)}function b(L,B){return t.hasItemOption?L===u?f[B]||(f[B]=m(L).getModel(NS[B])):m(L).getModel(NS[B]):h[B]}function _(L,B){return t.hasItemOption?L===u?d[B]||(d[B]=m(L).getModel($S[B])):m(L).getModel($S[B]):v[B]}return function(L,B){return u=L,c=null,f={},d={},a&&a(ft({dataIndexInside:L,dataIndex:t.getRawIndex(L),actionType:B?B.type:null},l),s)};function w(L,B){return B==null&&(B=u),t.getStore().get(t.getDimensionIndex(L||0),B)}function C(L,B){B==null&&(B=u),L=L||0;var $=t.getDimensionInfo(L);if(!$){var O=t.getDimensionIndex(L);return O>=0?t.getStore().get(O,B):void 0}var N=t.get($.name,B),I=$&&$.ordinalMeta;return I?I.categories[N]:N}function S(L,B){B==null&&(B=u);var $=t.getItemVisual(B,"style"),O=$&&$.fill,N=$&&$.opacity,I=b(B,qs).getItemStyle();O!=null&&(I.fill=O),N!=null&&(I.opacity=N);var F={inheritColor:Je(O)?O:"#000"},G=_(B,qs),U=pn(G,null,F,!1,!0);U.text=G.getShallow("show")?Lt(e.getFormattedLabel(B,qs),gd(t,B)):null;var J=V0(G,F,!1);return M(L,I),I=E3(I,U,J),L&&T(I,L),I.legacy=!0,I}function x(L,B){B==null&&(B=u);var $=b(B,qo).getItemStyle(),O=_(B,qo),N=pn(O,null,null,!0,!0);N.text=O.getShallow("show")?Li(e.getFormattedLabel(B,qo),e.getFormattedLabel(B,qs),gd(t,B)):null;var I=V0(O,null,!0);return M(L,$),$=E3($,N,I),L&&T($,L),$.legacy=!0,$}function T(L,B){for(var $ in B)nt(B,$)&&(L[$]=B[$])}function M(L,B){L&&(L.textFill&&(B.textFill=L.textFill),L.textPosition&&(B.textPosition=L.textPosition))}function A(L,B){if(B==null&&(B=u),nt(k3,L)){var $=t.getItemVisual(B,"style");return $?$[k3[L]]:null}if(nt(i6e,L))return t.getItemVisual(B,L)}function k(L){if(i.type==="cartesian2d"){var B=i.getBaseAxis();return CRe(ft({axis:B},L))}}function E(){return n.getCurrentSeriesIndices()}function D(L){return BG(L,n)}}function O6e(e){var t={};return z(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 BS(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=mE(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&On(s,r.focus,r.blurScope,r.emphasisDisabled),s}function mE(e,t,n,r,a,i){var o=-1,s=t;t&&iU(t,r,a)&&(o=Nt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=pE(r),s&&I6e(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Va.normal.cfg=Va.normal.conOpt=Va.emphasis.cfg=Va.emphasis.conOpt=Va.blur.cfg=Va.blur.conOpt=Va.select.cfg=Va.select.conOpt=null,Va.isLegacy=!1,$6e(u,n,r,a,l,Va),N6e(u,n,r,a,l),gE(e,u,n,r,Va,a,l),nt(r,"info")&&(jo(u).info=r.info);for(var c=0;c<wl.length;c++){var f=wl[c];if(f!==qs){var d=db(r,f),h=yE(r,d,f);aU(f,u,d,h,Va)}}return L6e(u,r,a),r.type==="group"&&B6e(e,u,n,r,a),o>=0?i.replaceAt(u,o):i.add(u),u}function iU(e,t,n){var r=jo(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&H6e(i)&&oU(i)!==r.customPathData||a==="image"&&nt(o,"image")&&o.image!==r.customImagePath}function N6e(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&&iU(o,i,r)&&(o=null),o||(o=pE(i),e.setClipPath(o)),gE(null,o,t,i,null,r,a)}}function $6e(e,t,n,r,a,i){if(!e.isGroup){O3(n,null,i),O3(n,qo,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=pE(o),e.setTextContent(c)),gE(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d<wl.length;d++){var h=wl[d];if(h!==qs){var v=i[h].conOpt;aU(h,c,v,yE(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function O3(e,t,n){var r=t?db(e,t):e,a=t?yE(e,r,qo):e.style,i=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?db(s,t):s:null;if(a&&(n.isLegacy||JK(a,i,!!o,!!l))){n.isLegacy=!0;var u=QK(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 db(e,t){return t?e?e[t]:null:e}function yE(e,t,n){var r=t&&t.style;return r==null&&n===qo&&e&&(r=e.styleEmphasis),r}function B6e(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){F6e({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),mE(e,d,n,f,a,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);V6e(t,v,a)}}}function V6e(e,t,n){t&&t_(t,jo(e).option,n)}function F6e(e){new as(e.oldChildren,e.newChildren,N3,N3,e).add($3).update($3).remove(z6e).execute()}function N3(e,t){var n=e&&e.name;return n??A6e+t}function $3(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;mE(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function z6e(e){var t=this.context,n=t.oldChildren[e];n&&t_(n,jo(n).option,t.seriesModel)}function oU(e){return e&&(e.pathData||e.d)}function H6e(e){return e&&(nt(e,"pathData")||nt(e,"d"))}function G6e(e){e.registerChartView(P6e),e.registerSeriesModel(s6e)}var ku=Qt(),B3=pt,VS=et,W6e=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 bt,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=xt(V3,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}z3(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=HA(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=ku(t).pointerEl=new gg[i.type](B3(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=ku(t).labelEl=new qt(B3(n.label));t.add(i),F3(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=ku(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=ku(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),F3(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=Nd(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ts(u.event)},onmousedown:VS(this._onHandleDragMove,this,0,0),drift:VS(this._onHandleDragMove,this),ondragend:VS(this._onHandleDragEnd,this)}),r.add(a)),z3(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Re(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Kd(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){V3(this._axisPointerModel,!n&&this._moveAnimation,this._handle,FS(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(FS(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(FS(a)),ku(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),kp(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 V3(e,t,n,r){sU(ku(n).lastProp,r)||(ku(n).lastProp=r,t?tn(n,r,e):(n.stopAnimation(),n.attr(r)))}function sU(e,t){if(ht(e)&&ht(t)){var n=!0;return z(t,function(r,a){n=n&&sU(e[a],r)}),!!n}else return e===t}function F3(e,t){e[t.get(["label","show"])?"show":"hide"]()}function FS(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function z3(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 bE=W6e;function _E(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 lU(e,t,n,r,a){var i=n.get("value"),o=uU(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Mc(s.get("padding")||0),u=s.getFont(),c=ug(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),K6e(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:pn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function K6e(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 uU(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:LA(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};z(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Je(o)?i=o.replace("{value}",i):ut(o)&&(i=o(s))}return i}function wE(e,t,n){var r=La();return Pl(r,r,n.rotation),Vi(r,r,n.position),Ni([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function cU(e,t,n,r,a,i){var o=os.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),lU(t,r,a,i,{position:wE(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function SE(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function fU(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function H3(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var U6e=function(e){ge(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=G3(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=_E(i),h=Y6e[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=$2(l.model,a);cU(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=$2(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=wE(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=G3(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 v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(bE);function G3(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Y6e={line:function(e,t,n){var r=SE([t,n[0]],[t,n[1]],W3(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:fU([t-r/2,n[0]],[r,a],W3(e))}}};function W3(e){return e.dim==="x"?0:1}const j6e=U6e;var q6e=function(e){ge(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}(Yt);const X6e=q6e;var Uo=Qt(),Z6e=z;function dU(e,t,n){if(!Zt.node){var r=t.getZr();Uo(r).records||(Uo(r).records={}),J6e(r,t);var a=Uo(r).records[e]||(Uo(r).records[e]={});a.handler=n}}function J6e(e,t){if(Uo(e).initialized)return;Uo(e).initialized=!0,n("click",xt(K3,"click")),n("mousemove",xt(K3,"mousemove")),n("globalout",e8e);function n(r,a){e.on(r,function(i){var o=t8e(t);Z6e(Uo(e).records,function(s){s&&a(s,i,o.dispatchAction)}),Q6e(o.pendings,t)})}}function Q6e(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 e8e(e,t,n){e.handler("leave",null,n)}function K3(e,t,n,r){t.handler(e,n,r)}function t8e(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 nT(e,t){if(!Zt.node){var n=t.getZr(),r=(Uo(n).records||{})[e];r&&(Uo(n).records[e]=null)}}var n8e=function(e){ge(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";dU("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){nT("axisPointer",r)},t.prototype.dispose=function(n,r){nT("axisPointer",r)},t.type="axisPointer",t}(kn);const r8e=n8e;function hU(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=cc(i,e);if(o==null||o<0||Re(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,v=i.mapDimension(d),p=[];p[h]=i.get(v,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(p)||[]}else n=l.dataToPoint(i.getValues(Oe(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 U3=Qt();function a8e(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||et(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){jy(a)&&(a=hU({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=jy(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||jy(a),d={},h={},v={list:[],map:{}},p={showPointer:xt(o8e,h),showTooltip:xt(s8e,v)};z(s.coordSysMap,function(m,b){var _=l||m.containPoint(a);z(s.coordSysAxesInfo[b],function(w,C){var S=w.axis,x=f8e(u,w);if(!f&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=S.pointToData(a)),T!=null&&Y3(w,T,p,!1,d)}})});var g={};return z(c,function(m,b){var _=m.linkGroup;_&&!h[b]&&z(_.axesInfo,function(w,C){var S=h[C];if(w!==m&&S){var x=S.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,j3(w),j3(m)))),g[m.key]=x}})}),z(g,function(m,b){Y3(c[b],m,p,!0,d)}),l8e(h,c,d),u8e(v,a,e,o),c8e(c,o,n),d}}function Y3(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=i8e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Ie(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function i8e(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return z(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 v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,a=f,i.length=0),z(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function o8e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function s8e(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=Lp(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 l8e(e,t,n){var r=n.axesInfo=[];z(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 u8e(e,t,n,r){if(jy(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 c8e(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=U3(r)[a]||{},o=U3(r)[a]={};z(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&z(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];z(i,function(u,c){!o[c]&&l.push(u)}),z(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 f8e(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 j3(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 jy(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Ag(e){Ec.registerAxisPointerClass("CartesianAxisPointer",j6e),e.registerComponentModel(X6e),e.registerComponentView(r8e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Re(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=J$e(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},a8e)}function d8e(e){Bt(V7),Bt(Ag)}var h8e=function(e){ge(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=_E(i),v=p8e[d](s,l,f,c);v.style=h,n.graphicKey=v.type,n.pointer=v}var p=i.get(["label","margin"]),g=v8e(r,a,i,l,p);lU(n,a,i,o,g)},t}(bE);function v8e(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=La();Pl(d,d,s),Vi(d,d,[r.cx,r.cy]),u=Ni([o,-a],d);var h=t.getModel("axisLabel").get("rotate")||0,v=os.innerTextLayout(s,h*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var p=l[1];u=r.coordToPoint([p+a,o]);var g=r.cx,m=r.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var p8e={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:SE(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:H3(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:H3(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const g8e=h8e;var m8e=function(e){ge(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}(Yt);const y8e=m8e;var CE=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Gn).models[0]},t.type="polarAxis",t}(Yt);Bn(CE,jd);var b8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(CE),_8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(CE),xE=function(e){ge(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}(pi);xE.prototype.dataToRadius=pi.prototype.dataToCoord;xE.prototype.radiusToData=pi.prototype.coordToData;const w8e=xE;var S8e=Qt(),TE=function(e){ge(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=ug(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)),v=S8e(n.model),p=v.lastAutoInterval,g=v.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(v.lastTickCount=o,v.lastAutoInterval=h),h},t}(pi);TE.prototype.dataToAngle=pi.prototype.dataToCoord;TE.prototype.angleToData=pi.prototype.coordToData;const C8e=TE;var vU=["radius","angle"],x8e=function(){function e(t){this.dimensions=vU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new w8e,this._angleAxis=new C8e,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=q3(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=q3(n);return a===this?this.pointToData(r):null},e}();function q3(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const T8e=x8e;function M8e(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%"]:Re(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 k8e(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();z(J0(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),z(J0(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),vc(r.scale,r.model),vc(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 A8e(e){return e.mainType==="angleAxis"}function X3(e,t){if(e.type=t.get("type"),e.scale=bg(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),A8e(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var E8e={dimensions:vU,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new T8e(a+"");i.update=k8e;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");X3(o,l),X3(s,u),M8e(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",Gn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const I8e=E8e;var D8e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ym(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 jm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Z3(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 P8e=function(e){ge(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=Oe(a.getViewLabels(),function(c){c=pt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});Z3(u),Z3(s),z(D8e,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&L8e[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Ec),L8e={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=jm(n),l=s?0:1,u;i[l]===0?u=new zi({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new dg({shape:{cx:n.cx,cy:n.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,n,r,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[jm(n)],u=Oe(r,function(c){return new rr({shape:Ym(n,[l,l+s],c.coord)})});e.add(Ta(u,{style:ft(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[jm(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new rr({shape:Ym(n,[u,u+l],a[f][d].coord)}));e.add(Ta(c,{style:ft(s.getModel("lineStyle").getLineStyle(),ft(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");z(o,function(f,d){var h=l,v=f.tickValue,p=i[jm(n)],g=n.coordToPoint([p+u,f.coord]),m=n.cx,b=n.cy,_=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",w=Math.abs(g[1]-b)/p<.3?"middle":g[1]>b?"top":"bottom";if(s&&s[v]){var C=s[v];ht(C)&&C.textStyle&&(h=new fn(C.textStyle,l,l.ecModel))}var S=new qt({silent:os.isLabelSilent(t),style:pn(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:w})});if(e.add(S),c){var x=os.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=f.rawLabel,Tt(S).eventData=x}},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 rr({shape:Ym(n,i,r[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Ta(c[f],{style:ft({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 rr({shape:Ym(n,i,a[u][c].coord)}));e.add(Ta(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]),v=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,m=r.length;g<=m;g++){var b=g===m?r[0].coord:r[g].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new ta({shape:{cx:n.cx,cy:n.cy,r0:h,r:v,startAngle:d,endAngle:-b*f,clockwise:p},silent:!0})),d=-b*f}for(var g=0;g<c.length;g++)e.add(Ta(c[g],{style:ft({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const R8e=P8e;var O8e=["axisLine","axisTickLabel","axisName"],N8e=["splitLine","splitArea","minorSplitLine"],$8e=function(e){ge(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 bt;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=V8e(s,n,f),v=new os(n,h);z(O8e,v.add,v),i.add(v.getGroup()),pg(a,i,n),z(N8e,function(p){n.get([p,"show"])&&!o.scale.isBlank()&&B8e[p](this.group,n,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(Ec),B8e={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<i.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new zi({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)e.add(Ta(c[f],{style:ft({stroke:l[f%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 zi({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));e.add(Ta(u,{style:ft({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 ta({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(Ta(c[d],{style:ft({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function V8e(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 F8e=$8e;function pU(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function gU(e,t){return t.dim+e.model.componentIndex}function z8e(e,t,n){var r={},a=H8e(sn(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=gU(s,l),c=pU(i),f=a[u][c],d=f.offset,h=f.width,v=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,m=i.get("barMinHeight")||0,b=i.get("barMinAngle")||0;r[c]=r[c]||[];for(var _=o.mapDimension(v.dim),w=o.mapDimension(l.dim),C=is(o,_),S=l.dim!=="radius"||!i.get("roundCap",!0),x=v.dataToCoord(0),T=0,M=o.count();T<M;T++){var A=o.get(_,T),k=o.get(w,T),E=A>=0?"p":"n",D=x;C&&(r[c][k]||(r[c][k]={p:x,n:x}),D=r[c][k][E]);var L=void 0,B=void 0,$=void 0,O=void 0;if(v.dim==="radius"){var N=v.dataToCoord(A)-x,I=l.dataToCoord(k);Math.abs(N)<m&&(N=(N<0?-1:1)*m),L=D,B=D+N,$=I-d,O=$-h,C&&(r[c][k][E]=B)}else{var F=v.dataToCoord(A,S)-x,G=l.dataToCoord(k);Math.abs(F)<b&&(F=(F<0?-1:1)*b),L=G+d,B=L+h,$=D,O=D+F,C&&(r[c][k][E]=O)}o.setItemLayout(T,{cx:p,cy:g,r0:L,r:B,startAngle:-$*Math.PI/180,endAngle:-O*Math.PI/180,clockwise:$>=O})}}})}function H8e(e){var t={};z(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=gU(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=pU(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=qe(r.get("barWidth"),c),p=qe(r.get("barMaxWidth"),c),g=r.get("barGap"),m=r.get("barCategoryGap");v&&!d[h].width&&(v=Math.min(f.remainedWidth,v),d[h].width=v,f.remainedWidth-=v),p&&(d[h].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var n={};return z(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),z(i,function(p,g){var m=p.maxWidth;m&&m<f&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;z(i,function(p,g){p.width||(p.width=f),h=p,d+=p.width*(1+l)}),h&&(d-=h.width*l);var v=-d/2;z(i,function(p,g){n[a][g]=n[a][g]||{offset:v,width:p.width},v+=p.width*(1+l)})}),n}var G8e={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},W8e={splitNumber:5},K8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="polar",t}(kn);function U8e(e){Bt(Ag),Ec.registerAxisPointerClass("PolarAxisPointer",g8e),e.registerCoordinateSystem("polar",I8e),e.registerComponentModel(y8e),e.registerComponentView(K8e),md(e,"angle",b8e,G8e),md(e,"radius",_8e,W8e),e.registerComponentView(R8e),e.registerComponentView(F8e),e.registerLayout(xt(z8e,"bar"))}function rT(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),nr(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 Y8e=["axisLine","axisTickLabel","axisName"],j8e=["splitArea","splitLine"],q8e=function(e){ge(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 bt;var l=rT(n),u=new os(n,l);z(Y8e,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),z(j8e,function(c){n.get([c,"show"])&&X8e[c](this,this.group,this._axisGroup,n)},this),pg(s,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)},t.prototype.remove=function(){N7(this)},t.type="singleAxis",t}(Ec),X8e={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}),v=[],p=[],g=0;g<h.length;++g){var m=a.toGlobalCoord(h[g].coord);c?(v[0]=m,v[1]=u.y,p[0]=m,p[1]=u.y+u.height):(v[0]=u.x,v[1]=m,p[0]=u.x+u.width,p[1]=m);var b=new rr({shape:{x1:v[0],y1:v[1],x2:p[0],y2:p[1]},silent:!0});hd(b.shape,l);var _=d++%s.length;f[_]=f[_]||[],f[_].push(b)}for(var w=o.getLineStyle(["color"]),g=0;g<f.length;++g)t.add(Ta(f[g],{style:ft({stroke:s[g%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,r){O7(e,n,r,r)}};const Z8e=q8e;var mU=function(e){ge(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}(Yt);Bn(mU,jd.prototype);const zS=mU;var J8e=function(e){ge(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}(pi);const Q8e=J8e;var yU=["single"],eHe=function(){function e(t,n,r){this.type="single",this.dimension="single",this.dimensions=yU,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 Q8e(a,bg(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();z(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),vc(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,n){this._rect=qn({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=J3(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=J3(n);return a===this?this.pointToData(r):null},e}();function J3(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function tHe(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new eHe(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",Gn).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var nHe={create:tHe,dimensions:yU};const rHe=nHe;var Q3=["x","y"],aHe=["width","height"],iHe=function(e){ge(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=HS(l,1-hb(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=_E(i),h=oHe[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=rT(a);cU(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=rT(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=wE(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=hb(o),u=HS(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=HS(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}(bE),oHe={line:function(e,t,n){var r=SE([t,n[0]],[t,n[1]],hb(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:fU([t-r/2,n[0]],[r,a],hb(e))}}};function hb(e){return e.isHorizontal()?0:1}function HS(e,t){var n=e.getRect();return[n[Q3[t]],n[Q3[t]]+n[aHe[t]]]}const sHe=iHe;var lHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(kn);function uHe(e){Bt(Ag),Ec.registerAxisPointerClass("SingleAxisPointer",sHe),e.registerComponentView(lHe),e.registerComponentView(Z8e),e.registerComponentModel(zS),md(e,"single",zS,zS.defaultOption),e.registerCoordinateSystem("single",rHe)}var cHe=function(e){ge(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=Fd(n);e.prototype.init.apply(this,arguments),e4(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),e4(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}(Yt);function e4(e,t){var n=e.cellSize,r;Re(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=Oe([0,1],function(i){return eDe(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});yl(e,t,{type:"box",ignoreSize:a})}const fHe=cHe;var dHe=function(e){ge(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 Xt({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++){v(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)}v(s.getNextNDay(r.end.time,1).formatedDate);function v(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(n,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,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 aa({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 Je(n)&&n?XIe(n,r):ut(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]},v=r.start.y;+r.end.y>+r.start.y&&(v=v+"-"+r.end.y);var p=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:v},m=this._formatterLabel(p,g),b=new qt({z2:30,style:pn(o,{text:m})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},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||Je(s))&&(s&&(r=d2(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 v=c==="center",p=0;p<f[d].length-1;p++){var g=f[d][p].slice(),m=this._firstDayOfMonth[p];if(v){var b=this._firstDayPoints[p];g[h]=(b[h]+f[0][p+1][h])/2}var _=o.get("formatter"),w=s[+m.m-1],C={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:w},S=this._formatterLabel(_,C),x=new qt({z2:30,style:Ie(pn(o,{text:S}),this._monthTextPositionControl(g,v,a,u,l))});i.add(x)}}},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||Je(c)){c&&(r=d2(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||Oe(r.get(["time","dayOfWeekAbbr"]),function(C){return C[0]})}var v=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=qe(f,Math.min(p[1],p[0])),u==="start"&&(v=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var g=0;g<7;g++){var m=l.getNextNDay(v,g),b=l.dataToRect([m.time],!1).center,_=g;_=Math.abs((g+d)%7);var w=new qt({z2:30,style:Ie(pn(s,{text:c[_]}),this._weekTextPositionControl(b,i,u,f,p))});o.add(w)}}},t.type="calendar",t}(kn);const hHe=dHe;var GS=864e5,vHe=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=Ra(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];z([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=qn(o,l);z([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){Re(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+GS))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=t4(n);return a===this?a.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=t4(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(Re(t)&&t.length===1&&(t=t[0]),Re(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/GS)-Math.floor(n[0].time/GS)+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 t4(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}const pHe=vHe;function gHe(e){e.registerComponentModel(fHe),e.registerComponentView(hHe),e.registerCoordinateSystem("calendar",pHe)}function mHe(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 n4(e,t){var n;return z(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function yHe(e,t,n){var r=Ie({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(Dt(a,r,!0),yl(a,r,{ignoreSize:!0}),eW(n,a),qm(n,a),qm(n,a,"shape"),qm(n,a,"style"),qm(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var bU=["transition","enterFrom","leaveTo"],bHe=bU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function qm(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?bU:bHe,a=0;a<r.length;a++){var i=r[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function _He(e,t){if(e&&(e.hv=t.hv=[n4(t,["left","right"]),n4(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 wHe=function(e){ge(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=$H(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];z(l,function(c,f){var d=c.newOption;d&&(u.push(d),mHe(c,d),yHe(o,f,d),_He(o[f],d))},this),a.elements=sn(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(n,r,a){z(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}(Yt),r4={path:null,compoundPath:null,group:bt,image:hr,text:qt},Ka=Qt(),SHe=function(e){ge(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=ot()},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");z(r,function(l){var u=er(l.id,null),c=u!=null?a.get(u):null,f=er(l.parentId,null),d=f!=null?a.get(f):i,h=l.type,v=l.style;h==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var p=l.textContent,g=l.textConfig;if(v&&JK(v,h,!!g,!!p)){var m=QK(v,h,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var b=CHe(l),_=l.$action||"merge",w=_==="merge",C=_==="replace";if(w){var S=!c,x=c;S?x=a4(u,d,l.type,a):(x&&(Ka(x).isNew=!1),rU(x)),x&&(Yy(x,b,n,{isInit:S}),i4(x,l,o,s))}else if(C){qy(c,l,a,n);var T=a4(u,d,l.type,a);T&&(Yy(T,b,n,{isInit:!0}),i4(T,l,o,s))}else _==="remove"&&(tU(c,l),qy(c,l,a,n));var M=a.get(u);if(M&&p)if(w){var A=M.getTextContent();A?A.attr(p):M.setTextContent(new qt(p))}else C&&M.setTextContent(new qt(p));if(M){var k=l.clipPath;if(k){var E=k.type,D=void 0,S=!1;if(w){var L=M.getClipPath();S=!L||Ka(L).type!==E,D=S?aT(E):L}else C&&(S=!0,D=aT(E));M.setClipPath(D),Yy(D,k,n,{isInit:S}),fb(D,k.keyframeAnimation,n)}var B=Ka(M);M.setTextConfig(g),B.option=l,xHe(M,n,l),$d({el:M,componentModel:n,itemName:M.name,itemTooltipOption:l.tooltip}),fb(M,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=er(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var v=h.parent,p=v===i,g=Ka(h),m=Ka(v);g.width=qe(g.option.width,p?s:m.width)||0,g.height=qe(g.option.height,p?l:m.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=er(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,m=Ka(v),b=v===i?{width:s,height:l}:{width:m.width,height:m.height},_={},w=B1(h,f,b,null,{hv:f.hv,boundingMode:f.bounding},_);if(!Ka(h).isNew&&w){for(var C=f.transition,S={},x=0;x<u.length;x++){var T=u[x],M=_[T];C&&(nc(C)||Nt(C,T)>=0)?S[T]=M:h[T]=M}tn(h,S,n,0)}else h.attr(_)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){qy(a,Ka(a).option,r,n._lastGraphicModel)}),this._elMap=ot()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(kn);function aT(e){var t=nt(r4,e)?r4[e]:D1(e),n=new t({});return Ka(n).type=e,n}function a4(e,t,n,r){var a=aT(n);return t.add(a),r.set(e,a),Ka(a).id=e,Ka(a).isNew=!0,a}function qy(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){qy(i,t,n,r)}),t_(e,t,r),n.removeKey(Ka(e).id))}function i4(e,t,n,r){e.isGroup||z([["cursor",ci.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];nt(t,i)?e[i]=Lt(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),z(Gt(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=ut(i)?i:null}}),nt(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function CHe(e){return e=Ie({},e),z(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QG),function(t){delete e[t]}),e}function xHe(e,t,n){var r=Tt(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Tt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function THe(e){e.registerComponentModel(wHe),e.registerComponentView(SHe),e.registerPreprocessor(function(t){var n=t.graphic;Re(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var o4=["x","y","radius","angle","single"],MHe=["cartesian2d","polar","singleAxis"];function kHe(e){var t=e.get("coordinateSystem");return Nt(MHe,t)>=0}function Xs(e){return e+"Axis"}function AHe(e,t){var n=ot(),r=[],a=ot();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 v=n.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function _U(e){var t=e.ecModel,n={infoList:[],infoMap:ot()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(Xs(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 WS=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}(),EHe=function(e){ge(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=s4(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=s4(n);Dt(this.option,n,!0),Dt(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;z([["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=ot(),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 z(o4,function(a){var i=this.getReferringComponents(Xs(a),LAe);if(i.specified){r=!0;var o=new WS;z(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 WS;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Gn).models[0];h&&z(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Gn).models[0]&&d.add(v.componentIndex)})}}}i&&z(o4,function(u){if(i){var c=a.findComponents({mainType:Xs(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new WS;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");z([["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(Xs(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){z(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(Xs(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;z([["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;z(["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}(Yt);function s4(e){var t={};return z(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}const Vp=EHe;var IHe=function(e){ge(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}(Vp);const DHe=IHe;var PHe=function(e){ge(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}(kn);const ME=PHe;var LHe=function(e){ge(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}(ME);const RHe=LHe;var hf=z,l4=Ea,OHe=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(kHe(n)){var r=Xs(this._dimName),a=n.getReferringComponents(r,Gn).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 pt(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;hf(["start","end"],function(d,h){var v=t[d],p=t[d+"Value"];i[h]==="percent"?(v==null&&(v=o[h]),p=a.parse(on(v,o,n))):(u=!0,p=p==null?n[h]:a.parse(p),v=on(p,n,o)),l[h]=p==null||isNaN(p)?n[h]:p,s[h]=v==null||isNaN(v)?o[h]:v}),l4(l),l4(s);var c=this._minMaxSpan;u?f(l,s,n,o,!1):f(s,l,o,n,!0);function f(d,h,v,p,g){var m=g?"Span":"ValueSpan";Ic(0,d,v,"all",c["min"+m],c["max"+m]);for(var b=0;b<2;b++)h[b]=on(d[b],v,p,!0),g&&(h[b]=a.parse(h[b]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=NHe(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;hf(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=Oe(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,p,g,m=0;m<c.length;m++){var b=f.get(d[m],h),_=!isNaN(b),w=b<o[0],C=b>o[1];if(_&&!w&&!C)return!0;_&&(g=!0),w&&(v=!0),C&&(p=!0)}return g&&v&&p})}else hf(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});hf(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;hf(["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=on(r[0]+o,r,[0,100],!0):i!=null&&(o=on(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=Dk(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 NHe(e,t,n){var r=[1/0,-1/0];hf(n,function(o){URe(r,o.getData(),t)});var a=e.getAxisModel(),i=$9(a.axis.scale,a,r).calculate();return[i.min,i.max]}const $He=OHe;var BHe={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(Xs(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 $He(a,i,s,e),n.push(o.__dzAxisProxy))});var r=ot();return z(n,function(a){z(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 VHe=BHe;function FHe(e){e.registerAction("dataZoom",function(t,n){var r=AHe(n,t);z(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var u4=!1;function kE(e){u4||(u4=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,VHe),FHe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function zHe(e){e.registerComponentModel(DHe),e.registerComponentView(RHe),kE(e)}var Ya=function(){function e(){}return e}(),wU={};function vf(e,t){wU[e]=t}function SU(e){return wU[e]}var HHe=function(e){ge(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;z(this.option.feature,function(r,a){var i=SU(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),Dt(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}(Yt);const GHe=HHe;function WHe(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=qn(r,i,a);Ju(t.get("orient"),e,t.get("itemGap"),o.width,o.height),B1(e,r,i,a)}function CU(e,t){var n=Mc(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Xt({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 KHe=function(e){ge(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=[];z(u,function(v,p){f.push(p)}),new as(this._featureNames||[],f).add(d).update(d).remove(xt(d,null)).execute(),this._featureNames=f;function d(v,p){var g=f[v],m=f[p],b=u[g],_=new fn(b,n,n.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===g&&(b.title=i.newTitle),g&&!m){if(UHe(g))w={onclick:_.option.onclick,featureName:g};else{var C=SU(g);if(!C)return;w=new C}c[g]=w}else if(w=c[m],!w)return;w.uid=Vd("toolbox-feature"),w.model=_,w.ecModel=r,w.api=a;var S=w instanceof Ya;if(!g&&m){S&&w.dispose&&w.dispose(r,a);return}if(!_.get("show")||S&&w.unusable){S&&w.remove&&w.remove(r,a);return}h(_,w,g),_.setIconStatus=function(x,T){var M=this.option,A=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[x]=T,A[x]&&(T==="emphasis"?ns:rs)(A[x])},w instanceof Ya&&w.render&&w.render(_,r,a,i)}function h(v,p,g){var m=v.getModel("iconStyle"),b=v.getModel(["emphasis","iconStyle"]),_=p instanceof Ya&&p.getIcons?p.getIcons():v.get("icon"),w=v.get("title")||{},C,S;Je(_)?(C={},C[g]=_):C=_,Je(w)?(S={},S[g]=w):S=w;var x=v.iconPaths={};z(C,function(T,M){var A=Nd(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var k=A.ensureState("emphasis");k.style=b.getItemStyle();var E=new qt({style:{text:S[M],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});A.setTextContent(E),$d({el:A,componentModel:n,itemName:M,formatterParamsExtra:{title:S[M]}}),A.__title=S[M],A.on("mouseover",function(){var D=b.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:b.get("textFill")||D.fill||D.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),A.setTextConfig({position:b.get("textPosition")||L}),E.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",M])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(v.get(["iconStatus",M])==="emphasis"?ns:rs)(A),o.add(A),A.on("click",et(p.onclick,p,r,a,M)),x[M]=A})}WHe(o,n,a),o.add(CU(o.getBoundingRect(),n)),l||o.eachChild(function(v){var p=v.__title,g=v.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),b=v.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!ut(_)&&p){var w=_.style||(_.style={}),C=ug(p,qt.makeFont(w)),S=v.x+o.x,x=v.y+o.y+s,T=!1;x+C.height>a.getHeight()&&(m.position="top",T=!0);var M=T?-5-C.height:s+10;S+C.width/2>a.getWidth()?(m.position=["100%",M],w.align="right"):S-C.width/2<0&&(m.position=[0,M],w.align="left")}})},t.prototype.updateView=function(n,r,a,i){z(this._features,function(o){o instanceof Ya&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){z(this._features,function(a){a instanceof Ya&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){z(this._features,function(a){a instanceof Ya&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(kn);function UHe(e){return e.indexOf("my")===0}const YHe=KHe;var jHe=function(e){ge(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=Zt.browser;if(ut(MouseEvent)&&(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,v=o?decodeURIComponent(d[1]):d[1];h&&(v=window.atob(v));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=v.length,m=new Uint8Array(g);g--;)m[g]=v.charCodeAt(g);var b=new Blob([m]);window.navigator.msSaveOrOpenBlob(b,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var w=_.contentWindow,C=w.document;C.open("image/svg+xml","replace"),C.write(v),C.close(),w.focus(),C.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var S=a.get("lang"),x='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',T=window.open();T.document.write(x),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}(Ya);const qHe=jHe;var c4="__ec_magicType_stack__",XHe=[["line","bar"],["stack"]],ZHe=function(e){ge(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 z(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(f4[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=f4[a](d,h,f,i);v&&(ft(v,f.option),s.series.push(v));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,b=m+"Axis",_=f.getReferringComponents(b,Gn).models[0],w=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=w;C++)s[b][w]=s[b][w]||{};s[b][w].boundaryGap=a==="bar"}}};z(XHe,function(f){Nt(f,a)>=0&&z(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=Dt({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}(Ya),f4={line:function(e,t,n,r){if(e==="bar")return Dt({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 Dt({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")===c4;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Dt({id:t,stack:a?"":c4},r.get(["option","stack"])||{},!0)}};Ui({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const JHe=ZHe;var n_=new Array(60).join("-"),_d=" ";function QHe(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 eGe(e){var t=[];return z(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(Oe(n.series,function(h){return h.name})),l=[a.model.getCategories()];z(n.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(_d)],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(_d))}t.push(u.join(`
  93. `))}),t.join(`
  94. `+n_+`
  95. `)}function tGe(e){return Oe(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+_d:"")+a.join(_d))}),r.join(`
  96. `)}).join(`
  97. `+n_+`
  98. `)}function nGe(e){var t=QHe(e);return{value:sn([eGe(t.seriesGroupByCategoryAxis),tGe(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
  99. `+n_+`
  100. `),meta:t.meta}}function vb(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function rGe(e){var t=e.slice(0,e.indexOf(`
  101. `));if(t.indexOf(_d)>=0)return!0}var iT=new RegExp("["+_d+"]+","g");function aGe(e){for(var t=e.split(/\n+/g),n=vb(t.shift()).split(iT),r=[],a=Oe(n,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=vb(t[i]).split(iT);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 iGe(e){for(var t=e.split(/\n+/g),n=vb(t.shift()),r=[],a=0;a<t.length;a++){var i=vb(t[a]);if(i){var o=i.split(iT),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 oGe(e,t){var n=e.split(new RegExp(`
  102. *`+n_+`
  103. *`,"g")),r={series:[]};return z(n,function(a,i){if(rGe(a)){var o=aGe(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=iGe(a);r.series.push(o)}}),r}var sGe=function(e){ge(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=nGe(n);if(ut(f)){var v=f(r.getOption());Je(v)?u.innerHTML=v:fd(v)&&u.appendChild(v)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),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 b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),w=document.createElement("div");b+=";background-color:"+i.get("buttonColor"),b+=";color:"+i.get("buttonTextColor");var C=this;function S(){a.removeChild(o),C._dom=null}$x(_,"click",S),$x(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){S();return}var x;try{ut(d)?x=d(u,r.getOption()):x=oGe(c.value,g)}catch(T){throw S(),new Error("Data view format error "+T)}x&&r.dispatchAction({type:"changeDataView",newOption:x}),S()}),_.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=_.style.cssText=b,!i.get("readOnly")&&m.appendChild(w),m.appendChild(_),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}(Ya);function lGe(e,t){return Oe(e,function(n,r){var a=t&&t[r];if(ht(a)&&!Re(a)){var i=ht(n)&&!Re(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=ft(n,a),o&&delete n.name,n}else return n})}Ui({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];z(e.newOption.series,function(r){var a=t.getSeriesByName(r.name)[0];if(!a)n.push(Ie({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:lGe(r.data,i)})}}),t.mergeOption(ft({series:n},e.newOption))});const uGe=sGe;var xU=z,TU=Qt();function cGe(e,t){var n=AE(e);xU(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 fGe(e){var t=AE(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return xU(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 dGe(e){TU(e).snapshots=null}function hGe(e){return AE(e).length}function AE(e){var t=TU(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var vGe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){dGe(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}(Ya);Ui({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const pGe=vGe;var gGe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],mGe=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=d4(n,t);z(yGe,function(o,s){(!r||!r.include||Nt(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=KS[r.brushType](0,i,a);r.__rangeOffset={offset:g4[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){z(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&z(i.coordSyses,function(o){var s=KS[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){z(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=KS[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?g4[r.brushType](i.values,o.offset,bGe(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return Oe(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:PK(a),isTargetByCursor:RK(a,t,r.coordSysModel),getLinearBrushOtherExtent:LK(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&Nt(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=d4(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<h4.length;l++)if(h4[l](a,o))return o}return!0},e}();function oT(e){return e[0]>e[1]&&e.reverse(),e}function d4(e,t){return bv(e,t,{includeMainTypes:gGe})}var yGe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=ot(),o={},s={};!n&&!r&&!a||(z(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),z(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),z(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=[];z(u.getCartesians(),function(f,d){(Nt(n,f.getAxis("x").model)>=0||Nt(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:v4.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){z(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:v4.geo})})}},h4=[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}],v4={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(al(e)),t}},KS={lineX:xt(p4,0),lineY:xt(p4,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=[oT([a[0],i[0]]),oT([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=Oe(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 p4(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=oT(Oe([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 g4={lineX:xt(m4,0),lineY:xt(m4,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 Oe(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function m4(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function bGe(e,t){var n=y4(e),r=y4(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 y4(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const EE=mGe;var sT=z,_Ge=AAe("toolbox-dataZoom_"),wGe=function(e){ge(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 uE(a.getZr()),this._brushController.on("brush",et(this._onBrush,this)).mount()),xGe(n,r,this,i,a),CGe(n,r)},t.prototype.onclick=function(n,r,a){SGe[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 EE(IE(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)}}),cGe(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),h=d.model,v=l(u,h,i),p=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Ic(0,f.slice(),d.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,c.componentIndex);v&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(n){var r=[];sT(n,function(a,i){r.push(pt(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}(Ya),SGe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(fGe(this.ecModel))}};function IE(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 CGe(e,t){e.setIconStatus("back",hGe(t)>1?"emphasis":"normal")}function xGe(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 EE(IE(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)}oDe("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=IE(r),o=bv(e,i);sT(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),sT(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:_Ge+u+f};d[c]=f,a.push(d)}return a});const TGe=wGe;function MGe(e){e.registerComponentModel(GHe),e.registerComponentView(YHe),vf("saveAsImage",qHe),vf("magicType",JHe),vf("dataView",uGe),vf("dataZoom",TGe),vf("restore",pGe),Bt(zHe)}var kGe=function(e){ge(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}(Yt);const AGe=kGe;function MU(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function kU(e){if(Zt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var AU=kU(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),EGe=kU(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function EU(e,t){if(!e)return t;t=rA(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function IGe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var DGe=EU(EGe,"transition"),DE=EU(AU,"transform"),PGe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Zt.transform3dSupported?"will-change:transform;":"");function LGe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function RGe(e,t,n){if(!Je(n)||n==="inside")return"";var r=e.get("backgroundColor"),a=e.get("borderWidth");t=hc(t);var i=LGe(n),o=Math.max(Math.round(a)*1.5,6),s="",l=DE+":",u;Nt(["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 v=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'<div style="'+p.join("")+'"></div>'}function OGe(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+=Zt.transformSupported?","+DE+r:",left"+r+",top"+r),DGe+":"+a}function b4(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Zt.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=Zt.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+DE+":"+o+";":[["top",0],["left",0],[AU,o]]}function NGe(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),z(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function $Ge(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=LW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(OGe(a,n)),i&&r.push("background-color:"+i),z(["width","color","radius"],function(h){var v="border-"+h,p=rA(v),g=e.get(p);g!=null&&r.push(v+":"+g+(h==="color"?"":"px"))}),r.push(NGe(c)),f!=null&&r.push("padding:"+Mc(f).join("px ")+"px"),r.join(";")+";"}function _4(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&UMe(e,o,document.body,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 BGe=function(){function e(t,n,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Zt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=n.getZr(),o=this._appendToBody=r&&r.appendToBody;_4(this._styleCoord,i,o,n.getWidth()/2,n.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();za(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var n=this._container,r=IGe(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=PGe+$Ge(t,!this._firstShow,this._longHide)+b4(i[0],i[1],!0)+("border-color:"+hc(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(Je(i)&&r.get("trigger")==="item"&&!MU(r)&&(s=RGe(r,a,i)),Je(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Re(t)||(t=[t]);for(var l=0;l<t.length;l++)fd(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(_4(r,this._zr,this._appendToBody,t,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=b4(r[0],r[1]);z(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",Zt.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(et(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const VGe=BGe;var FGe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),S4(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;ht(t)&&rn(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new qt({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:LW(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),z(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),z(["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=w4(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;S4(a,this._zr,t,n),t=a[0],n=a[1];var i=r.style,o=Os(i.borderWidth||0),s=w4(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(et(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Os(e){return Math.max(0,e)}function w4(e){var t=Os(e.shadowBlur||0),n=Os(e.shadowOffsetX||0),r=Os(e.shadowOffsetY||0);return{left:Os(t-n),right:Os(t+n),top:Os(t-r),bottom:Os(t+r)}}function S4(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const zGe=FGe;var HGe=new Xt({shape:{x:-1,y:-1,width:2,height:2}}),GGe=function(e){ge(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(!(Zt.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=OAe(a.get("renderMode"));this._tooltipContent=i==="richText"?new zGe(r):new VGe(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(n,r,a){if(!(Zt.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")?Kd(this,"_updatePosition",50,"fixRate"):kp(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");dU("itemTooltip",this._api,et(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||Zt.node||!a.getDom())){var o=C4(i,a);this._ticket="";var s=i.dataByCoordSys,l=YGe(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=HGe;c.x=i.x,c.y=i.y,c.update(),Tt(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=hU(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(C4(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=Dh([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){this._lastDataByCoordSys=null;var s,l;Fu(a,function(u){if(Tt(u).dataIndex!=null)return s=u,!0;if(Tt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(n,s,r):l?this._showComponentItemTooltip(n,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=et(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=Dh([r.tooltipOption],i),l=this._renderMode,u=[],c=lr("section",{blocks:[],noHeader:!0}),f=[],d=new Iw;z(n,function(b){z(b.dataByAxis,function(_){var w=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!w||C==null)){var S=uU(C,w.axis,a,_.seriesDataIndices,_.valueLabelOpt),x=lr("section",{header:S,noHeader:!Za(S),sortBlocks:!0,blocks:[]});c.blocks.push(x),z(_.seriesDataIndices,function(T){var M=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,k=M.getDataParams(A);if(!(k.dataIndex<0)){k.axisDim=_.axisDim,k.axisIndex=_.axisIndex,k.axisType=_.axisType,k.axisId=_.axisId,k.axisValue=LA(w.axis,{value:C}),k.axisValueLabel=S,k.marker=d.makeTooltipMarker("item",hc(k.color),l);var E=uO(M.formatTooltip(A,!0,null)),D=E.frag;if(D){var L=Dh([M],i).get("valueFormatter");x.blocks.push(L?Ie({valueFormatter:L},D):D)}E.text&&f.push(E.text),u.push(k)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),p=pO(c,d,l,v,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
  104. `:"<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=Tt(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,v=n.positionDefault,p=Dh([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),b=new Iw;m.marker=b.makeTooltipMarker("item",hc(m.color),h);var _=uO(u.formatTooltip(c,!1,f)),w=p.get("order"),C=p.get("valueFormatter"),S=_.frag,x=S?pO(C?Ie({valueFormatter:C},S):S,b,h,w,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,T,n.offsetX,n.offsetY,n.position,n.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=Tt(r),o=i.tooltipConfig,s=o.option||{};if(Je(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=n.positionDefault,d=Dh(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new Iw;this._showOrMove(d,function(){var g=pt(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,n.offsetX,n.offsetY,n.position,r,p)}),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,v=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),p=v.color;if(d)if(Je(d)){var g=n.ecModel.get("useUTC"),m=Re(a)?a[0]:a,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,b&&(h=mg(m.axisValue,h,g)),h=aA(h,a,!0)}else if(ut(d)){var _=et(function(w,C){w===this._ticket&&(f.setContent(C,c,n,p,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,_)}else h=d;f.setContent(h,c,n,p,l),f.show(n,p),this._updatePosition(n,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||Re(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Re(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"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),ut(r)&&(r=r([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),Re(r))a=qe(r[0],u),i=qe(r[1],c);else if(ht(r)){var p=r;p.width=f[0],p.height=f[1];var g=qn(p,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(Je(r)&&l){var m=UGe(r,v,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=WGe(a,i,o,u,c,d?null:20,h?null:20);a=m[0],i=m[1]}if(d&&(a-=x4(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=x4(h)?f[1]/2:h==="bottom"?f[1]:0),MU(n)){var m=KGe(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&&z(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&z(u,function(d,h){var v=f[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&z(p,function(m,b){var _=g[b];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&z(d.seriesDataIndices,function(m){var b=m.seriesIndex,_=r[b],w=i[b];_&&w&&w.data!==_.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){Zt.node||!r.getDom()||(kp(this,"_updatePosition"),this._tooltipContent.dispose(),nT("itemTooltip",r))},t.type="tooltip",t}(kn);function Dh(e,t,n){var r=t.ecModel,a;n?(a=new fn(n,r,r),a=new fn(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof fn&&(o=o.get("tooltip",!0)),Je(o)&&(o={formatter:o}),o&&(a=new fn(o,a,r)))}return a}function C4(e,t){return e.dispatchAction||et(t.dispatchAction,t)}function WGe(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 KGe(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 UGe(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 x4(e){return e==="center"||e==="middle"}function YGe(e,t,n){var r=Nk(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=cg(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=Tt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const jGe=GGe;function qGe(e){Bt(Ag),e.registerComponentModel(AGe),e.registerComponentView(jGe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Nn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Nn)}var XGe=["rect","polygon","keep","clear"];function ZGe(e,t){var n=dn(e?e.brush:[]);if(n.length){var r=[];z(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;Re(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),JGe(s),t&&!s.length&&s.push.apply(s,XGe)}}function JGe(e){var t={};z(e,function(n){t[n]=1}),e.length=0,z(t,function(n,r){e.push(r)})}var T4=z;function M4(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function lT(e,t,n){var r={};return T4(t,function(i){var o=r[i]=a();T4(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=pt(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 IU(e,t,n){var r;z(n,function(a){t.hasOwnProperty(a)&&M4(t[a])&&(r=!0)}),r&&z(n,function(a){t.hasOwnProperty(a)&&M4(t[a])?e[a]=pt(t[a]):delete e[a]})}function QGe(e,t,n,r,a,i){var o={};z(e,function(f){var d=_r.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return gA(n,s,f)}function u(f,d){GW(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 v=r.call(a,f),p=t[v],g=o[v],m=0,b=g.length;m<b;m++){var _=g[m];p[_]&&p[_].applyVisual(f,l,u)}}}function eWe(e,t,n,r){var a={};return z(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(C){return gA(s,f,C)}function c(C,S){GW(s,f,C,S)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var v=r!=null?d.get(l,f):f,p=n(v),g=t[p],m=a[p],b=0,_=m.length;b<_;b++){var w=m[b];g[w]&&g[w].applyVisual(v,u,c)}}}}}function tWe(e){var t=e.brushType,n={point:function(r){return k4[t].point(r,n,e)},rect:function(r){return k4[t].rect(r,n,e)}};return n}var k4={lineX:A4(0),lineY:A4(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])&&Tu(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(Tu(r,a,i)||Tu(r,a+o,i)||Tu(r,a,i+s)||Tu(r,a+o,i+s)||Rt.create(e).contain(l[0],l[1])||Wh(a,i,a+o,i,r)||Wh(a,i,a,i+s,r)||Wh(a+o,i,a+o,i+s,r)||Wh(a,i+s,a+o,i+s,r))return!0}}};function A4(e){var t=["x","y"],n=["width","height"];return{point:function(r,a,i){if(r){var o=i.range,s=r[e];return Ph(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(),Ph(s[0],o)||Ph(s[1],o)||Ph(o[0],s)||Ph(o[1],s)}}}}function Ph(e,t){return t[0]<=e&&e<=t[1]}var E4=["inBrush","outOfBrush"],US="__ecBrushSelect",uT="__ecInBrushSelectEvent";function DU(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new EE(t.option,e);n.setInputRanges(t.areas,e)})}function nWe(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})}),DU(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:pt(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],v=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=Oe(o.areas,function(C){var S=oWe[C.brushType],x=ft({boundingRect:S?S(C):void 0},C);return x.selectors=tWe(x),x}),g=lT(o.option,E4,function(C){C.mappingMethod="fixed"});Re(c)&&z(c,function(C){f[C]=1});function m(C){return c==="all"||!!f[C]}function b(C){return!!C.length}e.eachSeries(function(C,S){var x=h[S]=[];C.subType==="parallel"?_(C,S):w(C,S,x)});function _(C,S){var x=C.coordinateSystem;v=v||x.hasAxisBrushed(),m(S)&&x.eachActiveState(C.getData(),function(T,M){T==="active"&&(d[M]=1)})}function w(C,S,x){if(!(!C.brushSelector||iWe(o,S))&&(z(p,function(M){o.brushTargetManager.controlSeries(M,C,e)&&x.push(M),v=v||b(x)}),m(S)&&b(x))){var T=C.getData();T.each(function(M){I4(C,x,T,M)&&(d[M]=1)})}}e.eachSeries(function(C,S){var x={seriesId:C.id,seriesIndex:S,seriesName:C.name,dataIndex:[]};l.selected.push(x);var T=h[S],M=C.getData(),A=m(S)?function(k){return d[k]?(x.dataIndex.push(M.getRawIndex(k)),"inBrush"):"outOfBrush"}:function(k){return I4(C,T,M,k)?(x.dataIndex.push(M.getRawIndex(k)),"inBrush"):"outOfBrush"};(m(S)?v:b(T))&&QGe(E4,g,M,A)})}),rWe(t,a,i,r,n)}function rWe(e,t,n,r,a){if(a){var i=e.getZr();if(!i[uT]){i[US]||(i[US]=aWe);var o=Kd(i,US,n,t);o(e,r)}}}function aWe(e,t){if(!e.isDisposed()){var n=e.getZr();n[uT]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[uT]=!1}}function I4(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 iWe(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(Re(n)?Nt(n,t)<0:t!==n)}var oWe={rect:function(e){return D4(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&&D4(t)}};function D4(e){return new Rt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var sWe=function(e){ge(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 uE(r.getZr())).on("brush",et(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){DU(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:pt(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:pt(a),$from:r})},t.type="brush",t}(kn);const lWe=sWe;var uWe="#ddd",cWe=function(e){ge(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&&IU(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:uWe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=Oe(n,function(r){return P4(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=P4(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}(Yt);function P4(e,t){return Dt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new fn(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const fWe=cWe;var dWe=["rect","polygon","lineX","lineY","keep","clear"],hWe=function(e){ge(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,z(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 z(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:dWe.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}(Ya);const vWe=hWe;function pWe(e){e.registerComponentView(lWe),e.registerComponentModel(fWe),e.registerPreprocessor(ZGe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,nWe),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"},Nn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Nn),vf("brush",vWe)}var gWe=function(e){ge(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}(Yt),mWe=function(e){ge(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=Lt(n.get("textBaseline"),n.get("textVerticalAlign")),c=new qt({style:pn(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new qt({style:pn(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=n.get("link"),p=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){z0(v,"_"+n.get("target"))}),p&&h.on("click",function(){z0(p,"_"+n.get("subtarget"))}),Tt(c).eventData=Tt(h).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(h);var m=i.getBoundingRect(),b=n.getBoxLayoutParams();b.width=m.width,b.height=m.height;var _=qn(b,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),m=i.getBoundingRect();var C=_.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var x=new Xt({shape:{x:m.x-C[3],y:m.y-C[0],width:m.width+C[1]+C[3],height:m.height+C[0]+C[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(x)}},t.type="title",t}(kn);function yWe(e){e.registerComponentModel(gWe),e.registerComponentView(mWe)}var bWe=function(e){ge(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=[],z(r,function(u,c){var f=er(Pd(u),""),d;ht(u)?(d=pt(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 Rr([{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}(Yt);const L4=bWe;var PU=function(e){ge(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=Rl(L4.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}(L4);Bn(PU,dA.prototype);const _We=PU;var wWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(kn);const SWe=wWe;var CWe=function(e){ge(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}(pi);const xWe=CWe;var YS=Math.PI,R4=Qt(),TWe=function(e){ge(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 lr("nameValue",{noName:!0,value:c})},z(["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=kWe(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?"+":"-":Je(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:YS/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),h=d.get("show",!0),v=h?d.get("itemSize"):0,p=h?d.get("itemGap"):0,g=v+p,m=n.get(["label","rotate"])||0;m=m*YS/180;var b,_,w,C=d.get("position",!0),S=h&&d.get("showPlayBtn",!0),x=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),M=0,A=f;C==="left"||C==="bottom"?(S&&(b=[0,0],M+=g),x&&(_=[M,0],M+=g),T&&(w=[A-v,0],A-=g)):(S&&(b=[A-v,0],A-=g),x&&(_=[0,0],M+=g),T&&(w=[A-v,0],A-=g));var k=[M,A];return n.get("inverse")&&k.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:b,prevBtnPosition:_,nextBtnPosition:w,axisExtent:k,controlSize:v,controlGap:p}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=La(),l=o.x,u=o.y+o.height;Vi(s,s,[-l,-u]),Pl(s,s,-YS/2),Vi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),f=b(a.getBoundingRect()),d=b(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=c[0][0];var p=n.labelPosOpt;if(p==null||Je(p)){var g=p==="+"?0:1;_(h,f,c,1,g),_(v,d,c,1,1-g)}else{var g=p>=0?0:1;_(h,f,c,1,g),v[1]=h[1]+p}a.setPosition(h),i.setPosition(v),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 b(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function _(w,C,S,x,T){w[x]+=S[x][T]-C[x][T]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=MWe(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 xWe("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new bt;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 rr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Ie({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new rr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ft({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=[],z(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:et(o._changeTimeline,o,u.value)},g=O4(f,d,r,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),rl(g);var m=Tt(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=[],z(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),v=d.getModel(["emphasis","label"]),p=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),m=new qt({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:et(o._changeTimeline,o,f),silent:!1,style:pn(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=pn(v),m.ensureState("progress").style=pn(p),r.add(m),rl(m),R4(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",et(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",et(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",et(this._handlePlayClick,this,!c),!0);function d(h,v,p,g){if(h){var m=Fi(Lt(i.get(["controlStyle",v+"BtnSize"]),o),o),b=[0,-m/2,m,m],_=AWe(i,v+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,r.add(_),rl(_)}}},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=et(u._handlePointerDrag,u),f.ondragend=et(u._handlePointerDragend,u),N4(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){N4(f,u._progressLine,s,a,i)}};this._currentPointer=O4(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=Ea(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 Ni(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",R4(a[i]).dataIndex<=n)},t.type="timeline.slider",t}(SWe);function MWe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new EA({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new O9({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new bl}}function kWe(e,t){return qn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function AWe(e,t,n,r){var a=r.style,i=Nd(e.get(["controlStyle",t]),r||{},new Rt(n[0],n[1],n[2],n[3]));return a&&i.setStyle(a),i}function O4(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=zn(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=Dt({rectHover:!0,z2:100},r,!0);var u=Ud(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=kc(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 N4(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 EWe=TWe;function IWe(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)}),ft({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 DWe(e){var t=e&&e.timeline;Re(t)||(t=t?[t]:[]),z(t,function(n){n&&PWe(n)})}function PWe(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),$4(e),Au(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});Au(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!Au(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}z(e.data||[],function(a){ht(a)&&!Re(a)&&(!Au(a,"value")&&Au(a,"name")&&(a.value=a.name),$4(a))})}function $4(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};z(r,function(o,s){!i[s]&&!Au(a,s)&&(a[s]=o)}),n.label&&!Au(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function Au(e,t){return e.hasOwnProperty(t)}function LWe(e){e.registerComponentModel(_We),e.registerComponentView(EWe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),IWe(e),e.registerPreprocessor(DWe)}function PE(e,t){if(!e)return!1;for(var n=Re(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function Xm(e){uc(e,"label",["show"])}var Zm=Qt(),LU=function(e){ge(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(Zt.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=Zm(s)[o];if(!l||!l.data){Zm(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&Xm(l),z(l.data,function(c){c instanceof Array?(Xm(c[0]),Xm(c[1])):Xm(c)}),u=this.createMarkerModelFromSeries(l,this,r),Ie(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Zm(s)[o]=u},this)},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return lr("section",{header:this.name,blocks:[lr("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.getMarkerModelFromSeries=function(n,r){return Zm(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Yt);Bn(LU,dA.prototype);const Sl=LU;var RWe=function(e){ge(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}(Sl);const OWe=RWe;function cT(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function NWe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Jm(e,t,n,r,a,i){var o=[],s=is(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=LE(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=Ai(t.get(r,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var jS={min:xt(Jm,"min"),max:xt(Jm,"max"),average:xt(Jm,"average"),median:xt(Jm,"median")};function Fp(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!NWe(t)&&!Re(t.coord)&&Re(a)){var i=RU(t,n,r,e);if(t=pt(t),t.type&&jS[t.type]&&i.baseAxis&&i.valueAxis){var o=Nt(a,i.baseAxis.dim),s=Nt(a,i.valueAxis.dim),l=jS[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||!Re(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)jS[u[c]]&&(u[c]=LE(n,n.mapDimension(a[c]),u[c]));return t}}function RU(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($We(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 $We(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function zp(e,t){return e&&e.containData&&t.coord&&!cT(t)?e.containData(t.coord):!0}function BWe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!cT(t)&&!cT(n)?e.containZone(t.coord,n.coord):!0}function OU(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return ol(o,t[i])}:function(n,r,a,i){return ol(n.value,t[i])}}function LE(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 qS=Qt(),VWe=function(e){ge(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=ot()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){qS(s).keep=!1}),r.eachSeries(function(s){var l=Sl.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!qS(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){qS(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;z(n,function(i){var o=Sl.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?lG(l):Hk(l))})}})},t.type="marker",t}(kn);const RE=VWe;function B4(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 FWe=function(e){ge(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=Sl.getMarkerModelFromSeries(i,"markPoint");o&&(B4(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 Sg),f=zWe(o,n,r);r.setData(f),B4(r.getData(),n,i),f.each(function(d){var h=f.getItemModel(d),v=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(ut(v)||ut(p)||ut(g)||ut(m)){var _=r.getRawValue(d),w=r.getDataParams(d);ut(v)&&(v=v(_,w)),ut(p)&&(p=p(_,w)),ut(g)&&(g=g(_,w)),ut(m)&&(m=m(_,w))}var C=h.getModel("itemStyle").getItemStyle(),S=yg(l,"color");C.fill||(C.fill=S),f.setItemVisual(d,{symbol:v,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:b,style:C})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Tt(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(RE);function zWe(e,t,n){var r;e?r=Oe(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Ie(Ie({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Rr(r,n),i=Oe(n.get("data"),xt(Fp,t));e&&(i=sn(i,xt(zp,e)));var o=OU(!!e,r);return a.initData(i,null,o),a}const HWe=FWe;function GWe(e){e.registerComponentModel(OWe),e.registerComponentView(HWe),e.registerPreprocessor(function(t){PE(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var WWe=function(e){ge(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}(Sl);const KWe=WWe;var Qm=Qt(),UWe=function(e,t,n,r){var a=e.getData(),i;if(Re(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=nr(r.yAxis,r.xAxis);else{var u=RU(r,a,t,e);s=u.valueAxis;var c=AA(a,u.valueDataDim);l=LE(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=pt(r),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var p=n.get("precision");p>=0&&Jt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[f]=v.coord[f]=l,i=[h,v,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[Fp(e,i[0]),Fp(e,i[1]),Ie({},i[2])];return g[2].type=g[2].type||null,Dt(g[2],g[0]),Dt(g[2],g[1]),g};function pb(e){return!isNaN(e)&&!isFinite(e)}function V4(e,t,n,r){var a=1-e,i=r.dimensions[e];return pb(t[a])&&pb(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function YWe(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(V4(1,n,r,e)||V4(0,n,r,e)))return!0}return zp(e,t[0])&&zp(e,t[1])}function XS(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(Ac(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;pb(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):pb(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var jWe=function(e){ge(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=Sl.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Qm(o).from,u=Qm(o).to;l.each(function(c){XS(l,c,!0,i,a),XS(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 rE);this.group.add(c.group);var f=qWe(o,n,r),d=f.from,h=f.to,v=f.line;Qm(r).from=d,Qm(r).to=h,r.setData(v);var p=r.get("symbol"),g=r.get("symbolSize"),m=r.get("symbolRotate"),b=r.get("symbolOffset");Re(p)||(p=[p,p]),Re(g)||(g=[g,g]),Re(m)||(m=[m,m]),Re(b)||(b=[b,b]),f.from.each(function(w){_(d,w,!0),_(h,w,!1)}),v.each(function(w){var C=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),C.stroke==null&&(C.stroke=d.getItemVisual(w,"style").fill),v.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:C})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Tt(w).dataModel=r,w.traverse(function(C){Tt(C).dataModel=r})});function _(w,C,S){var x=w.getItemModel(C);XS(w,C,S,n,i);var T=x.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=yg(l,"color")),w.setItemVisual(C,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:Lt(x.get("symbolOffset",!0),b[S?0:1]),symbolRotate:Lt(x.get("symbolRotate",!0),m[S?0:1]),symbolSize:Lt(x.get("symbolSize"),g[S?0:1]),symbol:Lt(x.get("symbol",!0),p[S?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(RE);function qWe(e,t,n){var r;e?r=Oe(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Ie(Ie({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Rr(r,n),i=new Rr(r,n),o=new Rr([],n),s=Oe(n.get("data"),xt(UWe,t,e,n));e&&(s=sn(s,xt(YWe,e)));var l=OU(!!e,r);return a.initData(Oe(s,function(u){return u[0]}),null,l),i.initData(Oe(s,function(u){return u[1]}),null,l),o.initData(Oe(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const XWe=jWe;function ZWe(e){e.registerComponentModel(KWe),e.registerComponentView(XWe),e.registerPreprocessor(function(t){PE(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var JWe=function(e){ge(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}(Sl);const QWe=JWe;var ey=Qt(),e9e=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Fp(e,a),s=Fp(e,i),l=o.coord,u=s.coord;l[0]=nr(l[0],-1/0),l[1]=nr(l[1],-1/0),u[0]=nr(u[0],1/0),u[1]=nr(u[1],1/0);var c=v1([{},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 gb(e){return!isNaN(e)&&!isFinite(e)}function F4(e,t,n,r){var a=1-e;return gb(t[a])&&gb(n[a])}function t9e(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 Ac(e,"cartesian2d")?n&&r&&(F4(1,n,r)||F4(0,n,r))?!0:BWe(e,a,i):zp(e,a)||zp(e,i)}function z4(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),v=[];n[0]==="x0"?v[0]=d[0]>h[0]?f[0]:c[0]:v[0]=d[0]>h[0]?c[0]:f[0],n[1]==="y0"?v[1]=d[1]>h[1]?f[1]:c[1]:v[1]=d[1]>h[1]?c[1]:f[1],s=r.getMarkerPosition(v,n,!0)}else{var p=e.get(n[0],t),g=e.get(n[1],t),m=[p,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(Ac(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),p=e.get(n[0],t),g=e.get(n[1],t);gb(p)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):gb(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var H4=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],n9e=function(e){ge(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=Sl.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Oe(H4,function(f){return z4(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 bt});this.group.add(c.group),this.markKeep(c);var f=r9e(o,n,r);r.setData(f),f.each(function(d){var h=Oe(H4,function(T){return z4(f,d,T,n,i)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,g=v.getExtent(),m=p.getExtent(),b=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],_=[p.parse(f.get("y0",d)),p.parse(f.get("y1",d))];Ea(b),Ea(_);var w=!(g[0]>b[1]||g[1]<b[0]||m[0]>_[1]||m[1]<_[0]),C=!w;f.setItemLayout(d,{points:h,allClipped:C});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),x=yg(l,"color");S.fill||(S.fill=x,Je(S.fill)&&(S.fill=vp(S.fill,.4))),S.stroke||(S.stroke=x),f.setItemVisual(d,"style",S)}),f.diff(ey(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new na({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=ey(c).data.getItemGraphicEl(h),p=f.getItemLayout(d);p.allClipped?v&&c.group.remove(v):(v?tn(v,{shape:{points:p.points}},r,d):v=new na({shape:{points:p.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=ey(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var v=f.getItemModel(h),p=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),xr(d,sr(v),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:Je(p.fill)?vp(p.fill,1):"#000"}),Cr(d,v),On(d,null,null,v.get(["emphasis","disabled"])),Tt(d).dataModel=r}),ey(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(RE);function r9e(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=Oe(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Ie(Ie({},f),{name:u,ordinalMeta:null})});a=Oe(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new Rr(a,n)}else a=[{name:"value",type:"float"}],r=new Rr(a,n);var s=Oe(n.get("data"),xt(e9e,t,e,n));e&&(s=sn(s,xt(t9e,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return ol(h,a[d])}:function(u,c,f,d){return ol(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const a9e=n9e;function i9e(e){e.registerComponentModel(QWe),e.registerComponentView(a9e),e.registerPreprocessor(function(t){PE(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var o9e=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"])}},s9e=function(e){ge(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"]),Re(r)&&z(r,function(i,o){Je(i)&&(i={type:i}),r[o]=Dt(i,o9e(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&&Ok(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=ot(),s=Oe(i,function(l){return(Je(l)||Jt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new fn(l,this,this.ecModel))},this);this._data=sn(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;z(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;z(n,function(a){r[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;z(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])&&Nt(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}(Yt);const fT=s9e;var ef=xt,dT=z,ty=bt,l9e=function(e){ge(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 ty),this.group.add(this._selectorGroup=new ty),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=qn(c,f,d),v=this.layoutInner(n,o,h,i,l,u),p=qn(ft({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=CU(v,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=ot(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),dT(r.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
  105. `)){var g=new ty;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var b=m.getData(),_=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),C=b.getVisual("style"),S=this._createItem(m,p,v,h,r,n,_,C,w,f,i);S.on("click",ef(G4,p,null,i,d)).on("mouseover",ef(hT,m.name,null,i,d)).on("mouseout",ef(vT,m.name,null,i,d)),c.set(p,!0)}else a.eachRawSeries(function(x){if(!c.get(p)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(p))return;var M=T.indexOfName(p),A=T.getItemVisual(M,"style"),k=T.getItemVisual(M,"legendIcon"),E=qr(A.fill);E&&E[3]===0&&(E[3]=.2,A=Ie(Ie({},A),{fill:Oi(E,"rgba")}));var D=this._createItem(x,p,v,h,r,n,{},A,k,f,i);D.on("click",ef(G4,null,p,i,d)).on("mouseover",ef(hT,null,p,i,d)).on("mouseout",ef(vT,null,p,i,d)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},t.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();dT(n,function(u){var c=u.type,f=new qt({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"]);xr(f,{normal:d,emphasis:h},{defaultText:u.title}),rl(f)})},t.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var h=n.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(r),m=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var w=u9e(c,i,l,u,h,g,d),C=new ty,S=i.getModel("textStyle");if(ut(n.getLegendIcon)&&(!_||_==="inherit"))C.add(n.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var x=_==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;C.add(c9e({itemWidth:v,itemHeight:p,icon:c,iconRotate:x,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}))}var T=s==="left"?v+5:-5,M=s,A=o.get("formatter"),k=r;Je(A)&&A?k=A.replace("{name}",r??""):ut(A)&&(k=A(r));var E=g?S.getTextColor():i.get("inactiveColor");C.add(new qt({style:pn(S,{text:k,x:T,y:p/2,fill:E,align:M,verticalAlign:"middle"},{inheritColor:E})}));var D=new Xt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&$d({el:D,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(D),C.eachChild(function(B){B.silent=!0}),D.silent=!f,this.getContentGroup().add(C),rl(C),C.__legendDataIndex=a,C},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ju(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){Ju("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=n.get("selectorButtonGap",!0),p=n.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",b=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[b]=Math.min(0,d[b]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(kn);function u9e(e,t,n,r,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),dT(g,function(b,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:pd(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 v=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?r.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function c9e(e){var t=e.icon||"roundRect",n=zn(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 G4(e,t,n,r){vT(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),hT(e,t,n,r)}function NU(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 hT(e,t,n,r){NU(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function vT(e,t,n,r){NU(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}const $U=l9e;function f9e(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 Lh(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();z(s,function(l){var u=l.get("name");if(!(u===`
  106. `||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 d9e(e){e.registerAction("legendToggleSelect","legendselectchanged",xt(Lh,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",xt(Lh,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",xt(Lh,"inverseSelect")),e.registerAction("legendSelect","legendselected",xt(Lh,"select")),e.registerAction("legendUnSelect","legendunselected",xt(Lh,"unSelect"))}function BU(e){e.registerComponentModel(fT),e.registerComponentView($U),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,f9e),e.registerSubTypeDefaulter("legend",function(){return"plain"}),d9e(e)}var h9e=function(e){ge(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=Fd(n);e.prototype.init.call(this,n,r,a),W4(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),W4(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Rl(fT.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}(fT);function W4(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,yl(t,n,{type:"box",ignoreSize:!!a})}const v9e=h9e;var K4=bt,ZS=["width","height"],JS=["x","y"],p9e=function(e){ge(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 K4),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new K4)},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=Re(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new qt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",b=Nd(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:et(u._pageGo,u,m,r,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=p,c.add(b)}},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=ZS[u],f=JS[u],d=ZS[1-u],h=JS[1-u];o&&Ju("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=pt(a);o&&(m[c]=a[c]-p[c]-v);var b=this._layoutContentAndController(n,i,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=b[c]+v;else{var _=p[c]+v;g[u]-=_,b[f]-=_}b[c]+=p[c]+v,g[1-u]+=b[h]+b[d]/2-p[d]/2,b[d]=Math.max(b[d],p[d]),b[h]=Math.min(b[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(n,r,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Ju(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),Ju("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var m=[0,0],b=[-v.x,-v.y],_=Lt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var w=n.get("pageButtonPosition",!0);w==="end"?b[i]+=a[o]-v[o]:m[i]+=v[o]+_}b[1-i]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(b);var C={x:0,y:0};if(C[o]=p?a[o]:h[o],C[s]=Math.max(h[s],v[s]),C[l]=Math.min(0,v[l]+b[1-i]),f.__rectSize=a[o],p){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-_,0),S[s]=C[s],f.setClipPath(new Xt({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(n);return x.pageIndex!=null&&tn(c,{x:x.contentPosition[0],y:x.contentPosition[1]},p?n:null),this._updatePageInfoView(n,x),C},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;z(["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",Je(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=ZS[o],l=JS[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=w(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,b=p,_=null;g<=d;++g)_=w(c[g]),(!_&&b.e>m.s+i||_&&!C(_,m.s))&&(b.i>m.i?m=b:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),b=_;for(var g=u-1,m=p,b=p,_=null;g>=-1;--g)_=w(c[g]),(!_||!C(b,_.s))&&m.i<b.i&&(b=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function w(S){if(S){var x=S.getBoundingRect(),T=x[l]+S[l];return{s:T,e:T+x[s],i:S.__legendDataIndex}}}function C(S,x){return S.e>=x&&S.s<=x+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}($U);const g9e=p9e;function m9e(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 y9e(e){Bt(BU),e.registerComponentModel(v9e),e.registerComponentView(g9e),m9e(e)}function b9e(e){Bt(BU),Bt(y9e)}var _9e=function(e){ge(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=Rl(Vp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Vp);const w9e=_9e;var OE=Qt();function S9e(e,t,n){OE(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function C9e(e,t){for(var n=OE(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||VU(n,o))}}}function VU(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function x9e(e,t){var n={model:t,containsPoint:xt(M9e,t),dispatchAction:xt(T9e,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Mg(e.getZr());return z(["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 T9e(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function M9e(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function k9e(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 A9e(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=OE(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=ot());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=_U(i);z(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,x9e(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ot());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){VU(a,i);return}var c=k9e(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Kd(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var E9e=function(e){ge(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(),S9e(a,n,{pan:et(QS.pan,this),zoom:et(QS.zoom,this),scrollMove:et(QS.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){C9e(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(ME),QS={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=eC[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(Ic(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:U4(function(e,t,n,r,a,i){var o=eC[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:U4(function(e,t,n,r,a,i){var o=eC[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function U4(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(Ic(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var eC={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 I9e=E9e;function FU(e){kE(e),e.registerComponentModel(w9e),e.registerComponentView(I9e),A9e(e)}var D9e=function(e){ge(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=Rl(Vp.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}(Vp);const P9e=D9e;var Rh=Xt,Y4=7,L9e=1,tC=30,R9e=7,Oh="horizontal",j4="vertical",O9e=5,N9e=["line","bar","candlestick","scatter"],$9e={easing:"cubicOut",duration:100,delay:0},B9e=function(e){ge(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=et(this._onBrush,this),this._onBrushEnd=et(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),Kd(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(){kp(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 bt;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?R9e:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Oh?{right:s.width-o.x-o.width,top:s.height-tC-Y4-i,width:o.width,height:tC}:{right:Y4,top:o.y,width:tC,height:o.height},u=Fd(n.option);z(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=qn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===j4&&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===Oh&&!o?{scaleY:l?1:-1,scaleX:1}:a===Oh&&o?{scaleY:l?1:-1,scaleX:-1}:a===j4&&!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 Rh({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new Rh({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:et(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]],v=[0,r[0]],p=[[r[0],0],[0,0]],g=[],m=v[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),w;o.each([l],function(M,A){if(_>0&&A%_){b+=m;return}var k=M==null||isNaN(M)||M==="",E=k?0:on(M,f,h,!0);k&&!w&&A?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!k&&w&&(p.push([b,0]),g.push([b,0])),p.push([b,E]),g.push([b,E]),b+=m,w=k}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function S(M){var A=C.getModel(M?"selectedDataBackground":"dataBackground"),k=new bt,E=new na({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),D=new aa({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return k.add(E),k.add(D),k}for(var x=0;x<3;x++){var T=S(x===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();z(l,function(u){if(!a&&!(r!==!0&&Nt(N9e,u.get("type"))<0)){var c=i.getComponent(Xs(o),s).axis,f=V9e(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 Rh({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Rh({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:L9e,fill:"rgba(0,0,0,0)"}})),z([0,1],function(_){var w=l.get("handleIcon");!W0[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var C=zn(w,-1,0,2,2,null,!0);C.attr({cursor:q4(this._orient),draggable:!0,drift:et(this._onDragMove,this,_),ondragend:et(this._onDragEnd,this),onmouseover:et(this._showDataInfo,this,!0),onmouseout:et(this._showDataInfo,this,!1),z2:5});var S=C.getBoundingRect(),x=l.get("handleSize");this._handleHeight=qe(x,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),rl(C);var T=l.get("handleColor");T!=null&&(C.style.fill=T),o.add(a[_]=C);var M=l.getModel("textStyle");n.add(i[_]=new qt({silent:!0,invisible:!0,style:pn(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var h=d;if(f){var v=qe(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new Xt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,m=r.moveHandleIcon=zn(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(v,10));h=r.moveZone=new Xt({invisible:!0,shape:{y:s[1]-b,height:v+b}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:q4(this._orient),drift:et(this._onDragMove,this,"all"),ondragstart:et(this._showDataInfo,this,!0),ondragend:et(this._onDragEnd,this),onmouseover:et(this._showDataInfo,this,!0),onmouseout:et(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[on(n[0],[0,100],r,!0),on(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];Ic(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?on(s.minSpan,l,o,!0):null,s.maxSpan!=null?on(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ea([on(i[0],o,l,!0),on(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=Ea(a.slice()),o=this._size;z([0,1],function(h){var v=r.handles[h],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/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 Xt,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=Ea(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var p=al(a.handles[v].parent,this.group),g=P1(v===0?"right":"left",p),m=this._handleWidth/2+O9e,b=Ni([d[v]+(v===0?-m:m),this._size[1]/2],p);i[v].setStyle({x:b[0],y:b[1],verticalAlign:o===Oh?"middle":g,align:o===Oh?g:"center",text:s[v]})}},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 ut(i)?i(n,s):Je(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,ts(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ni([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 Pt(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=Ea([on(a.x,o,s,!0),on(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&&(ts(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 Rh({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?$9e:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=_U(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}(ME);function V9e(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function q4(e){return e==="vertical"?"ns-resize":"ew-resize"}const F9e=B9e;function zU(e){e.registerComponentModel(P9e),e.registerComponentView(F9e),kE(e)}function z9e(e){Bt(FU),Bt(zU)}var H9e={get:function(e,t,n){var r=pt((G9e[e]||{})[t]);return n&&Re(r)?r[r.length-1]:r}},G9e={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 HU=H9e;var X4=_r.mapVisual,W9e=_r.eachVisual,K9e=Re,Z4=z,U9e=Ea,Y9e=on,j9e=function(e){ge(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&&IU(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=et(n,this),this.controllerVisuals=lT(this.option.controller,r,n),this.targetVisuals=lT(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=dn(n),r},t.prototype.eachTargetSeries=function(n,r){z(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||["<",">"],Re(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Je(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ut(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=U9e([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={});Dt(i,a),Dt(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){K9e(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 v=f[d],p=f[h];v&&!p&&(p=f[h]={},Z4(v,function(g,m){if(_r.isValidType(m)){var b=HU.get(m,"inactive",s);b!=null&&(p[m]=b,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";Z4(this.stateList,function(m){var b=this.itemSize,_=f[m];_||(_=f[m]={color:s?v:[v]}),_.symbol==null&&(_.symbol=d&&pt(d)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&pt(h)||(s?b[0]:[b[0],b[0]])),_.symbol=X4(_.symbol,function(S){return S==="none"?g:S});var w=_.symbolSize;if(w!=null){var C=-1/0;W9e(w,function(S){S>C&&(C=S)}),_.symbolSize=X4(w,function(S){return Y9e(S,[0,C],[0,b[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}(Yt);const mb=j9e;var J4=[20,140],q9e=function(e){ge(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]=J4[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=J4[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Re(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),z(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=Ea((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=Q4(this,"outOfRange",this.getExtent()),a=Q4(this,"inRange",this.option.range.slice()),i=[];function o(h,v){i.push({value:h,color:n(h,v)})}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=Rl(mb.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}(mb);function Q4(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 X9e=q9e;var Z9e=function(e){ge(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=Mc(r.get("padding")||0),i=n.getBoundingRect();n.add(new Xt({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,v){s[h]=v}var f=o.controllerVisuals[i||o.getValueState(n)],d=_r.prepareVisualTypes(f);return z(d,function(h){var v=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),_r.dependsOn(h,r)&&v&&v.applyVisual(n,u,c)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;B1(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(n,r,a,i){},t.type="visualMap",t}(kn);const GU=Z9e;var eB=[["left","right","width"],["top","bottom","height"]];function WU(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=eB[o],l=[0,null,10],u={},c=0;c<3;c++)u[eB[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=qn(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 Xy(e,t){return z(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var eo=on,J9e=z,tB=Math.min,nC=Math.max,Q9e=12,e7e=6,t7e=function(e){ge(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.doRender=function(n,r,a,i){this._api=a,(!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 qt({style:pn(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=WU(r,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new bt;u.add(c),c.add(a.outOfRange=nB()),c.add(a.inRange=nB(null,s?aB(this._orient):null,et(this._dragHandle,this,"all",!1),et(this._dragHandle,this,"all",!0))),c.setClipPath(new Xt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=nC(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=et(this._dragHandle,this,a,!1),u=et(this._dragHandle,this,a,!0),c=Fi(n.get("handleSize"),i[0]),f=zn(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=aB(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){ts(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(),Bu(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,v=new qt({cursor:d,draggable:!0,drift:l,onmousemove:function(m){ts(m.event)},ondragend:u,style:pn(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var p=[c,0],g=this._shapes;g.handleThumbs[a]=f,g.handleLabelPoints[a]=p,g.handleLabels[a]=v},t.prototype._createIndicator=function(n,r,a,i,o){var s=Fi(n.get("indicatorSize"),a[0]),l=zn(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 hr){var c=l.style;l.useStyle(Ie({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 qt({silent:!0,invisible:!0,style:pn(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:e7e)+a[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=d,v.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():rB(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=[eo(r[0],a,i,!0),eo(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]];Ic(r,i,o,n,0);var s=a.getExtent();this._dataInterval=[eo(i[0],o,s,!0),eo(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 Rd(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 bt(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();J9e([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=eo(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 v=Ni(a.handleLabelPoints[c],al(f,this.group));s[c].setStyle({x:v[0],y:v[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),v=this.getControllerVisual(n,"symbolSize"),p=eo(n,s,u,!0),g=l[0]-v/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var b=Ni(c.indicatorLabelPoint,al(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),C=this._orient,S=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:S?w:"middle",align:S?"center":w});var x={x:g,y:p,style:{fill:h}},T={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(x,M),_.animateTo(T,M)}else f.attr(x),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var k=0;k<A.length;k++)this._api.enterBlur(A[k])}},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]=tB(nC(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=tB(nC(o[0],n),o[1]);var l=n7e(a,s,o),u=[n-l,n+l],c=eo(n,o,s,!0),f=[eo(u[0],o,s,!0),eo(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||rB(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=DAe(d,h);this._dispatchHighDown("downplay",Xy(v[0],a)),this._dispatchHighDown("highlight",Xy(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Fu(n.target,function(l){var u=Tt(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",Xy(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=al(r,i?null:this.group);return Re(n)?Ni(n,o,a):P1(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.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(GU);function nB(e,t,n,r){return new na({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(a){ts(a.event)},ondragend:r})}function n7e(e,t,n){var r=Q9e/2,a=e.get("hoverLinkDataSize");return a&&(r=eo(a,t,n,!0)/2),r}function rB(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function aB(e){return e==="vertical"?"ns-resize":"ew-resize"}const r7e=t7e;var a7e={type:"selectDataRange",event:"dataRangeSelected",update:"update"},i7e=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},o7e=[{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(eWe(r.stateList,r.targetVisuals,et(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(et(s7e,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function s7e(e,t,n,r){for(var a=t.targetVisuals[r],i=_r.prepareVisualTypes(a),o={color:yg(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,v){o[h]=v}}var iB=z;function l7e(e){var t=e&&e.visualMap;Re(t)||(t=t?[t]:[]),iB(t,function(n){if(n){tf(n,"splitList")&&!tf(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&Re(r)&&iB(r,function(a){ht(a)&&(tf(a,"start")&&!tf(a,"min")&&(a.min=a.start),tf(a,"end")&&!tf(a,"max")&&(a.max=a.end))})}})}function tf(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var oB=!1;function KU(e){oB||(oB=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(a7e,i7e),z(o7e,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(l7e))}function UU(e){e.registerComponentModel(X9e),e.registerComponentView(r7e),KU(e)}var u7e=function(e){ge(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=[],c7e[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=pt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Oe(this._pieceList,function(l){return l=pt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=_r.listVisualTypes(),i=this.isCategory();z(n.pieces,function(s){z(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),z(r,function(s,l){var u=!1;z(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&z(this.stateList,function(c){(n[c]||(n[c]={}))[l]=HU.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,z(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;z(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=pt(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 z(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=Rl(mb.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}(mb),c7e={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]}),Qx(e),z(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;z(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),sB(t,e)},pieces:function(e){var t=this.option;z(t.pieces,function(n,r){ht(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),sB(t,e),Qx(e),z(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 sB(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const f7e=u7e;var d7e=function(e){ge(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=nr(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),z(c.viewPieceList,function(h){var v=h.piece,p=new bt;p.onclick=et(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=r.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);p.add(new qt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(p)},this),f&&this._renderEndsText(n,f[1],u,d,l),Ju(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:Xy(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return WU(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 bt,l=this.visualMapModel.textStyleModel;s.add(new qt({style:pn(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=Oe(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(zn(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=pt(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,z(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}(GU);const h7e=d7e;function YU(e){e.registerComponentModel(f7e),e.registerComponentView(h7e),KU(e)}function v7e(e){Bt(UU),Bt(YU)}var p7e={label:{enabled:!0},decal:{show:!1}},lB=Qt(),g7e={};function m7e(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=pt(p7e);Dt(r.label,e.getLocaleModel().get("aria"),!1),Dt(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=ot();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),lB(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(ut(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var b=p2(d.ecModel,d.name,g7e,e.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",w(_,b))}else{var v=d.getRawData(),p={},g=lB(d).scope;h.each(function(C){var S=h.getRawIndex(C);p[S]=C});var m=v.count();v.each(function(C){var S=p[C],x=v.getName(C)||C+"",T=p2(d.ecModel,x,g,m),M=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",w(M,T))})}function w(C,S){var x=C?Ie(Ie({},S),C):S;return x.dirty=!0,x}})}}function i(){var u=e.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=ft(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,p=Math.min(d,v),g;if(!(d<1)){var m=s();if(m){var b=c.get(["general","withTitle"]);g=o(b,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],w=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:d}),e.eachSeries(function(T,M){if(M<p){var A=void 0,k=T.get("name"),E=k?"withName":"withoutName";A=d>1?c.get(["series","multiple",E]):c.get(["series","single",E]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var D=T.getData();if(D.count()>h){var L=c.get(["data","partialData"]);A+=o(L,{displayCnt:h})}else A+=c.get(["data","allData"]);for(var B=c.get(["data","separator","middle"]),$=c.get(["data","separator","end"]),O=[],N=0;N<D.count();N++)if(N<h){var I=D.getName(N),F=D.getValues(N),G=c.get(["data",I?"withName":"withoutName"]);O.push(o(G,{name:I,value:F.join(B)}))}A+=O.join(B)+$,_.push(A)}});var C=c.getModel(["series","multiple","separator"]),S=C.get("middle"),x=C.get("end");g+=_.join(S)+x,f.setAttribute("aria-label",g)}}}function o(u,c){if(!Je(u))return u;var f=u;return z(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){return e.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function y7e(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},z(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function b7e(e){e.registerPreprocessor(y7e),e.registerVisual(e.PRIORITY.VISUAL.ARIA,m7e)}var uB={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},_7e=function(){function e(t){var n=this._condVal=Je(t)?new RegExp(t):Y8(t)?t:null;if(n==null){var r="";rn(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return Je(n)?this._condVal.test(t):Jt(n)?this._condVal.test(t+""):!1},e}(),w7e=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),S7e=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}(),C7e=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}(),x7e=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),T7e=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 NE(e,t){if(e===!0||e===!1){var n=new w7e;return n.value=e,n}var r="";return jU(e)||rn(r),e.and?cB("and",e,t):e.or?cB("or",e,t):e.not?M7e(e,t):k7e(e,t)}function cB(e,t,n){var r=t[e],a="";Re(r)||rn(a),r.length||rn(a);var i=e==="and"?new S7e:new C7e;return i.children=Oe(r,function(o){return NE(o,n)}),i.children.length||rn(a),i}function M7e(e,t){var n=e.not,r="";jU(n)||rn(r);var a=new x7e;return a.child=NE(n,t),a.child||rn(r),a}function k7e(e,t){for(var n="",r=t.prepareGetValue(e),a=[],i=Gt(e),o=e.parser,s=o?_W(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=nt(uB,u)?uB[u]:u,f=e[u],d=s?s(f):f,h=WDe(c,d)||c==="reg"&&new _7e(d);h||rn(n),a.push(h)}}a.length||rn(n);var v=new T7e;return v.valueGetterParam=r,v.valueParser=s,v.getValue=t.getValue,v.subCondList=a,v}function jU(e){return ht(e)&&!Sr(e)}var A7e=function(){function e(t,n){this._cond=NE(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function E7e(e,t){return new A7e(e,t)}var I7e={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=E7e(e.config,{valueGetterAttrMap:ot({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;nt(s,"dimension")||rn(l);var c=t.getDimensionInfo(u);return c||rn(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}}},D7e={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",a=dn(n);a.length||rn(r);var i=[];z(a,function(c){var f=c.dimension,d=c.order,h=c.parser,v=c.incomparable;if(f==null&&rn(r),d!=="asc"&&d!=="desc"&&rn(r),v&&v!=="min"&&v!=="max"){var p="";rn(p)}if(d!=="asc"&&d!=="desc"){var g="";rn(g)}var m=t.getDimensionInfo(f);m||rn(r);var b=h?_W(h):null;h&&!b&&rn(r),i.push({dimIdx:m.index,parser:b,comparator:new SW(d,v)})});var o=t.sourceFormat;o!==$r&&o!==vi&&rn(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],v=t.retrieveValueFromItem(c,h.dimIdx),p=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),p=h.parser(p));var g=h.comparator.evaluate(v,p);if(g!==0)return g}return 0}),{data:s}}};function P7e(e){e.registerTransform(I7e),e.registerTransform(D7e)}var L7e=function(e){ge(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 MW(this),hO(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),hO(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:go},t}(Yt),R7e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t}(kn);function O7e(e){e.registerComponentModel(L7e),e.registerComponentView(R7e)}var Ji=xo.CMD;function Sf(e,t){return Math.abs(e-t)<1e-5}function pT(e){var t=e.data,n=e.len(),r=[],a,i=0,o=0,s=0,l=0;function u(D,L){a&&a.length>2&&r.push(a),a=[D,L]}function c(D,L,B,$){Sf(D,B)&&Sf(L,$)||a.push(D,L,B,$,B,$)}function f(D,L,B,$,O,N){var I=Math.abs(L-D),F=Math.tan(I/4)*4/3,G=L<D?-1:1,U=Math.cos(D),J=Math.sin(D),ae=Math.cos(L),Q=Math.sin(L),ee=U*O+B,te=J*N+$,q=ae*O+B,de=Q*N+$,ve=O*F*G,ie=N*F*G;a.push(ee-ve*J,te+ie*U,q+ve*Q,de-ie*ae,q,de)}for(var d,h,v,p,g=0;g<n;){var m=t[g++],b=g===1;switch(b&&(i=t[g],o=t[g+1],s=i,l=o,(m===Ji.L||m===Ji.C||m===Ji.Q)&&(a=[s,l])),m){case Ji.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case Ji.L:d=t[g++],h=t[g++],c(i,o,d,h),i=d,o=h;break;case Ji.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case Ji.Q:d=t[g++],h=t[g++],v=t[g++],p=t[g++],a.push(i+2/3*(d-i),o+2/3*(h-o),v+2/3*(d-v),p+2/3*(h-p),v,p),i=v,o=p;break;case Ji.A:var _=t[g++],w=t[g++],C=t[g++],S=t[g++],x=t[g++],T=t[g++]+x;g+=1;var M=!t[g++];d=Math.cos(x)*C+_,h=Math.sin(x)*S+w,b?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(T)*C+_,o=Math.sin(T)*S+w;for(var A=(M?-1:1)*Math.PI/2,k=x;M?k>T:k<T;k+=A){var E=M?Math.max(k+A,T):Math.min(k+A,T);f(k,E,_,w,C,S)}break;case Ji.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 Ji.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&r.push(a),r}function gT(e,t,n,r,a,i,o,s,l,u){if(Sf(e,n)&&Sf(t,r)&&Sf(a,o)&&Sf(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,v=Math.sqrt(d*d+h*h);d/=v,h/=v;var p=n-e,g=r-t,m=a-o,b=i-s,_=p*p+g*g,w=m*m+b*b;if(_<f&&w<f){l.push(o,s);return}var C=d*p+h*g,S=-d*m-h*b,x=_-C*C,T=w-S*S;if(x<f&&C>=0&&T<f&&S>=0){l.push(o,s);return}var M=[],A=[];gl(e,n,a,o,.5,M),gl(t,r,i,s,.5,A),gT(M[0],A[0],M[1],A[1],M[2],A[2],M[3],A[3],l,u),gT(M[4],A[4],M[5],A[5],M[6],A[6],M[7],A[7],l,u)}function N7e(e,t){var n=pT(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++],v=i[u++],p=i[u++];gT(s,l,c,f,d,h,v,p,o,t),s=v,l=p}r.push(o)}return r}function qU(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 fB(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=qU([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var v=(c?u:s)/f[h],p=0;p<f[h];p++){var g={};c?(g.startAngle=i+d*h,g.endAngle=i+d*(h+1),g.r0=r+v*p,g.r=r+v*(p+1)):(g.startAngle=i+v*p,g.endAngle=i+v*(p+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 $7e(e,t,n){for(var r=e.width,a=e.height,i=r>a,o=qU([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],v=0;v<o[d];v++){var p={};p[u]=d*f,p[c]=v*h,p[s]=f,p[l]=h,p.x+=e.x,p.y+=e.y,n.push(p)}}function dB(e,t,n,r){return e*r-n*t}function B7e(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=dB(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-a,v=t-i,p=dB(h,v,c,f)/d;return p<0||p>1?null:new Pt(p*l+e,p*u+t)}function V7e(e,t,n){var r=new Pt;Pt.sub(r,n,t),r.normalize();var a=new Pt;Pt.sub(a,e,t);var i=a.dot(r);return i}function nf(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function F7e(e,t,n){for(var r=e.length,a=[],i=0;i<r;i++){var o=e[i],s=e[(i+1)%r],l=B7e(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:V7e(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],v=[d],p=[h],i=u.idx+1;i<=c.idx;i++)nf(v,e[i].slice());nf(v,h),nf(v,d);for(var i=c.idx+1;i<=u.idx+r;i++)nf(p,e[i%r].slice());return nf(p,d),nf(p,h),[{points:v},{points:p}]}function hB(e){var t=e.points,n=[],r=[];T1(t,n,r);var a=new Rt(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 Pt,c=new Pt;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),F7e(t,u,c)}function yb(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);yb(e,i[0],a,r),yb(e,i[1],n-a,r)}return r}function z7e(e,t){for(var n=[],r=0;r<t;r++)n.push(Wk(e));return n}function H7e(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function G7e(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function W7e(e,t){var n=[],r=e.shape,a;switch(e.type){case"rect":$7e(r,t,n),a=Xt;break;case"sector":fB(r,t,n),a=ta;break;case"circle":fB({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),a=ta;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=Oe(N7e(e.getUpdatedPathProxy(),o),function(m){return G7e(m)}),l=s.length;if(l===0)yb(hB,{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=Oe(s,function(m){var b=[],_=[];T1(m,b,_);var w=(_[1]-b[1])*(_[0]-b[0]);return c+=w,{poly:m,area:w}});f.sort(function(m,b){return b.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(h.area/c*t);v<0||(yb(hB,{points:h.poly},v,n),d-=v)}}a=na;break}if(!a)return z7e(e,t);for(var p=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),H7e(e,g),p.push(g)}return p}function K7e(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 v=o[h-2],p=o[h-1],g=o[h++],m=o[h++],b=o[h++],_=o[h++],w=o[h++],C=o[h++];if(d<=0){f.push(g,m,b,_,w,C);continue}for(var S=Math.min(d,c-1)+1,x=1;x<=S;x++){var T=x/S;gl(v,g,b,w,T,a),gl(p,m,_,C,T,i),v=a[3],p=i[3],f.push(a[1],i[1],a[2],i[2],v,p),g=a[5],m=i[5],b=a[6],_=i[6]}d-=S-1}return o===e?[f,t]:[e,f]}function vB(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 U7e(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=K7e(l,u),c=n[0],f=n[1],r=c,a=f):(f=vB(a||l,l),c=l):(c=vB(r||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function pB(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 Y7e(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,v=e[h]-n[0],p=e[h+1]-n[1],g=t[d]-r[0],m=t[d+1]-r[1],b=g-v,_=m-p;f+=b*b+_*_}f<i&&(i=f,o=u)}return o}function j7e(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 q7e(e,t,n,r){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=pB(s),c=pB(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,v=1/0,p=[],g=s.length;i&&(s=j7e(s));for(var m=Y7e(s,l,u,c)*6,b=g-2,_=0;_<b;_+=2){var w=(m+_)%b+2;f[_+2]=s[w]-u[0],f[_+3]=s[w+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],n>0)for(var C=r/n,S=-r/2;S<=r/2;S+=C){for(var x=Math.sin(S),T=Math.cos(S),M=0,_=0;_<s.length;_+=2){var A=f[_],k=f[_+1],E=l[_]-c[0],D=l[_+1]-c[1],L=E*T-D*x,B=E*x+D*T;p[_]=L,p[_+1]=B;var $=L-A,O=B-k;M+=$*$+O*O}if(M<v){v=M,h=S;for(var N=0;N<p.length;N++)d[N]=p[N]}}else for(var I=0;I<g;I+=2)d[I]=l[I]-c[0],d[I+1]=l[I+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function bb(e){return e.__isCombineMorphing}var XU="__mOriginal_";function _b(e,t,n){var r=XU+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 Ev(e,t){var n=XU+t;e[n]&&(e[t]=e[n],e[n]=null)}function gB(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 ZU(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),a=U7e(pT(n),pT(r)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&gB(i,s),l&&gB(o,l),_b(t,"updateTransform",{replace:u}),t.transform=null;var c=q7e(i,o,10,Math.PI),f=[];_b(t,"buildPath",{replace:function(d){for(var h=t.__morphT,v=1-h,p=[],g=0;g<c.length;g++){var m=c[g],b=m.from,_=m.to,w=m.rotation*h,C=m.fromCp,S=m.toCp,x=Math.sin(w),T=Math.cos(w);pv(p,C,S,h);for(var M=0;M<b.length;M+=2){var A=b[M],k=b[M+1],E=_[M],D=_[M+1],L=A*v+E*h,B=k*v+D*h;f[M]=L*T-B*x+p[0],f[M+1]=L*x+B*T+p[1]}var $=f[0],O=f[1];d.moveTo($,O);for(var M=2;M<b.length;){var E=f[M++],D=f[M++],N=f[M++],I=f[M++],F=f[M++],G=f[M++];$===E&&O===D&&N===F&&I===G?d.lineTo(F,G):d.bezierCurveTo(E,D,N,I,F,G),$=F,O=G}}}})}function $E(e,t,n){if(!e||!t)return t;var r=n.done,a=n.during;ZU(e,t),t.__morphT=0;function i(){Ev(t,"buildPath"),Ev(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},ft({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),r&&r()}},n)),t}function X7e(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 wb(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=Oe(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=Oe(i,function(s,l){return{cp:s,z:X7e(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 JU(e){return W7e(e.path,e.count)}function mT(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Z7e(e,t,n){var r=[];function a(C){for(var S=0;S<C.length;S++){var x=C[S];bb(x)?a(x.childrenRef()):x instanceof Ft&&r.push(x)}}a(e);var i=r.length;if(!i)return mT();var o=n.dividePath||JU,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),mT();r=wb(r),s=wb(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new Ko,d=0;d<i;d++){var h=r[d],v=s[d];v.parent=t,v.copyTransform(f),c||ZU(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(C){for(var S=0;S<s.length;S++)s[S].addSelfToZr(C)}_b(t,"addSelfToZr",{after:function(C){p(C)}}),_b(t,"removeSelfFromZr",{after:function(C){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(C)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Ev(t,"addSelfToZr"),Ev(t,"removeSelfFromZr")}var m=s.length;if(c)for(var b=m,_=function(){b--,b===0&&(g(),l&&l())},d=0;d<m;d++){var w=c?ft({delay:(n.delay||0)+c(d,m,r[d],s[d]),done:_},n):n;$E(r[d],s[d],w)}else t.__morphT=0,t.animateTo({__morphT:1},ft({during:function(C){for(var S=0;S<m;S++){var x=s[S];x.__morphT=t.__morphT,x.dirtyShape()}u&&u(C)},done:function(){g();for(var C=0;C<e.length;C++)Ev(e[C],"updateTransform");l&&l()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:r,toIndividuals:s,count:m}}function J7e(e,t,n){var r=t.length,a=[],i=n.dividePath||JU;function o(h){for(var v=0;v<h.length;v++){var p=h[v];bb(p)?o(p.childrenRef()):p instanceof Ft&&a.push(p)}}if(bb(e)){o(e.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(Wk(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"),mT()}a=wb(a),t=wb(t);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?ft({delay:(n.delay||0)+f(u,r,a[u],t[u])},n):n;$E(a[u],t[u],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function mB(e){return Re(e[0])}function yB(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 Q7e={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=Wk(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function rC(e,t,n,r,a,i){if(!e.length||!t.length)return;var o=Od("update",r,a);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;mB(e)&&(u=e,c=t),mB(t)&&(u=t,c=e);function f(m,b,_,w,C){var S=m.many,x=m.one;if(S.length===1&&!C){var T=b?S[0]:x,M=b?x:S[0];if(bb(T))f({many:[T],one:M},!0,_,w,!0);else{var A=s?ft({delay:s(_,w)},l):l;$E(T,M,A),i(T,M,T,M,A)}}else for(var k=ft({dividePath:Q7e[n],individualDelay:s&&function(O,N,I,F){return s(O+_,w)}},l),E=b?Z7e(S,x,k):J7e(x,S,k),D=E.fromIndividuals,L=E.toIndividuals,B=D.length,$=0;$<B;$++){var A=s?ft({delay:s($,B)},l):l;i(D[$],L[$],b?S[$]:m.one,b?m.one:S[$],A)}}for(var d=u?u===e:e.length>t.length,h=u?yB(c,u):yB(d?t:e,[d?e:t]),v=0,p=0;p<h.length;p++)v+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)f(h[p],d,g,v),g+=h[p].many.length}function bu(e){if(!e)return[];if(Re(e)){for(var t=[],n=0;n<e.length;n++)t.push(bu(e[n]));return t}var r=[];return e.traverse(function(a){a instanceof Ft&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var QU=1e4,eKe=Qt();function tKe(e){for(var t=e.dimensions,n=0;n<t.length;n++){var r=e.getDimensionInfo(t[n]);if(r&&r.otherDims.itemGroupId===0)return t[n]}}function bB(e){var t=[];return z(e,function(n){var r=n.data;if(!(r.count()>QU))for(var a=r.getIndices(),i=tKe(r),o=0;o<a.length;o++)t.push({dataGroupId:n.dataGroupId,data:r,dim:n.dim||i,divide:n.divide,dataIndex:o})}),t}function aC(e,t,n){e.traverse(function(r){r instanceof Ft&&Cn(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function iC(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function rf(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function nKe(e,t,n){var r=Od("update",n,t);r&&e.traverse(function(a){if(a instanceof ci){var i=xIe(a);i&&a.animateFrom({style:i},r)}})}function rKe(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 eY(e,t,n){var r=bB(e),a=bB(t);function i(m,b,_,w,C){(_||m)&&b.animateFrom({style:_&&_!==m?Ie(Ie({},_.style),m.style):m.style},C)}function o(m){for(var b=0;b<m.length;b++)if(m[b].dim)return m[b].dim}var s=o(r),l=o(a),u=!1;function c(m,b){return function(_){var w=_.data,C=_.dataIndex;if(b)return w.getId(C);var S=_.dataGroupId,x=m?s||l:l||s,T=x&&w.getDimensionInfo(x),M=T&&T.ordinalMeta;if(T){var A=w.get(T.name,C);return M&&M.categories[A]||A+""}var k=w.getRawDataItem(C);return k&&k.groupId?k.groupId+"":S||w.getId(C)}}var f=rKe(r,a),d={};if(!f)for(var h=0;h<a.length;h++){var v=a[h],p=v.data.getItemGraphicEl(v.dataIndex);p&&(d[p.id]=!0)}function g(m,b){var _=r[b],w=a[m],C=w.data.hostModel,S=_.data.getItemGraphicEl(_.dataIndex),x=w.data.getItemGraphicEl(w.dataIndex);if(S===x){x&&nKe(x,w.dataIndex,C);return}S&&d[S.id]||x&&(rf(x),S?(rf(S),iC(S),u=!0,rC(bu(S),bu(x),w.divide,C,m,i)):aC(x,C,m))}new as(r,a,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(m,b){var _=a[m],w=_.data,C=w.hostModel,S=w.getItemGraphicEl(_.dataIndex),x=sn(Oe(b,function(T){return r[T].data.getItemGraphicEl(r[T].dataIndex)}),function(T){return T&&T!==S&&!d[T.id]});S&&(rf(S),x.length?(z(x,function(T){rf(T),iC(T)}),u=!0,rC(bu(x),bu(S),_.divide,C,m,i)):aC(S,C,_.dataIndex))}).updateOneToMany(function(m,b){var _=r[b],w=_.data.getItemGraphicEl(_.dataIndex);if(!(w&&d[w.id])){var C=sn(Oe(m,function(x){return a[x].data.getItemGraphicEl(a[x].dataIndex)}),function(x){return x&&x!==w}),S=a[m[0]].data.hostModel;C.length&&(z(C,function(x){return rf(x)}),w?(rf(w),iC(w),u=!0,rC(bu(w),bu(C),_.divide,S,m[0],i)):z(C,function(x){return aC(x,S,m[0])}))}}).updateManyToMany(function(m,b){new as(b,m,function(_){return r[_].data.getId(r[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,w){g(m[_],b[w])}).execute()}).execute(),u&&z(t,function(m){var b=m.data,_=b.hostModel,w=_&&n.getViewOfSeriesModel(_),C=Od("update",_,0);w&&_.isAnimationEnabled()&&C&&C.duration>0&&w.group.traverse(function(S){S instanceof Ft&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function _B(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function wB(e){return Re(e)?e.sort().join(","):e}function Vs(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function aKe(e,t){var n=ot(),r=ot(),a=ot();return z(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=_B(i),c=wB(u);r.set(c,{dataGroupId:s,data:l}),Re(u)&&z(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),z(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=_B(i),u=wB(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Vs(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Vs(s),data:s}]});else if(Re(l)){var f=[];z(l,function(v){var p=r.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Vs(p.data),data:p.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Vs(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:Vs(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Vs(s)})}}}}),n}function SB(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 iKe(e,t,n,r){var a=[],i=[];z(dn(e.from),function(o){var s=SB(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Vs(t.oldData[s]),dim:o.dimension})}),z(dn(e.to),function(o){var s=SB(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Vs(l),dim:o.dimension})}}),a.length>0&&i.length>0&&eY(a,i,r)}function oKe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){z(dn(r.seriesTransition),function(a){z(dn(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][Wy]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var a=eKe(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)z(dn(i),function(h){iKe(h,a,r,n)});else{var o=aKe(a,r);z(o.keys(),function(h){var v=o.get(h);eY(v.oldSeries,v.newSeries,n)})}z(r.updatedSeries,function(h){h[Wy]&&(h[Wy]=!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()<QU&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Bt([CNe]);Bt([gNe]);Bt([YNe,f$e,x$e,f3e,A3e,S4e,Q4e,VBe,hVe,SVe,LVe,$5e,cFe,CFe,GFe,XFe,vze,xze,$ze,Kze,a6e,G6e]);Bt(d8e);Bt(U8e);Bt(q7);Bt(uHe);Bt(OK);Bt(gHe);Bt(THe);Bt(MGe);Bt(qGe);Bt(Ag);Bt(pWe);Bt(yWe);Bt(LWe);Bt(GWe);Bt(ZWe);Bt(i9e);Bt(b9e);Bt(z9e);Bt(FU);Bt(zU);Bt(v7e);Bt(UU);Bt(YU);Bt(b7e);Bt(P7e);Bt(O7e);Bt(oKe);Bt(NOe);const sKe=Object.freeze(Object.defineProperty({__proto__:null,Axis:pi,ChartView:hn,ComponentModel:Yt,ComponentView:kn,List:Rr,Model:fn,PRIORITY:t9,SeriesModel:bn,color:Dke,connect:BLe,dataTool:KLe,dependencies:_Le,disConnect:VLe,disconnect:u9,dispose:FLe,env:Zt,extendChartView:SOe,extendComponentModel:bOe,extendComponentView:_Oe,extendSeriesModel:wOe,format:sOe,getCoordinateSystemDimensions:HLe,getInstanceByDom:SA,getInstanceById:zLe,getMap:WLe,graphic:oOe,helper:JRe,init:$Le,innerDrawElementOnCanvas:yA,matrix:rke,number:aOe,parseGeoJSON:I2,parseGeoJson:I2,registerAction:Ui,registerCoordinateSystem:d9,registerLayout:h9,registerLoading:kA,registerLocale:Jk,registerMap:v9,registerPostInit:c9,registerPostUpdate:f9,registerPreprocessor:xA,registerProcessor:TA,registerTheme:CA,registerTransform:p9,registerUpdateLifecycle:W1,registerVisual:Ol,setCanvasCreator:GLe,setPlatformAPI:H8,throttle:H1,time:iOe,use:Bt,util:lOe,vector:zMe,version:bLe,zrUtil:RMe,zrender:gAe},Symbol.toStringTag,{value:"Module"}));const Xd=LV(Eq);Xd.use(WT);Xd.use(KV);Xd.use(mMe);Xd.config.globalProperties.$echarts=sKe;Xd.mount("#app");Xd.config.errorHandler=function(e,t,n){console.error("Vue error:",e,n)};export{EB as $,gKe as A,ce as B,se as C,Kt as D,HTe as E,je as F,j as G,Mn as H,_e as I,Ct as J,xe as K,Rd as L,pKe as M,xl as N,_Ke as O,bKe as P,mKe as Q,RX as R,yKe as S,jt as T,zt as U,KV as V,hs as W,Mo as X,Ze as Y,Ye as Z,Mq as _,ct as a,Ge as a0,AB as a1,Et as a2,gt as a3,IB as a4,ir as a5,uKe as a6,dKe as a7,Tr as a8,Ue as a9,Pb as aa,hKe as ab,_n as ac,lKe as ad,Js as ae,mc as af,Cd as ag,St as ah,K as b,P as c,X as d,Y as e,y as f,Ut as g,fKe as h,yt as i,un as j,Ot as k,br as l,qge as m,V as n,R as o,cKe as p,dt as q,H as r,Bae as s,De as t,vKe as u,zT as v,re as w,tt as x,$Le as y,sc as z};