mirror of
https://github.com/ProudMuBai/GoFilm.git
synced 2026-03-07 04:27:30 +08:00
119 lines
1.4 MiB
119 lines
1.4 MiB
var LD=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var PCe=LD((er,tr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function sb(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function st(e){if(tt(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=mt(s)?VD(s):st(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(mt(e))return e;if(Pt(e))return e}}const DD=/;(?![^(]*\))/g,FD=/:([^]+)/,BD=/\/\*.*?\*\//gs;function VD(e){const t={};return e.replace(BD,"").split(DD).forEach(n=>{if(n){const s=n.split(FD);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function I(e){let t="";if(mt(e))t=e;else if(tt(e))for(let n=0;n<e.length;n++){const s=I(e[n]);s&&(t+=s+" ")}else if(Pt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Mr(e){if(!e)return null;let{class:t,style:n}=e;return t&&!mt(t)&&(e.class=I(t)),n&&(e.style=st(n)),e}const UD="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",HD=sb(UD);function _k(e){return!!e||e===""}function zD(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Vl(e[s],t[s]);return n}function Vl(e,t){if(e===t)return!0;let n=Pa(e),s=Pa(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=zc(e),s=zc(t),n||s)return e===t;if(n=tt(e),s=tt(t),n||s)return n&&s?zD(e,t):!1;if(n=Pt(e),s=Pt(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(a&&!l||!a&&l||!Vl(e[o],t[o]))return!1}}return String(e)===String(t)}function Tk(e,t){return e.findIndex(n=>Vl(n,t))}const we=e=>mt(e)?e:e==null?"":tt(e)||Pt(e)&&(e.toString===wk||!pt(e.toString))?JSON.stringify(e,Sk,2):String(e),Sk=(e,t)=>t&&t.__v_isRef?Sk(e,t.value):El(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:im(t)?{[`Set(${t.size})`]:[...t.values()]}:Pt(t)&&!tt(t)&&!Ck(t)?String(t):t,xn={},Cl=[],Zt=()=>{},jD=()=>!1,KD=/^on[^a-z]/,rm=e=>KD.test(e),rb=e=>e.startsWith("onUpdate:"),Jn=Object.assign,ib=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},WD=Object.prototype.hasOwnProperty,Ft=(e,t)=>WD.call(e,t),tt=Array.isArray,El=e=>Ld(e)==="[object Map]",im=e=>Ld(e)==="[object Set]",Pa=e=>Ld(e)==="[object Date]",pt=e=>typeof e=="function",mt=e=>typeof e=="string",zc=e=>typeof e=="symbol",Pt=e=>e!==null&&typeof e=="object",jc=e=>Pt(e)&&pt(e.then)&&pt(e.catch),wk=Object.prototype.toString,Ld=e=>wk.call(e),gh=e=>Ld(e).slice(8,-1),Ck=e=>Ld(e)==="[object Object]",ob=e=>mt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vh=sb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),om=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},qD=/-(\w)/g,vr=om(e=>e.replace(qD,(t,n)=>n?n.toUpperCase():"")),GD=/\B([A-Z])/g,Bo=om(e=>e.replace(GD,"-$1").toLowerCase()),Dd=om(e=>e.charAt(0).toUpperCase()+e.slice(1)),yh=om(e=>e?`on${Dd(e)}`:""),Kc=(e,t)=>!Object.is(e,t),bh=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},np=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},qv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},YD=e=>{const t=mt(e)?Number(e):NaN;return isNaN(t)?e:t};let sS;const XD=()=>sS||(sS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Ys;class Ek{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ys,!t&&Ys&&(this.index=(Ys.scopes||(Ys.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ys;try{return Ys=this,t()}finally{Ys=n}}}on(){Ys=this}off(){Ys=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function QD(e){return new Ek(e)}function JD(e,t=Ys){t&&t.active&&t.effects.push(e)}function xk(){return Ys}function kk(e){Ys&&Ys.cleanups.push(e)}const ab=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ok=e=>(e.w&Ao)>0,Ak=e=>(e.n&Ao)>0,ZD=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ao},e4=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];Ok(r)&&!Ak(r)?r.delete(e):t[n++]=r,r.w&=~Ao,r.n&=~Ao}t.length=n}},sp=new WeakMap;let hc=0,Ao=1;const Gv=30;let Nr;const Sa=Symbol(""),Yv=Symbol("");class lb{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,JD(this,s)}run(){if(!this.active)return this.fn();let t=Nr,n=Co;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Nr,Nr=this,Co=!0,Ao=1<<++hc,hc<=Gv?ZD(this):rS(this),this.fn()}finally{hc<=Gv&&e4(this),Ao=1<<--hc,Nr=this.parent,Co=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Nr===this?this.deferStop=!0:this.active&&(rS(this),this.onStop&&this.onStop(),this.active=!1)}}function rS(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Co=!0;const Ik=[];function _u(){Ik.push(Co),Co=!1}function Tu(){const e=Ik.pop();Co=e===void 0?!0:e}function Hs(e,t,n){if(Co&&Nr){let s=sp.get(e);s||sp.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=ab()),Pk(r)}}function Pk(e,t){let n=!1;hc<=Gv?Ak(e)||(e.n|=Ao,n=!Ok(e)):n=!e.has(Nr),n&&(e.add(Nr),Nr.deps.push(e))}function ji(e,t,n,s,r,i){const o=sp.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&tt(e)){const l=Number(s);o.forEach((u,d)=>{(d==="length"||d>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":tt(e)?ob(n)&&a.push(o.get("length")):(a.push(o.get(Sa)),El(e)&&a.push(o.get(Yv)));break;case"delete":tt(e)||(a.push(o.get(Sa)),El(e)&&a.push(o.get(Yv)));break;case"set":El(e)&&a.push(o.get(Sa));break}if(a.length===1)a[0]&&Xv(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);Xv(ab(l))}}function Xv(e,t){const n=tt(e)?e:[...e];for(const s of n)s.computed&&iS(s);for(const s of n)s.computed||iS(s)}function iS(e,t){(e!==Nr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function t4(e,t){var n;return(n=sp.get(e))===null||n===void 0?void 0:n.get(t)}const n4=sb("__proto__,__v_isRef,__isVue"),$k=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zc)),s4=ub(),r4=ub(!1,!0),i4=ub(!0),oS=o4();function o4(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Xt(this);for(let i=0,o=this.length;i<o;i++)Hs(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(Xt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){_u();const s=Xt(this)[t].apply(this,n);return Tu(),s}}),e}function a4(e){const t=Xt(this);return Hs(t,"has",e),t.hasOwnProperty(e)}function ub(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?w4:Dk:t?Lk:Rk).get(s))return s;const o=tt(s);if(!e){if(o&&Ft(oS,r))return Reflect.get(oS,r,i);if(r==="hasOwnProperty")return a4}const a=Reflect.get(s,r,i);return(zc(r)?$k.has(r):n4(r))||(e||Hs(s,"get",r),t)?a:rn(a)?o&&ob(r)?a:a.value:Pt(a)?e?Fa(a):Bt(a):a}}const l4=Nk(),u4=Nk(!0);function Nk(e=!1){return function(n,s,r,i){let o=n[s];if(Ul(o)&&rn(o)&&!rn(r))return!1;if(!e&&(!rp(r)&&!Ul(r)&&(o=Xt(o),r=Xt(r)),!tt(n)&&rn(o)&&!rn(r)))return o.value=r,!0;const a=tt(n)&&ob(s)?Number(s)<n.length:Ft(n,s),l=Reflect.set(n,s,r,i);return n===Xt(i)&&(a?Kc(r,o)&&ji(n,"set",s,r):ji(n,"add",s,r)),l}}function c4(e,t){const n=Ft(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&ji(e,"delete",t,void 0),s}function d4(e,t){const n=Reflect.has(e,t);return(!zc(t)||!$k.has(t))&&Hs(e,"has",t),n}function f4(e){return Hs(e,"iterate",tt(e)?"length":Sa),Reflect.ownKeys(e)}const Mk={get:s4,set:l4,deleteProperty:c4,has:d4,ownKeys:f4},h4={get:i4,set(e,t){return!0},deleteProperty(e,t){return!0}},p4=Jn({},Mk,{get:r4,set:u4}),cb=e=>e,am=e=>Reflect.getPrototypeOf(e);function Df(e,t,n=!1,s=!1){e=e.__v_raw;const r=Xt(e),i=Xt(t);n||(t!==i&&Hs(r,"get",t),Hs(r,"get",i));const{has:o}=am(r),a=s?cb:n?hb:Wc;if(o.call(r,t))return a(e.get(t));if(o.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function Ff(e,t=!1){const n=this.__v_raw,s=Xt(n),r=Xt(e);return t||(e!==r&&Hs(s,"has",e),Hs(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Bf(e,t=!1){return e=e.__v_raw,!t&&Hs(Xt(e),"iterate",Sa),Reflect.get(e,"size",e)}function aS(e){e=Xt(e);const t=Xt(this);return am(t).has.call(t,e)||(t.add(e),ji(t,"add",e,e)),this}function lS(e,t){t=Xt(t);const n=Xt(this),{has:s,get:r}=am(n);let i=s.call(n,e);i||(e=Xt(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?Kc(t,o)&&ji(n,"set",e,t):ji(n,"add",e,t),this}function uS(e){const t=Xt(this),{has:n,get:s}=am(t);let r=n.call(t,e);r||(e=Xt(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&ji(t,"delete",e,void 0),i}function cS(){const e=Xt(this),t=e.size!==0,n=e.clear();return t&&ji(e,"clear",void 0,void 0),n}function Vf(e,t){return function(s,r){const i=this,o=i.__v_raw,a=Xt(o),l=t?cb:e?hb:Wc;return!e&&Hs(a,"iterate",Sa),o.forEach((u,d)=>s.call(r,l(u),l(d),i))}}function Uf(e,t,n){return function(...s){const r=this.__v_raw,i=Xt(r),o=El(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=r[e](...s),d=n?cb:t?hb:Wc;return!t&&Hs(i,"iterate",l?Yv:Sa),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function ao(e){return function(...t){return e==="delete"?!1:this}}function m4(){const e={get(i){return Df(this,i)},get size(){return Bf(this)},has:Ff,add:aS,set:lS,delete:uS,clear:cS,forEach:Vf(!1,!1)},t={get(i){return Df(this,i,!1,!0)},get size(){return Bf(this)},has:Ff,add:aS,set:lS,delete:uS,clear:cS,forEach:Vf(!1,!0)},n={get(i){return Df(this,i,!0)},get size(){return Bf(this,!0)},has(i){return Ff.call(this,i,!0)},add:ao("add"),set:ao("set"),delete:ao("delete"),clear:ao("clear"),forEach:Vf(!0,!1)},s={get(i){return Df(this,i,!0,!0)},get size(){return Bf(this,!0)},has(i){return Ff.call(this,i,!0)},add:ao("add"),set:ao("set"),delete:ao("delete"),clear:ao("clear"),forEach:Vf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Uf(i,!1,!1),n[i]=Uf(i,!0,!1),t[i]=Uf(i,!1,!0),s[i]=Uf(i,!0,!0)}),[e,n,t,s]}const[g4,v4,y4,b4]=m4();function db(e,t){const n=t?e?b4:y4:e?v4:g4;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Ft(n,r)&&r in s?n:s,r,i)}const _4={get:db(!1,!1)},T4={get:db(!1,!0)},S4={get:db(!0,!1)},Rk=new WeakMap,Lk=new WeakMap,Dk=new WeakMap,w4=new WeakMap;function C4(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function E4(e){return e.__v_skip||!Object.isExtensible(e)?0:C4(gh(e))}function Bt(e){return Ul(e)?e:fb(e,!1,Mk,_4,Rk)}function Fk(e){return fb(e,!1,p4,T4,Lk)}function Fa(e){return fb(e,!0,h4,S4,Dk)}function fb(e,t,n,s,r){if(!Pt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=E4(e);if(o===0)return e;const a=new Proxy(e,o===2?s:n);return r.set(e,a),a}function xl(e){return Ul(e)?xl(e.__v_raw):!!(e&&e.__v_isReactive)}function Ul(e){return!!(e&&e.__v_isReadonly)}function rp(e){return!!(e&&e.__v_isShallow)}function Bk(e){return xl(e)||Ul(e)}function Xt(e){const t=e&&e.__v_raw;return t?Xt(t):e}function wa(e){return np(e,"__v_skip",!0),e}const Wc=e=>Pt(e)?Bt(e):e,hb=e=>Pt(e)?Fa(e):e;function Vk(e){Co&&Nr&&(e=Xt(e),Pk(e.dep||(e.dep=ab())))}function pb(e,t){e=Xt(e);const n=e.dep;n&&Xv(n)}function rn(e){return!!(e&&e.__v_isRef===!0)}function B(e){return Uk(e,!1)}function nn(e){return Uk(e,!0)}function Uk(e,t){return rn(e)?e:new x4(e,t)}class x4{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Xt(t),this._value=n?t:Wc(t)}get value(){return Vk(this),this._value}set value(t){const n=this.__v_isShallow||rp(t)||Ul(t);t=n?t:Xt(t),Kc(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Wc(t),pb(this))}}function Xu(e){pb(e)}function c(e){return rn(e)?e.value:e}const k4={get:(e,t,n)=>c(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return rn(r)&&!rn(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Hk(e){return xl(e)?e:new Proxy(e,k4)}function Hn(e){const t=tt(e)?new Array(e.length):{};for(const n in e)t[n]=dn(e,n);return t}class O4{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,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 t4(Xt(this._object),this._key)}}function dn(e,t,n){const s=e[t];return rn(s)?s:new O4(e,t,n)}var zk;class A4{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[zk]=!1,this._dirty=!0,this.effect=new lb(t,()=>{this._dirty||(this._dirty=!0,pb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Xt(this);return Vk(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}zk="__v_isReadonly";function jk(e,t,n=!1){let s,r;const i=pt(e);return i?(s=e,r=Zt):(s=e.get,r=e.set),new A4(s,r,i||!r,n)}function I4(e,...t){}function Eo(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){lm(i,t,n)}return r}function pr(e,t,n,s){if(pt(e)){const i=Eo(e,t,n,s);return i&&jc(i)&&i.catch(o=>{lm(o,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(pr(e[i],t,n,s));return r}function lm(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,a=n;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,o,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Eo(l,null,10,[e,o,a]);return}}P4(e,n,r,s)}function P4(e,t,n,s=!0){console.error(e)}let qc=!1,Qv=!1;const os=[];let ti=0;const kl=[];let Ni=null,la=0;const Kk=Promise.resolve();let mb=null;function it(e){const t=mb||Kk;return e?t.then(this?e.bind(this):e):t}function $4(e){let t=ti+1,n=os.length;for(;t<n;){const s=t+n>>>1;Gc(os[s])<e?t=s+1:n=s}return t}function gb(e){(!os.length||!os.includes(e,qc&&e.allowRecurse?ti+1:ti))&&(e.id==null?os.push(e):os.splice($4(e.id),0,e),Wk())}function Wk(){!qc&&!Qv&&(Qv=!0,mb=Kk.then(Gk))}function N4(e){const t=os.indexOf(e);t>ti&&os.splice(t,1)}function M4(e){tt(e)?kl.push(...e):(!Ni||!Ni.includes(e,e.allowRecurse?la+1:la))&&kl.push(e),Wk()}function dS(e,t=qc?ti+1:0){for(;t<os.length;t++){const n=os[t];n&&n.pre&&(os.splice(t,1),t--,n())}}function qk(e){if(kl.length){const t=[...new Set(kl)];if(kl.length=0,Ni){Ni.push(...t);return}for(Ni=t,Ni.sort((n,s)=>Gc(n)-Gc(s)),la=0;la<Ni.length;la++)Ni[la]();Ni=null,la=0}}const Gc=e=>e.id==null?1/0:e.id,R4=(e,t)=>{const n=Gc(e)-Gc(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gk(e){Qv=!1,qc=!0,os.sort(R4);const t=Zt;try{for(ti=0;ti<os.length;ti++){const n=os[ti];n&&n.active!==!1&&Eo(n,null,14)}}finally{ti=0,os.length=0,qk(),qc=!1,mb=null,(os.length||kl.length)&&Gk()}}function L4(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||xn;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:h}=s[d]||xn;h&&(r=n.map(p=>mt(p)?p.trim():p)),f&&(r=n.map(qv))}let a,l=s[a=yh(t)]||s[a=yh(vr(t))];!l&&i&&(l=s[a=yh(Bo(t))]),l&&pr(l,e,6,r);const u=s[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,pr(u,e,6,r)}}function Yk(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},a=!1;if(!pt(e)){const l=u=>{const d=Yk(u,t,!0);d&&(a=!0,Jn(o,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Pt(e)&&s.set(e,null),null):(tt(i)?i.forEach(l=>o[l]=null):Jn(o,i),Pt(e)&&s.set(e,o),o)}function um(e,t){return!e||!rm(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ft(e,t[0].toLowerCase()+t.slice(1))||Ft(e,Bo(t))||Ft(e,t))}let ss=null,cm=null;function ip(e){const t=ss;return ss=e,cm=e&&e.type.__scopeId||null,t}function Su(e){cm=e}function wu(){cm=null}function ee(e,t=ss,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&SS(-1);const i=ip(t);let o;try{o=e(...r)}finally{ip(i),s._d&&SS(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Dg(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:a,attrs:l,emit:u,render:d,renderCache:f,data:h,setupState:p,ctx:g,inheritAttrs:m}=e;let v,y;const T=ip(e);try{if(n.shapeFlag&4){const S=r||s;v=Zr(d.call(S,S,f,i,p,h,g)),y=l}else{const S=t;v=Zr(S.length>1?S(i,{attrs:l,slots:a,emit:u}):S(i,null)),y=t.props?l:D4(l)}}catch(S){Ec.length=0,lm(S,e,1),v=G(Ss)}let _=v;if(y&&m!==!1){const S=Object.keys(y),{shapeFlag:w}=_;S.length&&w&7&&(o&&S.some(rb)&&(y=F4(y,o)),_=Wi(_,y))}return n.dirs&&(_=Wi(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),v=_,ip(T),v}const D4=e=>{let t;for(const n in e)(n==="class"||n==="style"||rm(n))&&((t||(t={}))[n]=e[n]);return t},F4=(e,t)=>{const n={};for(const s in e)(!rb(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function B4(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:a,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 s?fS(s,o,u):!!o;if(l&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const h=d[f];if(o[h]!==s[h]&&!um(u,h))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?fS(s,o,u):!0:!!o;return!1}function fS(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!um(n,i))return!0}return!1}function V4({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const U4=e=>e.__isSuspense;function H4(e,t){t&&t.pendingBranch?tt(e)?t.effects.push(...e):t.effects.push(e):M4(e)}function Nt(e,t){if(Ln){let n=Ln.provides;const s=Ln.parent&&Ln.parent.provides;s===n&&(n=Ln.provides=Object.create(s)),n[e]=t}}function Qe(e,t,n=!1){const s=Ln||ss;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&pt(t)?t.call(s.proxy):t}}function nr(e,t){return vb(e,null,t)}const Hf={};function ke(e,t,n){return vb(e,t,n)}function vb(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=xn){const a=xk()===(Ln==null?void 0:Ln.scope)?Ln:null;let l,u=!1,d=!1;if(rn(e)?(l=()=>e.value,u=rp(e)):xl(e)?(l=()=>e,s=!0):tt(e)?(d=!0,u=e.some(_=>xl(_)||rp(_)),l=()=>e.map(_=>{if(rn(_))return _.value;if(xl(_))return pa(_);if(pt(_))return Eo(_,a,2)})):pt(e)?t?l=()=>Eo(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return f&&f(),pr(e,a,3,[h])}:l=Zt,t&&s){const _=l;l=()=>pa(_())}let f,h=_=>{f=y.onStop=()=>{Eo(_,a,4)}},p;if(Zc)if(h=Zt,t?n&&pr(t,a,3,[l(),d?[]:void 0,h]):l(),r==="sync"){const _=I3();p=_.__watcherHandles||(_.__watcherHandles=[])}else return Zt;let g=d?new Array(e.length).fill(Hf):Hf;const m=()=>{if(y.active)if(t){const _=y.run();(s||u||(d?_.some((S,w)=>Kc(S,g[w])):Kc(_,g)))&&(f&&f(),pr(t,a,3,[_,g===Hf?void 0:d&&g[0]===Hf?[]:g,h]),g=_)}else y.run()};m.allowRecurse=!!t;let v;r==="sync"?v=m:r==="post"?v=()=>Ms(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),v=()=>gb(m));const y=new lb(l,v);t?n?m():g=y.run():r==="post"?Ms(y.run.bind(y),a&&a.suspense):y.run();const T=()=>{y.stop(),a&&a.scope&&ib(a.scope.effects,y)};return p&&p.push(T),T}function z4(e,t,n){const s=this.proxy,r=mt(e)?e.includes(".")?Xk(s,e):()=>s[e]:e.bind(s,s);let i;pt(t)?i=t:(i=t.handler,n=t);const o=Ln;Hl(this);const a=vb(r,i.bind(s),n);return o?Hl(o):Ca(),a}function Xk(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function pa(e,t){if(!Pt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),rn(e))pa(e.value,t);else if(tt(e))for(let n=0;n<e.length;n++)pa(e[n],t);else if(im(e)||El(e))e.forEach(n=>{pa(n,t)});else if(Ck(e))for(const n in e)pa(e[n],t);return e}function Qk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Tt(()=>{e.isMounted=!0}),ln(()=>{e.isUnmounting=!0}),e}const ur=[Function,Array],j4={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ur,onEnter:ur,onAfterEnter:ur,onEnterCancelled:ur,onBeforeLeave:ur,onLeave:ur,onAfterLeave:ur,onLeaveCancelled:ur,onBeforeAppear:ur,onAppear:ur,onAfterAppear:ur,onAppearCancelled:ur},setup(e,{slots:t}){const n=At(),s=Qk();let r;return()=>{const i=t.default&&yb(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const m of i)if(m.type!==Ss){o=m;break}}const a=Xt(e),{mode:l}=a;if(s.isLeaving)return Fg(o);const u=hS(o);if(!u)return Fg(o);const d=Yc(u,a,s,n);Xc(u,d);const f=n.subTree,h=f&&hS(f);let p=!1;const{getTransitionKey:g}=u.type;if(g){const m=g();r===void 0?r=m:m!==r&&(r=m,p=!0)}if(h&&h.type!==Ss&&(!ua(u,h)||p)){const m=Yc(h,a,s,n);if(Xc(h,m),l==="out-in")return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},Fg(o);l==="in-out"&&u.type!==Ss&&(m.delayLeave=(v,y,T)=>{const _=Zk(s,h);_[String(h.key)]=h,v._leaveCb=()=>{y(),v._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=T})}return o}}},Jk=j4;function Zk(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Yc(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:y,onAppearCancelled:T}=t,_=String(e.key),S=Zk(n,e),w=(N,L)=>{N&&pr(N,s,9,L)},A=(N,L)=>{const F=L[1];w(N,L),tt(N)?N.every(W=>W.length<=1)&&F():N.length<=1&&F()},M={mode:i,persisted:o,beforeEnter(N){let L=a;if(!n.isMounted)if(r)L=m||a;else return;N._leaveCb&&N._leaveCb(!0);const F=S[_];F&&ua(e,F)&&F.el._leaveCb&&F.el._leaveCb(),w(L,[N])},enter(N){let L=l,F=u,W=d;if(!n.isMounted)if(r)L=v||l,F=y||u,W=T||d;else return;let j=!1;const R=N._enterCb=q=>{j||(j=!0,q?w(W,[N]):w(F,[N]),M.delayedLeave&&M.delayedLeave(),N._enterCb=void 0)};L?A(L,[N,R]):R()},leave(N,L){const F=String(e.key);if(N._enterCb&&N._enterCb(!0),n.isUnmounting)return L();w(f,[N]);let W=!1;const j=N._leaveCb=R=>{W||(W=!0,L(),R?w(g,[N]):w(p,[N]),N._leaveCb=void 0,S[F]===e&&delete S[F])};S[F]=e,h?A(h,[N,j]):j()},clone(N){return Yc(N,t,n,s)}};return M}function Fg(e){if(dm(e))return e=Wi(e),e.children=null,e}function hS(e){return dm(e)?e.children?e.children[0]:void 0:e}function Xc(e,t){e.shapeFlag&6&&e.component?Xc(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 yb(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===et?(o.patchFlag&128&&r++,s=s.concat(yb(o.children,t,a))):(t||o.type!==Ss)&&s.push(a!=null?Wi(o,{key:a}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function te(e){return pt(e)?{setup:e,name:e.name}:e}const Sc=e=>!!e.type.__asyncLoader,dm=e=>e.type.__isKeepAlive;function K4(e,t){t2(e,"a",t)}function e2(e,t){t2(e,"da",t)}function t2(e,t,n=Ln){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(fm(t,s,n),n){let r=n.parent;for(;r&&r.parent;)dm(r.parent.vnode)&&W4(s,t,n,r),r=r.parent}}function W4(e,t,n,s){const r=fm(t,e,s,!0);Vo(()=>{ib(s[t],r)},n)}function fm(e,t,n=Ln,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;_u(),Hl(n);const a=pr(t,n,e,o);return Ca(),Tu(),a});return s?r.unshift(i):r.push(i),i}}const eo=e=>(t,n=Ln)=>(!Zc||e==="sp")&&fm(e,(...s)=>t(...s),n),Ba=eo("bm"),Tt=eo("m"),n2=eo("bu"),to=eo("u"),ln=eo("bum"),Vo=eo("um"),q4=eo("sp"),G4=eo("rtg"),Y4=eo("rtc");function X4(e,t=Ln){fm("ec",e,t)}function gt(e,t){const n=ss;if(n===null)return e;const s=mm(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,l,u=xn]=t[i];o&&(pt(o)&&(o={mounted:o,updated:o}),o.deep&&pa(a),r.push({dir:o,instance:s,value:a,oldValue:void 0,arg:l,modifiers:u}))}return e}function Zo(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const a=r[o];i&&(a.oldValue=i[o].value);let l=a.dir[s];l&&(_u(),pr(l,n,8,[e.el,a,e,t]),Tu())}}const bb="components",Q4="directives";function vt(e,t){return _b(bb,e,!0,t)||e}const s2=Symbol();function Mt(e){return mt(e)?_b(bb,e,!1)||e:e||s2}function Qc(e){return _b(Q4,e)}function _b(e,t,n=!0,s=!1){const r=ss||Ln;if(r){const i=r.type;if(e===bb){const a=k3(i,!1);if(a&&(a===t||a===vr(t)||a===Dd(vr(t))))return i}const o=pS(r[e]||i[e],t)||pS(r.appContext[e],t);return!o&&s?i:o}}function pS(e,t){return e&&(e[t]||e[vr(t)]||e[Dd(vr(t))])}function kt(e,t,n,s){let r;const i=n&&n[s];if(tt(e)||mt(e)){r=new Array(e.length);for(let o=0,a=e.length;o<a;o++)r[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,i&&i[o])}else if(Pt(e))if(e[Symbol.iterator])r=Array.from(e,(o,a)=>t(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);r=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const u=o[a];r[a]=t(e[u],u,a,i&&i[a])}}else r=[];return n&&(n[s]=r),r}function Ki(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(tt(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function xe(e,t,n={},s,r){if(ss.isCE||ss.parent&&Sc(ss.parent)&&ss.parent.isCE)return t!=="default"&&(n.name=t),G("slot",n,s&&s());let i=e[t];i&&i._c&&(i._d=!1),x();const o=i&&r2(i(n)),a=ve(et,{key:n.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function r2(e){return e.some(t=>gn(t)?!(t.type===Ss||t.type===et&&!r2(t.children)):!0)?e:null}function J4(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:yh(s)]=e[s];return n}const Jv=e=>e?m2(e)?mm(e)||e.proxy:Jv(e.parent):null,wc=Jn(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=>Jv(e.parent),$root:e=>Jv(e.root),$emit:e=>e.emit,$options:e=>Tb(e),$forceUpdate:e=>e.f||(e.f=()=>gb(e.update)),$nextTick:e=>e.n||(e.n=it.bind(e.proxy)),$watch:e=>z4.bind(e)}),Bg=(e,t)=>e!==xn&&!e.__isScriptSetup&&Ft(e,t),Z4={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Bg(s,t))return o[t]=1,s[t];if(r!==xn&&Ft(r,t))return o[t]=2,r[t];if((u=e.propsOptions[0])&&Ft(u,t))return o[t]=3,i[t];if(n!==xn&&Ft(n,t))return o[t]=4,n[t];Zv&&(o[t]=0)}}const d=wc[t];let f,h;if(d)return t==="$attrs"&&Hs(e,"get",t),d(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==xn&&Ft(n,t))return o[t]=4,n[t];if(h=l.config.globalProperties,Ft(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Bg(r,t)?(r[t]=n,!0):s!==xn&&Ft(s,t)?(s[t]=n,!0):Ft(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!n[o]||e!==xn&&Ft(e,o)||Bg(t,o)||(a=i[0])&&Ft(a,o)||Ft(s,o)||Ft(wc,o)||Ft(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ft(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Zv=!0;function e3(e){const t=Tb(e),n=e.proxy,s=e.ctx;Zv=!1,t.beforeCreate&&mS(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:u,created:d,beforeMount:f,mounted:h,beforeUpdate:p,updated:g,activated:m,deactivated:v,beforeDestroy:y,beforeUnmount:T,destroyed:_,unmounted:S,render:w,renderTracked:A,renderTriggered:M,errorCaptured:N,serverPrefetch:L,expose:F,inheritAttrs:W,components:j,directives:R,filters:q}=t;if(u&&t3(u,s,null,e.appContext.config.unwrapInjectedRef),o)for(const $ in o){const H=o[$];pt(H)&&(s[$]=H.bind(n))}if(r){const $=r.call(n,n);Pt($)&&(e.data=Bt($))}if(Zv=!0,i)for(const $ in i){const H=i[$],U=pt(H)?H.bind(n,n):pt(H.get)?H.get.bind(n,n):Zt,Z=!pt(H)&&pt(H.set)?H.set.bind(n):Zt,ue=E({get:U,set:Z});Object.defineProperty(s,$,{enumerable:!0,configurable:!0,get:()=>ue.value,set:Q=>ue.value=Q})}if(a)for(const $ in a)i2(a[$],s,n,$);if(l){const $=pt(l)?l.call(n):l;Reflect.ownKeys($).forEach(H=>{Nt(H,$[H])})}d&&mS(d,e,"c");function K($,H){tt(H)?H.forEach(U=>$(U.bind(n))):H&&$(H.bind(n))}if(K(Ba,f),K(Tt,h),K(n2,p),K(to,g),K(K4,m),K(e2,v),K(X4,N),K(Y4,A),K(G4,M),K(ln,T),K(Vo,S),K(q4,L),tt(F))if(F.length){const $=e.exposed||(e.exposed={});F.forEach(H=>{Object.defineProperty($,H,{get:()=>n[H],set:U=>n[H]=U})})}else e.exposed||(e.exposed={});w&&e.render===Zt&&(e.render=w),W!=null&&(e.inheritAttrs=W),j&&(e.components=j),R&&(e.directives=R)}function t3(e,t,n=Zt,s=!1){tt(e)&&(e=e0(e));for(const r in e){const i=e[r];let o;Pt(i)?"default"in i?o=Qe(i.from||r,i.default,!0):o=Qe(i.from||r):o=Qe(i),rn(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function mS(e,t,n){pr(tt(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function i2(e,t,n,s){const r=s.includes(".")?Xk(n,s):()=>n[s];if(mt(e)){const i=t[e];pt(i)&&ke(r,i)}else if(pt(e))ke(r,e.bind(n));else if(Pt(e))if(tt(e))e.forEach(i=>i2(i,t,n,s));else{const i=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(i)&&ke(r,i,e)}}function Tb(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(u=>op(l,u,o,!0)),op(l,t,o)),Pt(t)&&i.set(t,l),l}function op(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&op(e,i,n,!0),r&&r.forEach(o=>op(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=n3[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const n3={data:gS,props:ia,emits:ia,methods:ia,computed:ia,beforeCreate:gs,created:gs,beforeMount:gs,mounted:gs,beforeUpdate:gs,updated:gs,beforeDestroy:gs,beforeUnmount:gs,destroyed:gs,unmounted:gs,activated:gs,deactivated:gs,errorCaptured:gs,serverPrefetch:gs,components:ia,directives:ia,watch:r3,provide:gS,inject:s3};function gS(e,t){return t?e?function(){return Jn(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function s3(e,t){return ia(e0(e),e0(t))}function e0(e){if(tt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function gs(e,t){return e?[...new Set([].concat(e,t))]:t}function ia(e,t){return e?Jn(Jn(Object.create(null),e),t):t}function r3(e,t){if(!e)return t;if(!t)return e;const n=Jn(Object.create(null),e);for(const s in t)n[s]=gs(e[s],t[s]);return n}function i3(e,t,n,s=!1){const r={},i={};np(i,hm,1),e.propsDefaults=Object.create(null),o2(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Fk(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function o3(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,a=Xt(r),[l]=e.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let h=d[f];if(um(e.emitsOptions,h))continue;const p=t[h];if(l)if(Ft(i,h))p!==i[h]&&(i[h]=p,u=!0);else{const g=vr(h);r[g]=t0(l,a,g,p,e,!1)}else p!==i[h]&&(i[h]=p,u=!0)}}}else{o2(e,t,r,i)&&(u=!0);let d;for(const f in a)(!t||!Ft(t,f)&&((d=Bo(f))===f||!Ft(t,d)))&&(l?n&&(n[f]!==void 0||n[d]!==void 0)&&(r[f]=t0(l,a,f,void 0,e,!0)):delete r[f]);if(i!==a)for(const f in i)(!t||!Ft(t,f))&&(delete i[f],u=!0)}u&&ji(e,"set","$attrs")}function o2(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(vh(l))continue;const u=t[l];let d;r&&Ft(r,d=vr(l))?!i||!i.includes(d)?n[d]=u:(a||(a={}))[d]=u:um(e.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,o=!0)}if(i){const l=Xt(n),u=a||xn;for(let d=0;d<i.length;d++){const f=i[d];n[f]=t0(r,l,f,u[f],e,!Ft(u,f))}}return o}function t0(e,t,n,s,r,i){const o=e[n];if(o!=null){const a=Ft(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&pt(l)){const{propsDefaults:u}=r;n in u?s=u[n]:(Hl(r),s=u[n]=l.call(null,t),Ca())}else s=l}o[0]&&(i&&!a?s=!1:o[1]&&(s===""||s===Bo(n))&&(s=!0))}return s}function a2(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},a=[];let l=!1;if(!pt(e)){const d=f=>{l=!0;const[h,p]=a2(f,t,!0);Jn(o,h),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!l)return Pt(e)&&s.set(e,Cl),Cl;if(tt(i))for(let d=0;d<i.length;d++){const f=vr(i[d]);vS(f)&&(o[f]=xn)}else if(i)for(const d in i){const f=vr(d);if(vS(f)){const h=i[d],p=o[f]=tt(h)||pt(h)?{type:h}:Object.assign({},h);if(p){const g=_S(Boolean,p.type),m=_S(String,p.type);p[0]=g>-1,p[1]=m<0||g<m,(g>-1||Ft(p,"default"))&&a.push(f)}}}const u=[o,a];return Pt(e)&&s.set(e,u),u}function vS(e){return e[0]!=="$"}function yS(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bS(e,t){return yS(e)===yS(t)}function _S(e,t){return tt(t)?t.findIndex(n=>bS(n,e)):pt(t)&&bS(t,e)?0:-1}const l2=e=>e[0]==="_"||e==="$stable",Sb=e=>tt(e)?e.map(Zr):[Zr(e)],a3=(e,t,n)=>{if(t._n)return t;const s=ee((...r)=>Sb(t(...r)),n);return s._c=!1,s},u2=(e,t,n)=>{const s=e._ctx;for(const r in e){if(l2(r))continue;const i=e[r];if(pt(i))t[r]=a3(r,i,s);else if(i!=null){const o=Sb(i);t[r]=()=>o}}},c2=(e,t)=>{const n=Sb(t);e.slots.default=()=>n},l3=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Xt(t),np(t,"_",n)):u2(t,e.slots={})}else e.slots={},t&&c2(e,t);np(e.slots,hm,1)},u3=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=xn;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Jn(r,t),!n&&a===1&&delete r._):(i=!t.$stable,u2(t,r)),o=t}else t&&(c2(e,t),o={default:1});if(i)for(const a in r)!l2(a)&&!(a in o)&&delete r[a]};function d2(){return{app:null,config:{isNativeTag:jD,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 c3=0;function d3(e,t){return function(s,r=null){pt(s)||(s=Object.assign({},s)),r!=null&&!Pt(r)&&(r=null);const i=d2(),o=new Set;let a=!1;const l=i.app={_uid:c3++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:P3,get config(){return i.config},set config(u){},use(u,...d){return o.has(u)||(u&&pt(u.install)?(o.add(u),u.install(l,...d)):pt(u)&&(o.add(u),u(l,...d))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,d){return d?(i.components[u]=d,l):i.components[u]},directive(u,d){return d?(i.directives[u]=d,l):i.directives[u]},mount(u,d,f){if(!a){const h=G(s,r);return h.appContext=i,d&&t?t(h,u):e(h,u,f),a=!0,l._container=u,u.__vue_app__=l,mm(h.component)||h.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,d){return i.provides[u]=d,l}};return l}}function n0(e,t,n,s,r=!1){if(tt(e)){e.forEach((h,p)=>n0(h,t&&(tt(t)?t[p]:t),n,s,r));return}if(Sc(s)&&!r)return;const i=s.shapeFlag&4?mm(s.component)||s.component.proxy:s.el,o=r?null:i,{i:a,r:l}=e,u=t&&t.r,d=a.refs===xn?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(mt(u)?(d[u]=null,Ft(f,u)&&(f[u]=null)):rn(u)&&(u.value=null)),pt(l))Eo(l,a,12,[o,d]);else{const h=mt(l),p=rn(l);if(h||p){const g=()=>{if(e.f){const m=h?Ft(f,l)?f[l]:d[l]:l.value;r?tt(m)&&ib(m,i):tt(m)?m.includes(i)||m.push(i):h?(d[l]=[i],Ft(f,l)&&(f[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else h?(d[l]=o,Ft(f,l)&&(f[l]=o)):p&&(l.value=o,e.k&&(d[e.k]=o))};o?(g.id=-1,Ms(g,n)):g()}}}const Ms=H4;function f3(e){return h3(e)}function h3(e,t){const n=XD();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:d,parentNode:f,nextSibling:h,setScopeId:p=Zt,insertStaticContent:g}=e,m=(Y,re,Se,Oe=null,Ve=null,_e=null,Be=!1,Ie=null,Ae=!!re.dynamicChildren)=>{if(Y===re)return;Y&&!ua(Y,re)&&(Oe=ce(Y),Q(Y,Ve,_e,!0),Y=null),re.patchFlag===-2&&(Ae=!1,re.dynamicChildren=null);const{type:Me,ref:Ye,shapeFlag:qe}=re;switch(Me){case Cu:v(Y,re,Se,Oe);break;case Ss:y(Y,re,Se,Oe);break;case _h:Y==null&&T(re,Se,Oe,Be);break;case et:j(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae);break;default:qe&1?w(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae):qe&6?R(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae):(qe&64||qe&128)&&Me.process(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae,pe)}Ye!=null&&Ve&&n0(Ye,Y&&Y.ref,_e,re||Y,!re)},v=(Y,re,Se,Oe)=>{if(Y==null)s(re.el=a(re.children),Se,Oe);else{const Ve=re.el=Y.el;re.children!==Y.children&&u(Ve,re.children)}},y=(Y,re,Se,Oe)=>{Y==null?s(re.el=l(re.children||""),Se,Oe):re.el=Y.el},T=(Y,re,Se,Oe)=>{[Y.el,Y.anchor]=g(Y.children,re,Se,Oe,Y.el,Y.anchor)},_=({el:Y,anchor:re},Se,Oe)=>{let Ve;for(;Y&&Y!==re;)Ve=h(Y),s(Y,Se,Oe),Y=Ve;s(re,Se,Oe)},S=({el:Y,anchor:re})=>{let Se;for(;Y&&Y!==re;)Se=h(Y),r(Y),Y=Se;r(re)},w=(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae)=>{Be=Be||re.type==="svg",Y==null?A(re,Se,Oe,Ve,_e,Be,Ie,Ae):L(Y,re,Ve,_e,Be,Ie,Ae)},A=(Y,re,Se,Oe,Ve,_e,Be,Ie)=>{let Ae,Me;const{type:Ye,props:qe,shapeFlag:Ce,transition:Ge,dirs:ut}=Y;if(Ae=Y.el=o(Y.type,_e,qe&&qe.is,qe),Ce&8?d(Ae,Y.children):Ce&16&&N(Y.children,Ae,null,Oe,Ve,_e&&Ye!=="foreignObject",Be,Ie),ut&&Zo(Y,null,Oe,"created"),M(Ae,Y,Y.scopeId,Be,Oe),qe){for(const ct in qe)ct!=="value"&&!vh(ct)&&i(Ae,ct,null,qe[ct],_e,Y.children,Oe,Ve,ie);"value"in qe&&i(Ae,"value",null,qe.value),(Me=qe.onVnodeBeforeMount)&&Qr(Me,Oe,Y)}ut&&Zo(Y,null,Oe,"beforeMount");const bt=(!Ve||Ve&&!Ve.pendingBranch)&&Ge&&!Ge.persisted;bt&&Ge.beforeEnter(Ae),s(Ae,re,Se),((Me=qe&&qe.onVnodeMounted)||bt||ut)&&Ms(()=>{Me&&Qr(Me,Oe,Y),bt&&Ge.enter(Ae),ut&&Zo(Y,null,Oe,"mounted")},Ve)},M=(Y,re,Se,Oe,Ve)=>{if(Se&&p(Y,Se),Oe)for(let _e=0;_e<Oe.length;_e++)p(Y,Oe[_e]);if(Ve){let _e=Ve.subTree;if(re===_e){const Be=Ve.vnode;M(Y,Be,Be.scopeId,Be.slotScopeIds,Ve.parent)}}},N=(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae=0)=>{for(let Me=Ae;Me<Y.length;Me++){const Ye=Y[Me]=Ie?yo(Y[Me]):Zr(Y[Me]);m(null,Ye,re,Se,Oe,Ve,_e,Be,Ie)}},L=(Y,re,Se,Oe,Ve,_e,Be)=>{const Ie=re.el=Y.el;let{patchFlag:Ae,dynamicChildren:Me,dirs:Ye}=re;Ae|=Y.patchFlag&16;const qe=Y.props||xn,Ce=re.props||xn;let Ge;Se&&ea(Se,!1),(Ge=Ce.onVnodeBeforeUpdate)&&Qr(Ge,Se,re,Y),Ye&&Zo(re,Y,Se,"beforeUpdate"),Se&&ea(Se,!0);const ut=Ve&&re.type!=="foreignObject";if(Me?F(Y.dynamicChildren,Me,Ie,Se,Oe,ut,_e):Be||H(Y,re,Ie,null,Se,Oe,ut,_e,!1),Ae>0){if(Ae&16)W(Ie,re,qe,Ce,Se,Oe,Ve);else if(Ae&2&&qe.class!==Ce.class&&i(Ie,"class",null,Ce.class,Ve),Ae&4&&i(Ie,"style",qe.style,Ce.style,Ve),Ae&8){const bt=re.dynamicProps;for(let ct=0;ct<bt.length;ct++){const Le=bt[ct],De=qe[Le],be=Ce[Le];(be!==De||Le==="value")&&i(Ie,Le,De,be,Ve,Y.children,Se,Oe,ie)}}Ae&1&&Y.children!==re.children&&d(Ie,re.children)}else!Be&&Me==null&&W(Ie,re,qe,Ce,Se,Oe,Ve);((Ge=Ce.onVnodeUpdated)||Ye)&&Ms(()=>{Ge&&Qr(Ge,Se,re,Y),Ye&&Zo(re,Y,Se,"updated")},Oe)},F=(Y,re,Se,Oe,Ve,_e,Be)=>{for(let Ie=0;Ie<re.length;Ie++){const Ae=Y[Ie],Me=re[Ie],Ye=Ae.el&&(Ae.type===et||!ua(Ae,Me)||Ae.shapeFlag&70)?f(Ae.el):Se;m(Ae,Me,Ye,null,Oe,Ve,_e,Be,!0)}},W=(Y,re,Se,Oe,Ve,_e,Be)=>{if(Se!==Oe){if(Se!==xn)for(const Ie in Se)!vh(Ie)&&!(Ie in Oe)&&i(Y,Ie,Se[Ie],null,Be,re.children,Ve,_e,ie);for(const Ie in Oe){if(vh(Ie))continue;const Ae=Oe[Ie],Me=Se[Ie];Ae!==Me&&Ie!=="value"&&i(Y,Ie,Me,Ae,Be,re.children,Ve,_e,ie)}"value"in Oe&&i(Y,"value",Se.value,Oe.value)}},j=(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae)=>{const Me=re.el=Y?Y.el:a(""),Ye=re.anchor=Y?Y.anchor:a("");let{patchFlag:qe,dynamicChildren:Ce,slotScopeIds:Ge}=re;Ge&&(Ie=Ie?Ie.concat(Ge):Ge),Y==null?(s(Me,Se,Oe),s(Ye,Se,Oe),N(re.children,Se,Ye,Ve,_e,Be,Ie,Ae)):qe>0&&qe&64&&Ce&&Y.dynamicChildren?(F(Y.dynamicChildren,Ce,Se,Ve,_e,Be,Ie),(re.key!=null||Ve&&re===Ve.subTree)&&wb(Y,re,!0)):H(Y,re,Se,Ye,Ve,_e,Be,Ie,Ae)},R=(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae)=>{re.slotScopeIds=Ie,Y==null?re.shapeFlag&512?Ve.ctx.activate(re,Se,Oe,Be,Ae):q(re,Se,Oe,Ve,_e,Be,Ae):X(Y,re,Ae)},q=(Y,re,Se,Oe,Ve,_e,Be)=>{const Ie=Y.component=w3(Y,Oe,Ve);if(dm(Y)&&(Ie.ctx.renderer=pe),C3(Ie),Ie.asyncDep){if(Ve&&Ve.registerDep(Ie,K),!Y.el){const Ae=Ie.subTree=G(Ss);y(null,Ae,re,Se)}return}K(Ie,Y,re,Se,Ve,_e,Be)},X=(Y,re,Se)=>{const Oe=re.component=Y.component;if(B4(Y,re,Se))if(Oe.asyncDep&&!Oe.asyncResolved){$(Oe,re,Se);return}else Oe.next=re,N4(Oe.update),Oe.update();else re.el=Y.el,Oe.vnode=re},K=(Y,re,Se,Oe,Ve,_e,Be)=>{const Ie=()=>{if(Y.isMounted){let{next:Ye,bu:qe,u:Ce,parent:Ge,vnode:ut}=Y,bt=Ye,ct;ea(Y,!1),Ye?(Ye.el=ut.el,$(Y,Ye,Be)):Ye=ut,qe&&bh(qe),(ct=Ye.props&&Ye.props.onVnodeBeforeUpdate)&&Qr(ct,Ge,Ye,ut),ea(Y,!0);const Le=Dg(Y),De=Y.subTree;Y.subTree=Le,m(De,Le,f(De.el),ce(De),Y,Ve,_e),Ye.el=Le.el,bt===null&&V4(Y,Le.el),Ce&&Ms(Ce,Ve),(ct=Ye.props&&Ye.props.onVnodeUpdated)&&Ms(()=>Qr(ct,Ge,Ye,ut),Ve)}else{let Ye;const{el:qe,props:Ce}=re,{bm:Ge,m:ut,parent:bt}=Y,ct=Sc(re);if(ea(Y,!1),Ge&&bh(Ge),!ct&&(Ye=Ce&&Ce.onVnodeBeforeMount)&&Qr(Ye,bt,re),ea(Y,!0),qe&&He){const Le=()=>{Y.subTree=Dg(Y),He(qe,Y.subTree,Y,Ve,null)};ct?re.type.__asyncLoader().then(()=>!Y.isUnmounted&&Le()):Le()}else{const Le=Y.subTree=Dg(Y);m(null,Le,Se,Oe,Y,Ve,_e),re.el=Le.el}if(ut&&Ms(ut,Ve),!ct&&(Ye=Ce&&Ce.onVnodeMounted)){const Le=re;Ms(()=>Qr(Ye,bt,Le),Ve)}(re.shapeFlag&256||bt&&Sc(bt.vnode)&&bt.vnode.shapeFlag&256)&&Y.a&&Ms(Y.a,Ve),Y.isMounted=!0,re=Se=Oe=null}},Ae=Y.effect=new lb(Ie,()=>gb(Me),Y.scope),Me=Y.update=()=>Ae.run();Me.id=Y.uid,ea(Y,!0),Me()},$=(Y,re,Se)=>{re.component=Y;const Oe=Y.vnode.props;Y.vnode=re,Y.next=null,o3(Y,re.props,Oe,Se),u3(Y,re.children,Se),_u(),dS(),Tu()},H=(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae=!1)=>{const Me=Y&&Y.children,Ye=Y?Y.shapeFlag:0,qe=re.children,{patchFlag:Ce,shapeFlag:Ge}=re;if(Ce>0){if(Ce&128){Z(Me,qe,Se,Oe,Ve,_e,Be,Ie,Ae);return}else if(Ce&256){U(Me,qe,Se,Oe,Ve,_e,Be,Ie,Ae);return}}Ge&8?(Ye&16&&ie(Me,Ve,_e),qe!==Me&&d(Se,qe)):Ye&16?Ge&16?Z(Me,qe,Se,Oe,Ve,_e,Be,Ie,Ae):ie(Me,Ve,_e,!0):(Ye&8&&d(Se,""),Ge&16&&N(qe,Se,Oe,Ve,_e,Be,Ie,Ae))},U=(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae)=>{Y=Y||Cl,re=re||Cl;const Me=Y.length,Ye=re.length,qe=Math.min(Me,Ye);let Ce;for(Ce=0;Ce<qe;Ce++){const Ge=re[Ce]=Ae?yo(re[Ce]):Zr(re[Ce]);m(Y[Ce],Ge,Se,null,Ve,_e,Be,Ie,Ae)}Me>Ye?ie(Y,Ve,_e,!0,!1,qe):N(re,Se,Oe,Ve,_e,Be,Ie,Ae,qe)},Z=(Y,re,Se,Oe,Ve,_e,Be,Ie,Ae)=>{let Me=0;const Ye=re.length;let qe=Y.length-1,Ce=Ye-1;for(;Me<=qe&&Me<=Ce;){const Ge=Y[Me],ut=re[Me]=Ae?yo(re[Me]):Zr(re[Me]);if(ua(Ge,ut))m(Ge,ut,Se,null,Ve,_e,Be,Ie,Ae);else break;Me++}for(;Me<=qe&&Me<=Ce;){const Ge=Y[qe],ut=re[Ce]=Ae?yo(re[Ce]):Zr(re[Ce]);if(ua(Ge,ut))m(Ge,ut,Se,null,Ve,_e,Be,Ie,Ae);else break;qe--,Ce--}if(Me>qe){if(Me<=Ce){const Ge=Ce+1,ut=Ge<Ye?re[Ge].el:Oe;for(;Me<=Ce;)m(null,re[Me]=Ae?yo(re[Me]):Zr(re[Me]),Se,ut,Ve,_e,Be,Ie,Ae),Me++}}else if(Me>Ce)for(;Me<=qe;)Q(Y[Me],Ve,_e,!0),Me++;else{const Ge=Me,ut=Me,bt=new Map;for(Me=ut;Me<=Ce;Me++){const We=re[Me]=Ae?yo(re[Me]):Zr(re[Me]);We.key!=null&&bt.set(We.key,Me)}let ct,Le=0;const De=Ce-ut+1;let be=!1,J=0;const fe=new Array(De);for(Me=0;Me<De;Me++)fe[Me]=0;for(Me=Ge;Me<=qe;Me++){const We=Y[Me];if(Le>=De){Q(We,Ve,_e,!0);continue}let St;if(We.key!=null)St=bt.get(We.key);else for(ct=ut;ct<=Ce;ct++)if(fe[ct-ut]===0&&ua(We,re[ct])){St=ct;break}St===void 0?Q(We,Ve,_e,!0):(fe[St-ut]=Me+1,St>=J?J=St:be=!0,m(We,re[St],Se,null,Ve,_e,Be,Ie,Ae),Le++)}const Re=be?p3(fe):Cl;for(ct=Re.length-1,Me=De-1;Me>=0;Me--){const We=ut+Me,St=re[We],$e=We+1<Ye?re[We+1].el:Oe;fe[Me]===0?m(null,St,Se,$e,Ve,_e,Be,Ie,Ae):be&&(ct<0||Me!==Re[ct]?ue(St,Se,$e,2):ct--)}}},ue=(Y,re,Se,Oe,Ve=null)=>{const{el:_e,type:Be,transition:Ie,children:Ae,shapeFlag:Me}=Y;if(Me&6){ue(Y.component.subTree,re,Se,Oe);return}if(Me&128){Y.suspense.move(re,Se,Oe);return}if(Me&64){Be.move(Y,re,Se,pe);return}if(Be===et){s(_e,re,Se);for(let qe=0;qe<Ae.length;qe++)ue(Ae[qe],re,Se,Oe);s(Y.anchor,re,Se);return}if(Be===_h){_(Y,re,Se);return}if(Oe!==2&&Me&1&&Ie)if(Oe===0)Ie.beforeEnter(_e),s(_e,re,Se),Ms(()=>Ie.enter(_e),Ve);else{const{leave:qe,delayLeave:Ce,afterLeave:Ge}=Ie,ut=()=>s(_e,re,Se),bt=()=>{qe(_e,()=>{ut(),Ge&&Ge()})};Ce?Ce(_e,ut,bt):bt()}else s(_e,re,Se)},Q=(Y,re,Se,Oe=!1,Ve=!1)=>{const{type:_e,props:Be,ref:Ie,children:Ae,dynamicChildren:Me,shapeFlag:Ye,patchFlag:qe,dirs:Ce}=Y;if(Ie!=null&&n0(Ie,null,Se,Y,!0),Ye&256){re.ctx.deactivate(Y);return}const Ge=Ye&1&&Ce,ut=!Sc(Y);let bt;if(ut&&(bt=Be&&Be.onVnodeBeforeUnmount)&&Qr(bt,re,Y),Ye&6)le(Y.component,Se,Oe);else{if(Ye&128){Y.suspense.unmount(Se,Oe);return}Ge&&Zo(Y,null,re,"beforeUnmount"),Ye&64?Y.type.remove(Y,re,Se,Ve,pe,Oe):Me&&(_e!==et||qe>0&&qe&64)?ie(Me,re,Se,!1,!0):(_e===et&&qe&384||!Ve&&Ye&16)&&ie(Ae,re,Se),Oe&&ae(Y)}(ut&&(bt=Be&&Be.onVnodeUnmounted)||Ge)&&Ms(()=>{bt&&Qr(bt,re,Y),Ge&&Zo(Y,null,re,"unmounted")},Se)},ae=Y=>{const{type:re,el:Se,anchor:Oe,transition:Ve}=Y;if(re===et){Ee(Se,Oe);return}if(re===_h){S(Y);return}const _e=()=>{r(Se),Ve&&!Ve.persisted&&Ve.afterLeave&&Ve.afterLeave()};if(Y.shapeFlag&1&&Ve&&!Ve.persisted){const{leave:Be,delayLeave:Ie}=Ve,Ae=()=>Be(Se,_e);Ie?Ie(Y.el,_e,Ae):Ae()}else _e()},Ee=(Y,re)=>{let Se;for(;Y!==re;)Se=h(Y),r(Y),Y=Se;r(re)},le=(Y,re,Se)=>{const{bum:Oe,scope:Ve,update:_e,subTree:Be,um:Ie}=Y;Oe&&bh(Oe),Ve.stop(),_e&&(_e.active=!1,Q(Be,Y,re,Se)),Ie&&Ms(Ie,re),Ms(()=>{Y.isUnmounted=!0},re),re&&re.pendingBranch&&!re.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===re.pendingId&&(re.deps--,re.deps===0&&re.resolve())},ie=(Y,re,Se,Oe=!1,Ve=!1,_e=0)=>{for(let Be=_e;Be<Y.length;Be++)Q(Y[Be],re,Se,Oe,Ve)},ce=Y=>Y.shapeFlag&6?ce(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():h(Y.anchor||Y.el),ne=(Y,re,Se)=>{Y==null?re._vnode&&Q(re._vnode,null,null,!0):m(re._vnode||null,Y,re,null,null,null,Se),dS(),qk(),re._vnode=Y},pe={p:m,um:Q,m:ue,r:ae,mt:q,mc:N,pc:H,pbc:F,n:ce,o:e};let Te,He;return t&&([Te,He]=t(pe)),{render:ne,hydrate:Te,createApp:d3(ne,Te)}}function ea({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function wb(e,t,n=!1){const s=e.children,r=t.children;if(tt(s)&&tt(r))for(let i=0;i<s.length;i++){const o=s[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=yo(r[i]),a.el=o.el),n||wb(o,a)),a.type===Cu&&(a.el=o.el)}}function p3(e){const t=e.slice(),n=[0];let s,r,i,o,a;const l=e.length;for(s=0;s<l;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const m3=e=>e.__isTeleport,Cc=e=>e&&(e.disabled||e.disabled===""),TS=e=>typeof SVGElement<"u"&&e instanceof SVGElement,s0=(e,t)=>{const n=e&&e.to;return mt(n)?t?t(n):null:n},g3={__isTeleport:!0,process(e,t,n,s,r,i,o,a,l,u){const{mc:d,pc:f,pbc:h,o:{insert:p,querySelector:g,createText:m,createComment:v}}=u,y=Cc(t.props);let{shapeFlag:T,children:_,dynamicChildren:S}=t;if(e==null){const w=t.el=m(""),A=t.anchor=m("");p(w,n,s),p(A,n,s);const M=t.target=s0(t.props,g),N=t.targetAnchor=m("");M&&(p(N,M),o=o||TS(M));const L=(F,W)=>{T&16&&d(_,F,W,r,i,o,a,l)};y?L(n,A):M&&L(M,N)}else{t.el=e.el;const w=t.anchor=e.anchor,A=t.target=e.target,M=t.targetAnchor=e.targetAnchor,N=Cc(e.props),L=N?n:A,F=N?w:M;if(o=o||TS(A),S?(h(e.dynamicChildren,S,L,r,i,o,a),wb(e,t,!0)):l||f(e,t,L,F,r,i,o,a,!1),y)N||zf(t,n,w,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=s0(t.props,g);W&&zf(t,W,null,u,0)}else N&&zf(t,A,M,u,1)}f2(t)},remove(e,t,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:l,anchor:u,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(o||!Cc(h))&&(i(u),a&16))for(let p=0;p<l.length;p++){const g=l[p];r(g,t,n,!0,!!g.dynamicChildren)}},move:zf,hydrate:v3};function zf(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:l,children:u,props:d}=e,f=i===2;if(f&&s(o,t,n),(!f||Cc(d))&&l&16)for(let h=0;h<u.length;h++)r(u[h],t,n,2);f&&s(a,t,n)}function v3(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:a,querySelector:l}},u){const d=t.target=s0(t.props,l);if(d){const f=d._lpa||d.firstChild;if(t.shapeFlag&16)if(Cc(t.props))t.anchor=u(o(e),t,a(e),n,s,r,i),t.targetAnchor=f;else{t.anchor=o(e);let h=f;for(;h;)if(h=o(h),h&&h.nodeType===8&&h.data==="teleport anchor"){t.targetAnchor=h,d._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(f,t,d,n,s,r,i)}f2(t)}return t.anchor&&o(t.anchor)}const Fd=g3;function f2(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 et=Symbol(void 0),Cu=Symbol(void 0),Ss=Symbol(void 0),_h=Symbol(void 0),Ec=[];let Rr=null;function x(e=!1){Ec.push(Rr=e?null:[])}function y3(){Ec.pop(),Rr=Ec[Ec.length-1]||null}let Jc=1;function SS(e){Jc+=e}function h2(e){return e.dynamicChildren=Jc>0?Rr||Cl:null,y3(),Jc>0&&Rr&&Rr.push(e),e}function z(e,t,n,s,r,i){return h2(V(e,t,n,s,r,i,!0))}function ve(e,t,n,s,r){return h2(G(e,t,n,s,r,!0))}function gn(e){return e?e.__v_isVNode===!0:!1}function ua(e,t){return e.type===t.type&&e.key===t.key}const hm="__vInternal",p2=({key:e})=>e??null,Th=({ref:e,ref_key:t,ref_for:n})=>e!=null?mt(e)||rn(e)||pt(e)?{i:ss,r:e,k:t,f:!!n}:e:null;function V(e,t=null,n=null,s=0,r=null,i=e===et?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&p2(t),ref:t&&Th(t),scopeId:cm,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ss};return a?(Cb(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=mt(n)?8:16),Jc>0&&!o&&Rr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Rr.push(l),l}const G=b3;function b3(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===s2)&&(e=Ss),gn(e)){const a=Wi(e,t,!0);return n&&Cb(a,n),Jc>0&&!i&&Rr&&(a.shapeFlag&6?Rr[Rr.indexOf(e)]=a:Rr.push(a)),a.patchFlag|=-2,a}if(O3(e)&&(e=e.__vccOpts),t){t=pm(t);let{class:a,style:l}=t;a&&!mt(a)&&(t.class=I(a)),Pt(l)&&(Bk(l)&&!tt(l)&&(l=Jn({},l)),t.style=st(l))}const o=mt(e)?1:U4(e)?128:m3(e)?64:Pt(e)?4:pt(e)?2:0;return V(e,t,n,s,r,o,i,!0)}function pm(e){return e?Bk(e)||hm in e?Jn({},e):e:null}function Wi(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,a=t?$t(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&p2(a),ref:t&&t.ref?n&&r?tt(r)?r.concat(Th(t)):[r,Th(t)]:Th(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==et?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&&Wi(e.ssContent),ssFallback:e.ssFallback&&Wi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wt(e=" ",t=0){return G(Cu,null,e,t)}function _3(e,t){const n=G(_h,null,e);return n.staticCount=t,n}function he(e="",t=!1){return t?(x(),ve(Ss,null,e)):G(Ss,null,e)}function Zr(e){return e==null||typeof e=="boolean"?G(Ss):tt(e)?G(et,null,e.slice()):typeof e=="object"?yo(e):G(Cu,null,String(e))}function yo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wi(e)}function Cb(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(tt(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Cb(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(hm in t)?t._ctx=ss:r===3&&ss&&(ss.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:ss},n=32):(t=String(t),s&64?(n=16,t=[wt(t)]):n=8);e.children=t,e.shapeFlag|=n}function $t(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=I([t.class,s.class]));else if(r==="style")t.style=st([t.style,s.style]);else if(rm(r)){const i=t[r],o=s[r];o&&i!==o&&!(tt(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function Qr(e,t,n,s=null){pr(e,t,7,[n,s])}const T3=d2();let S3=0;function w3(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||T3,i={uid:S3++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ek(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:a2(s,r),emitsOptions:Yk(s,r),emit:null,emitted:null,propsDefaults:xn,inheritAttrs:s.inheritAttrs,ctx:xn,data:xn,props:xn,attrs:xn,slots:xn,refs:xn,setupState:xn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=L4.bind(null,i),e.ce&&e.ce(i),i}let Ln=null;const At=()=>Ln||ss,Hl=e=>{Ln=e,e.scope.on()},Ca=()=>{Ln&&Ln.scope.off(),Ln=null};function m2(e){return e.vnode.shapeFlag&4}let Zc=!1;function C3(e,t=!1){Zc=t;const{props:n,children:s}=e.vnode,r=m2(e);i3(e,n,r,t),l3(e,s);const i=r?E3(e,t):void 0;return Zc=!1,i}function E3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=wa(new Proxy(e.ctx,Z4));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?v2(e):null;Hl(e),_u();const i=Eo(s,e,0,[e.props,r]);if(Tu(),Ca(),jc(i)){if(i.then(Ca,Ca),t)return i.then(o=>{wS(e,o,t)}).catch(o=>{lm(o,e,0)});e.asyncDep=i}else wS(e,i,t)}else g2(e,t)}function wS(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pt(t)&&(e.setupState=Hk(t)),g2(e,n)}let CS;function g2(e,t,n){const s=e.type;if(!e.render){if(!t&&CS&&!s.render){const r=s.template||Tb(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,u=Jn(Jn({isCustomElement:i,delimiters:a},o),l);s.render=CS(r,u)}}e.render=s.render||Zt}Hl(e),_u(),e3(e),Tu(),Ca()}function x3(e){return new Proxy(e.attrs,{get(t,n){return Hs(e,"get","$attrs"),t[n]}})}function v2(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=x3(e))},slots:e.slots,emit:e.emit,expose:t}}function mm(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Hk(wa(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wc)return wc[n](e)},has(t,n){return n in t||n in wc}}))}function k3(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function O3(e){return pt(e)&&"__vccOpts"in e}const E=(e,t)=>jk(e,t,Zc);function es(){return y2().slots}function Eu(){return y2().attrs}function y2(){const e=At();return e.setupContext||(e.setupContext=v2(e))}function ot(e,t,n){const s=arguments.length;return s===2?Pt(t)&&!tt(t)?gn(t)?G(e,null,[t]):G(e,t):G(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&gn(n)&&(n=[n]),G(e,t,n))}const A3=Symbol(""),I3=()=>Qe(A3),P3="3.2.47",$3="http://www.w3.org/2000/svg",ca=typeof document<"u"?document:null,ES=ca&&ca.createElement("template"),N3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?ca.createElementNS($3,e):ca.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ca.createTextNode(e),createComment:e=>ca.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ca.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{ES.innerHTML=s?`<svg>${e}</svg>`:e;const a=ES.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function M3(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function R3(e,t,n){const s=e.style,r=mt(n);if(n&&!r){if(t&&!mt(t))for(const i in t)n[i]==null&&r0(s,i,"");for(const i in n)r0(s,i,n[i])}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const xS=/\s*!important$/;function r0(e,t,n){if(tt(n))n.forEach(s=>r0(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=L3(e,t);xS.test(n)?e.setProperty(Bo(s),n.replace(xS,""),"important"):e[s]=n}}const kS=["Webkit","Moz","ms"],Vg={};function L3(e,t){const n=Vg[t];if(n)return n;let s=vr(t);if(s!=="filter"&&s in e)return Vg[t]=s;s=Dd(s);for(let r=0;r<kS.length;r++){const i=kS[r]+s;if(i in e)return Vg[t]=i}return t}const OS="http://www.w3.org/1999/xlink";function D3(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(OS,t.slice(6,t.length)):e.setAttributeNS(OS,t,n);else{const i=HD(t);n==null||i&&!_k(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function F3(e,t,n,s,r,i,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,r,i),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=_k(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function To(e,t,n,s){e.addEventListener(t,n,s)}function B3(e,t,n,s){e.removeEventListener(t,n,s)}function V3(e,t,n,s,r=null){const i=e._vei||(e._vei={}),o=i[t];if(s&&o)o.value=s;else{const[a,l]=U3(t);if(s){const u=i[t]=j3(s,r);To(e,a,u,l)}else o&&(B3(e,a,o,l),i[t]=void 0)}}const AS=/(?:Once|Passive|Capture)$/;function U3(e){let t;if(AS.test(e)){t={};let s;for(;s=e.match(AS);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Bo(e.slice(2)),t]}let Ug=0;const H3=Promise.resolve(),z3=()=>Ug||(H3.then(()=>Ug=0),Ug=Date.now());function j3(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;pr(K3(s,n.value),t,5,[s])};return n.value=e,n.attached=z3(),n}function K3(e,t){if(tt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const IS=/^on[a-z]/,W3=(e,t,n,s,r=!1,i,o,a,l)=>{t==="class"?M3(e,s,r):t==="style"?R3(e,n,s):rm(t)?rb(t)||V3(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):q3(e,t,s,r))?F3(e,t,s,i,o,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),D3(e,t,s,r))};function q3(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&IS.test(t)&&pt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||IS.test(t)&&mt(n)?!1:t in e}const lo="transition",Qu="animation",Pn=(e,{slots:t})=>ot(Jk,_2(e),t);Pn.displayName="Transition";const b2={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},G3=Pn.props=Jn({},Jk.props,b2),ta=(e,t=[])=>{tt(e)?e.forEach(n=>n(...t)):e&&e(...t)},PS=e=>e?tt(e)?e.some(t=>t.length>1):e.length>1:!1;function _2(e){const t={};for(const j in e)j in b2||(t[j]=e[j]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:d=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=Y3(r),m=g&&g[0],v=g&&g[1],{onBeforeEnter:y,onEnter:T,onEnterCancelled:_,onLeave:S,onLeaveCancelled:w,onBeforeAppear:A=y,onAppear:M=T,onAppearCancelled:N=_}=t,L=(j,R,q)=>{po(j,R?d:a),po(j,R?u:o),q&&q()},F=(j,R)=>{j._isLeaving=!1,po(j,f),po(j,p),po(j,h),R&&R()},W=j=>(R,q)=>{const X=j?M:T,K=()=>L(R,j,q);ta(X,[R,K]),$S(()=>{po(R,j?l:i),Pi(R,j?d:a),PS(X)||NS(R,s,m,K)})};return Jn(t,{onBeforeEnter(j){ta(y,[j]),Pi(j,i),Pi(j,o)},onBeforeAppear(j){ta(A,[j]),Pi(j,l),Pi(j,u)},onEnter:W(!1),onAppear:W(!0),onLeave(j,R){j._isLeaving=!0;const q=()=>F(j,R);Pi(j,f),S2(),Pi(j,h),$S(()=>{j._isLeaving&&(po(j,f),Pi(j,p),PS(S)||NS(j,s,v,q))}),ta(S,[j,q])},onEnterCancelled(j){L(j,!1),ta(_,[j])},onAppearCancelled(j){L(j,!0),ta(N,[j])},onLeaveCancelled(j){F(j),ta(w,[j])}})}function Y3(e){if(e==null)return null;if(Pt(e))return[Hg(e.enter),Hg(e.leave)];{const t=Hg(e);return[t,t]}}function Hg(e){return YD(e)}function Pi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function po(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function $S(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let X3=0;function NS(e,t,n,s){const r=e._endId=++X3,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=T2(e,t);if(!o)return s();const u=o+"end";let d=0;const f=()=>{e.removeEventListener(u,h),i()},h=p=>{p.target===e&&++d>=l&&f()};setTimeout(()=>{d<l&&f()},a+1),e.addEventListener(u,h)}function T2(e,t){const n=window.getComputedStyle(e),s=g=>(n[g]||"").split(", "),r=s(`${lo}Delay`),i=s(`${lo}Duration`),o=MS(r,i),a=s(`${Qu}Delay`),l=s(`${Qu}Duration`),u=MS(a,l);let d=null,f=0,h=0;t===lo?o>0&&(d=lo,f=o,h=i.length):t===Qu?u>0&&(d=Qu,f=u,h=l.length):(f=Math.max(o,u),d=f>0?o>u?lo:Qu:null,h=d?d===lo?i.length:l.length:0);const p=d===lo&&/\b(transform|all)(,|$)/.test(s(`${lo}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:p}}function MS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>RS(n)+RS(e[s])))}function RS(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function S2(){return document.body.offsetHeight}const w2=new WeakMap,C2=new WeakMap,E2={name:"TransitionGroup",props:Jn({},G3,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=At(),s=Qk();let r,i;return to(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!tF(r[0].el,n.vnode.el,o))return;r.forEach(J3),r.forEach(Z3);const a=r.filter(eF);S2(),a.forEach(l=>{const u=l.el,d=u.style;Pi(u,o),d.transform=d.webkitTransform=d.transitionDuration="";const f=u._moveCb=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,po(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=Xt(e),a=_2(o);let l=o.tag||et;r=i,i=t.default?yb(t.default()):[];for(let u=0;u<i.length;u++){const d=i[u];d.key!=null&&Xc(d,Yc(d,a,s,n))}if(r)for(let u=0;u<r.length;u++){const d=r[u];Xc(d,Yc(d,a,s,n)),w2.set(d,d.el.getBoundingClientRect())}return G(l,null,i)}}},Q3=e=>delete e.mode;E2.props;const x2=E2;function J3(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Z3(e){C2.set(e,e.el.getBoundingClientRect())}function eF(e){const t=w2.get(e),n=C2.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function tF(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=T2(s);return r.removeChild(s),i}const zl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return tt(t)?n=>bh(t,n):t};function nF(e){e.target.composing=!0}function LS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Bd={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=zl(r);const i=s||r.props&&r.props.type==="number";To(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=qv(a)),e._assign(a)}),n&&To(e,"change",()=>{e.value=e.value.trim()}),t||(To(e,"compositionstart",nF),To(e,"compositionend",LS),To(e,"change",LS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=zl(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&qv(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},ap={deep:!0,created(e,t,n){e._assign=zl(n),To(e,"change",()=>{const s=e._modelValue,r=O2(e),i=e.checked,o=e._assign;if(tt(s)){const a=Tk(s,r),l=a!==-1;if(i&&!l)o(s.concat(r));else if(!i&&l){const u=[...s];u.splice(a,1),o(u)}}else if(im(s)){const a=new Set(s);i?a.add(r):a.delete(r),o(a)}else o(A2(e,i))})},mounted:DS,beforeUpdate(e,t,n){e._assign=zl(n),DS(e,t,n)}};function DS(e,{value:t,oldValue:n},s){e._modelValue=t,tt(t)?e.checked=Tk(t,s.props.value)>-1:im(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Vl(t,A2(e,!0)))}const k2={created(e,{value:t},n){e.checked=Vl(t,n.props.value),e._assign=zl(n),To(e,"change",()=>{e._assign(O2(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=zl(s),t!==n&&(e.checked=Vl(t,s.props.value))}};function O2(e){return"_value"in e?e._value:e.value}function A2(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const sF=["ctrl","shift","alt","meta"],rF={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)=>sF.some(n=>e[`${n}Key`]&&!t.includes(n))},ft=(e,t)=>(n,...s)=>{for(let r=0;r<t.length;r++){const i=rF[t[r]];if(i&&i(n,t))return}return e(n,...s)},iF={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 s=Bo(n.key);if(t.some(r=>r===s||iF[r]===s))return e(n)},Ut={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ju(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Ju(e,!0),s.enter(e)):s.leave(e,()=>{Ju(e,!1)}):Ju(e,t))},beforeUnmount(e,{value:t}){Ju(e,t)}};function Ju(e,t){e.style.display=t?e._vod:"none"}const oF=Jn({patchProp:W3},N3);let FS;function I2(){return FS||(FS=f3(oF))}const jl=(...e)=>{I2().render(...e)},Eb=(...e)=>{const t=I2().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=aF(s);if(!r)return;const i=t._component;!pt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function aF(e){return mt(e)?document.querySelector(e):e}const lF='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',uF=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,BS=e=>Array.from(e.querySelectorAll(lF)).filter(t=>cF(t)&&uF(t)),cF=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}},Sh=function(e,t,...n){let s;t.includes("mouse")||t.includes("click")?s="MouseEvents":t.includes("key")?s="KeyboardEvent":s="HTMLEvents";const r=document.createEvent(s);return r.initEvent(t,...n),e.dispatchEvent(r),e},P2=e=>!e.getAttribute("aria-owns"),$2=(e,t,n)=>{const{parentNode:s}=e;if(!s)return null;const r=s.querySelectorAll(n),i=Array.prototype.indexOf.call(r,e);return r[i+t]||null},wh=e=>{e&&(e.focus(),!P2(e)&&e.click())},_n=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const i=e==null?void 0:e(r);if(n===!1||!i)return t==null?void 0:t(r)},VS=e=>t=>t.pointerType==="mouse"?e(t):void 0;var dF=Object.defineProperty,fF=Object.defineProperties,hF=Object.getOwnPropertyDescriptors,US=Object.getOwnPropertySymbols,pF=Object.prototype.hasOwnProperty,mF=Object.prototype.propertyIsEnumerable,HS=(e,t,n)=>t in e?dF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gF=(e,t)=>{for(var n in t||(t={}))pF.call(t,n)&&HS(e,n,t[n]);if(US)for(var n of US(t))mF.call(t,n)&&HS(e,n,t[n]);return e},vF=(e,t)=>fF(e,hF(t));function zS(e,t){var n;const s=nn();return nr(()=>{s.value=e()},vF(gF({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Fa(s)}var jS;const Ht=typeof window<"u",yF=e=>typeof e<"u",Dn=e=>typeof e=="boolean",bF=e=>typeof e=="function",ht=e=>typeof e=="number",_F=e=>typeof e=="string",Kl=()=>{},N2=Ht&&((jS=window==null?void 0:window.navigator)==null?void 0:jS.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Io(e){return typeof e=="function"?e():c(e)}function M2(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}function TF(e,t={}){let n,s,r=Kl;const i=a=>{clearTimeout(a),r(),r=Kl};return a=>{const l=Io(e),u=Io(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(s&&(i(s),s=null),Promise.resolve(a())):new Promise((d,f)=>{r=t.rejectOnCancel?f:d,u&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,d(a())},u)),n=setTimeout(()=>{s&&i(s),s=null,d(a())},l)})}}function SF(e,t=!0,n=!0,s=!1){let r=0,i,o=!0,a=Kl,l;const u=()=>{i&&(clearTimeout(i),i=void 0,a(),a=Kl)};return f=>{const h=Io(e),p=Date.now()-r,g=()=>l=f();return u(),h<=0?(r=Date.now(),g()):(p>h&&(n||!o)?(r=Date.now(),g()):t&&(l=new Promise((m,v)=>{a=s?v:m,i=setTimeout(()=>{r=Date.now(),o=!0,m(g()),u()},Math.max(0,h-p))})),!n&&!i&&(i=setTimeout(()=>o=!0,h)),o=!1,l)}}function wF(e){return e}function gm(e){return xk()?(kk(e),!0):!1}function CF(e,t=200,n={}){return M2(TF(t,n),e)}function EF(e,t=200,n={}){const s=B(e.value),r=CF(()=>{s.value=e.value},t,n);return ke(e,()=>r()),s}function R2(e,t=200,n=!1,s=!0,r=!1){return M2(SF(t,n,s,r),e)}function xb(e,t=!0){At()?Tt(e):t?e():it(e)}function $a(e,t,n={}){const{immediate:s=!0}=n,r=B(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function a(){r.value=!1,o()}function l(...u){o(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=null,e(...u)},Io(t))}return s&&(r.value=!0,Ht&&l()),gm(a),{isPending:Fa(r),start:l,stop:a}}function Qs(e){var t;const n=Io(e);return(t=n==null?void 0:n.$el)!=null?t:n}const xu=Ht?window:void 0,xF=Ht?window.document:void 0;function mn(...e){let t,n,s,r;if(_F(e[0])||Array.isArray(e[0])?([n,s,r]=e,t=xu):[t,n,s,r]=e,!t)return Kl;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],o=()=>{i.forEach(d=>d()),i.length=0},a=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),l=ke(()=>[Qs(t),Io(r)],([d,f])=>{o(),d&&i.push(...n.flatMap(h=>s.map(p=>a(d,h,p,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return gm(u),u}let KS=!1;function kb(e,t,n={}){const{window:s=xu,ignore:r=[],capture:i=!0,detectIframe:o=!1}=n;if(!s)return;N2&&!KS&&(KS=!0,Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",Kl)));let a=!0;const l=h=>r.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(g=>g===h.target||h.composedPath().includes(g));{const g=Qs(p);return g&&(h.target===g||h.composedPath().includes(g))}}),d=[mn(s,"click",h=>{const p=Qs(e);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(a=!l(h)),!a){a=!0;return}t(h)}},{passive:!0,capture:i}),mn(s,"pointerdown",h=>{const p=Qs(e);p&&(a=!h.composedPath().includes(p)&&!l(h))},{passive:!0}),o&&mn(s,"blur",h=>{var p;const g=Qs(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(s.document.activeElement))&&t(h)})].filter(Boolean);return()=>d.forEach(h=>h())}function kF(e,t=!1){const n=B(),s=()=>n.value=!!e();return s(),xb(s,t),n}function OF(e){return JSON.parse(JSON.stringify(e))}const WS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qS="__vueuse_ssr_handlers__";WS[qS]=WS[qS]||{};function AF(e,t,{window:n=xu,initialValue:s=""}={}){const r=B(s),i=E(()=>{var o;return Qs(t)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return ke([i,()=>Io(e)],([o,a])=>{var l;if(o&&n){const u=(l=n.getComputedStyle(o).getPropertyValue(a))==null?void 0:l.trim();r.value=u||s}},{immediate:!0}),ke(r,o=>{var a;(a=i.value)!=null&&a.style&&i.value.style.setProperty(Io(e),o)}),r}function IF({document:e=xF}={}){if(!e)return B("visible");const t=B(e.visibilityState);return mn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var GS=Object.getOwnPropertySymbols,PF=Object.prototype.hasOwnProperty,$F=Object.prototype.propertyIsEnumerable,NF=(e,t)=>{var n={};for(var s in e)PF.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&GS)for(var s of GS(e))t.indexOf(s)<0&&$F.call(e,s)&&(n[s]=e[s]);return n};function ds(e,t,n={}){const s=n,{window:r=xu}=s,i=NF(s,["window"]);let o;const a=kF(()=>r&&"ResizeObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},u=ke(()=>Qs(e),f=>{l(),a.value&&r&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return gm(d),{isSupported:a,stop:d}}function YS(e,t={}){const{reset:n=!0,windowResize:s=!0,windowScroll:r=!0,immediate:i=!0}=t,o=B(0),a=B(0),l=B(0),u=B(0),d=B(0),f=B(0),h=B(0),p=B(0);function g(){const m=Qs(e);if(!m){n&&(o.value=0,a.value=0,l.value=0,u.value=0,d.value=0,f.value=0,h.value=0,p.value=0);return}const v=m.getBoundingClientRect();o.value=v.height,a.value=v.bottom,l.value=v.left,u.value=v.right,d.value=v.top,f.value=v.width,h.value=v.x,p.value=v.y}return ds(e,g),ke(()=>Qs(e),m=>!m&&g()),r&&mn("scroll",g,{capture:!0,passive:!0}),s&&mn("resize",g,{passive:!0}),xb(()=>{i&&g()}),{height:o,bottom:a,left:l,right:u,top:d,width:f,x:h,y:p,update:g}}var XS;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(XS||(XS={}));var MF=Object.defineProperty,QS=Object.getOwnPropertySymbols,RF=Object.prototype.hasOwnProperty,LF=Object.prototype.propertyIsEnumerable,JS=(e,t,n)=>t in e?MF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DF=(e,t)=>{for(var n in t||(t={}))RF.call(t,n)&&JS(e,n,t[n]);if(QS)for(var n of QS(t))LF.call(t,n)&&JS(e,n,t[n]);return e};const FF={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]};DF({linear:wF},FF);function BF(e,t,n,s={}){var r,i,o;const{clone:a=!1,passive:l=!1,eventName:u,deep:d=!1,defaultValue:f}=s,h=At(),p=n||(h==null?void 0:h.emit)||((r=h==null?void 0:h.$emit)==null?void 0:r.bind(h))||((o=(i=h==null?void 0:h.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(h==null?void 0:h.proxy));let g=u;t||(t="modelValue"),g=u||g||`update:${t.toString()}`;const m=y=>a?bF(a)?a(y):OF(y):y,v=()=>yF(e[t])?m(e[t]):f;if(l){const y=v(),T=B(y);return ke(()=>e[t],_=>T.value=m(_)),ke(T,_=>{(_!==e[t]||d)&&p(g,_)},{deep:d}),T}else return E({get(){return v()},set(y){p(g,y)}})}function VF({window:e=xu}={}){if(!e)return B(!1);const t=B(e.document.hasFocus());return mn(e,"blur",()=>{t.value=!1}),mn(e,"focus",()=>{t.value=!0}),t}function UF(e={}){const{window:t=xu,initialWidth:n=1/0,initialHeight:s=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,o=B(n),a=B(s),l=()=>{t&&(i?(o.value=t.innerWidth,a.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),xb(l),mn("resize",l,{passive:!0}),r&&mn("orientationchange",l,{passive:!0}),{width:o,height:a}}const HF=(e,t)=>{if(!Ht||!e||!t)return!1;const n=e.getBoundingClientRect();let s;return t instanceof Element?s=t.getBoundingClientRect():s={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<s.bottom&&n.bottom>s.top&&n.right>s.left&&n.left<s.right},ZS=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},zF=(e,t)=>Math.abs(ZS(e)-ZS(t)),Ob=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 jF=typeof global=="object"&&global&&global.Object===Object&&global;const L2=jF;var KF=typeof self=="object"&&self&&self.Object===Object&&self,WF=L2||KF||Function("return this")();const Kr=WF;var qF=Kr.Symbol;const yr=qF;var D2=Object.prototype,GF=D2.hasOwnProperty,YF=D2.toString,Zu=yr?yr.toStringTag:void 0;function XF(e){var t=GF.call(e,Zu),n=e[Zu];try{e[Zu]=void 0;var s=!0}catch{}var r=YF.call(e);return s&&(t?e[Zu]=n:delete e[Zu]),r}var QF=Object.prototype,JF=QF.toString;function ZF(e){return JF.call(e)}var eB="[object Null]",tB="[object Undefined]",ew=yr?yr.toStringTag:void 0;function Va(e){return e==null?e===void 0?tB:eB:ew&&ew in Object(e)?XF(e):ZF(e)}function mi(e){return e!=null&&typeof e=="object"}var nB="[object Symbol]";function vm(e){return typeof e=="symbol"||mi(e)&&Va(e)==nB}function F2(e,t){for(var n=-1,s=e==null?0:e.length,r=Array(s);++n<s;)r[n]=t(e[n],n,e);return r}var sB=Array.isArray;const xs=sB;var rB=1/0,tw=yr?yr.prototype:void 0,nw=tw?tw.toString:void 0;function B2(e){if(typeof e=="string")return e;if(xs(e))return F2(e,B2)+"";if(vm(e))return nw?nw.call(e):"";var t=e+"";return t=="0"&&1/e==-rB?"-0":t}var iB=/\s/;function oB(e){for(var t=e.length;t--&&iB.test(e.charAt(t)););return t}var aB=/^\s+/;function lB(e){return e&&e.slice(0,oB(e)+1).replace(aB,"")}function ks(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sw=0/0,uB=/^[-+]0x[0-9a-f]+$/i,cB=/^0b[01]+$/i,dB=/^0o[0-7]+$/i,fB=parseInt;function rw(e){if(typeof e=="number")return e;if(vm(e))return sw;if(ks(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ks(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=lB(e);var n=cB.test(e);return n||dB.test(e)?fB(e.slice(2),n?2:8):uB.test(e)?sw:+e}function Ab(e){return e}var hB="[object AsyncFunction]",pB="[object Function]",mB="[object GeneratorFunction]",gB="[object Proxy]";function Ib(e){if(!ks(e))return!1;var t=Va(e);return t==pB||t==mB||t==hB||t==gB}var vB=Kr["__core-js_shared__"];const zg=vB;var iw=function(){var e=/[^.]+$/.exec(zg&&zg.keys&&zg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yB(e){return!!iw&&iw in e}var bB=Function.prototype,_B=bB.toString;function Ua(e){if(e!=null){try{return _B.call(e)}catch{}try{return e+""}catch{}}return""}var TB=/[\\^$.*+?()[\]{}|]/g,SB=/^\[object .+?Constructor\]$/,wB=Function.prototype,CB=Object.prototype,EB=wB.toString,xB=CB.hasOwnProperty,kB=RegExp("^"+EB.call(xB).replace(TB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function OB(e){if(!ks(e)||yB(e))return!1;var t=Ib(e)?kB:SB;return t.test(Ua(e))}function AB(e,t){return e==null?void 0:e[t]}function Ha(e,t){var n=AB(e,t);return OB(n)?n:void 0}var IB=Ha(Kr,"WeakMap");const i0=IB;var ow=Object.create,PB=function(){function e(){}return function(t){if(!ks(t))return{};if(ow)return ow(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const $B=PB;function NB(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 MB(){}function V2(e,t){var n=-1,s=e.length;for(t||(t=Array(s));++n<s;)t[n]=e[n];return t}var RB=800,LB=16,DB=Date.now;function FB(e){var t=0,n=0;return function(){var s=DB(),r=LB-(s-n);if(n=s,r>0){if(++t>=RB)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function BB(e){return function(){return e}}var VB=function(){try{var e=Ha(Object,"defineProperty");return e({},"",{}),e}catch{}}();const lp=VB;var UB=lp?function(e,t){return lp(e,"toString",{configurable:!0,enumerable:!1,value:BB(t),writable:!0})}:Ab;const HB=UB;var zB=FB(HB);const U2=zB;function jB(e,t){for(var n=-1,s=e==null?0:e.length;++n<s&&t(e[n],n,e)!==!1;);return e}function KB(e,t,n,s){for(var r=e.length,i=n+(s?1:-1);s?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function WB(e){return e!==e}function qB(e,t,n){for(var s=n-1,r=e.length;++s<r;)if(e[s]===t)return s;return-1}function GB(e,t,n){return t===t?qB(e,t,n):KB(e,WB,n)}function YB(e,t){var n=e==null?0:e.length;return!!n&&GB(e,t,0)>-1}var XB=9007199254740991,QB=/^(?:0|[1-9]\d*)$/;function ym(e,t){var n=typeof e;return t=t??XB,!!t&&(n=="number"||n!="symbol"&&QB.test(e))&&e>-1&&e%1==0&&e<t}function Pb(e,t,n){t=="__proto__"&&lp?lp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Vd(e,t){return e===t||e!==e&&t!==t}var JB=Object.prototype,ZB=JB.hasOwnProperty;function $b(e,t,n){var s=e[t];(!(ZB.call(e,t)&&Vd(s,n))||n===void 0&&!(t in e))&&Pb(e,t,n)}function Ud(e,t,n,s){var r=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=s?s(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),r?Pb(n,a,l):$b(n,a,l)}return n}var aw=Math.max;function H2(e,t,n){return t=aw(t===void 0?e.length-1:t,0),function(){for(var s=arguments,r=-1,i=aw(s.length-t,0),o=Array(i);++r<i;)o[r]=s[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=s[r];return a[t]=n(o),NB(e,this,a)}}function z2(e,t){return U2(H2(e,t,Ab),e+"")}var e8=9007199254740991;function Nb(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=e8}function ku(e){return e!=null&&Nb(e.length)&&!Ib(e)}function t8(e,t,n){if(!ks(n))return!1;var s=typeof t;return(s=="number"?ku(n)&&ym(t,n.length):s=="string"&&t in n)?Vd(n[t],e):!1}function n8(e){return z2(function(t,n){var s=-1,r=n.length,i=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,o&&t8(n[0],n[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++s<r;){var a=n[s];a&&e(t,a,s,i)}return t})}var s8=Object.prototype;function Mb(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||s8;return e===n}function r8(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}var i8="[object Arguments]";function lw(e){return mi(e)&&Va(e)==i8}var j2=Object.prototype,o8=j2.hasOwnProperty,a8=j2.propertyIsEnumerable,l8=lw(function(){return arguments}())?lw:function(e){return mi(e)&&o8.call(e,"callee")&&!a8.call(e,"callee")};const ed=l8;function u8(){return!1}var K2=typeof er=="object"&&er&&!er.nodeType&&er,uw=K2&&typeof tr=="object"&&tr&&!tr.nodeType&&tr,c8=uw&&uw.exports===K2,cw=c8?Kr.Buffer:void 0,d8=cw?cw.isBuffer:void 0,f8=d8||u8;const td=f8;var h8="[object Arguments]",p8="[object Array]",m8="[object Boolean]",g8="[object Date]",v8="[object Error]",y8="[object Function]",b8="[object Map]",_8="[object Number]",T8="[object Object]",S8="[object RegExp]",w8="[object Set]",C8="[object String]",E8="[object WeakMap]",x8="[object ArrayBuffer]",k8="[object DataView]",O8="[object Float32Array]",A8="[object Float64Array]",I8="[object Int8Array]",P8="[object Int16Array]",$8="[object Int32Array]",N8="[object Uint8Array]",M8="[object Uint8ClampedArray]",R8="[object Uint16Array]",L8="[object Uint32Array]",En={};En[O8]=En[A8]=En[I8]=En[P8]=En[$8]=En[N8]=En[M8]=En[R8]=En[L8]=!0;En[h8]=En[p8]=En[x8]=En[m8]=En[k8]=En[g8]=En[v8]=En[y8]=En[b8]=En[_8]=En[T8]=En[S8]=En[w8]=En[C8]=En[E8]=!1;function D8(e){return mi(e)&&Nb(e.length)&&!!En[Va(e)]}function Rb(e){return function(t){return e(t)}}var W2=typeof er=="object"&&er&&!er.nodeType&&er,xc=W2&&typeof tr=="object"&&tr&&!tr.nodeType&&tr,F8=xc&&xc.exports===W2,jg=F8&&L2.process,B8=function(){try{var e=xc&&xc.require&&xc.require("util").types;return e||jg&&jg.binding&&jg.binding("util")}catch{}}();const Wl=B8;var dw=Wl&&Wl.isTypedArray,V8=dw?Rb(dw):D8;const Lb=V8;var U8=Object.prototype,H8=U8.hasOwnProperty;function q2(e,t){var n=xs(e),s=!n&&ed(e),r=!n&&!s&&td(e),i=!n&&!s&&!r&&Lb(e),o=n||s||r||i,a=o?r8(e.length,String):[],l=a.length;for(var u in e)(t||H8.call(e,u))&&!(o&&(u=="length"||r&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ym(u,l)))&&a.push(u);return a}function G2(e,t){return function(n){return e(t(n))}}var z8=G2(Object.keys,Object);const j8=z8;var K8=Object.prototype,W8=K8.hasOwnProperty;function q8(e){if(!Mb(e))return j8(e);var t=[];for(var n in Object(e))W8.call(e,n)&&n!="constructor"&&t.push(n);return t}function Hd(e){return ku(e)?q2(e):q8(e)}function G8(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Y8=Object.prototype,X8=Y8.hasOwnProperty;function Q8(e){if(!ks(e))return G8(e);var t=Mb(e),n=[];for(var s in e)s=="constructor"&&(t||!X8.call(e,s))||n.push(s);return n}function zd(e){return ku(e)?q2(e,!0):Q8(e)}var J8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z8=/^\w*$/;function Db(e,t){if(xs(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vm(e)?!0:Z8.test(e)||!J8.test(e)||t!=null&&e in Object(t)}var e6=Ha(Object,"create");const nd=e6;function t6(){this.__data__=nd?nd(null):{},this.size=0}function n6(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var s6="__lodash_hash_undefined__",r6=Object.prototype,i6=r6.hasOwnProperty;function o6(e){var t=this.__data__;if(nd){var n=t[e];return n===s6?void 0:n}return i6.call(t,e)?t[e]:void 0}var a6=Object.prototype,l6=a6.hasOwnProperty;function u6(e){var t=this.__data__;return nd?t[e]!==void 0:l6.call(t,e)}var c6="__lodash_hash_undefined__";function d6(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nd&&t===void 0?c6:t,this}function Na(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}Na.prototype.clear=t6;Na.prototype.delete=n6;Na.prototype.get=o6;Na.prototype.has=u6;Na.prototype.set=d6;function f6(){this.__data__=[],this.size=0}function bm(e,t){for(var n=e.length;n--;)if(Vd(e[n][0],t))return n;return-1}var h6=Array.prototype,p6=h6.splice;function m6(e){var t=this.__data__,n=bm(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():p6.call(t,n,1),--this.size,!0}function g6(e){var t=this.__data__,n=bm(t,e);return n<0?void 0:t[n][1]}function v6(e){return bm(this.__data__,e)>-1}function y6(e,t){var n=this.__data__,s=bm(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function no(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}no.prototype.clear=f6;no.prototype.delete=m6;no.prototype.get=g6;no.prototype.has=v6;no.prototype.set=y6;var b6=Ha(Kr,"Map");const sd=b6;function _6(){this.size=0,this.__data__={hash:new Na,map:new(sd||no),string:new Na}}function T6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _m(e,t){var n=e.__data__;return T6(t)?n[typeof t=="string"?"string":"hash"]:n.map}function S6(e){var t=_m(this,e).delete(e);return this.size-=t?1:0,t}function w6(e){return _m(this,e).get(e)}function C6(e){return _m(this,e).has(e)}function E6(e,t){var n=_m(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}function so(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}so.prototype.clear=_6;so.prototype.delete=S6;so.prototype.get=w6;so.prototype.has=C6;so.prototype.set=E6;var x6="Expected a function";function Tm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(x6);var n=function(){var s=arguments,r=t?t.apply(this,s):s[0],i=n.cache;if(i.has(r))return i.get(r);var o=e.apply(this,s);return n.cache=i.set(r,o)||i,o};return n.cache=new(Tm.Cache||so),n}Tm.Cache=so;var k6=500;function O6(e){var t=Tm(e,function(s){return n.size===k6&&n.clear(),s}),n=t.cache;return t}var A6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I6=/\\(\\)?/g,P6=O6(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(A6,function(n,s,r,i){t.push(r?i.replace(I6,"$1"):s||n)}),t});const $6=P6;function N6(e){return e==null?"":B2(e)}function Sm(e,t){return xs(e)?e:Db(e,t)?[e]:$6(N6(e))}var M6=1/0;function jd(e){if(typeof e=="string"||vm(e))return e;var t=e+"";return t=="0"&&1/e==-M6?"-0":t}function Fb(e,t){t=Sm(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[jd(t[n++])];return n&&n==s?e:void 0}function hn(e,t,n){var s=e==null?void 0:Fb(e,t);return s===void 0?n:s}function Bb(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}var fw=yr?yr.isConcatSpreadable:void 0;function R6(e){return xs(e)||ed(e)||!!(fw&&e&&e[fw])}function Kd(e,t,n,s,r){var i=-1,o=e.length;for(n||(n=R6),r||(r=[]);++i<o;){var a=e[i];t>0&&n(a)?t>1?Kd(a,t-1,n,s,r):Bb(r,a):s||(r[r.length]=a)}return r}function Y2(e){var t=e==null?0:e.length;return t?Kd(e,1):[]}function L6(e){return U2(H2(e,void 0,Y2),e+"")}var D6=G2(Object.getPrototypeOf,Object);const Vb=D6;var F6="[object Object]",B6=Function.prototype,V6=Object.prototype,X2=B6.toString,U6=V6.hasOwnProperty,H6=X2.call(Object);function z6(e){if(!mi(e)||Va(e)!=F6)return!1;var t=Vb(e);if(t===null)return!0;var n=U6.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&X2.call(n)==H6}function ql(){if(!arguments.length)return[];var e=arguments[0];return xs(e)?e:[e]}function j6(){this.__data__=new no,this.size=0}function K6(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function W6(e){return this.__data__.get(e)}function q6(e){return this.__data__.has(e)}var G6=200;function Y6(e,t){var n=this.__data__;if(n instanceof no){var s=n.__data__;if(!sd||s.length<G6-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new so(s)}return n.set(e,t),this.size=n.size,this}function Dr(e){var t=this.__data__=new no(e);this.size=t.size}Dr.prototype.clear=j6;Dr.prototype.delete=K6;Dr.prototype.get=W6;Dr.prototype.has=q6;Dr.prototype.set=Y6;function X6(e,t){return e&&Ud(t,Hd(t),e)}function Q6(e,t){return e&&Ud(t,zd(t),e)}var Q2=typeof er=="object"&&er&&!er.nodeType&&er,hw=Q2&&typeof tr=="object"&&tr&&!tr.nodeType&&tr,J6=hw&&hw.exports===Q2,pw=J6?Kr.Buffer:void 0,mw=pw?pw.allocUnsafe:void 0;function J2(e,t){if(t)return e.slice();var n=e.length,s=mw?mw(n):new e.constructor(n);return e.copy(s),s}function Z6(e,t){for(var n=-1,s=e==null?0:e.length,r=0,i=[];++n<s;){var o=e[n];t(o,n,e)&&(i[r++]=o)}return i}function Z2(){return[]}var e5=Object.prototype,t5=e5.propertyIsEnumerable,gw=Object.getOwnPropertySymbols,n5=gw?function(e){return e==null?[]:(e=Object(e),Z6(gw(e),function(t){return t5.call(e,t)}))}:Z2;const Ub=n5;function s5(e,t){return Ud(e,Ub(e),t)}var r5=Object.getOwnPropertySymbols,i5=r5?function(e){for(var t=[];e;)Bb(t,Ub(e)),e=Vb(e);return t}:Z2;const eO=i5;function o5(e,t){return Ud(e,eO(e),t)}function tO(e,t,n){var s=t(e);return xs(e)?s:Bb(s,n(e))}function o0(e){return tO(e,Hd,Ub)}function a5(e){return tO(e,zd,eO)}var l5=Ha(Kr,"DataView");const a0=l5;var u5=Ha(Kr,"Promise");const l0=u5;var c5=Ha(Kr,"Set");const Ol=c5;var vw="[object Map]",d5="[object Object]",yw="[object Promise]",bw="[object Set]",_w="[object WeakMap]",Tw="[object DataView]",f5=Ua(a0),h5=Ua(sd),p5=Ua(l0),m5=Ua(Ol),g5=Ua(i0),oa=Va;(a0&&oa(new a0(new ArrayBuffer(1)))!=Tw||sd&&oa(new sd)!=vw||l0&&oa(l0.resolve())!=yw||Ol&&oa(new Ol)!=bw||i0&&oa(new i0)!=_w)&&(oa=function(e){var t=Va(e),n=t==d5?e.constructor:void 0,s=n?Ua(n):"";if(s)switch(s){case f5:return Tw;case h5:return vw;case p5:return yw;case m5:return bw;case g5:return _w}return t});const rd=oa;var v5=Object.prototype,y5=v5.hasOwnProperty;function b5(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&y5.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _5=Kr.Uint8Array;const up=_5;function Hb(e){var t=new e.constructor(e.byteLength);return new up(t).set(new up(e)),t}function T5(e,t){var n=t?Hb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var S5=/\w*$/;function w5(e){var t=new e.constructor(e.source,S5.exec(e));return t.lastIndex=e.lastIndex,t}var Sw=yr?yr.prototype:void 0,ww=Sw?Sw.valueOf:void 0;function C5(e){return ww?Object(ww.call(e)):{}}function nO(e,t){var n=t?Hb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var E5="[object Boolean]",x5="[object Date]",k5="[object Map]",O5="[object Number]",A5="[object RegExp]",I5="[object Set]",P5="[object String]",$5="[object Symbol]",N5="[object ArrayBuffer]",M5="[object DataView]",R5="[object Float32Array]",L5="[object Float64Array]",D5="[object Int8Array]",F5="[object Int16Array]",B5="[object Int32Array]",V5="[object Uint8Array]",U5="[object Uint8ClampedArray]",H5="[object Uint16Array]",z5="[object Uint32Array]";function j5(e,t,n){var s=e.constructor;switch(t){case N5:return Hb(e);case E5:case x5:return new s(+e);case M5:return T5(e,n);case R5:case L5:case D5:case F5:case B5:case V5:case U5:case H5:case z5:return nO(e,n);case k5:return new s;case O5:case P5:return new s(e);case A5:return w5(e);case I5:return new s;case $5:return C5(e)}}function sO(e){return typeof e.constructor=="function"&&!Mb(e)?$B(Vb(e)):{}}var K5="[object Map]";function W5(e){return mi(e)&&rd(e)==K5}var Cw=Wl&&Wl.isMap,q5=Cw?Rb(Cw):W5;const G5=q5;var Y5="[object Set]";function X5(e){return mi(e)&&rd(e)==Y5}var Ew=Wl&&Wl.isSet,Q5=Ew?Rb(Ew):X5;const J5=Q5;var Z5=1,eV=2,tV=4,rO="[object Arguments]",nV="[object Array]",sV="[object Boolean]",rV="[object Date]",iV="[object Error]",iO="[object Function]",oV="[object GeneratorFunction]",aV="[object Map]",lV="[object Number]",oO="[object Object]",uV="[object RegExp]",cV="[object Set]",dV="[object String]",fV="[object Symbol]",hV="[object WeakMap]",pV="[object ArrayBuffer]",mV="[object DataView]",gV="[object Float32Array]",vV="[object Float64Array]",yV="[object Int8Array]",bV="[object Int16Array]",_V="[object Int32Array]",TV="[object Uint8Array]",SV="[object Uint8ClampedArray]",wV="[object Uint16Array]",CV="[object Uint32Array]",bn={};bn[rO]=bn[nV]=bn[pV]=bn[mV]=bn[sV]=bn[rV]=bn[gV]=bn[vV]=bn[yV]=bn[bV]=bn[_V]=bn[aV]=bn[lV]=bn[oO]=bn[uV]=bn[cV]=bn[dV]=bn[fV]=bn[TV]=bn[SV]=bn[wV]=bn[CV]=!0;bn[iV]=bn[iO]=bn[hV]=!1;function kc(e,t,n,s,r,i){var o,a=t&Z5,l=t&eV,u=t&tV;if(n&&(o=r?n(e,s,r,i):n(e)),o!==void 0)return o;if(!ks(e))return e;var d=xs(e);if(d){if(o=b5(e),!a)return V2(e,o)}else{var f=rd(e),h=f==iO||f==oV;if(td(e))return J2(e,a);if(f==oO||f==rO||h&&!r){if(o=l||h?{}:sO(e),!a)return l?o5(e,Q6(o,e)):s5(e,X6(o,e))}else{if(!bn[f])return r?e:{};o=j5(e,f,a)}}i||(i=new Dr);var p=i.get(e);if(p)return p;i.set(e,o),J5(e)?e.forEach(function(v){o.add(kc(v,t,n,v,e,i))}):G5(e)&&e.forEach(function(v,y){o.set(y,kc(v,t,n,y,e,i))});var g=u?l?a5:o0:l?zd:Hd,m=d?void 0:g(e);return jB(m||e,function(v,y){m&&(y=v,v=e[y]),$b(o,y,kc(v,t,n,y,e,i))}),o}var EV=4;function xw(e){return kc(e,EV)}var xV=1,kV=4;function zb(e){return kc(e,xV|kV)}var OV="__lodash_hash_undefined__";function AV(e){return this.__data__.set(e,OV),this}function IV(e){return this.__data__.has(e)}function id(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new so;++t<n;)this.add(e[t])}id.prototype.add=id.prototype.push=AV;id.prototype.has=IV;function PV(e,t){for(var n=-1,s=e==null?0:e.length;++n<s;)if(t(e[n],n,e))return!0;return!1}function aO(e,t){return e.has(t)}var $V=1,NV=2;function lO(e,t,n,s,r,i){var o=n&$V,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=n&NV?new id:void 0;for(i.set(e,t),i.set(t,e);++f<a;){var g=e[f],m=t[f];if(s)var v=o?s(m,g,f,t,e,i):s(g,m,f,e,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!PV(t,function(y,T){if(!aO(p,T)&&(g===y||r(g,y,n,s,i)))return p.push(T)})){h=!1;break}}else if(!(g===m||r(g,m,n,s,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function MV(e){var t=-1,n=Array(e.size);return e.forEach(function(s,r){n[++t]=[r,s]}),n}function jb(e){var t=-1,n=Array(e.size);return e.forEach(function(s){n[++t]=s}),n}var RV=1,LV=2,DV="[object Boolean]",FV="[object Date]",BV="[object Error]",VV="[object Map]",UV="[object Number]",HV="[object RegExp]",zV="[object Set]",jV="[object String]",KV="[object Symbol]",WV="[object ArrayBuffer]",qV="[object DataView]",kw=yr?yr.prototype:void 0,Kg=kw?kw.valueOf:void 0;function GV(e,t,n,s,r,i,o){switch(n){case qV:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case WV:return!(e.byteLength!=t.byteLength||!i(new up(e),new up(t)));case DV:case FV:case UV:return Vd(+e,+t);case BV:return e.name==t.name&&e.message==t.message;case HV:case jV:return e==t+"";case VV:var a=MV;case zV:var l=s&RV;if(a||(a=jb),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;s|=LV,o.set(e,t);var d=lO(a(e),a(t),s,r,i,o);return o.delete(e),d;case KV:if(Kg)return Kg.call(e)==Kg.call(t)}return!1}var YV=1,XV=Object.prototype,QV=XV.hasOwnProperty;function JV(e,t,n,s,r,i){var o=n&YV,a=o0(e),l=a.length,u=o0(t),d=u.length;if(l!=d&&!o)return!1;for(var f=l;f--;){var h=a[f];if(!(o?h in t:QV.call(t,h)))return!1}var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var m=!0;i.set(e,t),i.set(t,e);for(var v=o;++f<l;){h=a[f];var y=e[h],T=t[h];if(s)var _=o?s(T,y,h,t,e,i):s(y,T,h,e,t,i);if(!(_===void 0?y===T||r(y,T,n,s,i):_)){m=!1;break}v||(v=h=="constructor")}if(m&&!v){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(m=!1)}return i.delete(e),i.delete(t),m}var ZV=1,Ow="[object Arguments]",Aw="[object Array]",jf="[object Object]",eU=Object.prototype,Iw=eU.hasOwnProperty;function tU(e,t,n,s,r,i){var o=xs(e),a=xs(t),l=o?Aw:rd(e),u=a?Aw:rd(t);l=l==Ow?jf:l,u=u==Ow?jf:u;var d=l==jf,f=u==jf,h=l==u;if(h&&td(e)){if(!td(t))return!1;o=!0,d=!1}if(h&&!d)return i||(i=new Dr),o||Lb(e)?lO(e,t,n,s,r,i):GV(e,t,l,n,s,r,i);if(!(n&ZV)){var p=d&&Iw.call(e,"__wrapped__"),g=f&&Iw.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return i||(i=new Dr),r(m,v,n,s,i)}}return h?(i||(i=new Dr),JV(e,t,n,s,r,i)):!1}function wm(e,t,n,s,r){return e===t?!0:e==null||t==null||!mi(e)&&!mi(t)?e!==e&&t!==t:tU(e,t,n,s,wm,r)}var nU=1,sU=2;function rU(e,t,n,s){var r=n.length,i=r,o=!s;if(e==null)return!i;for(e=Object(e);r--;){var a=n[r];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){a=n[r];var l=a[0],u=e[l],d=a[1];if(o&&a[2]){if(u===void 0&&!(l in e))return!1}else{var f=new Dr;if(s)var h=s(u,d,l,e,t,f);if(!(h===void 0?wm(d,u,nU|sU,s,f):h))return!1}}return!0}function uO(e){return e===e&&!ks(e)}function iU(e){for(var t=Hd(e),n=t.length;n--;){var s=t[n],r=e[s];t[n]=[s,r,uO(r)]}return t}function cO(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function oU(e){var t=iU(e);return t.length==1&&t[0][2]?cO(t[0][0],t[0][1]):function(n){return n===e||rU(n,e,t)}}function aU(e,t){return e!=null&&t in Object(e)}function lU(e,t,n){t=Sm(t,e);for(var s=-1,r=t.length,i=!1;++s<r;){var o=jd(t[s]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++s!=r?i:(r=e==null?0:e.length,!!r&&Nb(r)&&ym(o,r)&&(xs(e)||ed(e)))}function dO(e,t){return e!=null&&lU(e,t,aU)}var uU=1,cU=2;function dU(e,t){return Db(e)&&uO(t)?cO(jd(e),t):function(n){var s=hn(n,e);return s===void 0&&s===t?dO(n,e):wm(t,s,uU|cU)}}function fU(e){return function(t){return t==null?void 0:t[e]}}function hU(e){return function(t){return Fb(t,e)}}function pU(e){return Db(e)?fU(jd(e)):hU(e)}function mU(e){return typeof e=="function"?e:e==null?Ab:typeof e=="object"?xs(e)?dU(e[0],e[1]):oU(e):pU(e)}function gU(e){return function(t,n,s){for(var r=-1,i=Object(t),o=s(t),a=o.length;a--;){var l=o[e?a:++r];if(n(i[l],l,i)===!1)break}return t}}var vU=gU();const fO=vU;function yU(e,t){return e&&fO(e,t,Hd)}function bU(e,t){return function(n,s){if(n==null)return n;if(!ku(n))return e(n,s);for(var r=n.length,i=t?r:-1,o=Object(n);(t?i--:++i<r)&&s(o[i],i,o)!==!1;);return n}}var _U=bU(yU);const TU=_U;var SU=function(){return Kr.Date.now()};const Wg=SU;var wU="Expected a function",CU=Math.max,EU=Math.min;function Os(e,t,n){var s,r,i,o,a,l,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(wU);t=rw(t)||0,ks(n)&&(d=!!n.leading,f="maxWait"in n,i=f?CU(rw(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(A){var M=s,N=r;return s=r=void 0,u=A,o=e.apply(N,M),o}function g(A){return u=A,a=setTimeout(y,t),d?p(A):o}function m(A){var M=A-l,N=A-u,L=t-M;return f?EU(L,i-N):L}function v(A){var M=A-l,N=A-u;return l===void 0||M>=t||M<0||f&&N>=i}function y(){var A=Wg();if(v(A))return T(A);a=setTimeout(y,m(A))}function T(A){return a=void 0,h&&s?p(A):(s=r=void 0,o)}function _(){a!==void 0&&clearTimeout(a),u=0,s=l=r=a=void 0}function S(){return a===void 0?o:T(Wg())}function w(){var A=Wg(),M=v(A);if(s=arguments,r=this,l=A,M){if(a===void 0)return g(l);if(f)return clearTimeout(a),a=setTimeout(y,t),p(l)}return a===void 0&&(a=setTimeout(y,t)),o}return w.cancel=_,w.flush=S,w}function u0(e,t,n){(n!==void 0&&!Vd(e[t],n)||n===void 0&&!(t in e))&&Pb(e,t,n)}function hO(e){return mi(e)&&ku(e)}function c0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function xU(e){return Ud(e,zd(e))}function kU(e,t,n,s,r,i,o){var a=c0(e,n),l=c0(t,n),u=o.get(l);if(u){u0(e,n,u);return}var d=i?i(a,l,n+"",e,t,o):void 0,f=d===void 0;if(f){var h=xs(l),p=!h&&td(l),g=!h&&!p&&Lb(l);d=l,h||p||g?xs(a)?d=a:hO(a)?d=V2(a):p?(f=!1,d=J2(l,!0)):g?(f=!1,d=nO(l,!0)):d=[]:z6(l)||ed(l)?(d=a,ed(a)?d=xU(a):(!ks(a)||Ib(a))&&(d=sO(l))):f=!1}f&&(o.set(l,d),r(d,l,s,i,o),o.delete(l)),u0(e,n,d)}function pO(e,t,n,s,r){e!==t&&fO(t,function(i,o){if(r||(r=new Dr),ks(i))kU(e,t,o,n,pO,s,r);else{var a=s?s(c0(e,o),i,o+"",e,t,r):void 0;a===void 0&&(a=i),u0(e,o,a)}},zd)}function OU(e,t,n){for(var s=-1,r=e==null?0:e.length;++s<r;)if(n(t,e[s]))return!0;return!1}function AU(e,t){var n=-1,s=ku(e)?Array(e.length):[];return TU(e,function(r,i,o){s[++n]=t(r,i,o)}),s}function IU(e,t){var n=xs(e)?F2:AU;return n(e,mU(t))}function PU(e,t){return Kd(IU(e,t),1)}var $U=1/0;function NU(e){var t=e==null?0:e.length;return t?Kd(e,$U):[]}function cp(e){for(var t=-1,n=e==null?0:e.length,s={};++t<n;){var r=e[t];s[r[0]]=r[1]}return s}function sr(e,t){return wm(e,t)}function Kn(e){return e==null}function MU(e){return e===void 0}var RU=n8(function(e,t,n){pO(e,t,n)});const mO=RU;function gO(e,t,n,s){if(!ks(e))return e;t=Sm(t,e);for(var r=-1,i=t.length,o=i-1,a=e;a!=null&&++r<i;){var l=jd(t[r]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=o){var d=a[l];u=s?s(d,l,a):void 0,u===void 0&&(u=ks(d)?d:ym(t[r+1])?[]:{})}$b(a,l,u),a=a[l]}return e}function LU(e,t,n){for(var s=-1,r=t.length,i={};++s<r;){var o=t[s],a=Fb(e,o);n(a,o)&&gO(i,Sm(o,e),a)}return i}function DU(e,t){return LU(e,t,function(n,s){return dO(e,s)})}var FU=L6(function(e,t){return e==null?{}:DU(e,t)});const Bi=FU;function BU(e,t,n){return e==null?e:gO(e,t,n)}var VU="Expected a function";function Ea(e,t,n){var s=!0,r=!0;if(typeof e!="function")throw new TypeError(VU);return ks(n)&&(s="leading"in n?!!n.leading:s,r="trailing"in n?!!n.trailing:r),Os(e,t,{leading:s,maxWait:t,trailing:r})}var UU=1/0,HU=Ol&&1/jb(new Ol([,-0]))[1]==UU?function(e){return new Ol(e)}:MB;const zU=HU;var jU=200;function KU(e,t,n){var s=-1,r=YB,i=e.length,o=!0,a=[],l=a;if(n)o=!1,r=OU;else if(i>=jU){var u=t?null:zU(e);if(u)return jb(u);o=!1,r=aO,l=new id}else l=t?[]:a;e:for(;++s<i;){var d=e[s],f=t?t(d):d;if(d=n||d!==0?d:0,o&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),a.push(d)}else r(l,f,n)||(l!==a&&l.push(f),a.push(d))}return a}var WU=z2(function(e){return KU(Kd(e,1,hO,!0))});const qg=WU,Qn=e=>e===void 0,fr=e=>!e&&e!==0||tt(e)&&e.length===0||Pt(e)&&!Object.keys(e).length,Ur=e=>typeof Element>"u"?!1:e instanceof Element,qU=e=>Kn(e),GU=e=>mt(e)?!Number.isNaN(Number(e)):!1,vO=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ni=e=>Dd(e),od=e=>Object.keys(e),YU=e=>Object.entries(e),Ch=(e,t,n)=>({get value(){return hn(e,t,n)},set value(s){BU(e,t,s)}});class XU extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function zn(e,t){throw new XU(`[${e}] ${t}`)}const yO=(e="")=>e.split(" ").filter(t=>!!t.trim()),Fr=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},si=(e,t)=>{!e||!t.trim()||e.classList.add(...yO(t))},Fs=(e,t)=>{!e||!t.trim()||e.classList.remove(...yO(t))},Ri=(e,t)=>{var n;if(!Ht||!e||!t)return"";let s=vr(t);s==="float"&&(s="cssFloat");try{const r=e.style[s];if(r)return r;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[s]:""}catch{return e.style[s]}};function An(e,t="px"){if(!e)return"";if(ht(e)||GU(e))return`${e}${t}`;if(mt(e))return e}const QU=(e,t)=>{if(!Ht)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],s=Ri(e,n);return["scroll","auto","overlay"].some(r=>s.includes(r))},Kb=(e,t)=>{if(!Ht)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(QU(n,t))return n;n=n.parentNode}return n};let Kf;const bO=e=>{var t;if(!Ht)return 0;if(Kf!==void 0)return Kf;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 s=n.offsetWidth;n.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",n.appendChild(r);const i=r.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Kf=s-i,Kf};function _O(e,t){if(!Ht)return;if(!t){e.scrollTop=0;return}const n=[];let s=t.offsetParent;for(;s!==null&&e!==s&&e.contains(s);)n.push(s),s=s.offsetParent;const r=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=r+t.offsetHeight,o=e.scrollTop,a=o+e.clientHeight;r<o?e.scrollTop=r:i>a&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var Kt=(e,t)=>{let n=e.__vccOpts||e;for(let[s,r]of t)n[s]=r;return n},JU={name:"ArrowDown"},ZU={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},eH=V("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),tH=[eH];function nH(e,t,n,s,r,i){return x(),z("svg",ZU,tH)}var Uo=Kt(JU,[["render",nH],["__file","arrow-down.vue"]]),sH={name:"ArrowLeftBold"},rH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iH=V("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1),oH=[iH];function aH(e,t,n,s,r,i){return x(),z("svg",rH,oH)}var TO=Kt(sH,[["render",aH],["__file","arrow-left-bold.vue"]]),lH={name:"ArrowLeft"},uH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cH=V("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),dH=[cH];function fH(e,t,n,s,r,i){return x(),z("svg",uH,dH)}var Po=Kt(lH,[["render",fH],["__file","arrow-left.vue"]]),hH={name:"ArrowRightBold"},pH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mH=V("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"},null,-1),gH=[mH];function vH(e,t,n,s,r,i){return x(),z("svg",pH,gH)}var SO=Kt(hH,[["render",vH],["__file","arrow-right-bold.vue"]]),yH={name:"ArrowRight"},bH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_H=V("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),TH=[_H];function SH(e,t,n,s,r,i){return x(),z("svg",bH,TH)}var ws=Kt(yH,[["render",SH],["__file","arrow-right.vue"]]),wH={name:"ArrowUp"},CH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EH=V("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),xH=[EH];function kH(e,t,n,s,r,i){return x(),z("svg",CH,xH)}var Wd=Kt(wH,[["render",kH],["__file","arrow-up.vue"]]),OH={name:"Back"},AH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},IH=V("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),PH=V("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),$H=[IH,PH];function NH(e,t,n,s,r,i){return x(),z("svg",AH,$H)}var MH=Kt(OH,[["render",NH],["__file","back.vue"]]),RH={name:"Calendar"},LH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DH=V("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),FH=[DH];function BH(e,t,n,s,r,i){return x(),z("svg",LH,FH)}var VH=Kt(RH,[["render",BH],["__file","calendar.vue"]]),UH={name:"CaretRight"},HH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zH=V("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),jH=[zH];function KH(e,t,n,s,r,i){return x(),z("svg",HH,jH)}var Cm=Kt(UH,[["render",KH],["__file","caret-right.vue"]]),WH={name:"CaretTop"},qH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},GH=V("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),YH=[GH];function XH(e,t,n,s,r,i){return x(),z("svg",qH,YH)}var QH=Kt(WH,[["render",XH],["__file","caret-top.vue"]]),JH={name:"Check"},ZH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ez=V("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),tz=[ez];function nz(e,t,n,s,r,i){return x(),z("svg",ZH,tz)}var qd=Kt(JH,[["render",nz],["__file","check.vue"]]),sz={name:"CircleCheckFilled"},rz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iz=V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),oz=[iz];function az(e,t,n,s,r,i){return x(),z("svg",rz,oz)}var lz=Kt(sz,[["render",az],["__file","circle-check-filled.vue"]]),uz={name:"CircleCheck"},cz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dz=V("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),fz=V("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),hz=[dz,fz];function pz(e,t,n,s,r,i){return x(),z("svg",cz,hz)}var Wb=Kt(uz,[["render",pz],["__file","circle-check.vue"]]),mz={name:"CircleCloseFilled"},gz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vz=V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),yz=[vz];function bz(e,t,n,s,r,i){return x(),z("svg",gz,yz)}var qb=Kt(mz,[["render",bz],["__file","circle-close-filled.vue"]]),_z={name:"CircleClose"},Tz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Sz=V("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),wz=V("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Cz=[Sz,wz];function Ez(e,t,n,s,r,i){return x(),z("svg",Tz,Cz)}var Ho=Kt(_z,[["render",Ez],["__file","circle-close.vue"]]),xz={name:"Clock"},kz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Oz=V("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Az=V("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),Iz=V("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),Pz=[Oz,Az,Iz];function $z(e,t,n,s,r,i){return x(),z("svg",kz,Pz)}var wO=Kt(xz,[["render",$z],["__file","clock.vue"]]),Nz={name:"Close"},Mz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rz=V("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Lz=[Rz];function Dz(e,t,n,s,r,i){return x(),z("svg",Mz,Lz)}var Hr=Kt(Nz,[["render",Dz],["__file","close.vue"]]),Fz={name:"DArrowLeft"},Bz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vz=V("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),Uz=[Vz];function Hz(e,t,n,s,r,i){return x(),z("svg",Bz,Uz)}var Gl=Kt(Fz,[["render",Hz],["__file","d-arrow-left.vue"]]),zz={name:"DArrowRight"},jz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kz=V("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),Wz=[Kz];function qz(e,t,n,s,r,i){return x(),z("svg",jz,Wz)}var Yl=Kt(zz,[["render",qz],["__file","d-arrow-right.vue"]]),Gz={name:"Delete"},Yz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xz=V("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Qz=[Xz];function Jz(e,t,n,s,r,i){return x(),z("svg",Yz,Qz)}var Zz=Kt(Gz,[["render",Jz],["__file","delete.vue"]]),ej={name:"Document"},tj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nj=V("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),sj=[nj];function rj(e,t,n,s,r,i){return x(),z("svg",tj,sj)}var ij=Kt(ej,[["render",rj],["__file","document.vue"]]),oj={name:"FullScreen"},aj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lj=V("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),uj=[lj];function cj(e,t,n,s,r,i){return x(),z("svg",aj,uj)}var dj=Kt(oj,[["render",cj],["__file","full-screen.vue"]]),fj={name:"Hide"},hj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pj=V("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),mj=V("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),gj=[pj,mj];function vj(e,t,n,s,r,i){return x(),z("svg",hj,gj)}var yj=Kt(fj,[["render",vj],["__file","hide.vue"]]),bj={name:"InfoFilled"},_j={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Tj=V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),Sj=[Tj];function wj(e,t,n,s,r,i){return x(),z("svg",_j,Sj)}var Gb=Kt(bj,[["render",wj],["__file","info-filled.vue"]]),Cj={name:"Loading"},Ej={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xj=V("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),kj=[xj];function Oj(e,t,n,s,r,i){return x(),z("svg",Ej,kj)}var zo=Kt(Cj,[["render",Oj],["__file","loading.vue"]]),Aj={name:"Minus"},Ij={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pj=V("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),$j=[Pj];function Nj(e,t,n,s,r,i){return x(),z("svg",Ij,$j)}var Mj=Kt(Aj,[["render",Nj],["__file","minus.vue"]]),Rj={name:"Moon"},Lj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dj=V("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z"},null,-1),Fj=[Dj];function Bj(e,t,n,s,r,i){return x(),z("svg",Lj,Fj)}var Vj=Kt(Rj,[["render",Bj],["__file","moon.vue"]]),Uj={name:"MoreFilled"},Hj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zj=V("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),jj=[zj];function Kj(e,t,n,s,r,i){return x(),z("svg",Hj,jj)}var d0=Kt(Uj,[["render",Kj],["__file","more-filled.vue"]]),Wj={name:"More"},qj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gj=V("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),Yj=[Gj];function Xj(e,t,n,s,r,i){return x(),z("svg",qj,Yj)}var Qj=Kt(Wj,[["render",Xj],["__file","more.vue"]]),Jj={name:"PictureFilled"},Zj={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},e9=V("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),t9=[e9];function n9(e,t,n,s,r,i){return x(),z("svg",Zj,t9)}var s9=Kt(Jj,[["render",n9],["__file","picture-filled.vue"]]),r9={name:"Plus"},i9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},o9=V("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),a9=[o9];function l9(e,t,n,s,r,i){return x(),z("svg",i9,a9)}var CO=Kt(r9,[["render",l9],["__file","plus.vue"]]),u9={name:"Promotion"},c9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},d9=V("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"},null,-1),f9=[d9];function h9(e,t,n,s,r,i){return x(),z("svg",c9,f9)}var EO=Kt(u9,[["render",h9],["__file","promotion.vue"]]),p9={name:"QuestionFilled"},m9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},g9=V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),v9=[g9];function y9(e,t,n,s,r,i){return x(),z("svg",m9,v9)}var b9=Kt(p9,[["render",y9],["__file","question-filled.vue"]]),_9={name:"RefreshLeft"},T9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},S9=V("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),w9=[S9];function C9(e,t,n,s,r,i){return x(),z("svg",T9,w9)}var E9=Kt(_9,[["render",C9],["__file","refresh-left.vue"]]),x9={name:"RefreshRight"},k9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},O9=V("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),A9=[O9];function I9(e,t,n,s,r,i){return x(),z("svg",k9,A9)}var P9=Kt(x9,[["render",I9],["__file","refresh-right.vue"]]),$9={name:"ScaleToOriginal"},N9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},M9=V("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),R9=[M9];function L9(e,t,n,s,r,i){return x(),z("svg",N9,R9)}var D9=Kt($9,[["render",L9],["__file","scale-to-original.vue"]]),F9={name:"Search"},B9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},V9=V("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),U9=[V9];function H9(e,t,n,s,r,i){return x(),z("svg",B9,U9)}var dp=Kt(F9,[["render",H9],["__file","search.vue"]]),z9={name:"SortDown"},j9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},K9=V("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),W9=[K9];function q9(e,t,n,s,r,i){return x(),z("svg",j9,W9)}var G9=Kt(z9,[["render",q9],["__file","sort-down.vue"]]),Y9={name:"SortUp"},X9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Q9=V("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),J9=[Q9];function Z9(e,t,n,s,r,i){return x(),z("svg",X9,J9)}var eK=Kt(Y9,[["render",Z9],["__file","sort-up.vue"]]),tK={name:"StarFilled"},nK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sK=V("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),rK=[sK];function iK(e,t,n,s,r,i){return x(),z("svg",nK,rK)}var Wf=Kt(tK,[["render",iK],["__file","star-filled.vue"]]),oK={name:"Star"},aK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lK=V("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),uK=[lK];function cK(e,t,n,s,r,i){return x(),z("svg",aK,uK)}var dK=Kt(oK,[["render",cK],["__file","star.vue"]]),fK={name:"SuccessFilled"},hK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pK=V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),mK=[pK];function gK(e,t,n,s,r,i){return x(),z("svg",hK,mK)}var xO=Kt(fK,[["render",gK],["__file","success-filled.vue"]]),vK={name:"Sunny"},yK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bK=V("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"},null,-1),_K=[bK];function TK(e,t,n,s,r,i){return x(),z("svg",yK,_K)}var SK=Kt(vK,[["render",TK],["__file","sunny.vue"]]),wK={name:"View"},CK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EK=V("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),xK=[EK];function kK(e,t,n,s,r,i){return x(),z("svg",CK,xK)}var OK=Kt(wK,[["render",kK],["__file","view.vue"]]),AK={name:"WarningFilled"},IK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PK=V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),$K=[PK];function NK(e,t,n,s,r,i){return x(),z("svg",IK,$K)}var Em=Kt(AK,[["render",NK],["__file","warning-filled.vue"]]),MK={name:"ZoomIn"},RK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LK=V("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),DK=[LK];function FK(e,t,n,s,r,i){return x(),z("svg",RK,DK)}var kO=Kt(MK,[["render",FK],["__file","zoom-in.vue"]]),BK={name:"ZoomOut"},VK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UK=V("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),HK=[UK];function zK(e,t,n,s,r,i){return x(),z("svg",VK,HK)}var jK=Kt(BK,[["render",zK],["__file","zoom-out.vue"]]);const OO="__epPropKey",me=e=>e,KK=e=>Pt(e)&&!!e[OO],Wr=(e,t)=>{if(!Pt(e)||KK(e))return e;const{values:n,required:s,default:r,type:i,validator:o}=e,l={type:i,required:!!s,validator:n||o?u=>{let d=!1,f=[];if(n&&(f=Array.from(n),Ft(e,"default")&&f.push(r),d||(d=f.includes(u))),o&&(d||(d=o(u))),!d&&f.length>0){const h=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");I4(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[OO]:!0};return Ft(e,"default")&&(l.default=r),l},ze=e=>cp(Object.entries(e).map(([t,n])=>[t,Wr(n,t)])),on=me([String,Object,Function]),AO={Close:Hr},Yb={Close:Hr,SuccessFilled:xO,InfoFilled:Gb,WarningFilled:Em,CircleCloseFilled:qb},$o={success:xO,warning:Em,error:qb,info:Gb},IO={validating:zo,success:Wb,error:Ho},Ot=(e,t)=>{if(e.install=n=>{for(const s of[e,...Object.values(t??{})])n.component(s.name,s)},t)for(const[n,s]of Object.entries(t))e[n]=s;return e},PO=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),WK=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Cn=e=>(e.install=Zt,e),xm=(...e)=>t=>{e.forEach(n=>{pt(n)?n(t):n.value=t})},at={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"},qK=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],Gg=["sun","mon","tue","wed","thu","fri","sat"],It="update:modelValue",an="change",Cs="input",Pw=Symbol("INSTALLED_KEY"),Ci=["","default","small","large"],GK={large:40,default:32,small:24},YK=e=>GK[e||"default"],km=e=>["",...Ci].includes(e);var dr=(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))(dr||{});function f0(e){return gn(e)&&e.type===et}function XK(e){return gn(e)&&e.type===Ss}function QK(e){return gn(e)&&!f0(e)&&!XK(e)}const JK=e=>{if(!gn(e))return{};const t=e.props||{},n=(gn(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach(r=>{Ft(n[r],"default")&&(s[r]=n[r].default)}),Object.keys(t).forEach(r=>{s[vr(r)]=t[r]}),s},ZK=e=>{if(!tt(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Al=e=>{const t=tt(e)?e:[e],n=[];return t.forEach(s=>{var r;tt(s)?n.push(...Al(s)):gn(s)&&tt(s.children)?n.push(...Al(s.children)):(n.push(s),gn(s)&&((r=s.component)!=null&&r.subTree)&&n.push(...Al(s.component.subTree)))}),n},$w=e=>[...new Set(e)],Vi=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],$O=()=>Ht&&/firefox/i.test(window.navigator.userAgent),Om=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),ad=e=>Ht?window.requestAnimationFrame(e):setTimeout(e,16),Am=e=>Ht?window.cancelAnimationFrame(e):clearTimeout(e),Im=()=>Math.floor(Math.random()*1e4),pn=e=>e,eW=["class","style"],tW=/^on[A-Z]/,Xb=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,s=E(()=>((n==null?void 0:n.value)||[]).concat(eW)),r=At();return E(r?()=>{var i;return cp(Object.entries((i=r.proxy)==null?void 0:i.$attrs).filter(([o])=>!s.value.includes(o)&&!(t&&tW.test(o))))}:()=>({}))},gi=({from:e,replacement:t,scope:n,version:s,ref:r,type:i="API"},o)=>{ke(()=>c(o),a=>{},{immediate:!0})},NO=(e,t,n)=>{let s={offsetX:0,offsetY:0};const r=a=>{const l=a.clientX,u=a.clientY,{offsetX:d,offsetY:f}=s,h=e.value.getBoundingClientRect(),p=h.left,g=h.top,m=h.width,v=h.height,y=document.documentElement.clientWidth,T=document.documentElement.clientHeight,_=-p+d,S=-g+f,w=y-p-m+d,A=T-g-v+f,M=L=>{const F=Math.min(Math.max(d+L.clientX-l,_),w),W=Math.min(Math.max(f+L.clientY-u,S),A);s={offsetX:F,offsetY:W},e.value.style.transform=`translate(${An(F)}, ${An(W)})`},N=()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",N)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",N)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",r)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",r)};Tt(()=>{nr(()=>{n.value?i():o()})}),ln(()=>{o()})},nW=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var sW={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 rW=e=>(t,n)=>iW(t,n,c(e)),iW=(e,t,n)=>hn(n,e,e).replace(/\{(\w+)\}/g,(s,r)=>{var i;return`${(i=t==null?void 0:t[r])!=null?i:`{${r}}`}`}),oW=e=>{const t=E(()=>c(e).name),n=rn(e)?e:B(e);return{lang:t,locale:n,t:rW(e)}},MO=Symbol("localeContextKey"),qt=e=>{const t=e||Qe(MO,B());return oW(E(()=>t.value||sW))},fp="el",aW="is-",na=(e,t,n,s,r)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),s&&(i+=`__${s}`),r&&(i+=`--${r}`),i},RO=Symbol("namespaceContextKey"),Qb=e=>{const t=e||Qe(RO,B(fp));return E(()=>c(t)||fp)},Ne=(e,t)=>{const n=Qb(t);return{namespace:n,b:(m="")=>na(n.value,e,m,"",""),e:m=>m?na(n.value,e,"",m,""):"",m:m=>m?na(n.value,e,"","",m):"",be:(m,v)=>m&&v?na(n.value,e,m,v,""):"",em:(m,v)=>m&&v?na(n.value,e,"",m,v):"",bm:(m,v)=>m&&v?na(n.value,e,m,"",v):"",bem:(m,v,y)=>m&&v&&y?na(n.value,e,m,v,y):"",is:(m,...v)=>{const y=v.length>=1?v[0]:!0;return m&&y?`${aW}${m}`:""},cssVar:m=>{const v={};for(const y in m)m[y]&&(v[`--${n.value}-${y}`]=m[y]);return v},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const v={};for(const y in m)m[y]&&(v[`--${n.value}-${e}-${y}`]=m[y]);return v},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},LO=(e,t={})=>{rn(e)||zn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ne("popup"),s=jk(()=>n.bm("parent","hidden"));if(!Ht||Fr(document.body,s.value))return;let r=0,i=!1,o="0";const a=()=>{setTimeout(()=>{Fs(document==null?void 0:document.body,s.value),i&&document&&(document.body.style.width=o)},200)};ke(e,l=>{if(!l){a();return}i=!Fr(document.body,s.value),i&&(o=document.body.style.width),r=bO(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=Ri(document.body,"overflowY");r>0&&(u||d==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),si(document.body,s.value)}),kk(()=>a())},lW=Wr({type:me(Boolean),default:null}),uW=Wr({type:me(Function)}),DO=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,s=[t],r={[e]:lW,[n]:uW};return{useModelToggle:({indicator:o,toggleReason:a,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:d,onHide:f})=>{const h=At(),{emit:p}=h,g=h.props,m=E(()=>pt(g[n])),v=E(()=>g[e]===null),y=M=>{o.value!==!0&&(o.value=!0,a&&(a.value=M),pt(d)&&d(M))},T=M=>{o.value!==!1&&(o.value=!1,a&&(a.value=M),pt(f)&&f(M))},_=M=>{if(g.disabled===!0||pt(u)&&!u())return;const N=m.value&&Ht;N&&p(t,!0),(v.value||!N)&&y(M)},S=M=>{if(g.disabled===!0||!Ht)return;const N=m.value&&Ht;N&&p(t,!1),(v.value||!N)&&T(M)},w=M=>{Dn(M)&&(g.disabled&&M?m.value&&p(t,!1):o.value!==M&&(M?y():T()))},A=()=>{o.value?S():_()};return ke(()=>g[e],w),l&&h.appContext.config.globalProperties.$route!==void 0&&ke(()=>({...h.proxy.$route}),()=>{l.value&&o.value&&S()}),Tt(()=>{w(g[e])}),{hide:S,show:_,toggle:A,hasUpdateHandler:m}},useModelToggleProps:r,useModelToggleEmits:s}};DO("modelValue");const FO=e=>{const t=At();return E(()=>{var n,s;return(s=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:s[e]})};var Bs="top",br="bottom",_r="right",Vs="left",Jb="auto",Gd=[Bs,br,_r,Vs],Xl="start",ld="end",cW="clippingParents",BO="viewport",ec="popper",dW="reference",Nw=Gd.reduce(function(e,t){return e.concat([t+"-"+Xl,t+"-"+ld])},[]),za=[].concat(Gd,[Jb]).reduce(function(e,t){return e.concat([t,t+"-"+Xl,t+"-"+ld])},[]),fW="beforeRead",hW="read",pW="afterRead",mW="beforeMain",gW="main",vW="afterMain",yW="beforeWrite",bW="write",_W="afterWrite",TW=[fW,hW,pW,mW,gW,vW,yW,bW,_W];function vi(e){return e?(e.nodeName||"").toLowerCase():null}function qr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ql(e){var t=qr(e).Element;return e instanceof t||e instanceof Element}function mr(e){var t=qr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zb(e){if(typeof ShadowRoot>"u")return!1;var t=qr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!mr(i)||!vi(i)||(Object.assign(i.style,s),Object.keys(r).forEach(function(o){var a=r[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function wW(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(s){var r=t.elements[s],i=t.attributes[s]||{},o=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),a=o.reduce(function(l,u){return l[u]="",l},{});!mr(r)||!vi(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}var VO={name:"applyStyles",enabled:!0,phase:"write",fn:SW,effect:wW,requires:["computeStyles"]};function ui(e){return e.split("-")[0]}var xa=Math.max,hp=Math.min,Jl=Math.round;function Zl(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),s=1,r=1;if(mr(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(s=Jl(n.width)/o||1),i>0&&(r=Jl(n.height)/i||1)}return{width:n.width/s,height:n.height/r,top:n.top/r,right:n.right/s,bottom:n.bottom/r,left:n.left/s,x:n.left/s,y:n.top/r}}function e_(e){var t=Zl(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function UO(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zb(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function qi(e){return qr(e).getComputedStyle(e)}function CW(e){return["table","td","th"].indexOf(vi(e))>=0}function jo(e){return((Ql(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pm(e){return vi(e)==="html"?e:e.assignedSlot||e.parentNode||(Zb(e)?e.host:null)||jo(e)}function Mw(e){return!mr(e)||qi(e).position==="fixed"?null:e.offsetParent}function EW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&mr(e)){var s=qi(e);if(s.position==="fixed")return null}var r=Pm(e);for(Zb(r)&&(r=r.host);mr(r)&&["html","body"].indexOf(vi(r))<0;){var i=qi(r);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 r;r=r.parentNode}return null}function Yd(e){for(var t=qr(e),n=Mw(e);n&&CW(n)&&qi(n).position==="static";)n=Mw(n);return n&&(vi(n)==="html"||vi(n)==="body"&&qi(n).position==="static")?t:n||EW(e)||t}function t_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oc(e,t,n){return xa(e,hp(t,n))}function xW(e,t,n){var s=Oc(e,t,n);return s>n?n:s}function HO(){return{top:0,right:0,bottom:0,left:0}}function zO(e){return Object.assign({},HO(),e)}function jO(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var kW=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,zO(typeof e!="number"?e:jO(e,Gd))};function OW(e){var t,n=e.state,s=e.name,r=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=ui(n.placement),l=t_(a),u=[Vs,_r].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!o)){var f=kW(r.padding,n),h=e_(i),p=l==="y"?Bs:Vs,g=l==="y"?br:_r,m=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],v=o[l]-n.rects.reference[l],y=Yd(i),T=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,_=m/2-v/2,S=f[p],w=T-h[d]-f[g],A=T/2-h[d]/2+_,M=Oc(S,A,w),N=l;n.modifiersData[s]=(t={},t[N]=M,t.centerOffset=M-A,t)}}function AW(e){var t=e.state,n=e.options,s=n.element,r=s===void 0?"[data-popper-arrow]":s;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!UO(t.elements.popper,r)||(t.elements.arrow=r))}var IW={name:"arrow",enabled:!0,phase:"main",fn:OW,effect:AW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function eu(e){return e.split("-")[1]}var PW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $W(e){var t=e.x,n=e.y,s=window,r=s.devicePixelRatio||1;return{x:Jl(t*r)/r||0,y:Jl(n*r)/r||0}}function Rw(e){var t,n=e.popper,s=e.popperRect,r=e.placement,i=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=o.x,p=h===void 0?0:h,g=o.y,m=g===void 0?0:g,v=typeof d=="function"?d({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var y=o.hasOwnProperty("x"),T=o.hasOwnProperty("y"),_=Vs,S=Bs,w=window;if(u){var A=Yd(n),M="clientHeight",N="clientWidth";if(A===qr(n)&&(A=jo(n),qi(A).position!=="static"&&a==="absolute"&&(M="scrollHeight",N="scrollWidth")),A=A,r===Bs||(r===Vs||r===_r)&&i===ld){S=br;var L=f&&A===w&&w.visualViewport?w.visualViewport.height:A[M];m-=L-s.height,m*=l?1:-1}if(r===Vs||(r===Bs||r===br)&&i===ld){_=_r;var F=f&&A===w&&w.visualViewport?w.visualViewport.width:A[N];p-=F-s.width,p*=l?1:-1}}var W=Object.assign({position:a},u&&PW),j=d===!0?$W({x:p,y:m}):{x:p,y:m};if(p=j.x,m=j.y,l){var R;return Object.assign({},W,(R={},R[S]=T?"0":"",R[_]=y?"0":"",R.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",R))}return Object.assign({},W,(t={},t[S]=T?m+"px":"",t[_]=y?p+"px":"",t.transform="",t))}function NW(e){var t=e.state,n=e.options,s=n.gpuAcceleration,r=s===void 0?!0:s,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:ui(t.placement),variation:eu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rw(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,Rw(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 KO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:NW,data:{}},qf={passive:!0};function MW(e){var t=e.state,n=e.instance,s=e.options,r=s.scroll,i=r===void 0?!0:r,o=s.resize,a=o===void 0?!0:o,l=qr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,qf)}),a&&l.addEventListener("resize",n.update,qf),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,qf)}),a&&l.removeEventListener("resize",n.update,qf)}}var WO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:MW,data:{}},RW={left:"right",right:"left",bottom:"top",top:"bottom"};function Eh(e){return e.replace(/left|right|bottom|top/g,function(t){return RW[t]})}var LW={start:"end",end:"start"};function Lw(e){return e.replace(/start|end/g,function(t){return LW[t]})}function n_(e){var t=qr(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function s_(e){return Zl(jo(e)).left+n_(e).scrollLeft}function DW(e){var t=qr(e),n=jo(e),s=t.visualViewport,r=n.clientWidth,i=n.clientHeight,o=0,a=0;return s&&(r=s.width,i=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=s.offsetLeft,a=s.offsetTop)),{width:r,height:i,x:o+s_(e),y:a}}function FW(e){var t,n=jo(e),s=n_(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=xa(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=xa(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-s.scrollLeft+s_(e),l=-s.scrollTop;return qi(r||n).direction==="rtl"&&(a+=xa(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:l}}function r_(e){var t=qi(e),n=t.overflow,s=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+s)}function qO(e){return["html","body","#document"].indexOf(vi(e))>=0?e.ownerDocument.body:mr(e)&&r_(e)?e:qO(Pm(e))}function Ac(e,t){var n;t===void 0&&(t=[]);var s=qO(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=qr(s),o=r?[i].concat(i.visualViewport||[],r_(s)?s:[]):s,a=t.concat(o);return r?a:a.concat(Ac(Pm(o)))}function h0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function BW(e){var t=Zl(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 Dw(e,t){return t===BO?h0(DW(e)):Ql(t)?BW(t):h0(FW(jo(e)))}function VW(e){var t=Ac(Pm(e)),n=["absolute","fixed"].indexOf(qi(e).position)>=0,s=n&&mr(e)?Yd(e):e;return Ql(s)?t.filter(function(r){return Ql(r)&&UO(r,s)&&vi(r)!=="body"}):[]}function UW(e,t,n){var s=t==="clippingParents"?VW(e):[].concat(t),r=[].concat(s,[n]),i=r[0],o=r.reduce(function(a,l){var u=Dw(e,l);return a.top=xa(u.top,a.top),a.right=hp(u.right,a.right),a.bottom=hp(u.bottom,a.bottom),a.left=xa(u.left,a.left),a},Dw(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 GO(e){var t=e.reference,n=e.element,s=e.placement,r=s?ui(s):null,i=s?eu(s):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(r){case Bs:l={x:o,y:t.y-n.height};break;case br:l={x:o,y:t.y+t.height};break;case _r:l={x:t.x+t.width,y:a};break;case Vs:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=r?t_(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Xl:l[u]=l[u]-(t[d]/2-n[d]/2);break;case ld:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function ud(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=s===void 0?e.placement:s,i=n.boundary,o=i===void 0?cW:i,a=n.rootBoundary,l=a===void 0?BO:a,u=n.elementContext,d=u===void 0?ec:u,f=n.altBoundary,h=f===void 0?!1:f,p=n.padding,g=p===void 0?0:p,m=zO(typeof g!="number"?g:jO(g,Gd)),v=d===ec?dW:ec,y=e.rects.popper,T=e.elements[h?v:d],_=UW(Ql(T)?T:T.contextElement||jo(e.elements.popper),o,l),S=Zl(e.elements.reference),w=GO({reference:S,element:y,strategy:"absolute",placement:r}),A=h0(Object.assign({},y,w)),M=d===ec?A:S,N={top:_.top-M.top+m.top,bottom:M.bottom-_.bottom+m.bottom,left:_.left-M.left+m.left,right:M.right-_.right+m.right},L=e.modifiersData.offset;if(d===ec&&L){var F=L[r];Object.keys(N).forEach(function(W){var j=[_r,br].indexOf(W)>=0?1:-1,R=[Bs,br].indexOf(W)>=0?"y":"x";N[W]+=F[R]*j})}return N}function HW(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?za:l,d=eu(s),f=d?a?Nw:Nw.filter(function(g){return eu(g)===d}):Gd,h=f.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=f);var p=h.reduce(function(g,m){return g[m]=ud(e,{placement:m,boundary:r,rootBoundary:i,padding:o})[ui(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function zW(e){if(ui(e)===Jb)return[];var t=Eh(e);return[Lw(e),t,Lw(t)]}function jW(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,y=ui(v),T=y===v,_=l||(T||!g?[Eh(v)]:zW(v)),S=[v].concat(_).reduce(function(Ee,le){return Ee.concat(ui(le)===Jb?HW(t,{placement:le,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:m}):le)},[]),w=t.rects.reference,A=t.rects.popper,M=new Map,N=!0,L=S[0],F=0;F<S.length;F++){var W=S[F],j=ui(W),R=eu(W)===Xl,q=[Bs,br].indexOf(j)>=0,X=q?"width":"height",K=ud(t,{placement:W,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),$=q?R?_r:Vs:R?br:Bs;w[X]>A[X]&&($=Eh($));var H=Eh($),U=[];if(i&&U.push(K[j]<=0),a&&U.push(K[$]<=0,K[H]<=0),U.every(function(Ee){return Ee})){L=W,N=!1;break}M.set(W,U)}if(N)for(var Z=g?3:1,ue=function(Ee){var le=S.find(function(ie){var ce=M.get(ie);if(ce)return ce.slice(0,Ee).every(function(ne){return ne})});if(le)return L=le,"break"},Q=Z;Q>0;Q--){var ae=ue(Q);if(ae==="break")break}t.placement!==L&&(t.modifiersData[s]._skip=!0,t.placement=L,t.reset=!0)}}var KW={name:"flip",enabled:!0,phase:"main",fn:jW,requiresIfExists:["offset"],data:{_skip:!1}};function Fw(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 Bw(e){return[Bs,_r,br,Vs].some(function(t){return e[t]>=0})}function WW(e){var t=e.state,n=e.name,s=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=ud(t,{elementContext:"reference"}),a=ud(t,{altBoundary:!0}),l=Fw(o,s),u=Fw(a,r,i),d=Bw(l),f=Bw(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var qW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WW};function GW(e,t,n){var s=ui(e),r=[Vs,Bs].indexOf(s)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*r,[Vs,_r].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function YW(e){var t=e.state,n=e.options,s=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=za.reduce(function(d,f){return d[f]=GW(f,t.rects,i),d},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[s]=o}var XW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:YW};function QW(e){var t=e.state,n=e.name;t.modifiersData[n]=GO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var YO={name:"popperOffsets",enabled:!0,phase:"read",fn:QW,data:{}};function JW(e){return e==="x"?"y":"x"}function ZW(e){var t=e.state,n=e.options,s=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,g=n.tetherOffset,m=g===void 0?0:g,v=ud(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),y=ui(t.placement),T=eu(t.placement),_=!T,S=t_(y),w=JW(S),A=t.modifiersData.popperOffsets,M=t.rects.reference,N=t.rects.popper,L=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,F=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(A){if(i){var R,q=S==="y"?Bs:Vs,X=S==="y"?br:_r,K=S==="y"?"height":"width",$=A[S],H=$+v[q],U=$-v[X],Z=p?-N[K]/2:0,ue=T===Xl?M[K]:N[K],Q=T===Xl?-N[K]:-M[K],ae=t.elements.arrow,Ee=p&&ae?e_(ae):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:HO(),ie=le[q],ce=le[X],ne=Oc(0,M[K],Ee[K]),pe=_?M[K]/2-Z-ne-ie-F.mainAxis:ue-ne-ie-F.mainAxis,Te=_?-M[K]/2+Z+ne+ce+F.mainAxis:Q+ne+ce+F.mainAxis,He=t.elements.arrow&&Yd(t.elements.arrow),Y=He?S==="y"?He.clientTop||0:He.clientLeft||0:0,re=(R=W==null?void 0:W[S])!=null?R:0,Se=$+pe-re-Y,Oe=$+Te-re,Ve=Oc(p?hp(H,Se):H,$,p?xa(U,Oe):U);A[S]=Ve,j[S]=Ve-$}if(a){var _e,Be=S==="x"?Bs:Vs,Ie=S==="x"?br:_r,Ae=A[w],Me=w==="y"?"height":"width",Ye=Ae+v[Be],qe=Ae-v[Ie],Ce=[Bs,Vs].indexOf(y)!==-1,Ge=(_e=W==null?void 0:W[w])!=null?_e:0,ut=Ce?Ye:Ae-M[Me]-N[Me]-Ge+F.altAxis,bt=Ce?Ae+M[Me]+N[Me]-Ge-F.altAxis:qe,ct=p&&Ce?xW(ut,Ae,bt):Oc(p?ut:Ye,Ae,p?bt:qe);A[w]=ct,j[w]=ct-Ae}t.modifiersData[s]=j}}var e7={name:"preventOverflow",enabled:!0,phase:"main",fn:ZW,requiresIfExists:["offset"]};function t7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function n7(e){return e===qr(e)||!mr(e)?n_(e):t7(e)}function s7(e){var t=e.getBoundingClientRect(),n=Jl(t.width)/e.offsetWidth||1,s=Jl(t.height)/e.offsetHeight||1;return n!==1||s!==1}function r7(e,t,n){n===void 0&&(n=!1);var s=mr(t),r=mr(t)&&s7(t),i=jo(t),o=Zl(e,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((vi(t)!=="body"||r_(i))&&(a=n7(t)),mr(t)?(l=Zl(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=s_(i))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function i7(e){var t=new Map,n=new Set,s=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&r(l)}}),s.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),s}function o7(e){var t=i7(e);return TW.reduce(function(n,s){return n.concat(t.filter(function(r){return r.phase===s}))},[])}function a7(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function l7(e){var t=e.reduce(function(n,s){var r=n[s.name];return n[s.name]=r?Object.assign({},r,s,{options:Object.assign({},r.options,s.options),data:Object.assign({},r.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var Vw={placement:"bottom",modifiers:[],strategy:"absolute"};function Uw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function i_(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Vw:r;return function(o,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vw,i),modifiersData:{},elements:{reference:o,popper:a},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(m){var v=typeof m=="function"?m(u.options):m;g(),u.options=Object.assign({},i,u.options,v),u.scrollParents={reference:Ql(o)?Ac(o):o.contextElement?Ac(o.contextElement):[],popper:Ac(a)};var y=o7(l7([].concat(s,u.options.modifiers)));return u.orderedModifiers=y.filter(function(T){return T.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var m=u.elements,v=m.reference,y=m.popper;if(Uw(v,y)){u.rects={reference:r7(v,Yd(y),u.options.strategy==="fixed"),popper:e_(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var T=0;T<u.orderedModifiers.length;T++){if(u.reset===!0){u.reset=!1,T=-1;continue}var _=u.orderedModifiers[T],S=_.fn,w=_.options,A=w===void 0?{}:w,M=_.name;typeof S=="function"&&(u=S({state:u,options:A,name:M,instance:h})||u)}}}},update:a7(function(){return new Promise(function(m){h.forceUpdate(),m(u)})}),destroy:function(){g(),f=!0}};if(!Uw(o,a))return h;h.setOptions(l).then(function(m){!f&&l.onFirstUpdate&&l.onFirstUpdate(m)});function p(){u.orderedModifiers.forEach(function(m){var v=m.name,y=m.options,T=y===void 0?{}:y,_=m.effect;if(typeof _=="function"){var S=_({state:u,name:v,instance:h,options:T}),w=function(){};d.push(S||w)}})}function g(){d.forEach(function(m){return m()}),d=[]}return h}}i_();var u7=[WO,YO,KO,VO];i_({defaultModifiers:u7});var c7=[WO,YO,KO,VO,XW,KW,e7,IW,qW],XO=i_({defaultModifiers:c7});const d7=(e,t,n={})=>{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=f7(l);Object.assign(o.value,u)},requires:["computeStyles"]},r=E(()=>{const{onFirstUpdate:l,placement:u,strategy:d,modifiers:f}=c(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:d||"absolute",modifiers:[...f||[],s,{name:"applyStyles",enabled:!1}]}}),i=nn(),o=B({styles:{popper:{position:c(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return ke(r,l=>{const u=c(i);u&&u.setOptions(l)},{deep:!0}),ke([e,t],([l,u])=>{a(),!(!l||!u)&&(i.value=XO(l,u,c(r)))}),ln(()=>{a()}),{state:E(()=>{var l;return{...((l=c(i))==null?void 0:l.state)||{}}}),styles:E(()=>c(o).styles),attributes:E(()=>c(o).attributes),update:()=>{var l;return(l=c(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=c(i))==null?void 0:l.forceUpdate()},instanceRef:E(()=>c(i))}};function f7(e){const t=Object.keys(e.elements),n=cp(t.map(r=>[r,e.styles[r]||{}])),s=cp(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:s}}const h7=(e,t)=>{let n;ke(()=>e.value,s=>{var r,i;s?(n=document.activeElement,rn(t)&&((i=(r=t.value).focus)==null||i.call(r))):n.focus()})},o_=e=>{if(!e)return{onClick:Zt,onMousedown:Zt,onMouseup:Zt};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}}},p7=(e,t=0)=>{if(t===0)return e;const n=B(!1);let s=0;const r=()=>{s&&clearTimeout(s),s=window.setTimeout(()=>{n.value=e.value},t)};return Tt(r),ke(()=>e.value,i=>{i?r():n.value=i}),n};function Hw(){let e;const t=(s,r)=>{n(),e=window.setTimeout(s,r)},n=()=>window.clearTimeout(e);return gm(()=>n()),{registerTimeout:t,cancelTimeout:n}}const zw={prefix:Math.floor(Math.random()*1e4),current:0},m7=Symbol("elIdInjection"),QO=()=>At()?Qe(m7,zw):zw,Tr=e=>{const t=QO(),n=Qb();return E(()=>c(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let dl=[];const jw=e=>{const t=e;t.key===at.esc&&dl.forEach(n=>n(t))},g7=e=>{Tt(()=>{dl.length===0&&document.addEventListener("keydown",jw),Ht&&dl.push(e)}),ln(()=>{dl=dl.filter(t=>t!==e),dl.length===0&&Ht&&document.removeEventListener("keydown",jw)})};let Kw;const JO=()=>{const e=Qb(),t=QO(),n=E(()=>`${e.value}-popper-container-${t.prefix}`),s=E(()=>`#${n.value}`);return{id:n,selector:s}},v7=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},y7=()=>{const{id:e,selector:t}=JO();return Ba(()=>{Ht&&!Kw&&!document.body.querySelector(t.value)&&(Kw=v7(e.value))}),{id:e,selector:t}},b7=ze({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),ZO=({showAfter:e,hideAfter:t,autoClose:n,open:s,close:r})=>{const{registerTimeout:i}=Hw(),{registerTimeout:o,cancelTimeout:a}=Hw();return{onOpen:d=>{i(()=>{s(d);const f=c(n);ht(f)&&f>0&&o(()=>{r(d)},f)},c(e))},onClose:d=>{a(),i(()=>{r(d)},c(t))}}},eA=Symbol("elForwardRef"),_7=e=>{Nt(eA,{setForwardRef:n=>{e.value=n}})},T7=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Ww=B(0),tA=2e3,nA=Symbol("zIndexContextKey"),ja=e=>{const t=e||Qe(nA,void 0),n=E(()=>{const i=c(t);return ht(i)?i:tA}),s=E(()=>n.value+Ww.value);return{initialZIndex:n,currentZIndex:s,nextZIndex:()=>(Ww.value++,s.value)}};function a_(e){return e.split("-")[1]}function sA(e){return e==="y"?"height":"width"}function l_(e){return e.split("-")[0]}function u_(e){return["top","bottom"].includes(l_(e))?"x":"y"}function qw(e,t,n){let{reference:s,floating:r}=e;const i=s.x+s.width/2-r.width/2,o=s.y+s.height/2-r.height/2,a=u_(t),l=sA(a),u=s[l]/2-r[l]/2,d=a==="x";let f;switch(l_(t)){case"top":f={x:i,y:s.y-r.height};break;case"bottom":f={x:i,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:o};break;case"left":f={x:s.x-r.width,y:o};break;default:f={x:s.x,y:s.y}}switch(a_(t)){case"start":f[a]-=u*(n&&d?-1:1);break;case"end":f[a]+=u*(n&&d?-1:1)}return f}const S7=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=qw(u,s,l),h=s,p={},g=0;for(let m=0;m<a.length;m++){const{name:v,fn:y}=a[m],{x:T,y:_,data:S,reset:w}=await y({x:d,y:f,initialPlacement:s,placement:h,strategy:r,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=T??d,f=_??f,p={...p,[v]:{...p[v],...S}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(u=w.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):w.rects),{x:d,y:f}=qw(u,h,l)),m=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:p}};function w7(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function rA(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}const C7=Math.min,E7=Math.max;function x7(e,t,n){return E7(e,C7(t,n))}const k7=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:s=0}=e||{},{x:r,y:i,placement:o,rects:a,platform:l,elements:u}=t;if(n==null)return{};const d=w7(s),f={x:r,y:i},h=u_(o),p=sA(h),g=await l.getDimensions(n),m=h==="y",v=m?"top":"left",y=m?"bottom":"right",T=m?"clientHeight":"clientWidth",_=a.reference[p]+a.reference[h]-f[h]-a.floating[p],S=f[h]-a.reference[h],w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let A=w?w[T]:0;A&&await(l.isElement==null?void 0:l.isElement(w))||(A=u.floating[T]||a.floating[p]);const M=_/2-S/2,N=d[v],L=A-g[p]-d[y],F=A/2-g[p]/2+M,W=x7(N,F,L),j=a_(o)!=null&&F!=W&&a.reference[p]/2-(F<N?d[v]:d[y])-g[p]/2<0;return{[h]:f[h]-(j?F<N?N-F:L-F:0),data:{[h]:W,centerOffset:F-W}}}}),O7=["top","right","bottom","left"];O7.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const A7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:s}=t,r=await async function(i,o){const{placement:a,platform:l,elements:u}=i,d=await(l.isRTL==null?void 0:l.isRTL(u.floating)),f=l_(a),h=a_(a),p=u_(a)==="x",g=["left","top"].includes(f)?-1:1,m=d&&p?-1:1,v=typeof o=="function"?o(i):o;let{mainAxis:y,crossAxis:T,alignmentAxis:_}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return h&&typeof _=="number"&&(T=h==="end"?-1*_:_),p?{x:T*m,y:y*g}:{x:y*g,y:T*m}}(t,e);return{x:n+r.x,y:s+r.y,data:r}}}};function Js(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ci(e){return Js(e).getComputedStyle(e)}function iA(e){return e instanceof Js(e).Node}function No(e){return iA(e)?(e.nodeName||"").toLowerCase():""}let Gf;function oA(){if(Gf)return Gf;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Gf=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Gf):navigator.userAgent}function zr(e){return e instanceof Js(e).HTMLElement}function xo(e){return e instanceof Js(e).Element}function Gw(e){return typeof ShadowRoot>"u"?!1:e instanceof Js(e).ShadowRoot||e instanceof ShadowRoot}function $m(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=ci(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function I7(e){return["table","td","th"].includes(No(e))}function p0(e){const t=/firefox/i.test(oA()),n=ci(e),s=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!s&&s!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(r=>n.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const i=n.contain;return i!=null&&i.includes(r)})}function m0(){return/^((?!chrome|android).)*safari/i.test(oA())}function c_(e){return["html","body","#document"].includes(No(e))}const Yw=Math.min,Ic=Math.max,pp=Math.round;function aA(e){const t=ci(e);let n=parseFloat(t.width),s=parseFloat(t.height);const r=zr(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=pp(n)!==i||pp(s)!==o;return a&&(n=i,s=o),{width:n,height:s,fallback:a}}function lA(e){return xo(e)?e:e.contextElement}const uA={x:1,y:1};function Il(e){const t=lA(e);if(!zr(t))return uA;const n=t.getBoundingClientRect(),{width:s,height:r,fallback:i}=aA(t);let o=(i?pp(n.width):n.width)/s,a=(i?pp(n.height):n.height)/r;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}function cd(e,t,n,s){var r,i;t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=lA(e);let l=uA;t&&(s?xo(s)&&(l=Il(s)):l=Il(e));const u=a?Js(a):window,d=m0()&&n;let f=(o.left+(d&&((r=u.visualViewport)==null?void 0:r.offsetLeft)||0))/l.x,h=(o.top+(d&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/l.y,p=o.width/l.x,g=o.height/l.y;if(a){const m=Js(a),v=s&&xo(s)?Js(s):s;let y=m.frameElement;for(;y&&s&&v!==m;){const T=Il(y),_=y.getBoundingClientRect(),S=getComputedStyle(y);_.x+=(y.clientLeft+parseFloat(S.paddingLeft))*T.x,_.y+=(y.clientTop+parseFloat(S.paddingTop))*T.y,f*=T.x,h*=T.y,p*=T.x,g*=T.y,f+=_.x,h+=_.y,y=Js(y).frameElement}}return rA({width:p,height:g,x:f,y:h})}function ko(e){return((iA(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nm(e){return xo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function cA(e){return cd(ko(e)).left+Nm(e).scrollLeft}function dd(e){if(No(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gw(e)&&e.host||ko(e);return Gw(t)?t.host:t}function dA(e){const t=dd(e);return c_(t)?t.ownerDocument.body:zr(t)&&$m(t)?t:dA(t)}function fA(e,t){var n;t===void 0&&(t=[]);const s=dA(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=Js(s);return r?t.concat(i,i.visualViewport||[],$m(s)?s:[]):t.concat(s,fA(s))}function Xw(e,t,n){let s;if(t==="viewport")s=function(o,a){const l=Js(o),u=ko(o),d=l.visualViewport;let f=u.clientWidth,h=u.clientHeight,p=0,g=0;if(d){f=d.width,h=d.height;const m=m0();(!m||m&&a==="fixed")&&(p=d.offsetLeft,g=d.offsetTop)}return{width:f,height:h,x:p,y:g}}(e,n);else if(t==="document")s=function(o){const a=ko(o),l=Nm(o),u=o.ownerDocument.body,d=Ic(a.scrollWidth,a.clientWidth,u.scrollWidth,u.clientWidth),f=Ic(a.scrollHeight,a.clientHeight,u.scrollHeight,u.clientHeight);let h=-l.scrollLeft+cA(o);const p=-l.scrollTop;return ci(u).direction==="rtl"&&(h+=Ic(a.clientWidth,u.clientWidth)-d),{width:d,height:f,x:h,y:p}}(ko(e));else if(xo(t))s=function(o,a){const l=cd(o,!0,a==="fixed"),u=l.top+o.clientTop,d=l.left+o.clientLeft,f=zr(o)?Il(o):{x:1,y:1};return{width:o.clientWidth*f.x,height:o.clientHeight*f.y,x:d*f.x,y:u*f.y}}(t,n);else{const o={...t};if(m0()){var r,i;const a=Js(e);o.x-=((r=a.visualViewport)==null?void 0:r.offsetLeft)||0,o.y-=((i=a.visualViewport)==null?void 0:i.offsetTop)||0}s=o}return rA(s)}function Qw(e,t){return zr(e)&&ci(e).position!=="fixed"?t?t(e):e.offsetParent:null}function Jw(e,t){const n=Js(e);if(!zr(e))return n;let s=Qw(e,t);for(;s&&I7(s)&&ci(s).position==="static";)s=Qw(s,t);return s&&(No(s)==="html"||No(s)==="body"&&ci(s).position==="static"&&!p0(s))?n:s||function(r){let i=dd(r);for(;zr(i)&&!c_(i);){if(p0(i))return i;i=dd(i)}return null}(e)||n}function P7(e,t,n){const s=zr(t),r=ko(t),i=cd(e,!0,n==="fixed",t);let o={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(s||!s&&n!=="fixed")if((No(t)!=="body"||$m(r))&&(o=Nm(t)),zr(t)){const l=cd(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else r&&(a.x=cA(r));return{x:i.left+o.scrollLeft-a.x,y:i.top+o.scrollTop-a.y,width:i.width,height:i.height}}const $7={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const i=n==="clippingAncestors"?function(u,d){const f=d.get(u);if(f)return f;let h=fA(u).filter(v=>xo(v)&&No(v)!=="body"),p=null;const g=ci(u).position==="fixed";let m=g?dd(u):u;for(;xo(m)&&!c_(m);){const v=ci(m),y=p0(m);v.position==="fixed"?p=null:(g?y||p:y||v.position!=="static"||!p||!["absolute","fixed"].includes(p.position))?p=v:h=h.filter(T=>T!==m),m=dd(m)}return d.set(u,h),h}(t,this._c):[].concat(n),o=[...i,s],a=o[0],l=o.reduce((u,d)=>{const f=Xw(t,d,r);return u.top=Ic(f.top,u.top),u.right=Yw(f.right,u.right),u.bottom=Yw(f.bottom,u.bottom),u.left=Ic(f.left,u.left),u},Xw(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:s}=e;const r=zr(n),i=ko(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((r||!r&&s!=="fixed")&&((No(n)!=="body"||$m(i))&&(o=Nm(n)),zr(n))){const u=cd(n);a=Il(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}},isElement:xo,getDimensions:function(e){return aA(e)},getOffsetParent:Jw,getDocumentElement:ko,getScale:Il,async getElementRects(e){let{reference:t,floating:n,strategy:s}=e;const r=this.getOffsetParent||Jw,i=this.getDimensions;return{reference:P7(t,await r(n),s),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ci(e).direction==="rtl"},N7=(e,t,n)=>{const s=new Map,r={platform:$7,...n},i={...r.platform,_c:s};return S7(e,t,{...r,platform:i})};ze({});const M7=e=>{if(!Ht)return;if(!e)return e;const t=Qs(e);return t||(rn(e)?t:e)},R7=({middleware:e,placement:t,strategy:n})=>{const s=B(),r=B(),i=B(),o=B(),a=B({}),l={x:i,y:o,placement:t,strategy:n,middlewareData:a},u=async()=>{if(!Ht)return;const d=M7(s),f=Qs(r);if(!d||!f)return;const h=await N7(d,f,{placement:c(t),strategy:c(n),middleware:c(e)});od(l).forEach(p=>{l[p].value=h[p]})};return Tt(()=>{nr(()=>{u()})}),{...l,update:u,referenceRef:s,contentRef:r}},L7=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const s=c(e);return s?k7({element:s,padding:t}).fn(n):{}}});function D7(e){const t=B();function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:i,value:o}=e.value;if(r==null||i==null)return;const a=o.slice(0,Math.max(0,r)),l=o.slice(Math.max(0,i));t.value={selectionStart:r,selectionEnd:i,value:o,beforeTxt:a,afterTxt:l}}function s(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:a}=t.value;if(i==null||o==null||a==null)return;let l=r.length;if(r.endsWith(o))l=r.length-o.length;else if(r.startsWith(i))l=i.length;else{const u=i[a-1],d=r.indexOf(u,a-1);d!==-1&&(l=d+1)}e.value.setSelectionRange(l,l)}return[n,s]}const F7=(e,t,n)=>Al(e.subTree).filter(i=>{var o;return gn(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),hA=(e,t)=>{const n={},s=nn([]);return{children:s,addChild:o=>{n[o.uid]=o,s.value=F7(e,t,n)},removeChild:o=>{delete n[o],s.value=s.value.filter(a=>a.uid!==o)}}},is=Wr({type:String,values:Ci,required:!1}),pA=Symbol("size"),B7=()=>{const e=Qe(pA,{});return E(()=>c(e.size)||"")},mA=Symbol(),mp=B();function Mm(e,t=void 0){const n=At()?Qe(mA,mp):mp;return e?E(()=>{var s,r;return(r=(s=n.value)==null?void 0:s[e])!=null?r:t}):n}function Rm(e,t){const n=Mm(),s=Ne(e,E(()=>{var a;return((a=n.value)==null?void 0:a.namespace)||fp})),r=qt(E(()=>{var a;return(a=n.value)==null?void 0:a.locale})),i=ja(E(()=>{var a;return((a=n.value)==null?void 0:a.zIndex)||tA})),o=E(()=>{var a;return c(t)||((a=n.value)==null?void 0:a.size)||""});return d_(E(()=>c(n)||{})),{ns:s,locale:r,zIndex:i,size:o}}const d_=(e,t,n=!1)=>{var s;const r=!!At(),i=r?Mm():void 0,o=(s=t==null?void 0:t.provide)!=null?s:r?Nt:void 0;if(!o)return;const a=E(()=>{const l=c(e);return i!=null&&i.value?V7(i.value,l):l});return o(mA,a),o(MO,E(()=>a.value.locale)),o(RO,E(()=>a.value.namespace)),o(nA,E(()=>a.value.zIndex)),o(pA,{size:E(()=>a.value.size||"")}),(n||!mp.value)&&(mp.value=a.value),a},V7=(e,t)=>{var n;const s=[...new Set([...od(e),...od(t)])],r={};for(const i of s)r[i]=(n=t[i])!=null?n:e[i];return r},U7=ze({a11y:{type:Boolean,default:!0},locale:{type:me(Object)},size:is,button:{type:me(Object)},experimentalFeatures:{type:me(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:me(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),g0={},H7=te({name:"ElConfigProvider",props:U7,setup(e,{slots:t}){ke(()=>e.message,s=>{Object.assign(g0,s??{})},{immediate:!0,deep:!0});const n=d_(e);return()=>xe(t,"default",{config:n==null?void 0:n.value})}}),z7=Ot(H7),j7="2.3.2",K7=(e=[])=>({version:j7,install:(n,s)=>{n[Pw]||(n[Pw]=!0,e.forEach(r=>n.use(r)),s&&d_(s,n,!0))}}),W7=ze({zIndex:{type:me([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),q7={scroll:({scrollTop:e,fixed:t})=>ht(e)&&Dn(t),[an]:e=>Dn(e)};var Ue=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};const gA="ElAffix",G7=te({name:gA}),Y7=te({...G7,props:W7,emits:q7,setup(e,{expose:t,emit:n}){const s=e,r=Ne("affix"),i=nn(),o=nn(),a=nn(),{height:l}=UF(),{height:u,width:d,top:f,bottom:h,update:p}=YS(o,{windowScroll:!1}),g=YS(i),m=B(!1),v=B(0),y=B(0),T=E(()=>({height:m.value?`${u.value}px`:"",width:m.value?`${d.value}px`:""})),_=E(()=>{if(!m.value)return{};const A=s.offset?An(s.offset):0;return{height:`${u.value}px`,width:`${d.value}px`,top:s.position==="top"?A:"",bottom:s.position==="bottom"?A:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:s.zIndex}}),S=()=>{if(a.value)if(v.value=a.value instanceof Window?document.documentElement.scrollTop:a.value.scrollTop||0,s.position==="top")if(s.target){const A=g.bottom.value-s.offset-u.value;m.value=s.offset>f.value&&g.bottom.value>0,y.value=A<0?A:0}else m.value=s.offset>f.value;else if(s.target){const A=l.value-g.top.value-s.offset-u.value;m.value=l.value-s.offset<h.value&&l.value>g.top.value,y.value=A<0?-A:0}else m.value=l.value-s.offset<h.value},w=()=>{p(),n("scroll",{scrollTop:v.value,fixed:m.value})};return ke(m,A=>n("change",A)),Tt(()=>{var A;s.target?(i.value=(A=document.querySelector(s.target))!=null?A:void 0,i.value||zn(gA,`Target is not existed: ${s.target}`)):i.value=document.documentElement,a.value=Kb(o.value,!0),p()}),mn(a,"scroll",w),nr(S),t({update:S,updateRoot:p}),(A,M)=>(x(),z("div",{ref_key:"root",ref:o,class:I(c(r).b()),style:st(c(T))},[V("div",{class:I({[c(r).m("fixed")]:m.value}),style:st(c(_))},[xe(A.$slots,"default")],6)],6))}});var X7=Ue(Y7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const Q7=Ot(X7),J7=ze({size:{type:me([Number,String])},color:{type:String}}),Z7=te({name:"ElIcon",inheritAttrs:!1}),eq=te({...Z7,props:J7,setup(e){const t=e,n=Ne("icon"),s=E(()=>{const{size:r,color:i}=t;return!r&&!i?{}:{fontSize:Qn(r)?void 0:An(r),"--color":i}});return(r,i)=>(x(),z("i",$t({class:c(n).b(),style:c(s)},r.$attrs),[xe(r.$slots,"default")],16))}});var tq=Ue(eq,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const nt=Ot(tq),nq=["light","dark"],sq=ze({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:od($o),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:nq,default:"light"}}),rq={close:e=>e instanceof MouseEvent},iq=te({name:"ElAlert"}),oq=te({...iq,props:sq,emits:rq,setup(e,{emit:t}){const n=e,{Close:s}=Yb,r=es(),i=Ne("alert"),o=B(!0),a=E(()=>$o[n.type]),l=E(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!r.default}]),u=E(()=>({[i.is("bold")]:n.description||r.default})),d=f=>{o.value=!1,t("close",f)};return(f,h)=>(x(),ve(Pn,{name:c(i).b("fade"),persisted:""},{default:ee(()=>[gt(V("div",{class:I([c(i).b(),c(i).m(f.type),c(i).is("center",f.center),c(i).is(f.effect)]),role:"alert"},[f.showIcon&&c(a)?(x(),ve(c(nt),{key:0,class:I(c(l))},{default:ee(()=>[(x(),ve(Mt(c(a))))]),_:1},8,["class"])):he("v-if",!0),V("div",{class:I(c(i).e("content"))},[f.title||f.$slots.title?(x(),z("span",{key:0,class:I([c(i).e("title"),c(u)])},[xe(f.$slots,"title",{},()=>[wt(we(f.title),1)])],2)):he("v-if",!0),f.$slots.default||f.description?(x(),z("p",{key:1,class:I(c(i).e("description"))},[xe(f.$slots,"default",{},()=>[wt(we(f.description),1)])],2)):he("v-if",!0),f.closable?(x(),z(et,{key:2},[f.closeText?(x(),z("div",{key:0,class:I([c(i).e("close-btn"),c(i).is("customed")]),onClick:d},we(f.closeText),3)):(x(),ve(c(nt),{key:1,class:I(c(i).e("close-btn")),onClick:d},{default:ee(()=>[G(c(s))]),_:1},8,["class"]))],64)):he("v-if",!0)],2)],2),[[Ut,o.value]])]),_:3},8,["name"]))}});var aq=Ue(oq,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const lq=Ot(aq),Ka=Symbol("formContextKey"),yi=Symbol("formItemContextKey"),Fn=(e,t={})=>{const n=B(void 0),s=t.prop?n:FO("size"),r=t.global?n:B7(),i=t.form?{size:void 0}:Qe(Ka,void 0),o=t.formItem?{size:void 0}:Qe(yi,void 0);return E(()=>s.value||c(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||r.value||"")},zs=e=>{const t=FO("disabled"),n=Qe(Ka,void 0);return E(()=>t.value||c(e)||(n==null?void 0:n.disabled)||!1)},Is=()=>{const e=Qe(Ka,void 0),t=Qe(yi,void 0);return{form:e,formItem:t}},Ko=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=B(!1)),s||(s=B(!1));const r=B();let i;const o=E(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return Tt(()=>{i=ke([dn(e,"id"),n],([a,l])=>{const u=a??(l?void 0:Tr().value);u!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(s!=null&&s.value)&&!l&&u&&t.addInputId(u)),r.value=u)},{immediate:!0})}),Vo(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:o,inputId:r}},uq=ze({size:{type:String,values:Ci},disabled:Boolean}),cq=ze({...uq,model:Object,rules:{type:me(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),dq={validate:(e,t,n)=>(tt(e)||mt(e))&&Dn(t)&&mt(n)};function fq(){const e=B([]),t=E(()=>{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 s(i,o){if(i&&o){const a=n(o);e.value.splice(a,1,i)}else i&&e.value.push(i)}function r(i){const o=n(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:s,deregisterLabelWidth:r}}const Yf=(e,t)=>{const n=ql(t);return n.length>0?e.filter(s=>s.prop&&n.includes(s.prop)):e},hq="ElForm",pq=te({name:hq}),mq=te({...pq,props:cq,emits:dq,setup(e,{expose:t,emit:n}){const s=e,r=[],i=Fn(),o=Ne("form"),a=E(()=>{const{labelPosition:T,inline:_}=s;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${T}`)]:T,[o.m("inline")]:_}]}),l=T=>{r.push(T)},u=T=>{T.prop&&r.splice(r.indexOf(T),1)},d=(T=[])=>{s.model&&Yf(r,T).forEach(_=>_.resetField())},f=(T=[])=>{Yf(r,T).forEach(_=>_.clearValidate())},h=E(()=>!!s.model),p=T=>{if(r.length===0)return[];const _=Yf(r,T);return _.length?_:[]},g=async T=>v(void 0,T),m=async(T=[])=>{if(!h.value)return!1;const _=p(T);if(_.length===0)return!0;let S={};for(const w of _)try{await w.validate("")}catch(A){S={...S,...A}}return Object.keys(S).length===0?!0:Promise.reject(S)},v=async(T=[],_)=>{const S=!pt(_);try{const w=await m(T);return w===!0&&(_==null||_(w)),w}catch(w){if(w instanceof Error)throw w;const A=w;return s.scrollToError&&y(Object.keys(A)[0]),_==null||_(!1,A),S&&Promise.reject(A)}},y=T=>{var _;const S=Yf(r,T)[0];S&&((_=S.$el)==null||_.scrollIntoView(s.scrollIntoViewOptions))};return ke(()=>s.rules,()=>{s.validateOnRuleChange&&g().catch(T=>void 0)},{deep:!0}),Nt(Ka,Bt({...Hn(s),emit:n,resetFields:d,clearValidate:f,validateField:v,addField:l,removeField:u,...fq()})),t({validate:g,validateField:v,resetFields:d,clearValidate:f,scrollToField:y}),(T,_)=>(x(),z("form",{class:I(c(a))},[xe(T.$slots,"default")],2))}});var gq=Ue(mq,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ma.apply(this,arguments)}function vq(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fd(e,t)}function v0(e){return v0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v0(e)}function fd(e,t){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,r){return s.__proto__=r,s},fd(e,t)}function yq(){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 xh(e,t,n){return yq()?xh=Reflect.construct.bind():xh=function(r,i,o){var a=[null];a.push.apply(a,i);var l=Function.bind.apply(r,a),u=new l;return o&&fd(u,o.prototype),u},xh.apply(null,arguments)}function bq(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function y0(e){var t=typeof Map=="function"?new Map:void 0;return y0=function(s){if(s===null||!bq(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(s))return t.get(s);t.set(s,r)}function r(){return xh(s,arguments,v0(this).constructor)}return r.prototype=Object.create(s.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),fd(r,s)},y0(e)}var _q=/%[sdj%]/g,Tq=function(){};typeof process<"u"&&process.env;function b0(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var s=n.field;t[s]=t[s]||[],t[s].push(n)}),t}function Zs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var r=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var o=e.replace(_q,function(a){if(a==="%%")return"%";if(r>=i)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return a}});return o}return e}function Sq(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Wn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Sq(t)&&typeof e=="string"&&!e)}function wq(e,t,n){var s=[],r=0,i=e.length;function o(a){s.push.apply(s,a||[]),r++,r===i&&n(s)}e.forEach(function(a){t(a,o)})}function Zw(e,t,n){var s=0,r=e.length;function i(o){if(o&&o.length){n(o);return}var a=s;s=s+1,a<r?t(e[a],i):n([])}i([])}function Cq(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var eC=function(e){vq(t,e);function t(n,s){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=n,r.fields=s,r}return t}(y0(Error));function Eq(e,t,n,s,r){if(t.first){var i=new Promise(function(h,p){var g=function(y){return s(y),y.length?p(new eC(y,b0(y))):h(r)},m=Cq(e);Zw(m,n,g)});return i.catch(function(h){return h}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,u=0,d=[],f=new Promise(function(h,p){var g=function(v){if(d.push.apply(d,v),u++,u===l)return s(d),d.length?p(new eC(d,b0(d))):h(r)};a.length||(s(d),h(r)),a.forEach(function(m){var v=e[m];o.indexOf(m)!==-1?Zw(v,n,g):wq(v,n,g)})});return f.catch(function(h){return h}),f}function xq(e){return!!(e&&e.message!==void 0)}function kq(e,t){for(var n=e,s=0;s<t.length;s++){if(n==null)return n;n=n[t[s]]}return n}function tC(e,t){return function(n){var s;return e.fullFields?s=kq(t,e.fullFields):s=t[n.field||e.fullField],xq(n)?(n.field=n.field||e.fullField,n.fieldValue=s,n):{message:typeof n=="function"?n():n,fieldValue:s,field:n.field||e.fullField}}}function nC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var s=t[n];typeof s=="object"&&typeof e[n]=="object"?e[n]=ma({},e[n],s):e[n]=s}}return e}var vA=function(t,n,s,r,i,o){t.required&&(!s.hasOwnProperty(t.field)||Wn(n,o||t.type))&&r.push(Zs(i.messages.required,t.fullField))},Oq=function(t,n,s,r,i){(/^\s+$/.test(n)||n==="")&&r.push(Zs(i.messages.whitespace,t.fullField))},Xf,Aq=function(){if(Xf)return Xf;var e="[a-fA-F\\d:]",t=function(S){return S&&S.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}",s="[a-fA-F\\d]{1,4}",r=(`
|
||
(?:
|
||
(?:`+s+":){7}(?:"+s+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+s+":){6}(?:"+n+"|:"+s+`|:)| // 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
|
||
(?:`+s+":){5}(?::"+n+"|(?::"+s+`){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
|
||
(?:`+s+":){4}(?:(?::"+s+"){0,1}:"+n+"|(?::"+s+`){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
|
||
(?:`+s+":){3}(?:(?::"+s+"){0,2}:"+n+"|(?::"+s+`){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
|
||
(?:`+s+":){2}(?:(?::"+s+"){0,3}:"+n+"|(?::"+s+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+s+":){1}(?:(?::"+s+"){0,4}:"+n+"|(?::"+s+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+s+"){0,5}:"+n+"|(?::"+s+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),o=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),l=function(S){return S&&S.exact?i:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+r+t(S)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+n+t(_),"g")},l.v6=function(_){return _&&_.exact?a:new RegExp(""+t(_)+r+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,h=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',T="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+h+"|"+p+g+m+")"+v+y;return Xf=new RegExp("(?:^"+T+"$)","i"),Xf},sC={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},pc={integer:function(t){return pc.number(t)&&parseInt(t,10)===t},float:function(t){return pc.number(t)&&!pc.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"&&!pc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(sC.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Aq())},hex:function(t){return typeof t=="string"&&!!t.match(sC.hex)}},Iq=function(t,n,s,r,i){if(t.required&&n===void 0){vA(t,n,s,r,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;o.indexOf(a)>-1?pc[a](n)||r.push(Zs(i.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&r.push(Zs(i.messages.types[a],t.fullField,t.type))},Pq=function(t,n,s,r,i){var o=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(h?f="number":p?f="string":g&&(f="array"),!f)return!1;g&&(d=n.length),p&&(d=n.replace(u,"_").length),o?d!==t.len&&r.push(Zs(i.messages[f].len,t.fullField,t.len)):a&&!l&&d<t.min?r.push(Zs(i.messages[f].min,t.fullField,t.min)):l&&!a&&d>t.max?r.push(Zs(i.messages[f].max,t.fullField,t.max)):a&&l&&(d<t.min||d>t.max)&&r.push(Zs(i.messages[f].range,t.fullField,t.min,t.max))},Ja="enum",$q=function(t,n,s,r,i){t[Ja]=Array.isArray(t[Ja])?t[Ja]:[],t[Ja].indexOf(n)===-1&&r.push(Zs(i.messages[Ja],t.fullField,t[Ja].join(", ")))},Nq=function(t,n,s,r,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(Zs(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||r.push(Zs(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},en={required:vA,whitespace:Oq,type:Iq,range:Pq,enum:$q,pattern:Nq},Mq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n,"string")&&!t.required)return s();en.required(t,n,r,o,i,"string"),Wn(n,"string")||(en.type(t,n,r,o,i),en.range(t,n,r,o,i),en.pattern(t,n,r,o,i),t.whitespace===!0&&en.whitespace(t,n,r,o,i))}s(o)},Rq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n)&&!t.required)return s();en.required(t,n,r,o,i),n!==void 0&&en.type(t,n,r,o,i)}s(o)},Lq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),Wn(n)&&!t.required)return s();en.required(t,n,r,o,i),n!==void 0&&(en.type(t,n,r,o,i),en.range(t,n,r,o,i))}s(o)},Dq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n)&&!t.required)return s();en.required(t,n,r,o,i),n!==void 0&&en.type(t,n,r,o,i)}s(o)},Fq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n)&&!t.required)return s();en.required(t,n,r,o,i),Wn(n)||en.type(t,n,r,o,i)}s(o)},Bq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n)&&!t.required)return s();en.required(t,n,r,o,i),n!==void 0&&(en.type(t,n,r,o,i),en.range(t,n,r,o,i))}s(o)},Vq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n)&&!t.required)return s();en.required(t,n,r,o,i),n!==void 0&&(en.type(t,n,r,o,i),en.range(t,n,r,o,i))}s(o)},Uq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return s();en.required(t,n,r,o,i,"array"),n!=null&&(en.type(t,n,r,o,i),en.range(t,n,r,o,i))}s(o)},Hq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n)&&!t.required)return s();en.required(t,n,r,o,i),n!==void 0&&en.type(t,n,r,o,i)}s(o)},zq="enum",jq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n)&&!t.required)return s();en.required(t,n,r,o,i),n!==void 0&&en[zq](t,n,r,o,i)}s(o)},Kq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n,"string")&&!t.required)return s();en.required(t,n,r,o,i),Wn(n,"string")||en.pattern(t,n,r,o,i)}s(o)},Wq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n,"date")&&!t.required)return s();if(en.required(t,n,r,o,i),!Wn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),en.type(t,l,r,o,i),l&&en.range(t,l.getTime(),r,o,i)}}s(o)},qq=function(t,n,s,r,i){var o=[],a=Array.isArray(n)?"array":typeof n;en.required(t,n,r,o,i,a),s(o)},Yg=function(t,n,s,r,i){var o=t.type,a=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(Wn(n,o)&&!t.required)return s();en.required(t,n,r,a,i,o),Wn(n,o)||en.type(t,n,r,a,i)}s(a)},Gq=function(t,n,s,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(Wn(n)&&!t.required)return s();en.required(t,n,r,o,i)}s(o)},Pc={string:Mq,method:Rq,number:Lq,boolean:Dq,regexp:Fq,integer:Bq,float:Vq,array:Uq,object:Hq,enum:jq,pattern:Kq,date:Wq,url:Yg,hex:Yg,email:Yg,required:qq,any:Gq};function _0(){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 T0=_0(),Xd=function(){function e(n){this.rules=null,this._messages=T0,this.define(n)}var t=e.prototype;return t.define=function(s){var r=this;if(!s)throw new Error("Cannot configure a schema with no rules");if(typeof s!="object"||Array.isArray(s))throw new Error("Rules must be an object");this.rules={},Object.keys(s).forEach(function(i){var o=s[i];r.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(s){return s&&(this._messages=nC(_0(),s)),this._messages},t.validate=function(s,r,i){var o=this;r===void 0&&(r={}),i===void 0&&(i=function(){});var a=s,l=r,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function d(m){var v=[],y={};function T(S){if(Array.isArray(S)){var w;v=(w=v).concat.apply(w,S)}else v.push(S)}for(var _=0;_<m.length;_++)T(m[_]);v.length?(y=b0(v),u(v,y)):u(null,a)}if(l.messages){var f=this.messages();f===T0&&(f=_0()),nC(f,l.messages),l.messages=f}else l.messages=this.messages();var h={},p=l.keys||Object.keys(this.rules);p.forEach(function(m){var v=o.rules[m],y=a[m];v.forEach(function(T){var _=T;typeof _.transform=="function"&&(a===s&&(a=ma({},a)),y=a[m]=_.transform(y)),typeof _=="function"?_={validator:_}:_=ma({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=m,_.fullField=_.fullField||m,_.type=o.getType(_),h[m]=h[m]||[],h[m].push({rule:_,value:y,source:a,field:m}))})});var g={};return Eq(h,l,function(m,v){var y=m.rule,T=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");T=T&&(y.required||!y.required&&m.value),y.field=m.field;function _(A,M){return ma({},M,{fullField:y.fullField+"."+A,fullFields:y.fullFields?[].concat(y.fullFields,[A]):[A]})}function S(A){A===void 0&&(A=[]);var M=Array.isArray(A)?A:[A];!l.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&y.message!==void 0&&(M=[].concat(y.message));var N=M.map(tC(y,a));if(l.first&&N.length)return g[y.field]=1,v(N);if(!T)v(N);else{if(y.required&&!m.value)return y.message!==void 0?N=[].concat(y.message).map(tC(y,a)):l.error&&(N=[l.error(y,Zs(l.messages.required,y.field))]),v(N);var L={};y.defaultField&&Object.keys(m.value).map(function(j){L[j]=y.defaultField}),L=ma({},L,m.rule.fields);var F={};Object.keys(L).forEach(function(j){var R=L[j],q=Array.isArray(R)?R:[R];F[j]=q.map(_.bind(null,j))});var W=new e(F);W.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),W.validate(m.value,m.rule.options||l,function(j){var R=[];N&&N.length&&R.push.apply(R,N),j&&j.length&&R.push.apply(R,j),v(R.length?R:null)})}}var w;if(y.asyncValidator)w=y.asyncValidator(y,m.value,S,m.source,l);else if(y.validator){try{w=y.validator(y,m.value,S,m.source,l)}catch(A){console.error==null||console.error(A),l.suppressValidatorError||setTimeout(function(){throw A},0),S(A.message)}w===!0?S():w===!1?S(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):w instanceof Array?S(w):w instanceof Error&&S(w.message)}w&&w.then&&w.then(function(){return S()},function(A){return S(A)})},function(m){d(m)},a)},t.getType=function(s){if(s.type===void 0&&s.pattern instanceof RegExp&&(s.type="pattern"),typeof s.validator!="function"&&s.type&&!Pc.hasOwnProperty(s.type))throw new Error(Zs("Unknown rule type %s",s.type));return s.type||"string"},t.getValidationMethod=function(s){if(typeof s.validator=="function")return s.validator;var r=Object.keys(s),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Pc.required:Pc[this.getType(s)]||void 0},e}();Xd.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Pc[t]=n};Xd.warning=Tq;Xd.messages=T0;Xd.validators=Pc;const Yq=["","error","validating","success"],Xq=ze({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:me([String,Array])},required:{type:Boolean,default:void 0},rules:{type:me([Object,Array])},error:String,validateStatus:{type:String,values:Yq},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Ci}}),rC="ElLabelWrap";var Qq=te({name:rC,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Qe(Ka,void 0),s=Qe(yi);s||zn(rC,"usage: <el-form-item><label-wrap /></el-form-item>");const r=Ne("form"),i=B(),o=B(0),a=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(d="update")=>{it(()=>{t.default&&e.isAutoWidth&&(d==="update"?o.value=a():d==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return Tt(()=>{u()}),ln(()=>{l("remove")}),to(()=>u()),ke(o,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),ds(E(()=>{var d,f;return(f=(d=i.value)==null?void 0:d.firstElementChild)!=null?f:null}),u),()=>{var d,f;if(!t)return null;const{isAutoWidth:h}=e;if(h){const p=n==null?void 0:n.autoLabelWidth,g=s==null?void 0:s.hasLabel,m={};if(g&&p&&p!=="auto"){const v=Math.max(0,Number.parseInt(p,10)-o.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";v&&(m[y]=`${v}px`)}return G("div",{ref:i,class:[r.be("item","label-wrap")],style:m},[(d=t.default)==null?void 0:d.call(t)])}else return G(et,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const Jq=["role","aria-labelledby"],Zq=te({name:"ElFormItem"}),eG=te({...Zq,props:Xq,setup(e,{expose:t}){const n=e,s=es(),r=Qe(Ka,void 0),i=Qe(yi,void 0),o=Fn(void 0,{formItem:!1}),a=Ne("form-item"),l=Tr().value,u=B([]),d=B(""),f=EF(d,100),h=B(""),p=B();let g,m=!1;const v=E(()=>{if((r==null?void 0:r.labelPosition)==="top")return{};const ce=An(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return ce?{width:ce}:{}}),y=E(()=>{if((r==null?void 0:r.labelPosition)==="top"||r!=null&&r.inline)return{};if(!n.label&&!n.labelWidth&&L)return{};const ce=An(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return!n.label&&!s.label?{marginLeft:ce}:{}}),T=E(()=>[a.b(),a.m(o.value),a.is("error",d.value==="error"),a.is("validating",d.value==="validating"),a.is("success",d.value==="success"),a.is("required",q.value||n.required),a.is("no-asterisk",r==null?void 0:r.hideRequiredAsterisk),(r==null?void 0:r.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:r==null?void 0:r.statusIcon}]),_=E(()=>Dn(n.inlineMessage)?n.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),S=E(()=>[a.e("error"),{[a.em("error","inline")]:_.value}]),w=E(()=>n.prop?mt(n.prop)?n.prop:n.prop.join("."):""),A=E(()=>!!(n.label||s.label)),M=E(()=>n.for||u.value.length===1?u.value[0]:void 0),N=E(()=>!M.value&&A.value),L=!!i,F=E(()=>{const ce=r==null?void 0:r.model;if(!(!ce||!n.prop))return Ch(ce,n.prop).value}),W=E(()=>{const{required:ce}=n,ne=[];n.rules&&ne.push(...ql(n.rules));const pe=r==null?void 0:r.rules;if(pe&&n.prop){const Te=Ch(pe,n.prop).value;Te&&ne.push(...ql(Te))}if(ce!==void 0){const Te=ne.map((He,Y)=>[He,Y]).filter(([He])=>Object.keys(He).includes("required"));if(Te.length>0)for(const[He,Y]of Te)He.required!==ce&&(ne[Y]={...He,required:ce});else ne.push({required:ce})}return ne}),j=E(()=>W.value.length>0),R=ce=>W.value.filter(pe=>!pe.trigger||!ce?!0:Array.isArray(pe.trigger)?pe.trigger.includes(ce):pe.trigger===ce).map(({trigger:pe,...Te})=>Te),q=E(()=>W.value.some(ce=>ce.required)),X=E(()=>{var ce;return f.value==="error"&&n.showMessage&&((ce=r==null?void 0:r.showMessage)!=null?ce:!0)}),K=E(()=>`${n.label||""}${(r==null?void 0:r.labelSuffix)||""}`),$=ce=>{d.value=ce},H=ce=>{var ne,pe;const{errors:Te,fields:He}=ce;(!Te||!He)&&console.error(ce),$("error"),h.value=Te?(pe=(ne=Te==null?void 0:Te[0])==null?void 0:ne.message)!=null?pe:`${n.prop} is required`:"",r==null||r.emit("validate",n.prop,!1,h.value)},U=()=>{$("success"),r==null||r.emit("validate",n.prop,!0,"")},Z=async ce=>{const ne=w.value;return new Xd({[ne]:ce}).validate({[ne]:F.value},{firstFields:!0}).then(()=>(U(),!0)).catch(Te=>(H(Te),Promise.reject(Te)))},ue=async(ce,ne)=>{if(m||!n.prop)return!1;const pe=pt(ne);if(!j.value)return ne==null||ne(!1),!1;const Te=R(ce);return Te.length===0?(ne==null||ne(!0),!0):($("validating"),Z(Te).then(()=>(ne==null||ne(!0),!0)).catch(He=>{const{fields:Y}=He;return ne==null||ne(!1,Y),pe?!1:Promise.reject(Y)}))},Q=()=>{$(""),h.value="",m=!1},ae=async()=>{const ce=r==null?void 0:r.model;if(!ce||!n.prop)return;const ne=Ch(ce,n.prop);m=!0,ne.value=xw(g),await it(),Q(),m=!1},Ee=ce=>{u.value.includes(ce)||u.value.push(ce)},le=ce=>{u.value=u.value.filter(ne=>ne!==ce)};ke(()=>n.error,ce=>{h.value=ce||"",$(ce?"error":"")},{immediate:!0}),ke(()=>n.validateStatus,ce=>$(ce||""));const ie=Bt({...Hn(n),$el:p,size:o,validateState:d,labelId:l,inputIds:u,isGroup:N,hasLabel:A,addInputId:Ee,removeInputId:le,resetField:ae,clearValidate:Q,validate:ue});return Nt(yi,ie),Tt(()=>{n.prop&&(r==null||r.addField(ie),g=xw(F.value))}),ln(()=>{r==null||r.removeField(ie)}),t({size:o,validateMessage:h,validateState:d,validate:ue,clearValidate:Q,resetField:ae}),(ce,ne)=>{var pe;return x(),z("div",{ref_key:"formItemRef",ref:p,class:I(c(T)),role:c(N)?"group":void 0,"aria-labelledby":c(N)?c(l):void 0},[G(c(Qq),{"is-auto-width":c(v).width==="auto","update-all":((pe=c(r))==null?void 0:pe.labelWidth)==="auto"},{default:ee(()=>[c(A)?(x(),ve(Mt(c(M)?"label":"div"),{key:0,id:c(l),for:c(M),class:I(c(a).e("label")),style:st(c(v))},{default:ee(()=>[xe(ce.$slots,"label",{label:c(K)},()=>[wt(we(c(K)),1)])]),_:3},8,["id","for","class","style"])):he("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),V("div",{class:I(c(a).e("content")),style:st(c(y))},[xe(ce.$slots,"default"),G(x2,{name:`${c(a).namespace.value}-zoom-in-top`},{default:ee(()=>[c(X)?xe(ce.$slots,"error",{key:0,error:h.value},()=>[V("div",{class:I(c(S))},we(h.value),3)]):he("v-if",!0)]),_:3},8,["name"])],6)],10,Jq)}}});var yA=Ue(eG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const tG=Ot(gq,{FormItem:yA}),nG=Cn(yA);let Or;const sG=`
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
${$O()?"":"overflow:hidden !important;"}
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
`,rG=["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 iG(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),s=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:rG.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:s,borderSize:r,boxSizing:n}}function iC(e,t=1,n){var s;Or||(Or=document.createElement("textarea"),document.body.appendChild(Or));const{paddingSize:r,borderSize:i,boxSizing:o,contextStyle:a}=iG(e);Or.setAttribute("style",`${a};${sG}`),Or.value=e.value||e.placeholder||"";let l=Or.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-r),Or.value="";const d=Or.scrollHeight-r;if(ht(t)){let f=d*t;o==="border-box"&&(f=f+r+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(ht(n)){let f=d*n;o==="border-box"&&(f=f+r+i),l=Math.min(f,l)}return u.height=`${l}px`,(s=Or.parentNode)==null||s.removeChild(Or),Or=void 0,u}const oG=ze({id:{type:String,default:void 0},size:is,disabled:Boolean,modelValue:{type:me([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:me([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:on},prefixIcon:{type:on},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:me([Object,Array,String]),default:()=>pn({})}}),aG={[It]:e=>mt(e),input:e=>mt(e),change:e=>mt(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},lG=["role"],uG=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],cG=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],dG=te({name:"ElInput",inheritAttrs:!1}),fG=te({...dG,props:oG,emits:aG,setup(e,{expose:t,emit:n}){const s=e,r=Eu(),i=es(),o=E(()=>{const Ce={};return s.containerRole==="combobox"&&(Ce["aria-haspopup"]=r["aria-haspopup"],Ce["aria-owns"]=r["aria-owns"],Ce["aria-expanded"]=r["aria-expanded"]),Ce}),a=E(()=>[s.type==="textarea"?v.b():m.b(),m.m(p.value),m.is("disabled",g.value),m.is("exceed",ue.value),{[m.b("group")]:i.prepend||i.append,[m.bm("group","append")]:i.append,[m.bm("group","prepend")]:i.prepend,[m.m("prefix")]:i.prefix||s.prefixIcon,[m.m("suffix")]:i.suffix||s.suffixIcon||s.clearable||s.showPassword,[m.bm("suffix","password-clear")]:$.value&&H.value},r.class]),l=E(()=>[m.e("wrapper"),m.is("focus",_.value)]),u=Xb({excludeKeys:E(()=>Object.keys(o.value))}),{form:d,formItem:f}=Is(),{inputId:h}=Ko(s,{formItemContext:f}),p=Fn(),g=zs(),m=Ne("input"),v=Ne("textarea"),y=nn(),T=nn(),_=B(!1),S=B(!1),w=B(!1),A=B(!1),M=B(),N=nn(s.inputStyle),L=E(()=>y.value||T.value),F=E(()=>{var Ce;return(Ce=d==null?void 0:d.statusIcon)!=null?Ce:!1}),W=E(()=>(f==null?void 0:f.validateState)||""),j=E(()=>W.value&&IO[W.value]),R=E(()=>A.value?OK:yj),q=E(()=>[r.style,s.inputStyle]),X=E(()=>[s.inputStyle,N.value,{resize:s.resize}]),K=E(()=>Kn(s.modelValue)?"":String(s.modelValue)),$=E(()=>s.clearable&&!g.value&&!s.readonly&&!!K.value&&(_.value||S.value)),H=E(()=>s.showPassword&&!g.value&&!s.readonly&&!!K.value&&(!!K.value||_.value)),U=E(()=>s.showWordLimit&&!!u.value.maxlength&&(s.type==="text"||s.type==="textarea")&&!g.value&&!s.readonly&&!s.showPassword),Z=E(()=>K.value.length),ue=E(()=>!!U.value&&Z.value>Number(u.value.maxlength)),Q=E(()=>!!i.suffix||!!s.suffixIcon||$.value||s.showPassword||U.value||!!W.value&&F.value),[ae,Ee]=D7(y);ds(T,Ce=>{if(ce(),!U.value||s.resize!=="both")return;const Ge=Ce[0],{width:ut}=Ge.contentRect;M.value={right:`calc(100% - ${ut+15+6}px)`}});const le=()=>{const{type:Ce,autosize:Ge}=s;if(!(!Ht||Ce!=="textarea"||!T.value))if(Ge){const ut=Pt(Ge)?Ge.minRows:void 0,bt=Pt(Ge)?Ge.maxRows:void 0,ct=iC(T.value,ut,bt);N.value={overflowY:"hidden",...ct},it(()=>{T.value.offsetHeight,N.value=ct})}else N.value={minHeight:iC(T.value).minHeight}},ce=(Ce=>{let Ge=!1;return()=>{var ut;if(Ge||!s.autosize)return;((ut=T.value)==null?void 0:ut.offsetParent)===null||(Ce(),Ge=!0)}})(le),ne=()=>{const Ce=L.value;!Ce||Ce.value===K.value||(Ce.value=K.value)},pe=async Ce=>{ae();let{value:Ge}=Ce.target;if(s.formatter&&(Ge=s.parser?s.parser(Ge):Ge,Ge=s.formatter(Ge)),!w.value){if(Ge===K.value){ne();return}n(It,Ge),n("input",Ge),await it(),ne(),Ee()}},Te=Ce=>{n("change",Ce.target.value)},He=Ce=>{n("compositionstart",Ce),w.value=!0},Y=Ce=>{var Ge;n("compositionupdate",Ce);const ut=(Ge=Ce.target)==null?void 0:Ge.value,bt=ut[ut.length-1]||"";w.value=!Om(bt)},re=Ce=>{n("compositionend",Ce),w.value&&(w.value=!1,pe(Ce))},Se=()=>{A.value=!A.value,Oe()},Oe=async()=>{var Ce;await it(),(Ce=L.value)==null||Ce.focus()},Ve=()=>{var Ce;return(Ce=L.value)==null?void 0:Ce.blur()},_e=Ce=>{_.value=!0,n("focus",Ce)},Be=Ce=>{var Ge;_.value=!1,n("blur",Ce),s.validateEvent&&((Ge=f==null?void 0:f.validate)==null||Ge.call(f,"blur").catch(ut=>void 0))},Ie=Ce=>{S.value=!1,n("mouseleave",Ce)},Ae=Ce=>{S.value=!0,n("mouseenter",Ce)},Me=Ce=>{n("keydown",Ce)},Ye=()=>{var Ce;(Ce=L.value)==null||Ce.select()},qe=()=>{n(It,""),n("change",""),n("clear"),n("input","")};return ke(()=>s.modelValue,()=>{var Ce;it(()=>le()),s.validateEvent&&((Ce=f==null?void 0:f.validate)==null||Ce.call(f,"change").catch(Ge=>void 0))}),ke(K,()=>ne()),ke(()=>s.type,async()=>{await it(),ne(),le()}),Tt(()=>{!s.formatter&&s.parser,ne(),it(le)}),t({input:y,textarea:T,ref:L,textareaStyle:X,autosize:dn(s,"autosize"),focus:Oe,blur:Ve,select:Ye,clear:qe,resizeTextarea:le}),(Ce,Ge)=>gt((x(),z("div",$t(c(o),{class:c(a),style:c(q),role:Ce.containerRole,onMouseenter:Ae,onMouseleave:Ie}),[he(" input "),Ce.type!=="textarea"?(x(),z(et,{key:0},[he(" prepend slot "),Ce.$slots.prepend?(x(),z("div",{key:0,class:I(c(m).be("group","prepend"))},[xe(Ce.$slots,"prepend")],2)):he("v-if",!0),V("div",{class:I(c(l))},[he(" prefix slot "),Ce.$slots.prefix||Ce.prefixIcon?(x(),z("span",{key:0,class:I(c(m).e("prefix"))},[V("span",{class:I(c(m).e("prefix-inner")),onClick:Oe},[xe(Ce.$slots,"prefix"),Ce.prefixIcon?(x(),ve(c(nt),{key:0,class:I(c(m).e("icon"))},{default:ee(()=>[(x(),ve(Mt(Ce.prefixIcon)))]),_:1},8,["class"])):he("v-if",!0)],2)],2)):he("v-if",!0),V("input",$t({id:c(h),ref_key:"input",ref:y,class:c(m).e("inner")},c(u),{type:Ce.showPassword?A.value?"text":"password":Ce.type,disabled:c(g),formatter:Ce.formatter,parser:Ce.parser,readonly:Ce.readonly,autocomplete:Ce.autocomplete,tabindex:Ce.tabindex,"aria-label":Ce.label,placeholder:Ce.placeholder,style:Ce.inputStyle,form:s.form,onCompositionstart:He,onCompositionupdate:Y,onCompositionend:re,onInput:pe,onFocus:_e,onBlur:Be,onChange:Te,onKeydown:Me}),null,16,uG),he(" suffix slot "),c(Q)?(x(),z("span",{key:1,class:I(c(m).e("suffix"))},[V("span",{class:I(c(m).e("suffix-inner")),onClick:Oe},[!c($)||!c(H)||!c(U)?(x(),z(et,{key:0},[xe(Ce.$slots,"suffix"),Ce.suffixIcon?(x(),ve(c(nt),{key:0,class:I(c(m).e("icon"))},{default:ee(()=>[(x(),ve(Mt(Ce.suffixIcon)))]),_:1},8,["class"])):he("v-if",!0)],64)):he("v-if",!0),c($)?(x(),ve(c(nt),{key:1,class:I([c(m).e("icon"),c(m).e("clear")]),onMousedown:ft(c(Zt),["prevent"]),onClick:qe},{default:ee(()=>[G(c(Ho))]),_:1},8,["class","onMousedown"])):he("v-if",!0),c(H)?(x(),ve(c(nt),{key:2,class:I([c(m).e("icon"),c(m).e("password")]),onClick:Se},{default:ee(()=>[(x(),ve(Mt(c(R))))]),_:1},8,["class"])):he("v-if",!0),c(U)?(x(),z("span",{key:3,class:I(c(m).e("count"))},[V("span",{class:I(c(m).e("count-inner"))},we(c(Z))+" / "+we(c(u).maxlength),3)],2)):he("v-if",!0),c(W)&&c(j)&&c(F)?(x(),ve(c(nt),{key:4,class:I([c(m).e("icon"),c(m).e("validateIcon"),c(m).is("loading",c(W)==="validating")])},{default:ee(()=>[(x(),ve(Mt(c(j))))]),_:1},8,["class"])):he("v-if",!0)],2)],2)):he("v-if",!0)],2),he(" append slot "),Ce.$slots.append?(x(),z("div",{key:1,class:I(c(m).be("group","append"))},[xe(Ce.$slots,"append")],2)):he("v-if",!0)],64)):(x(),z(et,{key:1},[he(" textarea "),V("textarea",$t({id:c(h),ref_key:"textarea",ref:T,class:c(v).e("inner")},c(u),{tabindex:Ce.tabindex,disabled:c(g),readonly:Ce.readonly,autocomplete:Ce.autocomplete,style:c(X),"aria-label":Ce.label,placeholder:Ce.placeholder,form:s.form,onCompositionstart:He,onCompositionupdate:Y,onCompositionend:re,onInput:pe,onFocus:_e,onBlur:Be,onChange:Te,onKeydown:Me}),null,16,cG),c(U)?(x(),z("span",{key:0,style:st(M.value),class:I(c(m).e("count"))},we(c(Z))+" / "+we(c(u).maxlength),7)):he("v-if",!0)],64))],16,lG)),[[Ut,Ce.type!=="hidden"]])}});var hG=Ue(fG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ls=Ot(hG),gl=4,bA={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"}},pG=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),_A=Symbol("scrollbarContextKey"),mG=ze({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),gG="Thumb",vG=te({__name:"thumb",props:mG,setup(e){const t=e,n=Qe(_A),s=Ne("scrollbar");n||zn(gG,"can not inject scrollbar context");const r=B(),i=B(),o=B({}),a=B(!1);let l=!1,u=!1,d=Ht?document.onselectstart:null;const f=E(()=>bA[t.vertical?"vertical":"horizontal"]),h=E(()=>pG({size:t.size,move:t.move,bar:f.value})),p=E(()=>r.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),g=A=>{var M;if(A.stopPropagation(),A.ctrlKey||[1,2].includes(A.button))return;(M=window.getSelection())==null||M.removeAllRanges(),v(A);const N=A.currentTarget;N&&(o.value[f.value.axis]=N[f.value.offset]-(A[f.value.client]-N.getBoundingClientRect()[f.value.direction]))},m=A=>{if(!i.value||!r.value||!n.wrapElement)return;const M=Math.abs(A.target.getBoundingClientRect()[f.value.direction]-A[f.value.client]),N=i.value[f.value.offset]/2,L=(M-N)*100*p.value/r.value[f.value.offset];n.wrapElement[f.value.scroll]=L*n.wrapElement[f.value.scrollSize]/100},v=A=>{A.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",T),d=document.onselectstart,document.onselectstart=()=>!1},y=A=>{if(!r.value||!i.value||l===!1)return;const M=o.value[f.value.axis];if(!M)return;const N=(r.value.getBoundingClientRect()[f.value.direction]-A[f.value.client])*-1,L=i.value[f.value.offset]-M,F=(N-L)*100*p.value/r.value[f.value.offset];n.wrapElement[f.value.scroll]=F*n.wrapElement[f.value.scrollSize]/100},T=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",T),w(),u&&(a.value=!1)},_=()=>{u=!1,a.value=!!t.size},S=()=>{u=!0,a.value=l};ln(()=>{w(),document.removeEventListener("mouseup",T)});const w=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return mn(dn(n,"scrollbarElement"),"mousemove",_),mn(dn(n,"scrollbarElement"),"mouseleave",S),(A,M)=>(x(),ve(Pn,{name:c(s).b("fade"),persisted:""},{default:ee(()=>[gt(V("div",{ref_key:"instance",ref:r,class:I([c(s).e("bar"),c(s).is(c(f).key)]),onMousedown:m},[V("div",{ref_key:"thumb",ref:i,class:I(c(s).e("thumb")),style:st(c(h)),onMousedown:g},null,38)],34),[[Ut,A.always||a.value]])]),_:1},8,["name"]))}});var oC=Ue(vG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const yG=ze({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),bG=te({__name:"bar",props:yG,setup(e,{expose:t}){const n=e,s=B(0),r=B(0);return t({handleScroll:o=>{if(o){const a=o.offsetHeight-gl,l=o.offsetWidth-gl;r.value=o.scrollTop*100/a*n.ratioY,s.value=o.scrollLeft*100/l*n.ratioX}}}),(o,a)=>(x(),z(et,null,[G(oC,{move:s.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),G(oC,{move:r.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var _G=Ue(bG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const TG=ze({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:me([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}}),SG={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ht)},wG="ElScrollbar",CG=te({name:wG}),EG=te({...CG,props:TG,emits:SG,setup(e,{expose:t,emit:n}){const s=e,r=Ne("scrollbar");let i,o;const a=B(),l=B(),u=B(),d=B("0"),f=B("0"),h=B(),p=B(1),g=B(1),m=E(()=>{const M={};return s.height&&(M.height=An(s.height)),s.maxHeight&&(M.maxHeight=An(s.maxHeight)),[s.wrapStyle,M]}),v=E(()=>[s.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!s.native}]),y=E(()=>[r.e("view"),s.viewClass]),T=()=>{var M;l.value&&((M=h.value)==null||M.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(M,N){Pt(M)?l.value.scrollTo(M):ht(M)&&ht(N)&&l.value.scrollTo(M,N)}const S=M=>{ht(M)&&(l.value.scrollTop=M)},w=M=>{ht(M)&&(l.value.scrollLeft=M)},A=()=>{if(!l.value)return;const M=l.value.offsetHeight-gl,N=l.value.offsetWidth-gl,L=M**2/l.value.scrollHeight,F=N**2/l.value.scrollWidth,W=Math.max(L,s.minSize),j=Math.max(F,s.minSize);p.value=L/(M-L)/(W/(M-W)),g.value=F/(N-F)/(j/(N-j)),f.value=W+gl<M?`${W}px`:"",d.value=j+gl<N?`${j}px`:""};return ke(()=>s.noresize,M=>{M?(i==null||i(),o==null||o()):({stop:i}=ds(u,A),o=mn("resize",A))},{immediate:!0}),ke(()=>[s.maxHeight,s.height],()=>{s.native||it(()=>{var M;A(),l.value&&((M=h.value)==null||M.handleScroll(l.value))})}),Nt(_A,Bt({scrollbarElement:a,wrapElement:l})),Tt(()=>{s.native||it(()=>{A()})}),to(()=>A()),t({wrapRef:l,update:A,scrollTo:_,setScrollTop:S,setScrollLeft:w,handleScroll:T}),(M,N)=>(x(),z("div",{ref_key:"scrollbarRef",ref:a,class:I(c(r).b())},[V("div",{ref_key:"wrapRef",ref:l,class:I(c(v)),style:st(c(m)),onScroll:T},[(x(),ve(Mt(M.tag),{ref_key:"resizeRef",ref:u,class:I(c(y)),style:st(M.viewStyle)},{default:ee(()=>[xe(M.$slots,"default")]),_:3},8,["class","style"]))],38),M.native?he("v-if",!0):(x(),ve(_G,{key:0,ref_key:"barRef",ref:h,height:f.value,width:d.value,always:M.always,"ratio-x":g.value,"ratio-y":p.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var xG=Ue(EG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ro=Ot(xG),f_=Symbol("popper"),TA=Symbol("popperContent"),kG=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],SA=ze({role:{type:String,values:kG,default:"tooltip"}}),OG=te({name:"ElPopper",inheritAttrs:!1}),AG=te({...OG,props:SA,setup(e,{expose:t}){const n=e,s=B(),r=B(),i=B(),o=B(),a=E(()=>n.role),l={triggerRef:s,popperInstanceRef:r,contentRef:i,referenceRef:o,role:a};return t(l),Nt(f_,l),(u,d)=>xe(u.$slots,"default")}});var IG=Ue(AG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const wA=ze({arrowOffset:{type:Number,default:5}}),PG=te({name:"ElPopperArrow",inheritAttrs:!1}),$G=te({...PG,props:wA,setup(e,{expose:t}){const n=e,s=Ne("popper"),{arrowOffset:r,arrowRef:i,arrowStyle:o}=Qe(TA,void 0);return ke(()=>n.arrowOffset,a=>{r.value=a}),ln(()=>{i.value=void 0}),t({arrowRef:i}),(a,l)=>(x(),z("span",{ref_key:"arrowRef",ref:i,class:I(c(s).e("arrow")),style:st(c(o)),"data-popper-arrow":""},null,6))}});var NG=Ue($G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const MG="ElOnlyChild",CA=te({name:MG,setup(e,{slots:t,attrs:n}){var s;const r=Qe(eA),i=T7((s=r==null?void 0:r.setForwardRef)!=null?s:Zt);return()=>{var o;const a=(o=t.default)==null?void 0:o.call(t,n);if(!a||a.length>1)return null;const l=EA(a);return l?gt(Wi(l,n),[[i]]):null}}});function EA(e){if(!e)return null;const t=e;for(const n of t){if(Pt(n))switch(n.type){case Ss:continue;case Cu:case"svg":return aC(n);case et:return EA(n.children);default:return n}return aC(n)}return null}function aC(e){const t=Ne("only-child");return G("span",{class:t.e("content")},[e])}const xA=ze({virtualRef:{type:me(Object)},virtualTriggering:Boolean,onMouseenter:{type:me(Function)},onMouseleave:{type:me(Function)},onClick:{type:me(Function)},onKeydown:{type:me(Function)},onFocus:{type:me(Function)},onBlur:{type:me(Function)},onContextmenu:{type:me(Function)},id:String,open:Boolean}),RG=te({name:"ElPopperTrigger",inheritAttrs:!1}),LG=te({...RG,props:xA,setup(e,{expose:t}){const n=e,{role:s,triggerRef:r}=Qe(f_,void 0);_7(r);const i=E(()=>a.value?n.id:void 0),o=E(()=>{if(s&&s.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=E(()=>{if(s&&s.value!=="tooltip")return s.value}),l=E(()=>a.value?`${n.open}`:void 0);let u;return Tt(()=>{ke(()=>n.virtualRef,d=>{d&&(r.value=Qs(d))},{immediate:!0}),ke(r,(d,f)=>{u==null||u(),u=void 0,Ur(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{var p;const g=n[h];g&&(d.addEventListener(h.slice(2).toLowerCase(),g),(p=f==null?void 0:f.removeEventListener)==null||p.call(f,h.slice(2).toLowerCase(),g))}),u=ke([i,o,a,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{Kn(h[g])?d.removeAttribute(p):d.setAttribute(p,h[g])})},{immediate:!0})),Ur(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>f.removeAttribute(h))},{immediate:!0})}),ln(()=>{u==null||u(),u=void 0}),t({triggerRef:r}),(d,f)=>d.virtualTriggering?he("v-if",!0):(x(),ve(c(CA),$t({key:0},d.$attrs,{"aria-controls":c(i),"aria-describedby":c(o),"aria-expanded":c(l),"aria-haspopup":c(a)}),{default:ee(()=>[xe(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var DG=Ue(LG,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Xg="focus-trap.focus-after-trapped",Qg="focus-trap.focus-after-released",FG="focus-trap.focusout-prevented",lC={cancelable:!0,bubbles:!1},BG={cancelable:!0,bubbles:!1},uC="focusAfterTrapped",cC="focusAfterReleased",h_=Symbol("elFocusTrap"),p_=B(),Lm=B(0),m_=B(0);let Qf=0;const kA=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0||s===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},dC=(e,t)=>{for(const n of e)if(!VG(n,t))return n},VG=(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},UG=e=>{const t=kA(e),n=dC(t,e),s=dC(t.reverse(),e);return[n,s]},HG=e=>e instanceof HTMLInputElement&&"select"in e,mo=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),m_.value=window.performance.now(),e!==n&&HG(e)&&t&&e.select()}};function fC(e,t){const n=[...e],s=e.indexOf(t);return s!==-1&&n.splice(s,1),n}const zG=()=>{let e=[];return{push:s=>{const r=e[0];r&&s!==r&&r.pause(),e=fC(e,s),e.unshift(s)},remove:s=>{var r,i;e=fC(e,s),(i=(r=e[0])==null?void 0:r.resume)==null||i.call(r)}}},jG=(e,t=!1)=>{const n=document.activeElement;for(const s of e)if(mo(s,t),document.activeElement!==n)return},hC=zG(),KG=()=>Lm.value>m_.value,Jf=()=>{p_.value="pointer",Lm.value=window.performance.now()},pC=()=>{p_.value="keyboard",Lm.value=window.performance.now()},WG=()=>(Tt(()=>{Qf===0&&(document.addEventListener("mousedown",Jf),document.addEventListener("touchstart",Jf),document.addEventListener("keydown",pC)),Qf++}),ln(()=>{Qf--,Qf<=0&&(document.removeEventListener("mousedown",Jf),document.removeEventListener("touchstart",Jf),document.removeEventListener("keydown",pC))}),{focusReason:p_,lastUserFocusTimestamp:Lm,lastAutomatedFocusTimestamp:m_}),Zf=e=>new CustomEvent(FG,{...BG,detail:e}),qG=te({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[uC,cC,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=B();let s,r;const{focusReason:i}=WG();g7(g=>{e.trapped&&!o.paused&&t("release-requested",g)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=g=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:m,altKey:v,ctrlKey:y,metaKey:T,currentTarget:_,shiftKey:S}=g,{loop:w}=e,A=m===at.tab&&!v&&!y&&!T,M=document.activeElement;if(A&&M){const N=_,[L,F]=UG(N);if(L&&F){if(!S&&M===F){const j=Zf({focusReason:i.value});t("focusout-prevented",j),j.defaultPrevented||(g.preventDefault(),w&&mo(L,!0))}else if(S&&[L,N].includes(M)){const j=Zf({focusReason:i.value});t("focusout-prevented",j),j.defaultPrevented||(g.preventDefault(),w&&mo(F,!0))}}else if(M===N){const j=Zf({focusReason:i.value});t("focusout-prevented",j),j.defaultPrevented||g.preventDefault()}}};Nt(h_,{focusTrapRef:n,onKeydown:a}),ke(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),ke([n],([g],[m])=>{g&&(g.addEventListener("keydown",a),g.addEventListener("focusin",d),g.addEventListener("focusout",f)),m&&(m.removeEventListener("keydown",a),m.removeEventListener("focusin",d),m.removeEventListener("focusout",f))});const l=g=>{t(uC,g)},u=g=>t(cC,g),d=g=>{const m=c(n);if(!m)return;const v=g.target,y=g.relatedTarget,T=v&&m.contains(v);e.trapped||y&&m.contains(y)||(s=y),T&&t("focusin",g),!o.paused&&e.trapped&&(T?r=v:mo(r,!0))},f=g=>{const m=c(n);if(!(o.paused||!m))if(e.trapped){const v=g.relatedTarget;!Kn(v)&&!m.contains(v)&&setTimeout(()=>{if(!o.paused&&e.trapped){const y=Zf({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||mo(r,!0)}},0)}else{const v=g.target;v&&m.contains(v)||t("focusout",g)}};async function h(){await it();const g=c(n);if(g){hC.push(o);const m=g.contains(document.activeElement)?s:document.activeElement;if(s=m,!g.contains(m)){const y=new Event(Xg,lC);g.addEventListener(Xg,l),g.dispatchEvent(y),y.defaultPrevented||it(()=>{let T=e.focusStartEl;mt(T)||(mo(T),document.activeElement!==T&&(T="first")),T==="first"&&jG(kA(g),!0),(document.activeElement===m||T==="container")&&mo(g)})}}}function p(){const g=c(n);if(g){g.removeEventListener(Xg,l);const m=new CustomEvent(Qg,{...lC,detail:{focusReason:i.value}});g.addEventListener(Qg,u),g.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!KG()||g.contains(document.activeElement))&&mo(s??document.body),g.removeEventListener(Qg,l),hC.remove(o)}}return Tt(()=>{e.trapped&&h(),ke(()=>e.trapped,g=>{g?h():p()})}),ln(()=>{e.trapped&&p()}),{onKeydown:a}}});function GG(e,t,n,s,r,i){return xe(e.$slots,"default",{handleKeydown:e.onKeydown})}var Dm=Ue(qG,[["render",GG],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const YG=["fixed","absolute"],XG=ze({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:me(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:za,default:"bottom"},popperOptions:{type:me(Object),default:()=>({})},strategy:{type:String,values:YG,default:"absolute"}}),OA=ze({...XG,id:String,style:{type:me([String,Array,Object])},className:{type:me([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:me([String,Array,Object])},popperStyle:{type:me([String,Array,Object])},referenceEl:{type:me(Object)},triggerTargetEl:{type:me(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),QG={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},JG=(e,t=[])=>{const{placement:n,strategy:s,popperOptions:r}=e,i={placement:n,strategy:s,...r,modifiers:[...eY(e),...t]};return tY(i,r==null?void 0:r.modifiers),i},ZG=e=>{if(Ht)return Qs(e)};function eY(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:s}=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:s}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function tY(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const nY=0,sY=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:s,role:r}=Qe(f_,void 0),i=B(),o=B(),a=E(()=>({name:"eventListeners",enabled:!!e.visible})),l=E(()=>{var y;const T=c(i),_=(y=c(o))!=null?y:nY;return{name:"arrow",enabled:!MU(T),options:{element:T,padding:_}}}),u=E(()=>({onFirstUpdate:()=>{g()},...JG(e,[c(l),c(a)])})),d=E(()=>ZG(e.referenceEl)||c(s)),{attributes:f,state:h,styles:p,update:g,forceUpdate:m,instanceRef:v}=d7(d,n,u);return ke(v,y=>t.value=y),Tt(()=>{ke(()=>{var y;return(y=c(d))==null?void 0:y.getBoundingClientRect()},()=>{g()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:v,state:h,styles:p,role:r,forceUpdate:m,update:g}},rY=(e,{attributes:t,styles:n,role:s})=>{const{nextZIndex:r}=ja(),i=Ne("popper"),o=E(()=>c(t).popper),a=B(e.zIndex||r()),l=E(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=E(()=>[{zIndex:c(a)},e.popperStyle||{},c(n).popper]),d=E(()=>s.value==="dialog"?"false":void 0),f=E(()=>c(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:a,updateZIndex:()=>{a.value=e.zIndex||r()}}},iY=(e,t)=>{const n=B(!1),s=B();return{focusStartRef:s,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(s.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(s.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")}}},oY=te({name:"ElPopperContent"}),aY=te({...oY,props:OA,emits:QG,setup(e,{expose:t,emit:n}){const s=e,{focusStartRef:r,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:d}=iY(s,n),{attributes:f,arrowRef:h,contentRef:p,styles:g,instanceRef:m,role:v,update:y}=sY(s),{ariaModal:T,arrowStyle:_,contentAttrs:S,contentClass:w,contentStyle:A,updateZIndex:M}=rY(s,{styles:g,attributes:f,role:v}),N=Qe(yi,void 0),L=B();Nt(TA,{arrowStyle:_,arrowRef:h,arrowOffset:L}),N&&(N.addInputId||N.removeInputId)&&Nt(yi,{...N,addInputId:Zt,removeInputId:Zt});let F;const W=(R=!0)=>{y(),R&&M()},j=()=>{W(!1),s.visible&&s.focusOnShow?i.value=!0:s.visible===!1&&(i.value=!1)};return Tt(()=>{ke(()=>s.triggerTargetEl,(R,q)=>{F==null||F(),F=void 0;const X=c(R||p.value),K=c(q||p.value);Ur(X)&&(F=ke([v,()=>s.ariaLabel,T,()=>s.id],$=>{["role","aria-label","aria-modal","id"].forEach((H,U)=>{Kn($[U])?X.removeAttribute(H):X.setAttribute(H,$[U])})},{immediate:!0})),K!==X&&Ur(K)&&["role","aria-label","aria-modal","id"].forEach($=>{K.removeAttribute($)})},{immediate:!0}),ke(()=>s.visible,j,{immediate:!0})}),ln(()=>{F==null||F(),F=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:W,contentStyle:A}),(R,q)=>(x(),z("div",$t({ref_key:"contentRef",ref:p},c(S),{style:c(A),class:c(w),tabindex:"-1",onMouseenter:q[0]||(q[0]=X=>R.$emit("mouseenter",X)),onMouseleave:q[1]||(q[1]=X=>R.$emit("mouseleave",X))}),[G(c(Dm),{trapped:c(i),"trap-on-focus-in":!0,"focus-trap-el":c(p),"focus-start-el":c(r),onFocusAfterTrapped:c(a),onFocusAfterReleased:c(o),onFocusin:c(l),onFocusoutPrevented:c(u),onReleaseRequested:c(d)},{default:ee(()=>[xe(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var lY=Ue(aY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const AA=Ot(IG),Fm=Symbol("elTooltip"),Gn=ze({...b7,...OA,appendTo:{type:me([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:me(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),hd=ze({...xA,disabled:Boolean,trigger:{type:me([String,Array]),default:"hover"},triggerKeys:{type:me(Array),default:()=>[at.enter,at.space]}}),{useModelToggleProps:uY,useModelToggleEmits:cY,useModelToggle:dY}=DO("visible"),fY=ze({...SA,...uY,...Gn,...hd,...wA,showArrow:{type:Boolean,default:!0}}),hY=[...cY,"before-show","before-hide","show","hide","open","close"],pY=(e,t)=>tt(e)?e.includes(t):e===t,Za=(e,t,n)=>s=>{pY(c(e),t)&&n(s)},mY=te({name:"ElTooltipTrigger"}),gY=te({...mY,props:hd,setup(e,{expose:t}){const n=e,s=Ne("tooltip"),{controlled:r,id:i,open:o,onOpen:a,onClose:l,onToggle:u}=Qe(Fm,void 0),d=B(null),f=()=>{if(c(r)||n.disabled)return!0},h=dn(n,"trigger"),p=_n(f,Za(h,"hover",a)),g=_n(f,Za(h,"hover",l)),m=_n(f,Za(h,"click",S=>{S.button===0&&u(S)})),v=_n(f,Za(h,"focus",a)),y=_n(f,Za(h,"focus",l)),T=_n(f,Za(h,"contextmenu",S=>{S.preventDefault(),u(S)})),_=_n(f,S=>{const{code:w}=S;n.triggerKeys.includes(w)&&(S.preventDefault(),u(S))});return t({triggerRef:d}),(S,w)=>(x(),ve(c(DG),{id:c(i),"virtual-ref":S.virtualRef,open:c(o),"virtual-triggering":S.virtualTriggering,class:I(c(s).e("trigger")),onBlur:c(y),onClick:c(m),onContextmenu:c(T),onFocus:c(v),onMouseenter:c(p),onMouseleave:c(g),onKeydown:c(_)},{default:ee(()=>[xe(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var vY=Ue(gY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const yY=te({name:"ElTooltipContent",inheritAttrs:!1}),bY=te({...yY,props:Gn,setup(e,{expose:t}){const n=e,{selector:s}=JO(),r=Ne("tooltip"),i=B(null),o=B(!1),{controlled:a,id:l,open:u,trigger:d,onClose:f,onOpen:h,onShow:p,onHide:g,onBeforeShow:m,onBeforeHide:v}=Qe(Fm,void 0),y=E(()=>n.transition||`${r.namespace.value}-fade-in-linear`),T=E(()=>n.persistent);ln(()=>{o.value=!0});const _=E(()=>c(T)?!0:c(u)),S=E(()=>n.disabled?!1:c(u)),w=E(()=>n.appendTo||s.value),A=E(()=>{var $;return($=n.style)!=null?$:{}}),M=E(()=>!c(u)),N=()=>{g()},L=()=>{if(c(a))return!0},F=_n(L,()=>{n.enterable&&c(d)==="hover"&&h()}),W=_n(L,()=>{c(d)==="hover"&&f()}),j=()=>{var $,H;(H=($=i.value)==null?void 0:$.updatePopper)==null||H.call($),m==null||m()},R=()=>{v==null||v()},q=()=>{p(),K=kb(E(()=>{var $;return($=i.value)==null?void 0:$.popperContentRef}),()=>{if(c(a))return;c(d)!=="hover"&&f()})},X=()=>{n.virtualTriggering||f()};let K;return ke(()=>c(u),$=>{$||K==null||K()},{flush:"post"}),ke(()=>n.content,()=>{var $,H;(H=($=i.value)==null?void 0:$.updatePopper)==null||H.call($)}),t({contentRef:i}),($,H)=>(x(),ve(Fd,{disabled:!$.teleported,to:c(w)},[G(Pn,{name:c(y),onAfterLeave:N,onBeforeEnter:j,onAfterEnter:q,onBeforeLeave:R},{default:ee(()=>[c(_)?gt((x(),ve(c(lY),$t({key:0,id:c(l),ref_key:"contentRef",ref:i},$.$attrs,{"aria-label":$.ariaLabel,"aria-hidden":c(M),"boundaries-padding":$.boundariesPadding,"fallback-placements":$.fallbackPlacements,"gpu-acceleration":$.gpuAcceleration,offset:$.offset,placement:$.placement,"popper-options":$.popperOptions,strategy:$.strategy,effect:$.effect,enterable:$.enterable,pure:$.pure,"popper-class":$.popperClass,"popper-style":[$.popperStyle,c(A)],"reference-el":$.referenceEl,"trigger-target-el":$.triggerTargetEl,visible:c(S),"z-index":$.zIndex,onMouseenter:c(F),onMouseleave:c(W),onBlur:X,onClose:c(f)}),{default:ee(()=>[o.value?he("v-if",!0):xe($.$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"])),[[Ut,c(S)]]):he("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var _Y=Ue(bY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const TY=["innerHTML"],SY={key:1},wY=te({name:"ElTooltip"}),CY=te({...wY,props:fY,emits:hY,setup(e,{expose:t,emit:n}){const s=e;y7();const r=Tr(),i=B(),o=B(),a=()=>{var y;const T=c(i);T&&((y=T.popperInstanceRef)==null||y.update())},l=B(!1),u=B(),{show:d,hide:f,hasUpdateHandler:h}=dY({indicator:l,toggleReason:u}),{onOpen:p,onClose:g}=ZO({showAfter:dn(s,"showAfter"),hideAfter:dn(s,"hideAfter"),autoClose:dn(s,"autoClose"),open:d,close:f}),m=E(()=>Dn(s.visible)&&!h.value);Nt(Fm,{controlled:m,id:r,open:Fa(l),trigger:dn(s,"trigger"),onOpen:y=>{p(y)},onClose:y=>{g(y)},onToggle:y=>{c(l)?g(y):p(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:a}),ke(()=>s.disabled,y=>{y&&l.value&&(l.value=!1)});const v=()=>{var y,T;const _=(T=(y=o.value)==null?void 0:y.contentRef)==null?void 0:T.popperContentRef;return _&&_.contains(document.activeElement)};return e2(()=>l.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:v,updatePopper:a,onOpen:p,onClose:g,hide:f}),(y,T)=>(x(),ve(c(AA),{ref_key:"popperRef",ref:i,role:y.role},{default:ee(()=>[G(vY,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:ee(()=>[y.$slots.default?xe(y.$slots,"default",{key:0}):he("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),G(_Y,{ref_key:"contentRef",ref:o,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:ee(()=>[xe(y.$slots,"content",{},()=>[y.rawContent?(x(),z("span",{key:0,innerHTML:y.content},null,8,TY)):(x(),z("span",SY,we(y.content),1))]),y.showArrow?(x(),ve(c(NG),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):he("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 EY=Ue(CY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const As=Ot(EY),xY=ze({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:me(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:me([Function,Array]),default:Zt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Gn.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),kY={[It]:e=>mt(e),[Cs]:e=>mt(e),[an]:e=>mt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Pt(e)},OY=["aria-expanded","aria-owns"],AY={key:0},IY=["id","aria-selected","onClick"],IA="ElAutocomplete",PY=te({name:IA,inheritAttrs:!1}),$Y=te({...PY,props:xY,emits:kY,setup(e,{expose:t,emit:n}){const s=e,r=Xb(),i=Eu(),o=zs(),a=Ne("autocomplete"),l=B(),u=B(),d=B(),f=B();let h=!1,p=!1;const g=B([]),m=B(-1),v=B(""),y=B(!1),T=B(!1),_=B(!1),S=E(()=>a.b(String(Im()))),w=E(()=>i.style),A=E(()=>(g.value.length>0||_.value)&&y.value),M=E(()=>!s.hideLoading&&_.value),N=E(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),L=async()=>{await it(),A.value&&(v.value=`${l.value.$el.offsetWidth}px`)},F=()=>{m.value=-1},j=Os(async ie=>{if(T.value)return;const ce=ne=>{_.value=!1,!T.value&&(tt(ne)?(g.value=ne,m.value=s.highlightFirstItem?0:-1):zn(IA,"autocomplete suggestions must be an array"))};if(_.value=!0,tt(s.fetchSuggestions))ce(s.fetchSuggestions);else{const ne=await s.fetchSuggestions(ie,ce);tt(ne)&&ce(ne)}},s.debounce),R=ie=>{const ce=!!ie;if(n(Cs,ie),n(It,ie),T.value=!1,y.value||(y.value=ce),!s.triggerOnFocus&&!ie){T.value=!0,g.value=[];return}j(ie)},q=ie=>{var ce;o.value||(((ce=ie.target)==null?void 0:ce.tagName)!=="INPUT"||N.value.includes(document.activeElement))&&(y.value=!0)},X=ie=>{n(an,ie)},K=ie=>{p?p=!1:(y.value=!0,n("focus",ie),s.triggerOnFocus&&!h&&j(String(s.modelValue)))},$=ie=>{setTimeout(()=>{var ce;if((ce=d.value)!=null&&ce.isFocusInsideContent()){p=!0;return}y.value&&ue(),n("blur",ie)})},H=()=>{y.value=!1,n(It,""),n("clear")},U=async()=>{A.value&&m.value>=0&&m.value<g.value.length?Ee(g.value[m.value]):s.selectWhenUnmatched&&(n("select",{value:s.modelValue}),g.value=[],m.value=-1)},Z=ie=>{A.value&&(ie.preventDefault(),ie.stopPropagation(),ue())},ue=()=>{y.value=!1},Q=()=>{var ie;(ie=l.value)==null||ie.focus()},ae=()=>{var ie;(ie=l.value)==null||ie.blur()},Ee=async ie=>{n(Cs,ie[s.valueKey]),n(It,ie[s.valueKey]),n("select",ie),g.value=[],m.value=-1},le=ie=>{if(!A.value||_.value)return;if(ie<0){m.value=-1;return}ie>=g.value.length&&(ie=g.value.length-1);const ce=u.value.querySelector(`.${a.be("suggestion","wrap")}`),pe=ce.querySelectorAll(`.${a.be("suggestion","list")} li`)[ie],Te=ce.scrollTop,{offsetTop:He,scrollHeight:Y}=pe;He+Y>Te+ce.clientHeight&&(ce.scrollTop+=Y),He<Te&&(ce.scrollTop-=Y),m.value=ie,l.value.ref.setAttribute("aria-activedescendant",`${S.value}-item-${m.value}`)};return kb(f,()=>{A.value&&ue()}),Tt(()=>{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",`${S.value}-item-${m.value}`),h=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:m,activated:y,loading:_,inputRef:l,popperRef:d,suggestions:g,handleSelect:Ee,handleKeyEnter:U,focus:Q,blur:ae,close:ue,highlight:le}),(ie,ce)=>(x(),ve(c(As),{ref_key:"popperRef",ref:d,visible:c(A),placement:ie.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[c(a).e("popper"),ie.popperClass],teleported:ie.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${c(a).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:L,onHide:F},{content:ee(()=>[V("div",{ref_key:"regionRef",ref:u,class:I([c(a).b("suggestion"),c(a).is("loading",c(M))]),style:st({[ie.fitInputWidth?"width":"minWidth"]:v.value,outline:"none"}),role:"region"},[G(c(ro),{id:c(S),tag:"ul","wrap-class":c(a).be("suggestion","wrap"),"view-class":c(a).be("suggestion","list"),role:"listbox"},{default:ee(()=>[c(M)?(x(),z("li",AY,[G(c(nt),{class:I(c(a).is("loading"))},{default:ee(()=>[G(c(zo))]),_:1},8,["class"])])):(x(!0),z(et,{key:1},kt(g.value,(ne,pe)=>(x(),z("li",{id:`${c(S)}-item-${pe}`,key:pe,class:I({highlighted:m.value===pe}),role:"option","aria-selected":m.value===pe,onClick:Te=>Ee(ne)},[xe(ie.$slots,"default",{item:ne},()=>[wt(we(ne[ie.valueKey]),1)])],10,IY))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:ee(()=>[V("div",{ref_key:"listboxRef",ref:f,class:I([c(a).b(),ie.$attrs.class]),style:st(c(w)),role:"combobox","aria-haspopup":"listbox","aria-expanded":c(A),"aria-owns":c(S)},[G(c(ls),$t({ref_key:"inputRef",ref:l},c(r),{clearable:ie.clearable,disabled:c(o),name:ie.name,"model-value":ie.modelValue,onInput:R,onChange:X,onFocus:K,onBlur:$,onClear:H,onKeydown:[ce[0]||(ce[0]=zt(ft(ne=>le(m.value-1),["prevent"]),["up"])),ce[1]||(ce[1]=zt(ft(ne=>le(m.value+1),["prevent"]),["down"])),zt(U,["enter"]),zt(ue,["tab"]),zt(Z,["esc"])],onMousedown:q}),Ki({_:2},[ie.$slots.prepend?{name:"prepend",fn:ee(()=>[xe(ie.$slots,"prepend")])}:void 0,ie.$slots.append?{name:"append",fn:ee(()=>[xe(ie.$slots,"append")])}:void 0,ie.$slots.prefix?{name:"prefix",fn:ee(()=>[xe(ie.$slots,"prefix")])}:void 0,ie.$slots.suffix?{name:"suffix",fn:ee(()=>[xe(ie.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,OY)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var NY=Ue($Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const MY=Ot(NY),RY=ze({size:{type:[Number,String],values:Ci,default:"",validator:e=>ht(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:on},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:me(String),default:"cover"}}),LY={error:e=>e instanceof Event},DY=["src","alt","srcset"],FY=te({name:"ElAvatar"}),BY=te({...FY,props:RY,emits:LY,setup(e,{emit:t}){const n=e,s=Ne("avatar"),r=B(!1),i=E(()=>{const{size:u,icon:d,shape:f}=n,h=[s.b()];return mt(u)&&h.push(s.m(u)),d&&h.push(s.m("icon")),f&&h.push(s.m(f)),h}),o=E(()=>{const{size:u}=n;return ht(u)?s.cssVarBlock({size:An(u)||""}):void 0}),a=E(()=>({objectFit:n.fit}));ke(()=>n.src,()=>r.value=!1);function l(u){r.value=!0,t("error",u)}return(u,d)=>(x(),z("span",{class:I(c(i)),style:st(c(o))},[(u.src||u.srcSet)&&!r.value?(x(),z("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:st(c(a)),onError:l},null,44,DY)):u.icon?(x(),ve(c(nt),{key:1},{default:ee(()=>[(x(),ve(Mt(u.icon)))]),_:1})):xe(u.$slots,"default",{key:2})],6))}});var VY=Ue(BY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const UY=Ot(VY),HY={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},zY={click:e=>e instanceof MouseEvent},jY=(e,t,n)=>{const s=nn(),r=nn(),i=B(!1),o=()=>{s.value&&(i.value=s.value.scrollTop>=e.visibilityHeight)},a=u=>{var d;(d=s.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=R2(o,300,!0);return mn(r,"scroll",l),Tt(()=>{var u;r.value=document,s.value=document.documentElement,e.target&&(s.value=(u=document.querySelector(e.target))!=null?u:void 0,s.value||zn(n,`target does not exist: ${e.target}`),r.value=s.value)}),{visible:i,handleClick:a}},PA="ElBacktop",KY=te({name:PA}),WY=te({...KY,props:HY,emits:zY,setup(e,{emit:t}){const n=e,s=Ne("backtop"),{handleClick:r,visible:i}=jY(n,t,PA),o=E(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(a,l)=>(x(),ve(Pn,{name:`${c(s).namespace.value}-fade-in`},{default:ee(()=>[c(i)?(x(),z("div",{key:0,style:st(c(o)),class:I(c(s).b()),onClick:l[0]||(l[0]=ft((...u)=>c(r)&&c(r)(...u),["stop"]))},[xe(a.$slots,"default",{},()=>[G(c(nt),{class:I(c(s).e("icon"))},{default:ee(()=>[G(c(QH))]),_:1},8,["class"])])],6)):he("v-if",!0)]),_:3},8,["name"]))}});var qY=Ue(WY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const GY=Ot(qY),YY=ze({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),XY=["textContent"],QY=te({name:"ElBadge"}),JY=te({...QY,props:YY,setup(e,{expose:t}){const n=e,s=Ne("badge"),r=E(()=>n.isDot?"":ht(n.value)&&ht(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:r}),(i,o)=>(x(),z("div",{class:I(c(s).b())},[xe(i.$slots,"default"),G(Pn,{name:`${c(s).namespace.value}-zoom-in-center`,persisted:""},{default:ee(()=>[gt(V("sup",{class:I([c(s).e("content"),c(s).em("content",i.type),c(s).is("fixed",!!i.$slots.default),c(s).is("dot",i.isDot)]),textContent:we(c(r))},null,10,XY),[[Ut,!i.hidden&&(c(r)||i.isDot)]])]),_:1},8,["name"])],2))}});var ZY=Ue(JY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const $A=Ot(ZY),NA=Symbol("breadcrumbKey"),eX=ze({separator:{type:String,default:"/"},separatorIcon:{type:on}}),tX=te({name:"ElBreadcrumb"}),nX=te({...tX,props:eX,setup(e){const t=e,n=Ne("breadcrumb"),s=B();return Nt(NA,t),Tt(()=>{const r=s.value.querySelectorAll(`.${n.e("item")}`);r.length&&r[r.length-1].setAttribute("aria-current","page")}),(r,i)=>(x(),z("div",{ref_key:"breadcrumb",ref:s,class:I(c(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[xe(r.$slots,"default")],2))}});var sX=Ue(nX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const rX=ze({to:{type:me([String,Object]),default:""},replace:{type:Boolean,default:!1}}),iX=te({name:"ElBreadcrumbItem"}),oX=te({...iX,props:rX,setup(e){const t=e,n=At(),s=Qe(NA,void 0),r=Ne("breadcrumb"),{separator:i,separatorIcon:o}=Hn(s),a=n.appContext.config.globalProperties.$router,l=B(),u=()=>{!t.to||!a||(t.replace?a.replace(t.to):a.push(t.to))};return(d,f)=>(x(),z("span",{class:I(c(r).e("item"))},[V("span",{ref_key:"link",ref:l,class:I([c(r).e("inner"),c(r).is("link",!!d.to)]),role:"link",onClick:u},[xe(d.$slots,"default")],2),c(o)?(x(),ve(c(nt),{key:0,class:I(c(r).e("separator"))},{default:ee(()=>[(x(),ve(Mt(c(o))))]),_:1},8,["class"])):(x(),z("span",{key:1,class:I(c(r).e("separator")),role:"presentation"},we(c(i)),3))],2))}});var MA=Ue(oX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const aX=Ot(sX,{BreadcrumbItem:MA}),lX=Cn(MA),RA=Symbol("buttonGroupContextKey"),uX=(e,t)=>{gi({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},E(()=>e.type==="text"));const n=Qe(RA,void 0),s=Mm("button"),{form:r}=Is(),i=Fn(E(()=>n==null?void 0:n.size)),o=zs(),a=B(),l=es(),u=E(()=>e.type||(n==null?void 0:n.type)||""),d=E(()=>{var p,g,m;return(m=(g=e.autoInsertSpace)!=null?g:(p=s.value)==null?void 0:p.autoInsertSpace)!=null?m:!1}),f=E(()=>{var p;const g=(p=l.default)==null?void 0:p.call(l);if(d.value&&(g==null?void 0:g.length)===1){const m=g[0];if((m==null?void 0:m.type)===Cu){const v=m.children;return/^\p{Unified_Ideograph}{2}$/u.test(v.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:a,shouldAddSpace:f,handleClick:p=>{e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",p)}}},S0=["default","primary","success","warning","info","danger","text",""],cX=["button","submit","reset"],w0=ze({size:is,disabled:Boolean,type:{type:String,values:S0,default:""},icon:{type:on},nativeType:{type:String,values:cX,default:"button"},loading:Boolean,loadingIcon:{type:on,default:()=>zo},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),dX={click:e=>e instanceof MouseEvent};function rs(e,t){fX(e)&&(e="100%");var n=hX(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 eh(e){return Math.min(1,Math.max(0,e))}function fX(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function hX(e){return typeof e=="string"&&e.indexOf("%")!==-1}function LA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function th(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ga(e){return e.length===1?"0"+e:String(e)}function pX(e,t,n){return{r:rs(e,255)*255,g:rs(t,255)*255,b:rs(n,255)*255}}function mC(e,t,n){e=rs(e,255),t=rs(t,255),n=rs(n,255);var s=Math.max(e,t,n),r=Math.min(e,t,n),i=0,o=0,a=(s+r)/2;if(s===r)o=0,i=0;else{var l=s-r;switch(o=a>.5?l/(2-s-r):l/(s+r),s){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:a}}function Jg(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 mX(e,t,n){var s,r,i;if(e=rs(e,360),t=rs(t,100),n=rs(n,100),t===0)r=n,i=n,s=n;else{var o=n<.5?n*(1+t):n+t-n*t,a=2*n-o;s=Jg(a,o,e+1/3),r=Jg(a,o,e),i=Jg(a,o,e-1/3)}return{r:s*255,g:r*255,b:i*255}}function gC(e,t,n){e=rs(e,255),t=rs(t,255),n=rs(n,255);var s=Math.max(e,t,n),r=Math.min(e,t,n),i=0,o=s,a=s-r,l=s===0?0:a/s;if(s===r)i=0;else{switch(s){case e:i=(t-n)/a+(t<n?6:0);break;case t:i=(n-e)/a+2;break;case n:i=(e-t)/a+4;break}i/=6}return{h:i,s:l,v:o}}function gX(e,t,n){e=rs(e,360)*6,t=rs(t,100),n=rs(n,100);var s=Math.floor(e),r=e-s,i=n*(1-t),o=n*(1-r*t),a=n*(1-(1-r)*t),l=s%6,u=[n,o,i,i,a,n][l],d=[a,n,n,o,i,i][l],f=[i,i,a,n,n,o][l];return{r:u*255,g:d*255,b:f*255}}function vC(e,t,n,s){var r=[ga(Math.round(e).toString(16)),ga(Math.round(t).toString(16)),ga(Math.round(n).toString(16))];return s&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function vX(e,t,n,s,r){var i=[ga(Math.round(e).toString(16)),ga(Math.round(t).toString(16)),ga(Math.round(n).toString(16)),ga(yX(s))];return r&&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 yX(e){return Math.round(parseFloat(e)*255).toString(16)}function yC(e){return Gs(e)/255}function Gs(e){return parseInt(e,16)}function bX(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var C0={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 _X(e){var t={r:0,g:0,b:0},n=1,s=null,r=null,i=null,o=!1,a=!1;return typeof e=="string"&&(e=wX(e)),typeof e=="object"&&(Oi(e.r)&&Oi(e.g)&&Oi(e.b)?(t=pX(e.r,e.g,e.b),o=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Oi(e.h)&&Oi(e.s)&&Oi(e.v)?(s=th(e.s),r=th(e.v),t=gX(e.h,s,r),o=!0,a="hsv"):Oi(e.h)&&Oi(e.s)&&Oi(e.l)&&(s=th(e.s),i=th(e.l),t=mX(e.h,s,i),o=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=LA(n),{ok:o,format:e.format||a,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 TX="[-\\+]?\\d+%?",SX="[-\\+]?\\d*\\.\\d+%?",So="(?:".concat(SX,")|(?:").concat(TX,")"),Zg="[\\s|\\(]+(".concat(So,")[,|\\s]+(").concat(So,")[,|\\s]+(").concat(So,")\\s*\\)?"),ev="[\\s|\\(]+(".concat(So,")[,|\\s]+(").concat(So,")[,|\\s]+(").concat(So,")[,|\\s]+(").concat(So,")\\s*\\)?"),Ir={CSS_UNIT:new RegExp(So),rgb:new RegExp("rgb"+Zg),rgba:new RegExp("rgba"+ev),hsl:new RegExp("hsl"+Zg),hsla:new RegExp("hsla"+ev),hsv:new RegExp("hsv"+Zg),hsva:new RegExp("hsva"+ev),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 wX(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(C0[e])e=C0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ir.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ir.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ir.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ir.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ir.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ir.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ir.hex8.exec(e),n?{r:Gs(n[1]),g:Gs(n[2]),b:Gs(n[3]),a:yC(n[4]),format:t?"name":"hex8"}:(n=Ir.hex6.exec(e),n?{r:Gs(n[1]),g:Gs(n[2]),b:Gs(n[3]),format:t?"name":"hex"}:(n=Ir.hex4.exec(e),n?{r:Gs(n[1]+n[1]),g:Gs(n[2]+n[2]),b:Gs(n[3]+n[3]),a:yC(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ir.hex3.exec(e),n?{r:Gs(n[1]+n[1]),g:Gs(n[2]+n[2]),b:Gs(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Oi(e){return!!Ir.CSS_UNIT.exec(String(e))}var DA=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var s;if(t instanceof e)return t;typeof t=="number"&&(t=bX(t)),this.originalInput=t;var r=_X(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(s=n.format)!==null&&s!==void 0?s:r.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=r.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,s,r,i=t.r/255,o=t.g/255,a=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*s+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=LA(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=gC(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=gC(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(s,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(s,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=mC(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=mC(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(s,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(s,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),vC(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),vX(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),s=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(s,")"):"rgba(".concat(t,", ").concat(n,", ").concat(s,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(rs(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(rs(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="#"+vC(this.r,this.g,this.b,!1),n=0,s=Object.entries(C0);n<s.length;n++){var r=s[n],i=r[0],o=r[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var s=!1,r=this.a<1&&this.a>=0,i=!n&&r&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(s=this.toRgbString()),t==="prgb"&&(s=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(s=this.toHexString()),t==="hex3"&&(s=this.toHexString(!0)),t==="hex4"&&(s=this.toHex8String(!0)),t==="hex8"&&(s=this.toHex8String()),t==="name"&&(s=this.toName()),t==="hsl"&&(s=this.toHslString()),t==="hsv"&&(s=this.toHsvString()),s||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=eh(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=eh(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=eh(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=eh(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),s=(n.h+t)%360;return n.h=s<0?360+s:s,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var s=this.toRgb(),r=new e(t).toRgb(),i=n/100,o={r:(r.r-s.r)*i+s.r,g:(r.g-s.g)*i+s.g,b:(r.b-s.b)*i+s.b,a:(r.a-s.a)*i+s.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var s=this.toHsl(),r=360/n,i=[this];for(s.h=(s.h-(r*t>>1)+720)%360;--t;)s.h=(s.h+r)%360,i.push(new e(s));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(),s=n.h,r=n.s,i=n.v,o=[],a=1/t;t--;)o.push(new e({h:s,s:r,v:i})),i=(i+a)%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(),s=new e(t).toRgb(),r=n.a+s.a*(1-n.a);return new e({r:(n.r*n.a+s.r*s.a*(1-n.a))/r,g:(n.g*n.a+s.g*s.a*(1-n.a))/r,b:(n.b*n.a+s.b*s.a*(1-n.a))/r,a:r})},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(),s=n.h,r=[this],i=360/t,o=1;o<t;o++)r.push(new e({h:(s+o*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function uo(e,t=20){return e.mix("#141414",t).toString()}function CX(e){const t=zs(),n=Ne("button");return E(()=>{let s={};const r=e.color;if(r){const i=new DA(r),o=e.dark?i.tint(20).toString():uo(i,20);if(e.plain)s=n.cssVarBlock({"bg-color":e.dark?uo(i,90):i.tint(90).toString(),"text-color":r,"border-color":e.dark?uo(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(s[n.cssVarBlockName("disabled-bg-color")]=e.dark?uo(i,90):i.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=e.dark?uo(i,50):i.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=e.dark?uo(i,80):i.tint(80).toString());else{const a=e.dark?uo(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(s=n.cssVarBlock({"bg-color":r,"text-color":l,"border-color":r,"hover-bg-color":a,"hover-text-color":l,"hover-border-color":a,"active-bg-color":o,"active-border-color":o}),t.value){const u=e.dark?uo(i,50):i.tint(50).toString();s[n.cssVarBlockName("disabled-bg-color")]=u,s[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,s[n.cssVarBlockName("disabled-border-color")]=u}}}return s})}const EX=["aria-disabled","disabled","autofocus","type"],xX=te({name:"ElButton"}),kX=te({...xX,props:w0,emits:dX,setup(e,{expose:t,emit:n}){const s=e,r=CX(s),i=Ne("button"),{_ref:o,_size:a,_type:l,_disabled:u,shouldAddSpace:d,handleClick:f}=uX(s,n);return t({ref:o,size:a,type:l,disabled:u,shouldAddSpace:d}),(h,p)=>(x(),z("button",{ref_key:"_ref",ref:o,class:I([c(i).b(),c(i).m(c(l)),c(i).m(c(a)),c(i).is("disabled",c(u)),c(i).is("loading",h.loading),c(i).is("plain",h.plain),c(i).is("round",h.round),c(i).is("circle",h.circle),c(i).is("text",h.text),c(i).is("link",h.link),c(i).is("has-bg",h.bg)]),"aria-disabled":c(u)||h.loading,disabled:c(u)||h.loading,autofocus:h.autofocus,type:h.nativeType,style:st(c(r)),onClick:p[0]||(p[0]=(...g)=>c(f)&&c(f)(...g))},[h.loading?(x(),z(et,{key:0},[h.$slots.loading?xe(h.$slots,"loading",{key:0}):(x(),ve(c(nt),{key:1,class:I(c(i).is("loading"))},{default:ee(()=>[(x(),ve(Mt(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(x(),ve(c(nt),{key:1},{default:ee(()=>[h.icon?(x(),ve(Mt(h.icon),{key:0})):xe(h.$slots,"icon",{key:1})]),_:3})):he("v-if",!0),h.$slots.default?(x(),z("span",{key:2,class:I({[c(i).em("text","expand")]:c(d)})},[xe(h.$slots,"default")],2)):he("v-if",!0)],14,EX))}});var OX=Ue(kX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const AX={size:w0.size,type:w0.type},IX=te({name:"ElButtonGroup"}),PX=te({...IX,props:AX,setup(e){const t=e;Nt(RA,Bt({size:dn(t,"size"),type:dn(t,"type")}));const n=Ne("button");return(s,r)=>(x(),z("div",{class:I(`${c(n).b("group")}`)},[xe(s.$slots,"default")],2))}});var FA=Ue(PX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Un=Ot(OX,{ButtonGroup:FA}),BA=Cn(FA);var rr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){if(this instanceof s){var r=[null];r.push.apply(r,arguments);var i=Function.bind.apply(t,r);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:function(){return e[s]}})}),n}var E0={},$X={get exports(){return E0},set exports(e){E0=e}};(function(e,t){(function(n,s){e.exports=s()})(rr,function(){var n=1e3,s=6e4,r=36e5,i="millisecond",o="second",a="minute",l="hour",u="day",d="week",f="month",h="quarter",p="year",g="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,T={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(R){var q=["th","st","nd","rd"],X=R%100;return"["+R+(q[(X-20)%10]||q[X]||q[0])+"]"}},_=function(R,q,X){var K=String(R);return!K||K.length>=q?R:""+Array(q+1-K.length).join(X)+R},S={s:_,z:function(R){var q=-R.utcOffset(),X=Math.abs(q),K=Math.floor(X/60),$=X%60;return(q<=0?"+":"-")+_(K,2,"0")+":"+_($,2,"0")},m:function R(q,X){if(q.date()<X.date())return-R(X,q);var K=12*(X.year()-q.year())+(X.month()-q.month()),$=q.clone().add(K,f),H=X-$<0,U=q.clone().add(K+(H?-1:1),f);return+(-(K+(X-$)/(H?$-U:U-$))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:f,y:p,w:d,d:u,D:g,h:l,m:a,s:o,ms:i,Q:h}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},w="en",A={};A[w]=T;var M=function(R){return R instanceof W},N=function R(q,X,K){var $;if(!q)return w;if(typeof q=="string"){var H=q.toLowerCase();A[H]&&($=H),X&&(A[H]=X,$=H);var U=q.split("-");if(!$&&U.length>1)return R(U[0])}else{var Z=q.name;A[Z]=q,$=Z}return!K&&$&&(w=$),$||!K&&w},L=function(R,q){if(M(R))return R.clone();var X=typeof q=="object"?q:{};return X.date=R,X.args=arguments,new W(X)},F=S;F.l=N,F.i=M,F.w=function(R,q){return L(R,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var W=function(){function R(X){this.$L=N(X.locale,null,!0),this.parse(X)}var q=R.prototype;return q.parse=function(X){this.$d=function(K){var $=K.date,H=K.utc;if($===null)return new Date(NaN);if(F.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var U=$.match(v);if(U){var Z=U[2]-1||0,ue=(U[7]||"0").substring(0,3);return H?new Date(Date.UTC(U[1],Z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ue)):new Date(U[1],Z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ue)}}return new Date($)}(X),this.$x=X.x||{},this.init()},q.init=function(){var X=this.$d;this.$y=X.getFullYear(),this.$M=X.getMonth(),this.$D=X.getDate(),this.$W=X.getDay(),this.$H=X.getHours(),this.$m=X.getMinutes(),this.$s=X.getSeconds(),this.$ms=X.getMilliseconds()},q.$utils=function(){return F},q.isValid=function(){return this.$d.toString()!==m},q.isSame=function(X,K){var $=L(X);return this.startOf(K)<=$&&$<=this.endOf(K)},q.isAfter=function(X,K){return L(X)<this.startOf(K)},q.isBefore=function(X,K){return this.endOf(K)<L(X)},q.$g=function(X,K,$){return F.u(X)?this[K]:this.set($,X)},q.unix=function(){return Math.floor(this.valueOf()/1e3)},q.valueOf=function(){return this.$d.getTime()},q.startOf=function(X,K){var $=this,H=!!F.u(K)||K,U=F.p(X),Z=function(ne,pe){var Te=F.w($.$u?Date.UTC($.$y,pe,ne):new Date($.$y,pe,ne),$);return H?Te:Te.endOf(u)},ue=function(ne,pe){return F.w($.toDate()[ne].apply($.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(pe)),$)},Q=this.$W,ae=this.$M,Ee=this.$D,le="set"+(this.$u?"UTC":"");switch(U){case p:return H?Z(1,0):Z(31,11);case f:return H?Z(1,ae):Z(0,ae+1);case d:var ie=this.$locale().weekStart||0,ce=(Q<ie?Q+7:Q)-ie;return Z(H?Ee-ce:Ee+(6-ce),ae);case u:case g:return ue(le+"Hours",0);case l:return ue(le+"Minutes",1);case a:return ue(le+"Seconds",2);case o:return ue(le+"Milliseconds",3);default:return this.clone()}},q.endOf=function(X){return this.startOf(X,!1)},q.$set=function(X,K){var $,H=F.p(X),U="set"+(this.$u?"UTC":""),Z=($={},$[u]=U+"Date",$[g]=U+"Date",$[f]=U+"Month",$[p]=U+"FullYear",$[l]=U+"Hours",$[a]=U+"Minutes",$[o]=U+"Seconds",$[i]=U+"Milliseconds",$)[H],ue=H===u?this.$D+(K-this.$W):K;if(H===f||H===p){var Q=this.clone().set(g,1);Q.$d[Z](ue),Q.init(),this.$d=Q.set(g,Math.min(this.$D,Q.daysInMonth())).$d}else Z&&this.$d[Z](ue);return this.init(),this},q.set=function(X,K){return this.clone().$set(X,K)},q.get=function(X){return this[F.p(X)]()},q.add=function(X,K){var $,H=this;X=Number(X);var U=F.p(K),Z=function(ae){var Ee=L(H);return F.w(Ee.date(Ee.date()+Math.round(ae*X)),H)};if(U===f)return this.set(f,this.$M+X);if(U===p)return this.set(p,this.$y+X);if(U===u)return Z(1);if(U===d)return Z(7);var ue=($={},$[a]=s,$[l]=r,$[o]=n,$)[U]||1,Q=this.$d.getTime()+X*ue;return F.w(Q,this)},q.subtract=function(X,K){return this.add(-1*X,K)},q.format=function(X){var K=this,$=this.$locale();if(!this.isValid())return $.invalidDate||m;var H=X||"YYYY-MM-DDTHH:mm:ssZ",U=F.z(this),Z=this.$H,ue=this.$m,Q=this.$M,ae=$.weekdays,Ee=$.months,le=function(pe,Te,He,Y){return pe&&(pe[Te]||pe(K,H))||He[Te].slice(0,Y)},ie=function(pe){return F.s(Z%12||12,pe,"0")},ce=$.meridiem||function(pe,Te,He){var Y=pe<12?"AM":"PM";return He?Y.toLowerCase():Y},ne={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Q+1,MM:F.s(Q+1,2,"0"),MMM:le($.monthsShort,Q,Ee,3),MMMM:le(Ee,Q),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:le($.weekdaysMin,this.$W,ae,2),ddd:le($.weekdaysShort,this.$W,ae,3),dddd:ae[this.$W],H:String(Z),HH:F.s(Z,2,"0"),h:ie(1),hh:ie(2),a:ce(Z,ue,!0),A:ce(Z,ue,!1),m:String(ue),mm:F.s(ue,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:U};return H.replace(y,function(pe,Te){return Te||ne[pe]||U.replace(":","")})},q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},q.diff=function(X,K,$){var H,U=F.p(K),Z=L(X),ue=(Z.utcOffset()-this.utcOffset())*s,Q=this-Z,ae=F.m(this,Z);return ae=(H={},H[p]=ae/12,H[f]=ae,H[h]=ae/3,H[d]=(Q-ue)/6048e5,H[u]=(Q-ue)/864e5,H[l]=Q/r,H[a]=Q/s,H[o]=Q/n,H)[U]||Q,$?ae:F.a(ae)},q.daysInMonth=function(){return this.endOf(f).$D},q.$locale=function(){return A[this.$L]},q.locale=function(X,K){if(!X)return this.$L;var $=this.clone(),H=N(X,K,!0);return H&&($.$L=H),$},q.clone=function(){return F.w(this.$d,this)},q.toDate=function(){return new Date(this.valueOf())},q.toJSON=function(){return this.isValid()?this.toISOString():null},q.toISOString=function(){return this.$d.toISOString()},q.toString=function(){return this.$d.toUTCString()},R}(),j=W.prototype;return L.prototype=j,[["$ms",i],["$s",o],["$m",a],["$H",l],["$W",u],["$M",f],["$y",p],["$D",g]].forEach(function(R){j[R[1]]=function(q){return this.$g(q,R[0],R[1])}}),L.extend=function(R,q){return R.$i||(R(q,W,L),R.$i=!0),L},L.locale=N,L.isDayjs=M,L.unix=function(R){return L(1e3*R)},L.en=A[w],L.Ls=A,L.p={},L})})($X);const Et=E0;var x0={},NX={get exports(){return x0},set exports(e){x0=e}};(function(e,t){(function(n,s){e.exports=s()})(rr,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"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},l=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(v){this[m]=+v}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var y=v.match(/([+-]|\d\d)/g),T=60*y[1]+(+y[2]||0);return T===0?0:y[0]==="+"?-T:T}(m)}],f=function(m){var v=a[m];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(m,v){var y,T=a.meridiem;if(T){for(var _=1;_<=24;_+=1)if(m.indexOf(T(_,0,v))>-1){y=_>12;break}}else y=m===(v?"pm":"PM");return y},p={A:[o,function(m){this.afternoon=h(m,!1)}],a:[o,function(m){this.afternoon=h(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[r,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],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:[r,u("day")],Do:[o,function(m){var v=a.ordinal,y=m.match(/\d+/);if(this.day=y[0],v)for(var T=1;T<=31;T+=1)v(T).replace(/\[|\]/g,"")===m&&(this.day=T)}],M:[i,u("month")],MM:[r,u("month")],MMM:[o,function(m){var v=f("months"),y=(f("monthsShort")||v.map(function(T){return T.slice(0,3)})).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[o,function(m){var v=f("months").indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(m){this.year=l(m)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(m){var v,y;v=m,y=a&&a.formats;for(var T=(m=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,F,W){var j=W&&W.toUpperCase();return F||y[W]||n[W]||y[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,q,X){return q||X.slice(1)})})).match(s),_=T.length,S=0;S<_;S+=1){var w=T[S],A=p[w],M=A&&A[0],N=A&&A[1];T[S]=N?{regex:M,parser:N}:w.replace(/^\[|\]$/g,"")}return function(L){for(var F={},W=0,j=0;W<_;W+=1){var R=T[W];if(typeof R=="string")j+=R.length;else{var q=R.regex,X=R.parser,K=L.slice(j),$=q.exec(K)[0];X.call(F,$),L=L.replace($,"")}}return function(H){var U=H.afternoon;if(U!==void 0){var Z=H.hours;U?Z<12&&(H.hours+=12):Z===12&&(H.hours=0),delete H.afternoon}}(F),F}}return function(m,v,y){y.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(l=m.parseTwoDigitYear);var T=v.prototype,_=T.parse;T.parse=function(S){var w=S.date,A=S.utc,M=S.args;this.$u=A;var N=M[1];if(typeof N=="string"){var L=M[2]===!0,F=M[3]===!0,W=L||F,j=M[2];F&&(j=M[2]),a=this.$locale(),!L&&j&&(a=y.Ls[j]),this.$d=function(K,$,H){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*K);var U=g($)(K),Z=U.year,ue=U.month,Q=U.day,ae=U.hours,Ee=U.minutes,le=U.seconds,ie=U.milliseconds,ce=U.zone,ne=new Date,pe=Q||(Z||ue?1:ne.getDate()),Te=Z||ne.getFullYear(),He=0;Z&&!ue||(He=ue>0?ue-1:ne.getMonth());var Y=ae||0,re=Ee||0,Se=le||0,Oe=ie||0;return ce?new Date(Date.UTC(Te,He,pe,Y,re,Se,Oe+60*ce.offset*1e3)):H?new Date(Date.UTC(Te,He,pe,Y,re,Se,Oe)):new Date(Te,He,pe,Y,re,Se,Oe)}catch{return new Date("")}}(w,N,A),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),W&&w!=this.format(N)&&(this.$d=new Date("")),a={}}else if(N instanceof Array)for(var R=N.length,q=1;q<=R;q+=1){M[1]=N[q-1];var X=y.apply(this,M);if(X.isValid()){this.$d=X.$d,this.$L=X.$L,this.init();break}q===R&&(this.$d=new Date(""))}else _.call(this,S)}}})})(NX);const g_=x0,bC=["hours","minutes","seconds"],k0="HH:mm:ss",fl="YYYY-MM-DD",MX={date:fl,dates:fl,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${fl} ${k0}`,monthrange:"YYYY-MM",daterange:fl,datetimerange:`${fl} ${k0}`},tv=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Oo=e=>Array.from(Array.from({length:e}).keys()),UA=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),HA=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),_C=function(e,t){const n=Pa(e),s=Pa(t);return n&&s?e.getTime()===t.getTime():!n&&!s?e===t:!1},TC=function(e,t){const n=tt(e),s=tt(t);return n&&s?e.length!==t.length?!1:e.every((r,i)=>_C(r,t[i])):!n&&!s?_C(e,t):!1},SC=function(e,t,n){const s=fr(t)||t==="x"?Et(e).locale(n):Et(e,t).locale(n);return s.isValid()?s:void 0},wC=function(e,t,n){return fr(t)?e:t==="x"?+e:Et(e).locale(n).format(t)},nv=(e,t)=>{var n;const s=[],r=t==null?void 0:t();for(let i=0;i<e;i++)s.push((n=r==null?void 0:r.includes(i))!=null?n:!1);return s},zA=ze({disabledHours:{type:me(Function)},disabledMinutes:{type:me(Function)},disabledSeconds:{type:me(Function)}}),jA=ze({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),v_=ze({id:{type:me([Array,String])},name:{type:me([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:me([String,Object]),default:Ho},editable:{type:Boolean,default:!0},prefixIcon:{type:me([String,Object]),default:""},size:is,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:me(Object),default:()=>({})},modelValue:{type:me([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:me([Date,Array])},defaultTime:{type:me([Date,Array])},isRange:{type:Boolean,default:!1},...zA,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:me([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),RX=["id","name","placeholder","value","disabled","readonly"],LX=["id","name","placeholder","value","disabled","readonly"],DX=te({name:"Picker"}),FX=te({...DX,props:v_,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const s=e,{lang:r}=qt(),i=Ne("date"),o=Ne("input"),a=Ne("range"),{form:l,formItem:u}=Is(),d=Qe("ElPopperOptions",{}),f=B(),h=B(),p=B(!1),g=B(!1),m=B(null);let v=!1,y=!1;ke(p,J=>{J?it(()=>{J&&(m.value=s.modelValue)}):(_e.value=null,it(()=>{T(s.modelValue)}))});const T=(J,fe)=>{(fe||!TC(J,m.value))&&(n("change",J),s.validateEvent&&(u==null||u.validate("change").catch(Re=>void 0)))},_=J=>{if(!TC(s.modelValue,J)){let fe;tt(J)?fe=J.map(Re=>wC(Re,s.valueFormat,r.value)):J&&(fe=wC(J,s.valueFormat,r.value)),n("update:modelValue",J&&fe,r.value)}},S=J=>{n("keydown",J)},w=E(()=>{if(h.value){const J=re.value?h.value:h.value.$el;return Array.from(J.querySelectorAll("input"))}return[]}),A=(J,fe,Re)=>{const We=w.value;We.length&&(!Re||Re==="min"?(We[0].setSelectionRange(J,fe),We[0].focus()):Re==="max"&&(We[1].setSelectionRange(J,fe),We[1].focus()))},M=()=>{X(!0,!0),it(()=>{y=!1})},N=(J="",fe=!1)=>{fe||(y=!0),p.value=fe;let Re;tt(J)?Re=J.map(We=>We.toDate()):Re=J&&J.toDate(),_e.value=null,_(Re)},L=()=>{g.value=!0},F=()=>{n("visible-change",!0)},W=J=>{(J==null?void 0:J.key)===at.esc&&X(!0,!0)},j=()=>{g.value=!1,p.value=!1,y=!1,n("visible-change",!1)},R=()=>{p.value=!0},q=()=>{p.value=!1},X=(J=!0,fe=!1)=>{y=fe;const[Re,We]=c(w);let St=Re;!J&&re.value&&(St=We),St&&St.focus()},K=J=>{s.readonly||U.value||p.value||y||(p.value=!0,n("focus",J))};let $;const H=J=>{const fe=async()=>{setTimeout(()=>{var Re;$===fe&&(!((Re=f.value)!=null&&Re.isFocusInsideContent()&&!v)&&w.value.filter(We=>We.contains(document.activeElement)).length===0&&(Be(),p.value=!1,n("blur",J),s.validateEvent&&(u==null||u.validate("blur").catch(We=>void 0))),v=!1)},0)};$=fe,fe()},U=E(()=>s.disabled||(l==null?void 0:l.disabled)),Z=E(()=>{let J;if(ne.value?ct.value.getDefaultValue&&(J=ct.value.getDefaultValue()):tt(s.modelValue)?J=s.modelValue.map(fe=>SC(fe,s.valueFormat,r.value)):J=SC(s.modelValue,s.valueFormat,r.value),ct.value.getRangeAvailableTime){const fe=ct.value.getRangeAvailableTime(J);sr(fe,J)||(J=fe,_(tt(J)?J.map(Re=>Re.toDate()):J.toDate()))}return tt(J)&&J.some(fe=>!fe)&&(J=[]),J}),ue=E(()=>{if(!ct.value.panelReady)return"";const J=Ae(Z.value);return tt(_e.value)?[_e.value[0]||J&&J[0]||"",_e.value[1]||J&&J[1]||""]:_e.value!==null?_e.value:!ae.value&&ne.value||!p.value&&ne.value?"":J?Ee.value?J.join(", "):J:""}),Q=E(()=>s.type.includes("time")),ae=E(()=>s.type.startsWith("time")),Ee=E(()=>s.type==="dates"),le=E(()=>s.prefixIcon||(Q.value?wO:VH)),ie=B(!1),ce=J=>{s.readonly||U.value||ie.value&&(J.stopPropagation(),M(),_(null),T(null,!0),ie.value=!1,p.value=!1,ct.value.handleClear&&ct.value.handleClear())},ne=E(()=>{const{modelValue:J}=s;return!J||tt(J)&&!J.filter(Boolean).length}),pe=async J=>{var fe;s.readonly||U.value||(((fe=J.target)==null?void 0:fe.tagName)!=="INPUT"||w.value.includes(document.activeElement))&&(p.value=!0)},Te=()=>{s.readonly||U.value||!ne.value&&s.clearable&&(ie.value=!0)},He=()=>{ie.value=!1},Y=J=>{var fe;s.readonly||U.value||(((fe=J.touches[0].target)==null?void 0:fe.tagName)!=="INPUT"||w.value.includes(document.activeElement))&&(p.value=!0)},re=E(()=>s.type.includes("range")),Se=Fn(),Oe=E(()=>{var J,fe;return(fe=(J=c(f))==null?void 0:J.popperRef)==null?void 0:fe.contentRef}),Ve=E(()=>{var J;return c(re)?c(h):(J=c(h))==null?void 0:J.$el});kb(Ve,J=>{const fe=c(Oe),Re=c(Ve);fe&&(J.target===fe||J.composedPath().includes(fe))||J.target===Re||J.composedPath().includes(Re)||(p.value=!1)});const _e=B(null),Be=()=>{if(_e.value){const J=Ie(ue.value);J&&Me(J)&&(_(tt(J)?J.map(fe=>fe.toDate()):J.toDate()),_e.value=null)}_e.value===""&&(_(null),T(null),_e.value=null)},Ie=J=>J?ct.value.parseUserInput(J):null,Ae=J=>J?ct.value.formatToString(J):null,Me=J=>ct.value.isValidValue(J),Ye=async J=>{if(s.readonly||U.value)return;const{code:fe}=J;if(S(J),fe===at.esc){p.value===!0&&(p.value=!1,J.preventDefault(),J.stopPropagation());return}if(fe===at.down&&(ct.value.handleFocusPicker&&(J.preventDefault(),J.stopPropagation()),p.value===!1&&(p.value=!0,await it()),ct.value.handleFocusPicker)){ct.value.handleFocusPicker();return}if(fe===at.tab){v=!0;return}if(fe===at.enter||fe===at.numpadEnter){(_e.value===null||_e.value===""||Me(Ie(ue.value)))&&(Be(),p.value=!1),J.stopPropagation();return}if(_e.value){J.stopPropagation();return}ct.value.handleKeydownInput&&ct.value.handleKeydownInput(J)},qe=J=>{_e.value=J,p.value||(p.value=!0)},Ce=J=>{const fe=J.target;_e.value?_e.value=[fe.value,_e.value[1]]:_e.value=[fe.value,null]},Ge=J=>{const fe=J.target;_e.value?_e.value=[_e.value[0],fe.value]:_e.value=[null,fe.value]},ut=()=>{var J;const fe=_e.value,Re=Ie(fe&&fe[0]),We=c(Z);if(Re&&Re.isValid()){_e.value=[Ae(Re),((J=ue.value)==null?void 0:J[1])||null];const St=[Re,We&&(We[1]||null)];Me(St)&&(_(St),_e.value=null)}},bt=()=>{var J;const fe=c(_e),Re=Ie(fe&&fe[1]),We=c(Z);if(Re&&Re.isValid()){_e.value=[((J=c(ue))==null?void 0:J[0])||null,Ae(Re)];const St=[We&&We[0],Re];Me(St)&&(_(St),_e.value=null)}},ct=B({}),Le=J=>{ct.value[J[0]]=J[1],ct.value.panelReady=!0},De=J=>{n("calendar-change",J)},be=(J,fe,Re)=>{n("panel-change",J,fe,Re)};return Nt("EP_PICKER_BASE",{props:s}),t({focus:X,handleFocusInput:K,handleBlurInput:H,handleOpen:R,handleClose:q,onPick:N}),(J,fe)=>(x(),ve(c(As),$t({ref_key:"refPopper",ref:f,visible:p.value,effect:"light",pure:"",trigger:"click"},J.$attrs,{role:"dialog",teleported:"",transition:`${c(i).namespace.value}-zoom-in-top`,"popper-class":[`${c(i).namespace.value}-picker__popper`,J.popperClass],"popper-options":c(d),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:L,onShow:F,onHide:j}),{default:ee(()=>[c(re)?(x(),z("div",{key:1,ref_key:"inputRef",ref:h,class:I([c(i).b("editor"),c(i).bm("editor",J.type),c(o).e("wrapper"),c(i).is("disabled",c(U)),c(i).is("active",p.value),c(a).b("editor"),c(Se)?c(a).bm("editor",c(Se)):"",J.$attrs.class]),style:st(J.$attrs.style),onClick:K,onMouseenter:Te,onMouseleave:He,onTouchstart:Y,onKeydown:Ye},[c(le)?(x(),ve(c(nt),{key:0,class:I([c(o).e("icon"),c(a).e("icon")]),onMousedown:ft(pe,["prevent"]),onTouchstart:Y},{default:ee(()=>[(x(),ve(Mt(c(le))))]),_:1},8,["class","onMousedown"])):he("v-if",!0),V("input",{id:J.id&&J.id[0],autocomplete:"off",name:J.name&&J.name[0],placeholder:J.startPlaceholder,value:c(ue)&&c(ue)[0],disabled:c(U),readonly:!J.editable||J.readonly,class:I(c(a).b("input")),onMousedown:pe,onInput:Ce,onChange:ut,onFocus:K,onBlur:H},null,42,RX),xe(J.$slots,"range-separator",{},()=>[V("span",{class:I(c(a).b("separator"))},we(J.rangeSeparator),3)]),V("input",{id:J.id&&J.id[1],autocomplete:"off",name:J.name&&J.name[1],placeholder:J.endPlaceholder,value:c(ue)&&c(ue)[1],disabled:c(U),readonly:!J.editable||J.readonly,class:I(c(a).b("input")),onMousedown:pe,onFocus:K,onBlur:H,onInput:Ge,onChange:bt},null,42,LX),J.clearIcon?(x(),ve(c(nt),{key:1,class:I([c(o).e("icon"),c(a).e("close-icon"),{[c(a).e("close-icon--hidden")]:!ie.value}]),onClick:ce},{default:ee(()=>[(x(),ve(Mt(J.clearIcon)))]),_:1},8,["class"])):he("v-if",!0)],38)):(x(),ve(c(ls),{key:0,id:J.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":c(ue),name:J.name,size:c(Se),disabled:c(U),placeholder:J.placeholder,class:I([c(i).b("editor"),c(i).bm("editor",J.type),J.$attrs.class]),style:st(J.$attrs.style),readonly:!J.editable||J.readonly||c(Ee)||J.type==="week",label:J.label,tabindex:J.tabindex,"validate-event":!1,onInput:qe,onFocus:K,onBlur:H,onKeydown:Ye,onChange:Be,onMousedown:pe,onMouseenter:Te,onMouseleave:He,onTouchstart:Y,onClick:fe[0]||(fe[0]=ft(()=>{},["stop"]))},{prefix:ee(()=>[c(le)?(x(),ve(c(nt),{key:0,class:I(c(o).e("icon")),onMousedown:ft(pe,["prevent"]),onTouchstart:Y},{default:ee(()=>[(x(),ve(Mt(c(le))))]),_:1},8,["class","onMousedown"])):he("v-if",!0)]),suffix:ee(()=>[ie.value&&J.clearIcon?(x(),ve(c(nt),{key:0,class:I(`${c(o).e("icon")} clear-icon`),onClick:ft(ce,["stop"])},{default:ee(()=>[(x(),ve(Mt(J.clearIcon)))]),_:1},8,["class","onClick"])):he("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:ee(()=>[xe(J.$slots,"default",{visible:p.value,actualVisible:g.value,parsedValue:c(Z),format:J.format,unlinkPanels:J.unlinkPanels,type:J.type,defaultValue:J.defaultValue,onPick:N,onSelectRange:A,onSetPickerOption:Le,onCalendarChange:De,onPanelChange:be,onKeydown:W,onMousedown:fe[1]||(fe[1]=ft(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var KA=Ue(FX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const BX=ze({...jA,datetimeRole:String,parsedValue:{type:me(Object)}}),WA=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const s=(o,a,l,u)=>{const d={hour:e,minute:t,second:n};let f=o;return["hour","minute","second"].forEach(h=>{if(d[h]){let p;const g=d[h];switch(h){case"minute":{p=g(f.hour(),a,u);break}case"second":{p=g(f.hour(),f.minute(),a,u);break}default:{p=g(a,u);break}}if(p!=null&&p.length&&!p.includes(f[h]())){const m=l?0:p.length-1;f=f[h](p[m])}}}),f},r={};return{timePickerOptions:r,getAvailableTime:s,onSetOption:([o,a])=>{r[o]=a}}},sv=e=>{const t=(s,r)=>s||r,n=s=>s!==!0;return e.map(t).filter(n)},qA=(e,t,n)=>({getHoursList:(o,a)=>nv(24,e&&(()=>e==null?void 0:e(o,a))),getMinutesList:(o,a,l)=>nv(60,t&&(()=>t==null?void 0:t(o,a,l))),getSecondsList:(o,a,l,u)=>nv(60,n&&(()=>n==null?void 0:n(o,a,l,u)))}),GA=(e,t,n)=>{const{getHoursList:s,getMinutesList:r,getSecondsList:i}=qA(e,t,n);return{getAvailableHours:(u,d)=>sv(s(u,d)),getAvailableMinutes:(u,d,f)=>sv(r(u,d,f)),getAvailableSeconds:(u,d,f,h)=>sv(i(u,d,f,h))}},YA=e=>{const t=B(e.parsedValue);return ke(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},go=new Map;let CC;Ht&&(document.addEventListener("mousedown",e=>CC=e),document.addEventListener("mouseup",e=>{for(const t of go.values())for(const{documentHandler:n}of t)n(e,CC)}));function EC(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Ur(t.arg)&&n.push(t.arg),function(s,r){const i=t.instance.popperRef,o=s.target,a=r==null?void 0:r.target,l=!t||!t.instance,u=!o||!a,d=e.contains(o)||e.contains(a),f=e===o,h=n.length&&n.some(g=>g==null?void 0:g.contains(o))||n.length&&n.includes(a),p=i&&(i.contains(o)||i.contains(a));l||u||d||f||h||p||t.value(s,r)}}const Mo={beforeMount(e,t){go.has(e)||go.set(e,[]),go.get(e).push({documentHandler:EC(e,t),bindingFn:t.value})},updated(e,t){go.has(e)||go.set(e,[]);const n=go.get(e),s=n.findIndex(i=>i.bindingFn===t.oldValue),r={documentHandler:EC(e,t),bindingFn:t.value};s>=0?n.splice(s,1,r):n.push(r)},unmounted(e){go.delete(e)}},VX=100,UX=600,gp={beforeMount(e,t){const n=t.value,{interval:s=VX,delay:r=UX}=pt(n)?{}:n;let i,o;const a=()=>pt(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(),a(),document.addEventListener("mouseup",()=>l(),{once:!0}),o=setTimeout(()=>{i=setInterval(()=>{a()},s)},r))})}},O0="_trap-focus-children",va=[],xC=e=>{if(va.length===0)return;const t=va[va.length-1][O0];if(t.length>0&&e.code===at.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,s=e.target===t[0],r=e.target===t[t.length-1];s&&n&&(e.preventDefault(),t[t.length-1].focus()),r&&!n&&(e.preventDefault(),t[0].focus())}},HX={beforeMount(e){e[O0]=BS(e),va.push(e),va.length<=1&&document.addEventListener("keydown",xC)},updated(e){it(()=>{e[O0]=BS(e)})},unmounted(){va.shift(),va.length===0&&document.removeEventListener("keydown",xC)}};var kC=!1,da,A0,I0,kh,Oh,XA,Ah,P0,$0,N0,QA,M0,R0,JA,ZA;function $s(){if(!kC){kC=!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(M0=/\b(iPhone|iP[ao]d)/.exec(e),R0=/\b(iP[ao]d)/.exec(e),N0=/Android/i.exec(e),JA=/FBAN\/\w+;/i.exec(e),ZA=/Mobile/i.exec(e),QA=!!/Win64/.exec(e),t){da=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,da&&document&&document.documentMode&&(da=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(e);XA=s?parseFloat(s[1])+4:da,A0=t[2]?parseFloat(t[2]):NaN,I0=t[3]?parseFloat(t[3]):NaN,kh=t[4]?parseFloat(t[4]):NaN,kh?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Oh=t&&t[1]?parseFloat(t[1]):NaN):Oh=NaN}else da=A0=I0=Oh=kh=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ah=r?parseFloat(r[1].replace("_",".")):!0}else Ah=!1;P0=!!n[2],$0=!!n[3]}else Ah=P0=$0=!1}}var L0={ie:function(){return $s()||da},ieCompatibilityMode:function(){return $s()||XA>da},ie64:function(){return L0.ie()&&QA},firefox:function(){return $s()||A0},opera:function(){return $s()||I0},webkit:function(){return $s()||kh},safari:function(){return L0.webkit()},chrome:function(){return $s()||Oh},windows:function(){return $s()||P0},osx:function(){return $s()||Ah},linux:function(){return $s()||$0},iphone:function(){return $s()||M0},mobile:function(){return $s()||M0||R0||N0||ZA},nativeApp:function(){return $s()||JA},android:function(){return $s()||N0},ipad:function(){return $s()||R0}},zX=L0,nh=!!(typeof window<"u"&&window.document&&window.document.createElement),jX={canUseDOM:nh,canUseWorkers:typeof Worker<"u",canUseEventListeners:nh&&!!(window.addEventListener||window.attachEvent),canUseViewport:nh&&!!window.screen,isInWorker:!nh},eI=jX,tI;eI.canUseDOM&&(tI=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function KX(e,t){if(!eI.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,s=n in document;if(!s){var r=document.createElement("div");r.setAttribute(n,"return;"),s=typeof r[n]=="function"}return!s&&tI&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var WX=KX,OC=10,AC=40,IC=800;function nI(e){var t=0,n=0,s=0,r=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),s=t*OC,r=n*OC,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||r)&&e.deltaMode&&(e.deltaMode==1?(s*=AC,r*=AC):(s*=IC,r*=IC)),s&&!t&&(t=s<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:s,pixelY:r}}nI.getEventType=function(){return zX.firefox()?"DOMMouseScroll":WX("wheel")?"wheel":"mousewheel"};var qX=nI;/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @param {?boolean} capture Check if the capture phase is supported.
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/const GX=function(e,t){if(e&&e.addEventListener){const n=function(s){const r=qX(s);t&&Reflect.apply(t,this,[s,r])};e.addEventListener("wheel",n,{passive:!0})}},YX={beforeMount(e,t){GX(e,t.value)}},XX=ze({role:{type:String,required:!0},spinnerDate:{type:me(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:me(String),default:""},...zA}),QX=["onClick"],JX=["onMouseenter"],ZX=te({__name:"basic-time-spinner",props:XX,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,s=Ne("time"),{getHoursList:r,getMinutesList:i,getSecondsList:o}=qA(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let a=!1;const l=B(),u=B(),d=B(),f=B(),h={hours:u,minutes:d,seconds:f},p=E(()=>n.showSeconds?bC:bC.slice(0,2)),g=E(()=>{const{spinnerDate:U}=n,Z=U.hour(),ue=U.minute(),Q=U.second();return{hours:Z,minutes:ue,seconds:Q}}),m=E(()=>{const{hours:U,minutes:Z}=c(g);return{hours:r(n.role),minutes:i(U,n.role),seconds:o(U,Z,n.role)}}),v=E(()=>{const{hours:U,minutes:Z,seconds:ue}=c(g);return{hours:tv(U,23),minutes:tv(Z,59),seconds:tv(ue,59)}}),y=Os(U=>{a=!1,S(U)},200),T=U=>{if(!!!n.amPmMode)return"";const ue=n.amPmMode==="A";let Q=U<12?" am":" pm";return ue&&(Q=Q.toUpperCase()),Q},_=U=>{let Z;switch(U){case"hours":Z=[0,2];break;case"minutes":Z=[3,5];break;case"seconds":Z=[6,8];break}const[ue,Q]=Z;t("select-range",ue,Q),l.value=U},S=U=>{M(U,c(g)[U])},w=()=>{S("hours"),S("minutes"),S("seconds")},A=U=>U.querySelector(`.${s.namespace.value}-scrollbar__wrap`),M=(U,Z)=>{if(n.arrowControl)return;const ue=c(h[U]);ue&&ue.$el&&(A(ue.$el).scrollTop=Math.max(0,Z*N(U)))},N=U=>{const Z=c(h[U]);return(Z==null?void 0:Z.$el.querySelector("li").offsetHeight)||0},L=()=>{W(1)},F=()=>{W(-1)},W=U=>{l.value||_("hours");const Z=l.value,ue=c(g)[Z],Q=l.value==="hours"?24:60,ae=j(Z,ue,U,Q);R(Z,ae),M(Z,ae),it(()=>_(Z))},j=(U,Z,ue,Q)=>{let ae=(Z+ue+Q)%Q;const Ee=c(m)[U];for(;Ee[ae]&&ae!==Z;)ae=(ae+ue+Q)%Q;return ae},R=(U,Z)=>{if(c(m)[U][Z])return;const{hours:ae,minutes:Ee,seconds:le}=c(g);let ie;switch(U){case"hours":ie=n.spinnerDate.hour(Z).minute(Ee).second(le);break;case"minutes":ie=n.spinnerDate.hour(ae).minute(Z).second(le);break;case"seconds":ie=n.spinnerDate.hour(ae).minute(Ee).second(Z);break}t("change",ie)},q=(U,{value:Z,disabled:ue})=>{ue||(R(U,Z),_(U),M(U,Z))},X=U=>{a=!0,y(U);const Z=Math.min(Math.round((A(c(h[U]).$el).scrollTop-(K(U)*.5-10)/N(U)+3)/N(U)),U==="hours"?23:59);R(U,Z)},K=U=>c(h[U]).$el.offsetHeight,$=()=>{const U=Z=>{const ue=c(h[Z]);ue&&ue.$el&&(A(ue.$el).onscroll=()=>{X(Z)})};U("hours"),U("minutes"),U("seconds")};Tt(()=>{it(()=>{!n.arrowControl&&$(),w(),n.role==="start"&&_("hours")})});const H=(U,Z)=>{h[Z].value=U};return t("set-option",[`${n.role}_scrollDown`,W]),t("set-option",[`${n.role}_emitSelectRange`,_]),ke(()=>n.spinnerDate,()=>{a||w()}),(U,Z)=>(x(),z("div",{class:I([c(s).b("spinner"),{"has-seconds":U.showSeconds}])},[U.arrowControl?he("v-if",!0):(x(!0),z(et,{key:0},kt(c(p),ue=>(x(),ve(c(ro),{key:ue,ref_for:!0,ref:Q=>H(Q,ue),class:I(c(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":c(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Q=>_(ue),onMousemove:Q=>S(ue)},{default:ee(()=>[(x(!0),z(et,null,kt(c(m)[ue],(Q,ae)=>(x(),z("li",{key:ae,class:I([c(s).be("spinner","item"),c(s).is("active",ae===c(g)[ue]),c(s).is("disabled",Q)]),onClick:Ee=>q(ue,{value:ae,disabled:Q})},[ue==="hours"?(x(),z(et,{key:0},[wt(we(("0"+(U.amPmMode?ae%12||12:ae)).slice(-2))+we(T(ae)),1)],64)):(x(),z(et,{key:1},[wt(we(("0"+ae).slice(-2)),1)],64))],10,QX))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),U.arrowControl?(x(!0),z(et,{key:1},kt(c(p),ue=>(x(),z("div",{key:ue,class:I([c(s).be("spinner","wrapper"),c(s).is("arrow")]),onMouseenter:Q=>_(ue)},[gt((x(),ve(c(nt),{class:I(["arrow-up",c(s).be("spinner","arrow")])},{default:ee(()=>[G(c(Wd))]),_:1},8,["class"])),[[c(gp),F]]),gt((x(),ve(c(nt),{class:I(["arrow-down",c(s).be("spinner","arrow")])},{default:ee(()=>[G(c(Uo))]),_:1},8,["class"])),[[c(gp),L]]),V("ul",{class:I(c(s).be("spinner","list"))},[(x(!0),z(et,null,kt(c(v)[ue],(Q,ae)=>(x(),z("li",{key:ae,class:I([c(s).be("spinner","item"),c(s).is("active",Q===c(g)[ue]),c(s).is("disabled",c(m)[ue][Q])])},[typeof Q=="number"?(x(),z(et,{key:0},[ue==="hours"?(x(),z(et,{key:0},[wt(we(("0"+(U.amPmMode?Q%12||12:Q)).slice(-2))+we(T(Q)),1)],64)):(x(),z(et,{key:1},[wt(we(("0"+Q).slice(-2)),1)],64))],64)):he("v-if",!0)],2))),128))],2)],42,JX))),128)):he("v-if",!0)],2))}});var D0=Ue(ZX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const eQ=te({__name:"panel-time-pick",props:BX,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=Qe("EP_PICKER_BASE"),{arrowControl:r,disabledHours:i,disabledMinutes:o,disabledSeconds:a,defaultValue:l}=s.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:f}=GA(i,o,a),h=Ne("time"),{t:p,lang:g}=qt(),m=B([0,2]),v=YA(n),y=E(()=>Qn(n.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),T=E(()=>n.format.includes("ss")),_=E(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=H=>{const U=Et(H).locale(g.value),Z=q(U);return U.isSame(Z)},w=()=>{t("pick",v.value,!1)},A=(H=!1,U=!1)=>{U||t("pick",n.parsedValue,H)},M=H=>{if(!n.visible)return;const U=q(H).millisecond(0);t("pick",U,!0)},N=(H,U)=>{t("select-range",H,U),m.value=[H,U]},L=H=>{const U=[0,3].concat(T.value?[6]:[]),Z=["hours","minutes"].concat(T.value?["seconds"]:[]),Q=(U.indexOf(m.value[0])+H+U.length)%U.length;W.start_emitSelectRange(Z[Q])},F=H=>{const U=H.code,{left:Z,right:ue,up:Q,down:ae}=at;if([Z,ue].includes(U)){L(U===Z?-1:1),H.preventDefault();return}if([Q,ae].includes(U)){const Ee=U===Q?-1:1;W.start_scrollDown(Ee),H.preventDefault();return}},{timePickerOptions:W,onSetOption:j,getAvailableTime:R}=WA({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:f}),q=H=>R(H,n.datetimeRole||"",!0),X=H=>H?Et(H,n.format).locale(g.value):null,K=H=>H?H.format(n.format):null,$=()=>Et(l).locale(g.value);return t("set-picker-option",["isValidValue",S]),t("set-picker-option",["formatToString",K]),t("set-picker-option",["parseUserInput",X]),t("set-picker-option",["handleKeydownInput",F]),t("set-picker-option",["getRangeAvailableTime",q]),t("set-picker-option",["getDefaultValue",$]),(H,U)=>(x(),ve(Pn,{name:c(y)},{default:ee(()=>[H.actualVisible||H.visible?(x(),z("div",{key:0,class:I(c(h).b("panel"))},[V("div",{class:I([c(h).be("panel","content"),{"has-seconds":c(T)}])},[G(D0,{ref:"spinner",role:H.datetimeRole||"start","arrow-control":c(r),"show-seconds":c(T),"am-pm-mode":c(_),"spinner-date":H.parsedValue,"disabled-hours":c(i),"disabled-minutes":c(o),"disabled-seconds":c(a),onChange:M,onSetOption:c(j),onSelectRange:N},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),V("div",{class:I(c(h).be("panel","footer"))},[V("button",{type:"button",class:I([c(h).be("panel","btn"),"cancel"]),onClick:w},we(c(p)("el.datepicker.cancel")),3),V("button",{type:"button",class:I([c(h).be("panel","btn"),"confirm"]),onClick:U[0]||(U[0]=Z=>A())},we(c(p)("el.datepicker.confirm")),3)],2)],2)):he("v-if",!0)]),_:1},8,["name"]))}});var vp=Ue(eQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const tQ=ze({...jA,parsedValue:{type:me(Array)}}),nQ=["disabled"],sQ=te({__name:"panel-time-range",props:tQ,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=(pe,Te)=>{const He=[];for(let Y=pe;Y<=Te;Y++)He.push(Y);return He},{t:r,lang:i}=qt(),o=Ne("time"),a=Ne("picker"),l=Qe("EP_PICKER_BASE"),{arrowControl:u,disabledHours:d,disabledMinutes:f,disabledSeconds:h,defaultValue:p}=l.props,g=E(()=>n.parsedValue[0]),m=E(()=>n.parsedValue[1]),v=YA(n),y=()=>{t("pick",v.value,!1)},T=E(()=>n.format.includes("ss")),_=E(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=(pe=!1)=>{t("pick",[g.value,m.value],pe)},w=pe=>{N(pe.millisecond(0),m.value)},A=pe=>{N(g.value,pe.millisecond(0))},M=pe=>{const Te=pe.map(Y=>Et(Y).locale(i.value)),He=U(Te);return Te[0].isSame(He[0])&&Te[1].isSame(He[1])},N=(pe,Te)=>{t("pick",[pe,Te],!0)},L=E(()=>g.value>m.value),F=B([0,2]),W=(pe,Te)=>{t("select-range",pe,Te,"min"),F.value=[pe,Te]},j=E(()=>T.value?11:8),R=(pe,Te)=>{t("select-range",pe,Te,"max");const He=c(j);F.value=[pe+He,Te+He]},q=pe=>{const Te=T.value?[0,3,6,11,14,17]:[0,3,8,11],He=["hours","minutes"].concat(T.value?["seconds"]:[]),re=(Te.indexOf(F.value[0])+pe+Te.length)%Te.length,Se=Te.length/2;re<Se?ae.start_emitSelectRange(He[re]):ae.end_emitSelectRange(He[re-Se])},X=pe=>{const Te=pe.code,{left:He,right:Y,up:re,down:Se}=at;if([He,Y].includes(Te)){q(Te===He?-1:1),pe.preventDefault();return}if([re,Se].includes(Te)){const Oe=Te===re?-1:1,Ve=F.value[0]<j.value?"start":"end";ae[`${Ve}_scrollDown`](Oe),pe.preventDefault();return}},K=(pe,Te)=>{const He=d?d(pe):[],Y=pe==="start",Se=(Te||(Y?m.value:g.value)).hour(),Oe=Y?s(Se+1,23):s(0,Se-1);return qg(He,Oe)},$=(pe,Te,He)=>{const Y=f?f(pe,Te):[],re=Te==="start",Se=He||(re?m.value:g.value),Oe=Se.hour();if(pe!==Oe)return Y;const Ve=Se.minute(),_e=re?s(Ve+1,59):s(0,Ve-1);return qg(Y,_e)},H=(pe,Te,He,Y)=>{const re=h?h(pe,Te,He):[],Se=He==="start",Oe=Y||(Se?m.value:g.value),Ve=Oe.hour(),_e=Oe.minute();if(pe!==Ve||Te!==_e)return re;const Be=Oe.second(),Ie=Se?s(Be+1,59):s(0,Be-1);return qg(re,Ie)},U=([pe,Te])=>[Ee(pe,"start",!0,Te),Ee(Te,"end",!1,pe)],{getAvailableHours:Z,getAvailableMinutes:ue,getAvailableSeconds:Q}=GA(K,$,H),{timePickerOptions:ae,getAvailableTime:Ee,onSetOption:le}=WA({getAvailableHours:Z,getAvailableMinutes:ue,getAvailableSeconds:Q}),ie=pe=>pe?tt(pe)?pe.map(Te=>Et(Te,n.format).locale(i.value)):Et(pe,n.format).locale(i.value):null,ce=pe=>pe?tt(pe)?pe.map(Te=>Te.format(n.format)):pe.format(n.format):null,ne=()=>{if(tt(p))return p.map(Te=>Et(Te).locale(i.value));const pe=Et(p).locale(i.value);return[pe,pe.add(60,"m")]};return t("set-picker-option",["formatToString",ce]),t("set-picker-option",["parseUserInput",ie]),t("set-picker-option",["isValidValue",M]),t("set-picker-option",["handleKeydownInput",X]),t("set-picker-option",["getDefaultValue",ne]),t("set-picker-option",["getRangeAvailableTime",U]),(pe,Te)=>pe.actualVisible?(x(),z("div",{key:0,class:I([c(o).b("range-picker"),c(a).b("panel")])},[V("div",{class:I(c(o).be("range-picker","content"))},[V("div",{class:I(c(o).be("range-picker","cell"))},[V("div",{class:I(c(o).be("range-picker","header"))},we(c(r)("el.datepicker.startTime")),3),V("div",{class:I([c(o).be("range-picker","body"),c(o).be("panel","content"),c(o).is("arrow",c(u)),{"has-seconds":c(T)}])},[G(D0,{ref:"minSpinner",role:"start","show-seconds":c(T),"am-pm-mode":c(_),"arrow-control":c(u),"spinner-date":c(g),"disabled-hours":K,"disabled-minutes":$,"disabled-seconds":H,onChange:w,onSetOption:c(le),onSelectRange:W},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),V("div",{class:I(c(o).be("range-picker","cell"))},[V("div",{class:I(c(o).be("range-picker","header"))},we(c(r)("el.datepicker.endTime")),3),V("div",{class:I([c(o).be("range-picker","body"),c(o).be("panel","content"),c(o).is("arrow",c(u)),{"has-seconds":c(T)}])},[G(D0,{ref:"maxSpinner",role:"end","show-seconds":c(T),"am-pm-mode":c(_),"arrow-control":c(u),"spinner-date":c(m),"disabled-hours":K,"disabled-minutes":$,"disabled-seconds":H,onChange:A,onSetOption:c(le),onSelectRange:R},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),V("div",{class:I(c(o).be("panel","footer"))},[V("button",{type:"button",class:I([c(o).be("panel","btn"),"cancel"]),onClick:Te[0]||(Te[0]=He=>y())},we(c(r)("el.datepicker.cancel")),3),V("button",{type:"button",class:I([c(o).be("panel","btn"),"confirm"]),disabled:c(L),onClick:Te[1]||(Te[1]=He=>S())},we(c(r)("el.datepicker.confirm")),11,nQ)],2)],2)):he("v-if",!0)}});var rQ=Ue(sQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);Et.extend(g_);var iQ=te({name:"ElTimePicker",install:null,props:{...v_,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=B(),[s,r]=e.isRange?["timerange",rQ]:["time",vp],i=o=>t.emit("update:modelValue",o);return Nt("ElPopperOptions",e.popperOptions),t.expose({focus:o=>{var a;(a=n.value)==null||a.handleFocusInput(o)},blur:o=>{var a;(a=n.value)==null||a.handleBlurInput(o)},handleOpen:()=>{var o;(o=n.value)==null||o.handleOpen()},handleClose:()=>{var o;(o=n.value)==null||o.handleClose()}}),()=>{var o;const a=(o=e.format)!=null?o:k0;return G(KA,$t(e,{ref:n,type:s,format:a,"onUpdate:modelValue":i}),{default:l=>G(r,l,null)})}}});const Ih=iQ;Ih.install=e=>{e.component(Ih.name,Ih)};const oQ=Ih,aQ=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Oo(t).map((s,r)=>n-(t-r-1))},lQ=e=>{const t=e.daysInMonth();return Oo(t).map((n,s)=>s+1)},uQ=e=>Oo(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),cQ=ze({selectedDay:{type:me(Object)},range:{type:me(Array)},date:{type:me(Object),required:!0},hideHeader:{type:Boolean}}),dQ={pick:e=>Pt(e)};var F0={},fQ={get exports(){return F0},set exports(e){F0=e}};(function(e,t){(function(n,s){e.exports=s()})(rr,function(){return function(n,s,r){var i=s.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},a=function(f,h,p,g,m){var v=f.name?f:f.$locale(),y=o(v[h]),T=o(v[p]),_=y||T.map(function(w){return w.slice(0,g)});if(!m)return _;var S=v.weekStart;return _.map(function(w,A){return _[(A+(S||0))%7]})},l=function(){return r.Ls[r.locale()]},u=function(f,h){return f.formats[h]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,m,v){return m||v.slice(1)})}(f.formats[h.toUpperCase()])},d=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):a(f,"months")},monthsShort:function(h){return h?h.format("MMM"):a(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):a(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):a(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):a(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return d.bind(this)()},r.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(h){return u(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},r.months=function(){return a(l(),"months")},r.monthsShort=function(){return a(l(),"monthsShort","months",3)},r.weekdays=function(f){return a(l(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return a(l(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return a(l(),"weekdaysMin","weekdays",2,f)}}})})(fQ);const sI=F0,hQ=(e,t)=>{Et.extend(sI);const n=Et.localeData().firstDayOfWeek(),{t:s,lang:r}=qt(),i=Et().locale(r.value),o=E(()=>!!e.range&&!!e.range.length),a=E(()=>{let h=[];if(o.value){const[p,g]=e.range,m=Oo(g.date()-p.date()+1).map(T=>({text:p.date()+T,type:"current"}));let v=m.length%7;v=v===0?0:7-v;const y=Oo(v).map((T,_)=>({text:_+1,type:"next"}));h=m.concat(y)}else{const p=e.date.startOf("month").day(),g=aQ(e.date,(p-n+7)%7).map(T=>({text:T,type:"prev"})),m=lQ(e.date).map(T=>({text:T,type:"current"}));h=[...g,...m];const v=7-(h.length%7||7),y=Oo(v).map((T,_)=>({text:_+1,type:"next"}));h=h.concat(y)}return uQ(h)}),l=E(()=>{const h=n;return h===0?Gg.map(p=>s(`el.datepicker.weeks.${p}`)):Gg.slice(h).concat(Gg.slice(0,h)).map(p=>s(`el.datepicker.weeks.${p}`))}),u=(h,p)=>{switch(p){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:i,isInRange:o,rows:a,weekDays:l,getFormattedDate:u,handlePickDay:({text:h,type:p})=>{const g=u(h,p);t("pick",g)},getSlotData:({text:h,type:p})=>{const g=u(h,p);return{isSelected:g.isSame(e.selectedDay),type:`${p}-month`,day:g.format("YYYY-MM-DD"),date:g.toDate()}}}},pQ={key:0},mQ=["onClick"],gQ=te({name:"DateTable"}),vQ=te({...gQ,props:cQ,emits:dQ,setup(e,{expose:t,emit:n}){const s=e,{isInRange:r,now:i,rows:o,weekDays:a,getFormattedDate:l,handlePickDay:u,getSlotData:d}=hQ(s,n),f=Ne("calendar-table"),h=Ne("calendar-day"),p=({text:g,type:m})=>{const v=[m];if(m==="current"){const y=l(g,m);y.isSame(s.selectedDay,"day")&&v.push(h.is("selected")),y.isSame(i,"day")&&v.push(h.is("today"))}return v};return t({getFormattedDate:l}),(g,m)=>(x(),z("table",{class:I([c(f).b(),c(f).is("range",c(r))]),cellspacing:"0",cellpadding:"0"},[g.hideHeader?he("v-if",!0):(x(),z("thead",pQ,[(x(!0),z(et,null,kt(c(a),v=>(x(),z("th",{key:v},we(v),1))),128))])),V("tbody",null,[(x(!0),z(et,null,kt(c(o),(v,y)=>(x(),z("tr",{key:y,class:I({[c(f).e("row")]:!0,[c(f).em("row","hide-border")]:y===0&&g.hideHeader})},[(x(!0),z(et,null,kt(v,(T,_)=>(x(),z("td",{key:_,class:I(p(T)),onClick:S=>c(u)(T)},[V("div",{class:I(c(h).b())},[xe(g.$slots,"date-cell",{data:c(d)(T)},()=>[V("span",null,we(T.text),1)])],2)],10,mQ))),128))],2))),128))])],2))}});var PC=Ue(vQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const yQ=(e,t)=>{const n=e.endOf("month"),s=t.startOf("month"),i=n.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[i.startOf("week"),t]]},bQ=(e,t)=>{const n=e.endOf("month"),s=e.add(1,"month").startOf("month"),r=n.isSame(s,"week")?s.add(1,"week"):s,i=r.endOf("month"),o=t.startOf("month"),a=i.isSame(o,"week")?o.add(1,"week"):o;return[[e,n],[r.startOf("week"),i],[a.startOf("week"),t]]},_Q=(e,t,n)=>{const s=es(),{lang:r}=qt(),i=B(),o=Et().locale(r.value),a=E({get(){return e.modelValue?u.value:i.value},set(y){if(!y)return;i.value=y;const T=y.toDate();t(Cs,T),t(It,T)}}),l=E(()=>{if(!e.range)return[];const y=e.range.map(S=>Et(S).locale(r.value)),[T,_]=y;return T.isAfter(_)?[]:T.isSame(_,"month")?g(T,_):T.add(1,"month").month()!==_.month()?[]:g(T,_)}),u=E(()=>e.modelValue?Et(e.modelValue).locale(r.value):a.value||(l.value.length?l.value[0][0]:o)),d=E(()=>u.value.subtract(1,"month").date(1)),f=E(()=>u.value.add(1,"month").date(1)),h=E(()=>u.value.subtract(1,"year").date(1)),p=E(()=>u.value.add(1,"year").date(1)),g=(y,T)=>{const _=y.startOf("week"),S=T.endOf("week"),w=_.get("month"),A=S.get("month");return w===A?[[_,S]]:(w+1)%12===A?yQ(_,S):w+2===A||(w+1)%11===A?bQ(_,S):[]},m=y=>{a.value=y},v=y=>{const _={"prev-month":d.value,"next-month":f.value,"prev-year":h.value,"next-year":p.value,today:o}[y];_.isSame(u.value,"day")||m(_)};return gi({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},E(()=>!!s.dateCell)),{calculateValidatedDateRange:g,date:u,realSelectedDay:a,pickDay:m,selectDate:v,validatedRange:l}},TQ=e=>tt(e)&&e.length===2&&e.every(t=>Pa(t)),SQ=ze({modelValue:{type:Date},range:{type:me(Array),validator:TQ}}),wQ={[It]:e=>Pa(e),[Cs]:e=>Pa(e)},CQ="ElCalendar",EQ=te({name:CQ}),xQ=te({...EQ,props:SQ,emits:wQ,setup(e,{expose:t,emit:n}){const s=e,r=Ne("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:a,realSelectedDay:l,selectDate:u,validatedRange:d}=_Q(s,n),{t:f}=qt(),h=E(()=>{const p=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(p)}`});return t({selectedDay:l,pickDay:a,selectDate:u,calculateValidatedDateRange:i}),(p,g)=>(x(),z("div",{class:I(c(r).b())},[V("div",{class:I(c(r).e("header"))},[xe(p.$slots,"header",{date:c(h)},()=>[V("div",{class:I(c(r).e("title"))},we(c(h)),3),c(d).length===0?(x(),z("div",{key:0,class:I(c(r).e("button-group"))},[G(c(BA),null,{default:ee(()=>[G(c(Un),{size:"small",onClick:g[0]||(g[0]=m=>c(u)("prev-month"))},{default:ee(()=>[wt(we(c(f)("el.datepicker.prevMonth")),1)]),_:1}),G(c(Un),{size:"small",onClick:g[1]||(g[1]=m=>c(u)("today"))},{default:ee(()=>[wt(we(c(f)("el.datepicker.today")),1)]),_:1}),G(c(Un),{size:"small",onClick:g[2]||(g[2]=m=>c(u)("next-month"))},{default:ee(()=>[wt(we(c(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):he("v-if",!0)])],2),c(d).length===0?(x(),z("div",{key:0,class:I(c(r).e("body"))},[G(PC,{date:c(o),"selected-day":c(l),onPick:c(a)},Ki({_:2},[p.$slots["date-cell"]||p.$slots.dateCell?{name:"date-cell",fn:ee(m=>[p.$slots["date-cell"]?xe(p.$slots,"date-cell",Mr($t({key:0},m))):xe(p.$slots,"dateCell",Mr($t({key:1},m)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(x(),z("div",{key:1,class:I(c(r).e("body"))},[(x(!0),z(et,null,kt(c(d),(m,v)=>(x(),ve(PC,{key:v,date:m[0],"selected-day":c(l),range:m,"hide-header":v!==0,onPick:c(a)},Ki({_:2},[p.$slots["date-cell"]||p.$slots.dateCell?{name:"date-cell",fn:ee(y=>[p.$slots["date-cell"]?xe(p.$slots,"date-cell",Mr($t({key:0},y))):xe(p.$slots,"dateCell",Mr($t({key:1},y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var kQ=Ue(xQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const OQ=Ot(kQ),AQ=ze({header:{type:String,default:""},bodyStyle:{type:me([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),IQ=te({name:"ElCard"}),PQ=te({...IQ,props:AQ,setup(e){const t=Ne("card");return(n,s)=>(x(),z("div",{class:I([c(t).b(),c(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(x(),z("div",{key:0,class:I(c(t).e("header"))},[xe(n.$slots,"header",{},()=>[wt(we(n.header),1)])],2)):he("v-if",!0),V("div",{class:I(c(t).e("body")),style:st(n.bodyStyle)},[xe(n.$slots,"default")],6)],2))}});var $Q=Ue(PQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const NQ=Ot($Q),MQ=ze({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),RQ={change:(e,t)=>[e,t].every(ht)},rI=Symbol("carouselContextKey"),$C=300,LQ=(e,t,n)=>{const{children:s,addChild:r,removeChild:i}=hA(At(),"ElCarouselItem"),o=B(-1),a=B(null),l=B(!1),u=B(),d=E(()=>e.arrow!=="never"&&!c(p)),f=E(()=>s.value.some(K=>K.props.label.toString().length>0)),h=E(()=>e.type==="card"),p=E(()=>e.direction==="vertical"),g=Ea(K=>{_(K)},$C,{trailing:!0}),m=Ea(K=>{W(K)},$C);function v(){a.value&&(clearInterval(a.value),a.value=null)}function y(){e.interval<=0||!e.autoplay||a.value||(a.value=setInterval(()=>T(),e.interval))}const T=()=>{o.value<s.value.length-1?o.value=o.value+1:e.loop&&(o.value=0)};function _(K){if(mt(K)){const U=s.value.filter(Z=>Z.props.name===K);U.length>0&&(K=s.value.indexOf(U[0]))}if(K=Number(K),Number.isNaN(K)||K!==Math.floor(K))return;const $=s.value.length,H=o.value;K<0?o.value=e.loop?$-1:0:K>=$?o.value=e.loop?0:$-1:o.value=K,H===o.value&&S(H),q()}function S(K){s.value.forEach(($,H)=>{$.translateItem(H,o.value,K)})}function w(K,$){var H,U,Z,ue;const Q=c(s),ae=Q.length;if(ae===0||!K.states.inStage)return!1;const Ee=$+1,le=$-1,ie=ae-1,ce=Q[ie].states.active,ne=Q[0].states.active,pe=(U=(H=Q[Ee])==null?void 0:H.states)==null?void 0:U.active,Te=(ue=(Z=Q[le])==null?void 0:Z.states)==null?void 0:ue.active;return $===ie&&ne||pe?"left":$===0&&ce||Te?"right":!1}function A(){l.value=!0,e.pauseOnHover&&v()}function M(){l.value=!1,y()}function N(K){c(p)||s.value.forEach(($,H)=>{K===w($,H)&&($.states.hover=!0)})}function L(){c(p)||s.value.forEach(K=>{K.states.hover=!1})}function F(K){o.value=K}function W(K){e.trigger==="hover"&&K!==o.value&&(o.value=K)}function j(){_(o.value-1)}function R(){_(o.value+1)}function q(){v(),y()}ke(()=>o.value,(K,$)=>{S($),$>-1&&t("change",K,$)}),ke(()=>e.autoplay,K=>{K?y():v()}),ke(()=>e.loop,()=>{_(o.value)}),ke(()=>e.interval,()=>{q()}),ke(()=>s.value,()=>{s.value.length>0&&_(e.initialIndex)});const X=nn();return Tt(()=>{X.value=ds(u.value,()=>{S()}),y()}),ln(()=>{v(),u.value&&X.value&&X.value.stop()}),Nt(rI,{root:u,isCardType:h,isVertical:p,items:s,loop:e.loop,addItem:r,removeItem:i,setActiveItem:_}),{root:u,activeIndex:o,arrowDisplay:d,hasLabel:f,hover:l,isCardType:h,items:s,handleButtonEnter:N,handleButtonLeave:L,handleIndicatorClick:F,handleMouseEnter:A,handleMouseLeave:M,setActiveItem:_,prev:j,next:R,throttledArrowClick:g,throttledIndicatorHover:m}},DQ=["onMouseenter","onClick"],FQ={key:0},BQ="ElCarousel",VQ=te({name:BQ}),UQ=te({...VQ,props:MQ,emits:RQ,setup(e,{expose:t,emit:n}){const s=e,{root:r,activeIndex:i,arrowDisplay:o,hasLabel:a,hover:l,isCardType:u,items:d,handleButtonEnter:f,handleButtonLeave:h,handleIndicatorClick:p,handleMouseEnter:g,handleMouseLeave:m,setActiveItem:v,prev:y,next:T,throttledArrowClick:_,throttledIndicatorHover:S}=LQ(s,n),w=Ne("carousel"),A=E(()=>{const N=[w.b(),w.m(s.direction)];return c(u)&&N.push(w.m("card")),N}),M=E(()=>{const N=[w.e("indicators"),w.em("indicators",s.direction)];return c(a)&&N.push(w.em("indicators","labels")),(s.indicatorPosition==="outside"||c(u))&&N.push(w.em("indicators","outside")),N});return t({setActiveItem:v,prev:y,next:T}),(N,L)=>(x(),z("div",{ref_key:"root",ref:r,class:I(c(A)),onMouseenter:L[6]||(L[6]=ft((...F)=>c(g)&&c(g)(...F),["stop"])),onMouseleave:L[7]||(L[7]=ft((...F)=>c(m)&&c(m)(...F),["stop"]))},[V("div",{class:I(c(w).e("container")),style:st({height:N.height})},[c(o)?(x(),ve(Pn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ee(()=>[gt(V("button",{type:"button",class:I([c(w).e("arrow"),c(w).em("arrow","left")]),onMouseenter:L[0]||(L[0]=F=>c(f)("left")),onMouseleave:L[1]||(L[1]=(...F)=>c(h)&&c(h)(...F)),onClick:L[2]||(L[2]=ft(F=>c(_)(c(i)-1),["stop"]))},[G(c(nt),null,{default:ee(()=>[G(c(Po))]),_:1})],34),[[Ut,(N.arrow==="always"||c(l))&&(s.loop||c(i)>0)]])]),_:1})):he("v-if",!0),c(o)?(x(),ve(Pn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ee(()=>[gt(V("button",{type:"button",class:I([c(w).e("arrow"),c(w).em("arrow","right")]),onMouseenter:L[3]||(L[3]=F=>c(f)("right")),onMouseleave:L[4]||(L[4]=(...F)=>c(h)&&c(h)(...F)),onClick:L[5]||(L[5]=ft(F=>c(_)(c(i)+1),["stop"]))},[G(c(nt),null,{default:ee(()=>[G(c(ws))]),_:1})],34),[[Ut,(N.arrow==="always"||c(l))&&(s.loop||c(i)<c(d).length-1)]])]),_:1})):he("v-if",!0),xe(N.$slots,"default")],6),N.indicatorPosition!=="none"?(x(),z("ul",{key:0,class:I(c(M))},[(x(!0),z(et,null,kt(c(d),(F,W)=>(x(),z("li",{key:W,class:I([c(w).e("indicator"),c(w).em("indicator",N.direction),c(w).is("active",W===c(i))]),onMouseenter:j=>c(S)(W),onClick:ft(j=>c(p)(W),["stop"])},[V("button",{class:I(c(w).e("button"))},[c(a)?(x(),z("span",FQ,we(F.props.label),1)):he("v-if",!0)],2)],42,DQ))),128))],2)):he("v-if",!0)],34))}});var HQ=Ue(UQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const zQ=ze({name:{type:String,default:""},label:{type:[String,Number],default:""}}),jQ=(e,t)=>{const n=Qe(rI),s=At(),r=.83,i=B(!1),o=B(0),a=B(1),l=B(!1),u=B(!1),d=B(!1),f=B(!1),{isCardType:h,isVertical:p}=n;function g(_,S,w){const A=w-1,M=S-1,N=S+1,L=w/2;return S===0&&_===A?-1:S===A&&_===0?w:_<M&&S-_>=L?w+1:_>N&&_-S>=L?-2:_}function m(_,S){var w;const A=((w=n.root.value)==null?void 0:w.offsetWidth)||0;return d.value?A*((2-r)*(_-S)+1)/4:_<S?-(1+r)*A/4:(3+r)*A/4}function v(_,S,w){const A=n.root.value;return A?((w?A.offsetHeight:A.offsetWidth)||0)*(_-S):0}const y=(_,S,w)=>{var A;const M=c(h),N=(A=n.items.value.length)!=null?A:Number.NaN,L=_===S;!M&&!Qn(w)&&(f.value=L||_===w),!L&&N>2&&n.loop&&(_=g(_,S,N));const F=c(p);l.value=L,M?(d.value=Math.round(Math.abs(_-S))<=1,o.value=m(_,S),a.value=c(l)?1:r):o.value=v(_,S,F),u.value=!0};function T(){if(n&&c(h)){const _=n.items.value.findIndex(({uid:S})=>S===s.uid);n.setActiveItem(_)}}return Tt(()=>{n.addItem({props:e,states:Bt({hover:i,translate:o,scale:a,active:l,ready:u,inStage:d,animating:f}),uid:s.uid,translateItem:y})}),Vo(()=>{n.removeItem(s.uid)}),{active:l,animating:f,hover:i,inStage:d,isVertical:p,translate:o,isCardType:h,scale:a,ready:u,handleItemClick:T}},KQ=te({name:"ElCarouselItem"}),WQ=te({...KQ,props:zQ,setup(e){const t=e,n=Ne("carousel"),{active:s,animating:r,hover:i,inStage:o,isVertical:a,translate:l,isCardType:u,scale:d,ready:f,handleItemClick:h}=jQ(t),p=E(()=>{const m=`${`translate${c(a)?"Y":"X"}`}(${c(l)}px)`,v=`scale(${c(d)})`;return{transform:[m,v].join(" ")}});return(g,m)=>gt((x(),z("div",{class:I([c(n).e("item"),c(n).is("active",c(s)),c(n).is("in-stage",c(o)),c(n).is("hover",c(i)),c(n).is("animating",c(r)),{[c(n).em("item","card")]:c(u)}]),style:st(c(p)),onClick:m[0]||(m[0]=(...v)=>c(h)&&c(h)(...v))},[c(u)?gt((x(),z("div",{key:0,class:I(c(n).e("mask"))},null,2)),[[Ut,!c(s)]]):he("v-if",!0),xe(g.$slots,"default")],6)),[[Ut,c(f)]])}});var iI=Ue(WQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const qQ=Ot(HQ,{CarouselItem:iI}),GQ=Cn(iI),oI={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:is,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},aI={[It]:e=>mt(e)||ht(e)||Dn(e),change:e=>mt(e)||ht(e)||Dn(e)},Ou=Symbol("checkboxGroupContextKey"),YQ=({model:e,isChecked:t})=>{const n=Qe(Ou,void 0),s=E(()=>{var i,o;const a=(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(a)&&e.value.length>=a&&!t.value||!Qn(l)&&e.value.length<=l&&t.value});return{isDisabled:zs(E(()=>(n==null?void 0:n.disabled.value)||s.value)),isLimitDisabled:s}},XQ=(e,{model:t,isLimitExceeded:n,hasOwnLabel:s,isDisabled:r,isLabeledByFormItem:i})=>{const o=Qe(Ou,void 0),{formItem:a}=Is(),{emit:l}=At();function u(g){var m,v;return g===e.trueLabel||g===!0?(m=e.trueLabel)!=null?m:!0:(v=e.falseLabel)!=null?v:!1}function d(g,m){l("change",u(g),m)}function f(g){if(n.value)return;const m=g.target;l("change",u(m.checked),g)}async function h(g){n.value||!s.value&&!r.value&&i.value&&(g.composedPath().some(y=>y.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await it(),d(t.value,g)))}const p=E(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return ke(()=>e.modelValue,()=>{p.value&&(a==null||a.validate("change").catch(g=>void 0))}),{handleChange:f,onClickRoot:h}},QQ=e=>{const t=B(!1),{emit:n}=At(),s=Qe(Ou,void 0),r=E(()=>Qn(s)===!1),i=B(!1);return{model:E({get(){var a,l;return r.value?(a=s==null?void 0:s.modelValue)==null?void 0:a.value:(l=e.modelValue)!=null?l:t.value},set(a){var l,u;r.value&&tt(a)?(i.value=((l=s==null?void 0:s.max)==null?void 0:l.value)!==void 0&&a.length>(s==null?void 0:s.max.value),i.value===!1&&((u=s==null?void 0:s.changeEvent)==null||u.call(s,a))):(n(It,a),t.value=a)}}),isGroup:r,isLimitExceeded:i}},JQ=(e,t,{model:n})=>{const s=Qe(Ou,void 0),r=B(!1),i=E(()=>{const u=n.value;return Dn(u)?u:tt(u)?Pt(e.label)?u.map(Xt).some(d=>sr(d,e.label)):u.map(Xt).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=Fn(E(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value}),{prop:!0}),a=Fn(E(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value})),l=E(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:r,checkboxSize:a,hasOwnLabel:l}},ZQ=(e,{model:t})=>{function n(){tt(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},lI=(e,t)=>{const{formItem:n}=Is(),{model:s,isGroup:r,isLimitExceeded:i}=QQ(e),{isFocused:o,isChecked:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d}=JQ(e,t,{model:s}),{isDisabled:f}=YQ({model:s,isChecked:a}),{inputId:h,isLabeledByFormItem:p}=Ko(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:r}),{handleChange:g,onClickRoot:m}=XQ(e,{model:s,isLimitExceeded:i,hasOwnLabel:d,isDisabled:f,isLabeledByFormItem:p});return ZQ(e,{model:s}),{inputId:h,isLabeledByFormItem:p,isChecked:a,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,model:s,handleChange:g,onClickRoot:m}},eJ=["tabindex","role","aria-checked"],tJ=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],nJ=["id","aria-hidden","disabled","value","name","tabindex"],sJ=te({name:"ElCheckbox"}),rJ=te({...sJ,props:oI,emits:aI,setup(e){const t=e,n=es(),{inputId:s,isLabeledByFormItem:r,isChecked:i,isDisabled:o,isFocused:a,checkboxSize:l,hasOwnLabel:u,model:d,handleChange:f,onClickRoot:h}=lI(t,n),p=Ne("checkbox"),g=E(()=>[p.b(),p.m(l.value),p.is("disabled",o.value),p.is("bordered",t.border),p.is("checked",i.value)]),m=E(()=>[p.e("input"),p.is("disabled",o.value),p.is("checked",i.value),p.is("indeterminate",t.indeterminate),p.is("focus",a.value)]);return(v,y)=>(x(),ve(Mt(!c(u)&&c(r)?"span":"label"),{class:I(c(g)),"aria-controls":v.indeterminate?v.controls:null,onClick:c(h)},{default:ee(()=>[V("span",{class:I(c(m)),tabindex:v.indeterminate?0:void 0,role:v.indeterminate?"checkbox":void 0,"aria-checked":v.indeterminate?"mixed":void 0},[v.trueLabel||v.falseLabel?gt((x(),z("input",{key:0,id:c(s),"onUpdate:modelValue":y[0]||(y[0]=T=>rn(d)?d.value=T:null),class:I(c(p).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",name:v.name,tabindex:v.tabindex,disabled:c(o),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:y[1]||(y[1]=(...T)=>c(f)&&c(f)(...T)),onFocus:y[2]||(y[2]=T=>a.value=!0),onBlur:y[3]||(y[3]=T=>a.value=!1)},null,42,tJ)),[[ap,c(d)]]):gt((x(),z("input",{key:1,id:c(s),"onUpdate:modelValue":y[4]||(y[4]=T=>rn(d)?d.value=T:null),class:I(c(p).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",disabled:c(o),value:v.label,name:v.name,tabindex:v.tabindex,onChange:y[5]||(y[5]=(...T)=>c(f)&&c(f)(...T)),onFocus:y[6]||(y[6]=T=>a.value=!0),onBlur:y[7]||(y[7]=T=>a.value=!1)},null,42,nJ)),[[ap,c(d)]]),V("span",{class:I(c(p).e("inner"))},null,2)],10,eJ),c(u)?(x(),z("span",{key:0,class:I(c(p).e("label"))},[xe(v.$slots,"default"),v.$slots.default?he("v-if",!0):(x(),z(et,{key:0},[wt(we(v.label),1)],64))],2)):he("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var iJ=Ue(rJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const oJ=["name","tabindex","disabled","true-value","false-value"],aJ=["name","tabindex","disabled","value"],lJ=te({name:"ElCheckboxButton"}),uJ=te({...lJ,props:oI,emits:aI,setup(e){const t=e,n=es(),{isFocused:s,isChecked:r,isDisabled:i,checkboxButtonSize:o,model:a,handleChange:l}=lI(t,n),u=Qe(Ou,void 0),d=Ne("checkbox"),f=E(()=>{var p,g,m,v;const y=(g=(p=u==null?void 0:u.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:y,borderColor:y,color:(v=(m=u==null?void 0:u.textColor)==null?void 0:m.value)!=null?v:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),h=E(()=>[d.b("button"),d.bm("button",o.value),d.is("disabled",i.value),d.is("checked",r.value),d.is("focus",s.value)]);return(p,g)=>(x(),z("label",{class:I(c(h))},[p.trueLabel||p.falseLabel?gt((x(),z("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=m=>rn(a)?a.value=m:null),class:I(c(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:c(i),"true-value":p.trueLabel,"false-value":p.falseLabel,onChange:g[1]||(g[1]=(...m)=>c(l)&&c(l)(...m)),onFocus:g[2]||(g[2]=m=>s.value=!0),onBlur:g[3]||(g[3]=m=>s.value=!1)},null,42,oJ)),[[ap,c(a)]]):gt((x(),z("input",{key:1,"onUpdate:modelValue":g[4]||(g[4]=m=>rn(a)?a.value=m:null),class:I(c(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:c(i),value:p.label,onChange:g[5]||(g[5]=(...m)=>c(l)&&c(l)(...m)),onFocus:g[6]||(g[6]=m=>s.value=!0),onBlur:g[7]||(g[7]=m=>s.value=!1)},null,42,aJ)),[[ap,c(a)]]),p.$slots.default||p.label?(x(),z("span",{key:2,class:I(c(d).be("button","inner")),style:st(c(r)?c(f):void 0)},[xe(p.$slots,"default",{},()=>[wt(we(p.label),1)])],6)):he("v-if",!0)],2))}});var uI=Ue(uJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const cJ=ze({modelValue:{type:me(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:is,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),dJ={[It]:e=>tt(e),change:e=>tt(e)},fJ=te({name:"ElCheckboxGroup"}),hJ=te({...fJ,props:cJ,emits:dJ,setup(e,{emit:t}){const n=e,s=Ne("checkbox"),{formItem:r}=Is(),{inputId:i,isLabeledByFormItem:o}=Ko(n,{formItemContext:r}),a=async u=>{t(It,u),await it(),t("change",u)},l=E({get(){return n.modelValue},set(u){a(u)}});return Nt(Ou,{...Bi(Hn(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:a}),ke(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(u=>void 0))}),(u,d)=>{var f;return x(),ve(Mt(u.tag),{id:c(i),class:I(c(s).b("group")),role:"group","aria-label":c(o)?void 0:u.label||"checkbox-group","aria-labelledby":c(o)?(f=c(r))==null?void 0:f.labelId:void 0},{default:ee(()=>[xe(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var cI=Ue(hJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Sr=Ot(iJ,{CheckboxButton:uI,CheckboxGroup:cI}),pJ=Cn(uI),dI=Cn(cI),fI=ze({size:is,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),mJ=ze({...fI,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),hI={[It]:e=>mt(e)||ht(e)||Dn(e),[an]:e=>mt(e)||ht(e)||Dn(e)},pI=Symbol("radioGroupKey"),mI=(e,t)=>{const n=B(),s=Qe(pI,void 0),r=E(()=>!!s),i=E({get(){return r.value?s.modelValue:e.modelValue},set(d){r.value?s.changeEvent(d):t&&t(It,d),n.value.checked=e.modelValue===e.label}}),o=Fn(E(()=>s==null?void 0:s.size)),a=zs(E(()=>s==null?void 0:s.disabled)),l=B(!1),u=E(()=>a.value||r.value&&i.value!==e.label?-1:0);return{radioRef:n,isGroup:r,radioGroup:s,focus:l,size:o,disabled:a,tabIndex:u,modelValue:i}},gJ=["value","name","disabled"],vJ=te({name:"ElRadio"}),yJ=te({...vJ,props:mJ,emits:hI,setup(e,{emit:t}){const n=e,s=Ne("radio"),{radioRef:r,radioGroup:i,focus:o,size:a,disabled:l,modelValue:u}=mI(n,t);function d(){it(()=>t("change",u.value))}return(f,h)=>{var p;return x(),z("label",{class:I([c(s).b(),c(s).is("disabled",c(l)),c(s).is("focus",c(o)),c(s).is("bordered",f.border),c(s).is("checked",c(u)===f.label),c(s).m(c(a))])},[V("span",{class:I([c(s).e("input"),c(s).is("disabled",c(l)),c(s).is("checked",c(u)===f.label)])},[gt(V("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":h[0]||(h[0]=g=>rn(u)?u.value=g:null),class:I(c(s).e("original")),value:f.label,name:f.name||((p=c(i))==null?void 0:p.name),disabled:c(l),type:"radio",onFocus:h[1]||(h[1]=g=>o.value=!0),onBlur:h[2]||(h[2]=g=>o.value=!1),onChange:d},null,42,gJ),[[k2,c(u)]]),V("span",{class:I(c(s).e("inner"))},null,2)],2),V("span",{class:I(c(s).e("label")),onKeydown:h[3]||(h[3]=ft(()=>{},["stop"]))},[xe(f.$slots,"default",{},()=>[wt(we(f.label),1)])],34)],2)}}});var bJ=Ue(yJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const _J=ze({...fI,name:{type:String,default:""}}),TJ=["value","name","disabled"],SJ=te({name:"ElRadioButton"}),wJ=te({...SJ,props:_J,setup(e){const t=e,n=Ne("radio"),{radioRef:s,focus:r,size:i,disabled:o,modelValue:a,radioGroup:l}=mI(t),u=E(()=>({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(d,f)=>{var h;return x(),z("label",{class:I([c(n).b("button"),c(n).is("active",c(a)===d.label),c(n).is("disabled",c(o)),c(n).is("focus",c(r)),c(n).bm("button",c(i))])},[gt(V("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":f[0]||(f[0]=p=>rn(a)?a.value=p:null),class:I(c(n).be("button","original-radio")),value:d.label,type:"radio",name:d.name||((h=c(l))==null?void 0:h.name),disabled:c(o),onFocus:f[1]||(f[1]=p=>r.value=!0),onBlur:f[2]||(f[2]=p=>r.value=!1)},null,42,TJ),[[k2,c(a)]]),V("span",{class:I(c(n).be("button","inner")),style:st(c(a)===d.label?c(u):{}),onKeydown:f[3]||(f[3]=ft(()=>{},["stop"]))},[xe(d.$slots,"default",{},()=>[wt(we(d.label),1)])],38)],2)}}});var gI=Ue(wJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const CJ=ze({id:{type:String,default:void 0},size:is,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}}),EJ=hI,xJ=["id","aria-label","aria-labelledby"],kJ=te({name:"ElRadioGroup"}),OJ=te({...kJ,props:CJ,emits:EJ,setup(e,{emit:t}){const n=e,s=Ne("radio"),r=Tr(),i=B(),{formItem:o}=Is(),{inputId:a,isLabeledByFormItem:l}=Ko(n,{formItemContext:o}),u=f=>{t(It,f),it(()=>t("change",f))};Tt(()=>{const f=i.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(p=>p.checked)&&h&&(h.tabIndex=0)});const d=E(()=>n.name||r.value);return Nt(pI,Bt({...Hn(n),changeEvent:u,name:d})),ke(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,h)=>(x(),z("div",{id:c(a),ref_key:"radioGroupRef",ref:i,class:I(c(s).b("group")),role:"radiogroup","aria-label":c(l)?void 0:f.label||"radio-group","aria-labelledby":c(l)?c(o).labelId:void 0},[xe(f.$slots,"default")],10,xJ))}});var vI=Ue(OJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const yI=Ot(bJ,{RadioButton:gI,RadioGroup:vI}),AJ=Cn(vI),IJ=Cn(gI);var PJ=te({name:"NodeContent",setup(){return{ns:Ne("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:s,label:r}=t,{renderLabelFn:i}=n;return ot("span",{class:e.e("label")},i?i({node:t,data:s}):r)}});const y_=Symbol(),$J=te({name:"ElCascaderNode",components:{ElCheckbox:Sr,ElRadio:yI,NodeContent:PJ,ElIcon:nt,Check:qd,Loading:zo,ArrowRight:ws},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Qe(y_),s=Ne("cascader-node"),r=E(()=>n.isHoverMenu),i=E(()=>n.config.multiple),o=E(()=>n.config.checkStrictly),a=E(()=>{var A;return(A=n.checkedNodes[0])==null?void 0:A.uid}),l=E(()=>e.node.isDisabled),u=E(()=>e.node.isLeaf),d=E(()=>o.value&&!u.value||!l.value),f=E(()=>p(n.expandingNode)),h=E(()=>o.value&&n.checkedNodes.some(p)),p=A=>{var M;const{level:N,uid:L}=e.node;return((M=A==null?void 0:A.pathNodes[N-1])==null?void 0:M.uid)===L},g=()=>{f.value||n.expandNode(e.node)},m=A=>{const{node:M}=e;A!==M.checked&&n.handleCheckChange(M,A)},v=()=>{n.lazyLoad(e.node,()=>{u.value||g()})},y=A=>{r.value&&(T(),!u.value&&t("expand",A))},T=()=>{const{node:A}=e;!d.value||A.loading||(A.loaded?g():v())},_=()=>{r.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?w(!0):T())},S=A=>{o.value?(m(A),e.node.loaded&&g()):w(A)},w=A=>{e.node.loaded?(m(A),!o.value&&g()):v()};return{panel:n,isHoverMenu:r,multiple:i,checkStrictly:o,checkedNodeId:a,isDisabled:l,isLeaf:u,expandable:d,inExpandingPath:f,inCheckedPath:h,ns:s,handleHoverExpand:y,handleExpand:T,handleClick:_,handleCheck:w,handleSelectCheck:S}}}),NJ=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],MJ=V("span",null,null,-1);function RJ(e,t,n,s,r,i){const o=vt("el-checkbox"),a=vt("el-radio"),l=vt("check"),u=vt("el-icon"),d=vt("node-content"),f=vt("loading"),h=vt("arrow-right");return x(),z("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:I([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]=(...p)=>e.handleHoverExpand&&e.handleHoverExpand(...p)),onFocus:t[3]||(t[3]=(...p)=>e.handleHoverExpand&&e.handleHoverExpand(...p)),onClick:t[4]||(t[4]=(...p)=>e.handleClick&&e.handleClick(...p))},[he(" prefix "),e.multiple?(x(),ve(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=ft(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(x(),ve(a,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=ft(()=>{},["stop"]))},{default:ee(()=>[he(`
|
||
Add an empty element to avoid render label,
|
||
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
`),MJ]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(x(),ve(u,{key:2,class:I(e.ns.e("prefix"))},{default:ee(()=>[G(l)]),_:1},8,["class"])):he("v-if",!0),he(" content "),G(d),he(" postfix "),e.isLeaf?he("v-if",!0):(x(),z(et,{key:3},[e.node.loading?(x(),ve(u,{key:0,class:I([e.ns.is("loading"),e.ns.e("postfix")])},{default:ee(()=>[G(f)]),_:1},8,["class"])):(x(),ve(u,{key:1,class:I(["arrow-right",e.ns.e("postfix")])},{default:ee(()=>[G(h)]),_:1},8,["class"]))],64))],42,NJ)}var LJ=Ue($J,[["render",RJ],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const DJ=te({name:"ElCascaderMenu",components:{Loading:zo,ElIcon:nt,ElScrollbar:ro,ElCascaderNode:LJ},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=At(),n=Ne("cascader-menu"),{t:s}=qt(),r=Im();let i=null,o=null;const a=Qe(y_),l=B(null),u=E(()=>!e.nodes.length),d=E(()=>!a.initialLoaded),f=E(()=>`cascader-menu-${r}-${e.index}`),h=v=>{i=v.target},p=v=>{if(!(!a.isHoverMenu||!i||!l.value))if(i.contains(v.target)){g();const y=t.vnode.el,{left:T}=y.getBoundingClientRect(),{offsetWidth:_,offsetHeight:S}=y,w=v.clientX-T,A=i.offsetTop,M=A+i.offsetHeight;l.value.innerHTML=`
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${w} ${A} L${_} 0 V${A} Z" />
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${w} ${M} L${_} ${S} V${M} Z" />
|
||
`}else o||(o=window.setTimeout(m,a.config.hoverThreshold))},g=()=>{o&&(clearTimeout(o),o=null)},m=()=>{l.value&&(l.value.innerHTML="",g())};return{ns:n,panel:a,hoverZone:l,isEmpty:u,isLoading:d,menuId:f,t:s,handleExpand:h,handleMouseMove:p,clearHoverZone:m}}});function FJ(e,t,n,s,r,i){const o=vt("el-cascader-node"),a=vt("loading"),l=vt("el-icon"),u=vt("el-scrollbar");return x(),ve(u,{key:e.menuId,tag:"ul",role:"menu",class:I(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:ee(()=>{var d;return[(x(!0),z(et,null,kt(e.nodes,f=>(x(),ve(o,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(x(),z("div",{key:0,class:I(e.ns.e("empty-text"))},[G(l,{size:"14",class:I(e.ns.is("loading"))},{default:ee(()=>[G(a)]),_:1},8,["class"]),wt(" "+we(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(x(),z("div",{key:1,class:I(e.ns.e("empty-text"))},we(e.t("el.cascader.noData")),3)):(d=e.panel)!=null&&d.isHoverMenu?(x(),z("svg",{key:2,ref:"hoverZone",class:I(e.ns.e("hover-zone"))},null,2)):he("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var BJ=Ue(DJ,[["render",FJ],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let VJ=0;const UJ=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let B0=class V0{constructor(t,n,s,r=!1){this.data=t,this.config=n,this.parent=s,this.root=r,this.uid=VJ++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:a}=n,l=t[a],u=UJ(this);this.level=r?0:s?s.level+1:1,this.value=t[i],this.label=t[o],this.pathNodes=u,this.pathValues=u.map(d=>d.value),this.pathLabels=u.map(d=>d.label),this.childrenData=l,this.children=(l||[]).map(d=>new V0(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!fr(l)}get isDisabled(){const{data:t,parent:n,config:s}=this,{disabled:r,checkStrictly:i}=s;return(pt(r)?r(t,this):!!t[r])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:s,loaded:r}=this,{lazy:i,leaf:o}=n,a=pt(o)?o(t,this):t[o];return Qn(a)?i&&!r?!1:!(Array.isArray(s)&&s.length):!!a}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:s}=this,r=new V0(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],s.push(r),r}calcText(t,n){const s=t?this.pathLabels.join(n):this.label;return this.text=s,s}broadcast(t,...n){const s=`onParent${ni(t)}`;this.children.forEach(r=>{r&&(r.broadcast(t,...n),r[s]&&r[s](...n))})}emit(t,...n){const{parent:s}=this,r=`onChild${ni(t)}`;s&&(s[r]&&s[r](...n),s.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(r=>!r.isDisabled),s=n.length?n.every(r=>r.checked):!1;this.setCheckState(s)}setCheckState(t){const n=this.children.length,s=this.children.reduce((r,i)=>{const o=i.checked?1:i.indeterminate?.5:0;return r+o},0);this.checked=this.loaded&&this.children.filter(r=>!r.isDisabled).every(r=>r.loaded&&r.checked)&&t,this.indeterminate=this.loaded&&s!==n&&s>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:s}=this.config;n||!s?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const U0=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(U0(s.children,t))),n),[]);class NC{constructor(t,n){this.config=n;const s=(t||[]).map(r=>new B0(r,this.config));this.nodes=s,this.allNodes=U0(s,!1),this.leafNodes=U0(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new B0(t,this.config);n||this.nodes.push(s),this.allNodes.push(s),s.isLeaf&&this.leafNodes.push(s)}appendNodes(t,n){t.forEach(s=>this.appendNode(s,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(r=>sr(r.value,t)||sr(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:s,level:r})=>sr(t.value,s)&&t.level===r)||null}}const bI=ze({modelValue:{type:me([Number,String,Array])},options:{type:me(Array),default:()=>[]},props:{type:me(Object),default:()=>({})}}),HJ={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Zt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},zJ=e=>E(()=>({...HJ,...e.props})),MC=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},jJ=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():P2(e)&&e.click()},KJ=(e,t)=>{const n=t.slice(0),s=n.map(i=>i.uid),r=e.reduce((i,o)=>{const a=s.indexOf(o.uid);return a>-1&&(i.push(o),n.splice(a,1),s.splice(a,1)),i},[]);return r.push(...n),r},WJ=te({name:"ElCascaderPanel",components:{ElCascaderMenu:BJ},props:{...bI,border:{type:Boolean,default:!0},renderLabel:Function},emits:[It,an,"close","expand-change"],setup(e,{emit:t,slots:n}){let s=!1;const r=Ne("cascader"),i=zJ(e);let o=null;const a=B(!0),l=B([]),u=B(null),d=B([]),f=B(null),h=B([]),p=E(()=>i.value.expandTrigger==="hover"),g=E(()=>e.renderLabel||n.default),m=()=>{const{options:j}=e,R=i.value;s=!1,o=new NC(j,R),d.value=[o.getNodes()],R.lazy&&fr(e.options)?(a.value=!1,v(void 0,q=>{q&&(o=new NC(q,R),d.value=[o.getNodes()]),a.value=!0,N(!1,!0)})):N(!1,!0)},v=(j,R)=>{const q=i.value;j=j||new B0({},q,void 0,!0),j.loading=!0;const X=K=>{const $=j,H=$.root?null:$;K&&(o==null||o.appendNodes(K,H)),$.loading=!1,$.loaded=!0,$.childrenData=$.childrenData||[],R&&R(K)};q.lazyLoad(j,X)},y=(j,R)=>{var q;const{level:X}=j,K=d.value.slice(0,X);let $;j.isLeaf?$=j.pathNodes[X-2]:($=j,K.push(j.children)),((q=f.value)==null?void 0:q.uid)!==($==null?void 0:$.uid)&&(f.value=j,d.value=K,!R&&t("expand-change",(j==null?void 0:j.pathValues)||[]))},T=(j,R,q=!0)=>{const{checkStrictly:X,multiple:K}=i.value,$=h.value[0];s=!0,!K&&($==null||$.doCheck(!1)),j.doCheck(R),M(),q&&!K&&!X&&t("close"),!q&&!K&&!X&&_(j)},_=j=>{j&&(j=j.parent,_(j),j&&y(j))},S=j=>o==null?void 0:o.getFlattedNodes(j),w=j=>{var R;return(R=S(j))==null?void 0:R.filter(q=>q.checked!==!1)},A=()=>{h.value.forEach(j=>j.doCheck(!1)),M(),d.value=d.value.slice(0,1),f.value=null,t("expand-change",[])},M=()=>{var j;const{checkStrictly:R,multiple:q}=i.value,X=h.value,K=w(!R),$=KJ(X,K),H=$.map(U=>U.valueByOption);h.value=$,u.value=q?H:(j=H[0])!=null?j:null},N=(j=!1,R=!1)=>{const{modelValue:q}=e,{lazy:X,multiple:K,checkStrictly:$}=i.value,H=!$;if(!(!a.value||s||!R&&sr(q,u.value)))if(X&&!j){const Z=$w(NU(Vi(q))).map(ue=>o==null?void 0:o.getNodeByValue(ue)).filter(ue=>!!ue&&!ue.loaded&&!ue.loading);Z.length?Z.forEach(ue=>{v(ue,()=>N(!1,R))}):N(!0,R)}else{const U=K?Vi(q):[q],Z=$w(U.map(ue=>o==null?void 0:o.getNodeByValue(ue,H)));L(Z,R),u.value=zb(q)}},L=(j,R=!0)=>{const{checkStrictly:q}=i.value,X=h.value,K=j.filter(U=>!!U&&(q||U.isLeaf)),$=o==null?void 0:o.getSameNode(f.value),H=R&&$||K[0];H?H.pathNodes.forEach(U=>y(U,!0)):f.value=null,X.forEach(U=>U.doCheck(!1)),K.forEach(U=>U.doCheck(!0)),h.value=K,it(F)},F=()=>{Ht&&l.value.forEach(j=>{const R=j==null?void 0:j.$el;if(R){const q=R.querySelector(`.${r.namespace.value}-scrollbar__wrap`),X=R.querySelector(`.${r.b("node")}.${r.is("active")}`)||R.querySelector(`.${r.b("node")}.in-active-path`);_O(q,X)}})},W=j=>{const R=j.target,{code:q}=j;switch(q){case at.up:case at.down:{j.preventDefault();const X=q===at.up?-1:1;wh($2(R,X,`.${r.b("node")}[tabindex="-1"]`));break}case at.left:{j.preventDefault();const X=l.value[MC(R)-1],K=X==null?void 0:X.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);wh(K);break}case at.right:{j.preventDefault();const X=l.value[MC(R)+1],K=X==null?void 0:X.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);wh(K);break}case at.enter:jJ(R);break}};return Nt(y_,Bt({config:i,expandingNode:f,checkedNodes:h,isHoverMenu:p,initialLoaded:a,renderLabelFn:g,lazyLoad:v,expandNode:y,handleCheckChange:T})),ke([i,()=>e.options],m,{deep:!0,immediate:!0}),ke(()=>e.modelValue,()=>{s=!1,N()},{deep:!0}),ke(()=>u.value,j=>{sr(j,e.modelValue)||(t(It,j),t(an,j))}),n2(()=>l.value=[]),Tt(()=>!fr(e.modelValue)&&N()),{ns:r,menuList:l,menus:d,checkedNodes:h,handleKeyDown:W,handleCheckChange:T,getFlattedNodes:S,getCheckedNodes:w,clearCheckedNodes:A,calculateCheckedValue:M,scrollToExpandingNode:F}}});function qJ(e,t,n,s,r,i){const o=vt("el-cascader-menu");return x(),z("div",{class:I([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...a)=>e.handleKeyDown&&e.handleKeyDown(...a))},[(x(!0),z(et,null,kt(e.menus,(a,l)=>(x(),ve(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...a]},null,8,["index","nodes"]))),128))],34)}var Ph=Ue(WJ,[["render",qJ],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);Ph.install=e=>{e.component(Ph.name,Ph)};const _I=Ph,GJ=_I,b_=ze({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Ci,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),YJ={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},XJ=te({name:"ElTag"}),QJ=te({...XJ,props:b_,emits:YJ,setup(e,{emit:t}){const n=e,s=Fn(),r=Ne("tag"),i=E(()=>{const{type:l,hit:u,effect:d,closable:f,round:h}=n;return[r.b(),r.is("closable",f),r.m(l),r.m(s.value),r.m(d),r.is("hit",u),r.is("round",h)]}),o=l=>{t("close",l)},a=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(x(),z("span",{key:0,class:I(c(i)),style:st({backgroundColor:l.color}),onClick:a},[V("span",{class:I(c(r).e("content"))},[xe(l.$slots,"default")],2),l.closable?(x(),ve(c(nt),{key:0,class:I(c(r).e("close")),onClick:ft(o,["stop"])},{default:ee(()=>[G(c(Hr))]),_:1},8,["class","onClick"])):he("v-if",!0)],6)):(x(),ve(Pn,{key:1,name:`${c(r).namespace.value}-zoom-in-center`,appear:""},{default:ee(()=>[V("span",{class:I(c(i)),style:st({backgroundColor:l.color}),onClick:a},[V("span",{class:I(c(r).e("content"))},[xe(l.$slots,"default")],2),l.closable?(x(),ve(c(nt),{key:0,class:I(c(r).e("close")),onClick:ft(o,["stop"])},{default:ee(()=>[G(c(Hr))]),_:1},8,["class","onClick"])):he("v-if",!0)],6)]),_:3},8,["name"]))}});var JJ=Ue(QJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const pd=Ot(JJ),ZJ=ze({...bI,size:is,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:me(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:me(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Gn.teleported,tagType:{...b_.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),eZ={[It]:e=>!!e||e===null,[an]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Dn(e),expandChange:e=>!!e,removeTag:e=>!!e},tZ={key:0},nZ=["placeholder","onKeydown"],sZ=["onClick"],rZ="ElCascader",iZ=te({name:rZ}),oZ=te({...iZ,props:ZJ,emits:eZ,setup(e,{expose:t,emit:n}){const s=e,r={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:be})=>{const{modifiersData:J,placement:fe}=be;["right","left","bottom","top"].includes(fe)||(J.arrow.x=35)},requires:["arrow"]}]},i=Eu();let o=0,a=0;const l=Ne("cascader"),u=Ne("input"),{t:d}=qt(),{form:f,formItem:h}=Is(),p=B(null),g=B(null),m=B(null),v=B(null),y=B(null),T=B(!1),_=B(!1),S=B(!1),w=B(!1),A=B(""),M=B(""),N=B([]),L=B([]),F=B([]),W=B(!1),j=E(()=>i.style),R=E(()=>s.disabled||(f==null?void 0:f.disabled)),q=E(()=>s.placeholder||d("el.cascader.placeholder")),X=E(()=>M.value||N.value.length>0||W.value?"":q.value),K=Fn(),$=E(()=>["small"].includes(K.value)?"small":"default"),H=E(()=>!!s.props.multiple),U=E(()=>!s.filterable||H.value),Z=E(()=>H.value?M.value:A.value),ue=E(()=>{var be;return((be=v.value)==null?void 0:be.checkedNodes)||[]}),Q=E(()=>!s.clearable||R.value||S.value||!_.value?!1:!!ue.value.length),ae=E(()=>{const{showAllLevels:be,separator:J}=s,fe=ue.value;return fe.length?H.value?"":fe[0].calcText(be,J):""}),Ee=E({get(){return zb(s.modelValue)},set(be){n(It,be),n(an,be),s.validateEvent&&(h==null||h.validate("change").catch(J=>void 0))}}),le=E(()=>[l.b(),l.m(K.value),l.is("disabled",R.value),i.class]),ie=E(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",T.value)]),ce=E(()=>l.is("focus",T.value||w.value)),ne=E(()=>{var be,J;return(J=(be=p.value)==null?void 0:be.popperRef)==null?void 0:J.contentRef}),pe=be=>{var J,fe,Re;R.value||(be=be??!T.value,be!==T.value&&(T.value=be,(fe=(J=g.value)==null?void 0:J.input)==null||fe.setAttribute("aria-expanded",`${be}`),be?(Te(),it((Re=v.value)==null?void 0:Re.scrollToExpandingNode)):s.filterable&&qe(),n("visibleChange",be)))},Te=()=>{it(()=>{var be;(be=p.value)==null||be.updatePopper()})},He=()=>{S.value=!1},Y=be=>{const{showAllLevels:J,separator:fe}=s;return{node:be,key:be.uid,text:be.calcText(J,fe),hitState:!1,closable:!R.value&&!be.isDisabled,isCollapseTag:!1}},re=be=>{var J;const fe=be.node;fe.doCheck(!1),(J=v.value)==null||J.calculateCheckedValue(),n("removeTag",fe.valueByOption)},Se=()=>{if(!H.value)return;const be=ue.value,J=[],fe=[];if(be.forEach(Re=>fe.push(Y(Re))),L.value=fe,be.length){const[Re,...We]=be,St=We.length;J.push(Y(Re)),St&&(s.collapseTags?J.push({key:-1,text:`+ ${St}`,closable:!1,isCollapseTag:!0}):We.forEach($e=>J.push(Y($e))))}N.value=J},Oe=()=>{var be,J;const{filterMethod:fe,showAllLevels:Re,separator:We}=s,St=(J=(be=v.value)==null?void 0:be.getFlattedNodes(!s.props.checkStrictly))==null?void 0:J.filter($e=>$e.isDisabled?!1:($e.calcText(Re,We),fe($e,Z.value)));H.value&&(N.value.forEach($e=>{$e.hitState=!1}),L.value.forEach($e=>{$e.hitState=!1})),S.value=!0,F.value=St,Te()},Ve=()=>{var be;let J;S.value&&y.value?J=y.value.$el.querySelector(`.${l.e("suggestion-item")}`):J=(be=v.value)==null?void 0:be.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),J&&(J.focus(),!S.value&&J.click())},_e=()=>{var be,J;const fe=(be=g.value)==null?void 0:be.input,Re=m.value,We=(J=y.value)==null?void 0:J.$el;if(!(!Ht||!fe)){if(We){const St=We.querySelector(`.${l.e("suggestion-list")}`);St.style.minWidth=`${fe.offsetWidth}px`}if(Re){const{offsetHeight:St}=Re,$e=N.value.length>0?`${Math.max(St+6,o)}px`:`${o}px`;fe.style.height=$e,Te()}}},Be=be=>{var J;return(J=v.value)==null?void 0:J.getCheckedNodes(be)},Ie=be=>{Te(),n("expandChange",be)},Ae=be=>{var J;const fe=(J=be.target)==null?void 0:J.value;if(be.type==="compositionend")W.value=!1,it(()=>De(fe));else{const Re=fe[fe.length-1]||"";W.value=!Om(Re)}},Me=be=>{if(!W.value)switch(be.code){case at.enter:pe();break;case at.down:pe(!0),it(Ve),be.preventDefault();break;case at.esc:T.value===!0&&(be.preventDefault(),be.stopPropagation(),pe(!1));break;case at.tab:pe(!1);break}},Ye=()=>{var be;(be=v.value)==null||be.clearCheckedNodes(),!T.value&&s.filterable&&qe(),pe(!1)},qe=()=>{const{value:be}=ae;A.value=be,M.value=be},Ce=be=>{var J,fe;const{checked:Re}=be;H.value?(J=v.value)==null||J.handleCheckChange(be,!Re,!1):(!Re&&((fe=v.value)==null||fe.handleCheckChange(be,!0,!1)),pe(!1))},Ge=be=>{const J=be.target,{code:fe}=be;switch(fe){case at.up:case at.down:{const Re=fe===at.up?-1:1;wh($2(J,Re,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case at.enter:J.click();break}},ut=()=>{const be=N.value,J=be[be.length-1];a=M.value?0:a+1,!(!J||!a||s.collapseTags&&be.length>1)&&(J.hitState?re(J):J.hitState=!0)},bt=be=>{const J=be.target,fe=l.e("search-input");J.className===fe&&(w.value=!0),n("focus",be)},ct=be=>{w.value=!1,n("blur",be)},Le=Os(()=>{const{value:be}=Z;if(!be)return;const J=s.beforeFilter(be);jc(J)?J.then(Oe).catch(()=>{}):J!==!1?Oe():He()},s.debounce),De=(be,J)=>{!T.value&&pe(!0),!(J!=null&&J.isComposing)&&(be?Le():He())};return ke(S,Te),ke([ue,R],Se),ke(N,()=>{it(()=>_e())}),ke(ae,qe,{immediate:!0}),Tt(()=>{const be=g.value.input,J=Number.parseFloat(AF(u.cssVarName("input-height"),be).value)-2;o=be.offsetHeight||J,ds(be,_e)}),t({getCheckedNodes:Be,cascaderPanelRef:v,togglePopperVisible:pe,contentRef:ne}),(be,J)=>(x(),ve(c(As),{ref_key:"tooltipRef",ref:p,visible:T.value,teleported:be.teleported,"popper-class":[c(l).e("dropdown"),be.popperClass],"popper-options":r,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${c(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:He},{default:ee(()=>[gt((x(),z("div",{class:I(c(le)),style:st(c(j)),onClick:J[5]||(J[5]=()=>pe(c(U)?void 0:!0)),onKeydown:Me,onMouseenter:J[6]||(J[6]=fe=>_.value=!0),onMouseleave:J[7]||(J[7]=fe=>_.value=!1)},[G(c(ls),{ref_key:"input",ref:g,modelValue:A.value,"onUpdate:modelValue":J[1]||(J[1]=fe=>A.value=fe),placeholder:c(X),readonly:c(U),disabled:c(R),"validate-event":!1,size:c(K),class:I(c(ce)),tabindex:c(H)&&be.filterable&&!c(R)?-1:void 0,onCompositionstart:Ae,onCompositionupdate:Ae,onCompositionend:Ae,onFocus:bt,onBlur:ct,onInput:De},{suffix:ee(()=>[c(Q)?(x(),ve(c(nt),{key:"clear",class:I([c(u).e("icon"),"icon-circle-close"]),onClick:ft(Ye,["stop"])},{default:ee(()=>[G(c(Ho))]),_:1},8,["class","onClick"])):(x(),ve(c(nt),{key:"arrow-down",class:I(c(ie)),onClick:J[0]||(J[0]=ft(fe=>pe(),["stop"]))},{default:ee(()=>[G(c(Uo))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),c(H)?(x(),z("div",{key:0,ref_key:"tagWrapper",ref:m,class:I(c(l).e("tags"))},[(x(!0),z(et,null,kt(N.value,fe=>(x(),ve(c(pd),{key:fe.key,type:be.tagType,size:c($),hit:fe.hitState,closable:fe.closable,"disable-transitions":"",onClose:Re=>re(fe)},{default:ee(()=>[fe.isCollapseTag===!1?(x(),z("span",tZ,we(fe.text),1)):(x(),ve(c(As),{key:1,disabled:T.value||!be.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:ee(()=>[V("span",null,we(fe.text),1)]),content:ee(()=>[V("div",{class:I(c(l).e("collapse-tags"))},[(x(!0),z(et,null,kt(L.value.slice(1),(Re,We)=>(x(),z("div",{key:We,class:I(c(l).e("collapse-tag"))},[(x(),ve(c(pd),{key:Re.key,class:"in-tooltip",type:be.tagType,size:c($),hit:Re.hitState,closable:Re.closable,"disable-transitions":"",onClose:St=>re(Re)},{default:ee(()=>[V("span",null,we(Re.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),be.filterable&&!c(R)?gt((x(),z("input",{key:0,"onUpdate:modelValue":J[2]||(J[2]=fe=>M.value=fe),type:"text",class:I(c(l).e("search-input")),placeholder:c(ae)?"":c(q),onInput:J[3]||(J[3]=fe=>De(M.value,fe)),onClick:J[4]||(J[4]=ft(fe=>pe(!0),["stop"])),onKeydown:zt(ut,["delete"]),onCompositionstart:Ae,onCompositionupdate:Ae,onCompositionend:Ae,onFocus:bt,onBlur:ct},null,42,nZ)),[[Bd,M.value]]):he("v-if",!0)],2)):he("v-if",!0)],38)),[[c(Mo),()=>pe(!1),c(ne)]])]),content:ee(()=>[gt(G(c(_I),{ref_key:"cascaderPanelRef",ref:v,modelValue:c(Ee),"onUpdate:modelValue":J[8]||(J[8]=fe=>rn(Ee)?Ee.value=fe:null),options:be.options,props:s.props,border:!1,"render-label":be.$slots.default,onExpandChange:Ie,onClose:J[9]||(J[9]=fe=>be.$nextTick(()=>pe(!1)))},null,8,["modelValue","options","props","render-label"]),[[Ut,!S.value]]),be.filterable?gt((x(),ve(c(ro),{key:0,ref_key:"suggestionPanel",ref:y,tag:"ul",class:I(c(l).e("suggestion-panel")),"view-class":c(l).e("suggestion-list"),onKeydown:Ge},{default:ee(()=>[F.value.length?(x(!0),z(et,{key:0},kt(F.value,fe=>(x(),z("li",{key:fe.uid,class:I([c(l).e("suggestion-item"),c(l).is("checked",fe.checked)]),tabindex:-1,onClick:Re=>Ce(fe)},[V("span",null,we(fe.text),1),fe.checked?(x(),ve(c(nt),{key:0},{default:ee(()=>[G(c(qd))]),_:1})):he("v-if",!0)],10,sZ))),128)):xe(be.$slots,"empty",{key:1},()=>[V("li",{class:I(c(l).e("empty-text"))},we(c(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Ut,S.value]]):he("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var $h=Ue(oZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);$h.install=e=>{e.component($h.name,$h)};const aZ=$h,lZ=aZ,uZ=ze({checked:{type:Boolean,default:!1}}),cZ={"update:checked":e=>Dn(e),[an]:e=>Dn(e)},dZ=te({name:"ElCheckTag"}),fZ=te({...dZ,props:uZ,emits:cZ,setup(e,{emit:t}){const n=e,s=Ne("check-tag"),r=()=>{const i=!n.checked;t(an,i),t("update:checked",i)};return(i,o)=>(x(),z("span",{class:I([c(s).b(),c(s).is("checked",i.checked)]),onClick:r},[xe(i.$slots,"default")],2))}});var hZ=Ue(fZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const pZ=Ot(hZ),TI=Symbol("rowContextKey"),mZ=["start","center","end","space-around","space-between","space-evenly"],gZ=["top","middle","bottom"],vZ=ze({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:mZ,default:"start"},align:{type:String,values:gZ,default:"top"}}),yZ=te({name:"ElRow"}),bZ=te({...yZ,props:vZ,setup(e){const t=e,n=Ne("row"),s=E(()=>t.gutter);Nt(TI,{gutter:s});const r=E(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=E(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(o,a)=>(x(),ve(Mt(o.tag),{class:I(c(i)),style:st(c(r))},{default:ee(()=>[xe(o.$slots,"default")]),_:3},8,["class","style"]))}});var _Z=Ue(bZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const SI=Ot(_Z),TZ=ze({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:me([Number,Object]),default:()=>pn({})},sm:{type:me([Number,Object]),default:()=>pn({})},md:{type:me([Number,Object]),default:()=>pn({})},lg:{type:me([Number,Object]),default:()=>pn({})},xl:{type:me([Number,Object]),default:()=>pn({})}}),SZ=te({name:"ElCol"}),wZ=te({...SZ,props:TZ,setup(e){const t=e,{gutter:n}=Qe(TI,{gutter:E(()=>0)}),s=Ne("col"),r=E(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=E(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const d=t[u];ht(d)&&(u==="span"?o.push(s.b(`${t[u]}`)):d>0&&o.push(s.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{ht(t[u])?o.push(s.b(`${u}-${t[u]}`)):Pt(t[u])&&Object.entries(t[u]).forEach(([d,f])=>{o.push(d!=="span"?s.b(`${u}-${d}-${f}`):s.b(`${u}-${f}`))})}),n.value&&o.push(s.is("guttered")),[s.b(),o]});return(o,a)=>(x(),ve(Mt(o.tag),{class:I(c(i)),style:st(c(r))},{default:ee(()=>[xe(o.$slots,"default")]),_:3},8,["class","style"]))}});var CZ=Ue(wZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const wI=Ot(CZ),RC=e=>typeof ht(e),EZ=ze({accordion:Boolean,modelValue:{type:me([Array,String,Number]),default:()=>pn([])}}),xZ={[It]:RC,[an]:RC},CI=Symbol("collapseContextKey"),kZ=(e,t)=>{const n=B(ql(e.modelValue)),s=i=>{n.value=i;const o=e.accordion?n.value[0]:n.value;t(It,o),t(an,o)},r=i=>{if(e.accordion)s([n.value[0]===i?"":i]);else{const o=[...n.value],a=o.indexOf(i);a>-1?o.splice(a,1):o.push(i),s(o)}};return ke(()=>e.modelValue,()=>n.value=ql(e.modelValue),{deep:!0}),Nt(CI,{activeNames:n,handleItemClick:r}),{activeNames:n,setActiveNames:s}},OZ=()=>{const e=Ne("collapse");return{rootKls:E(()=>e.b())}},AZ=te({name:"ElCollapse"}),IZ=te({...AZ,props:EZ,emits:xZ,setup(e,{expose:t,emit:n}){const s=e,{activeNames:r,setActiveNames:i}=kZ(s,n),{rootKls:o}=OZ();return t({activeNames:r,setActiveNames:i}),(a,l)=>(x(),z("div",{class:I(c(o)),role:"tablist","aria-multiselectable":"true"},[xe(a.$slots,"default")],2))}});var PZ=Ue(IZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const $Z=te({name:"ElCollapseTransition"}),NZ=te({...$Z,setup(e){const t=Ne("collapse-transition"),n={beforeEnter(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0},enter(s){s.dataset.oldOverflow=s.style.overflow,s.scrollHeight!==0?(s.style.maxHeight=`${s.scrollHeight}px`,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom):(s.style.maxHeight=0,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom),s.style.overflow="hidden"},afterEnter(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow},beforeLeave(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.dataset.oldOverflow=s.style.overflow,s.style.maxHeight=`${s.scrollHeight}px`,s.style.overflow="hidden"},leave(s){s.scrollHeight!==0&&(s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0)},afterLeave(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom}};return(s,r)=>(x(),ve(Pn,$t({name:c(t).b()},J4(n)),{default:ee(()=>[xe(s.$slots,"default")]),_:3},16,["name"]))}});var Nh=Ue(NZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Nh.install=e=>{e.component(Nh.name,Nh)};const Bm=Nh,EI=Bm,MZ=ze({title:{type:String,default:""},name:{type:me([String,Number]),default:()=>Im()},disabled:Boolean}),RZ=e=>{const t=Qe(CI),n=B(!1),s=B(!1),r=B(Im()),i=E(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:n,id:r,isActive:i,handleFocus:()=>{setTimeout(()=>{s.value?s.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),n.value=!1,s.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},LZ=(e,{focusing:t,isActive:n,id:s})=>{const r=Ne("collapse"),i=E(()=>[r.b("item"),r.is("active",c(n)),r.is("disabled",e.disabled)]),o=E(()=>[r.be("item","header"),r.is("active",c(n)),{focusing:c(t)&&!e.disabled}]),a=E(()=>[r.be("item","arrow"),r.is("active",c(n))]),l=E(()=>r.be("item","wrap")),u=E(()=>r.be("item","content")),d=E(()=>r.b(`content-${c(s)}`)),f=E(()=>r.b(`head-${c(s)}`));return{arrowKls:a,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:d,scopedHeadId:f}},DZ=["aria-expanded","aria-controls","aria-describedby"],FZ=["id","tabindex"],BZ=["id","aria-hidden","aria-labelledby"],VZ=te({name:"ElCollapseItem"}),UZ=te({...VZ,props:MZ,setup(e,{expose:t}){const n=e,{focusing:s,id:r,isActive:i,handleFocus:o,handleHeaderClick:a,handleEnterClick:l}=RZ(n),{arrowKls:u,headKls:d,rootKls:f,itemWrapperKls:h,itemContentKls:p,scopedContentId:g,scopedHeadId:m}=LZ(n,{focusing:s,isActive:i,id:r});return t({isActive:i}),(v,y)=>(x(),z("div",{class:I(c(f))},[V("div",{role:"tab","aria-expanded":c(i),"aria-controls":c(g),"aria-describedby":c(g)},[V("div",{id:c(m),class:I(c(d)),role:"button",tabindex:v.disabled?-1:0,onClick:y[0]||(y[0]=(...T)=>c(a)&&c(a)(...T)),onKeypress:y[1]||(y[1]=zt(ft((...T)=>c(l)&&c(l)(...T),["stop","prevent"]),["space","enter"])),onFocus:y[2]||(y[2]=(...T)=>c(o)&&c(o)(...T)),onBlur:y[3]||(y[3]=T=>s.value=!1)},[xe(v.$slots,"title",{},()=>[wt(we(v.title),1)]),G(c(nt),{class:I(c(u))},{default:ee(()=>[G(c(ws))]),_:1},8,["class"])],42,FZ)],8,DZ),G(c(Bm),null,{default:ee(()=>[gt(V("div",{id:c(g),class:I(c(h)),role:"tabpanel","aria-hidden":!c(i),"aria-labelledby":c(m)},[V("div",{class:I(c(p))},[xe(v.$slots,"default")],2)],10,BZ),[[Ut,c(i)]])]),_:3})],2))}});var xI=Ue(UZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const HZ=Ot(PZ,{CollapseItem:xI}),zZ=Cn(xI),jZ=ze({color:{type:me(Object),required:!0},vertical:{type:Boolean,default:!1}});let rv=!1;function md(e,t){if(!Ht)return;const n=function(i){var o;(o=t.drag)==null||o.call(t,i)},s=function(i){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",s),document.onselectstart=null,document.ondragstart=null,rv=!1,(o=t.end)==null||o.call(t,i)},r=function(i){var o;rv||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",s),document.addEventListener("touchmove",n),document.addEventListener("touchend",s),rv=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r)}const KZ=e=>{const t=At(),n=nn(),s=nn();function r(o){o.target!==n.value&&i(o)}function i(o){if(!s.value||!n.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:d}=Ob(o);if(e.vertical){let f=d-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:s,handleDrag:i,handleClick:r}},WZ=(e,{bar:t,thumb:n,handleDrag:s})=>{const r=At(),i=Ne("color-alpha-slider"),o=B(0),a=B(0),l=B();function u(){if(!n.value||e.vertical)return 0;const T=r.vnode.el,_=e.color.get("alpha");return T?Math.round(_*(T.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const T=r.vnode.el;if(!e.vertical)return 0;const _=e.color.get("alpha");return T?Math.round(_*(T.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:T,g:_,b:S}=e.color.toRgb();return`linear-gradient(to right, rgba(${T}, ${_}, ${S}, 0) 0%, rgba(${T}, ${_}, ${S}, 1) 100%)`}return""}function h(){o.value=u(),a.value=d(),l.value=f()}Tt(()=>{if(!t.value||!n.value)return;const T={drag:_=>{s(_)},end:_=>{s(_)}};md(t.value,T),md(n.value,T),h()}),ke(()=>e.color.get("alpha"),()=>h()),ke(()=>e.color.value,()=>h());const p=E(()=>[i.b(),i.is("vertical",e.vertical)]),g=E(()=>i.e("bar")),m=E(()=>i.e("thumb")),v=E(()=>({background:l.value})),y=E(()=>({left:An(o.value),top:An(a.value)}));return{rootKls:p,barKls:g,barStyle:v,thumbKls:m,thumbStyle:y,update:h}},qZ="ElColorAlphaSlider",GZ=te({name:qZ}),YZ=te({...GZ,props:jZ,setup(e,{expose:t}){const n=e,{bar:s,thumb:r,handleDrag:i,handleClick:o}=KZ(n),{rootKls:a,barKls:l,barStyle:u,thumbKls:d,thumbStyle:f,update:h}=WZ(n,{bar:s,thumb:r,handleDrag:i});return t({update:h,bar:s,thumb:r}),(p,g)=>(x(),z("div",{class:I(c(a))},[V("div",{ref_key:"bar",ref:s,class:I(c(l)),style:st(c(u)),onClick:g[0]||(g[0]=(...m)=>c(o)&&c(o)(...m))},null,6),V("div",{ref_key:"thumb",ref:r,class:I(c(d)),style:st(c(f))},null,6)],2))}});var XZ=Ue(YZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const QZ=te({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Ne("color-hue-slider"),n=At(),s=B(),r=B(),i=B(0),o=B(0),a=E(()=>e.color.get("hue"));ke(()=>a.value,()=>{h()});function l(p){p.target!==s.value&&u(p)}function u(p){if(!r.value||!s.value)return;const m=n.vnode.el.getBoundingClientRect(),{clientX:v,clientY:y}=Ob(p);let T;if(e.vertical){let _=y-m.top;_=Math.min(_,m.height-s.value.offsetHeight/2),_=Math.max(s.value.offsetHeight/2,_),T=Math.round((_-s.value.offsetHeight/2)/(m.height-s.value.offsetHeight)*360)}else{let _=v-m.left;_=Math.min(_,m.width-s.value.offsetWidth/2),_=Math.max(s.value.offsetWidth/2,_),T=Math.round((_-s.value.offsetWidth/2)/(m.width-s.value.offsetWidth)*360)}e.color.set("hue",T)}function d(){if(!s.value)return 0;const p=n.vnode.el;if(e.vertical)return 0;const g=e.color.get("hue");return p?Math.round(g*(p.offsetWidth-s.value.offsetWidth/2)/360):0}function f(){if(!s.value)return 0;const p=n.vnode.el;if(!e.vertical)return 0;const g=e.color.get("hue");return p?Math.round(g*(p.offsetHeight-s.value.offsetHeight/2)/360):0}function h(){i.value=d(),o.value=f()}return Tt(()=>{if(!r.value||!s.value)return;const p={drag:g=>{u(g)},end:g=>{u(g)}};md(r.value,p),md(s.value,p),h()}),{bar:r,thumb:s,thumbLeft:i,thumbTop:o,hueValue:a,handleClick:l,update:h,ns:t}}});function JZ(e,t,n,s,r,i){return x(),z("div",{class:I([e.ns.b(),e.ns.is("vertical",e.vertical)])},[V("div",{ref:"bar",class:I(e.ns.e("bar")),onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},null,2),V("div",{ref:"thumb",class:I(e.ns.e("thumb")),style:st({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var ZZ=Ue(QZ,[["render",JZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const eee=ze({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:is,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:me(Array)},validateEvent:{type:Boolean,default:!0}}),tee={[It]:e=>mt(e)||Kn(e),[an]:e=>mt(e)||Kn(e),activeChange:e=>mt(e)||Kn(e)},kI=Symbol("colorPickerContextKey"),LC=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},nee=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},see=function(e){return typeof e=="string"&&e.includes("%")},Pl=function(e,t){nee(e)&&(e="100%");const n=see(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)},DC={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Mh=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${DC[t]||t}${DC[n]||n}`},FC=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Mh(e)}${Mh(t)}${Mh(n)}`},iv={A:10,B:11,C:12,D:13,E:14,F:15},sa=function(e){return e.length===2?(iv[e[0].toUpperCase()]||+e[0])*16+(iv[e[1].toUpperCase()]||+e[1]):iv[e[1].toUpperCase()]||+e[1]},ree=function(e,t,n){t=t/100,n=n/100;let s=t;const r=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,s*=r<=1?r:2-r;const i=(n+t)/2,o=n===0?2*s/(r+s):2*t/(n+t);return{h:e,s:o*100,v:i*100}},BC=(e,t,n)=>{e=Pl(e,255),t=Pl(t,255),n=Pl(n,255);const s=Math.max(e,t,n),r=Math.min(e,t,n);let i;const o=s,a=s-r,l=s===0?0:a/s;if(s===r)i=0;else{switch(s){case e:{i=(t-n)/a+(t<n?6:0);break}case t:{i=(n-e)/a+2;break}case n:{i=(e-t)/a+4;break}}i/=6}return{h:i*360,s:l*100,v:o*100}},tc=function(e,t,n){e=Pl(e,360)*6,t=Pl(t,100),n=Pl(n,100);const s=Math.floor(e),r=e-s,i=n*(1-t),o=n*(1-r*t),a=n*(1-(1-r)*t),l=s%6,u=[n,o,i,i,a,n][l],d=[a,n,n,o,i,i][l],f=[i,i,a,n,n,o][l];return{r:Math.round(u*255),g:Math.round(d*255),b:Math.round(f*255)}};class $c{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)Ft(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 s in t)Ft(t,s)&&this.set(s,t[s]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return tc(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(s,r,i)=>{this._hue=Math.max(0,Math.min(360,s)),this._saturation=Math.max(0,Math.min(100,r)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const s=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,i)=>i>2?Number.parseFloat(r):Number.parseInt(r,10));if(s.length===4?this._alpha=Number.parseFloat(s[3])*100:s.length===3&&(this._alpha=100),s.length>=3){const{h:r,s:i,v:o}=ree(s[0],s[1],s[2]);n(r,i,o)}}else if(t.includes("hsv")){const s=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,i)=>i>2?Number.parseFloat(r):Number.parseInt(r,10));s.length===4?this._alpha=Number.parseFloat(s[3])*100:s.length===3&&(this._alpha=100),s.length>=3&&n(s[0],s[1],s[2])}else if(t.includes("rgb")){const s=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,i)=>i>2?Number.parseFloat(r):Number.parseInt(r,10));if(s.length===4?this._alpha=Number.parseFloat(s[3])*100:s.length===3&&(this._alpha=100),s.length>=3){const{h:r,s:i,v:o}=BC(s[0],s[1],s[2]);n(r,i,o)}}else if(t.includes("#")){const s=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(s))return;let r,i,o;s.length===3?(r=sa(s[0]+s[0]),i=sa(s[1]+s[1]),o=sa(s[2]+s[2])):(s.length===6||s.length===8)&&(r=sa(s.slice(0,2)),i=sa(s.slice(2,4)),o=sa(s.slice(4,6))),s.length===8?this._alpha=sa(s.slice(6))/255*100:(s.length===3||s.length===6)&&(this._alpha=100);const{h:a,s:l,v:u}=BC(r,i,o);n(a,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:s,_alpha:r,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const o=LC(t,n/100,s/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(s)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${FC(tc(t,n,s))}${Mh(r*255/100)}`;break}default:{const{r:o,g:a,b:l}=tc(t,n,s);this.value=`rgba(${o}, ${a}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=LC(t,n/100,s/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(s)}%)`;break}case"rgb":{const{r:o,g:a,b:l}=tc(t,n,s);this.value=`rgb(${o}, ${a}, ${l})`;break}default:this.value=FC(tc(t,n,s))}}}const iee=te({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Ne("color-predefine"),{currentColor:n}=Qe(kI),s=B(i(e.colors,e.color));ke(()=>n.value,o=>{const a=new $c;a.fromString(o),s.value.forEach(l=>{l.selected=a.compare(l)})}),nr(()=>{s.value=i(e.colors,e.color)});function r(o){e.color.fromString(e.colors[o])}function i(o,a){return o.map(l=>{const u=new $c;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===a.value,u})}return{rgbaColors:s,handleSelect:r,ns:t}}}),oee=["onClick"];function aee(e,t,n,s,r,i){return x(),z("div",{class:I(e.ns.b())},[V("div",{class:I(e.ns.e("colors"))},[(x(!0),z(et,null,kt(e.rgbaColors,(o,a)=>(x(),z("div",{key:e.colors[a],class:I([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(a)},[V("div",{style:st({backgroundColor:o.value})},null,4)],10,oee))),128))],2)],2)}var lee=Ue(iee,[["render",aee],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const uee=te({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Ne("color-svpanel"),n=At(),s=B(0),r=B(0),i=B("hsl(0, 100%, 50%)"),o=E(()=>{const u=e.color.get("hue"),d=e.color.get("value");return{hue:u,value:d}});function a(){const u=e.color.get("saturation"),d=e.color.get("value"),f=n.vnode.el,{clientWidth:h,clientHeight:p}=f;r.value=u*h/100,s.value=(100-d)*p/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:h,clientY:p}=Ob(u);let g=h-f.left,m=p-f.top;g=Math.max(0,g),g=Math.min(g,f.width),m=Math.max(0,m),m=Math.min(m,f.height),r.value=g,s.value=m,e.color.set({saturation:g/f.width*100,value:100-m/f.height*100})}return ke(()=>o.value,()=>{a()}),Tt(()=>{md(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),a()}),{cursorTop:s,cursorLeft:r,background:i,colorValue:o,handleDrag:l,update:a,ns:t}}}),cee=V("div",null,null,-1),dee=[cee];function fee(e,t,n,s,r,i){return x(),z("div",{class:I(e.ns.b()),style:st({backgroundColor:e.background})},[V("div",{class:I(e.ns.e("white"))},null,2),V("div",{class:I(e.ns.e("black"))},null,2),V("div",{class:I(e.ns.e("cursor")),style:st({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},dee,6)],6)}var hee=Ue(uee,[["render",fee],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const pee=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],mee=te({name:"ElColorPicker"}),gee=te({...mee,props:eee,emits:tee,setup(e,{expose:t,emit:n}){const s=e,{t:r}=qt(),i=Ne("color"),{formItem:o}=Is(),a=Fn(),l=zs(),{inputId:u,isLabeledByFormItem:d}=Ko(s,{formItemContext:o}),f=B(),h=B(),p=B(),g=B();let m=!0;const v=Bt(new $c({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue})),y=B(!1),T=B(!1),_=B(""),S=E(()=>!s.modelValue&&!T.value?"transparent":L(v,s.showAlpha)),w=E(()=>!s.modelValue&&!T.value?"":v.value),A=E(()=>d.value?void 0:s.label||r("el.colorpicker.defaultLabel")),M=E(()=>d.value?o==null?void 0:o.labelId:void 0),N=E(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",a.value)]);function L(H,U){if(!(H instanceof $c))throw new TypeError("color should be instance of _color Class");const{r:Z,g:ue,b:Q}=H.toRgb();return U?`rgba(${Z}, ${ue}, ${Q}, ${H.get("alpha")/100})`:`rgb(${Z}, ${ue}, ${Q})`}function F(H){y.value=H}const W=Os(F,100);function j(){W(!1),R()}function R(){it(()=>{s.modelValue?v.fromString(s.modelValue):(v.value="",it(()=>{T.value=!1}))})}function q(){l.value||W(!y.value)}function X(){v.fromString(_.value)}function K(){const H=v.value;n(It,H),n("change",H),s.validateEvent&&(o==null||o.validate("change").catch(U=>void 0)),W(!1),it(()=>{const U=new $c({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue});v.compare(U)||R()})}function $(){W(!1),n(It,null),n("change",null),s.modelValue!==null&&s.validateEvent&&(o==null||o.validate("change").catch(H=>void 0)),R()}return Tt(()=>{s.modelValue&&(_.value=w.value)}),ke(()=>s.modelValue,H=>{H?H&&H!==v.value&&(m=!1,v.fromString(H)):T.value=!1}),ke(()=>w.value,H=>{_.value=H,m&&n("activeChange",H),m=!0}),ke(()=>v.value,()=>{!s.modelValue&&!T.value&&(T.value=!0)}),ke(()=>y.value,()=>{it(()=>{var H,U,Z;(H=f.value)==null||H.update(),(U=h.value)==null||U.update(),(Z=p.value)==null||Z.update()})}),Nt(kI,{currentColor:w}),t({color:v}),(H,U)=>(x(),ve(c(As),{ref_key:"popper",ref:g,visible:y.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[c(i).be("picker","panel"),c(i).b("dropdown"),H.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${c(i).namespace.value}-zoom-in-top`,persistent:""},{content:ee(()=>[gt((x(),z("div",null,[V("div",{class:I(c(i).be("dropdown","main-wrapper"))},[G(ZZ,{ref_key:"hue",ref:f,class:"hue-slider",color:c(v),vertical:""},null,8,["color"]),G(hee,{ref:"svPanel",color:c(v)},null,8,["color"])],2),H.showAlpha?(x(),ve(XZ,{key:0,ref_key:"alpha",ref:p,color:c(v)},null,8,["color"])):he("v-if",!0),H.predefine?(x(),ve(lee,{key:1,ref:"predefine",color:c(v),colors:H.predefine},null,8,["color","colors"])):he("v-if",!0),V("div",{class:I(c(i).be("dropdown","btns"))},[V("span",{class:I(c(i).be("dropdown","value"))},[G(c(ls),{modelValue:_.value,"onUpdate:modelValue":U[0]||(U[0]=Z=>_.value=Z),"validate-event":!1,size:"small",onKeyup:zt(X,["enter"]),onBlur:X},null,8,["modelValue","onKeyup"])],2),G(c(Un),{class:I(c(i).be("dropdown","link-btn")),text:"",size:"small",onClick:$},{default:ee(()=>[wt(we(c(r)("el.colorpicker.clear")),1)]),_:1},8,["class"]),G(c(Un),{plain:"",size:"small",class:I(c(i).be("dropdown","btn")),onClick:K},{default:ee(()=>[wt(we(c(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[c(Mo),j]])]),default:ee(()=>[V("div",{id:c(u),class:I(c(N)),role:"button","aria-label":c(A),"aria-labelledby":c(M),"aria-description":c(r)("el.colorpicker.description",{color:H.modelValue||""}),tabindex:H.tabindex,onKeydown:zt(q,["enter"])},[c(l)?(x(),z("div",{key:0,class:I(c(i).be("picker","mask"))},null,2)):he("v-if",!0),V("div",{class:I(c(i).be("picker","trigger")),onClick:q},[V("span",{class:I([c(i).be("picker","color"),c(i).is("alpha",H.showAlpha)])},[V("span",{class:I(c(i).be("picker","color-inner")),style:st({backgroundColor:c(S)})},[gt(G(c(nt),{class:I([c(i).be("picker","icon"),c(i).is("icon-arrow-down")])},{default:ee(()=>[G(c(Uo))]),_:1},8,["class"]),[[Ut,H.modelValue||T.value]]),!H.modelValue&&!T.value?(x(),ve(c(nt),{key:0,class:I([c(i).be("picker","empty"),c(i).is("icon-close")])},{default:ee(()=>[G(c(Hr))]),_:1},8,["class"])):he("v-if",!0)],6)],2)],2)],42,pee)]),_:1},8,["visible","popper-class","transition"]))}});var vee=Ue(gee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const yee=Ot(vee),bee=te({name:"ElContainer"}),_ee=te({...bee,props:{direction:{type:String}},setup(e){const t=e,n=es(),s=Ne("container"),r=E(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(o=>{const a=o.type.name;return a==="ElHeader"||a==="ElFooter"}):!1);return(i,o)=>(x(),z("section",{class:I([c(s).b(),c(s).is("vertical",c(r))])},[xe(i.$slots,"default")],2))}});var Tee=Ue(_ee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const See=te({name:"ElAside"}),wee=te({...See,props:{width:{type:String,default:null}},setup(e){const t=e,n=Ne("aside"),s=E(()=>t.width?n.cssVarBlock({width:t.width}):{});return(r,i)=>(x(),z("aside",{class:I(c(n).b()),style:st(c(s))},[xe(r.$slots,"default")],6))}});var OI=Ue(wee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Cee=te({name:"ElFooter"}),Eee=te({...Cee,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ne("footer"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(x(),z("footer",{class:I(c(n).b()),style:st(c(s))},[xe(r.$slots,"default")],6))}});var AI=Ue(Eee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const xee=te({name:"ElHeader"}),kee=te({...xee,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ne("header"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(x(),z("header",{class:I(c(n).b()),style:st(c(s))},[xe(r.$slots,"default")],6))}});var II=Ue(kee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Oee=te({name:"ElMain"}),Aee=te({...Oee,setup(e){const t=Ne("main");return(n,s)=>(x(),z("main",{class:I(c(t).b())},[xe(n.$slots,"default")],2))}});var PI=Ue(Aee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const $I=Ot(Tee,{Aside:OI,Footer:AI,Header:II,Main:PI}),Iee=Cn(OI),NI=Cn(AI),MI=Cn(II),RI=Cn(PI);var H0={},Pee={get exports(){return H0},set exports(e){H0=e}};(function(e,t){(function(n,s){e.exports=s()})(rr,function(){return function(n,s){var r=s.prototype,i=r.format;r.format=function(o){var a=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var u=this.$utils(),d=(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((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),f==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return f}});return i.bind(this)(d)}}})})(Pee);const $ee=H0;var z0={},Nee={get exports(){return z0},set exports(e){z0=e}};(function(e,t){(function(n,s){e.exports=s()})(rr,function(){var n="week",s="year";return function(r,i,o){var a=i.prototype;a.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 d=o(this).startOf(s).add(1,s).date(u),f=o(this).endOf(n);if(d.isBefore(f))return 1}var h=o(this).startOf(s).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?o(this).startOf("week").week():Math.ceil(p)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Nee);const Mee=z0;var j0={},Ree={get exports(){return j0},set exports(e){j0=e}};(function(e,t){(function(n,s){e.exports=s()})(rr,function(){return function(n,s){s.prototype.weekYear=function(){var r=this.month(),i=this.week(),o=this.year();return i===1&&r===11?o+1:r===0&&i>=52?o-1:o}}})})(Ree);const Lee=j0;var K0={},Dee={get exports(){return K0},set exports(e){K0=e}};(function(e,t){(function(n,s){e.exports=s()})(rr,function(){return function(n,s,r){s.prototype.dayOfYear=function(i){var o=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}})})(Dee);const Fee=K0;var W0={},Bee={get exports(){return W0},set exports(e){W0=e}};(function(e,t){(function(n,s){e.exports=s()})(rr,function(){return function(n,s){s.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}})})(Bee);const Vee=W0;var q0={},Uee={get exports(){return q0},set exports(e){q0=e}};(function(e,t){(function(n,s){e.exports=s()})(rr,function(){return function(n,s){s.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}})})(Uee);const Hee=q0,__=Symbol(),zee=ze({type:{type:me(String),default:"date"}}),jee=["date","dates","year","month","week","range"],T_=ze({disabledDate:{type:me(Function)},date:{type:me(Object),required:!0},minDate:{type:me(Object)},maxDate:{type:me(Object)},parsedValue:{type:me([Object,Array])},rangeState:{type:me(Object),default:()=>({endDate:null,selecting:!1})}}),LI=ze({type:{type:me(String),required:!0,values:qK}}),DI=ze({unlinkPanels:Boolean,parsedValue:{type:me(Array)}}),FI=e=>({type:String,values:jee,default:e}),Kee=ze({...LI,parsedValue:{type:me([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),Wee=ze({...T_,cellClassName:{type:me(Function)},showWeekNumber:Boolean,selectionMode:FI("date")}),G0=e=>{if(!tt(e))return!1;const[t,n]=e;return Et.isDayjs(t)&&Et.isDayjs(n)&&t.isSameOrBefore(n)},BI=(e,{lang:t,unit:n,unlinkPanels:s})=>{let r;if(tt(e)){let[i,o]=e.map(a=>Et(a).locale(t));return s||(o=i.add(1,n)),[i,o]}else e?r=Et(e):r=Et();return r=r.locale(t),[r,r.add(1,n)]},qee=(e,t,{columnIndexOffset:n,startDate:s,nextEndDate:r,now:i,unit:o,relativeDateGetter:a,setCellMetadata:l,setRowMetadata:u})=>{for(let d=0;d<e.row;d++){const f=t[d];for(let h=0;h<e.column;h++){let p=f[h+n];p||(p={row:d,column:h,type:"normal",inRange:!1,start:!1,end:!1});const g=d*e.column+h,m=a(g);p.dayjs=m,p.date=m.toDate(),p.timestamp=m.valueOf(),p.type="normal",p.inRange=!!(s&&m.isSameOrAfter(s,o)&&r&&m.isSameOrBefore(r,o))||!!(s&&m.isSameOrBefore(s,o)&&r&&m.isSameOrAfter(r,o)),s!=null&&s.isSameOrAfter(r)?(p.start=!!r&&m.isSame(r,o),p.end=s&&m.isSame(s,o)):(p.start=!!s&&m.isSame(s,o),p.end=!!r&&m.isSame(r,o)),m.isSame(i,o)&&(p.type="today"),l==null||l(p,{rowIndex:d,columnIndex:h}),f[h+n]=p}u==null||u(f)}},Gee=ze({cell:{type:me(Object)}});var Yee=te({name:"ElDatePickerCell",props:Gee,setup(e){const t=Ne("date-table-cell"),{slots:n}=Qe(__);return()=>{const{cell:s}=e;if(n.default){const r=n.default(s).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)");if(r.length)return r}return G("div",{class:t.b()},[G("span",{class:t.e("text")},[s==null?void 0:s.text])])}}});const Xee=["aria-label","onMousedown"],Qee={key:0,scope:"col"},Jee=["aria-label"],Zee=["aria-current","aria-selected","tabindex"],ete=te({__name:"basic-date-table",props:Wee,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,r=Ne("date-table"),{t:i,lang:o}=qt(),a=B(),l=B(),u=B(),d=B(),f=B([[],[],[],[],[],[]]);let h=!1;const p=s.date.$locale().weekStart||7,g=s.date.locale("en").localeData().weekdaysShort().map(Q=>Q.toLowerCase()),m=E(()=>p>3?7-p:-p),v=E(()=>{const Q=s.date.startOf("month");return Q.subtract(Q.day()||7,"day")}),y=E(()=>g.concat(g).slice(p,p+7)),T=E(()=>Y2(N.value).some(Q=>Q.isCurrent)),_=E(()=>{const Q=s.date.startOf("month"),ae=Q.day()||7,Ee=Q.daysInMonth(),le=Q.subtract(1,"month").daysInMonth();return{startOfMonthDay:ae,dateCountOfMonth:Ee,dateCountOfLastMonth:le}}),S=E(()=>s.selectionMode==="dates"?Vi(s.parsedValue):[]),w=(Q,{count:ae,rowIndex:Ee,columnIndex:le})=>{const{startOfMonthDay:ie,dateCountOfMonth:ce,dateCountOfLastMonth:ne}=c(_),pe=c(m);if(Ee>=0&&Ee<=1){const Te=ie+pe<0?7+ie+pe:ie+pe;if(le+Ee*7>=Te)return Q.text=ae,!0;Q.text=ne-(Te-le%7)+1+Ee*7,Q.type="prev-month"}else return ae<=ce?Q.text=ae:(Q.text=ae-ce,Q.type="next-month"),!0;return!1},A=(Q,{columnIndex:ae,rowIndex:Ee},le)=>{const{disabledDate:ie,cellClassName:ce}=s,ne=c(S),pe=w(Q,{count:le,rowIndex:Ee,columnIndex:ae}),Te=Q.dayjs.toDate();return Q.selected=ne.find(He=>He.valueOf()===Q.dayjs.valueOf()),Q.isSelected=!!Q.selected,Q.isCurrent=W(Q),Q.disabled=ie==null?void 0:ie(Te),Q.customClass=ce==null?void 0:ce(Te),pe},M=Q=>{if(s.selectionMode==="week"){const[ae,Ee]=s.showWeekNumber?[1,7]:[0,6],le=ue(Q[ae+1]);Q[ae].inRange=le,Q[ae].start=le,Q[Ee].inRange=le,Q[Ee].end=le}},N=E(()=>{const{minDate:Q,maxDate:ae,rangeState:Ee,showWeekNumber:le}=s,ie=m.value,ce=f.value,ne="day";let pe=1;if(le)for(let Te=0;Te<6;Te++)ce[Te][0]||(ce[Te][0]={type:"week",text:v.value.add(Te*7+1,ne).week()});return qee({row:6,column:7},ce,{startDate:Q,columnIndexOffset:le?1:0,nextEndDate:Ee.endDate||ae||Ee.selecting&&Q||null,now:Et().locale(c(o)).startOf(ne),unit:ne,relativeDateGetter:Te=>v.value.add(Te-ie,ne),setCellMetadata:(...Te)=>{A(...Te,pe)&&(pe+=1)},setRowMetadata:M}),ce});ke(()=>s.date,async()=>{var Q,ae;(Q=a.value)!=null&&Q.contains(document.activeElement)&&(await it(),(ae=l.value)==null||ae.focus())});const L=async()=>{var Q;(Q=l.value)==null||Q.focus()},F=(Q="")=>["normal","today"].includes(Q),W=Q=>s.selectionMode==="date"&&F(Q.type)&&j(Q,s.parsedValue),j=(Q,ae)=>ae?Et(ae).locale(o.value).isSame(s.date.date(Number(Q.text)),"day"):!1,R=Q=>{const ae=[];return F(Q.type)&&!Q.disabled?(ae.push("available"),Q.type==="today"&&ae.push("today")):ae.push(Q.type),W(Q)&&ae.push("current"),Q.inRange&&(F(Q.type)||s.selectionMode==="week")&&(ae.push("in-range"),Q.start&&ae.push("start-date"),Q.end&&ae.push("end-date")),Q.disabled&&ae.push("disabled"),Q.selected&&ae.push("selected"),Q.customClass&&ae.push(Q.customClass),ae.join(" ")},q=(Q,ae)=>{const Ee=Q*7+(ae-(s.showWeekNumber?1:0))-m.value;return v.value.add(Ee,"day")},X=Q=>{var ae;if(!s.rangeState.selecting)return;let Ee=Q.target;if(Ee.tagName==="SPAN"&&(Ee=(ae=Ee.parentNode)==null?void 0:ae.parentNode),Ee.tagName==="DIV"&&(Ee=Ee.parentNode),Ee.tagName!=="TD")return;const le=Ee.parentNode.rowIndex-1,ie=Ee.cellIndex;N.value[le][ie].disabled||(le!==u.value||ie!==d.value)&&(u.value=le,d.value=ie,n("changerange",{selecting:!0,endDate:q(le,ie)}))},K=Q=>!T.value&&(Q==null?void 0:Q.text)===1&&Q.type==="normal"||Q.isCurrent,$=Q=>{h||T.value||s.selectionMode!=="date"||Z(Q,!0)},H=Q=>{Q.target.closest("td")&&(h=!0)},U=Q=>{Q.target.closest("td")&&(h=!1)},Z=(Q,ae=!1)=>{const Ee=Q.target.closest("td");if(!Ee)return;const le=Ee.parentNode.rowIndex-1,ie=Ee.cellIndex,ce=N.value[le][ie];if(ce.disabled||ce.type==="week")return;const ne=q(le,ie);if(s.selectionMode==="range")!s.rangeState.selecting||!s.minDate?(n("pick",{minDate:ne,maxDate:null}),n("select",!0)):(ne>=s.minDate?n("pick",{minDate:s.minDate,maxDate:ne}):n("pick",{minDate:ne,maxDate:s.minDate}),n("select",!1));else if(s.selectionMode==="date")n("pick",ne,ae);else if(s.selectionMode==="week"){const pe=ne.week(),Te=`${ne.year()}w${pe}`;n("pick",{year:ne.year(),week:pe,value:Te,date:ne.startOf("week")})}else if(s.selectionMode==="dates"){const pe=ce.selected?Vi(s.parsedValue).filter(Te=>(Te==null?void 0:Te.valueOf())!==ne.valueOf()):Vi(s.parsedValue).concat([ne]);n("pick",pe)}},ue=Q=>{if(s.selectionMode!=="week")return!1;let ae=s.date.startOf("day");if(Q.type==="prev-month"&&(ae=ae.subtract(1,"month")),Q.type==="next-month"&&(ae=ae.add(1,"month")),ae=ae.date(Number.parseInt(Q.text,10)),s.parsedValue&&!Array.isArray(s.parsedValue)){const Ee=(s.parsedValue.day()-p+7)%7-1;return s.parsedValue.subtract(Ee,"day").isSame(ae,"day")}return!1};return t({focus:L}),(Q,ae)=>(x(),z("table",{role:"grid","aria-label":c(i)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:I([c(r).b(),{"is-week-mode":Q.selectionMode==="week"}]),onClick:Z,onMousemove:X,onMousedown:ft(H,["prevent"]),onMouseup:U},[V("tbody",{ref_key:"tbodyRef",ref:a},[V("tr",null,[Q.showWeekNumber?(x(),z("th",Qee,we(c(i)("el.datepicker.week")),1)):he("v-if",!0),(x(!0),z(et,null,kt(c(y),(Ee,le)=>(x(),z("th",{key:le,scope:"col","aria-label":c(i)("el.datepicker.weeksFull."+Ee)},we(c(i)("el.datepicker.weeks."+Ee)),9,Jee))),128))]),(x(!0),z(et,null,kt(c(N),(Ee,le)=>(x(),z("tr",{key:le,class:I([c(r).e("row"),{current:ue(Ee[1])}])},[(x(!0),z(et,null,kt(Ee,(ie,ce)=>(x(),z("td",{key:`${le}.${ce}`,ref_for:!0,ref:ne=>K(ie)&&(l.value=ne),class:I(R(ie)),"aria-current":ie.isCurrent?"date":void 0,"aria-selected":ie.isCurrent,tabindex:K(ie)?0:-1,onFocus:$},[G(c(Yee),{cell:ie},null,8,["cell"])],42,Zee))),128))],2))),128))],512)],42,Xee))}});var Y0=Ue(ete,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const tte=ze({...T_,selectionMode:FI("month")}),nte=["aria-label"],ste=["aria-selected","aria-label","tabindex","onKeydown"],rte={class:"cell"},ite=te({__name:"basic-month-table",props:tte,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,r=(S,w,A)=>{const M=Et().locale(A).startOf("month").month(w).year(S),N=M.daysInMonth();return Oo(N).map(L=>M.add(L,"day").toDate())},i=Ne("month-table"),{t:o,lang:a}=qt(),l=B(),u=B(),d=B(s.date.locale("en").localeData().monthsShort().map(S=>S.toLowerCase())),f=B([[],[],[]]),h=B(),p=B(),g=E(()=>{var S,w;const A=f.value,M=Et().locale(a.value).startOf("month");for(let N=0;N<3;N++){const L=A[N];for(let F=0;F<4;F++){const W=L[F]||(L[F]={row:N,column:F,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});W.type="normal";const j=N*4+F,R=s.date.startOf("year").month(j),q=s.rangeState.endDate||s.maxDate||s.rangeState.selecting&&s.minDate||null;W.inRange=!!(s.minDate&&R.isSameOrAfter(s.minDate,"month")&&q&&R.isSameOrBefore(q,"month"))||!!(s.minDate&&R.isSameOrBefore(s.minDate,"month")&&q&&R.isSameOrAfter(q,"month")),(S=s.minDate)!=null&&S.isSameOrAfter(q)?(W.start=!!(q&&R.isSame(q,"month")),W.end=s.minDate&&R.isSame(s.minDate,"month")):(W.start=!!(s.minDate&&R.isSame(s.minDate,"month")),W.end=!!(q&&R.isSame(q,"month"))),M.isSame(R)&&(W.type="today"),W.text=j,W.disabled=((w=s.disabledDate)==null?void 0:w.call(s,R.toDate()))||!1}}return A}),m=()=>{var S;(S=u.value)==null||S.focus()},v=S=>{const w={},A=s.date.year(),M=new Date,N=S.text;return w.disabled=s.disabledDate?r(A,N,a.value).every(s.disabledDate):!1,w.current=Vi(s.parsedValue).findIndex(L=>Et.isDayjs(L)&&L.year()===A&&L.month()===N)>=0,w.today=M.getFullYear()===A&&M.getMonth()===N,S.inRange&&(w["in-range"]=!0,S.start&&(w["start-date"]=!0),S.end&&(w["end-date"]=!0)),w},y=S=>{const w=s.date.year(),A=S.text;return Vi(s.date).findIndex(M=>M.year()===w&&M.month()===A)>=0},T=S=>{var w;if(!s.rangeState.selecting)return;let A=S.target;if(A.tagName==="A"&&(A=(w=A.parentNode)==null?void 0:w.parentNode),A.tagName==="DIV"&&(A=A.parentNode),A.tagName!=="TD")return;const M=A.parentNode.rowIndex,N=A.cellIndex;g.value[M][N].disabled||(M!==h.value||N!==p.value)&&(h.value=M,p.value=N,n("changerange",{selecting:!0,endDate:s.date.startOf("year").month(M*4+N)}))},_=S=>{var w;const A=(w=S.target)==null?void 0:w.closest("td");if((A==null?void 0:A.tagName)!=="TD"||Fr(A,"disabled"))return;const M=A.cellIndex,L=A.parentNode.rowIndex*4+M,F=s.date.startOf("year").month(L);s.selectionMode==="range"?s.rangeState.selecting?(s.minDate&&F>=s.minDate?n("pick",{minDate:s.minDate,maxDate:F}):n("pick",{minDate:F,maxDate:s.minDate}),n("select",!1)):(n("pick",{minDate:F,maxDate:null}),n("select",!0)):n("pick",L)};return ke(()=>s.date,async()=>{var S,w;(S=l.value)!=null&&S.contains(document.activeElement)&&(await it(),(w=u.value)==null||w.focus())}),t({focus:m}),(S,w)=>(x(),z("table",{role:"grid","aria-label":c(o)("el.datepicker.monthTablePrompt"),class:I(c(i).b()),onClick:_,onMousemove:T},[V("tbody",{ref_key:"tbodyRef",ref:l},[(x(!0),z(et,null,kt(c(g),(A,M)=>(x(),z("tr",{key:M},[(x(!0),z(et,null,kt(A,(N,L)=>(x(),z("td",{key:L,ref_for:!0,ref:F=>y(N)&&(u.value=F),class:I(v(N)),"aria-selected":`${y(N)}`,"aria-label":c(o)(`el.datepicker.month${+N.text+1}`),tabindex:y(N)?0:-1,onKeydown:[zt(ft(_,["prevent","stop"]),["space"]),zt(ft(_,["prevent","stop"]),["enter"])]},[V("div",null,[V("span",rte,we(c(o)("el.datepicker.months."+d.value[N.text])),1)])],42,ste))),128))]))),128))],512)],42,nte))}});var X0=Ue(ite,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:ote,disabledDate:ate,parsedValue:lte}=T_,ute=ze({date:ote,disabledDate:ate,parsedValue:lte}),cte=["aria-label"],dte=["aria-selected","tabindex","onKeydown"],fte={class:"cell"},hte={key:1},pte=te({__name:"basic-year-table",props:ute,emits:["pick"],setup(e,{expose:t,emit:n}){const s=e,r=(m,v)=>{const y=Et(String(m)).locale(v).startOf("year"),_=y.endOf("year").dayOfYear();return Oo(_).map(S=>y.add(S,"day").toDate())},i=Ne("year-table"),{t:o,lang:a}=qt(),l=B(),u=B(),d=E(()=>Math.floor(s.date.year()/10)*10),f=()=>{var m;(m=u.value)==null||m.focus()},h=m=>{const v={},y=Et().locale(a.value);return v.disabled=s.disabledDate?r(m,a.value).every(s.disabledDate):!1,v.current=Vi(s.parsedValue).findIndex(T=>T.year()===m)>=0,v.today=y.year()===m,v},p=m=>m===d.value&&s.date.year()<d.value&&s.date.year()>d.value+9||Vi(s.date).findIndex(v=>v.year()===m)>=0,g=m=>{const y=m.target.closest("td");if(y&&y.textContent){if(Fr(y,"disabled"))return;const T=y.textContent||y.innerText;n("pick",Number(T))}};return ke(()=>s.date,async()=>{var m,v;(m=l.value)!=null&&m.contains(document.activeElement)&&(await it(),(v=u.value)==null||v.focus())}),t({focus:f}),(m,v)=>(x(),z("table",{role:"grid","aria-label":c(o)("el.datepicker.yearTablePrompt"),class:I(c(i).b()),onClick:g},[V("tbody",{ref_key:"tbodyRef",ref:l},[(x(),z(et,null,kt(3,(y,T)=>V("tr",{key:T},[(x(),z(et,null,kt(4,(_,S)=>(x(),z(et,{key:T+"_"+S},[T*4+S<10?(x(),z("td",{key:0,ref_for:!0,ref:w=>p(c(d)+T*4+S)&&(u.value=w),class:I(["available",h(c(d)+T*4+S)]),"aria-selected":`${p(c(d)+T*4+S)}`,tabindex:p(c(d)+T*4+S)?0:-1,onKeydown:[zt(ft(g,["prevent","stop"]),["space"]),zt(ft(g,["prevent","stop"]),["enter"])]},[V("span",fte,we(c(d)+T*4+S),1)],42,dte)):(x(),z("td",hte))],64))),64))])),64))],512)],10,cte))}});var mte=Ue(pte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const gte=["onClick"],vte=["aria-label"],yte=["aria-label"],bte=["aria-label"],_te=["aria-label"],Tte=te({__name:"panel-date-pick",props:Kee,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,s=(Le,De,be)=>!0,r=Ne("picker-panel"),i=Ne("date-picker"),o=Eu(),a=es(),{t:l,lang:u}=qt(),d=Qe("EP_PICKER_BASE"),f=Qe(Fm),{shortcuts:h,disabledDate:p,cellClassName:g,defaultTime:m,arrowControl:v}=d.props,y=dn(d.props,"defaultValue"),T=B(),_=B(Et().locale(u.value)),S=B(!1),w=E(()=>Et(m).locale(u.value)),A=E(()=>_.value.month()),M=E(()=>_.value.year()),N=B([]),L=B(null),F=B(null),W=Le=>N.value.length>0?s(Le,N.value,n.format||"HH:mm:ss"):!0,j=Le=>m&&!Y.value&&!S.value?w.value.year(Le.year()).month(Le.month()).date(Le.date()):ie.value?Le.millisecond(0):Le.startOf("day"),R=(Le,...De)=>{if(!Le)t("pick",Le,...De);else if(tt(Le)){const be=Le.map(j);t("pick",be,...De)}else t("pick",j(Le),...De);L.value=null,F.value=null,S.value=!1},q=(Le,De)=>{if(Z.value==="date"){Le=Le;let be=n.parsedValue?n.parsedValue.year(Le.year()).month(Le.month()).date(Le.date()):Le;W(be)||(be=N.value[0][0].year(Le.year()).month(Le.month()).date(Le.date())),_.value=be,R(be,ie.value||De)}else Z.value==="week"?R(Le.date):Z.value==="dates"&&R(Le,!0)},X=Le=>{const De=Le?"add":"subtract";_.value=_.value[De](1,"month"),ct("month")},K=Le=>{const De=_.value,be=Le?"add":"subtract";_.value=$.value==="year"?De[be](10,"year"):De[be](1,"year"),ct("year")},$=B("date"),H=E(()=>{const Le=l("el.datepicker.year");if($.value==="year"){const De=Math.floor(M.value/10)*10;return Le?`${De} ${Le} - ${De+9} ${Le}`:`${De} - ${De+9}`}return`${M.value} ${Le}`}),U=Le=>{const De=pt(Le.value)?Le.value():Le.value;if(De){R(Et(De).locale(u.value));return}Le.onClick&&Le.onClick({attrs:o,slots:a,emit:t})},Z=E(()=>{const{type:Le}=n;return["week","month","year","dates"].includes(Le)?Le:"date"}),ue=E(()=>Z.value==="date"?$.value:Z.value),Q=E(()=>!!h.length),ae=async Le=>{_.value=_.value.startOf("month").month(Le),Z.value==="month"?R(_.value,!1):($.value="date",["month","year","date","week"].includes(Z.value)&&(R(_.value,!0),await it(),Ge())),ct("month")},Ee=async Le=>{Z.value==="year"?(_.value=_.value.startOf("year").year(Le),R(_.value,!1)):(_.value=_.value.year(Le),$.value="month",["month","year","date","week"].includes(Z.value)&&(R(_.value,!0),await it(),Ge())),ct("year")},le=async Le=>{$.value=Le,await it(),Ge()},ie=E(()=>n.type==="datetime"||n.type==="datetimerange"),ce=E(()=>ie.value||Z.value==="dates"),ne=()=>{if(Z.value==="dates")R(n.parsedValue);else{let Le=n.parsedValue;if(!Le){const De=Et(m).locale(u.value),be=Ce();Le=De.year(be.year()).month(be.month()).date(be.date())}_.value=Le,R(Le)}},pe=()=>{const De=Et().locale(u.value).toDate();S.value=!0,(!p||!p(De))&&W(De)&&(_.value=Et().locale(u.value),R(_.value))},Te=E(()=>HA(n.format)),He=E(()=>UA(n.format)),Y=E(()=>{if(F.value)return F.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||_.value).format(Te.value)}),re=E(()=>{if(L.value)return L.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||_.value).format(He.value)}),Se=B(!1),Oe=()=>{Se.value=!0},Ve=()=>{Se.value=!1},_e=Le=>({hour:Le.hour(),minute:Le.minute(),second:Le.second(),year:Le.year(),month:Le.month(),date:Le.date()}),Be=(Le,De,be)=>{const{hour:J,minute:fe,second:Re}=_e(Le),We=n.parsedValue?n.parsedValue.hour(J).minute(fe).second(Re):Le;_.value=We,R(_.value,!0),be||(Se.value=De)},Ie=Le=>{const De=Et(Le,Te.value).locale(u.value);if(De.isValid()&&W(De)){const{year:be,month:J,date:fe}=_e(_.value);_.value=De.year(be).month(J).date(fe),F.value=null,Se.value=!1,R(_.value,!0)}},Ae=Le=>{const De=Et(Le,He.value).locale(u.value);if(De.isValid()){if(p&&p(De.toDate()))return;const{hour:be,minute:J,second:fe}=_e(_.value);_.value=De.hour(be).minute(J).second(fe),L.value=null,R(_.value,!0)}},Me=Le=>Et.isDayjs(Le)&&Le.isValid()&&(p?!p(Le.toDate()):!0),Ye=Le=>Z.value==="dates"?Le.map(De=>De.format(n.format)):Le.format(n.format),qe=Le=>Et(Le,n.format).locale(u.value),Ce=()=>{const Le=Et(y.value).locale(u.value);if(!y.value){const De=w.value;return Et().hour(De.hour()).minute(De.minute()).second(De.second()).locale(u.value)}return Le},Ge=async()=>{var Le;["week","month","year","date"].includes(Z.value)&&((Le=T.value)==null||Le.focus(),Z.value==="week"&&bt(at.down))},ut=Le=>{const{code:De}=Le;[at.up,at.down,at.left,at.right,at.home,at.end,at.pageUp,at.pageDown].includes(De)&&(bt(De),Le.stopPropagation(),Le.preventDefault()),[at.enter,at.space].includes(De)&&L.value===null&&F.value===null&&(Le.preventDefault(),R(_.value,!1))},bt=Le=>{var De;const{up:be,down:J,left:fe,right:Re,home:We,end:St,pageUp:$e,pageDown:Ze}=at,Ct={year:{[be]:-4,[J]:4,[fe]:-1,[Re]:1,offset:(Rt,Qt)=>Rt.setFullYear(Rt.getFullYear()+Qt)},month:{[be]:-4,[J]:4,[fe]:-1,[Re]:1,offset:(Rt,Qt)=>Rt.setMonth(Rt.getMonth()+Qt)},week:{[be]:-1,[J]:1,[fe]:-1,[Re]:1,offset:(Rt,Qt)=>Rt.setDate(Rt.getDate()+Qt*7)},date:{[be]:-7,[J]:7,[fe]:-1,[Re]:1,[We]:Rt=>-Rt.getDay(),[St]:Rt=>-Rt.getDay()+6,[$e]:Rt=>-new Date(Rt.getFullYear(),Rt.getMonth(),0).getDate(),[Ze]:Rt=>new Date(Rt.getFullYear(),Rt.getMonth()+1,0).getDate(),offset:(Rt,Qt)=>Rt.setDate(Rt.getDate()+Qt)}},xt=_.value.toDate();for(;Math.abs(_.value.diff(xt,"year",!0))<1;){const Rt=Ct[ue.value];if(!Rt)return;if(Rt.offset(xt,pt(Rt[Le])?Rt[Le](xt):(De=Rt[Le])!=null?De:0),p&&p(xt))break;const Qt=Et(xt).locale(u.value);_.value=Qt,t("pick",Qt,!0);break}},ct=Le=>{t("panel-change",_.value.toDate(),Le,$.value)};return ke(()=>Z.value,Le=>{if(["month","year"].includes(Le)){$.value=Le;return}$.value="date"},{immediate:!0}),ke(()=>$.value,()=>{f==null||f.updatePopper()}),ke(()=>y.value,Le=>{Le&&(_.value=Ce())},{immediate:!0}),ke(()=>n.parsedValue,Le=>{if(Le){if(Z.value==="dates"||Array.isArray(Le))return;_.value=Le}else _.value=Ce()},{immediate:!0}),t("set-picker-option",["isValidValue",Me]),t("set-picker-option",["formatToString",Ye]),t("set-picker-option",["parseUserInput",qe]),t("set-picker-option",["handleFocusPicker",Ge]),(Le,De)=>(x(),z("div",{class:I([c(r).b(),c(i).b(),{"has-sidebar":Le.$slots.sidebar||c(Q),"has-time":c(ie)}])},[V("div",{class:I(c(r).e("body-wrapper"))},[xe(Le.$slots,"sidebar",{class:I(c(r).e("sidebar"))}),c(Q)?(x(),z("div",{key:0,class:I(c(r).e("sidebar"))},[(x(!0),z(et,null,kt(c(h),(be,J)=>(x(),z("button",{key:J,type:"button",class:I(c(r).e("shortcut")),onClick:fe=>U(be)},we(be.text),11,gte))),128))],2)):he("v-if",!0),V("div",{class:I(c(r).e("body"))},[c(ie)?(x(),z("div",{key:0,class:I(c(i).e("time-header"))},[V("span",{class:I(c(i).e("editor-wrap"))},[G(c(ls),{placeholder:c(l)("el.datepicker.selectDate"),"model-value":c(re),size:"small","validate-event":!1,onInput:De[0]||(De[0]=be=>L.value=be),onChange:Ae},null,8,["placeholder","model-value"])],2),gt((x(),z("span",{class:I(c(i).e("editor-wrap"))},[G(c(ls),{placeholder:c(l)("el.datepicker.selectTime"),"model-value":c(Y),size:"small","validate-event":!1,onFocus:Oe,onInput:De[1]||(De[1]=be=>F.value=be),onChange:Ie},null,8,["placeholder","model-value"]),G(c(vp),{visible:Se.value,format:c(Te),"time-arrow-control":c(v),"parsed-value":_.value,onPick:Be},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[c(Mo),Ve]])],2)):he("v-if",!0),gt(V("div",{class:I([c(i).e("header"),($.value==="year"||$.value==="month")&&c(i).e("header--bordered")])},[V("span",{class:I(c(i).e("prev-btn"))},[V("button",{type:"button","aria-label":c(l)("el.datepicker.prevYear"),class:I(["d-arrow-left",c(r).e("icon-btn")]),onClick:De[2]||(De[2]=be=>K(!1))},[G(c(nt),null,{default:ee(()=>[G(c(Gl))]),_:1})],10,vte),gt(V("button",{type:"button","aria-label":c(l)("el.datepicker.prevMonth"),class:I([c(r).e("icon-btn"),"arrow-left"]),onClick:De[3]||(De[3]=be=>X(!1))},[G(c(nt),null,{default:ee(()=>[G(c(Po))]),_:1})],10,yte),[[Ut,$.value==="date"]])],2),V("span",{role:"button",class:I(c(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:De[4]||(De[4]=zt(be=>le("year"),["enter"])),onClick:De[5]||(De[5]=be=>le("year"))},we(c(H)),35),gt(V("span",{role:"button","aria-live":"polite",tabindex:"0",class:I([c(i).e("header-label"),{active:$.value==="month"}]),onKeydown:De[6]||(De[6]=zt(be=>le("month"),["enter"])),onClick:De[7]||(De[7]=be=>le("month"))},we(c(l)(`el.datepicker.month${c(A)+1}`)),35),[[Ut,$.value==="date"]]),V("span",{class:I(c(i).e("next-btn"))},[gt(V("button",{type:"button","aria-label":c(l)("el.datepicker.nextMonth"),class:I([c(r).e("icon-btn"),"arrow-right"]),onClick:De[8]||(De[8]=be=>X(!0))},[G(c(nt),null,{default:ee(()=>[G(c(ws))]),_:1})],10,bte),[[Ut,$.value==="date"]]),V("button",{type:"button","aria-label":c(l)("el.datepicker.nextYear"),class:I([c(r).e("icon-btn"),"d-arrow-right"]),onClick:De[9]||(De[9]=be=>K(!0))},[G(c(nt),null,{default:ee(()=>[G(c(Yl))]),_:1})],10,_te)],2)],2),[[Ut,$.value!=="time"]]),V("div",{class:I(c(r).e("content")),onKeydown:ut},[$.value==="date"?(x(),ve(Y0,{key:0,ref_key:"currentViewRef",ref:T,"selection-mode":c(Z),date:_.value,"parsed-value":Le.parsedValue,"disabled-date":c(p),"cell-class-name":c(g),onPick:q},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):he("v-if",!0),$.value==="year"?(x(),ve(mte,{key:1,ref_key:"currentViewRef",ref:T,date:_.value,"disabled-date":c(p),"parsed-value":Le.parsedValue,onPick:Ee},null,8,["date","disabled-date","parsed-value"])):he("v-if",!0),$.value==="month"?(x(),ve(X0,{key:2,ref_key:"currentViewRef",ref:T,date:_.value,"parsed-value":Le.parsedValue,"disabled-date":c(p),onPick:ae},null,8,["date","parsed-value","disabled-date"])):he("v-if",!0)],34)],2)],2),gt(V("div",{class:I(c(r).e("footer"))},[gt(G(c(Un),{text:"",size:"small",class:I(c(r).e("link-btn")),onClick:pe},{default:ee(()=>[wt(we(c(l)("el.datepicker.now")),1)]),_:1},8,["class"]),[[Ut,c(Z)!=="dates"]]),G(c(Un),{plain:"",size:"small",class:I(c(r).e("link-btn")),onClick:ne},{default:ee(()=>[wt(we(c(l)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[Ut,c(ce)&&$.value==="date"]])],2))}});var Ste=Ue(Tte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const wte=ze({...LI,...DI}),Cte=e=>{const{emit:t}=At(),n=Eu(),s=es();return i=>{const o=pt(i.value)?i.value():i.value;if(o){t("pick",[Et(o[0]).locale(e.value),Et(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:s,emit:t})}},VI=(e,{defaultValue:t,leftDate:n,rightDate:s,unit:r,onParsedValueChanged:i})=>{const{emit:o}=At(),{pickerNs:a}=Qe(__),l=Ne("date-range-picker"),{t:u,lang:d}=qt(),f=Cte(d),h=B(),p=B(),g=B({endDate:null,selecting:!1}),m=_=>{g.value=_},v=(_=!1)=>{const S=c(h),w=c(p);G0([S,w])&&o("pick",[S,w],_)},y=_=>{g.value.selecting=_,_||(g.value.endDate=null)},T=()=>{const[_,S]=BI(c(t),{lang:c(d),unit:r,unlinkPanels:e.unlinkPanels});h.value=void 0,p.value=void 0,n.value=_,s.value=S};return ke(t,_=>{_&&T()},{immediate:!0}),ke(()=>e.parsedValue,_=>{if(tt(_)&&_.length===2){const[S,w]=_;h.value=S,n.value=S,p.value=w,i(c(h),c(p))}else T()},{immediate:!0}),{minDate:h,maxDate:p,rangeState:g,lang:d,ppNs:a,drpNs:l,handleChangeRange:m,handleRangeConfirm:v,handleShortcutClick:f,onSelect:y,t:u}},Ete=["onClick"],xte=["disabled"],kte=["disabled"],Ote=["disabled"],Ate=["disabled"],sh="month",Ite=te({__name:"panel-date-range",props:wte,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,s=Qe("EP_PICKER_BASE"),{disabledDate:r,cellClassName:i,format:o,defaultTime:a,arrowControl:l,clearable:u}=s.props,d=dn(s.props,"shortcuts"),f=dn(s.props,"defaultValue"),{lang:h}=qt(),p=B(Et().locale(h.value)),g=B(Et().locale(h.value).add(1,sh)),{minDate:m,maxDate:v,rangeState:y,ppNs:T,drpNs:_,handleChangeRange:S,handleRangeConfirm:w,handleShortcutClick:A,onSelect:M,t:N}=VI(n,{defaultValue:f,leftDate:p,rightDate:g,unit:sh,onParsedValueChanged:J}),L=B({min:null,max:null}),F=B({min:null,max:null}),W=E(()=>`${p.value.year()} ${N("el.datepicker.year")} ${N(`el.datepicker.month${p.value.month()+1}`)}`),j=E(()=>`${g.value.year()} ${N("el.datepicker.year")} ${N(`el.datepicker.month${g.value.month()+1}`)}`),R=E(()=>p.value.year()),q=E(()=>p.value.month()),X=E(()=>g.value.year()),K=E(()=>g.value.month()),$=E(()=>!!d.value.length),H=E(()=>L.value.min!==null?L.value.min:m.value?m.value.format(ae.value):""),U=E(()=>L.value.max!==null?L.value.max:v.value||m.value?(v.value||m.value).format(ae.value):""),Z=E(()=>F.value.min!==null?F.value.min:m.value?m.value.format(Q.value):""),ue=E(()=>F.value.max!==null?F.value.max:v.value||m.value?(v.value||m.value).format(Q.value):""),Q=E(()=>HA(o)),ae=E(()=>UA(o)),Ee=()=>{p.value=p.value.subtract(1,"year"),n.unlinkPanels||(g.value=p.value.add(1,"month")),Y("year")},le=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(g.value=p.value.add(1,"month")),Y("month")},ie=()=>{n.unlinkPanels?g.value=g.value.add(1,"year"):(p.value=p.value.add(1,"year"),g.value=p.value.add(1,"month")),Y("year")},ce=()=>{n.unlinkPanels?g.value=g.value.add(1,"month"):(p.value=p.value.add(1,"month"),g.value=p.value.add(1,"month")),Y("month")},ne=()=>{p.value=p.value.add(1,"year"),Y("year")},pe=()=>{p.value=p.value.add(1,"month"),Y("month")},Te=()=>{g.value=g.value.subtract(1,"year"),Y("year")},He=()=>{g.value=g.value.subtract(1,"month"),Y("month")},Y=fe=>{t("panel-change",[p.value.toDate(),g.value.toDate()],fe)},re=E(()=>{const fe=(q.value+1)%12,Re=q.value+1>=12?1:0;return n.unlinkPanels&&new Date(R.value+Re,fe)<new Date(X.value,K.value)}),Se=E(()=>n.unlinkPanels&&X.value*12+K.value-(R.value*12+q.value+1)>=12),Oe=E(()=>!(m.value&&v.value&&!y.value.selecting&&G0([m.value,v.value]))),Ve=E(()=>n.type==="datetime"||n.type==="datetimerange"),_e=(fe,Re)=>{if(fe)return a?Et(a[Re]||a).locale(h.value).year(fe.year()).month(fe.month()).date(fe.date()):fe},Be=(fe,Re=!0)=>{const We=fe.minDate,St=fe.maxDate,$e=_e(We,0),Ze=_e(St,1);v.value===Ze&&m.value===$e||(t("calendar-change",[We.toDate(),St&&St.toDate()]),v.value=Ze,m.value=$e,!(!Re||Ve.value)&&w())},Ie=B(!1),Ae=B(!1),Me=()=>{Ie.value=!1},Ye=()=>{Ae.value=!1},qe=(fe,Re)=>{L.value[Re]=fe;const We=Et(fe,ae.value).locale(h.value);if(We.isValid()){if(r&&r(We.toDate()))return;Re==="min"?(p.value=We,m.value=(m.value||p.value).year(We.year()).month(We.month()).date(We.date()),n.unlinkPanels||(g.value=We.add(1,"month"),v.value=m.value.add(1,"month"))):(g.value=We,v.value=(v.value||g.value).year(We.year()).month(We.month()).date(We.date()),n.unlinkPanels||(p.value=We.subtract(1,"month"),m.value=v.value.subtract(1,"month")))}},Ce=(fe,Re)=>{L.value[Re]=null},Ge=(fe,Re)=>{F.value[Re]=fe;const We=Et(fe,Q.value).locale(h.value);We.isValid()&&(Re==="min"?(Ie.value=!0,m.value=(m.value||p.value).hour(We.hour()).minute(We.minute()).second(We.second()),(!v.value||v.value.isBefore(m.value))&&(v.value=m.value)):(Ae.value=!0,v.value=(v.value||g.value).hour(We.hour()).minute(We.minute()).second(We.second()),g.value=v.value,v.value&&v.value.isBefore(m.value)&&(m.value=v.value)))},ut=(fe,Re)=>{F.value[Re]=null,Re==="min"?(p.value=m.value,Ie.value=!1):(g.value=v.value,Ae.value=!1)},bt=(fe,Re,We)=>{F.value.min||(fe&&(p.value=fe,m.value=(m.value||p.value).hour(fe.hour()).minute(fe.minute()).second(fe.second())),We||(Ie.value=Re),(!v.value||v.value.isBefore(m.value))&&(v.value=m.value,g.value=fe))},ct=(fe,Re,We)=>{F.value.max||(fe&&(g.value=fe,v.value=(v.value||g.value).hour(fe.hour()).minute(fe.minute()).second(fe.second())),We||(Ae.value=Re),v.value&&v.value.isBefore(m.value)&&(m.value=v.value))},Le=()=>{p.value=BI(c(f),{lang:c(h),unit:"month",unlinkPanels:n.unlinkPanels})[0],g.value=p.value.add(1,"month"),t("pick",null)},De=fe=>tt(fe)?fe.map(Re=>Re.format(o)):fe.format(o),be=fe=>tt(fe)?fe.map(Re=>Et(Re,o).locale(h.value)):Et(fe,o).locale(h.value);function J(fe,Re){if(n.unlinkPanels&&Re){const We=(fe==null?void 0:fe.year())||0,St=(fe==null?void 0:fe.month())||0,$e=Re.year(),Ze=Re.month();g.value=We===$e&&St===Ze?Re.add(1,sh):Re}else g.value=p.value.add(1,sh),Re&&(g.value=g.value.hour(Re.hour()).minute(Re.minute()).second(Re.second()))}return t("set-picker-option",["isValidValue",G0]),t("set-picker-option",["parseUserInput",be]),t("set-picker-option",["formatToString",De]),t("set-picker-option",["handleClear",Le]),(fe,Re)=>(x(),z("div",{class:I([c(T).b(),c(_).b(),{"has-sidebar":fe.$slots.sidebar||c($),"has-time":c(Ve)}])},[V("div",{class:I(c(T).e("body-wrapper"))},[xe(fe.$slots,"sidebar",{class:I(c(T).e("sidebar"))}),c($)?(x(),z("div",{key:0,class:I(c(T).e("sidebar"))},[(x(!0),z(et,null,kt(c(d),(We,St)=>(x(),z("button",{key:St,type:"button",class:I(c(T).e("shortcut")),onClick:$e=>c(A)(We)},we(We.text),11,Ete))),128))],2)):he("v-if",!0),V("div",{class:I(c(T).e("body"))},[c(Ve)?(x(),z("div",{key:0,class:I(c(_).e("time-header"))},[V("span",{class:I(c(_).e("editors-wrap"))},[V("span",{class:I(c(_).e("time-picker-wrap"))},[G(c(ls),{size:"small",disabled:c(y).selecting,placeholder:c(N)("el.datepicker.startDate"),class:I(c(_).e("editor")),"model-value":c(H),"validate-event":!1,onInput:Re[0]||(Re[0]=We=>qe(We,"min")),onChange:Re[1]||(Re[1]=We=>Ce(We,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),gt((x(),z("span",{class:I(c(_).e("time-picker-wrap"))},[G(c(ls),{size:"small",class:I(c(_).e("editor")),disabled:c(y).selecting,placeholder:c(N)("el.datepicker.startTime"),"model-value":c(Z),"validate-event":!1,onFocus:Re[2]||(Re[2]=We=>Ie.value=!0),onInput:Re[3]||(Re[3]=We=>Ge(We,"min")),onChange:Re[4]||(Re[4]=We=>ut(We,"min"))},null,8,["class","disabled","placeholder","model-value"]),G(c(vp),{visible:Ie.value,format:c(Q),"datetime-role":"start","time-arrow-control":c(l),"parsed-value":p.value,onPick:bt},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[c(Mo),Me]])],2),V("span",null,[G(c(nt),null,{default:ee(()=>[G(c(ws))]),_:1})]),V("span",{class:I([c(_).e("editors-wrap"),"is-right"])},[V("span",{class:I(c(_).e("time-picker-wrap"))},[G(c(ls),{size:"small",class:I(c(_).e("editor")),disabled:c(y).selecting,placeholder:c(N)("el.datepicker.endDate"),"model-value":c(U),readonly:!c(m),"validate-event":!1,onInput:Re[5]||(Re[5]=We=>qe(We,"max")),onChange:Re[6]||(Re[6]=We=>Ce(We,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),gt((x(),z("span",{class:I(c(_).e("time-picker-wrap"))},[G(c(ls),{size:"small",class:I(c(_).e("editor")),disabled:c(y).selecting,placeholder:c(N)("el.datepicker.endTime"),"model-value":c(ue),readonly:!c(m),"validate-event":!1,onFocus:Re[7]||(Re[7]=We=>c(m)&&(Ae.value=!0)),onInput:Re[8]||(Re[8]=We=>Ge(We,"max")),onChange:Re[9]||(Re[9]=We=>ut(We,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),G(c(vp),{"datetime-role":"end",visible:Ae.value,format:c(Q),"time-arrow-control":c(l),"parsed-value":g.value,onPick:ct},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[c(Mo),Ye]])],2)],2)):he("v-if",!0),V("div",{class:I([[c(T).e("content"),c(_).e("content")],"is-left"])},[V("div",{class:I(c(_).e("header"))},[V("button",{type:"button",class:I([c(T).e("icon-btn"),"d-arrow-left"]),onClick:Ee},[G(c(nt),null,{default:ee(()=>[G(c(Gl))]),_:1})],2),V("button",{type:"button",class:I([c(T).e("icon-btn"),"arrow-left"]),onClick:le},[G(c(nt),null,{default:ee(()=>[G(c(Po))]),_:1})],2),fe.unlinkPanels?(x(),z("button",{key:0,type:"button",disabled:!c(Se),class:I([[c(T).e("icon-btn"),{"is-disabled":!c(Se)}],"d-arrow-right"]),onClick:ne},[G(c(nt),null,{default:ee(()=>[G(c(Yl))]),_:1})],10,xte)):he("v-if",!0),fe.unlinkPanels?(x(),z("button",{key:1,type:"button",disabled:!c(re),class:I([[c(T).e("icon-btn"),{"is-disabled":!c(re)}],"arrow-right"]),onClick:pe},[G(c(nt),null,{default:ee(()=>[G(c(ws))]),_:1})],10,kte)):he("v-if",!0),V("div",null,we(c(W)),1)],2),G(Y0,{"selection-mode":"range",date:p.value,"min-date":c(m),"max-date":c(v),"range-state":c(y),"disabled-date":c(r),"cell-class-name":c(i),onChangerange:c(S),onPick:Be,onSelect:c(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),V("div",{class:I([[c(T).e("content"),c(_).e("content")],"is-right"])},[V("div",{class:I(c(_).e("header"))},[fe.unlinkPanels?(x(),z("button",{key:0,type:"button",disabled:!c(Se),class:I([[c(T).e("icon-btn"),{"is-disabled":!c(Se)}],"d-arrow-left"]),onClick:Te},[G(c(nt),null,{default:ee(()=>[G(c(Gl))]),_:1})],10,Ote)):he("v-if",!0),fe.unlinkPanels?(x(),z("button",{key:1,type:"button",disabled:!c(re),class:I([[c(T).e("icon-btn"),{"is-disabled":!c(re)}],"arrow-left"]),onClick:He},[G(c(nt),null,{default:ee(()=>[G(c(Po))]),_:1})],10,Ate)):he("v-if",!0),V("button",{type:"button",class:I([c(T).e("icon-btn"),"d-arrow-right"]),onClick:ie},[G(c(nt),null,{default:ee(()=>[G(c(Yl))]),_:1})],2),V("button",{type:"button",class:I([c(T).e("icon-btn"),"arrow-right"]),onClick:ce},[G(c(nt),null,{default:ee(()=>[G(c(ws))]),_:1})],2),V("div",null,we(c(j)),1)],2),G(Y0,{"selection-mode":"range",date:g.value,"min-date":c(m),"max-date":c(v),"range-state":c(y),"disabled-date":c(r),"cell-class-name":c(i),onChangerange:c(S),onPick:Be,onSelect:c(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),c(Ve)?(x(),z("div",{key:0,class:I(c(T).e("footer"))},[c(u)?(x(),ve(c(Un),{key:0,text:"",size:"small",class:I(c(T).e("link-btn")),onClick:Le},{default:ee(()=>[wt(we(c(N)("el.datepicker.clear")),1)]),_:1},8,["class"])):he("v-if",!0),G(c(Un),{plain:"",size:"small",class:I(c(T).e("link-btn")),disabled:c(Oe),onClick:Re[10]||(Re[10]=We=>c(w)(!1))},{default:ee(()=>[wt(we(c(N)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):he("v-if",!0)],2))}});var Pte=Ue(Ite,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const $te=ze({...DI}),Nte=["pick","set-picker-option"],Mte=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:s}=qt(),r=()=>{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")},a=()=>{n.value=n.value.subtract(1,"year")},l=E(()=>`${t.value.year()} ${s("el.datepicker.year")}`),u=E(()=>`${n.value.year()} ${s("el.datepicker.year")}`),d=E(()=>t.value.year()),f=E(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:r,rightNextYear:i,leftNextYear:o,rightPrevYear:a,leftLabel:l,rightLabel:u,leftYear:d,rightYear:f}},Rte=["onClick"],Lte=["disabled"],Dte=["disabled"],rh="year",Fte=te({name:"DatePickerMonthRange"}),Bte=te({...Fte,props:$te,emits:Nte,setup(e,{emit:t}){const n=e,{lang:s}=qt(),r=Qe("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:a}=r.props,l=dn(r.props,"defaultValue"),u=B(Et().locale(s.value)),d=B(Et().locale(s.value).add(1,rh)),{minDate:f,maxDate:h,rangeState:p,ppNs:g,drpNs:m,handleChangeRange:v,handleRangeConfirm:y,handleShortcutClick:T,onSelect:_}=VI(n,{defaultValue:l,leftDate:u,rightDate:d,unit:rh,onParsedValueChanged:K}),S=E(()=>!!i.length),{leftPrevYear:w,rightNextYear:A,leftNextYear:M,rightPrevYear:N,leftLabel:L,rightLabel:F,leftYear:W,rightYear:j}=Mte({unlinkPanels:dn(n,"unlinkPanels"),leftDate:u,rightDate:d}),R=E(()=>n.unlinkPanels&&j.value>W.value+1),q=($,H=!0)=>{const U=$.minDate,Z=$.maxDate;h.value===Z&&f.value===U||(h.value=Z,f.value=U,H&&y())},X=$=>$.map(H=>H.format(a));function K($,H){if(n.unlinkPanels&&H){const U=($==null?void 0:$.year())||0,Z=H.year();d.value=U===Z?H.add(1,rh):H}else d.value=u.value.add(1,rh)}return t("set-picker-option",["formatToString",X]),($,H)=>(x(),z("div",{class:I([c(g).b(),c(m).b(),{"has-sidebar":!!$.$slots.sidebar||c(S)}])},[V("div",{class:I(c(g).e("body-wrapper"))},[xe($.$slots,"sidebar",{class:I(c(g).e("sidebar"))}),c(S)?(x(),z("div",{key:0,class:I(c(g).e("sidebar"))},[(x(!0),z(et,null,kt(c(i),(U,Z)=>(x(),z("button",{key:Z,type:"button",class:I(c(g).e("shortcut")),onClick:ue=>c(T)(U)},we(U.text),11,Rte))),128))],2)):he("v-if",!0),V("div",{class:I(c(g).e("body"))},[V("div",{class:I([[c(g).e("content"),c(m).e("content")],"is-left"])},[V("div",{class:I(c(m).e("header"))},[V("button",{type:"button",class:I([c(g).e("icon-btn"),"d-arrow-left"]),onClick:H[0]||(H[0]=(...U)=>c(w)&&c(w)(...U))},[G(c(nt),null,{default:ee(()=>[G(c(Gl))]),_:1})],2),$.unlinkPanels?(x(),z("button",{key:0,type:"button",disabled:!c(R),class:I([[c(g).e("icon-btn"),{[c(g).is("disabled")]:!c(R)}],"d-arrow-right"]),onClick:H[1]||(H[1]=(...U)=>c(M)&&c(M)(...U))},[G(c(nt),null,{default:ee(()=>[G(c(Yl))]),_:1})],10,Lte)):he("v-if",!0),V("div",null,we(c(L)),1)],2),G(X0,{"selection-mode":"range",date:u.value,"min-date":c(f),"max-date":c(h),"range-state":c(p),"disabled-date":c(o),onChangerange:c(v),onPick:q,onSelect:c(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),V("div",{class:I([[c(g).e("content"),c(m).e("content")],"is-right"])},[V("div",{class:I(c(m).e("header"))},[$.unlinkPanels?(x(),z("button",{key:0,type:"button",disabled:!c(R),class:I([[c(g).e("icon-btn"),{"is-disabled":!c(R)}],"d-arrow-left"]),onClick:H[2]||(H[2]=(...U)=>c(N)&&c(N)(...U))},[G(c(nt),null,{default:ee(()=>[G(c(Gl))]),_:1})],10,Dte)):he("v-if",!0),V("button",{type:"button",class:I([c(g).e("icon-btn"),"d-arrow-right"]),onClick:H[3]||(H[3]=(...U)=>c(A)&&c(A)(...U))},[G(c(nt),null,{default:ee(()=>[G(c(Yl))]),_:1})],2),V("div",null,we(c(F)),1)],2),G(X0,{"selection-mode":"range",date:d.value,"min-date":c(f),"max-date":c(h),"range-state":c(p),"disabled-date":c(o),onChangerange:c(v),onPick:q,onSelect:c(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var Vte=Ue(Bte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const Ute=function(e){switch(e){case"daterange":case"datetimerange":return Pte;case"monthrange":return Vte;default:return Ste}};Et.extend(sI);Et.extend($ee);Et.extend(g_);Et.extend(Mee);Et.extend(Lee);Et.extend(Fee);Et.extend(Vee);Et.extend(Hee);var Hte=te({name:"ElDatePicker",install:null,props:{...v_,...zee},emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:s}){const r=Ne("picker-panel");Nt("ElPopperOptions",Bt(dn(e,"popperOptions"))),Nt(__,{slots:s,pickerNs:r});const i=B();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 a=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:MX[e.type]||fl,d=Ute(e.type);return G(KA,$t(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":a}),{default:f=>G(d,f,null),"range-separator":s["range-separator"]})}}});const Rh=Hte;Rh.install=e=>{e.component(Rh.name,Rh)};const zte=Rh,S_=Symbol("elDescriptions");var nc=te({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Qe(S_,{})}},render(){var e,t,n,s,r,i;const o=JK(this.cell),{border:a,direction:l}=this.descriptions,u=l==="vertical",d=((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=(r=(s=this.cell)==null?void 0:s.children)==null?void 0:r.default)==null?void 0:i.call(r),h=o.span,p=o.align?`is-${o.align}`:"",g=o.labelAlign?`is-${o.labelAlign}`:p,m=o.className,v=o.labelClassName,y={width:An(o.width),minWidth:An(o.minWidth)},T=Ne("descriptions");switch(this.type){case"label":return ot(this.tag,{style:y,class:[T.e("cell"),T.e("label"),T.is("bordered-label",a),T.is("vertical-label",u),g,v],colSpan:u?h:1},d);case"content":return ot(this.tag,{style:y,class:[T.e("cell"),T.e("content"),T.is("bordered-content",a),T.is("vertical-content",u),p,m],colSpan:u?h:h*2-1},f);default:return ot("td",{style:y,class:[T.e("cell"),p],colSpan:h},[Kn(d)?void 0:ot("span",{class:[T.e("label"),v]},d),ot("span",{class:[T.e("content"),m]},f)])}}});const jte=ze({row:{type:Array,default:()=>[]}}),Kte={key:1},Wte=te({name:"ElDescriptionsRow"}),qte=te({...Wte,props:jte,setup(e){const t=Qe(S_,{});return(n,s)=>c(t).direction==="vertical"?(x(),z(et,{key:0},[V("tr",null,[(x(!0),z(et,null,kt(n.row,(r,i)=>(x(),ve(c(nc),{key:`tr1-${i}`,cell:r,tag:"th",type:"label"},null,8,["cell"]))),128))]),V("tr",null,[(x(!0),z(et,null,kt(n.row,(r,i)=>(x(),ve(c(nc),{key:`tr2-${i}`,cell:r,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(x(),z("tr",Kte,[(x(!0),z(et,null,kt(n.row,(r,i)=>(x(),z(et,{key:`tr3-${i}`},[c(t).border?(x(),z(et,{key:0},[G(c(nc),{cell:r,tag:"td",type:"label"},null,8,["cell"]),G(c(nc),{cell:r,tag:"td",type:"content"},null,8,["cell"])],64)):(x(),ve(c(nc),{key:1,cell:r,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var Gte=Ue(qte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const Yte=ze({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:is,title:{type:String,default:""},extra:{type:String,default:""}}),Xte=te({name:"ElDescriptions"}),Qte=te({...Xte,props:Yte,setup(e){const t=e,n=Ne("descriptions"),s=Fn(),r=es();Nt(S_,t);const i=E(()=>[n.b(),n.m(s.value)]),o=(l,u,d,f=!1)=>(l.props||(l.props={}),u>d&&(l.props.span=d),f&&(l.props.span=u),l),a=()=>{var l;const u=Al((l=r.default)==null?void 0:l.call(r)).filter(g=>{var m;return((m=g==null?void 0:g.type)==null?void 0:m.name)==="ElDescriptionsItem"}),d=[];let f=[],h=t.column,p=0;return u.forEach((g,m)=>{var v;const y=((v=g.props)==null?void 0:v.span)||1;if(m<u.length-1&&(p+=y>h?h:y),m===u.length-1){const T=t.column-p%t.column;f.push(o(g,T,h,!0)),d.push(f);return}y<h?(h-=y,f.push(g)):(f.push(o(g,y,h)),d.push(f),h=t.column,f=[])}),d};return(l,u)=>(x(),z("div",{class:I(c(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(x(),z("div",{key:0,class:I(c(n).e("header"))},[V("div",{class:I(c(n).e("title"))},[xe(l.$slots,"title",{},()=>[wt(we(l.title),1)])],2),V("div",{class:I(c(n).e("extra"))},[xe(l.$slots,"extra",{},()=>[wt(we(l.extra),1)])],2)],2)):he("v-if",!0),V("div",{class:I(c(n).e("body"))},[V("table",{class:I([c(n).e("table"),c(n).is("bordered",l.border)])},[V("tbody",null,[(x(!0),z(et,null,kt(a(),(d,f)=>(x(),ve(Gte,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var Jte=Ue(Qte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),UI=te({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 Zte=Ot(Jte,{DescriptionsItem:UI}),ene=Cn(UI),tne=ze({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:me([String,Array,Object])},zIndex:{type:me([String,Number])}}),nne={click:e=>e instanceof MouseEvent},sne="overlay";var rne=te({name:"ElOverlay",props:tne,emits:nne,setup(e,{slots:t,emit:n}){const s=Ne(sne),r=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:a}=o_(e.customMaskEvent?void 0:r);return()=>e.mask?G("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:a},[xe(t,"default")],dr.STYLE|dr.CLASS|dr.PROPS,["onClick","onMouseup","onMousedown"]):ot("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[xe(t,"default")])}});const w_=rne,HI=Symbol("dialogInjectionKey"),zI=ze({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:on},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),ine={close:()=>!0},one=["aria-label"],ane=["id"],lne=te({name:"ElDialogContent"}),une=te({...lne,props:zI,emits:ine,setup(e){const t=e,{t:n}=qt(),{Close:s}=AO,{dialogRef:r,headerRef:i,bodyId:o,ns:a,style:l}=Qe(HI),{focusTrapRef:u}=Qe(h_),d=xm(u,r),f=E(()=>t.draggable);return NO(r,i,f),(h,p)=>(x(),z("div",{ref:c(d),class:I([c(a).b(),c(a).is("fullscreen",h.fullscreen),c(a).is("draggable",c(f)),c(a).is("align-center",h.alignCenter),{[c(a).m("center")]:h.center},h.customClass]),style:st(c(l)),tabindex:"-1"},[V("header",{ref_key:"headerRef",ref:i,class:I(c(a).e("header"))},[xe(h.$slots,"header",{},()=>[V("span",{role:"heading",class:I(c(a).e("title"))},we(h.title),3)]),h.showClose?(x(),z("button",{key:0,"aria-label":c(n)("el.dialog.close"),class:I(c(a).e("headerbtn")),type:"button",onClick:p[0]||(p[0]=g=>h.$emit("close"))},[G(c(nt),{class:I(c(a).e("close"))},{default:ee(()=>[(x(),ve(Mt(h.closeIcon||c(s))))]),_:1},8,["class"])],10,one)):he("v-if",!0)],2),V("div",{id:c(o),class:I(c(a).e("body"))},[xe(h.$slots,"default")],10,ane),h.$slots.footer?(x(),z("footer",{key:0,class:I(c(a).e("footer"))},[xe(h.$slots,"footer")],2)):he("v-if",!0)],6))}});var cne=Ue(une,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const jI=ze({...zI,appendToBody:{type:Boolean,default:!1},beforeClose:{type:me(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),KI={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[It]:e=>Dn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},WI=(e,t)=>{const s=At().emit,{nextZIndex:r}=ja();let i="";const o=Tr(),a=Tr(),l=B(!1),u=B(!1),d=B(!1),f=B(e.zIndex||r());let h,p;const g=Mm("namespace",fp),m=E(()=>{const q={},X=`--${g.value}-dialog`;return e.fullscreen||(e.top&&(q[`${X}-margin-top`]=e.top),e.width&&(q[`${X}-width`]=An(e.width))),q}),v=E(()=>e.alignCenter?{display:"flex"}:{});function y(){s("opened")}function T(){s("closed"),s(It,!1),e.destroyOnClose&&(d.value=!1)}function _(){s("close")}function S(){p==null||p(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=$a(()=>N(),e.openDelay):N()}function w(){h==null||h(),p==null||p(),e.closeDelay&&e.closeDelay>0?{stop:p}=$a(()=>L(),e.closeDelay):L()}function A(){function q(X){X||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(q):w()}function M(){e.closeOnClickModal&&A()}function N(){Ht&&(l.value=!0)}function L(){l.value=!1}function F(){s("openAutoFocus")}function W(){s("closeAutoFocus")}function j(q){var X;((X=q.detail)==null?void 0:X.focusReason)==="pointer"&&q.preventDefault()}e.lockScroll&&LO(l);function R(){e.closeOnPressEscape&&A()}return ke(()=>e.modelValue,q=>{q?(u.value=!1,S(),d.value=!0,f.value=e.zIndex?f.value++:r(),it(()=>{s("open"),t.value&&(t.value.scrollTop=0)})):l.value&&w()}),ke(()=>e.fullscreen,q=>{t.value&&(q?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),Tt(()=>{e.modelValue&&(l.value=!0,d.value=!0,S())}),{afterEnter:y,afterLeave:T,beforeLeave:_,handleClose:A,onModalClick:M,close:w,doClose:L,onOpenAutoFocus:F,onCloseAutoFocus:W,onCloseRequested:R,onFocusoutPrevented:j,titleId:o,bodyId:a,closed:u,style:m,overlayDialogStyle:v,rendered:d,visible:l,zIndex:f}},dne=["aria-label","aria-labelledby","aria-describedby"],fne=te({name:"ElDialog",inheritAttrs:!1}),hne=te({...fne,props:jI,emits:KI,setup(e,{expose:t}){const n=e,s=es();gi({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"},E(()=>!!s.title)),gi({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"},E(()=>!!n.customClass));const r=Ne("dialog"),i=B(),o=B(),a=B(),{visible:l,titleId:u,bodyId:d,style:f,overlayDialogStyle:h,rendered:p,zIndex:g,afterEnter:m,afterLeave:v,beforeLeave:y,handleClose:T,onModalClick:_,onOpenAutoFocus:S,onCloseAutoFocus:w,onCloseRequested:A,onFocusoutPrevented:M}=WI(n,i);Nt(HI,{dialogRef:i,headerRef:o,bodyId:d,ns:r,rendered:p,style:f});const N=o_(_),L=E(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:a}),(F,W)=>(x(),ve(Fd,{to:"body",disabled:!F.appendToBody},[G(Pn,{name:"dialog-fade",onAfterEnter:c(m),onAfterLeave:c(v),onBeforeLeave:c(y),persisted:""},{default:ee(()=>[gt(G(c(w_),{"custom-mask-event":"",mask:F.modal,"overlay-class":F.modalClass,"z-index":c(g)},{default:ee(()=>[V("div",{role:"dialog","aria-modal":"true","aria-label":F.title||void 0,"aria-labelledby":F.title?void 0:c(u),"aria-describedby":c(d),class:I(`${c(r).namespace.value}-overlay-dialog`),style:st(c(h)),onClick:W[0]||(W[0]=(...j)=>c(N).onClick&&c(N).onClick(...j)),onMousedown:W[1]||(W[1]=(...j)=>c(N).onMousedown&&c(N).onMousedown(...j)),onMouseup:W[2]||(W[2]=(...j)=>c(N).onMouseup&&c(N).onMouseup(...j))},[G(c(Dm),{loop:"",trapped:c(l),"focus-start-el":"container",onFocusAfterTrapped:c(S),onFocusAfterReleased:c(w),onFocusoutPrevented:c(M),onReleaseRequested:c(A)},{default:ee(()=>[c(p)?(x(),ve(cne,$t({key:0,ref_key:"dialogContentRef",ref:a},F.$attrs,{"custom-class":F.customClass,center:F.center,"align-center":F.alignCenter,"close-icon":F.closeIcon,draggable:c(L),fullscreen:F.fullscreen,"show-close":F.showClose,title:F.title,onClose:c(T)}),Ki({header:ee(()=>[F.$slots.title?xe(F.$slots,"title",{key:1}):xe(F.$slots,"header",{key:0,close:c(T),titleId:c(u),titleClass:c(r).e("title")})]),default:ee(()=>[xe(F.$slots,"default")]),_:2},[F.$slots.footer?{name:"footer",fn:ee(()=>[xe(F.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):he("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,dne)]),_:3},8,["mask","overlay-class","z-index"]),[[Ut,c(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var pne=Ue(hne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const mne=Ot(pne),gne=ze({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:me(String),default:"solid"}}),vne=te({name:"ElDivider"}),yne=te({...vne,props:gne,setup(e){const t=e,n=Ne("divider"),s=E(()=>n.cssVar({"border-style":t.borderStyle}));return(r,i)=>(x(),z("div",{class:I([c(n).b(),c(n).m(r.direction)]),style:st(c(s)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(x(),z("div",{key:0,class:I([c(n).e("text"),c(n).is(r.contentPosition)])},[xe(r.$slots,"default")],2)):he("v-if",!0)],6))}});var bne=Ue(yne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const qI=Ot(bne),_ne=ze({...jI,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}}),Tne=KI,Sne=te({name:"ElDrawer",components:{ElOverlay:w_,ElFocusTrap:Dm,ElIcon:nt,Close:Hr},inheritAttrs:!1,props:_ne,emits:Tne,setup(e,{slots:t}){gi({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"},E(()=>!!t.title)),gi({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"},E(()=>!!e.customClass));const n=B(),s=B(),r=Ne("drawer"),{t:i}=qt(),o=E(()=>e.direction==="rtl"||e.direction==="ltr"),a=E(()=>An(e.size));return{...WI(e,n),drawerRef:n,focusStartRef:s,isHorizontal:o,drawerSize:a,ns:r,t:i}}}),wne=["aria-label","aria-labelledby","aria-describedby"],Cne=["id"],Ene=["aria-label"],xne=["id"];function kne(e,t,n,s,r,i){const o=vt("close"),a=vt("el-icon"),l=vt("el-focus-trap"),u=vt("el-overlay");return x(),ve(Fd,{to:"body",disabled:!e.appendToBody},[G(Pn,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:ee(()=>[gt(G(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:ee(()=>[G(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ee(()=>[V("div",$t({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]=ft(()=>{},["stop"]))}),[V("span",{ref:"focusStartRef",class:I(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(x(),z("header",{key:0,class:I(e.ns.e("header"))},[e.$slots.title?xe(e.$slots,"title",{key:1},()=>[he(" DEPRECATED SLOT ")]):xe(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?he("v-if",!0):(x(),z("span",{key:0,id:e.titleId,role:"heading",class:I(e.ns.e("title"))},we(e.title),11,Cne))]),e.showClose?(x(),z("button",{key:2,"aria-label":e.t("el.drawer.close"),class:I(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[G(a,{class:I(e.ns.e("close"))},{default:ee(()=>[G(o)]),_:1},8,["class"])],10,Ene)):he("v-if",!0)],2)):he("v-if",!0),e.rendered?(x(),z("div",{key:1,id:e.bodyId,class:I(e.ns.e("body"))},[xe(e.$slots,"default")],10,xne)):he("v-if",!0),e.$slots.footer?(x(),z("div",{key:2,class:I(e.ns.e("footer"))},[xe(e.$slots,"footer")],2)):he("v-if",!0)],16,wne)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ut,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var One=Ue(Sne,[["render",kne],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Ane=Ot(One),Ine=te({inheritAttrs:!1});function Pne(e,t,n,s,r,i){return xe(e.$slots,"default")}var $ne=Ue(Ine,[["render",Pne],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const Nne=te({name:"ElCollectionItem",inheritAttrs:!1});function Mne(e,t,n,s,r,i){return xe(e.$slots,"default")}var Rne=Ue(Nne,[["render",Mne],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const GI="data-el-collection-item",YI=e=>{const t=`El${e}Collection`,n=`${t}Item`,s=Symbol(t),r=Symbol(n),i={...$ne,name:t,setup(){const a=B(null),l=new Map;Nt(s,{itemMap:l,getItems:()=>{const d=c(a);if(!d)return[];const f=Array.from(d.querySelectorAll(`[${GI}]`));return[...l.values()].sort((p,g)=>f.indexOf(p.ref)-f.indexOf(g.ref))},collectionRef:a})}},o={...Rne,name:n,setup(a,{attrs:l}){const u=B(null),d=Qe(s,void 0);Nt(r,{collectionItemRef:u}),Tt(()=>{const f=c(u);f&&d.itemMap.set(f,{ref:f,...l})}),ln(()=>{const f=c(u);d.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:i,ElCollectionItem:o}},Lne=ze({style:{type:me([String,Array,Object])},currentTabId:{type:me(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:me(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Dne,ElCollectionItem:Fne,COLLECTION_INJECTION_KEY:C_,COLLECTION_ITEM_INJECTION_KEY:Bne}=YI("RovingFocusGroup"),E_=Symbol("elRovingFocusGroup"),XI=Symbol("elRovingFocusGroupItem"),Vne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Une=(e,t)=>{if(t!=="rtl")return e;switch(e){case at.right:return at.left;case at.left:return at.right;default:return e}},Hne=(e,t,n)=>{const s=Une(e.key,n);if(!(t==="vertical"&&[at.left,at.right].includes(s))&&!(t==="horizontal"&&[at.up,at.down].includes(s)))return Vne[s]},zne=(e,t)=>e.map((n,s)=>e[(s+t)%e.length]),x_=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},VC="currentTabIdChange",UC="rovingFocusGroup.entryFocus",jne={bubbles:!1,cancelable:!0},Kne=te({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Lne,emits:[VC,"entryFocus"],setup(e,{emit:t}){var n;const s=B((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),r=B(!1),i=B(!1),o=B(null),{getItems:a}=Qe(C_,void 0),l=E(()=>[{outline:"none"},e.style]),u=m=>{t(VC,m)},d=()=>{r.value=!0},f=_n(m=>{var v;(v=e.onMousedown)==null||v.call(e,m)},()=>{i.value=!0}),h=_n(m=>{var v;(v=e.onFocus)==null||v.call(e,m)},m=>{const v=!c(i),{target:y,currentTarget:T}=m;if(y===T&&v&&!c(r)){const _=new Event(UC,jne);if(T==null||T.dispatchEvent(_),!_.defaultPrevented){const S=a().filter(L=>L.focusable),w=S.find(L=>L.active),A=S.find(L=>L.id===c(s)),N=[w,A,...S].filter(Boolean).map(L=>L.ref);x_(N)}}i.value=!1}),p=_n(m=>{var v;(v=e.onBlur)==null||v.call(e,m)},()=>{r.value=!1}),g=(...m)=>{t("entryFocus",...m)};Nt(E_,{currentTabbedId:Fa(s),loop:dn(e,"loop"),tabIndex:E(()=>c(r)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:dn(e,"orientation"),dir:dn(e,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:p,onFocus:h,onMousedown:f}),ke(()=>e.currentTabId,m=>{s.value=m??null}),mn(o,UC,g)}});function Wne(e,t,n,s,r,i){return xe(e.$slots,"default")}var qne=Ue(Kne,[["render",Wne],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const Gne=te({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Dne,ElRovingFocusGroupImpl:qne}});function Yne(e,t,n,s,r,i){const o=vt("el-roving-focus-group-impl"),a=vt("el-focus-group-collection");return x(),ve(a,null,{default:ee(()=>[G(o,Mr(pm(e.$attrs)),{default:ee(()=>[xe(e.$slots,"default")]),_:3},16)]),_:3})}var Xne=Ue(Gne,[["render",Yne],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Qne=te({components:{ElRovingFocusCollectionItem:Fne},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:s,onItemFocus:r,onItemShiftTab:i}=Qe(E_,void 0),{getItems:o}=Qe(C_,void 0),a=Tr(),l=B(null),u=_n(p=>{t("mousedown",p)},p=>{e.focusable?r(c(a)):p.preventDefault()}),d=_n(p=>{t("focus",p)},()=>{r(c(a))}),f=_n(p=>{t("keydown",p)},p=>{const{key:g,shiftKey:m,target:v,currentTarget:y}=p;if(g===at.tab&&m){i();return}if(v!==y)return;const T=Hne(p);if(T){p.preventDefault();let S=o().filter(w=>w.focusable).map(w=>w.ref);switch(T){case"last":{S.reverse();break}case"prev":case"next":{T==="prev"&&S.reverse();const w=S.indexOf(y);S=s.value?zne(S,w+1):S.slice(w+1);break}}it(()=>{x_(S)})}}),h=E(()=>n.value===c(a));return Nt(XI,{rovingFocusGroupItemRef:l,tabIndex:E(()=>c(h)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:f}),{id:a,handleKeydown:f,handleFocus:d,handleMousedown:u}}});function Jne(e,t,n,s,r,i){const o=vt("el-roving-focus-collection-item");return x(),ve(o,{id:e.id,focusable:e.focusable,active:e.active},{default:ee(()=>[xe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Zne=Ue(Qne,[["render",Jne],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Lh=ze({trigger:hd.trigger,effect:{...Gn.effect,default:"light"},type:{type:me(String)},placement:{type:me(String),default:"bottom"},popperOptions:{type:me(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:me([Number,String]),default:0},maxHeight:{type:me([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:me(Object)},teleported:Gn.teleported}),QI=ze({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:on}}),ese=ze({onKeydown:{type:me(Function)}}),tse=[at.down,at.pageDown,at.home],JI=[at.up,at.pageUp,at.end],nse=[...tse,...JI],{ElCollection:sse,ElCollectionItem:rse,COLLECTION_INJECTION_KEY:ise,COLLECTION_ITEM_INJECTION_KEY:ose}=YI("Dropdown"),Vm=Symbol("elDropdown"),{ButtonGroup:ase}=Un,lse=te({name:"ElDropdown",components:{ElButton:Un,ElButtonGroup:ase,ElScrollbar:ro,ElDropdownCollection:sse,ElTooltip:As,ElRovingFocusGroup:Xne,ElOnlyChild:CA,ElIcon:nt,ArrowDown:Uo},props:Lh,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=At(),s=Ne("dropdown"),{t:r}=qt(),i=B(),o=B(),a=B(null),l=B(null),u=B(null),d=B(null),f=B(!1),h=[at.enter,at.space,at.down],p=E(()=>({maxHeight:An(e.maxHeight)})),g=E(()=>[s.m(S.value)]),m=Tr().value,v=E(()=>e.id||m);ke([i,dn(e,"trigger")],([K,$],[H])=>{var U,Z,ue;const Q=tt($)?$:[$];(U=H==null?void 0:H.$el)!=null&&U.removeEventListener&&H.$el.removeEventListener("pointerenter",A),(Z=K==null?void 0:K.$el)!=null&&Z.removeEventListener&&K.$el.removeEventListener("pointerenter",A),(ue=K==null?void 0:K.$el)!=null&&ue.addEventListener&&Q.includes("hover")&&K.$el.addEventListener("pointerenter",A)},{immediate:!0}),ln(()=>{var K,$;($=(K=i.value)==null?void 0:K.$el)!=null&&$.removeEventListener&&i.value.$el.removeEventListener("pointerenter",A)});function y(){T()}function T(){var K;(K=a.value)==null||K.onClose()}function _(){var K;(K=a.value)==null||K.onOpen()}const S=Fn();function w(...K){t("command",...K)}function A(){var K,$;($=(K=i.value)==null?void 0:K.$el)==null||$.focus()}function M(){}function N(){const K=c(l);K==null||K.focus(),d.value=null}function L(K){d.value=K}function F(K){f.value||(K.preventDefault(),K.stopImmediatePropagation())}function W(){t("visible-change",!0)}function j(K){(K==null?void 0:K.type)==="keydown"&&l.value.focus()}function R(){t("visible-change",!1)}return Nt(Vm,{contentRef:l,role:E(()=>e.role),triggerId:v,isUsingKeyboard:f,onItemEnter:M,onItemLeave:N}),Nt("elDropdown",{instance:n,dropdownSize:S,handleClick:y,commandHandler:w,trigger:dn(e,"trigger"),hideOnClick:dn(e,"hideOnClick")}),{t:r,ns:s,scrollbar:u,wrapStyle:p,dropdownTriggerKls:g,dropdownSize:S,triggerId:v,triggerKeys:h,currentTabId:d,handleCurrentTabIdChange:L,handlerMainButtonClick:K=>{t("click",K)},handleEntryFocus:F,handleClose:T,handleOpen:_,handleBeforeShowTooltip:W,handleShowTooltip:j,handleBeforeHideTooltip:R,onFocusAfterTrapped:K=>{var $,H;K.preventDefault(),(H=($=l.value)==null?void 0:$.focus)==null||H.call($,{preventScroll:!0})},popperRef:a,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function use(e,t,n,s,r,i){var o;const a=vt("el-dropdown-collection"),l=vt("el-roving-focus-group"),u=vt("el-scrollbar"),d=vt("el-only-child"),f=vt("el-tooltip"),h=vt("el-button"),p=vt("arrow-down"),g=vt("el-icon"),m=vt("el-button-group");return x(),z("div",{class:I([e.ns.b(),e.ns.is("disabled",e.disabled)])},[G(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},Ki({content:ee(()=>[G(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ee(()=>[G(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:ee(()=>[G(a,null,{default:ee(()=>[xe(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:ee(()=>[G(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ee(()=>[xe(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?(x(),ve(m,{key:0},{default:ee(()=>[G(h,$t({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ee(()=>[xe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),G(h,$t({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:ee(()=>[G(g,{class:I(e.ns.e("icon"))},{default:ee(()=>[G(p)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):he("v-if",!0)],2)}var cse=Ue(lse,[["render",use],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const dse=te({name:"DropdownItemImpl",components:{ElIcon:nt},props:QI,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Ne("dropdown"),{role:s}=Qe(Vm,void 0),{collectionItemRef:r}=Qe(ose,void 0),{collectionItemRef:i}=Qe(Bne,void 0),{rovingFocusGroupItemRef:o,tabIndex:a,handleFocus:l,handleKeydown:u,handleMousedown:d}=Qe(XI,void 0),f=xm(r,i,o),h=E(()=>s.value==="menu"?"menuitem":s.value==="navigation"?"link":"button"),p=_n(g=>{const{code:m}=g;if(m===at.enter||m===at.space)return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:f,dataset:{[GI]:""},role:h,tabIndex:a,handleFocus:l,handleKeydown:p,handleMousedown:d}}}),fse=["aria-disabled","tabindex","role"];function hse(e,t,n,s,r,i){const o=vt("el-icon");return x(),z(et,null,[e.divided?(x(),z("li",$t({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):he("v-if",!0),V("li",$t({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]=a=>e.$emit("clickimpl",a)),onFocus:t[1]||(t[1]=(...a)=>e.handleFocus&&e.handleFocus(...a)),onKeydown:t[2]||(t[2]=ft((...a)=>e.handleKeydown&&e.handleKeydown(...a),["self"])),onMousedown:t[3]||(t[3]=(...a)=>e.handleMousedown&&e.handleMousedown(...a)),onPointermove:t[4]||(t[4]=a=>e.$emit("pointermove",a)),onPointerleave:t[5]||(t[5]=a=>e.$emit("pointerleave",a))}),[e.icon?(x(),ve(o,{key:0},{default:ee(()=>[(x(),ve(Mt(e.icon)))]),_:1})):he("v-if",!0),xe(e.$slots,"default")],16,fse)],64)}var pse=Ue(dse,[["render",hse],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const ZI=()=>{const e=Qe("elDropdown",{}),t=E(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},mse=te({name:"ElDropdownItem",components:{ElDropdownCollectionItem:rse,ElRovingFocusItem:Zne,ElDropdownItemImpl:pse},inheritAttrs:!1,props:QI,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:s}=ZI(),r=At(),i=B(null),o=E(()=>{var p,g;return(g=(p=c(i))==null?void 0:p.textContent)!=null?g:""}),{onItemEnter:a,onItemLeave:l}=Qe(Vm,void 0),u=_n(p=>(t("pointermove",p),p.defaultPrevented),VS(p=>{if(e.disabled){l(p);return}const g=p.currentTarget;g===document.activeElement||g.contains(document.activeElement)||(a(p),p.defaultPrevented||g==null||g.focus())})),d=_n(p=>(t("pointerleave",p),p.defaultPrevented),VS(p=>{l(p)})),f=_n(p=>{if(!e.disabled)return t("click",p),p.type!=="keydown"&&p.defaultPrevented},p=>{var g,m,v;if(e.disabled){p.stopImmediatePropagation();return}(g=s==null?void 0:s.hideOnClick)!=null&&g.value&&((m=s.handleClick)==null||m.call(s)),(v=s.commandHandler)==null||v.call(s,e.command,r,p)}),h=E(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:d,textContent:o,propsAndAttrs:h}}});function gse(e,t,n,s,r,i){var o;const a=vt("el-dropdown-item-impl"),l=vt("el-roving-focus-item"),u=vt("el-dropdown-collection-item");return x(),ve(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:ee(()=>[G(l,{focusable:!e.disabled},{default:ee(()=>[G(a,$t(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:ee(()=>[xe(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var eP=Ue(mse,[["render",gse],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const vse=te({name:"ElDropdownMenu",props:ese,setup(e){const t=Ne("dropdown"),{_elDropdownSize:n}=ZI(),s=n.value,{focusTrapRef:r,onKeydown:i}=Qe(h_,void 0),{contentRef:o,role:a,triggerId:l}=Qe(Vm,void 0),{collectionRef:u,getItems:d}=Qe(ise,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:h,tabIndex:p,onBlur:g,onFocus:m,onMousedown:v}=Qe(E_,void 0),{collectionRef:y}=Qe(C_,void 0),T=E(()=>[t.b("menu"),t.bm("menu",s==null?void 0:s.value)]),_=xm(o,u,r,f,y),S=_n(A=>{var M;(M=e.onKeydown)==null||M.call(e,A)},A=>{const{currentTarget:M,code:N,target:L}=A;if(M.contains(L),at.tab===N&&A.stopImmediatePropagation(),A.preventDefault(),L!==c(o)||!nse.includes(N))return;const W=d().filter(j=>!j.disabled).map(j=>j.ref);JI.includes(N)&&W.reverse(),x_(W)});return{size:s,rovingFocusGroupRootStyle:h,tabIndex:p,dropdownKls:T,role:a,triggerId:l,dropdownListWrapperRef:_,handleKeydown:A=>{S(A),i(A)},onBlur:g,onFocus:m,onMousedown:v}}}),yse=["role","aria-labelledby"];function bse(e,t,n,s,r,i){return x(),z("ul",{ref:e.dropdownListWrapperRef,class:I(e.dropdownKls),style:st(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]=ft((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=ft((...o)=>e.onMousedown&&e.onMousedown(...o),["self"]))},[xe(e.$slots,"default")],46,yse)}var tP=Ue(vse,[["render",bse],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const _se=Ot(cse,{DropdownItem:eP,DropdownMenu:tP}),Tse=Cn(eP),Sse=Cn(tP),wse={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Cse=["id"],Ese=["stop-color"],xse=["stop-color"],kse=["id"],Ose=["stop-color"],Ase=["stop-color"],Ise=["id"],Pse={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},$se={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},Nse={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},Mse=["fill"],Rse=["fill"],Lse={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)"},Dse=["fill"],Fse=["fill"],Bse=["fill"],Vse=["fill"],Use=["fill"],Hse={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},zse=["fill","xlink:href"],jse=["fill","mask"],Kse=["fill"],Wse=te({name:"ImgEmpty"}),qse=te({...Wse,setup(e){const t=Ne("empty"),n=Tr();return(s,r)=>(x(),z("svg",wse,[V("defs",null,[V("linearGradient",{id:`linearGradient-1-${c(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[V("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Ese),V("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,xse)],8,Cse),V("linearGradient",{id:`linearGradient-2-${c(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[V("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Ose),V("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,Ase)],8,kse),V("rect",{id:`path-3-${c(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,Ise)]),V("g",Pse,[V("g",$se,[V("g",Nse,[V("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(${c(t).cssVarBlockName("fill-color-3")})`},null,8,Mse),V("polygon",{id:"Rectangle-Copy-14",fill:`var(${c(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,Rse),V("g",Lse,[V("polygon",{id:"Rectangle-Copy-10",fill:`var(${c(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,Dse),V("polygon",{id:"Rectangle-Copy-11",fill:`var(${c(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,Fse),V("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${c(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,Bse),V("polygon",{id:"Rectangle-Copy-13",fill:`var(${c(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,Vse)]),V("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${c(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,Use),V("g",Hse,[V("use",{id:"Mask",fill:`var(${c(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${c(n)}`},null,8,zse),V("polygon",{id:"Rectangle-Copy",fill:`var(${c(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${c(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,jse)]),V("polygon",{id:"Rectangle-Copy-18",fill:`var(${c(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,Kse)])])])]))}});var Gse=Ue(qse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const Yse=ze({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Xse=["src"],Qse={key:1},Jse=te({name:"ElEmpty"}),Zse=te({...Jse,props:Yse,setup(e){const t=e,{t:n}=qt(),s=Ne("empty"),r=E(()=>t.description||n("el.table.emptyText")),i=E(()=>({width:An(t.imageSize)}));return(o,a)=>(x(),z("div",{class:I(c(s).b())},[V("div",{class:I(c(s).e("image")),style:st(c(i))},[o.image?(x(),z("img",{key:0,src:o.image,ondragstart:"return false"},null,8,Xse)):xe(o.$slots,"image",{key:1},()=>[G(Gse)])],6),V("div",{class:I(c(s).e("description"))},[o.$slots.description?xe(o.$slots,"description",{key:0}):(x(),z("p",Qse,we(c(r)),1))],2),o.$slots.default?(x(),z("div",{key:0,class:I(c(s).e("bottom"))},[xe(o.$slots,"default")],2)):he("v-if",!0)],2))}});var ere=Ue(Zse,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const Um=Ot(ere),tre=ze({urlList:{type:me(Array),default:()=>pn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),nre={close:()=>!0,switch:e=>ht(e)},sre=["src"],rre=te({name:"ElImageViewer"}),ire=te({...rre,props:tre,emits:nre,setup(e,{expose:t,emit:n}){const s=e,r={CONTAIN:{name:"contain",icon:wa(dj)},ORIGINAL:{name:"original",icon:wa(D9)}},{t:i}=qt(),o=Ne("image-viewer"),{nextZIndex:a}=ja(),l=B(),u=B([]),d=QD(),f=B(!0),h=B(s.initialIndex),p=nn(r.CONTAIN),g=B({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=E(()=>{const{urlList:$}=s;return $.length<=1}),v=E(()=>h.value===0),y=E(()=>h.value===s.urlList.length-1),T=E(()=>s.urlList[h.value]),_=E(()=>{const{scale:$,deg:H,offsetX:U,offsetY:Z,enableTransition:ue}=g.value;let Q=U/$,ae=Z/$;switch(H%360){case 90:case-270:[Q,ae]=[ae,-Q];break;case 180:case-180:[Q,ae]=[-Q,-ae];break;case 270:case-90:[Q,ae]=[-ae,Q];break}const Ee={transform:`scale(${$}) rotate(${H}deg) translate(${Q}px, ${ae}px)`,transition:ue?"transform .3s":""};return p.value.name===r.CONTAIN.name&&(Ee.maxWidth=Ee.maxHeight="100%"),Ee}),S=E(()=>ht(s.zIndex)?s.zIndex:a());function w(){M(),n("close")}function A(){const $=Ea(U=>{switch(U.code){case at.esc:s.closeOnPressEscape&&w();break;case at.space:j();break;case at.left:q();break;case at.up:K("zoomIn");break;case at.right:X();break;case at.down:K("zoomOut");break}}),H=Ea(U=>{const Z=U.deltaY||U.deltaX;K(Z<0?"zoomIn":"zoomOut",{zoomRate:s.zoomRate,enableTransition:!1})});d.run(()=>{mn(document,"keydown",$),mn(document,"wheel",H)})}function M(){d.stop()}function N(){f.value=!1}function L($){f.value=!1,$.target.alt=i("el.image.error")}function F($){if(f.value||$.button!==0||!l.value)return;g.value.enableTransition=!1;const{offsetX:H,offsetY:U}=g.value,Z=$.pageX,ue=$.pageY,Q=Ea(Ee=>{g.value={...g.value,offsetX:H+Ee.pageX-Z,offsetY:U+Ee.pageY-ue}}),ae=mn(document,"mousemove",Q);mn(document,"mouseup",()=>{ae()}),$.preventDefault()}function W(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function j(){if(f.value)return;const $=od(r),H=Object.values(r),U=p.value.name,ue=(H.findIndex(Q=>Q.name===U)+1)%$.length;p.value=r[$[ue]],W()}function R($){const H=s.urlList.length;h.value=($+H)%H}function q(){v.value&&!s.infinite||R(h.value-1)}function X(){y.value&&!s.infinite||R(h.value+1)}function K($,H={}){if(f.value)return;const{zoomRate:U,rotateDeg:Z,enableTransition:ue}={zoomRate:s.zoomRate,rotateDeg:90,enableTransition:!0,...H};switch($){case"zoomOut":g.value.scale>.2&&(g.value.scale=Number.parseFloat((g.value.scale/U).toFixed(3)));break;case"zoomIn":g.value.scale<7&&(g.value.scale=Number.parseFloat((g.value.scale*U).toFixed(3)));break;case"clockwise":g.value.deg+=Z;break;case"anticlockwise":g.value.deg-=Z;break}g.value.enableTransition=ue}return ke(T,()=>{it(()=>{const $=u.value[0];$!=null&&$.complete||(f.value=!0)})}),ke(h,$=>{W(),n("switch",$)}),Tt(()=>{var $,H;A(),(H=($=l.value)==null?void 0:$.focus)==null||H.call($)}),t({setActiveItem:R}),($,H)=>(x(),ve(Fd,{to:"body",disabled:!$.teleported},[G(Pn,{name:"viewer-fade",appear:""},{default:ee(()=>[V("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:I(c(o).e("wrapper")),style:st({zIndex:c(S)})},[V("div",{class:I(c(o).e("mask")),onClick:H[0]||(H[0]=ft(U=>$.hideOnClickModal&&w(),["self"]))},null,2),he(" CLOSE "),V("span",{class:I([c(o).e("btn"),c(o).e("close")]),onClick:w},[G(c(nt),null,{default:ee(()=>[G(c(Hr))]),_:1})],2),he(" ARROW "),c(m)?he("v-if",!0):(x(),z(et,{key:0},[V("span",{class:I([c(o).e("btn"),c(o).e("prev"),c(o).is("disabled",!$.infinite&&c(v))]),onClick:q},[G(c(nt),null,{default:ee(()=>[G(c(Po))]),_:1})],2),V("span",{class:I([c(o).e("btn"),c(o).e("next"),c(o).is("disabled",!$.infinite&&c(y))]),onClick:X},[G(c(nt),null,{default:ee(()=>[G(c(ws))]),_:1})],2)],64)),he(" ACTIONS "),V("div",{class:I([c(o).e("btn"),c(o).e("actions")])},[V("div",{class:I(c(o).e("actions__inner"))},[G(c(nt),{onClick:H[1]||(H[1]=U=>K("zoomOut"))},{default:ee(()=>[G(c(jK))]),_:1}),G(c(nt),{onClick:H[2]||(H[2]=U=>K("zoomIn"))},{default:ee(()=>[G(c(kO))]),_:1}),V("i",{class:I(c(o).e("actions__divider"))},null,2),G(c(nt),{onClick:j},{default:ee(()=>[(x(),ve(Mt(c(p).icon)))]),_:1}),V("i",{class:I(c(o).e("actions__divider"))},null,2),G(c(nt),{onClick:H[3]||(H[3]=U=>K("anticlockwise"))},{default:ee(()=>[G(c(E9))]),_:1}),G(c(nt),{onClick:H[4]||(H[4]=U=>K("clockwise"))},{default:ee(()=>[G(c(P9))]),_:1})],2)],2),he(" CANVAS "),V("div",{class:I(c(o).e("canvas"))},[(x(!0),z(et,null,kt($.urlList,(U,Z)=>gt((x(),z("img",{ref_for:!0,ref:ue=>u.value[Z]=ue,key:U,src:U,style:st(c(_)),class:I(c(o).e("img")),onLoad:N,onError:L,onMousedown:F},null,46,sre)),[[Ut,Z===h.value]])),128))],2),xe($.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var ore=Ue(ire,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const nP=Ot(ore),are=ze({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:me([String,Object])},previewSrcList:{type:me(Array),default:()=>pn([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),lre={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>ht(e),close:()=>!0,show:()=>!0},ure=["src","loading"],cre={key:0},dre=te({name:"ElImage",inheritAttrs:!1}),fre=te({...dre,props:are,emits:lre,setup(e,{emit:t}){const n=e;let s="";const{t:r}=qt(),i=Ne("image"),o=Eu(),a=Xb(),l=B(),u=B(!1),d=B(!0),f=B(!1),h=B(),p=B(),g=Ht&&"loading"in HTMLImageElement.prototype;let m,v;const y=E(()=>o.style),T=E(()=>{const{fit:$}=n;return Ht&&$?{objectFit:$}:{}}),_=E(()=>{const{previewSrcList:$}=n;return Array.isArray($)&&$.length>0}),S=E(()=>{const{previewSrcList:$,initialIndex:H}=n;let U=H;return H>$.length-1&&(U=0),U}),w=E(()=>n.loading==="eager"?!1:!g&&n.loading==="lazy"||n.lazy),A=()=>{Ht&&(d.value=!0,u.value=!1,l.value=n.src)};function M($){d.value=!1,u.value=!1,t("load",$)}function N($){d.value=!1,u.value=!0,t("error",$)}function L(){HF(h.value,p.value)&&(A(),j())}const F=R2(L,200);async function W(){var $;if(!Ht)return;await it();const{scrollContainer:H}=n;Ur(H)?p.value=H:mt(H)&&H!==""?p.value=($=document.querySelector(H))!=null?$:void 0:h.value&&(p.value=Kb(h.value)),p.value&&(m=mn(p,"scroll",F),setTimeout(()=>L(),100))}function j(){!Ht||!p.value||!F||(m==null||m(),p.value=void 0)}function R($){if($.ctrlKey){if($.deltaY<0)return $.preventDefault(),!1;if($.deltaY>0)return $.preventDefault(),!1}}function q(){_.value&&(v=mn("wheel",R,{passive:!1}),s=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function X(){v==null||v(),document.body.style.overflow=s,f.value=!1,t("close")}function K($){t("switch",$)}return ke(()=>n.src,()=>{w.value?(d.value=!0,u.value=!1,j(),W()):A()}),Tt(()=>{w.value?W():A()}),($,H)=>(x(),z("div",{ref_key:"container",ref:h,class:I([c(i).b(),$.$attrs.class]),style:st(c(y))},[l.value!==void 0&&!u.value?(x(),z("img",$t({key:0},c(a),{src:l.value,loading:$.loading,style:c(T),class:[c(i).e("inner"),c(_)&&c(i).e("preview"),d.value&&c(i).is("loading")],onClick:q,onLoad:M,onError:N}),null,16,ure)):he("v-if",!0),d.value||u.value?(x(),z("div",{key:1,class:I(c(i).e("wrapper"))},[d.value?xe($.$slots,"placeholder",{key:0},()=>[V("div",{class:I(c(i).e("placeholder"))},null,2)]):u.value?xe($.$slots,"error",{key:1},()=>[V("div",{class:I(c(i).e("error"))},we(c(r)("el.image.error")),3)]):he("v-if",!0)],2)):he("v-if",!0),c(_)?(x(),z(et,{key:2},[f.value?(x(),ve(c(nP),{key:0,"z-index":$.zIndex,"initial-index":c(S),infinite:$.infinite,"zoom-rate":$.zoomRate,"url-list":$.previewSrcList,"hide-on-click-modal":$.hideOnClickModal,teleported:$.previewTeleported,"close-on-press-escape":$.closeOnPressEscape,onClose:X,onSwitch:K},{default:ee(()=>[$.$slots.viewer?(x(),z("div",cre,[xe($.$slots,"viewer")])):he("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):he("v-if",!0)],64)):he("v-if",!0)],6))}});var hre=Ue(fre,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const pre=Ot(hre),mre=ze({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:is,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||ht(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}}),gre={[an]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Cs]:e=>ht(e)||Kn(e),[It]:e=>ht(e)||Kn(e)},vre=["aria-label","onKeydown"],yre=["aria-label","onKeydown"],bre=te({name:"ElInputNumber"}),_re=te({...bre,props:mre,emits:gre,setup(e,{expose:t,emit:n}){const s=e,{t:r}=qt(),i=Ne("input-number"),o=B(),a=Bt({currentValue:s.modelValue,userInput:null}),{formItem:l}=Is(),u=E(()=>ht(s.modelValue)&&s.modelValue<=s.min),d=E(()=>ht(s.modelValue)&&s.modelValue>=s.max),f=E(()=>{const R=y(s.step);return Qn(s.precision)?Math.max(y(s.modelValue),R):(R>s.precision,s.precision)}),h=E(()=>s.controls&&s.controlsPosition==="right"),p=Fn(),g=zs(),m=E(()=>{if(a.userInput!==null)return a.userInput;let R=a.currentValue;if(Kn(R))return"";if(ht(R)){if(Number.isNaN(R))return"";Qn(s.precision)||(R=R.toFixed(s.precision))}return R}),v=(R,q)=>{if(Qn(q)&&(q=f.value),q===0)return Math.round(R);let X=String(R);const K=X.indexOf(".");if(K===-1||!X.replace(".","").split("")[K+q])return R;const U=X.length;return X.charAt(U-1)==="5"&&(X=`${X.slice(0,Math.max(0,U-1))}6`),Number.parseFloat(Number(X).toFixed(q))},y=R=>{if(Kn(R))return 0;const q=R.toString(),X=q.indexOf(".");let K=0;return X!==-1&&(K=q.length-X-1),K},T=(R,q=1)=>ht(R)?v(R+s.step*q):a.currentValue,_=()=>{if(s.readonly||g.value||d.value)return;const R=Number(m.value)||0,q=T(R);A(q),n(Cs,a.currentValue)},S=()=>{if(s.readonly||g.value||u.value)return;const R=Number(m.value)||0,q=T(R,-1);A(q),n(Cs,a.currentValue)},w=(R,q)=>{const{max:X,min:K,step:$,precision:H,stepStrictly:U,valueOnClear:Z}=s;let ue=Number(R);if(Kn(R)||Number.isNaN(ue))return null;if(R===""){if(Z===null)return null;ue=mt(Z)?{min:K,max:X}[Z]:Z}return U&&(ue=v(Math.round(ue/$)*$,H)),Qn(H)||(ue=v(ue,H)),(ue>X||ue<K)&&(ue=ue>X?X:K,q&&n(It,ue)),ue},A=(R,q=!0)=>{var X;const K=a.currentValue,$=w(R);if(!q){n(It,$);return}K!==$&&(a.userInput=null,n(It,$),n(an,$,K),s.validateEvent&&((X=l==null?void 0:l.validate)==null||X.call(l,"change").catch(H=>void 0)),a.currentValue=$)},M=R=>{a.userInput=R;const q=R===""?null:Number(R);n(Cs,q),A(q,!1)},N=R=>{const q=R!==""?Number(R):"";(ht(q)&&!Number.isNaN(q)||R==="")&&A(q),a.userInput=null},L=()=>{var R,q;(q=(R=o.value)==null?void 0:R.focus)==null||q.call(R)},F=()=>{var R,q;(q=(R=o.value)==null?void 0:R.blur)==null||q.call(R)},W=R=>{n("focus",R)},j=R=>{var q;n("blur",R),s.validateEvent&&((q=l==null?void 0:l.validate)==null||q.call(l,"blur").catch(X=>void 0))};return ke(()=>s.modelValue,R=>{const q=w(a.userInput),X=w(R,!0);!ht(q)&&(!q||q!==X)&&(a.currentValue=X,a.userInput=null)},{immediate:!0}),Tt(()=>{var R;const{min:q,max:X,modelValue:K}=s,$=(R=o.value)==null?void 0:R.input;if($.setAttribute("role","spinbutton"),Number.isFinite(X)?$.setAttribute("aria-valuemax",String(X)):$.removeAttribute("aria-valuemax"),Number.isFinite(q)?$.setAttribute("aria-valuemin",String(q)):$.removeAttribute("aria-valuemin"),$.setAttribute("aria-valuenow",String(a.currentValue)),$.setAttribute("aria-disabled",String(g.value)),!ht(K)&&K!=null){let H=Number(K);Number.isNaN(H)&&(H=null),n(It,H)}}),to(()=>{var R;const q=(R=o.value)==null?void 0:R.input;q==null||q.setAttribute("aria-valuenow",`${a.currentValue}`)}),t({focus:L,blur:F}),(R,q)=>(x(),z("div",{class:I([c(i).b(),c(i).m(c(p)),c(i).is("disabled",c(g)),c(i).is("without-controls",!R.controls),c(i).is("controls-right",c(h))]),onDragstart:q[1]||(q[1]=ft(()=>{},["prevent"]))},[R.controls?gt((x(),z("span",{key:0,role:"button","aria-label":c(r)("el.inputNumber.decrease"),class:I([c(i).e("decrease"),c(i).is("disabled",c(u))]),onKeydown:zt(S,["enter"])},[G(c(nt),null,{default:ee(()=>[c(h)?(x(),ve(c(Uo),{key:0})):(x(),ve(c(Mj),{key:1}))]),_:1})],42,vre)),[[c(gp),S]]):he("v-if",!0),R.controls?gt((x(),z("span",{key:1,role:"button","aria-label":c(r)("el.inputNumber.increase"),class:I([c(i).e("increase"),c(i).is("disabled",c(d))]),onKeydown:zt(_,["enter"])},[G(c(nt),null,{default:ee(()=>[c(h)?(x(),ve(c(Wd),{key:0})):(x(),ve(c(CO),{key:1}))]),_:1})],42,yre)),[[c(gp),_]]):he("v-if",!0),G(c(ls),{id:R.id,ref_key:"input",ref:o,type:"number",step:R.step,"model-value":c(m),placeholder:R.placeholder,readonly:R.readonly,disabled:c(g),size:c(p),max:R.max,min:R.min,name:R.name,label:R.label,"validate-event":!1,onWheel:q[0]||(q[0]=ft(()=>{},["prevent"])),onKeydown:[zt(ft(_,["prevent"]),["up"]),zt(ft(S,["prevent"]),["down"])],onBlur:j,onFocus:W,onInput:M,onChange:N},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var Tre=Ue(_re,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const sP=Ot(Tre),Sre=ze({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:on}}),wre={click:e=>e instanceof MouseEvent},Cre=["href"],Ere=te({name:"ElLink"}),xre=te({...Ere,props:Sre,emits:wre,setup(e,{emit:t}){const n=e,s=Ne("link"),r=E(()=>[s.b(),s.m(n.type),s.is("disabled",n.disabled),s.is("underline",n.underline&&!n.disabled)]);function i(o){n.disabled||t("click",o)}return(o,a)=>(x(),z("a",{class:I(c(r)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(x(),ve(c(nt),{key:0},{default:ee(()=>[(x(),ve(Mt(o.icon)))]),_:1})):he("v-if",!0),o.$slots.default?(x(),z("span",{key:1,class:I(c(s).e("inner"))},[xe(o.$slots,"default")],2)):he("v-if",!0),o.$slots.icon?xe(o.$slots,"icon",{key:2}):he("v-if",!0)],10,Cre))}});var kre=Ue(xre,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const rP=Ot(kre);let Ore=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",s=>{let r=!1;switch(s.code){case at.down:{this.gotoSubIndex(this.subIndex+1),r=!0;break}case at.up:{this.gotoSubIndex(this.subIndex-1),r=!0;break}case at.tab:{Sh(t,"mouseleave");break}case at.enter:case at.space:{r=!0,s.currentTarget.click();break}}return r&&(s.preventDefault(),s.stopPropagation()),!1})})}},Are=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 Ore(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case at.down:{Sh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case at.up:{Sh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case at.tab:{Sh(t.currentTarget,"mouseleave");break}case at.enter:case at.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},Ire=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(s=>{s.nodeType===1&&new Are(s,t)})}};const Pre=te({name:"ElMenuCollapseTransition",setup(){const e=Ne("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,s){si(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",s()},onAfterEnter(n){Fs(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Fr(n,e.m("collapse"))?(Fs(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),si(n,e.m("collapse"))):(si(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Fs(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){si(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function $re(e,t,n,s,r,i){return x(),ve(Pn,$t({mode:"out-in"},e.listeners),{default:ee(()=>[xe(e.$slots,"default")]),_:3},16)}var Nre=Ue(Pre,[["render",$re],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function iP(e,t){const n=E(()=>{let r=e.parent;const i=[t.value];for(;r.type.name!=="ElMenu";)r.props.index&&i.unshift(r.props.index),r=r.parent;return i});return{parentMenu:E(()=>{let r=e.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:n}}function Mre(e){return E(()=>{const n=e.backgroundColor;return n?new DA(n).shade(20).toString():""})}const oP=(e,t)=>{const n=Ne("menu");return E(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Mre(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},Rre=ze({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:on},expandOpenIcon:{type:on},collapseCloseIcon:{type:on},collapseOpenIcon:{type:on}}),ih="ElSubMenu";var k_=te({name:ih,props:Rre,setup(e,{slots:t,expose:n}){gi({from:"popper-append-to-body",replacement:"teleported",scope:ih,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},E(()=>e.popperAppendToBody!==void 0));const s=At(),{indexPath:r,parentMenu:i}=iP(s,E(()=>e.index)),o=Ne("menu"),a=Ne("sub-menu"),l=Qe("rootMenu");l||zn(ih,"can not inject root menu");const u=Qe(`subMenu:${i.value.uid}`);u||zn(ih,"can not inject sub menu");const d=B({}),f=B({});let h;const p=B(!1),g=B(),m=B(null),v=E(()=>W.value==="horizontal"&&T.value?"bottom-start":"right-start"),y=E(()=>W.value==="horizontal"&&T.value||W.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?A.value?e.expandOpenIcon:e.expandCloseIcon:Uo:e.collapseCloseIcon&&e.collapseOpenIcon?A.value?e.collapseOpenIcon:e.collapseCloseIcon:ws),T=E(()=>u.level===0),_=E(()=>{var U;const Z=(U=e.teleported)!=null?U:e.popperAppendToBody;return Z===void 0?T.value:Z}),S=E(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),w=E(()=>W.value==="horizontal"&&T.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),A=E(()=>l.openedMenus.includes(e.index)),M=E(()=>{let U=!1;return Object.values(d.value).forEach(Z=>{Z.active&&(U=!0)}),Object.values(f.value).forEach(Z=>{Z.active&&(U=!0)}),U}),N=E(()=>l.props.backgroundColor||""),L=E(()=>l.props.activeTextColor||""),F=E(()=>l.props.textColor||""),W=E(()=>l.props.mode),j=Bt({index:e.index,indexPath:r,active:M}),R=E(()=>W.value!=="horizontal"?{color:F.value}:{borderBottomColor:M.value?l.props.activeTextColor?L.value:"":"transparent",color:M.value?L.value:F.value}),q=()=>{var U,Z,ue;return(ue=(Z=(U=m.value)==null?void 0:U.popperRef)==null?void 0:Z.popperInstanceRef)==null?void 0:ue.destroy()},X=U=>{U||q()},K=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:r.value,active:M.value})},$=(U,Z=e.showTimeout)=>{var ue;U.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,h==null||h(),{stop:h}=$a(()=>{l.openMenu(e.index,r.value)},Z),_.value&&((ue=i.value.vnode.el)==null||ue.dispatchEvent(new MouseEvent("mouseenter")))))},H=(U=!1)=>{var Z,ue;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(h==null||h(),u.mouseInChild.value=!1,{stop:h}=$a(()=>!p.value&&l.closeMenu(e.index,r.value),e.hideTimeout),_.value&&U&&((Z=s.parent)==null?void 0:Z.type.name)==="ElSubMenu"&&((ue=u.handleMouseleave)==null||ue.call(u,!0)))};ke(()=>l.props.collapse,U=>X(!!U));{const U=ue=>{f.value[ue.index]=ue},Z=ue=>{delete f.value[ue.index]};Nt(`subMenu:${s.uid}`,{addSubMenu:U,removeSubMenu:Z,handleMouseleave:H,mouseInChild:p,level:u.level+1})}return n({opened:A}),Tt(()=>{l.addSubMenu(j),u.addSubMenu(j)}),ln(()=>{u.removeSubMenu(j),l.removeSubMenu(j)}),()=>{var U;const Z=[(U=t.title)==null?void 0:U.call(t),ot(nt,{class:a.e("icon-arrow"),style:{transform:A.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>mt(y.value)?ot(s.appContext.components[y.value]):ot(y.value)})],ue=oP(l.props,u.level+1),Q=l.isMenuPopup?ot(As,{ref:m,visible:A.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:v.value,teleported:_.value,fallbackPlacements:w.value,transition:S.value,gpuAcceleration:!1},{content:()=>{var ae;return ot("div",{class:[o.m(W.value),o.m("popup-container"),e.popperClass],onMouseenter:Ee=>$(Ee,100),onMouseleave:()=>H(!0),onFocus:Ee=>$(Ee,100)},[ot("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${v.value}`)],style:ue.value},[(ae=t.default)==null?void 0:ae.call(t)])])},default:()=>ot("div",{class:a.e("title"),style:[R.value,{backgroundColor:N.value}],onClick:K},Z)}):ot(et,{},[ot("div",{class:a.e("title"),style:[R.value,{backgroundColor:N.value}],ref:g,onClick:K},Z),ot(Bm,{},{default:()=>{var ae;return gt(ot("ul",{role:"menu",class:[o.b(),o.m("inline")],style:ue.value},[(ae=t.default)==null?void 0:ae.call(t)]),[[Ut,A.value]])}})]);return ot("li",{class:[a.b(),a.is("active",M.value),a.is("opened",A.value),a.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:A.value,onMouseenter:$,onMouseleave:()=>H(!0),onFocus:$},[Q])}}});const Lre=ze({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:me(Array),default:()=>pn([])},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"}}),ov=e=>Array.isArray(e)&&e.every(t=>mt(t)),Dre={close:(e,t)=>mt(e)&&ov(t),open:(e,t)=>mt(e)&&ov(t),select:(e,t,n,s)=>mt(e)&&ov(t)&&Pt(n)&&(s===void 0||s instanceof Promise)};var Fre=te({name:"ElMenu",props:Lre,emits:Dre,setup(e,{emit:t,slots:n,expose:s}){const r=At(),i=r.appContext.config.globalProperties.$router,o=B(),a=Ne("menu"),l=Ne("sub-menu"),u=B(-1),d=B(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=B(e.defaultActive),h=B({}),p=B({}),g=E(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),m=()=>{const W=f.value&&h.value[f.value];if(!W||e.mode==="horizontal"||e.collapse)return;W.indexPath.forEach(R=>{const q=p.value[R];q&&v(R,q.indexPath)})},v=(W,j)=>{d.value.includes(W)||(e.uniqueOpened&&(d.value=d.value.filter(R=>j.includes(R))),d.value.push(W),t("open",W,j))},y=W=>{const j=d.value.indexOf(W);j!==-1&&d.value.splice(j,1)},T=(W,j)=>{y(W),t("close",W,j)},_=({index:W,indexPath:j})=>{d.value.includes(W)?T(W,j):v(W,j)},S=W=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:j,indexPath:R}=W;if(!(j===void 0||R===void 0))if(e.router&&i){const q=W.route||j,X=i.push(q).then(K=>(K||(f.value=j),K));t("select",j,R,{index:j,indexPath:R,route:q},X)}else f.value=j,t("select",j,R,{index:j,indexPath:R})},w=W=>{const j=h.value,R=j[W]||f.value&&j[f.value]||j[e.defaultActive];R?f.value=R.index:f.value=W},A=()=>{var W,j;if(!o.value)return-1;const R=Array.from((j=(W=o.value)==null?void 0:W.childNodes)!=null?j:[]).filter(Z=>Z.nodeName!=="#text"||Z.nodeValue),q=64,X=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),K=Number.parseInt(getComputedStyle(o.value).paddingRight,10),$=o.value.clientWidth-X-K;let H=0,U=0;return R.forEach((Z,ue)=>{H+=Z.offsetWidth||0,H<=$-q&&(U=ue+1)}),U===R.length?-1:U},M=(W,j=33.34)=>{let R;return()=>{R&&clearTimeout(R),R=setTimeout(()=>{W()},j)}};let N=!0;const L=()=>{const W=()=>{u.value=-1,it(()=>{u.value=A()})};N?W():M(W)(),N=!1};ke(()=>e.defaultActive,W=>{h.value[W]||(f.value=""),w(W)}),ke(()=>e.collapse,W=>{W&&(d.value=[])}),ke(h.value,m);let F;nr(()=>{e.mode==="horizontal"&&e.ellipsis?F=ds(o,L).stop:F==null||F()});{const W=X=>{p.value[X.index]=X},j=X=>{delete p.value[X.index]};Nt("rootMenu",Bt({props:e,openedMenus:d,items:h,subMenus:p,activeIndex:f,isMenuPopup:g,addMenuItem:X=>{h.value[X.index]=X},removeMenuItem:X=>{delete h.value[X.index]},addSubMenu:W,removeSubMenu:j,openMenu:v,closeMenu:T,handleMenuItemClick:S,handleSubMenuClick:_})),Nt(`subMenu:${r.uid}`,{addSubMenu:W,removeSubMenu:j,mouseInChild:B(!1),level:0})}return Tt(()=>{e.mode==="horizontal"&&new Ire(r.vnode.el,a.namespace.value)}),s({open:j=>{const{indexPath:R}=p.value[j];R.forEach(q=>v(q,R))},close:y,handleResize:L}),()=>{var W,j;let R=(j=(W=n.default)==null?void 0:W.call(n))!=null?j:[];const q=[];if(e.mode==="horizontal"&&o.value){const $=Al(R),H=u.value===-1?$:$.slice(0,u.value),U=u.value===-1?[]:$.slice(u.value);U!=null&&U.length&&e.ellipsis&&(R=H,q.push(ot(k_,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>ot(nt,{class:l.e("icon-more")},{default:()=>ot(Qj)}),default:()=>U})))}const X=oP(e,0),K=ot("ul",{key:String(e.collapse),role:"menubar",ref:o,style:X.value,class:{[a.b()]:!0,[a.m(e.mode)]:!0,[a.m("collapse")]:e.collapse}},[...R,...q]);return e.collapseTransition&&e.mode==="vertical"?ot(Nre,()=>K):K}}});const Bre=ze({index:{type:me([String,null]),default:null},route:{type:me([String,Object])},disabled:Boolean}),Vre={click:e=>mt(e.index)&&Array.isArray(e.indexPath)},av="ElMenuItem",Ure=te({name:av,components:{ElTooltip:As},props:Bre,emits:Vre,setup(e,{emit:t}){const n=At(),s=Qe("rootMenu"),r=Ne("menu"),i=Ne("menu-item");s||zn(av,"can not inject root menu");const{parentMenu:o,indexPath:a}=iP(n,dn(e,"index")),l=Qe(`subMenu:${o.value.uid}`);l||zn(av,"can not inject sub menu");const u=E(()=>e.index===s.activeIndex),d=Bt({index:e.index,indexPath:a,active:u}),f=()=>{e.disabled||(s.handleMenuItemClick({index:e.index,indexPath:a.value,route:e.route}),t("click",d))};return Tt(()=>{l.addSubMenu(d),s.addMenuItem(d)}),ln(()=>{l.removeSubMenu(d),s.removeMenuItem(d)}),{parentMenu:o,rootMenu:s,active:u,nsMenu:r,nsMenuItem:i,handleClick:f}}});function Hre(e,t,n,s,r,i){const o=vt("el-tooltip");return x(),z("li",{class:I([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(x(),ve(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:ee(()=>[xe(e.$slots,"title")]),default:ee(()=>[V("div",{class:I(e.nsMenu.be("tooltip","trigger"))},[xe(e.$slots,"default")],2)]),_:3},8,["effect"])):(x(),z(et,{key:1},[xe(e.$slots,"default"),xe(e.$slots,"title")],64))],2)}var aP=Ue(Ure,[["render",Hre],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const zre={title:String},jre="ElMenuItemGroup",Kre=te({name:jre,props:zre,setup(){return{ns:Ne("menu-item-group")}}});function Wre(e,t,n,s,r,i){return x(),z("li",{class:I(e.ns.b())},[V("div",{class:I(e.ns.e("title"))},[e.$slots.title?xe(e.$slots,"title",{key:1}):(x(),z(et,{key:0},[wt(we(e.title),1)],64))],2),V("ul",null,[xe(e.$slots,"default")])],2)}var lP=Ue(Kre,[["render",Wre],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const qre=Ot(Fre,{MenuItem:aP,MenuItemGroup:lP,SubMenu:k_}),Gre=Cn(aP),Yre=Cn(lP),Xre=Cn(k_),Qre=ze({icon:{type:on,default:()=>MH},title:String,content:{type:String,default:""}}),Jre={back:()=>!0},Zre=["aria-label"],eie=te({name:"ElPageHeader"}),tie=te({...eie,props:Qre,emits:Jre,setup(e,{emit:t}){const n=es(),{t:s}=qt(),r=Ne("page-header"),i=E(()=>[r.b(),{[r.m("has-breadcrumb")]:!!n.breadcrumb,[r.m("has-extra")]:!!n.extra,[r.is("contentful")]:!!n.default}]);function o(){t("back")}return(a,l)=>(x(),z("div",{class:I(c(i))},[a.$slots.breadcrumb?(x(),z("div",{key:0,class:I(c(r).e("breadcrumb"))},[xe(a.$slots,"breadcrumb")],2)):he("v-if",!0),V("div",{class:I(c(r).e("header"))},[V("div",{class:I(c(r).e("left"))},[V("div",{class:I(c(r).e("back")),role:"button",tabindex:"0",onClick:o},[a.icon||a.$slots.icon?(x(),z("div",{key:0,"aria-label":a.title||c(s)("el.pageHeader.title"),class:I(c(r).e("icon"))},[xe(a.$slots,"icon",{},()=>[a.icon?(x(),ve(c(nt),{key:0},{default:ee(()=>[(x(),ve(Mt(a.icon)))]),_:1})):he("v-if",!0)])],10,Zre)):he("v-if",!0),V("div",{class:I(c(r).e("title"))},[xe(a.$slots,"title",{},()=>[wt(we(a.title||c(s)("el.pageHeader.title")),1)])],2)],2),G(c(qI),{direction:"vertical"}),V("div",{class:I(c(r).e("content"))},[xe(a.$slots,"content",{},()=>[wt(we(a.content),1)])],2)],2),a.$slots.extra?(x(),z("div",{key:0,class:I(c(r).e("extra"))},[xe(a.$slots,"extra")],2)):he("v-if",!0)],2),a.$slots.default?(x(),z("div",{key:1,class:I(c(r).e("main"))},[xe(a.$slots,"default")],2)):he("v-if",!0)],2))}});var nie=Ue(tie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const sie=Ot(nie),uP=Symbol("elPaginationKey"),rie=ze({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:on}}),iie={click:e=>e instanceof MouseEvent},oie=["disabled","aria-label","aria-disabled"],aie={key:0},lie=te({name:"ElPaginationPrev"}),uie=te({...lie,props:rie,emits:iie,setup(e){const t=e,{t:n}=qt(),s=E(()=>t.disabled||t.currentPage<=1);return(r,i)=>(x(),z("button",{type:"button",class:"btn-prev",disabled:c(s),"aria-label":r.prevText||c(n)("el.pagination.prev"),"aria-disabled":c(s),onClick:i[0]||(i[0]=o=>r.$emit("click",o))},[r.prevText?(x(),z("span",aie,we(r.prevText),1)):(x(),ve(c(nt),{key:1},{default:ee(()=>[(x(),ve(Mt(r.prevIcon)))]),_:1}))],8,oie))}});var cie=Ue(uie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const die=ze({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:on}}),fie=["disabled","aria-label","aria-disabled"],hie={key:0},pie=te({name:"ElPaginationNext"}),mie=te({...pie,props:die,emits:["click"],setup(e){const t=e,{t:n}=qt(),s=E(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(x(),z("button",{type:"button",class:"btn-next",disabled:c(s),"aria-label":r.nextText||c(n)("el.pagination.next"),"aria-disabled":c(s),onClick:i[0]||(i[0]=o=>r.$emit("click",o))},[r.nextText?(x(),z("span",hie,we(r.nextText),1)):(x(),ve(c(nt),{key:1},{default:ee(()=>[(x(),ve(Mt(r.nextIcon)))]),_:1}))],8,fie))}});var gie=Ue(mie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const cP=Symbol("ElSelectGroup"),Qd=Symbol("ElSelect");function vie(e,t){const n=Qe(Qd),s=Qe(cP,{disabled:!1}),r=E(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=E(()=>n.props.multiple?f(n.props.modelValue,e.value):h(e.value,n.props.modelValue)),o=E(()=>{if(n.props.multiple){const m=n.props.modelValue||[];return!i.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=E(()=>e.label||(r.value?"":e.value)),l=E(()=>e.value||e.label||""),u=E(()=>e.disabled||t.groupDisabled||o.value),d=At(),f=(m=[],v)=>{if(r.value){const y=n.props.valueKey;return m&&m.some(T=>Xt(hn(T,y))===hn(v,y))}else return m&&m.includes(v)},h=(m,v)=>{if(r.value){const{valueKey:y}=n.props;return hn(m,y)===hn(v,y)}else return m===v},p=()=>{!e.disabled&&!s.disabled&&(n.hoverIndex=n.optionsArray.indexOf(d.proxy))};ke(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ke(()=>e.value,(m,v)=>{const{remote:y,valueKey:T}=n.props;if(Object.is(m,v)||(n.onOptionDestroy(v,d.proxy),n.onOptionCreate(d.proxy)),!e.created&&!y){if(T&&typeof m=="object"&&typeof v=="object"&&m[T]===v[T])return;n.setSelected()}}),ke(()=>s.disabled,()=>{t.groupDisabled=s.disabled},{immediate:!0});const{queryChange:g}=Xt(n);return ke(g,m=>{const{query:v}=c(m),y=new RegExp(vO(v),"i");t.visible=y.test(a.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:a,currentValue:l,itemSelected:i,isDisabled:u,hoverItem:p}}const yie=te({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Ne("select"),n=Bt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:s,itemSelected:r,isDisabled:i,select:o,hoverItem:a}=vie(e,n),{visible:l,hover:u}=Hn(n),d=At().proxy;o.onOptionCreate(d),ln(()=>{const h=d.value,{selected:p}=o,m=(o.props.multiple?p:[p]).some(v=>v.value===d.value);it(()=>{o.cachedOptions.get(h)===d&&!m&&o.cachedOptions.delete(h)}),o.onOptionDestroy(h,d)});function f(){e.disabled!==!0&&n.groupDisabled!==!0&&o.handleOptionSelect(d,!0)}return{ns:t,currentLabel:s,itemSelected:r,isDisabled:i,select:o,hoverItem:a,visible:l,hover:u,selectOptionClick:f,states:n}}});function bie(e,t,n,s,r,i){return gt((x(),z("li",{class:I([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=ft((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[xe(e.$slots,"default",{},()=>[V("span",null,we(e.currentLabel),1)])],34)),[[Ut,e.visible]])}var O_=Ue(yie,[["render",bie],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const _ie=te({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Qe(Qd),t=Ne("select"),n=E(()=>e.props.popperClass),s=E(()=>e.props.multiple),r=E(()=>e.props.fitInputWidth),i=B("");function o(){var a;i.value=`${(a=e.selectWrapper)==null?void 0:a.offsetWidth}px`}return Tt(()=>{o(),ds(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:n,isMultiple:s,isFitInputWidth:r}}});function Tie(e,t,n,s,r,i){return x(),z("div",{class:I([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:st({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[xe(e.$slots,"default")],6)}var Sie=Ue(_ie,[["render",Tie],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function wie(e){const{t}=qt();return Bt({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const Cie=(e,t,n)=>{const{t:s}=qt(),r=Ne("select");gi({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},E(()=>e.suffixTransition===!1));const i=B(null),o=B(null),a=B(null),l=B(null),u=B(null),d=B(null),f=B(null),h=B(-1),p=nn({query:""}),g=nn(""),m=B([]);let v=0;const{form:y,formItem:T}=Is(),_=E(()=>!e.filterable||e.multiple||!t.visible),S=E(()=>e.disabled||(y==null?void 0:y.disabled)),w=E(()=>{const $e=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!S.value&&t.inputHovering&&$e}),A=E(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),M=E(()=>r.is("reverse",A.value&&t.visible&&e.suffixTransition)),N=E(()=>e.remote?300:0),L=E(()=>e.loading?e.loadingText||s("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||s("el.select.noMatch"):t.options.size===0?e.noDataText||s("el.select.noData"):null),F=E(()=>{const $e=Array.from(t.options.values()),Ze=[];return m.value.forEach(Ct=>{const xt=$e.findIndex(Rt=>Rt.currentLabel===Ct);xt>-1&&Ze.push($e[xt])}),Ze.length?Ze:$e}),W=E(()=>Array.from(t.cachedOptions.values())),j=E(()=>{const $e=F.value.filter(Ze=>!Ze.created).some(Ze=>Ze.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!$e}),R=Fn(),q=E(()=>["small"].includes(R.value)?"small":"default"),X=E({get(){return t.visible&&L.value!==!1},set($e){t.visible=$e}});ke([()=>S.value,()=>R.value,()=>y==null?void 0:y.size],()=>{it(()=>{K()})}),ke(()=>e.placeholder,$e=>{t.cachedPlaceHolder=t.currentPlaceholder=$e}),ke(()=>e.modelValue,($e,Ze)=>{e.multiple&&(K(),$e&&$e.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",$(t.query))),Z(),e.filterable&&!e.multiple&&(t.inputLength=20),!sr($e,Ze)&&e.validateEvent&&(T==null||T.validate("change").catch(Ct=>void 0))},{flush:"post",deep:!0}),ke(()=>t.visible,$e=>{var Ze,Ct,xt,Rt,Qt;$e?((Ct=(Ze=l.value)==null?void 0:Ze.updatePopper)==null||Ct.call(Ze),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(Rt=(xt=a.value)==null?void 0:xt.focus)==null||Rt.call(xt),e.multiple?(Qt=o.value)==null||Qt.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),$(t.query),!e.multiple&&!e.remote&&(p.value.query="",Xu(p),Xu(g)))):(e.filterable&&(pt(e.filterMethod)&&e.filterMethod(""),pt(e.remoteMethod)&&e.remoteMethod("")),o.value&&o.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,Q(),it(()=>{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",$e)}),ke(()=>t.options.entries(),()=>{var $e,Ze,Ct;if(!Ht)return;(Ze=($e=l.value)==null?void 0:$e.updatePopper)==null||Ze.call($e),e.multiple&&K();const xt=((Ct=d.value)==null?void 0:Ct.querySelectorAll("input"))||[];Array.from(xt).includes(document.activeElement)||Z(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&U()},{flush:"post"}),ke(()=>t.hoverIndex,$e=>{ht($e)&&$e>-1?h.value=F.value[$e]||{}:h.value={},F.value.forEach(Ze=>{Ze.hover=h.value===Ze})});const K=()=>{it(()=>{var $e,Ze;if(!i.value)return;const Ct=i.value.$el.querySelector("input");v=v||(Ct.clientHeight>0?Ct.clientHeight+2:0);const xt=u.value,Rt=YK(R.value||(y==null?void 0:y.size)),Qt=Rt===v||v<=0?Rt:v;!(Ct.offsetParent===null)&&(Ct.style.height=`${(t.selected.length===0?Qt:Math.max(xt?xt.clientHeight+(xt.clientHeight>Qt?6:0):0,Qt))-2}px`),t.tagInMultiLine=Number.parseFloat(Ct.style.height)>=Qt,t.visible&&L.value!==!1&&((Ze=($e=l.value)==null?void 0:$e.updatePopper)==null||Ze.call($e))})},$=async $e=>{if(!(t.previousQuery===$e||t.isOnComposition)){if(t.previousQuery===null&&(pt(e.filterMethod)||pt(e.remoteMethod))){t.previousQuery=$e;return}t.previousQuery=$e,it(()=>{var Ze,Ct;t.visible&&((Ct=(Ze=l.value)==null?void 0:Ze.updatePopper)==null||Ct.call(Ze))}),t.hoverIndex=-1,e.multiple&&e.filterable&&it(()=>{const Ze=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Ze):Ze,H(),K()}),e.remote&&pt(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod($e)):pt(e.filterMethod)?(e.filterMethod($e),Xu(g)):(t.filteredOptionsCount=t.optionsCount,p.value.query=$e,Xu(p),Xu(g)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await it(),U())}},H=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},U=()=>{const $e=F.value.filter(xt=>xt.visible&&!xt.disabled&&!xt.states.groupDisabled),Ze=$e.find(xt=>xt.created),Ct=$e[0];t.hoverIndex=re(F.value,Ze||Ct)},Z=()=>{var $e;if(e.multiple)t.selectedLabel="";else{const Ct=ue(e.modelValue);($e=Ct.props)!=null&&$e.created?(t.createdLabel=Ct.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Ct.currentLabel,t.selected=Ct,e.filterable&&(t.query=t.selectedLabel);return}const Ze=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Ct=>{Ze.push(ue(Ct))}),t.selected=Ze,it(()=>{K()})},ue=$e=>{let Ze;const Ct=gh($e).toLowerCase()==="object",xt=gh($e).toLowerCase()==="null",Rt=gh($e).toLowerCase()==="undefined";for(let Fe=t.cachedOptions.size-1;Fe>=0;Fe--){const lt=W.value[Fe];if(Ct?hn(lt.value,e.valueKey)===hn($e,e.valueKey):lt.value===$e){Ze={value:$e,currentLabel:lt.currentLabel,isDisabled:lt.isDisabled};break}}if(Ze)return Ze;const Qt=Ct?$e.label:!xt&&!Rt?$e:"",Nn={value:$e,currentLabel:Qt};return e.multiple&&(Nn.hitState=!1),Nn},Q=()=>{setTimeout(()=>{const $e=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Ze=>F.value.findIndex(Ct=>hn(Ct,$e)===hn(Ze,$e)))):t.hoverIndex=-1:t.hoverIndex=F.value.findIndex(Ze=>De(Ze)===De(t.selected))},300)},ae=()=>{var $e,Ze;Ee(),(Ze=($e=l.value)==null?void 0:$e.updatePopper)==null||Ze.call($e),e.multiple&&K()},Ee=()=>{var $e;t.inputWidth=($e=i.value)==null?void 0:$e.$el.offsetWidth},le=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,$(t.query))},ie=Os(()=>{le()},N.value),ce=Os($e=>{$($e.target.value)},N.value),ne=$e=>{sr(e.modelValue,$e)||n.emit(an,$e)},pe=$e=>{if($e.target.value.length<=0&&!Ie()){const Ze=e.modelValue.slice();Ze.pop(),n.emit(It,Ze),ne(Ze)}$e.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},Te=($e,Ze)=>{const Ct=t.selected.indexOf(Ze);if(Ct>-1&&!S.value){const xt=e.modelValue.slice();xt.splice(Ct,1),n.emit(It,xt),ne(xt),n.emit("remove-tag",Ze.value)}$e.stopPropagation()},He=$e=>{$e.stopPropagation();const Ze=e.multiple?[]:"";if(!mt(Ze))for(const Ct of t.selected)Ct.isDisabled&&Ze.push(Ct.value);n.emit(It,Ze),ne(Ze),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},Y=($e,Ze)=>{var Ct;if(e.multiple){const xt=(e.modelValue||[]).slice(),Rt=re(xt,$e.value);Rt>-1?xt.splice(Rt,1):(e.multipleLimit<=0||xt.length<e.multipleLimit)&&xt.push($e.value),n.emit(It,xt),ne(xt),$e.created&&(t.query="",$(""),t.inputLength=20),e.filterable&&((Ct=o.value)==null||Ct.focus())}else n.emit(It,$e.value),ne($e.value),t.visible=!1;t.isSilentBlur=Ze,Se(),!t.visible&&it(()=>{Oe($e)})},re=($e=[],Ze)=>{if(!Pt(Ze))return $e.indexOf(Ze);const Ct=e.valueKey;let xt=-1;return $e.some((Rt,Qt)=>Xt(hn(Rt,Ct))===hn(Ze,Ct)?(xt=Qt,!0):!1),xt},Se=()=>{t.softFocus=!0;const $e=o.value||i.value;$e&&($e==null||$e.focus())},Oe=$e=>{var Ze,Ct,xt,Rt,Qt;const Nn=Array.isArray($e)?$e[0]:$e;let Fe=null;if(Nn!=null&&Nn.value){const lt=F.value.filter(Vt=>Vt.value===Nn.value);lt.length>0&&(Fe=lt[0].$el)}if(l.value&&Fe){const lt=(Rt=(xt=(Ct=(Ze=l.value)==null?void 0:Ze.popperRef)==null?void 0:Ct.contentRef)==null?void 0:xt.querySelector)==null?void 0:Rt.call(xt,`.${r.be("dropdown","wrap")}`);lt&&_O(lt,Fe)}(Qt=f.value)==null||Qt.handleScroll()},Ve=$e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set($e.value,$e),t.cachedOptions.set($e.value,$e)},_e=($e,Ze)=>{t.options.get($e)===Ze&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete($e))},Be=$e=>{$e.code!==at.backspace&&Ie(!1),t.inputLength=o.value.value.length*15+20,K()},Ie=$e=>{if(!Array.isArray(t.selected))return;const Ze=t.selected[t.selected.length-1];if(Ze)return $e===!0||$e===!1?(Ze.hitState=$e,$e):(Ze.hitState=!Ze.hitState,Ze.hitState)},Ae=$e=>{const Ze=$e.target.value;if($e.type==="compositionend")t.isOnComposition=!1,it(()=>$(Ze));else{const Ct=Ze[Ze.length-1]||"";t.isOnComposition=!Om(Ct)}},Me=()=>{it(()=>Oe(t.selected))},Ye=$e=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",$e))},qe=()=>{var $e,Ze,Ct;t.visible=!1,($e=i.value)==null||$e.blur(),(Ct=(Ze=a.value)==null?void 0:Ze.blur)==null||Ct.call(Ze)},Ce=$e=>{it(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",$e)}),t.softFocus=!1},Ge=$e=>{He($e)},ut=()=>{t.visible=!1},bt=$e=>{t.visible&&($e.preventDefault(),$e.stopPropagation(),t.visible=!1)},ct=$e=>{var Ze;$e&&!t.mouseEnter||S.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((Ze=o.value||i.value)==null||Ze.focus()))},Le=()=>{t.visible?F.value[t.hoverIndex]&&Y(F.value[t.hoverIndex],void 0):ct()},De=$e=>Pt($e.value)?hn($e.value,e.valueKey):$e.value,be=E(()=>F.value.filter($e=>$e.visible).every($e=>$e.disabled)),J=E(()=>t.selected.slice(0,e.maxCollapseTags)),fe=E(()=>t.selected.slice(e.maxCollapseTags)),Re=$e=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!be.value){$e==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):$e==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Ze=F.value[t.hoverIndex];(Ze.disabled===!0||Ze.states.groupDisabled===!0||!Ze.visible)&&Re($e),it(()=>Oe(h.value))}};return{optionList:m,optionsArray:F,selectSize:R,handleResize:ae,debouncedOnInputChange:ie,debouncedQueryChange:ce,deletePrevTag:pe,deleteTag:Te,deleteSelected:He,handleOptionSelect:Y,scrollToOption:Oe,readonly:_,resetInputHeight:K,showClose:w,iconComponent:A,iconReverse:M,showNewOption:j,collapseTagSize:q,setSelected:Z,managePlaceholder:H,selectDisabled:S,emptyText:L,toggleLastOptionHitState:Ie,resetInputState:Be,handleComposition:Ae,onOptionCreate:Ve,onOptionDestroy:_e,handleMenuEnter:Me,handleFocus:Ye,blur:qe,handleBlur:Ce,handleClearClick:Ge,handleClose:ut,handleKeydownEscape:bt,toggleMenu:ct,selectOption:Le,getValueKey:De,navigateOptions:Re,dropMenuVisible:X,queryChange:p,groupQueryChange:g,showTagList:J,collapseTagList:fe,reference:i,input:o,iOSInput:a,tooltipRef:l,tags:u,selectWrapper:d,scrollbar:f,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var Eie=te({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let s=[];function r(i,o){if(i.length!==o.length)return!1;for(const[a]of i.entries())if(i[a]!=o[a])return!1;return!0}return()=>{var i,o;const a=(i=t.default)==null?void 0:i.call(t),l=[];function u(d){Array.isArray(d)&&d.forEach(f=>{var h,p,g,m;const v=(h=(f==null?void 0:f.type)||{})==null?void 0:h.name;v==="ElOptionGroup"?u(!mt(f.children)&&!Array.isArray(f.children)&&pt((p=f.children)==null?void 0:p.default)?(g=f.children)==null?void 0:g.default():f.children):v==="ElOption"?l.push((m=f.props)==null?void 0:m.label):Array.isArray(f.children)&&u(f.children)})}return a.length&&u((o=a[0])==null?void 0:o.children),r(l,s)||(s=l,n("update-options",l)),a}}});const HC="ElSelect",xie=te({name:HC,componentName:HC,components:{ElInput:ls,ElSelectMenu:Sie,ElOption:O_,ElOptions:Eie,ElTag:pd,ElScrollbar:ro,ElTooltip:As,ElIcon:nt},directives:{ClickOutside:Mo},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:km},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:Gn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:on,default:Ho},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:on,default:Uo},tagType:{...b_.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:za,default:"bottom-start"}},emits:[It,an,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Ne("select"),s=Ne("input"),{t:r}=qt(),i=wie(e),{optionList:o,optionsArray:a,selectSize:l,readonly:u,handleResize:d,collapseTagSize:f,debouncedOnInputChange:h,debouncedQueryChange:p,deletePrevTag:g,deleteTag:m,deleteSelected:v,handleOptionSelect:y,scrollToOption:T,setSelected:_,resetInputHeight:S,managePlaceholder:w,showClose:A,selectDisabled:M,iconComponent:N,iconReverse:L,showNewOption:F,emptyText:W,toggleLastOptionHitState:j,resetInputState:R,handleComposition:q,onOptionCreate:X,onOptionDestroy:K,handleMenuEnter:$,handleFocus:H,blur:U,handleBlur:Z,handleClearClick:ue,handleClose:Q,handleKeydownEscape:ae,toggleMenu:Ee,selectOption:le,getValueKey:ie,navigateOptions:ce,dropMenuVisible:ne,reference:pe,input:Te,iOSInput:He,tooltipRef:Y,tags:re,selectWrapper:Se,scrollbar:Oe,queryChange:Ve,groupQueryChange:_e,handleMouseEnter:Be,handleMouseLeave:Ie,showTagList:Ae,collapseTagList:Me}=Cie(e,i,t),{focus:Ye}=nW(pe),{inputWidth:qe,selected:Ce,inputLength:Ge,filteredOptionsCount:ut,visible:bt,softFocus:ct,selectedLabel:Le,hoverIndex:De,query:be,inputHovering:J,currentPlaceholder:fe,menuVisibleOnFocus:Re,isOnComposition:We,isSilentBlur:St,options:$e,cachedOptions:Ze,optionsCount:Ct,prefixWidth:xt,tagInMultiLine:Rt}=Hn(i),Qt=E(()=>{const Gt=[n.b()],Bn=c(l);return Bn&&Gt.push(n.m(Bn)),e.disabled&&Gt.push(n.m("disabled")),Gt}),Nn=E(()=>({maxWidth:`${c(qe)-32}px`,width:"100%"})),Fe=E(()=>({maxWidth:`${c(qe)>123?c(qe)-123:c(qe)-75}px`}));Nt(Qd,Bt({props:e,options:$e,optionsArray:a,cachedOptions:Ze,optionsCount:Ct,filteredOptionsCount:ut,hoverIndex:De,handleOptionSelect:y,onOptionCreate:X,onOptionDestroy:K,selectWrapper:Se,selected:Ce,setSelected:_,queryChange:Ve,groupQueryChange:_e})),Tt(()=>{i.cachedPlaceHolder=fe.value=e.placeholder||(()=>r("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(fe.value=""),ds(Se,d),e.remote&&e.multiple&&S(),it(()=>{const Gt=pe.value&&pe.value.$el;if(Gt&&(qe.value=Gt.getBoundingClientRect().width,t.slots.prefix)){const Bn=Gt.querySelector(`.${s.e("prefix")}`);xt.value=Math.max(Bn.getBoundingClientRect().width+5,30)}}),_()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(It,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(It,"");const lt=E(()=>{var Gt,Bn;return(Bn=(Gt=Y.value)==null?void 0:Gt.popperRef)==null?void 0:Bn.contentRef});return{isIOS:N2,onOptionsRendered:Gt=>{o.value=Gt},tagInMultiLine:Rt,prefixWidth:xt,selectSize:l,readonly:u,handleResize:d,collapseTagSize:f,debouncedOnInputChange:h,debouncedQueryChange:p,deletePrevTag:g,deleteTag:m,deleteSelected:v,handleOptionSelect:y,scrollToOption:T,inputWidth:qe,selected:Ce,inputLength:Ge,filteredOptionsCount:ut,visible:bt,softFocus:ct,selectedLabel:Le,hoverIndex:De,query:be,inputHovering:J,currentPlaceholder:fe,menuVisibleOnFocus:Re,isOnComposition:We,isSilentBlur:St,options:$e,resetInputHeight:S,managePlaceholder:w,showClose:A,selectDisabled:M,iconComponent:N,iconReverse:L,showNewOption:F,emptyText:W,toggleLastOptionHitState:j,resetInputState:R,handleComposition:q,handleMenuEnter:$,handleFocus:H,blur:U,handleBlur:Z,handleClearClick:ue,handleClose:Q,handleKeydownEscape:ae,toggleMenu:Ee,selectOption:le,getValueKey:ie,navigateOptions:ce,dropMenuVisible:ne,focus:Ye,reference:pe,input:Te,iOSInput:He,tooltipRef:Y,popperPaneRef:lt,tags:re,selectWrapper:Se,scrollbar:Oe,wrapperKls:Qt,selectTagsStyle:Nn,nsSelect:n,tagTextStyle:Fe,handleMouseEnter:Be,handleMouseLeave:Ie,showTagList:Ae,collapseTagList:Me}}}),kie=["disabled","autocomplete"],Oie=["disabled"],Aie={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function Iie(e,t,n,s,r,i){const o=vt("el-tag"),a=vt("el-tooltip"),l=vt("el-icon"),u=vt("el-input"),d=vt("el-option"),f=vt("el-options"),h=vt("el-scrollbar"),p=vt("el-select-menu"),g=Qc("click-outside");return gt((x(),z("div",{ref:"selectWrapper",class:I(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...m)=>e.handleMouseEnter&&e.handleMouseEnter(...m)),onMouseleave:t[22]||(t[22]=(...m)=>e.handleMouseLeave&&e.handleMouseLeave(...m)),onClick:t[23]||(t[23]=ft((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},[G(a,{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:ee(()=>[V("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=m=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=m=>e.inputHovering=!1)},[e.multiple?(x(),z("div",{key:0,ref:"tags",class:I([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:st(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(x(),ve(Pn,{key:0,onAfterLeave:e.resetInputHeight},{default:ee(()=>[V("span",{class:I([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(x(!0),z(et,null,kt(e.showTagList,m=>(x(),ve(o,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:v=>e.deleteTag(v,m)},{default:ee(()=>[V("span",{class:I(e.nsSelect.e("tags-text")),style:st(e.tagTextStyle)},we(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(x(),ve(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:ee(()=>[e.collapseTagsTooltip?(x(),ve(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ee(()=>[V("span",{class:I(e.nsSelect.e("tags-text"))},"+ "+we(e.selected.length-e.maxCollapseTags),3)]),content:ee(()=>[V("div",{class:I(e.nsSelect.e("collapse-tags"))},[(x(!0),z(et,null,kt(e.collapseTagList,m=>(x(),z("div",{key:e.getValueKey(m),class:I(e.nsSelect.e("collapse-tag"))},[G(o,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:v=>e.deleteTag(v,m)},{default:ee(()=>[V("span",{class:I(e.nsSelect.e("tags-text")),style:st({maxWidth:e.inputWidth-75+"px"})},we(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(x(),z("span",{key:1,class:I(e.nsSelect.e("tags-text"))},"+ "+we(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):he("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):he("v-if",!0),e.collapseTags?he("v-if",!0):(x(),ve(Pn,{key:1,onAfterLeave:e.resetInputHeight},{default:ee(()=>[V("span",{class:I([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(x(!0),z(et,null,kt(e.selected,m=>(x(),ve(o,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:v=>e.deleteTag(v,m)},{default:ee(()=>[V("span",{class:I(e.nsSelect.e("tags-text")),style:st({maxWidth:e.inputWidth-75+"px"})},we(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),e.filterable?gt((x(),z("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=m=>e.query=m),type:"text",class:I([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:st({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[2]||(t[2]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onKeyup:t[3]||(t[3]=(...m)=>e.managePlaceholder&&e.managePlaceholder(...m)),onKeydown:[t[4]||(t[4]=(...m)=>e.resetInputState&&e.resetInputState(...m)),t[5]||(t[5]=zt(ft(m=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=zt(ft(m=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=zt((...m)=>e.handleKeydownEscape&&e.handleKeydownEscape(...m),["esc"])),t[8]||(t[8]=zt(ft((...m)=>e.selectOption&&e.selectOption(...m),["stop","prevent"]),["enter"])),t[9]||(t[9]=zt((...m)=>e.deletePrevTag&&e.deletePrevTag(...m),["delete"])),t[10]||(t[10]=zt(m=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionupdate:t[12]||(t[12]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionend:t[13]||(t[13]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onInput:t[14]||(t[14]=(...m)=>e.debouncedQueryChange&&e.debouncedQueryChange(...m))},null,46,kie)),[[Bd,e.query]]):he("v-if",!0)],6)):he("v-if",!0),he(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(x(),z("input",{key:1,ref:"iOSInput",class:I([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,Oie)):he("v-if",!0),G(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=m=>e.selectedLabel=m),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:I([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=zt(ft(m=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=zt(ft(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),zt(ft(e.selectOption,["stop","prevent"]),["enter"]),zt(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=zt(m=>e.visible=!1,["tab"]))]},Ki({suffix:ee(()=>[e.iconComponent&&!e.showClose?(x(),ve(l,{key:0,class:I([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ee(()=>[(x(),ve(Mt(e.iconComponent)))]),_:1},8,["class"])):he("v-if",!0),e.showClose&&e.clearIcon?(x(),ve(l,{key:1,class:I([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:ee(()=>[(x(),ve(Mt(e.clearIcon)))]),_:1},8,["class","onClick"])):he("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:ee(()=>[V("div",Aie,[xe(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:ee(()=>[G(p,null,{default:ee(()=>[gt(G(h,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:I([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:ee(()=>[e.showNewOption?(x(),ve(d,{key:0,value:e.query,created:!0},null,8,["value"])):he("v-if",!0),G(f,{onUpdateOptions:e.onOptionsRendered},{default:ee(()=>[xe(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Ut,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(x(),z(et,{key:0},[e.$slots.empty?xe(e.$slots,"empty",{key:0}):(x(),z("p",{key:1,class:I(e.nsSelect.be("dropdown","empty"))},we(e.emptyText),3))],64)):he("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[g,e.handleClose,e.popperPaneRef]])}var Pie=Ue(xie,[["render",Iie],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const $ie=te({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Ne("select"),n=B(!0),s=At(),r=B([]);Nt(cP,Bt({...Hn(e)}));const i=Qe(Qd);Tt(()=>{r.value=o(s.subTree)});const o=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(d=>{var f;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?u.push(d.component.proxy):(f=d.children)!=null&&f.length&&u.push(...o(d))}),u},{groupQueryChange:a}=Xt(i);return ke(a,()=>{n.value=r.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function Nie(e,t,n,s,r,i){return gt((x(),z("ul",{class:I(e.ns.be("group","wrap"))},[V("li",{class:I(e.ns.be("group","title"))},we(e.label),3),V("li",null,[V("ul",{class:I(e.ns.b("group"))},[xe(e.$slots,"default")],2)])],2)),[[Ut,e.visible]])}var dP=Ue($ie,[["render",Nie],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Ma=Ot(Pie,{Option:O_,OptionGroup:dP}),yp=Cn(O_),Mie=Cn(dP),A_=()=>Qe(uP,{}),Rie=ze({pageSize:{type:Number,required:!0},pageSizes:{type:me(Array),default:()=>pn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:Ci}}),Lie=te({name:"ElPaginationSizes"}),Die=te({...Lie,props:Rie,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:s}=qt(),r=Ne("pagination"),i=A_(),o=B(n.pageSize);ke(()=>n.pageSizes,(u,d)=>{if(!sr(u,d)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),ke(()=>n.pageSize,u=>{o.value=u});const a=E(()=>n.pageSizes);function l(u){var d;u!==o.value&&(o.value=u,(d=i.handleSizeChange)==null||d.call(i,Number(u)))}return(u,d)=>(x(),z("span",{class:I(c(r).e("sizes"))},[G(c(Ma),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,"validate-event":!1,onChange:l},{default:ee(()=>[(x(!0),z(et,null,kt(c(a),f=>(x(),ve(c(yp),{key:f,value:f,label:f+c(s)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Fie=Ue(Die,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const Bie=ze({size:{type:String,values:Ci}}),Vie=["disabled"],Uie=te({name:"ElPaginationJumper"}),Hie=te({...Uie,props:Bie,setup(e){const{t}=qt(),n=Ne("pagination"),{pageCount:s,disabled:r,currentPage:i,changeEvent:o}=A_(),a=B(),l=E(()=>{var f;return(f=a.value)!=null?f:i==null?void 0:i.value});function u(f){a.value=f?+f:""}function d(f){f=Math.trunc(+f),o==null||o(f),a.value=void 0}return(f,h)=>(x(),z("span",{class:I(c(n).e("jump")),disabled:c(r)},[V("span",{class:I([c(n).e("goto")])},we(c(t)("el.pagination.goto")),3),G(c(ls),{size:f.size,class:I([c(n).e("editor"),c(n).is("in-pagination")]),min:1,max:c(s),disabled:c(r),"model-value":c(l),"validate-event":!1,label:c(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:d},null,8,["size","class","max","disabled","model-value","label"]),V("span",{class:I([c(n).e("classifier")])},we(c(t)("el.pagination.pageClassifier")),3)],10,Vie))}});var zie=Ue(Hie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const jie=ze({total:{type:Number,default:1e3}}),Kie=["disabled"],Wie=te({name:"ElPaginationTotal"}),qie=te({...Wie,props:jie,setup(e){const{t}=qt(),n=Ne("pagination"),{disabled:s}=A_();return(r,i)=>(x(),z("span",{class:I(c(n).e("total")),disabled:c(s)},we(c(t)("el.pagination.total",{total:r.total})),11,Kie))}});var Gie=Ue(qie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const Yie=ze({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Xie=["onKeyup"],Qie=["aria-current","aria-label","tabindex"],Jie=["tabindex","aria-label"],Zie=["aria-current","aria-label","tabindex"],eoe=["tabindex","aria-label"],toe=["aria-current","aria-label","tabindex"],noe=te({name:"ElPaginationPager"}),soe=te({...noe,props:Yie,emits:["change"],setup(e,{emit:t}){const n=e,s=Ne("pager"),r=Ne("icon"),{t:i}=qt(),o=B(!1),a=B(!1),l=B(!1),u=B(!1),d=B(!1),f=B(!1),h=E(()=>{const T=n.pagerCount,_=(T-1)/2,S=Number(n.currentPage),w=Number(n.pageCount);let A=!1,M=!1;w>T&&(S>T-_&&(A=!0),S<w-_&&(M=!0));const N=[];if(A&&!M){const L=w-(T-2);for(let F=L;F<w;F++)N.push(F)}else if(!A&&M)for(let L=2;L<T;L++)N.push(L);else if(A&&M){const L=Math.floor(T/2)-1;for(let F=S-L;F<=S+L;F++)N.push(F)}else for(let L=2;L<w;L++)N.push(L);return N}),p=E(()=>n.disabled?-1:0);nr(()=>{const T=(n.pagerCount-1)/2;o.value=!1,a.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-T&&(o.value=!0),n.currentPage<n.pageCount-T&&(a.value=!0))});function g(T=!1){n.disabled||(T?l.value=!0:u.value=!0)}function m(T=!1){T?d.value=!0:f.value=!0}function v(T){const _=T.target;if(_.tagName.toLowerCase()==="li"&&Array.from(_.classList).includes("number")){const S=Number(_.textContent);S!==n.currentPage&&t("change",S)}else _.tagName.toLowerCase()==="li"&&Array.from(_.classList).includes("more")&&y(T)}function y(T){const _=T.target;if(_.tagName.toLowerCase()==="ul"||n.disabled)return;let S=Number(_.textContent);const w=n.pageCount,A=n.currentPage,M=n.pagerCount-2;_.className.includes("more")&&(_.className.includes("quickprev")?S=A-M:_.className.includes("quicknext")&&(S=A+M)),Number.isNaN(+S)||(S<1&&(S=1),S>w&&(S=w)),S!==A&&t("change",S)}return(T,_)=>(x(),z("ul",{class:I(c(s).b()),onClick:y,onKeyup:zt(v,["enter"])},[T.pageCount>0?(x(),z("li",{key:0,class:I([[c(s).is("active",T.currentPage===1),c(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===1,"aria-label":c(i)("el.pagination.currentPage",{pager:1}),tabindex:c(p)}," 1 ",10,Qie)):he("v-if",!0),o.value?(x(),z("li",{key:1,class:I(["more","btn-quickprev",c(r).b(),c(s).is("disabled",T.disabled)]),tabindex:c(p),"aria-label":c(i)("el.pagination.prevPages",{pager:T.pagerCount-2}),onMouseenter:_[0]||(_[0]=S=>g(!0)),onMouseleave:_[1]||(_[1]=S=>l.value=!1),onFocus:_[2]||(_[2]=S=>m(!0)),onBlur:_[3]||(_[3]=S=>d.value=!1)},[(l.value||d.value)&&!T.disabled?(x(),ve(c(Gl),{key:0})):(x(),ve(c(d0),{key:1}))],42,Jie)):he("v-if",!0),(x(!0),z(et,null,kt(c(h),S=>(x(),z("li",{key:S,class:I([[c(s).is("active",T.currentPage===S),c(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===S,"aria-label":c(i)("el.pagination.currentPage",{pager:S}),tabindex:c(p)},we(S),11,Zie))),128)),a.value?(x(),z("li",{key:2,class:I(["more","btn-quicknext",c(r).b(),c(s).is("disabled",T.disabled)]),tabindex:c(p),"aria-label":c(i)("el.pagination.nextPages",{pager:T.pagerCount-2}),onMouseenter:_[4]||(_[4]=S=>g()),onMouseleave:_[5]||(_[5]=S=>u.value=!1),onFocus:_[6]||(_[6]=S=>m()),onBlur:_[7]||(_[7]=S=>f.value=!1)},[(u.value||f.value)&&!T.disabled?(x(),ve(c(Yl),{key:0})):(x(),ve(c(d0),{key:1}))],42,eoe)):he("v-if",!0),T.pageCount>1?(x(),z("li",{key:3,class:I([[c(s).is("active",T.currentPage===T.pageCount),c(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===T.pageCount,"aria-label":c(i)("el.pagination.currentPage",{pager:T.pageCount}),tabindex:c(p)},we(T.pageCount),11,toe)):he("v-if",!0)],42,Xie))}});var roe=Ue(soe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const ps=e=>typeof e!="number",ioe=ze({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>ht(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:me(Array),default:()=>pn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:on,default:()=>Po},nextText:{type:String,default:""},nextIcon:{type:on,default:()=>ws},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),ooe={"update:current-page":e=>ht(e),"update:page-size":e=>ht(e),"size-change":e=>ht(e),"current-change":e=>ht(e),"prev-click":e=>ht(e),"next-click":e=>ht(e)},zC="ElPagination";var aoe=te({name:zC,props:ioe,emits:ooe,setup(e,{emit:t,slots:n}){const{t:s}=qt(),r=Ne("pagination"),i=At().vnode.props||{},o="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,a="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,l=E(()=>{if(ps(e.total)&&ps(e.pageCount)||!ps(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(ps(e.pageCount)){if(!ps(e.total)&&!ps(e.pageSize)&&!a)return!1}else if(!a)return!1}return!0}),u=B(ps(e.defaultPageSize)?10:e.defaultPageSize),d=B(ps(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=E({get(){return ps(e.pageSize)?u.value:e.pageSize},set(_){ps(e.pageSize)&&(u.value=_),a&&(t("update:page-size",_),t("size-change",_))}}),h=E(()=>{let _=0;return ps(e.pageCount)?ps(e.total)||(_=Math.max(1,Math.ceil(e.total/f.value))):_=e.pageCount,_}),p=E({get(){return ps(e.currentPage)?d.value:e.currentPage},set(_){let S=_;_<1?S=1:_>h.value&&(S=h.value),ps(e.currentPage)&&(d.value=S),o&&(t("update:current-page",S),t("current-change",S))}});ke(h,_=>{p.value>_&&(p.value=_)});function g(_){p.value=_}function m(_){f.value=_;const S=h.value;p.value>S&&(p.value=S)}function v(){e.disabled||(p.value-=1,t("prev-click",p.value))}function y(){e.disabled||(p.value+=1,t("next-click",p.value))}function T(_,S){_&&(_.props||(_.props={}),_.props.class=[_.props.class,S].join(" "))}return Nt(uP,{pageCount:h,disabled:E(()=>e.disabled),currentPage:p,changeEvent:g,handleSizeChange:m}),()=>{var _,S;if(!l.value)return s("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&h.value<=1)return null;const w=[],A=[],M=ot("div",{class:r.e("rightwrapper")},A),N={prev:ot(cie,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:v}),jumper:ot(zie,{size:e.small?"small":"default"}),pager:ot(roe,{currentPage:p.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:ot(gie,{disabled:e.disabled,currentPage:p.value,pageCount:h.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:y}),sizes:ot(Fie,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(S=(_=n==null?void 0:n.default)==null?void 0:_.call(n))!=null?S:null,total:ot(Gie,{total:ps(e.total)?0:e.total})},L=e.layout.split(",").map(W=>W.trim());let F=!1;return L.forEach(W=>{if(W==="->"){F=!0;return}F?A.push(N[W]):w.push(N[W])}),T(w[0],r.is("first")),T(w[w.length-1],r.is("last")),F&&A.length>0&&(T(A[0],r.is("first")),T(A[A.length-1],r.is("last")),w.push(M)),ot("div",{class:[r.b(),r.is("background",e.background),{[r.m("small")]:e.small}]},w)}}});const I_=Ot(aoe),loe=ze({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:S0,default:"primary"},cancelButtonType:{type:String,values:S0,default:"text"},icon:{type:on,default:()=>b9},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Gn.teleported,persistent:Gn.persistent,width:{type:[String,Number],default:150}}),uoe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},coe=te({name:"ElPopconfirm"}),doe=te({...coe,props:loe,emits:uoe,setup(e,{emit:t}){const n=e,{t:s}=qt(),r=Ne("popconfirm"),i=B(),o=()=>{var h,p;(p=(h=i.value)==null?void 0:h.onClose)==null||p.call(h)},a=E(()=>({width:An(n.width)})),l=h=>{t("confirm",h),o()},u=h=>{t("cancel",h),o()},d=E(()=>n.confirmButtonText||s("el.popconfirm.confirmButtonText")),f=E(()=>n.cancelButtonText||s("el.popconfirm.cancelButtonText"));return(h,p)=>(x(),ve(c(As),$t({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},h.$attrs,{"popper-class":`${c(r).namespace.value}-popover`,"popper-style":c(a),teleported:h.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":h.hideAfter,persistent:h.persistent}),{content:ee(()=>[V("div",{class:I(c(r).b())},[V("div",{class:I(c(r).e("main"))},[!h.hideIcon&&h.icon?(x(),ve(c(nt),{key:0,class:I(c(r).e("icon")),style:st({color:h.iconColor})},{default:ee(()=>[(x(),ve(Mt(h.icon)))]),_:1},8,["class","style"])):he("v-if",!0),wt(" "+we(h.title),1)],2),V("div",{class:I(c(r).e("action"))},[G(c(Un),{size:"small",type:h.cancelButtonType==="text"?"":h.cancelButtonType,text:h.cancelButtonType==="text",onClick:u},{default:ee(()=>[wt(we(c(f)),1)]),_:1},8,["type","text"]),G(c(Un),{size:"small",type:h.confirmButtonType==="text"?"":h.confirmButtonType,text:h.confirmButtonType==="text",onClick:l},{default:ee(()=>[wt(we(c(d)),1)]),_:1},8,["type","text"])],2)],2)]),default:ee(()=>[h.$slots.reference?xe(h.$slots,"reference",{key:0}):he("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var foe=Ue(doe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const hoe=Ot(foe),poe=ze({trigger:hd.trigger,placement:Lh.placement,disabled:hd.disabled,visible:Gn.visible,transition:Gn.transition,popperOptions:Lh.popperOptions,tabindex:Lh.tabindex,content:Gn.content,popperStyle:Gn.popperStyle,popperClass:Gn.popperClass,enterable:{...Gn.enterable,default:!0},effect:{...Gn.effect,default:"light"},teleported:Gn.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}}),moe={"update:visible":e=>Dn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},goe="onUpdate:visible",voe=te({name:"ElPopover"}),yoe=te({...voe,props:poe,emits:moe,setup(e,{expose:t,emit:n}){const s=e,r=E(()=>s[goe]),i=Ne("popover"),o=B(),a=E(()=>{var v;return(v=c(o))==null?void 0:v.popperRef}),l=E(()=>[{width:An(s.width)},s.popperStyle]),u=E(()=>[i.b(),s.popperClass,{[i.m("plain")]:!!s.content}]),d=E(()=>s.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var v;(v=o.value)==null||v.hide()},h=()=>{n("before-enter")},p=()=>{n("before-leave")},g=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:a,hide:f}),(v,y)=>(x(),ve(c(As),$t({ref_key:"tooltipRef",ref:o},v.$attrs,{trigger:v.trigger,placement:v.placement,disabled:v.disabled,visible:v.visible,transition:v.transition,"popper-options":v.popperOptions,tabindex:v.tabindex,content:v.content,offset:v.offset,"show-after":v.showAfter,"hide-after":v.hideAfter,"auto-close":v.autoClose,"show-arrow":v.showArrow,"aria-label":v.title,effect:v.effect,enterable:v.enterable,"popper-class":c(u),"popper-style":c(l),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":c(d),"onUpdate:visible":c(r),onBeforeShow:h,onBeforeHide:p,onShow:g,onHide:m}),{content:ee(()=>[v.title?(x(),z("div",{key:0,class:I(c(i).e("title")),role:"title"},we(v.title),3)):he("v-if",!0),xe(v.$slots,"default",{},()=>[wt(we(v.content),1)])]),default:ee(()=>[v.$slots.reference?xe(v.$slots,"reference",{key:0}):he("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 boe=Ue(yoe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const jC=(e,t)=>{const n=t.arg||t.value,s=n==null?void 0:n.popperRef;s&&(s.triggerRef=e)};var _oe={mounted(e,t){jC(e,t)},updated(e,t){jC(e,t)}};const Toe="popover",fP=WK(_oe,Toe),Soe=Ot(boe,{directive:fP}),woe=ze({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:me(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:me([String,Array,Function]),default:""},format:{type:me(Function),default:e=>`${e}%`}}),Coe=["aria-valuenow"],Eoe={viewBox:"0 0 100 100"},xoe=["d","stroke","stroke-width"],koe=["d","stroke","opacity","stroke-linecap","stroke-width"],Ooe={key:0},Aoe=te({name:"ElProgress"}),Ioe=te({...Aoe,props:woe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},s=Ne("progress"),r=E(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:T(t.percentage)})),i=E(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=E(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),a=E(()=>{const _=o.value,S=t.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${S?"":"-"}${_}
|
||
a ${_} ${_} 0 1 1 0 ${S?"-":""}${_*2}
|
||
a ${_} ${_} 0 1 1 0 ${S?"":"-"}${_*2}
|
||
`}),l=E(()=>2*Math.PI*o.value),u=E(()=>t.type==="dashboard"?.75:1),d=E(()=>`${-1*l.value*(1-u.value)/2}px`),f=E(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:d.value})),h=E(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=E(()=>{let _;return t.color?_=T(t.percentage):_=n[t.status]||n.default,_}),g=E(()=>t.status==="warning"?Em:t.type==="line"?t.status==="success"?Wb:Ho:t.status==="success"?qd:Hr),m=E(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),v=E(()=>t.format(t.percentage));function y(_){const S=100/_.length;return _.map((A,M)=>mt(A)?{color:A,percentage:(M+1)*S}:A).sort((A,M)=>A.percentage-M.percentage)}const T=_=>{var S;const{color:w}=t;if(pt(w))return w(_);if(mt(w))return w;{const A=y(w);for(const M of A)if(M.percentage>_)return M.color;return(S=A[A.length-1])==null?void 0:S.color}};return(_,S)=>(x(),z("div",{class:I([c(s).b(),c(s).m(_.type),c(s).is(_.status),{[c(s).m("without-text")]:!_.showText,[c(s).m("text-inside")]:_.textInside}]),role:"progressbar","aria-valuenow":_.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_.type==="line"?(x(),z("div",{key:0,class:I(c(s).b("bar"))},[V("div",{class:I(c(s).be("bar","outer")),style:st({height:`${_.strokeWidth}px`})},[V("div",{class:I([c(s).be("bar","inner"),{[c(s).bem("bar","inner","indeterminate")]:_.indeterminate}]),style:st(c(r))},[(_.showText||_.$slots.default)&&_.textInside?(x(),z("div",{key:0,class:I(c(s).be("bar","innerText"))},[xe(_.$slots,"default",{percentage:_.percentage},()=>[V("span",null,we(c(v)),1)])],2)):he("v-if",!0)],6)],6)],2)):(x(),z("div",{key:1,class:I(c(s).b("circle")),style:st({height:`${_.width}px`,width:`${_.width}px`})},[(x(),z("svg",Eoe,[V("path",{class:I(c(s).be("circle","track")),d:c(a),stroke:`var(${c(s).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":c(i),fill:"none",style:st(c(f))},null,14,xoe),V("path",{class:I(c(s).be("circle","path")),d:c(a),stroke:c(p),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":c(i),style:st(c(h))},null,14,koe)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(x(),z("div",{key:2,class:I(c(s).e("text")),style:st({fontSize:`${c(m)}px`})},[xe(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(x(),ve(c(nt),{key:1},{default:ee(()=>[(x(),ve(Mt(c(g))))]),_:1})):(x(),z("span",Ooe,we(c(v)),1))])],6)):he("v-if",!0)],10,Coe))}});var Poe=Ue(Ioe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const hP=Ot(Poe),$oe=ze({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:me([Array,Object]),default:()=>pn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:me([Array,Object]),default:()=>[Wf,Wf,Wf]},voidIcon:{type:on,default:()=>dK},disabledVoidIcon:{type:on,default:()=>Wf},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:me(Array),default:()=>pn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:is,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),Noe={[an]:e=>ht(e),[It]:e=>ht(e)},Moe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Roe=["onMousemove","onClick"],Loe=te({name:"ElRate"}),Doe=te({...Loe,props:$oe,emits:Noe,setup(e,{expose:t,emit:n}){const s=e;function r(K,$){const H=ue=>Pt(ue),U=Object.keys($).map(ue=>+ue).filter(ue=>{const Q=$[ue];return(H(Q)?Q.excluded:!1)?K<ue:K<=ue}).sort((ue,Q)=>ue-Q),Z=$[U[0]];return H(Z)&&Z.value||Z}const i=Qe(Ka,void 0),o=Qe(yi,void 0),a=Fn(),l=Ne("rate"),{inputId:u,isLabeledByFormItem:d}=Ko(s,{formItemContext:o}),f=B(s.modelValue),h=B(-1),p=B(!0),g=E(()=>[l.b(),l.m(a.value)]),m=E(()=>s.disabled||(i==null?void 0:i.disabled)),v=E(()=>l.cssVarBlock({"void-color":s.voidColor,"disabled-void-color":s.disabledVoidColor,"fill-color":S.value})),y=E(()=>{let K="";return s.showScore?K=s.scoreTemplate.replace(/\{\s*value\s*\}/,m.value?`${s.modelValue}`:`${f.value}`):s.showText&&(K=s.texts[Math.ceil(f.value)-1]),K}),T=E(()=>s.modelValue*100-Math.floor(s.modelValue)*100),_=E(()=>tt(s.colors)?{[s.lowThreshold]:s.colors[0],[s.highThreshold]:{value:s.colors[1],excluded:!0},[s.max]:s.colors[2]}:s.colors),S=E(()=>{const K=r(f.value,_.value);return Pt(K)?"":K}),w=E(()=>{let K="";return m.value?K=`${T.value}%`:s.allowHalf&&(K="50%"),{color:S.value,width:K}}),A=E(()=>{let K=tt(s.icons)?[...s.icons]:{...s.icons};return K=wa(K),tt(K)?{[s.lowThreshold]:K[0],[s.highThreshold]:{value:K[1],excluded:!0},[s.max]:K[2]}:K}),M=E(()=>r(s.modelValue,A.value)),N=E(()=>m.value?mt(s.disabledVoidIcon)?s.disabledVoidIcon:wa(s.disabledVoidIcon):mt(s.voidIcon)?s.voidIcon:wa(s.voidIcon)),L=E(()=>r(f.value,A.value));function F(K){const $=m.value&&T.value>0&&K-1<s.modelValue&&K>s.modelValue,H=s.allowHalf&&p.value&&K-.5<=f.value&&K>f.value;return $||H}function W(K){s.clearable&&K===s.modelValue&&(K=0),n(It,K),s.modelValue!==K&&n("change",K)}function j(K){m.value||(s.allowHalf&&p.value?W(f.value):W(K))}function R(K){if(m.value)return;let $=f.value;const H=K.code;return H===at.up||H===at.right?(s.allowHalf?$+=.5:$+=1,K.stopPropagation(),K.preventDefault()):(H===at.left||H===at.down)&&(s.allowHalf?$-=.5:$-=1,K.stopPropagation(),K.preventDefault()),$=$<0?0:$,$=$>s.max?s.max:$,n(It,$),n("change",$),$}function q(K,$){if(!m.value){if(s.allowHalf&&$){let H=$.target;Fr(H,l.e("item"))&&(H=H.querySelector(`.${l.e("icon")}`)),(H.clientWidth===0||Fr(H,l.e("decimal")))&&(H=H.parentNode),p.value=$.offsetX*2<=H.clientWidth,f.value=p.value?K-.5:K}else f.value=K;h.value=K}}function X(){m.value||(s.allowHalf&&(p.value=s.modelValue!==Math.floor(s.modelValue)),f.value=s.modelValue,h.value=-1)}return ke(()=>s.modelValue,K=>{f.value=K,p.value=s.modelValue!==Math.floor(s.modelValue)}),s.modelValue||n(It,0),t({setCurrentValue:q,resetCurrentValue:X}),(K,$)=>{var H;return x(),z("div",{id:c(u),class:I([c(g),c(l).is("disabled",c(m))]),role:"slider","aria-label":c(d)?void 0:K.label||"rating","aria-labelledby":c(d)?(H=c(o))==null?void 0:H.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":c(y)||void 0,"aria-valuemin":"0","aria-valuemax":K.max,tabindex:"0",style:st(c(v)),onKeydown:R},[(x(!0),z(et,null,kt(K.max,(U,Z)=>(x(),z("span",{key:Z,class:I(c(l).e("item")),onMousemove:ue=>q(U,ue),onMouseleave:X,onClick:ue=>j(U)},[G(c(nt),{class:I([c(l).e("icon"),{hover:h.value===U},c(l).is("active",U<=f.value)])},{default:ee(()=>[F(U)?he("v-if",!0):(x(),z(et,{key:0},[gt((x(),ve(Mt(c(L)),null,null,512)),[[Ut,U<=f.value]]),gt((x(),ve(Mt(c(N)),null,null,512)),[[Ut,!(U<=f.value)]])],64)),F(U)?(x(),ve(c(nt),{key:1,style:st(c(w)),class:I([c(l).e("icon"),c(l).e("decimal")])},{default:ee(()=>[(x(),ve(Mt(c(M))))]),_:1},8,["style","class"])):he("v-if",!0)]),_:2},1032,["class"])],42,Roe))),128)),K.showText||K.showScore?(x(),z("span",{key:0,class:I(c(l).e("text"))},we(c(y)),3)):he("v-if",!0)],46,Moe)}}});var Foe=Ue(Doe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const Boe=Ot(Foe),vl={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},KC={[vl.success]:lz,[vl.warning]:Em,[vl.error]:qb,[vl.info]:Gb},Voe=ze({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),Uoe=te({name:"ElResult"}),Hoe=te({...Uoe,props:Voe,setup(e){const t=e,n=Ne("result"),s=E(()=>{const r=t.icon,i=r&&vl[r]?vl[r]:"icon-info",o=KC[i]||KC["icon-info"];return{class:i,component:o}});return(r,i)=>(x(),z("div",{class:I(c(n).b())},[V("div",{class:I(c(n).e("icon"))},[xe(r.$slots,"icon",{},()=>[c(s).component?(x(),ve(Mt(c(s).component),{key:0,class:I(c(s).class)},null,8,["class"])):he("v-if",!0)])],2),r.title||r.$slots.title?(x(),z("div",{key:0,class:I(c(n).e("title"))},[xe(r.$slots,"title",{},()=>[V("p",null,we(r.title),1)])],2)):he("v-if",!0),r.subTitle||r.$slots["sub-title"]?(x(),z("div",{key:1,class:I(c(n).e("subtitle"))},[xe(r.$slots,"sub-title",{},()=>[V("p",null,we(r.subTitle),1)])],2)):he("v-if",!0),r.$slots.extra?(x(),z("div",{key:2,class:I(c(n).e("extra"))},[xe(r.$slots,"extra")],2)):he("v-if",!0)],2))}});var zoe=Ue(Hoe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const joe=Ot(zoe);var WC=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Koe(e,t){return!!(e===t||WC(e)&&WC(t))}function Woe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Koe(e[n],t[n]))return!1;return!0}function qoe(e,t){t===void 0&&(t=Woe);var n=null;function s(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return s.clear=function(){n=null},s}const pP=()=>{const t=At().proxy.$props;return E(()=>{const n=(s,r,i)=>({});return t.perfMode?Tm(n):qoe(n)})},Q0=50,bp="itemRendered",_p="scroll",yl="forward",Tp="backward",hr="auto",Hm="smart",gd="start",ri="center",vd="end",tu="horizontal",P_="vertical",Goe="ltr",$l="rtl",yd="negative",$_="positive-ascending",N_="positive-descending",Yoe={[tu]:"left",[P_]:"top"},Xoe=20,Qoe={[tu]:"deltaX",[P_]:"deltaY"},Joe=({atEndEdge:e,atStartEdge:t,layout:n},s)=>{let r,i=0;const o=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:o,onWheel:l=>{Am(r);const u=l[Qoe[n.value]];o(i)&&o(i+u)||(i+=u,$O()||l.preventDefault(),r=ad(()=>{s(i),i=0}))}}},J0=Wr({type:me([Number,Function]),required:!0}),Z0=Wr({type:Number}),ey=Wr({type:Number,default:2}),Zoe=Wr({type:String,values:["ltr","rtl"],default:"ltr"}),ty=Wr({type:Number,default:0}),Sp=Wr({type:Number,required:!0}),mP=Wr({type:String,values:["horizontal","vertical"],default:P_}),gP=ze({className:{type:String,default:""},containerElement:{type:me([String,Object]),default:"div"},data:{type:me(Array),default:()=>pn([])},direction:Zoe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:me([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),vP=ze({cache:ey,estimatedItemSize:Z0,layout:mP,initScrollOffset:ty,total:Sp,itemSize:J0,...gP}),ny={type:Number,default:6},yP={type:Number,default:0},bP={type:Number,default:2},ka=ze({columnCache:ey,columnWidth:J0,estimatedColumnWidth:Z0,estimatedRowHeight:Z0,initScrollLeft:ty,initScrollTop:ty,itemKey:{type:me(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:ey,rowHeight:J0,totalColumn:Sp,totalRow:Sp,hScrollbarSize:ny,vScrollbarSize:ny,scrollbarStartGap:yP,scrollbarEndGap:bP,role:String,...gP}),_P=ze({alwaysOn:Boolean,class:String,layout:mP,total:Sp,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:ny,startGap:yP,endGap:bP,visible:Boolean}),ya=(e,t)=>e<t?yl:Tp,bd=e=>e===Goe||e===$l||e===tu,qC=e=>e===$l;let el=null;function wp(e=!1){if(el===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const s=document.createElement("div"),r=s.style;return r.width="100px",r.height="100px",t.appendChild(s),document.body.appendChild(t),t.scrollLeft>0?el=N_:(t.scrollLeft=1,t.scrollLeft===0?el=yd:el=$_),document.body.removeChild(t),el}return el}function eae({move:e,size:t,bar:n},s){const r={},i=`translate${n.axis}(${e}px)`;return r[n.size]=t,r.transform=i,r.msTransform=i,r.webkitTransform=i,s==="horizontal"?r.height="100%":r.width="100%",r}const sy=te({name:"ElVirtualScrollBar",props:_P,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=E(()=>e.startGap+e.endGap),s=Ne("virtual-scrollbar"),r=Ne("scrollbar"),i=B(),o=B();let a=null,l=null;const u=Bt({isDragging:!1,traveled:0}),d=E(()=>bA[e.layout]),f=E(()=>e.clientSize-c(n)),h=E(()=>({position:"absolute",width:`${tu===e.layout?f.value:e.scrollbarSize}px`,height:`${tu===e.layout?e.scrollbarSize:f.value}px`,[Yoe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=E(()=>{const A=e.ratio,M=e.clientSize;if(A>=100)return Number.POSITIVE_INFINITY;if(A>=50)return A*M/100;const N=M/3;return Math.floor(Math.min(Math.max(A*M,Xoe),N))}),g=E(()=>{if(!Number.isFinite(p.value))return{display:"none"};const A=`${p.value}px`;return eae({bar:d.value,size:A,move:u.traveled},e.layout)}),m=E(()=>Math.floor(e.clientSize-p.value-c(n))),v=()=>{window.addEventListener("mousemove",S),window.addEventListener("mouseup",_);const A=c(o);A&&(l=document.onselectstart,document.onselectstart=()=>!1,A.addEventListener("touchmove",S),A.addEventListener("touchend",_))},y=()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",_),document.onselectstart=l,l=null;const A=c(o);A&&(A.removeEventListener("touchmove",S),A.removeEventListener("touchend",_))},T=A=>{A.stopImmediatePropagation(),!(A.ctrlKey||[1,2].includes(A.button))&&(u.isDragging=!0,u[d.value.axis]=A.currentTarget[d.value.offset]-(A[d.value.client]-A.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),v())},_=()=>{u.isDragging=!1,u[d.value.axis]=0,t("stop-move"),y()},S=A=>{const{isDragging:M}=u;if(!M||!o.value||!i.value)return;const N=u[d.value.axis];if(!N)return;Am(a);const L=(i.value.getBoundingClientRect()[d.value.direction]-A[d.value.client])*-1,F=o.value[d.value.offset]-N,W=L-F;a=ad(()=>{u.traveled=Math.max(e.startGap,Math.min(W,m.value)),t("scroll",W,m.value)})},w=A=>{const M=Math.abs(A.target.getBoundingClientRect()[d.value.direction]-A[d.value.client]),N=o.value[d.value.offset]/2,L=M-N;u.traveled=Math.max(0,Math.min(L,m.value)),t("scroll",L,m.value)};return ke(()=>e.scrollFrom,A=>{u.isDragging||(u.traveled=Math.ceil(A*m.value))}),ln(()=>{y()}),()=>ot("div",{role:"presentation",ref:i,class:[s.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:h.value,onMousedown:ft(w,["stop","prevent"]),onTouchstartPrevent:T},ot("div",{ref:o,class:r.e("thumb"),style:g.value,onMousedown:T},[]))}}),TP=({name:e,getOffset:t,getItemSize:n,getItemOffset:s,getEstimatedTotalSize:r,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:a,clearCache:l,validateProps:u})=>te({name:e??"ElVirtualList",props:vP,emits:[bp,_p],setup(d,{emit:f,expose:h}){u(d);const p=At(),g=Ne("vl"),m=B(a(d,p)),v=pP(),y=B(),T=B(),_=B(),S=B({isScrolling:!1,scrollDir:"forward",scrollOffset:ht(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),w=E(()=>{const{total:ae,cache:Ee}=d,{isScrolling:le,scrollDir:ie,scrollOffset:ce}=c(S);if(ae===0)return[0,0,0,0];const ne=i(d,ce,c(m)),pe=o(d,ne,ce,c(m)),Te=!le||ie===Tp?Math.max(1,Ee):1,He=!le||ie===yl?Math.max(1,Ee):1;return[Math.max(0,ne-Te),Math.max(0,Math.min(ae-1,pe+He)),ne,pe]}),A=E(()=>r(d,c(m))),M=E(()=>bd(d.layout)),N=E(()=>[{position:"relative",[`overflow-${M.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:ht(d.height)?`${d.height}px`:d.height,width:ht(d.width)?`${d.width}px`:d.width},d.style]),L=E(()=>{const ae=c(A),Ee=c(M);return{height:Ee?"100%":`${ae}px`,pointerEvents:c(S).isScrolling?"none":void 0,width:Ee?`${ae}px`:"100%"}}),F=E(()=>M.value?d.width:d.height),{onWheel:W}=Joe({atStartEdge:E(()=>S.value.scrollOffset<=0),atEndEdge:E(()=>S.value.scrollOffset>=A.value),layout:E(()=>d.layout)},ae=>{var Ee,le;(le=(Ee=_.value).onMouseUp)==null||le.call(Ee),$(Math.min(S.value.scrollOffset+ae,A.value-F.value))}),j=()=>{const{total:ae}=d;if(ae>0){const[ce,ne,pe,Te]=c(w);f(bp,ce,ne,pe,Te)}const{scrollDir:Ee,scrollOffset:le,updateRequested:ie}=c(S);f(_p,Ee,le,ie)},R=ae=>{const{clientHeight:Ee,scrollHeight:le,scrollTop:ie}=ae.currentTarget,ce=c(S);if(ce.scrollOffset===ie)return;const ne=Math.max(0,Math.min(ie,le-Ee));S.value={...ce,isScrolling:!0,scrollDir:ya(ce.scrollOffset,ne),scrollOffset:ne,updateRequested:!1},it(Z)},q=ae=>{const{clientWidth:Ee,scrollLeft:le,scrollWidth:ie}=ae.currentTarget,ce=c(S);if(ce.scrollOffset===le)return;const{direction:ne}=d;let pe=le;if(ne===$l)switch(wp()){case yd:{pe=-le;break}case N_:{pe=ie-Ee-le;break}}pe=Math.max(0,Math.min(pe,ie-Ee)),S.value={...ce,isScrolling:!0,scrollDir:ya(ce.scrollOffset,pe),scrollOffset:pe,updateRequested:!1},it(Z)},X=ae=>{c(M)?q(ae):R(ae),j()},K=(ae,Ee)=>{const le=(A.value-F.value)/Ee*ae;$(Math.min(A.value-F.value,le))},$=ae=>{ae=Math.max(ae,0),ae!==c(S).scrollOffset&&(S.value={...c(S),scrollOffset:ae,scrollDir:ya(c(S).scrollOffset,ae),updateRequested:!0},it(Z))},H=(ae,Ee=hr)=>{const{scrollOffset:le}=c(S);ae=Math.max(0,Math.min(ae,d.total-1)),$(t(d,ae,Ee,le,c(m)))},U=ae=>{const{direction:Ee,itemSize:le,layout:ie}=d,ce=v.value(l&&le,l&&ie,l&&Ee);let ne;if(Ft(ce,String(ae)))ne=ce[ae];else{const pe=s(d,ae,c(m)),Te=n(d,ae,c(m)),He=c(M),Y=Ee===$l,re=He?pe:0;ce[ae]=ne={position:"absolute",left:Y?void 0:`${re}px`,right:Y?`${re}px`:void 0,top:He?0:`${pe}px`,height:He?"100%":`${Te}px`,width:He?`${Te}px`:"100%"}}return ne},Z=()=>{S.value.isScrolling=!1,it(()=>{v.value(-1,null,null)})},ue=()=>{const ae=y.value;ae&&(ae.scrollTop=0)};Tt(()=>{if(!Ht)return;const{initScrollOffset:ae}=d,Ee=c(y);ht(ae)&&Ee&&(c(M)?Ee.scrollLeft=ae:Ee.scrollTop=ae),j()}),to(()=>{const{direction:ae,layout:Ee}=d,{scrollOffset:le,updateRequested:ie}=c(S),ce=c(y);if(ie&&ce)if(Ee===tu)if(ae===$l)switch(wp()){case yd:{ce.scrollLeft=-le;break}case $_:{ce.scrollLeft=le;break}default:{const{clientWidth:ne,scrollWidth:pe}=ce;ce.scrollLeft=pe-ne-le;break}}else ce.scrollLeft=le;else ce.scrollTop=le});const Q={ns:g,clientSize:F,estimatedTotalSize:A,windowStyle:N,windowRef:y,innerRef:T,innerStyle:L,itemsToRender:w,scrollbarRef:_,states:S,getItemStyle:U,onScroll:X,onScrollbarScroll:K,onWheel:W,scrollTo:$,scrollToItem:H,resetScrollTop:ue};return h({windowRef:y,innerRef:T,getItemStyleCache:v,scrollTo:$,scrollToItem:H,resetScrollTop:ue,states:S}),Q},render(d){var f;const{$slots:h,className:p,clientSize:g,containerElement:m,data:v,getItemStyle:y,innerElement:T,itemsToRender:_,innerStyle:S,layout:w,total:A,onScroll:M,onScrollbarScroll:N,onWheel:L,states:F,useIsScrolling:W,windowStyle:j,ns:R}=d,[q,X]=_,K=Mt(m),$=Mt(T),H=[];if(A>0)for(let Q=q;Q<=X;Q++)H.push((f=h.default)==null?void 0:f.call(h,{data:v,key:Q,index:Q,isScrolling:W?F.isScrolling:void 0,style:y(Q)}));const U=[ot($,{style:S,ref:"innerRef"},mt($)?H:{default:()=>H})],Z=ot(sy,{ref:"scrollbarRef",clientSize:g,layout:w,onScroll:N,ratio:g*100/this.estimatedTotalSize,scrollFrom:F.scrollOffset/(this.estimatedTotalSize-g),total:A}),ue=ot(K,{class:[R.e("window"),p],style:j,onScroll:M,onWheel:L,ref:"windowRef",key:0},mt(K)?[U]:{default:()=>[U]});return ot("div",{key:0,class:[R.e("wrapper"),F.scrollbarAlwaysOn?"always-on":""]},[ue,Z])}}),SP=TP({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:s,width:r},i,o,a)=>{const l=bd(s)?r:e,u=Math.max(0,t*n-l),d=Math.min(u,i*n),f=Math.max(0,(i+1)*n-l);switch(o===Hm&&(a>=f-l&&a<=d+l?o=hr:o=ri),o){case gd:return d;case vd:return f;case ri:{const h=Math.round(f+(d-f)/2);return h<Math.ceil(l/2)?0:h>u+Math.floor(l/2)?u:h}case hr:default:return a>=f&&a<=d?a:a<f?f:d}},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:s,width:r},i,o)=>{const a=i*n,l=bd(s)?r:e,u=Math.ceil((l+o-a)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),bl=(e,t,n)=>{const{itemSize:s}=e,{items:r,lastVisitedIndex:i}=n;if(t>i){let o=0;if(i>=0){const a=r[i];o=a.offset+a.size}for(let a=i+1;a<=t;a++){const l=s(a);r[a]={offset:o,size:l},o+=l}n.lastVisitedIndex=t}return r[t]},tae=(e,t,n)=>{const{items:s,lastVisitedIndex:r}=t;return(r>0?s[r].offset:0)>=n?wP(e,t,0,r,n):nae(e,t,Math.max(0,r),n)},wP=(e,t,n,s,r)=>{for(;n<=s;){const i=n+Math.floor((s-n)/2),o=bl(e,i,t).offset;if(o===r)return i;o<r?n=i+1:o>r&&(s=i-1)}return Math.max(0,n-1)},nae=(e,t,n,s)=>{const{total:r}=e;let i=1;for(;n<r&&bl(e,n,t).offset<s;)n+=i,i*=2;return wP(e,t,Math.floor(n/2),Math.min(n,r-1),s)},GC=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:s})=>{let r=0;if(s>=e&&(s=e-1),s>=0){const a=t[s];r=a.offset+a.size}const o=(e-s-1)*n;return r+o},sae=TP({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>bl(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:GC,getOffset:(e,t,n,s,r)=>{const{height:i,layout:o,width:a}=e,l=bd(o)?a:i,u=bl(e,t,r),d=GC(e,r),f=Math.max(0,Math.min(d-l,u.offset)),h=Math.max(0,u.offset-l+u.size);switch(n===Hm&&(s>=h-l&&s<=f+l?n=hr:n=ri),n){case gd:return f;case vd:return h;case ri:return Math.round(h+(f-h)/2);case hr:default:return s>=h&&s<=f?s:s<h?h:f}},getStartIndexForOffset:(e,t,n)=>tae(e,n,t),getStopIndexForStartIndex:(e,t,n,s)=>{const{height:r,total:i,layout:o,width:a}=e,l=bd(o)?a:r,u=bl(e,t,s),d=n+l;let f=u.offset+u.size,h=t;for(;h<i-1&&f<d;)h++,f+=bl(e,h,s).size;return h},initCache({estimatedItemSize:e=Q0},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(s,r=!0)=>{var i,o;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,s-1),(i=t.exposed)==null||i.getItemStyleCache(-1),r&&((o=t.proxy)==null||o.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),rae=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:s},r)=>{let i=null,o=0,a=0;const l=(d,f)=>{const h=d<=0&&t.value||d>=0&&e.value,p=f<=0&&s.value||f>=0&&n.value;return h&&p};return{hasReachedEdge:l,onWheel:d=>{Am(i);let f=d.deltaX,h=d.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),!(l(o,a)&&l(o+f,a+h))&&(o+=f,a+=h,d.preventDefault(),i=ad(()=>{r(o,a),o=0,a=0}))}}},CP=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:s,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:a,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:p,validateProps:g})=>te({name:e??"ElVirtualList",props:ka,emits:[bp,_p],setup(m,{emit:v,expose:y,slots:T}){const _=Ne("vl");g(m);const S=At(),w=B(h(m,S));p==null||p(S,w);const A=B(),M=B(),N=B(),L=B(null),F=B({isScrolling:!1,scrollLeft:ht(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:ht(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:yl,yAxisScrollDir:yl}),W=pP(),j=E(()=>Number.parseInt(`${m.height}`,10)),R=E(()=>Number.parseInt(`${m.width}`,10)),q=E(()=>{const{totalColumn:_e,totalRow:Be,columnCache:Ie}=m,{isScrolling:Ae,xAxisScrollDir:Me,scrollLeft:Ye}=c(F);if(_e===0||Be===0)return[0,0,0,0];const qe=s(m,Ye,c(w)),Ce=r(m,qe,Ye,c(w)),Ge=!Ae||Me===Tp?Math.max(1,Ie):1,ut=!Ae||Me===yl?Math.max(1,Ie):1;return[Math.max(0,qe-Ge),Math.max(0,Math.min(_e-1,Ce+ut)),qe,Ce]}),X=E(()=>{const{totalColumn:_e,totalRow:Be,rowCache:Ie}=m,{isScrolling:Ae,yAxisScrollDir:Me,scrollTop:Ye}=c(F);if(_e===0||Be===0)return[0,0,0,0];const qe=d(m,Ye,c(w)),Ce=f(m,qe,Ye,c(w)),Ge=!Ae||Me===Tp?Math.max(1,Ie):1,ut=!Ae||Me===yl?Math.max(1,Ie):1;return[Math.max(0,qe-Ge),Math.max(0,Math.min(Be-1,Ce+ut)),qe,Ce]}),K=E(()=>i(m,c(w))),$=E(()=>o(m,c(w))),H=E(()=>{var _e;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:ht(m.height)?`${m.height}px`:m.height,width:ht(m.width)?`${m.width}px`:m.width},(_e=m.style)!=null?_e:{}]}),U=E(()=>{const _e=`${c($)}px`;return{height:`${c(K)}px`,pointerEvents:c(F).isScrolling?"none":void 0,width:_e}}),Z=()=>{const{totalColumn:_e,totalRow:Be}=m;if(_e>0&&Be>0){const[Ce,Ge,ut,bt]=c(q),[ct,Le,De,be]=c(X);v(bp,{columnCacheStart:Ce,columnCacheEnd:Ge,rowCacheStart:ct,rowCacheEnd:Le,columnVisibleStart:ut,columnVisibleEnd:bt,rowVisibleStart:De,rowVisibleEnd:be})}const{scrollLeft:Ie,scrollTop:Ae,updateRequested:Me,xAxisScrollDir:Ye,yAxisScrollDir:qe}=c(F);v(_p,{xAxisScrollDir:Ye,scrollLeft:Ie,yAxisScrollDir:qe,scrollTop:Ae,updateRequested:Me})},ue=_e=>{const{clientHeight:Be,clientWidth:Ie,scrollHeight:Ae,scrollLeft:Me,scrollTop:Ye,scrollWidth:qe}=_e.currentTarget,Ce=c(F);if(Ce.scrollTop===Ye&&Ce.scrollLeft===Me)return;let Ge=Me;if(qC(m.direction))switch(wp()){case yd:Ge=-Me;break;case N_:Ge=qe-Ie-Me;break}F.value={...Ce,isScrolling:!0,scrollLeft:Ge,scrollTop:Math.max(0,Math.min(Ye,Ae-Be)),updateRequested:!0,xAxisScrollDir:ya(Ce.scrollLeft,Ge),yAxisScrollDir:ya(Ce.scrollTop,Ye)},it(()=>ne()),pe(),Z()},Q=(_e,Be)=>{const Ie=c(j),Ae=(K.value-Ie)/Be*_e;le({scrollTop:Math.min(K.value-Ie,Ae)})},ae=(_e,Be)=>{const Ie=c(R),Ae=($.value-Ie)/Be*_e;le({scrollLeft:Math.min($.value-Ie,Ae)})},{onWheel:Ee}=rae({atXStartEdge:E(()=>F.value.scrollLeft<=0),atXEndEdge:E(()=>F.value.scrollLeft>=$.value-c(R)),atYStartEdge:E(()=>F.value.scrollTop<=0),atYEndEdge:E(()=>F.value.scrollTop>=K.value-c(j))},(_e,Be)=>{var Ie,Ae,Me,Ye;(Ae=(Ie=M.value)==null?void 0:Ie.onMouseUp)==null||Ae.call(Ie),(Ye=(Me=M.value)==null?void 0:Me.onMouseUp)==null||Ye.call(Me);const qe=c(R),Ce=c(j);le({scrollLeft:Math.min(F.value.scrollLeft+_e,$.value-qe),scrollTop:Math.min(F.value.scrollTop+Be,K.value-Ce)})}),le=({scrollLeft:_e=F.value.scrollLeft,scrollTop:Be=F.value.scrollTop})=>{_e=Math.max(_e,0),Be=Math.max(Be,0);const Ie=c(F);Be===Ie.scrollTop&&_e===Ie.scrollLeft||(F.value={...Ie,xAxisScrollDir:ya(Ie.scrollLeft,_e),yAxisScrollDir:ya(Ie.scrollTop,Be),scrollLeft:_e,scrollTop:Be,updateRequested:!0},it(()=>ne()),pe(),Z())},ie=(_e=0,Be=0,Ie=hr)=>{const Ae=c(F);Be=Math.max(0,Math.min(Be,m.totalColumn-1)),_e=Math.max(0,Math.min(_e,m.totalRow-1));const Me=bO(_.namespace.value),Ye=c(w),qe=i(m,Ye),Ce=o(m,Ye);le({scrollLeft:a(m,Be,Ie,Ae.scrollLeft,Ye,Ce>m.width?Me:0),scrollTop:l(m,_e,Ie,Ae.scrollTop,Ye,qe>m.height?Me:0)})},ce=(_e,Be)=>{const{columnWidth:Ie,direction:Ae,rowHeight:Me}=m,Ye=W.value(t&&Ie,t&&Me,t&&Ae),qe=`${_e},${Be}`;if(Ft(Ye,qe))return Ye[qe];{const[,Ce]=n(m,Be,c(w)),Ge=c(w),ut=qC(Ae),[bt,ct]=u(m,_e,Ge),[Le]=n(m,Be,Ge);return Ye[qe]={position:"absolute",left:ut?void 0:`${Ce}px`,right:ut?`${Ce}px`:void 0,top:`${ct}px`,height:`${bt}px`,width:`${Le}px`},Ye[qe]}},ne=()=>{F.value.isScrolling=!1,it(()=>{W.value(-1,null,null)})};Tt(()=>{if(!Ht)return;const{initScrollLeft:_e,initScrollTop:Be}=m,Ie=c(A);Ie&&(ht(_e)&&(Ie.scrollLeft=_e),ht(Be)&&(Ie.scrollTop=Be)),Z()});const pe=()=>{const{direction:_e}=m,{scrollLeft:Be,scrollTop:Ie,updateRequested:Ae}=c(F),Me=c(A);if(Ae&&Me){if(_e===$l)switch(wp()){case yd:{Me.scrollLeft=-Be;break}case $_:{Me.scrollLeft=Be;break}default:{const{clientWidth:Ye,scrollWidth:qe}=Me;Me.scrollLeft=qe-Ye-Be;break}}else Me.scrollLeft=Math.max(0,Be);Me.scrollTop=Math.max(0,Ie)}},{resetAfterColumnIndex:Te,resetAfterRowIndex:He,resetAfter:Y}=S.proxy;y({windowRef:A,innerRef:L,getItemStyleCache:W,scrollTo:le,scrollToItem:ie,states:F,resetAfterColumnIndex:Te,resetAfterRowIndex:He,resetAfter:Y});const re=()=>{const{scrollbarAlwaysOn:_e,scrollbarStartGap:Be,scrollbarEndGap:Ie,totalColumn:Ae,totalRow:Me}=m,Ye=c(R),qe=c(j),Ce=c($),Ge=c(K),{scrollLeft:ut,scrollTop:bt}=c(F),ct=ot(sy,{ref:M,alwaysOn:_e,startGap:Be,endGap:Ie,class:_.e("horizontal"),clientSize:Ye,layout:"horizontal",onScroll:ae,ratio:Ye*100/Ce,scrollFrom:ut/(Ce-Ye),total:Me,visible:!0}),Le=ot(sy,{ref:N,alwaysOn:_e,startGap:Be,endGap:Ie,class:_.e("vertical"),clientSize:qe,layout:"vertical",onScroll:Q,ratio:qe*100/Ge,scrollFrom:bt/(Ge-qe),total:Ae,visible:!0});return{horizontalScrollbar:ct,verticalScrollbar:Le}},Se=()=>{var _e;const[Be,Ie]=c(q),[Ae,Me]=c(X),{data:Ye,totalColumn:qe,totalRow:Ce,useIsScrolling:Ge,itemKey:ut}=m,bt=[];if(Ce>0&&qe>0)for(let ct=Ae;ct<=Me;ct++)for(let Le=Be;Le<=Ie;Le++)bt.push((_e=T.default)==null?void 0:_e.call(T,{columnIndex:Le,data:Ye,key:ut({columnIndex:Le,data:Ye,rowIndex:ct}),isScrolling:Ge?c(F).isScrolling:void 0,style:ce(ct,Le),rowIndex:ct}));return bt},Oe=()=>{const _e=Mt(m.innerElement),Be=Se();return[ot(_e,{style:c(U),ref:L},mt(_e)?Be:{default:()=>Be})]};return()=>{const _e=Mt(m.containerElement),{horizontalScrollbar:Be,verticalScrollbar:Ie}=re(),Ae=Oe();return ot("div",{key:0,class:_.e("wrapper"),role:m.role},[ot(_e,{class:m.className,style:c(H),onScroll:ue,onWheel:Ee,ref:A},mt(_e)?Ae:{default:()=>Ae}),Be,Ie])}}}),iae=CP({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},s,r,i,o,a)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,s*t),d=Math.max(0,s*t-n+a+t);switch(r==="smart"&&(i>=d-n&&i<=u+n?r=hr:r=ri),r){case gd:return u;case vd:return d;case ri:{const f=Math.round(d+(u-d)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case hr:default:return i>=d&&i<=u?i:d>u||i<d?d:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},s,r,i,o,a)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,s*e),d=Math.max(0,s*e-t+a+e);switch(r===Hm&&(i>=d-t&&i<=u+t?r=hr:r=ri),r){case gd:return u;case vd:return d;case ri:{const f=Math.round(d+(u-d)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case hr:default:return i>=d&&i<=u?i:d>u||i<d?d: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},s,r)=>{const i=s*e,o=Math.ceil((n+r-i)/e);return Math.max(0,Math.min(t-1,s+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},s,r)=>{const i=s*e,o=Math.ceil((n+r-i)/e);return Math.max(0,Math.min(t-1,s+o-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:Cp,min:EP,floor:xP}=Math,oae={column:"columnWidth",row:"rowHeight"},ry={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Mi=(e,t,n,s)=>{const[r,i,o]=[n[s],e[oae[s]],n[ry[s]]];if(t>o){let a=0;if(o>=0){const l=r[o];a=l.offset+l.size}for(let l=o+1;l<=t;l++){const u=i(l);r[l]={offset:a,size:u},a+=u}n[ry[s]]=t}return r[t]},kP=(e,t,n,s,r,i)=>{for(;n<=s;){const o=n+xP((s-n)/2),a=Mi(e,o,t,i).offset;if(a===r)return o;a<r?n=o+1:s=o-1}return Cp(0,n-1)},aae=(e,t,n,s,r)=>{const i=r==="column"?e.totalColumn:e.totalRow;let o=1;for(;n<i&&Mi(e,n,t,r).offset<s;)n+=o,o*=2;return kP(e,t,xP(n/2),EP(n,i-1),s,r)},YC=(e,t,n,s)=>{const[r,i]=[t[s],t[ry[s]]];return(i>0?r[i].offset:0)>=n?kP(e,t,0,i,n,s):aae(e,t,Cp(0,i),n,s)},OP=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:s})=>{let r=0;if(n>=e&&(n=e-1),n>=0){const a=s[n];r=a.offset+a.size}const o=(e-n-1)*t;return r+o},AP=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:s})=>{let r=0;if(s>e&&(s=e-1),s>=0){const a=t[s];r=a.offset+a.size}const o=(e-s-1)*n;return r+o},lae={column:AP,row:OP},XC=(e,t,n,s,r,i,o)=>{const[a,l]=[i==="row"?e.height:e.width,lae[i]],u=Mi(e,t,r,i),d=l(e,r),f=Cp(0,EP(d-a,u.offset)),h=Cp(0,u.offset-a+o+u.size);switch(n===Hm&&(s>=h-a&&s<=f+a?n=hr:n=ri),n){case gd:return f;case vd:return h;case ri:return Math.round(h+(f-h)/2);case hr:default:return s>=h&&s<=f?s:h>f||s<h?h:f}},uae=CP({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const s=Mi(e,t,n,"column");return[s.size,s.offset]},getRowPosition:(e,t,n)=>{const s=Mi(e,t,n,"row");return[s.size,s.offset]},getColumnOffset:(e,t,n,s,r,i)=>XC(e,t,n,s,r,"column",i),getRowOffset:(e,t,n,s,r,i)=>XC(e,t,n,s,r,"row",i),getColumnStartIndexForOffset:(e,t,n)=>YC(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,s)=>{const r=Mi(e,t,s,"column"),i=n+e.width;let o=r.offset+r.size,a=t;for(;a<e.totalColumn-1&&o<i;)a++,o+=Mi(e,t,s,"column").size;return a},getEstimatedTotalHeight:OP,getEstimatedTotalWidth:AP,getRowStartIndexForOffset:(e,t,n)=>YC(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,s)=>{const{totalRow:r,height:i}=e,o=Mi(e,t,s,"row"),a=n+i;let l=o.size+o.offset,u=t;for(;u<r-1&&l<a;)u++,l+=Mi(e,u,s,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:o},a)=>{var l,u;a=Qn(a)?!0:a,ht(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),ht(o)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,o-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),a&&((u=e.proxy)==null||u.$forceUpdate())},s=(i,o)=>{n({columnIndex:i},o)},r=(i,o)=>{n({rowIndex:i},o)};Object.assign(e.proxy,{resetAfterColumnIndex:s,resetAfterRowIndex:r,resetAfter:n})},initCache:({estimatedColumnWidth:e=Q0,estimatedRowHeight:t=Q0})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),cae=te({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Ne("select")}}});function dae(e,t,n,s,r,i){return e.item.isTitle?(x(),z("div",{key:0,class:I(e.ns.be("group","title")),style:st([e.style,{lineHeight:`${e.height}px`}])},we(e.item.label),7)):(x(),z("div",{key:1,class:I(e.ns.be("group","split")),style:st(e.style)},[V("span",{class:I(e.ns.be("group","split-dash")),style:st({top:`${e.height/2}px`})},null,6)],6))}var fae=Ue(cae,[["render",dae],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function hae(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const pae={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:Ho},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:Gn.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:km},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:me(String),values:za,default:"bottom-start"}},mae={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},gae=te({props:mae,emits:["select","hover"],setup(e,{emit:t}){const n=Ne("select"),{hoverItem:s,selectOptionClick:r}=hae(e,{emit:t});return{ns:n,hoverItem:s,selectOptionClick:r}}}),vae=["aria-selected"];function yae(e,t,n,s,r,i){return x(),z("li",{"aria-selected":e.selected,style:st(e.style),class:I([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]=ft((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[xe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[V("span",null,we(e.item.label),1)])],46,vae)}var bae=Ue(gae,[["render",yae],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const IP=Symbol("ElSelectV2Injection");var _ae=te({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const s=Qe(IP),r=Ne("select"),i=B([]),o=B(),a=E(()=>e.data.length);ke(()=>a.value,()=>{var N,L;(L=(N=s.popper.value).updatePopper)==null||L.call(N)});const l=E(()=>Qn(s.props.estimatedOptionHeight)),u=E(()=>l.value?{itemSize:s.props.itemHeight}:{estimatedSize:s.props.estimatedOptionHeight,itemSize:N=>i.value[N]}),d=(N=[],L)=>{const{props:{valueKey:F}}=s;return Pt(L)?N&&N.some(W=>hn(W,F)===hn(L,F)):N.includes(L)},f=(N,L)=>{if(Pt(L)){const{valueKey:F}=s.props;return hn(N,F)===hn(L,F)}else return N===L},h=(N,L)=>{const{valueKey:F}=s.props;return s.props.multiple?d(N,hn(L,F)):f(N,hn(L,F))},p=(N,L)=>{const{disabled:F,multiple:W,multipleLimit:j}=s.props;return F||!L&&(W?j>0&&N.length>=j:!1)},g=N=>e.hoveringIndex===N;n({listRef:o,isSized:l,isItemDisabled:p,isItemHovering:g,isItemSelected:h,scrollToItem:N=>{const L=o.value;L&&L.scrollToItem(N)},resetScrollTop:()=>{const N=o.value;N&&N.resetScrollTop()}});const y=N=>{const{index:L,data:F,style:W}=N,j=c(l),{itemSize:R,estimatedSize:q}=c(u),{modelValue:X}=s.props,{onSelect:K,onHover:$}=s,H=F[L];if(H.type==="Group")return G(fae,{item:H,style:W,height:j?R:q},null);const U=h(X,H),Z=p(X,U),ue=g(L);return G(bae,$t(N,{selected:U,disabled:H.disabled||Z,created:!!H.created,hovering:ue,item:H,onSelect:K,onHover:$}),{default:Q=>{var ae;return((ae=t.default)==null?void 0:ae.call(t,Q))||G("span",null,[H.label])}})},{onKeyboardNavigate:T,onKeyboardSelect:_}=s,S=()=>{T("forward")},w=()=>{T("backward")},A=()=>{s.expanded=!1},M=N=>{const{code:L}=N,{tab:F,esc:W,down:j,up:R,enter:q}=at;switch(L!==F&&(N.preventDefault(),N.stopPropagation()),L){case F:case W:{A();break}case j:{S();break}case R:{w();break}case q:{_();break}}};return()=>{var N;const{data:L,width:F}=e,{height:W,multiple:j,scrollbarAlwaysOn:R}=s.props;if(L.length===0)return G("div",{class:r.b("dropdown"),style:{width:`${F}px`}},[(N=t.empty)==null?void 0:N.call(t)]);const q=c(l)?SP:sae;return G("div",{class:[r.b("dropdown"),r.is("multiple",j)]},[G(q,$t({ref:o},c(u),{className:r.be("dropdown","list"),scrollbarAlwaysOn:R,data:L,height:W,width:F,total:L.length,onKeydown:M}),{default:X=>G(y,X,null)})])}}});function Tae(e,t){const n=B(0),s=B(null),r=E(()=>e.allowCreate&&e.filterable);function i(d){const f=h=>h.value===d;return e.options&&e.options.some(f)||t.createdOptions.some(f)}function o(d){r.value&&(e.multiple&&d.created?n.value++:s.value=d)}function a(d){if(r.value)if(d&&d.length>0&&!i(d)){const f={value:d,label:d,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=s.value;t.createdOptions.length=0,f&&f.created&&t.createdOptions.push(f)}}function l(d){if(!r.value||!d||!d.created||d.created&&e.reserveKeyword&&t.inputValue===d.label)return;const f=t.createdOptions.findIndex(h=>h.value===d.value);~f&&(t.createdOptions.splice(f,1),n.value--)}function u(){r.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:a,removeNewOption:l,selectNewOption:o,clearAllNewOption:u}}const Sae=e=>{const t=[];return e.forEach(n=>{tt(n.options)?(t.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(s=>{t.push(s)}),t.push({type:"Group"})):t.push(n)}),t};function wae(e){const t=B(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,a=o[o.length-1]||"";t.value=!Om(a)},handleCompositionEnd:i=>{t.value&&(t.value=!1,pt(e)&&e(i))}}}const QC="",JC=11,Cae={larget:51,default:42,small:33},Eae=(e,t)=>{const{t:n}=qt(),s=Ne("select-v2"),r=Ne("input"),{form:i,formItem:o}=Is(),a=Bt({inputValue:QC,displayInputValue:QC,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=B(-1),u=B(-1),d=B(null),f=B(null),h=B(null),p=B(null),g=B(null),m=B(null),v=B(null),y=B(!1),T=E(()=>e.disabled||(i==null?void 0:i.disabled)),_=E(()=>{const Fe=j.value.length*34;return Fe>e.height?e.height:Fe}),S=E(()=>!Kn(e.modelValue)),w=E(()=>{const Fe=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:S.value;return e.clearable&&!T.value&&a.comboBoxHovering&&Fe}),A=E(()=>e.remote&&e.filterable?"":Wd),M=E(()=>A.value&&s.is("reverse",y.value)),N=E(()=>(o==null?void 0:o.validateState)||""),L=E(()=>IO[N.value]),F=E(()=>e.remote?300:0),W=E(()=>{const Fe=j.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&a.inputValue===""&&Fe.length===0?!1:e.filterable&&a.inputValue&&Fe.length>0?e.noMatchText||n("el.select.noMatch"):Fe.length===0?e.noDataText||n("el.select.noData"):null}),j=E(()=>{const Fe=lt=>{const Vt=a.inputValue,Gt=new RegExp(vO(Vt),"i");return Vt?Gt.test(lt.label||""):!0};return e.loading?[]:Sae(e.options.concat(a.createdOptions).map(lt=>{if(tt(lt.options)){const Vt=lt.options.filter(Fe);if(Vt.length>0)return{...lt,options:Vt}}else if(e.remote||Fe(lt))return lt;return null}).filter(lt=>lt!==null))}),R=E(()=>j.value.every(Fe=>Fe.disabled)),q=Fn(),X=E(()=>q.value==="small"?"small":"default"),K=E(()=>{const Fe=m.value,lt=X.value||"default",Vt=Fe?Number.parseInt(getComputedStyle(Fe).paddingLeft):0,Gt=Fe?Number.parseInt(getComputedStyle(Fe).paddingRight):0;return a.selectWidth-Gt-Vt-Cae[lt]}),$=()=>{var Fe;u.value=((Fe=g.value)==null?void 0:Fe.offsetWidth)||200},H=E(()=>({width:`${a.calculatedWidth===0?JC:Math.ceil(a.calculatedWidth)+JC}px`})),U=E(()=>tt(e.modelValue)?e.modelValue.length===0&&!a.displayInputValue:e.filterable?a.displayInputValue.length===0:!0),Z=E(()=>{const Fe=e.placeholder||n("el.select.placeholder");return e.multiple||Kn(e.modelValue)?Fe:a.selectedLabel}),ue=E(()=>{var Fe,lt;return(lt=(Fe=p.value)==null?void 0:Fe.popperRef)==null?void 0:lt.contentRef}),Q=E(()=>{if(e.multiple){const Fe=e.modelValue.length;if(e.modelValue.length>0)return j.value.findIndex(lt=>lt.value===e.modelValue[Fe-1])}else if(e.modelValue)return j.value.findIndex(Fe=>Fe.value===e.modelValue);return-1}),ae=E({get(){return y.value&&W.value!==!1},set(Fe){y.value=Fe}}),Ee=E(()=>a.cachedOptions.slice(0,e.maxCollapseTags)),le=E(()=>a.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:ie,removeNewOption:ce,selectNewOption:ne,clearAllNewOption:pe}=Tae(e,a),{handleCompositionStart:Te,handleCompositionUpdate:He,handleCompositionEnd:Y}=wae(Fe=>Ct(Fe)),re=()=>{var Fe,lt,Vt;(lt=(Fe=f.value)==null?void 0:Fe.focus)==null||lt.call(Fe),(Vt=p.value)==null||Vt.updatePopper()},Se=()=>{if(!e.automaticDropdown&&!T.value)return a.isComposing&&(a.softFocus=!0),it(()=>{var Fe,lt;y.value=!y.value,(lt=(Fe=f.value)==null?void 0:Fe.focus)==null||lt.call(Fe)})},Oe=()=>(e.filterable&&a.inputValue!==a.selectedLabel&&(a.query=a.selectedLabel),_e(a.inputValue),it(()=>{ie(a.inputValue)})),Ve=Os(Oe,F.value),_e=Fe=>{a.previousQuery!==Fe&&(a.previousQuery=Fe,e.filterable&&pt(e.filterMethod)?e.filterMethod(Fe):e.filterable&&e.remote&&pt(e.remoteMethod)&&e.remoteMethod(Fe))},Be=Fe=>{sr(e.modelValue,Fe)||t(an,Fe)},Ie=Fe=>{t(It,Fe),Be(Fe),a.previousValue=Fe==null?void 0:Fe.toString()},Ae=(Fe=[],lt)=>{if(!Pt(lt))return Fe.indexOf(lt);const Vt=e.valueKey;let Gt=-1;return Fe.some((Bn,ar)=>hn(Bn,Vt)===hn(lt,Vt)?(Gt=ar,!0):!1),Gt},Me=Fe=>Pt(Fe)?hn(Fe,e.valueKey):Fe,Ye=Fe=>Pt(Fe)?Fe.label:Fe,qe=()=>it(()=>{var Fe,lt;if(!f.value)return;const Vt=m.value;g.value.height=Vt.offsetHeight,y.value&&W.value!==!1&&((lt=(Fe=p.value)==null?void 0:Fe.updatePopper)==null||lt.call(Fe))}),Ce=()=>{var Fe,lt;if(Ge(),$(),(lt=(Fe=p.value)==null?void 0:Fe.updatePopper)==null||lt.call(Fe),e.multiple)return qe()},Ge=()=>{const Fe=m.value;Fe&&(a.selectWidth=Fe.getBoundingClientRect().width)},ut=(Fe,lt,Vt=!0)=>{var Gt,Bn;if(e.multiple){let ar=e.modelValue.slice();const qa=Ae(ar,Me(Fe));qa>-1?(ar=[...ar.slice(0,qa),...ar.slice(qa+1)],a.cachedOptions.splice(qa,1),ce(Fe)):(e.multipleLimit<=0||ar.length<e.multipleLimit)&&(ar=[...ar,Me(Fe)],a.cachedOptions.push(Fe),ne(Fe),St(lt)),Ie(ar),Fe.created&&(a.query="",_e(""),a.inputLength=20),e.filterable&&!e.reserveKeyword&&((Bn=(Gt=f.value).focus)==null||Bn.call(Gt),fe("")),e.filterable&&(a.calculatedWidth=v.value.getBoundingClientRect().width),qe(),Ze()}else l.value=lt,a.selectedLabel=Fe.label,Ie(Me(Fe)),y.value=!1,a.isComposing=!1,a.isSilentBlur=Vt,ne(Fe),Fe.created||pe(),St(lt)},bt=(Fe,lt)=>{const{valueKey:Vt}=e,Gt=e.modelValue.indexOf(hn(lt,Vt));if(Gt>-1&&!T.value){const Bn=[...e.modelValue.slice(0,Gt),...e.modelValue.slice(Gt+1)];return a.cachedOptions.splice(Gt,1),Ie(Bn),t("remove-tag",hn(lt,Vt)),a.softFocus=!0,ce(lt),it(re)}Fe.stopPropagation()},ct=Fe=>{const lt=a.isComposing;a.isComposing=!0,a.softFocus?a.softFocus=!1:lt||t("focus",Fe)},Le=Fe=>(a.softFocus=!1,it(()=>{var lt,Vt;(Vt=(lt=f.value)==null?void 0:lt.blur)==null||Vt.call(lt),v.value&&(a.calculatedWidth=v.value.getBoundingClientRect().width),a.isSilentBlur?a.isSilentBlur=!1:a.isComposing&&t("blur",Fe),a.isComposing=!1})),De=()=>{a.displayInputValue.length>0?fe(""):y.value=!1},be=Fe=>{if(a.displayInputValue.length===0){Fe.preventDefault();const lt=e.modelValue.slice();lt.pop(),ce(a.cachedOptions.pop()),Ie(lt)}},J=()=>{let Fe;return tt(e.modelValue)?Fe=[]:Fe=void 0,a.softFocus=!0,e.multiple?a.cachedOptions=[]:a.selectedLabel="",y.value=!1,Ie(Fe),t("clear"),pe(),it(re)},fe=Fe=>{a.displayInputValue=Fe,a.inputValue=Fe},Re=(Fe,lt=void 0)=>{const Vt=j.value;if(!["forward","backward"].includes(Fe)||T.value||Vt.length<=0||R.value)return;if(!y.value)return Se();lt===void 0&&(lt=a.hoveringIndex);let Gt=-1;Fe==="forward"?(Gt=lt+1,Gt>=Vt.length&&(Gt=0)):Fe==="backward"&&(Gt=lt-1,(Gt<0||Gt>=Vt.length)&&(Gt=Vt.length-1));const Bn=Vt[Gt];if(Bn.disabled||Bn.type==="Group")return Re(Fe,Gt);St(Gt),Qt(Gt)},We=()=>{if(y.value)~a.hoveringIndex&&j.value[a.hoveringIndex]&&ut(j.value[a.hoveringIndex],a.hoveringIndex,!1);else return Se()},St=Fe=>{a.hoveringIndex=Fe},$e=()=>{a.hoveringIndex=-1},Ze=()=>{var Fe;const lt=f.value;lt&&((Fe=lt.focus)==null||Fe.call(lt))},Ct=Fe=>{const lt=Fe.target.value;if(fe(lt),a.displayInputValue.length>0&&!y.value&&(y.value=!0),a.calculatedWidth=v.value.getBoundingClientRect().width,e.multiple&&qe(),e.remote)Ve();else return Oe()},xt=()=>(y.value=!1,Le()),Rt=()=>(a.inputValue=a.displayInputValue,it(()=>{~Q.value&&(St(Q.value),Qt(a.hoveringIndex))})),Qt=Fe=>{h.value.scrollToItem(Fe)},Nn=()=>{if($e(),e.multiple)if(e.modelValue.length>0){let Fe=!1;a.cachedOptions.length=0,a.previousValue=e.modelValue.toString(),e.modelValue.forEach(lt=>{const Vt=j.value.findIndex(Gt=>Me(Gt)===lt);~Vt&&(a.cachedOptions.push(j.value[Vt]),Fe||St(Vt),Fe=!0)})}else a.cachedOptions=[],a.previousValue=void 0;else if(S.value){a.previousValue=e.modelValue;const Fe=j.value,lt=Fe.findIndex(Vt=>Me(Vt)===Me(e.modelValue));~lt?(a.selectedLabel=Fe[lt].label,St(lt)):a.selectedLabel=`${e.modelValue}`}else a.selectedLabel="",a.previousValue=void 0;pe(),$()};return ke(y,Fe=>{var lt,Vt;t("visible-change",Fe),Fe?(Vt=(lt=p.value).update)==null||Vt.call(lt):(a.displayInputValue="",a.previousQuery=null,ie(""))}),ke(()=>e.modelValue,(Fe,lt)=>{var Vt;(!Fe||Fe.toString()!==a.previousValue)&&Nn(),!sr(Fe,lt)&&e.validateEvent&&((Vt=o==null?void 0:o.validate)==null||Vt.call(o,"change").catch(Gt=>void 0))},{deep:!0}),ke(()=>e.options,()=>{const Fe=f.value;(!Fe||Fe&&document.activeElement!==Fe)&&Nn()},{deep:!0}),ke(j,()=>it(h.value.resetScrollTop)),ke(()=>ae.value,Fe=>{Fe||$e()}),Tt(()=>{Nn()}),ds(g,Ce),{collapseTagSize:X,currentPlaceholder:Z,expanded:y,emptyText:W,popupHeight:_,debounce:F,filteredOptions:j,iconComponent:A,iconReverse:M,inputWrapperStyle:H,popperSize:u,dropdownMenuVisible:ae,hasModelValue:S,shouldShowPlaceholder:U,selectDisabled:T,selectSize:q,showClearBtn:w,states:a,tagMaxWidth:K,nsSelectV2:s,nsInput:r,calculatorRef:v,controlRef:d,inputRef:f,menuRef:h,popper:p,selectRef:g,selectionRef:m,popperRef:ue,validateState:N,validateIcon:L,showTagList:Ee,collapseTagList:le,debouncedOnInputChange:Ve,deleteTag:bt,getLabel:Ye,getValueKey:Me,handleBlur:Le,handleClear:J,handleClickOutside:xt,handleDel:be,handleEsc:De,handleFocus:ct,handleMenuEnter:Rt,handleResize:Ce,toggleMenu:Se,scrollTo:Qt,onInput:Ct,onKeyboardNavigate:Re,onKeyboardSelect:We,onSelect:ut,onHover:St,onUpdateInputValue:fe,handleCompositionStart:Te,handleCompositionEnd:Y,handleCompositionUpdate:He}},xae=te({name:"ElSelectV2",components:{ElSelectMenu:_ae,ElTag:pd,ElTooltip:As,ElIcon:nt},directives:{ClickOutside:Mo,ModelText:Bd},props:pae,emits:[It,an,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=E(()=>{const{modelValue:r,multiple:i}=e,o=i?[]:void 0;return tt(r)?i?r:o:i?o:r}),s=Eae(Bt({...Hn(e),modelValue:n}),t);return Nt(IP,{props:Bt({...Hn(e),height:s.popupHeight,modelValue:n}),popper:s.popper,onSelect:s.onSelect,onHover:s.onHover,onKeyboardNavigate:s.onKeyboardNavigate,onKeyboardSelect:s.onKeyboardSelect}),{...s,modelValue:n}}}),kae={key:0},Oae=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Aae=["textContent"],Iae=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],Pae=["textContent"];function $ae(e,t,n,s,r,i){const o=vt("el-tag"),a=vt("el-tooltip"),l=vt("el-icon"),u=vt("el-select-menu"),d=Qc("model-text"),f=Qc("click-outside");return gt((x(),z("div",{ref:"selectRef",class:I([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=ft((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"])),onMouseenter:t[25]||(t[25]=h=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=h=>e.states.comboBoxHovering=!1)},[G(a,{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]=h=>e.states.inputValue=e.states.displayInputValue)},{default:ee(()=>[V("div",{ref:"selectionRef",class:I([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?(x(),z("div",kae,[xe(e.$slots,"prefix")])):he("v-if",!0),e.multiple?(x(),z("div",{key:1,class:I(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(x(),z(et,{key:0},[(x(!0),z(et,null,kt(e.showTagList,h=>(x(),z("div",{key:e.getValueKey(h),class:I(e.nsSelectV2.e("selected-item"))},[G(o,{closable:!e.selectDisabled&&!(h!=null&&h.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:p=>e.deleteTag(p,h)},{default:ee(()=>[V("span",{class:I(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},we(h==null?void 0:h.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),V("div",{class:I(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(x(),ve(o,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:ee(()=>[e.collapseTagsTooltip?(x(),ve(a,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:ee(()=>[V("span",{class:I(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},"+ "+we(e.modelValue.length-e.maxCollapseTags),7)]),content:ee(()=>[V("div",{class:I(e.nsSelectV2.e("selection"))},[(x(!0),z(et,null,kt(e.collapseTagList,h=>(x(),z("div",{key:e.getValueKey(h),class:I(e.nsSelectV2.e("selected-item"))},[G(o,{closable:!e.selectDisabled&&!h.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:p=>e.deleteTag(p,h)},{default:ee(()=>[V("span",{class:I(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},we(e.getLabel(h)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(x(),z("span",{key:1,class:I(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},"+ "+we(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):he("v-if",!0)],2)],64)):(x(!0),z(et,{key:1},kt(e.states.cachedOptions,h=>(x(),z("div",{key:e.getValueKey(h),class:I(e.nsSelectV2.e("selected-item"))},[G(o,{closable:!e.selectDisabled&&!h.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:p=>e.deleteTag(p,h)},{default:ee(()=>[V("span",{class:I(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},we(e.getLabel(h)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),V("div",{class:I([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:st(e.inputWrapperStyle)},[gt(V("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:I([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]=(...h)=>e.onUpdateInputValue&&e.onUpdateInputValue(...h)),onFocus:t[1]||(t[1]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[2]||(t[2]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onInput:t[3]||(t[3]=(...h)=>e.onInput&&e.onInput(...h)),onCompositionstart:t[4]||(t[4]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[5]||(t[5]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[6]||(t[6]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onKeydown:[t[7]||(t[7]=zt(ft(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=zt(ft(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=zt(ft((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[10]||(t[10]=zt(ft((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[11]||(t[11]=zt(ft((...h)=>e.handleDel&&e.handleDel(...h),["stop"]),["delete"]))]},null,42,Oae),[[d,e.states.displayInputValue]]),e.filterable?(x(),z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:I(e.nsSelectV2.e("input-calculator")),textContent:we(e.states.displayInputValue)},null,10,Aae)):he("v-if",!0)],6)],2)):(x(),z(et,{key:2},[V("div",{class:I([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[gt(V("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:I(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]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[13]||(t[13]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[14]||(t[14]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onFocus:t[15]||(t[15]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[16]||(t[16]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onInput:t[17]||(t[17]=(...h)=>e.onInput&&e.onInput(...h)),onKeydown:[t[18]||(t[18]=zt(ft(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=zt(ft(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=zt(ft((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[21]||(t[21]=zt(ft((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...h)=>e.onUpdateInputValue&&e.onUpdateInputValue(...h))},null,42,Iae),[[d,e.states.displayInputValue]])],2),e.filterable?(x(),z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:I([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:we(e.states.displayInputValue)},null,10,Pae)):he("v-if",!0)],64)),e.shouldShowPlaceholder?(x(),z("span",{key:3,class:I([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},we(e.currentPlaceholder),3)):he("v-if",!0),V("span",{class:I(e.nsSelectV2.e("suffix"))},[e.iconComponent?gt((x(),ve(l,{key:0,class:I([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ee(()=>[(x(),ve(Mt(e.iconComponent)))]),_:1},8,["class"])),[[Ut,!e.showClearBtn]]):he("v-if",!0),e.showClearBtn&&e.clearIcon?(x(),ve(l,{key:1,class:I([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:ft(e.handleClear,["prevent","stop"])},{default:ee(()=>[(x(),ve(Mt(e.clearIcon)))]),_:1},8,["class","onClick"])):he("v-if",!0),e.validateState&&e.validateIcon?(x(),ve(l,{key:2,class:I([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ee(()=>[(x(),ve(Mt(e.validateIcon)))]),_:1},8,["class"])):he("v-if",!0)],2)],2)]),content:ee(()=>[G(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ee(h=>[xe(e.$slots,"default",Mr(pm(h)))]),empty:ee(()=>[xe(e.$slots,"empty",{},()=>[V("p",{class:I(e.nsSelectV2.e("empty"))},we(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 Dh=Ue(xae,[["render",$ae],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Dh.install=e=>{e.component(Dh.name,Dh)};const Nae=Dh,Mae=Nae,Rae=ze({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Lae=ze({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Dae=te({name:"ElSkeletonItem"}),Fae=te({...Dae,props:Lae,setup(e){const t=Ne("skeleton");return(n,s)=>(x(),z("div",{class:I([c(t).e("item"),c(t).e(n.variant)])},[n.variant==="image"?(x(),ve(c(s9),{key:0})):he("v-if",!0)],2))}});var Ep=Ue(Fae,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const Bae=te({name:"ElSkeleton"}),Vae=te({...Bae,props:Rae,setup(e,{expose:t}){const n=e,s=Ne("skeleton"),r=p7(dn(n,"loading"),n.throttle);return t({uiLoading:r}),(i,o)=>c(r)?(x(),z("div",$t({key:0,class:[c(s).b(),c(s).is("animated",i.animated)]},i.$attrs),[(x(!0),z(et,null,kt(i.count,a=>(x(),z(et,{key:a},[i.loading?xe(i.$slots,"template",{key:a},()=>[G(Ep,{class:I(c(s).is("first")),variant:"p"},null,8,["class"]),(x(!0),z(et,null,kt(i.rows,l=>(x(),ve(Ep,{key:l,class:I([c(s).e("paragraph"),c(s).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):he("v-if",!0)],64))),128))],16)):xe(i.$slots,"default",Mr($t({key:1},i.$attrs)))}});var Uae=Ue(Vae,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const Hae=Ot(Uae,{SkeletonItem:Ep}),zae=Cn(Ep),PP=Symbol("sliderContextKey"),jae=ze({modelValue:{type:me([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:is,inputSize:is,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:me(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:me(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:za,default:"top"},marks:{type:me(Object)},validateEvent:{type:Boolean,default:!0}}),lv=e=>ht(e)||tt(e)&&e.every(ht),Kae={[It]:lv,[Cs]:lv,[an]:lv},Wae=(e,t,n)=>{const s=B();return Tt(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),mn(window,"resize",n),await it(),n()}),{sliderWrapper:s}},qae=e=>E(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,s)=>n-s).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]})):[]),Gae=(e,t,n)=>{const{form:s,formItem:r}=Is(),i=nn(),o=B(),a=B(),l={firstButton:o,secondButton:a},u=E(()=>e.disabled||(s==null?void 0:s.disabled)||!1),d=E(()=>Math.min(t.firstValue,t.secondValue)),f=E(()=>Math.max(t.firstValue,t.secondValue)),h=E(()=>e.range?`${100*(f.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),p=E(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),g=E(()=>e.vertical?{height:e.height}:{}),m=E(()=>e.vertical?{height:h.value,bottom:p.value}:{width:h.value,left:p.value}),v=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},y=W=>{const j=e.min+W*(e.max-e.min)/100;if(!e.range)return o;let R;return Math.abs(d.value-j)<Math.abs(f.value-j)?R=t.firstValue<t.secondValue?"firstButton":"secondButton":R=t.firstValue>t.secondValue?"firstButton":"secondButton",l[R]},T=W=>{const j=y(W);return j.value.setPosition(W),j},_=W=>{t.firstValue=W,w(e.range?[d.value,f.value]:W)},S=W=>{t.secondValue=W,e.range&&w([d.value,f.value])},w=W=>{n(It,W),n(Cs,W)},A=async()=>{await it(),n(an,e.range?[d.value,f.value]:e.modelValue)},M=W=>{var j,R,q,X,K,$;if(u.value||t.dragging)return;v();let H=0;if(e.vertical){const U=(q=(R=(j=W.touches)==null?void 0:j.item(0))==null?void 0:R.clientY)!=null?q:W.clientY;H=(i.value.getBoundingClientRect().bottom-U)/t.sliderSize*100}else{const U=($=(K=(X=W.touches)==null?void 0:X.item(0))==null?void 0:K.clientX)!=null?$:W.clientX,Z=i.value.getBoundingClientRect().left;H=(U-Z)/t.sliderSize*100}if(!(H<0||H>100))return T(H)};return{elFormItem:r,slider:i,firstButton:o,secondButton:a,sliderDisabled:u,minValue:d,maxValue:f,runwayStyle:g,barStyle:m,resetSize:v,setPosition:T,emitChange:A,onSliderWrapperPrevent:W=>{var j,R;((j=l.firstButton.value)!=null&&j.dragging||(R=l.secondButton.value)!=null&&R.dragging)&&W.preventDefault()},onSliderClick:W=>{M(W)&&A()},onSliderDown:async W=>{const j=M(W);j&&(await it(),j.value.onButtonDown(W))},setFirstValue:_,setSecondValue:S}},{left:Yae,down:Xae,right:Qae,up:Jae,home:Zae,end:ele,pageUp:tle,pageDown:nle}=at,sle=(e,t,n)=>{const s=B(),r=B(!1),i=E(()=>t.value instanceof Function),o=E(()=>i.value&&t.value(e.modelValue)||e.modelValue),a=Os(()=>{n.value&&(r.value=!0)},50),l=Os(()=>{n.value&&(r.value=!1)},50);return{tooltip:s,tooltipVisible:r,formatValue:o,displayTooltip:a,hideTooltip:l}},rle=(e,t,n)=>{const{disabled:s,min:r,max:i,step:o,showTooltip:a,precision:l,sliderSize:u,formatTooltip:d,emitChange:f,resetSize:h,updateDragging:p}=Qe(PP),{tooltip:g,tooltipVisible:m,formatValue:v,displayTooltip:y,hideTooltip:T}=sle(e,d,a),_=B(),S=E(()=>`${(e.modelValue-r.value)/(i.value-r.value)*100}%`),w=E(()=>e.vertical?{bottom:S.value}:{left:S.value}),A=()=>{t.hovering=!0,y()},M=()=>{t.hovering=!1,t.dragging||T()},N=Q=>{s.value||(Q.preventDefault(),H(Q),window.addEventListener("mousemove",U),window.addEventListener("touchmove",U),window.addEventListener("mouseup",Z),window.addEventListener("touchend",Z),window.addEventListener("contextmenu",Z),_.value.focus())},L=Q=>{s.value||(t.newPosition=Number.parseFloat(S.value)+Q/(i.value-r.value)*100,ue(t.newPosition),f())},F=()=>{L(-o.value)},W=()=>{L(o.value)},j=()=>{L(-o.value*4)},R=()=>{L(o.value*4)},q=()=>{s.value||(ue(0),f())},X=()=>{s.value||(ue(100),f())},K=Q=>{let ae=!0;[Yae,Xae].includes(Q.key)?F():[Qae,Jae].includes(Q.key)?W():Q.key===Zae?q():Q.key===ele?X():Q.key===nle?j():Q.key===tle?R():ae=!1,ae&&Q.preventDefault()},$=Q=>{let ae,Ee;return Q.type.startsWith("touch")?(Ee=Q.touches[0].clientY,ae=Q.touches[0].clientX):(Ee=Q.clientY,ae=Q.clientX),{clientX:ae,clientY:Ee}},H=Q=>{t.dragging=!0,t.isClick=!0;const{clientX:ae,clientY:Ee}=$(Q);e.vertical?t.startY=Ee:t.startX=ae,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},U=Q=>{if(t.dragging){t.isClick=!1,y(),h();let ae;const{clientX:Ee,clientY:le}=$(Q);e.vertical?(t.currentY=le,ae=(t.startY-t.currentY)/u.value*100):(t.currentX=Ee,ae=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+ae,ue(t.newPosition)}},Z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||T(),t.isClick||ue(t.newPosition),f()},0),window.removeEventListener("mousemove",U),window.removeEventListener("touchmove",U),window.removeEventListener("mouseup",Z),window.removeEventListener("touchend",Z),window.removeEventListener("contextmenu",Z))},ue=async Q=>{if(Q===null||Number.isNaN(+Q))return;Q<0?Q=0:Q>100&&(Q=100);const ae=100/((i.value-r.value)/o.value);let le=Math.round(Q/ae)*ae*(i.value-r.value)*.01+r.value;le=Number.parseFloat(le.toFixed(l.value)),le!==e.modelValue&&n(It,le),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await it(),t.dragging&&y(),g.value.updatePopper()};return ke(()=>t.dragging,Q=>{p(Q)}),{disabled:s,button:_,tooltip:g,tooltipVisible:m,showTooltip:a,wrapperStyle:w,formatValue:v,handleMouseEnter:A,handleMouseLeave:M,onButtonDown:N,onKeyDown:K,setPosition:ue}},ile=(e,t,n,s)=>({stops:E(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const o=(e.max-e.min)/e.step,a=100*e.step/(e.max-e.min),l=Array.from({length:o-1}).map((u,d)=>(d+1)*a);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(s.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}%`}}),ole=(e,t,n,s,r,i)=>{const o=u=>{r(It,u),r(Cs,u)},a=()=>e.range?![n.value,s.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,l=()=>{var u,d;e.min>e.max&&zn("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],a()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(h=>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,a()&&(e.validateEvent&&((d=i==null?void 0:i.validate)==null||d.call(i,"change").catch(h=>void 0)),t.oldValue=f)))};l(),ke(()=>t.dragging,u=>{u||l()}),ke(()=>e.modelValue,(u,d)=>{t.dragging||Array.isArray(u)&&Array.isArray(d)&&u.every((f,h)=>f===d[h])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),ke(()=>[e.min,e.max],()=>{l()})},ale=ze({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:za,default:"top"}}),lle={[It]:e=>ht(e)},ule=["tabindex"],cle=te({name:"ElSliderButton"}),dle=te({...cle,props:ale,emits:lle,setup(e,{expose:t,emit:n}){const s=e,r=Ne("slider"),i=Bt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:s.modelValue}),{disabled:o,button:a,tooltip:l,showTooltip:u,tooltipVisible:d,wrapperStyle:f,formatValue:h,handleMouseEnter:p,handleMouseLeave:g,onButtonDown:m,onKeyDown:v,setPosition:y}=rle(s,i,n),{hovering:T,dragging:_}=Hn(i);return t({onButtonDown:m,onKeyDown:v,setPosition:y,hovering:T,dragging:_}),(S,w)=>(x(),z("div",{ref_key:"button",ref:a,class:I([c(r).e("button-wrapper"),{hover:c(T),dragging:c(_)}]),style:st(c(f)),tabindex:c(o)?-1:0,onMouseenter:w[0]||(w[0]=(...A)=>c(p)&&c(p)(...A)),onMouseleave:w[1]||(w[1]=(...A)=>c(g)&&c(g)(...A)),onMousedown:w[2]||(w[2]=(...A)=>c(m)&&c(m)(...A)),onTouchstart:w[3]||(w[3]=(...A)=>c(m)&&c(m)(...A)),onFocus:w[4]||(w[4]=(...A)=>c(p)&&c(p)(...A)),onBlur:w[5]||(w[5]=(...A)=>c(g)&&c(g)(...A)),onKeydown:w[6]||(w[6]=(...A)=>c(v)&&c(v)(...A))},[G(c(As),{ref_key:"tooltip",ref:l,visible:c(d),placement:S.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":S.tooltipClass,disabled:!c(u),persistent:""},{content:ee(()=>[V("span",null,we(c(h)),1)]),default:ee(()=>[V("div",{class:I([c(r).e("button"),{hover:c(T),dragging:c(_)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,ule))}});var ZC=Ue(dle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const fle=ze({mark:{type:me([String,Object]),default:void 0}});var hle=te({name:"ElSliderMarker",props:fle,setup(e){const t=Ne("slider"),n=E(()=>mt(e.mark)?e.mark:e.mark.label),s=E(()=>mt(e.mark)?void 0:e.mark.style);return()=>ot("div",{class:t.e("marks-text"),style:s.value},n.value)}});const ple=["id","role","aria-label","aria-labelledby"],mle={key:1},gle=te({name:"ElSlider"}),vle=te({...gle,props:jae,emits:Kae,setup(e,{expose:t,emit:n}){const s=e,r=Ne("slider"),{t:i}=qt(),o=Bt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:a,slider:l,firstButton:u,secondButton:d,sliderDisabled:f,minValue:h,maxValue:p,runwayStyle:g,barStyle:m,resetSize:v,emitChange:y,onSliderWrapperPrevent:T,onSliderClick:_,onSliderDown:S,setFirstValue:w,setSecondValue:A}=Gae(s,o,n),{stops:M,getStopStyle:N}=ile(s,o,h,p),{inputId:L,isLabeledByFormItem:F}=Ko(s,{formItemContext:a}),W=Fn(),j=E(()=>s.inputSize||W.value),R=E(()=>s.label||i("el.slider.defaultLabel",{min:s.min,max:s.max})),q=E(()=>s.range?s.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):R.value),X=E(()=>s.formatValueText?s.formatValueText(Q.value):`${Q.value}`),K=E(()=>s.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),$=E(()=>s.formatValueText?s.formatValueText(ae.value):`${ae.value}`),H=E(()=>[r.b(),r.m(W.value),r.is("vertical",s.vertical),{[r.m("with-input")]:s.showInput}]),U=qae(s);ole(s,o,h,p,n,a);const Z=E(()=>{const ie=[s.min,s.max,s.step].map(ce=>{const ne=`${ce}`.split(".")[1];return ne?ne.length:0});return Math.max.apply(null,ie)}),{sliderWrapper:ue}=Wae(s,o,v),{firstValue:Q,secondValue:ae,sliderSize:Ee}=Hn(o),le=ie=>{o.dragging=ie};return Nt(PP,{...Hn(s),sliderSize:Ee,disabled:f,precision:Z,emitChange:y,resetSize:v,updateDragging:le}),t({onSliderClick:_}),(ie,ce)=>{var ne,pe;return x(),z("div",{id:ie.range?c(L):void 0,ref_key:"sliderWrapper",ref:ue,class:I(c(H)),role:ie.range?"group":void 0,"aria-label":ie.range&&!c(F)?c(R):void 0,"aria-labelledby":ie.range&&c(F)?(ne=c(a))==null?void 0:ne.labelId:void 0,onTouchstart:ce[2]||(ce[2]=(...Te)=>c(T)&&c(T)(...Te)),onTouchmove:ce[3]||(ce[3]=(...Te)=>c(T)&&c(T)(...Te))},[V("div",{ref_key:"slider",ref:l,class:I([c(r).e("runway"),{"show-input":ie.showInput&&!ie.range},c(r).is("disabled",c(f))]),style:st(c(g)),onMousedown:ce[0]||(ce[0]=(...Te)=>c(S)&&c(S)(...Te)),onTouchstart:ce[1]||(ce[1]=(...Te)=>c(S)&&c(S)(...Te))},[V("div",{class:I(c(r).e("bar")),style:st(c(m))},null,6),G(ZC,{id:ie.range?void 0:c(L),ref_key:"firstButton",ref:u,"model-value":c(Q),vertical:ie.vertical,"tooltip-class":ie.tooltipClass,placement:ie.placement,role:"slider","aria-label":ie.range||!c(F)?c(q):void 0,"aria-labelledby":!ie.range&&c(F)?(pe=c(a))==null?void 0:pe.labelId:void 0,"aria-valuemin":ie.min,"aria-valuemax":ie.range?c(ae):ie.max,"aria-valuenow":c(Q),"aria-valuetext":c(X),"aria-orientation":ie.vertical?"vertical":"horizontal","aria-disabled":c(f),"onUpdate:modelValue":c(w)},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"]),ie.range?(x(),ve(ZC,{key:0,ref_key:"secondButton",ref:d,"model-value":c(ae),vertical:ie.vertical,"tooltip-class":ie.tooltipClass,placement:ie.placement,role:"slider","aria-label":c(K),"aria-valuemin":c(Q),"aria-valuemax":ie.max,"aria-valuenow":c(ae),"aria-valuetext":c($),"aria-orientation":ie.vertical?"vertical":"horizontal","aria-disabled":c(f),"onUpdate:modelValue":c(A)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):he("v-if",!0),ie.showStops?(x(),z("div",mle,[(x(!0),z(et,null,kt(c(M),(Te,He)=>(x(),z("div",{key:He,class:I(c(r).e("stop")),style:st(c(N)(Te))},null,6))),128))])):he("v-if",!0),c(U).length>0?(x(),z(et,{key:2},[V("div",null,[(x(!0),z(et,null,kt(c(U),(Te,He)=>(x(),z("div",{key:He,style:st(c(N)(Te.position)),class:I([c(r).e("stop"),c(r).e("marks-stop")])},null,6))),128))]),V("div",{class:I(c(r).e("marks"))},[(x(!0),z(et,null,kt(c(U),(Te,He)=>(x(),ve(c(hle),{key:He,mark:Te.mark,style:st(c(N)(Te.position))},null,8,["mark","style"]))),128))],2)],64)):he("v-if",!0)],38),ie.showInput&&!ie.range?(x(),ve(c(sP),{key:0,ref:"input","model-value":c(Q),class:I(c(r).e("input")),step:ie.step,disabled:c(f),controls:ie.showInputControls,min:ie.min,max:ie.max,debounce:ie.debounce,size:c(j),"onUpdate:modelValue":c(w),onChange:c(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):he("v-if",!0)],42,ple)}}});var yle=Ue(vle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const ble=Ot(yle),_le=ze({prefixCls:{type:String}}),eE=te({name:"ElSpaceItem",props:_le,setup(e,{slots:t}){const n=Ne("space"),s=E(()=>`${e.prefixCls||n.b()}__item`);return()=>ot("div",{class:s.value},xe(t,"default"))}}),tE={small:8,default:12,large:16};function Tle(e){const t=Ne("space"),n=E(()=>[t.b(),t.m(e.direction),e.class]),s=B(0),r=B(0),i=E(()=>{const a=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${r.value}px`}:{},l={alignItems:e.alignment};return[a,l,e.style]}),o=E(()=>{const a={paddingBottom:`${r.value}px`,marginRight:`${s.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[a,l]});return nr(()=>{const{size:a="small",wrap:l,direction:u,fill:d}=e;if(tt(a)){const[f=0,h=0]=a;s.value=f,r.value=h}else{let f;ht(a)?f=a:f=tE[a||"small"]||tE.small,(l||d)&&u==="horizontal"?s.value=r.value=f:u==="horizontal"?(s.value=f,r.value=0):(r.value=f,s.value=0)}}),{classes:n,containerStyle:i,itemStyle:o}}const Sle=ze({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:me([String,Object,Array]),default:""},style:{type:me([String,Array,Object]),default:""},alignment:{type:me(String),default:"center"},prefixCls:{type:String},spacer:{type:me([Object,String,Number,Array]),default:null,validator:e=>gn(e)||ht(e)||mt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Ci,validator:e=>ht(e)||tt(e)&&e.length===2&&e.every(ht)}}),wle=te({name:"ElSpace",props:Sle,setup(e,{slots:t}){const{classes:n,containerStyle:s,itemStyle:r}=Tle(e);function i(o,a="",l=[]){const{prefixCls:u}=e;return o.forEach((d,f)=>{f0(d)?tt(d.children)&&d.children.forEach((h,p)=>{f0(h)&&tt(h.children)?i(h.children,`${a+p}-`,l):l.push(G(eE,{style:r.value,prefixCls:u,key:`nested-${a+p}`},{default:()=>[h]},dr.PROPS|dr.STYLE,["style","prefixCls"]))}):QK(d)&&l.push(G(eE,{style:r.value,prefixCls:u,key:`LoopKey${a+f}`},{default:()=>[d]},dr.PROPS|dr.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:a,direction:l}=e,u=xe(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(tt(u.children)){let d=i(u.children);if(a){const f=d.length-1;d=d.reduce((h,p,g)=>{const m=[...h,p];return g!==f&&m.push(G("span",{style:[r.value,l==="vertical"?"width: 100%":null],key:g},[gn(a)?a:wt(a,dr.TEXT)],dr.STYLE)),m},[])}return G("div",{class:n.value,style:s.value},d,dr.STYLE|dr.CLASS)}return u.children}}}),Cle=Ot(wle),Ele=ze({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:me([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:me([String,Object,Array])}}),xle=te({name:"ElStatistic"}),kle=te({...xle,props:Ele,setup(e,{expose:t}){const n=e,s=Ne("statistic"),r=E(()=>{const{value:i,formatter:o,precision:a,decimalSeparator:l,groupSeparator:u}=n;if(pt(o))return o(i);if(!ht(i))return i;let[d,f=""]=String(i).split(".");return f=f.padEnd(a,"0").slice(0,a>0?a:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,u),[d,f].join(f?l:"")});return t({displayValue:r}),(i,o)=>(x(),z("div",{class:I(c(s).b())},[i.$slots.title||i.title?(x(),z("div",{key:0,class:I(c(s).e("head"))},[xe(i.$slots,"title",{},()=>[wt(we(i.title),1)])],2)):he("v-if",!0),V("div",{class:I(c(s).e("content"))},[i.$slots.prefix||i.prefix?(x(),z("div",{key:0,class:I(c(s).e("prefix"))},[xe(i.$slots,"prefix",{},()=>[V("span",null,we(i.prefix),1)])],2)):he("v-if",!0),V("span",{class:I(c(s).e("number")),style:st(i.valueStyle)},we(c(r)),7),i.$slots.suffix||i.suffix?(x(),z("div",{key:1,class:I(c(s).e("suffix"))},[xe(i.$slots,"suffix",{},()=>[V("span",null,we(i.suffix),1)])],2)):he("v-if",!0)],2)],2))}});var Ole=Ue(kle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const $P=Ot(Ole),Ale=ze({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:me([Number,Object]),default:0},valueStyle:{type:me([String,Object,Array])}}),Ile={finish:()=>!0,[an]:e=>ht(e)},Ple=[["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]],nE=e=>ht(e)?new Date(e).getTime():e.valueOf(),sE=(e,t)=>{let n=e;const s=/\[([^\]]*)]/g;return Ple.reduce((i,[o,a])=>{const l=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/a);return n-=u*a,i.replace(l,d=>String(u).padStart(d.length,"0"))}return i},t).replace(s,"$1")},$le=te({name:"ElCountdown"}),Nle=te({...$le,props:Ale,emits:Ile,setup(e,{expose:t,emit:n}){const s=e;let r;const i=B(nE(s.value)-Date.now()),o=E(()=>sE(i.value,s.format)),a=d=>sE(d,s.format),l=()=>{r&&(Am(r),r=void 0)},u=()=>{const d=nE(s.value),f=()=>{let h=d-Date.now();n("change",h),h<=0?(h=0,l(),n("finish")):r=ad(f),i.value=h};r=ad(f)};return ke(()=>[s.value,s.format],()=>{l(),u()},{immediate:!0}),ln(()=>{l()}),t({displayValue:o}),(d,f)=>(x(),ve(c($P),{value:i.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:a},Ki({_:2},[kt(d.$slots,(h,p)=>({name:p,fn:ee(()=>[xe(d.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Mle=Ue(Nle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const Rle=Ot(Mle),Lle=ze({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Dle={[an]:(e,t)=>[e,t].every(ht)},Fle=te({name:"ElSteps"}),Ble=te({...Fle,props:Lle,emits:Dle,setup(e,{emit:t}){const n=e,s=Ne("steps"),r=B([]);return ke(r,()=>{r.value.forEach((i,o)=>{i.setIndex(o)})}),Nt("ElSteps",{props:n,steps:r}),ke(()=>n.active,(i,o)=>{t(an,i,o)}),(i,o)=>(x(),z("div",{class:I([c(s).b(),c(s).m(i.simple?"simple":i.direction)])},[xe(i.$slots,"default")],2))}});var Vle=Ue(Ble,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const Ule=ze({title:{type:String,default:""},icon:{type:on},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Hle=te({name:"ElStep"}),zle=te({...Hle,props:Ule,setup(e){const t=e,n=Ne("step"),s=B(-1),r=B({}),i=B(""),o=Qe("ElSteps"),a=At();Tt(()=>{ke([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([w])=>{_(w)},{immediate:!0})}),ln(()=>{o.steps.value=o.steps.value.filter(w=>w.uid!==(a==null?void 0:a.uid))});const l=E(()=>t.status||i.value),u=E(()=>{const w=o.steps.value[s.value-1];return w?w.currentStatus:"wait"}),d=E(()=>o.props.alignCenter),f=E(()=>o.props.direction==="vertical"),h=E(()=>o.props.simple),p=E(()=>o.steps.value.length),g=E(()=>{var w;return((w=o.steps.value[p.value-1])==null?void 0:w.uid)===(a==null?void 0:a.uid)}),m=E(()=>h.value?"":o.props.space),v=E(()=>{const w={flexBasis:ht(m.value)?`${m.value}px`:m.value?m.value:`${100/(p.value-(d.value?0:1))}%`};return f.value||g.value&&(w.maxWidth=`${100/p.value}%`),w}),y=w=>{s.value=w},T=w=>{const A=w==="wait",M={transitionDelay:`${A?"-":""}${150*s.value}ms`},N=w===o.props.processStatus||A?0:100;M.borderWidth=N&&!h.value?"1px":0,M[o.props.direction==="vertical"?"height":"width"]=`${N}%`,r.value=M},_=w=>{w>s.value?i.value=o.props.finishStatus:w===s.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const A=o.steps.value[s.value-1];A&&A.calcProgress(i.value)},S=Bt({uid:E(()=>a==null?void 0:a.uid),currentStatus:l,setIndex:y,calcProgress:T});return o.steps.value=[...o.steps.value,S],(w,A)=>(x(),z("div",{style:st(c(v)),class:I([c(n).b(),c(n).is(c(h)?"simple":c(o).props.direction),c(n).is("flex",c(g)&&!c(m)&&!c(d)),c(n).is("center",c(d)&&!c(f)&&!c(h))])},[he(" icon & line "),V("div",{class:I([c(n).e("head"),c(n).is(c(l))])},[c(h)?he("v-if",!0):(x(),z("div",{key:0,class:I(c(n).e("line"))},[V("i",{class:I(c(n).e("line-inner")),style:st(r.value)},null,6)],2)),V("div",{class:I([c(n).e("icon"),c(n).is(w.icon||w.$slots.icon?"icon":"text")])},[xe(w.$slots,"icon",{},()=>[w.icon?(x(),ve(c(nt),{key:0,class:I(c(n).e("icon-inner"))},{default:ee(()=>[(x(),ve(Mt(w.icon)))]),_:1},8,["class"])):c(l)==="success"?(x(),ve(c(nt),{key:1,class:I([c(n).e("icon-inner"),c(n).is("status")])},{default:ee(()=>[G(c(qd))]),_:1},8,["class"])):c(l)==="error"?(x(),ve(c(nt),{key:2,class:I([c(n).e("icon-inner"),c(n).is("status")])},{default:ee(()=>[G(c(Hr))]),_:1},8,["class"])):c(h)?he("v-if",!0):(x(),z("div",{key:3,class:I(c(n).e("icon-inner"))},we(s.value+1),3))])],2)],2),he(" title & description "),V("div",{class:I(c(n).e("main"))},[V("div",{class:I([c(n).e("title"),c(n).is(c(l))])},[xe(w.$slots,"title",{},()=>[wt(we(w.title),1)])],2),c(h)?(x(),z("div",{key:0,class:I(c(n).e("arrow"))},null,2)):(x(),z("div",{key:1,class:I([c(n).e("description"),c(n).is(c(l))])},[xe(w.$slots,"description",{},()=>[wt(we(w.description),1)])],2))],2)],6))}});var NP=Ue(zle,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const jle=Ot(Vle,{Step:NP}),Kle=Cn(NP),Wle=ze({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:on},inactiveIcon:{type:on},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:me(Function)},size:{type:String,validator:km},tabindex:{type:[String,Number]}}),qle={[It]:e=>Dn(e)||mt(e)||ht(e),[an]:e=>Dn(e)||mt(e)||ht(e),[Cs]:e=>Dn(e)||mt(e)||ht(e)},Gle=["onClick"],Yle=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Xle=["aria-hidden"],Qle=["aria-hidden"],Jle=["aria-hidden"],iy="ElSwitch",Zle=te({name:iy}),eue=te({...Zle,props:Wle,emits:qle,setup(e,{expose:t,emit:n}){const s=e,r=At(),{formItem:i}=Is(),o=Fn(),a=Ne("switch");gi({from:'"value"',replacement:'"model-value" or "v-model"',scope:iy,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},E(()=>{var w;return!!((w=r.vnode.props)!=null&&w.value)}));const{inputId:l}=Ko(s,{formItemContext:i}),u=zs(E(()=>s.loading)),d=B(s.modelValue!==!1),f=B(),h=B(),p=E(()=>[a.b(),a.m(o.value),a.is("disabled",u.value),a.is("checked",v.value)]),g=E(()=>({width:An(s.width)}));ke(()=>s.modelValue,()=>{d.value=!0}),ke(()=>s.value,()=>{d.value=!1});const m=E(()=>d.value?s.modelValue:s.value),v=E(()=>m.value===s.activeValue);[s.activeValue,s.inactiveValue].includes(m.value)||(n(It,s.inactiveValue),n(an,s.inactiveValue),n(Cs,s.inactiveValue)),ke(v,w=>{var A;f.value.checked=w,s.validateEvent&&((A=i==null?void 0:i.validate)==null||A.call(i,"change").catch(M=>void 0))});const y=()=>{const w=v.value?s.inactiveValue:s.activeValue;n(It,w),n(an,w),n(Cs,w),it(()=>{f.value.checked=v.value})},T=()=>{if(u.value)return;const{beforeChange:w}=s;if(!w){y();return}const A=w();[jc(A),Dn(A)].includes(!0)||zn(iy,"beforeChange must return type `Promise<boolean>` or `boolean`"),jc(A)?A.then(N=>{N&&y()}).catch(N=>{}):A&&y()},_=E(()=>a.cssVarBlock({...s.activeColor?{"on-color":s.activeColor}:null,...s.inactiveColor?{"off-color":s.inactiveColor}:null,...s.borderColor?{"border-color":s.borderColor}:null})),S=()=>{var w,A;(A=(w=f.value)==null?void 0:w.focus)==null||A.call(w)};return Tt(()=>{f.value.checked=v.value}),t({focus:S,checked:v}),(w,A)=>(x(),z("div",{class:I(c(p)),style:st(c(_)),onClick:ft(T,["prevent"])},[V("input",{id:c(l),ref_key:"input",ref:f,class:I(c(a).e("input")),type:"checkbox",role:"switch","aria-checked":c(v),"aria-disabled":c(u),name:w.name,"true-value":w.activeValue,"false-value":w.inactiveValue,disabled:c(u),tabindex:w.tabindex,onChange:y,onKeydown:zt(T,["enter"])},null,42,Yle),!w.inlinePrompt&&(w.inactiveIcon||w.inactiveText)?(x(),z("span",{key:0,class:I([c(a).e("label"),c(a).em("label","left"),c(a).is("active",!c(v))])},[w.inactiveIcon?(x(),ve(c(nt),{key:0},{default:ee(()=>[(x(),ve(Mt(w.inactiveIcon)))]),_:1})):he("v-if",!0),!w.inactiveIcon&&w.inactiveText?(x(),z("span",{key:1,"aria-hidden":c(v)},we(w.inactiveText),9,Xle)):he("v-if",!0)],2)):he("v-if",!0),V("span",{ref_key:"core",ref:h,class:I(c(a).e("core")),style:st(c(g))},[w.inlinePrompt?(x(),z("div",{key:0,class:I(c(a).e("inner"))},[w.activeIcon||w.inactiveIcon?(x(),ve(c(nt),{key:0,class:I(c(a).is("icon"))},{default:ee(()=>[(x(),ve(Mt(c(v)?w.activeIcon:w.inactiveIcon)))]),_:1},8,["class"])):w.activeText||w.inactiveText?(x(),z("span",{key:1,class:I(c(a).is("text")),"aria-hidden":!c(v)},we(c(v)?w.activeText:w.inactiveText),11,Qle)):he("v-if",!0)],2)):he("v-if",!0),V("div",{class:I(c(a).e("action"))},[w.loading?(x(),ve(c(nt),{key:0,class:I(c(a).is("loading"))},{default:ee(()=>[G(c(zo))]),_:1},8,["class"])):he("v-if",!0)],2)],6),!w.inlinePrompt&&(w.activeIcon||w.activeText)?(x(),z("span",{key:1,class:I([c(a).e("label"),c(a).em("label","right"),c(a).is("active",c(v))])},[w.activeIcon?(x(),ve(c(nt),{key:0},{default:ee(()=>[(x(),ve(Mt(w.activeIcon)))]),_:1})):he("v-if",!0),!w.activeIcon&&w.activeText?(x(),z("span",{key:1,"aria-hidden":!c(v)},we(w.activeText),9,Jle)):he("v-if",!0)],2)):he("v-if",!0)],14,Gle))}});var tue=Ue(eue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const nue=Ot(tue);/*!
|
||
* escape-html
|
||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
* Copyright(c) 2015 Andreas Lubbe
|
||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
* MIT Licensed
|
||
*/var sue=/["'&<>]/,rue=iue;function iue(e){var t=""+e,n=sue.exec(t);if(!n)return t;var s,r="",i=0,o=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}o!==i&&(r+=t.substring(o,i)),o=i+1,r+=s}return o!==i?r+t.substring(o,i):r}const uv=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},oue=function(e,t,n,s,r){if(!t&&!s&&(!r||Array.isArray(r)&&!r.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=s?null:function(a,l){return r?(Array.isArray(r)||(r=[r]),r.map(u=>typeof u=="string"?hn(a,u):u(a,l,e))):(t!=="$key"&&Pt(a)&&"$value"in a&&(a=a.$value),[Pt(a)?hn(a,t):a])},o=function(a,l){if(s)return s(a.value,l.value);for(let u=0,d=a.key.length;u<d;u++){if(a.key[u]<l.key[u])return-1;if(a.key[u]>l.key[u])return 1}return 0};return e.map((a,l)=>({value:a,index:l,key:i?i(a,l):null})).sort((a,l)=>{let u=o(a,l);return u||(u=a.index-l.index),u*+n}).map(a=>a.value)},MP=function(e,t){let n=null;return e.columns.forEach(s=>{s.id===t&&(n=s)}),n},aue=function(e,t){let n=null;for(let s=0;s<e.columns.length;s++){const r=e.columns[s];if(r.columnKey===t){n=r;break}}return n||zn("ElTable",`No column matching with column-key: ${t}`),n},rE=function(e,t,n){const s=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return s?MP(e,s[0]):null},ns=(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 s=e;for(const r of n)s=s[r];return`${s}`}else if(typeof t=="function")return t.call(null,e)},ba=function(e,t){const n={};return(e||[]).forEach((s,r)=>{n[ns(s,t)]={row:s,index:r}}),n};function lue(e,t){const n={};let s;for(s in e)n[s]=e[s];for(s in t)if(Ft(t,s)){const r=t[s];typeof r<"u"&&(n[s]=r)}return n}function M_(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function RP(e){return e===""||e!==void 0&&(e=M_(e),Number.isNaN(e)&&(e=80)),e}function uue(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function cue(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function Nc(e,t,n){let s=!1;const r=e.indexOf(t),i=r!==-1,o=a=>{a==="add"?e.push(t):e.splice(r,1),s=!0,tt(t.children)&&t.children.forEach(l=>{Nc(e,l,n??!i)})};return Dn(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),s}function due(e,t,n="children",s="hasChildren"){const r=o=>!(Array.isArray(o)&&o.length);function i(o,a,l){t(o,a,l),a.forEach(u=>{if(u[s]){t(u,null,l+1);return}const d=u[n];r(d)||i(u,d,l+1)})}e.forEach(o=>{if(o[s]){t(o,null,0);return}const a=o[n];r(a)||i(o,a,0)})}let $i;function fue(e,t,n,s,r){r=mO({enterable:!0,showArrow:!0},r);const i=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${i}-scrollbar__wrap`);function a(){const v=r.effect==="light",y=document.createElement("div");return y.className=[`${i}-popper`,v?"is-light":"is-dark",r.popperClass||""].join(" "),n=rue(n),y.innerHTML=n,y.style.zIndex=String(s()),e==null||e.appendChild(y),y}function l(){const v=document.createElement("div");return v.className=`${i}-popper__arrow`,v}function u(){d&&d.update()}$i==null||$i(),$i=()=>{try{d&&d.destroy(),p&&(e==null||e.removeChild(p)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",h),o==null||o.removeEventListener("scroll",$i),$i=void 0}catch{}};let d=null,f=u,h=$i;r.enterable&&({onOpen:f,onClose:h}=ZO({showAfter:r.showAfter,hideAfter:r.hideAfter,open:u,close:$i}));const p=a();p.onmouseenter=f,p.onmouseleave=h;const g=[];if(r.offset&&g.push({name:"offset",options:{offset:[0,r.offset]}}),r.showArrow){const v=p.appendChild(l());g.push({name:"arrow",options:{element:v,padding:10}})}const m=r.popperOptions||{};return d=XO(t,p,{placement:r.placement||"top",strategy:"fixed",...m,modifiers:m.modifiers?g.concat(m.modifiers):g}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",h),o==null||o.addEventListener("scroll",$i),d}function LP(e){return e.children?PU(e.children,LP):[e]}function iE(e,t){return e+t.colSpan}const DP=(e,t,n,s)=>{let r=0,i=e;const o=n.states.columns.value;if(s){const l=LP(s[e]);r=o.slice(0,o.indexOf(l[0])).reduce(iE,0),i=r+l.reduce(iE,0)-1}else r=e;let a;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(a="left");break;case"right":r>=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");break;default:i<n.states.fixedLeafColumnsLength.value?a="left":r>=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right")}return a?{direction:a,start:r,after:i}:{}},R_=(e,t,n,s,r,i=0)=>{const o=[],{direction:a,start:l,after:u}=DP(t,n,s,r);if(a){const d=a==="left";o.push(`${e}-fixed-column--${a}`),d&&u+i===s.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!d&&l-i===s.states.columns.value.length-s.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function oE(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const L_=(e,t,n,s)=>{const{direction:r,start:i=0,after:o=0}=DP(e,t,n,s);if(!r)return;const a={},l=r==="left",u=n.states.columns.value;return l?a.left=u.slice(0,i).reduce(oE,0):a.right=u.slice(o+1).reverse().reduce(oE,0),a},nu=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function hue(e){const t=At(),n=B(!1),s=B([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)s.value=l.slice();else if(u){const d=ba(s.value,u);s.value=l.reduce((f,h)=>{const p=ns(h,u);return d[p]&&f.push(h),f},[])}else s.value=[]},toggleRowExpansion:(l,u)=>{Nc(s.value,l,u)&&t.emit("expand-change",l,s.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,f=ba(u,d);s.value=l.reduce((h,p)=>{const g=f[p];return g&&h.push(g.row),h},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!ba(s.value,u)[ns(l,u)]:s.value.includes(l)},states:{expandRows:s,defaultExpandAll:n}}}function pue(e){const t=At(),n=B(null),s=B(null),r=u=>{t.store.assertRowKey(),n.value=u,o(u)},i=()=>{n.value=null},o=u=>{const{data:d,rowKey:f}=e;let h=null;f.value&&(h=(c(d)||[]).find(p=>ns(p,f.value)===u)),s.value=h,t.emit("current-change",s.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:u=>{const d=s.value;if(u&&u!==d){s.value=u,t.emit("current-change",s.value,d);return}!u&&d&&(s.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],f=s.value;if(!d.includes(f)&&f){if(u){const h=ns(f,u);o(h)}else s.value=null;s.value===null&&t.emit("current-change",null,f)}else n.value&&(o(n.value),i())},states:{_currentRowKey:n,currentRow:s}}}function mue(e){const t=B([]),n=B({}),s=B(16),r=B(!1),i=B({}),o=B("hasChildren"),a=B("children"),l=At(),u=E(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return f(y)}),d=E(()=>{const y=e.rowKey.value,T=Object.keys(i.value),_={};return T.length&&T.forEach(S=>{if(i.value[S].length){const w={children:[]};i.value[S].forEach(A=>{const M=ns(A,y);w.children.push(M),A[o.value]&&!_[M]&&(_[M]={children:[]})}),_[S]=w}}),_}),f=y=>{const T=e.rowKey.value,_={};return due(y,(S,w,A)=>{const M=ns(S,T);Array.isArray(w)?_[M]={children:w.map(N=>ns(N,T)),level:A}:r.value&&(_[M]={children:[],lazy:!0,level:A})},a.value,o.value),_},h=(y=!1,T=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const S=u.value,w=d.value,A=Object.keys(S),M={};if(A.length){const N=c(n),L=[],F=(j,R)=>{if(y)return t.value?T||t.value.includes(R):!!(T||j!=null&&j.expanded);{const q=T||t.value&&t.value.includes(R);return!!(j!=null&&j.expanded||q)}};A.forEach(j=>{const R=N[j],q={...S[j]};if(q.expanded=F(R,j),q.lazy){const{loaded:X=!1,loading:K=!1}=R||{};q.loaded=!!X,q.loading=!!K,L.push(j)}M[j]=q});const W=Object.keys(w);r.value&&W.length&&L.length&&W.forEach(j=>{const R=N[j],q=w[j].children;if(L.includes(j)){if(M[j].children.length!==0)throw new Error("[ElTable]children must be an empty array.");M[j].children=q}else{const{loaded:X=!1,loading:K=!1}=R||{};M[j]={lazy:!0,loaded:!!X,loading:!!K,expanded:F(R,j),children:q,level:""}}})}n.value=M,(_=l.store)==null||_.updateTableScrollY()};ke(()=>t.value,()=>{h(!0)}),ke(()=>u.value,()=>{h()}),ke(()=>d.value,()=>{h()});const p=y=>{t.value=y,h()},g=(y,T)=>{l.store.assertRowKey();const _=e.rowKey.value,S=ns(y,_),w=S&&n.value[S];if(S&&w&&"expanded"in w){const A=w.expanded;T=typeof T>"u"?!w.expanded:T,n.value[S].expanded=T,A!==T&&l.emit("expand-change",y,T),l.store.updateTableScrollY()}},m=y=>{l.store.assertRowKey();const T=e.rowKey.value,_=ns(y,T),S=n.value[_];r.value&&S&&"loaded"in S&&!S.loaded?v(y,_,S):g(y,void 0)},v=(y,T,_)=>{const{load:S}=l.props;S&&!n.value[T].loaded&&(n.value[T].loading=!0,S(y,_,w=>{if(!Array.isArray(w))throw new TypeError("[ElTable] data must be an array");n.value[T].loading=!1,n.value[T].loaded=!0,n.value[T].expanded=!0,w.length&&(i.value[T]=w),l.emit("expand-change",y,!0)}))};return{loadData:v,loadOrToggle:m,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:h,normalize:f,states:{expandRowKeys:t,treeData:n,indent:s,lazy:r,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:a}}}const gue=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:oue(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Fh=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,Fh(n.children)):t.push(n)}),t};function vue(){var e;const t=At(),{size:n}=Hn((e=t.proxy)==null?void 0:e.$props),s=B(null),r=B([]),i=B([]),o=B(!1),a=B([]),l=B([]),u=B([]),d=B([]),f=B([]),h=B([]),p=B([]),g=B([]),m=[],v=B(0),y=B(0),T=B(0),_=B(!1),S=B([]),w=B(!1),A=B(!1),M=B(null),N=B({}),L=B(null),F=B(null),W=B(null),j=B(null),R=B(null);ke(r,()=>t.state&&$(!1),{deep:!0});const q=()=>{if(!s.value)throw new Error("[ElTable] prop row-key is required")},X=De=>{var be;(be=De.children)==null||be.forEach(J=>{J.fixed=De.fixed,X(J)})},K=()=>{a.value.forEach(Re=>{X(Re)}),d.value=a.value.filter(Re=>Re.fixed===!0||Re.fixed==="left"),f.value=a.value.filter(Re=>Re.fixed==="right"),d.value.length>0&&a.value[0]&&a.value[0].type==="selection"&&!a.value[0].fixed&&(a.value[0].fixed=!0,d.value.unshift(a.value[0]));const De=a.value.filter(Re=>!Re.fixed);l.value=[].concat(d.value).concat(De).concat(f.value);const be=Fh(De),J=Fh(d.value),fe=Fh(f.value);v.value=be.length,y.value=J.length,T.value=fe.length,u.value=[].concat(J).concat(be).concat(fe),o.value=d.value.length>0||f.value.length>0},$=(De,be=!1)=>{De&&K(),be?t.state.doLayout():t.state.debouncedUpdateLayout()},H=De=>S.value.includes(De),U=()=>{_.value=!1,S.value.length&&(S.value=[],t.emit("selection-change",[]))},Z=()=>{let De;if(s.value){De=[];const be=ba(S.value,s.value),J=ba(r.value,s.value);for(const fe in be)Ft(be,fe)&&!J[fe]&&De.push(be[fe].row)}else De=S.value.filter(be=>!r.value.includes(be));if(De.length){const be=S.value.filter(J=>!De.includes(J));S.value=be,t.emit("selection-change",be.slice())}},ue=()=>(S.value||[]).slice(),Q=(De,be=void 0,J=!0)=>{if(Nc(S.value,De,be)){const Re=(S.value||[]).slice();J&&t.emit("select",Re,De),t.emit("selection-change",Re)}},ae=()=>{var De,be;const J=A.value?!_.value:!(_.value||S.value.length);_.value=J;let fe=!1,Re=0;const We=(be=(De=t==null?void 0:t.store)==null?void 0:De.states)==null?void 0:be.rowKey.value;r.value.forEach((St,$e)=>{const Ze=$e+Re;M.value?M.value.call(null,St,Ze)&&Nc(S.value,St,J)&&(fe=!0):Nc(S.value,St,J)&&(fe=!0),Re+=ie(ns(St,We))}),fe&&t.emit("selection-change",S.value?S.value.slice():[]),t.emit("select-all",S.value)},Ee=()=>{const De=ba(S.value,s.value);r.value.forEach(be=>{const J=ns(be,s.value),fe=De[J];fe&&(S.value[fe.index]=be)})},le=()=>{var De,be,J;if(((De=r.value)==null?void 0:De.length)===0){_.value=!1;return}let fe;s.value&&(fe=ba(S.value,s.value));const Re=function(Ze){return fe?!!fe[ns(Ze,s.value)]:S.value.includes(Ze)};let We=!0,St=0,$e=0;for(let Ze=0,Ct=(r.value||[]).length;Ze<Ct;Ze++){const xt=(J=(be=t==null?void 0:t.store)==null?void 0:be.states)==null?void 0:J.rowKey.value,Rt=Ze+$e,Qt=r.value[Ze],Nn=M.value&&M.value.call(null,Qt,Rt);if(Re(Qt))St++;else if(!M.value||Nn){We=!1;break}$e+=ie(ns(Qt,xt))}St===0&&(We=!1),_.value=We},ie=De=>{var be;if(!t||!t.store)return 0;const{treeData:J}=t.store.states;let fe=0;const Re=(be=J.value[De])==null?void 0:be.children;return Re&&(fe+=Re.length,Re.forEach(We=>{fe+=ie(We)})),fe},ce=(De,be)=>{Array.isArray(De)||(De=[De]);const J={};return De.forEach(fe=>{N.value[fe.id]=be,J[fe.columnKey||fe.id]=be}),J},ne=(De,be,J)=>{F.value&&F.value!==De&&(F.value.order=null),F.value=De,W.value=be,j.value=J},pe=()=>{let De=c(i);Object.keys(N.value).forEach(be=>{const J=N.value[be];if(!J||J.length===0)return;const fe=MP({columns:u.value},be);fe&&fe.filterMethod&&(De=De.filter(Re=>J.some(We=>fe.filterMethod.call(null,We,Re,fe))))}),L.value=De},Te=()=>{r.value=gue(L.value,{sortingColumn:F.value,sortProp:W.value,sortOrder:j.value})},He=(De=void 0)=>{De&&De.filter||pe(),Te()},Y=De=>{const{tableHeaderRef:be}=t.refs;if(!be)return;const J=Object.assign({},be.filterPanels),fe=Object.keys(J);if(fe.length)if(typeof De=="string"&&(De=[De]),Array.isArray(De)){const Re=De.map(We=>aue({columns:u.value},We));fe.forEach(We=>{const St=Re.find($e=>$e.id===We);St&&(St.filteredValue=[])}),t.store.commit("filterChange",{column:Re,values:[],silent:!0,multi:!0})}else fe.forEach(Re=>{const We=u.value.find(St=>St.id===Re);We&&(We.filteredValue=[])}),N.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},re=()=>{F.value&&(ne(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Se,toggleRowExpansion:Oe,updateExpandRows:Ve,states:_e,isRowExpanded:Be}=hue({data:r,rowKey:s}),{updateTreeExpandKeys:Ie,toggleTreeExpansion:Ae,updateTreeData:Me,loadOrToggle:Ye,states:qe}=mue({data:r,rowKey:s}),{updateCurrentRowData:Ce,updateCurrentRow:Ge,setCurrentRowKey:ut,states:bt}=pue({data:r,rowKey:s});return{assertRowKey:q,updateColumns:K,scheduleLayout:$,isSelected:H,clearSelection:U,cleanSelection:Z,getSelectionRows:ue,toggleRowSelection:Q,_toggleAllSelection:ae,toggleAllSelection:null,updateSelectionByRowKey:Ee,updateAllSelected:le,updateFilters:ce,updateCurrentRow:Ge,updateSort:ne,execFilter:pe,execSort:Te,execQuery:He,clearFilter:Y,clearSort:re,toggleRowExpansion:Oe,setExpandRowKeysAdapter:De=>{Se(De),Ie(De)},setCurrentRowKey:ut,toggleRowExpansionAdapter:(De,be)=>{u.value.some(({type:fe})=>fe==="expand")?Oe(De,be):Ae(De,be)},isRowExpanded:Be,updateExpandRows:Ve,updateCurrentRowData:Ce,loadOrToggle:Ye,updateTreeData:Me,states:{tableSize:n,rowKey:s,data:r,_data:i,isComplex:o,_columns:a,originColumns:l,columns:u,fixedColumns:d,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:p,rightFixedLeafColumns:g,updateOrderFns:m,leafColumnsLength:v,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:T,isAllSelected:_,selection:S,reserveSelection:w,selectOnIndeterminate:A,selectable:M,filters:N,filteredData:L,sortingColumn:F,sortProp:W,sortOrder:j,hoverRow:R,..._e,...qe,...bt}}}function oy(e,t){return e.map(n=>{var s;return n.id===t.id?t:((s=n.children)!=null&&s.length&&(n.children=oy(n.children,t)),n)})}function ay(e){e.forEach(t=>{var n,s;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(s=t.children)!=null&&s.length&&ay(t.children)}),e.sort((t,n)=>t.no-n.no)}function yue(){const e=At(),t=vue();return{ns:Ne("table"),...t,mutations:{setData(o,a){const l=c(o._data)!==a;o.data.value=a,o._data.value=a,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),c(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,a,l,u){const d=c(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(a),f=oy(d,l)):(d.push(a),f=d),ay(f),o._columns.value=f,o.updateOrderFns.push(u),a.type==="selection"&&(o.selectable.value=a.selectable,o.reserveSelection.value=a.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,a){var l;((l=a.getColumnIndex)==null?void 0:l.call(a))!==a.no&&(ay(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,a,l,u){const d=c(o._columns)||[];if(l)l.children.splice(l.children.findIndex(h=>h.id===a.id),1),it(()=>{var h;((h=l.children)==null?void 0:h.length)===0&&delete l.children}),o._columns.value=oy(d,l);else{const h=d.indexOf(a);h>-1&&(d.splice(h,1),o._columns.value=d)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,a){const{prop:l,order:u,init:d}=a;if(l){const f=c(o.columns).find(h=>h.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(o,a){const{sortingColumn:l,sortProp:u,sortOrder:d}=o,f=c(l),h=c(u),p=c(d);p===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const g={filter:!0};e.store.execQuery(g),(!a||!(a.silent||a.init))&&e.emit("sort-change",{column:f,prop:h,order:p}),e.store.updateTableScrollY()},filterChange(o,a){const{column:l,values:u,silent:d}=a,f=e.store.updateFilters(l,u);e.store.execQuery(),d||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,a){e.store.toggleRowSelection(a),e.store.updateAllSelected()},setHoverRow(o,a){o.hoverRow.value=a},setCurrentRow(o,a){e.store.updateCurrentRow(a)}},commit:function(o,...a){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(a));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){it(()=>e.layout.updateScrollY.apply(e.layout))}}}const Mc={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 bue(e,t){if(!e)throw new Error("Table is required.");const n=yue();return n.toggleAllSelection=Os(n._toggleAllSelection,10),Object.keys(Mc).forEach(s=>{FP(BP(t,s),s,n)}),_ue(n,t),n}function _ue(e,t){Object.keys(Mc).forEach(n=>{ke(()=>BP(t,n),s=>{FP(s,n,e)})})}function FP(e,t,n){let s=e,r=Mc[t];typeof Mc[t]=="object"&&(r=r.key,s=s||Mc[t].default),n.states[r].value=s}function BP(e,t){if(t.includes(".")){const n=t.split(".");let s=e;return n.forEach(r=>{s=s[r]}),s}else return e[t]}class Tue{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=B(null),this.scrollX=B(!1),this.scrollY=B(!1),this.bodyWidth=B(null),this.fixedWidth=B(null),this.rightFixedWidth=B(null),this.gutterWidth=0;for(const n in t)Ft(t,n)&&(rn(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 s=!0;const r=this.scrollY.value;return s=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=s,r!==s}return!1}setHeight(t,n="height"){if(!Ht)return;const s=this.table.vnode.el;if(t=uue(t),this.height.value=Number(t),!s&&(t||t===0))return it(()=>this.setHeight(t,n));typeof t=="number"?(s.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(s.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(s=>{s.isColumnGroup?t.push.apply(t,s.columns):t.push(s)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Ht)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let s=0;const r=this.getFlattenColumns(),i=r.filter(l=>typeof l.width!="number");if(r.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(r.forEach(l=>{s+=Number(l.width||l.minWidth||80)}),s<=n){this.scrollX.value=!1;const l=n-s;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((h,p)=>h+Number(p.minWidth||80),0),d=l/u;let f=0;i.forEach((h,p)=>{if(p===0)return;const g=Math.floor(Number(h.minWidth||80)*d);f+=g,h.realWidth=Number(h.minWidth||80)+g}),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(s,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),s+=l.realWidth}),this.scrollX.value=s>n,this.bodyWidth.value=s;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 a=this.store.states.rightFixedColumns.value;if(a.length>0){let l=0;a.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(s=>{var r,i;switch(t){case"columns":(r=s.state)==null||r.onColumnsChange(this);break;case"scrollable":(i=s.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Sue}=Sr,wue=te({name:"ElTableFilterPanel",components:{ElCheckbox:Sr,ElCheckboxGroup:Sue,ElScrollbar:ro,ElTooltip:As,ElIcon:nt,ArrowDown:Uo,ArrowUp:Wd},directives:{ClickOutside:Mo},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=At(),{t:n}=qt(),s=Ne("table-filter"),r=t==null?void 0:t.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const i=B(!1),o=B(null),a=E(()=>e.column&&e.column.filters),l=E({get:()=>{var S;return(((S=e.column)==null?void 0:S.filteredValue)||[])[0]},set:S=>{u.value&&(typeof S<"u"&&S!==null?u.value.splice(0,1,S):u.value.splice(0,1))}}),u=E({get(){return e.column?e.column.filteredValue||[]:[]},set(S){e.column&&e.upDataColumn("filteredValue",S)}}),d=E(()=>e.column?e.column.filterMultiple:!0),f=S=>S.value===l.value,h=()=>{i.value=!1},p=S=>{S.stopPropagation(),i.value=!i.value},g=()=>{i.value=!1},m=()=>{T(u.value),h()},v=()=>{u.value=[],T(u.value),h()},y=S=>{l.value=S,T(typeof S<"u"&&S!==null?u.value:[]),h()},T=S=>{e.store.commit("filterChange",{column:e.column,values:S}),e.store.updateAllSelected()};ke(i,S=>{e.column&&e.upDataColumn("filterOpened",S)},{immediate:!0});const _=E(()=>{var S,w;return(w=(S=o.value)==null?void 0:S.popperRef)==null?void 0:w.contentRef});return{tooltipVisible:i,multiple:d,filteredValue:u,filterValue:l,filters:a,handleConfirm:m,handleReset:v,handleSelect:y,isActive:f,t:n,ns:s,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:_,tooltip:o}}}),Cue={key:0},Eue=["disabled"],xue=["label","onClick"];function kue(e,t,n,s,r,i){const o=vt("el-checkbox"),a=vt("el-checkbox-group"),l=vt("el-scrollbar"),u=vt("arrow-up"),d=vt("arrow-down"),f=vt("el-icon"),h=vt("el-tooltip"),p=Qc("click-outside");return x(),ve(h,{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:ee(()=>[e.multiple?(x(),z("div",Cue,[V("div",{class:I(e.ns.e("content"))},[G(l,{"wrap-class":e.ns.e("wrap")},{default:ee(()=>[G(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:I(e.ns.e("checkbox-group"))},{default:ee(()=>[(x(!0),z(et,null,kt(e.filters,g=>(x(),ve(o,{key:g.value,label:g.value},{default:ee(()=>[wt(we(g.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),V("div",{class:I(e.ns.e("bottom"))},[V("button",{class:I({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},we(e.t("el.table.confirmFilter")),11,Eue),V("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},we(e.t("el.table.resetFilter")),1)],2)])):(x(),z("ul",{key:1,class:I(e.ns.e("list"))},[V("li",{class:I([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=g=>e.handleSelect(null))},we(e.t("el.table.clearFilter")),3),(x(!0),z(et,null,kt(e.filters,g=>(x(),z("li",{key:g.value,class:I([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),label:g.value,onClick:m=>e.handleSelect(g.value)},we(g.text),11,xue))),128))],2))]),default:ee(()=>[gt((x(),z("span",{class:I([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...g)=>e.showFilterPanel&&e.showFilterPanel(...g))},[G(f,null,{default:ee(()=>[e.column.filterOpened?(x(),ve(u,{key:0})):(x(),ve(d,{key:1}))]),_:1})],2)),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Oue=Ue(wue,[["render",kue],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function VP(e){const t=At();Ba(()=>{n.value.addObserver(t)}),Tt(()=>{s(n.value),r(n.value)}),to(()=>{s(n.value),r(n.value)}),Vo(()=>{n.value.removeObserver(t)});const n=E(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),s=i=>{var o;const a=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const l=i.getFlattenColumns(),u={};l.forEach(d=>{u[d.id]=d});for(let d=0,f=a.length;d<f;d++){const h=a[d],p=h.getAttribute("name"),g=u[p];g&&h.setAttribute("width",g.realWidth||g.width)}},r=i=>{var o,a;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=l.length;d<f;d++)l[d].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((a=e.vnode.el)==null?void 0:a.querySelectorAll("th.gutter"))||[];for(let d=0,f=u.length;d<f;d++){const h=u[d];h.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",h.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:s,onScrollableChange:r}}const Ei=Symbol("ElTable");function Aue(e,t){const n=At(),s=Qe(Ei),r=m=>{m.stopPropagation()},i=(m,v)=>{!v.filters&&v.sortable?g(m,v,!1):v.filterable&&!v.sortable&&r(m),s==null||s.emit("header-click",v,m)},o=(m,v)=>{s==null||s.emit("header-contextmenu",v,m)},a=B(null),l=B(!1),u=B({}),d=(m,v)=>{if(Ht&&!(v.children&&v.children.length>0)&&a.value&&e.border){l.value=!0;const y=s;t("set-drag-visible",!0);const _=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,S=n.vnode.el.querySelector(`th.${v.id}`),w=S.getBoundingClientRect(),A=w.left-_+30;si(S,"noclick"),u.value={startMouseLeft:m.clientX,startLeft:w.right-_,startColumnLeft:w.left-_,tableLeft:_};const M=y==null?void 0:y.refs.resizeProxy;M.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const N=F=>{const W=F.clientX-u.value.startMouseLeft,j=u.value.startLeft+W;M.style.left=`${Math.max(A,j)}px`},L=()=>{if(l.value){const{startColumnLeft:F,startLeft:W}=u.value,R=Number.parseInt(M.style.left,10)-F;v.width=v.realWidth=R,y==null||y.emit("header-dragend",v.width,W-F,v,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,a.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",L),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Fs(S,"noclick")},0)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",L)}},f=(m,v)=>{var y;if(v.children&&v.children.length>0)return;const T=(y=m.target)==null?void 0:y.closest("th");if(!(!v||!v.resizable)&&!l.value&&e.border){const _=T.getBoundingClientRect(),S=document.body.style;_.width>12&&_.right-m.pageX<8?(S.cursor="col-resize",Fr(T,"is-sortable")&&(T.style.cursor="col-resize"),a.value=v):l.value||(S.cursor="",Fr(T,"is-sortable")&&(T.style.cursor="pointer"),a.value=null)}},h=()=>{Ht&&(document.body.style.cursor="")},p=({order:m,sortOrders:v})=>{if(m==="")return v[0];const y=v.indexOf(m||null);return v[y>v.length-2?0:y+1]},g=(m,v,y)=>{var T;m.stopPropagation();const _=v.order===y?null:y||p(v),S=(T=m.target)==null?void 0:T.closest("th");if(S&&Fr(S,"noclick")){Fs(S,"noclick");return}if(!v.sortable)return;const w=e.store.states;let A=w.sortProp.value,M;const N=w.sortingColumn.value;(N!==v||N===v&&N.order===null)&&(N&&(N.order=null),w.sortingColumn.value=v,A=v.property),_?M=v.order=_:M=v.order=null,w.sortProp.value=A,w.sortOrder.value=M,s==null||s.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:g,handleFilterClick:r}}function Iue(e){const t=Qe(Ei),n=Ne("table");return{getHeaderRowStyle:a=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:a}):l},getHeaderRowClass:a=>{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:a})),l.join(" ")},getHeaderCellStyle:(a,l,u,d)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof h=="function"&&(h=h.call(null,{rowIndex:a,columnIndex:l,row:u,column:d}));const p=L_(l,d.fixed,e.store,u);return nu(p,"left"),nu(p,"right"),Object.assign({},h,p)},getHeaderCellClass:(a,l,u,d)=>{const f=R_(n.b(),l,d.fixed,e.store,u),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const p=t==null?void 0:t.props.headerCellClassName;return typeof p=="string"?h.push(p):typeof p=="function"&&h.push(p.call(null,{rowIndex:a,columnIndex:l,row:u,column:d})),h.push(n.e("cell")),h.filter(g=>!!g).join(" ")}}}const UP=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,UP(n.children))):t.push(n)}),t},Pue=e=>{let t=1;const n=(i,o)=>{if(o&&(i.level=o.level+1,t<i.level&&(t=i.level)),i.children){let a=0;i.children.forEach(l=>{n(l,i),a+=l.colSpan}),i.colSpan=a}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const s=[];for(let i=0;i<t;i++)s.push([]);return UP(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(o=>o.isSubColumn=!0)):i.rowSpan=t-i.level+1,s[i.level-1].push(i)}),s};function $ue(e){const t=Qe(Ei),n=E(()=>Pue(e.store.states.originColumns.value));return{isGroup:E(()=>{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 Nue=te({name:"ElTableHeader",components:{ElCheckbox:Sr},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=At(),s=Qe(Ei),r=Ne("table"),i=B({}),{onColumnsChange:o,onScrollableChange:a}=VP(s);Tt(async()=>{await it(),await it();const{prop:A,order:M}=e.defaultSort;s==null||s.store.commit("sort",{prop:A,order:M,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:g}=Aue(e,t),{getHeaderRowStyle:m,getHeaderRowClass:v,getHeaderCellStyle:y,getHeaderCellClass:T}=Iue(e),{isGroup:_,toggleAllSelection:S,columnRows:w}=$ue(e);return n.state={onColumnsChange:o,onScrollableChange:a},n.filterPanels=i,{ns:r,filterPanels:i,onColumnsChange:o,onScrollableChange:a,columnRows:w,getHeaderRowClass:v,getHeaderRowStyle:m,getHeaderCellClass:T,getHeaderCellStyle:y,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:g,isGroup:_,toggleAllSelection:S}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:s,getHeaderCellClass:r,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:a,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:d,handleSortClick:f,handleMouseOut:h,store:p,$parent:g}=this;let m=1;return ot("thead",{class:{[e.is("group")]:t}},n.map((v,y)=>ot("tr",{class:i(y),key:y,style:o(y)},v.map((T,_)=>(T.rowSpan>m&&(m=T.rowSpan),ot("th",{class:r(y,_,v,T),colspan:T.colSpan,key:`${T.id}-thead`,rowspan:T.rowSpan,style:s(y,_,v,T),onClick:S=>a(S,T),onContextmenu:S=>l(S,T),onMousedown:S=>u(S,T),onMousemove:S=>d(S,T),onMouseout:h},[ot("div",{class:["cell",T.filteredValue&&T.filteredValue.length>0?"highlight":""]},[T.renderHeader?T.renderHeader({column:T,$index:_,store:p,_self:g}):T.label,T.sortable&&ot("span",{onClick:S=>f(S,T),class:"caret-wrapper"},[ot("i",{onClick:S=>f(S,T,"ascending"),class:"sort-caret ascending"}),ot("i",{onClick:S=>f(S,T,"descending"),class:"sort-caret descending"})]),T.filterable&&ot(Oue,{store:p,placement:T.filterPlacement||"bottom-start",column:T,upDataColumn:(S,w)=>{T[S]=w}})])]))))))}});function Mue(e){const t=Qe(Ei),n=B(""),s=B(ot("div")),{nextZIndex:r}=ja(),i=(p,g,m)=>{var v;const y=t,T=uv(p);let _;const S=(v=y==null?void 0:y.vnode.el)==null?void 0:v.dataset.prefix;T&&(_=rE({columns:e.store.states.columns.value},T,S),_&&(y==null||y.emit(`cell-${m}`,g,_,T,p))),y==null||y.emit(`row-${m}`,g,_,p)},o=(p,g)=>{i(p,g,"dblclick")},a=(p,g)=>{e.store.commit("setCurrentRow",g),i(p,g,"click")},l=(p,g)=>{i(p,g,"contextmenu")},u=Os(p=>{e.store.commit("setHoverRow",p)},30),d=Os(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:d,handleCellMouseEnter:(p,g,m)=>{var v;const y=t,T=uv(p),_=(v=y==null?void 0:y.vnode.el)==null?void 0:v.dataset.prefix;if(T){const N=rE({columns:e.store.states.columns.value},T,_),L=y.hoverState={cell:T,column:N,row:g};y==null||y.emit("cell-mouse-enter",L.row,L.column,L.cell,p)}if(!m)return;const S=p.target.querySelector(".cell");if(!(Fr(S,`${_}-tooltip`)&&S.childNodes.length))return;const w=document.createRange();w.setStart(S,0),w.setEnd(S,S.childNodes.length);const A=Math.round(w.getBoundingClientRect().width),M=(Number.parseInt(Ri(S,"paddingLeft"),10)||0)+(Number.parseInt(Ri(S,"paddingRight"),10)||0);(A+M>S.offsetWidth||S.scrollWidth>S.offsetWidth)&&fue(t==null?void 0:t.refs.tableWrapper,T,T.innerText||T.textContent,r,m)},handleCellMouseLeave:p=>{if(!uv(p))return;const m=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",m==null?void 0:m.row,m==null?void 0:m.column,m==null?void 0:m.cell,p)},tooltipContent:n,tooltipTrigger:s}}function Rue(e){const t=Qe(Ei),n=Ne("table");return{getRowStyle:(u,d)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:d}):f||null},getRowClass:(u,d)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&d%2===1&&f.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return typeof h=="string"?f.push(h):typeof h=="function"&&f.push(h.call(null,{row:u,rowIndex:d})),f},getCellStyle:(u,d,f,h)=>{const p=t==null?void 0:t.props.cellStyle;let g=p??{};typeof p=="function"&&(g=p.call(null,{rowIndex:u,columnIndex:d,row:f,column:h}));const m=L_(d,e==null?void 0:e.fixed,e.store);return nu(m,"left"),nu(m,"right"),Object.assign({},g,m)},getCellClass:(u,d,f,h,p)=>{const g=R_(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,p),m=[h.id,h.align,h.className,...g],v=t==null?void 0:t.props.cellClassName;return typeof v=="string"?m.push(v):typeof v=="function"&&m.push(v.call(null,{rowIndex:u,columnIndex:d,row:f,column:h})),m.push(n.e("cell")),m.filter(y=>!!y).join(" ")},getSpan:(u,d,f,h)=>{let p=1,g=1;const m=t==null?void 0:t.props.spanMethod;if(typeof m=="function"){const v=m({row:u,column:d,rowIndex:f,columnIndex:h});Array.isArray(v)?(p=v[0],g=v[1]):typeof v=="object"&&(p=v.rowspan,g=v.colspan)}return{rowspan:p,colspan:g}},getColspanRealWidth:(u,d,f)=>{if(d<1)return u[f].realWidth;const h=u.map(({realWidth:p,width:g})=>p||g).slice(f,f+d);return Number(h.reduce((p,g)=>Number(p)+Number(g),-1))}}}function Lue(e){const t=Qe(Ei),n=Ne("table"),{handleDoubleClick:s,handleClick:r,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:a,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:f}=Mue(e),{getRowStyle:h,getRowClass:p,getCellStyle:g,getCellClass:m,getSpan:v,getColspanRealWidth:y}=Rue(e),T=E(()=>e.store.states.columns.value.findIndex(({type:M})=>M==="default")),_=(M,N)=>{const L=t.props.rowKey;return L?ns(M,L):N},S=(M,N,L,F=!1)=>{const{tooltipEffect:W,tooltipOptions:j,store:R}=e,{indent:q,columns:X}=R.states,K=p(M,N);let $=!0;return L&&(K.push(n.em("row",`level-${L.level}`)),$=L.display),ot("tr",{style:[$?null:{display:"none"},h(M,N)],class:K,key:_(M,N),onDblclick:U=>s(U,M),onClick:U=>r(U,M),onContextmenu:U=>i(U,M),onMouseenter:()=>o(N),onMouseleave:a},X.value.map((U,Z)=>{const{rowspan:ue,colspan:Q}=v(M,U,N,Z);if(!ue||!Q)return null;const ae={...U};ae.realWidth=y(X.value,Q,Z);const Ee={store:e.store,_self:e.context||t,column:ae,row:M,$index:N,cellIndex:Z,expanded:F};Z===T.value&&L&&(Ee.treeNode={indent:L.level*q.value,level:L.level},typeof L.expanded=="boolean"&&(Ee.treeNode.expanded=L.expanded,"loading"in L&&(Ee.treeNode.loading=L.loading),"noLazyChildren"in L&&(Ee.treeNode.noLazyChildren=L.noLazyChildren)));const le=`${N},${Z}`,ie=ae.columnKey||ae.rawColumnKey||"",ce=w(Z,U,Ee),ne=U.showOverflowTooltip&&mO({effect:W},j,U.showOverflowTooltip);return ot("td",{style:g(N,Z,M,U),class:m(N,Z,M,U,Q-1),key:`${ie}${le}`,rowspan:ue,colspan:Q,onMouseenter:pe=>l(pe,M,ne),onMouseleave:u},[ce])}))},w=(M,N,L)=>N.renderCell(L);return{wrappedRowRender:(M,N)=>{const L=e.store,{isRowExpanded:F,assertRowKey:W}=L,{treeData:j,lazyTreeNodeMap:R,childrenColumnName:q,rowKey:X}=L.states,K=L.states.columns.value;if(K.some(({type:H})=>H==="expand")){const H=F(M),U=S(M,N,void 0,H),Z=t.renderExpanded;return H?Z?[[U,ot("tr",{key:`expanded-row__${U.key}`},[ot("td",{colspan:K.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[Z({row:M,$index:N,store:L,expanded:H})])])]]:(console.error("[Element Error]renderExpanded is required."),U):[[U]]}else if(Object.keys(j.value).length){W();const H=ns(M,X.value);let U=j.value[H],Z=null;U&&(Z={expanded:U.expanded,level:U.level,display:!0},typeof U.lazy=="boolean"&&(typeof U.loaded=="boolean"&&U.loaded&&(Z.noLazyChildren=!(U.children&&U.children.length)),Z.loading=U.loading));const ue=[S(M,N,Z)];if(U){let Q=0;const ae=(le,ie)=>{le&&le.length&&ie&&le.forEach(ce=>{const ne={display:ie.display&&ie.expanded,level:ie.level+1,expanded:!1,noLazyChildren:!1,loading:!1},pe=ns(ce,X.value);if(pe==null)throw new Error("For nested data item, row-key is required.");if(U={...j.value[pe]},U&&(ne.expanded=U.expanded,U.level=U.level||ne.level,U.display=!!(U.expanded&&ne.display),typeof U.lazy=="boolean"&&(typeof U.loaded=="boolean"&&U.loaded&&(ne.noLazyChildren=!(U.children&&U.children.length)),ne.loading=U.loading)),Q++,ue.push(S(ce,N+Q,ne)),U){const Te=R.value[pe]||ce[q.value];ae(Te,U)}})};U.display=!0;const Ee=R.value[H]||M[q.value];ae(Ee,U)}return ue}else return S(M,N,void 0)},tooltipContent:d,tooltipTrigger:f}}const Due={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 Fue=te({name:"ElTableBody",props:Due,setup(e){const t=At(),n=Qe(Ei),s=Ne("table"),{wrappedRowRender:r,tooltipContent:i,tooltipTrigger:o}=Lue(e),{onColumnsChange:a,onScrollableChange:l}=VP(n);return ke(e.store.states.hoverRow,(u,d)=>{if(!e.store.states.isComplex.value||!Ht)return;let f=window.requestAnimationFrame;f||(f=h=>window.setTimeout(h,16)),f(()=>{const h=t==null?void 0:t.vnode.el,p=Array.from((h==null?void 0:h.children)||[]).filter(v=>v==null?void 0:v.classList.contains(`${s.e("row")}`)),g=p[d],m=p[u];g&&Fs(g,"hover-row"),m&&si(m,"hover-row")})}),Vo(()=>{var u;(u=$i)==null||u()}),{ns:s,onColumnsChange:a,onScrollableChange:l,wrappedRowRender:r,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return ot("tbody",{},[n.reduce((s,r)=>s.concat(e(r,s.length)),[])])}});function D_(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(r=>r.width===void 0)&&(n=[]);const s=r=>{const i={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?i.style={width:`${r.width}px`}:i.name=r.id,i};return ot("colgroup",{},n.map(r=>ot("col",s(r))))}D_.props=["columns","tableLayout"];function Bue(){const e=Qe(Ei),t=e==null?void 0:e.store,n=E(()=>t.states.fixedLeafColumnsLength.value),s=E(()=>t.states.rightFixedColumns.value.length),r=E(()=>t.states.columns.value.length),i=E(()=>t.states.fixedColumns.value.length),o=E(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:s,columnsCount:r,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function Vue(e){const{columns:t}=Bue(),n=Ne("table");return{getCellClasses:(i,o)=>{const a=i[o],l=[n.e("cell"),a.id,a.align,a.labelClassName,...R_(n.b(),o,a.fixed,e.store)];return a.className&&l.push(a.className),a.children||l.push(n.is("leaf")),l},getCellStyles:(i,o)=>{const a=L_(o,i.fixed,e.store);return nu(a,"left"),nu(a,"right"),a},columns:t}}var Uue=te({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:s}=Vue(e);return{ns:Ne("table"),getCellClasses:t,getCellStyles:n,columns:s}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:s,sumText:r,ns:i}=this,o=this.store.states.data.value;let a=[];return s?a=s({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){a[u]=r;return}const d=o.map(g=>Number(g[l.property])),f=[];let h=!0;d.forEach(g=>{if(!Number.isNaN(+g)){h=!1;const m=`${g}`.split(".")[1];f.push(m?m.length:0)}});const p=Math.max.apply(null,f);h?a[u]="":a[u]=d.reduce((g,m)=>{const v=Number(m);return Number.isNaN(+v)?g:Number.parseFloat((g+m).toFixed(Math.min(p,20)))},0)}),ot("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[D_({columns:e}),ot("tbody",[ot("tr",{},[...e.map((l,u)=>ot("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[ot("div",{class:["cell",l.labelClassName]},[a[u]])]))])])])}});function Hue(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,f)=>{e.toggleRowSelection(d,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,f)=>{e.toggleRowExpansionAdapter(d,f)},clearSort:()=>{e.clearSort()},sort:(d,f)=>{e.commit("sort",{prop:d,order:f})}}}function zue(e,t,n,s){const r=B(!1),i=B(null),o=B(!1),a=H=>{o.value=H},l=B({width:null,height:null,headerHeight:null}),u=B(!1),d={display:"inline-block",verticalAlign:"middle"},f=B(),h=B(0),p=B(0),g=B(0),m=B(0);nr(()=>{t.setHeight(e.height)}),nr(()=>{t.setMaxHeight(e.maxHeight)}),ke(()=>[e.currentRowKey,n.states.rowKey],([H,U])=>{!c(U)||!c(H)||n.setCurrentRowKey(`${H}`)},{immediate:!0}),ke(()=>e.data,H=>{s.store.commit("setData",H)},{immediate:!0,deep:!0}),nr(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const v=()=>{s.store.commit("setHoverRow",null),s.hoverState&&(s.hoverState=null)},y=(H,U)=>{const{pixelX:Z,pixelY:ue}=U;Math.abs(Z)>=Math.abs(ue)&&(s.refs.bodyWrapper.scrollLeft+=U.pixelX/5)},T=E(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=E(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{T.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(N)};Tt(async()=>{await it(),n.updateColumns(),L(),requestAnimationFrame(S);const H=s.vnode.el,U=s.refs.headerWrapper;e.flexible&&H&&H.parentElement&&(H.parentElement.style.minWidth="0"),l.value={width:f.value=H.offsetWidth,height:H.offsetHeight,headerHeight:e.showHeader&&U?U.offsetHeight:null},n.states.columns.value.forEach(Z=>{Z.filteredValue&&Z.filteredValue.length&&s.store.commit("filterChange",{column:Z,values:Z.filteredValue,silent:!0})}),s.$ready=!0});const w=(H,U)=>{if(!H)return;const Z=Array.from(H.classList).filter(ue=>!ue.startsWith("is-scrolling-"));Z.push(t.scrollX.value?U:"is-scrolling-none"),H.className=Z.join(" ")},A=H=>{const{tableWrapper:U}=s.refs;w(U,H)},M=H=>{const{tableWrapper:U}=s.refs;return!!(U&&U.classList.contains(H))},N=function(){if(!s.refs.scrollBarRef)return;if(!t.scrollX.value){const le="is-scrolling-none";M(le)||A(le);return}const H=s.refs.scrollBarRef.wrapRef;if(!H)return;const{scrollLeft:U,offsetWidth:Z,scrollWidth:ue}=H,{headerWrapper:Q,footerWrapper:ae}=s.refs;Q&&(Q.scrollLeft=U),ae&&(ae.scrollLeft=U);const Ee=ue-Z-1;U>=Ee?A("is-scrolling-right"):A(U===0?"is-scrolling-left":"is-scrolling-middle")},L=()=>{s.refs.scrollBarRef&&(s.refs.scrollBarRef.wrapRef&&mn(s.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?ds(s.vnode.el,F):mn(window,"resize",F),ds(s.refs.bodyWrapper,()=>{var H,U;F(),(U=(H=s.refs)==null?void 0:H.scrollBarRef)==null||U.update()}))},F=()=>{var H,U,Z;const ue=s.vnode.el;if(!s.$ready||!ue)return;let Q=!1;const{width:ae,height:Ee,headerHeight:le}=l.value,ie=f.value=ue.offsetWidth;ae!==ie&&(Q=!0);const ce=ue.offsetHeight;(e.height||T.value)&&Ee!==ce&&(Q=!0);const ne=e.tableLayout==="fixed"?s.refs.headerWrapper:(H=s.refs.tableHeaderRef)==null?void 0:H.$el;e.showHeader&&(ne==null?void 0:ne.offsetHeight)!==le&&(Q=!0),h.value=((U=s.refs.tableWrapper)==null?void 0:U.scrollHeight)||0,g.value=(ne==null?void 0:ne.scrollHeight)||0,m.value=((Z=s.refs.footerWrapper)==null?void 0:Z.offsetHeight)||0,p.value=h.value-g.value-m.value,Q&&(l.value={width:ie,height:ce,headerHeight:e.showHeader&&(ne==null?void 0:ne.offsetHeight)||0},S())},W=Fn(),j=E(()=>{const{bodyWidth:H,scrollY:U,gutterWidth:Z}=t;return H.value?`${H.value-(U.value?Z:0)}px`:""}),R=E(()=>e.maxHeight?"fixed":e.tableLayout),q=E(()=>{if(e.data&&e.data.length)return null;let H="100%";e.height&&p.value&&(H=`${p.value}px`);const U=f.value;return{width:U?`${U}px`:"",height:H}}),X=E(()=>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`}:{}),K=E(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${g.value+m.value}px)`};{const H=e.maxHeight;if(h.value>=Number(H))return{maxHeight:`${h.value-g.value-m.value}px`}}}return{}});return{isHidden:r,renderExpanded:i,setDragVisible:a,isGroup:u,handleMouseLeave:v,handleHeaderFooterMousewheel:y,tableSize:W,emptyBlockStyle:q,handleFixedMousewheel:(H,U)=>{const Z=s.refs.bodyWrapper;if(Math.abs(U.spinY)>0){const ue=Z.scrollTop;U.pixelY<0&&ue!==0&&H.preventDefault(),U.pixelY>0&&Z.scrollHeight-Z.clientHeight>ue&&H.preventDefault(),Z.scrollTop+=Math.ceil(U.pixelY/5)}else Z.scrollLeft+=Math.ceil(U.pixelX/5)},resizeProxyVisible:o,bodyWidth:j,resizeState:l,doLayout:S,tableBodyStyles:_,tableLayout:R,scrollbarViewStyle:d,tableInnerStyle:X,scrollbarStyle:K}}function jue(e){const t=B(),n=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(a=>a())}),t.value.observe(r,i)};Tt(()=>{n()}),Vo(()=>{var s;(s=t.value)==null||s.disconnect()})}var Kue={data:{type:Array,default:()=>[]},size:is,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const Wue=()=>{const e=B(),t=(i,o)=>{const a=e.value;a&&a.scrollTo(i,o)},n=(i,o)=>{const a=e.value;a&&ht(o)&&["Top","Left"].includes(i)&&a[`setScroll${i}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let que=1;const Gue=te({name:"ElTable",directives:{Mousewheel:YX},components:{TableHeader:Nue,TableBody:Fue,TableFooter:Uue,ElScrollbar:ro,hColgroup:D_},props:Kue,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}=qt(),n=Ne("table"),s=At();Nt(Ei,s);const r=bue(s,e);s.store=r;const i=new Tue({store:s.store,table:s,fit:e.fit,showHeader:e.showHeader});s.layout=i;const o=E(()=>(r.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:p,clearSort:g,sort:m}=Hue(r),{isHidden:v,renderExpanded:y,setDragVisible:T,isGroup:_,handleMouseLeave:S,handleHeaderFooterMousewheel:w,tableSize:A,emptyBlockStyle:M,handleFixedMousewheel:N,resizeProxyVisible:L,bodyWidth:F,resizeState:W,doLayout:j,tableBodyStyles:R,tableLayout:q,scrollbarViewStyle:X,tableInnerStyle:K,scrollbarStyle:$}=zue(e,i,r,s),{scrollBarRef:H,scrollTo:U,setScrollLeft:Z,setScrollTop:ue}=Wue(),Q=Os(j,50),ae=`${n.namespace.value}-table_${que++}`;s.tableId=ae,s.state={isGroup:_,resizeState:W,doLayout:j,debouncedUpdateLayout:Q};const Ee=E(()=>e.sumText||t("el.table.sumText")),le=E(()=>e.emptyText||t("el.table.emptyText"));return jue(s),{ns:n,layout:i,store:r,handleHeaderFooterMousewheel:w,handleMouseLeave:S,tableId:ae,tableSize:A,isHidden:v,isEmpty:o,renderExpanded:y,resizeProxyVisible:L,resizeState:W,isGroup:_,bodyWidth:F,tableBodyStyles:R,emptyBlockStyle:M,debouncedUpdateLayout:Q,handleFixedMousewheel:N,setCurrentRow:a,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:p,clearSort:g,doLayout:j,sort:m,t,setDragVisible:T,context:s,computedSumText:Ee,computedEmptyText:le,tableLayout:q,scrollbarViewStyle:X,tableInnerStyle:K,scrollbarStyle:$,scrollBarRef:H,scrollTo:U,setScrollLeft:Z,setScrollTop:ue}}}),Yue=["data-prefix"],Xue={ref:"hiddenColumns",class:"hidden-columns"};function Que(e,t,n,s,r,i){const o=vt("hColgroup"),a=vt("table-header"),l=vt("table-body"),u=vt("el-scrollbar"),d=vt("table-footer"),f=Qc("mousewheel");return x(),z("div",{ref:"tableWrapper",class:I([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:st(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=h=>e.handleMouseLeave())},[V("div",{class:I(e.ns.e("inner-wrapper")),style:st(e.tableInnerStyle)},[V("div",Xue,[xe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?gt((x(),z("div",{key:0,ref:"headerWrapper",class:I(e.ns.e("header-wrapper"))},[V("table",{ref:"tableHeader",class:I(e.ns.e("header")),style:st(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[G(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),G(a,{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]]):he("v-if",!0),V("div",{ref:"bodyWrapper",class:I(e.ns.e("body-wrapper"))},[G(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:ee(()=>[V("table",{ref:"tableBody",class:I(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:st({width:e.bodyWidth,tableLayout:e.tableLayout})},[G(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(x(),ve(a,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):he("v-if",!0),G(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?(x(),z("div",{key:0,ref:"emptyBlock",style:st(e.emptyBlockStyle),class:I(e.ns.e("empty-block"))},[V("span",{class:I(e.ns.e("empty-text"))},[xe(e.$slots,"empty",{},()=>[wt(we(e.computedEmptyText),1)])],2)],6)):he("v-if",!0),e.$slots.append?(x(),z("div",{key:1,ref:"appendWrapper",class:I(e.ns.e("append-wrapper"))},[xe(e.$slots,"append")],2)):he("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?gt((x(),z("div",{key:1,ref:"footerWrapper",class:I(e.ns.e("footer-wrapper"))},[G(d,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:st(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Ut,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):he("v-if",!0),e.border||e.isGroup?(x(),z("div",{key:2,class:I(e.ns.e("border-left-patch"))},null,2)):he("v-if",!0)],6),gt(V("div",{ref:"resizeProxy",class:I(e.ns.e("column-resize-proxy"))},null,2),[[Ut,e.resizeProxyVisible]])],46,Yue)}var Jue=Ue(Gue,[["render",Que],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const Zue={selection:"table-column--selection",expand:"table__expand-column"},ece={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:""}},tce=e=>Zue[e]||"",nce={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return ot(Sr,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:s}){return ot(Sr,{disabled:t.selectable?!t.selectable.call(null,e,s):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:r=>r.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const s=e.index;return typeof s=="number"?n=t+s:typeof s=="function"&&(n=s(t)),ot("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:s}=t,r=[s.e("expand-icon")];return n&&r.push(s.em("expand-icon","expanded")),ot("div",{class:r,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[ot(nt,null,{default:()=>[ot(ws)]})]})},sortable:!1,resizable:!1}};function sce({row:e,column:t,$index:n}){var s;const r=t.property,i=r&&Ch(e,r).value;return t&&t.formatter?t.formatter(e,t,i,n):((s=i==null?void 0:i.toString)==null?void 0:s.call(i))||""}function rce({row:e,treeNode:t,store:n},s=!1){const{ns:r}=n;if(!t)return s?[ot("span",{class:r.e("placeholder")})]:null;const i=[],o=function(a){a.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(ot("span",{class:r.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const a=[r.e("expand-icon"),t.expanded?r.em("expand-icon","expanded"):""];let l=ws;t.loading&&(l=zo),i.push(ot("div",{class:a,onClick:o},{default:()=>[ot(nt,{class:{[r.is("loading")]:t.loading}},{default:()=>[ot(l)]})]}))}else i.push(ot("span",{class:r.e("placeholder")}));return i}function aE(e,t){return e.reduce((n,s)=>(n[s]=s,n),t)}function ice(e,t){const n=At();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},a=aE(i,o);Object.keys(a).forEach(l=>{const u=o[l];Ft(t,u)&&ke(()=>t[u],d=>{let f=d;u==="width"&&l==="realWidth"&&(f=M_(d)),u==="minWidth"&&l==="realMinWidth"&&(f=RP(d)),n.columnConfig.value[u]=f,n.columnConfig.value[l]=f;const h=u==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=aE(i,o);Object.keys(a).forEach(l=>{const u=o[l];Ft(t,u)&&ke(()=>t[u],d=>{n.columnConfig.value[l]=d})})}}}function oce(e,t,n){const s=At(),r=B(""),i=B(!1),o=B(),a=B(),l=Ne("table");nr(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),nr(()=>{a.value=e.headerAlign?`is-${e.headerAlign}`:o.value,a.value});const u=E(()=>{let S=s.vnode.vParent||s.parent;for(;S&&!S.tableId&&!S.columnId;)S=S.vnode.vParent||S.parent;return S}),d=E(()=>{const{store:S}=s.parent;if(!S)return!1;const{treeData:w}=S.states,A=w.value;return A&&Object.keys(A).length>0}),f=B(M_(e.width)),h=B(RP(e.minWidth)),p=S=>(f.value&&(S.width=f.value),h.value&&(S.minWidth=h.value),!f.value&&h.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(S.width===void 0?S.minWidth:S.width),S),g=S=>{const w=S.type,A=nce[w]||{};Object.keys(A).forEach(N=>{const L=A[N];N!=="className"&&L!==void 0&&(S[N]=L)});const M=tce(w);if(M){const N=`${c(l.namespace)}-${M}`;S.className=S.className?`${S.className} ${N}`:N}return S},m=S=>{Array.isArray(S)?S.forEach(A=>w(A)):w(S);function w(A){var M;((M=A==null?void 0:A.type)==null?void 0:M.name)==="ElTableColumn"&&(A.vParent=s)}};return{columnId:r,realAlign:o,isSubColumn:i,realHeaderAlign:a,columnOrTableParent:u,setColumnWidth:p,setColumnForcedProps:g,setColumnRenders:S=>{e.renderHeader||S.type!=="selection"&&(S.renderHeader=A=>{s.columnConfig.value.label;const M=t.header;return M?M(A):S.label});let w=S.renderCell;return S.type==="expand"?(S.renderCell=A=>ot("div",{class:"cell"},[w(A)]),n.value.renderExpanded=A=>t.default?t.default(A):t.default):(w=w||sce,S.renderCell=A=>{let M=null;if(t.default){const R=t.default(A);M=R.some(q=>q.type!==Ss)?R:w(A)}else M=w(A);const{columns:N}=n.value.store.states,L=N.value.findIndex(R=>R.type==="default"),F=d.value&&A.cellIndex===L,W=rce(A,F),j={class:"cell",style:{}};return S.showOverflowTooltip&&(j.class=`${j.class} ${c(l.namespace)}-tooltip`,j.style={width:`${(A.column.realWidth||Number(A.column.width))-1}px`}),m(M),ot("div",j,[W,M])}),S},getPropsData:(...S)=>S.reduce((w,A)=>(Array.isArray(A)&&A.forEach(M=>{w[M]=e[M]}),w),{}),getColumnElIndex:(S,w)=>Array.prototype.indexOf.call(S,w),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",s.columnConfig.value)}}}var ace={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let lce=1;var HP=te({name:"ElTableColumn",components:{ElCheckbox:Sr},props:ace,setup(e,{slots:t}){const n=At(),s=B({}),r=E(()=>{let _=n.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:i,registerComplexWatchers:o}=ice(r,e),{columnId:a,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:p,getPropsData:g,getColumnElIndex:m,realAlign:v,updateColumnOrder:y}=oce(e,t,r),T=d.value;a.value=`${T.tableId||T.columnId}_column_${lce++}`,Ba(()=>{l.value=r.value!==T;const _=e.type||"default",S=e.sortable===""?!0:e.sortable,w={...ece[_],id:a.value,type:_,property:e.prop||e.property,align:v,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key};let F=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);F=lue(w,F),F=cue(p,f,h)(F),s.value=F,i(),o()}),Tt(()=>{var _;const S=d.value,w=l.value?S.vnode.el.children:(_=S.refs.hiddenColumns)==null?void 0:_.children,A=()=>m(w||[],n.vnode.el);s.value.getColumnIndex=A,A()>-1&&r.value.store.commit("insertColumn",s.value,l.value?S.columnConfig.value:null,y)}),ln(()=>{r.value.store.commit("removeColumn",s.value,l.value?T.columnConfig.value:null,y)}),n.columnId=a.value,n.columnConfig=s},render(){var e,t,n;try{const s=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),r=[];if(Array.isArray(s))for(const o of s)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?r.push(o):o.type===et&&Array.isArray(o.children)&&o.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!mt(a==null?void 0:a.children)&&r.push(a)});return ot("div",r)}catch{return ot("div",[])}}});const uce=Ot(Jue,{TableColumn:HP}),cce=Cn(HP);var _d=(e=>(e.ASC="asc",e.DESC="desc",e))(_d||{}),Td=(e=>(e.CENTER="center",e.RIGHT="right",e))(Td||{}),zP=(e=>(e.LEFT="left",e.RIGHT="right",e))(zP||{});const ly={asc:"desc",desc:"asc"},Sd=Symbol("placeholder"),dce=(e,t,n)=>{var s;const r={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(r.flexShrink=1);const i={...(s=e.style)!=null?s:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function fce(e,t,n){const s=E(()=>c(t).filter(m=>!m.hidden)),r=E(()=>c(s).filter(m=>m.fixed==="left"||m.fixed===!0)),i=E(()=>c(s).filter(m=>m.fixed==="right")),o=E(()=>c(s).filter(m=>!m.fixed)),a=E(()=>{const m=[];return c(r).forEach(v=>{m.push({...v,placeholderSign:Sd})}),c(o).forEach(v=>{m.push(v)}),c(i).forEach(v=>{m.push({...v,placeholderSign:Sd})}),m}),l=E(()=>c(r).length||c(i).length),u=E(()=>c(t).reduce((v,y)=>(v[y.key]=dce(y,c(n),e.fixed),v),{})),d=E(()=>c(s).reduce((m,v)=>m+v.width,0)),f=m=>c(t).find(v=>v.key===m),h=m=>c(u)[m],p=(m,v)=>{m.width=v};function g(m){var v;const{key:y}=m.currentTarget.dataset;if(!y)return;const{sortState:T,sortBy:_}=e;let S=_d.ASC;Pt(T)?S=ly[T[y]]:S=ly[_.order],(v=e.onColumnSort)==null||v.call(e,{column:f(y),key:y,order:S})}return{columns:t,columnsStyles:u,columnsTotalWidth:d,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:a,normalColumns:o,visibleColumns:s,getColumn:f,getColumnStyle:h,updateColumnWidth:p,onColumnSorted:g}}const hce=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:r})=>{const i=B({scrollLeft:0,scrollTop:0});function o(p){var g,m,v;const{scrollTop:y}=p;(g=t.value)==null||g.scrollTo(p),(m=n.value)==null||m.scrollToTop(y),(v=s.value)==null||v.scrollToTop(y)}function a(p){i.value=p,o(p)}function l(p){i.value.scrollTop=p,o(c(i))}function u(p){var g,m;i.value.scrollLeft=p,(m=(g=t.value)==null?void 0:g.scrollTo)==null||m.call(g,c(i))}function d(p){var g;a(p),(g=e.onScroll)==null||g.call(e,p)}function f({scrollTop:p}){const{scrollTop:g}=c(i);p!==g&&l(p)}function h(p,g="auto"){var m;(m=t.value)==null||m.scrollToRow(p,g)}return ke(()=>c(i).scrollTop,(p,g)=>{p>g&&r()}),{scrollPos:i,scrollTo:a,scrollToLeft:u,scrollToTop:l,scrollToRow:h,onScroll:d,onVerticalScroll:f}},pce=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s})=>{const r=At(),{emit:i}=r,o=nn(!1),a=nn(null),l=B(e.defaultExpandedRowKeys||[]),u=B(-1),d=nn(null),f=B({}),h=B({}),p=nn({}),g=nn({}),m=nn({}),v=E(()=>ht(e.estimatedRowHeight));function y(N){var L;(L=e.onRowsRendered)==null||L.call(e,N),N.rowCacheEnd>c(u)&&(u.value=N.rowCacheEnd)}function T({hovered:N,rowKey:L}){a.value=N?L:null}function _({expanded:N,rowData:L,rowIndex:F,rowKey:W}){var j,R;const q=[...c(l)],X=q.indexOf(W);N?X===-1&&q.push(W):X>-1&&q.splice(X,1),l.value=q,i("update:expandedRowKeys",q),(j=e.onRowExpand)==null||j.call(e,{expanded:N,rowData:L,rowIndex:F,rowKey:W}),(R=e.onExpandedRowsChange)==null||R.call(e,q)}const S=Os(()=>{var N,L,F,W;o.value=!0,f.value={...c(f),...c(h)},w(c(d),!1),h.value={},d.value=null,(N=t.value)==null||N.forceUpdate(),(L=n.value)==null||L.forceUpdate(),(F=s.value)==null||F.forceUpdate(),(W=r.proxy)==null||W.$forceUpdate(),o.value=!1},0);function w(N,L=!1){c(v)&&[t,n,s].forEach(F=>{const W=c(F);W&&W.resetAfterRowIndex(N,L)})}function A(N,L,F){const W=c(d);(W===null||W>F)&&(d.value=F),h.value[N]=L}function M({rowKey:N,height:L,rowIndex:F},W){W?W===zP.RIGHT?m.value[N]=L:p.value[N]=L:g.value[N]=L;const j=Math.max(...[p,m,g].map(R=>R.value[N]||0));c(f)[N]!==j&&(A(N,j,F),S())}return{hoveringRowKey:a,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:v,isResetting:o,rowHeights:f,resetAfterIndex:w,onRowExpanded:_,onRowHovered:T,onRowsRendered:y,onRowHeightChange:M}},mce=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:s})=>{const r=B({}),i=E(()=>{const a={},{data:l,rowKey:u}=e,d=c(t);if(!d||!d.length)return l;const f=[],h=new Set;d.forEach(g=>h.add(g));let p=l.slice();for(p.forEach(g=>a[g[u]]=0);p.length>0;){const g=p.shift();f.push(g),h.has(g[u])&&Array.isArray(g.children)&&g.children.length>0&&(p=[...g.children,...p],g.children.forEach(m=>a[m[u]]=a[g[u]]+1))}return r.value=a,f}),o=E(()=>{const{data:a,expandColumnKey:l}=e;return l?c(i):a});return ke(o,(a,l)=>{a!==l&&(n.value=-1,s(0,!0))}),{data:o,depthMap:r}},gce=(e,t)=>e+t,Bh=e=>tt(e)?e.reduce(gce,0):e,Ra=(e,t,n={})=>pt(e)?e(t):e??n,wo=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=An(e[t])}),e),jP=e=>gn(e)?t=>ot(e,t):e,vce=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:s,fixedColumnsOnRight:r})=>{const i=E(()=>{const{fixed:_,width:S,vScrollbarSize:w}=e,A=S-w;return _?Math.max(Math.round(c(t)),A):A}),o=E(()=>c(i)+(e.fixed?e.vScrollbarSize:0)),a=E(()=>{const{height:_=0,maxHeight:S=0,footerHeight:w,hScrollbarSize:A}=e;if(S>0){const M=c(g),N=c(l),F=c(p)+M+N+A;return Math.min(F,S-w)}return _-w}),l=E(()=>{const{rowHeight:_,estimatedRowHeight:S}=e,w=c(n);return ht(S)?w.length*S:w.length*_}),u=E(()=>{const{maxHeight:_}=e,S=c(a);if(ht(_)&&_>0)return S;const w=c(l)+c(p)+c(g);return Math.min(S,w)}),d=_=>_.width,f=E(()=>Bh(c(s).map(d))),h=E(()=>Bh(c(r).map(d))),p=E(()=>Bh(e.headerHeight)),g=E(()=>{var _;return(((_=e.fixedData)==null?void 0:_.length)||0)*e.rowHeight}),m=E(()=>c(a)-c(p)-c(g)),v=E(()=>{const{style:_={},height:S,width:w}=e;return wo({..._,height:S,width:w})}),y=E(()=>wo({height:e.footerHeight})),T=E(()=>({top:An(c(p)),bottom:An(e.footerHeight),width:An(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:a,leftTableWidth:f,rightTableWidth:h,headerWidth:o,rowsHeight:l,windowHeight:m,footerHeight:y,emptyStyle:T,rootStyle:v,headerHeight:p}},yce=e=>{const t=B(),n=B(0),s=B(0);let r;return Tt(()=>{r=ds(t,([i])=>{const{width:o,height:a}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:d,paddingBottom:f}=getComputedStyle(i.target),h=Number.parseInt(l)||0,p=Number.parseInt(u)||0,g=Number.parseInt(d)||0,m=Number.parseInt(f)||0;n.value=o-h-p,s.value=a-g-m}).stop}),ln(()=>{r==null||r()}),ke([n,s],([i,o])=>{var a;(a=e.onResize)==null||a.call(e,{width:i,height:o})}),{sizer:t,width:n,height:s}};function bce(e){const t=B(),n=B(),s=B(),{columns:r,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:a,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:d,onColumnSorted:f}=fce(e,dn(e,"columns"),dn(e,"fixed")),{scrollTo:h,scrollToLeft:p,scrollToTop:g,scrollToRow:m,onScroll:v,onVerticalScroll:y,scrollPos:T}=hce(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:Y}),{expandedRowKeys:_,hoveringRowKey:S,lastRenderedRowIndex:w,isDynamic:A,isResetting:M,rowHeights:N,resetAfterIndex:L,onRowExpanded:F,onRowHeightChange:W,onRowHovered:j,onRowsRendered:R}=pce(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s}),{data:q,depthMap:X}=mce(e,{expandedRowKeys:_,lastRenderedRowIndex:w,resetAfterIndex:L}),{bodyWidth:K,fixedTableHeight:$,mainTableHeight:H,leftTableWidth:U,rightTableWidth:Z,headerWidth:ue,rowsHeight:Q,windowHeight:ae,footerHeight:Ee,emptyStyle:le,rootStyle:ie,headerHeight:ce}=vce(e,{columnsTotalWidth:o,data:q,fixedColumnsOnLeft:a,fixedColumnsOnRight:l}),ne=nn(!1),pe=B(),Te=E(()=>{const re=c(q).length===0;return tt(e.fixedData)?e.fixedData.length===0&&re:re});function He(re){const{estimatedRowHeight:Se,rowHeight:Oe,rowKey:Ve}=e;return Se?c(N)[c(q)[re][Ve]]||Se:Oe}function Y(){const{onEndReached:re}=e;if(!re)return;const{scrollTop:Se}=c(T),Oe=c(Q),Ve=c(ae),_e=Oe-(Se+Ve)+e.hScrollbarSize;c(w)>=0&&Oe===Se+c(H)-c(ce)&&re(_e)}return ke(()=>e.expandedRowKeys,re=>_.value=re,{deep:!0}),{columns:r,containerRef:pe,mainTableRef:t,leftTableRef:n,rightTableRef:s,isDynamic:A,isResetting:M,isScrolling:ne,hoveringRowKey:S,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:q,expandedRowKeys:_,depthMap:X,fixedColumnsOnLeft:a,fixedColumnsOnRight:l,mainColumns:d,bodyWidth:K,emptyStyle:le,rootStyle:ie,headerWidth:ue,footerHeight:Ee,mainTableHeight:H,fixedTableHeight:$,leftTableWidth:U,rightTableWidth:Z,showEmpty:Te,getRowHeight:He,onColumnSorted:f,onRowHovered:j,onRowExpanded:F,onRowsRendered:R,onRowHeightChange:W,scrollTo:h,scrollToLeft:p,scrollToTop:g,scrollToRow:m,onScroll:v,onVerticalScroll:y}}const F_=Symbol("tableV2"),KP=String,Jd={type:me(Array),required:!0},B_={type:me(Array)},WP={...B_,required:!0},_ce=String,lE={type:me(Array),default:()=>pn([])},fa={type:Number,required:!0},qP={type:me([String,Number,Symbol]),default:"id"},uE={type:me(Object)},_a=ze({class:String,columns:Jd,columnsStyles:{type:me(Object),required:!0},depth:Number,expandColumnKey:_ce,estimatedRowHeight:{...ka.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:me(Function)},onRowHover:{type:me(Function)},onRowHeightChange:{type:me(Function)},rowData:{type:me(Object),required:!0},rowEventHandlers:{type:me(Object)},rowIndex:{type:Number,required:!0},rowKey:qP,style:{type:me(Object)}}),cv={type:Number,required:!0},V_=ze({class:String,columns:Jd,fixedHeaderData:{type:me(Array)},headerData:{type:me(Array),required:!0},headerHeight:{type:me([Number,Array]),default:50},rowWidth:cv,rowHeight:{type:Number,default:50},height:cv,width:cv}),Vh=ze({columns:Jd,data:WP,fixedData:B_,estimatedRowHeight:_a.estimatedRowHeight,width:fa,height:fa,headerWidth:fa,headerHeight:V_.headerHeight,bodyWidth:fa,rowHeight:fa,cache:vP.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:ka.scrollbarAlwaysOn,scrollbarStartGap:ka.scrollbarStartGap,scrollbarEndGap:ka.scrollbarEndGap,class:KP,style:uE,containerStyle:uE,getRowHeight:{type:me(Function),required:!0},rowKey:_a.rowKey,onRowsRendered:{type:me(Function)},onScroll:{type:me(Function)}}),Tce=ze({cache:Vh.cache,estimatedRowHeight:_a.estimatedRowHeight,rowKey:qP,headerClass:{type:me([String,Function])},headerProps:{type:me([Object,Function])},headerCellProps:{type:me([Object,Function])},headerHeight:V_.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:me([String,Function])},rowProps:{type:me([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:me([Object,Function])},columns:Jd,data:WP,dataGetter:{type:me(Function)},fixedData:B_,expandColumnKey:_a.expandColumnKey,expandedRowKeys:lE,defaultExpandedRowKeys:lE,class:KP,fixed:Boolean,style:{type:me(Object)},width:fa,height:fa,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:ka.hScrollbarSize,vScrollbarSize:ka.vScrollbarSize,scrollbarAlwaysOn:_P.alwaysOn,sortBy:{type:me(Object),default:()=>({})},sortState:{type:me(Object),default:void 0},onColumnSort:{type:me(Function)},onExpandedRowsChange:{type:me(Function)},onEndReached:{type:me(Function)},onRowExpand:_a.onRowExpand,onScroll:Vh.onScroll,onRowsRendered:Vh.onRowsRendered,rowEventHandlers:_a.rowEventHandlers}),U_=(e,{slots:t})=>{var n;const{cellData:s,style:r}=e,i=((n=s==null?void 0:s.toString)==null?void 0:n.call(s))||"";return G("div",{class:e.class,title:i,style:r},[t.default?t.default(e):i])};U_.displayName="ElTableV2Cell";U_.inheritAttrs=!1;const H_=(e,{slots:t})=>{var n,s;return t.default?t.default(e):G("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(s=e.column)==null?void 0:s.title])};H_.displayName="ElTableV2HeaderCell";H_.inheritAttrs=!1;const Sce=ze({class:String,columns:Jd,columnsStyles:{type:me(Object),required:!0},headerIndex:Number,style:{type:me(Object)}}),wce=te({name:"ElTableV2HeaderRow",props:Sce,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:s,headerIndex:r,style:i}=e;let o=n.map((a,l)=>t.cell({columns:n,column:a,columnIndex:l,headerIndex:r,style:s[a.key]}));return t.header&&(o=t.header({cells:o.map(a=>tt(a)&&a.length===1?a[0]:a),columns:n,headerIndex:r})),G("div",{class:e.class,style:i,role:"row"},[o])}}}),Cce="ElTableV2Header",Ece=te({name:Cce,props:V_,setup(e,{slots:t,expose:n}){const s=Ne("table-v2"),r=B(),i=E(()=>wo({width:e.width,height:e.height})),o=E(()=>wo({width:e.rowWidth,height:e.height})),a=E(()=>ql(c(e.headerHeight))),l=f=>{const h=c(r);it(()=>{h!=null&&h.scroll&&h.scroll({left:f})})},u=()=>{const f=s.e("fixed-header-row"),{columns:h,fixedHeaderData:p,rowHeight:g}=e;return p==null?void 0:p.map((m,v)=>{var y;const T=wo({height:g,width:"100%"});return(y=t.fixed)==null?void 0:y.call(t,{class:f,columns:h,rowData:m,rowIndex:-(v+1),style:T})})},d=()=>{const f=s.e("dynamic-header-row"),{columns:h}=e;return c(a).map((p,g)=>{var m;const v=wo({width:"100%",height:p});return(m=t.dynamic)==null?void 0:m.call(t,{class:f,columns:h,headerIndex:g,style:v})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return G("div",{ref:r,class:e.class,style:c(i),role:"rowgroup"},[G("div",{style:c(o),class:s.e("header")},[d(),u()])])}}}),xce=e=>{const{isScrolling:t}=Qe(F_),n=B(!1),s=B(),r=E(()=>ht(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=c(s);if(!u)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:p,style:g}=e,{height:m}=u.getBoundingClientRect();n.value=!0,it(()=>{if(l||m!==Number.parseInt(g.height)){const v=d[0],y=(v==null?void 0:v.placeholderSign)===Sd;f==null||f({rowKey:h,height:m,rowIndex:p},v&&!y&&v.fixed)}})},o=E(()=>{const{rowData:l,rowIndex:u,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},p={};return Object.entries(h).forEach(([g,m])=>{pt(m)&&(p[g]=v=>{m({event:v,rowData:l,rowIndex:u,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:g,hovered:m})=>{const v=p[g];p[g]=y=>{f({event:y,hovered:m,rowData:l,rowIndex:u,rowKey:d}),v==null||v(y)}}),p}),a=l=>{const{onRowExpand:u,rowData:d,rowIndex:f,rowKey:h}=e;u==null||u({expanded:l,rowData:d,rowIndex:f,rowKey:h})};return Tt(()=>{c(r)&&i(!0)}),{isScrolling:t,measurable:r,measured:n,rowRef:s,eventHandlers:o,onExpand:a}},kce="ElTableV2TableRow",Oce=te({name:kce,props:_a,setup(e,{expose:t,slots:n,attrs:s}){const{eventHandlers:r,isScrolling:i,measurable:o,measured:a,rowRef:l,onExpand:u}=xce(e);return t({onExpand:u}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:p,rowData:g,rowIndex:m,style:v}=e;let y=d.map((T,_)=>{const S=tt(g.children)&&g.children.length>0&&T.key===h;return n.cell({column:T,columns:d,columnIndex:_,depth:p,style:f[T.key],rowData:g,rowIndex:m,isScrolling:c(i),expandIconProps:S?{rowData:g,rowIndex:m,onExpand:u}:void 0})});if(n.row&&(y=n.row({cells:y.map(T=>tt(T)&&T.length===1?T[0]:T),style:v,columns:d,depth:p,rowData:g,rowIndex:m,isScrolling:c(i)})),c(o)){const{height:T,..._}=v||{},S=c(a);return G("div",$t({ref:l,class:e.class,style:S?v:_,role:"row"},s,c(r)),[y])}return G("div",$t(s,{ref:l,class:e.class,style:v,role:"row"},c(r)),[y])}}}),Ace=e=>{const{sortOrder:t}=e;return G(nt,{size:14,class:e.class},{default:()=>[t===_d.ASC?G(eK,null,null):G(G9,null,null)]})},Ice=e=>{const{expanded:t,expandable:n,onExpand:s,style:r,size:i}=e,o={onClick:n?()=>s(!t):void 0,class:e.class};return G(nt,$t(o,{size:i,style:r}),{default:()=>[G(ws,null,null)]})},Pce="ElTableV2Grid",$ce=e=>{const t=B(),n=B(),s=E(()=>{const{data:m,rowHeight:v,estimatedRowHeight:y}=e;if(!y)return m.length*v}),r=E(()=>{const{fixedData:m,rowHeight:v}=e;return((m==null?void 0:m.length)||0)*v}),i=E(()=>Bh(e.headerHeight)),o=E(()=>{const{height:m}=e;return Math.max(0,m-c(i)-c(r))}),a=E(()=>c(i)+c(r)>0),l=({data:m,rowIndex:v})=>m[v][e.rowKey];function u({rowCacheStart:m,rowCacheEnd:v,rowVisibleStart:y,rowVisibleEnd:T}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:m,rowCacheEnd:v,rowVisibleStart:y,rowVisibleEnd:T})}function d(m,v){var y;(y=n.value)==null||y.resetAfterRowIndex(m,v)}function f(m,v){const y=c(t),T=c(n);!y||!T||(Pt(m)?(y.scrollToLeft(m.scrollLeft),T.scrollTo(m)):(y.scrollToLeft(m),T.scrollTo({scrollLeft:m,scrollTop:v})))}function h(m){var v;(v=c(n))==null||v.scrollTo({scrollTop:m})}function p(m,v){var y;(y=c(n))==null||y.scrollToItem(m,1,v)}function g(){var m,v;(m=c(n))==null||m.$forceUpdate(),(v=c(t))==null||v.$forceUpdate()}return{bodyRef:n,forceUpdate:g,fixedRowHeight:r,gridHeight:o,hasHeader:a,headerHeight:i,headerRef:t,totalHeight:s,itemKey:l,onItemRendered:u,resetAfterRowIndex:d,scrollTo:f,scrollToTop:h,scrollToRow:p}},z_=te({name:Pce,props:Vh,setup(e,{slots:t,expose:n}){const{ns:s}=Qe(F_),{bodyRef:r,fixedRowHeight:i,gridHeight:o,hasHeader:a,headerRef:l,headerHeight:u,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:p,resetAfterRowIndex:g,scrollTo:m,scrollToTop:v,scrollToRow:y}=$ce(e);n({forceUpdate:f,totalHeight:d,scrollTo:m,scrollToTop:v,scrollToRow:y,resetAfterRowIndex:g});const T=()=>e.bodyWidth;return()=>{const{cache:_,columns:S,data:w,fixedData:A,useIsScrolling:M,scrollbarAlwaysOn:N,scrollbarEndGap:L,scrollbarStartGap:F,style:W,rowHeight:j,bodyWidth:R,estimatedRowHeight:q,headerWidth:X,height:K,width:$,getRowHeight:H,onScroll:U}=e,Z=ht(q),ue=Z?uae:iae,Q=c(u);return G("div",{role:"table",class:[s.e("table"),e.class],style:W},[G(ue,{ref:r,data:w,useIsScrolling:M,itemKey:h,columnCache:0,columnWidth:Z?T:R,totalColumn:1,totalRow:w.length,rowCache:_,rowHeight:Z?H:j,width:$,height:c(o),class:s.e("body"),role:"rowgroup",scrollbarStartGap:F,scrollbarEndGap:L,scrollbarAlwaysOn:N,onScroll:U,onItemRendered:p,perfMode:!1},{default:ae=>{var Ee;const le=w[ae.rowIndex];return(Ee=t.row)==null?void 0:Ee.call(t,{...ae,columns:S,rowData:le})}}),c(a)&&G(Ece,{ref:l,class:s.e("header-wrapper"),columns:S,headerData:w,headerHeight:e.headerHeight,fixedHeaderData:A,rowWidth:X,rowHeight:j,width:$,height:Math.min(Q+c(i),K)},{dynamic:t.header,fixed:t.row})])}}});function Nce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!gn(e)}const Mce=(e,{slots:t})=>{const{mainTableRef:n,...s}=e;return G(z_,$t({ref:n},s),Nce(t)?t:{default:()=>[t]})};function Rce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!gn(e)}const Lce=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...s}=e;return G(z_,$t({ref:n},s),Rce(t)?t:{default:()=>[t]})};function Dce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!gn(e)}const Fce=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...s}=e;return G(z_,$t({ref:n},s),Dce(t)?t:{default:()=>[t]})};function Bce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!gn(e)}const Vce=(e,{slots:t})=>{const{columns:n,columnsStyles:s,depthMap:r,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:a,hasFixedColumns:l,hoveringRowKey:u,rowData:d,rowIndex:f,style:h,isScrolling:p,rowProps:g,rowClass:m,rowKey:v,rowEventHandlers:y,ns:T,onRowHovered:_,onRowExpanded:S}=e,w=Ra(m,{columns:n,rowData:d,rowIndex:f},""),A=Ra(g,{columns:n,rowData:d,rowIndex:f}),M=d[v],N=r[M]||0,L=!!i,F=f<0,W=[T.e("row"),w,{[T.e(`row-depth-${N}`)]:L&&f>=0,[T.is("expanded")]:L&&o.includes(M),[T.is("hovered")]:!p&&M===u,[T.is("fixed")]:!N&&F,[T.is("customized")]:!!t.row}],j=l?_:void 0,R={...A,columns:n,columnsStyles:s,class:W,depth:N,expandColumnKey:i,estimatedRowHeight:F?void 0:a,isScrolling:p,rowIndex:f,rowData:d,rowKey:M,rowEventHandlers:y,style:h};return G(Oce,$t(R,{onRowHover:j,onRowExpand:S}),Bce(t)?t:{default:()=>[t]})},uy=({columns:e,column:t,columnIndex:n,depth:s,expandIconProps:r,isScrolling:i,rowData:o,rowIndex:a,style:l,expandedRowKeys:u,ns:d,cellProps:f,expandColumnKey:h,indentSize:p,iconSize:g,rowKey:m},{slots:v})=>{const y=wo(l);if(t.placeholderSign===Sd)return G("div",{class:d.em("row-cell","placeholder"),style:y},null);const{cellRenderer:T,dataKey:_,dataGetter:S}=t,A=jP(T)||v.default||(K=>G(U_,K,null)),M=pt(S)?S({columns:e,column:t,columnIndex:n,rowData:o,rowIndex:a}):hn(o,_??""),N=Ra(f,{cellData:M,columns:e,column:t,columnIndex:n,rowIndex:a,rowData:o}),L={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:M,isScrolling:i,rowData:o,rowIndex:a},F=A(L),W=[d.e("row-cell"),t.class,t.align===Td.CENTER&&d.is("align-center"),t.align===Td.RIGHT&&d.is("align-right")],j=a>=0&&t.key===h,R=a>=0&&u.includes(o[m]);let q;const X=`margin-inline-start: ${s*p}px;`;return j&&(Pt(r)?q=G(Ice,$t(r,{class:[d.e("expand-icon"),d.is("expanded",R)],size:g,expanded:R,style:X,expandable:!0}),null):q=G("div",{style:[X,`width: ${g}px; height: ${g}px;`].join(" ")},null)),G("div",$t({class:W,style:y},N,{role:"cell"}),[q,F])};uy.inheritAttrs=!1;function Uce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!gn(e)}const Hce=({columns:e,columnsStyles:t,headerIndex:n,style:s,headerClass:r,headerProps:i,ns:o},{slots:a})=>{const l={columns:e,headerIndex:n},u=[o.e("header-row"),Ra(r,l,""),{[o.is("customized")]:!!a.header}],d={...Ra(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:s};return G(wce,d,Uce(a)?a:{default:()=>[a]})},cE=(e,{slots:t})=>{const{column:n,ns:s,style:r,onColumnSorted:i}=e,o=wo(r);if(n.placeholderSign===Sd)return G("div",{class:s.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:a,headerClass:l,sortable:u}=n,d={...e,class:s.e("header-cell-text")},h=(jP(a)||t.default||(S=>G(H_,S,null)))(d),{sortBy:p,sortState:g,headerCellProps:m}=e;let v,y;if(g){const S=g[n.key];v=!!ly[S],y=v?S:_d.ASC}else v=n.key===p.key,y=v?p.order:_d.ASC;const T=[s.e("header-cell"),Ra(l,e,""),n.align===Td.CENTER&&s.is("align-center"),n.align===Td.RIGHT&&s.is("align-right"),u&&s.is("sortable")],_={...Ra(m,e),onClick:n.sortable?i:void 0,class:T,style:o,["data-key"]:n.key};return G("div",$t(_,{role:"columnheader"}),[h,u&&G(Ace,{class:[s.e("sort-icon"),v&&s.is("sorting")],sortOrder:y},null)])},GP=(e,{slots:t})=>{var n;return G("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};GP.displayName="ElTableV2Footer";const YP=(e,{slots:t})=>G("div",{class:e.class,style:e.style},[t.default?t.default():G(Um,null,null)]);YP.displayName="ElTableV2Empty";const XP=(e,{slots:t})=>{var n;return G("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};XP.displayName="ElTableV2Overlay";function sc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!gn(e)}const zce="ElTableV2",jce=te({name:zce,props:Tce,setup(e,{slots:t,expose:n}){const s=Ne("table-v2"),{columnsStyles:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:a,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:f,data:h,depthMap:p,expandedRowKeys:g,hasFixedColumns:m,hoveringRowKey:v,mainTableRef:y,leftTableRef:T,rightTableRef:_,isDynamic:S,isResetting:w,isScrolling:A,bodyWidth:M,emptyStyle:N,rootStyle:L,headerWidth:F,footerHeight:W,showEmpty:j,scrollTo:R,scrollToLeft:q,scrollToTop:X,scrollToRow:K,getRowHeight:$,onColumnSorted:H,onRowHeightChange:U,onRowHovered:Z,onRowExpanded:ue,onRowsRendered:Q,onScroll:ae,onVerticalScroll:Ee}=bce(e);return n({scrollTo:R,scrollToLeft:q,scrollToTop:X,scrollToRow:K}),Nt(F_,{ns:s,isResetting:w,hoveringRowKey:v,isScrolling:A}),()=>{const{cache:le,cellProps:ie,estimatedRowHeight:ce,expandColumnKey:ne,fixedData:pe,headerHeight:Te,headerClass:He,headerProps:Y,headerCellProps:re,sortBy:Se,sortState:Oe,rowHeight:Ve,rowClass:_e,rowEventHandlers:Be,rowKey:Ie,rowProps:Ae,scrollbarAlwaysOn:Me,indentSize:Ye,iconSize:qe,useIsScrolling:Ce,vScrollbarSize:Ge,width:ut}=e,bt=c(h),ct={cache:le,class:s.e("main"),columns:c(a),data:bt,fixedData:pe,estimatedRowHeight:ce,bodyWidth:c(M),headerHeight:Te,headerWidth:c(F),height:c(l),mainTableRef:y,rowKey:Ie,rowHeight:Ve,scrollbarAlwaysOn:Me,scrollbarStartGap:2,scrollbarEndGap:Ge,useIsScrolling:Ce,width:ut,getRowHeight:$,onRowsRendered:Q,onScroll:ae},Le=c(d),De=c(u),be={cache:le,class:s.e("left"),columns:c(i),data:bt,estimatedRowHeight:ce,leftTableRef:T,rowHeight:Ve,bodyWidth:Le,headerWidth:Le,headerHeight:Te,height:De,rowKey:Ie,scrollbarAlwaysOn:Me,scrollbarStartGap:2,scrollbarEndGap:Ge,useIsScrolling:Ce,width:Le,getRowHeight:$,onScroll:Ee},fe=c(f)+Ge,Re={cache:le,class:s.e("right"),columns:c(o),data:bt,estimatedRowHeight:ce,rightTableRef:_,rowHeight:Ve,bodyWidth:fe,headerWidth:fe,headerHeight:Te,height:De,rowKey:Ie,scrollbarAlwaysOn:Me,scrollbarStartGap:2,scrollbarEndGap:Ge,width:fe,style:`--${c(s.namespace)}-table-scrollbar-size: ${Ge}px`,useIsScrolling:Ce,getRowHeight:$,onScroll:Ee},We=c(r),St={ns:s,depthMap:c(p),columnsStyles:We,expandColumnKey:ne,expandedRowKeys:c(g),estimatedRowHeight:ce,hasFixedColumns:c(m),hoveringRowKey:c(v),rowProps:Ae,rowClass:_e,rowKey:Ie,rowEventHandlers:Be,onRowHovered:Z,onRowExpanded:ue,onRowHeightChange:U},$e={cellProps:ie,expandColumnKey:ne,indentSize:Ye,iconSize:qe,rowKey:Ie,expandedRowKeys:c(g),ns:s},Ze={ns:s,headerClass:He,headerProps:Y,columnsStyles:We},Ct={ns:s,sortBy:Se,sortState:Oe,headerCellProps:re,onColumnSorted:H},xt={row:Nn=>G(Vce,$t(Nn,St),{row:t.row,cell:Fe=>{let lt;return t.cell?G(uy,$t(Fe,$e,{style:We[Fe.column.key]}),sc(lt=t.cell(Fe))?lt:{default:()=>[lt]}):G(uy,$t(Fe,$e,{style:We[Fe.column.key]}),null)}}),header:Nn=>G(Hce,$t(Nn,Ze),{header:t.header,cell:Fe=>{let lt;return t["header-cell"]?G(cE,$t(Fe,Ct,{style:We[Fe.column.key]}),sc(lt=t["header-cell"](Fe))?lt:{default:()=>[lt]}):G(cE,$t(Fe,Ct,{style:We[Fe.column.key]}),null)}})},Rt=[e.class,s.b(),s.e("root"),{[s.is("dynamic")]:c(S)}],Qt={class:s.e("footer"),style:c(W)};return G("div",{class:Rt,style:c(L)},[G(Mce,ct,sc(xt)?xt:{default:()=>[xt]}),G(Lce,be,sc(xt)?xt:{default:()=>[xt]}),G(Fce,Re,sc(xt)?xt:{default:()=>[xt]}),t.footer&&G(GP,Qt,{default:t.footer}),c(j)&&G(YP,{class:s.e("empty"),style:c(N)},{default:t.empty}),t.overlay&&G(XP,{class:s.e("overlay")},{default:t.overlay})])}}}),Kce=ze({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:me(Function)}}),Wce=te({name:"ElAutoResizer",props:Kce,setup(e,{slots:t}){const n=Ne("auto-resizer"),{height:s,width:r,sizer:i}=yce(e),o={width:"100%",height:"100%"};return()=>{var a;return G("div",{ref:i,class:n.b(),style:o},[(a=t.default)==null?void 0:a.call(t,{height:s.value,width:r.value})])}}}),qce=Ot(jce),Gce=Ot(Wce),zm=Symbol("tabsRootContextKey"),Yce=ze({tabs:{type:me(Array),default:()=>pn([])}}),QP="ElTabBar",Xce=te({name:QP}),Qce=te({...Xce,props:Yce,setup(e,{expose:t}){const n=e,s=At(),r=Qe(zm);r||zn(QP,"<el-tabs><el-tab-bar /></el-tabs>");const i=Ne("tabs"),o=B(),a=B(),l=()=>{let d=0,f=0;const h=["top","bottom"].includes(r.props.tabPosition)?"width":"height",p=h==="width"?"x":"y",g=p==="x"?"left":"top";return n.tabs.every(m=>{var v,y;const T=(y=(v=s.parent)==null?void 0:v.refs)==null?void 0:y[`tab-${m.uid}`];if(!T)return!1;if(!m.active)return!0;d=T[`offset${ni(g)}`],f=T[`client${ni(h)}`];const _=window.getComputedStyle(T);return h==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight)),d+=Number.parseFloat(_.paddingLeft)),!1}),{[h]:`${f}px`,transform:`translate${ni(p)}(${d}px)`}},u=()=>a.value=l();return ke(()=>n.tabs,async()=>{await it(),u()},{immediate:!0}),ds(o,()=>u()),t({ref:o,update:u}),(d,f)=>(x(),z("div",{ref_key:"barRef",ref:o,class:I([c(i).e("active-bar"),c(i).is(c(r).props.tabPosition)]),style:st(a.value)},null,6))}});var Jce=Ue(Qce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const Zce=ze({panes:{type:me(Array),default:()=>pn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),ede={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},dE="ElTabNav",tde=te({name:dE,props:Zce,emits:ede,setup(e,{expose:t,emit:n}){const s=At(),r=Qe(zm);r||zn(dE,"<el-tabs><tab-nav /></el-tabs>");const i=Ne("tabs"),o=IF(),a=VF(),l=B(),u=B(),d=B(),f=B(),h=B(!1),p=B(0),g=B(!1),m=B(!0),v=E(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),y=E(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${p.value}px)`})),T=()=>{if(!l.value)return;const L=l.value[`offset${ni(v.value)}`],F=p.value;if(!F)return;const W=F>L?F-L:0;p.value=W},_=()=>{if(!l.value||!u.value)return;const L=u.value[`offset${ni(v.value)}`],F=l.value[`offset${ni(v.value)}`],W=p.value;if(L-W<=F)return;const j=L-W>F*2?W+F:L-F;p.value=j},S=async()=>{const L=u.value;if(!h.value||!d.value||!l.value||!L)return;await it();const F=d.value.querySelector(".is-active");if(!F)return;const W=l.value,j=["top","bottom"].includes(r.props.tabPosition),R=F.getBoundingClientRect(),q=W.getBoundingClientRect(),X=j?L.offsetWidth-q.width:L.offsetHeight-q.height,K=p.value;let $=K;j?(R.left<q.left&&($=K-(q.left-R.left)),R.right>q.right&&($=K+R.right-q.right)):(R.top<q.top&&($=K-(q.top-R.top)),R.bottom>q.bottom&&($=K+(R.bottom-q.bottom))),$=Math.max($,0),p.value=Math.min($,X)},w=()=>{var L;if(!u.value||!l.value)return;e.stretch&&((L=f.value)==null||L.update());const F=u.value[`offset${ni(v.value)}`],W=l.value[`offset${ni(v.value)}`],j=p.value;W<F?(h.value=h.value||{},h.value.prev=j,h.value.next=j+W<F,F-j<W&&(p.value=F-W)):(h.value=!1,j>0&&(p.value=0))},A=L=>{const F=L.code,{up:W,down:j,left:R,right:q}=at;if(![W,j,R,q].includes(F))return;const X=Array.from(L.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),K=X.indexOf(L.target);let $;F===R||F===W?K===0?$=X.length-1:$=K-1:K<X.length-1?$=K+1:$=0,X[$].focus({preventScroll:!0}),X[$].click(),M()},M=()=>{m.value&&(g.value=!0)},N=()=>g.value=!1;return ke(o,L=>{L==="hidden"?m.value=!1:L==="visible"&&setTimeout(()=>m.value=!0,50)}),ke(a,L=>{L?setTimeout(()=>m.value=!0,50):m.value=!1}),ds(d,w),Tt(()=>setTimeout(()=>S(),0)),to(()=>w()),t({scrollToActiveTab:S,removeFocus:N}),ke(()=>e.panes,()=>s.update(),{flush:"post",deep:!0}),()=>{const L=h.value?[G("span",{class:[i.e("nav-prev"),i.is("disabled",!h.value.prev)],onClick:T},[G(nt,null,{default:()=>[G(Po,null,null)]})]),G("span",{class:[i.e("nav-next"),i.is("disabled",!h.value.next)],onClick:_},[G(nt,null,{default:()=>[G(ws,null,null)]})])]:null,F=e.panes.map((W,j)=>{var R,q,X,K;const $=W.uid,H=W.props.disabled,U=(q=(R=W.props.name)!=null?R:W.index)!=null?q:`${j}`,Z=!H&&(W.isClosable||e.editable);W.index=`${j}`;const ue=Z?G(nt,{class:"is-icon-close",onClick:Ee=>n("tabRemove",W,Ee)},{default:()=>[G(Hr,null,null)]}):null,Q=((K=(X=W.slots).label)==null?void 0:K.call(X))||W.props.label,ae=!H&&W.active?0:-1;return G("div",{ref:`tab-${$}`,class:[i.e("item"),i.is(r.props.tabPosition),i.is("active",W.active),i.is("disabled",H),i.is("closable",Z),i.is("focus",g.value)],id:`tab-${U}`,key:`tab-${$}`,"aria-controls":`pane-${U}`,role:"tab","aria-selected":W.active,tabindex:ae,onFocus:()=>M(),onBlur:()=>N(),onClick:Ee=>{N(),n("tabClick",W,U,Ee)},onKeydown:Ee=>{Z&&(Ee.code===at.delete||Ee.code===at.backspace)&&n("tabRemove",W,Ee)}},[Q,ue])});return G("div",{ref:d,class:[i.e("nav-wrap"),i.is("scrollable",!!h.value),i.is(r.props.tabPosition)]},[L,G("div",{class:i.e("nav-scroll"),ref:l},[G("div",{class:[i.e("nav"),i.is(r.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:u,style:y.value,role:"tablist",onKeydown:A},[e.type?null:G(Jce,{ref:f,tabs:[...e.panes]},null),F])])])}}}),nde=ze({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:me(Function),default:()=>!0},stretch:Boolean}),dv=e=>mt(e)||ht(e),sde={[It]:e=>dv(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>dv(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>dv(e),tabAdd:()=>!0};var rde=te({name:"ElTabs",props:nde,emits:sde,setup(e,{emit:t,slots:n,expose:s}){var r,i;const o=Ne("tabs"),{children:a,addChild:l,removeChild:u}=hA(At(),"ElTabPane"),d=B(),f=B((i=(r=e.modelValue)!=null?r:e.activeName)!=null?i:"0"),h=y=>{f.value=y,t(It,y),t("tabChange",y)},p=async y=>{var T,_,S;if(!(f.value===y||Qn(y)))try{await((T=e.beforeLeave)==null?void 0:T.call(e,y,f.value))!==!1&&(h(y),(S=(_=d.value)==null?void 0:_.removeFocus)==null||S.call(_))}catch{}},g=(y,T,_)=>{y.props.disabled||(p(T),t("tabClick",y,_))},m=(y,T)=>{y.props.disabled||Qn(y.props.name)||(T.stopPropagation(),t("edit",y.props.name,"remove"),t("tabRemove",y.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")};return gi({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"},E(()=>!!e.activeName)),ke(()=>e.activeName,y=>p(y)),ke(()=>e.modelValue,y=>p(y)),ke(f,async()=>{var y;await it(),(y=d.value)==null||y.scrollToActiveTab()}),Nt(zm,{props:e,currentName:f,registerPane:l,unregisterPane:u}),s({currentName:f}),()=>{const y=e.editable||e.addable?G("span",{class:o.e("new-tab"),tabindex:"0",onClick:v,onKeydown:S=>{S.code===at.enter&&v()}},[G(nt,{class:o.is("icon-plus")},{default:()=>[G(CO,null,null)]})]):null,T=G("div",{class:[o.e("header"),o.is(e.tabPosition)]},[y,G(tde,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:a.value,stretch:e.stretch,onTabClick:g,onTabRemove:m},null)]),_=G("div",{class:o.e("content")},[xe(n,"default")]);return G("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"?[T,_]:[_,T]])}}});const ide=ze({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),ode=["id","aria-hidden","aria-labelledby"],JP="ElTabPane",ade=te({name:JP}),lde=te({...ade,props:ide,setup(e){const t=e,n=At(),s=es(),r=Qe(zm);r||zn(JP,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Ne("tab-pane"),o=B(),a=E(()=>t.closable||r.props.closable),l=zS(()=>{var p;return r.currentName.value===((p=t.name)!=null?p:o.value)}),u=B(l.value),d=E(()=>{var p;return(p=t.name)!=null?p:o.value}),f=zS(()=>!t.lazy||u.value||l.value);ke(l,p=>{p&&(u.value=!0)});const h=Bt({uid:n.uid,slots:s,props:t,paneName:d,active:l,index:o,isClosable:a});return Tt(()=>{r.registerPane(h)}),Vo(()=>{r.unregisterPane(h.uid)}),(p,g)=>c(f)?gt((x(),z("div",{key:0,id:`pane-${c(d)}`,class:I(c(i).b()),role:"tabpanel","aria-hidden":!c(l),"aria-labelledby":`tab-${c(d)}`},[xe(p.$slots,"default")],10,ode)),[[Ut,c(l)]]):he("v-if",!0)}});var ZP=Ue(lde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const j_=Ot(rde,{TabPane:ZP}),K_=Cn(ZP),ude=ze({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Ci,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),cde=te({name:"ElText"}),dde=te({...cde,props:ude,setup(e){const t=e,n=Fn(),s=Ne("text"),r=E(()=>[s.b(),s.m(t.type),s.m(n.value),s.is("truncated",t.truncated)]);return(i,o)=>(x(),ve(Mt(i.tag),{class:I(c(r))},{default:ee(()=>[xe(i.$slots,"default")]),_:3},8,["class"]))}});var fde=Ue(dde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const hde=Ot(fde),pde=ze({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:is,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:me([String,Object]),default:()=>wO},clearIcon:{type:me([String,Object]),default:()=>Ho}}),Li=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const s=Number.parseInt(t[1],10),r=e.toUpperCase();return r.includes("AM")&&n===12?n=0:r.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:s}}return null},fv=(e,t)=>{const n=Li(e);if(!n)return-1;const s=Li(t);if(!s)return-1;const r=n.minutes+n.hours*60,i=s.minutes+s.hours*60;return r===i?0:r>i?1:-1},fE=e=>`${e}`.padStart(2,"0"),hl=e=>`${fE(e.hours)}:${fE(e.minutes)}`,mde=(e,t)=>{const n=Li(e);if(!n)return"";const s=Li(t);if(!s)return"";const r={hours:n.hours,minutes:n.minutes};return r.minutes+=s.minutes,r.hours+=s.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,hl(r)},gde=te({name:"ElTimeSelect"}),vde=te({...gde,props:pde,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;Et.extend(g_);const{Option:s}=Ma,r=Ne("input"),i=B(),o=zs(),a=E(()=>n.modelValue),l=E(()=>{const v=Li(n.start);return v?hl(v):null}),u=E(()=>{const v=Li(n.end);return v?hl(v):null}),d=E(()=>{const v=Li(n.step);return v?hl(v):null}),f=E(()=>{const v=Li(n.minTime||"");return v?hl(v):null}),h=E(()=>{const v=Li(n.maxTime||"");return v?hl(v):null}),p=E(()=>{const v=[];if(n.start&&n.end&&n.step){let y=l.value,T;for(;y&&u.value&&fv(y,u.value)<=0;)T=Et(y,"HH:mm").format(n.format),v.push({value:T,disabled:fv(y,f.value||"-1:-1")<=0||fv(y,h.value||"100:100")>=0}),y=mde(y,d.value)}return v});return t({blur:()=>{var v,y;(y=(v=i.value)==null?void 0:v.blur)==null||y.call(v)},focus:()=>{var v,y;(y=(v=i.value)==null?void 0:v.focus)==null||y.call(v)}}),(v,y)=>(x(),ve(c(Ma),{ref_key:"select",ref:i,"model-value":c(a),disabled:c(o),clearable:v.clearable,"clear-icon":v.clearIcon,size:v.size,effect:v.effect,placeholder:v.placeholder,"default-first-option":"",filterable:v.editable,"onUpdate:modelValue":y[0]||(y[0]=T=>v.$emit("update:modelValue",T)),onChange:y[1]||(y[1]=T=>v.$emit("change",T)),onBlur:y[2]||(y[2]=T=>v.$emit("blur",T)),onFocus:y[3]||(y[3]=T=>v.$emit("focus",T))},{prefix:ee(()=>[v.prefixIcon?(x(),ve(c(nt),{key:0,class:I(c(r).e("prefix-icon"))},{default:ee(()=>[(x(),ve(Mt(v.prefixIcon)))]),_:1},8,["class"])):he("v-if",!0)]),default:ee(()=>[(x(!0),z(et,null,kt(c(p),T=>(x(),ve(c(s),{key:T.value,label:T.value,value:T.value,disabled:T.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var Uh=Ue(vde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);Uh.install=e=>{e.component(Uh.name,Uh)};const yde=Uh,bde=yde,_de=te({name:"ElTimeline",setup(e,{slots:t}){const n=Ne("timeline");return Nt("timeline",t),()=>ot("ul",{class:[n.b()]},[xe(t,"default")])}}),Tde=ze({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:on},hollow:{type:Boolean,default:!1}}),Sde=te({name:"ElTimelineItem"}),wde=te({...Sde,props:Tde,setup(e){const t=Ne("timeline-item");return(n,s)=>(x(),z("li",{class:I([c(t).b(),{[c(t).e("center")]:n.center}])},[V("div",{class:I(c(t).e("tail"))},null,2),n.$slots.dot?he("v-if",!0):(x(),z("div",{key:0,class:I([c(t).e("node"),c(t).em("node",n.size||""),c(t).em("node",n.type||""),c(t).is("hollow",n.hollow)]),style:st({backgroundColor:n.color})},[n.icon?(x(),ve(c(nt),{key:0,class:I(c(t).e("icon"))},{default:ee(()=>[(x(),ve(Mt(n.icon)))]),_:1},8,["class"])):he("v-if",!0)],6)),n.$slots.dot?(x(),z("div",{key:1,class:I(c(t).e("dot"))},[xe(n.$slots,"dot")],2)):he("v-if",!0),V("div",{class:I(c(t).e("wrapper"))},[!n.hideTimestamp&&n.placement==="top"?(x(),z("div",{key:0,class:I([c(t).e("timestamp"),c(t).is("top")])},we(n.timestamp),3)):he("v-if",!0),V("div",{class:I(c(t).e("content"))},[xe(n.$slots,"default")],2),!n.hideTimestamp&&n.placement==="bottom"?(x(),z("div",{key:1,class:I([c(t).e("timestamp"),c(t).is("bottom")])},we(n.timestamp),3)):he("v-if",!0)],2)],2))}});var e$=Ue(wde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const Cde=Ot(_de,{TimelineItem:e$}),Ede=Cn(e$),t$=ze({nowrap:Boolean});var n$=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(n$||{});const xde=Object.values(n$),W_=ze({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:me(Object),default:null}}),kde=ze({side:{type:me(String),values:xde,required:!0}}),Ode=["absolute","fixed"],Ade=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],q_=ze({ariaLabel:String,arrowPadding:{type:me(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:me(String),values:Ade,default:"bottom"},reference:{type:me(Object),default:null},offset:{type:Number,default:8},strategy:{type:me(String),values:Ode,default:"absolute"},showArrow:{type:Boolean,default:!1}}),G_=ze({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:me(Function)},"onUpdate:open":{type:me(Function)}}),tl={type:me(Function)},Y_=ze({onBlur:tl,onClick:tl,onFocus:tl,onMouseDown:tl,onMouseEnter:tl,onMouseLeave:tl}),Ide=ze({...G_,...W_,...Y_,...q_,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:me(Object),default:null},teleported:Boolean,to:{type:me(String),default:"body"}}),jm=Symbol("tooltipV2"),s$=Symbol("tooltipV2Content"),hv="tooltip_v2.open",Pde=te({name:"ElTooltipV2Root"}),$de=te({...Pde,props:G_,setup(e,{expose:t}){const n=e,s=B(n.defaultOpen),r=B(null),i=E({get:()=>qU(n.open)?s.value:n.open,set:v=>{var y;s.value=v,(y=n["onUpdate:open"])==null||y.call(n,v)}}),o=E(()=>ht(n.delayDuration)&&n.delayDuration>0),{start:a,stop:l}=$a(()=>{i.value=!0},E(()=>n.delayDuration),{immediate:!1}),u=Ne("tooltip-v2"),d=Tr(),f=()=>{l(),i.value=!0},h=()=>{c(o)?a():f()},p=f,g=()=>{l(),i.value=!1};return ke(i,v=>{var y;v&&(document.dispatchEvent(new CustomEvent(hv)),p()),(y=n.onOpenChange)==null||y.call(n,v)}),Tt(()=>{document.addEventListener(hv,g)}),ln(()=>{l(),document.removeEventListener(hv,g)}),Nt(jm,{contentId:d,triggerRef:r,ns:u,onClose:g,onDelayOpen:h,onOpen:p}),t({onOpen:p,onClose:g}),(v,y)=>xe(v.$slots,"default",{open:c(i)})}});var Nde=Ue($de,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const Mde=te({name:"ElTooltipV2Arrow"}),Rde=te({...Mde,props:{...W_,...kde},setup(e){const t=e,{ns:n}=Qe(jm),{arrowRef:s}=Qe(s$),r=E(()=>{const{style:i,width:o,height:a}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${o}px`,[`--${l}-tooltip-v2-arrow-height`]:`${a}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${o/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:o/2-1,...i||{}}});return(i,o)=>(x(),z("span",{ref_key:"arrowRef",ref:s,style:st(c(r)),class:I(c(n).e("arrow"))},null,6))}});var hE=Ue(Rde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const Lde=ze({style:{type:me([String,Object,Array]),default:()=>({})}}),Dde=te({name:"ElVisuallyHidden"}),Fde=te({...Dde,props:Lde,setup(e){const t=e,n=E(()=>[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(s,r)=>(x(),z("span",$t(s.$attrs,{style:c(n)}),[xe(s.$slots,"default")],16))}});var Bde=Ue(Fde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const Vde=["data-side"],Ude=te({name:"ElTooltipV2Content"}),Hde=te({...Ude,props:{...q_,...t$},setup(e){const t=e,{triggerRef:n,contentId:s}=Qe(jm),r=B(t.placement),i=B(t.strategy),o=B(null),{referenceRef:a,contentRef:l,middlewareData:u,x:d,y:f,update:h}=R7({placement:r,strategy:i,middleware:E(()=>{const _=[A7(t.offset)];return t.showArrow&&_.push(L7({arrowRef:o})),_})}),p=ja().nextZIndex(),g=Ne("tooltip-v2"),m=E(()=>r.value.split("-")[0]),v=E(()=>({position:c(i),top:`${c(f)||0}px`,left:`${c(d)||0}px`,zIndex:p})),y=E(()=>{if(!t.showArrow)return{};const{arrow:_}=c(u);return{[`--${g.namespace.value}-tooltip-v2-arrow-x`]:`${_==null?void 0:_.x}px`||"",[`--${g.namespace.value}-tooltip-v2-arrow-y`]:`${_==null?void 0:_.y}px`||""}}),T=E(()=>[g.e("content"),g.is("dark",t.effect==="dark"),g.is(c(i)),t.contentClass]);return ke(o,()=>h()),ke(()=>t.placement,_=>r.value=_),Tt(()=>{ke(()=>t.reference||n.value,_=>{a.value=_||void 0},{immediate:!0})}),Nt(s$,{arrowRef:o}),(_,S)=>(x(),z("div",{ref_key:"contentRef",ref:l,style:st(c(v)),"data-tooltip-v2-root":""},[_.nowrap?he("v-if",!0):(x(),z("div",{key:0,"data-side":c(m),class:I(c(T))},[xe(_.$slots,"default",{contentStyle:c(v),contentClass:c(T)}),G(c(Bde),{id:c(s),role:"tooltip"},{default:ee(()=>[_.ariaLabel?(x(),z(et,{key:0},[wt(we(_.ariaLabel),1)],64)):xe(_.$slots,"default",{key:1})]),_:3},8,["id"]),xe(_.$slots,"arrow",{style:st(c(y)),side:c(m)})],10,Vde))],4))}});var pE=Ue(Hde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const zde=ze({setRef:{type:me(Function),required:!0},onlyChild:Boolean});var jde=te({props:zde,setup(e,{slots:t}){const n=B(),s=xm(n,r=>{r?e.setRef(r.nextElementSibling):e.setRef(null)});return()=>{var r;const[i]=((r=t.default)==null?void 0:r.call(t))||[],o=e.onlyChild?ZK(i.children):i.children;return G(et,{ref:s},[o])}}});const Kde=te({name:"ElTooltipV2Trigger"}),Wde=te({...Kde,props:{...t$,...Y_},setup(e){const t=e,{onClose:n,onOpen:s,onDelayOpen:r,triggerRef:i,contentId:o}=Qe(jm);let a=!1;const l=T=>{i.value=T},u=()=>{a=!1},d=_n(t.onMouseEnter,r),f=_n(t.onMouseLeave,n),h=_n(t.onMouseDown,()=>{n(),a=!0,document.addEventListener("mouseup",u,{once:!0})}),p=_n(t.onFocus,()=>{a||s()}),g=_n(t.onBlur,n),m=_n(t.onClick,T=>{T.detail===0&&n()}),v={blur:g,click:m,focus:p,mousedown:h,mouseenter:d,mouseleave:f},y=(T,_,S)=>{T&&Object.entries(_).forEach(([w,A])=>{T[S](w,A)})};return ke(i,(T,_)=>{y(T,v,"addEventListener"),y(_,v,"removeEventListener"),T&&T.setAttribute("aria-describedby",o.value)}),ln(()=>{y(i.value,v,"removeEventListener"),document.removeEventListener("mouseup",u)}),(T,_)=>T.nowrap?(x(),ve(c(jde),{key:0,"set-ref":l,"only-child":""},{default:ee(()=>[xe(T.$slots,"default")]),_:3})):(x(),z("button",$t({key:1,ref_key:"triggerRef",ref:i},T.$attrs),[xe(T.$slots,"default")],16))}});var qde=Ue(Wde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const Gde=te({name:"ElTooltipV2"}),Yde=te({...Gde,props:Ide,setup(e){const n=Hn(e),s=Bt(Bi(n,Object.keys(W_))),r=Bt(Bi(n,Object.keys(q_))),i=Bt(Bi(n,Object.keys(G_))),o=Bt(Bi(n,Object.keys(Y_)));return(a,l)=>(x(),ve(Nde,Mr(pm(i)),{default:ee(({open:u})=>[G(qde,$t(o,{nowrap:""}),{default:ee(()=>[xe(a.$slots,"trigger")]),_:3},16),(x(),ve(Fd,{to:a.to,disabled:!a.teleported},[a.fullTransition?(x(),ve(Pn,Mr($t({key:0},a.transitionProps)),{default:ee(()=>[a.alwaysOn||u?(x(),ve(pE,Mr($t({key:0},r)),{arrow:ee(({style:d,side:f})=>[a.showArrow?(x(),ve(hE,$t({key:0},s,{style:d,side:f}),null,16,["style","side"])):he("v-if",!0)]),default:ee(()=>[xe(a.$slots,"default")]),_:3},16)):he("v-if",!0)]),_:2},1040)):(x(),z(et,{key:1},[a.alwaysOn||u?(x(),ve(pE,Mr($t({key:0},r)),{arrow:ee(({style:d,side:f})=>[a.showArrow?(x(),ve(hE,$t({key:0},s,{style:d,side:f}),null,16,["style","side"])):he("v-if",!0)]),default:ee(()=>[xe(a.$slots,"default")]),_:3},16)):he("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var Xde=Ue(Yde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const Qde=Ot(Xde),r$="left-check-change",i$="right-check-change",pl=ze({data:{type:me(Array),default:()=>[]},titles:{type:me(Array),default:()=>[]},buttonTexts:{type:me(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:me(Function)},leftDefaultChecked:{type:me(Array),default:()=>[]},rightDefaultChecked:{type:me(Array),default:()=>[]},renderContent:{type:me(Function)},modelValue:{type:me(Array),default:()=>[]},format:{type:me(Object),default:()=>({})},filterable:Boolean,props:{type:me(Object),default:()=>pn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),cy=(e,t)=>[e,t].every(tt)||tt(e)&&Kn(t),Jde={[an]:(e,t,n)=>[e,n].every(tt)&&["left","right"].includes(t),[It]:e=>tt(e),[r$]:cy,[i$]:cy},dy="checked-change",Zde=ze({data:pl.data,optionRender:{type:me(Function)},placeholder:String,title:String,filterable:Boolean,format:pl.format,filterMethod:pl.filterMethod,defaultChecked:pl.leftDefaultChecked,props:pl.props}),efe={[dy]:cy},Zd=e=>{const t={label:"label",key:"key",disabled:"disabled"};return E(()=>({...t,...e.props}))},tfe=(e,t,n)=>{const s=Zd(e),r=E(()=>e.data.filter(d=>pt(e.filterMethod)?e.filterMethod(t.query,d):String(d[s.value.label]||d[s.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=E(()=>r.value.filter(d=>!d[s.value.disabled])),o=E(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:p}=e.format;return h&&p?d>0?p.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),a=E(()=>{const d=t.checked.length;return d>0&&d<i.value.length}),l=()=>{const d=i.value.map(f=>f[s.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},u=d=>{t.checked=d?i.value.map(f=>f[s.value.key]):[]};return ke(()=>t.checked,(d,f)=>{if(l(),t.checkChangeByUser){const h=d.concat(f).filter(p=>!d.includes(p)||!f.includes(p));n(dy,d,h)}else n(dy,d),t.checkChangeByUser=!0}),ke(i,()=>{l()}),ke(()=>e.data,()=>{const d=[],f=r.value.map(h=>h[s.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),ke(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(g=>f.includes(g)))return;const h=[],p=i.value.map(g=>g[s.value.key]);d.forEach(g=>{p.includes(g)&&h.push(g)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:r,checkableData:i,checkedSummary:o,isIndeterminate:a,updateAllChecked:l,handleAllCheckedChange:u}},nfe=(e,t)=>({onSourceCheckedChange:(r,i)=>{e.leftChecked=r,i&&t(r$,r,i)},onTargetCheckedChange:(r,i)=>{e.rightChecked=r,i&&t(i$,r,i)}}),sfe=e=>{const t=Zd(e),n=E(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),s=E(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),r=E(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,o)=>{const a=n.value[o];return a&&i.push(a),i},[]));return{sourceData:s,targetData:r}},rfe=(e,t,n)=>{const s=Zd(e),r=(a,l,u)=>{n(It,a),n(an,a,l,u)};return{addToLeft:()=>{const a=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=a.indexOf(l);u>-1&&a.splice(u,1)}),r(a,"left",t.rightChecked)},addToRight:()=>{let a=e.modelValue.slice();const l=e.data.filter(u=>{const d=u[s.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(u=>u[s.value.key]);a=e.targetOrder==="unshift"?l.concat(a):a.concat(l),e.targetOrder==="original"&&(a=e.data.filter(u=>a.includes(u[s.value.key])).map(u=>u[s.value.key])),r(a,"right",t.leftChecked)}}},ife=te({name:"ElTransferPanel"}),ofe=te({...ife,props:Zde,emits:efe,setup(e,{expose:t,emit:n}){const s=e,r=es(),i=({option:_})=>_,{t:o}=qt(),a=Ne("transfer"),l=Bt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=Zd(s),{filteredData:d,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:p}=tfe(s,l,n),g=E(()=>!fr(l.query)&&fr(d.value)),m=E(()=>!fr(r.default()[0].children)),{checked:v,allChecked:y,query:T}=Hn(l);return t({query:T}),(_,S)=>(x(),z("div",{class:I(c(a).b("panel"))},[V("p",{class:I(c(a).be("panel","header"))},[G(c(Sr),{modelValue:c(y),"onUpdate:modelValue":S[0]||(S[0]=w=>rn(y)?y.value=w:null),indeterminate:c(h),"validate-event":!1,onChange:c(p)},{default:ee(()=>[wt(we(_.title)+" ",1),V("span",null,we(c(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),V("div",{class:I([c(a).be("panel","body"),c(a).is("with-footer",c(m))])},[_.filterable?(x(),ve(c(ls),{key:0,modelValue:c(T),"onUpdate:modelValue":S[1]||(S[1]=w=>rn(T)?T.value=w:null),class:I(c(a).be("panel","filter")),size:"default",placeholder:_.placeholder,"prefix-icon":c(dp),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):he("v-if",!0),gt(G(c(dI),{modelValue:c(v),"onUpdate:modelValue":S[2]||(S[2]=w=>rn(v)?v.value=w:null),"validate-event":!1,class:I([c(a).is("filterable",_.filterable),c(a).be("panel","list")])},{default:ee(()=>[(x(!0),z(et,null,kt(c(d),w=>(x(),ve(c(Sr),{key:w[c(u).key],class:I(c(a).be("panel","item")),label:w[c(u).key],disabled:w[c(u).disabled],"validate-event":!1},{default:ee(()=>{var A;return[G(i,{option:(A=_.optionRender)==null?void 0:A.call(_,w)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Ut,!c(g)&&!c(fr)(_.data)]]),gt(V("p",{class:I(c(a).be("panel","empty"))},we(c(g)?c(o)("el.transfer.noMatch"):c(o)("el.transfer.noData")),3),[[Ut,c(g)||c(fr)(_.data)]])],2),c(m)?(x(),z("p",{key:0,class:I(c(a).be("panel","footer"))},[xe(_.$slots,"default")],2)):he("v-if",!0)],2))}});var mE=Ue(ofe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const afe={key:0},lfe={key:0},ufe=te({name:"ElTransfer"}),cfe=te({...ufe,props:pl,emits:Jde,setup(e,{expose:t,emit:n}){const s=e,r=es(),{t:i}=qt(),o=Ne("transfer"),{formItem:a}=Is(),l=Bt({leftChecked:[],rightChecked:[]}),u=Zd(s),{sourceData:d,targetData:f}=sfe(s),{onSourceCheckedChange:h,onTargetCheckedChange:p}=nfe(l,n),{addToLeft:g,addToRight:m}=rfe(s,l,n),v=B(),y=B(),T=N=>{switch(N){case"left":v.value.query="";break;case"right":y.value.query="";break}},_=E(()=>s.buttonTexts.length===2),S=E(()=>s.titles[0]||i("el.transfer.titles.0")),w=E(()=>s.titles[1]||i("el.transfer.titles.1")),A=E(()=>s.filterPlaceholder||i("el.transfer.filterPlaceholder"));ke(()=>s.modelValue,()=>{var N;s.validateEvent&&((N=a==null?void 0:a.validate)==null||N.call(a,"change").catch(L=>void 0))});const M=E(()=>N=>s.renderContent?s.renderContent(ot,N):r.default?r.default({option:N}):ot("span",N[u.value.label]||N[u.value.key]));return t({clearQuery:T,leftPanel:v,rightPanel:y}),(N,L)=>(x(),z("div",{class:I(c(o).b())},[G(mE,{ref_key:"leftPanel",ref:v,data:c(d),"option-render":c(M),placeholder:c(A),title:c(S),filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,"default-checked":N.leftDefaultChecked,props:s.props,onCheckedChange:c(h)},{default:ee(()=>[xe(N.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),V("div",{class:I(c(o).e("buttons"))},[G(c(Un),{type:"primary",class:I([c(o).e("button"),c(o).is("with-texts",c(_))]),disabled:c(fr)(l.rightChecked),onClick:c(g)},{default:ee(()=>[G(c(nt),null,{default:ee(()=>[G(c(Po))]),_:1}),c(Qn)(N.buttonTexts[0])?he("v-if",!0):(x(),z("span",afe,we(N.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),G(c(Un),{type:"primary",class:I([c(o).e("button"),c(o).is("with-texts",c(_))]),disabled:c(fr)(l.leftChecked),onClick:c(m)},{default:ee(()=>[c(Qn)(N.buttonTexts[1])?he("v-if",!0):(x(),z("span",lfe,we(N.buttonTexts[1]),1)),G(c(nt),null,{default:ee(()=>[G(c(ws))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),G(mE,{ref_key:"rightPanel",ref:y,data:c(f),"option-render":c(M),placeholder:c(A),filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,title:c(w),"default-checked":N.rightDefaultChecked,props:s.props,onCheckedChange:c(p)},{default:ee(()=>[xe(N.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var dfe=Ue(cfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ffe=Ot(dfe),Nl="$treeNodeId",gE=function(e,t){!t||t[Nl]||Object.defineProperty(t,Nl,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},X_=function(e,t){return e?t[e]:t[Nl]},fy=(e,t,n)=>{const s=e.value.currentNode;n();const r=e.value.currentNode;s!==r&&t("current-change",r?r.data:null,r)},hy=e=>{let t=!0,n=!0,s=!0;for(let r=0,i=e.length;r<i;r++){const o=e[r];(o.checked!==!0||o.indeterminate)&&(t=!1,o.disabled||(s=!1)),(o.checked!==!1||o.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:s,half:!t&&!n}},Hh=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:s}=hy(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):s?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const r=e.parent;!r||r.level===0||e.store.checkStrictly||Hh(r)},oh=function(e,t){const n=e.store.props,s=e.data||{},r=n[t];if(typeof r=="function")return r(s,e);if(typeof r=="string")return s[r];if(typeof r>"u"){const i=s[t];return i===void 0?"":i}};let hfe=0,py=class zh{constructor(t){this.id=hfe++,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)Ft(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=oh(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)||gE(this,this.data),!this.data)return;const s=t.defaultExpandedKeys,r=t.key;r&&s&&s.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&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)||gE(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=oh(this,"children")||[];for(let s=0,r=n.length;s<r;s++)this.insertChild({data:n[s]})}get label(){return oh(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return oh(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(s=>s===t||n&&s.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,s){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof zh)){if(!s){const r=this.getChildren(!0);r.includes(t.data)||(typeof n>"u"||n<0?r.push(t.data):r.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Bt(new zh(t)),t instanceof zh&&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 s;n&&(s=this.childNodes.indexOf(n)),this.insertChild(t,s)}insertAfter(t,n){let s;n&&(s=this.childNodes.indexOf(n),s!==-1&&(s+=1)),this.insertChild(t,s)}removeChild(t){const n=this.getChildren()||[],s=n.indexOf(t.data);s>-1&&n.splice(s,1);const r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let s=0;s<this.childNodes.length;s++)if(this.childNodes[s].data===t){n=this.childNodes[s];break}n&&this.removeChild(n)}expand(t,n){const s=()=>{if(n){let r=this.parent;for(;r.level>0;)r.expanded=!0,r=r.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(r=>{r.canFocus=!0})};this.shouldLoadData()?this.loadData(r=>{Array.isArray(r)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Hh(this),s())}):s()}doCreateChildren(t,n={}){t.forEach(s=>{this.insertChild(Object.assign({data:s},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,s,r){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:o,allWithoutDisable:a}=hy(this.childNodes);!this.isLeaf&&!o&&a&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let h=0,p=u.length;h<p;h++){const g=u[h];r=r||t!==!1;const m=g.disabled?g.checked:r;g.setChecked(m,n,!0,r)}const{half:d,all:f}=hy(u);f||(this.checked=f,this.indeterminate=d)}};if(this.shouldLoadData()){this.loadData(()=>{l(),Hh(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||s||Hh(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const s=this.store.props;let r="children";return s&&(r=s.children||"children"),n[r]===void 0&&(n[r]=null),t&&!n[r]&&(n[r]=[]),n[r]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),s={},r=[];t.forEach((i,o)=>{const a=i[Nl];!!a&&n.findIndex(u=>u[Nl]===a)>=0?s[a]={index:o,data:i}:r.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{s[i[Nl]]||this.removeChildByData(i)}),r.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 s=r=>{this.childNodes=[],this.doCreateChildren(r,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,r)};this.store.load(this,s)}else t&&t.call(this)}};class pfe{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)Ft(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new py({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,s=this.lazy,r=function(i){const o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(a=>{a.visible=n.call(a,t,a.data,a),r(a)}),!i.visible&&o.length){let a=!0;a=!o.some(l=>l.visible),i.root?i.root.visible=a===!1:i.visible=a===!1}t&&i.visible&&!i.isLeaf&&!s&&i.expand()};r(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof py)return t;const n=Pt(t)?X_(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const s=this.getNode(n);s.parent.insertBefore({data:t},s)}insertAfter(t,n){const s=this.getNode(n);s.parent.insertAfter({data:t},s)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const s=n?this.getNode(n):this.root;s&&s.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(s=>{const r=n[s];r&&r.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(s=>{this.deregisterNode(s)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const s=[],r=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(a=>{(a.checked||n&&a.indeterminate)&&(!t||t&&a.isLeaf)&&s.push(a.data),r(a)})};return r(this),s}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(s){(s.root?s.root.childNodes:s.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 s in n)Ft(n,s)&&t.push(n[s]);return t}updateChildren(t,n){const s=this.nodesMap[t];if(!s)return;const r=s.childNodes;for(let i=r.length-1;i>=0;i--){const o=r[i];this.remove(o.data)}for(let i=0,o=n.length;i<o;i++){const a=n[i];this.append(a,s.data)}}_setCheckedKeys(t,n=!1,s){const r=this._getAllNodes().sort((a,l)=>l.level-a.level),i=Object.create(null),o=Object.keys(s);r.forEach(a=>a.setChecked(!1,!1));for(let a=0,l=r.length;a<l;a++){const u=r[a],d=u.data[t].toString();if(!o.includes(d)){u.checked&&!i[d]&&u.setChecked(!1,!1);continue}let h=u.parent;for(;h&&h.level>0;)i[h.data[t]]=!0,h=h.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const p=function(g){g.childNodes.forEach(v=>{v.isLeaf||v.setChecked(!1,!1),p(v)})};p(u)}}}setCheckedNodes(t,n=!1){const s=this.key,r={};t.forEach(i=>{r[(i||{})[s]]=!0}),this._setCheckedKeys(s,n,r)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const s=this.key,r={};t.forEach(i=>{r[i]=!0}),this._setCheckedKeys(s,n,r)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const s=this.getNode(n);s&&s.expand(null,this.autoExpandParent)})}setChecked(t,n,s){const r=this.getNode(t);r&&r.setChecked(!!n,s)}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 s=t[this.key],r=this.nodesMap[s];this.setCurrentNode(r),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 s=this.getNode(t);s&&(this.setCurrentNode(s),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const mfe=te({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ne("tree"),n=Qe("NodeInstance"),s=Qe("RootTree");return()=>{const r=e.node,{data:i,store:o}=r;return e.renderContent?e.renderContent(ot,{_self:n,node:r,data:i,store:o}):s.ctx.slots.default?s.ctx.slots.default({node:r,data:i}):ot("span",{class:t.be("node","label")},[r.label])}}});var gfe=Ue(mfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function o$(e){const t=Qe("TreeNodeMap",null),n={treeNodeExpand:s=>{e.node!==s&&e.node.collapse()},children:[]};return t&&t.children.push(n),Nt("TreeNodeMap",n),{broadcastExpanded:s=>{if(e.accordion)for(const r of n.children)r.treeNodeExpand(s)}}}const a$=Symbol("dragEvents");function vfe({props:e,ctx:t,el$:n,dropIndicator$:s,store:r}){const i=Ne("tree"),o=B({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Nt(a$,{treeNodeDragStart:({event:d,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=f,t.emit("node-drag-start",f.node,d)},treeNodeDragOver:({event:d,treeNode:f})=>{const h=f,p=o.value.dropNode;p&&p!==h&&Fs(p.$el,i.is("drop-inner"));const g=o.value.draggingNode;if(!g||!h)return;let m=!0,v=!0,y=!0,T=!0;typeof e.allowDrop=="function"&&(m=e.allowDrop(g.node,h.node,"prev"),T=v=e.allowDrop(g.node,h.node,"inner"),y=e.allowDrop(g.node,h.node,"next")),d.dataTransfer.dropEffect=v||m||y?"move":"none",(m||v||y)&&p!==h&&(p&&t.emit("node-drag-leave",g.node,p.node,d),t.emit("node-drag-enter",g.node,h.node,d)),(m||v||y)&&(o.value.dropNode=h),h.node.nextSibling===g.node&&(y=!1),h.node.previousSibling===g.node&&(m=!1),h.node.contains(g.node,!1)&&(v=!1),(g.node===h.node||g.node.contains(h.node))&&(m=!1,v=!1,y=!1);const _=h.$el.getBoundingClientRect(),S=n.value.getBoundingClientRect();let w;const A=m?v?.25:y?.45:1:-1,M=y?v?.75:m?.55:0:1;let N=-9999;const L=d.clientY-_.top;L<_.height*A?w="before":L>_.height*M?w="after":v?w="inner":w="none";const F=h.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),W=s.value;w==="before"?N=F.top-S.top:w==="after"&&(N=F.bottom-S.top),W.style.top=`${N}px`,W.style.left=`${F.right-S.left}px`,w==="inner"?si(h.$el,i.is("drop-inner")):Fs(h.$el,i.is("drop-inner")),o.value.showDropIndicator=w==="before"||w==="after",o.value.allowDrop=o.value.showDropIndicator||T,o.value.dropType=w,t.emit("node-drag-over",g.node,h.node,d)},treeNodeDragEnd:d=>{const{draggingNode:f,dropType:h,dropNode:p}=o.value;if(d.preventDefault(),d.dataTransfer.dropEffect="move",f&&p){const g={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?p.node.parent.insertBefore(g,p.node):h==="after"?p.node.parent.insertAfter(g,p.node):h==="inner"&&p.node.insertChild(g),h!=="none"&&r.value.registerNode(g),Fs(p.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,p.node,h,d),h!=="none"&&t.emit("node-drop",f.node,p.node,h,d)}f&&!p&&t.emit("node-drag-end",f.node,null,h,d),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}const yfe=te({name:"ElTreeNode",components:{ElCollapseTransition:Bm,ElCheckbox:Sr,NodeContent:gfe,ElIcon:nt,Loading:zo},props:{node:{type:py,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Ne("tree"),{broadcastExpanded:s}=o$(e),r=Qe("RootTree"),i=B(!1),o=B(!1),a=B(null),l=B(null),u=B(null),d=Qe(a$),f=At();Nt("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const h=r.props.children||"children";ke(()=>{const L=e.node.data[h];return L&&[...L]},()=>{e.node.updateChildren()}),ke(()=>e.node.indeterminate,L=>{m(e.node.checked,L)}),ke(()=>e.node.checked,L=>{m(L,e.node.indeterminate)}),ke(()=>e.node.expanded,L=>{it(()=>i.value=L),L&&(o.value=!0)});const p=L=>X_(r.props.nodeKey,L.data),g=L=>{const F=e.props.class;if(!F)return{};let W;if(pt(F)){const{data:j}=L;W=F(j,L)}else W=F;return mt(W)?{[W]:!0}:W},m=(L,F)=>{(a.value!==L||l.value!==F)&&r.ctx.emit("check-change",e.node.data,L,F),a.value=L,l.value=F},v=L=>{fy(r.store,r.ctx.emit,()=>r.store.value.setCurrentNode(e.node)),r.currentNode.value=e.node,r.props.expandOnClickNode&&T(),r.props.checkOnClickNode&&!e.node.disabled&&_(null,{target:{checked:!e.node.checked}}),r.ctx.emit("node-click",e.node.data,e.node,f,L)},y=L=>{r.instance.vnode.props.onNodeContextmenu&&(L.stopPropagation(),L.preventDefault()),r.ctx.emit("node-contextmenu",L,e.node.data,e.node,f)},T=()=>{e.node.isLeaf||(i.value?(r.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)))},_=(L,F)=>{e.node.setChecked(F.target.checked,!r.props.checkStrictly),it(()=>{const W=r.store.value;r.ctx.emit("check",e.node.data,{checkedNodes:W.getCheckedNodes(),checkedKeys:W.getCheckedKeys(),halfCheckedNodes:W.getHalfCheckedNodes(),halfCheckedKeys:W.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:r,expanded:i,childNodeRendered:o,oldChecked:a,oldIndeterminate:l,getNodeKey:p,getNodeClass:g,handleSelectChange:m,handleClick:v,handleContextMenu:y,handleExpandIconClick:T,handleCheckChange:_,handleChildNodeExpand:(L,F,W)=>{s(F),r.ctx.emit("node-expand",L,F,W)},handleDragStart:L=>{r.props.draggable&&d.treeNodeDragStart({event:L,treeNode:e})},handleDragOver:L=>{L.preventDefault(),r.props.draggable&&d.treeNodeDragOver({event:L,treeNode:{$el:u.value,node:e.node}})},handleDrop:L=>{L.preventDefault()},handleDragEnd:L=>{r.props.draggable&&d.treeNodeDragEnd(L)},CaretRight:Cm}}}),bfe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_fe=["aria-expanded"];function Tfe(e,t,n,s,r,i){const o=vt("el-icon"),a=vt("el-checkbox"),l=vt("loading"),u=vt("node-content"),d=vt("el-tree-node"),f=vt("el-collapse-transition");return gt((x(),z("div",{ref:"node$",class:I([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]=ft((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[2]||(t[2]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[3]||(t[3]=ft((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[4]||(t[4]=ft((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[5]||(t[5]=ft((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[6]||(t[6]=ft((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[V("div",{class:I(e.ns.be("node","content")),style:st({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(x(),ve(o,{key:0,class:I([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:ft(e.handleExpandIconClick,["stop"])},{default:ee(()=>[(x(),ve(Mt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):he("v-if",!0),e.showCheckbox?(x(),ve(a,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=ft(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):he("v-if",!0),e.node.loading?(x(),ve(o,{key:2,class:I([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ee(()=>[G(l)]),_:1},8,["class"])):he("v-if",!0),G(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),G(f,null,{default:ee(()=>[!e.renderAfterExpand||e.childNodeRendered?gt((x(),z("div",{key:0,class:I(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(x(!0),z(et,null,kt(e.node.childNodes,h=>(x(),ve(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_fe)),[[Ut,e.expanded]]):he("v-if",!0)]),_:1})],42,bfe)),[[Ut,e.node.visible]])}var Sfe=Ue(yfe,[["render",Tfe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function wfe({el$:e},t){const n=Ne("tree"),s=nn([]),r=nn([]);Tt(()=>{o()}),to(()=>{s.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),ke(r,a=>{a.forEach(l=>{l.setAttribute("tabindex","-1")})}),mn(e,"keydown",a=>{const l=a.target;if(!l.className.includes(n.b("node")))return;const u=a.code;s.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const d=s.value.indexOf(l);let f;if([at.up,at.down].includes(u)){if(a.preventDefault(),u===at.up){f=d===-1?0:d!==0?d-1:s.value.length-1;const p=f;for(;!t.value.getNode(s.value[f].dataset.key).canFocus;){if(f--,f===p){f=-1;break}f<0&&(f=s.value.length-1)}}else{f=d===-1?0:d<s.value.length-1?d+1:0;const p=f;for(;!t.value.getNode(s.value[f].dataset.key).canFocus;){if(f++,f===p){f=-1;break}f>=s.value.length&&(f=0)}}f!==-1&&s.value[f].focus()}[at.left,at.right].includes(u)&&(a.preventDefault(),l.click());const h=l.querySelector('[type="checkbox"]');[at.enter,at.space].includes(u)&&h&&(a.preventDefault(),h.click())});const o=()=>{var a;s.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),r.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}(a=s.value[0])==null||a.setAttribute("tabindex","0")}}const Cfe=te({name:"ElTree",components:{ElTreeNode:Sfe},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:on}},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}=qt(),s=Ne("tree"),r=B(new pfe({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}));r.value.initialize();const i=B(r.value.root),o=B(null),a=B(null),l=B(null),{broadcastExpanded:u}=o$(e),{dragState:d}=vfe({props:e,ctx:t,el$:a,dropIndicator$:l,store:r});wfe({el$:a},r);const f=E(()=>{const{childNodes:$}=i.value;return!$||$.length===0||$.every(({visible:H})=>!H)});ke(()=>e.currentNodeKey,$=>{r.value.setCurrentNodeKey($)}),ke(()=>e.defaultCheckedKeys,$=>{r.value.setDefaultCheckedKey($)}),ke(()=>e.defaultExpandedKeys,$=>{r.value.setDefaultExpandedKeys($)}),ke(()=>e.data,$=>{r.value.setData($)},{deep:!0}),ke(()=>e.checkStrictly,$=>{r.value.checkStrictly=$});const h=$=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");r.value.filter($)},p=$=>X_(e.nodeKey,$.data),g=$=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const H=r.value.getNode($);if(!H)return[];const U=[H.data];let Z=H.parent;for(;Z&&Z!==i.value;)U.push(Z.data),Z=Z.parent;return U.reverse()},m=($,H)=>r.value.getCheckedNodes($,H),v=$=>r.value.getCheckedKeys($),y=()=>{const $=r.value.getCurrentNode();return $?$.data:null},T=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const $=y();return $?$[e.nodeKey]:null},_=($,H)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");r.value.setCheckedNodes($,H)},S=($,H)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");r.value.setCheckedKeys($,H)},w=($,H,U)=>{r.value.setChecked($,H,U)},A=()=>r.value.getHalfCheckedNodes(),M=()=>r.value.getHalfCheckedKeys(),N=($,H=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");fy(r,t.emit,()=>r.value.setUserCurrentNode($,H))},L=($,H=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");fy(r,t.emit,()=>r.value.setCurrentNodeKey($,H))},F=$=>r.value.getNode($),W=$=>{r.value.remove($)},j=($,H)=>{r.value.append($,H)},R=($,H)=>{r.value.insertBefore($,H)},q=($,H)=>{r.value.insertAfter($,H)},X=($,H,U)=>{u(H),t.emit("node-expand",$,H,U)},K=($,H)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");r.value.updateChildren($,H)};return Nt("RootTree",{ctx:t,props:e,store:r,root:i,currentNode:o,instance:At()}),Nt(yi,void 0),{ns:s,store:r,root:i,currentNode:o,dragState:d,el$:a,dropIndicator$:l,isEmpty:f,filter:h,getNodeKey:p,getNodePath:g,getCheckedNodes:m,getCheckedKeys:v,getCurrentNode:y,getCurrentKey:T,setCheckedNodes:_,setCheckedKeys:S,setChecked:w,getHalfCheckedNodes:A,getHalfCheckedKeys:M,setCurrentNode:N,setCurrentKey:L,t:n,getNode:F,remove:W,append:j,insertBefore:R,insertAfter:q,handleNodeExpand:X,updateKeyChildren:K}}});function Efe(e,t,n,s,r,i){var o;const a=vt("el-tree-node");return x(),z("div",{ref:"el$",class:I([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"},[(x(!0),z(et,null,kt(e.root.childNodes,l=>(x(),ve(a,{key:e.getNodeKey(l),node:l,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(x(),z("div",{key:0,class:I(e.ns.e("empty-block"))},[V("span",{class:I(e.ns.e("empty-text"))},we((o=e.emptyText)!=null?o:e.t("el.tree.emptyText")),3)],2)):he("v-if",!0),gt(V("div",{ref:"dropIndicator$",class:I(e.ns.e("drop-indicator"))},null,2),[[Ut,e.dragState.showDropIndicator]])],2)}var jh=Ue(Cfe,[["render",Efe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);jh.install=e=>{e.component(jh.name,jh)};const xp=jh,xfe=xp,kfe=(e,{attrs:t},{tree:n,key:s})=>{const r=Ne("tree-select"),i={...Bi(Hn(e),Object.keys(Ma.props)),...t,valueKey:s,popperClass:E(()=>{const o=[r.e("popper")];return e.popperClass&&o.push(e.popperClass),o.join(" ")}),filterMethod:(o="")=>{e.filterMethod&&e.filterMethod(o),it(()=>{var a;(a=n.value)==null||a.filter(o)})},onVisibleChange:o=>{var a;(a=t.onVisibleChange)==null||a.call(t,o),e.filterable&&o&&i.filterMethod()}};return i},Ofe=te({extends:yp,setup(e,t){const n=yp.setup(e,t);delete n.selectOptionClick;const s=At().proxy;return it(()=>{n.select.cachedOptions.get(s.value)||n.select.onOptionCreate(s)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function my(e){return e||e===0}function Q_(e){return Array.isArray(e)&&e.length}function pv(e){return Array.isArray(e)?e:my(e)?[e]:[]}function Kh(e,t,n,s,r){for(let i=0;i<e.length;i++){const o=e[i];if(t(o,i,e,r))return s?s(o,i,e,r):o;{const a=n(o);if(Q_(a)){const l=Kh(a,t,n,s,o);if(l)return l}}}}function l$(e,t,n,s){for(let r=0;r<e.length;r++){const i=e[r];t(i,r,e,s);const o=n(i);Q_(o)&&l$(o,t,n,i)}}const Afe=(e,{attrs:t,slots:n,emit:s},{select:r,tree:i,key:o})=>{ke(()=>e.modelValue,()=>{e.showCheckbox&&it(()=>{const f=i.value;f&&!sr(f.getCheckedKeys(),pv(e.modelValue))&&f.setCheckedKeys(pv(e.modelValue))})},{immediate:!0,deep:!0});const a=E(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(f,h)=>{var p;const g=a.value[f];return pt(g)?g(h,(p=i.value)==null?void 0:p.getNode(l("value",h))):h[g]},u=pv(e.modelValue).map(f=>Kh(e.data||[],h=>l("value",h)===f,h=>l("children",h),(h,p,g,m)=>m&&l("value",m))).filter(f=>my(f)),d=E(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const f=[];return l$(e.data.concat(e.cacheData),h=>{const p=l("value",h);f.push({value:p,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),f});return{...Bi(Hn(e),Object.keys(xp.props)),...t,nodeKey:o,expandOnClickNode:E(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:E(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(f,{node:h,data:p,store:g})=>f(Ofe,{value:l("value",p),label:l("label",p),disabled:l("disabled",p)},e.renderContent?()=>e.renderContent(f,{node:h,data:p,store:g}):n.default?()=>n.default({node:h,data:p,store:g}):void 0),filterNodeMethod:(f,h,p)=>{var g;return e.filterNodeMethod?e.filterNodeMethod(f,h,p):f?(g=l("label",h))==null?void 0:g.includes(f):!0},onNodeClick:(f,h,p)=>{var g,m,v;if((g=t.onNodeClick)==null||g.call(t,f,h,p),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!l("disabled",f)){const y=(m=r.value)==null?void 0:m.options.get(l("value",f));(v=r.value)==null||v.handleOptionSelect(y,!0)}}else e.expandOnClickNode&&p.proxy.handleExpandIconClick()},onCheck:(f,h)=>{var p;(p=t.onCheck)==null||p.call(t,f,h);const g=l("value",f);if(e.checkStrictly)s(It,e.multiple?h.checkedKeys:h.checkedKeys.includes(g)?g:void 0);else if(e.multiple)s(It,i.value.getCheckedKeys(!0));else{const m=Kh([f],T=>!Q_(l("children",T))&&!l("disabled",T),T=>l("children",T)),v=m?l("value",m):void 0,y=my(e.modelValue)&&!!Kh([f],T=>l("value",T)===e.modelValue,T=>l("children",T));s(It,v===e.modelValue||y?void 0:v)}},cacheOptions:d}};var Ife=te({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Qe(Qd);return ke(()=>e.data,()=>{var n;e.data.forEach(r=>{t.cachedOptions.has(r.value)||t.cachedOptions.set(r.value,r)});const s=((n=t.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(s).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Pfe=te({name:"ElTreeSelect",inheritAttrs:!1,props:{...Ma.props,...xp.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:s}=t,r=B(),i=B(),o=E(()=>e.nodeKey||e.valueKey||"value"),a=kfe(e,t,{select:r,tree:i,key:o}),{cacheOptions:l,...u}=Afe(e,t,{select:r,tree:i,key:o}),d=Bt({});return s(d),Tt(()=>{Object.assign(d,{...Bi(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Bi(r.value,["focus","blur"])})}),()=>ot(Ma,Bt({...a,ref:f=>r.value=f}),{...n,default:()=>[ot(Ife,{data:l.value}),ot(xp,Bt({...u,ref:f=>i.value=f}))]})}});var Wh=Ue(Pfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);Wh.install=e=>{e.component(Wh.name,Wh)};const $fe=Wh,Nfe=$fe,J_=Symbol(),Mfe={key:-1,level:-1,data:{}};var mc=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(mc||{}),gy=(e=>(e.ADD="add",e.DELETE="delete",e))(gy||{});const u$={type:Number,default:26},Rfe=ze({data:{type:me(Array),default:()=>pn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:me(Object),default:()=>pn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:me(Array),default:()=>pn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:me(Array),default:()=>pn([])},indent:{type:Number,default:16},itemSize:u$,icon:{type:on},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:me([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:me(Function)},perfMode:{type:Boolean,default:!0}}),Lfe=ze({node:{type:me(Object),default:()=>pn(Mfe)},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:u$}),Dfe=ze({node:{type:me(Object),required:!0}}),c$="node-click",d$="node-expand",f$="node-collapse",h$="current-change",p$="check",m$="check-change",g$="node-contextmenu",Ffe={[c$]:(e,t,n)=>e&&t&&n,[d$]:(e,t)=>e&&t,[f$]:(e,t)=>e&&t,[h$]:(e,t)=>e&&t,[p$]:(e,t)=>e&&t,[m$]:(e,t)=>e&&typeof t=="boolean",[g$]:(e,t,n)=>e&&t&&n},Bfe={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function Vfe(e,t){const n=B(new Set),s=B(new Set),{emit:r}=At();ke([()=>t.value,()=>e.defaultCheckedKeys],()=>it(()=>{T(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:_,maxLevel:S}=t.value,w=n.value,A=new Set;for(let M=S-1;M>=1;--M){const N=_.get(M);N&&N.forEach(L=>{const F=L.children;if(F){let W=!0,j=!1;for(const R of F){const q=R.key;if(w.has(q))j=!0;else if(A.has(q)){W=!1,j=!0;break}else W=!1}W?w.add(L.key):j?(A.add(L.key),w.delete(L.key)):(w.delete(L.key),A.delete(L.key))}})}s.value=A},o=_=>n.value.has(_.key),a=_=>s.value.has(_.key),l=(_,S,w=!0)=>{const A=n.value,M=(N,L)=>{A[L?gy.ADD:gy.DELETE](N.key);const F=N.children;!e.checkStrictly&&F&&F.forEach(W=>{W.disabled||M(W,L)})};M(_,S),i(),w&&u(_,S)},u=(_,S)=>{const{checkedNodes:w,checkedKeys:A}=g(),{halfCheckedNodes:M,halfCheckedKeys:N}=m();r(p$,_.data,{checkedKeys:A,checkedNodes:w,halfCheckedKeys:N,halfCheckedNodes:M}),r(m$,_.data,S)};function d(_=!1){return g(_).checkedKeys}function f(_=!1){return g(_).checkedNodes}function h(){return m().halfCheckedKeys}function p(){return m().halfCheckedNodes}function g(_=!1){const S=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:A}=t.value;n.value.forEach(M=>{const N=A.get(M);N&&(!_||_&&N.isLeaf)&&(w.push(M),S.push(N.data))})}return{checkedKeys:w,checkedNodes:S}}function m(){const _=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:w}=t.value;s.value.forEach(A=>{const M=w.get(A);M&&(S.push(A),_.push(M.data))})}return{halfCheckedNodes:_,halfCheckedKeys:S}}function v(_){n.value.clear(),s.value.clear(),T(_)}function y(_,S){if(t!=null&&t.value&&e.showCheckbox){const w=t.value.treeNodeMap.get(_);w&&l(w,S,!1)}}function T(_){if(t!=null&&t.value){const{treeNodeMap:S}=t.value;if(e.showCheckbox&&S&&_)for(const w of _){const A=S.get(w);A&&!o(A)&&l(A,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:a,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:p,setChecked:y,setCheckedKeys:v}}function Ufe(e,t){const n=B(new Set([])),s=B(new Set([])),r=E(()=>pt(e.filterMethod));function i(a){var l;if(!r.value)return;const u=new Set,d=s.value,f=n.value,h=[],p=((l=t.value)==null?void 0:l.treeNodes)||[],g=e.filterMethod;f.clear();function m(v){v.forEach(y=>{h.push(y),g!=null&&g(a,y.data)?h.forEach(_=>{u.add(_.key)}):y.isLeaf&&f.add(y.key);const T=y.children;if(T&&m(T),!y.isLeaf){if(!u.has(y.key))f.add(y.key);else if(T){let _=!0;for(const S of T)if(!f.has(S.key)){_=!1;break}_?d.add(y.key):d.delete(y.key)}}h.pop()})}return m(p),u}function o(a){return s.value.has(a.key)}return{hiddenExpandIconKeySet:s,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function Hfe(e,t){const n=B(new Set(e.defaultExpandedKeys)),s=B(),r=nn();ke(()=>e.currentNodeKey,ne=>{s.value=ne},{immediate:!0}),ke(()=>e.data,ne=>{ie(ne)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:a,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:p}=Vfe(e,r),{doFilter:g,hiddenNodeKeySet:m,isForceHiddenExpandIcon:v}=Ufe(e,r),y=E(()=>{var ne;return((ne=e.props)==null?void 0:ne.value)||mc.KEY}),T=E(()=>{var ne;return((ne=e.props)==null?void 0:ne.children)||mc.CHILDREN}),_=E(()=>{var ne;return((ne=e.props)==null?void 0:ne.disabled)||mc.DISABLED}),S=E(()=>{var ne;return((ne=e.props)==null?void 0:ne.label)||mc.LABEL}),w=E(()=>{const ne=n.value,pe=m.value,Te=[],He=r.value&&r.value.treeNodes||[];function Y(){const re=[];for(let Se=He.length-1;Se>=0;--Se)re.push(He[Se]);for(;re.length;){const Se=re.pop();if(Se&&(pe.has(Se.key)||Te.push(Se),ne.has(Se.key))){const Oe=Se.children;if(Oe){const Ve=Oe.length;for(let _e=Ve-1;_e>=0;--_e)re.push(Oe[_e])}}}}return Y(),Te}),A=E(()=>w.value.length>0);function M(ne){const pe=new Map,Te=new Map;let He=1;function Y(Se,Oe=1,Ve=void 0){var _e;const Be=[];for(const Ie of Se){const Ae=F(Ie),Me={level:Oe,key:Ae,data:Ie};Me.label=j(Ie),Me.parent=Ve;const Ye=L(Ie);Me.disabled=W(Ie),Me.isLeaf=!Ye||Ye.length===0,Ye&&Ye.length&&(Me.children=Y(Ye,Oe+1,Me)),Be.push(Me),pe.set(Ae,Me),Te.has(Oe)||Te.set(Oe,[]),(_e=Te.get(Oe))==null||_e.push(Me)}return Oe>He&&(He=Oe),Be}const re=Y(ne);return{treeNodeMap:pe,levelTreeNodeMap:Te,maxLevel:He,treeNodes:re}}function N(ne){const pe=g(ne);pe&&(n.value=pe)}function L(ne){return ne[T.value]}function F(ne){return ne?ne[y.value]:""}function W(ne){return ne[_.value]}function j(ne){return ne[S.value]}function R(ne){n.value.has(ne.key)?U(ne):H(ne)}function q(ne){n.value=new Set(ne)}function X(ne,pe){t(c$,ne.data,ne,pe),K(ne),e.expandOnClickNode&&R(ne),e.showCheckbox&&e.checkOnClickNode&&!ne.disabled&&a(ne,!o(ne),!0)}function K(ne){Q(ne)||(s.value=ne.key,t(h$,ne.data,ne))}function $(ne,pe){a(ne,pe)}function H(ne){const pe=n.value;if(r.value&&e.accordion){const{treeNodeMap:Te}=r.value;pe.forEach(He=>{const Y=Te.get(He);ne&&ne.level===(Y==null?void 0:Y.level)&&pe.delete(He)})}pe.add(ne.key),t(d$,ne.data,ne)}function U(ne){n.value.delete(ne.key),t(f$,ne.data,ne)}function Z(ne){return n.value.has(ne.key)}function ue(ne){return!!ne.disabled}function Q(ne){const pe=s.value;return!!pe&&pe===ne.key}function ae(){var ne,pe;if(s.value)return(pe=(ne=r.value)==null?void 0:ne.treeNodeMap.get(s.value))==null?void 0:pe.data}function Ee(){return s.value}function le(ne){s.value=ne}function ie(ne){it(()=>r.value=M(ne))}function ce(ne){var pe;const Te=Pt(ne)?F(ne):ne;return(pe=r.value)==null?void 0:pe.treeNodeMap.get(Te)}return{tree:r,flattenTree:w,isNotEmpty:A,getKey:F,getChildren:L,toggleExpand:R,toggleCheckbox:a,isExpanded:Z,isChecked:o,isIndeterminate:i,isDisabled:ue,isCurrent:Q,isForceHiddenExpandIcon:v,handleNodeClick:X,handleNodeCheck:$,getCurrentNode:ae,getCurrentKey:Ee,setCurrentKey:le,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:p,filter:N,setData:ie,getNode:ce,expandNode:H,collapseNode:U,setExpandedKeys:q}}var zfe=te({name:"ElTreeNodeContent",props:Dfe,setup(e){const t=Qe(J_),n=Ne("tree");return()=>{const s=e.node,{data:r}=s;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:s,data:r}):ot("span",{class:n.be("node","label")},[s==null?void 0:s.label])}}});const jfe=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],Kfe=te({name:"ElTreeNode"}),Wfe=te({...Kfe,props:Lfe,emits:Bfe,setup(e,{emit:t}){const n=e,s=Qe(J_),r=Ne("tree"),i=E(()=>{var f;return(f=s==null?void 0:s.props.indent)!=null?f:16}),o=E(()=>{var f;return(f=s==null?void 0:s.props.icon)!=null?f:Cm}),a=f=>{t("click",n.node,f)},l=()=>{t("toggle",n.node)},u=f=>{t("check",n.node,f)},d=f=>{var h,p,g,m;(g=(p=(h=s==null?void 0:s.instance)==null?void 0:h.vnode)==null?void 0:p.props)!=null&&g.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),s==null||s.ctx.emit(g$,f,(m=n.node)==null?void 0:m.data,n.node)};return(f,h)=>{var p,g,m;return x(),z("div",{ref:"node$",class:I([c(r).b("node"),c(r).is("expanded",f.expanded),c(r).is("current",f.current),c(r).is("focusable",!f.disabled),c(r).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(p=f.node)==null?void 0:p.key,onClick:ft(a,["stop"]),onContextmenu:d},[V("div",{class:I(c(r).be("node","content")),style:st({paddingLeft:`${(f.node.level-1)*c(i)}px`,height:f.itemSize+"px"})},[c(o)?(x(),ve(c(nt),{key:0,class:I([c(r).is("leaf",!!((g=f.node)!=null&&g.isLeaf)),c(r).is("hidden",f.hiddenExpandIcon),{expanded:!((m=f.node)!=null&&m.isLeaf)&&f.expanded},c(r).be("node","expand-icon")]),onClick:ft(l,["stop"])},{default:ee(()=>[(x(),ve(Mt(c(o))))]),_:1},8,["class","onClick"])):he("v-if",!0),f.showCheckbox?(x(),ve(c(Sr),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:h[0]||(h[0]=ft(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):he("v-if",!0),G(c(zfe),{node:f.node},null,8,["node"])],6)],42,jfe)}}});var qfe=Ue(Wfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Gfe=te({name:"ElTreeV2"}),Yfe=te({...Gfe,props:Rfe,emits:Ffe,setup(e,{expose:t,emit:n}){const s=e,r=es(),i=E(()=>s.itemSize);Nt(J_,{ctx:{emit:n,slots:r},props:s,instance:At()}),Nt(yi,void 0);const{t:o}=qt(),a=Ne("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:d,isExpanded:f,isIndeterminate:h,isChecked:p,isDisabled:g,isCurrent:m,isForceHiddenExpandIcon:v,handleNodeClick:y,handleNodeCheck:T,toggleCheckbox:_,getCurrentNode:S,getCurrentKey:w,setCurrentKey:A,getCheckedKeys:M,getCheckedNodes:N,getHalfCheckedKeys:L,getHalfCheckedNodes:F,setChecked:W,setCheckedKeys:j,filter:R,setData:q,getNode:X,expandNode:K,collapseNode:$,setExpandedKeys:H}=Hfe(s,n);return t({toggleCheckbox:_,getCurrentNode:S,getCurrentKey:w,setCurrentKey:A,getCheckedKeys:M,getCheckedNodes:N,getHalfCheckedKeys:L,getHalfCheckedNodes:F,setChecked:W,setCheckedKeys:j,filter:R,setData:q,getNode:X,expandNode:K,collapseNode:$,setExpandedKeys:H}),(U,Z)=>{var ue;return x(),z("div",{class:I([c(a).b(),{[c(a).m("highlight-current")]:U.highlightCurrent}]),role:"tree"},[c(u)?(x(),ve(c(SP),{key:0,"class-name":c(a).b("virtual-list"),data:c(l),total:c(l).length,height:U.height,"item-size":c(i),"perf-mode":U.perfMode},{default:ee(({data:Q,index:ae,style:Ee})=>[(x(),ve(qfe,{key:Q[ae].key,style:st(Ee),node:Q[ae],expanded:c(f)(Q[ae]),"show-checkbox":U.showCheckbox,checked:c(p)(Q[ae]),indeterminate:c(h)(Q[ae]),"item-size":c(i),disabled:c(g)(Q[ae]),current:c(m)(Q[ae]),"hidden-expand-icon":c(v)(Q[ae]),onClick:c(y),onToggle:c(d),onCheck:c(T)},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"])):(x(),z("div",{key:1,class:I(c(a).e("empty-block"))},[V("span",{class:I(c(a).e("empty-text"))},we((ue=U.emptyText)!=null?ue:c(o)("el.tree.emptyText")),3)],2))],2)}}});var Xfe=Ue(Yfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Qfe=Ot(Xfe),v$=Symbol("uploadContextKey"),Jfe="ElUpload";class Zfe extends Error{constructor(t,n,s,r){super(t),this.name="UploadAjaxError",this.status=n,this.method=s,this.url=r}}function vE(e,t,n){let s;return n.response?s=`${n.response.error||n.response}`:n.responseText?s=`${n.responseText}`:s=`fail to ${t.method} ${e} ${n.status}`,new Zfe(s,n.status,t.method,e)}function ehe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const the=e=>{typeof XMLHttpRequest>"u"&&zn(Jfe,"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 s=new FormData;if(e.data)for(const[i,o]of Object.entries(e.data))Array.isArray(o)?s.append(i,...o):s.append(i,o);s.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(vE(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(vE(n,e,t));e.onSuccess(ehe(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};if(r instanceof Headers)r.forEach((i,o)=>t.setRequestHeader(o,i));else for(const[i,o]of Object.entries(r))Kn(o)||t.setRequestHeader(i,String(o));return t.send(s),t},y$=["text","picture","picture-card"];let nhe=1;const vy=()=>Date.now()+nhe++,b$=ze({action:{type:String,default:"#"},headers:{type:me(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>pn({})},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:me(Array),default:()=>pn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:y$,default:"text"},httpRequest:{type:me(Function),default:the},disabled:Boolean,limit:Number}),she=ze({...b$,beforeUpload:{type:me(Function),default:Zt},beforeRemove:{type:me(Function)},onRemove:{type:me(Function),default:Zt},onChange:{type:me(Function),default:Zt},onPreview:{type:me(Function),default:Zt},onSuccess:{type:me(Function),default:Zt},onProgress:{type:me(Function),default:Zt},onError:{type:me(Function),default:Zt},onExceed:{type:me(Function),default:Zt}}),rhe=ze({files:{type:me(Array),default:()=>pn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:me(Function),default:Zt},listType:{type:String,values:y$,default:"text"}}),ihe={remove:e=>!!e},ohe=["onKeydown"],ahe=["src"],lhe=["onClick"],uhe=["onClick"],che=["onClick"],dhe=te({name:"ElUploadList"}),fhe=te({...dhe,props:rhe,emits:ihe,setup(e,{emit:t}){const{t:n}=qt(),s=Ne("upload"),r=Ne("icon"),i=Ne("list"),o=zs(),a=B(!1),l=u=>{t("remove",u)};return(u,d)=>(x(),ve(x2,{tag:"ul",class:I([c(s).b("list"),c(s).bm("list",u.listType),c(s).is("disabled",c(o))]),name:c(i).b()},{default:ee(()=>[(x(!0),z(et,null,kt(u.files,f=>(x(),z("li",{key:f.uid||f.name,class:I([c(s).be("list","item"),c(s).is(f.status),{focusing:a.value}]),tabindex:"0",onKeydown:zt(h=>!c(o)&&l(f),["delete"]),onFocus:d[0]||(d[0]=h=>a.value=!0),onBlur:d[1]||(d[1]=h=>a.value=!1),onClick:d[2]||(d[2]=h=>a.value=!1)},[xe(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(x(),z("img",{key:0,class:I(c(s).be("list","item-thumbnail")),src:f.url,alt:""},null,10,ahe)):he("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(x(),z("div",{key:1,class:I(c(s).be("list","item-info"))},[V("a",{class:I(c(s).be("list","item-name")),onClick:ft(h=>u.handlePreview(f),["prevent"])},[G(c(nt),{class:I(c(r).m("document"))},{default:ee(()=>[G(c(ij))]),_:1},8,["class"]),V("span",{class:I(c(s).be("list","item-file-name"))},we(f.name),3)],10,lhe),f.status==="uploading"?(x(),ve(c(hP),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:st(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):he("v-if",!0)],2)):he("v-if",!0),V("label",{class:I(c(s).be("list","item-status-label"))},[u.listType==="text"?(x(),ve(c(nt),{key:0,class:I([c(r).m("upload-success"),c(r).m("circle-check")])},{default:ee(()=>[G(c(Wb))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(x(),ve(c(nt),{key:1,class:I([c(r).m("upload-success"),c(r).m("check")])},{default:ee(()=>[G(c(qd))]),_:1},8,["class"])):he("v-if",!0)],2),c(o)?he("v-if",!0):(x(),ve(c(nt),{key:2,class:I(c(r).m("close")),onClick:h=>l(f)},{default:ee(()=>[G(c(Hr))]),_:2},1032,["class","onClick"])),he(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),he(" This is a bug which needs to be fixed "),he(" TODO: Fix the incorrect navigation interaction "),c(o)?he("v-if",!0):(x(),z("i",{key:3,class:I(c(r).m("close-tip"))},we(c(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(x(),z("span",{key:4,class:I(c(s).be("list","item-actions"))},[V("span",{class:I(c(s).be("list","item-preview")),onClick:h=>u.handlePreview(f)},[G(c(nt),{class:I(c(r).m("zoom-in"))},{default:ee(()=>[G(c(kO))]),_:1},8,["class"])],10,uhe),c(o)?he("v-if",!0):(x(),z("span",{key:0,class:I(c(s).be("list","item-delete")),onClick:h=>l(f)},[G(c(nt),{class:I(c(r).m("delete"))},{default:ee(()=>[G(c(Zz))]),_:1},8,["class"])],10,che))],2)):he("v-if",!0)])],42,ohe))),128)),xe(u.$slots,"append")]),_:3},8,["class","name"]))}});var yE=Ue(fhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const hhe=ze({disabled:{type:Boolean,default:!1}}),phe={file:e=>tt(e)},mhe=["onDrop","onDragover"],_$="ElUploadDrag",ghe=te({name:_$}),vhe=te({...ghe,props:hhe,emits:phe,setup(e,{emit:t}){const n=Qe(v$);n||zn(_$,"usage: <el-upload><el-upload-dragger /></el-upload>");const s=Ne("upload"),r=B(!1),i=zs(),o=l=>{if(i.value)return;r.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),d=n.accept.value;if(!d){t("file",u);return}const f=u.filter(h=>{const{type:p,name:g}=h,m=g.includes(".")?`.${g.split(".").pop()}`:"",v=p.replace(/\/.*$/,"");return d.split(",").map(y=>y.trim()).filter(y=>y).some(y=>y.startsWith(".")?m===y:/\/\*$/.test(y)?v===y.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(y)?p===y:!1)});t("file",f)},a=()=>{i.value||(r.value=!0)};return(l,u)=>(x(),z("div",{class:I([c(s).b("dragger"),c(s).is("dragover",r.value)]),onDrop:ft(o,["prevent"]),onDragover:ft(a,["prevent"]),onDragleave:u[0]||(u[0]=ft(d=>r.value=!1,["prevent"]))},[xe(l.$slots,"default")],42,mhe))}});var yhe=Ue(vhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const bhe=ze({...b$,beforeUpload:{type:me(Function),default:Zt},onRemove:{type:me(Function),default:Zt},onStart:{type:me(Function),default:Zt},onSuccess:{type:me(Function),default:Zt},onProgress:{type:me(Function),default:Zt},onError:{type:me(Function),default:Zt},onExceed:{type:me(Function),default:Zt}}),_he=["onKeydown"],The=["name","multiple","accept"],She=te({name:"ElUploadContent",inheritAttrs:!1}),whe=te({...She,props:bhe,setup(e,{expose:t}){const n=e,s=Ne("upload"),r=zs(),i=nn({}),o=nn(),a=g=>{if(g.length===0)return;const{autoUpload:m,limit:v,fileList:y,multiple:T,onStart:_,onExceed:S}=n;if(v&&y.length+g.length>v){S(g,y);return}T||(g=g.slice(0,1));for(const w of g){const A=w;A.uid=vy(),_(A),m&&l(A)}},l=async g=>{if(o.value.value="",!n.beforeUpload)return u(g);let m,v={};try{const T=n.beforeUpload(g);v=Pt(n.data)?zb(n.data):n.data,m=await T}catch{m=!1}if(m===!1){n.onRemove(g);return}let y=g;m instanceof Blob&&(m instanceof File?y=m:y=new File([m],g.name,{type:g.type})),u(Object.assign(y,{uid:g.uid}),v)},u=(g,m)=>{const{headers:v,data:y,method:T,withCredentials:_,name:S,action:w,onProgress:A,onSuccess:M,onError:N,httpRequest:L}=n,{uid:F}=g,W={headers:v||{},withCredentials:_,file:g,data:m??y,method:T,filename:S,action:w,onProgress:R=>{A(R,g)},onSuccess:R=>{M(R,g),delete i.value[F]},onError:R=>{N(R,g),delete i.value[F]}},j=L(W);i.value[F]=j,j instanceof Promise&&j.then(W.onSuccess,W.onError)},d=g=>{const m=g.target.files;m&&a(Array.from(m))},f=()=>{r.value||(o.value.value="",o.value.click())},h=()=>{f()};return t({abort:g=>{YU(i.value).filter(g?([v])=>String(g.uid)===v:()=>!0).forEach(([v,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete i.value[v]})},upload:l}),(g,m)=>(x(),z("div",{class:I([c(s).b(),c(s).m(g.listType),c(s).is("drag",g.drag)]),tabindex:"0",onClick:f,onKeydown:zt(ft(h,["self"]),["enter","space"])},[g.drag?(x(),ve(yhe,{key:0,disabled:c(r),onFile:a},{default:ee(()=>[xe(g.$slots,"default")]),_:3},8,["disabled"])):xe(g.$slots,"default",{key:1}),V("input",{ref_key:"inputRef",ref:o,class:I(c(s).e("input")),name:g.name,multiple:g.multiple,accept:g.accept,type:"file",onChange:d,onClick:m[0]||(m[0]=ft(()=>{},["stop"]))},null,42,The)],42,_he))}});var bE=Ue(whe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const _E="ElUpload",Che=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Ehe=(e,t)=>{const n=BF(e,"fileList",void 0,{passive:!0}),s=h=>n.value.find(p=>p.uid===h.uid);function r(h){var p;(p=t.value)==null||p.abort(h)}function i(h=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!h.includes(p.status))}const o=(h,p)=>{const g=s(p);g&&(console.error(h),g.status="fail",n.value.splice(n.value.indexOf(g),1),e.onError(h,g,n.value),e.onChange(g,n.value))},a=(h,p)=>{const g=s(p);g&&(e.onProgress(h,g,n.value),g.status="uploading",g.percentage=Math.round(h.percent))},l=(h,p)=>{const g=s(p);g&&(g.status="success",g.response=h,e.onSuccess(h,g,n.value),e.onChange(g,n.value))},u=h=>{Kn(h.uid)&&(h.uid=vy());const p={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(h)}catch(g){g.message,e.onError(g,p,n.value)}n.value=[...n.value,p],e.onChange(p,n.value)},d=async h=>{const p=h instanceof File?s(h):h;p||zn(_E,"file to be removed not found");const g=m=>{r(m);const v=n.value;v.splice(v.indexOf(m),1),e.onRemove(m,v),Che(m)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&g(p):g(p)};function f(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var p;return h&&((p=t.value)==null?void 0:p.upload(h))})}return ke(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(p=>{const{raw:g,url:m}=p;if(!m&&g)try{p.url=URL.createObjectURL(g)}catch(v){e.onError(v,p,n.value)}return p}))}),ke(n,h=>{for(const p of h)p.uid||(p.uid=vy()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:r,clearFiles:i,handleError:o,handleProgress:a,handleStart:u,handleSuccess:l,handleRemove:d,submit:f}},xhe=te({name:"ElUpload"}),khe=te({...xhe,props:she,setup(e,{expose:t}){const n=e,s=es(),r=zs(),i=nn(),{abort:o,submit:a,clearFiles:l,uploadFiles:u,handleStart:d,handleError:f,handleRemove:h,handleSuccess:p,handleProgress:g}=Ehe(n,i),m=E(()=>n.listType==="picture-card"),v=E(()=>({...n,fileList:u.value,onStart:d,onProgress:g,onSuccess:p,onError:f,onRemove:h}));return ln(()=>{u.value.forEach(({url:y})=>{y!=null&&y.startsWith("blob:")&&URL.revokeObjectURL(y)})}),Nt(v$,{accept:dn(n,"accept")}),t({abort:o,submit:a,clearFiles:l,handleStart:d,handleRemove:h}),(y,T)=>(x(),z("div",null,[c(m)&&y.showFileList?(x(),ve(yE,{key:0,disabled:c(r),"list-type":y.listType,files:c(u),"handle-preview":y.onPreview,onRemove:c(h)},Ki({append:ee(()=>[G(bE,$t({ref_key:"uploadRef",ref:i},c(v)),{default:ee(()=>[c(s).trigger?xe(y.$slots,"trigger",{key:0}):he("v-if",!0),!c(s).trigger&&c(s).default?xe(y.$slots,"default",{key:1}):he("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:ee(({file:_})=>[xe(y.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):he("v-if",!0),!c(m)||c(m)&&!y.showFileList?(x(),ve(bE,$t({key:1,ref_key:"uploadRef",ref:i},c(v)),{default:ee(()=>[c(s).trigger?xe(y.$slots,"trigger",{key:0}):he("v-if",!0),!c(s).trigger&&c(s).default?xe(y.$slots,"default",{key:1}):he("v-if",!0)]),_:3},16)):he("v-if",!0),y.$slots.trigger?xe(y.$slots,"default",{key:2}):he("v-if",!0),xe(y.$slots,"tip"),!c(m)&&y.showFileList?(x(),ve(yE,{key:3,disabled:c(r),"list-type":y.listType,files:c(u),"handle-preview":y.onPreview,onRemove:c(h)},Ki({_:2},[y.$slots.file?{name:"default",fn:ee(({file:_})=>[xe(y.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):he("v-if",!0)]))}});var Ohe=Ue(khe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Ahe=Ot(Ohe);var Ihe=[Q7,lq,MY,Gce,UY,GY,$A,aX,lX,Un,BA,OQ,NQ,qQ,GQ,lZ,GJ,pZ,Sr,pJ,dI,wI,HZ,zZ,EI,yee,z7,$I,Iee,NI,MI,RI,zte,Zte,ene,mne,qI,Ane,_se,Tse,Sse,Um,tG,nG,nt,pre,nP,ls,sP,rP,qre,Gre,Yre,Xre,sie,I_,hoe,Soe,AA,hP,yI,IJ,AJ,Boe,joe,SI,ro,Ma,yp,Mie,Mae,Hae,zae,ble,Cle,$P,Rle,jle,Kle,nue,uce,cce,qce,j_,K_,pd,hde,oQ,bde,Cde,Ede,As,Qde,ffe,xfe,Nfe,Qfe,Ahe];const Pr="ElInfiniteScroll",Phe=50,$he=200,Nhe=0,Mhe={delay:{type:Number,default:$he},distance:{type:Number,default:Nhe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Z_=(e,t)=>Object.entries(Mhe).reduce((n,[s,r])=>{var i,o;const{type:a,default:l}=r,u=e.getAttribute(`infinite-scroll-${s}`);let d=(o=(i=t[u])!=null?i:u)!=null?o:l;return d=d==="false"?!1:d,d=a(d),n[s]=Number.isNaN(d)?l:d,n},{}),T$=e=>{const{observer:t}=e[Pr];t&&(t.disconnect(),delete e[Pr].observer)},Rhe=(e,t)=>{const{container:n,containerEl:s,instance:r,observer:i,lastScrollTop:o}=e[Pr],{disabled:a,distance:l}=Z_(e,r),{clientHeight:u,scrollHeight:d,scrollTop:f}=s,h=f-o;if(e[Pr].lastScrollTop=f,i||a||h<0)return;let p=!1;if(n===e)p=d-(u+f)<=l;else{const{clientTop:g,scrollHeight:m}=e,v=zF(e,s);p=f+u>=v+g+m-l}p&&t.call(r)};function mv(e,t){const{containerEl:n,instance:s}=e[Pr],{disabled:r}=Z_(e,s);r||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(s):T$(e))}const Lhe={async mounted(e,t){const{instance:n,value:s}=t;pt(s)||zn(Pr,"'v-infinite-scroll' binding value must be a function"),await it();const{delay:r,immediate:i}=Z_(e,n),o=Kb(e,!0),a=o===window?document.documentElement:o,l=Ea(Rhe.bind(null,e,s),r);if(o){if(e[Pr]={instance:n,container:o,containerEl:a,delay:r,cb:s,onScroll:l,lastScrollTop:a.scrollTop},i){const u=new MutationObserver(Ea(mv.bind(null,e,s),Phe));e[Pr].observer=u,u.observe(e,{childList:!0,subtree:!0}),mv(e,s)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[Pr];t==null||t.removeEventListener("scroll",n),T$(e)},async updated(e){if(!e[Pr])await it();else{const{containerEl:t,cb:n,observer:s}=e[Pr];t.clientHeight&&s&&mv(e,n)}}},yy=Lhe;yy.install=e=>{e.directive("InfiniteScroll",yy)};const Dhe=yy;function Fhe(e){let t;const n=B(!1),s=Bt({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(h){s.text=h}function i(){const h=s.parent,p=f.ns;if(!h.vLoadingAddClassList){let g=h.getAttribute("loading-number");g=Number.parseInt(g)-1,g?h.setAttribute("loading-number",g.toString()):(Fs(h,p.bm("parent","relative")),h.removeAttribute("loading-number")),Fs(h,p.bm("parent","hidden"))}o(),d.unmount()}function o(){var h,p;(p=(h=f.$el)==null?void 0:h.parentNode)==null||p.removeChild(f.$el)}function a(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(l,400),s.visible=!1,(h=e.closed)==null||h.call(e))}function l(){if(!n.value)return;const h=s.parent;n.value=!1,h.vLoadingAddClassList=void 0,i()}const u=te({name:"ElLoading",setup(h,{expose:p}){const{ns:g}=Rm("loading"),m=ja();return p({ns:g,zIndex:m}),()=>{const v=s.spinner||s.svg,y=ot("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[ot("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),T=s.text?ot("p",{class:g.b("text")},[s.text]):void 0;return ot(Pn,{name:g.b("fade"),onAfterLeave:l},{default:ee(()=>[gt(G("div",{style:{backgroundColor:s.background||""},class:[g.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[ot("div",{class:g.b("spinner")},[y,T])]),[[Ut,s.visible]])])})}}}),d=Eb(u),f=d.mount(document.createElement("div"));return{...Hn(s),setText:r,removeElLoadingChild:o,close:a,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let ah;const by=function(e={}){if(!Ht)return;const t=Bhe(e);if(t.fullscreen&&ah)return ah;const n=Fhe({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(ah=void 0)}});Vhe(t,t.parent,n),TE(t,t.parent,n),t.parent.vLoadingAddClassList=()=>TE(t,t.parent,n);let s=t.parent.getAttribute("loading-number");return s?s=`${Number.parseInt(s)+1}`:s="1",t.parent.setAttribute("loading-number",s),t.parent.appendChild(n.$el),it(()=>n.visible.value=t.visible),t.fullscreen&&(ah=n),n},Bhe=e=>{var t,n,s,r;let i;return mt(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:(s=e.lock)!=null?s:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,target:i}},Vhe=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex,r={};if(e.fullscreen)n.originalPosition.value=Ri(document.body,"position"),n.originalOverflow.value=Ri(document.body,"overflow"),r.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=Ri(document.body,"position"),await it();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";r[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Ri(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])r[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Ri(t,"position");for(const[i,o]of Object.entries(r))n.$el.style[i]=o},TE=(e,t,n)=>{const s=n.vm.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Fs(t,s.bm("parent","relative")):si(t,s.bm("parent","relative")),e.fullscreen&&e.lock?si(t,s.bm("parent","hidden")):Fs(t,s.bm("parent","hidden"))},_y=Symbol("ElLoading"),SE=(e,t)=>{var n,s,r,i;const o=t.instance,a=h=>Pt(t.value)?t.value[h]:void 0,l=h=>{const p=mt(h)&&(o==null?void 0:o[h])||h;return p&&B(p)},u=h=>l(a(h)||e.getAttribute(`element-loading-${Bo(h)}`)),d=(n=a("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:d,target:(s=a("target"))!=null?s:d?void 0:e,body:(r=a("body"))!=null?r:t.modifiers.body,lock:(i=a("lock"))!=null?i:t.modifiers.lock};e[_y]={options:f,instance:by(f)}},Uhe=(e,t)=>{for(const n of Object.keys(t))rn(t[n])&&(t[n].value=e[n])},wE={mounted(e,t){t.value&&SE(e,t)},updated(e,t){const n=e[_y];t.oldValue!==t.value&&(t.value&&!t.oldValue?SE(e,t):t.value&&t.oldValue?Pt(t.value)&&Uhe(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[_y])==null||t.instance.close()}},Hhe={install(e){e.directive("loading",wE),e.config.globalProperties.$loading=by},directive:wE,service:by},S$=["success","info","warning","error"],Ns=pn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Ht?document.body:void 0}),zhe=ze({customClass:{type:String,default:Ns.customClass},center:{type:Boolean,default:Ns.center},dangerouslyUseHTMLString:{type:Boolean,default:Ns.dangerouslyUseHTMLString},duration:{type:Number,default:Ns.duration},icon:{type:on,default:Ns.icon},id:{type:String,default:Ns.id},message:{type:me([String,Object,Function]),default:Ns.message},onClose:{type:me(Function),required:!1},showClose:{type:Boolean,default:Ns.showClose},type:{type:String,values:S$,default:Ns.type},offset:{type:Number,default:Ns.offset},zIndex:{type:Number,default:Ns.zIndex},grouping:{type:Boolean,default:Ns.grouping},repeatNum:{type:Number,default:Ns.repeatNum}}),jhe={destroy:()=>!0},Lr=Fk([]),Khe=e=>{const t=Lr.findIndex(r=>r.id===e),n=Lr[t];let s;return t>0&&(s=Lr[t-1]),{current:n,prev:s}},Whe=e=>{const{prev:t}=Khe(e);return t?t.vm.exposed.bottom.value:0},qhe=(e,t)=>Lr.findIndex(s=>s.id===e)>0?20:t,Ghe=["id"],Yhe=["innerHTML"],Xhe=te({name:"ElMessage"}),Qhe=te({...Xhe,props:zhe,emits:jhe,setup(e,{expose:t}){const n=e,{Close:s}=Yb,{ns:r,zIndex:i}=Rm("message"),{currentZIndex:o,nextZIndex:a}=i,l=B(),u=B(!1),d=B(0);let f;const h=E(()=>n.type?n.type==="error"?"danger":n.type:"info"),p=E(()=>{const M=n.type;return{[r.bm("icon",M)]:M&&$o[M]}}),g=E(()=>n.icon||$o[n.type]||""),m=E(()=>Whe(n.id)),v=E(()=>qhe(n.id,n.offset)+m.value),y=E(()=>d.value+v.value),T=E(()=>({top:`${v.value}px`,zIndex:o.value}));function _(){n.duration!==0&&({stop:f}=$a(()=>{w()},n.duration))}function S(){f==null||f()}function w(){u.value=!1}function A({code:M}){M===at.esc&&w()}return Tt(()=>{_(),a(),u.value=!0}),ke(()=>n.repeatNum,()=>{S(),_()}),mn(document,"keydown",A),ds(l,()=>{d.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:y,close:w}),(M,N)=>(x(),ve(Pn,{name:c(r).b("fade"),onBeforeLeave:M.onClose,onAfterLeave:N[0]||(N[0]=L=>M.$emit("destroy")),persisted:""},{default:ee(()=>[gt(V("div",{id:M.id,ref_key:"messageRef",ref:l,class:I([c(r).b(),{[c(r).m(M.type)]:M.type&&!M.icon},c(r).is("center",M.center),c(r).is("closable",M.showClose),M.customClass]),style:st(c(T)),role:"alert",onMouseenter:S,onMouseleave:_},[M.repeatNum>1?(x(),ve(c($A),{key:0,value:M.repeatNum,type:c(h),class:I(c(r).e("badge"))},null,8,["value","type","class"])):he("v-if",!0),c(g)?(x(),ve(c(nt),{key:1,class:I([c(r).e("icon"),c(p)])},{default:ee(()=>[(x(),ve(Mt(c(g))))]),_:1},8,["class"])):he("v-if",!0),xe(M.$slots,"default",{},()=>[M.dangerouslyUseHTMLString?(x(),z(et,{key:1},[he(" Caution here, message could've been compromised, never use user's input as message "),V("p",{class:I(c(r).e("content")),innerHTML:M.message},null,10,Yhe)],2112)):(x(),z("p",{key:0,class:I(c(r).e("content"))},we(M.message),3))]),M.showClose?(x(),ve(c(nt),{key:2,class:I(c(r).e("closeBtn")),onClick:ft(w,["stop"])},{default:ee(()=>[G(c(s))]),_:1},8,["class","onClick"])):he("v-if",!0)],46,Ghe),[[Ut,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Jhe=Ue(Qhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Zhe=1;const w$=e=>{const t=!e||mt(e)||gn(e)||pt(e)?{message:e}:e,n={...Ns,...t};if(!n.appendTo)n.appendTo=document.body;else if(mt(n.appendTo)){let s=document.querySelector(n.appendTo);Ur(s)||(s=document.body),n.appendTo=s}return n},epe=e=>{const t=Lr.indexOf(e);if(t===-1)return;Lr.splice(t,1);const{handler:n}=e;n.close()},tpe=({appendTo:e,...t},n)=>{const s=`message_${Zhe++}`,r=t.onClose,i=document.createElement("div"),o={...t,id:s,onClose:()=>{r==null||r(),epe(d)},onDestroy:()=>{jl(null,i)}},a=G(Jhe,o,pt(o.message)||gn(o.message)?{default:pt(o.message)?o.message:()=>o.message}:null);a.appContext=n||su._context,jl(a,i),e.appendChild(i.firstElementChild);const l=a.component,d={id:s,vnode:a,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:a.component.props};return d},su=(e={},t)=>{if(!Ht)return{close:()=>{}};if(ht(g0.max)&&Lr.length>=g0.max)return{close:()=>{}};const n=w$(e);if(n.grouping&&Lr.length){const r=Lr.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===n.message});if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}const s=tpe(n,t);return Lr.push(s),s.handler};S$.forEach(e=>{su[e]=(t={},n)=>{const s=w$(t);return su({...s,type:e},n)}});function npe(e){for(const t of Lr)(!e||e===t.props.type)&&t.handler.close()}su.closeAll=npe;su._context=null;const Gi=PO(su,"$message"),spe=te({name:"ElMessageBox",directives:{TrapFocus:HX},components:{ElButton:Un,ElFocusTrap:Dm,ElInput:ls,ElOverlay:w_,ElIcon:nt,...Yb},inheritAttrs:!1,props:{buttonSize:{type:String,validator:km},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:s,ns:r,size:i}=Rm("message-box",E(()=>e.buttonSize)),{t:o}=n,{nextZIndex:a}=s,l=B(!1),u=Bt({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:a()}),d=E(()=>{const X=u.type;return{[r.bm("icon",X)]:X&&$o[X]}}),f=Tr(),h=Tr(),p=E(()=>u.icon||$o[u.type]||""),g=E(()=>!!u.message),m=B(),v=B(),y=B(),T=B(),_=B(),S=E(()=>u.confirmButtonClass);ke(()=>u.inputValue,async X=>{await it(),e.boxType==="prompt"&&X!==null&&W()},{immediate:!0}),ke(()=>l.value,X=>{var K,$;X&&(e.boxType!=="prompt"&&(u.autofocus?y.value=($=(K=_.value)==null?void 0:K.$el)!=null?$:m.value:y.value=m.value),u.zIndex=a()),e.boxType==="prompt"&&(X?it().then(()=>{var H;T.value&&T.value.$el&&(u.autofocus?y.value=(H=j())!=null?H:m.value:y.value=m.value)}):(u.editorErrorMessage="",u.validateError=!1))});const w=E(()=>e.draggable);NO(m,v,w),Tt(async()=>{await it(),e.closeOnHashChange&&window.addEventListener("hashchange",A)}),ln(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",A)});function A(){l.value&&(l.value=!1,it(()=>{u.action&&t("action",u.action)}))}const M=()=>{e.closeOnClickModal&&F(u.distinguishCancelAndClose?"close":"cancel")},N=o_(M),L=X=>{if(u.inputType!=="textarea")return X.preventDefault(),F("confirm")},F=X=>{var K;e.boxType==="prompt"&&X==="confirm"&&!W()||(u.action=X,u.beforeClose?(K=u.beforeClose)==null||K.call(u,X,u,A):A())},W=()=>{if(e.boxType==="prompt"){const X=u.inputPattern;if(X&&!X.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const K=u.inputValidator;if(typeof K=="function"){const $=K(u.inputValue);if($===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof $=="string")return u.editorErrorMessage=$,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},j=()=>{const X=T.value.$refs;return X.input||X.textarea},R=()=>{F("close")},q=()=>{e.closeOnPressEscape&&R()};return e.lockScroll&&LO(l),h7(l),{...Hn(u),ns:r,overlayEvent:N,visible:l,hasMessage:g,typeClass:d,contentId:f,inputId:h,btnSize:i,iconComponent:p,confirmButtonClasses:S,rootRef:m,focusStartRef:y,headerRef:v,inputRef:T,confirmRef:_,doClose:A,handleClose:R,onCloseRequested:q,handleWrapperClick:M,handleInputEnter:L,handleAction:F,t:o}}}),rpe=["aria-label","aria-describedby"],ipe=["aria-label"],ope=["id"];function ape(e,t,n,s,r,i){const o=vt("el-icon"),a=vt("close"),l=vt("el-input"),u=vt("el-button"),d=vt("el-focus-trap"),f=vt("el-overlay");return x(),ve(Pn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=h=>e.$emit("vanish")),persisted:""},{default:ee(()=>[gt(G(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ee(()=>[V("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:I(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...h)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...h)),onMousedown:t[9]||(t[9]=(...h)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...h)),onMouseup:t[10]||(t[10]=(...h)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...h))},[G(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ee(()=>[V("div",{ref:"rootRef",class:I([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:st(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=ft(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(x(),z("div",{key:0,ref:"headerRef",class:I(e.ns.e("header"))},[V("div",{class:I(e.ns.e("title"))},[e.iconComponent&&e.center?(x(),ve(o,{key:0,class:I([e.ns.e("status"),e.typeClass])},{default:ee(()=>[(x(),ve(Mt(e.iconComponent)))]),_:1},8,["class"])):he("v-if",!0),V("span",null,we(e.title),1)],2),e.showClose?(x(),z("button",{key:0,type:"button",class:I(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=zt(ft(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[G(o,{class:I(e.ns.e("close"))},{default:ee(()=>[G(a)]),_:1},8,["class"])],42,ipe)):he("v-if",!0)],2)):he("v-if",!0),V("div",{id:e.contentId,class:I(e.ns.e("content"))},[V("div",{class:I(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(x(),ve(o,{key:0,class:I([e.ns.e("status"),e.typeClass])},{default:ee(()=>[(x(),ve(Mt(e.iconComponent)))]),_:1},8,["class"])):he("v-if",!0),e.hasMessage?(x(),z("div",{key:1,class:I(e.ns.e("message"))},[xe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(x(),ve(Mt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(x(),ve(Mt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ee(()=>[wt(we(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):he("v-if",!0)],2),gt(V("div",{class:I(e.ns.e("input"))},[G(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=h=>e.inputValue=h),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:I({invalid:e.validateError}),onKeydown:zt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),V("div",{class:I(e.ns.e("errormsg")),style:st({visibility:e.editorErrorMessage?"visible":"hidden"})},we(e.editorErrorMessage),7)],2),[[Ut,e.showInput]])],10,ope),V("div",{class:I(e.ns.e("btns"))},[e.showCancelButton?(x(),ve(u,{key:0,loading:e.cancelButtonLoading,class:I([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=h=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=zt(ft(h=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ee(()=>[wt(we(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):he("v-if",!0),gt(G(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:I([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=h=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=zt(ft(h=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ee(()=>[wt(we(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Ut,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,rpe)]),_:3},8,["z-index","overlay-class","mask"]),[[Ut,e.visible]])]),_:3})}var lpe=Ue(spe,[["render",ape],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const wd=new Map,upe=e=>{let t=document.body;return e.appendTo&&(mt(e.appendTo)&&(t=document.querySelector(e.appendTo)),Ur(e.appendTo)&&(t=e.appendTo),Ur(t)||(t=document.body)),t},cpe=(e,t,n=null)=>{const s=G(lpe,e,pt(e.message)||gn(e.message)?{default:pt(e.message)?e.message:()=>e.message}:null);return s.appContext=n,jl(s,t),upe(e).appendChild(t.firstElementChild),s.component},dpe=()=>document.createElement("div"),fpe=(e,t)=>{const n=dpe();e.onVanish=()=>{jl(null,n),wd.delete(r)},e.onAction=i=>{const o=wd.get(r);let a;e.showInput?a={value:r.inputValue,action:i}:a=i,e.callback?e.callback(a,s.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(a)};const s=cpe(e,n,t),r=s.proxy;for(const i in e)Ft(e,i)&&!Ft(r.$props,i)&&(r[i]=e[i]);return r.visible=!0,r};function Au(e,t=null){if(!Ht)return Promise.reject();let n;return mt(e)||gn(e)?e={message:e}:n=e.callback,new Promise((s,r)=>{const i=fpe(e,t??Au._context);wd.set(i,{options:e,callback:n,resolve:s,reject:r})})}const hpe=["alert","confirm","prompt"],ppe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};hpe.forEach(e=>{Au[e]=mpe(e)});function mpe(e){return(t,n,s,r)=>{let i="";return Pt(n)?(s=n,i=""):Qn(n)?i="":i=n,Au(Object.assign({title:i,message:t,type:"",...ppe[e]},s,{boxType:e}),r)}}Au.close=()=>{wd.forEach((e,t)=>{t.doClose()}),wd.clear()};Au._context=null;const vo=Au;vo.install=e=>{vo._context=e._context,e.config.globalProperties.$msgbox=vo,e.config.globalProperties.$messageBox=vo,e.config.globalProperties.$alert=vo.alert,e.config.globalProperties.$confirm=vo.confirm,e.config.globalProperties.$prompt=vo.prompt};const gpe=vo,C$=["success","info","warning","error"],vpe=ze({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:on},id:{type:String,default:""},message:{type:me([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:me(Function),default:()=>{}},onClose:{type:me(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:[...C$,""],default:""},zIndex:{type:Number,default:0}}),ype={destroy:()=>!0},bpe=["id"],_pe=["textContent"],Tpe={key:0},Spe=["innerHTML"],wpe=te({name:"ElNotification"}),Cpe=te({...wpe,props:vpe,emits:ype,setup(e,{expose:t}){const n=e,{ns:s,zIndex:r}=Rm("notification"),{nextZIndex:i,currentZIndex:o}=r,{Close:a}=AO,l=B(!1);let u;const d=E(()=>{const _=n.type;return _&&$o[n.type]?s.m(_):""}),f=E(()=>n.type&&$o[n.type]||n.icon),h=E(()=>n.position.endsWith("right")?"right":"left"),p=E(()=>n.position.startsWith("top")?"top":"bottom"),g=E(()=>({[p.value]:`${n.offset}px`,zIndex:o.value}));function m(){n.duration>0&&({stop:u}=$a(()=>{l.value&&y()},n.duration))}function v(){u==null||u()}function y(){l.value=!1}function T({code:_}){_===at.delete||_===at.backspace?v():_===at.esc?l.value&&y():m()}return Tt(()=>{m(),i(),l.value=!0}),mn(document,"keydown",T),t({visible:l,close:y}),(_,S)=>(x(),ve(Pn,{name:c(s).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:S[1]||(S[1]=w=>_.$emit("destroy")),persisted:""},{default:ee(()=>[gt(V("div",{id:_.id,class:I([c(s).b(),_.customClass,c(h)]),style:st(c(g)),role:"alert",onMouseenter:v,onMouseleave:m,onClick:S[0]||(S[0]=(...w)=>_.onClick&&_.onClick(...w))},[c(f)?(x(),ve(c(nt),{key:0,class:I([c(s).e("icon"),c(d)])},{default:ee(()=>[(x(),ve(Mt(c(f))))]),_:1},8,["class"])):he("v-if",!0),V("div",{class:I(c(s).e("group"))},[V("h2",{class:I(c(s).e("title")),textContent:we(_.title)},null,10,_pe),gt(V("div",{class:I(c(s).e("content")),style:st(_.title?void 0:{margin:0})},[xe(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(x(),z(et,{key:1},[he(" Caution here, message could've been compromised, never use user's input as message "),V("p",{innerHTML:_.message},null,8,Spe)],2112)):(x(),z("p",Tpe,we(_.message),1))])],6),[[Ut,_.message]]),_.showClose?(x(),ve(c(nt),{key:0,class:I(c(s).e("closeBtn")),onClick:ft(y,["stop"])},{default:ee(()=>[G(c(a))]),_:1},8,["class","onClick"])):he("v-if",!0)],2)],46,bpe),[[Ut,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Epe=Ue(Cpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const kp={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ty=16;let xpe=1;const ru=function(e={},t=null){if(!Ht)return{close:()=>{}};(typeof e=="string"||gn(e))&&(e={message:e});const n=e.position||"top-right";let s=e.offset||0;kp[n].forEach(({vm:d})=>{var f;s+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Ty}),s+=Ty;const r=`notification_${xpe++}`,i=e.onClose,o={...e,offset:s,id:r,onClose:()=>{kpe(r,n,i)}};let a=document.body;Ur(e.appendTo)?a=e.appendTo:mt(e.appendTo)&&(a=document.querySelector(e.appendTo)),Ur(a)||(a=document.body);const l=document.createElement("div"),u=G(Epe,o,gn(o.message)?{default:()=>o.message}:null);return u.appContext=t??ru._context,u.props.onDestroy=()=>{jl(null,l)},jl(u,l),kp[n].push({vm:u}),a.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};C$.forEach(e=>{ru[e]=(t={})=>((typeof t=="string"||gn(t))&&(t={message:t}),ru({...t,type:e}))});function kpe(e,t,n){const s=kp[t],r=s.findIndex(({vm:u})=>{var d;return((d=u.component)==null?void 0:d.props.id)===e});if(r===-1)return;const{vm:i}=s[r];if(!i)return;n==null||n(i);const o=i.el.offsetHeight,a=t.split("-")[0];s.splice(r,1);const l=s.length;if(!(l<1))for(let u=r;u<l;u++){const{el:d,component:f}=s[u].vm,h=Number.parseInt(d.style[a],10)-o-Ty;f.props.offset=h}}function Ope(){for(const e of Object.values(kp))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}ru.closeAll=Ope;ru._context=null;const Ape=PO(ru,"$notify");var Ipe=[Dhe,Hhe,Gi,gpe,Ape,fP],Ppe=K7([...Ihe,...Ipe]);const $pe={class:"util"},Npe=te({__name:"Util",setup(e){const t=Bt({show:!1,darkTheme:!0});Tt(()=>{n(localStorage.getItem("theme")+"")});const n=s=>{switch(s){case"top":if(document.documentElement.scrollTop>0){const i=setInterval(()=>{document.documentElement.scrollTop-=10,document.documentElement.scrollTop===0&&clearInterval(i)},5)}break;case"light":t.darkTheme=!1,localStorage.setItem("theme","light"),document.getElementsByClassName("main")[0].style.background="linear-gradient(45deg, #356697, rgb(105, 68, 140), rgb(151, 109, 133), rgb(92 104 149))";break;case"dark":t.darkTheme=!0,localStorage.setItem("theme","dark"),document.getElementsByClassName("main")[0].style.background="rgb(34,34,34)";break;case"more":t.show=!t.show;break}};return(s,r)=>{const i=nt,o=EI;return x(),z("div",$pe,[G(o,null,{default:ee(()=>[gt(V("div",null,[V("a",{href:"javascript:;",onClick:r[0]||(r[0]=a=>n("top"))},[G(i,null,{default:ee(()=>[G(c(Wd))]),_:1})]),t.darkTheme?(x(),z("a",{key:0,href:"javascript:;",onClick:r[1]||(r[1]=a=>n("light"))},[G(i,null,{default:ee(()=>[G(c(SK))]),_:1})])):he("",!0),t.darkTheme?he("",!0):(x(),z("a",{key:1,href:"javascript:;",onClick:r[2]||(r[2]=a=>n("dark"))},[G(i,null,{default:ee(()=>[G(c(Vj))]),_:1})]))],512),[[Ut,t.show]])]),_:1}),V("a",{href:"javascript:;",onClick:r[3]||(r[3]=a=>n("more")),class:"more"},[G(i,null,{default:ee(()=>[G(c(d0))]),_:1})])])}}}),or=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Mpe=or(Npe,[["__scopeId","data-v-4d4d34a2"]]),Rpe={class:"main"},Lpe=te({__name:"App",setup(e){return(t,n)=>{const s=vt("router-view");return x(),z("div",Rpe,[G(s),G(Mpe)])}}});/*!
|
||
* vue-router v4.1.6
|
||
* (c) 2022 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const ml=typeof window<"u";function Dpe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const cn=Object.assign;function gv(e,t){const n={};for(const s in t){const r=t[s];n[s]=jr(r)?r.map(e):e(r)}return n}const Rc=()=>{},jr=Array.isArray,Fpe=/\/$/,Bpe=e=>e.replace(Fpe,"");function vv(e,t,n="/"){let s,r={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(s=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(s=s||t.slice(0,a),o=t.slice(a,t.length)),s=zpe(s??t,n),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:o}}function Vpe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function CE(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Upe(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&iu(t.matched[s],n.matched[r])&&E$(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function iu(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function E$(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Hpe(e[n],t[n]))return!1;return!0}function Hpe(e,t){return jr(e)?EE(e,t):jr(t)?EE(t,e):e===t}function EE(e,t){return jr(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function zpe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,i,o;for(i=0;i<s.length;i++)if(o=s[i],o!==".")if(o==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var Cd;(function(e){e.pop="pop",e.push="push"})(Cd||(Cd={}));var Lc;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Lc||(Lc={}));function jpe(e){if(!e)if(ml){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Bpe(e)}const Kpe=/^[^#]+#/;function Wpe(e,t){return e.replace(Kpe,"#")+t}function qpe(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Km=()=>({left:window.pageXOffset,top:window.pageYOffset});function Gpe(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=qpe(r,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 xE(e,t){return(history.state?history.state.position-t:-1)+e}const Sy=new Map;function Ype(e,t){Sy.set(e,t)}function Xpe(e){const t=Sy.get(e);return Sy.delete(e),t}let Qpe=()=>location.protocol+"//"+location.host;function x$(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let a=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),CE(l,"")}return CE(n,e)+s+r}function Jpe(e,t,n,s){let r=[],i=[],o=null;const a=({state:h})=>{const p=x$(e,location),g=n.value,m=t.value;let v=0;if(h){if(n.value=p,t.value=h,o&&o===g){o=null;return}v=m?h.position-m.position:0}else s(p);r.forEach(y=>{y(n.value,g,{delta:v,type:Cd.pop,direction:v?v>0?Lc.forward:Lc.back:Lc.unknown})})};function l(){o=n.value}function u(h){r.push(h);const p=()=>{const g=r.indexOf(h);g>-1&&r.splice(g,1)};return i.push(p),p}function d(){const{history:h}=window;h.state&&h.replaceState(cn({},h.state,{scroll:Km()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:l,listen:u,destroy:f}}function kE(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Km():null}}function Zpe(e){const{history:t,location:n}=window,s={value:x$(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,d){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Qpe()+e+l;try{t[d?"replaceState":"pushState"](u,"",h),r.value=u}catch(p){console.error(p),n[d?"replace":"assign"](h)}}function o(l,u){const d=cn({},t.state,kE(r.value.back,l,r.value.forward,!0),u,{position:r.value.position});i(l,d,!0),s.value=l}function a(l,u){const d=cn({},r.value,t.state,{forward:l,scroll:Km()});i(d.current,d,!0);const f=cn({},kE(s.value,l,null),{position:d.position+1},u);i(l,f,!1),s.value=l}return{location:s,state:r,push:a,replace:o}}function eme(e){e=jpe(e);const t=Zpe(e),n=Jpe(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=cn({location:"",base:e,go:s,createHref:Wpe.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function tme(e){return typeof e=="string"||e&&typeof e=="object"}function k$(e){return typeof e=="string"||typeof e=="symbol"}const co={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},O$=Symbol("");var OE;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(OE||(OE={}));function ou(e,t){return cn(new Error,{type:e,[O$]:!0},t)}function Ai(e,t){return e instanceof Error&&O$ in e&&(t==null||!!(e.type&t))}const AE="[^/]+?",nme={sensitive:!1,strict:!1,start:!0,end:!0},sme=/[.+*?^${}()[\]/\\]/g;function rme(e,t){const n=cn({},nme,t),s=[];let r=n.start?"^":"";const i=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const h=u[f];let p=40+(n.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(sme,"\\$&"),p+=40;else if(h.type===1){const{value:g,repeatable:m,optional:v,regexp:y}=h;i.push({name:g,repeatable:m,optional:v});const T=y||AE;if(T!==AE){p+=10;try{new RegExp(`(${T})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${g}" (${T}): `+S.message)}}let _=m?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;f||(_=v&&u.length<2?`(?:/${_})`:"/"+_),v&&(_+="?"),r+=_,p+=20,v&&(p+=-8),m&&(p+=-20),T===".*"&&(p+=-50)}d.push(p)}s.push(d)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function a(u){const d=u.match(o),f={};if(!d)return null;for(let h=1;h<d.length;h++){const p=d[h]||"",g=i[h-1];f[g.name]=p&&g.repeatable?p.split("/"):p}return f}function l(u){let d="",f=!1;for(const h of e){(!f||!d.endsWith("/"))&&(d+="/"),f=!1;for(const p of h)if(p.type===0)d+=p.value;else if(p.type===1){const{value:g,repeatable:m,optional:v}=p,y=g in u?u[g]:"";if(jr(y)&&!m)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const T=jr(y)?y.join("/"):y;if(!T)if(v)h.length<2&&(d.endsWith("/")?d=d.slice(0,-1):f=!0);else throw new Error(`Missing required param "${g}"`);d+=T}}return d||"/"}return{re:o,score:s,keys:i,parse:a,stringify:l}}function ime(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;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 ome(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const i=ime(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(IE(s))return 1;if(IE(r))return-1}return r.length-s.length}function IE(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ame={type:0,value:""},lme=/[a-zA-Z0-9_]/;function ume(e){if(!e)return[[]];if(e==="/")return[[ame]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let a=0,l,u="",d="";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:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),n=1):h();break;case 4:h(),n=s;break;case 1:l==="("?n=2:lme.test(l)?h():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),r}function cme(e,t,n){const s=rme(ume(e.path),n),r=cn(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function dme(e,t){const n=[],s=new Map;t=NE({strict:!1,end:!0,sensitive:!1},t);function r(d){return s.get(d)}function i(d,f,h){const p=!h,g=fme(d);g.aliasOf=h&&h.record;const m=NE(t,d),v=[g];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const S of _)v.push(cn({},g,{components:h?h.record.components:g.components,path:S,aliasOf:h?h.record:g}))}let y,T;for(const _ of v){const{path:S}=_;if(f&&S[0]!=="/"){const w=f.record.path,A=w[w.length-1]==="/"?"":"/";_.path=f.record.path+(S&&A+S)}if(y=cme(_,f,m),h?h.alias.push(y):(T=T||y,T!==y&&T.alias.push(y),p&&d.name&&!$E(y)&&o(d.name)),g.children){const w=g.children;for(let A=0;A<w.length;A++)i(w[A],y,h&&h.children[A])}h=h||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&l(y)}return T?()=>{o(T)}:Rc}function o(d){if(k$(d)){const f=s.get(d);f&&(s.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&s.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){let f=0;for(;f<n.length&&ome(d,n[f])>=0&&(d.record.path!==n[f].record.path||!A$(d,n[f]));)f++;n.splice(f,0,d),d.record.name&&!$E(d)&&s.set(d.record.name,d)}function u(d,f){let h,p={},g,m;if("name"in d&&d.name){if(h=s.get(d.name),!h)throw ou(1,{location:d});m=h.record.name,p=cn(PE(f.params,h.keys.filter(T=>!T.optional).map(T=>T.name)),d.params&&PE(d.params,h.keys.map(T=>T.name))),g=h.stringify(p)}else if("path"in d)g=d.path,h=n.find(T=>T.re.test(g)),h&&(p=h.parse(g),m=h.record.name);else{if(h=f.name?s.get(f.name):n.find(T=>T.re.test(f.path)),!h)throw ou(1,{location:d,currentLocation:f});m=h.record.name,p=cn({},f.params,d.params),g=h.stringify(p)}const v=[];let y=h;for(;y;)v.unshift(y.record),y=y.parent;return{name:m,path:g,params:p,matched:v,meta:pme(v)}}return e.forEach(d=>i(d)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:a,getRecordMatcher:r}}function PE(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function fme(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:hme(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function hme(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function $E(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pme(e){return e.reduce((t,n)=>cn(t,n.meta),{})}function NE(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function A$(e,t){return t.children.some(n=>n===e||A$(e,n))}const I$=/#/g,mme=/&/g,gme=/\//g,vme=/=/g,yme=/\?/g,P$=/\+/g,bme=/%5B/g,_me=/%5D/g,$$=/%5E/g,Tme=/%60/g,N$=/%7B/g,Sme=/%7C/g,M$=/%7D/g,wme=/%20/g;function e1(e){return encodeURI(""+e).replace(Sme,"|").replace(bme,"[").replace(_me,"]")}function Cme(e){return e1(e).replace(N$,"{").replace(M$,"}").replace($$,"^")}function wy(e){return e1(e).replace(P$,"%2B").replace(wme,"+").replace(I$,"%23").replace(mme,"%26").replace(Tme,"`").replace(N$,"{").replace(M$,"}").replace($$,"^")}function Eme(e){return wy(e).replace(vme,"%3D")}function xme(e){return e1(e).replace(I$,"%23").replace(yme,"%3F")}function kme(e){return e==null?"":xme(e).replace(gme,"%2F")}function Op(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ome(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const i=s[r].replace(P$," "),o=i.indexOf("="),a=Op(o<0?i:i.slice(0,o)),l=o<0?null:Op(i.slice(o+1));if(a in t){let u=t[a];jr(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function ME(e){let t="";for(let n in e){const s=e[n];if(n=Eme(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(jr(s)?s.map(i=>i&&wy(i)):[s&&wy(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Ame(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=jr(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Ime=Symbol(""),RE=Symbol(""),Wm=Symbol(""),t1=Symbol(""),Cy=Symbol("");function rc(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function bo(e,t,n,s,r){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(ou(4,{from:n,to:t})):f instanceof Error?a(f):tme(f)?a(ou(2,{from:t,to:f})):(i&&s.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),o())},u=e.call(s&&s.instances[r],t,n,l);let d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(f=>a(f))})}function yv(e,t,n,s){const r=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(Pme(a)){const u=(a.__vccOpts||a)[t];u&&r.push(bo(u,n,s,i,o))}else{let l=a();r.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const d=Dpe(u)?u.default:u;i.components[o]=d;const h=(d.__vccOpts||d)[t];return h&&bo(h,n,s,i,o)()}))}}return r}function Pme(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function LE(e){const t=Qe(Wm),n=Qe(t1),s=E(()=>t.resolve(c(e.to))),r=E(()=>{const{matched:l}=s.value,{length:u}=l,d=l[u-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(iu.bind(null,d));if(h>-1)return h;const p=DE(l[u-2]);return u>1&&DE(d)===p&&f[f.length-1].path!==p?f.findIndex(iu.bind(null,l[u-2])):h}),i=E(()=>r.value>-1&&Rme(n.params,s.value.params)),o=E(()=>r.value>-1&&r.value===n.matched.length-1&&E$(n.params,s.value.params));function a(l={}){return Mme(l)?t[c(e.replace)?"replace":"push"](c(e.to)).catch(Rc):Promise.resolve()}return{route:s,href:E(()=>s.value.href),isActive:i,isExactActive:o,navigate:a}}const $me=te({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:LE,setup(e,{slots:t}){const n=Bt(LE(e)),{options:s}=Qe(Wm),r=E(()=>({[FE(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[FE(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:ot("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Nme=$me;function Mme(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 Rme(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!jr(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function DE(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const FE=(e,t,n)=>e??t??n,Lme=te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Qe(Cy),r=E(()=>e.route||s.value),i=Qe(RE,0),o=E(()=>{let u=c(i);const{matched:d}=r.value;let f;for(;(f=d[u])&&!f.components;)u++;return u}),a=E(()=>r.value.matched[o.value]);Nt(RE,E(()=>o.value+1)),Nt(Ime,a),Nt(Cy,r);const l=B();return ke(()=>[l.value,a.value,e.name],([u,d,f],[h,p,g])=>{d&&(d.instances[f]=u,p&&p!==d&&u&&u===h&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),u&&d&&(!p||!iu(d,p)||!h)&&(d.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=r.value,d=e.name,f=a.value,h=f&&f.components[d];if(!h)return BE(n.default,{Component:h,route:u});const p=f.props[d],g=p?p===!0?u.params:typeof p=="function"?p(u):p:null,v=ot(h,cn({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[d]=null)},ref:l}));return BE(n.default,{Component:v,route:u})||v}}});function BE(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Dme=Lme;function Fme(e){const t=dme(e.routes,e),n=e.parseQuery||Ome,s=e.stringifyQuery||ME,r=e.history,i=rc(),o=rc(),a=rc(),l=nn(co);let u=co;ml&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=gv.bind(null,le=>""+le),f=gv.bind(null,kme),h=gv.bind(null,Op);function p(le,ie){let ce,ne;return k$(le)?(ce=t.getRecordMatcher(le),ne=ie):ne=le,t.addRoute(ne,ce)}function g(le){const ie=t.getRecordMatcher(le);ie&&t.removeRoute(ie)}function m(){return t.getRoutes().map(le=>le.record)}function v(le){return!!t.getRecordMatcher(le)}function y(le,ie){if(ie=cn({},ie||l.value),typeof le=="string"){const Y=vv(n,le,ie.path),re=t.resolve({path:Y.path},ie),Se=r.createHref(Y.fullPath);return cn(Y,re,{params:h(re.params),hash:Op(Y.hash),redirectedFrom:void 0,href:Se})}let ce;if("path"in le)ce=cn({},le,{path:vv(n,le.path,ie.path).path});else{const Y=cn({},le.params);for(const re in Y)Y[re]==null&&delete Y[re];ce=cn({},le,{params:f(le.params)}),ie.params=f(ie.params)}const ne=t.resolve(ce,ie),pe=le.hash||"";ne.params=d(h(ne.params));const Te=Vpe(s,cn({},le,{hash:Cme(pe),path:ne.path})),He=r.createHref(Te);return cn({fullPath:Te,hash:pe,query:s===ME?Ame(le.query):le.query||{}},ne,{redirectedFrom:void 0,href:He})}function T(le){return typeof le=="string"?vv(n,le,l.value.path):cn({},le)}function _(le,ie){if(u!==le)return ou(8,{from:ie,to:le})}function S(le){return M(le)}function w(le){return S(cn(T(le),{replace:!0}))}function A(le){const ie=le.matched[le.matched.length-1];if(ie&&ie.redirect){const{redirect:ce}=ie;let ne=typeof ce=="function"?ce(le):ce;return typeof ne=="string"&&(ne=ne.includes("?")||ne.includes("#")?ne=T(ne):{path:ne},ne.params={}),cn({query:le.query,hash:le.hash,params:"path"in ne?{}:le.params},ne)}}function M(le,ie){const ce=u=y(le),ne=l.value,pe=le.state,Te=le.force,He=le.replace===!0,Y=A(ce);if(Y)return M(cn(T(Y),{state:typeof Y=="object"?cn({},pe,Y.state):pe,force:Te,replace:He}),ie||ce);const re=ce;re.redirectedFrom=ie;let Se;return!Te&&Upe(s,ne,ce)&&(Se=ou(16,{to:re,from:ne}),Z(ne,ne,!0,!1)),(Se?Promise.resolve(Se):L(re,ne)).catch(Oe=>Ai(Oe)?Ai(Oe,2)?Oe:U(Oe):$(Oe,re,ne)).then(Oe=>{if(Oe){if(Ai(Oe,2))return M(cn({replace:He},T(Oe.to),{state:typeof Oe.to=="object"?cn({},pe,Oe.to.state):pe,force:Te}),ie||re)}else Oe=W(re,ne,!0,He,pe);return F(re,ne,Oe),Oe})}function N(le,ie){const ce=_(le,ie);return ce?Promise.reject(ce):Promise.resolve()}function L(le,ie){let ce;const[ne,pe,Te]=Bme(le,ie);ce=yv(ne.reverse(),"beforeRouteLeave",le,ie);for(const Y of ne)Y.leaveGuards.forEach(re=>{ce.push(bo(re,le,ie))});const He=N.bind(null,le,ie);return ce.push(He),nl(ce).then(()=>{ce=[];for(const Y of i.list())ce.push(bo(Y,le,ie));return ce.push(He),nl(ce)}).then(()=>{ce=yv(pe,"beforeRouteUpdate",le,ie);for(const Y of pe)Y.updateGuards.forEach(re=>{ce.push(bo(re,le,ie))});return ce.push(He),nl(ce)}).then(()=>{ce=[];for(const Y of le.matched)if(Y.beforeEnter&&!ie.matched.includes(Y))if(jr(Y.beforeEnter))for(const re of Y.beforeEnter)ce.push(bo(re,le,ie));else ce.push(bo(Y.beforeEnter,le,ie));return ce.push(He),nl(ce)}).then(()=>(le.matched.forEach(Y=>Y.enterCallbacks={}),ce=yv(Te,"beforeRouteEnter",le,ie),ce.push(He),nl(ce))).then(()=>{ce=[];for(const Y of o.list())ce.push(bo(Y,le,ie));return ce.push(He),nl(ce)}).catch(Y=>Ai(Y,8)?Y:Promise.reject(Y))}function F(le,ie,ce){for(const ne of a.list())ne(le,ie,ce)}function W(le,ie,ce,ne,pe){const Te=_(le,ie);if(Te)return Te;const He=ie===co,Y=ml?history.state:{};ce&&(ne||He?r.replace(le.fullPath,cn({scroll:He&&Y&&Y.scroll},pe)):r.push(le.fullPath,pe)),l.value=le,Z(le,ie,ce,He),U()}let j;function R(){j||(j=r.listen((le,ie,ce)=>{if(!Ee.listening)return;const ne=y(le),pe=A(ne);if(pe){M(cn(pe,{replace:!0}),ne).catch(Rc);return}u=ne;const Te=l.value;ml&&Ype(xE(Te.fullPath,ce.delta),Km()),L(ne,Te).catch(He=>Ai(He,12)?He:Ai(He,2)?(M(He.to,ne).then(Y=>{Ai(Y,20)&&!ce.delta&&ce.type===Cd.pop&&r.go(-1,!1)}).catch(Rc),Promise.reject()):(ce.delta&&r.go(-ce.delta,!1),$(He,ne,Te))).then(He=>{He=He||W(ne,Te,!1),He&&(ce.delta&&!Ai(He,8)?r.go(-ce.delta,!1):ce.type===Cd.pop&&Ai(He,20)&&r.go(-1,!1)),F(ne,Te,He)}).catch(Rc)}))}let q=rc(),X=rc(),K;function $(le,ie,ce){U(le);const ne=X.list();return ne.length?ne.forEach(pe=>pe(le,ie,ce)):console.error(le),Promise.reject(le)}function H(){return K&&l.value!==co?Promise.resolve():new Promise((le,ie)=>{q.add([le,ie])})}function U(le){return K||(K=!le,R(),q.list().forEach(([ie,ce])=>le?ce(le):ie()),q.reset()),le}function Z(le,ie,ce,ne){const{scrollBehavior:pe}=e;if(!ml||!pe)return Promise.resolve();const Te=!ce&&Xpe(xE(le.fullPath,0))||(ne||!ce)&&history.state&&history.state.scroll||null;return it().then(()=>pe(le,ie,Te)).then(He=>He&&Gpe(He)).catch(He=>$(He,le,ie))}const ue=le=>r.go(le);let Q;const ae=new Set,Ee={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,hasRoute:v,getRoutes:m,resolve:y,options:e,push:S,replace:w,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:X.add,isReady:H,install(le){const ie=this;le.component("RouterLink",Nme),le.component("RouterView",Dme),le.config.globalProperties.$router=ie,Object.defineProperty(le.config.globalProperties,"$route",{enumerable:!0,get:()=>c(l)}),ml&&!Q&&l.value===co&&(Q=!0,S(r.location).catch(pe=>{}));const ce={};for(const pe in co)ce[pe]=E(()=>l.value[pe]);le.provide(Wm,ie),le.provide(t1,Bt(ce)),le.provide(Cy,l);const ne=le.unmount;ae.add(le),le.unmount=function(){ae.delete(le),ae.size<1&&(u=co,j&&j(),j=null,l.value=co,Q=!1,K=!1),ne()}}};return Ee}function nl(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Bme(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(u=>iu(u,a))?s.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>iu(u,l))||r.push(l))}return[n,s,r]}function Iu(){return Qe(Wm)}function Vme(){return Qe(t1)}function R$(e,t){return function(){return e.apply(t,arguments)}}const{toString:L$}=Object.prototype,{getPrototypeOf:n1}=Object,s1=(e=>t=>{const n=L$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),io=e=>(e=e.toLowerCase(),t=>s1(t)===e),qm=e=>t=>typeof t===e,{isArray:Pu}=Array,Ed=qm("undefined");function Ume(e){return e!==null&&!Ed(e)&&e.constructor!==null&&!Ed(e.constructor)&&Ro(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const D$=io("ArrayBuffer");function Hme(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&D$(e.buffer),t}const zme=qm("string"),Ro=qm("function"),F$=qm("number"),r1=e=>e!==null&&typeof e=="object",jme=e=>e===!0||e===!1,qh=e=>{if(s1(e)!=="object")return!1;const t=n1(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kme=io("Date"),Wme=io("File"),qme=io("Blob"),Gme=io("FileList"),Yme=e=>r1(e)&&Ro(e.pipe),Xme=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||L$.call(e)===t||Ro(e.toString)&&e.toString()===t)},Qme=io("URLSearchParams"),Jme=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ef(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Pu(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(s=0;s<o;s++)a=i[s],t.call(null,e[a],a,e)}}function B$(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const V$=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),U$=e=>!Ed(e)&&e!==V$;function Ey(){const{caseless:e}=U$(this)&&this||{},t={},n=(s,r)=>{const i=e&&B$(t,r)||r;qh(t[i])&&qh(s)?t[i]=Ey(t[i],s):qh(s)?t[i]=Ey({},s):Pu(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&ef(arguments[s],n);return t}const Zme=(e,t,n,{allOwnKeys:s}={})=>(ef(t,(r,i)=>{n&&Ro(r)?e[i]=R$(r,n):e[i]=r},{allOwnKeys:s}),e),ege=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tge=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},nge=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&n1(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},sge=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},rge=e=>{if(!e)return null;if(Pu(e))return e;let t=e.length;if(!F$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ige=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&n1(Uint8Array)),oge=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},age=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},lge=io("HTMLFormElement"),uge=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),VE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cge=io("RegExp"),H$=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};ef(n,(r,i)=>{t(r,i,e)!==!1&&(s[i]=r)}),Object.defineProperties(e,s)},dge=e=>{H$(e,(t,n)=>{if(Ro(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Ro(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fge=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Pu(e)?s(e):s(String(e).split(t)),n},hge=()=>{},pge=(e,t)=>(e=+e,Number.isFinite(e)?e:t),bv="abcdefghijklmnopqrstuvwxyz",UE="0123456789",z$={DIGIT:UE,ALPHA:bv,ALPHA_DIGIT:bv+bv.toUpperCase()+UE},mge=(e=16,t=z$.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function gge(e){return!!(e&&Ro(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vge=e=>{const t=new Array(10),n=(s,r)=>{if(r1(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=Pu(s)?[]:{};return ef(s,(o,a)=>{const l=n(o,r+1);!Ed(l)&&(i[a]=l)}),t[r]=void 0,i}}return s};return n(e,0)},Je={isArray:Pu,isArrayBuffer:D$,isBuffer:Ume,isFormData:Xme,isArrayBufferView:Hme,isString:zme,isNumber:F$,isBoolean:jme,isObject:r1,isPlainObject:qh,isUndefined:Ed,isDate:Kme,isFile:Wme,isBlob:qme,isRegExp:cge,isFunction:Ro,isStream:Yme,isURLSearchParams:Qme,isTypedArray:ige,isFileList:Gme,forEach:ef,merge:Ey,extend:Zme,trim:Jme,stripBOM:ege,inherits:tge,toFlatObject:nge,kindOf:s1,kindOfTest:io,endsWith:sge,toArray:rge,forEachEntry:oge,matchAll:age,isHTMLForm:lge,hasOwnProperty:VE,hasOwnProp:VE,reduceDescriptors:H$,freezeMethods:dge,toObjectSet:fge,toCamelCase:uge,noop:hge,toFiniteNumber:pge,findKey:B$,global:V$,isContextDefined:U$,ALPHABET:z$,generateString:mge,isSpecCompliantForm:gge,toJSONObject:vge};function sn(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}Je.inherits(sn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Je.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j$=sn.prototype,K$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{K$[e]={value:e}});Object.defineProperties(sn,K$);Object.defineProperty(j$,"isAxiosError",{value:!0});sn.from=(e,t,n,s,r,i)=>{const o=Object.create(j$);return Je.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),sn.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const yge=null;function xy(e){return Je.isPlainObject(e)||Je.isArray(e)}function W$(e){return Je.endsWith(e,"[]")?e.slice(0,-2):e}function HE(e,t,n){return e?e.concat(t).map(function(r,i){return r=W$(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function bge(e){return Je.isArray(e)&&!e.some(xy)}const _ge=Je.toFlatObject(Je,{},null,function(t){return/^is[A-Z]/.test(t)});function Gm(e,t,n){if(!Je.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Je.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!Je.isUndefined(v[m])});const s=n.metaTokens,r=n.visitor||d,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Je.isSpecCompliantForm(t);if(!Je.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Je.isDate(g))return g.toISOString();if(!l&&Je.isBlob(g))throw new sn("Blob is not supported. Use a Buffer instead.");return Je.isArrayBuffer(g)||Je.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,m,v){let y=g;if(g&&!v&&typeof g=="object"){if(Je.endsWith(m,"{}"))m=s?m:m.slice(0,-2),g=JSON.stringify(g);else if(Je.isArray(g)&&bge(g)||(Je.isFileList(g)||Je.endsWith(m,"[]"))&&(y=Je.toArray(g)))return m=W$(m),y.forEach(function(_,S){!(Je.isUndefined(_)||_===null)&&t.append(o===!0?HE([m],S,i):o===null?m:m+"[]",u(_))}),!1}return xy(g)?!0:(t.append(HE(v,m,i),u(g)),!1)}const f=[],h=Object.assign(_ge,{defaultVisitor:d,convertValue:u,isVisitable:xy});function p(g,m){if(!Je.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(g),Je.forEach(g,function(y,T){(!(Je.isUndefined(y)||y===null)&&r.call(t,y,Je.isString(T)?T.trim():T,m,h))===!0&&p(y,m?m.concat(T):[T])}),f.pop()}}if(!Je.isObject(e))throw new TypeError("data must be an object");return p(e),t}function zE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function i1(e,t){this._pairs=[],e&&Gm(e,this,t)}const q$=i1.prototype;q$.append=function(t,n){this._pairs.push([t,n])};q$.toString=function(t){const n=t?function(s){return t.call(this,s,zE)}:zE;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Tge(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function G$(e,t,n){if(!t)return e;const s=n&&n.encode||Tge,r=n&&n.serialize;let i;if(r?i=r(t,n):i=Je.isURLSearchParams(t)?t.toString():new i1(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Sge{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Je.forEach(this.handlers,function(s){s!==null&&t(s)})}}const jE=Sge,Y$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wge=typeof URLSearchParams<"u"?URLSearchParams:i1,Cge=typeof FormData<"u"?FormData:null,Ege=typeof Blob<"u"?Blob:null,xge=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),kge=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ii={isBrowser:!0,classes:{URLSearchParams:wge,FormData:Cge,Blob:Ege},isStandardBrowserEnv:xge,isStandardBrowserWebWorkerEnv:kge,protocols:["http","https","file","blob","url","data"]};function Oge(e,t){return Gm(e,new ii.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return ii.isNode&&Je.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Age(e){return Je.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ige(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function X$(e){function t(n,s,r,i){let o=n[i++];const a=Number.isFinite(+o),l=i>=n.length;return o=!o&&Je.isArray(r)?r.length:o,l?(Je.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!Je.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&Je.isArray(r[o])&&(r[o]=Ige(r[o])),!a)}if(Je.isFormData(e)&&Je.isFunction(e.entries)){const n={};return Je.forEachEntry(e,(s,r)=>{t(Age(s),r,n,0)}),n}return null}const Pge={"Content-Type":void 0};function $ge(e,t,n){if(Je.isString(e))try{return(t||JSON.parse)(e),Je.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ym={transitional:Y$,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=Je.isObject(t);if(i&&Je.isHTMLForm(t)&&(t=new FormData(t)),Je.isFormData(t))return r&&r?JSON.stringify(X$(t)):t;if(Je.isArrayBuffer(t)||Je.isBuffer(t)||Je.isStream(t)||Je.isFile(t)||Je.isBlob(t))return t;if(Je.isArrayBufferView(t))return t.buffer;if(Je.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Oge(t,this.formSerializer).toString();if((a=Je.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Gm(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),$ge(t)):t}],transformResponse:[function(t){const n=this.transitional||Ym.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&Je.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?sn.from(a,sn.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ii.classes.FormData,Blob:ii.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Je.forEach(["delete","get","head"],function(t){Ym.headers[t]={}});Je.forEach(["post","put","patch"],function(t){Ym.headers[t]=Je.merge(Pge)});const o1=Ym,Nge=Je.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mge=e=>{const t={};let n,s,r;return e&&e.split(`
|
||
`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&Nge[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},KE=Symbol("internals");function ic(e){return e&&String(e).trim().toLowerCase()}function Gh(e){return e===!1||e==null?e:Je.isArray(e)?e.map(Gh):String(e)}function Rge(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function Lge(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function _v(e,t,n,s,r){if(Je.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!Je.isString(t)){if(Je.isString(s))return t.indexOf(s)!==-1;if(Je.isRegExp(s))return s.test(t)}}function Dge(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Fge(e,t){const n=Je.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}class Xm{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,l,u){const d=ic(l);if(!d)throw new Error("header name must be a non-empty string");const f=Je.findKey(r,d);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||l]=Gh(a))}const o=(a,l)=>Je.forEach(a,(u,d)=>i(u,d,l));return Je.isPlainObject(t)||t instanceof this.constructor?o(t,n):Je.isString(t)&&(t=t.trim())&&!Lge(t)?o(Mge(t),n):t!=null&&i(n,t,s),this}get(t,n){if(t=ic(t),t){const s=Je.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Rge(r);if(Je.isFunction(n))return n.call(this,r,s);if(Je.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ic(t),t){const s=Je.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||_v(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=ic(o),o){const a=Je.findKey(s,o);a&&(!n||_v(s,s[a],a,n))&&(delete s[a],r=!0)}}return Je.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||_v(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return Je.forEach(this,(r,i)=>{const o=Je.findKey(s,i);if(o){n[o]=Gh(r),delete n[i];return}const a=t?Dge(i):String(i).trim();a!==i&&delete n[i],n[a]=Gh(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Je.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&Je.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[KE]=this[KE]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=ic(o);s[a]||(Fge(r,o),s[a]=!0)}return Je.isArray(t)?t.forEach(i):i(t),this}}Xm.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Je.freezeMethods(Xm.prototype);Je.freezeMethods(Xm);const Ui=Xm;function Tv(e,t){const n=this||o1,s=t||n,r=Ui.from(s.headers);let i=s.data;return Je.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Q$(e){return!!(e&&e.__CANCEL__)}function tf(e,t,n){sn.call(this,e??"canceled",sn.ERR_CANCELED,t,n),this.name="CanceledError"}Je.inherits(tf,sn,{__CANCEL__:!0});function Bge(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new sn("Request failed with status code "+n.status,[sn.ERR_BAD_REQUEST,sn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Vge=ii.isStandardBrowserEnv?function(){return{write:function(n,s,r,i,o,a){const l=[];l.push(n+"="+encodeURIComponent(s)),Je.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Je.isString(i)&&l.push("path="+i),Je.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Uge(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hge(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function J$(e,t){return e&&!Uge(t)?Hge(e,t):t}const zge=ii.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(o){const a=Je.isString(o)?r(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function jge(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kge(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=s[i];o||(o=u),n[r]=l,s[r]=u;let f=i,h=0;for(;f!==r;)h+=n[f++],f=f%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-o<t)return;const p=d&&u-d;return p?Math.round(h*1e3/p):void 0}}function WE(e,t){let n=0;const s=Kge(50,250);return r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,l=s(a),u=i<=o;n=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:r};d[t?"download":"upload"]=!0,e(d)}}const Wge=typeof XMLHttpRequest<"u",qge=Wge&&function(e){return new Promise(function(n,s){let r=e.data;const i=Ui.from(e.headers).normalize(),o=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}Je.isFormData(r)&&(ii.isStandardBrowserEnv||ii.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+g))}const d=J$(e.baseURL,e.url);u.open(e.method.toUpperCase(),G$(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const p=Ui.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};Bge(function(y){n(y),l()},function(y){s(y),l()},m),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(s(new sn("Request aborted",sn.ECONNABORTED,e,u)),u=null)},u.onerror=function(){s(new sn("Network Error",sn.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Y$;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),s(new sn(g,m.clarifyTimeoutError?sn.ETIMEDOUT:sn.ECONNABORTED,e,u)),u=null},ii.isStandardBrowserEnv){const p=(e.withCredentials||zge(d))&&e.xsrfCookieName&&Vge.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}r===void 0&&i.setContentType(null),"setRequestHeader"in u&&Je.forEach(i.toJSON(),function(g,m){u.setRequestHeader(m,g)}),Je.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",WE(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",WE(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(s(!p||p.type?new tf(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const h=jge(d);if(h&&ii.protocols.indexOf(h)===-1){s(new sn("Unsupported protocol "+h+":",sn.ERR_BAD_REQUEST,e));return}u.send(r||null)})},Yh={http:yge,xhr:qge};Je.forEach(Yh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gge={getAdapter:e=>{e=Je.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;r<t&&(n=e[r],!(s=Je.isString(n)?Yh[n.toLowerCase()]:n));r++);if(!s)throw s===!1?new sn(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Je.hasOwnProp(Yh,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!Je.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:Yh};function Sv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tf(null,e)}function qE(e){return Sv(e),e.headers=Ui.from(e.headers),e.data=Tv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gge.getAdapter(e.adapter||o1.adapter)(e).then(function(s){return Sv(e),s.data=Tv.call(e,e.transformResponse,s),s.headers=Ui.from(s.headers),s},function(s){return Q$(s)||(Sv(e),s&&s.response&&(s.response.data=Tv.call(e,e.transformResponse,s.response),s.response.headers=Ui.from(s.response.headers))),Promise.reject(s)})}const GE=e=>e instanceof Ui?e.toJSON():e;function au(e,t){t=t||{};const n={};function s(u,d,f){return Je.isPlainObject(u)&&Je.isPlainObject(d)?Je.merge.call({caseless:f},u,d):Je.isPlainObject(d)?Je.merge({},d):Je.isArray(d)?d.slice():d}function r(u,d,f){if(Je.isUndefined(d)){if(!Je.isUndefined(u))return s(void 0,u,f)}else return s(u,d,f)}function i(u,d){if(!Je.isUndefined(d))return s(void 0,d)}function o(u,d){if(Je.isUndefined(d)){if(!Je.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function a(u,d,f){if(f in t)return s(u,d);if(f in e)return s(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,d)=>r(GE(u),GE(d),!0)};return Je.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const f=l[d]||r,h=f(e[d],t[d],d);Je.isUndefined(h)&&f!==a||(n[d]=h)}),n}const Z$="1.3.4",a1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{a1[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const YE={};a1.transitional=function(t,n,s){function r(i,o){return"[Axios v"+Z$+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new sn(r(o," has been removed"+(n?" in "+n:"")),sn.ERR_DEPRECATED);return n&&!YE[o]&&(YE[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};function Yge(e,t,n){if(typeof e!="object")throw new sn("options must be an object",sn.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],l=a===void 0||o(a,i,e);if(l!==!0)throw new sn("option "+i+" must be "+l,sn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new sn("Unknown option "+i,sn.ERR_BAD_OPTION)}}const ky={assertOptions:Yge,validators:a1},fo=ky.validators;class Ap{constructor(t){this.defaults=t,this.interceptors={request:new jE,response:new jE}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=au(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&ky.assertOptions(s,{silentJSONParsing:fo.transitional(fo.boolean),forcedJSONParsing:fo.transitional(fo.boolean),clarifyTimeoutError:fo.transitional(fo.boolean)},!1),r!==void 0&&ky.assertOptions(r,{encode:fo.function,serialize:fo.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&Je.merge(i.common,i[n.method]),o&&Je.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Ui.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,f=0,h;if(!l){const g=[qE.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,u),h=g.length,d=Promise.resolve(n);f<h;)d=d.then(g[f++],g[f++]);return d}h=a.length;let p=n;for(f=0;f<h;){const g=a[f++],m=a[f++];try{p=g(p)}catch(v){m.call(this,v);break}}try{d=qE.call(this,p)}catch(g){return Promise.reject(g)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=au(this.defaults,t);const n=J$(t.baseURL,t.url);return G$(n,t.params,t.paramsSerializer)}}Je.forEach(["delete","get","head","options"],function(t){Ap.prototype[t]=function(n,s){return this.request(au(s||{},{method:t,url:n,data:(s||{}).data}))}});Je.forEach(["post","put","patch"],function(t){function n(s){return function(i,o,a){return this.request(au(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Ap.prototype[t]=n(),Ap.prototype[t+"Form"]=n(!0)});const Xh=Ap;class l1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new tf(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new l1(function(r){t=r}),cancel:t}}}const Xge=l1;function Qge(e){return function(n){return e.apply(null,n)}}function Jge(e){return Je.isObject(e)&&e.isAxiosError===!0}const Oy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Oy).forEach(([e,t])=>{Oy[t]=e});const Zge=Oy;function eN(e){const t=new Xh(e),n=R$(Xh.prototype.request,t);return Je.extend(n,Xh.prototype,t,{allOwnKeys:!0}),Je.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return eN(au(e,r))},n}const qn=eN(o1);qn.Axios=Xh;qn.CanceledError=tf;qn.CancelToken=Xge;qn.isCancel=Q$;qn.VERSION=Z$;qn.toFormData=Gm;qn.AxiosError=sn;qn.Cancel=qn.CanceledError;qn.all=function(t){return Promise.all(t)};qn.spread=Qge;qn.isAxiosError=Jge;qn.mergeConfig=au;qn.AxiosHeaders=Ui;qn.formToJSON=e=>X$(Je.isHTMLForm(e)?new FormData(e):e);qn.HttpStatusCode=Zge;qn.default=qn;const eve=qn,tve={class:"loader"},nve=_3('<div class="loader-container" data-v-e2c142b4><div class="dot" data-v-e2c142b4></div><div class="dot" data-v-e2c142b4></div><div class="dot" data-v-e2c142b4></div><div class="dot" data-v-e2c142b4></div><div class="dot" data-v-e2c142b4></div></div>',1),sve=[nve],rve=te({__name:"Loading",props:{msg:{}},setup(e){return(t,n)=>gt((x(),z("div",tve,sve,512)),[[Ut,e.msg.show]])}}),ive=or(rve,[["__scopeId","data-v-e2c142b4"]]),Qh=Bt({show:!1,title:"拼命加载中..."}),ove=Eb(ive,{msg:Qh}).mount(document.createElement("div")),XE={start(e){Qh.show=!0,Qh.title=e,document.body.appendChild(ove.$el),document.body.style.overflow="hidden"},close(){Qh.show=!1,document.body.style.overflow="auto"}},ave=e=>(XE.start(""),new Promise((t,n)=>{const s=eve.create({baseURL:"/api",timeout:8e4});s.interceptors.request.use(r=>r,r=>{Promise.reject(r)}),s.interceptors.response.use(r=>(XE.close(),r.data),r=>(r.response.status==403?Gi.error("请求异常: ",r):Gi.error("服务器繁忙,请稍后再试"),Promise.reject(r))),s(e).then(r=>{t(r)}).catch(r=>{n(r)})})),$u=(e,t)=>ave({url:e,method:"get",params:t}),lve=e=>(Su("data-v-c8c4402c"),e=e(),wu(),e),uve={class:"header"},cve={class:"nav_left"},dve=lve(()=>V("a",{href:"/",class:"site"},"GoFilm",-1)),fve={class:"search_group"},hve={class:"nav_right"},pve=te({__name:"Header",setup(e){const t=B("");Iu();const n=()=>{if(t.value.length<=0){Gi.error({message:"请先输入影片名称关键字再进行搜索",duration:1500});return}location.href=`/search?search=${t.value}`},s=Bt({cartoon:{},film:{},tv:{},variety:{}});return Tt(()=>{$u("/navCategory").then(r=>{r.status==="ok"?(s.tv=r.data.tv,s.film=r.data.film,s.cartoon=r.data.cartoon,s.variety=r.data.variety):Gi.error({message:"请先输入影片名称关键字再进行搜索",duration:1e3})})}),(r,i)=>{const o=Un,a=rP,l=nt;return x(),z("div",uve,[V("div",cve,[dve,V("div",fve,[gt(V("input",{"onUpdate:modelValue":i[0]||(i[0]=u=>t.value=u),onKeydown:i[1]||(i[1]=u=>{u.keyCode==13&&n()}),placeholder:"搜索 动漫,剧集,电影 ",class:"search"},null,544),[[Bd,t.value]]),G(o,{onClick:n,icon:c(dp)},null,8,["icon"])])]),V("div",hve,[G(a,{underline:!1,href:"/"},{default:ee(()=>[wt("首页")]),_:1}),G(a,{underline:!1,href:`/categoryFilm?pid=${s.film.id}`},{default:ee(()=>[wt("电影")]),_:1},8,["href"]),G(a,{underline:!1,href:`/categoryFilm?pid=${s.tv.id}`},{default:ee(()=>[wt("剧集")]),_:1},8,["href"]),G(a,{underline:!1,href:`/categoryFilm?pid=${s.cartoon.id}`},{default:ee(()=>[wt("动漫")]),_:1},8,["href"]),G(a,{underline:!1,href:`/categoryFilm?pid=${s.variety.id}`},{default:ee(()=>[wt("综艺")]),_:1},8,["href"]),G(a,{href:"/search",class:"hidden-md-and-up",underline:!1},{default:ee(()=>[G(l,{style:{"font-size":"18px"}},{default:ee(()=>[G(c(dp))]),_:1})]),_:1})])])}}}),mve=or(pve,[["__scopeId","data-v-c8c4402c"]]),gve={},vve={class:"custom-footer"};function yve(e,t){return x(),z("div",vve," 本站所有内容均来自互联网分享站点所提供的公开引用资源,未提供资源上传、存储服务。 ")}const bve=or(gve,[["render",yve],["__scopeId","data-v-308cc32e"]]),_ve=te({__name:"IndexHome",setup(e){return(t,n)=>{const s=MI,r=vt("router-view"),i=RI,o=NI,a=$I;return x(),ve(a,null,{default:ee(()=>[G(s,null,{default:ee(()=>[G(mve)]),_:1}),G(i,null,{default:ee(()=>[G(r)]),_:1}),G(o,null,{default:ee(()=>[G(bve)]),_:1})]),_:1})}}}),Tve=or(_ve,[["__scopeId","data-v-a0181e34"]]),Sve={class:"c_content"},wve=["href"],Cve={class:"tag_group"},Eve={class:"cus_tag"},xve={class:"cus_tag"},kve={class:"cus_tag"},Ove={class:"cus_remark hidden-md-and-up"},Ave=["src","alt"],Ive=["href"],Pve={class:"cus_remark hidden-md-and-down"},$ve=te({__name:"FilmList",props:{list:Array},setup(e){const t=n=>{n.target.style.display="none"};return(n,s)=>(x(),z("div",Sve,[(x(!0),z(et,null,kt(e.list,r=>(x(),z("div",{class:"item",style:st({width:`calc(${e.list.length<=12?16:14}% - 16px)`})},[V("a",{href:`/filmDetail?link=${r.id}`,class:"default_image link_content"},[V("div",Cve,[V("span",Eve,we(r.year?r.year.slice(0,4):"未知"),1),V("span",xve,we(r.cName),1),V("span",kve,we(r.area.split(",")[0]),1)]),V("span",Ove,we(r.remarks),1),V("img",{src:r.picture,alt:r.name.split("[")[0],onError:t},null,40,Ave)],8,wve),V("a",{href:`/filmDetail?link=${r.id}`,class:"content_text_tag"},we(r.name.split("[")[0]),9,Ive),V("span",Pve,we(r.remarks),1)],4))),256))]))}}),u1=or($ve,[["__scopeId","data-v-07556fca"]]),Nve={class:"container"},Mve={class:"content_item"},Rve=["href"],Lve={class:"nav_ul"},Dve={class:"nav_category hidden-md-and-down"},Fve=["href"],Bve={class:"nav_category hidden-md-and-down"},Vve=["href"],Uve={class:"hot_title"},Hve={class:"content_right_item"},zve=["href"],jve={class:"top_item"},Kve=te({__name:"Home",setup(e){const t=Bt({info:{}});return Ba(()=>{$u("/index").then(n=>{t.info=n.data})}),(n,s)=>{const r=wI,i=SI;return x(),z("div",Nve,[(x(!0),z(et,null,kt(t.info.content,o=>(x(),z("div",Mve,[o.nav.name!="综艺"&o.nav.name!="综艺片"?(x(),z(et,{key:0},[G(i,{class:"row-bg cus_nav",justify:"space-between"},{default:ee(()=>[G(r,{span:12,class:"title"},{default:ee(()=>[V("span",{class:I(`iconfont ${o.nav.name.search("电影")!=-1?"icon-film":o.nav.name.search("剧")!=-1?"icon-tv":"icon-cartoon"}`),style:{color:"#79bbff","font-size":"32px","margin-right":"10px","line-height":"130%"}},null,2),V("a",{href:`/categoryFilm?pid=${o.nav.id}`},we(o.nav.name),9,Rve)]),_:2},1024),G(r,{span:12},{default:ee(()=>[V("ul",Lve,[(x(!0),z(et,null,kt(o.nav.children,a=>(x(),z("li",Dve,[V("a",{href:`/categoryFilm?pid=${a.pid}&cid=${a.id}`},we(a.name),9,Fve)]))),256)),V("li",Bve,[V("a",{href:`/categoryFilm?pid=${o.nav.id}`},"更多 >",8,Vve)])])]),_:2},1024)]),_:2},1024),G(i,{class:"cus_content"},{default:ee(()=>[G(r,{md:24,lg:20,xl:20,class:"cus_content"},{default:ee(()=>[G(u1,{list:o.movies.slice(0,12)},null,8,["list"])]),_:2},1024),G(r,{md:0,lg:4,xl:4,class:"hidden-md-and-down content_right"},{default:ee(()=>[V("h3",Uve,"🔥热播"+we(o.nav.name),1),(x(!0),z(et,null,kt(o.hot.slice(0,12),(a,l)=>(x(),z("div",Hve,[V("a",{href:`/filmDetail?link=${a.mid}`},[V("b",jve,we(l+1+"."),1),V("span",null,we(a.name),1)],8,zve)]))),256))]),_:2},1024)]),_:2},1024)],64)):he("",!0)]))),256))])}}}),Wve=or(Kve,[["__scopeId","data-v-b203187f"]]),qve=e=>(Su("data-v-069fe7b7"),e=e(),wu(),e),Gve={class:"relate_container"},Yve=qve(()=>V("h2",{class:"title"},"相关推荐",-1)),Xve=te({__name:"RelateList",props:{relateList:Array},setup(e){return(t,n)=>(x(),z("div",Gve,[Yve,G(u1,{list:e.relateList},null,8,["list"])]))}}),tN=or(Xve,[["__scopeId","data-v-069fe7b7"]]),Er=e=>(Su("data-v-d9c4866f"),e=e(),wu(),e),Qve={class:"film"},Jve={class:"hidden-sm-and-up"},Zve={class:"title_mt"},e0e={class:"title_mt_right"},t0e={class:"tags"},n0e={style:{margin:"2px 0"}},s0e=Er(()=>V("span",null,"导演:",-1)),r0e=Er(()=>V("span",null,"主演:",-1)),i0e=Er(()=>V("span",null,"上映:",-1)),o0e=Er(()=>V("span",null,"地区:",-1)),a0e={key:0},l0e=Er(()=>V("span",null,"连载:",-1)),u0e={class:"mt_content"},c0e=["innerHTML"],d0e={class:"title hidden-sm-and-down"},f0e={class:"tags"},h0e={class:"t_c"},p0e=["href"],m0e={key:0},g0e=Er(()=>V("span",null,"导演:",-1)),v0e=Er(()=>V("span",null,"主演:",-1)),y0e=Er(()=>V("span",null,"上映:",-1)),b0e={key:0},_0e=Er(()=>V("span",null,"连载:",-1)),T0e=Er(()=>V("span",null,"评分:",-1)),S0e={id:"score"},w0e={class:"cus_wap"},C0e=Er(()=>V("p",{style:{"min-width":"40px"}},[V("span",null,"剧情:")],-1)),E0e=["innerHTML"],x0e={class:"play_list"},k0e=Er(()=>V("h2",{class:"hidden-md-and-down"},"播放列表:(右侧切换播放源)",-1)),O0e={class:"play_content"},A0e=["onClick"],I0e={class:"correlation"},P0e=te({__name:"FilmDetails",setup(e){const t=Iu(),n=Bt({detail:{id:"",cid:"",pid:"",name:"",picture:"",playFrom:[],DownFrom:"",playList:[[]],downloadList:"",descriptor:{subTitle:"",cName:"",enName:"",initial:"",classTag:"",actor:"",director:"",writer:"",blurb:"",remarks:"",releaseDate:"",area:"",language:"",year:"",state:"",updateTime:"",addTime:"",dbId:"",dbScore:"",hits:"",content:""}},relate:[],loading:!1}),s=l=>{let u="";return l.split(",").forEach((d,f)=>{console.log(d),f<3&&(u+=`${d} `)}),u.trimEnd()};Ba(()=>{let l=t.currentRoute.value.query.link;$u("/filmDetail",{id:l}).then(u=>{u.status==="ok"?(n.detail=u.data.detail,n.detail.name=n.detail.name.replace(/(~.*~)/g,""),n.detail.descriptor.content=n.detail.descriptor.content.replace(/(&.*;)|( )|( )|(\n)|(<[^>]+>)/g,""),n.relate=u.data.relate,n.detail.descriptor.actor=s(n.detail.descriptor.actor),console.log(s(n.detail.descriptor.actor)),n.detail.descriptor.director=s(n.detail.descriptor.director),n.loading=!0):Gi({type:"error",dangerouslyUseHTMLString:!0,message:u.message})})});const r=l=>{t.push({path:"/play",query:{id:`${t.currentRoute.value.query.link}`,...l}})},i=B({state:!1,text:"展开"}),o=B(),a=l=>{if(l){i.value={state:!l,text:"展开"},o.value.style.webkitLineClamp=2;return}i.value={state:!l,text:"收起"},o.value.style.webkitLineClamp=8};return(l,u)=>{const d=nt,f=Un,h=K_,p=j_;return gt((x(),z("div",Qve,[V("div",Jve,[V("div",Zve,[V("a",{class:"picture_mt",href:"",style:st({backgroundImage:`url('${n.detail.picture}')`})},null,4),V("div",e0e,[V("h3",null,we(n.detail.name),1),V("ul",t0e,[V("li",n0e,we(n.detail.descriptor.classTag?`${n.detail.descriptor.classTag}`.replaceAll(","," | "):"未知"),1)]),V("p",null,[s0e,wt(" "+we(n.detail.descriptor.director),1)]),V("p",null,[r0e,wt(" "+we(s(n.detail.descriptor.actor)),1)]),V("p",null,[i0e,wt(" "+we(n.detail.descriptor.releaseDate),1)]),V("p",null,[o0e,wt(" "+we(n.detail.descriptor.area),1)]),n.detail.descriptor.remarks?(x(),z("p",a0e,[l0e,wt(we(n.detail.descriptor.remarks),1)])):he("",!0)])]),V("div",u0e,[V("p",{innerHTML:`${n.detail.descriptor.content}`.replaceAll(" ","")},null,8,c0e)])]),V("div",d0e,[V("a",{class:"picture",href:"",style:st({backgroundImage:`url('${n.detail.picture}')`})},null,4),V("h2",null,we(n.detail.name),1),V("ul",f0e,[V("li",h0e,[V("a",{href:`/categoryFilm?pid=${n.detail.pid}`},[G(d,null,{default:ee(()=>[G(c(EO))]),_:1}),wt(" "+we(n.detail.descriptor.cName),1)],8,p0e)]),n.detail.descriptor.classTag?(x(),z("li",m0e,we(`${n.detail.descriptor.classTag}`.replaceAll(","," ")),1)):he("",!0),V("li",null,we(n.detail.descriptor.year),1),V("li",null,we(n.detail.descriptor.area),1)]),V("p",null,[g0e,wt(" "+we(n.detail.descriptor.director),1)]),V("p",null,[v0e,wt(" "+we(n.detail.descriptor.actor),1)]),V("p",null,[y0e,wt(" "+we(n.detail.descriptor.releaseDate),1)]),n.detail.descriptor.remarks?(x(),z("p",b0e,[_0e,wt(we(n.detail.descriptor.remarks),1)])):he("",!0),V("p",null,[T0e,V("b",S0e,we(n.detail.descriptor.dbScore),1)]),V("div",w0e,[C0e,V("p",{ref_key:"textContent",ref:o,class:"text_content"},[`${n.detail.descriptor.content}`.length>140?(x(),ve(f,{key:0,class:"multi_text",style:{color:"#a574b7"},onClick:u[0]||(u[0]=g=>a(i.value.state)),link:""},{default:ee(()=>[wt(we(i.value.text),1)]),_:1})):he("",!0),V("span",{class:"cus_info",innerHTML:n.detail.descriptor.content},null,8,E0e)],512)]),V("p",null,[G(f,{type:"warning",class:"player",size:"large",onClick:u[1]||(u[1]=g=>r({episode:0,source:0})),round:""},{default:ee(()=>[G(d,null,{default:ee(()=>[G(c(Cm))]),_:1}),wt(" 立即播放 ")]),_:1})])]),V("div",x0e,[k0e,G(p,{type:"card",class:"play_tabs"},{default:ee(()=>[(x(!0),z(et,null,kt(n.detail.playList,(g,m)=>(x(),ve(h,{label:`播放地址${m+1}`},{default:ee(()=>[V("div",O0e,[(x(!0),z(et,null,kt(g,(v,y)=>(x(),z("a",{href:"javascript:;",onClick:T=>r({source:m,episode:y})},we(v.episode),9,A0e))),256))])]),_:2},1032,["label"]))),256))]),_:1})]),V("div",I0e,[G(tN,{"relate-list":n.relate},null,8,["relate-list"])])],512)),[[Ut,n.loading]])}}}),$0e=or(P0e,[["__scopeId","data-v-d9c4866f"]]),N0e="/assets/play-bb9c8990.png";var gc;typeof window<"u"?gc=window:typeof rr<"u"?gc=rr:typeof self<"u"?gc=self:gc={};var ge=gc;const M0e={},R0e=Object.freeze(Object.defineProperty({__proto__:null,default:M0e},Symbol.toStringTag,{value:"Module"})),L0e=VA(R0e);var QE=typeof rr<"u"?rr:typeof window<"u"?window:{},D0e=L0e,vc;typeof document<"u"?vc=document:(vc=QE["__GLOBAL_DOCUMENT_CACHE@4"],vc||(vc=QE["__GLOBAL_DOCUMENT_CACHE@4"]=D0e));var dt=vc,jt={},F0e={get exports(){return jt},set exports(e){jt=e}};(function(e,t){function n(l){if(l&&typeof l=="object"){var u=l.which||l.keyCode||l.charCode;u&&(l=u)}if(typeof l=="number")return o[l];var d=String(l),f=s[d.toLowerCase()];if(f)return f;var f=r[d.toLowerCase()];if(f)return f;if(d.length===1)return d.charCodeAt(0)}n.isEventKey=function(u,d){if(u&&typeof u=="object"){var f=u.which||u.keyCode||u.charCode;if(f==null)return!1;if(typeof d=="string"){var h=s[d.toLowerCase()];if(h)return h===f;var h=r[d.toLowerCase()];if(h)return h===f}else if(typeof d=="number")return d===f;return!1}},t=e.exports=n;var s=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
|
||
* Programatically add the following
|
||
*/for(i=97;i<123;i++)s[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)s[i-48]=i;for(i=1;i<13;i++)s["f"+i]=i+111;for(i=0;i<10;i++)s["numpad "+i]=i+96;var o=t.names=t.title={};for(i in s)o[s[i]]=i;for(var a in r)s[a]=r[a]})(F0e,jt);var B0e=V0e;function V0e(e,t){var n,s=null;try{n=JSON.parse(e,t)}catch(r){s=r}return[s,n]}var xd={},U0e={get exports(){return xd},set exports(e){xd=e}};function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Yi.apply(this,arguments)}const H0e=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),z0e=VA(H0e);var j0e=W0e,K0e=Object.prototype.toString;function W0e(e){if(!e)return!1;var t=K0e.call(e);return t==="[object Function]"||typeof e=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}var q0e=ge,G0e=function(t,n){return n===void 0&&(n=!1),function(s,r,i){if(s){t(s);return}if(r.statusCode>=400&&r.statusCode<=599){var o=i;if(n)if(q0e.TextDecoder){var a=Y0e(r.headers&&r.headers["content-type"]);try{o=new TextDecoder(a).decode(i)}catch{}}else o=String.fromCharCode.apply(null,new Uint8Array(i));t({cause:o});return}t(null,i)}};function Y0e(e){return e===void 0&&(e=""),e.toLowerCase().split(";").reduce(function(t,n){var s=n.split("="),r=s[0],i=s[1];return r.trim()==="charset"?i.trim():t},"utf-8")}var X0e=G0e,nN=ge,Q0e=z0e,J0e=j0e;di.httpHandler=X0e;/**
|
||
* @license
|
||
* slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
|
||
* Copyright (c) 2014 David Björklund
|
||
* Available under the MIT license
|
||
* <https://github.com/kesla/parse-headers/blob/master/LICENCE>
|
||
*/var Z0e=function(t){var n={};return t&&t.trim().split(`
|
||
`).forEach(function(s){var r=s.indexOf(":"),i=s.slice(0,r).trim().toLowerCase(),o=s.slice(r+1).trim();typeof n[i]>"u"?n[i]=o:Array.isArray(n[i])?n[i].push(o):n[i]=[n[i],o]}),n};U0e.exports=di;xd.default=di;di.XMLHttpRequest=nN.XMLHttpRequest||sye;di.XDomainRequest="withCredentials"in new di.XMLHttpRequest?di.XMLHttpRequest:nN.XDomainRequest;eye(["get","put","post","patch","head","delete"],function(e){di[e==="delete"?"del":e]=function(t,n,s){return n=sN(t,n,s),n.method=e.toUpperCase(),rN(n)}});function eye(e,t){for(var n=0;n<e.length;n++)t(e[n])}function tye(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function sN(e,t,n){var s=e;return J0e(t)?(n=t,typeof e=="string"&&(s={uri:e})):s=Q0e({},t,{uri:e}),s.callback=n,s}function di(e,t,n){return t=sN(e,t,n),rN(t)}function rN(e){if(typeof e.callback>"u")throw new Error("callback argument missing");var t=!1,n=function(_,S,w){t||(t=!0,e.callback(_,S,w))};function s(){a.readyState===4&&setTimeout(o,0)}function r(){var T=void 0;if(a.response?T=a.response:T=a.responseText||nye(a),m)try{T=JSON.parse(T)}catch{}return T}function i(T){return clearTimeout(v),T instanceof Error||(T=new Error(""+(T||"Unknown XMLHttpRequest Error"))),T.statusCode=0,n(T,y)}function o(){if(!u){var T;clearTimeout(v),e.useXDR&&a.status===void 0?T=200:T=a.status===1223?204:a.status;var _=y,S=null;return T!==0?(_={body:r(),statusCode:T,method:f,headers:{},url:d,rawRequest:a},a.getAllResponseHeaders&&(_.headers=Z0e(a.getAllResponseHeaders()))):S=new Error("Internal XMLHttpRequest Error"),n(S,_,_.body)}}var a=e.xhr||null;a||(e.cors||e.useXDR?a=new di.XDomainRequest:a=new di.XMLHttpRequest);var l,u,d=a.url=e.uri||e.url,f=a.method=e.method||"GET",h=e.body||e.data,p=a.headers=e.headers||{},g=!!e.sync,m=!1,v,y={body:void 0,headers:{},statusCode:0,method:f,url:d,rawRequest:a};if("json"in e&&e.json!==!1&&(m=!0,p.accept||p.Accept||(p.Accept="application/json"),f!=="GET"&&f!=="HEAD"&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(e.json===!0?h:e.json))),a.onreadystatechange=s,a.onload=o,a.onerror=i,a.onprogress=function(){},a.onabort=function(){u=!0},a.ontimeout=i,a.open(f,d,!g,e.username,e.password),g||(a.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(v=setTimeout(function(){if(!u){u=!0,a.abort("timeout");var T=new Error("XMLHttpRequest timeout");T.code="ETIMEDOUT",i(T)}},e.timeout)),a.setRequestHeader)for(l in p)p.hasOwnProperty(l)&&a.setRequestHeader(l,p[l]);else if(e.headers&&!tye(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(a.responseType=e.responseType),"beforeSend"in e&&typeof e.beforeSend=="function"&&e.beforeSend(a),a.send(h||null),a}function nye(e){try{if(e.responseType==="document")return e.responseXML;var t=e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror";if(e.responseType===""&&!t)return e.responseXML}catch{}return null}function sye(){}var Ip={},rye={get exports(){return Ip},set exports(e){Ip=e}},JE=dt,c1=Object.create||function(){function e(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function Xs(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}Xs.prototype=c1(Error.prototype);Xs.prototype.constructor=Xs;Xs.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function d1(e){function t(s,r,i,o){return(s|0)*3600+(r|0)*60+(i|0)+(o|0)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function Dc(){this.values=c1(null)}Dc.prototype={set:function(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var s=0;s<n.length;++s)if(t===n[s]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100)?(this.set(e,t),!0):!1}};function yc(e,t,n,s){var r=s?e.split(s):[e];for(var i in r)if(typeof r[i]=="string"){var o=r[i].split(n);if(o.length===2){var a=o[0].trim(),l=o[1].trim();t(a,l)}}}function iye(e,t,n){var s=e;function r(){var a=d1(e);if(a===null)throw new Xs(Xs.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),a}function i(a,l){var u=new Dc;yc(a,function(d,f){switch(d){case"region":for(var h=n.length-1;h>=0;h--)if(n[h].id===f){u.set(d,n[h].region);break}break;case"vertical":u.alt(d,f,["rl","lr"]);break;case"line":var p=f.split(","),g=p[0];u.integer(d,g),u.percent(d,g)&&u.set("snapToLines",!1),u.alt(d,g,["auto"]),p.length===2&&u.alt("lineAlign",p[1],["start","center","end"]);break;case"position":p=f.split(","),u.percent(d,p[0]),p.length===2&&u.alt("positionAlign",p[1],["start","center","end"]);break;case"size":u.percent(d,f);break;case"align":u.alt(d,f,["start","center","end","left","right"]);break}},/:/,/\s/),l.region=u.get("region",null),l.vertical=u.get("vertical","");try{l.line=u.get("line","auto")}catch{}l.lineAlign=u.get("lineAlign","start"),l.snapToLines=u.get("snapToLines",!0),l.size=u.get("size",100);try{l.align=u.get("align","center")}catch{l.align=u.get("align","middle")}try{l.position=u.get("position","auto")}catch{l.position=u.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},l.align)}l.positionAlign=u.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},l.align)}function o(){e=e.replace(/^\s+/,"")}if(o(),t.startTime=r(),o(),e.substr(0,3)!=="-->")throw new Xs(Xs.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+s);e=e.substr(3),o(),t.endTime=r(),o(),i(e,t)}var wv=JE.createElement&&JE.createElement("textarea"),oye={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},ZE={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},aye={v:"title",lang:"lang"},ex={rt:"ruby"};function iN(e,t){function n(){if(!t)return null;function g(v){return t=t.substr(v.length),v}var m=t.match(/^([^<]*)(<[^>]*>?)?/);return g(m[1]?m[1]:m[2])}function s(g){return wv.innerHTML=g,g=wv.textContent,wv.textContent="",g}function r(g,m){return!ex[m.localName]||ex[m.localName]===g.localName}function i(g,m){var v=oye[g];if(!v)return null;var y=e.document.createElement(v),T=aye[g];return T&&m&&(y[T]=m.trim()),y}for(var o=e.document.createElement("div"),a=o,l,u=[];(l=n())!==null;){if(l[0]==="<"){if(l[1]==="/"){u.length&&u[u.length-1]===l.substr(2).replace(">","")&&(u.pop(),a=a.parentNode);continue}var d=d1(l.substr(1,l.length-2)),f;if(d){f=e.document.createProcessingInstruction("timestamp",d),a.appendChild(f);continue}var h=l.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||(f=i(h[1],h[3]),!f)||!r(a,f))continue;if(h[2]){var p=h[2].split(".");p.forEach(function(g){var m=/^bg_/.test(g),v=m?g.slice(3):g;if(ZE.hasOwnProperty(v)){var y=m?"background-color":"color",T=ZE[v];f.style[y]=T}}),f.className=p.join(" ")}u.push(h[1]),a.appendChild(f),a=f;continue}a.appendChild(e.document.createTextNode(s(l)))}return o}var tx=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function lye(e){for(var t=0;t<tx.length;t++){var n=tx[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function uye(e){var t=[],n="",s;if(!e||!e.childNodes)return"ltr";function r(a,l){for(var u=l.childNodes.length-1;u>=0;u--)a.push(l.childNodes[u])}function i(a){if(!a||!a.length)return null;var l=a.pop(),u=l.textContent||l.innerText;if(u){var d=u.match(/^.*(\n|\r)/);return d?(a.length=0,d[0]):u}if(l.tagName==="ruby")return i(a);if(l.childNodes)return r(a,l),i(a)}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(s=n.charCodeAt(o),lye(s))return"rtl";return"ltr"}function cye(e){if(typeof e.line=="number"&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,s=0,r=0;r<n.length&&n[r]!==t;r++)n[r].mode==="showing"&&s++;return++s*-1}function Qm(){}Qm.prototype.applyStyles=function(e,t){t=t||this.div;for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n])};Qm.prototype.formatStyle=function(e,t){return e===0?0:e+t};function Pp(e,t,n){Qm.call(this),this.cue=t,this.cueDiv=iN(e,t.text);var s={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={direction:uye(this.cueDiv),writingMode:t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:t.align==="middle"?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(s),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size;break}t.vertical===""?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(i){this.applyStyles({top:this.formatStyle(i.top,"px"),bottom:this.formatStyle(i.bottom,"px"),left:this.formatStyle(i.left,"px"),right:this.formatStyle(i.right,"px"),height:this.formatStyle(i.height,"px"),width:this.formatStyle(i.width,"px")})}}Pp.prototype=c1(Qm.prototype);Pp.prototype.constructor=Pp;function ys(e){var t,n,s,r;if(e.div){n=e.div.offsetHeight,s=e.div.offsetWidth,r=e.div.offsetTop;var i=(i=e.div.childNodes)&&(i=i[0])&&i.getClientRects&&i.getClientRects();e=e.div.getBoundingClientRect(),t=i?Math.max(i[0]&&i[0].height||0,e.height/i.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||s,this.lineHeight=t!==void 0?t:e.lineHeight}ys.prototype.move=function(e,t){switch(t=t!==void 0?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}};ys.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top};ys.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1};ys.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right};ys.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}};ys.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),s=t*n;return s/(this.height*this.width)};ys.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}};ys.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,s=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||s,height:e.height||t,bottom:e.bottom||s+(e.height||t),width:e.width||n};return r};function dye(e,t,n,s){function r(v,y){for(var T,_=new ys(v),S=1,w=0;w<y.length;w++){for(;v.overlapsOppositeAxis(n,y[w])||v.within(n)&&v.overlapsAny(s);)v.move(y[w]);if(v.within(n))return v;var A=v.intersectPercentage(n);S>A&&(T=new ys(v),S=A),v=new ys(_)}return T||_}var i=new ys(t),o=t.cue,a=cye(o),l=[];if(o.snapToLines){var u;switch(o.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width";break}var d=i.lineHeight,f=d*Math.round(a),h=n[u]+d,p=l[0];Math.abs(f)>h&&(f=f<0?-1:1,f*=Math.ceil(h/d)*d),a<0&&(f+=o.vertical===""?n.height:n.width,l=l.reverse()),i.move(p,f)}else{var g=i.lineHeight/n.height*100;switch(o.lineAlign){case"center":a-=g/2;break;case"end":a-=g;break}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")});break}l=["+y","-x","+x","-y"],i=new ys(t)}var m=r(i,l);t.move(m.toCSSCompatValues(n))}function Nu(){}Nu.StringDecoder=function(){return{decode:function(e){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}};Nu.convertCueToDOMTree=function(e,t){return!e||!t?null:iN(e,t)};var fye=.05,hye="sans-serif",pye="1.5%";Nu.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var s=e.document.createElement("div");s.style.position="absolute",s.style.left="0",s.style.right="0",s.style.top="0",s.style.bottom="0",s.style.margin=pye,n.appendChild(s);function r(d){for(var f=0;f<d.length;f++)if(d[f].hasBeenReset||!d[f].displayState)return!0;return!1}if(!r(t)){for(var i=0;i<t.length;i++)s.appendChild(t[i].displayState);return}var o=[],a=ys.getSimpleBoxPosition(s),l=Math.round(a.height*fye*100)/100,u={font:l+"px "+hye};(function(){for(var d,f,h=0;h<t.length;h++)f=t[h],d=new Pp(e,f,u),s.appendChild(d.div),dye(e,d,a,o),f.displayState=d.div,o.push(ys.getSimpleBoxPosition(d))})()};Nu.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]};Nu.Parser.prototype={reportOrThrowError:function(e){if(e instanceof Xs)this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){for(var d=t.buffer,f=0;f<d.length&&d[f]!=="\r"&&d[f]!==`
|
||
`;)++f;var h=d.substr(0,f);return d[f]==="\r"&&++f,d[f]===`
|
||
`&&++f,t.buffer=d.substr(f),h}function s(d){var f=new Dc;if(yc(d,function(p,g){switch(p){case"id":f.set(p,g);break;case"width":f.percent(p,g);break;case"lines":f.integer(p,g);break;case"regionanchor":case"viewportanchor":var m=g.split(",");if(m.length!==2)break;var v=new Dc;if(v.percent("x",m[0]),v.percent("y",m[1]),!v.has("x")||!v.has("y"))break;f.set(p+"X",v.get("x")),f.set(p+"Y",v.get("y"));break;case"scroll":f.alt(p,g,["up"]);break}},/=/,/\s/),f.has("id")){var h=new(t.vttjs.VTTRegion||t.window.VTTRegion);h.width=f.get("width",100),h.lines=f.get("lines",3),h.regionAnchorX=f.get("regionanchorX",0),h.regionAnchorY=f.get("regionanchorY",100),h.viewportAnchorX=f.get("viewportanchorX",0),h.viewportAnchorY=f.get("viewportanchorY",100),h.scroll=f.get("scroll",""),t.onregion&&t.onregion(h),t.regionList.push({id:f.get("id"),region:h})}}function r(d){var f=new Dc;yc(d,function(h,p){switch(h){case"MPEGT":f.integer(h+"S",p);break;case"LOCA":f.set(h+"L",d1(p));break}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:f.get("MPEGTS"),LOCAL:f.get("LOCAL")})}function i(d){d.match(/X-TIMESTAMP-MAP/)?yc(d,function(f,h){switch(f){case"X-TIMESTAMP-MAP":r(h);break}},/=/):yc(d,function(f,h){switch(f){case"Region":s(h);break}},/:/)}try{var o;if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;o=n();var a=o.match(/^WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new Xs(Xs.Errors.BadSignature);t.state="HEADER"}for(var l=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(l?l=!1:o=n(),t.state){case"HEADER":/:/.test(o)?i(o):o||(t.state="ID");continue;case"NOTE":o||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){t.state="NOTE";break}if(!o)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch{t.cue.align="middle"}if(t.state="CUE",o.indexOf("-->")===-1){t.cue.id=o;continue}case"CUE":try{iye(o,t.cue,t.regionList)}catch(d){t.reportOrThrowError(d),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var u=o.indexOf("-->")!==-1;if(!o||u&&(l=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+=`
|
||
`),t.cue.text+=o.replace(/\u2028/g,`
|
||
`).replace(/u2029/g,`
|
||
`);continue;case"BADCUE":o||(t.state="ID");continue}}}catch(d){t.reportOrThrowError(d),t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||e.state==="HEADER")&&(e.buffer+=`
|
||
|
||
`,e.parse()),e.state==="INITIAL")throw new Xs(Xs.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var mye=Nu,gye="auto",vye={"":1,lr:1,rl:1},yye={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function bye(e){if(typeof e!="string")return!1;var t=vye[e.toLowerCase()];return t?e.toLowerCase():!1}function Cv(e){if(typeof e!="string")return!1;var t=yye[e.toLowerCase()];return t?e.toLowerCase():!1}function oN(e,t,n){this.hasBeenReset=!1;var s="",r=!1,i=e,o=t,a=n,l=null,u="",d=!0,f="auto",h="start",p="auto",g="auto",m=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(y){s=""+y}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(y){r=!!y}},startTime:{enumerable:!0,get:function(){return i},set:function(y){if(typeof y!="number")throw new TypeError("Start time must be set to a number.");i=y,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return o},set:function(y){if(typeof y!="number")throw new TypeError("End time must be set to a number.");o=y,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return a},set:function(y){a=""+y,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(y){l=y,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(y){var T=bye(y);if(T===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=T,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(y){d=!!y,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(y){if(typeof y!="number"&&y!==gye)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=y,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(y){var T=Cv(y);T?(h=T,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(y){if(y<0||y>100)throw new Error("Position must be between 0 and 100.");p=y,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(y){var T=Cv(y);T?(g=T,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(y){if(y<0||y>100)throw new Error("Size must be between 0 and 100.");m=y,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(y){var T=Cv(y);if(!T)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=T,this.hasBeenReset=!0}}}),this.displayState=void 0}oN.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var _ye=oN,Tye={"":!0,up:!0};function Sye(e){if(typeof e!="string")return!1;var t=Tye[e.toLowerCase()];return t?e.toLowerCase():!1}function oc(e){return typeof e=="number"&&e>=0&&e<=100}function wye(){var e=100,t=3,n=0,s=100,r=0,i=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(a){if(!oc(a))throw new Error("Width must be between 0 and 100.");e=a}},lines:{enumerable:!0,get:function(){return t},set:function(a){if(typeof a!="number")throw new TypeError("Lines must be set to a number.");t=a}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(a){if(!oc(a))throw new Error("RegionAnchorX must be between 0 and 100.");s=a}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(a){if(!oc(a))throw new Error("RegionAnchorY must be between 0 and 100.");n=a}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(a){if(!oc(a))throw new Error("ViewportAnchorY must be between 0 and 100.");i=a}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(a){if(!oc(a))throw new Error("ViewportAnchorX must be between 0 and 100.");r=a}},scroll:{enumerable:!0,get:function(){return o},set:function(a){var l=Sye(a);l===!1?console.warn("Scroll: an invalid or illegal string was specified."):o=l}}})}var Cye=wye,Xi=ge,Wa=rye.exports={WebVTT:mye,VTTCue:_ye,VTTRegion:Cye};Xi.vttjs=Wa;Xi.WebVTT=Wa.WebVTT;var Eye=Wa.VTTCue,xye=Wa.VTTRegion,kye=Xi.VTTCue,Oye=Xi.VTTRegion;Wa.shim=function(){Xi.VTTCue=Eye,Xi.VTTRegion=xye};Wa.restore=function(){Xi.VTTCue=kye,Xi.VTTRegion=Oye};Xi.VTTCue||Wa.shim();var Ay={},Aye={get exports(){return Ay},set exports(e){Ay=e}};(function(e,t){(function(n){var s=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(l,u,d){if(d=d||{},l=l.trim(),u=u.trim(),!u){if(!d.alwaysNormalize)return l;var f=a.parseURL(l);if(!f)throw new Error("Error trying to parse base URL.");return f.path=a.normalizePath(f.path),a.buildURLFromParts(f)}var h=a.parseURL(u);if(!h)throw new Error("Error trying to parse relative URL.");if(h.scheme)return d.alwaysNormalize?(h.path=a.normalizePath(h.path),a.buildURLFromParts(h)):u;var p=a.parseURL(l);if(!p)throw new Error("Error trying to parse base URL.");if(!p.netLoc&&p.path&&p.path[0]!=="/"){var g=r.exec(p.path);p.netLoc=g[1],p.path=g[2]}p.netLoc&&!p.path&&(p.path="/");var m={scheme:p.scheme,netLoc:h.netLoc,path:null,params:h.params,query:h.query,fragment:h.fragment};if(!h.netLoc&&(m.netLoc=p.netLoc,h.path[0]!=="/"))if(!h.path)m.path=p.path,h.params||(m.params=p.params,h.query||(m.query=p.query));else{var v=p.path,y=v.substring(0,v.lastIndexOf("/")+1)+h.path;m.path=a.normalizePath(y)}return m.path===null&&(m.path=d.alwaysNormalize?a.normalizePath(h.path):h.path),a.buildURLFromParts(m)},parseURL:function(l){var u=s.exec(l);return u?{scheme:u[1]||"",netLoc:u[2]||"",path:u[3]||"",params:u[4]||"",query:u[5]||"",fragment:u[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(i,"");l.length!==(l=l.replace(o,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};e.exports=a})()})(Aye);const $p=Ay;var nx="http://example.com",Iye=function(t,n){if(/^[a-z]+:/i.test(n))return n;/^data:/.test(t)&&(t=ge.location&&ge.location.href||"");var s=typeof ge.URL=="function",r=/^\/\//.test(t),i=!ge.location&&!/\/\//i.test(t);if(s?t=new ge.URL(t,ge.location||nx):/\/\//i.test(t)||(t=$p.buildAbsoluteURL(ge.location&&ge.location.href||"",t)),s){var o=new URL(n,t);return i?o.href.slice(nx.length):r?o.href.slice(o.protocol.length):o.href}return $p.buildAbsoluteURL(t,n)},f1=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(s,r){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push(r)},t.off=function(s,r){if(!this.listeners[s])return!1;var i=this.listeners[s].indexOf(r);return this.listeners[s]=this.listeners[s].slice(0),this.listeners[s].splice(i,1),i>-1},t.trigger=function(s){var r=this.listeners[s];if(r)if(arguments.length===2)for(var i=r.length,o=0;o<i;++o)r[o].call(this,arguments[1]);else for(var a=Array.prototype.slice.call(arguments,1),l=r.length,u=0;u<l;++u)r[u].apply(this,a)},t.dispose=function(){this.listeners={}},t.pipe=function(s){this.on("data",function(r){s.push(r)})},e}(),Pye=function(t){return ge.atob?ge.atob(t):Buffer.from(t,"base64").toString("binary")};function $ye(e){for(var t=Pye(e),n=new Uint8Array(t.length),s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}/*! @name m3u8-parser @version 6.0.0 @license Apache-2.0 */class Nye extends f1{constructor(){super(),this.buffer=""}push(t){let n;for(this.buffer+=t,n=this.buffer.indexOf(`
|
||
`);n>-1;n=this.buffer.indexOf(`
|
||
`))this.trigger("data",this.buffer.substring(0,n)),this.buffer=this.buffer.substring(n+1)}}const Mye=String.fromCharCode(9),Ev=function(e){const t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},Rye=function(){const e="[^=]*",t='"[^"]*"|[^,]*',n="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+n+")")},Ar=function(e){const t={};if(!e)return t;const n=e.split(Rye());let s=n.length,r;for(;s--;)n[s]!==""&&(r=/([^=]*)=(.*)/.exec(n[s]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),t[r[0]]=r[1]);return t};class Lye extends f1{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(t){let n,s;if(t=t.trim(),t.length===0)return;if(t[0]!=="#"){this.trigger("data",{type:"uri",uri:t});return}this.tagMappers.reduce((i,o)=>{const a=o(t);return a===t?i:i.concat([a])},[t]).forEach(i=>{for(let o=0;o<this.customParsers.length;o++)if(this.customParsers[o].call(this,i))return;if(i.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:i.slice(1)});return}if(i=i.replace("\r",""),n=/^#EXTM3U/.exec(i),n){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(n=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(i),n){s={type:"tag",tagType:"inf"},n[1]&&(s.duration=parseFloat(n[1])),n[2]&&(s.title=n[2]),this.trigger("data",s);return}if(n=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(i),n){s={type:"tag",tagType:"targetduration"},n[1]&&(s.duration=parseInt(n[1],10)),this.trigger("data",s);return}if(n=/^#EXT-X-VERSION:([0-9.]*)?/.exec(i),n){s={type:"tag",tagType:"version"},n[1]&&(s.version=parseInt(n[1],10)),this.trigger("data",s);return}if(n=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(i),n){s={type:"tag",tagType:"media-sequence"},n[1]&&(s.number=parseInt(n[1],10)),this.trigger("data",s);return}if(n=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(i),n){s={type:"tag",tagType:"discontinuity-sequence"},n[1]&&(s.number=parseInt(n[1],10)),this.trigger("data",s);return}if(n=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(i),n){s={type:"tag",tagType:"playlist-type"},n[1]&&(s.playlistType=n[1]),this.trigger("data",s);return}if(n=/^#EXT-X-BYTERANGE:(.*)?$/.exec(i),n){s=Yi(Ev(n[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",s);return}if(n=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(i),n){s={type:"tag",tagType:"allow-cache"},n[1]&&(s.allowed=!/NO/.test(n[1])),this.trigger("data",s);return}if(n=/^#EXT-X-MAP:(.*)$/.exec(i),n){if(s={type:"tag",tagType:"map"},n[1]){const o=Ar(n[1]);o.URI&&(s.uri=o.URI),o.BYTERANGE&&(s.byterange=Ev(o.BYTERANGE))}this.trigger("data",s);return}if(n=/^#EXT-X-STREAM-INF:(.*)$/.exec(i),n){if(s={type:"tag",tagType:"stream-inf"},n[1]){if(s.attributes=Ar(n[1]),s.attributes.RESOLUTION){const o=s.attributes.RESOLUTION.split("x"),a={};o[0]&&(a.width=parseInt(o[0],10)),o[1]&&(a.height=parseInt(o[1],10)),s.attributes.RESOLUTION=a}s.attributes.BANDWIDTH&&(s.attributes.BANDWIDTH=parseInt(s.attributes.BANDWIDTH,10)),s.attributes["FRAME-RATE"]&&(s.attributes["FRAME-RATE"]=parseFloat(s.attributes["FRAME-RATE"])),s.attributes["PROGRAM-ID"]&&(s.attributes["PROGRAM-ID"]=parseInt(s.attributes["PROGRAM-ID"],10))}this.trigger("data",s);return}if(n=/^#EXT-X-MEDIA:(.*)$/.exec(i),n){s={type:"tag",tagType:"media"},n[1]&&(s.attributes=Ar(n[1])),this.trigger("data",s);return}if(n=/^#EXT-X-ENDLIST/.exec(i),n){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(n=/^#EXT-X-DISCONTINUITY/.exec(i),n){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(n=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(i),n){s={type:"tag",tagType:"program-date-time"},n[1]&&(s.dateTimeString=n[1],s.dateTimeObject=new Date(n[1])),this.trigger("data",s);return}if(n=/^#EXT-X-KEY:(.*)$/.exec(i),n){s={type:"tag",tagType:"key"},n[1]&&(s.attributes=Ar(n[1]),s.attributes.IV&&(s.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(s.attributes.IV=s.attributes.IV.substring(2)),s.attributes.IV=s.attributes.IV.match(/.{8}/g),s.attributes.IV[0]=parseInt(s.attributes.IV[0],16),s.attributes.IV[1]=parseInt(s.attributes.IV[1],16),s.attributes.IV[2]=parseInt(s.attributes.IV[2],16),s.attributes.IV[3]=parseInt(s.attributes.IV[3],16),s.attributes.IV=new Uint32Array(s.attributes.IV))),this.trigger("data",s);return}if(n=/^#EXT-X-START:(.*)$/.exec(i),n){s={type:"tag",tagType:"start"},n[1]&&(s.attributes=Ar(n[1]),s.attributes["TIME-OFFSET"]=parseFloat(s.attributes["TIME-OFFSET"]),s.attributes.PRECISE=/YES/.test(s.attributes.PRECISE)),this.trigger("data",s);return}if(n=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(i),n){s={type:"tag",tagType:"cue-out-cont"},n[1]?s.data=n[1]:s.data="",this.trigger("data",s);return}if(n=/^#EXT-X-CUE-OUT:(.*)?$/.exec(i),n){s={type:"tag",tagType:"cue-out"},n[1]?s.data=n[1]:s.data="",this.trigger("data",s);return}if(n=/^#EXT-X-CUE-IN:(.*)?$/.exec(i),n){s={type:"tag",tagType:"cue-in"},n[1]?s.data=n[1]:s.data="",this.trigger("data",s);return}if(n=/^#EXT-X-SKIP:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"skip"},s.attributes=Ar(n[1]),s.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(s.attributes["SKIPPED-SEGMENTS"]=parseInt(s.attributes["SKIPPED-SEGMENTS"],10)),s.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(s.attributes["RECENTLY-REMOVED-DATERANGES"]=s.attributes["RECENTLY-REMOVED-DATERANGES"].split(Mye)),this.trigger("data",s);return}if(n=/^#EXT-X-PART:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"part"},s.attributes=Ar(n[1]),["DURATION"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=parseFloat(s.attributes[o]))}),["INDEPENDENT","GAP"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=/YES/.test(s.attributes[o]))}),s.attributes.hasOwnProperty("BYTERANGE")&&(s.attributes.byterange=Ev(s.attributes.BYTERANGE)),this.trigger("data",s);return}if(n=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"server-control"},s.attributes=Ar(n[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=parseFloat(s.attributes[o]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=/YES/.test(s.attributes[o]))}),this.trigger("data",s);return}if(n=/^#EXT-X-PART-INF:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"part-inf"},s.attributes=Ar(n[1]),["PART-TARGET"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=parseFloat(s.attributes[o]))}),this.trigger("data",s);return}if(n=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"preload-hint"},s.attributes=Ar(n[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(o){if(s.attributes.hasOwnProperty(o)){s.attributes[o]=parseInt(s.attributes[o],10);const a=o==="BYTERANGE-LENGTH"?"length":"offset";s.attributes.byterange=s.attributes.byterange||{},s.attributes.byterange[a]=s.attributes[o],delete s.attributes[o]}}),this.trigger("data",s);return}if(n=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"rendition-report"},s.attributes=Ar(n[1]),["LAST-MSN","LAST-PART"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=parseInt(s.attributes[o],10))}),this.trigger("data",s);return}this.trigger("data",{type:"tag",data:i.slice(4)})})}addParser({expression:t,customType:n,dataParser:s,segment:r}){typeof s!="function"&&(s=i=>i),this.customParsers.push(i=>{if(t.exec(i))return this.trigger("data",{type:"custom",data:s(i),customType:n,segment:r}),!0})}addTagMapper({expression:t,map:n}){const s=r=>t.test(r)?n(r):r;this.tagMappers.push(s)}}const Dye=e=>e.toLowerCase().replace(/-(\w)/g,t=>t[1].toUpperCase()),sl=function(e){const t={};return Object.keys(e).forEach(function(n){t[Dye(n)]=e[n]}),t},xv=function(e){const{serverControl:t,targetDuration:n,partTargetDuration:s}=e;if(!t)return;const r="#EXT-X-SERVER-CONTROL",i="holdBack",o="partHoldBack",a=n&&n*3,l=s&&s*2;n&&!t.hasOwnProperty(i)&&(t[i]=a,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${a}).`})),a&&t[i]<a&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${t[i]}) to targetDuration * 3 (${a})`}),t[i]=a),s&&!t.hasOwnProperty(o)&&(t[o]=s*3,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[o]}).`})),s&&t[o]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${t[o]}) to partTargetDuration * 2 (${l}).`}),t[o]=l)};class Fye extends f1{constructor(){super(),this.lineStream=new Nye,this.parseStream=new Lye,this.lineStream.pipe(this.parseStream);const t=this,n=[];let s={},r,i,o=!1;const a=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},u="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";let d=0;this.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};let f=0,h=0;this.on("end",()=>{s.uri||!s.parts&&!s.preloadHints||(!s.map&&r&&(s.map=r),!s.key&&i&&(s.key=i),!s.timeline&&typeof d=="number"&&(s.timeline=d),this.manifest.preloadSegment=s)}),this.parseStream.on("data",function(p){let g,m;({tag(){({version(){p.version&&(this.manifest.version=p.version)},"allow-cache"(){this.manifest.allowCache=p.allowed,"allowed"in p||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const v={};"length"in p&&(s.byterange=v,v.length=p.length,"offset"in p||(p.offset=f)),"offset"in p&&(s.byterange=v,v.offset=p.offset),f=v.offset+v.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),p.duration>0&&(s.duration=p.duration),p.duration===0&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(!p.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(p.attributes.METHOD==="NONE"){i=null;return}if(!p.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(p.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:p.attributes};return}if(p.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:p.attributes.URI};return}if(p.attributes.KEYFORMAT===u){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(p.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(p.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),p.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(p.attributes.KEYID&&p.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:p.attributes.KEYFORMAT,keyId:p.attributes.KEYID.substring(2)},pssh:$ye(p.attributes.URI.split(",")[1])};return}p.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:p.attributes.METHOD||"AES-128",uri:p.attributes.URI},typeof p.attributes.IV<"u"&&(i.iv=p.attributes.IV)},"media-sequence"(){if(!isFinite(p.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+p.number});return}this.manifest.mediaSequence=p.number},"discontinuity-sequence"(){if(!isFinite(p.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+p.number});return}this.manifest.discontinuitySequence=p.number,d=p.number},"playlist-type"(){if(!/VOD|EVENT/.test(p.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+p.playlist});return}this.manifest.playlistType=p.playlistType},map(){r={},p.uri&&(r.uri=p.uri),p.byterange&&(r.byterange=p.byterange),i&&(r.key=i)},"stream-inf"(){if(this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,!p.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}s.attributes||(s.attributes={}),Yi(s.attributes,p.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(p.attributes&&p.attributes.TYPE&&p.attributes["GROUP-ID"]&&p.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}const v=this.manifest.mediaGroups[p.attributes.TYPE];v[p.attributes["GROUP-ID"]]=v[p.attributes["GROUP-ID"]]||{},g=v[p.attributes["GROUP-ID"]],m={default:/yes/i.test(p.attributes.DEFAULT)},m.default?m.autoselect=!0:m.autoselect=/yes/i.test(p.attributes.AUTOSELECT),p.attributes.LANGUAGE&&(m.language=p.attributes.LANGUAGE),p.attributes.URI&&(m.uri=p.attributes.URI),p.attributes["INSTREAM-ID"]&&(m.instreamId=p.attributes["INSTREAM-ID"]),p.attributes.CHARACTERISTICS&&(m.characteristics=p.attributes.CHARACTERISTICS),p.attributes.FORCED&&(m.forced=/yes/i.test(p.attributes.FORCED)),g[p.attributes.NAME]=m},discontinuity(){d+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=p.dateTimeString,this.manifest.dateTimeObject=p.dateTimeObject),s.dateTimeString=p.dateTimeString,s.dateTimeObject=p.dateTimeObject},targetduration(){if(!isFinite(p.duration)||p.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+p.duration});return}this.manifest.targetDuration=p.duration,xv.call(this,this.manifest)},start(){if(!p.attributes||isNaN(p.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:p.attributes["TIME-OFFSET"],precise:p.attributes.PRECISE}},"cue-out"(){s.cueOut=p.data},"cue-out-cont"(){s.cueOutCont=p.data},"cue-in"(){s.cueIn=p.data},skip(){this.manifest.skip=sl(p.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",p.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;const v=this.manifest.segments.length,y=sl(p.attributes);s.parts=s.parts||[],s.parts.push(y),y.byterange&&(y.byterange.hasOwnProperty("offset")||(y.byterange.offset=h),h=y.byterange.offset+y.byterange.length);const T=s.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${T} for segment #${v}`,p.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((_,S)=>{_.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${S} lacks required attribute(s): LAST-PART`})})},"server-control"(){const v=this.manifest.serverControl=sl(p.attributes);v.hasOwnProperty("canBlockReload")||(v.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),xv.call(this,this.manifest),v.canSkipDateranges&&!v.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const v=this.manifest.segments.length,y=sl(p.attributes),T=y.type&&y.type==="PART";s.preloadHints=s.preloadHints||[],s.preloadHints.push(y),y.byterange&&(y.byterange.hasOwnProperty("offset")||(y.byterange.offset=T?h:0,T&&(h=y.byterange.offset+y.byterange.length)));const _=s.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${_} for segment #${v}`,p.attributes,["TYPE","URI"]),!!y.type)for(let S=0;S<s.preloadHints.length-1;S++){const w=s.preloadHints[S];w.type&&w.type===y.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${_} for segment #${v} has the same TYPE ${y.type} as preload hint #${S}`})}},"rendition-report"(){const v=sl(p.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(v);const y=this.manifest.renditionReports.length-1,T=["LAST-MSN","URI"];o&&T.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${y}`,p.attributes,T)},"part-inf"(){this.manifest.partInf=sl(p.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",p.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),xv.call(this,this.manifest)}}[p.tagType]||a).call(t)},uri(){s.uri=p.uri,n.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),i&&(s.key=i),s.timeline=d,r&&(s.map=r),h=0,s={}},comment(){},custom(){p.segment?(s.custom=s.custom||{},s.custom[p.customType]=p.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[p.customType]=p.data)}})[p.type].call(t)})}warnOnMissingAttributes_(t,n,s){const r=[];s.forEach(function(i){n.hasOwnProperty(i)||r.push(i)}),r.length&&this.trigger("warn",{message:`${t} lacks required attribute(s): ${r.join(", ")}`})}push(t){this.lineStream.push(t)}end(){this.lineStream.push(`
|
||
`),this.trigger("end")}addParser(t){this.parseStream.addParser(t)}addTagMapper(t){this.parseStream.addTagMapper(t)}}var Oa={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},Bye=["video","audio","text"],sx=["Video","Audio","Text"],aN=function(t){return t&&t.replace(/avc1\.(\d+)\.(\d+)/i,function(n,s,r){var i=("00"+Number(s).toString(16)).slice(-2),o=("00"+Number(r).toString(16)).slice(-2);return"avc1."+i+"00"+o})},Jr=function(t){t===void 0&&(t="");var n=t.split(","),s=[];return n.forEach(function(r){r=r.trim();var i;Bye.forEach(function(o){var a=Oa[o].exec(r.toLowerCase());if(!(!a||a.length<=1)){i=o;var l=r.substring(0,a[1].length),u=r.replace(l,"");s.push({type:l,details:u,mediaType:o})}}),i||s.push({type:r,details:"",mediaType:"unknown"})}),s},Vye=function(t,n){if(!t.mediaGroups.AUDIO||!n)return null;var s=t.mediaGroups.AUDIO[n];if(!s)return null;for(var r in s){var i=s[r];if(i.default&&i.playlists)return Jr(i.playlists[0].attributes.CODECS)}return null},lN=function(t){return t===void 0&&(t=""),Oa.audio.test(t.trim().toLowerCase())},Uye=function(t){return t===void 0&&(t=""),Oa.text.test(t.trim().toLowerCase())},kd=function(t){if(!(!t||typeof t!="string")){var n=t.toLowerCase().split(",").map(function(i){return aN(i.trim())}),s="video";n.length===1&&lN(n[0])?s="audio":n.length===1&&Uye(n[0])&&(s="application");var r="mp4";return n.every(function(i){return Oa.mp4.test(i)})?r="mp4":n.every(function(i){return Oa.webm.test(i)})?r="webm":n.every(function(i){return Oa.ogg.test(i)})&&(r="ogg"),s+"/"+r+';codecs="'+t+'"'}},Jh=function(t){return t===void 0&&(t=""),ge.MediaSource&&ge.MediaSource.isTypeSupported&&ge.MediaSource.isTypeSupported(kd(t))||!1},kv=function(t){return t===void 0&&(t=""),t.toLowerCase().split(",").every(function(n){n=n.trim();for(var s=0;s<sx.length;s++){var r=sx[s];if(Oa["muxer"+r].test(n))return!0}return!1})},rx="mp4a.40.2",Hye="avc1.4d400d",zye=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,jye=/^application\/dash\+xml/i,uN=function(t){return zye.test(t)?"hls":jye.test(t)?"dash":t==="application/vnd.videojs.vhs+json"?"vhs-json":null},Kye=function(t){return t.toString(2).length},Wye=function(t){return Math.ceil(Kye(t)/8)},cN=function(t){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},qye=function(t){return cN(t)},Lt=function(t){return t instanceof Uint8Array?t:(!Array.isArray(t)&&!qye(t)&&!(t instanceof ArrayBuffer)&&(typeof t!="number"||typeof t=="number"&&t!==t?t=0:t=[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},ts=ge.BigInt||Number,Iy=[ts("0x1"),ts("0x100"),ts("0x10000"),ts("0x1000000"),ts("0x100000000"),ts("0x10000000000"),ts("0x1000000000000"),ts("0x100000000000000"),ts("0x10000000000000000")];(function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return t[0]===255?"big":t[0]===204?"little":"unknown"})();var Gye=function(t,n){var s=n===void 0?{}:n,r=s.signed,i=r===void 0?!1:r,o=s.le,a=o===void 0?!1:o;t=Lt(t);var l=a?"reduce":"reduceRight",u=t[l]?t[l]:Array.prototype[l],d=u.call(t,function(h,p,g){var m=a?g:Math.abs(g+1-t.length);return h+ts(p)*Iy[m]},ts(0));if(i){var f=Iy[t.length]/ts(2)-ts(1);d=ts(d),d>f&&(d-=f,d-=f,d-=ts(2))}return Number(d)},Yye=function(t,n){var s=n===void 0?{}:n,r=s.le,i=r===void 0?!1:r;(typeof t!="bigint"&&typeof t!="number"||typeof t=="number"&&t!==t)&&(t=0),t=ts(t);for(var o=Wye(t),a=new Uint8Array(new ArrayBuffer(o)),l=0;l<o;l++){var u=i?l:Math.abs(l+1-a.length);a[u]=Number(t/Iy[l]&ts(255)),t<0&&(a[u]=Math.abs(~a[u]),a[u]-=l===0?1:2)}return a},dN=function(t,n){if(typeof t!="string"&&t&&typeof t.toString=="function"&&(t=t.toString()),typeof t!="string")return new Uint8Array;n||(t=unescape(encodeURIComponent(t)));for(var s=new Uint8Array(t.length),r=0;r<t.length;r++)s[r]=t.charCodeAt(r);return s},Xye=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];if(n=n.filter(function(a){return a&&(a.byteLength||a.length)&&typeof a!="string"}),n.length<=1)return Lt(n[0]);var r=n.reduce(function(a,l,u){return a+(l.byteLength||l.length)},0),i=new Uint8Array(r),o=0;return n.forEach(function(a){a=Lt(a),i.set(a,o),o+=a.byteLength}),i},On=function(t,n,s){var r=s===void 0?{}:s,i=r.offset,o=i===void 0?0:i,a=r.mask,l=a===void 0?[]:a;t=Lt(t),n=Lt(n);var u=n.every?n.every:Array.prototype.every;return n.length&&t.length-o>=n.length&&u.call(n,function(d,f){var h=l[f]?l[f]&t[o+f]:t[o+f];return d===h})},ix="http://example.com",h1=function(t,n){if(/^[a-z]+:/i.test(n))return n;/^data:/.test(t)&&(t=ge.location&&ge.location.href||"");var s=typeof ge.URL=="function",r=/^\/\//.test(t),i=!ge.location&&!/\/\//i.test(t);if(s?t=new ge.URL(t,ge.location||ix):/\/\//i.test(t)||(t=$p.buildAbsoluteURL(ge.location&&ge.location.href||"",t)),s){var o=new URL(n,t);return i?o.href.slice(ix.length):r?o.href.slice(o.protocol.length):o.href}return $p.buildAbsoluteURL(t,n)},Qye=function(t,n,s){n.forEach(function(r){for(var i in t.mediaGroups[r])for(var o in t.mediaGroups[r][i]){var a=t.mediaGroups[r][i][o];s(a,r,i,o)}})},Jye=function(t){return ge.atob?ge.atob(t):Buffer.from(t,"base64").toString("binary")};function Zye(e){for(var t=Jye(e),n=new Uint8Array(t.length),s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}var Wo={},oo={};function ebe(e,t,n){if(n===void 0&&(n=Array.prototype),e&&typeof n.find=="function")return n.find.call(e,t);for(var s=0;s<e.length;s++)if(Object.prototype.hasOwnProperty.call(e,s)){var r=e[s];if(t.call(void 0,r,s,e))return r}}function p1(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze=="function"?t.freeze(e):e}function tbe(e,t){if(e===null||typeof e!="object")throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var fN=p1({HTML:"text/html",isHTML:function(e){return e===fN.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),hN=p1({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===hN.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});oo.assign=tbe;oo.find=ebe;oo.freeze=p1;oo.MIME_TYPE=fN;oo.NAMESPACE=hN;var pN=oo,fi=pN.find,Od=pN.NAMESPACE;function nbe(e){return e!==""}function sbe(e){return e?e.split(/[\t\n\f\r ]+/).filter(nbe):[]}function rbe(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function ox(e){if(!e)return[];var t=sbe(e);return Object.keys(t.reduce(rbe,{}))}function ibe(e){return function(t){return e&&e.indexOf(t)!==-1}}function nf(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function js(e,t){var n=e.prototype;if(!(n instanceof t)){let r=function(){};var s=r;r.prototype=t.prototype,r=new r,nf(n,r),e.prototype=n=r}n.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),n.constructor=e)}var Ks={},Br=Ks.ELEMENT_NODE=1,lu=Ks.ATTRIBUTE_NODE=2,Np=Ks.TEXT_NODE=3,mN=Ks.CDATA_SECTION_NODE=4,gN=Ks.ENTITY_REFERENCE_NODE=5,obe=Ks.ENTITY_NODE=6,vN=Ks.PROCESSING_INSTRUCTION_NODE=7,yN=Ks.COMMENT_NODE=8,bN=Ks.DOCUMENT_NODE=9,_N=Ks.DOCUMENT_TYPE_NODE=10,Qi=Ks.DOCUMENT_FRAGMENT_NODE=11,abe=Ks.NOTATION_NODE=12,fs={},Zn={};fs.INDEX_SIZE_ERR=(Zn[1]="Index size error",1);fs.DOMSTRING_SIZE_ERR=(Zn[2]="DOMString size error",2);var Ls=fs.HIERARCHY_REQUEST_ERR=(Zn[3]="Hierarchy request error",3);fs.WRONG_DOCUMENT_ERR=(Zn[4]="Wrong document",4);fs.INVALID_CHARACTER_ERR=(Zn[5]="Invalid character",5);fs.NO_DATA_ALLOWED_ERR=(Zn[6]="No data allowed",6);fs.NO_MODIFICATION_ALLOWED_ERR=(Zn[7]="No modification allowed",7);var TN=fs.NOT_FOUND_ERR=(Zn[8]="Not found",8);fs.NOT_SUPPORTED_ERR=(Zn[9]="Not supported",9);var ax=fs.INUSE_ATTRIBUTE_ERR=(Zn[10]="Attribute in use",10);fs.INVALID_STATE_ERR=(Zn[11]="Invalid state",11);fs.SYNTAX_ERR=(Zn[12]="Syntax error",12);fs.INVALID_MODIFICATION_ERR=(Zn[13]="Invalid modification",13);fs.NAMESPACE_ERR=(Zn[14]="Invalid namespace",14);fs.INVALID_ACCESS_ERR=(Zn[15]="Invalid access",15);function Rn(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,Zn[e]),this.message=Zn[e],Error.captureStackTrace&&Error.captureStackTrace(this,Rn);return n.code=e,t&&(this.message=this.message+": "+t),n}Rn.prototype=Error.prototype;nf(fs,Rn);function Hi(){}Hi.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],s=0;s<this.length;s++)_l(this[s],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function uu(e,t){this._node=e,this._refresh=t,m1(this)}function m1(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);NN(e,"length",n.length),nf(n,e),e._inc=t}}uu.prototype.item=function(e){return m1(this),this[e]};js(uu,Hi);function Mp(){}function SN(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function lx(e,t,n,s){if(s?t[SN(t,s)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(s&&EN(r,e,s),lbe(r,e,n))}}function ux(e,t,n){var s=SN(t,n);if(s>=0){for(var r=t.length-1;s<r;)t[s]=t[++s];if(t.length=r,e){var i=e.ownerDocument;i&&(EN(i,e,n),n.ownerElement=null)}}else throw new Rn(TN,new Error(e.tagName+"@"+n))}Mp.prototype={length:0,item:Hi.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new Rn(ax);var n=this.getNamedItem(e.nodeName);return lx(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new Rn(ax);return n=this.getNamedItemNS(e.namespaceURI,e.localName),lx(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return ux(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return ux(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var s=this[n];if(s.localName==t&&s.namespaceURI==e)return s}return null}};function wN(){}wN.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var s=new sf;if(s.implementation=this,s.childNodes=new Hi,s.doctype=n||null,n&&s.appendChild(n),t){var r=s.createElementNS(e,t);s.appendChild(r)}return s},createDocumentType:function(e,t,n){var s=new Jm;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=n||"",s}};function fn(){}fn.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Rp(this,e,t)},replaceChild:function(e,t){Rp(this,e,t,kN),t&&this.removeChild(t)},removeChild:function(e){return xN(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return Py(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==Np&&e.nodeType==Np?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&n[s]===e)return s}t=t.nodeType==lu?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==lu?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function CN(e){return e=="<"&&"<"||e==">"&&">"||e=="&"&&"&"||e=='"'&&"""||"&#"+e.charCodeAt()+";"}nf(Ks,fn);nf(Ks,fn.prototype);function Ad(e,t){if(t(e))return!0;if(e=e.firstChild)do if(Ad(e,t))return!0;while(e=e.nextSibling)}function sf(){this.ownerDocument=this}function lbe(e,t,n){e&&e._inc++;var s=n.namespaceURI;s===Od.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function EN(e,t,n,s){e&&e._inc++;var r=n.namespaceURI;r===Od.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function g1(e,t,n){if(e&&e._inc){e._inc++;var s=t.childNodes;if(n)s[s.length++]=n;else{for(var r=t.firstChild,i=0;r;)s[i++]=r,r=r.nextSibling;s.length=i,delete s[s.length]}}}function xN(e,t){var n=t.previousSibling,s=t.nextSibling;return n?n.nextSibling=s:e.firstChild=s,s?s.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,g1(e.ownerDocument,e),t}function ube(e){return e&&(e.nodeType===fn.DOCUMENT_NODE||e.nodeType===fn.DOCUMENT_FRAGMENT_NODE||e.nodeType===fn.ELEMENT_NODE)}function cbe(e){return e&&(hi(e)||v1(e)||Ji(e)||e.nodeType===fn.DOCUMENT_FRAGMENT_NODE||e.nodeType===fn.COMMENT_NODE||e.nodeType===fn.PROCESSING_INSTRUCTION_NODE)}function Ji(e){return e&&e.nodeType===fn.DOCUMENT_TYPE_NODE}function hi(e){return e&&e.nodeType===fn.ELEMENT_NODE}function v1(e){return e&&e.nodeType===fn.TEXT_NODE}function cx(e,t){var n=e.childNodes||[];if(fi(n,hi)||Ji(t))return!1;var s=fi(n,Ji);return!(t&&s&&n.indexOf(s)>n.indexOf(t))}function dx(e,t){var n=e.childNodes||[];function s(i){return hi(i)&&i!==t}if(fi(n,s))return!1;var r=fi(n,Ji);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function dbe(e,t,n){if(!ube(e))throw new Rn(Ls,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new Rn(TN,"child not in parent");if(!cbe(t)||Ji(t)&&e.nodeType!==fn.DOCUMENT_NODE)throw new Rn(Ls,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function fbe(e,t,n){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===fn.DOCUMENT_FRAGMENT_NODE){var i=r.filter(hi);if(i.length>1||fi(r,v1))throw new Rn(Ls,"More than one element or text in fragment");if(i.length===1&&!cx(e,n))throw new Rn(Ls,"Element in fragment can not be inserted before doctype")}if(hi(t)&&!cx(e,n))throw new Rn(Ls,"Only one element can be added and only after doctype");if(Ji(t)){if(fi(s,Ji))throw new Rn(Ls,"Only one doctype is allowed");var o=fi(s,hi);if(n&&s.indexOf(o)<s.indexOf(n))throw new Rn(Ls,"Doctype can only be inserted before an element");if(!n&&o)throw new Rn(Ls,"Doctype can not be appended since element is present")}}function kN(e,t,n){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===fn.DOCUMENT_FRAGMENT_NODE){var i=r.filter(hi);if(i.length>1||fi(r,v1))throw new Rn(Ls,"More than one element or text in fragment");if(i.length===1&&!dx(e,n))throw new Rn(Ls,"Element in fragment can not be inserted before doctype")}if(hi(t)&&!dx(e,n))throw new Rn(Ls,"Only one element can be added and only after doctype");if(Ji(t)){let l=function(u){return Ji(u)&&u!==n};var a=l;if(fi(s,l))throw new Rn(Ls,"Only one doctype is allowed");var o=fi(s,hi);if(n&&s.indexOf(o)<s.indexOf(n))throw new Rn(Ls,"Doctype can only be inserted before an element")}}function Rp(e,t,n,s){dbe(e,t,n),e.nodeType===fn.DOCUMENT_NODE&&(s||fbe)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===Qi){var i=t.firstChild;if(i==null)return t;var o=t.lastChild}else i=o=t;var a=n?n.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:e.firstChild=i,n==null?e.lastChild=o:n.previousSibling=o;do i.parentNode=e;while(i!==o&&(i=i.nextSibling));return g1(e.ownerDocument||e,e),t.nodeType==Qi&&(t.firstChild=t.lastChild=null),t}function hbe(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,g1(e.ownerDocument,e,t),t}sf.prototype={nodeName:"#document",nodeType:bN,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==Qi){for(var n=e.firstChild;n;){var s=n.nextSibling;this.insertBefore(n,t),n=s}return e}return Rp(this,e,t),e.ownerDocument=this,this.documentElement===null&&e.nodeType===Br&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),xN(this,e)},replaceChild:function(e,t){Rp(this,e,t,kN),e.ownerDocument=this,t&&this.removeChild(t),hi(e)&&(this.documentElement=e)},importNode:function(e,t){return $N(this,e,t)},getElementById:function(e){var t=null;return Ad(this.documentElement,function(n){if(n.nodeType==Br&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=ox(e);return new uu(this,function(n){var s=[];return t.length>0&&Ad(n.documentElement,function(r){if(r!==n&&r.nodeType===Br){var i=r.getAttribute("class");if(i){var o=e===i;if(!o){var a=ox(i);o=t.every(ibe(a))}o&&s.push(r)}}}),s})},createElement:function(e){var t=new La;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Hi;var n=t.attributes=new Mp;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new Zm;return e.ownerDocument=this,e.childNodes=new Hi,e},createTextNode:function(e){var t=new y1;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new b1;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new _1;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new S1;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new Lp;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new T1;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new La,s=t.split(":"),r=n.attributes=new Mp;return n.childNodes=new Hi,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,s.length==2?(n.prefix=s[0],n.localName=s[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new Lp,s=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,s.length==2?(n.prefix=s[0],n.localName=s[1]):n.localName=t,n}};js(sf,fn);function La(){this._nsMap={}}La.prototype={nodeType:Br,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===Qi?this.insertBefore(e,null):hbe(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var s=this.ownerDocument.createAttributeNS(e,t);s.value=s.nodeValue=""+n,this.setAttributeNode(s)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new uu(this,function(t){var n=[];return Ad(t,function(s){s!==t&&s.nodeType==Br&&(e==="*"||s.tagName==e)&&n.push(s)}),n})},getElementsByTagNameNS:function(e,t){return new uu(this,function(n){var s=[];return Ad(n,function(r){r!==n&&r.nodeType===Br&&(e==="*"||r.namespaceURI===e)&&(t==="*"||r.localName==t)&&s.push(r)}),s})}};sf.prototype.getElementsByTagName=La.prototype.getElementsByTagName;sf.prototype.getElementsByTagNameNS=La.prototype.getElementsByTagNameNS;js(La,fn);function Lp(){}Lp.prototype.nodeType=lu;js(Lp,fn);function rf(){}rf.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(Zn[Ls])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var s=this.data.substring(0,e),r=this.data.substring(e+t);n=s+n+r,this.nodeValue=this.data=n,this.length=n.length}};js(rf,fn);function y1(){}y1.prototype={nodeName:"#text",nodeType:Np,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var s=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}};js(y1,rf);function b1(){}b1.prototype={nodeName:"#comment",nodeType:yN};js(b1,rf);function _1(){}_1.prototype={nodeName:"#cdata-section",nodeType:mN};js(_1,rf);function Jm(){}Jm.prototype.nodeType=_N;js(Jm,fn);function ON(){}ON.prototype.nodeType=abe;js(ON,fn);function AN(){}AN.prototype.nodeType=obe;js(AN,fn);function T1(){}T1.prototype.nodeType=gN;js(T1,fn);function Zm(){}Zm.prototype.nodeName="#document-fragment";Zm.prototype.nodeType=Qi;js(Zm,fn);function S1(){}S1.prototype.nodeType=vN;js(S1,fn);function IN(){}IN.prototype.serializeToString=function(e,t,n){return PN.call(e,t,n)};fn.prototype.toString=PN;function PN(e,t){var n=[],s=this.nodeType==9&&this.documentElement||this,r=s.prefix,i=s.namespaceURI;if(i&&r==null){var r=s.lookupPrefix(i);if(r==null)var o=[{namespace:i,prefix:null}]}return _l(this,n,e,t,o),n.join("")}function fx(e,t,n){var s=e.prefix||"",r=e.namespaceURI;if(!r||s==="xml"&&r===Od.XML||r===Od.XMLNS)return!1;for(var i=n.length;i--;){var o=n[i];if(o.prefix===s)return o.namespace!==r}return!0}function Ov(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,CN),'"')}function _l(e,t,n,s,r){if(r||(r=[]),s)if(e=s(e),e){if(typeof e=="string"){t.push(e);return}}else return;switch(e.nodeType){case Br:var i=e.attributes,o=i.length,y=e.firstChild,a=e.tagName;n=Od.isHTML(e.namespaceURI)||n;var l=a;if(!n&&!e.prefix&&e.namespaceURI){for(var u,d=0;d<i.length;d++)if(i.item(d).name==="xmlns"){u=i.item(d).value;break}if(!u)for(var f=r.length-1;f>=0;f--){var h=r[f];if(h.prefix===""&&h.namespace===e.namespaceURI){u=h.namespace;break}}if(u!==e.namespaceURI)for(var f=r.length-1;f>=0;f--){var h=r[f];if(h.namespace===e.namespaceURI){h.prefix&&(l=h.prefix+":"+a);break}}}t.push("<",l);for(var p=0;p<o;p++){var g=i.item(p);g.prefix=="xmlns"?r.push({prefix:g.localName,namespace:g.value}):g.nodeName=="xmlns"&&r.push({prefix:"",namespace:g.value})}for(var p=0;p<o;p++){var g=i.item(p);if(fx(g,n,r)){var m=g.prefix||"",v=g.namespaceURI;Ov(t,m?"xmlns:"+m:"xmlns",v),r.push({prefix:m,namespace:v})}_l(g,t,n,s,r)}if(a===l&&fx(e,n,r)){var m=e.prefix||"",v=e.namespaceURI;Ov(t,m?"xmlns:"+m:"xmlns",v),r.push({prefix:m,namespace:v})}if(y||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(a)){if(t.push(">"),n&&/^script$/i.test(a))for(;y;)y.data?t.push(y.data):_l(y,t,n,s,r.slice()),y=y.nextSibling;else for(;y;)_l(y,t,n,s,r.slice()),y=y.nextSibling;t.push("</",l,">")}else t.push("/>");return;case bN:case Qi:for(var y=e.firstChild;y;)_l(y,t,n,s,r.slice()),y=y.nextSibling;return;case lu:return Ov(t,e.name,e.value);case Np:return t.push(e.data.replace(/[<&>]/g,CN));case mN:return t.push("<![CDATA[",e.data,"]]>");case yN:return t.push("<!--",e.data,"-->");case _N:var T=e.publicId,_=e.systemId;if(t.push("<!DOCTYPE ",e.name),T)t.push(" PUBLIC ",T),_&&_!="."&&t.push(" ",_),t.push(">");else if(_&&_!=".")t.push(" SYSTEM ",_,">");else{var S=e.internalSubset;S&&t.push(" [",S,"]"),t.push(">")}return;case vN:return t.push("<?",e.target," ",e.data,"?>");case gN:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function $N(e,t,n){var s;switch(t.nodeType){case Br:s=t.cloneNode(!1),s.ownerDocument=e;case Qi:break;case lu:n=!0;break}if(s||(s=t.cloneNode(!1)),s.ownerDocument=e,s.parentNode=null,n)for(var r=t.firstChild;r;)s.appendChild($N(e,r,n)),r=r.nextSibling;return s}function Py(e,t,n){var s=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];typeof i!="object"&&i!=s[r]&&(s[r]=i)}switch(t.childNodes&&(s.childNodes=new Hi),s.ownerDocument=e,s.nodeType){case Br:var o=t.attributes,a=s.attributes=new Mp,l=o.length;a._ownerElement=s;for(var u=0;u<l;u++)s.setAttributeNode(Py(e,o.item(u),!0));break;case lu:n=!0}if(n)for(var d=t.firstChild;d;)s.appendChild(Py(e,d,n)),d=d.nextSibling;return s}function NN(e,t,n){e[t]=n}try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case Br:case Qi:var n=[];for(t=t.firstChild;t;)t.nodeType!==7&&t.nodeType!==8&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};var getTextContent=e;Object.defineProperty(uu.prototype,"length",{get:function(){return m1(this),this.$$length}}),Object.defineProperty(fn.prototype,"textContent",{get:function(){return e(this)},set:function(t){switch(this.nodeType){case Br:case Qi:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),NN=function(t,n,s){t["$$"+n]=s}}}catch{}Wo.DocumentType=Jm;Wo.DOMException=Rn;Wo.DOMImplementation=wN;Wo.Element=La;Wo.Node=fn;Wo.NodeList=Hi;Wo.XMLSerializer=IN;var eg={},MN={};(function(e){var t=oo.freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),e.entityMap=e.HTML_ENTITIES})(MN);var w1={},Id=oo.NAMESPACE,$y=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,hx=new RegExp("[\\-\\.0-9"+$y.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),px=new RegExp("^"+$y.source+hx.source+"*(?::"+$y.source+hx.source+"*)?$"),ac=0,ho=1,rl=2,lc=3,il=4,ol=5,uc=6,lh=7;function cu(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,cu)}cu.prototype=new Error;cu.prototype.name=cu.name;function RN(){}RN.prototype={parse:function(e,t,n){var s=this.domBuilder;s.startDocument(),LN(t,t={}),pbe(e,t,n,s,this.errorHandler),s.endDocument()}};function pbe(e,t,n,s,r){function i(K){if(K>65535){K-=65536;var $=55296+(K>>10),H=56320+(K&1023);return String.fromCharCode($,H)}else return String.fromCharCode(K)}function o(K){var $=K.slice(1,-1);return Object.hasOwnProperty.call(n,$)?n[$]:$.charAt(0)==="#"?i(parseInt($.substr(1).replace("x","0x"))):(r.error("entity not found:"+K),K)}function a(K){if(K>m){var $=e.substring(m,K).replace(/&#?\w+;/g,o);h&&l(m),s.characters($,0,K-m),m=K}}function l(K,$){for(;K>=d&&($=f.exec(e));)u=$.index,d=u+$[0].length,h.lineNumber++;h.columnNumber=K-u+1}for(var u=0,d=0,f=/.*(?:\r\n?|\n)|.*$/g,h=s.locator,p=[{currentNSMap:t}],g={},m=0;;){try{var v=e.indexOf("<",m);if(v<0){if(!e.substr(m).match(/^\s*$/)){var y=s.doc,T=y.createTextNode(e.substr(m));y.appendChild(T),s.currentElement=T}return}switch(v>m&&a(v),e.charAt(v+1)){case"/":var W=e.indexOf(">",v+3),_=e.substring(v+2,W).replace(/[ \t\n\r]+$/g,""),S=p.pop();W<0?(_=e.substring(v+2).replace(/[\s<].*/,""),r.error("end tag name: "+_+" is not complete:"+S.tagName),W=v+1+_.length):_.match(/\s</)&&(_=_.replace(/[\s<].*/,""),r.error("end tag name: "+_+" maybe not complete"),W=v+1+_.length);var w=S.localNSMap,A=S.tagName==_,M=A||S.tagName&&S.tagName.toLowerCase()==_.toLowerCase();if(M){if(s.endElement(S.uri,S.localName,_),w)for(var N in w)Object.prototype.hasOwnProperty.call(w,N)&&s.endPrefixMapping(N);A||r.fatalError("end tag name: "+_+" is not match the current start tagName:"+S.tagName)}else p.push(S);W++;break;case"?":h&&l(v),W=bbe(e,v,s);break;case"!":h&&l(v),W=ybe(e,v,s,r);break;default:h&&l(v);var L=new DN,F=p[p.length-1].currentNSMap,W=mbe(e,v,L,F,o,r),j=L.length;if(!L.closed&&vbe(e,W,L.tagName,g)&&(L.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),h&&j){for(var R=mx(h,{}),q=0;q<j;q++){var X=L[q];l(X.offset),X.locator=mx(h,{})}s.locator=R,gx(L,s,F)&&p.push(L),s.locator=h}else gx(L,s,F)&&p.push(L);Id.isHTML(L.uri)&&!L.closed?W=gbe(e,W,L.tagName,o,s):W++}}catch(K){if(K instanceof cu)throw K;r.error("element parse error: "+K),W=-1}W>m?m=W:a(Math.max(v,m)+1)}}function mx(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function mbe(e,t,n,s,r,i){function o(h,p,g){n.attributeNames.hasOwnProperty(h)&&i.fatalError("Attribute "+h+" redefined"),n.addValue(h,p.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),g)}for(var a,l,u=++t,d=ac;;){var f=e.charAt(u);switch(f){case"=":if(d===ho)a=e.slice(t,u),d=lc;else if(d===rl)d=lc;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(d===lc||d===ho)if(d===ho&&(i.warning('attribute value must after "="'),a=e.slice(t,u)),t=u+1,u=e.indexOf(f,t),u>0)l=e.slice(t,u),o(a,l,t-1),d=ol;else throw new Error("attribute value no end '"+f+"' match");else if(d==il)l=e.slice(t,u),o(a,l,t),i.warning('attribute "'+a+'" missed start quot('+f+")!!"),t=u+1,d=ol;else throw new Error('attribute value must after "="');break;case"/":switch(d){case ac:n.setTagName(e.slice(t,u));case ol:case uc:case lh:d=lh,n.closed=!0;case il:case ho:break;case rl:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),d==ac&&n.setTagName(e.slice(t,u)),u;case">":switch(d){case ac:n.setTagName(e.slice(t,u));case ol:case uc:case lh:break;case il:case ho:l=e.slice(t,u),l.slice(-1)==="/"&&(n.closed=!0,l=l.slice(0,-1));case rl:d===rl&&(l=a),d==il?(i.warning('attribute "'+l+'" missed quot(")!'),o(a,l,t)):((!Id.isHTML(s[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),o(l,l,t));break;case lc:throw new Error("attribute value missed!!")}return u;case"":f=" ";default:if(f<=" ")switch(d){case ac:n.setTagName(e.slice(t,u)),d=uc;break;case ho:a=e.slice(t,u),d=rl;break;case il:var l=e.slice(t,u);i.warning('attribute "'+l+'" missed quot(")!!'),o(a,l,t);case ol:d=uc;break}else switch(d){case rl:n.tagName,(!Id.isHTML(s[""])||!a.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),o(a,a,t),t=u,d=ho;break;case ol:i.warning('attribute space is required"'+a+'"!!');case uc:d=ho,t=u;break;case lc:d=il,t=u;break;case lh:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function gx(e,t,n){for(var s=e.tagName,r=null,f=e.length;f--;){var i=e[f],o=i.qName,a=i.value,h=o.indexOf(":");if(h>0)var l=i.prefix=o.slice(0,h),u=o.slice(h+1),d=l==="xmlns"&&u;else u=o,l=null,d=o==="xmlns"&&"";i.localName=u,d!==!1&&(r==null&&(r={},LN(n,n={})),n[d]=r[d]=a,i.uri=Id.XMLNS,t.startPrefixMapping(d,a))}for(var f=e.length;f--;){i=e[f];var l=i.prefix;l&&(l==="xml"&&(i.uri=Id.XML),l!=="xmlns"&&(i.uri=n[l||""]))}var h=s.indexOf(":");h>0?(l=e.prefix=s.slice(0,h),u=e.localName=s.slice(h+1)):(l=null,u=e.localName=s);var p=e.uri=n[l||""];if(t.startElement(p,u,s,e),e.closed){if(t.endElement(p,u,s),r)for(l in r)Object.prototype.hasOwnProperty.call(r,l)&&t.endPrefixMapping(l)}else return e.currentNSMap=n,e.localNSMap=r,!0}function gbe(e,t,n,s,r){if(/^(?:script|textarea)$/i.test(n)){var i=e.indexOf("</"+n+">",t),o=e.substring(t+1,i);if(/[&<]/.test(o))return/^script$/i.test(n)?(r.characters(o,0,o.length),i):(o=o.replace(/&#?\w+;/g,s),r.characters(o,0,o.length),i)}return t+1}function vbe(e,t,n,s){var r=s[n];return r==null&&(r=e.lastIndexOf("</"+n+">"),r<t&&(r=e.lastIndexOf("</"+n)),s[n]=r),r<t}function LN(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function ybe(e,t,n,s){var r=e.charAt(t+2);switch(r){case"-":if(e.charAt(t+3)==="-"){var i=e.indexOf("-->",t+4);return i>t?(n.comment(e,t+4,i-t-4),i+3):(s.error("Unclosed comment"),-1)}else return-1;default:if(e.substr(t+3,6)=="CDATA["){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=_be(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var l=o[1][0],u=!1,d=!1;a>3&&(/^public$/i.test(o[2][0])?(u=o[3][0],d=a>4&&o[4][0]):/^system$/i.test(o[2][0])&&(d=o[3][0]));var f=o[a-1];return n.startDTD(l,u,d),n.endDTD(),f.index+f[0].length}}return-1}function bbe(e,t,n){var s=e.indexOf("?>",t);if(s){var r=e.substring(t,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),s+2):-1}return-1}function DN(){this.attributeNames={}}DN.prototype={setTagName:function(e){if(!px.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!px.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function _be(e,t){var n,s=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(s.push(n),n[1])return s}w1.XMLReader=RN;w1.ParseError=cu;var Tbe=oo,Sbe=Wo,vx=MN,FN=w1,wbe=Sbe.DOMImplementation,yx=Tbe.NAMESPACE,Cbe=FN.ParseError,Ebe=FN.XMLReader;function BN(e){return e.replace(/\r[\n\u0085]/g,`
|
||
`).replace(/[\r\u0085\u2028]/g,`
|
||
`)}function VN(e){this.options=e||{locator:{}}}VN.prototype.parseFromString=function(e,t){var n=this.options,s=new Ebe,r=n.domBuilder||new of,i=n.errorHandler,o=n.locator,a=n.xmlns||{},l=/\/x?html?$/.test(t),u=l?vx.HTML_ENTITIES:vx.XML_ENTITIES;o&&r.setDocumentLocator(o),s.errorHandler=xbe(i,r,o),s.domBuilder=n.domBuilder||r,l&&(a[""]=yx.HTML),a.xml=a.xml||yx.XML;var d=n.normalizeLineEndings||BN;return e&&typeof e=="string"?s.parse(d(e),a,u):s.errorHandler.error("invalid doc source"),r.doc};function xbe(e,t,n){if(!e){if(t instanceof of)return t;e=t}var s={},r=e instanceof Function;n=n||{};function i(o){var a=e[o];!a&&r&&(a=e.length==2?function(l){e(o,l)}:e),s[o]=a&&function(l){a("[xmldom "+o+"] "+l+Ny(n))}||function(){}}return i("warning"),i("error"),i("fatalError"),s}function of(){this.cdata=!1}function al(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}of.prototype={startDocument:function(){this.doc=new wbe().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,s){var r=this.doc,i=r.createElementNS(e,n||t),o=s.length;uh(this,i),this.currentElement=i,this.locator&&al(this.locator,i);for(var a=0;a<o;a++){var e=s.getURI(a),l=s.getValue(a),n=s.getQName(a),u=r.createAttributeNS(e,n);this.locator&&al(s.getLocator(a),u),u.value=u.nodeValue=l,i.setAttributeNode(u)}},endElement:function(e,t,n){var s=this.currentElement;s.tagName,this.currentElement=s.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&al(this.locator,n),uh(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=bx.apply(this,arguments),e){if(this.cdata)var s=this.doc.createCDATASection(e);else var s=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(e)&&this.doc.appendChild(s),this.locator&&al(this.locator,s)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=bx.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&al(this.locator,s),uh(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var s=this.doc.implementation;if(s&&s.createDocumentType){var r=s.createDocumentType(e,t,n);this.locator&&al(this.locator,r),uh(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning] "+e,Ny(this.locator))},error:function(e){console.error("[xmldom error] "+e,Ny(this.locator))},fatalError:function(e){throw new Cbe(e,this.locator)}};function Ny(e){if(e)return`
|
||
@`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function bx(e,t,n){return typeof e=="string"?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){of.prototype[e]=function(){return null}});function uh(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}eg.__DOMHandler=of;eg.normalizeLineEndings=BN;eg.DOMParser=VN;var kbe=eg.DOMParser;/*! @name mpd-parser @version 1.1.1 @license Apache-2.0 */const _x=e=>!!e&&typeof e=="object",as=(...e)=>e.reduce((t,n)=>(typeof n!="object"||Object.keys(n).forEach(s=>{Array.isArray(t[s])&&Array.isArray(n[s])?t[s]=t[s].concat(n[s]):_x(t[s])&&_x(n[s])?t[s]=as(t[s],n[s]):t[s]=n[s]}),t),{}),UN=e=>Object.keys(e).map(t=>e[t]),Obe=(e,t)=>{const n=[];for(let s=e;s<t;s++)n.push(s);return n},du=e=>e.reduce((t,n)=>t.concat(n),[]),HN=e=>{if(!e.length)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t},Abe=(e,t)=>e.reduce((n,s,r)=>(s[t]&&n.push(r),n),[]),Ibe=(e,t)=>UN(e.reduce((n,s)=>(s.forEach(r=>{n[t(r)]=r}),n),{}));var fu={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};const Pd=({baseUrl:e="",source:t="",range:n="",indexRange:s=""})=>{const r={uri:t,resolvedUri:h1(e||"",t)};if(n||s){const o=(n||s).split("-");let a=ge.BigInt?ge.BigInt(o[0]):parseInt(o[0],10),l=ge.BigInt?ge.BigInt(o[1]):parseInt(o[1],10);a<Number.MAX_SAFE_INTEGER&&typeof a=="bigint"&&(a=Number(a)),l<Number.MAX_SAFE_INTEGER&&typeof l=="bigint"&&(l=Number(l));let u;typeof l=="bigint"||typeof a=="bigint"?u=ge.BigInt(l)-ge.BigInt(a)+ge.BigInt(1):u=l-a+1,typeof u=="bigint"&&u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),r.byterange={length:u,offset:a}}return r},Pbe=e=>{let t;return typeof e.offset=="bigint"||typeof e.length=="bigint"?t=ge.BigInt(e.offset)+ge.BigInt(e.length)-ge.BigInt(1):t=e.offset+e.length-1,`${e.offset}-${t}`},Tx=e=>(e&&typeof e!="number"&&(e=parseInt(e,10)),isNaN(e)?null:e),$be={static(e){const{duration:t,timescale:n=1,sourceDuration:s,periodDuration:r}=e,i=Tx(e.endNumber),o=t/n;return typeof i=="number"?{start:0,end:i}:typeof r=="number"?{start:0,end:r/o}:{start:0,end:s/o}},dynamic(e){const{NOW:t,clientOffset:n,availabilityStartTime:s,timescale:r=1,duration:i,periodStart:o=0,minimumUpdatePeriod:a=0,timeShiftBufferDepth:l=1/0}=e,u=Tx(e.endNumber),d=(t+n)/1e3,f=s+o,p=d+a-f,g=Math.ceil(p*r/i),m=Math.floor((d-f-l)*r/i),v=Math.floor((d-f)*r/i);return{start:Math.max(0,m),end:typeof u=="number"?u:Math.min(g,v)}}},Nbe=e=>t=>{const{duration:n,timescale:s=1,periodStart:r,startNumber:i=1}=e;return{number:i+t,duration:n/s,timeline:r,time:t*n}},C1=e=>{const{type:t,duration:n,timescale:s=1,periodDuration:r,sourceDuration:i}=e,{start:o,end:a}=$be[t](e),l=Obe(o,a).map(Nbe(e));if(t==="static"){const u=l.length-1,d=typeof r=="number"?r:i;l[u].duration=d-n/s*u}return l},zN=e=>{const{baseUrl:t,initialization:n={},sourceDuration:s,indexRange:r="",periodStart:i,presentationTime:o,number:a=0,duration:l}=e;if(!t)throw new Error(fu.NO_BASE_URL);const u=Pd({baseUrl:t,source:n.sourceURL,range:n.range}),d=Pd({baseUrl:t,source:t,indexRange:r});if(d.map=u,l){const f=C1(e);f.length&&(d.duration=f[0].duration,d.timeline=f[0].timeline)}else s&&(d.duration=s,d.timeline=i);return d.presentationTime=o||i,d.number=a,[d]},E1=(e,t,n)=>{const s=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,i=e.timeline||0,o=e.sidx.byterange,a=o.offset+o.length,l=t.timescale,u=t.references.filter(v=>v.referenceType!==1),d=[],f=e.endList?"static":"dynamic",h=e.sidx.timeline;let p=h,g=e.mediaSequence||0,m;typeof t.firstOffset=="bigint"?m=ge.BigInt(a)+t.firstOffset:m=a+t.firstOffset;for(let v=0;v<u.length;v++){const y=t.references[v],T=y.referencedSize,_=y.subsegmentDuration;let S;typeof m=="bigint"?S=m+ge.BigInt(T)-ge.BigInt(1):S=m+T-1;const w=`${m}-${S}`,M=zN({baseUrl:n,timescale:l,timeline:i,periodStart:h,presentationTime:p,number:g,duration:_,sourceDuration:r,indexRange:w,type:f})[0];s&&(M.map=s),d.push(M),typeof m=="bigint"?m+=ge.BigInt(T):m+=T,p+=_/l,g++}return e.segments=d,e},Mbe=["AUDIO","SUBTITLES"],Rbe=1/60,jN=e=>Ibe(e,({timeline:t})=>t).sort((t,n)=>t.timeline>n.timeline?1:-1),Lbe=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},Sx=e=>{let t=[];return Qye(e,Mbe,(n,s,r,i)=>{t=t.concat(n.playlists||[])}),t},wx=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((n,s)=>{n.number=e.mediaSequence+s})},Dbe=({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach(s=>{s.discontinuitySequence=n.findIndex(function({timeline:l}){return l===s.timeline});const r=Lbe(e,s.attributes.NAME);if(!r||s.sidx)return;const i=s.segments[0],o=r.segments.findIndex(function(l){return Math.abs(l.presentationTime-i.presentationTime)<Rbe});if(o===-1){wx({playlist:s,mediaSequence:r.mediaSequence+r.segments.length}),s.segments[0].discontinuity=!0,s.discontinuityStarts.unshift(0),(!r.segments.length&&s.timeline>r.timeline||r.segments.length&&s.timeline>r.segments[r.segments.length-1].timeline)&&s.discontinuitySequence--;return}r.segments[o].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,s.discontinuityStarts.unshift(0),s.discontinuitySequence--),wx({playlist:s,mediaSequence:r.segments[o].number})})},Fbe=({oldManifest:e,newManifest:t})=>{const n=e.playlists.concat(Sx(e)),s=t.playlists.concat(Sx(t));return t.timelineStarts=jN([e.timelineStarts,t.timelineStarts]),Dbe({oldPlaylists:n,newPlaylists:s,timelineStarts:t.timelineStarts}),t},tg=e=>e&&e.uri+"-"+Pbe(e.byterange),Av=e=>UN(e.reduce((n,s)=>{const r=s.attributes.id+(s.attributes.lang||"");return n[r]?(s.segments&&(s.segments[0]&&(s.segments[0].discontinuity=!0),n[r].segments.push(...s.segments)),s.attributes.contentProtection&&(n[r].attributes.contentProtection=s.attributes.contentProtection)):(n[r]=s,n[r].attributes.timelineStarts=[]),n[r].attributes.timelineStarts.push({start:s.attributes.periodStart,timeline:s.attributes.periodStart}),n},{})).map(n=>(n.discontinuityStarts=Abe(n.segments||[],"discontinuity"),n)),x1=(e,t)=>{const n=tg(e.sidx),s=n&&t[n]&&t[n].sidx;return s&&E1(e,s,e.sidx.resolvedUri),e},Bbe=(e,t={})=>{if(!Object.keys(t).length)return e;for(const n in e)e[n]=x1(e[n],t);return e},Vbe=({attributes:e,segments:t,sidx:n,mediaSequence:s,discontinuitySequence:r,discontinuityStarts:i},o)=>{const a={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,["PROGRAM-ID"]:1},uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:i,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(a.contentProtection=e.contentProtection),n&&(a.sidx=n),o&&(a.attributes.AUDIO="audio",a.attributes.SUBTITLES="subs"),a},Ube=({attributes:e,segments:t,mediaSequence:n,discontinuityStarts:s,discontinuitySequence:r})=>{typeof t>"u"&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const i={NAME:e.id,BANDWIDTH:e.bandwidth,["PROGRAM-ID"]:1};return e.codecs&&(i.CODECS=e.codecs),{attributes:i,uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:s,discontinuitySequence:r,mediaSequence:n,segments:t}},Hbe=(e,t={},n=!1)=>{let s;const r=e.reduce((i,o)=>{const a=o.attributes.role&&o.attributes.role.value||"",l=o.attributes.lang||"";let u=o.attributes.label||"main";if(l&&!o.attributes.label){const f=a?` (${a})`:"";u=`${o.attributes.lang}${f}`}i[u]||(i[u]={language:l,autoselect:!0,default:a==="main",playlists:[],uri:""});const d=x1(Vbe(o,n),t);return i[u].playlists.push(d),typeof s>"u"&&a==="main"&&(s=o,s.default=!0),i},{});if(!s){const i=Object.keys(r)[0];r[i].default=!0}return r},zbe=(e,t={})=>e.reduce((n,s)=>{const r=s.attributes.label||s.attributes.lang||"text";return n[r]||(n[r]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),n[r].playlists.push(x1(Ube(s),t)),n},{}),jbe=e=>e.reduce((t,n)=>(n&&n.forEach(s=>{const{channel:r,language:i}=s;t[i]={autoselect:!1,default:!1,instreamId:r,language:i},s.hasOwnProperty("aspectRatio")&&(t[i].aspectRatio=s.aspectRatio),s.hasOwnProperty("easyReader")&&(t[i].easyReader=s.easyReader),s.hasOwnProperty("3D")&&(t[i]["3D"]=s["3D"])}),t),{}),Kbe=({attributes:e,segments:t,sidx:n,discontinuityStarts:s})=>{const r={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,["PROGRAM-ID"]:1},uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:"",targetDuration:e.duration,discontinuityStarts:s,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(r.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(r.contentProtection=e.contentProtection),n&&(r.sidx=n),r},Wbe=({attributes:e})=>e.mimeType==="video/mp4"||e.mimeType==="video/webm"||e.contentType==="video",qbe=({attributes:e})=>e.mimeType==="audio/mp4"||e.mimeType==="audio/webm"||e.contentType==="audio",Gbe=({attributes:e})=>e.mimeType==="text/vtt"||e.contentType==="text",Ybe=(e,t)=>{e.forEach(n=>{n.mediaSequence=0,n.discontinuitySequence=t.findIndex(function({timeline:s}){return s===n.timeline}),n.segments&&n.segments.forEach((s,r)=>{s.number=r})})},Cx=e=>e?Object.keys(e).reduce((t,n)=>{const s=e[n];return t.concat(s.playlists)},[]):[],Xbe=({dashPlaylists:e,locations:t,sidxMapping:n={},previousManifest:s,eventStream:r})=>{if(!e.length)return{};const{sourceDuration:i,type:o,suggestedPresentationDelay:a,minimumUpdatePeriod:l}=e[0].attributes,u=Av(e.filter(Wbe)).map(Kbe),d=Av(e.filter(qbe)),f=Av(e.filter(Gbe)),h=e.map(_=>_.attributes.captionServices).filter(Boolean),p={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},["CLOSED-CAPTIONS"]:{},SUBTITLES:{}},uri:"",duration:i,playlists:Bbe(u,n)};l>=0&&(p.minimumUpdatePeriod=l*1e3),t&&(p.locations=t),o==="dynamic"&&(p.suggestedPresentationDelay=a),r&&r.length>0&&(p.eventStream=r);const g=p.playlists.length===0,m=d.length?Hbe(d,n,g):null,v=f.length?zbe(f,n):null,y=u.concat(Cx(m),Cx(v)),T=y.map(({timelineStarts:_})=>_);return p.timelineStarts=jN(T),Ybe(y,p.timelineStarts),m&&(p.mediaGroups.AUDIO.audio=m),v&&(p.mediaGroups.SUBTITLES.subs=v),h.length&&(p.mediaGroups["CLOSED-CAPTIONS"].cc=jbe(h)),s?Fbe({oldManifest:s,newManifest:p}):p},Qbe=(e,t,n)=>{const{NOW:s,clientOffset:r,availabilityStartTime:i,timescale:o=1,periodStart:a=0,minimumUpdatePeriod:l=0}=e,u=(s+r)/1e3,d=i+a,h=u+l-d;return Math.ceil((h*o-t)/n)},KN=(e,t)=>{const{type:n,minimumUpdatePeriod:s=0,media:r="",sourceDuration:i,timescale:o=1,startNumber:a=1,periodStart:l}=e,u=[];let d=-1;for(let f=0;f<t.length;f++){const h=t[f],p=h.d,g=h.r||0,m=h.t||0;d<0&&(d=m),m&&m>d&&(d=m);let v;if(g<0){const _=f+1;_===t.length?n==="dynamic"&&s>0&&r.indexOf("$Number$")>0?v=Qbe(e,d,p):v=(i*o-d)/p:v=(t[_].t-d)/p}else v=g+1;const y=a+u.length+v;let T=a+u.length;for(;T<y;)u.push({number:T,duration:p/o,time:d,timeline:l}),d+=p,T++}return u},Jbe=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Zbe=e=>(t,n,s,r)=>{if(t==="$$")return"$";if(typeof e[n]>"u")return t;const i=""+e[n];return n==="RepresentationID"||(s?r=parseInt(r,10):r=1,i.length>=r)?i:`${new Array(r-i.length+1).join("0")}${i}`},Ex=(e,t)=>e.replace(Jbe,Zbe(t)),e_e=(e,t)=>!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?C1(e):KN(e,t),t_e=(e,t)=>{const n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:s={sourceURL:"",range:""}}=e,r=Pd({baseUrl:e.baseUrl,source:Ex(s.sourceURL,n),range:s.range});return e_e(e,t).map(o=>{n.Number=o.number,n.Time=o.time;const a=Ex(e.media||"",n),l=e.timescale||1,u=e.presentationTimeOffset||0,d=e.periodStart+(o.time-u)/l;return{uri:a,timeline:o.timeline,duration:o.duration,resolvedUri:h1(e.baseUrl||"",a),map:r,number:o.number,presentationTime:d}})},n_e=(e,t)=>{const{baseUrl:n,initialization:s={}}=e,r=Pd({baseUrl:n,source:s.sourceURL,range:s.range}),i=Pd({baseUrl:n,source:t.media,range:t.mediaRange});return i.map=r,i},s_e=(e,t)=>{const{duration:n,segmentUrls:s=[],periodStart:r}=e;if(!n&&!t||n&&t)throw new Error(fu.SEGMENT_TIME_UNSPECIFIED);const i=s.map(l=>n_e(e,l));let o;return n&&(o=C1(e)),t&&(o=KN(e,t)),o.map((l,u)=>{if(i[u]){const d=i[u],f=e.timescale||1,h=e.presentationTimeOffset||0;return d.timeline=l.timeline,d.duration=l.duration,d.number=l.number,d.presentationTime=r+(l.time-h)/f,d}}).filter(l=>l)},r_e=({attributes:e,segmentInfo:t})=>{let n,s;t.template?(s=t_e,n=as(e,t.template)):t.base?(s=zN,n=as(e,t.base)):t.list&&(s=s_e,n=as(e,t.list));const r={attributes:e};if(!s)return r;const i=s(n,t.segmentTimeline);if(n.duration){const{duration:o,timescale:a=1}=n;n.duration=o/a}else i.length?n.duration=i.reduce((o,a)=>Math.max(o,Math.ceil(a.duration)),0):n.duration=0;return r.attributes=n,r.segments=i,t.base&&n.indexRange&&(r.sidx=i[0],r.segments=[]),r},i_e=e=>e.map(r_e),In=(e,t)=>HN(e.childNodes).filter(({tagName:n})=>n===t),ng=e=>e.textContent.trim(),o_e=e=>parseFloat(e.split("/").reduce((t,n)=>t/n)),ll=e=>{const a=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!a)return 0;const[l,u,d,f,h,p]=a.slice(1);return parseFloat(l||0)*31536e3+parseFloat(u||0)*2592e3+parseFloat(d||0)*86400+parseFloat(f||0)*3600+parseFloat(h||0)*60+parseFloat(p||0)},a_e=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)),xx={mediaPresentationDuration(e){return ll(e)},availabilityStartTime(e){return a_e(e)/1e3},minimumUpdatePeriod(e){return ll(e)},suggestedPresentationDelay(e){return ll(e)},type(e){return e},timeShiftBufferDepth(e){return ll(e)},start(e){return ll(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return o_e(e)},startNumber(e){return parseInt(e,10)},timescale(e){return parseInt(e,10)},presentationTimeOffset(e){return parseInt(e,10)},duration(e){const t=parseInt(e,10);return isNaN(t)?ll(e):t},d(e){return parseInt(e,10)},t(e){return parseInt(e,10)},r(e){return parseInt(e,10)},presentationTime(e){return parseInt(e,10)},DEFAULT(e){return e}},Yn=e=>e&&e.attributes?HN(e.attributes).reduce((t,n)=>{const s=xx[n.name]||xx.DEFAULT;return t[n.name]=s(n.value),t},{}):{},l_e={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},sg=(e,t)=>t.length?du(e.map(function(n){return t.map(function(s){return h1(n,ng(s))})})):e,k1=e=>{const t=In(e,"SegmentTemplate")[0],n=In(e,"SegmentList")[0],s=n&&In(n,"SegmentURL").map(f=>as({tag:"SegmentURL"},Yn(f))),r=In(e,"SegmentBase")[0],i=n||t,o=i&&In(i,"SegmentTimeline")[0],a=n||r||t,l=a&&In(a,"Initialization")[0],u=t&&Yn(t);u&&l?u.initialization=l&&Yn(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const d={template:u,segmentTimeline:o&&In(o,"S").map(f=>Yn(f)),list:n&&as(Yn(n),{segmentUrls:s,initialization:Yn(l)}),base:r&&as(Yn(r),{initialization:Yn(l)})};return Object.keys(d).forEach(f=>{d[f]||delete d[f]}),d},u_e=(e,t,n)=>s=>{const r=In(s,"BaseURL"),i=sg(t,r),o=as(e,Yn(s)),a=k1(s);return i.map(l=>({segmentInfo:as(n,a),attributes:as(o,{baseUrl:l})}))},c_e=e=>e.reduce((t,n)=>{const s=Yn(n);s.schemeIdUri&&(s.schemeIdUri=s.schemeIdUri.toLowerCase());const r=l_e[s.schemeIdUri];if(r){t[r]={attributes:s};const i=In(n,"cenc:pssh")[0];if(i){const o=ng(i);t[r].pssh=o&&Zye(o)}}return t},{}),d_e=e=>{if(e.schemeIdUri==="urn:scte:dash:cc:cea-608:2015")return(typeof e.value!="string"?[]:e.value.split(";")).map(n=>{let s,r;return r=n,/^CC\d=/.test(n)?[s,r]=n.split("="):/^CC\d$/.test(n)&&(s=n),{channel:s,language:r}});if(e.schemeIdUri==="urn:scte:dash:cc:cea-708:2015")return(typeof e.value!="string"?[]:e.value.split(";")).map(n=>{const s={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(n)){const[r,i=""]=n.split("=");s.channel=r,s.language=n,i.split(",").forEach(o=>{const[a,l]=o.split(":");a==="lang"?s.language=l:a==="er"?s.easyReader=Number(l):a==="war"?s.aspectRatio=Number(l):a==="3D"&&(s["3D"]=Number(l))})}else s.language=n;return s.channel&&(s.channel="SERVICE"+s.channel),s})},f_e=e=>du(In(e.node,"EventStream").map(t=>{const n=Yn(t),s=n.schemeIdUri;return In(t,"Event").map(r=>{const i=Yn(r),o=i.presentationTime||0,a=n.timescale||1,l=i.duration||0,u=o/a+e.attributes.start;return{schemeIdUri:s,value:n.value,id:i.id,start:u,end:u+l/a,messageData:ng(r)||i.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),h_e=(e,t,n)=>s=>{const r=Yn(s),i=sg(t,In(s,"BaseURL")),o=In(s,"Role")[0],a={role:Yn(o)};let l=as(e,r,a);const u=In(s,"Accessibility")[0],d=d_e(Yn(u));d&&(l=as(l,{captionServices:d}));const f=In(s,"Label")[0];if(f&&f.childNodes.length){const v=f.childNodes[0].nodeValue.trim();l=as(l,{label:v})}const h=c_e(In(s,"ContentProtection"));Object.keys(h).length&&(l=as(l,{contentProtection:h}));const p=k1(s),g=In(s,"Representation"),m=as(n,p);return du(g.map(u_e(l,i,m)))},p_e=(e,t)=>(n,s)=>{const r=sg(t,In(n.node,"BaseURL")),i=as(e,{periodStart:n.attributes.start});typeof n.attributes.duration=="number"&&(i.periodDuration=n.attributes.duration);const o=In(n.node,"AdaptationSet"),a=k1(n.node);return du(o.map(h_e(i,r,a)))},m_e=({attributes:e,priorPeriodAttributes:t,mpdType:n})=>typeof e.start=="number"?e.start:t&&typeof t.start=="number"&&typeof t.duration=="number"?t.start+t.duration:!t&&n==="static"?0:null,g_e=(e,t={})=>{const{manifestUri:n="",NOW:s=Date.now(),clientOffset:r=0}=t,i=In(e,"Period");if(!i.length)throw new Error(fu.INVALID_NUMBER_OF_PERIOD);const o=In(e,"Location"),a=Yn(e),l=sg([n],In(e,"BaseURL"));a.type=a.type||"static",a.sourceDuration=a.mediaPresentationDuration||0,a.NOW=s,a.clientOffset=r,o.length&&(a.locations=o.map(ng));const u=[];return i.forEach((d,f)=>{const h=Yn(d),p=u[f-1];h.start=m_e({attributes:h,priorPeriodAttributes:p?p.attributes:null,mpdType:a.type}),u.push({node:d,attributes:h})}),{locations:a.locations,representationInfo:du(u.map(p_e(a,l))),eventStream:du(u.map(f_e))}},WN=e=>{if(e==="")throw new Error(fu.DASH_EMPTY_MANIFEST);const t=new kbe;let n,s;try{n=t.parseFromString(e,"application/xml"),s=n&&n.documentElement.tagName==="MPD"?n.documentElement:null}catch{}if(!s||s&&s.getElementsByTagName("parsererror").length>0)throw new Error(fu.DASH_INVALID_XML);return s},v_e=e=>{const t=In(e,"UTCTiming")[0];if(!t)return null;const n=Yn(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(fu.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},y_e=(e,t={})=>{const n=g_e(WN(e),t),s=i_e(n.representationInfo);return Xbe({dashPlaylists:s,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})},b_e=e=>v_e(WN(e));var qN=Math.pow(2,32),__e=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n;return t.getBigUint64?(n=t.getBigUint64(0),n<Number.MAX_SAFE_INTEGER?Number(n):n):t.getUint32(0)*qN+t.getUint32(4)},T_e={getUint64:__e,MAX_UINT32:qN},kx=T_e.getUint64,S_e=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},s=12;n.version===0?(n.earliestPresentationTime=t.getUint32(s),n.firstOffset=t.getUint32(s+4),s+=8):(n.earliestPresentationTime=kx(e.subarray(s)),n.firstOffset=kx(e.subarray(s+8)),s+=16),s+=2;var r=t.getUint16(s);for(s+=2;r>0;s+=12,r--)n.references.push({referenceType:(e[s]&128)>>>7,referencedSize:t.getUint32(s)&2147483647,subsegmentDuration:t.getUint32(s+4),startsWithSap:!!(e[s+8]&128),sapType:(e[s+8]&112)>>>4,sapDeltaTime:t.getUint32(s+8)&268435455});return n},w_e=S_e,C_e=Lt([73,68,51]),E_e=function(t,n){n===void 0&&(n=0),t=Lt(t);var s=t[n+5],r=t[n+6]<<21|t[n+7]<<14|t[n+8]<<7|t[n+9],i=(s&16)>>4;return i?r+20:r+10},bc=function e(t,n){return n===void 0&&(n=0),t=Lt(t),t.length-n<10||!On(t,C_e,{offset:n})?n:(n+=E_e(t,n),e(t,n))},Ox=function(t){return typeof t=="string"?dN(t):t},x_e=function(t){return Array.isArray(t)?t.map(function(n){return Ox(n)}):[Ox(t)]},k_e=function e(t,n,s){s===void 0&&(s=!1),n=x_e(n),t=Lt(t);var r=[];if(!n.length)return r;for(var i=0;i<t.length;){var o=(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])>>>0,a=t.subarray(i+4,i+8);if(o===0)break;var l=i+o;if(l>t.length){if(s)break;l=t.length}var u=t.subarray(i+8,l);On(a,n[0])&&(n.length===1?r.push(u):r.push.apply(r,e(u,n.slice(1),s))),i=l}return r},ch={EBML:Lt([26,69,223,163]),DocType:Lt([66,130]),Segment:Lt([24,83,128,103]),SegmentInfo:Lt([21,73,169,102]),Tracks:Lt([22,84,174,107]),Track:Lt([174]),TrackNumber:Lt([215]),DefaultDuration:Lt([35,227,131]),TrackEntry:Lt([174]),TrackType:Lt([131]),FlagDefault:Lt([136]),CodecID:Lt([134]),CodecPrivate:Lt([99,162]),VideoTrack:Lt([224]),AudioTrack:Lt([225]),Cluster:Lt([31,67,182,117]),Timestamp:Lt([231]),TimestampScale:Lt([42,215,177]),BlockGroup:Lt([160]),BlockDuration:Lt([155]),Block:Lt([161]),SimpleBlock:Lt([163])},My=[128,64,32,16,8,4,2,1],O_e=function(t){for(var n=1,s=0;s<My.length&&!(t&My[s]);s++)n++;return n},Dp=function(t,n,s,r){s===void 0&&(s=!0),r===void 0&&(r=!1);var i=O_e(t[n]),o=t.subarray(n,n+i);return s&&(o=Array.prototype.slice.call(t,n,n+i),o[0]^=My[i-1]),{length:i,value:Gye(o,{signed:r}),bytes:o}},Ax=function e(t){return typeof t=="string"?t.match(/.{1,2}/g).map(function(n){return e(n)}):typeof t=="number"?Yye(t):t},A_e=function(t){return Array.isArray(t)?t.map(function(n){return Ax(n)}):[Ax(t)]},I_e=function e(t,n,s){if(s>=n.length)return n.length;var r=Dp(n,s,!1);if(On(t.bytes,r.bytes))return s;var i=Dp(n,s+r.length);return e(t,n,s+i.length+i.value+r.length)},Ix=function e(t,n){n=A_e(n),t=Lt(t);var s=[];if(!n.length)return s;for(var r=0;r<t.length;){var i=Dp(t,r,!1),o=Dp(t,r+i.length),a=r+i.length+o.length;o.value===127&&(o.value=I_e(i,t,a),o.value!==t.length&&(o.value-=a));var l=a+o.value>t.length?t.length:a+o.value,u=t.subarray(a,l);On(n[0],i.bytes)&&(n.length===1?s.push(u):s=s.concat(e(u,n.slice(1))));var d=i.length+o.length+u.length;r+=d}return s},P_e=Lt([0,0,0,1]),$_e=Lt([0,0,1]),N_e=Lt([0,0,3]),M_e=function(t){for(var n=[],s=1;s<t.length-2;)On(t.subarray(s,s+3),N_e)&&(n.push(s+2),s++),s++;if(n.length===0)return t;var r=t.length-n.length,i=new Uint8Array(r),o=0;for(s=0;s<r;o++,s++)o===n[0]&&(o++,n.shift()),i[s]=t[o];return i},GN=function(t,n,s,r){r===void 0&&(r=1/0),t=Lt(t),s=[].concat(s);for(var i=0,o,a=0;i<t.length&&(a<r||o);){var l=void 0;if(On(t.subarray(i),P_e)?l=4:On(t.subarray(i),$_e)&&(l=3),!l){i++;continue}if(a++,o)return M_e(t.subarray(o,i));var u=void 0;n==="h264"?u=t[i+l]&31:n==="h265"&&(u=t[i+l]>>1&63),s.indexOf(u)!==-1&&(o=i+l),i+=l+(n==="h264"?1:2)}return t.subarray(0,0)},R_e=function(t,n,s){return GN(t,"h264",n,s)},L_e=function(t,n,s){return GN(t,"h265",n,s)},ms={webm:Lt([119,101,98,109]),matroska:Lt([109,97,116,114,111,115,107,97]),flac:Lt([102,76,97,67]),ogg:Lt([79,103,103,83]),ac3:Lt([11,119]),riff:Lt([82,73,70,70]),avi:Lt([65,86,73]),wav:Lt([87,65,86,69]),"3gp":Lt([102,116,121,112,51,103]),mp4:Lt([102,116,121,112]),fmp4:Lt([115,116,121,112]),mov:Lt([102,116,121,112,113,116]),moov:Lt([109,111,111,118]),moof:Lt([109,111,111,102])},hu={aac:function(t){var n=bc(t);return On(t,[255,16],{offset:n,mask:[255,22]})},mp3:function(t){var n=bc(t);return On(t,[255,2],{offset:n,mask:[255,6]})},webm:function(t){var n=Ix(t,[ch.EBML,ch.DocType])[0];return On(n,ms.webm)},mkv:function(t){var n=Ix(t,[ch.EBML,ch.DocType])[0];return On(n,ms.matroska)},mp4:function(t){if(hu["3gp"](t)||hu.mov(t))return!1;if(On(t,ms.mp4,{offset:4})||On(t,ms.fmp4,{offset:4})||On(t,ms.moof,{offset:4})||On(t,ms.moov,{offset:4}))return!0},mov:function(t){return On(t,ms.mov,{offset:4})},"3gp":function(t){return On(t,ms["3gp"],{offset:4})},ac3:function(t){var n=bc(t);return On(t,ms.ac3,{offset:n})},ts:function(t){if(t.length<189&&t.length>=1)return t[0]===71;for(var n=0;n+188<t.length&&n<188;){if(t[n]===71&&t[n+188]===71)return!0;n+=1}return!1},flac:function(t){var n=bc(t);return On(t,ms.flac,{offset:n})},ogg:function(t){return On(t,ms.ogg)},avi:function(t){return On(t,ms.riff)&&On(t,ms.avi,{offset:8})},wav:function(t){return On(t,ms.riff)&&On(t,ms.wav,{offset:8})},h264:function(t){return R_e(t,7,3).length},h265:function(t){return L_e(t,[32,33],3).length}},Ry=Object.keys(hu).filter(function(e){return e!=="ts"&&e!=="h264"&&e!=="h265"}).concat(["ts","h264","h265"]);Ry.forEach(function(e){var t=hu[e];hu[e]=function(n){return t(Lt(n))}});var D_e=hu,O1=function(t){t=Lt(t);for(var n=0;n<Ry.length;n++){var s=Ry[n];if(D_e[s](t))return s}return""},F_e=function(t){return k_e(t,["moof"]).length>0},A1=9e4,I1,P1,rg,$1,YN,XN,QN;I1=function(e){return e*A1};P1=function(e,t){return e*t};rg=function(e){return e/A1};$1=function(e,t){return e/t};YN=function(e,t){return I1($1(e,t))};XN=function(e,t){return P1(rg(e),t)};QN=function(e,t,n){return rg(n?e:e-t)};var Fp={ONE_SECOND_IN_TS:A1,secondsToVideoTs:I1,secondsToAudioTs:P1,videoTsToSeconds:rg,audioTsToSeconds:$1,audioTsToVideoTs:YN,videoTsToAudioTs:XN,metadataTsToSeconds:QN};/**
|
||
* @license
|
||
* Video.js 8.0.4 <http://videojs.com/>
|
||
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
||
* Available under Apache License Version 2.0
|
||
* <https://github.com/videojs/video.js/blob/main/LICENSE>
|
||
*
|
||
* Includes vtt.js <https://github.com/mozilla/vtt.js>
|
||
* Available under Apache License Version 2.0
|
||
* <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
|
||
*/var JN="8.0.4";const Di={},Lo=function(e,t){return Di[e]=Di[e]||[],t&&(Di[e]=Di[e].concat(t)),Di[e]},B_e=function(e,t){Lo(e,t)},ZN=function(e,t){const n=Lo(e).indexOf(t);return n<=-1?!1:(Di[e]=Di[e].slice(),Di[e].splice(n,1),!0)},V_e=function(e,t){Lo(e,[].concat(t).map(n=>{const s=(...r)=>(ZN(e,s),n(...r));return s}))},Bp={prefixed:!0},Zh=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Px=Zh[0];let _c;for(let e=0;e<Zh.length;e++)if(Zh[e][1]in dt){_c=Zh[e];break}if(_c){for(let e=0;e<_c.length;e++)Bp[Px[e]]=_c[e];Bp.prefixed=_c[0]!==Px[0]}let Rs=[];const U_e=(e,t)=>(n,s,r)=>{const i=t.levels[s],o=new RegExp(`^(${i})$`);if(n!=="log"&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),Rs){Rs.push([].concat(r));const l=Rs.length-1e3;Rs.splice(0,l>0?l:0)}if(!ge.console)return;let a=ge.console[n];!a&&n==="debug"&&(a=ge.console.info||ge.console.log),!(!a||!i||!o.test(n))&&a[Array.isArray(r)?"apply":"call"](ge.console,r)};function eM(e){let t="info",n;const s=function(...r){n("log",t,r)};return n=U_e(e,s),s.createLogger=r=>eM(e+": "+r),s.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},s.level=r=>{if(typeof r=="string"){if(!s.levels.hasOwnProperty(r))throw new Error(`"${r}" in not a valid log level`);t=r}return t},s.history=()=>Rs?[].concat(Rs):[],s.history.filter=r=>(Rs||[]).filter(i=>new RegExp(`.*${r}.*`).test(i[0])),s.history.clear=()=>{Rs&&(Rs.length=0)},s.history.disable=()=>{Rs!==null&&(Rs.length=0,Rs=null)},s.history.enable=()=>{Rs===null&&(Rs=[])},s.error=(...r)=>n("error",t,r),s.warn=(...r)=>n("warn",t,r),s.debug=(...r)=>n("debug",t,r),s}const tn=eM("VIDEOJS"),tM=tn.createLogger,H_e=Object.prototype.toString,nM=function(e){return bi(e)?Object.keys(e):[]};function Ml(e,t){nM(e).forEach(n=>t(e[n],n))}function sM(e,t,n=0){return nM(e).reduce((s,r)=>t(s,e[r],r),n)}function bi(e){return!!e&&typeof e=="object"}function pu(e){return bi(e)&&H_e.call(e)==="[object Object]"&&e.constructor===Object}function Tn(...e){const t={};return e.forEach(n=>{n&&Ml(n,(s,r)=>{if(!pu(s)){t[r]=s;return}pu(t[r])||(t[r]={}),t[r]=Tn(t[r],s)})}),t}function ig(e,t,n,s=!0){const r=o=>Object.defineProperty(e,t,{value:o,enumerable:!0,writable:!0}),i={configurable:!0,enumerable:!0,get(){const o=n();return r(o),o}};return s&&(i.set=r),Object.defineProperty(e,t,i)}var z_e=Object.freeze({__proto__:null,each:Ml,reduce:sM,isObject:bi,isPlain:pu,merge:Tn,defineLazyProperty:ig});let N1=!1,rM=null,_i=!1,iM,oM=!1,Rl=!1,Ll=!1,Ti=!1,M1=null,og=null,aM=null,Vp=!1,ag=!1,Up=!1,lg=!1;const $d=!!(Mu()&&("ontouchstart"in ge||ge.navigator.maxTouchPoints||ge.DocumentTouch&&ge.document instanceof ge.DocumentTouch)),ul=ge.navigator&&ge.navigator.userAgentData;ul&&(_i=ul.platform==="Android",Rl=!!ul.brands.find(e=>e.brand==="Microsoft Edge"),Ll=!!ul.brands.find(e=>e.brand==="Chromium"),Ti=!Rl&&Ll,M1=og=(ul.brands.find(e=>e.brand==="Chromium")||{}).version||null,ag=ul.platform==="Windows");if(!Ll){const e=ge.navigator&&ge.navigator.userAgent||"";N1=/iPod/i.test(e),rM=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),_i=/Android/i.test(e),iM=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const n=t[1]&&parseFloat(t[1]),s=t[2]&&parseFloat(t[2]);return n&&s?parseFloat(t[1]+"."+t[2]):n||null}(),oM=/Firefox/i.test(e),Rl=/Edg/i.test(e),Ll=/Chrome/i.test(e)||/CriOS/i.test(e),Ti=!Rl&&Ll,M1=og=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),aM=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let n=t&&parseFloat(t[1]);return!n&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(n=11),n}(),Vp=/Safari/i.test(e)&&!Ti&&!_i&&!Rl,ag=/Windows/i.test(e),Up=/iPad/i.test(e)||Vp&&$d&&!/iPhone/i.test(e),lg=/iPhone/i.test(e)&&!Up}const Es=lg||Up||N1,ug=(Vp||Es)&&!Ti;var j_e=Object.freeze({__proto__:null,get IS_IPOD(){return N1},get IOS_VERSION(){return rM},get IS_ANDROID(){return _i},get ANDROID_VERSION(){return iM},get IS_FIREFOX(){return oM},get IS_EDGE(){return Rl},get IS_CHROMIUM(){return Ll},get IS_CHROME(){return Ti},get CHROMIUM_VERSION(){return M1},get CHROME_VERSION(){return og},get IE_VERSION(){return aM},get IS_SAFARI(){return Vp},get IS_WINDOWS(){return ag},get IS_IPAD(){return Up},get IS_IPHONE(){return lg},TOUCH_ENABLED:$d,IS_IOS:Es,IS_ANY_SAFARI:ug});function $x(e){return typeof e=="string"&&!!e.trim()}function K_e(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Mu(){return dt===ge.document}function Ru(e){return bi(e)&&e.nodeType===1}function lM(){try{return ge.parent!==ge.self}catch{return!0}}function uM(e){return function(t,n){if(!$x(t))return dt[e](null);$x(n)&&(n=dt.querySelector(n));const s=Ru(n)?n:dt;return s[e]&&s[e](t)}}function Jt(e="div",t={},n={},s){const r=dt.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(i){const o=t[i];i==="textContent"?qo(r,o):(r[i]!==o||i==="tabIndex")&&(r[i]=o)}),Object.getOwnPropertyNames(n).forEach(function(i){r.setAttribute(i,n[i])}),s&&R1(r,s),r}function qo(e,t){return typeof e.textContent>"u"?e.innerText=t:e.textContent=t,e}function Ly(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Fc(e,t){return K_e(t),e.classList.contains(t)}function Aa(e,...t){return e.classList.add(...t.reduce((n,s)=>n.concat(s.split(/\s+/)),[])),e}function cg(e,...t){return e?(e.classList.remove(...t.reduce((n,s)=>n.concat(s.split(/\s+/)),[])),e):(tn.warn("removeClass was called with an element that doesn't exist"),null)}function cM(e,t,n){return typeof n=="function"&&(n=n(e,t)),typeof n!="boolean"&&(n=void 0),t.split(/\s+/).forEach(s=>e.classList.toggle(s,n)),e}function dM(e,t){Object.getOwnPropertyNames(t).forEach(function(n){const s=t[n];s===null||typeof s>"u"||s===!1?e.removeAttribute(n):e.setAttribute(n,s===!0?"":s)})}function _o(e){const t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0){const s=e.attributes;for(let r=s.length-1;r>=0;r--){const i=s[r].name;let o=s[r].value;(typeof e[i]=="boolean"||n.indexOf(","+i+",")!==-1)&&(o=o!==null),t[i]=o}}return t}function fM(e,t){return e.getAttribute(t)}function mu(e,t,n){e.setAttribute(t,n)}function dg(e,t){e.removeAttribute(t)}function hM(){dt.body.focus(),dt.onselectstart=function(){return!1}}function pM(){dt.onselectstart=function(){return!0}}function gu(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(s=>{t[s]!==void 0&&(n[s]=t[s])}),n.height||(n.height=parseFloat(vu(e,"height"))),n.width||(n.width=parseFloat(vu(e,"width"))),n}}function Nd(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,n=e.offsetHeight;let s=0,r=0;for(;e.offsetParent&&e!==dt[Bp.fullscreenElement];)s+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:s,top:r,width:t,height:n}}function fg(e,t){const n={x:0,y:0};if(Es){let d=e;for(;d&&d.nodeName.toLowerCase()!=="html";){const f=vu(d,"transform");if(/^matrix/.test(f)){const h=f.slice(7,-1).split(/,\s/).map(Number);n.x+=h[4],n.y+=h[5]}else if(/^matrix3d/.test(f)){const h=f.slice(9,-1).split(/,\s/).map(Number);n.x+=h[12],n.y+=h[13]}d=d.parentNode}}const s={},r=Nd(t.target),i=Nd(e),o=i.width,a=i.height;let l=t.offsetY-(i.top-r.top),u=t.offsetX-(i.left-r.left);return t.changedTouches&&(u=t.changedTouches[0].pageX-i.left,l=t.changedTouches[0].pageY+i.top,Es&&(u-=n.x,l-=n.y)),s.y=1-Math.max(0,Math.min(1,l/a)),s.x=Math.max(0,Math.min(1,u/o)),s}function mM(e){return bi(e)&&e.nodeType===3}function hg(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function gM(e){return typeof e=="function"&&(e=e()),(Array.isArray(e)?e:[e]).map(t=>{if(typeof t=="function"&&(t=t()),Ru(t)||mM(t))return t;if(typeof t=="string"&&/\S/.test(t))return dt.createTextNode(t)}).filter(t=>t)}function R1(e,t){return gM(t).forEach(n=>e.appendChild(n)),e}function vM(e,t){return R1(hg(e),t)}function Md(e){return e.button===void 0&&e.buttons===void 0||e.button===0&&e.buttons===void 0||e.type==="mouseup"&&e.button===0&&e.buttons===0?!0:!(e.button!==0||e.buttons!==1)}const Do=uM("querySelector"),yM=uM("querySelectorAll");function vu(e,t){if(!e||!t)return"";if(typeof ge.getComputedStyle=="function"){let n;try{n=ge.getComputedStyle(e)}catch{return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var bM=Object.freeze({__proto__:null,isReal:Mu,isEl:Ru,isInFrame:lM,createEl:Jt,textContent:qo,prependTo:Ly,hasClass:Fc,addClass:Aa,removeClass:cg,toggleClass:cM,setAttributes:dM,getAttributes:_o,getAttribute:fM,setAttribute:mu,removeAttribute:dg,blockTextSelection:hM,unblockTextSelection:pM,getBoundingClientRect:gu,findPosition:Nd,getPointerPosition:fg,isTextNode:mM,emptyEl:hg,normalizeContent:gM,appendContent:R1,insertContent:vM,isSingleLeftClick:Md,$:Do,$$:yM,computedStyle:vu});let _M=!1,Dy;const W_e=function(){if(Dy.options.autoSetup===!1)return;const e=Array.prototype.slice.call(dt.getElementsByTagName("video")),t=Array.prototype.slice.call(dt.getElementsByTagName("audio")),n=Array.prototype.slice.call(dt.getElementsByTagName("video-js")),s=e.concat(t,n);if(s&&s.length>0)for(let r=0,i=s.length;r<i;r++){const o=s[r];if(o&&o.getAttribute)o.player===void 0&&o.getAttribute("data-setup")!==null&&Dy(o);else{Fy(1);break}}else _M||Fy(1)};function Fy(e,t){Mu()&&(t&&(Dy=t),ge.setTimeout(W_e,e))}function By(){_M=!0,ge.removeEventListener("load",By)}Mu()&&(dt.readyState==="complete"?By():ge.addEventListener("load",By));const TM=function(e){const t=dt.createElement("style");return t.className=e,t},SM=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var bs=new WeakMap;const q_e=3;let G_e=q_e;function Si(){return G_e++}function Nx(e,t){if(!bs.has(e))return;const n=bs.get(e);n.handlers[t].length===0&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),Object.getOwnPropertyNames(n).length===0&&bs.delete(e)}function L1(e,t,n,s){n.forEach(function(r){e(t,r,s)})}function pg(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||ge.event;e={};for(const r in s)r!=="layerX"&&r!=="layerY"&&r!=="keyLocation"&&r!=="webkitMovementX"&&r!=="webkitMovementY"&&r!=="path"&&(r==="returnValue"&&s.preventDefault||(e[r]=s[r]));if(e.target||(e.target=e.srcElement||dt),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,e.clientX!==null&&e.clientX!==void 0){const r=dt.documentElement,i=dt.body;e.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)}e.which=e.charCode||e.keyCode,e.button!==null&&e.button!==void 0&&(e.button=e.button&1?0:e.button&4?1:e.button&2?2:0)}return e.fixed_=!0,e}let dh;const Y_e=function(){if(typeof dh!="boolean"){dh=!1;try{const e=Object.defineProperty({},"passive",{get(){dh=!0}});ge.addEventListener("test",null,e),ge.removeEventListener("test",null,e)}catch{}}return dh},X_e=["touchstart","touchmove"];function ir(e,t,n){if(Array.isArray(t))return L1(ir,e,t,n);bs.has(e)||bs.set(e,{});const s=bs.get(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),n.guid||(n.guid=Si()),s.handlers[t].push(n),s.dispatcher||(s.disabled=!1,s.dispatcher=function(r,i){if(s.disabled)return;r=pg(r);const o=s.handlers[r.type];if(o){const a=o.slice(0);for(let l=0,u=a.length;l<u&&!r.isImmediatePropagationStopped();l++)try{a[l].call(e,r,i)}catch(d){tn.error(d)}}}),s.handlers[t].length===1)if(e.addEventListener){let r=!1;Y_e()&&X_e.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,s.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function cs(e,t,n){if(!bs.has(e))return;const s=bs.get(e);if(!s.handlers)return;if(Array.isArray(t))return L1(cs,e,t,n);const r=function(o,a){s.handlers[a]=[],Nx(o,a)};if(t===void 0){for(const o in s.handlers)Object.prototype.hasOwnProperty.call(s.handlers||{},o)&&r(e,o);return}const i=s.handlers[t];if(i){if(!n){r(e,t);return}if(n.guid)for(let o=0;o<i.length;o++)i[o].guid===n.guid&&i.splice(o--,1);Nx(e,t)}}function Lu(e,t,n){const s=bs.has(e)?bs.get(e):{},r=e.parentNode||e.ownerDocument;if(typeof t=="string"?t={type:t,target:e}:t.target||(t.target=e),t=pg(t),s.dispatcher&&s.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&t.bubbles===!0)Lu.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){bs.has(t.target)||bs.set(t.target,{});const i=bs.get(t.target);t.target[t.type]&&(i.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),i.disabled=!1)}return!t.defaultPrevented}function mg(e,t,n){if(Array.isArray(t))return L1(mg,e,t,n);const s=function(){cs(e,t,s),n.apply(this,arguments)};s.guid=n.guid=n.guid||Si(),ir(e,t,s)}function D1(e,t,n){const s=function(){cs(e,t,s),n.apply(this,arguments)};s.guid=n.guid=n.guid||Si(),ir(e,t,s)}var Q_e=Object.freeze({__proto__:null,fixEvent:pg,on:ir,off:cs,trigger:Lu,one:mg,any:D1});const wr=30,Sn=function(e,t,n){t.guid||(t.guid=Si());const s=t.bind(e);return s.guid=n?n+"_"+t.guid:t.guid,s},wi=function(e,t){let n=ge.performance.now();return function(...r){const i=ge.performance.now();i-n>=t&&(e(...r),n=i)}},wM=function(e,t,n,s=ge){let r;const i=()=>{s.clearTimeout(r),r=null},o=function(){const a=this,l=arguments;let u=function(){r=null,u=null,n||e.apply(a,l)};!r&&n&&e.apply(a,l),s.clearTimeout(r),r=s.setTimeout(u,t)};return o.cancel=i,o};var J_e=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:wr,bind_:Sn,throttle:wi,debounce:wM});let cc;class Cr{on(t,n){const s=this.addEventListener;this.addEventListener=()=>{},ir(this,t,n),this.addEventListener=s}off(t,n){cs(this,t,n)}one(t,n){const s=this.addEventListener;this.addEventListener=()=>{},mg(this,t,n),this.addEventListener=s}any(t,n){const s=this.addEventListener;this.addEventListener=()=>{},D1(this,t,n),this.addEventListener=s}trigger(t){const n=t.type||t;typeof t=="string"&&(t={type:n}),t=pg(t),this.allowedEvents_[n]&&this["on"+n]&&this["on"+n](t),Lu(this,t)}queueTrigger(t){cc||(cc=new Map);const n=t.type||t;let s=cc.get(this);s||(s=new Map,cc.set(this,s));const r=s.get(n);s.delete(n),ge.clearTimeout(r);const i=ge.setTimeout(()=>{s.delete(n),s.size===0&&(s=null,cc.delete(this)),this.trigger(t)},0);s.set(n,i)}}Cr.prototype.allowedEvents_={};Cr.prototype.addEventListener=Cr.prototype.on;Cr.prototype.removeEventListener=Cr.prototype.off;Cr.prototype.dispatchEvent=Cr.prototype.trigger;const gg=e=>typeof e.name=="function"?e.name():typeof e.name=="string"?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,zi=e=>e instanceof Cr||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>typeof e[t]=="function"),Z_e=(e,t)=>{zi(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},Vy=e=>typeof e=="string"&&/\S/.test(e)||Array.isArray(e)&&!!e.length,Hp=(e,t,n)=>{if(!e||!e.nodeName&&!zi(e))throw new Error(`Invalid target for ${gg(t)}#${n}; must be a DOM node or evented object.`)},CM=(e,t,n)=>{if(!Vy(e))throw new Error(`Invalid event type for ${gg(t)}#${n}; must be a non-empty string or array.`)},EM=(e,t,n)=>{if(typeof e!="function")throw new Error(`Invalid listener for ${gg(t)}#${n}; must be a function.`)},Iv=(e,t,n)=>{const s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let r,i,o;return s?(r=e.eventBusEl_,t.length>=3&&t.shift(),[i,o]=t):[r,i,o]=t,Hp(r,e,n),CM(i,e,n),EM(o,e,n),o=Sn(e,o),{isTargetingSelf:s,target:r,type:i,listener:o}},ra=(e,t,n,s)=>{Hp(e,e,t),e.nodeName?Q_e[t](e,n,s):e[t](n,s)},e1e={on(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=Iv(this,e,"on");if(ra(n,"on",s,r),!t){const i=()=>this.off(n,s,r);i.guid=r.guid;const o=()=>this.off("dispose",i);o.guid=r.guid,ra(this,"on","dispose",i),ra(n,"on","dispose",o)}},one(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=Iv(this,e,"one");if(t)ra(n,"one",s,r);else{const i=(...o)=>{this.off(n,s,i),r.apply(null,o)};i.guid=r.guid,ra(n,"one",s,i)}},any(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=Iv(this,e,"any");if(t)ra(n,"any",s,r);else{const i=(...o)=>{this.off(n,s,i),r.apply(null,o)};i.guid=r.guid,ra(n,"any",s,i)}},off(e,t,n){if(!e||Vy(e))cs(this.eventBusEl_,e,t);else{const s=e,r=t;Hp(s,this,"off"),CM(r,this,"off"),EM(n,this,"off"),n=Sn(this,n),this.off("dispose",n),s.nodeName?(cs(s,r,n),cs(s,"dispose",n)):zi(s)&&(s.off(r,n),s.off("dispose",n))}},trigger(e,t){Hp(this.eventBusEl_,this,"trigger");const n=e&&typeof e!="string"?e.type:e;if(!Vy(n))throw new Error(`Invalid event type for ${gg(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return Lu(this.eventBusEl_,e,t)}};function F1(e,t={}){const{eventBusKey:n}=t;if(n){if(!e[n].nodeName)throw new Error(`The eventBusKey "${n}" does not refer to an element.`);e.eventBusEl_=e[n]}else e.eventBusEl_=Jt("span",{className:"vjs-event-bus"});return Object.assign(e,e1e),e.eventedCallbacks&&e.eventedCallbacks.forEach(s=>{s()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(s){s&&bs.has(s)&&bs.delete(s)}),ge.setTimeout(()=>{e.eventBusEl_=null},0)}),e}const t1e={state:{},setState(e){typeof e=="function"&&(e=e());let t;return Ml(e,(n,s)=>{this.state[s]!==n&&(t=t||{},t[s]={from:this.state[s],to:n}),this.state[s]=n}),t&&zi(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function xM(e,t){return Object.assign(e,t1e),e.state=Object.assign({},e.state,t),typeof e.handleStateChanged=="function"&&zi(e)&&e.on("statechanged",e.handleStateChanged),e}const Bc=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toLowerCase())},$n=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toUpperCase())},kM=function(e,t){return $n(e)===$n(t)};var n1e=Object.freeze({__proto__:null,toLowerCase:Bc,toTitleCase:$n,titleCaseEquals:kM});class Xe{constructor(t,n,s){if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Tn({},this.options_),n=this.options_=Tn(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){const r=t&&t.id&&t.id()||"no_player";this.id_=`${r}_component_${Si()}`}this.name_=n.name||null,n.el?this.el_=n.el:n.createEl!==!1&&(this.el_=this.createEl()),n.className&&this.el_&&n.className.split(" ").forEach(r=>this.addClass(r)),n.evented!==!1&&(F1(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),xM(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,n.initChildren!==!1&&this.initChildren(),this.ready(s),n.reportTouchActivity!==!1&&this.enableTouchActivity()}dispose(t={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let n=this.children_.length-1;n>=0;n--)this.children_[n].dispose&&this.children_[n].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(t.restoreEl?this.el_.parentNode.replaceChild(t.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(t){return t?(this.options_=Tn(this.options_,t),this.options_):this.options_}el(){return this.el_}createEl(t,n,s){return Jt(t,n,s)}localize(t,n,s=t){const r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[r],a=r&&r.split("-")[0],l=i&&i[a];let u=s;return o&&o[t]?u=o[t]:l&&l[t]&&(u=l[t]),n&&(u=u.replace(/\{(\d+)\}/g,function(d,f){const h=n[f-1];let p=h;return typeof h>"u"&&(p=d),p})),u}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(t){return this.childIndex_[t]}getChild(t){if(t)return this.childNameIndex_[t]}getDescendant(...t){t=t.reduce((s,r)=>s.concat(r),[]);let n=this;for(let s=0;s<t.length;s++)if(n=n.getChild(t[s]),!n||!n.getChild)return;return n}addChild(t,n={},s=this.children_.length){let r,i;if(typeof t=="string"){i=$n(t);const o=n.componentClass||i;n.name=i;const a=Xe.getComponent(o);if(!a)throw new Error(`Component ${o} does not exist`);if(typeof a!="function")return null;r=new a(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(s,0,r),r.parentComponent_=this,typeof r.id=="function"&&(this.childIndex_[r.id()]=r),i=i||r.name&&$n(r.name()),i&&(this.childNameIndex_[i]=r,this.childNameIndex_[Bc(i)]=r),typeof r.el=="function"&&r.el()){let o=null;this.children_[s+1]&&(this.children_[s+1].el_?o=this.children_[s+1].el_:Ru(this.children_[s+1])&&(o=this.children_[s+1])),this.contentEl().insertBefore(r.el(),o)}return r}removeChild(t){if(typeof t=="string"&&(t=this.getChild(t)),!t||!this.children_)return;let n=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===t){n=!0,this.children_.splice(r,1);break}if(!n)return;t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[$n(t.name())]=null,this.childNameIndex_[Bc(t.name())]=null;const s=t.el();s&&s.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}initChildren(){const t=this.options_.children;if(t){const n=this.options_,s=o=>{const a=o.name;let l=o.opts;if(n[a]!==void 0&&(l=n[a]),l===!1)return;l===!0&&(l={}),l.playerOptions=this.options_.playerOptions;const u=this.addChild(a,l);u&&(this[a]=u)};let r;const i=Xe.getComponent("Tech");Array.isArray(t)?r=t:r=Object.keys(t),r.concat(Object.keys(this.options_).filter(function(o){return!r.some(function(a){return typeof a=="string"?o===a:o===a.name})})).map(o=>{let a,l;return typeof o=="string"?(a=o,l=t[a]||this.options_[a]||{}):(a=o.name,l=o),{name:a,opts:l}}).filter(o=>{const a=Xe.getComponent(o.opts.componentClass||$n(o.name));return a&&!i.isTech(a)}).forEach(s)}}buildCSSClass(){return""}ready(t,n=!1){if(t){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t);return}n?t.call(this):this.setTimeout(t,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(n){n.call(this)},this),this.trigger("ready")},1)}$(t,n){return Do(t,n||this.contentEl())}$$(t,n){return yM(t,n||this.contentEl())}hasClass(t){return Fc(this.el_,t)}addClass(...t){Aa(this.el_,...t)}removeClass(...t){cg(this.el_,...t)}toggleClass(t,n){cM(this.el_,t,n)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(t){return fM(this.el_,t)}setAttribute(t,n){mu(this.el_,t,n)}removeAttribute(t){dg(this.el_,t)}width(t,n){return this.dimension("width",t,n)}height(t,n){return this.dimension("height",t,n)}dimensions(t,n){this.width(t,!0),this.height(n)}dimension(t,n,s){if(n!==void 0){(n===null||n!==n)&&(n=0),(""+n).indexOf("%")!==-1||(""+n).indexOf("px")!==-1?this.el_.style[t]=n:n==="auto"?this.el_.style[t]="":this.el_.style[t]=n+"px",s||this.trigger("componentresize");return}if(!this.el_)return 0;const r=this.el_.style[t],i=r.indexOf("px");return parseInt(i!==-1?r.slice(0,i):this.el_["offset"+$n(t)],10)}currentDimension(t){let n=0;if(t!=="width"&&t!=="height")throw new Error("currentDimension only accepts width or height value");if(n=vu(this.el_,t),n=parseFloat(n),n===0||isNaN(n)){const s=`offset${$n(t)}`;n=this.el_[s]}return n}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(t){this.player_&&(jt.isEventKey(t,"Tab")||t.stopPropagation(),this.player_.handleKeyDown(t))}handleKeyPress(t){this.handleKeyDown(t)}emitTapEvents(){let t=0,n=null;const s=10,r=200;let i;this.on("touchstart",function(a){a.touches.length===1&&(n={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY},t=ge.performance.now(),i=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)i=!1;else if(n){const l=a.touches[0].pageX-n.pageX,u=a.touches[0].pageY-n.pageY;Math.sqrt(l*l+u*u)>s&&(i=!1)}});const o=function(){i=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(a){n=null,i===!0&&ge.performance.now()-t<r&&(a.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const t=Sn(this.player(),this.player().reportUserActivity);let n;this.on("touchstart",function(){t(),this.clearInterval(n),n=this.setInterval(t,250)});const s=function(r){t(),this.clearInterval(n)};this.on("touchmove",t),this.on("touchend",s),this.on("touchcancel",s)}setTimeout(t,n){var s;return t=Sn(this,t),this.clearTimersOnDispose_(),s=ge.setTimeout(()=>{this.setTimeoutIds_.has(s)&&this.setTimeoutIds_.delete(s),t()},n),this.setTimeoutIds_.add(s),s}clearTimeout(t){return this.setTimeoutIds_.has(t)&&(this.setTimeoutIds_.delete(t),ge.clearTimeout(t)),t}setInterval(t,n){t=Sn(this,t),this.clearTimersOnDispose_();const s=ge.setInterval(t,n);return this.setIntervalIds_.add(s),s}clearInterval(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),ge.clearInterval(t)),t}requestAnimationFrame(t){this.clearTimersOnDispose_();var n;return t=Sn(this,t),n=ge.requestAnimationFrame(()=>{this.rafIds_.has(n)&&this.rafIds_.delete(n),t()}),this.rafIds_.add(n),n}requestNamedAnimationFrame(t,n){if(this.namedRafs_.has(t))return;this.clearTimersOnDispose_(),n=Sn(this,n);const s=this.requestAnimationFrame(()=>{n(),this.namedRafs_.has(t)&&this.namedRafs_.delete(t)});return this.namedRafs_.set(t,s),t}cancelNamedAnimationFrame(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))}cancelAnimationFrame(t){return this.rafIds_.has(t)&&(this.rafIds_.delete(t),ge.cancelAnimationFrame(t)),t}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([t,n])=>{this[t].forEach((s,r)=>this[n](r))}),this.clearingTimersOnDispose_=!1}))}static registerComponent(t,n){if(typeof t!="string"||!t)throw new Error(`Illegal component name, "${t}"; must be a non-empty string.`);const s=Xe.getComponent("Tech"),r=s&&s.isTech(n),i=Xe===n||Xe.prototype.isPrototypeOf(n.prototype);if(r||!i){let a;throw r?a="techs must be registered using Tech.registerTech()":a="must be a Component subclass",new Error(`Illegal component, "${t}"; ${a}.`)}t=$n(t),Xe.components_||(Xe.components_={});const o=Xe.getComponent("Player");if(t==="Player"&&o&&o.players){const a=o.players,l=Object.keys(a);if(a&&l.length>0&&l.map(u=>a[u]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return Xe.components_[t]=n,Xe.components_[Bc(t)]=n,n}static getComponent(t){if(!(!t||!Xe.components_))return Xe.components_[t]}}Xe.registerComponent("Component",Xe);function s1e(e,t,n){if(typeof t!="number"||t<0||t>n)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${n}).`)}function Mx(e,t,n,s){return s1e(e,s,n.length-1),n[s][t]}function Pv(e){let t;return e===void 0||e.length===0?t={length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:t={length:e.length,start:Mx.bind(null,"start",0,e),end:Mx.bind(null,"end",1,e)},ge.Symbol&&ge.Symbol.iterator&&(t[ge.Symbol.iterator]=()=>(e||[]).values()),t}function pi(e,t){return Array.isArray(e)?Pv(e):e===void 0||t===void 0?Pv():Pv([[e,t]])}const OM=function(e,t){e=e<0?0:e;let n=Math.floor(e%60),s=Math.floor(e/60%60),r=Math.floor(e/3600);const i=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=s=n="-"),r=r>0||o>0?r+":":"",s=((r||i>=10)&&s<10?"0"+s:s)+":",n=n<10?"0"+n:n,r+s+n};let B1=OM;function AM(e){B1=e}function IM(){B1=OM}function Da(e,t=e){return B1(e,t)}var r1e=Object.freeze({__proto__:null,createTimeRanges:pi,createTimeRange:pi,setFormatTime:AM,resetFormatTime:IM,formatTime:Da});function PM(e,t){let n=0,s,r;if(!t)return 0;(!e||!e.length)&&(e=pi(0,0));for(let i=0;i<e.length;i++)s=e.start(i),r=e.end(i),r>t&&(r=t),n+=r-s;return n/t}function _s(e){if(e instanceof _s)return e;typeof e=="number"?this.code=e:typeof e=="string"?this.message=e:bi(e)&&(typeof e.code=="number"&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=_s.defaultMessages[this.code]||"")}_s.prototype.code=0;_s.prototype.message="";_s.prototype.status=null;_s.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];_s.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(let e=0;e<_s.errorTypes.length;e++)_s[_s.errorTypes[e]]=e,_s.prototype[_s.errorTypes[e]]=e;function Vc(e){return e!=null&&typeof e.then=="function"}function oi(e){Vc(e)&&e.then(null,t=>{})}const Uy=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((n,s,r)=>(e[s]&&(n[s]=e[s]),n),{cues:e.cues&&Array.prototype.map.call(e.cues,function(n){return{startTime:n.startTime,endTime:n.endTime,text:n.text,id:n.id}})})},i1e=function(e){const t=e.$$("track"),n=Array.prototype.map.call(t,r=>r.track);return Array.prototype.map.call(t,function(r){const i=Uy(r.track);return r.src&&(i.src=r.src),i}).concat(Array.prototype.filter.call(e.textTracks(),function(r){return n.indexOf(r)===-1}).map(Uy))},o1e=function(e,t){return e.forEach(function(n){const s=t.addRemoteTextTrack(n).track;!n.src&&n.cues&&n.cues.forEach(r=>s.addCue(r))}),t.textTracks()};var Rx={textTracksToJson:i1e,jsonToTextTracks:o1e,trackToJson_:Uy};const $v="vjs-modal-dialog";class Du extends Xe{constructor(t,n){super(t,n),this.handleKeyDown_=s=>this.handleKeyDown(s),this.close_=s=>this.close(s),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Jt("div",{className:`${$v}-content`},{role:"document"}),this.descEl_=Jt("p",{className:`${$v}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),qo(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${$v} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t}open(){if(!this.opened_){const t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}}opened(t){return typeof t=="boolean"&&this[t?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(t){if(typeof t=="boolean"){const n=this.closeable_=!!t;let s=this.getChild("closeButton");if(n&&!s){const r=this.contentEl_;this.contentEl_=this.el_,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(s,"close",this.close_)}!n&&s&&(this.off(s,"close",this.close_),this.removeChild(s),s.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(t){const n=this.contentEl(),s=n.parentNode,r=n.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,s.removeChild(n),this.empty(),vM(n,t),this.trigger("modalfill"),r?s.insertBefore(n,r):s.appendChild(n);const i=this.getChild("closeButton");i&&s.appendChild(i.el_)}empty(){this.trigger("beforemodalempty"),hg(this.contentEl()),this.trigger("modalempty")}content(t){return typeof t<"u"&&(this.content_=t),this.content_}conditionalFocus_(){const t=dt.activeElement,n=this.player_.el_;this.previouslyActiveEl_=null,(n.contains(t)||n===t)&&(this.previouslyActiveEl_=t,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(t){if(t.stopPropagation(),jt.isEventKey(t,"Escape")&&this.closeable()){t.preventDefault(),this.close();return}if(!jt.isEventKey(t,"Tab"))return;const n=this.focusableEls_(),s=this.el_.querySelector(":focus");let r;for(let i=0;i<n.length;i++)if(s===n[i]){r=i;break}dt.activeElement===this.el_&&(r=0),t.shiftKey&&r===0?(n[n.length-1].focus(),t.preventDefault()):!t.shiftKey&&r===n.length-1&&(n[0].focus(),t.preventDefault())}focusableEls_(){const t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,n=>(n instanceof ge.HTMLAnchorElement||n instanceof ge.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof ge.HTMLInputElement||n instanceof ge.HTMLSelectElement||n instanceof ge.HTMLTextAreaElement||n instanceof ge.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof ge.HTMLIFrameElement||n instanceof ge.HTMLObjectElement||n instanceof ge.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable"))}}Du.prototype.options_={pauseOnOpen:!0,temporary:!0};Xe.registerComponent("ModalDialog",Du);class yu extends Cr{constructor(t=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let n=0;n<t.length;n++)this.addTrack(t[n])}addTrack(t){const n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get(){return this.tracks_[n]}}),this.tracks_.indexOf(t)===-1&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack",target:this})),t.labelchange_=()=>{this.trigger({track:t,type:"labelchange",target:this})},zi(t)&&t.addEventListener("labelchange",t.labelchange_)}removeTrack(t){let n;for(let s=0,r=this.length;s<r;s++)if(this[s]===t){n=this[s],n.off&&n.off(),this.tracks_.splice(s,1);break}n&&this.trigger({track:n,type:"removetrack",target:this})}getTrackById(t){let n=null;for(let s=0,r=this.length;s<r;s++){const i=this[s];if(i.id===t){n=i;break}}return n}}yu.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const e in yu.prototype.allowedEvents_)yu.prototype["on"+e]=null;const Nv=function(e,t){for(let n=0;n<e.length;n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].enabled=!1)};class a1e extends yu{constructor(t=[]){for(let n=t.length-1;n>=0;n--)if(t[n].enabled){Nv(t,t[n]);break}super(t),this.changing_=!1}addTrack(t){t.enabled&&Nv(this,t),super.addTrack(t),t.addEventListener&&(t.enabledChange_=()=>{this.changing_||(this.changing_=!0,Nv(this,t),this.changing_=!1,this.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))}removeTrack(t){super.removeTrack(t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)}}const Mv=function(e,t){for(let n=0;n<e.length;n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].selected=!1)};class l1e extends yu{constructor(t=[]){for(let n=t.length-1;n>=0;n--)if(t[n].selected){Mv(t,t[n]);break}super(t),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let n=0;n<this.length;n++)if(this[n].selected)return n;return-1},set(){}})}addTrack(t){t.selected&&Mv(this,t),super.addTrack(t),t.addEventListener&&(t.selectedChange_=()=>{this.changing_||(this.changing_=!0,Mv(this,t),this.changing_=!1,this.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))}removeTrack(t){super.removeTrack(t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)}}class $M extends yu{addTrack(t){super.addTrack(t),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),t.addEventListener("modechange",this.queueChange_),["metadata","chapters"].indexOf(t.kind)===-1&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(t){super.removeTrack(t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class u1e{constructor(t=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let n=0,s=t.length;n<s;n++)this.addTrackElement_(t[n])}addTrackElement_(t){const n=this.trackElements_.length;""+n in this||Object.defineProperty(this,n,{get(){return this.trackElements_[n]}}),this.trackElements_.indexOf(t)===-1&&this.trackElements_.push(t)}getTrackElementByTrack_(t){let n;for(let s=0,r=this.trackElements_.length;s<r;s++)if(t===this.trackElements_[s].track){n=this.trackElements_[s];break}return n}removeTrackElement_(t){for(let n=0,s=this.trackElements_.length;n<s;n++)if(t===this.trackElements_[n]){this.trackElements_[n].track&&typeof this.trackElements_[n].track.off=="function"&&this.trackElements_[n].track.off(),typeof this.trackElements_[n].off=="function"&&this.trackElements_[n].off(),this.trackElements_.splice(n,1);break}}}class zp{constructor(t){zp.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(t){const n=this.length||0;let s=0;const r=t.length;this.cues_=t,this.length_=t.length;const i=function(o){""+o in this||Object.defineProperty(this,""+o,{get(){return this.cues_[o]}})};if(n<r)for(s=n;s<r;s++)i.call(this,s)}getCueById(t){let n=null;for(let s=0,r=this.length;s<r;s++){const i=this[s];if(i.id===t){n=i;break}}return n}}const c1e={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},d1e={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},f1e={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Lx={disabled:"disabled",hidden:"hidden",showing:"showing"};class V1 extends Cr{constructor(t={}){super();const n={id:t.id||"vjs_track_"+Si(),kind:t.kind||"",language:t.language||""};let s=t.label||"";for(const r in n)Object.defineProperty(this,r,{get(){return n[r]},set(){}});Object.defineProperty(this,"label",{get(){return s},set(r){r!==s&&(s=r,this.trigger("labelchange"))}})}}const U1=function(e){const t=["protocol","hostname","port","pathname","search","hash","host"],n=dt.createElement("a");n.href=e;const s={};for(let r=0;r<t.length;r++)s[t[r]]=n[t[r]];return s.protocol==="http:"&&(s.host=s.host.replace(/:80$/,"")),s.protocol==="https:"&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=ge.location.protocol),s.host||(s.host=ge.location.host),s},NM=function(e){if(!e.match(/^https?:\/\//)){const t=dt.createElement("a");t.href=e,e=t.href}return e},H1=function(e){if(typeof e=="string"){const n=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(n)return n.pop().toLowerCase()}return""},vg=function(e,t=ge.location){const n=U1(e);return(n.protocol===":"?t.protocol:n.protocol)+n.host!==t.protocol+t.host};var h1e=Object.freeze({__proto__:null,parseUrl:U1,getAbsoluteURL:NM,getFileExtension:H1,isCrossOrigin:vg});const Dx=function(e,t){const n=new ge.WebVTT.Parser(ge,ge.vttjs,ge.WebVTT.StringDecoder()),s=[];n.oncue=function(r){t.addCue(r)},n.onparsingerror=function(r){s.push(r)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),s.length>0&&(ge.console&&ge.console.groupCollapsed&&ge.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),s.forEach(r=>tn.error(r)),ge.console&&ge.console.groupEnd&&ge.console.groupEnd()),n.flush()},Fx=function(e,t){const n={uri:e},s=vg(e);s&&(n.cors=s);const r=t.tech_.crossOrigin()==="use-credentials";r&&(n.withCredentials=r),xd(n,Sn(this,function(i,o,a){if(i)return tn.error(i,o);t.loaded_=!0,typeof ge.WebVTT!="function"?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],l=>{if(l.type==="vttjserror"){tn.error(`vttjs failed to load, stopping trying to process ${t.src}`);return}return Dx(a,t)}):Dx(a,t)}))};class af extends V1{constructor(t={}){if(!t.tech)throw new Error("A tech was not provided.");const n=Tn(t,{kind:f1e[t.kind]||"subtitles",language:t.language||t.srclang||""});let s=Lx[n.mode]||"disabled";const r=n.default;(n.kind==="metadata"||n.kind==="chapters")&&(s="hidden"),super(n),this.tech_=n.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;const i=new zp(this.cues_),o=new zp(this.activeCues_);let a=!1;this.timeupdateHandler=Sn(this,function(u={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){u.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,a&&(this.trigger("cuechange"),a=!1),u.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});const l=()=>{this.stopTracking()};this.tech_.one("dispose",l),s!=="disabled"&&this.startTracking(),Object.defineProperties(this,{default:{get(){return r},set(){}},mode:{get(){return s},set(u){Lx[u]&&s!==u&&(s=u,!this.preload_&&s!=="disabled"&&this.cues.length===0&&Fx(this.src,this),this.stopTracking(),s!=="disabled"&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?i:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return o;const u=this.tech_.currentTime(),d=[];for(let f=0,h=this.cues.length;f<h;f++){const p=this.cues[f];p.startTime<=u&&p.endTime>=u&&d.push(p)}if(a=!1,d.length!==this.activeCues_.length)a=!0;else for(let f=0;f<d.length;f++)this.activeCues_.indexOf(d[f])===-1&&(a=!0);return this.activeCues_=d,o.setCues_(this.activeCues_),o},set(){}}}),n.src?(this.src=n.src,this.preload_||(this.loaded_=!0),(this.preload_||n.kind!=="subtitles"&&n.kind!=="captions")&&Fx(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(t){let n=t;if(ge.vttjs&&!(t instanceof ge.vttjs.VTTCue)){n=new ge.vttjs.VTTCue(t.startTime,t.endTime,t.text);for(const r in t)r in n||(n[r]=t[r]);n.id=t.id,n.originalCue_=t}const s=this.tech_.textTracks();for(let r=0;r<s.length;r++)s[r]!==this&&s[r].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)}removeCue(t){let n=this.cues_.length;for(;n--;){const s=this.cues_[n];if(s===t||s.originalCue_&&s.originalCue_===t){this.cues_.splice(n,1),this.cues.setCues_(this.cues_);break}}}}af.prototype.allowedEvents_={cuechange:"cuechange"};class MM extends V1{constructor(t={}){const n=Tn(t,{kind:d1e[t.kind]||""});super(n);let s=!1;Object.defineProperty(this,"enabled",{get(){return s},set(r){typeof r!="boolean"||r===s||(s=r,this.trigger("enabledchange"))}}),n.enabled&&(this.enabled=n.enabled),this.loaded_=!0}}class RM extends V1{constructor(t={}){const n=Tn(t,{kind:c1e[t.kind]||""});super(n);let s=!1;Object.defineProperty(this,"selected",{get(){return s},set(r){typeof r!="boolean"||r===s||(s=r,this.trigger("selectedchange"))}}),n.selected&&(this.selected=n.selected)}}class Zi extends Cr{constructor(t={}){super();let n;const s=new af(t);this.kind=s.kind,this.src=s.src,this.srclang=s.language,this.label=s.label,this.default=s.default,Object.defineProperties(this,{readyState:{get(){return n}},track:{get(){return s}}}),n=Zi.NONE,s.addEventListener("loadeddata",()=>{n=Zi.LOADED,this.trigger({type:"load",target:this})})}}Zi.prototype.allowedEvents_={load:"load"};Zi.NONE=0;Zi.LOADING=1;Zi.LOADED=2;Zi.ERROR=3;const gr={audio:{ListClass:a1e,TrackClass:MM,capitalName:"Audio"},video:{ListClass:l1e,TrackClass:RM,capitalName:"Video"},text:{ListClass:$M,TrackClass:af,capitalName:"Text"}};Object.keys(gr).forEach(function(e){gr[e].getterName=`${e}Tracks`,gr[e].privateName=`${e}Tracks_`});const bu={remoteText:{ListClass:$M,TrackClass:af,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:u1e,TrackClass:Zi,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},vs=Object.assign({},gr,bu);bu.names=Object.keys(bu);gr.names=Object.keys(gr);vs.names=[].concat(bu.names).concat(gr.names);function p1e(e,t,n,s,r={}){const i=e.textTracks();r.kind=t,n&&(r.label=n),s&&(r.language=s),r.tech=e;const o=new vs.text.TrackClass(r);return i.addTrack(o),o}class Yt extends Xe{constructor(t={},n=function(){}){t.reportTouchActivity=!1,super(null,t,n),this.onDurationChange_=s=>this.onDurationChange(s),this.trackProgress_=s=>this.trackProgress(s),this.trackCurrentTime_=s=>this.trackCurrentTime(s),this.stopTrackingCurrentTime_=s=>this.stopTrackingCurrentTime(s),this.disposeSourceHandler_=s=>this.disposeSourceHandler(s),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),vs.names.forEach(s=>{const r=vs[s];t&&t[r.getterName]&&(this[r.privateName]=t[r.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(s=>{t[`native${s}Tracks`]===!1&&(this[`featuresNative${s}Tracks`]=!1)}),t.nativeCaptions===!1||t.nativeTextTracks===!1?this.featuresNativeTextTracks=!1:(t.nativeCaptions===!0||t.nativeTextTracks===!0)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=t.preloadTextTracks!==!1,this.autoRemoteTextTracks_=new vs.text.ListClass,this.initTrackListeners(),t.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(t){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(t),1)),this.trigger({src:t,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Sn(this,function(){const n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress"),this.bufferedPercent_=n,n===1&&this.stopTrackingProgress()}),500)}onDurationChange(t){this.duration_=this.duration()}buffered(){return pi(0,0)}bufferedPercent(){return PM(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(gr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(t){t=[].concat(t),t.forEach(n=>{const s=this[`${n}Tracks`]()||[];let r=s.length;for(;r--;){const i=s[r];n==="text"&&this.removeRemoteTextTrack(i),s.removeTrack(i)}})}cleanupAutoTextTracks(){const t=this.autoRemoteTextTracks_||[];let n=t.length;for(;n--;){const s=t[n];this.removeRemoteTextTrack(s)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(t){return t!==void 0&&(this.error_=new _s(t),this.trigger("error")),this.error_}played(){return this.hasStarted_?pi(0,0):pi()}play(){}setScrubbing(){}scrubbing(){}setCurrentTime(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){gr.names.forEach(t=>{const n=gr[t],s=()=>{this.trigger(`${t}trackchange`)},r=this[n.getterName]();r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),this.on("dispose",()=>{r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})})}addWebVttScript_(){if(!ge.WebVTT)if(dt.body.contains(this.el())){if(!this.options_["vtt.js"]&&pu(Ip)&&Object.keys(Ip).length>0){this.trigger("vttjsloaded");return}const t=dt.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=()=>{this.trigger("vttjsloaded")},t.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{t.onload=null,t.onerror=null}),ge.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const t=this.textTracks(),n=this.remoteTextTracks(),s=a=>t.addTrack(a.track),r=a=>t.removeTrack(a.track);n.on("addtrack",s),n.on("removetrack",r),this.addWebVttScript_();const i=()=>this.trigger("texttrackchange"),o=()=>{i();for(let a=0;a<t.length;a++){const l=t[a];l.removeEventListener("cuechange",i),l.mode==="showing"&&l.addEventListener("cuechange",i)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",function(){n.off("addtrack",s),n.off("removetrack",r),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(let a=0;a<t.length;a++)t[a].removeEventListener("cuechange",i)})}addTextTrack(t,n,s){if(!t)throw new Error("TextTrack kind is required but was not provided");return p1e(this,t,n,s)}createRemoteTextTrack(t){const n=Tn(t,{tech:this});return new bu.remoteTextEl.TrackClass(n)}addRemoteTextTrack(t={},n){const s=this.createRemoteTextTrack(t);return typeof n!="boolean"&&(n=!1),this.remoteTextTrackEls().addTrackElement_(s),this.remoteTextTracks().addTrack(s.track),n===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(s.track)),s}removeRemoteTextTrack(t){const n=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(n),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(t){const n=Si();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",()=>{this.queuedHanders_.has(n)&&(this.queuedHanders_.delete(n),t())})):this.requestNamedAnimationFrame(n,t),n}cancelVideoFrameCallback(t){this.queuedHanders_.has(t)?this.queuedHanders_.delete(t):this.cancelNamedAnimationFrame(t)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(){}overrideNativeVideoTracks(){}canPlayType(){return""}static canPlayType(){return""}static canPlaySource(t,n){return Yt.canPlayType(t.type)}static isTech(t){return t.prototype instanceof Yt||t instanceof Yt||t===Yt}static registerTech(t,n){if(Yt.techs_||(Yt.techs_={}),!Yt.isTech(n))throw new Error(`Tech ${t} must be a Tech`);if(!Yt.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Yt.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=$n(t),Yt.techs_[t]=n,Yt.techs_[Bc(t)]=n,t!=="Tech"&&Yt.defaultTechOrder_.push(t),n}static getTech(t){if(t){if(Yt.techs_&&Yt.techs_[t])return Yt.techs_[t];if(t=$n(t),ge&&ge.videojs&&ge.videojs[t])return tn.warn(`The ${t} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),ge.videojs[t]}}}vs.names.forEach(function(e){const t=vs[e];Yt.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}});Yt.prototype.featuresVolumeControl=!0;Yt.prototype.featuresMuteControl=!0;Yt.prototype.featuresFullscreenResize=!1;Yt.prototype.featuresPlaybackRate=!1;Yt.prototype.featuresProgressEvents=!1;Yt.prototype.featuresSourceset=!1;Yt.prototype.featuresTimeupdateEvents=!1;Yt.prototype.featuresNativeTextTracks=!1;Yt.prototype.featuresVideoFrameCallback=!1;Yt.withSourceHandlers=function(e){e.registerSourceHandler=function(n,s){let r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),s===void 0&&(s=r.length),r.splice(s,0,n)},e.canPlayType=function(n){const s=e.sourceHandlers||[];let r;for(let i=0;i<s.length;i++)if(r=s[i].canPlayType(n),r)return r;return""},e.selectSourceHandler=function(n,s){const r=e.sourceHandlers||[];let i;for(let o=0;o<r.length;o++)if(i=r[o].canHandleSource(n,s),i)return r[o];return null},e.canPlaySource=function(n,s){const r=e.selectSourceHandler(n,s);return r?r.canHandleSource(n,s):""},["seekable","seeking","duration"].forEach(function(n){const s=this[n];typeof s=="function"&&(this[n]=function(){return this.sourceHandler_&&this.sourceHandler_[n]?this.sourceHandler_[n].apply(this.sourceHandler_,arguments):s.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(n){let s=e.selectSourceHandler(n,this.options_);s||(e.nativeSourceHandler?s=e.nativeSourceHandler:tn.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),s!==e.nativeSourceHandler&&(this.currentSource_=n),this.sourceHandler_=s.handleSource(n,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}};Xe.registerComponent("Tech",Yt);Yt.registerTech("Tech",Yt);Yt.defaultTechOrder_=[];const Ia={},Hy={},jp={};function m1e(e,t){Ia[e]=Ia[e]||[],Ia[e].push(t)}function g1e(e,t,n){e.setTimeout(()=>aa(t,Ia[t.type],n,e),1)}function v1e(e,t){e.forEach(n=>n.setTech&&n.setTech(t))}function y1e(e,t,n){return e.reduceRight(z1(n),t[n]())}function b1e(e,t,n,s){return t[n](e.reduce(z1(n),s))}function Bx(e,t,n,s=null){const r="call"+$n(n),i=e.reduce(z1(r),s),o=i===jp,a=o?null:t[n](i);return S1e(e,n,a,o),a}const _1e={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},T1e={setCurrentTime:1,setMuted:1,setVolume:1},Vx={play:1,pause:1};function z1(e){return(t,n)=>t===jp?jp:n[e]?n[e](t):t}function S1e(e,t,n,s){for(let r=e.length-1;r>=0;r--){const i=e[r];i[t]&&i[t](s,n)}}function w1e(e){Hy[e.id()]=null}function C1e(e,t){const n=Hy[e.id()];let s=null;if(n==null)return s=t(e),Hy[e.id()]=[[t,s]],s;for(let r=0;r<n.length;r++){const[i,o]=n[r];i===t&&(s=o)}return s===null&&(s=t(e),n.push([t,s])),s}function aa(e={},t=[],n,s,r=[],i=!1){const[o,...a]=t;if(typeof o=="string")aa(e,Ia[o],n,s,r,i);else if(o){const l=C1e(s,o);if(!l.setSource)return r.push(l),aa(e,a,n,s,r,i);l.setSource(Object.assign({},e),function(u,d){if(u)return aa(e,a,n,s,r,i);r.push(l),aa(d,e.type===d.type?a:Ia[d.type],n,s,r,i)})}else a.length?aa(e,a,n,s,r,i):i?n(e,r):aa(e,Ia["*"],n,s,r,!0)}const E1e={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Kp=function(e=""){const t=H1(e);return E1e[t.toLowerCase()]||""},x1e=(e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const n=e.cache_.sources.filter(r=>r.src===t);if(n.length)return n[0].type;const s=e.$$("source");for(let r=0;r<s.length;r++){const i=s[r];if(i.type&&i.src&&i.src===t)return i.type}return Kp(t)},LM=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(n){n=LM(n),Array.isArray(n)?t=t.concat(n):bi(n)&&t.push(n)}),e=t}else typeof e=="string"&&e.trim()?e=[Ux({src:e})]:bi(e)&&typeof e.src=="string"&&e.src&&e.src.trim()?e=[Ux(e)]:e=[];return e};function Ux(e){if(!e.type){const t=Kp(e.src);t&&(e.type=t)}return e}class k1e extends Xe{constructor(t,n,s){const r=Tn({createEl:!1},n);if(super(t,r,s),!n.playerOptions.sources||n.playerOptions.sources.length===0)for(let i=0,o=n.playerOptions.techOrder;i<o.length;i++){const a=$n(o[i]);let l=Yt.getTech(a);if(a||(l=Xe.getComponent(a)),l&&l.isSupported()){t.loadTech_(a);break}}else t.src(n.playerOptions.sources)}}Xe.registerComponent("MediaLoader",k1e);class yg extends Xe{constructor(t,n){super(t,n),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=s=>this.handleMouseOver(s),this.handleMouseOut_=s=>this.handleMouseOut(s),this.handleClick_=s=>this.handleClick(s),this.handleKeyDown_=s=>this.handleKeyDown(s),this.emitTapEvents(),this.enable()}createEl(t="div",n={},s={}){n=Object.assign({className:this.buildCSSClass(),tabIndex:0},n),t==="button"&&tn.error(`Creating a ClickableComponent with an HTML element of ${t} is not supported; use a Button instead.`),s=Object.assign({role:"button"},s),this.tabIndex_=n.tabIndex;const r=Jt(t,n,s);return r.appendChild(Jt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(t){return this.controlTextEl_=Jt("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_}controlText(t,n=this.el()){if(t===void 0)return this.controlText_||"Need Text";const s=this.localize(t);this.controlText_=t,qo(this.controlTextEl_,s),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&n.setAttribute("title",s)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(t){jt.isEventKey(t,"Space")||jt.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):super.handleKeyDown(t)}}Xe.registerComponent("ClickableComponent",yg);class zy extends yg{constructor(t,n){super(t,n),this.update(),this.update_=s=>this.update(s),t.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Jt("picture",{className:"vjs-poster",tabIndex:-1},{},Jt("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))}crossOrigin(t){if(typeof t>"u")return this.el_?this.el_.querySelector("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;if(t!==null&&t!=="anonymous"&&t!=="use-credentials"){this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${t}"`);return}this.el_.querySelector("img").crossOrigin=t}update(t){const n=this.player().poster();this.setSrc(n),n?this.show():this.hide()}setSrc(t){this.el_.querySelector("img").src=t}handleClick(t){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?oi(this.player_.play()):this.player_.pause())}}zy.prototype.crossorigin=zy.prototype.crossOrigin;Xe.registerComponent("PosterImage",zy);const cr="#222",Hx="#ccc",O1e={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Rv(e,t){let n;if(e.length===4)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else if(e.length===7)n=e.slice(1);else throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Lv(e,t,n){try{e.style[t]=n}catch{return}}class A1e extends Xe{constructor(t,n,s){super(t,n,s);const r=i=>this.updateDisplay(i);t.on("loadstart",i=>this.toggleDisplay(i)),t.on("texttrackchange",r),t.on("loadedmetadata",i=>this.preselectTrack(i)),t.ready(Sn(this,function(){if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",r),t.on("playerresize",r);const i=ge.screen.orientation||ge,o=ge.screen.orientation?"change":"orientationchange";i.addEventListener(o,r),t.on("dispose",()=>i.removeEventListener(o,r));const a=this.options_.playerOptions.tracks||[];for(let l=0;l<a.length;l++)this.player_.addRemoteTextTrack(a[l],!0);this.preselectTrack()}))}preselectTrack(){const t={captions:1,subtitles:1},n=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage;let r,i,o;for(let a=0;a<n.length;a++){const l=n[a];s&&s.enabled&&s.language&&s.language===l.language&&l.kind in t?l.kind===s.kind?o=l:o||(o=l):s&&!s.enabled?(o=null,r=null,i=null):l.default&&(l.kind==="descriptions"&&!r?r=l:l.kind in t&&!i&&(i=l))}o?o.mode="showing":i?i.mode="showing":r&&(r.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){typeof ge.WebVTT=="function"&&ge.WebVTT.processCues(ge,[],this.el_)}updateDisplay(){const t=this.player_.textTracks(),n=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),n){const o=[];for(let a=0;a<t.length;++a){const l=t[a];l.mode==="showing"&&o.push(l)}this.updateForTrack(o);return}let s=null,r=null,i=t.length;for(;i--;){const o=t[i];o.mode==="showing"&&(o.kind==="descriptions"?s=o:r=o)}r?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):s&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(s))}updateDisplayState(t){const n=this.player_.textTrackSettings.getValues(),s=t.activeCues;let r=s.length;for(;r--;){const i=s[r];if(!i)continue;const o=i.displayState;if(n.color&&(o.firstChild.style.color=n.color),n.textOpacity&&Lv(o.firstChild,"color",Rv(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(o.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&Lv(o.firstChild,"backgroundColor",Rv(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?Lv(o,"backgroundColor",Rv(n.windowColor,n.windowOpacity)):o.style.backgroundColor=n.windowColor),n.edgeStyle&&(n.edgeStyle==="dropshadow"?o.firstChild.style.textShadow=`2px 2px 3px ${cr}, 2px 2px 4px ${cr}, 2px 2px 5px ${cr}`:n.edgeStyle==="raised"?o.firstChild.style.textShadow=`1px 1px ${cr}, 2px 2px ${cr}, 3px 3px ${cr}`:n.edgeStyle==="depressed"?o.firstChild.style.textShadow=`1px 1px ${Hx}, 0 1px ${Hx}, -1px -1px ${cr}, 0 -1px ${cr}`:n.edgeStyle==="uniform"&&(o.firstChild.style.textShadow=`0 0 4px ${cr}, 0 0 4px ${cr}, 0 0 4px ${cr}, 0 0 4px ${cr}`)),n.fontPercent&&n.fontPercent!==1){const a=ge.parseFloat(o.style.fontSize);o.style.fontSize=a*n.fontPercent+"px",o.style.height="auto",o.style.top="auto"}n.fontFamily&&n.fontFamily!=="default"&&(n.fontFamily==="small-caps"?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=O1e[n.fontFamily])}}updateForTrack(t){if(Array.isArray(t)||(t=[t]),typeof ge.WebVTT!="function"||t.every(s=>!s.activeCues))return;const n=[];for(let s=0;s<t.length;++s){const r=t[s];for(let i=0;i<r.activeCues.length;++i)n.push(r.activeCues[i])}ge.WebVTT.processCues(ge,n,this.el_);for(let s=0;s<t.length;++s){const r=t[s];for(let i=0;i<r.activeCues.length;++i){const o=r.activeCues[i].displayState;Aa(o,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:s)),r.language&&mu(o,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}Xe.registerComponent("TextTrackDisplay",A1e);class I1e extends Xe{createEl(){const t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),s=Jt("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(s),r}}Xe.registerComponent("LoadingSpinner",I1e);class Vr extends yg{createEl(t,n={},s={}){t="button",n=Object.assign({className:this.buildCSSClass()},n),s=Object.assign({type:"button"},s);const r=Jt(t,n,s);return r.appendChild(Jt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(t,n={}){const s=this.constructor.name;return tn.warn(`Adding an actionable (user controllable) child to a Button (${s}) is not supported; use a ClickableComponent instead.`),Xe.prototype.addChild.call(this,t,n)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(t){if(jt.isEventKey(t,"Space")||jt.isEventKey(t,"Enter")){t.stopPropagation();return}super.handleKeyDown(t)}}Xe.registerComponent("Button",Vr);class DM extends Vr{constructor(t,n){super(t,n),this.mouseused_=!1,this.on("mousedown",s=>this.handleMouseDown(s))}buildCSSClass(){return"vjs-big-play-button"}handleClick(t){const n=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){oi(n),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}const s=this.player_.getChild("controlBar"),r=s&&s.getChild("playToggle");if(!r){this.player_.tech(!0).focus();return}const i=()=>r.focus();Vc(n)?n.then(i,()=>{}):this.setTimeout(i,1)}handleKeyDown(t){this.mouseused_=!1,super.handleKeyDown(t)}handleMouseDown(t){this.mouseused_=!0}}DM.prototype.controlText_="Play Video";Xe.registerComponent("BigPlayButton",DM);class P1e extends Vr{constructor(t,n){super(t,n),this.controlText(n&&n.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(t){this.trigger({type:"close",bubbles:!1})}handleKeyDown(t){jt.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):super.handleKeyDown(t)}}Xe.registerComponent("CloseButton",P1e);class FM extends Vr{constructor(t,n={}){super(t,n),n.replay=n.replay===void 0||n.replay,this.on(t,"play",s=>this.handlePlay(s)),this.on(t,"pause",s=>this.handlePause(s)),n.replay&&this.on(t,"ended",s=>this.handleEnded(s))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(t){this.player_.paused()?oi(this.player_.play()):this.player_.pause()}handleSeeked(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)}handlePlay(t){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")}handlePause(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")}handleEnded(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",n=>this.handleSeeked(n))}}FM.prototype.controlText_="Play";Xe.registerComponent("PlayToggle",FM);class Fu extends Xe{constructor(t,n){super(t,n),this.on(t,["timeupdate","ended"],s=>this.updateContent(s)),this.updateTextNode_()}createEl(){const t=this.buildCSSClass(),n=super.createEl("div",{className:`${t} vjs-time-control vjs-control`}),s=Jt("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return n.appendChild(s),this.contentEl_=Jt("span",{className:`${t}-display`},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}updateTextNode_(t=0){t=Da(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let n=this.textNode_;n&&this.contentEl_.firstChild!==n&&(n=null,tn.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=dt.createTextNode(this.formattedTime_),this.textNode_&&(n?this.contentEl_.replaceChild(this.textNode_,n):this.contentEl_.appendChild(this.textNode_))}))}updateContent(t){}}Fu.prototype.labelText_="Time";Fu.prototype.controlText_="Time";Xe.registerComponent("TimeDisplay",Fu);class j1 extends Fu{buildCSSClass(){return"vjs-current-time"}updateContent(t){let n;this.player_.ended()?n=this.player_.duration():n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(n)}}j1.prototype.labelText_="Current Time";j1.prototype.controlText_="Current Time";Xe.registerComponent("CurrentTimeDisplay",j1);class K1 extends Fu{constructor(t,n){super(t,n);const s=r=>this.updateContent(r);this.on(t,"durationchange",s),this.on(t,"loadstart",s),this.on(t,"loadedmetadata",s)}buildCSSClass(){return"vjs-duration"}updateContent(t){const n=this.player_.duration();this.updateTextNode_(n)}}K1.prototype.labelText_="Duration";K1.prototype.controlText_="Duration";Xe.registerComponent("DurationDisplay",K1);class $1e extends Xe{createEl(){const t=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=super.createEl("div"),s=super.createEl("span",{textContent:"/"});return n.appendChild(s),t.appendChild(n),t}}Xe.registerComponent("TimeDivider",$1e);class W1 extends Fu{constructor(t,n){super(t,n),this.on(t,"durationchange",s=>this.updateContent(s))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const t=super.createEl();return this.options_.displayNegative!==!1&&t.insertBefore(Jt("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t}updateContent(t){if(typeof this.player_.duration()!="number")return;let n;this.player_.ended()?n=0:this.player_.remainingTimeDisplay?n=this.player_.remainingTimeDisplay():n=this.player_.remainingTime(),this.updateTextNode_(n)}}W1.prototype.labelText_="Remaining Time";W1.prototype.controlText_="Remaining Time";Xe.registerComponent("RemainingTimeDisplay",W1);class N1e extends Xe{constructor(t,n){super(t,n),this.updateShowing(),this.on(this.player(),"durationchange",s=>this.updateShowing(s))}createEl(){const t=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Jt("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Jt("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(dt.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,super.dispose()}updateShowing(t){this.player().duration()===1/0?this.show():this.hide()}}Xe.registerComponent("LiveDisplay",N1e);class BM extends Vr{constructor(t,n){super(t,n),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=s=>this.updateLiveEdgeStatus(s),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const t=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Jt("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}BM.prototype.controlText_="Seek to live, currently playing live";Xe.registerComponent("SeekToLive",BM);function lf(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))}var M1e=Object.freeze({__proto__:null,clamp:lf});class q1 extends Xe{constructor(t,n){super(t,n),this.handleMouseDown_=s=>this.handleMouseDown(s),this.handleMouseUp_=s=>this.handleMouseUp(s),this.handleKeyDown_=s=>this.handleKeyDown(s),this.handleClick_=s=>this.handleClick(s),this.handleMouseMove_=s=>this.handleMouseMove(s),this.update_=s=>this.update(s),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(t,n={},s={}){return n.className=n.className+" vjs-slider",n=Object.assign({tabIndex:0},n),s=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},s),super.createEl(t,n,s)}handleMouseDown(t){const n=this.bar.el_.ownerDocument;t.type==="mousedown"&&t.preventDefault(),t.type==="touchstart"&&!Ti&&t.preventDefault(),hM(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n,"mousemove",this.handleMouseMove_),this.on(n,"mouseup",this.handleMouseUp_),this.on(n,"touchmove",this.handleMouseMove_),this.on(n,"touchend",this.handleMouseUp_),this.handleMouseMove(t,!0)}handleMouseMove(t){}handleMouseUp(){const t=this.bar.el_.ownerDocument;pM(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",()=>{const n=this.vertical()?"height":"width";this.bar.el().style[n]=(t*100).toFixed(2)+"%"})),t}getProgress(){return Number(lf(this.getPercent(),0,1).toFixed(4))}calculateDistance(t){const n=fg(this.el_,t);return this.vertical()?n.y:n.x}handleKeyDown(t){jt.isEventKey(t,"Left")||jt.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):jt.isEventKey(t,"Right")||jt.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):super.handleKeyDown(t)}handleClick(t){t.stopPropagation(),t.preventDefault()}vertical(t){if(t===void 0)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}Xe.registerComponent("Slider",q1);const Dv=(e,t)=>lf(e/t*100,0,100).toFixed(2)+"%";class R1e extends Xe{constructor(t,n){super(t,n),this.partEls_=[],this.on(t,"progress",s=>this.update(s))}createEl(){const t=super.createEl("div",{className:"vjs-load-progress"}),n=Jt("span",{className:"vjs-control-text"}),s=Jt("span",{textContent:this.localize("Loaded")}),r=dt.createTextNode(": ");return this.percentageEl_=Jt("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(s),n.appendChild(r),n.appendChild(this.percentageEl_),t}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(t){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const n=this.player_.liveTracker,s=this.player_.buffered(),r=n&&n.isLive()?n.seekableEnd():this.player_.duration(),i=this.player_.bufferedEnd(),o=this.partEls_,a=Dv(i,r);this.percent_!==a&&(this.el_.style.width=a,qo(this.percentageEl_,a),this.percent_=a);for(let l=0;l<s.length;l++){const u=s.start(l),d=s.end(l);let f=o[l];f||(f=this.el_.appendChild(Jt()),o[l]=f),!(f.dataset.start===u&&f.dataset.end===d)&&(f.dataset.start=u,f.dataset.end=d,f.style.left=Dv(u,i),f.style.width=Dv(d-u,i))}for(let l=o.length;l>s.length;l--)this.el_.removeChild(o[l-1]);o.length=s.length})}}Xe.registerComponent("LoadProgressBar",R1e);class L1e extends Xe{constructor(t,n){super(t,n),this.update=wi(Sn(this,this.update),wr)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(t,n,s){const r=Nd(this.el_),i=gu(this.player_.el()),o=t.width*n;if(!i||!r)return;const a=t.left-i.left+o,l=t.width-o+(i.right-t.right);let u=r.width/2;a<u?u+=u-a:l<u&&(u=l),u<0?u=0:u>r.width&&(u=r.width),u=Math.round(u),this.el_.style.right=`-${u}px`,this.write(s)}write(t){qo(this.el_,t)}updateTime(t,n,s,r){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let i;const o=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const a=this.player_.liveTracker.liveWindow(),l=a-n*a;i=(l<1?"":"-")+Da(l,a)}else i=Da(s,o);this.update(t,n,i),r&&r()})}}Xe.registerComponent("TimeTooltip",L1e);class G1 extends Xe{constructor(t,n){super(t,n),this.update=wi(Sn(this,this.update),wr)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(t,n){const s=this.getChild("timeTooltip");if(!s)return;const r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();s.updateTime(t,n,r)}}G1.prototype.options_={children:[]};!Es&&!_i&&G1.prototype.options_.children.push("timeTooltip");Xe.registerComponent("PlayProgressBar",G1);class VM extends Xe{constructor(t,n){super(t,n),this.update=wi(Sn(this,this.update),wr)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(t,n){const s=n*this.player_.duration();this.getChild("timeTooltip").updateTime(t,n,s,()=>{this.el_.style.left=`${t.width*n}px`})}}VM.prototype.options_={children:["timeTooltip"]};Xe.registerComponent("MouseTimeDisplay",VM);const fh=5,zx=12;class Y1 extends q1{constructor(t,n){super(t,n),this.setEventHandlers_()}setEventHandlers_(){this.update_=Sn(this,this.update),this.update=wi(this.update_,wr),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=t=>this.enableInterval_(t),this.disableIntervalHandler_=t=>this.disableInterval_(t),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in dt&&"visibilityState"in dt&&this.on(dt,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(t){dt.visibilityState==="hidden"?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(t)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,wr))}disableInterval_(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&t.type!=="ended"||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(t){if(dt.visibilityState==="hidden")return;const n=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const s=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),r=this.player_.liveTracker;let i=this.player_.duration();r&&r.isLive()&&(i=this.player_.liveTracker.liveCurrentTime()),this.percent_!==n&&(this.el_.setAttribute("aria-valuenow",(n*100).toFixed(2)),this.percent_=n),(this.currentTime_!==s||this.duration_!==i)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Da(s,i),Da(i,i)],"{1} of {2}")),this.currentTime_=s,this.duration_=i),this.bar&&this.bar.update(gu(this.el()),this.getProgress())}),n}userSeek_(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const t=this.getCurrentTime_();let n;const s=this.player_.liveTracker;return s&&s.isLive()?(n=(t-s.seekableStart())/s.liveWindow(),s.atLiveEdge()&&(n=1)):n=t/this.player_.duration(),n}handleMouseDown(t){Md(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(t))}handleMouseMove(t,n=!1){if(!Md(t))return;!n&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);let s;const r=this.calculateDistance(t),i=this.player_.liveTracker;if(!i||!i.isLive())s=r*this.player_.duration(),s===this.player_.duration()&&(s=s-.1);else{if(r>=.99){i.seekToLiveEdge();return}const o=i.seekableStart(),a=i.liveCurrentTime();if(s=o+r*i.liveWindow(),s>=a&&(s=a),s<=o&&(s=o+.1),s===1/0)return}this.userSeek_(s)}enable(){super.enable();const t=this.getChild("mouseTimeDisplay");t&&t.show()}disable(){super.disable();const t=this.getChild("mouseTimeDisplay");t&&t.hide()}handleMouseUp(t){super.handleMouseUp(t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?oi(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+fh)}stepBack(){this.userSeek_(this.player_.currentTime()-fh)}handleAction(t){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(t){const n=this.player_.liveTracker;if(jt.isEventKey(t,"Space")||jt.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(jt.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(jt.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(jt(t))){t.preventDefault(),t.stopPropagation();const s=(jt.codes[jt(t)]-jt.codes[0])*10/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*s):this.userSeek_(this.player_.duration()*s)}else jt.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-fh*zx)):jt.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+fh*zx)):super.handleKeyDown(t)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in dt&&"visibilityState"in dt&&this.off(dt,"visibilitychange",this.toggleVisibility_),super.dispose()}}Y1.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};!Es&&!_i&&Y1.prototype.options_.children.splice(1,0,"mouseTimeDisplay");Xe.registerComponent("SeekBar",Y1);class UM extends Xe{constructor(t,n){super(t,n),this.handleMouseMove=wi(Sn(this,this.handleMouseMove),wr),this.throttledHandleMouseSeek=wi(Sn(this,this.handleMouseSeek),wr),this.handleMouseUpHandler_=s=>this.handleMouseUp(s),this.handleMouseDownHandler_=s=>this.handleMouseDown(s),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(t){const n=this.getChild("seekBar");if(!n)return;const s=n.getChild("playProgressBar"),r=n.getChild("mouseTimeDisplay");if(!s&&!r)return;const i=n.el(),o=Nd(i);let a=fg(i,t).x;a=lf(a,0,1),r&&r.update(o,a),s&&s.update(o,n.getProgress())}handleMouseSeek(t){const n=this.getChild("seekBar");n&&n.handleMouseMove(t)}enabled(){return this.enabled_}disable(){if(this.children().forEach(t=>t.disable&&t.disable()),!!this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const t=this.getChild("seekBar");this.player_.scrubbing(!1),t.videoWasPlaying&&oi(this.player_.play())}}enable(){this.children().forEach(t=>t.enable&&t.enable()),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseDown(t){const n=this.el_.ownerDocument,s=this.getChild("seekBar");s&&s.handleMouseDown(t),this.on(n,"mousemove",this.throttledHandleMouseSeek),this.on(n,"touchmove",this.throttledHandleMouseSeek),this.on(n,"mouseup",this.handleMouseUpHandler_),this.on(n,"touchend",this.handleMouseUpHandler_)}handleMouseUp(t){const n=this.getChild("seekBar");n&&n.handleMouseUp(t),this.removeListenersAddedOnMousedownAndTouchstart()}}UM.prototype.options_={children:["seekBar"]};Xe.registerComponent("ProgressControl",UM);class HM extends Vr{constructor(t,n){super(t,n),this.on(t,["enterpictureinpicture","leavepictureinpicture"],s=>this.handlePictureInPictureChange(s)),this.on(t,["disablepictureinpicturechanged","loadedmetadata"],s=>this.handlePictureInPictureEnabledChange(s)),this.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>{t.currentType().substring(0,5)==="audio"||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),this.hide()):this.show()}),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control ${super.buildCSSClass()}`}handlePictureInPictureEnabledChange(){dt.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1?this.enable():this.disable()}handlePictureInPictureChange(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()}handleClick(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}}HM.prototype.controlText_="Picture-in-Picture";Xe.registerComponent("PictureInPictureToggle",HM);class zM extends Vr{constructor(t,n){super(t,n),this.on(t,"fullscreenchange",s=>this.handleFullscreenChange(s)),dt[t.fsApi_.fullscreenEnabled]===!1&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(t){this.player_.isFullscreen()?this.controlText("Exit Fullscreen"):this.controlText("Fullscreen")}handleClick(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}zM.prototype.controlText_="Fullscreen";Xe.registerComponent("FullscreenToggle",zM);const D1e=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})};class F1e extends Xe{createEl(){const t=super.createEl("div",{className:"vjs-volume-level"});return t.appendChild(super.createEl("span",{className:"vjs-control-text"})),t}}Xe.registerComponent("VolumeLevel",F1e);class B1e extends Xe{constructor(t,n){super(t,n),this.update=wi(Sn(this,this.update),wr)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(t,n,s,r){if(!s){const i=gu(this.el_),o=gu(this.player_.el()),a=t.width*n;if(!o||!i)return;const l=t.left-o.left+a,u=t.width-a+(o.right-t.right);let d=i.width/2;l<d?d+=d-l:u<d&&(d=u),d<0?d=0:d>i.width&&(d=i.width),this.el_.style.right=`-${d}px`}this.write(`${r}%`)}write(t){qo(this.el_,t)}updateVolume(t,n,s,r,i){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(t,n,s,r.toFixed(0)),i&&i()})}}Xe.registerComponent("VolumeLevelTooltip",B1e);class jM extends Xe{constructor(t,n){super(t,n),this.update=wi(Sn(this,this.update),wr)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(t,n,s){const r=100*n;this.getChild("volumeLevelTooltip").updateVolume(t,n,s,r,()=>{s?this.el_.style.bottom=`${t.height*n}px`:this.el_.style.left=`${t.width*n}px`})}}jM.prototype.options_={children:["volumeLevelTooltip"]};Xe.registerComponent("MouseVolumeLevelDisplay",jM);class bg extends q1{constructor(t,n){super(t,n),this.on("slideractive",s=>this.updateLastVolume_(s)),this.on(t,"volumechange",s=>this.updateARIAAttributes(s)),t.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(t){Md(t)&&super.handleMouseDown(t)}handleMouseMove(t){const n=this.getChild("mouseVolumeLevelDisplay");if(n){const s=this.el(),r=gu(s),i=this.vertical();let o=fg(s,t);o=i?o.y:o.x,o=lf(o,0,1),n.update(r,o,i)}Md(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(t){const n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n),this.el_.setAttribute("aria-valuetext",n+"%")}volumeAsPercentage_(){return Math.round(this.player_.volume()*100)}updateLastVolume_(){const t=this.player_.volume();this.one("sliderinactive",()=>{this.player_.volume()===0&&this.player_.lastVolume_(t)})}}bg.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!Es&&!_i&&bg.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");bg.prototype.playerEvent="volumechange";Xe.registerComponent("VolumeBar",bg);class KM extends Xe{constructor(t,n={}){n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||pu(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),super(t,n),D1e(this,t),this.throttledHandleMouseMove=wi(Sn(this,this.handleMouseMove),wr),this.handleMouseUpHandler_=s=>this.handleMouseUp(s),this.on("mousedown",s=>this.handleMouseDown(s)),this.on("touchstart",s=>this.handleMouseDown(s)),this.on("mousemove",s=>this.handleMouseMove(s)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${t}`})}handleMouseDown(t){const n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove),this.on(n,"touchmove",this.throttledHandleMouseMove),this.on(n,"mouseup",this.handleMouseUpHandler_),this.on(n,"touchend",this.handleMouseUpHandler_)}handleMouseUp(t){const n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove),this.off(n,"touchmove",this.throttledHandleMouseMove),this.off(n,"mouseup",this.handleMouseUpHandler_),this.off(n,"touchend",this.handleMouseUpHandler_)}handleMouseMove(t){this.volumeBar.handleMouseMove(t)}}KM.prototype.options_={children:["volumeBar"]};Xe.registerComponent("VolumeControl",KM);const V1e=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})};class WM extends Vr{constructor(t,n){super(t,n),V1e(this,t),this.on(t,["loadstart","volumechange"],s=>this.update(s))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(t){const n=this.player_.volume(),s=this.player_.lastVolume_();if(n===0){const r=s<.1?.1:s;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(t){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const t=this.player_.volume();let n=3;Es&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),t===0||this.player_.muted()?n=0:t<.33?n=1:t<.67&&(n=2),cg(this.el_,[0,1,2,3].reduce((s,r)=>s+`${r?" ":""}vjs-vol-${r}`,"")),Aa(this.el_,`vjs-vol-${n}`)}updateControlText_(){const n=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)}}WM.prototype.controlText_="Mute";Xe.registerComponent("MuteToggle",WM);class qM extends Xe{constructor(t,n={}){typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||pu(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),super(t,n),this.handleKeyPressHandler_=s=>this.handleKeyPress(s),this.on(t,["loadstart"],s=>this.volumePanelState_(s)),this.on(this.muteToggle,"keyup",s=>this.handleKeyPress(s)),this.on(this.volumeControl,"keyup",s=>this.handleVolumeControlKeyUp(s)),this.on("keydown",s=>this.handleKeyPress(s)),this.on("mouseover",s=>this.handleMouseOver(s)),this.on("mouseout",s=>this.handleMouseOut(s)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${t}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(t){jt.isEventKey(t,"Esc")&&this.muteToggle.focus()}handleMouseOver(t){this.addClass("vjs-hover"),ir(dt,"keyup",this.handleKeyPressHandler_)}handleMouseOut(t){this.removeClass("vjs-hover"),cs(dt,"keyup",this.handleKeyPressHandler_)}handleKeyPress(t){jt.isEventKey(t,"Esc")&&this.handleMouseOut()}}qM.prototype.options_={children:["muteToggle","volumeControl"]};Xe.registerComponent("VolumePanel",qM);class GM extends Xe{constructor(t,n){super(t,n),n&&(this.menuButton_=n.menuButton),this.focusedChild_=-1,this.on("keydown",s=>this.handleKeyDown(s)),this.boundHandleBlur_=s=>this.handleBlur(s),this.boundHandleTapClick_=s=>this.handleTapClick(s)}addEventListenerForItem(t){t instanceof Xe&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(t){t instanceof Xe&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))}removeChild(t){typeof t=="string"&&(t=this.getChild(t)),this.removeEventListenerForItem(t),super.removeChild(t)}addItem(t){const n=this.addChild(t);n&&this.addEventListenerForItem(n)}createEl(){const t=this.options_.contentElType||"ul";this.contentEl_=Jt(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const n=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ir(n,"click",function(s){s.preventDefault(),s.stopImmediatePropagation()}),n}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(t){const n=t.relatedTarget||dt.activeElement;if(!this.children().some(s=>s.el()===n)){const s=this.menuButton_;s&&s.buttonPressed_&&n!==s.el().firstChild&&s.unpressButton()}}handleTapClick(t){if(this.menuButton_){this.menuButton_.unpressButton();const n=this.children();if(!Array.isArray(n))return;const s=n.filter(r=>r.el()===t.target)[0];if(!s)return;s.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}}handleKeyDown(t){jt.isEventKey(t,"Left")||jt.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(jt.isEventKey(t,"Right")||jt.isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())}stepForward(){let t=0;this.focusedChild_!==void 0&&(t=this.focusedChild_+1),this.focus(t)}stepBack(){let t=0;this.focusedChild_!==void 0&&(t=this.focusedChild_-1),this.focus(t)}focus(t=0){const n=this.children().slice();n.length&&n[0].hasClass("vjs-menu-title")&&n.shift(),n.length>0&&(t<0?t=0:t>=n.length&&(t=n.length-1),this.focusedChild_=t,n[t].el_.focus())}}Xe.registerComponent("Menu",GM);class X1 extends Xe{constructor(t,n={}){super(t,n),this.menuButton_=new Vr(t,n),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const s=Vr.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+s,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const r=i=>this.handleClick(i);this.handleMenuKeyUp_=i=>this.handleMenuKeyUp(i),this.on(this.menuButton_,"tap",r),this.on(this.menuButton_,"click",r),this.on(this.menuButton_,"keydown",i=>this.handleKeyDown(i)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),ir(dt,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",i=>this.handleMouseLeave(i)),this.on("keydown",i=>this.handleSubmenuKeyDown(i))}update(){const t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const t=new GM(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const n=Jt("li",{className:"vjs-menu-title",textContent:$n(this.options_.title),tabIndex:-1}),s=new Xe(this.player_,{el:n});t.addItem(s)}if(this.items=this.createItems(),this.items)for(let n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}buildWrapperCSSClass(){let t="vjs-menu-button";this.options_.inline===!0?t+="-inline":t+="-popup";const n=Vr.prototype.buildCSSClass();return`vjs-menu-button ${t} ${n} ${super.buildCSSClass()}`}buildCSSClass(){let t="vjs-menu-button";return this.options_.inline===!0?t+="-inline":t+="-popup",`vjs-menu-button ${t} ${super.buildCSSClass()}`}controlText(t,n=this.menuButton_.el()){return this.menuButton_.controlText(t,n)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(t){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(t){this.removeClass("vjs-hover"),cs(dt,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(t){jt.isEventKey(t,"Esc")||jt.isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),jt.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(jt.isEventKey(t,"Up")||jt.isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))}handleMenuKeyUp(t){(jt.isEventKey(t,"Esc")||jt.isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(t){this.handleSubmenuKeyDown(t)}handleSubmenuKeyDown(t){(jt.isEventKey(t,"Esc")||jt.isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),jt.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Es&&lM())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}Xe.registerComponent("MenuButton",X1);class Q1 extends X1{constructor(t,n){const s=n.tracks;if(super(t,n),this.items.length<=1&&this.hide(),!s)return;const r=Sn(this,this.update);s.addEventListener("removetrack",r),s.addEventListener("addtrack",r),s.addEventListener("labelchange",r),this.player_.on("ready",r),this.player_.on("dispose",function(){s.removeEventListener("removetrack",r),s.removeEventListener("addtrack",r),s.removeEventListener("labelchange",r)})}}Xe.registerComponent("TrackButton",Q1);const U1e=["Tab","Esc","Up","Down","Right","Left"];class uf extends yg{constructor(t,n){super(t,n),this.selectable=n.selectable,this.isSelected_=n.selected||!1,this.multiSelectable=n.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(t,n,s){this.nonIconControl=!0;const r=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},n),s);return r.replaceChild(Jt("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(t){U1e.some(n=>jt.isEventKey(t,n))||super.handleKeyDown(t)}handleClick(t){this.selected(!0)}selected(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}Xe.registerComponent("MenuItem",uf);class cf extends uf{constructor(t,n){const s=n.track,r=t.textTracks();n.label=s.label||s.language||"Unknown",n.selected=s.mode==="showing",super(t,n),this.track=s,this.kinds=(n.kinds||[n.kind||this.track.kind]).filter(Boolean);const i=(...a)=>{this.handleTracksChange.apply(this,a)},o=(...a)=>{this.handleSelectedLanguageChange.apply(this,a)};if(t.on(["loadstart","texttrackchange"],i),r.addEventListener("change",i),r.addEventListener("selectedlanguagechange",o),this.on("dispose",function(){t.off(["loadstart","texttrackchange"],i),r.removeEventListener("change",i),r.removeEventListener("selectedlanguagechange",o)}),r.onchange===void 0){let a;this.on(["tap","click"],function(){if(typeof ge.Event!="object")try{a=new ge.Event("change")}catch{}a||(a=dt.createEvent("Event"),a.initEvent("change",!0,!0)),r.dispatchEvent(a)})}this.handleTracksChange()}handleClick(t){const n=this.track,s=this.player_.textTracks();if(super.handleClick(t),!!s)for(let r=0;r<s.length;r++){const i=s[r];this.kinds.indexOf(i.kind)!==-1&&(i===n?i.mode!=="showing"&&(i.mode="showing"):i.mode!=="disabled"&&(i.mode="disabled"))}}handleTracksChange(t){const n=this.track.mode==="showing";n!==this.isSelected_&&this.selected(n)}handleSelectedLanguageChange(t){if(this.track.mode==="showing"){const n=this.player_.cache_.selectedLanguage;if(n&&n.enabled&&n.language===this.track.language&&n.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}Xe.registerComponent("TextTrackMenuItem",cf);class YM extends cf{constructor(t,n){n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,super(t,n)}handleTracksChange(t){const n=this.player().textTracks();let s=!0;for(let r=0,i=n.length;r<i;r++){const o=n[r];if(this.options_.kinds.indexOf(o.kind)>-1&&o.mode==="showing"){s=!1;break}}s!==this.isSelected_&&this.selected(s)}handleSelectedLanguageChange(t){const n=this.player().textTracks();let s=!0;for(let r=0,i=n.length;r<i;r++){const o=n[r];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&o.mode==="showing"){s=!1;break}}s&&(this.player_.cache_.selectedLanguage={enabled:!1})}}Xe.registerComponent("OffTextTrackMenuItem",YM);class Bu extends Q1{constructor(t,n={}){n.tracks=t.textTracks(),super(t,n)}createItems(t=[],n=cf){let s;this.label_&&(s=`${this.label_} off`),t.push(new YM(this.player_,{kinds:this.kinds_,kind:this.kind_,label:s})),this.hideThreshold_+=1;const r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let i=0;i<r.length;i++){const o=r[i];if(this.kinds_.indexOf(o.kind)>-1){const a=new n(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass(`vjs-${o.kind}-menu-item`),t.push(a)}}return t}}Xe.registerComponent("TextTrackButton",Bu);class XM extends uf{constructor(t,n){const s=n.track,r=n.cue,i=t.currentTime();n.selectable=!0,n.multiSelectable=!1,n.label=r.text,n.selected=r.startTime<=i&&i<r.endTime,super(t,n),this.track=s,this.cue=r}handleClick(t){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}Xe.registerComponent("ChaptersTrackMenuItem",XM);class J1 extends Bu{constructor(t,n,s){super(t,n,s),this.selectCurrentItem_=()=>{this.items.forEach(r=>{r.selected(this.track_.activeCues[0]===r.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(t){if(t&&t.track&&t.track.kind!=="chapters")return;const n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),super.update()):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&super.update()}setTrack(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";const n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const t=this.player_.textTracks()||[];for(let n=t.length-1;n>=0;n--){const s=t[n];if(s.kind===this.kind_)return s}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize($n(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const t=[];if(!this.track_)return t;const n=this.track_.cues;if(!n)return t;for(let s=0,r=n.length;s<r;s++){const i=n[s],o=new XM(this.player_,{track:this.track_,cue:i});t.push(o)}return t}}J1.prototype.kind_="chapters";J1.prototype.controlText_="Chapters";Xe.registerComponent("ChaptersButton",J1);class Z1 extends Bu{constructor(t,n,s){super(t,n,s);const r=t.textTracks(),i=Sn(this,this.handleTracksChange);r.addEventListener("change",i),this.on("dispose",function(){r.removeEventListener("change",i)})}handleTracksChange(t){const n=this.player().textTracks();let s=!1;for(let r=0,i=n.length;r<i;r++){const o=n[r];if(o.kind!==this.kind_&&o.mode==="showing"){s=!0;break}}s?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}Z1.prototype.kind_="descriptions";Z1.prototype.controlText_="Descriptions";Xe.registerComponent("DescriptionsButton",Z1);class eT extends Bu{constructor(t,n,s){super(t,n,s)}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}eT.prototype.kind_="subtitles";eT.prototype.controlText_="Subtitles";Xe.registerComponent("SubtitlesButton",eT);class tT extends cf{constructor(t,n){n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",super(t,n),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+n.kind+" settings dialog")}handleClick(t){this.player().getChild("textTrackSettings").open()}}Xe.registerComponent("CaptionSettingsMenuItem",tT);class nT extends Bu{constructor(t,n,s){super(t,n,s)}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const t=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(t.push(new tT(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(t)}}nT.prototype.kind_="captions";nT.prototype.controlText_="Captions";Xe.registerComponent("CaptionsButton",nT);class QM extends cf{createEl(t,n,s){const r=super.createEl(t,n,s),i=r.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(i.appendChild(Jt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Jt("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}Xe.registerComponent("SubsCapsMenuItem",QM);class sT extends Bu{constructor(t,n={}){super(t,n),this.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions"),this.menuButton_.controlText($n(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let t=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(t.push(new tT(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=super.createItems(t,QM),t}}sT.prototype.kinds_=["captions","subtitles"];sT.prototype.controlText_="Subtitles";Xe.registerComponent("SubsCapsButton",sT);class JM extends uf{constructor(t,n){const s=n.track,r=t.audioTracks();n.label=s.label||s.language||"Unknown",n.selected=s.enabled,super(t,n),this.track=s,this.addClass(`vjs-${s.kind}-menu-item`);const i=(...o)=>{this.handleTracksChange.apply(this,o)};r.addEventListener("change",i),this.on("dispose",()=>{r.removeEventListener("change",i)})}createEl(t,n,s){const r=super.createEl(t,n,s),i=r.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="main-desc"&&(i.appendChild(Jt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Jt("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}handleClick(t){if(super.handleClick(t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const n=this.player_.audioTracks();for(let s=0;s<n.length;s++){const r=n[s];r!==this.track&&(r.enabled=r===this.track)}}}handleTracksChange(t){this.selected(this.track.enabled)}}Xe.registerComponent("AudioTrackMenuItem",JM);class ZM extends Q1{constructor(t,n={}){n.tracks=t.audioTracks(),super(t,n)}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(t=[]){this.hideThreshold_=1;const n=this.player_.audioTracks();for(let s=0;s<n.length;s++){const r=n[s];t.push(new JM(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return t}}ZM.prototype.controlText_="Audio Track";Xe.registerComponent("AudioTrackButton",ZM);class rT extends uf{constructor(t,n){const s=n.rate,r=parseFloat(s,10);n.label=s,n.selected=r===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,super(t,n),this.label=s,this.rate=r,this.on(t,"ratechange",i=>this.update(i))}handleClick(t){super.handleClick(),this.player().playbackRate(this.rate)}update(t){this.selected(this.player().playbackRate()===this.rate)}}rT.prototype.contentElType="button";Xe.registerComponent("PlaybackRateMenuItem",rT);class eR extends X1{constructor(t,n){super(t,n),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(t,"loadstart",s=>this.updateVisibility(s)),this.on(t,"ratechange",s=>this.updateLabel(s)),this.on(t,"playbackrateschange",s=>this.handlePlaybackRateschange(s))}createEl(){const t=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Jt("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const t=this.playbackRates(),n=[];for(let s=t.length-1;s>=0;s--)n.push(new rT(this.player(),{rate:t[s]+"x"}));return n}handlePlaybackRateschange(t){this.update()}playbackRates(){const t=this.player();return t.playbackRates&&t.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(t){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}eR.prototype.controlText_="Playback Rate";Xe.registerComponent("PlaybackRateMenuButton",eR);class tR extends Xe{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(t="div",n={},s={}){return n.className||(n.className=this.buildCSSClass()),super.createEl(t,n,s)}}Xe.registerComponent("Spacer",tR);class H1e extends tR{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}}Xe.registerComponent("CustomControlSpacer",H1e);class Wp extends Xe{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}Wp.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]};"exitPictureInPicture"in dt&&Wp.prototype.options_.children.splice(Wp.prototype.options_.children.length-1,0,"pictureInPictureToggle");Xe.registerComponent("ControlBar",Wp);class nR extends Du{constructor(t,n){super(t,n),this.on(t,"error",s=>this.open(s))}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const t=this.player().error();return t?this.localize(t.message):""}}nR.prototype.options_=Object.assign({},Du.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});Xe.registerComponent("ErrorDisplay",nR);const Fv="vjs-text-track-settings",jx=["#000","Black"],Kx=["#00F","Blue"],Wx=["#0FF","Cyan"],qx=["#0F0","Green"],Gx=["#F0F","Magenta"],Yx=["#F00","Red"],Xx=["#FFF","White"],Qx=["#FF0","Yellow"],Bv=["1","Opaque"],Vv=["0.5","Semi-Transparent"],Jx=["0","Transparent"],ha={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[jx,Xx,Yx,qx,Kx,Qx,Gx,Wx]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Bv,Vv,Jx]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Xx,jx,Yx,qx,Kx,Qx,Gx,Wx]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>e==="1.00"?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Bv,Vv]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Jx,Vv,Bv]}};ha.windowColor.options=ha.backgroundColor.options;function sR(e,t){if(t&&(e=t(e)),e&&e!=="none")return e}function z1e(e,t){const n=e.options[e.options.selectedIndex].value;return sR(n,t)}function j1e(e,t,n){if(t){for(let s=0;s<e.options.length;s++)if(sR(e.options[s].value,n)===t){e.selectedIndex=s;break}}}class K1e extends Du{constructor(t,n){n.temporary=!1,super(t,n),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=Jt("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),n.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),Ml(ha,s=>{this.on(this.$(s.selector),"change",this.updateDisplay)}),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(t,n="",s="label"){const r=ha[t],i=r.id.replace("%s",this.id_),o=[n,i].join(" ").trim();return[`<${s} id="${i}" class="${s==="label"?"vjs-label":""}">`,this.localize(r.label),`</${s}>`,`<select aria-labelledby="${o}">`].concat(r.options.map(a=>{const l=i+"-"+a[1].replace(/\W+/g,"");return[`<option id="${l}" value="${a[0]}" `,`aria-labelledby="${o} ${l}">`,this.localize(a[1]),"</option>"].join("")})).concat("</select>").join("")}createElFgColor_(){const t=`captions-text-legend-${this.id_}`;return['<fieldset class="vjs-fg-color vjs-track-setting">',`<legend id="${t}">`,this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")}createElBgColor_(){const t=`captions-background-${this.id_}`;return['<fieldset class="vjs-bg-color vjs-track-setting">',`<legend id="${t}">`,this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")}createElWinColor_(){const t=`captions-window-${this.id_}`;return['<fieldset class="vjs-window-color vjs-track-setting">',`<legend id="${t}">`,this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")}createElColors_(){return Jt("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return Jt("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const t=this.localize("restore all settings to the default values");return Jt("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${t}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${t}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return sM(ha,(t,n,s)=>{const r=z1e(this.$(n.selector),n.parser);return r!==void 0&&(t[s]=r),t},{})}setValues(t){Ml(ha,(n,s)=>{j1e(this.$(n.selector),t[s],n.parser)})}setDefaults(){Ml(ha,t=>{const n=t.hasOwnProperty("default")?t.default:0;this.$(t.selector).selectedIndex=n})}restoreSettings(){let t;try{t=JSON.parse(ge.localStorage.getItem(Fv))}catch(n){tn.warn(n)}t&&this.setValues(t)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const t=this.getValues();try{Object.keys(t).length?ge.localStorage.setItem(Fv,JSON.stringify(t)):ge.localStorage.removeItem(Fv)}catch(n){tn.warn(n)}}updateDisplay(){const t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const t=this.player_.controlBar,n=t&&t.subsCapsButton,s=t&&t.captionsButton;n?n.focus():s&&s.focus()}}Xe.registerComponent("TextTrackSettings",K1e);class W1e extends Xe{constructor(t,n){let s=n.ResizeObserver||ge.ResizeObserver;n.ResizeObserver===null&&(s=!1);const r=Tn({createEl:!s,reportTouchActivity:!1},n);super(t,r),this.ResizeObserver=n.ResizeObserver||ge.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=wM(()=>{this.resizeHandler()},100,!1,this),s?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(t.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const i=this.debouncedHandler_;let o=this.unloadListener_=function(){cs(this,"resize",i),cs(this,"unload",o),o=null};ir(this.el_.contentWindow,"unload",o),ir(this.el_.contentWindow,"resize",i)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}}Xe.registerComponent("ResizeManager",W1e);const q1e={trackingThreshold:20,liveTolerance:15};class G1e extends Xe{constructor(t,n){const s=Tn(q1e,n,{createEl:!1});super(t,s),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=r=>this.handlePlay(r),this.handleFirstTimeupdate_=r=>this.handleFirstTimeupdate(r),this.handleSeeked_=r=>this.handleSeeked(r),this.seekToLiveEdge_=r=>this.seekToLiveEdge(r),this.reset_(),this.on(this.player_,"durationchange",r=>this.handleDurationchange(r)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const t=this.player_.seekable();if(!t||!t.length)return;const n=Number(ge.performance.now().toFixed(4)),s=this.lastTime_===-1?0:(n-this.lastTime_)/1e3;this.lastTime_=n,this.pastSeekEnd_=this.pastSeekEnd()+s;const r=this.liveCurrentTime(),i=this.player_.currentTime();let o=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-i)>this.options_.liveTolerance;(!this.timeupdateSeen_||r===1/0)&&(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,wr),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const t=this.player_.seekable(),n=[];let s=t?t.length:0;for(;s--;)n.push(t.end(s));return n.length?n.sort()[n.length-1]:1/0}seekableStart(){const t=this.player_.seekable(),n=[];let s=t?t.length:0;for(;s--;)n.push(t.start(s));return n.length?n.sort()[0]:0}liveWindow(){const t=this.liveCurrentTime();return t===1/0?0:t-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const t=this.seekableEnd();return this.lastSeekEnd_!==-1&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return typeof this.trackingInterval_=="number"}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}Xe.registerComponent("LiveTracker",G1e);class Y1e extends Xe{constructor(t,n){super(t,n),this.on("statechanged",s=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Jt("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${Si()}`}),description:Jt("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${Si()}`})},Jt("div",{className:"vjs-title-bar"},{},Object.values(this.els))}updateDom_(){const t=this.player_.tech_,n=t&&t.el_,s={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(r=>{const i=this.state[r],o=this.els[r],a=s[r];hg(o),i&&qo(o,i),n&&(n.removeAttribute(a),i&&n.setAttribute(a,o.id))}),this.state.title||this.state.description?this.show():this.hide()}update(t){this.setState(t)}dispose(){const t=this.player_.tech_,n=t&&t.el_;n&&(n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-describedby")),super.dispose(),this.els=null}}Xe.registerComponent("TitleBar",Y1e);const jy=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const n=e.$$("source"),s=[];let r="";if(!n.length)return!1;for(let i=0;i<n.length;i++){const o=n[i].src;o&&s.indexOf(o)===-1&&s.push(o)}return s.length?(s.length===1&&(r=s[0]),e.triggerSourceset(r),!0):!1},X1e=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=dt.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const n=dt.createDocumentFragment();for(;t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",ge.Element.prototype.appendChild.call(this,n),this.innerHTML}}),rR=(e,t)=>{let n={};for(let s=0;s<e.length&&(n=Object.getOwnPropertyDescriptor(e[s],t),!(n&&n.set&&n.get));s++);return n.enumerable=!0,n.configurable=!0,n},Q1e=e=>rR([e.el(),ge.HTMLMediaElement.prototype,ge.Element.prototype,X1e],"innerHTML"),Zx=function(e){const t=e.el();if(t.resetSourceWatch_)return;const n={},s=Q1e(e),r=i=>(...o)=>{const a=i.apply(t,o);return jy(e),a};["append","appendChild","insertAdjacentHTML"].forEach(i=>{t[i]&&(n[i]=t[i],t[i]=r(n[i]))}),Object.defineProperty(t,"innerHTML",Tn(s,{set:r(s.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(n).forEach(i=>{t[i]=n[i]}),Object.defineProperty(t,"innerHTML",s)},e.one("sourceset",t.resetSourceWatch_)},J1e=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?NM(ge.Element.prototype.getAttribute.call(this,"src")):""},set(e){return ge.Element.prototype.setAttribute.call(this,"src",e),e}}),Z1e=e=>rR([e.el(),ge.HTMLMediaElement.prototype,J1e],"src"),eTe=function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const n=Z1e(e),s=t.setAttribute,r=t.load;Object.defineProperty(t,"src",Tn(n,{set:i=>{const o=n.set.call(t,i);return e.triggerSourceset(t.src),o}})),t.setAttribute=(i,o)=>{const a=s.call(t,i,o);return/src/i.test(i)&&e.triggerSourceset(t.src),a},t.load=()=>{const i=r.call(t);return jy(e)||(e.triggerSourceset(""),Zx(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):jy(e)||Zx(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=s,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}};class yt extends Yt{constructor(t,n){super(t,n);const s=t.source;let r=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&this.el_.tagName==="VIDEO",s&&(this.el_.currentSrc!==s.src||t.tag&&t.tag.initNetworkState_===3)?this.setSource(s):this.handleLateInit_(this.el_),t.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const i=this.el_.childNodes;let o=i.length;const a=[];for(;o--;){const l=i[o];l.nodeName.toLowerCase()==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(l),this.remoteTextTracks().addTrack(l.track),this.textTracks().addTrack(l.track),!r&&!this.el_.hasAttribute("crossorigin")&&vg(l.src)&&(r=!0)):a.push(l))}for(let l=0;l<a.length;l++)this.el_.removeChild(a[l])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&r&&tn.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
|
||
This may prevent text tracks from loading.`),this.restoreMetadataTracksInIOSNativePlayer_(),($d||lg)&&t.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),yt.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){eTe(this)}restoreMetadataTracksInIOSNativePlayer_(){const t=this.textTracks();let n;const s=()=>{n=[];for(let i=0;i<t.length;i++){const o=t[i];o.kind==="metadata"&&n.push({track:o,storedMode:o.mode})}};s(),t.addEventListener("change",s),this.on("dispose",()=>t.removeEventListener("change",s));const r=()=>{for(let i=0;i<n.length;i++){const o=n[i];o.track.mode==="disabled"&&o.track.mode!==o.storedMode&&(o.track.mode=o.storedMode)}t.removeEventListener("change",r)};this.on("webkitbeginfullscreen",()=>{t.removeEventListener("change",s),t.removeEventListener("change",r),t.addEventListener("change",r)}),this.on("webkitendfullscreen",()=>{t.removeEventListener("change",s),t.addEventListener("change",s),t.removeEventListener("change",r)})}overrideNative_(t,n){if(n!==this[`featuresNative${t}Tracks`])return;const s=t.toLowerCase();this[`${s}TracksListeners_`]&&Object.keys(this[`${s}TracksListeners_`]).forEach(r=>{this.el()[`${s}Tracks`].removeEventListener(r,this[`${s}TracksListeners_`][r])}),this[`featuresNative${t}Tracks`]=!n,this[`${s}TracksListeners_`]=null,this.proxyNativeTracksForType_(s)}overrideNativeAudioTracks(t){this.overrideNative_("Audio",t)}overrideNativeVideoTracks(t){this.overrideNative_("Video",t)}proxyNativeTracksForType_(t){const n=gr[t],s=this.el()[n.getterName],r=this[n.getterName]();if(!this[`featuresNative${n.capitalName}Tracks`]||!s||!s.addEventListener)return;const i={change:a=>{const l={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(l),t==="text"&&this[bu.remoteText.getterName]().trigger(l)},addtrack(a){r.addTrack(a.track)},removetrack(a){r.removeTrack(a.track)}},o=function(){const a=[];for(let l=0;l<r.length;l++){let u=!1;for(let d=0;d<s.length;d++)if(s[d]===r[l]){u=!0;break}u||a.push(r[l])}for(;a.length;)r.removeTrack(a.shift())};this[n.getterName+"Listeners_"]=i,Object.keys(i).forEach(a=>{const l=i[a];s.addEventListener(a,l),this.on("dispose",u=>s.removeEventListener(a,l))}),this.on("loadstart",o),this.on("dispose",a=>this.off("loadstart",o))}proxyNativeTracks_(){gr.names.forEach(t=>{this.proxyNativeTracksForType_(t)})}createEl(){let t=this.options_.tag;if(!t||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(t){const s=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(s,t),yt.disposeMediaElement(t),t=s}else{t=dt.createElement("video");const s=this.options_.tag&&_o(this.options_.tag),r=Tn({},s);(!$d||this.options_.nativeControlsForTouch!==!0)&&delete r.controls,dM(t,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&mu(t,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);const n=["loop","muted","playsinline","autoplay"];for(let s=0;s<n.length;s++){const r=n[s],i=this.options_[r];typeof i<"u"&&(i?mu(t,r,r):dg(t,r),t[r]=i)}return t}handleLateInit_(t){if(t.networkState===0||t.networkState===3)return;if(t.readyState===0){let s=!1;const r=function(){s=!0};this.on("loadstart",r);const i=function(){s||this.trigger("loadstart")};this.on("loadedmetadata",i),this.ready(function(){this.off("loadstart",r),this.off("loadedmetadata",i),s||this.trigger("loadstart")});return}const n=["loadstart"];n.push("loadedmetadata"),t.readyState>=2&&n.push("loadeddata"),t.readyState>=3&&n.push("canplay"),t.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(s){this.trigger(s)},this)})}setScrubbing(t){this.isScrubbing_=t}scrubbing(){return this.isScrubbing_}setCurrentTime(t){try{this.isScrubbing_&&this.el_.fastSeek&&ug?this.el_.fastSeek(t):this.el_.currentTime=t}catch(n){tn(n,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&_i&&Ti&&this.el_.currentTime===0){const t=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",()=>{this.off("webkitbeginfullscreen",n),this.off("webkitendfullscreen",t)})}supportsFullScreen(){return typeof this.el_.webkitEnterFullScreen=="function"}enterFullScreen(){const t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA)oi(this.el_.play()),this.setTimeout(function(){t.pause();try{t.webkitEnterFullScreen()}catch(n){this.trigger("fullscreenerror",n)}},0);else try{t.webkitEnterFullScreen()}catch(n){this.trigger("fullscreenerror",n)}}exitFullScreen(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):super.requestVideoFrameCallback(t)}cancelVideoFrameCallback(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):super.cancelVideoFrameCallback(t)}src(t){if(t===void 0)return this.el_.src;this.setSrc(t)}reset(){yt.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(t){this.el_.controls=!!t}addTextTrack(t,n,s){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,s):super.addTextTrack(t,n,s)}createRemoteTextTrack(t){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(t);const n=dt.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n}addRemoteTextTrack(t,n){const s=super.addRemoteTextTrack(t,n);return this.featuresNativeTextTracks&&this.el().appendChild(s),s}removeRemoteTextTrack(t){if(super.removeRemoteTextTrack(t),this.featuresNativeTextTracks){const n=this.$$("track");let s=n.length;for(;s--;)(t===n[s]||t===n[s].track)&&this.el().removeChild(n[s])}}getVideoPlaybackQuality(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();const t={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),ge.performance&&(t.creationTime=ge.performance.now()),t}}ig(yt,"TEST_VID",function(){if(!Mu())return;const e=dt.createElement("video"),t=dt.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e});yt.isSupported=function(){try{yt.TEST_VID.volume=.5}catch{return!1}return!!(yt.TEST_VID&&yt.TEST_VID.canPlayType)};yt.canPlayType=function(e){return yt.TEST_VID.canPlayType(e)};yt.canPlaySource=function(e,t){return yt.canPlayType(e.type)};yt.canControlVolume=function(){try{const e=yt.TEST_VID.volume;yt.TEST_VID.volume=e/2+.1;const t=e!==yt.TEST_VID.volume;return t&&Es?(ge.setTimeout(()=>{yt&&yt.prototype&&(yt.prototype.featuresVolumeControl=e!==yt.TEST_VID.volume)}),!1):t}catch{return!1}};yt.canMuteVolume=function(){try{const e=yt.TEST_VID.muted;return yt.TEST_VID.muted=!e,yt.TEST_VID.muted?mu(yt.TEST_VID,"muted","muted"):dg(yt.TEST_VID,"muted","muted"),e!==yt.TEST_VID.muted}catch{return!1}};yt.canControlPlaybackRate=function(){if(_i&&Ti&&og<58)return!1;try{const e=yt.TEST_VID.playbackRate;return yt.TEST_VID.playbackRate=e/2+.1,e!==yt.TEST_VID.playbackRate}catch{return!1}};yt.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(dt.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(dt.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(dt.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(dt.createElement("audio"),"innerHTML",{get:e,set:e})}catch{return!1}return!0};yt.supportsNativeTextTracks=function(){return ug||Es&&Ti};yt.supportsNativeVideoTracks=function(){return!!(yt.TEST_VID&&yt.TEST_VID.videoTracks)};yt.supportsNativeAudioTracks=function(){return!!(yt.TEST_VID&&yt.TEST_VID.audioTracks)};yt.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function([e,t]){ig(yt.prototype,e,()=>yt[t](),!0)});yt.prototype.featuresVolumeControl=yt.canControlVolume();yt.prototype.movingMediaElementInDOM=!Es;yt.prototype.featuresFullscreenResize=!0;yt.prototype.featuresProgressEvents=!0;yt.prototype.featuresTimeupdateEvents=!0;yt.prototype.featuresVideoFrameCallback=!!(yt.TEST_VID&&yt.TEST_VID.requestVideoFrameCallback);yt.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch{}}()}};yt.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let n=t.length;for(;n--;)e.removeChild(t[n]);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch{}}()};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){yt.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){yt.prototype["set"+$n(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){yt.prototype[e]=function(){return this.el_[e]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){yt.prototype["set"+$n(e)]=function(t){this.el_[e]=t}});["pause","load","play"].forEach(function(e){yt.prototype[e]=function(){return this.el_[e]()}});Yt.withSourceHandlers(yt);yt.nativeSourceHandler={};yt.nativeSourceHandler.canPlayType=function(e){try{return yt.TEST_VID.canPlayType(e)}catch{return""}};yt.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return yt.nativeSourceHandler.canPlayType(e.type);if(e.src){const n=H1(e.src);return yt.nativeSourceHandler.canPlayType(`video/${n}`)}return""};yt.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)};yt.nativeSourceHandler.dispose=function(){};yt.registerSourceHandler(yt.nativeSourceHandler);Yt.registerTech("Html5",yt);const iR=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Uv={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Ky=["tiny","xsmall","small","medium","large","xlarge","huge"],ep={};Ky.forEach(e=>{const t=e.charAt(0)==="x"?`x-${e.substring(1)}`:e;ep[e]=`vjs-layout-${t}`});const tTe={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class wn extends Xe{constructor(t,n,s){if(t.id=t.id||n.id||`vjs_video_${Si()}`,n=Object.assign(wn.getTagSettings(t),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){const o=t.closest("[lang]");o&&(n.language=o.getAttribute("lang"))}if(super(null,n,s),this.boundDocumentFullscreenChange_=o=>this.documentFullscreenChange_(o),this.boundFullWindowOnEscKey_=o=>this.fullWindowOnEscKey(o),this.boundUpdateStyleEl_=o=>this.updateStyleEl_(o),this.boundApplyInitTime_=o=>this.applyInitTime_(o),this.boundUpdateCurrentBreakpoint_=o=>this.updateCurrentBreakpoint_(o),this.boundHandleTechClick_=o=>this.handleTechClick_(o),this.boundHandleTechDoubleClick_=o=>this.handleTechDoubleClick_(o),this.boundHandleTechTouchStart_=o=>this.handleTechTouchStart_(o),this.boundHandleTechTouchMove_=o=>this.handleTechTouchMove_(o),this.boundHandleTechTouchEnd_=o=>this.handleTechTouchEnd_(o),this.boundHandleTechTap_=o=>this.handleTechTap_(o),this.isFullscreen_=!1,this.log=tM(this.id_),this.fsApi_=Bp,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=t,this.tagAttributes=t&&_o(t),this.language(this.options_.language),n.languages){const o={};Object.getOwnPropertyNames(n.languages).forEach(function(a){o[a.toLowerCase()]=n.languages[a]}),this.languages_=o}else this.languages_=wn.prototype.options_.languages;this.resetCache_(),this.poster_=n.poster||"",this.controls_=!!n.controls,t.controls=!1,t.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],t.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach(o=>{if(typeof this[o]!="function")throw new Error(`plugin "${o}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),F1(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(ir(dt,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=Tn(this.options_);n.plugins&&Object.keys(n.plugins).forEach(o=>{this[o](n.plugins[o])}),n.debug&&this.debug(!0),this.options_.playerOptions=r,this.middleware_=[],this.playbackRates(n.playbackRates),this.initChildren(),this.isAudio(t.nodeName.toLowerCase()==="audio"),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),$d&&this.addClass("vjs-touch-enabled"),Es||this.addClass("vjs-workinghover"),wn.players[this.id_]=this;const i=JN.split(".")[0];this.addClass(`vjs-v${i}`),this.userActive(!0),this.reportUserActivity(),this.one("play",o=>this.listenForUserActivity_(o)),this.on("keydown",o=>this.handleKeyDown(o)),this.on("languagechange",o=>this.handleLanguagechange(o)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),cs(dt,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),cs(dt,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),wn.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),w1e(this),vs.names.forEach(t=>{const n=vs[t],s=this[n.getterName]();s&&s.off&&s.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let t=this.tag,n,s=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const r=this.tag.tagName.toLowerCase()==="video-js";s?n=this.el_=t.parentNode:r||(n=this.el_=super.createEl("div"));const i=_o(t);if(r){for(n=this.el_=t,t=this.tag=dt.createElement("video");n.children.length;)t.appendChild(n.firstChild);Fc(n,"video-js")||Aa(n,"video-js"),n.appendChild(t),s=this.playerElIngest_=n,Object.keys(n).forEach(a=>{try{t[a]=n[a]}catch{}})}if(t.setAttribute("tabindex","-1"),i.tabindex="-1",Ti&&ag&&(t.setAttribute("role","application"),i.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in i&&delete i.width,"height"in i&&delete i.height,Object.getOwnPropertyNames(i).forEach(function(a){r&&a==="class"||n.setAttribute(a,i[a]),r&&t.setAttribute(a,i[a])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),ge.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=TM("vjs-styles-dimensions");const a=Do(".vjs-styles-defaults"),l=Do("head");l.insertBefore(this.styleEl_,a?a.nextSibling:l.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const o=t.getElementsByTagName("a");for(let a=0;a<o.length;a++){const l=o.item(a);Aa(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!s&&t.parentNode.insertBefore(n,t),Ly(t,n),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=n,n}crossOrigin(t){if(typeof t>"u")return this.techGet_("crossOrigin");if(t!==null&&t!=="anonymous"&&t!=="use-credentials"){tn.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${t}"`);return}this.techCall_("setCrossOrigin",t),this.posterImage&&this.posterImage.crossOrigin(t)}width(t){return this.dimension("width",t)}height(t){return this.dimension("height",t)}dimension(t,n){const s=t+"_";if(n===void 0)return this[s]||0;if(n===""||n==="auto"){this[s]=void 0,this.updateStyleEl_();return}const r=parseFloat(n);if(isNaN(r)){tn.error(`Improper value "${n}" supplied for for ${t}`);return}this[s]=r,this.updateStyleEl_()}fluid(t){if(t===void 0)return!!this.fluid_;this.fluid_=!!t,zi(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),Z_e(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(t){if(t===void 0)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(t){if(t===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(ge.VIDEOJS_NO_DYNAMIC_STYLE===!0){const a=typeof this.width_=="number"?this.width_:this.options_.width,l=typeof this.height_=="number"?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(a>=0&&(u.width=a),l>=0&&(u.height=l));return}let t,n,s,r;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?s=this.aspectRatio_:this.videoWidth()>0?s=this.videoWidth()+":"+this.videoHeight():s="16:9";const i=s.split(":"),o=i[1]/i[0];this.width_!==void 0?t=this.width_:this.height_!==void 0?t=this.height_/o:t=this.videoWidth()||300,this.height_!==void 0?n=this.height_:n=t*o,/^[^a-zA-Z]/.test(this.id())?r="dimensions-"+this.id():r=this.id()+"-dimensions",this.addClass(r),SM(this.styleEl_,`
|
||
.${r} {
|
||
width: ${t}px;
|
||
height: ${n}px;
|
||
}
|
||
|
||
.${r}.vjs-fluid:not(.vjs-audio-only-mode) {
|
||
padding-top: ${o*100}%;
|
||
}
|
||
`)}loadTech_(t,n){this.tech_&&this.unloadTech_();const s=$n(t),r=t.charAt(0).toLowerCase()+t.slice(1);s!=="Html5"&&this.tag&&(Yt.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=s,this.isReady_=!1;let i=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(i=!1);const o={source:n,autoplay:i,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${r}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};vs.names.forEach(l=>{const u=vs[l];o[u.getterName]=this[u.privateName]}),Object.assign(o,this.options_[s]),Object.assign(o,this.options_[r]),Object.assign(o,this.options_[t.toLowerCase()]),this.tag&&(o.tag=this.tag),n&&n.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);const a=Yt.getTech(t);if(!a)throw new Error(`No Tech named '${s}' exists! '${s}' should be registered using videojs.registerTech()'`);this.tech_=new a(o),this.tech_.ready(Sn(this,this.handleTechReady_),!0),Rx.jsonToTextTracks(this.textTracksJson_||[],this.tech_),iR.forEach(l=>{this.on(this.tech_,l,u=>this[`handleTech${$n(l)}_`](u))}),Object.keys(Uv).forEach(l=>{this.on(this.tech_,l,u=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${Uv[l]}_`].bind(this),event:u});return}this[`handleTech${Uv[l]}_`](u)})}),this.on(this.tech_,"loadstart",l=>this.handleTechLoadStart_(l)),this.on(this.tech_,"sourceset",l=>this.handleTechSourceset_(l)),this.on(this.tech_,"waiting",l=>this.handleTechWaiting_(l)),this.on(this.tech_,"ended",l=>this.handleTechEnded_(l)),this.on(this.tech_,"seeking",l=>this.handleTechSeeking_(l)),this.on(this.tech_,"play",l=>this.handleTechPlay_(l)),this.on(this.tech_,"pause",l=>this.handleTechPause_(l)),this.on(this.tech_,"durationchange",l=>this.handleTechDurationChange_(l)),this.on(this.tech_,"fullscreenchange",(l,u)=>this.handleTechFullscreenChange_(l,u)),this.on(this.tech_,"fullscreenerror",(l,u)=>this.handleTechFullscreenError_(l,u)),this.on(this.tech_,"enterpictureinpicture",l=>this.handleTechEnterPictureInPicture_(l)),this.on(this.tech_,"leavepictureinpicture",l=>this.handleTechLeavePictureInPicture_(l)),this.on(this.tech_,"error",l=>this.handleTechError_(l)),this.on(this.tech_,"posterchange",l=>this.handleTechPosterChange_(l)),this.on(this.tech_,"textdata",l=>this.handleTechTextData_(l)),this.on(this.tech_,"ratechange",l=>this.handleTechRateChange_(l)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(s!=="Html5"||!this.tag)&&Ly(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){vs.names.forEach(t=>{const n=vs[t];this[n.privateName]=this[n.getterName]()}),this.textTracksJson_=Rx.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(t){return t===void 0&&tn.warn(`Using the tech directly can be dangerous. I hope you know what you're doing.
|
||
See https://github.com/videojs/video.js/issues/2617 for more info.
|
||
`),this.tech_}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(t){if(!this.tech_||typeof t!="string")return;const n=()=>{const r=this.muted();this.muted(!0);const i=()=>{this.muted(r)};this.playTerminatedQueue_.push(i);const o=this.play();if(Vc(o))return o.catch(a=>{throw i(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${a||""}`)})};let s;if(t==="any"&&!this.muted()?(s=this.play(),Vc(s)&&(s=s.catch(n))):t==="muted"&&!this.muted()?s=n():s=this.play(),!!Vc(s))return s.then(()=>{this.trigger({type:"autoplay-success",autoplay:t})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:t})})}updateSourceCaches_(t=""){let n=t,s="";typeof n!="string"&&(n=t.src,s=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],n&&!s&&(s=x1e(this,n)),this.cache_.source=Tn({},t,{src:n,type:s});const r=this.cache_.sources.filter(l=>l.src&&l.src===n),i=[],o=this.$$("source"),a=[];for(let l=0;l<o.length;l++){const u=_o(o[l]);i.push(u),u.src&&u.src===n&&a.push(u.src)}a.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=n}handleTechSourceset_(t){if(!this.changingSrc_){let n=i=>this.updateSourceCaches_(i);const s=this.currentSource().src,r=t.src;s&&!/^blob:/.test(s)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==s)&&(n=()=>{}),n(r),t.src||this.tech_.any(["sourceset","loadstart"],i=>{if(i.type==="sourceset")return;const o=this.techGet("currentSrc");this.lastSource_.tech=o,this.updateSourceCaches_(o)})}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})}hasStarted(t){if(t===void 0)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(t=>t.callback(t.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const t=this.currentTime(),n=()=>{t!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",n))};this.on("timeupdate",n)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(t){this.controls_&&(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.click===void 0||this.options_.userActions.click!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.click=="function"?this.options_.userActions.click.call(this,t):this.paused()?oi(this.play()):this.pause())}handleTechDoubleClick_(t){if(!this.controls_)return;Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),s=>s.contains(t.target))||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.doubleClick===void 0||this.options_.userActions.doubleClick!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.doubleClick=="function"?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(t){t.cancelable&&t.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(t){const n=t.target.player;if(n&&n!==this)return;const s=this.el();let r=dt[this.fsApi_.fullscreenElement]===s;!r&&s.matches?r=s.matches(":"+this.fsApi_.fullscreen):!r&&s.msMatchesSelector&&(r=s.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}handleTechFullscreenChange_(t,n){n&&(n.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(n.isFullscreen))}handleTechFullscreenError_(t,n){this.trigger("fullscreenerror",n)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(t){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(t){this.isInPictureInPicture(!1)}handleTechError_(){const t=this.tech_.error();this.error(t)}handleTechTextData_(){let t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(t,n){this.ready(function(){if(t in T1e)return b1e(this.middleware_,this.tech_,t,n);if(t in Vx)return Bx(this.middleware_,this.tech_,t,n);try{this.tech_&&this.tech_[t](n)}catch(s){throw tn(s),s}},!0)}techGet_(t){if(!(!this.tech_||!this.tech_.isReady_)){if(t in _1e)return y1e(this.middleware_,this.tech_,t);if(t in Vx)return Bx(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(n){throw this.tech_[t]===void 0?(tn(`Video.js: ${t} method not defined for ${this.techName_} playback technology.`,n),n):n.name==="TypeError"?(tn(`Video.js: ${t} unavailable on ${this.techName_} playback technology element.`,n),this.tech_.isReady_=!1,n):(tn(n),n)}}}play(){return new Promise(t=>{this.play_(t)})}play_(t=oi){this.playCallbacks_.push(t);const n=!!(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n){this.waitToPlay_=r=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!n&&(ug||Es)&&this.load();return}const s=this.techGet_("play");s===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(s)}runPlayTerminatedQueue_(){const t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach(function(n){n()})}runPlayCallbacks_(t){const n=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],n.forEach(function(s){s(t)})}pause(){this.techCall_("pause")}paused(){return this.techGet_("paused")!==!1}played(){return this.techGet_("played")||pi(0,0)}scrubbing(t){if(typeof t>"u")return this.scrubbing_;this.scrubbing_=!!t,this.techCall_("setScrubbing",this.scrubbing_),t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(t){if(typeof t<"u"){if(t<0&&(t=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=t,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",t),this.cache_.initTime=0;return}return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(t){if(t===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;t=parseFloat(t),t<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let t=this.techGet_("buffered");return(!t||!t.length)&&(t=pi(0,0)),t}bufferedPercent(){return PM(this.buffered(),this.duration())}bufferedEnd(){const t=this.buffered(),n=this.duration();let s=t.end(t.length-1);return s>n&&(s=n),s}volume(t){let n;if(t!==void 0){n=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=n,this.techCall_("setVolume",n),n>0&&this.lastVolume_(n);return}return n=parseFloat(this.techGet_("volume")),isNaN(n)?1:n}muted(t){if(t!==void 0){this.techCall_("setMuted",t);return}return this.techGet_("muted")||!1}defaultMuted(t){return t!==void 0?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1}lastVolume_(t){if(t!==void 0&&t!==0){this.cache_.lastVolume=t;return}return this.cache_.lastVolume}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(t){if(t!==void 0){const n=this.isFullscreen_;this.isFullscreen_=!!t,this.isFullscreen_!==n&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(t){this.isInPictureInPicture()&&this.exitPictureInPicture();const n=this;return new Promise((s,r)=>{function i(){n.off("fullscreenerror",a),n.off("fullscreenchange",o)}function o(){i(),s()}function a(u,d){i(),r(d)}n.one("fullscreenchange",o),n.one("fullscreenerror",a);const l=n.requestFullscreenHelper_(t);l&&(l.then(i,i),l.then(s,r))})}requestFullscreenHelper_(t){let n;if(this.fsApi_.prefixed||(n=this.options_.fullscreen&&this.options_.fullscreen.options||{},t!==void 0&&(n=t)),this.fsApi_.requestFullscreen){const s=this.el_[this.fsApi_.requestFullscreen](n);return s&&s.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),s}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const t=this;return new Promise((n,s)=>{function r(){t.off("fullscreenerror",o),t.off("fullscreenchange",i)}function i(){r(),n()}function o(l,u){r(),s(u)}t.one("fullscreenchange",i),t.one("fullscreenerror",o);const a=t.exitFullscreenHelper_();a&&(a.then(r,r),a.then(n,s))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const t=dt[this.fsApi_.exitFullscreen]();return t&&oi(t.then(()=>this.isFullscreen(!1))),t}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=dt.documentElement.style.overflow,ir(dt,"keydown",this.boundFullWindowOnEscKey_),dt.documentElement.style.overflow="hidden",Aa(dt.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(t){jt.isEventKey(t,"Esc")&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,cs(dt,"keydown",this.boundFullWindowOnEscKey_),dt.documentElement.style.overflow=this.docOrigOverflow,cg(dt.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(t){if(t===void 0)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",t),this.options_.disablePictureInPicture=t,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(t){if(t!==void 0){this.isInPictureInPicture_=!!t,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}requestPictureInPicture(){if("pictureInPictureEnabled"in dt&&this.disablePictureInPicture()===!1)return this.techGet_("requestPictureInPicture")}exitPictureInPicture(){if("pictureInPictureEnabled"in dt)return dt.exitPictureInPicture()}handleKeyDown(t){const{userActions:n}=this.options_;!n||!n.hotkeys||(r=>{const i=r.tagName.toLowerCase();if(r.isContentEditable)return!0;const o=["button","checkbox","hidden","radio","reset","submit"];return i==="input"?o.indexOf(r.type)===-1:["textarea"].indexOf(i)!==-1})(this.el_.ownerDocument.activeElement)||(typeof n.hotkeys=="function"?n.hotkeys.call(this,t):this.handleHotkeys(t))}handleHotkeys(t){const n=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:s=o=>jt.isEventKey(o,"f"),muteKey:r=o=>jt.isEventKey(o,"m"),playPauseKey:i=o=>jt.isEventKey(o,"k")||jt.isEventKey(o,"Space")}=n;if(s.call(this,t)){t.preventDefault(),t.stopPropagation();const o=Xe.getComponent("FullscreenToggle");dt[this.fsApi_.fullscreenEnabled]!==!1&&o.prototype.handleClick.call(this,t)}else r.call(this,t)?(t.preventDefault(),t.stopPropagation(),Xe.getComponent("MuteToggle").prototype.handleClick.call(this,t)):i.call(this,t)&&(t.preventDefault(),t.stopPropagation(),Xe.getComponent("PlayToggle").prototype.handleClick.call(this,t))}canPlayType(t){let n;for(let s=0,r=this.options_.techOrder;s<r.length;s++){const i=r[s];let o=Yt.getTech(i);if(o||(o=Xe.getComponent(i)),!o){tn.error(`The "${i}" tech is undefined. Skipped browser support check for that tech.`);continue}if(o.isSupported()&&(n=o.canPlayType(t),n))return n}return""}selectSource(t){const n=this.options_.techOrder.map(a=>[a,Yt.getTech(a)]).filter(([a,l])=>l?l.isSupported():(tn.error(`The "${a}" tech is undefined. Skipped browser support check for that tech.`),!1)),s=function(a,l,u){let d;return a.some(f=>l.some(h=>{if(d=u(f,h),d)return!0})),d};let r;const i=a=>(l,u)=>a(u,l),o=([a,l],u)=>{if(l.canPlaySource(u,this.options_[a.toLowerCase()]))return{source:u,tech:a}};return this.options_.sourceOrder?r=s(t,n,i(o)):r=s(n,t,o),r||!1}handleSrc_(t,n){if(typeof t>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const s=LM(t);if(!s.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,n||(this.cache_.sources=s),this.updateSourceCaches_(s[0]),g1e(this,s[0],(r,i)=>{if(this.middleware_=i,n||(this.cache_.sources=s),this.updateSourceCaches_(r),this.src_(r)){if(s.length>1)return this.handleSrc_(s.slice(1));this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),this.triggerReady();return}v1e(i,this.tech_)}),s.length>1){const r=()=>{this.error(null),this.handleSrc_(s.slice(1),!0)},i=()=>{this.off("error",r)};this.one("error",r),this.one("playing",i),this.resetRetryOnError_=()=>{this.off("error",r),this.off("playing",i)}}}src(t){return this.handleSrc_(t,!1)}src_(t){const n=this.selectSource([t]);return n?kM(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1):!0}load(){this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const t=this.play();oi(t.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),zi(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{durationDisplay:t,remainingTimeDisplay:n}=this.controlBar||{};t&&t.updateContent(),n&&n.updateContent()}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const t=this.currentSource(),n=[];return Object.keys(t).length!==0&&n.push(t),this.cache_.sources||n}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(t){if(t!==void 0){this.techCall_("setPreload",t),this.options_.preload=t;return}return this.techGet_("preload")}autoplay(t){if(t===void 0)return this.options_.autoplay||!1;let n;typeof t=="string"&&/(any|play|muted)/.test(t)||t===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=t,this.manualAutoplay_(typeof t=="string"?t:"play"),n=!1):t?this.options_.autoplay=!0:this.options_.autoplay=!1,n=typeof n>"u"?this.options_.autoplay:n,this.tech_&&this.techCall_("setAutoplay",n)}playsinline(t){return t!==void 0?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")}loop(t){if(t!==void 0){this.techCall_("setLoop",t),this.options_.loop=t;return}return this.techGet_("loop")}poster(t){if(t===void 0)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(t){if(t===void 0)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(t){if(t===void 0)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(t){if(t===void 0)return this.error_||null;if(Lo("beforeerror").forEach(n=>{const s=n(this,t);if(!(bi(s)&&!Array.isArray(s)||typeof s=="string"||typeof s=="number"||s===null)){this.log.error("please return a value that MediaError expects in beforeerror hooks");return}t=s}),this.options_.suppressNotSupportedError&&t&&t.code===4){const n=function(){this.error(t)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),this.one("loadstart",function(){this.off(["click","touchstart"],n)});return}if(t===null){this.error_=t,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new _s(t),this.addClass("vjs-error"),tn.error(`(CODE:${this.error_.code} ${_s.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),Lo("error").forEach(n=>n(this,this.error_))}reportUserActivity(t){this.userActivity_=!0}userActive(t){if(t===void 0)return this.userActive_;if(t=!!t,t!==this.userActive_){if(this.userActive_=t,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation(),n.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let t,n,s;const r=Sn(this,this.reportUserActivity),i=function(d){(d.screenX!==n||d.screenY!==s)&&(n=d.screenX,s=d.screenY,r())},o=function(){r(),this.clearInterval(t),t=this.setInterval(r,250)},a=function(d){r(),this.clearInterval(t)};this.on("mousedown",o),this.on("mousemove",i),this.on("mouseup",a),this.on("mouseleave",a);const l=this.getChild("controlBar");l&&!Es&&!_i&&(l.on("mouseenter",function(d){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(d){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r);let u;this.setInterval(function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(u);const d=this.options_.inactivityTimeout;d<=0||(u=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},d))},250)}playbackRate(t){if(t!==void 0){this.techCall_("setPlaybackRate",t);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}defaultPlaybackRate(t){return t!==void 0?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(t){if(t!==void 0){this.isAudio_=!!t;return}return!!this.isAudio_}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const t=this.children(),n=this.getChild("ControlBar"),s=n&&n.currentHeight();t.forEach(r=>{r!==n&&r.el_&&!r.hasClass("vjs-hidden")&&(r.hide(),this.audioOnlyCache_.hiddenChildren.push(r))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(s),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(t=>t.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(t){if(typeof t!="boolean"||t===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=t,t){const n=[];return this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),Promise.all(n).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(t){return typeof t!="boolean"||t===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=t,t?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(t,n,s){if(this.tech_)return this.tech_.addTextTrack(t,n,s)}addRemoteTextTrack(t,n){if(this.tech_)return this.tech_.addRemoteTextTrack(t,n)}removeRemoteTextTrack(t={}){let{track:n}=t;if(n||(n=t),this.tech_)return this.tech_.removeRemoteTextTrack(n)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(t){if(t===void 0)return this.language_;this.language_!==String(t).toLowerCase()&&(this.language_=String(t).toLowerCase(),zi(this)&&this.trigger("languagechange"))}languages(){return Tn(wn.prototype.options_.languages,this.languages_)}toJSON(){const t=Tn(this.options_),n=t.tracks;t.tracks=[];for(let s=0;s<n.length;s++){let r=n[s];r=Tn(r),r.player=void 0,t.tracks[s]=r}return t}createModal(t,n){n=n||{},n.content=t||"";const s=new Du(this,n);return this.addChild(s),s.on("dispose",()=>{this.removeChild(s)}),s.open(),s}updateCurrentBreakpoint_(){if(!this.responsive())return;const t=this.currentBreakpoint(),n=this.currentWidth();for(let s=0;s<Ky.length;s++){const r=Ky[s],i=this.breakpoints_[r];if(n<=i){if(t===r)return;t&&this.removeClass(ep[t]),this.addClass(ep[r]),this.breakpoint_=r;break}}}removeCurrentBreakpoint_(){const t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)}breakpoints(t){return t===void 0?Object.assign(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Object.assign({},tTe,t),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}responsive(t){if(t===void 0)return this.responsive_;t=!!t;const n=this.responsive_;if(t!==n)return this.responsive_=t,t?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return ep[this.breakpoint_]||""}loadMedia(t,n){if(!t||typeof t!="object")return;this.reset(),this.cache_.media=Tn(t);const{artist:s,artwork:r,description:i,poster:o,src:a,textTracks:l,title:u}=this.cache_.media;!r&&o&&(this.cache_.media.artwork=[{src:o,type:Kp(o)}]),a&&this.src(a),o&&this.poster(o),Array.isArray(l)&&l.forEach(d=>this.addRemoteTextTrack(d,!1)),this.titleBar&&this.titleBar.update({title:u,description:i||s||""}),this.ready(n)}getMedia(){if(!this.cache_.media){const t=this.poster(),n=this.currentSources(),s=Array.prototype.map.call(this.remoteTextTracks(),i=>({kind:i.kind,label:i.label,language:i.language,src:i.src})),r={src:n,textTracks:s};return t&&(r.poster=t,r.artwork=[{src:r.poster,type:Kp(r.poster)}]),r}return Tn(this.cache_.media)}static getTagSettings(t){const n={sources:[],tracks:[]},s=_o(t),r=s["data-setup"];if(Fc(t,"vjs-fill")&&(s.fill=!0),Fc(t,"vjs-fluid")&&(s.fluid=!0),r!==null){const[i,o]=B0e(r||"{}");i&&tn.error(i),Object.assign(s,o)}if(Object.assign(n,s),t.hasChildNodes()){const i=t.childNodes;for(let o=0,a=i.length;o<a;o++){const l=i[o],u=l.nodeName.toLowerCase();u==="source"?n.sources.push(_o(l)):u==="track"&&n.tracks.push(_o(l))}}return n}debug(t){if(t===void 0)return this.debugEnabled_;t?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(t){if(t===void 0)return this.cache_.playbackRates;Array.isArray(t)&&t.every(n=>typeof n=="number")&&(this.cache_.playbackRates=t,this.trigger("playbackrateschange"))}}vs.names.forEach(function(e){const t=vs[e];wn.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}});wn.prototype.crossorigin=wn.prototype.crossOrigin;wn.players={};const dc=ge.navigator;wn.prototype.options_={techOrder:Yt.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:dc&&(dc.languages&&dc.languages[0]||dc.userLanguage||dc.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1};["ended","seeking","seekable","networkState","readyState"].forEach(function(e){wn.prototype[e]=function(){return this.techGet_(e)}});iR.forEach(function(e){wn.prototype[`handleTech${$n(e)}_`]=function(){return this.trigger(e)}});Xe.registerComponent("Player",wn);const qp="plugin",Dl="activePlugins_",Tl={},Gp=e=>Tl.hasOwnProperty(e),tp=e=>Gp(e)?Tl[e]:void 0,oR=(e,t)=>{e[Dl]=e[Dl]||{},e[Dl][t]=!0},Yp=(e,t,n)=>{const s=(n?"before":"")+"pluginsetup";e.trigger(s,t),e.trigger(s+":"+t.name,t)},nTe=function(e,t){const n=function(){Yp(this,{name:e,plugin:t,instance:null},!0);const s=t.apply(this,arguments);return oR(this,e),Yp(this,{name:e,plugin:t,instance:s}),s};return Object.keys(t).forEach(function(s){n[s]=t[s]}),n},ek=(e,t)=>(t.prototype.name=e,function(...n){Yp(this,{name:e,plugin:t,instance:null},!0);const s=new t(this,...n);return this[e]=()=>s,Yp(this,s.getEventHash()),s});class Us{constructor(t){if(this.constructor===Us)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),F1(this),delete this.trigger,xM(this,this.constructor.defaultState),oR(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(t={}){return t.name=this.name,t.plugin=this.constructor,t.instance=this,t}trigger(t,n={}){return Lu(this.eventBusEl_,t,this.getEventHash(n))}handleStateChanged(t){}dispose(){const{name:t,player:n}=this;this.trigger("dispose"),this.off(),n.off("dispose",this.dispose),n[Dl][t]=!1,this.player=this.state=null,n[t]=ek(t,Tl[t])}static isBasic(t){const n=typeof t=="string"?tp(t):t;return typeof n=="function"&&!Us.prototype.isPrototypeOf(n.prototype)}static registerPlugin(t,n){if(typeof t!="string")throw new Error(`Illegal plugin name, "${t}", must be a string, was ${typeof t}.`);if(Gp(t))tn.warn(`A plugin named "${t}" already exists. You may want to avoid re-registering plugins!`);else if(wn.prototype.hasOwnProperty(t))throw new Error(`Illegal plugin name, "${t}", cannot share a name with an existing player method!`);if(typeof n!="function")throw new Error(`Illegal plugin for "${t}", must be a function, was ${typeof n}.`);return Tl[t]=n,t!==qp&&(Us.isBasic(n)?wn.prototype[t]=nTe(t,n):wn.prototype[t]=ek(t,n)),n}static deregisterPlugin(t){if(t===qp)throw new Error("Cannot de-register base plugin.");Gp(t)&&(delete Tl[t],delete wn.prototype[t])}static getPlugins(t=Object.keys(Tl)){let n;return t.forEach(s=>{const r=tp(s);r&&(n=n||{},n[s]=r)}),n}static getPluginVersion(t){const n=tp(t);return n&&n.VERSION||""}}Us.getPlugin=tp;Us.BASE_PLUGIN_NAME=qp;Us.registerPlugin(qp,Us);wn.prototype.usingPlugin=function(e){return!!this[Dl]&&this[Dl][e]===!0};wn.prototype.hasPlugin=function(e){return!!Gp(e)};function sTe(e,t){let n=!1;return function(...s){return n||tn.warn(e),n=!0,t.apply(this,s)}}function Gr(e,t,n,s){return sTe(`${t} is deprecated and will be removed in ${e}.0; please use ${n} instead.`,s)}const aR=e=>e.indexOf("#")===0?e.slice(1):e;function je(e,t,n){let s=je.getPlayer(e);if(s)return t&&tn.warn(`Player "${e}" is already initialised. Options will not be applied.`),n&&s.ready(n),s;const r=typeof e=="string"?Do("#"+aR(e)):e;if(!Ru(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");(!r.ownerDocument.defaultView||!r.ownerDocument.body.contains(r))&&tn.warn("The element supplied is not included in the DOM"),t=t||{},t.restoreEl===!0&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),Lo("beforesetup").forEach(o=>{const a=o(r,Tn(t));if(!bi(a)||Array.isArray(a)){tn.error("please return an object in beforesetup hooks");return}t=Tn(t,a)});const i=Xe.getComponent("Player");return s=new i(r,t,n),Lo("setup").forEach(o=>o(s)),s}je.hooks_=Di;je.hooks=Lo;je.hook=B_e;je.hookOnce=V_e;je.removeHook=ZN;if(ge.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&Mu()){let e=Do(".vjs-styles-defaults");if(!e){e=TM("vjs-styles-defaults");const t=Do("head");t&&t.insertBefore(e,t.firstChild),SM(e,`
|
||
.video-js {
|
||
width: 300px;
|
||
height: 150px;
|
||
}
|
||
|
||
.vjs-fluid:not(.vjs-audio-only-mode) {
|
||
padding-top: 56.25%
|
||
}
|
||
`)}}Fy(1,je);je.VERSION=JN;je.options=wn.prototype.options_;je.getPlayers=()=>wn.players;je.getPlayer=e=>{const t=wn.players;let n;if(typeof e=="string"){const s=aR(e),r=t[s];if(r)return r;n=Do("#"+s)}else n=e;if(Ru(n)){const{player:s,playerId:r}=n;if(s||t[r])return s||t[r]}};je.getAllPlayers=()=>Object.keys(wn.players).map(e=>wn.players[e]).filter(Boolean);je.players=wn.players;je.getComponent=Xe.getComponent;je.registerComponent=(e,t)=>{Yt.isTech(t)&&tn.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Xe.registerComponent.call(Xe,e,t)};je.getTech=Yt.getTech;je.registerTech=Yt.registerTech;je.use=m1e;Object.defineProperty(je,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(je.middleware,"TERMINATOR",{value:jp,writeable:!1,enumerable:!0});je.browser=j_e;je.obj=z_e;je.mergeOptions=Gr(9,"videojs.mergeOptions","videojs.obj.merge",Tn);je.defineLazyProperty=Gr(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",ig);je.bind=Gr(9,"videojs.bind","native Function.prototype.bind",Sn);je.registerPlugin=Us.registerPlugin;je.deregisterPlugin=Us.deregisterPlugin;je.plugin=(e,t)=>(tn.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Us.registerPlugin(e,t));je.getPlugins=Us.getPlugins;je.getPlugin=Us.getPlugin;je.getPluginVersion=Us.getPluginVersion;je.addLanguage=function(e,t){return e=(""+e).toLowerCase(),je.options.languages=Tn(je.options.languages,{[e]:t}),je.options.languages[e]};je.log=tn;je.createLogger=tM;je.time=r1e;je.createTimeRange=Gr(9,"videojs.createTimeRange","videojs.time.createTimeRanges",pi);je.createTimeRanges=Gr(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",pi);je.formatTime=Gr(9,"videojs.formatTime","videojs.time.formatTime",Da);je.setFormatTime=Gr(9,"videojs.setFormatTime","videojs.time.setFormatTime",AM);je.resetFormatTime=Gr(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",IM);je.parseUrl=Gr(9,"videojs.parseUrl","videojs.url.parseUrl",U1);je.isCrossOrigin=Gr(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",vg);je.EventTarget=Cr;je.any=D1;je.on=ir;je.one=mg;je.off=cs;je.trigger=Lu;je.xhr=xd;je.TextTrack=af;je.AudioTrack=MM;je.VideoTrack=RM;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{je[e]=function(){return tn.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),bM[e].apply(null,arguments)}});je.computedStyle=Gr(9,"videojs.computedStyle","videojs.dom.computedStyle",vu);je.dom=bM;je.fn=J_e;je.num=M1e;je.str=n1e;je.url=h1e;/*! @name videojs-contrib-quality-levels @version 3.0.0 @license Apache-2.0 */class rTe{constructor(t){let n=this;return n.id=t.id,n.label=n.id,n.width=t.width,n.height=t.height,n.bitrate=t.bandwidth,n.frameRate=t.frameRate,n.enabled_=t.enabled,Object.defineProperty(n,"enabled",{get(){return n.enabled_()},set(s){n.enabled_(s)}}),n}}class Xp extends je.EventTarget{constructor(){super();let t=this;return t.levels_=[],t.selectedIndex_=-1,Object.defineProperty(t,"selectedIndex",{get(){return t.selectedIndex_}}),Object.defineProperty(t,"length",{get(){return t.levels_.length}}),t}addQualityLevel(t){let n=this.getQualityLevelById(t.id);if(n)return n;const s=this.levels_.length;return n=new rTe(t),""+s in this||Object.defineProperty(this,s,{get(){return this.levels_[s]}}),this.levels_.push(n),this.trigger({qualityLevel:n,type:"addqualitylevel"}),n}removeQualityLevel(t){let n=null;for(let s=0,r=this.length;s<r;s++)if(this[s]===t){n=this.levels_.splice(s,1)[0],this.selectedIndex_===s?this.selectedIndex_=-1:this.selectedIndex_>s&&this.selectedIndex_--;break}return n&&this.trigger({qualityLevel:t,type:"removequalitylevel"}),n}getQualityLevelById(t){for(let n=0,s=this.length;n<s;n++){const r=this[n];if(r.id===t)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}Xp.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const e in Xp.prototype.allowedEvents_)Xp.prototype["on"+e]=null;var lR="3.0.0";const iTe=je.registerPlugin||je.plugin,oTe=function(e,t){const n=e.qualityLevels,s=new Xp,r=function(){s.dispose(),e.qualityLevels=n,e.off("dispose",r)};return e.on("dispose",r),e.qualityLevels=()=>s,e.qualityLevels.VERSION=lR,s},uR=function(e){return oTe(this,je.mergeOptions({},e))};iTe("qualityLevels",uR);uR.VERSION=lR;/*! @name @videojs/http-streaming @version 3.0.0 @license Apache-2.0 */const $r=Iye,Qp=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,Yr=e=>je.log.debug?je.log.debug.bind(je,"VHS:",`${e} >`):function(){};function yn(...e){const t=je.obj||je;return(t.merge||t.mergeOptions).apply(t,e)}function us(...e){const t=je.time||je;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}const Fo=1/30,ai=Fo*3,cR=function(e,t){const n=[];let s;if(e&&e.length)for(s=0;s<e.length;s++)t(e.start(s),e.end(s))&&n.push([e.start(s),e.end(s)]);return us(n)},Sl=function(e,t){return cR(e,function(n,s){return n-ai<=t&&s+ai>=t})},hh=function(e,t){return cR(e,function(n){return n-Fo>=t})},aTe=function(e){if(e.length<2)return us();const t=[];for(let n=1;n<e.length;n++){const s=e.end(n-1),r=e.start(n);t.push([s,r])}return us(t)},lTe=function(e,t){let n=null,s=null,r=0;const i=[],o=[];if(!e||!e.length||!t||!t.length)return us();let a=e.length;for(;a--;)i.push({time:e.start(a),type:"start"}),i.push({time:e.end(a),type:"end"});for(a=t.length;a--;)i.push({time:t.start(a),type:"start"}),i.push({time:t.end(a),type:"end"});for(i.sort(function(l,u){return l.time-u.time}),a=0;a<i.length;a++)i[a].type==="start"?(r++,r===2&&(n=i[a].time)):i[a].type==="end"&&(r--,r===1&&(s=i[a].time)),n!==null&&s!==null&&(o.push([n,s]),n=null,s=null);return us(o)},dR=e=>{const t=[];if(!e||!e.length)return"";for(let n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},uTe=function(e,t,n=1){return((e.length?e.end(e.length-1):0)-t)/n},Ta=e=>{const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},cTe=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e||e.length!==t.length)return!0;for(let n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1},tk=function(e){if(!(!e||!e.length||!e.end))return e.end(e.length-1)},iT=function(e,t){let n=0;if(!e||!e.length)return n;for(let s=0;s<e.length;s++){const r=e.start(s),i=e.end(s);if(!(t>i)){if(t>r&&t<=i){n+=i-t;continue}n+=i-r}}return n},oT=(e,t)=>{if(!t.preload)return t.duration;let n=0;return(t.parts||[]).forEach(function(s){n+=s.duration}),(t.preloadHints||[]).forEach(function(s){s.type==="PART"&&(n+=e.partTargetDuration)}),n},Wy=e=>(e.segments||[]).reduce((t,n,s)=>(n.parts?n.parts.forEach(function(r,i){t.push({duration:r.duration,segmentIndex:s,partIndex:i,part:r,segment:n})}):t.push({duration:n.duration,segmentIndex:s,partIndex:null,segment:n,part:null}),t),[]),fR=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},hR=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:n}=e;let s=(n||[]).reduce((r,i)=>r+(i.type==="PART"?1:0),0);return s+=t&&t.length?t.length:0,s},pR=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const n=fR(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?t.partTargetDuration*3:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?t.targetDuration*3:0},dTe=function(e,t){let n=0,s=t-e.mediaSequence,r=e.segments[s];if(r){if(typeof r.start<"u")return{result:r.start,precise:!0};if(typeof r.end<"u")return{result:r.end-r.duration,precise:!0}}for(;s--;){if(r=e.segments[s],typeof r.end<"u")return{result:n+r.end,precise:!0};if(n+=oT(e,r),typeof r.start<"u")return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},fTe=function(e,t){let n=0,s,r=t-e.mediaSequence;for(;r<e.segments.length;r++){if(s=e.segments[r],typeof s.start<"u")return{result:s.start-n,precise:!0};if(n+=oT(e,s),typeof s.end<"u")return{result:s.end-n,precise:!0}}return{result:-1,precise:!1}},mR=function(e,t,n){if(typeof t>"u"&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const s=dTe(e,t);if(s.precise)return s.result;const r=fTe(e,t);return r.precise?r.result:s.result+n},gR=function(e,t,n){if(!e)return 0;if(typeof n!="number"&&(n=0),typeof t>"u"){if(e.totalDuration)return e.totalDuration;if(!e.endList)return ge.Infinity}return mR(e,t,n)},Uc=function({defaultDuration:e,durationList:t,startIndex:n,endIndex:s}){let r=0;if(n>s&&([n,s]=[s,n]),n<0){for(let i=n;i<Math.min(0,s);i++)r+=e;n=0}for(let i=n;i<s;i++)r+=t[i].duration;return r},vR=function(e,t,n,s){if(!e||!e.segments)return null;if(e.endList)return gR(e);if(t===null)return null;t=t||0;let r=mR(e,e.mediaSequence+e.segments.length,t);return n&&(s=typeof s=="number"?s:pR(null,e),r-=s),Math.max(0,r)},hTe=function(e,t,n){const r=t||0,i=vR(e,t,!0,n);return i===null?us():us(r,i)},pTe=function({playlist:e,currentTime:t,startingSegmentIndex:n,startingPartIndex:s,startTime:r,exactManifestTimings:i}){let o=t-r;const a=Wy(e);let l=0;for(let u=0;u<a.length;u++){const d=a[u];if(n===d.segmentIndex&&!(typeof s=="number"&&typeof d.partIndex=="number"&&s!==d.partIndex)){l=u;break}}if(o<0){if(l>0)for(let u=l-1;u>=0;u--){const d=a[u];if(o+=d.duration,i){if(o<0)continue}else if(o+Fo<=0)continue;return{partIndex:d.partIndex,segmentIndex:d.segmentIndex,startTime:r-Uc({defaultDuration:e.targetDuration,durationList:a,startIndex:l,endIndex:u})}}return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:t}}if(l<0){for(let u=l;u<0;u++)if(o-=e.targetDuration,o<0)return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:t};l=0}for(let u=l;u<a.length;u++){const d=a[u];if(o-=d.duration,i){if(o>0)continue}else if(o-Fo>=0)continue;return{partIndex:d.partIndex,segmentIndex:d.segmentIndex,startTime:r+Uc({defaultDuration:e.targetDuration,durationList:a,startIndex:l,endIndex:u})}}return{segmentIndex:a[a.length-1].segmentIndex,partIndex:a[a.length-1].partIndex,startTime:t}},yR=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},aT=function(e){return e.excludeUntil&&e.excludeUntil===1/0},_g=function(e){const t=yR(e);return!e.disabled&&!t},mTe=function(e){return e.disabled},gTe=function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},bR=function(e,t){return t.attributes&&t.attributes[e]},vTe=function(e,t,n,s=0){return bR("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-s*8)/t:NaN},qy=(e,t)=>{if(e.playlists.length===1)return!0;const n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return e.playlists.filter(s=>_g(s)?(s.attributes.BANDWIDTH||0)<n:!1).length===0},lT=(e,t)=>!e&&!t||!e&&t||e&&!t?!1:!!(e===t||e.id&&t.id&&e.id===t.id||e.resolvedUri&&t.resolvedUri&&e.resolvedUri===t.resolvedUri||e.uri&&t.uri&&e.uri===t.uri),nk=function(e,t){const n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let s=!1;for(const r in n){for(const i in n[r])if(s=t(n[r][i]),s)break;if(s)break}return!!s},df=e=>{if(!e||!e.playlists||!e.playlists.length)return nk(e,n=>n.playlists&&n.playlists.length||n.uri);for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t],s=n.attributes&&n.attributes.CODECS;if(!(s&&s.split(",").every(i=>lN(i))||nk(e,i=>lT(n,i))))return!1}return!0};var Ds={liveEdgeDelay:pR,duration:gR,seekable:hTe,getMediaInfoForTime:pTe,isEnabled:_g,isDisabled:mTe,isExcluded:yR,isIncompatible:aT,playlistEnd:vR,isAes:gTe,hasAttribute:bR,estimateSegmentRequestTime:vTe,isLowestEnabledRendition:qy,isAudioOnly:df,playlistMatch:lT,segmentDurationWithParts:oT};const{log:_R}=je,uT=(e,t)=>`${e}-${t}`,yTe=({onwarn:e,oninfo:t,manifestString:n,customTagParsers:s=[],customTagMappers:r=[],llhls:i})=>{const o=new Fye;e&&o.on("warn",e),t&&o.on("info",t),s.forEach(u=>o.addParser(u)),r.forEach(u=>o.addTagMapper(u)),o.push(n),o.end();const a=o.manifest;if(i||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(u){a.hasOwnProperty(u)&&delete a[u]}),a.segments&&a.segments.forEach(function(u){["parts","preloadHints"].forEach(function(d){u.hasOwnProperty(d)&&delete u[d]})})),!a.targetDuration){let u=10;a.segments&&a.segments.length&&(u=a.segments.reduce((d,f)=>Math.max(d,f.duration),0)),e&&e(`manifest has no targetDuration defaulting to ${u}`),a.targetDuration=u}const l=fR(a);if(l.length&&!a.partTargetDuration){const u=l.reduce((d,f)=>Math.max(d,f.duration),0);e&&(e(`manifest has no partTargetDuration defaulting to ${u}`),_R.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),a.partTargetDuration=u}return a},ff=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(n=>{if(e.mediaGroups[n])for(const s in e.mediaGroups[n])for(const r in e.mediaGroups[n][s]){const i=e.mediaGroups[n][s][r];t(i,n,s,r)}})},TR=({playlist:e,uri:t,id:n})=>{e.id=n,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},bTe=e=>{let t=e.playlists.length;for(;t--;){const n=e.playlists[t];TR({playlist:n,id:uT(t,n.uri)}),n.resolvedUri=$r(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||_R.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},_Te=e=>{ff(e,t=>{t.uri&&(t.resolvedUri=$r(e.uri,t.uri))})},TTe=(e,t)=>{const n=uT(0,t),s={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:ge.location.href,resolvedUri:ge.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return s.playlists[n]=s.playlists[0],s.playlists[t]=s.playlists[0],s},SR=(e,t)=>{e.uri=t;for(let s=0;s<e.playlists.length;s++)if(!e.playlists[s].uri){const r=`placeholder-uri-${s}`;e.playlists[s].uri=r}const n=df(e);ff(e,(s,r,i,o)=>{const a=`placeholder-uri-${r}-${i}-${o}`;if(!s.playlists||!s.playlists.length){if(n&&r==="AUDIO"&&!s.uri)for(let l=0;l<e.playlists.length;l++){const u=e.playlists[l];if(u.attributes&&u.attributes.AUDIO&&u.attributes.AUDIO===i)return}s.playlists=[Yi({},s)]}s.playlists.forEach(function(l,u){const d=uT(u,a);l.uri?l.resolvedUri=l.resolvedUri||$r(e.uri,l.uri):(l.uri=u===0?a:d,l.resolvedUri=l.uri),l.id=l.id||d,l.attributes=l.attributes||{},e.playlists[l.id]=l,e.playlists[l.uri]=l})}),bTe(e),_Te(e)},{EventTarget:STe}=je,wTe=(e,t)=>{if(t.endList||!t.serverControl)return e;const n={};if(t.serverControl.canBlockReload){const{preloadSegment:s}=t;let r=t.mediaSequence+t.segments.length;if(s){const i=s.parts||[],o=hR(t)-1;o>-1&&o!==i.length-1&&(n._HLS_part=o),(o>-1||i.length)&&r--}n._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){const s=new ge.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(r){n.hasOwnProperty(r)&&s.searchParams.set(r,n[r])}),e=s.toString()}return e},CTe=(e,t)=>{if(!e)return t;const n=yn(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(let s=0;s<t.parts.length;s++)e.parts&&e.parts[s]&&(n.parts[s]=yn(e.parts[s],t.parts[s]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},ETe=(e,t,n)=>{const s=e.slice(),r=t.slice();n=n||0;const i=[];let o;for(let a=0;a<r.length;a++){const l=s[a+n],u=r[a];l?(o=l.map||o,i.push(CTe(l,u))):(o&&!u.map&&(u.map=o),i.push(u))}return i},wR=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=$r(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=$r(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=$r(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=$r(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(n=>{n.resolvedUri||(n.resolvedUri=$r(t,n.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(n=>{n.resolvedUri||(n.resolvedUri=$r(t,n.uri))})},CR=function(e){const t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints){for(let s=0;s<n.preloadHints.length;s++)if(n.preloadHints[s].type==="MAP")return t}n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},ER=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,Gy=(e,t,n=ER)=>{const s=yn(e,{}),r=s.playlists[t.id];if(!r||n(r,t))return null;t.segments=CR(t);const i=yn(r,t);if(i.preloadSegment&&!t.preloadSegment&&delete i.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(let o=0;o<t.skip.skippedSegments;o++)t.segments.unshift({skipped:!0})}i.segments=ETe(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}i.segments.forEach(o=>{wR(o,i.resolvedUri)});for(let o=0;o<s.playlists.length;o++)s.playlists[o].id===t.id&&(s.playlists[o]=i);return s.playlists[t.id]=i,s.playlists[t.uri]=i,ff(e,(o,a,l,u)=>{if(o.playlists)for(let d=0;d<o.playlists.length;d++)t.id===o.playlists[d].id&&(o.playlists[d]=i)}),s},Yy=(e,t)=>{const n=e.segments||[],s=n[n.length-1],r=s&&s.parts&&s.parts[s.parts.length-1],i=r&&r.duration||s&&s.duration;return t&&i?i*1e3:(e.partTargetDuration||e.targetDuration||10)*500};class wl extends STe{constructor(t,n,s={}){if(super(),!t)throw new Error("A non-empty playlist URL or object is required");this.logger_=Yr("PlaylistLoader");const{withCredentials:r=!1}=s;this.src=t,this.vhs_=n,this.withCredentials=r;const i=n.options_;this.customTagParsers=i&&i.customTagParsers||[],this.customTagMappers=i&&i.customTagMappers||[],this.llhls=i&&i.llhls,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_)}handleMediaupdatetimeout_(){if(this.state!=="HAVE_METADATA")return;const t=this.media();let n=$r(this.main.uri,t.uri);this.llhls&&(n=wTe(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(s,r)=>{if(this.request){if(s)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(t,n,s){const{uri:r,id:i}=n;this.request=null,s&&(this.state=s),this.error={playlist:this.main.playlists[i],status:t.status,message:`HLS playlist request error at URL: ${r}.`,responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")}parseManifest_({url:t,manifestString:n}){return yTe({onwarn:({message:s})=>this.logger_(`m3u8-parser warn for ${t}: ${s}`),oninfo:({message:s})=>this.logger_(`m3u8-parser info for ${t}: ${s}`),manifestString:n,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}haveMetadata({playlistString:t,playlistObject:n,url:s,id:r}){this.request=null,this.state="HAVE_METADATA";const i=n||this.parseManifest_({url:s,manifestString:t});i.lastRequest=Date.now(),TR({playlist:i,uri:s,id:r});const o=Gy(this.main,i);this.targetDuration=i.partTargetDuration||i.targetDuration,this.pendingMedia_=null,o?(this.main=o,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Yy(this.media(),!!o)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),ge.clearTimeout(this.mediaUpdateTimeout),ge.clearTimeout(this.finalRenditionTimeout),this.off()}stopRequest(){if(this.request){const t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}media(t,n){if(!t)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);if(typeof t=="string"){if(!this.main.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.main.playlists[t]}if(ge.clearTimeout(this.finalRenditionTimeout),n){const o=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=ge.setTimeout(this.media.bind(this,t,!1),o);return}const s=this.state,r=!this.media_||t.id!==this.media_.id,i=this.main.playlists[t.id];if(i&&i.endList||t.endList&&t.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,r&&(this.trigger("mediachanging"),s==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(Yy(t,!0)),!!r){if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=t,this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},(o,a)=>{if(this.request){if(t.lastRequest=Date.now(),t.resolvedUri=Qp(t.resolvedUri,a),o)return this.playlistRequestError(this.request,t,s);this.haveMetadata({playlistString:a.responseText,url:t.uri,id:t.id}),s==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}}pause(){this.mediaUpdateTimeout&&(ge.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),this.state==="HAVE_NOTHING"&&(this.started=!1),this.state==="SWITCHING_MEDIA"?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":this.state==="HAVE_CURRENT_METADATA"&&(this.state="HAVE_METADATA")}load(t){this.mediaUpdateTimeout&&(ge.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const n=this.media();if(t){const s=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=ge.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},s);return}if(!this.started){this.start();return}n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}updateMediaUpdateTimeout_(t){this.mediaUpdateTimeout&&(ge.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=ge.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(t)},t))}start(){if(this.started=!0,typeof this.src=="object"){this.src.uri||(this.src.uri=ge.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(t,n)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:n.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:n.responseText,code:2},this.state==="HAVE_NOTHING"&&(this.started=!1),this.trigger("error");this.src=Qp(this.src,n);const s=this.parseManifest_({manifestString:n.responseText,url:this.src});this.setupInitialPlaylist(s)})}srcUri(){return typeof this.src=="string"?this.src:this.src.uri}setupInitialPlaylist(t){if(this.state="HAVE_MAIN_MANIFEST",t.playlists){this.main=t,SR(this.main,this.srcUri()),t.playlists.forEach(s=>{s.segments=CR(s),s.segments.forEach(r=>{wR(r,s.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}const n=this.srcUri()||ge.location.href;this.main=TTe(t,n),this.haveMetadata({playlistObject:t,url:n,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}}const{xhr:xTe}=je,Xy=function(e,t,n,s){const r=e.responseType==="arraybuffer"?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&t.code==="ETIMEDOUT"&&(e.timedout=!0),!t&&!e.aborted&&n.statusCode!==200&&n.statusCode!==206&&n.statusCode!==0&&(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),s(t,e)},xR=function(){const e=function t(n,s){n=yn({timeout:45e3},n);const r=t.beforeRequest||je.Vhs.xhr.beforeRequest;if(r&&typeof r=="function"){const l=r(n);l&&(n=l)}const o=(je.Vhs.xhr.original===!0?xTe:je.Vhs.xhr)(n,function(l,u){return Xy(o,l,u,s)}),a=o.abort;return o.abort=function(){return o.aborted=!0,a.apply(o,arguments)},o.uri=n.uri,o.requestTime=Date.now(),o};return e.original=!0,e},kTe=function(e){let t;const n=e.offset;return typeof e.offset=="bigint"||typeof e.length=="bigint"?t=ge.BigInt(e.offset)+ge.BigInt(e.length)-ge.BigInt(1):t=e.offset+e.length-1,"bytes="+n+"-"+t},Qy=function(e){const t={};return e.byterange&&(t.Range=kTe(e.byterange)),t},OTe=function(e,t){return e.start(t)+"-"+e.end(t)},ATe=function(e,t){const n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},ITe=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},kR=function(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];cN(s)?t[n]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[n]=s}),t},Jp=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},OR=function(e){return e.resolvedUri},AR=e=>{const t=Array.prototype.slice.call(e),n=16;let s="",r,i;for(let o=0;o<t.length/n;o++)r=t.slice(o*n,o*n+n).map(ATe).join(""),i=t.slice(o*n,o*n+n).map(ITe).join(""),s+=r+" "+i+`
|
||
`;return s},PTe=({bytes:e})=>AR(e),$Te=e=>{let t="",n;for(n=0;n<e.length;n++)t+=OTe(e,n)+" ";return t};var NTe=Object.freeze({__proto__:null,createTransferableMessage:kR,initSegmentId:Jp,segmentKeyId:OR,hexDump:AR,tagDump:PTe,textRanges:$Te});const IR=.25,MTe=(e,t)=>{if(!t.dateTimeObject)return null;const n=t.videoTimingInfo.transmuxerPrependedSeconds,r=t.videoTimingInfo.transmuxedPresentationStart+n,i=e-r;return new Date(t.dateTimeObject.getTime()+i*1e3)},RTe=e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds,LTe=(e,t)=>{let n;try{n=new Date(e)}catch{return null}if(!t||!t.segments||t.segments.length===0)return null;let s=t.segments[0];if(n<s.dateTimeObject)return null;for(let l=0;l<t.segments.length-1;l++){s=t.segments[l];const u=t.segments[l+1].dateTimeObject;if(n<u)break}const r=t.segments[t.segments.length-1],i=r.dateTimeObject,o=r.videoTimingInfo?RTe(r.videoTimingInfo):r.duration+r.duration*IR,a=new Date(i.getTime()+o*1e3);return n>a?null:(n>i&&(s=r),{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:Ds.duration(t,t.mediaSequence+t.segments.indexOf(s)),type:s.videoTimingInfo?"accurate":"estimate"})},DTe=(e,t)=>{if(!t||!t.segments||t.segments.length===0)return null;let n=0,s;for(let i=0;i<t.segments.length&&(s=t.segments[i],n=s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationEnd:n+s.duration,!(e<=n));i++);const r=t.segments[t.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>n){if(e>n+r.duration*IR)return null;s=r}return{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:n-s.duration,type:s.videoTimingInfo?"accurate":"estimate"}},FTe=(e,t)=>{let n,s;try{n=new Date(e),s=new Date(t)}catch{}const r=n.getTime();return(s.getTime()-r)/1e3},BTe=e=>{if(!e.segments||e.segments.length===0)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0},VTe=({playlist:e,time:t=void 0,callback:n})=>{if(!n)throw new Error("getProgramTime: callback must be provided");if(!e||t===void 0)return n({message:"getProgramTime: playlist and time must be provided"});const s=DTe(t,e);if(!s)return n({message:"valid programTime was not found"});if(s.type==="estimate")return n({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});const r={mediaSeconds:t},i=MTe(t,s.segment);return i&&(r.programDateTime=i.toISOString()),n(null,r)},PR=({programTime:e,playlist:t,retryCount:n=2,seekTo:s,pauseAfterSeek:r=!0,tech:i,callback:o})=>{if(!o)throw new Error("seekToProgramTime: callback must be provided");if(typeof e>"u"||!t||!s)return o({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!i.hasStarted_)return o({message:"player must be playing a live stream to start buffering"});if(!BTe(t))return o({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const a=LTe(e,t);if(!a)return o({message:`${e} was not found in the stream`});const l=a.segment,u=FTe(l.dateTimeObject,e);if(a.type==="estimate"){if(n===0)return o({message:`${e} is not buffered yet. Try again`});s(a.estimatedStart+u),i.one("seeked",()=>{PR({programTime:e,playlist:t,retryCount:n-1,seekTo:s,pauseAfterSeek:r,tech:i,callback:o})});return}const d=l.start+u,f=()=>o(null,i.currentTime());i.one("seeked",f),r&&i.pause(),s(d)},Hv=(e,t)=>{if(e.readyState===4)return t()},UTe=(e,t,n)=>{let s=[],r,i=!1;const o=function(d,f,h,p){return f.abort(),i=!0,n(d,f,h,p)},a=function(d,f){if(i)return;if(d)return o(d,f,"",s);const h=f.responseText.substring(s&&s.byteLength||0,f.responseText.length);if(s=Xye(s,dN(h,!0)),r=r||bc(s),s.length<10||r&&s.length<r+2)return Hv(f,()=>o(d,f,"",s));const p=O1(s);return p==="ts"&&s.length<188?Hv(f,()=>o(d,f,"",s)):!p&&s.length<376?Hv(f,()=>o(d,f,"",s)):o(null,f,p,s)},u=t({uri:e,beforeSend(d){d.overrideMimeType("text/plain; charset=x-user-defined"),d.addEventListener("progress",function({total:f,loaded:h}){return Xy(d,null,{statusCode:d.status},a)})}},function(d,f){return Xy(u,d,f,a)});return u},{EventTarget:HTe}=je,sk=function(e,t){if(!ER(e,t)||e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx||e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let n=0;n<e.segments.length;n++){const s=e.segments[n],r=t.segments[n];if(s.uri!==r.uri)return!1;if(!s.byterange&&!r.byterange)continue;const i=s.byterange,o=r.byterange;if(i&&!o||!i&&o||i.offset!==o.offset||i.length!==o.length)return!1}return!0},zTe=({mainXml:e,srcUrl:t,clientOffset:n,sidxMapping:s,previousManifest:r})=>{const i=y_e(e,{manifestUri:t,clientOffset:n,sidxMapping:s,previousManifest:r});return SR(i,t),i},jTe=(e,t,n)=>{let s=!0,r=yn(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let i=0;i<t.playlists.length;i++){const o=t.playlists[i];if(o.sidx){const l=tg(o.sidx);n&&n[l]&&n[l].sidx&&E1(o,n[l].sidx,o.sidx.resolvedUri)}const a=Gy(r,o,sk);a&&(r=a,s=!1)}return ff(t,(i,o,a,l)=>{if(i.playlists&&i.playlists.length){const u=i.playlists[0].id,d=Gy(r,i.playlists[0],sk);d&&(r=d,r.mediaGroups[o][a][l].playlists[0]=r.playlists[u],s=!1)}}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(s=!1),s?null:r},KTe=(e,t)=>(!e.map&&!t.map||!!(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,rk=(e,t)=>{const n={};for(const s in e){const i=e[s].sidx;if(i){const o=tg(i);if(!t[o])break;const a=t[o].sidxInfo;KTe(a,i)&&(n[o]=t[o])}}return n},WTe=(e,t)=>{let s=rk(e.playlists,t);return ff(e,(r,i,o,a)=>{if(r.playlists&&r.playlists.length){const l=r.playlists;s=yn(s,rk(l,t))}}),s};class Jy extends HTe{constructor(t,n,s={},r){super(),this.mainPlaylistLoader_=r||this,r||(this.isMain_=!0);const{withCredentials:i=!1}=s;if(this.vhs_=n,this.withCredentials=i,!t)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=Yr("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=t,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=t}requestErrored_(t,n,s){if(!this.request)return!0;if(this.request=null,t)return this.error=typeof t=="object"&&!(t instanceof Error)?t:{status:n.status,message:"DASH request error at URL: "+n.uri,response:n.response,code:2},s&&(this.state=s),this.trigger("error"),!0}addSidxSegments_(t,n,s){const r=t.sidx&&tg(t.sidx);if(!t.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r]){this.mediaRequest_=ge.setTimeout(()=>s(!1),0);return}const i=Qp(t.sidx.resolvedUri),o=(a,l)=>{if(this.requestErrored_(a,l,n))return;const u=this.mainPlaylistLoader_.sidxMapping_;let d;try{d=w_e(Lt(l.response).subarray(8))}catch(f){this.requestErrored_(f,l,n);return}return u[r]={sidxInfo:t.sidx,sidx:d},E1(t,d,t.sidx.resolvedUri),s(!0)};this.request=UTe(i,this.vhs_.xhr,(a,l,u,d)=>{if(a)return o(a,l);if(!u||u!=="mp4")return o({status:l.status,message:`Unsupported ${u||"unknown"} container type for sidx segment at URL: ${i}`,response:"",playlist:t,internal:!0,playlistExclusionDuration:1/0,code:2},l);const{offset:f,length:h}=t.sidx.byterange;if(d.length>=h+f)return o(a,{response:d.subarray(f,f+h),status:l.status,uri:l.uri});this.request=this.vhs_.xhr({uri:i,responseType:"arraybuffer",headers:Qy({byterange:t.sidx.byterange})},o)})}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},ge.clearTimeout(this.minimumUpdatePeriodTimeout_),ge.clearTimeout(this.mediaRequest_),ge.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}media(t){if(!t)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);const n=this.state;if(typeof t=="string"){if(!this.mainPlaylistLoader_.main.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.mainPlaylistLoader_.main.playlists[t]}const s=!this.media_||t.id!==this.media_.id;if(s&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList){this.state="HAVE_METADATA",this.media_=t,s&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}s&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,n,r=>{this.haveMetadata({startingState:n,playlist:t})}))}haveMetadata({startingState:t,playlist:n}){this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),t==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),ge.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(ge.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)}load(t){ge.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const n=this.media();if(t){const s=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=ge.setTimeout(()=>this.load(),s);return}if(!this.started){this.start();return}n&&!n.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}start(){if(this.started=!0,!this.isMain_){this.mediaRequest_=ge.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((t,n)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(t){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(n,s)=>{if(this.requestErrored_(n,s)){this.state==="HAVE_NOTHING"&&(this.started=!1);return}const r=s.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=s.responseText,s.responseHeaders&&s.responseHeaders.date?this.mainLoaded_=Date.parse(s.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=Qp(this.mainPlaylistLoader_.srcUrl,s),r){this.handleMain_(),this.syncClientServerClock_(()=>t(s,r));return}return t(s,r)})}syncClientServerClock_(t){const n=b_e(this.mainPlaylistLoader_.mainXml_);if(n===null)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),t();if(n.method==="DIRECT")return this.mainPlaylistLoader_.clientOffset_=n.value-Date.now(),t();this.request=this.vhs_.xhr({uri:$r(this.mainPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(s,r)=>{if(!this.request)return;if(s)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),t();let i;n.method==="HEAD"?!r.responseHeaders||!r.responseHeaders.date?i=this.mainLoaded_:i=Date.parse(r.responseHeaders.date):i=Date.parse(r.responseText),this.mainPlaylistLoader_.clientOffset_=i-Date.now(),t()})}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const t=this.mainPlaylistLoader_.main;let n=zTe({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:t});t&&(n=jTe(t,n,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=n||t;const s=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return s&&s!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=s),(!t||n&&n.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),!!n}updateMinimumUpdatePeriodTimeout_(){const t=this.mainPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(ge.clearTimeout(t.minimumUpdatePeriodTimeout_),t.minimumUpdatePeriodTimeout_=null);let n=t.main&&t.main.minimumUpdatePeriod;if(n===0&&(t.media()?n=t.media().targetDuration*1e3:(t.createMupOnMedia_=t.updateMinimumUpdatePeriodTimeout_,t.one("loadedmetadata",t.createMupOnMedia_))),typeof n!="number"||n<=0){n<0&&this.logger_(`found invalid minimumUpdatePeriod of ${n}, not setting a timeout`);return}this.createMUPTimeout_(n)}createMUPTimeout_(t){const n=this.mainPlaylistLoader_;n.minimumUpdatePeriodTimeout_=ge.setTimeout(()=>{n.minimumUpdatePeriodTimeout_=null,n.trigger("minimumUpdatePeriod"),n.createMUPTimeout_(t)},t)}refreshXml_(){this.requestMain_((t,n)=>{n&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=WTe(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,s=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(t){if(!t)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const n=this.mainPlaylistLoader_.main.playlists,s=!this.media_||this.media_!==n[t];if(s?this.media_=n[t]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const r=()=>{this.media().endList||(this.mediaUpdateTimeout=ge.setTimeout(()=>{this.trigger("mediaupdatetimeout"),r()},Yy(this.media(),!!s)))};r()}this.trigger("loadedplaylist")}}var Xn={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const qTe=e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer},$R=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},GTe=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch{const n=new BlobBuilder;return n.append(e),URL.createObjectURL(n.getBlob())}},NR=function(e){return function(){const t=GTe(e),n=$R(new Worker(t));n.objURL=t;const s=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),s.call(this)},n}},MR=function(e){return`var browserWorkerPolyFill = ${$R.toString()};
|
||
browserWorkerPolyFill(self);
|
||
`+e},RR=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},YTe=MR(RR(function(){var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=function(){this.init=function(){var b={};this.on=function(C,k){b[C]||(b[C]=[]),b[C]=b[C].concat(k)},this.off=function(C,k){var O;return b[C]?(O=b[C].indexOf(k),b[C]=b[C].slice(),b[C].splice(O,1),O>-1):!1},this.trigger=function(C){var k,O,P,D;if(k=b[C],!!k)if(arguments.length===2)for(P=k.length,O=0;O<P;++O)k[O].call(this,arguments[1]);else{for(D=[],O=arguments.length,O=1;O<arguments.length;++O)D.push(arguments[O]);for(P=k.length,O=0;O<P;++O)k[O].apply(this,D)}},this.dispose=function(){b={}}}};t.prototype.pipe=function(b){return this.on("data",function(C){b.push(C)}),this.on("done",function(C){b.flush(C)}),this.on("partialdone",function(C){b.partialFlush(C)}),this.on("endedtimeline",function(C){b.endTimeline(C)}),this.on("reset",function(C){b.reset(C)}),b},t.prototype.push=function(b){this.trigger("data",b)},t.prototype.flush=function(b){this.trigger("done",b)},t.prototype.partialFlush=function(b){this.trigger("partialdone",b)},t.prototype.endTimeline=function(b){this.trigger("endedtimeline",b)},t.prototype.reset=function(b){this.trigger("reset",b)};var n=t,s=Math.pow(2,32),r=function(b){var C=new DataView(b.buffer,b.byteOffset,b.byteLength),k;return C.getBigUint64?(k=C.getBigUint64(0),k<Number.MAX_SAFE_INTEGER?Number(k):k):C.getUint32(0)*s+C.getUint32(4)},i={getUint64:r,MAX_UINT32:s},o=i.MAX_UINT32,a,l,u,d,f,h,p,g,m,v,y,T,_,S,w,A,M,N,L,F,W,j,R,q,X,K,$,H,U,Z,ue,Q,ae,Ee,le,ie;(function(){var b;if(R={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(b in R)R.hasOwnProperty(b)&&(R[b]=[b.charCodeAt(0),b.charCodeAt(1),b.charCodeAt(2),b.charCodeAt(3)]);q=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),K=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),X=new Uint8Array([0,0,0,1]),$=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),H=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),U={video:$,audio:H},Q=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ue=new Uint8Array([0,0,0,0,0,0,0,0]),ae=new Uint8Array([0,0,0,0,0,0,0,0]),Ee=ae,le=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ie=ae,Z=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),a=function(b){var C=[],k=0,O,P,D;for(O=1;O<arguments.length;O++)C.push(arguments[O]);for(O=C.length;O--;)k+=C[O].byteLength;for(P=new Uint8Array(k+8),D=new DataView(P.buffer,P.byteOffset,P.byteLength),D.setUint32(0,P.byteLength),P.set(b,4),O=0,k=8;O<C.length;O++)P.set(C[O],k),k+=C[O].byteLength;return P},l=function(){return a(R.dinf,a(R.dref,Q))},u=function(b){return a(R.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,b.audioobjecttype<<3|b.samplingfrequencyindex>>>1,b.samplingfrequencyindex<<7|b.channelcount<<3,6,1,2]))},d=function(){return a(R.ftyp,q,X,q,K)},A=function(b){return a(R.hdlr,U[b])},f=function(b){return a(R.mdat,b)},w=function(b){var C=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,b.duration>>>24&255,b.duration>>>16&255,b.duration>>>8&255,b.duration&255,85,196,0,0]);return b.samplerate&&(C[12]=b.samplerate>>>24&255,C[13]=b.samplerate>>>16&255,C[14]=b.samplerate>>>8&255,C[15]=b.samplerate&255),a(R.mdhd,C)},S=function(b){return a(R.mdia,w(b),A(b.type),p(b))},h=function(b){return a(R.mfhd,new Uint8Array([0,0,0,0,(b&4278190080)>>24,(b&16711680)>>16,(b&65280)>>8,b&255]))},p=function(b){return a(R.minf,b.type==="video"?a(R.vmhd,Z):a(R.smhd,ue),l(),N(b))},g=function(b,C){for(var k=[],O=C.length;O--;)k[O]=F(C[O]);return a.apply(null,[R.moof,h(b)].concat(k))},m=function(b){for(var C=b.length,k=[];C--;)k[C]=T(b[C]);return a.apply(null,[R.moov,y(4294967295)].concat(k).concat(v(b)))},v=function(b){for(var C=b.length,k=[];C--;)k[C]=W(b[C]);return a.apply(null,[R.mvex].concat(k))},y=function(b){var C=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(b&4278190080)>>24,(b&16711680)>>16,(b&65280)>>8,b&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return a(R.mvhd,C)},M=function(b){var C=b.samples||[],k=new Uint8Array(4+C.length),O,P;for(P=0;P<C.length;P++)O=C[P].flags,k[P+4]=O.dependsOn<<4|O.isDependedOn<<2|O.hasRedundancy;return a(R.sdtp,k)},N=function(b){return a(R.stbl,L(b),a(R.stts,ie),a(R.stsc,Ee),a(R.stsz,le),a(R.stco,ae))},function(){var b,C;L=function(k){return a(R.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),k.type==="video"?b(k):C(k))},b=function(k){var O=k.sps||[],P=k.pps||[],D=[],se=[],oe,de;for(oe=0;oe<O.length;oe++)D.push((O[oe].byteLength&65280)>>>8),D.push(O[oe].byteLength&255),D=D.concat(Array.prototype.slice.call(O[oe]));for(oe=0;oe<P.length;oe++)se.push((P[oe].byteLength&65280)>>>8),se.push(P[oe].byteLength&255),se=se.concat(Array.prototype.slice.call(P[oe]));if(de=[R.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(k.width&65280)>>8,k.width&255,(k.height&65280)>>8,k.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a(R.avcC,new Uint8Array([1,k.profileIdc,k.profileCompatibility,k.levelIdc,255].concat([O.length],D,[P.length],se))),a(R.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],k.sarRatio){var ye=k.sarRatio[0],Pe=k.sarRatio[1];de.push(a(R.pasp,new Uint8Array([(ye&4278190080)>>24,(ye&16711680)>>16,(ye&65280)>>8,ye&255,(Pe&4278190080)>>24,(Pe&16711680)>>16,(Pe&65280)>>8,Pe&255])))}return a.apply(null,de)},C=function(k){return a(R.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(k.channelcount&65280)>>8,k.channelcount&255,(k.samplesize&65280)>>8,k.samplesize&255,0,0,0,0,(k.samplerate&65280)>>8,k.samplerate&255,0,0]),u(k))}}(),_=function(b){var C=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(b.id&4278190080)>>24,(b.id&16711680)>>16,(b.id&65280)>>8,b.id&255,0,0,0,0,(b.duration&4278190080)>>24,(b.duration&16711680)>>16,(b.duration&65280)>>8,b.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(b.width&65280)>>8,b.width&255,0,0,(b.height&65280)>>8,b.height&255,0,0]);return a(R.tkhd,C)},F=function(b){var C,k,O,P,D,se,oe;return C=a(R.tfhd,new Uint8Array([0,0,0,58,(b.id&4278190080)>>24,(b.id&16711680)>>16,(b.id&65280)>>8,b.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),se=Math.floor(b.baseMediaDecodeTime/o),oe=Math.floor(b.baseMediaDecodeTime%o),k=a(R.tfdt,new Uint8Array([1,0,0,0,se>>>24&255,se>>>16&255,se>>>8&255,se&255,oe>>>24&255,oe>>>16&255,oe>>>8&255,oe&255])),D=32+20+8+16+8+8,b.type==="audio"?(O=j(b,D),a(R.traf,C,k,O)):(P=M(b),O=j(b,P.length+D),a(R.traf,C,k,O,P))},T=function(b){return b.duration=b.duration||4294967295,a(R.trak,_(b),S(b))},W=function(b){var C=new Uint8Array([0,0,0,0,(b.id&4278190080)>>24,(b.id&16711680)>>16,(b.id&65280)>>8,b.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return b.type!=="video"&&(C[C.length-1]=0),a(R.trex,C)},function(){var b,C,k;k=function(O,P){var D=0,se=0,oe=0,de=0;return O.length&&(O[0].duration!==void 0&&(D=1),O[0].size!==void 0&&(se=2),O[0].flags!==void 0&&(oe=4),O[0].compositionTimeOffset!==void 0&&(de=8)),[0,0,D|se|oe|de,1,(O.length&4278190080)>>>24,(O.length&16711680)>>>16,(O.length&65280)>>>8,O.length&255,(P&4278190080)>>>24,(P&16711680)>>>16,(P&65280)>>>8,P&255]},C=function(O,P){var D,se,oe,de,ye,Pe;for(de=O.samples||[],P+=8+12+16*de.length,oe=k(de,P),se=new Uint8Array(oe.length+de.length*16),se.set(oe),D=oe.length,Pe=0;Pe<de.length;Pe++)ye=de[Pe],se[D++]=(ye.duration&4278190080)>>>24,se[D++]=(ye.duration&16711680)>>>16,se[D++]=(ye.duration&65280)>>>8,se[D++]=ye.duration&255,se[D++]=(ye.size&4278190080)>>>24,se[D++]=(ye.size&16711680)>>>16,se[D++]=(ye.size&65280)>>>8,se[D++]=ye.size&255,se[D++]=ye.flags.isLeading<<2|ye.flags.dependsOn,se[D++]=ye.flags.isDependedOn<<6|ye.flags.hasRedundancy<<4|ye.flags.paddingValue<<1|ye.flags.isNonSyncSample,se[D++]=ye.flags.degradationPriority&240<<8,se[D++]=ye.flags.degradationPriority&15,se[D++]=(ye.compositionTimeOffset&4278190080)>>>24,se[D++]=(ye.compositionTimeOffset&16711680)>>>16,se[D++]=(ye.compositionTimeOffset&65280)>>>8,se[D++]=ye.compositionTimeOffset&255;return a(R.trun,se)},b=function(O,P){var D,se,oe,de,ye,Pe;for(de=O.samples||[],P+=8+12+8*de.length,oe=k(de,P),D=new Uint8Array(oe.length+de.length*8),D.set(oe),se=oe.length,Pe=0;Pe<de.length;Pe++)ye=de[Pe],D[se++]=(ye.duration&4278190080)>>>24,D[se++]=(ye.duration&16711680)>>>16,D[se++]=(ye.duration&65280)>>>8,D[se++]=ye.duration&255,D[se++]=(ye.size&4278190080)>>>24,D[se++]=(ye.size&16711680)>>>16,D[se++]=(ye.size&65280)>>>8,D[se++]=ye.size&255;return a(R.trun,D)},j=function(O,P){return O.type==="audio"?b(O,P):C(O,P)}}();var ce={ftyp:d,mdat:f,moof:g,moov:m,initSegment:function(b){var C=d(),k=m(b),O;return O=new Uint8Array(C.byteLength+k.byteLength),O.set(C),O.set(k,C.byteLength),O}},ne=function(b){var C,k,O=[],P=[];for(P.byteLength=0,P.nalCount=0,P.duration=0,O.byteLength=0,C=0;C<b.length;C++)k=b[C],k.nalUnitType==="access_unit_delimiter_rbsp"?(O.length&&(O.duration=k.dts-O.dts,P.byteLength+=O.byteLength,P.nalCount+=O.length,P.duration+=O.duration,P.push(O)),O=[k],O.byteLength=k.data.byteLength,O.pts=k.pts,O.dts=k.dts):(k.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(O.keyFrame=!0),O.duration=k.dts-O.dts,O.byteLength+=k.data.byteLength,O.push(k));return P.length&&(!O.duration||O.duration<=0)&&(O.duration=P[P.length-1].duration),P.byteLength+=O.byteLength,P.nalCount+=O.length,P.duration+=O.duration,P.push(O),P},pe=function(b){var C,k,O=[],P=[];for(O.byteLength=0,O.nalCount=0,O.duration=0,O.pts=b[0].pts,O.dts=b[0].dts,P.byteLength=0,P.nalCount=0,P.duration=0,P.pts=b[0].pts,P.dts=b[0].dts,C=0;C<b.length;C++)k=b[C],k.keyFrame?(O.length&&(P.push(O),P.byteLength+=O.byteLength,P.nalCount+=O.nalCount,P.duration+=O.duration),O=[k],O.nalCount=k.length,O.byteLength=k.byteLength,O.pts=k.pts,O.dts=k.dts,O.duration=k.duration):(O.duration+=k.duration,O.nalCount+=k.length,O.byteLength+=k.byteLength,O.push(k));return P.length&&O.duration<=0&&(O.duration=P[P.length-1].duration),P.byteLength+=O.byteLength,P.nalCount+=O.nalCount,P.duration+=O.duration,P.push(O),P},Te=function(b){var C;return!b[0][0].keyFrame&&b.length>1&&(C=b.shift(),b.byteLength-=C.byteLength,b.nalCount-=C.nalCount,b[0][0].dts=C.dts,b[0][0].pts=C.pts,b[0][0].duration+=C.duration),b},He=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},Y=function(b,C){var k=He();return k.dataOffset=C,k.compositionTimeOffset=b.pts-b.dts,k.duration=b.duration,k.size=4*b.length,k.size+=b.byteLength,b.keyFrame&&(k.flags.dependsOn=2,k.flags.isNonSyncSample=0),k},re=function(b,C){var k,O,P,D,se,oe=C||0,de=[];for(k=0;k<b.length;k++)for(D=b[k],O=0;O<D.length;O++)se=D[O],P=Y(se,oe),oe+=P.size,de.push(P);return de},Se=function(b){var C,k,O,P,D,se,oe=0,de=b.byteLength,ye=b.nalCount,Pe=de+4*ye,Ke=new Uint8Array(Pe),_t=new DataView(Ke.buffer);for(C=0;C<b.length;C++)for(P=b[C],k=0;k<P.length;k++)for(D=P[k],O=0;O<D.length;O++)se=D[O],_t.setUint32(oe,se.data.byteLength),oe+=4,Ke.set(se.data,oe),oe+=se.data.byteLength;return Ke},Oe=function(b,C){var k,O=C||0,P=[];return k=Y(b,O),P.push(k),P},Ve=function(b){var C,k,O=0,P=b.byteLength,D=b.length,se=P+4*D,oe=new Uint8Array(se),de=new DataView(oe.buffer);for(C=0;C<b.length;C++)k=b[C],de.setUint32(O,k.data.byteLength),O+=4,oe.set(k.data,O),O+=k.data.byteLength;return oe},_e={groupNalsIntoFrames:ne,groupFramesIntoGops:pe,extendFirstKeyFrame:Te,generateSampleTable:re,concatenateNalData:Se,generateSampleTableForFrame:Oe,concatenateNalDataForFrame:Ve},Be=[33,16,5,32,164,27],Ie=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],Ae=function(b){for(var C=[];b--;)C.push(0);return C},Me=function(b){return Object.keys(b).reduce(function(C,k){return C[k]=new Uint8Array(b[k].reduce(function(O,P){return O.concat(P)},[])),C},{})},Ye,qe=function(){if(!Ye){var b={96e3:[Be,[227,64],Ae(154),[56]],88200:[Be,[231],Ae(170),[56]],64e3:[Be,[248,192],Ae(240),[56]],48e3:[Be,[255,192],Ae(268),[55,148,128],Ae(54),[112]],44100:[Be,[255,192],Ae(268),[55,163,128],Ae(84),[112]],32e3:[Be,[255,192],Ae(268),[55,234],Ae(226),[112]],24e3:[Be,[255,192],Ae(268),[55,255,128],Ae(268),[111,112],Ae(126),[224]],16e3:[Be,[255,192],Ae(268),[55,255,128],Ae(268),[111,255],Ae(269),[223,108],Ae(195),[1,192]],12e3:[Ie,Ae(268),[3,127,248],Ae(268),[6,255,240],Ae(268),[13,255,224],Ae(268),[27,253,128],Ae(259),[56]],11025:[Ie,Ae(268),[3,127,248],Ae(268),[6,255,240],Ae(268),[13,255,224],Ae(268),[27,255,192],Ae(268),[55,175,128],Ae(108),[112]],8e3:[Ie,Ae(268),[3,121,16],Ae(47),[7]]};Ye=Me(b)}return Ye},Ce=9e4,Ge,ut,bt,ct,Le,De,be;Ge=function(b){return b*Ce},ut=function(b,C){return b*C},bt=function(b){return b/Ce},ct=function(b,C){return b/C},Le=function(b,C){return Ge(ct(b,C))},De=function(b,C){return ut(bt(b),C)},be=function(b,C,k){return bt(k?b:b-C)};var J={ONE_SECOND_IN_TS:Ce,secondsToVideoTs:Ge,secondsToAudioTs:ut,videoTsToSeconds:bt,audioTsToSeconds:ct,audioTsToVideoTs:Le,videoTsToAudioTs:De,metadataTsToSeconds:be},fe=qe,Re=J,We=function(b){var C,k,O=0;for(C=0;C<b.length;C++)k=b[C],O+=k.data.byteLength;return O},St=function(b,C,k,O){var P,D=0,se=0,oe=0,de=0,ye,Pe,Ke;if(C.length&&(P=Re.audioTsToVideoTs(b.baseMediaDecodeTime,b.samplerate),D=Math.ceil(Re.ONE_SECOND_IN_TS/(b.samplerate/1024)),k&&O&&(se=P-Math.max(k,O),oe=Math.floor(se/D),de=oe*D),!(oe<1||de>Re.ONE_SECOND_IN_TS/2))){for(ye=fe()[b.samplerate],ye||(ye=C[0].data),Pe=0;Pe<oe;Pe++)Ke=C[0],C.splice(0,0,{data:ye,dts:Ke.dts-D,pts:Ke.pts-D});return b.baseMediaDecodeTime-=Math.floor(Re.videoTsToAudioTs(de,b.samplerate)),de}},$e=function(b,C,k){return C.minSegmentDts>=k?b:(C.minSegmentDts=1/0,b.filter(function(O){return O.dts>=k?(C.minSegmentDts=Math.min(C.minSegmentDts,O.dts),C.minSegmentPts=C.minSegmentDts,!0):!1}))},Ze=function(b){var C,k,O=[];for(C=0;C<b.length;C++)k=b[C],O.push({size:k.data.byteLength,duration:1024});return O},Ct=function(b){var C,k,O=0,P=new Uint8Array(We(b));for(C=0;C<b.length;C++)k=b[C],P.set(k.data,O),O+=k.data.byteLength;return P},xt={prefixWithSilence:St,trimAdtsFramesByEarliestDts:$e,generateSampleTable:Ze,concatenateFrameData:Ct},Rt=J.ONE_SECOND_IN_TS,Qt=function(b,C){typeof C.pts=="number"&&(b.timelineStartInfo.pts===void 0&&(b.timelineStartInfo.pts=C.pts),b.minSegmentPts===void 0?b.minSegmentPts=C.pts:b.minSegmentPts=Math.min(b.minSegmentPts,C.pts),b.maxSegmentPts===void 0?b.maxSegmentPts=C.pts:b.maxSegmentPts=Math.max(b.maxSegmentPts,C.pts)),typeof C.dts=="number"&&(b.timelineStartInfo.dts===void 0&&(b.timelineStartInfo.dts=C.dts),b.minSegmentDts===void 0?b.minSegmentDts=C.dts:b.minSegmentDts=Math.min(b.minSegmentDts,C.dts),b.maxSegmentDts===void 0?b.maxSegmentDts=C.dts:b.maxSegmentDts=Math.max(b.maxSegmentDts,C.dts))},Nn=function(b){delete b.minSegmentDts,delete b.maxSegmentDts,delete b.minSegmentPts,delete b.maxSegmentPts},Fe=function(b,C){var k,O,P=b.minSegmentDts;return C||(P-=b.timelineStartInfo.dts),k=b.timelineStartInfo.baseMediaDecodeTime,k+=P,k=Math.max(0,k),b.type==="audio"&&(O=b.samplerate/Rt,k*=O,k=Math.floor(k)),k},lt={clearDtsInfo:Nn,calculateTrackBaseMediaDecodeTime:Fe,collectDtsInfo:Qt},Vt=4,Gt=128,Bn=function(b){for(var C=0,k={payloadType:-1,payloadSize:0},O=0,P=0;C<b.byteLength&&b[C]!==Gt;){for(;b[C]===255;)O+=255,C++;for(O+=b[C++];b[C]===255;)P+=255,C++;if(P+=b[C++],!k.payload&&O===Vt){var D=String.fromCharCode(b[C+3],b[C+4],b[C+5],b[C+6]);if(D==="GA94"){k.payloadType=O,k.payloadSize=P,k.payload=b.subarray(C,C+P);break}else k.payload=void 0}C+=P,O=0,P=0}return k},ar=function(b){return b.payload[0]!==181||(b.payload[1]<<8|b.payload[2])!==49||String.fromCharCode(b.payload[3],b.payload[4],b.payload[5],b.payload[6])!=="GA94"||b.payload[7]!==3?null:b.payload.subarray(8,b.payload.length-1)},qa=function(b,C){var k=[],O,P,D,se;if(!(C[0]&64))return k;for(P=C[0]&31,O=0;O<P;O++)D=O*3,se={type:C[D+2]&3,pts:b},C[D+2]&4&&(se.ccData=C[D+3]<<8|C[D+4],k.push(se));return k},oL=function(b){for(var C=b.byteLength,k=[],O=1,P,D;O<C-2;)b[O]===0&&b[O+1]===0&&b[O+2]===3?(k.push(O+2),O+=2):O++;if(k.length===0)return b;P=C-k.length,D=new Uint8Array(P);var se=0;for(O=0;O<P;se++,O++)se===k[0]&&(se++,k.shift()),D[O]=b[se];return D},gT={parseSei:Bn,parseUserData:ar,parseCaptionPackets:qa,discardEmulationPreventionBytes:oL,USER_DATA_REGISTERED_ITU_T_T35:Vt},Tg=n,hf=gT,Ps=function(b){b=b||{},Ps.prototype.init.call(this),this.parse708captions_=typeof b.parse708captions=="boolean"?b.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new kn(0,0),new kn(0,1),new kn(1,0),new kn(1,1)],this.parse708captions_&&(this.cc708Stream_=new vn({captionServices:b.captionServices})),this.reset(),this.ccStreams_.forEach(function(C){C.on("data",this.trigger.bind(this,"data")),C.on("partialdone",this.trigger.bind(this,"partialdone")),C.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Ps.prototype=new Tg,Ps.prototype.push=function(b){var C,k,O;if(b.nalUnitType==="sei_rbsp"&&(C=hf.parseSei(b.escapedRBSP),!!C.payload&&C.payloadType===hf.USER_DATA_REGISTERED_ITU_T_T35&&(k=hf.parseUserData(C),!!k))){if(b.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(b.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}O=hf.parseCaptionPackets(b.pts,k),this.captionPackets_=this.captionPackets_.concat(O),this.latestDts_!==b.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=b.dts}},Ps.prototype.flushCCStreams=function(b){this.ccStreams_.forEach(function(C){return b==="flush"?C.flush():C.partialFlush()},this)},Ps.prototype.flushStream=function(b){if(!this.captionPackets_.length){this.flushCCStreams(b);return}this.captionPackets_.forEach(function(C,k){C.presortIndex=k}),this.captionPackets_.sort(function(C,k){return C.pts===k.pts?C.presortIndex-k.presortIndex:C.pts-k.pts}),this.captionPackets_.forEach(function(C){C.type<2?this.dispatchCea608Packet(C):this.dispatchCea708Packet(C)},this),this.captionPackets_.length=0,this.flushCCStreams(b)},Ps.prototype.flush=function(){return this.flushStream("flush")},Ps.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ps.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(b){b.reset()})},Ps.prototype.dispatchCea608Packet=function(b){this.setsTextOrXDSActive(b)?this.activeCea608Channel_[b.type]=null:this.setsChannel1Active(b)?this.activeCea608Channel_[b.type]=0:this.setsChannel2Active(b)&&(this.activeCea608Channel_[b.type]=1),this.activeCea608Channel_[b.type]!==null&&this.ccStreams_[(b.type<<1)+this.activeCea608Channel_[b.type]].push(b)},Ps.prototype.setsChannel1Active=function(b){return(b.ccData&30720)===4096},Ps.prototype.setsChannel2Active=function(b){return(b.ccData&30720)===6144},Ps.prototype.setsTextOrXDSActive=function(b){return(b.ccData&28928)===256||(b.ccData&30974)===4138||(b.ccData&30974)===6186},Ps.prototype.dispatchCea708Packet=function(b){this.parse708captions_&&this.cc708Stream_.push(b)};var aL={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},lL=function(b){var C=aL[b]||b;return b&4096&&b===C?"":String.fromCharCode(C)},pf=function(b){return 32<=b&&b<=127||160<=b&&b<=255},xi=function(b){this.windowNum=b,this.reset()};xi.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},xi.prototype.getText=function(){return this.rows.join(`
|
||
`)},xi.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},xi.prototype.newLine=function(b){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(b),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},xi.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},xi.prototype.addText=function(b){this.rows[this.rowIdx]+=b},xi.prototype.backspace=function(){if(!this.isEmpty()){var b=this.rows[this.rowIdx];this.rows[this.rowIdx]=b.substr(0,b.length-1)}};var mf=function(b,C,k){this.serviceNum=b,this.text="",this.currentWindow=new xi(-1),this.windows=[],this.stream=k,typeof C=="string"&&this.createTextDecoder(C)};mf.prototype.init=function(b,C){this.startPts=b;for(var k=0;k<8;k++)this.windows[k]=new xi(k),typeof C=="function"&&(this.windows[k].beforeRowOverflow=C)},mf.prototype.setCurrentWindow=function(b){this.currentWindow=this.windows[b]},mf.prototype.createTextDecoder=function(b){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(b)}catch(C){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+b+" encoding. "+C})}};var vn=function(b){b=b||{},vn.prototype.init.call(this);var C=this,k=b.captionServices||{},O={},P;Object.keys(k).forEach(D=>{P=k[D],/^SERVICE/.test(D)&&(O[D]=P.encoding)}),this.serviceEncodings=O,this.current708Packet=null,this.services={},this.push=function(D){D.type===3?(C.new708Packet(),C.add708Bytes(D)):(C.current708Packet===null&&C.new708Packet(),C.add708Bytes(D))}};vn.prototype=new Tg,vn.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},vn.prototype.add708Bytes=function(b){var C=b.ccData,k=C>>>8,O=C&255;this.current708Packet.ptsVals.push(b.pts),this.current708Packet.data.push(k),this.current708Packet.data.push(O)},vn.prototype.push708Packet=function(){var b=this.current708Packet,C=b.data,k=null,O=null,P=0,D=C[P++];for(b.seq=D>>6,b.sizeCode=D&63;P<C.length;P++)D=C[P++],k=D>>5,O=D&31,k===7&&O>0&&(D=C[P++],k=D),this.pushServiceBlock(k,P,O),O>0&&(P+=O-1)},vn.prototype.pushServiceBlock=function(b,C,k){var O,P=C,D=this.current708Packet.data,se=this.services[b];for(se||(se=this.initService(b,P));P<C+k&&P<D.length;P++)O=D[P],pf(O)?P=this.handleText(P,se):O===24?P=this.multiByteCharacter(P,se):O===16?P=this.extendedCommands(P,se):128<=O&&O<=135?P=this.setCurrentWindow(P,se):152<=O&&O<=159?P=this.defineWindow(P,se):O===136?P=this.clearWindows(P,se):O===140?P=this.deleteWindows(P,se):O===137?P=this.displayWindows(P,se):O===138?P=this.hideWindows(P,se):O===139?P=this.toggleWindows(P,se):O===151?P=this.setWindowAttributes(P,se):O===144?P=this.setPenAttributes(P,se):O===145?P=this.setPenColor(P,se):O===146?P=this.setPenLocation(P,se):O===143?se=this.reset(P,se):O===8?se.currentWindow.backspace():O===12?se.currentWindow.clearText():O===13?se.currentWindow.pendingNewLine=!0:O===14?se.currentWindow.clearText():O===141&&P++},vn.prototype.extendedCommands=function(b,C){var k=this.current708Packet.data,O=k[++b];return pf(O)&&(b=this.handleText(b,C,{isExtended:!0})),b},vn.prototype.getPts=function(b){return this.current708Packet.ptsVals[Math.floor(b/2)]},vn.prototype.initService=function(b,C){var O="SERVICE"+b,k=this,O,P;return O in this.serviceEncodings&&(P=this.serviceEncodings[O]),this.services[b]=new mf(b,P,k),this.services[b].init(this.getPts(C),function(D){k.flushDisplayed(D,k.services[b])}),this.services[b]},vn.prototype.handleText=function(b,C,k){var O=k&&k.isExtended,P=k&&k.isMultiByte,D=this.current708Packet.data,se=O?4096:0,oe=D[b],de=D[b+1],ye=C.currentWindow,Pe,Ke;return C.textDecoder_&&!O?(P?(Ke=[oe,de],b++):Ke=[oe],Pe=C.textDecoder_.decode(new Uint8Array(Ke))):Pe=lL(se|oe),ye.pendingNewLine&&!ye.isEmpty()&&ye.newLine(this.getPts(b)),ye.pendingNewLine=!1,ye.addText(Pe),b},vn.prototype.multiByteCharacter=function(b,C){var k=this.current708Packet.data,O=k[b+1],P=k[b+2];return pf(O)&&pf(P)&&(b=this.handleText(++b,C,{isMultiByte:!0})),b},vn.prototype.setCurrentWindow=function(b,C){var k=this.current708Packet.data,O=k[b],P=O&7;return C.setCurrentWindow(P),b},vn.prototype.defineWindow=function(b,C){var k=this.current708Packet.data,O=k[b],P=O&7;C.setCurrentWindow(P);var D=C.currentWindow;return O=k[++b],D.visible=(O&32)>>5,D.rowLock=(O&16)>>4,D.columnLock=(O&8)>>3,D.priority=O&7,O=k[++b],D.relativePositioning=(O&128)>>7,D.anchorVertical=O&127,O=k[++b],D.anchorHorizontal=O,O=k[++b],D.anchorPoint=(O&240)>>4,D.rowCount=O&15,O=k[++b],D.columnCount=O&63,O=k[++b],D.windowStyle=(O&56)>>3,D.penStyle=O&7,D.virtualRowCount=D.rowCount+1,b},vn.prototype.setWindowAttributes=function(b,C){var k=this.current708Packet.data,O=k[b],P=C.currentWindow.winAttr;return O=k[++b],P.fillOpacity=(O&192)>>6,P.fillRed=(O&48)>>4,P.fillGreen=(O&12)>>2,P.fillBlue=O&3,O=k[++b],P.borderType=(O&192)>>6,P.borderRed=(O&48)>>4,P.borderGreen=(O&12)>>2,P.borderBlue=O&3,O=k[++b],P.borderType+=(O&128)>>5,P.wordWrap=(O&64)>>6,P.printDirection=(O&48)>>4,P.scrollDirection=(O&12)>>2,P.justify=O&3,O=k[++b],P.effectSpeed=(O&240)>>4,P.effectDirection=(O&12)>>2,P.displayEffect=O&3,b},vn.prototype.flushDisplayed=function(b,C){for(var k=[],O=0;O<8;O++)C.windows[O].visible&&!C.windows[O].isEmpty()&&k.push(C.windows[O].getText());C.endPts=b,C.text=k.join(`
|
||
|
||
`),this.pushCaption(C),C.startPts=b},vn.prototype.pushCaption=function(b){b.text!==""&&(this.trigger("data",{startPts:b.startPts,endPts:b.endPts,text:b.text,stream:"cc708_"+b.serviceNum}),b.text="",b.startPts=b.endPts)},vn.prototype.displayWindows=function(b,C){var k=this.current708Packet.data,O=k[++b],P=this.getPts(b);this.flushDisplayed(P,C);for(var D=0;D<8;D++)O&1<<D&&(C.windows[D].visible=1);return b},vn.prototype.hideWindows=function(b,C){var k=this.current708Packet.data,O=k[++b],P=this.getPts(b);this.flushDisplayed(P,C);for(var D=0;D<8;D++)O&1<<D&&(C.windows[D].visible=0);return b},vn.prototype.toggleWindows=function(b,C){var k=this.current708Packet.data,O=k[++b],P=this.getPts(b);this.flushDisplayed(P,C);for(var D=0;D<8;D++)O&1<<D&&(C.windows[D].visible^=1);return b},vn.prototype.clearWindows=function(b,C){var k=this.current708Packet.data,O=k[++b],P=this.getPts(b);this.flushDisplayed(P,C);for(var D=0;D<8;D++)O&1<<D&&C.windows[D].clearText();return b},vn.prototype.deleteWindows=function(b,C){var k=this.current708Packet.data,O=k[++b],P=this.getPts(b);this.flushDisplayed(P,C);for(var D=0;D<8;D++)O&1<<D&&C.windows[D].reset();return b},vn.prototype.setPenAttributes=function(b,C){var k=this.current708Packet.data,O=k[b],P=C.currentWindow.penAttr;return O=k[++b],P.textTag=(O&240)>>4,P.offset=(O&12)>>2,P.penSize=O&3,O=k[++b],P.italics=(O&128)>>7,P.underline=(O&64)>>6,P.edgeType=(O&56)>>3,P.fontStyle=O&7,b},vn.prototype.setPenColor=function(b,C){var k=this.current708Packet.data,O=k[b],P=C.currentWindow.penColor;return O=k[++b],P.fgOpacity=(O&192)>>6,P.fgRed=(O&48)>>4,P.fgGreen=(O&12)>>2,P.fgBlue=O&3,O=k[++b],P.bgOpacity=(O&192)>>6,P.bgRed=(O&48)>>4,P.bgGreen=(O&12)>>2,P.bgBlue=O&3,O=k[++b],P.edgeRed=(O&48)>>4,P.edgeGreen=(O&12)>>2,P.edgeBlue=O&3,b},vn.prototype.setPenLocation=function(b,C){var k=this.current708Packet.data,O=k[b],P=C.currentWindow.penLoc;return C.currentWindow.pendingNewLine=!0,O=k[++b],P.row=O&15,O=k[++b],P.column=O&63,b},vn.prototype.reset=function(b,C){var k=this.getPts(b);return this.flushDisplayed(k,C),this.initService(C.serviceNum,b)};var uL={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},gf=function(b){return b===null?"":(b=uL[b]||b,String.fromCharCode(b))},vf=14,cL=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Go=function(){for(var b=[],C=vf+1;C--;)b.push("");return b},kn=function(b,C){kn.prototype.init.call(this),this.field_=b||0,this.dataChannel_=C||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(k){var O,P,D,se,oe;if(O=k.ccData&32639,O===this.lastControlCode_){this.lastControlCode_=null;return}if((O&61440)===4096?this.lastControlCode_=O:O!==this.PADDING_&&(this.lastControlCode_=null),D=O>>>8,se=O&255,O!==this.PADDING_)if(O===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(O===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(k.pts),this.flushDisplayed(k.pts),P=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=P,this.startPts_=k.pts;else if(O===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(k.pts);else if(O===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(k.pts);else if(O===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(k.pts);else if(O===this.CARRIAGE_RETURN_)this.clearFormatting(k.pts),this.flushDisplayed(k.pts),this.shiftRowsUp_(),this.startPts_=k.pts;else if(O===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(O===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(k.pts),this.displayed_=Go();else if(O===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Go();else if(O===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(k.pts),this.displayed_=Go()),this.mode_="paintOn",this.startPts_=k.pts;else if(this.isSpecialCharacter(D,se))D=(D&3)<<8,oe=gf(D|se),this[this.mode_](k.pts,oe),this.column_++;else if(this.isExtCharacter(D,se))this.mode_==="popOn"?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),D=(D&3)<<8,oe=gf(D|se),this[this.mode_](k.pts,oe),this.column_++;else if(this.isMidRowCode(D,se))this.clearFormatting(k.pts),this[this.mode_](k.pts," "),this.column_++,(se&14)===14&&this.addFormatting(k.pts,["i"]),(se&1)===1&&this.addFormatting(k.pts,["u"]);else if(this.isOffsetControlCode(D,se))this.column_+=se&3;else if(this.isPAC(D,se)){var de=cL.indexOf(O&7968);this.mode_==="rollUp"&&(de-this.rollUpRows_+1<0&&(de=this.rollUpRows_-1),this.setRollUp(k.pts,de)),de!==this.row_&&(this.clearFormatting(k.pts),this.row_=de),se&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(k.pts,["u"]),(O&16)===16&&(this.column_=((O&14)>>1)*4),this.isColorPAC(se)&&(se&14)===14&&this.addFormatting(k.pts,["i"])}else this.isNormalChar(D)&&(se===0&&(se=null),oe=gf(D),oe+=gf(se),this[this.mode_](k.pts,oe),this.column_+=oe.length)}};kn.prototype=new Tg,kn.prototype.flushDisplayed=function(b){var C=this.displayed_.map(function(k,O){try{return k.trim()}catch{return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+O+"."}),""}},this).join(`
|
||
`).replace(/^\n+|\n+$/g,"");C.length&&this.trigger("data",{startPts:this.startPts_,endPts:b,text:C,stream:this.name_})},kn.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Go(),this.nonDisplayed_=Go(),this.lastControlCode_=null,this.column_=0,this.row_=vf,this.rollUpRows_=2,this.formatting_=[]},kn.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},kn.prototype.isSpecialCharacter=function(b,C){return b===this.EXT_&&C>=48&&C<=63},kn.prototype.isExtCharacter=function(b,C){return(b===this.EXT_+1||b===this.EXT_+2)&&C>=32&&C<=63},kn.prototype.isMidRowCode=function(b,C){return b===this.EXT_&&C>=32&&C<=47},kn.prototype.isOffsetControlCode=function(b,C){return b===this.OFFSET_&&C>=33&&C<=35},kn.prototype.isPAC=function(b,C){return b>=this.BASE_&&b<this.BASE_+8&&C>=64&&C<=127},kn.prototype.isColorPAC=function(b){return b>=64&&b<=79||b>=96&&b<=127},kn.prototype.isNormalChar=function(b){return b>=32&&b<=127},kn.prototype.setRollUp=function(b,C){if(this.mode_!=="rollUp"&&(this.row_=vf,this.mode_="rollUp",this.flushDisplayed(b),this.nonDisplayed_=Go(),this.displayed_=Go()),C!==void 0&&C!==this.row_)for(var k=0;k<this.rollUpRows_;k++)this.displayed_[C-k]=this.displayed_[this.row_-k],this.displayed_[this.row_-k]="";C===void 0&&(C=this.row_),this.topRow_=C-this.rollUpRows_+1},kn.prototype.addFormatting=function(b,C){this.formatting_=this.formatting_.concat(C);var k=C.reduce(function(O,P){return O+"<"+P+">"},"");this[this.mode_](b,k)},kn.prototype.clearFormatting=function(b){if(this.formatting_.length){var C=this.formatting_.reverse().reduce(function(k,O){return k+"</"+O+">"},"");this.formatting_=[],this[this.mode_](b,C)}},kn.prototype.popOn=function(b,C){var k=this.nonDisplayed_[this.row_];k+=C,this.nonDisplayed_[this.row_]=k},kn.prototype.rollUp=function(b,C){var k=this.displayed_[this.row_];k+=C,this.displayed_[this.row_]=k},kn.prototype.shiftRowsUp_=function(){var b;for(b=0;b<this.topRow_;b++)this.displayed_[b]="";for(b=this.row_+1;b<vf+1;b++)this.displayed_[b]="";for(b=this.topRow_;b<this.row_;b++)this.displayed_[b]=this.displayed_[b+1];this.displayed_[this.row_]=""},kn.prototype.paintOn=function(b,C){var k=this.displayed_[this.row_];k+=C,this.displayed_[this.row_]=k};var vT={CaptionStream:Ps,Cea608Stream:kn,Cea708Stream:vn},yf={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},dL=n,fL=8589934592,hL=4294967296,yT="shared",Sg=function(b,C){var k=1;for(b>C&&(k=-1);Math.abs(C-b)>hL;)b+=k*fL;return b},wg=function(b){var C,k;wg.prototype.init.call(this),this.type_=b||yT,this.push=function(O){this.type_!==yT&&O.type!==this.type_||(k===void 0&&(k=O.dts),O.dts=Sg(O.dts,k),O.pts=Sg(O.pts,k),C=O.dts,this.trigger("data",O))},this.flush=function(){k=C,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){k=void 0,C=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};wg.prototype=new dL;var bT={TimestampRolloverStream:wg,handleRollover:Sg},pL=(b,C,k)=>{if(!b)return-1;for(var O=k;O<b.length;O++)if(b[O]===C)return O;return-1},mL={typedArrayIndexOf:pL},gL=n,vL=yf,bf=mL.typedArrayIndexOf,_f={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},_T=function(b,C,k){var O,P="";for(O=C;O<k;O++)P+="%"+("00"+b[O].toString(16)).slice(-2);return P},Vu=function(b,C,k){return decodeURIComponent(_T(b,C,k))},Uu=function(b,C,k){return unescape(_T(b,C,k))},Tf=function(b){return b[0]<<21|b[1]<<14|b[2]<<7|b[3]},Sf={APIC:function(b){var C=1,k,O,P="-->";b.data[0]===_f.Utf8&&(k=bf(b.data,0,C),!(k<0)&&(b.mimeType=Uu(b.data,C,k),C=k+1,b.pictureType=b.data[C],C++,O=bf(b.data,0,C),!(O<0)&&(b.description=Vu(b.data,C,O),C=O+1,b.mimeType===P?b.url=Uu(b.data,C,b.data.length):b.pictureData=b.data.subarray(C,b.data.length))))},"T*":function(b){b.data[0]===_f.Utf8&&(b.value=Vu(b.data,1,b.data.length).replace(/\0*$/,""),b.values=b.value.split("\0"))},TXXX:function(b){var C;b.data[0]===_f.Utf8&&(C=bf(b.data,0,1),C!==-1&&(b.description=Vu(b.data,1,C),b.value=Vu(b.data,C+1,b.data.length).replace(/\0*$/,""),b.data=b.value))},"W*":function(b){b.url=Uu(b.data,0,b.data.length).replace(/\0.*$/,"")},WXXX:function(b){var C;b.data[0]===_f.Utf8&&(C=bf(b.data,0,1),C!==-1&&(b.description=Vu(b.data,1,C),b.url=Uu(b.data,C+1,b.data.length).replace(/\0.*$/,"")))},PRIV:function(b){var C;for(C=0;C<b.data.length;C++)if(b.data[C]===0){b.owner=Uu(b.data,0,C);break}b.privateData=b.data.subarray(C+1),b.data=b.privateData}},wf;wf=function(b){var C={descriptor:b&&b.descriptor},k=0,O=[],P=0,D;if(wf.prototype.init.call(this),this.dispatchType=vL.METADATA_STREAM_TYPE.toString(16),C.descriptor)for(D=0;D<C.descriptor.length;D++)this.dispatchType+=("00"+C.descriptor[D].toString(16)).slice(-2);this.push=function(se){var oe,de,ye,Pe,Ke,_t;if(se.type==="timed-metadata"){if(se.dataAlignmentIndicator&&(P=0,O.length=0),O.length===0&&(se.data.length<10||se.data[0]!=="I".charCodeAt(0)||se.data[1]!=="D".charCodeAt(0)||se.data[2]!=="3".charCodeAt(0))){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(O.push(se),P+=se.data.byteLength,O.length===1&&(k=Tf(se.data.subarray(6,10)),k+=10),!(P<k)){for(oe={data:new Uint8Array(k),frames:[],pts:O[0].pts,dts:O[0].dts},Ke=0;Ke<k;)oe.data.set(O[0].data.subarray(0,k-Ke),Ke),Ke+=O[0].data.byteLength,P-=O[0].data.byteLength,O.shift();de=10,oe.data[5]&64&&(de+=4,de+=Tf(oe.data.subarray(10,14)),k-=Tf(oe.data.subarray(16,20)));do{if(ye=Tf(oe.data.subarray(de+4,de+8)),ye<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(_t=String.fromCharCode(oe.data[de],oe.data[de+1],oe.data[de+2],oe.data[de+3]),Pe={id:_t,data:oe.data.subarray(de+10,de+ye+10)},Pe.key=Pe.id,Sf[Pe.id]?Sf[Pe.id](Pe):Pe.id[0]==="T"?Sf["T*"](Pe):Pe.id[0]==="W"&&Sf["W*"](Pe),Pe.owner==="com.apple.streaming.transportStreamTimestamp"){var rt=Pe.data,Dt=(rt[3]&1)<<30|rt[4]<<22|rt[5]<<14|rt[6]<<6|rt[7]>>>2;Dt*=4,Dt+=rt[7]&3,Pe.timeStamp=Dt,oe.pts===void 0&&oe.dts===void 0&&(oe.pts=Pe.timeStamp,oe.dts=Pe.timeStamp),this.trigger("timestamp",Pe)}oe.frames.push(Pe),de+=10,de+=ye}while(de<k);this.trigger("data",oe)}}}},wf.prototype=new gL;var yL=wf,Cg=n,Eg=vT,xr=yf,bL=bT.TimestampRolloverStream,Cf,Hu,Ef,Ga=188,xg=71;Cf=function(){var b=new Uint8Array(Ga),C=0;Cf.prototype.init.call(this),this.push=function(k){var O=0,P=Ga,D;for(C?(D=new Uint8Array(k.byteLength+C),D.set(b.subarray(0,C)),D.set(k,C),C=0):D=k;P<D.byteLength;){if(D[O]===xg&&D[P]===xg){this.trigger("data",D.subarray(O,P)),O+=Ga,P+=Ga;continue}O++,P++}O<D.byteLength&&(b.set(D.subarray(O),0),C=D.byteLength-O)},this.flush=function(){C===Ga&&b[0]===xg&&(this.trigger("data",b),C=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){C=0,this.trigger("reset")}},Cf.prototype=new Cg,Hu=function(){var b,C,k,O;Hu.prototype.init.call(this),O=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,b=function(P,D){var se=0;D.payloadUnitStartIndicator&&(se+=P[se]+1),D.type==="pat"?C(P.subarray(se),D):k(P.subarray(se),D)},C=function(P,D){D.section_number=P[7],D.last_section_number=P[8],O.pmtPid=(P[10]&31)<<8|P[11],D.pmtPid=O.pmtPid},k=function(P,D){var se,oe,de,ye;if(P[5]&1){for(O.programMapTable={video:null,audio:null,"timed-metadata":{}},se=(P[1]&15)<<8|P[2],oe=3+se-4,de=(P[10]&15)<<8|P[11],ye=12+de;ye<oe;){var Pe=P[ye],Ke=(P[ye+1]&31)<<8|P[ye+2];Pe===xr.H264_STREAM_TYPE&&O.programMapTable.video===null?O.programMapTable.video=Ke:Pe===xr.ADTS_STREAM_TYPE&&O.programMapTable.audio===null?O.programMapTable.audio=Ke:Pe===xr.METADATA_STREAM_TYPE&&(O.programMapTable["timed-metadata"][Ke]=Pe),ye+=((P[ye+3]&15)<<8|P[ye+4])+5}D.programMapTable=O.programMapTable}},this.push=function(P){var D={},se=4;if(D.payloadUnitStartIndicator=!!(P[1]&64),D.pid=P[1]&31,D.pid<<=8,D.pid|=P[2],(P[3]&48)>>>4>1&&(se+=P[se]+1),D.pid===0)D.type="pat",b(P.subarray(se),D),this.trigger("data",D);else if(D.pid===this.pmtPid)for(D.type="pmt",b(P.subarray(se),D),this.trigger("data",D);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([P,se,D]):this.processPes_(P,se,D)},this.processPes_=function(P,D,se){se.pid===this.programMapTable.video?se.streamType=xr.H264_STREAM_TYPE:se.pid===this.programMapTable.audio?se.streamType=xr.ADTS_STREAM_TYPE:se.streamType=this.programMapTable["timed-metadata"][se.pid],se.type="pes",se.data=P.subarray(D),this.trigger("data",se)}},Hu.prototype=new Cg,Hu.STREAM_TYPES={h264:27,adts:15},Ef=function(){var b=this,C=!1,k={data:[],size:0},O={data:[],size:0},P={data:[],size:0},D,se=function(de,ye){var Pe;const Ke=de[0]<<16|de[1]<<8|de[2];ye.data=new Uint8Array,Ke===1&&(ye.packetLength=6+(de[4]<<8|de[5]),ye.dataAlignmentIndicator=(de[6]&4)!==0,Pe=de[7],Pe&192&&(ye.pts=(de[9]&14)<<27|(de[10]&255)<<20|(de[11]&254)<<12|(de[12]&255)<<5|(de[13]&254)>>>3,ye.pts*=4,ye.pts+=(de[13]&6)>>>1,ye.dts=ye.pts,Pe&64&&(ye.dts=(de[14]&14)<<27|(de[15]&255)<<20|(de[16]&254)<<12|(de[17]&255)<<5|(de[18]&254)>>>3,ye.dts*=4,ye.dts+=(de[18]&6)>>>1)),ye.data=de.subarray(9+de[8]))},oe=function(de,ye,Pe){var Ke=new Uint8Array(de.size),_t={type:ye},rt=0,Dt=0,Wt=!1,jn;if(!(!de.data.length||de.size<9)){for(_t.trackId=de.data[0].pid,rt=0;rt<de.data.length;rt++)jn=de.data[rt],Ke.set(jn.data,Dt),Dt+=jn.data.byteLength;se(Ke,_t),Wt=ye==="video"||_t.packetLength<=de.size,(Pe||Wt)&&(de.size=0,de.data.length=0),Wt&&b.trigger("data",_t)}};Ef.prototype.init.call(this),this.push=function(de){({pat:function(){},pes:function(){var ye,Pe;switch(de.streamType){case xr.H264_STREAM_TYPE:ye=k,Pe="video";break;case xr.ADTS_STREAM_TYPE:ye=O,Pe="audio";break;case xr.METADATA_STREAM_TYPE:ye=P,Pe="timed-metadata";break;default:return}de.payloadUnitStartIndicator&&oe(ye,Pe,!0),ye.data.push(de),ye.size+=de.data.byteLength},pmt:function(){var ye={type:"metadata",tracks:[]};D=de.programMapTable,D.video!==null&&ye.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+D.video,codec:"avc",type:"video"}),D.audio!==null&&ye.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+D.audio,codec:"adts",type:"audio"}),C=!0,b.trigger("data",ye)}})[de.type]()},this.reset=function(){k.size=0,k.data.length=0,O.size=0,O.data.length=0,this.trigger("reset")},this.flushStreams_=function(){oe(k,"video"),oe(O,"audio"),oe(P,"timed-metadata")},this.flush=function(){if(!C&&D){var de={type:"metadata",tracks:[]};D.video!==null&&de.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+D.video,codec:"avc",type:"video"}),D.audio!==null&&de.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+D.audio,codec:"adts",type:"audio"}),b.trigger("data",de)}C=!1,this.flushStreams_(),this.trigger("done")}},Ef.prototype=new Cg;var TT={PAT_PID:0,MP2T_PACKET_LENGTH:Ga,TransportPacketStream:Cf,TransportParseStream:Hu,ElementaryStream:Ef,TimestampRolloverStream:bL,CaptionStream:Eg.CaptionStream,Cea608Stream:Eg.Cea608Stream,Cea708Stream:Eg.Cea708Stream,MetadataStream:yL};for(var kg in xr)xr.hasOwnProperty(kg)&&(TT[kg]=xr[kg]);var _L=TT,TL=n,SL=J.ONE_SECOND_IN_TS,xf,ST=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];xf=function(b){var C,k=0;xf.prototype.init.call(this),this.skipWarn_=function(O,P){this.trigger("log",{level:"warn",message:`adts skiping bytes ${O} to ${P} in frame ${k} outside syncword`})},this.push=function(O){var P=0,D,se,oe,de,ye;if(b||(k=0),O.type==="audio"){C&&C.length?(oe=C,C=new Uint8Array(oe.byteLength+O.data.byteLength),C.set(oe),C.set(O.data,oe.byteLength)):C=O.data;for(var Pe;P+7<C.length;){if(C[P]!==255||(C[P+1]&246)!==240){typeof Pe!="number"&&(Pe=P),P++;continue}if(typeof Pe=="number"&&(this.skipWarn_(Pe,P),Pe=null),se=(~C[P+1]&1)*2,D=(C[P+3]&3)<<11|C[P+4]<<3|(C[P+5]&224)>>5,de=((C[P+6]&3)+1)*1024,ye=de*SL/ST[(C[P+2]&60)>>>2],C.byteLength-P<D)break;this.trigger("data",{pts:O.pts+k*ye,dts:O.dts+k*ye,sampleCount:de,audioobjecttype:(C[P+2]>>>6&3)+1,channelcount:(C[P+2]&1)<<2|(C[P+3]&192)>>>6,samplerate:ST[(C[P+2]&60)>>>2],samplingfrequencyindex:(C[P+2]&60)>>>2,samplesize:16,data:C.subarray(P+7+se,P+D)}),k++,P+=D}typeof Pe=="number"&&(this.skipWarn_(Pe,P),Pe=null),C=C.subarray(P)}},this.flush=function(){k=0,this.trigger("done")},this.reset=function(){C=void 0,this.trigger("reset")},this.endTimeline=function(){C=void 0,this.trigger("endedtimeline")}},xf.prototype=new TL;var wL=xf,wT;wT=function(b){var C=b.byteLength,k=0,O=0;this.length=function(){return 8*C},this.bitsAvailable=function(){return 8*C+O},this.loadWord=function(){var P=b.byteLength-C,D=new Uint8Array(4),se=Math.min(4,C);if(se===0)throw new Error("no bytes available");D.set(b.subarray(P,P+se)),k=new DataView(D.buffer).getUint32(0),O=se*8,C-=se},this.skipBits=function(P){var D;O>P?(k<<=P,O-=P):(P-=O,D=Math.floor(P/8),P-=D*8,C-=D,this.loadWord(),k<<=P,O-=P)},this.readBits=function(P){var D=Math.min(O,P),se=k>>>32-D;return O-=D,O>0?k<<=D:C>0&&this.loadWord(),D=P-D,D>0?se<<D|this.readBits(D):se},this.skipLeadingZeros=function(){var P;for(P=0;P<O;++P)if(k&2147483648>>>P)return k<<=P,O-=P,P;return this.loadWord(),P+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var P=this.skipLeadingZeros();return this.readBits(P+1)-1},this.readExpGolomb=function(){var P=this.readUnsignedExpGolomb();return 1&P?1+P>>>1:-1*(P>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var CL=wT,CT=n,EL=CL,kf,zu,ET;zu=function(){var b=0,C,k;zu.prototype.init.call(this),this.push=function(O){var P;k?(P=new Uint8Array(k.byteLength+O.data.byteLength),P.set(k),P.set(O.data,k.byteLength),k=P):k=O.data;for(var D=k.byteLength;b<D-3;b++)if(k[b+2]===1){C=b+5;break}for(;C<D;)switch(k[C]){case 0:if(k[C-1]!==0){C+=2;break}else if(k[C-2]!==0){C++;break}b+3!==C-2&&this.trigger("data",k.subarray(b+3,C-2));do C++;while(k[C]!==1&&C<D);b=C-2,C+=3;break;case 1:if(k[C-1]!==0||k[C-2]!==0){C+=3;break}this.trigger("data",k.subarray(b+3,C-2)),b=C-2,C+=3;break;default:C+=3;break}k=k.subarray(b),C-=b,b=0},this.reset=function(){k=null,b=0,this.trigger("reset")},this.flush=function(){k&&k.byteLength>3&&this.trigger("data",k.subarray(b+3)),k=null,b=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},zu.prototype=new CT,ET={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},kf=function(){var b=new zu,C,k,O,P,D,se,oe;kf.prototype.init.call(this),C=this,this.push=function(de){de.type==="video"&&(k=de.trackId,O=de.pts,P=de.dts,b.push(de))},b.on("data",function(de){var ye={trackId:k,pts:O,dts:P,data:de,nalUnitTypeCode:de[0]&31};switch(ye.nalUnitTypeCode){case 5:ye.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:ye.nalUnitType="sei_rbsp",ye.escapedRBSP=D(de.subarray(1));break;case 7:ye.nalUnitType="seq_parameter_set_rbsp",ye.escapedRBSP=D(de.subarray(1)),ye.config=se(ye.escapedRBSP);break;case 8:ye.nalUnitType="pic_parameter_set_rbsp";break;case 9:ye.nalUnitType="access_unit_delimiter_rbsp";break}C.trigger("data",ye)}),b.on("done",function(){C.trigger("done")}),b.on("partialdone",function(){C.trigger("partialdone")}),b.on("reset",function(){C.trigger("reset")}),b.on("endedtimeline",function(){C.trigger("endedtimeline")}),this.flush=function(){b.flush()},this.partialFlush=function(){b.partialFlush()},this.reset=function(){b.reset()},this.endTimeline=function(){b.endTimeline()},oe=function(de,ye){var Pe=8,Ke=8,_t,rt;for(_t=0;_t<de;_t++)Ke!==0&&(rt=ye.readExpGolomb(),Ke=(Pe+rt+256)%256),Pe=Ke===0?Pe:Ke},D=function(de){for(var ye=de.byteLength,Pe=[],Ke=1,_t,rt;Ke<ye-2;)de[Ke]===0&&de[Ke+1]===0&&de[Ke+2]===3?(Pe.push(Ke+2),Ke+=2):Ke++;if(Pe.length===0)return de;_t=ye-Pe.length,rt=new Uint8Array(_t);var Dt=0;for(Ke=0;Ke<_t;Dt++,Ke++)Dt===Pe[0]&&(Dt++,Pe.shift()),rt[Ke]=de[Dt];return rt},se=function(de){var ye=0,Pe=0,Ke=0,_t=0,rt,Dt,Wt,jn,lr,Qo,JT,ZT,eS,Lg,tS,Mn=[1,1],nS,Jo;if(rt=new EL(de),Dt=rt.readUnsignedByte(),jn=rt.readUnsignedByte(),Wt=rt.readUnsignedByte(),rt.skipUnsignedExpGolomb(),ET[Dt]&&(lr=rt.readUnsignedExpGolomb(),lr===3&&rt.skipBits(1),rt.skipUnsignedExpGolomb(),rt.skipUnsignedExpGolomb(),rt.skipBits(1),rt.readBoolean()))for(tS=lr!==3?8:12,Jo=0;Jo<tS;Jo++)rt.readBoolean()&&(Jo<6?oe(16,rt):oe(64,rt));if(rt.skipUnsignedExpGolomb(),Qo=rt.readUnsignedExpGolomb(),Qo===0)rt.readUnsignedExpGolomb();else if(Qo===1)for(rt.skipBits(1),rt.skipExpGolomb(),rt.skipExpGolomb(),JT=rt.readUnsignedExpGolomb(),Jo=0;Jo<JT;Jo++)rt.skipExpGolomb();if(rt.skipUnsignedExpGolomb(),rt.skipBits(1),ZT=rt.readUnsignedExpGolomb(),eS=rt.readUnsignedExpGolomb(),Lg=rt.readBits(1),Lg===0&&rt.skipBits(1),rt.skipBits(1),rt.readBoolean()&&(ye=rt.readUnsignedExpGolomb(),Pe=rt.readUnsignedExpGolomb(),Ke=rt.readUnsignedExpGolomb(),_t=rt.readUnsignedExpGolomb()),rt.readBoolean()&&rt.readBoolean()){switch(nS=rt.readUnsignedByte(),nS){case 1:Mn=[1,1];break;case 2:Mn=[12,11];break;case 3:Mn=[10,11];break;case 4:Mn=[16,11];break;case 5:Mn=[40,33];break;case 6:Mn=[24,11];break;case 7:Mn=[20,11];break;case 8:Mn=[32,11];break;case 9:Mn=[80,33];break;case 10:Mn=[18,11];break;case 11:Mn=[15,11];break;case 12:Mn=[64,33];break;case 13:Mn=[160,99];break;case 14:Mn=[4,3];break;case 15:Mn=[3,2];break;case 16:Mn=[2,1];break;case 255:{Mn=[rt.readUnsignedByte()<<8|rt.readUnsignedByte(),rt.readUnsignedByte()<<8|rt.readUnsignedByte()];break}}Mn&&Mn[0]/Mn[1]}return{profileIdc:Dt,levelIdc:Wt,profileCompatibility:jn,width:(ZT+1)*16-ye*2-Pe*2,height:(2-Lg)*(eS+1)*16-Ke*2-_t*2,sarRatio:Mn}}},kf.prototype=new CT;var xL={H264Stream:kf,NalByteStream:zu},kL=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],xT=function(b,C){var k=b[C+6]<<21|b[C+7]<<14|b[C+8]<<7|b[C+9],O=b[C+5],P=(O&16)>>4;return k=k>=0?k:0,P?k+20:k+10},kT=function(b,C){return b.length-C<10||b[C]!=="I".charCodeAt(0)||b[C+1]!=="D".charCodeAt(0)||b[C+2]!=="3".charCodeAt(0)?C:(C+=xT(b,C),kT(b,C))},OL=function(b){var C=kT(b,0);return b.length>=C+2&&(b[C]&255)===255&&(b[C+1]&240)===240&&(b[C+1]&22)===16},OT=function(b){return b[0]<<21|b[1]<<14|b[2]<<7|b[3]},AL=function(b,C,k){var O,P="";for(O=C;O<k;O++)P+="%"+("00"+b[O].toString(16)).slice(-2);return P},IL=function(b,C,k){return unescape(AL(b,C,k))},PL=function(b,C){var k=(b[C+5]&224)>>5,O=b[C+4]<<3,P=b[C+3]&3<<11;return P|O|k},$L=function(b,C){return b[C]==="I".charCodeAt(0)&&b[C+1]==="D".charCodeAt(0)&&b[C+2]==="3".charCodeAt(0)?"timed-metadata":b[C]&!0&&(b[C+1]&240)===240?"audio":null},NL=function(b){for(var C=0;C+5<b.length;){if(b[C]!==255||(b[C+1]&246)!==240){C++;continue}return kL[(b[C+2]&60)>>>2]}return null},ML=function(b){var C,k,O,P;C=10,b[5]&64&&(C+=4,C+=OT(b.subarray(10,14)));do{if(k=OT(b.subarray(C+4,C+8)),k<1)return null;if(P=String.fromCharCode(b[C],b[C+1],b[C+2],b[C+3]),P==="PRIV"){O=b.subarray(C+10,C+k+10);for(var D=0;D<O.byteLength;D++)if(O[D]===0){var se=IL(O,0,D);if(se==="com.apple.streaming.transportStreamTimestamp"){var oe=O.subarray(D+1),de=(oe[3]&1)<<30|oe[4]<<22|oe[5]<<14|oe[6]<<6|oe[7]>>>2;return de*=4,de+=oe[7]&3,de}break}}C+=10,C+=k}while(C<b.byteLength);return null},Og={isLikelyAacData:OL,parseId3TagSize:xT,parseAdtsSize:PL,parseType:$L,parseSampleRate:NL,parseAacTimestamp:ML},RL=n,AT=Og,Of;Of=function(){var b=new Uint8Array,C=0;Of.prototype.init.call(this),this.setTimestamp=function(k){C=k},this.push=function(k){var O=0,P=0,D,se,oe,de;for(b.length?(de=b.length,b=new Uint8Array(k.byteLength+de),b.set(b.subarray(0,de)),b.set(k,de)):b=k;b.length-P>=3;){if(b[P]==="I".charCodeAt(0)&&b[P+1]==="D".charCodeAt(0)&&b[P+2]==="3".charCodeAt(0)){if(b.length-P<10||(O=AT.parseId3TagSize(b,P),P+O>b.length))break;se={type:"timed-metadata",data:b.subarray(P,P+O)},this.trigger("data",se),P+=O;continue}else if((b[P]&255)===255&&(b[P+1]&240)===240){if(b.length-P<7||(O=AT.parseAdtsSize(b,P),P+O>b.length))break;oe={type:"audio",data:b.subarray(P,P+O),pts:C,dts:C},this.trigger("data",oe),P+=O;continue}P++}D=b.length-P,D>0?b=b.subarray(P):b=new Uint8Array},this.reset=function(){b=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){b=new Uint8Array,this.trigger("endedtimeline")}},Of.prototype=new RL;var LL=Of,DL=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],FL=DL,BL=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],VL=BL,Af=n,ju=ce,Ku=_e,If=xt,kr=lt,ki=_L,Pf=J,IT=wL,UL=xL.H264Stream,HL=LL,zL=Og.isLikelyAacData,jL=J.ONE_SECOND_IN_TS,Ag=FL,Ig=VL,Wu,Ya,$f,Yo,KL=function(b,C){C.stream=b,this.trigger("log",C)},PT=function(b,C){for(var k=Object.keys(C),O=0;O<k.length;O++){var P=k[O];P==="headOfPipeline"||!C[P].on||C[P].on("log",KL.bind(b,P))}},$T=function(b,C){var k;if(b.length!==C.length)return!1;for(k=0;k<b.length;k++)if(b[k]!==C[k])return!1;return!0},Pg=function(b,C,k,O,P,D){var se=k-C,oe=O-C,de=P-k;return{start:{dts:b,pts:b+se},end:{dts:b+oe,pts:b+de},prependedContentDuration:D,baseMediaDecodeTime:b}};Ya=function(b,C){var k=[],O,P=0,D=0,se=1/0;C=C||{},O=C.firstSequenceNumber||0,Ya.prototype.init.call(this),this.push=function(oe){kr.collectDtsInfo(b,oe),b&&Ag.forEach(function(de){b[de]=oe[de]}),k.push(oe)},this.setEarliestDts=function(oe){P=oe},this.setVideoBaseMediaDecodeTime=function(oe){se=oe},this.setAudioAppendStart=function(oe){D=oe},this.flush=function(){var oe,de,ye,Pe,Ke,_t,rt;if(k.length===0){this.trigger("done","AudioSegmentStream");return}oe=If.trimAdtsFramesByEarliestDts(k,b,P),b.baseMediaDecodeTime=kr.calculateTrackBaseMediaDecodeTime(b,C.keepOriginalTimestamps),rt=If.prefixWithSilence(b,oe,D,se),b.samples=If.generateSampleTable(oe),ye=ju.mdat(If.concatenateFrameData(oe)),k=[],de=ju.moof(O,[b]),Pe=new Uint8Array(de.byteLength+ye.byteLength),O++,Pe.set(de),Pe.set(ye,de.byteLength),kr.clearDtsInfo(b),Ke=Math.ceil(jL*1024/b.samplerate),oe.length&&(_t=oe.length*Ke,this.trigger("segmentTimingInfo",Pg(Pf.audioTsToVideoTs(b.baseMediaDecodeTime,b.samplerate),oe[0].dts,oe[0].pts,oe[0].dts+_t,oe[0].pts+_t,rt||0)),this.trigger("timingInfo",{start:oe[0].pts,end:oe[0].pts+_t})),this.trigger("data",{track:b,boxes:Pe}),this.trigger("done","AudioSegmentStream")},this.reset=function(){kr.clearDtsInfo(b),k=[],this.trigger("reset")}},Ya.prototype=new Af,Wu=function(b,C){var k,O=[],P=[],D,se;C=C||{},k=C.firstSequenceNumber||0,Wu.prototype.init.call(this),delete b.minPTS,this.gopCache_=[],this.push=function(oe){kr.collectDtsInfo(b,oe),oe.nalUnitType==="seq_parameter_set_rbsp"&&!D&&(D=oe.config,b.sps=[oe.data],Ig.forEach(function(de){b[de]=D[de]},this)),oe.nalUnitType==="pic_parameter_set_rbsp"&&!se&&(se=oe.data,b.pps=[oe.data]),O.push(oe)},this.flush=function(){for(var oe,de,ye,Pe,Ke,_t,rt=0,Dt,Wt;O.length&&O[0].nalUnitType!=="access_unit_delimiter_rbsp";)O.shift();if(O.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(oe=Ku.groupNalsIntoFrames(O),ye=Ku.groupFramesIntoGops(oe),ye[0][0].keyFrame||(de=this.getGopForFusion_(O[0],b),de?(rt=de.duration,ye.unshift(de),ye.byteLength+=de.byteLength,ye.nalCount+=de.nalCount,ye.pts=de.pts,ye.dts=de.dts,ye.duration+=de.duration):ye=Ku.extendFirstKeyFrame(ye)),P.length){var jn;if(C.alignGopsAtEnd?jn=this.alignGopsAtEnd_(ye):jn=this.alignGopsAtStart_(ye),!jn){this.gopCache_.unshift({gop:ye.pop(),pps:b.pps,sps:b.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),O=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}kr.clearDtsInfo(b),ye=jn}kr.collectDtsInfo(b,ye),b.samples=Ku.generateSampleTable(ye),Ke=ju.mdat(Ku.concatenateNalData(ye)),b.baseMediaDecodeTime=kr.calculateTrackBaseMediaDecodeTime(b,C.keepOriginalTimestamps),this.trigger("processedGopsInfo",ye.map(function(lr){return{pts:lr.pts,dts:lr.dts,byteLength:lr.byteLength}})),Dt=ye[0],Wt=ye[ye.length-1],this.trigger("segmentTimingInfo",Pg(b.baseMediaDecodeTime,Dt.dts,Dt.pts,Wt.dts+Wt.duration,Wt.pts+Wt.duration,rt)),this.trigger("timingInfo",{start:ye[0].pts,end:ye[ye.length-1].pts+ye[ye.length-1].duration}),this.gopCache_.unshift({gop:ye.pop(),pps:b.pps,sps:b.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),O=[],this.trigger("baseMediaDecodeTime",b.baseMediaDecodeTime),this.trigger("timelineStartInfo",b.timelineStartInfo),Pe=ju.moof(k,[b]),_t=new Uint8Array(Pe.byteLength+Ke.byteLength),k++,_t.set(Pe),_t.set(Ke,Pe.byteLength),this.trigger("data",{track:b,boxes:_t}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),O=[],this.gopCache_.length=0,P.length=0,this.trigger("reset")},this.resetStream_=function(){kr.clearDtsInfo(b),D=void 0,se=void 0},this.getGopForFusion_=function(oe){var de=45e3,ye=1e4,Pe=1/0,Ke,_t,rt,Dt,Wt;for(Wt=0;Wt<this.gopCache_.length;Wt++)Dt=this.gopCache_[Wt],rt=Dt.gop,!(!(b.pps&&$T(b.pps[0],Dt.pps[0]))||!(b.sps&&$T(b.sps[0],Dt.sps[0])))&&(rt.dts<b.timelineStartInfo.dts||(Ke=oe.dts-rt.dts-rt.duration,Ke>=-ye&&Ke<=de&&(!_t||Pe>Ke)&&(_t=Dt,Pe=Ke)));return _t?_t.gop:null},this.alignGopsAtStart_=function(oe){var de,ye,Pe,Ke,_t,rt,Dt,Wt;for(_t=oe.byteLength,rt=oe.nalCount,Dt=oe.duration,de=ye=0;de<P.length&&ye<oe.length&&(Pe=P[de],Ke=oe[ye],Pe.pts!==Ke.pts);){if(Ke.pts>Pe.pts){de++;continue}ye++,_t-=Ke.byteLength,rt-=Ke.nalCount,Dt-=Ke.duration}return ye===0?oe:ye===oe.length?null:(Wt=oe.slice(ye),Wt.byteLength=_t,Wt.duration=Dt,Wt.nalCount=rt,Wt.pts=Wt[0].pts,Wt.dts=Wt[0].dts,Wt)},this.alignGopsAtEnd_=function(oe){var de,ye,Pe,Ke,_t,rt;for(de=P.length-1,ye=oe.length-1,_t=null,rt=!1;de>=0&&ye>=0;){if(Pe=P[de],Ke=oe[ye],Pe.pts===Ke.pts){rt=!0;break}if(Pe.pts>Ke.pts){de--;continue}de===P.length-1&&(_t=ye),ye--}if(!rt&&_t===null)return null;var Dt;if(rt?Dt=ye:Dt=_t,Dt===0)return oe;var Wt=oe.slice(Dt),jn=Wt.reduce(function(lr,Qo){return lr.byteLength+=Qo.byteLength,lr.duration+=Qo.duration,lr.nalCount+=Qo.nalCount,lr},{byteLength:0,duration:0,nalCount:0});return Wt.byteLength=jn.byteLength,Wt.duration=jn.duration,Wt.nalCount=jn.nalCount,Wt.pts=Wt[0].pts,Wt.dts=Wt[0].dts,Wt},this.alignGopsWith=function(oe){P=oe}},Wu.prototype=new Af,Yo=function(b,C){this.numberOfTracks=0,this.metadataStream=C,b=b||{},typeof b.remux<"u"?this.remuxTracks=!!b.remux:this.remuxTracks=!0,typeof b.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=b.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Yo.prototype.init.call(this),this.push=function(k){if(k.text)return this.pendingCaptions.push(k);if(k.frames)return this.pendingMetadata.push(k);this.pendingTracks.push(k.track),this.pendingBytes+=k.boxes.byteLength,k.track.type==="video"&&(this.videoTrack=k.track,this.pendingBoxes.push(k.boxes)),k.track.type==="audio"&&(this.audioTrack=k.track,this.pendingBoxes.unshift(k.boxes))}},Yo.prototype=new Af,Yo.prototype.flush=function(b){var C=0,k={captions:[],captionStreams:{},metadata:[],info:{}},O,P,D,se=0,oe;if(this.pendingTracks.length<this.numberOfTracks){if(b!=="VideoSegmentStream"&&b!=="AudioSegmentStream")return;if(this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(se=this.videoTrack.timelineStartInfo.pts,Ig.forEach(function(de){k.info[de]=this.videoTrack[de]},this)):this.audioTrack&&(se=this.audioTrack.timelineStartInfo.pts,Ag.forEach(function(de){k.info[de]=this.audioTrack[de]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?k.type=this.pendingTracks[0].type:k.type="combined",this.emittedTracks+=this.pendingTracks.length,D=ju.initSegment(this.pendingTracks),k.initSegment=new Uint8Array(D.byteLength),k.initSegment.set(D),k.data=new Uint8Array(this.pendingBytes),oe=0;oe<this.pendingBoxes.length;oe++)k.data.set(this.pendingBoxes[oe],C),C+=this.pendingBoxes[oe].byteLength;for(oe=0;oe<this.pendingCaptions.length;oe++)O=this.pendingCaptions[oe],O.startTime=Pf.metadataTsToSeconds(O.startPts,se,this.keepOriginalTimestamps),O.endTime=Pf.metadataTsToSeconds(O.endPts,se,this.keepOriginalTimestamps),k.captionStreams[O.stream]=!0,k.captions.push(O);for(oe=0;oe<this.pendingMetadata.length;oe++)P=this.pendingMetadata[oe],P.cueTime=Pf.metadataTsToSeconds(P.pts,se,this.keepOriginalTimestamps),k.metadata.push(P);for(k.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",k),oe=0;oe<k.captions.length;oe++)O=k.captions[oe],this.trigger("caption",O);for(oe=0;oe<k.metadata.length;oe++)P=k.metadata[oe],this.trigger("id3Frame",P)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Yo.prototype.setRemux=function(b){this.remuxTracks=b},$f=function(b){var C=this,k=!0,O,P;$f.prototype.init.call(this),b=b||{},this.baseMediaDecodeTime=b.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var D={};this.transmuxPipeline_=D,D.type="aac",D.metadataStream=new ki.MetadataStream,D.aacStream=new HL,D.audioTimestampRolloverStream=new ki.TimestampRolloverStream("audio"),D.timedMetadataTimestampRolloverStream=new ki.TimestampRolloverStream("timed-metadata"),D.adtsStream=new IT,D.coalesceStream=new Yo(b,D.metadataStream),D.headOfPipeline=D.aacStream,D.aacStream.pipe(D.audioTimestampRolloverStream).pipe(D.adtsStream),D.aacStream.pipe(D.timedMetadataTimestampRolloverStream).pipe(D.metadataStream).pipe(D.coalesceStream),D.metadataStream.on("timestamp",function(se){D.aacStream.setTimestamp(se.timeStamp)}),D.aacStream.on("data",function(se){se.type!=="timed-metadata"&&se.type!=="audio"||D.audioSegmentStream||(P=P||{timelineStartInfo:{baseMediaDecodeTime:C.baseMediaDecodeTime},codec:"adts",type:"audio"},D.coalesceStream.numberOfTracks++,D.audioSegmentStream=new Ya(P,b),D.audioSegmentStream.on("log",C.getLogTrigger_("audioSegmentStream")),D.audioSegmentStream.on("timingInfo",C.trigger.bind(C,"audioTimingInfo")),D.adtsStream.pipe(D.audioSegmentStream).pipe(D.coalesceStream),C.trigger("trackinfo",{hasAudio:!!P,hasVideo:!!O}))}),D.coalesceStream.on("data",this.trigger.bind(this,"data")),D.coalesceStream.on("done",this.trigger.bind(this,"done")),PT(this,D)},this.setupTsPipeline=function(){var D={};this.transmuxPipeline_=D,D.type="ts",D.metadataStream=new ki.MetadataStream,D.packetStream=new ki.TransportPacketStream,D.parseStream=new ki.TransportParseStream,D.elementaryStream=new ki.ElementaryStream,D.timestampRolloverStream=new ki.TimestampRolloverStream,D.adtsStream=new IT,D.h264Stream=new UL,D.captionStream=new ki.CaptionStream(b),D.coalesceStream=new Yo(b,D.metadataStream),D.headOfPipeline=D.packetStream,D.packetStream.pipe(D.parseStream).pipe(D.elementaryStream).pipe(D.timestampRolloverStream),D.timestampRolloverStream.pipe(D.h264Stream),D.timestampRolloverStream.pipe(D.adtsStream),D.timestampRolloverStream.pipe(D.metadataStream).pipe(D.coalesceStream),D.h264Stream.pipe(D.captionStream).pipe(D.coalesceStream),D.elementaryStream.on("data",function(se){var oe;if(se.type==="metadata"){for(oe=se.tracks.length;oe--;)!O&&se.tracks[oe].type==="video"?(O=se.tracks[oe],O.timelineStartInfo.baseMediaDecodeTime=C.baseMediaDecodeTime):!P&&se.tracks[oe].type==="audio"&&(P=se.tracks[oe],P.timelineStartInfo.baseMediaDecodeTime=C.baseMediaDecodeTime);O&&!D.videoSegmentStream&&(D.coalesceStream.numberOfTracks++,D.videoSegmentStream=new Wu(O,b),D.videoSegmentStream.on("log",C.getLogTrigger_("videoSegmentStream")),D.videoSegmentStream.on("timelineStartInfo",function(de){P&&!b.keepOriginalTimestamps&&(P.timelineStartInfo=de,D.audioSegmentStream.setEarliestDts(de.dts-C.baseMediaDecodeTime))}),D.videoSegmentStream.on("processedGopsInfo",C.trigger.bind(C,"gopInfo")),D.videoSegmentStream.on("segmentTimingInfo",C.trigger.bind(C,"videoSegmentTimingInfo")),D.videoSegmentStream.on("baseMediaDecodeTime",function(de){P&&D.audioSegmentStream.setVideoBaseMediaDecodeTime(de)}),D.videoSegmentStream.on("timingInfo",C.trigger.bind(C,"videoTimingInfo")),D.h264Stream.pipe(D.videoSegmentStream).pipe(D.coalesceStream)),P&&!D.audioSegmentStream&&(D.coalesceStream.numberOfTracks++,D.audioSegmentStream=new Ya(P,b),D.audioSegmentStream.on("log",C.getLogTrigger_("audioSegmentStream")),D.audioSegmentStream.on("timingInfo",C.trigger.bind(C,"audioTimingInfo")),D.audioSegmentStream.on("segmentTimingInfo",C.trigger.bind(C,"audioSegmentTimingInfo")),D.adtsStream.pipe(D.audioSegmentStream).pipe(D.coalesceStream)),C.trigger("trackinfo",{hasAudio:!!P,hasVideo:!!O})}}),D.coalesceStream.on("data",this.trigger.bind(this,"data")),D.coalesceStream.on("id3Frame",function(se){se.dispatchType=D.metadataStream.dispatchType,C.trigger("id3Frame",se)}),D.coalesceStream.on("caption",this.trigger.bind(this,"caption")),D.coalesceStream.on("done",this.trigger.bind(this,"done")),PT(this,D)},this.setBaseMediaDecodeTime=function(D){var se=this.transmuxPipeline_;b.keepOriginalTimestamps||(this.baseMediaDecodeTime=D),P&&(P.timelineStartInfo.dts=void 0,P.timelineStartInfo.pts=void 0,kr.clearDtsInfo(P),se.audioTimestampRolloverStream&&se.audioTimestampRolloverStream.discontinuity()),O&&(se.videoSegmentStream&&(se.videoSegmentStream.gopCache_=[]),O.timelineStartInfo.dts=void 0,O.timelineStartInfo.pts=void 0,kr.clearDtsInfo(O),se.captionStream.reset()),se.timestampRolloverStream&&se.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(D){P&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(D)},this.setRemux=function(D){var se=this.transmuxPipeline_;b.remux=D,se&&se.coalesceStream&&se.coalesceStream.setRemux(D)},this.alignGopsWith=function(D){O&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(D)},this.getLogTrigger_=function(D){var se=this;return function(oe){oe.stream=D,se.trigger("log",oe)}},this.push=function(D){if(k){var se=zL(D);se&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!se&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),k=!1}this.transmuxPipeline_.headOfPipeline.push(D)},this.flush=function(){k=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},$f.prototype=new Af;var WL={Transmuxer:$f,VideoSegmentStream:Wu,AudioSegmentStream:Ya,AUDIO_PROPERTIES:Ag,VIDEO_PROPERTIES:Ig,generateSegmentTimingInfo:Pg},qL=function(b){return b>>>0},GL=function(b){return("00"+b.toString(16)).slice(-2)},Nf={toUnsigned:qL,toHexString:GL},YL=function(b){var C="";return C+=String.fromCharCode(b[0]),C+=String.fromCharCode(b[1]),C+=String.fromCharCode(b[2]),C+=String.fromCharCode(b[3]),C},NT=YL,XL=Nf.toUnsigned,QL=NT,MT=function(b,C){var k=[],O,P,D,se,oe;if(!C.length)return null;for(O=0;O<b.byteLength;)P=XL(b[O]<<24|b[O+1]<<16|b[O+2]<<8|b[O+3]),D=QL(b.subarray(O+4,O+8)),se=P>1?O+P:b.byteLength,D===C[0]&&(C.length===1?k.push(b.subarray(O+8,se)):(oe=MT(b.subarray(O+8,se),C.slice(1)),oe.length&&(k=k.concat(oe)))),O=se;return k},RT=MT,JL=Nf.toUnsigned,ZL=i.getUint64,eD=function(b){var C={version:b[0],flags:new Uint8Array(b.subarray(1,4))};return C.version===1?C.baseMediaDecodeTime=ZL(b.subarray(4)):C.baseMediaDecodeTime=JL(b[4]<<24|b[5]<<16|b[6]<<8|b[7]),C},LT=eD,tD=function(b){return{isLeading:(b[0]&12)>>>2,dependsOn:b[0]&3,isDependedOn:(b[1]&192)>>>6,hasRedundancy:(b[1]&48)>>>4,paddingValue:(b[1]&14)>>>1,isNonSyncSample:b[1]&1,degradationPriority:b[2]<<8|b[3]}},nD=tD,DT=nD,sD=function(b){var C={version:b[0],flags:new Uint8Array(b.subarray(1,4)),samples:[]},k=new DataView(b.buffer,b.byteOffset,b.byteLength),O=C.flags[2]&1,P=C.flags[2]&4,D=C.flags[1]&1,se=C.flags[1]&2,oe=C.flags[1]&4,de=C.flags[1]&8,ye=k.getUint32(4),Pe=8,Ke;for(O&&(C.dataOffset=k.getInt32(Pe),Pe+=4),P&&ye&&(Ke={flags:DT(b.subarray(Pe,Pe+4))},Pe+=4,D&&(Ke.duration=k.getUint32(Pe),Pe+=4),se&&(Ke.size=k.getUint32(Pe),Pe+=4),de&&(C.version===1?Ke.compositionTimeOffset=k.getInt32(Pe):Ke.compositionTimeOffset=k.getUint32(Pe),Pe+=4),C.samples.push(Ke),ye--);ye--;)Ke={},D&&(Ke.duration=k.getUint32(Pe),Pe+=4),se&&(Ke.size=k.getUint32(Pe),Pe+=4),oe&&(Ke.flags=DT(b.subarray(Pe,Pe+4)),Pe+=4),de&&(C.version===1?Ke.compositionTimeOffset=k.getInt32(Pe):Ke.compositionTimeOffset=k.getUint32(Pe),Pe+=4),C.samples.push(Ke);return C},FT=sD,rD=function(b){var C=new DataView(b.buffer,b.byteOffset,b.byteLength),k={version:b[0],flags:new Uint8Array(b.subarray(1,4)),trackId:C.getUint32(4)},O=k.flags[2]&1,P=k.flags[2]&2,D=k.flags[2]&8,se=k.flags[2]&16,oe=k.flags[2]&32,de=k.flags[0]&65536,ye=k.flags[0]&131072,Pe;return Pe=8,O&&(Pe+=4,k.baseDataOffset=C.getUint32(12),Pe+=4),P&&(k.sampleDescriptionIndex=C.getUint32(Pe),Pe+=4),D&&(k.defaultSampleDuration=C.getUint32(Pe),Pe+=4),se&&(k.defaultSampleSize=C.getUint32(Pe),Pe+=4),oe&&(k.defaultSampleFlags=C.getUint32(Pe)),de&&(k.durationIsEmpty=!0),!O&&ye&&(k.baseDataOffsetIsMoof=!0),k},BT=rD,qu;typeof window<"u"?qu=window:typeof e<"u"?qu=e:typeof self<"u"?qu=self:qu={};var VT=qu,iD=gT.discardEmulationPreventionBytes,oD=vT.CaptionStream,Gu=RT,aD=LT,lD=FT,uD=BT,UT=VT,cD=function(b,C){for(var k=b,O=0;O<C.length;O++){var P=C[O];if(k<P.size)return P;k-=P.size}return null},dD=function(b,C,k){var O=new DataView(b.buffer,b.byteOffset,b.byteLength),P={logs:[],seiNals:[]},D,se,oe,de;for(se=0;se+4<b.length;se+=oe)if(oe=O.getUint32(se),se+=4,!(oe<=0))switch(b[se]&31){case 6:var ye=b.subarray(se+1,se+1+oe),Pe=cD(se,C);if(D={nalUnitType:"sei_rbsp",size:oe,data:ye,escapedRBSP:iD(ye),trackId:k},Pe)D.pts=Pe.pts,D.dts=Pe.dts,de=Pe;else if(de)D.pts=de.pts,D.dts=de.dts;else{P.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+se+" for trackId "+k+". See mux.js#223."});break}P.seiNals.push(D);break}return P},fD=function(b,C,k){var O=C,P=k.defaultSampleDuration||0,D=k.defaultSampleSize||0,se=k.trackId,oe=[];return b.forEach(function(de){var ye=lD(de),Pe=ye.samples;Pe.forEach(function(Ke){Ke.duration===void 0&&(Ke.duration=P),Ke.size===void 0&&(Ke.size=D),Ke.trackId=se,Ke.dts=O,Ke.compositionTimeOffset===void 0&&(Ke.compositionTimeOffset=0),typeof O=="bigint"?(Ke.pts=O+UT.BigInt(Ke.compositionTimeOffset),O+=UT.BigInt(Ke.duration)):(Ke.pts=O+Ke.compositionTimeOffset,O+=Ke.duration)}),oe=oe.concat(Pe)}),oe},hD=function(b,C){var k=Gu(b,["moof","traf"]),O=Gu(b,["mdat"]),P={},D=[];return O.forEach(function(se,oe){var de=k[oe];D.push({mdat:se,traf:de})}),D.forEach(function(se){var oe=se.mdat,de=se.traf,ye=Gu(de,["tfhd"]),Pe=uD(ye[0]),Ke=Pe.trackId,_t=Gu(de,["tfdt"]),rt=_t.length>0?aD(_t[0]).baseMediaDecodeTime:0,Dt=Gu(de,["trun"]),Wt,jn;C===Ke&&Dt.length>0&&(Wt=fD(Dt,rt,Pe),jn=dD(oe,Wt,Ke),P[Ke]||(P[Ke]={seiNals:[],logs:[]}),P[Ke].seiNals=P[Ke].seiNals.concat(jn.seiNals),P[Ke].logs=P[Ke].logs.concat(jn.logs))}),P},pD=function(b,C,k){var O;if(C===null)return null;O=hD(b,C);var P=O[C]||{};return{seiNals:P.seiNals,logs:P.logs,timescale:k}},mD=function(){var b=!1,C,k,O,P,D,se;this.isInitialized=function(){return b},this.init=function(oe){C=new oD,b=!0,se=oe?oe.isPartial:!1,C.on("data",function(de){de.startTime=de.startPts/P,de.endTime=de.endPts/P,D.captions.push(de),D.captionStreams[de.stream]=!0}),C.on("log",function(de){D.logs.push(de)})},this.isNewInit=function(oe,de){return oe&&oe.length===0||de&&typeof de=="object"&&Object.keys(de).length===0?!1:O!==oe[0]||P!==de[O]},this.parse=function(oe,de,ye){var Pe;if(this.isInitialized()){if(!de||!ye)return null;if(this.isNewInit(de,ye))O=de[0],P=ye[O];else if(O===null||!P)return k.push(oe),null}else return null;for(;k.length>0;){var Ke=k.shift();this.parse(Ke,de,ye)}return Pe=pD(oe,O,P),Pe&&Pe.logs&&(D.logs=D.logs.concat(Pe.logs)),Pe===null||!Pe.seiNals?D.logs.length?{logs:D.logs,captions:[],captionStreams:[]}:null:(this.pushNals(Pe.seiNals),this.flushStream(),D)},this.pushNals=function(oe){if(!this.isInitialized()||!oe||oe.length===0)return null;oe.forEach(function(de){C.push(de)})},this.flushStream=function(){if(!this.isInitialized())return null;se?C.partialFlush():C.flush()},this.clearParsedCaptions=function(){D.captions=[],D.captionStreams={},D.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;C.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){k=[],O=null,P=null,D?this.clearParsedCaptions():D={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},gD=mD,Mf=Nf.toUnsigned,Yu=Nf.toHexString,Vn=RT,Xa=NT,vD=BT,yD=FT,bD=LT,_D=i.getUint64,HT,zT,jT,KT,WT,$g,Ng=VT;HT=function(b){var C={},k=Vn(b,["moov","trak"]);return k.reduce(function(O,P){var D,se,oe,de,ye;return D=Vn(P,["tkhd"])[0],!D||(se=D[0],oe=se===0?12:20,de=Mf(D[oe]<<24|D[oe+1]<<16|D[oe+2]<<8|D[oe+3]),ye=Vn(P,["mdia","mdhd"])[0],!ye)?null:(se=ye[0],oe=se===0?12:20,O[de]=Mf(ye[oe]<<24|ye[oe+1]<<16|ye[oe+2]<<8|ye[oe+3]),O)},C)},zT=function(b,C){var k;k=Vn(C,["moof","traf"]);var O=k.reduce(function(P,D){var se=Vn(D,["tfhd"])[0],oe=Mf(se[4]<<24|se[5]<<16|se[6]<<8|se[7]),de=b[oe]||9e4,ye=Vn(D,["tfdt"])[0],Pe=new DataView(ye.buffer,ye.byteOffset,ye.byteLength),Ke;ye[0]===1?Ke=_D(ye.subarray(4,12)):Ke=Pe.getUint32(4);let _t;return typeof Ke=="bigint"?_t=Ke/Ng.BigInt(de):typeof Ke=="number"&&!isNaN(Ke)&&(_t=Ke/de),_t<Number.MAX_SAFE_INTEGER&&(_t=Number(_t)),_t<P&&(P=_t),P},1/0);return typeof O=="bigint"||isFinite(O)?O:0},jT=function(b,C){var k=Vn(C,["moof","traf"]),O=0,P=0,D;if(k&&k.length){var se=Vn(k[0],["tfhd"])[0],oe=Vn(k[0],["trun"])[0],de=Vn(k[0],["tfdt"])[0];if(se){var ye=vD(se);D=ye.trackId}if(de){var Pe=bD(de);O=Pe.baseMediaDecodeTime}if(oe){var Ke=yD(oe);Ke.samples&&Ke.samples.length&&(P=Ke.samples[0].compositionTimeOffset||0)}}var _t=b[D]||9e4;typeof O=="bigint"&&(P=Ng.BigInt(P),_t=Ng.BigInt(_t));var rt=(O+P)/_t;return typeof rt=="bigint"&&rt<Number.MAX_SAFE_INTEGER&&(rt=Number(rt)),rt},KT=function(b){var C=Vn(b,["moov","trak"]),k=[];return C.forEach(function(O){var P=Vn(O,["mdia","hdlr"]),D=Vn(O,["tkhd"]);P.forEach(function(se,oe){var de=Xa(se.subarray(8,12)),ye=D[oe],Pe,Ke,_t;de==="vide"&&(Pe=new DataView(ye.buffer,ye.byteOffset,ye.byteLength),Ke=Pe.getUint8(0),_t=Ke===0?Pe.getUint32(12):Pe.getUint32(20),k.push(_t))})}),k},$g=function(b){var C=b[0],k=C===0?12:20;return Mf(b[k]<<24|b[k+1]<<16|b[k+2]<<8|b[k+3])},WT=function(b){var C=Vn(b,["moov","trak"]),k=[];return C.forEach(function(O){var P={},D=Vn(O,["tkhd"])[0],se,oe;D&&(se=new DataView(D.buffer,D.byteOffset,D.byteLength),oe=se.getUint8(0),P.id=oe===0?se.getUint32(12):se.getUint32(20));var de=Vn(O,["mdia","hdlr"])[0];if(de){var ye=Xa(de.subarray(8,12));ye==="vide"?P.type="video":ye==="soun"?P.type="audio":P.type=ye}var Pe=Vn(O,["mdia","minf","stbl","stsd"])[0];if(Pe){var Ke=Pe.subarray(8);P.codec=Xa(Ke.subarray(4,8));var _t=Vn(Ke,[P.codec])[0],rt,Dt;_t&&(/^[asm]vc[1-9]$/i.test(P.codec)?(rt=_t.subarray(78),Dt=Xa(rt.subarray(4,8)),Dt==="avcC"&&rt.length>11?(P.codec+=".",P.codec+=Yu(rt[9]),P.codec+=Yu(rt[10]),P.codec+=Yu(rt[11])):P.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(P.codec)?(rt=_t.subarray(28),Dt=Xa(rt.subarray(4,8)),Dt==="esds"&&rt.length>20&&rt[19]!==0?(P.codec+="."+Yu(rt[19]),P.codec+="."+Yu(rt[20]>>>2&63).replace(/^0/,"")):P.codec="mp4a.40.2"):P.codec=P.codec.toLowerCase())}var Wt=Vn(O,["mdia","mdhd"])[0];Wt&&(P.timescale=$g(Wt)),k.push(P)}),k};var qT={findBox:Vn,parseType:Xa,timescale:HT,startTime:zT,compositionStartTime:jT,videoTrackIds:KT,tracks:WT,getTimescaleFromMediaHeader:$g},Mg=yf,GT=function(b){var C=b[1]&31;return C<<=8,C|=b[2],C},Rf=function(b){return!!(b[1]&64)},Lf=function(b){var C=0;return(b[3]&48)>>>4>1&&(C+=b[4]+1),C},TD=function(b,C){var k=GT(b);return k===0?"pat":k===C?"pmt":C?"pes":null},SD=function(b){var C=Rf(b),k=4+Lf(b);return C&&(k+=b[k]+1),(b[k+10]&31)<<8|b[k+11]},wD=function(b){var C={},k=Rf(b),O=4+Lf(b);if(k&&(O+=b[O]+1),!!(b[O+5]&1)){var P,D,se;P=(b[O+1]&15)<<8|b[O+2],D=3+P-4,se=(b[O+10]&15)<<8|b[O+11];for(var oe=12+se;oe<D;){var de=O+oe;C[(b[de+1]&31)<<8|b[de+2]]=b[de],oe+=((b[de+3]&15)<<8|b[de+4])+5}return C}},CD=function(b,C){var k=GT(b),O=C[k];switch(O){case Mg.H264_STREAM_TYPE:return"video";case Mg.ADTS_STREAM_TYPE:return"audio";case Mg.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},ED=function(b){var C=Rf(b);if(!C)return null;var k=4+Lf(b);if(k>=b.byteLength)return null;var O=null,P;return P=b[k+7],P&192&&(O={},O.pts=(b[k+9]&14)<<27|(b[k+10]&255)<<20|(b[k+11]&254)<<12|(b[k+12]&255)<<5|(b[k+13]&254)>>>3,O.pts*=4,O.pts+=(b[k+13]&6)>>>1,O.dts=O.pts,P&64&&(O.dts=(b[k+14]&14)<<27|(b[k+15]&255)<<20|(b[k+16]&254)<<12|(b[k+17]&255)<<5|(b[k+18]&254)>>>3,O.dts*=4,O.dts+=(b[k+18]&6)>>>1)),O},Rg=function(b){switch(b){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},xD=function(b){for(var C=4+Lf(b),k=b.subarray(C),O=0,P=0,D=!1,se;P<k.byteLength-3;P++)if(k[P+2]===1){O=P+5;break}for(;O<k.byteLength;)switch(k[O]){case 0:if(k[O-1]!==0){O+=2;break}else if(k[O-2]!==0){O++;break}P+3!==O-2&&(se=Rg(k[P+3]&31),se==="slice_layer_without_partitioning_rbsp_idr"&&(D=!0));do O++;while(k[O]!==1&&O<k.length);P=O-2,O+=3;break;case 1:if(k[O-1]!==0||k[O-2]!==0){O+=3;break}se=Rg(k[P+3]&31),se==="slice_layer_without_partitioning_rbsp_idr"&&(D=!0),P=O-2,O+=3;break;default:O+=3;break}return k=k.subarray(P),O-=P,P=0,k&&k.byteLength>3&&(se=Rg(k[P+3]&31),se==="slice_layer_without_partitioning_rbsp_idr"&&(D=!0)),D},kD={parseType:TD,parsePat:SD,parsePmt:wD,parsePayloadUnitStartIndicator:Rf,parsePesType:CD,parsePesTime:ED,videoPacketContainsKeyFrame:xD},YT=yf,Qa=bT.handleRollover,un={};un.ts=kD,un.aac=Og;var Xo=J.ONE_SECOND_IN_TS,hs=188,Xr=71,OD=function(b,C){for(var k=0,O=hs,P,D;O<b.byteLength;){if(b[k]===Xr&&b[O]===Xr){switch(P=b.subarray(k,O),D=un.ts.parseType(P,C.pid),D){case"pat":C.pid=un.ts.parsePat(P);break;case"pmt":var se=un.ts.parsePmt(P);C.table=C.table||{},Object.keys(se).forEach(function(oe){C.table[oe]=se[oe]});break}k+=hs,O+=hs;continue}k++,O++}},XT=function(b,C,k){for(var O=0,P=hs,D,se,oe,de,ye,Pe=!1;P<=b.byteLength;){if(b[O]===Xr&&(b[P]===Xr||P===b.byteLength)){switch(D=b.subarray(O,P),se=un.ts.parseType(D,C.pid),se){case"pes":oe=un.ts.parsePesType(D,C.table),de=un.ts.parsePayloadUnitStartIndicator(D),oe==="audio"&&de&&(ye=un.ts.parsePesTime(D),ye&&(ye.type="audio",k.audio.push(ye),Pe=!0));break}if(Pe)break;O+=hs,P+=hs;continue}O++,P++}for(P=b.byteLength,O=P-hs,Pe=!1;O>=0;){if(b[O]===Xr&&(b[P]===Xr||P===b.byteLength)){switch(D=b.subarray(O,P),se=un.ts.parseType(D,C.pid),se){case"pes":oe=un.ts.parsePesType(D,C.table),de=un.ts.parsePayloadUnitStartIndicator(D),oe==="audio"&&de&&(ye=un.ts.parsePesTime(D),ye&&(ye.type="audio",k.audio.push(ye),Pe=!0));break}if(Pe)break;O-=hs,P-=hs;continue}O--,P--}},AD=function(b,C,k){for(var O=0,P=hs,D,se,oe,de,ye,Pe,Ke,_t,rt=!1,Dt={data:[],size:0};P<b.byteLength;){if(b[O]===Xr&&b[P]===Xr){switch(D=b.subarray(O,P),se=un.ts.parseType(D,C.pid),se){case"pes":if(oe=un.ts.parsePesType(D,C.table),de=un.ts.parsePayloadUnitStartIndicator(D),oe==="video"&&(de&&!rt&&(ye=un.ts.parsePesTime(D),ye&&(ye.type="video",k.video.push(ye),rt=!0)),!k.firstKeyFrame)){if(de&&Dt.size!==0){for(Pe=new Uint8Array(Dt.size),Ke=0;Dt.data.length;)_t=Dt.data.shift(),Pe.set(_t,Ke),Ke+=_t.byteLength;if(un.ts.videoPacketContainsKeyFrame(Pe)){var Wt=un.ts.parsePesTime(Pe);Wt?(k.firstKeyFrame=Wt,k.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}Dt.size=0}Dt.data.push(D),Dt.size+=D.byteLength}break}if(rt&&k.firstKeyFrame)break;O+=hs,P+=hs;continue}O++,P++}for(P=b.byteLength,O=P-hs,rt=!1;O>=0;){if(b[O]===Xr&&b[P]===Xr){switch(D=b.subarray(O,P),se=un.ts.parseType(D,C.pid),se){case"pes":oe=un.ts.parsePesType(D,C.table),de=un.ts.parsePayloadUnitStartIndicator(D),oe==="video"&&de&&(ye=un.ts.parsePesTime(D),ye&&(ye.type="video",k.video.push(ye),rt=!0));break}if(rt)break;O-=hs,P-=hs;continue}O--,P--}},ID=function(b,C){if(b.audio&&b.audio.length){var k=C;(typeof k>"u"||isNaN(k))&&(k=b.audio[0].dts),b.audio.forEach(function(D){D.dts=Qa(D.dts,k),D.pts=Qa(D.pts,k),D.dtsTime=D.dts/Xo,D.ptsTime=D.pts/Xo})}if(b.video&&b.video.length){var O=C;if((typeof O>"u"||isNaN(O))&&(O=b.video[0].dts),b.video.forEach(function(D){D.dts=Qa(D.dts,O),D.pts=Qa(D.pts,O),D.dtsTime=D.dts/Xo,D.ptsTime=D.pts/Xo}),b.firstKeyFrame){var P=b.firstKeyFrame;P.dts=Qa(P.dts,O),P.pts=Qa(P.pts,O),P.dtsTime=P.dts/Xo,P.ptsTime=P.pts/Xo}}},PD=function(b){for(var C=!1,k=0,O=null,P=null,D=0,se=0,oe;b.length-se>=3;){var de=un.aac.parseType(b,se);switch(de){case"timed-metadata":if(b.length-se<10){C=!0;break}if(D=un.aac.parseId3TagSize(b,se),D>b.length){C=!0;break}P===null&&(oe=b.subarray(se,se+D),P=un.aac.parseAacTimestamp(oe)),se+=D;break;case"audio":if(b.length-se<7){C=!0;break}if(D=un.aac.parseAdtsSize(b,se),D>b.length){C=!0;break}O===null&&(oe=b.subarray(se,se+D),O=un.aac.parseSampleRate(oe)),k++,se+=D;break;default:se++;break}if(C)return null}if(O===null||P===null)return null;var ye=Xo/O,Pe={audio:[{type:"audio",dts:P,pts:P},{type:"audio",dts:P+k*1024*ye,pts:P+k*1024*ye}]};return Pe},$D=function(b){var C={pid:null,table:null},k={};OD(b,C);for(var O in C.table)if(C.table.hasOwnProperty(O)){var P=C.table[O];switch(P){case YT.H264_STREAM_TYPE:k.video=[],AD(b,C,k),k.video.length===0&&delete k.video;break;case YT.ADTS_STREAM_TYPE:k.audio=[],XT(b,C,k),k.audio.length===0&&delete k.audio;break}}return k},ND=function(b,C){var k=un.aac.isLikelyAacData(b),O;return k?O=PD(b):O=$D(b),!O||!O.audio&&!O.video?null:(ID(O,C),O)},MD={inspect:ND,parseAudioPes_:XT};const RD=function(b,C){C.on("data",function(k){const O=k.initSegment;k.initSegment={data:O.buffer,byteOffset:O.byteOffset,byteLength:O.byteLength};const P=k.data;k.data=P.buffer,b.postMessage({action:"data",segment:k,byteOffset:P.byteOffset,byteLength:P.byteLength},[k.data])}),C.on("done",function(k){b.postMessage({action:"done"})}),C.on("gopInfo",function(k){b.postMessage({action:"gopInfo",gopInfo:k})}),C.on("videoSegmentTimingInfo",function(k){const O={start:{decode:J.videoTsToSeconds(k.start.dts),presentation:J.videoTsToSeconds(k.start.pts)},end:{decode:J.videoTsToSeconds(k.end.dts),presentation:J.videoTsToSeconds(k.end.pts)},baseMediaDecodeTime:J.videoTsToSeconds(k.baseMediaDecodeTime)};k.prependedContentDuration&&(O.prependedContentDuration=J.videoTsToSeconds(k.prependedContentDuration)),b.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:O})}),C.on("audioSegmentTimingInfo",function(k){const O={start:{decode:J.videoTsToSeconds(k.start.dts),presentation:J.videoTsToSeconds(k.start.pts)},end:{decode:J.videoTsToSeconds(k.end.dts),presentation:J.videoTsToSeconds(k.end.pts)},baseMediaDecodeTime:J.videoTsToSeconds(k.baseMediaDecodeTime)};k.prependedContentDuration&&(O.prependedContentDuration=J.videoTsToSeconds(k.prependedContentDuration)),b.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:O})}),C.on("id3Frame",function(k){b.postMessage({action:"id3Frame",id3Frame:k})}),C.on("caption",function(k){b.postMessage({action:"caption",caption:k})}),C.on("trackinfo",function(k){b.postMessage({action:"trackinfo",trackInfo:k})}),C.on("audioTimingInfo",function(k){b.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:J.videoTsToSeconds(k.start),end:J.videoTsToSeconds(k.end)}})}),C.on("videoTimingInfo",function(k){b.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:J.videoTsToSeconds(k.start),end:J.videoTsToSeconds(k.end)}})}),C.on("log",function(k){b.postMessage({action:"log",log:k})})};class QT{constructor(C,k){this.options=k||{},this.self=C,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new WL.Transmuxer(this.options),RD(this.self,this.transmuxer)}pushMp4Captions(C){this.captionParser||(this.captionParser=new gD,this.captionParser.init());const k=new Uint8Array(C.data,C.byteOffset,C.byteLength),O=this.captionParser.parse(k,C.trackIds,C.timescales);this.self.postMessage({action:"mp4Captions",captions:O&&O.captions||[],logs:O&&O.logs||[],data:k.buffer},[k.buffer])}probeMp4StartTime({timescales:C,data:k}){const O=qT.startTime(C,k);this.self.postMessage({action:"probeMp4StartTime",startTime:O,data:k},[k.buffer])}probeMp4Tracks({data:C}){const k=qT.tracks(C);this.self.postMessage({action:"probeMp4Tracks",tracks:k,data:C},[C.buffer])}probeTs({data:C,baseStartTime:k}){const O=typeof k=="number"&&!isNaN(k)?k*J.ONE_SECOND_IN_TS:void 0,P=MD.inspect(C,O);let D=null;P&&(D={hasVideo:P.video&&P.video.length===2||!1,hasAudio:P.audio&&P.audio.length===2||!1},D.hasVideo&&(D.videoStart=P.video[0].ptsTime),D.hasAudio&&(D.audioStart=P.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:D,data:C},[C.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(C){const k=new Uint8Array(C.data,C.byteOffset,C.byteLength);this.transmuxer.push(k)}reset(){this.transmuxer.reset()}setTimestampOffset(C){const k=C.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(J.secondsToVideoTs(k)))}setAudioAppendStart(C){this.transmuxer.setAudioAppendStart(Math.ceil(J.secondsToVideoTs(C.appendStart)))}setRemux(C){this.transmuxer.setRemux(C.remux)}flush(C){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(C){this.transmuxer.alignGopsWith(C.gopsToAlignWith.slice())}}self.onmessage=function(b){if(b.data.action==="init"&&b.data.options){this.messageHandlers=new QT(self,b.data.options);return}this.messageHandlers||(this.messageHandlers=new QT(self)),b.data&&b.data.action&&b.data.action!=="init"&&this.messageHandlers[b.data.action]&&this.messageHandlers[b.data.action](b.data)}}));var XTe=NR(YTe);const QTe=(e,t,n)=>{const{type:s,initSegment:r,captions:i,captionStreams:o,metadata:a,videoFrameDtsTime:l,videoFramePtsTime:u}=e.data.segment;t.buffer.push({captions:i,captionStreams:o,metadata:a});const d=e.data.segment.boxes||{data:e.data.segment.data},f={type:s,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};typeof l<"u"&&(f.videoFrameDtsTime=l),typeof u<"u"&&(f.videoFramePtsTime=u),n(f)},JTe=({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)},ZTe=(e,t)=>{t.gopInfo=e.data.gopInfo},LR=e=>{const{transmuxer:t,bytes:n,audioAppendStart:s,gopsToAlignWith:r,remux:i,onData:o,onTrackInfo:a,onAudioTimingInfo:l,onVideoTimingInfo:u,onVideoSegmentTimingInfo:d,onAudioSegmentTimingInfo:f,onId3:h,onCaptions:p,onDone:g,onEndedTimeline:m,onTransmuxerLog:v,isEndOfTimeline:y}=e,T={buffer:[]};let _=y;const S=w=>{t.currentTransmux===e&&(w.data.action==="data"&&QTe(w,T,o),w.data.action==="trackinfo"&&a(w.data.trackInfo),w.data.action==="gopInfo"&&ZTe(w,T),w.data.action==="audioTimingInfo"&&l(w.data.audioTimingInfo),w.data.action==="videoTimingInfo"&&u(w.data.videoTimingInfo),w.data.action==="videoSegmentTimingInfo"&&d(w.data.videoSegmentTimingInfo),w.data.action==="audioSegmentTimingInfo"&&f(w.data.audioSegmentTimingInfo),w.data.action==="id3Frame"&&h([w.data.id3Frame],w.data.id3Frame.dispatchType),w.data.action==="caption"&&p(w.data.caption),w.data.action==="endedtimeline"&&(_=!1,m()),w.data.action==="log"&&v(w.data.log),w.data.type==="transmuxed"&&(_||(t.onmessage=null,JTe({transmuxedData:T,callback:g}),DR(t))))};if(t.onmessage=S,s&&t.postMessage({action:"setAudioAppendStart",appendStart:s}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),typeof i<"u"&&t.postMessage({action:"setRemux",remux:i}),n.byteLength){const w=n instanceof ArrayBuffer?n:n.buffer,A=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:w,byteOffset:A,byteLength:n.byteLength},[w])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},DR=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),typeof e.currentTransmux=="function"?e.currentTransmux():LR(e.currentTransmux))},ik=(e,t)=>{e.postMessage({action:t}),DR(e)},FR=(e,t)=>{if(!t.currentTransmux){t.currentTransmux=e,ik(t,e);return}t.transmuxQueue.push(ik.bind(null,t,e))},eSe=e=>{FR("reset",e)},tSe=e=>{FR("endTimeline",e)},BR=e=>{if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,LR(e);return}e.transmuxer.transmuxQueue.push(e)},nSe=e=>{const t=new XTe;t.currentTransmux=null,t.transmuxQueue=[];const n=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)),t.postMessage({action:"init",options:e}),t};var zv={reset:eSe,endTimeline:tSe,transmux:BR,createTransmuxer:nSe};const Zp=function(e){const t=e.transmuxer,n=e.endAction||e.action,s=e.callback,r=Yi({},e,{endAction:null,transmuxer:null,callback:null}),i=o=>{o.data.action===n&&(t.removeEventListener("message",i),o.data.data&&(o.data.data=new Uint8Array(o.data.data,e.byteOffset||0,e.byteLength||o.data.data.byteLength),e.data&&(e.data=o.data.data)),s(o.data))};if(t.addEventListener("message",i),e.data){const o=e.data instanceof ArrayBuffer;r.byteOffset=o?0:e.data.byteOffset,r.byteLength=e.data.byteLength;const a=[o?e.data:e.data.buffer];t.postMessage(r,a)}else t.postMessage(r)},li={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Zy=e=>{e.forEach(t=>{t.abort()})},sSe=e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}),rSe=e=>{const t=e.target,s={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return s.bytesReceived=e.loaded,s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3),s},cT=(e,t)=>t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:li.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:li.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:li.FAILURE,xhr:t}:t.responseType==="arraybuffer"&&t.response.byteLength===0?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:li.FAILURE,xhr:t}:null,ok=(e,t,n)=>(s,r)=>{const i=r.response,o=cT(s,r);if(o)return n(o,e);if(i.byteLength!==16)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:li.FAILURE,xhr:r},e);const a=new DataView(i),l=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]);for(let u=0;u<t.length;u++)t[u].bytes=l;return n(null,e)},VR=(e,t)=>{const n=O1(e.map.bytes);if(n!=="mp4"){const s=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:`Found unsupported ${n||"unknown"} container for initialization segment at URL: ${s}`,code:li.FAILURE})}Zp({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:s,data:r})=>(e.map.bytes=r,s.forEach(function(i){e.map.tracks=e.map.tracks||{},!e.map.tracks[i.type]&&(e.map.tracks[i.type]=i,typeof i.id=="number"&&i.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[i.id]=i.timescale))}),t(null))})},iSe=({segment:e,finishProcessingFn:t})=>(n,s)=>{const r=cT(n,s);if(r)return t(r,e);const i=new Uint8Array(s.response);if(e.map.key)return e.map.encryptedBytes=i,t(null,e);e.map.bytes=i,VR(e,function(o){if(o)return o.xhr=s,o.status=s.status,t(o,e);t(null,e)})},oSe=({segment:e,finishProcessingFn:t,responseType:n})=>(s,r)=>{const i=cT(s,r);if(i)return t(i,e);const o=n==="arraybuffer"||!r.responseText?r.response:qTe(r.responseText.substring(e.lastReachedChar||0));return e.stats=sSe(r),e.key?e.encryptedBytes=new Uint8Array(o):e.bytes=new Uint8Array(o),t(null,e)},aSe=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:f,onTransmuxerLog:h})=>{const p=e.map&&e.map.tracks||{},g=!!(p.audio&&p.video);let m=s.bind(null,e,"audio","start");const v=s.bind(null,e,"audio","end");let y=s.bind(null,e,"video","start");const T=s.bind(null,e,"video","end"),_=()=>BR({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:g,onData:S=>{S.type=S.type==="combined"?"video":S.type,d(e,S)},onTrackInfo:S=>{n&&(g&&(S.isMuxed=!0),n(e,S))},onAudioTimingInfo:S=>{m&&typeof S.start<"u"&&(m(S.start),m=null),v&&typeof S.end<"u"&&v(S.end)},onVideoTimingInfo:S=>{y&&typeof S.start<"u"&&(y(S.start),y=null),T&&typeof S.end<"u"&&T(S.end)},onVideoSegmentTimingInfo:S=>{r(S)},onAudioSegmentTimingInfo:S=>{i(S)},onId3:(S,w)=>{o(e,S,w)},onCaptions:S=>{a(e,[S])},isEndOfTimeline:l,onEndedTimeline:()=>{u()},onTransmuxerLog:h,onDone:S=>{f&&(S.type=S.type==="combined"?"video":S.type,f(null,e,S))}});Zp({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:S=>{e.bytes=t=S.data;const w=S.result;w&&(n(e,{hasAudio:w.hasAudio,hasVideo:w.hasVideo,isMuxed:g}),n=null,w.hasAudio&&!g&&m(w.audioStart),w.hasVideo&&y(w.videoStart),m=null,y=null),_()}})},UR=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:f,onTransmuxerLog:h})=>{let p=new Uint8Array(t);if(F_e(p)){e.isFmp4=!0;const{tracks:g}=e.map,m={isFmp4:!0,hasVideo:!!g.video,hasAudio:!!g.audio};g.audio&&g.audio.codec&&g.audio.codec!=="enca"&&(m.audioCodec=g.audio.codec),g.video&&g.video.codec&&g.video.codec!=="encv"&&(m.videoCodec=g.video.codec),g.video&&g.audio&&(m.isMuxed=!0),n(e,m);const v=y=>{d(e,{data:p,type:m.hasAudio&&!m.isMuxed?"audio":"video"}),y&&y.length&&a(e,y),f(null,e,{})};Zp({action:"probeMp4StartTime",timescales:e.map.timescales,data:p,transmuxer:e.transmuxer,callback:({data:y,startTime:T})=>{if(t=y.buffer,e.bytes=p=y,m.hasAudio&&!m.isMuxed&&s(e,"audio","start",T),m.hasVideo&&s(e,"video","start",T),!g.video||!y.byteLength||!e.transmuxer){v();return}Zp({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:p,timescales:e.map.timescales,trackIds:[g.video.id],callback:_=>{t=_.data.buffer,e.bytes=p=_.data,_.logs.forEach(function(S){h(yn(S,{stream:"mp4CaptionParser"}))}),v(_.captions)}})}});return}if(!e.transmuxer){f(null,e,{});return}if(typeof e.container>"u"&&(e.container=O1(p)),e.container!=="ts"&&e.container!=="aac"){n(e,{hasAudio:!1,hasVideo:!1}),f(null,e,{});return}aSe({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:f,onTransmuxerLog:h})},HR=function({id:e,key:t,encryptedBytes:n,decryptionWorker:s},r){const i=a=>{if(a.data.source===e){s.removeEventListener("message",i);const l=a.data.decrypted;r(new Uint8Array(l.bytes,l.byteOffset,l.byteLength))}};s.addEventListener("message",i);let o;t.bytes.slice?o=t.bytes.slice():o=new Uint32Array(Array.prototype.slice.call(t.bytes)),s.postMessage(kR({source:e,encrypted:n,key:o,iv:t.iv}),[n.buffer,o.buffer])},lSe=({decryptionWorker:e,segment:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:f,onTransmuxerLog:h})=>{HR({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e},p=>{t.bytes=p,UR({segment:t,bytes:t.bytes,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:f,onTransmuxerLog:h})})},uSe=({activeXhrs:e,decryptionWorker:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:f,onTransmuxerLog:h})=>{let p=0,g=!1;return(m,v)=>{if(!g){if(m)return g=!0,Zy(e),f(m,v);if(p+=1,p===e.length){const y=function(){if(v.encryptedBytes)return lSe({decryptionWorker:t,segment:v,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:f,onTransmuxerLog:h});UR({segment:v,bytes:v.bytes,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:f,onTransmuxerLog:h})};if(v.endOfAllRequests=Date.now(),v.map&&v.map.encryptedBytes&&!v.map.bytes)return HR({decryptionWorker:t,id:v.requestId+"-init",encryptedBytes:v.map.encryptedBytes,key:v.map.key},T=>{v.map.bytes=T,VR(v,_=>{if(_)return Zy(e),f(_,v);y()})});y()}}}},cSe=({loadendState:e,abortFn:t})=>n=>{n.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)},dSe=({segment:e,progressFn:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d})=>f=>{if(!f.target.aborted)return e.stats=yn(e.stats,rSe(f)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(f,e)},fSe=({xhr:e,xhrOptions:t,decryptionWorker:n,segment:s,abortFn:r,progressFn:i,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:g,doneFn:m,onTransmuxerLog:v})=>{const y=[],T=uSe({activeXhrs:y,decryptionWorker:n,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:g,doneFn:m,onTransmuxerLog:v});if(s.key&&!s.key.bytes){const M=[s.key];s.map&&!s.map.bytes&&s.map.key&&s.map.key.resolvedUri===s.key.resolvedUri&&M.push(s.map.key);const N=yn(t,{uri:s.key.resolvedUri,responseType:"arraybuffer"}),L=ok(s,M,T),F=e(N,L);y.push(F)}if(s.map&&!s.map.bytes){if(s.map.key&&(!s.key||s.key.resolvedUri!==s.map.key.resolvedUri)){const W=yn(t,{uri:s.map.key.resolvedUri,responseType:"arraybuffer"}),j=ok(s,[s.map.key],T),R=e(W,j);y.push(R)}const N=yn(t,{uri:s.map.resolvedUri,responseType:"arraybuffer",headers:Qy(s.map)}),L=iSe({segment:s,finishProcessingFn:T}),F=e(N,L);y.push(F)}const _=yn(t,{uri:s.part&&s.part.resolvedUri||s.resolvedUri,responseType:"arraybuffer",headers:Qy(s)}),S=oSe({segment:s,finishProcessingFn:T,responseType:_.responseType}),w=e(_,S);w.addEventListener("progress",dSe({segment:s,progressFn:i,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:g})),y.push(w);const A={};return y.forEach(M=>{M.addEventListener("loadend",cSe({loadendState:A,abortFn:r}))}),()=>Zy(y)},hSe=Yr("CodecUtils"),pSe=function(e){const t=e.attributes||{};if(t.CODECS)return Jr(t.CODECS)},zR=(e,t)=>{const n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},mSe=(e,t)=>{if(!zR(e,t))return!0;const n=t.attributes||{},s=e.mediaGroups.AUDIO[n.AUDIO];for(const r in s)if(!s[r].uri&&!s[r].playlists)return!0;return!1},em=function(e){const t={};return e.forEach(({mediaType:n,type:s,details:r})=>{t[n]=t[n]||[],t[n].push(aN(`${s}${r}`))}),Object.keys(t).forEach(function(n){if(t[n].length>1){hSe(`multiple ${n} codecs found as attributes: ${t[n].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),t[n]=null;return}t[n]=t[n][0]}),t},ak=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},Hc=function(e,t){const n=t.attributes||{},s=em(pSe(t)||[]);if(zR(e,t)&&!s.audio&&!mSe(e,t)){const r=em(Vye(e,n.AUDIO)||[]);r.audio&&(s.audio=r.audio)}return s},ph=Yr("PlaylistSelector"),lk=function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},tm=function(e,t){if(!e)return"";const n=ge.getComputedStyle(e);return n?n[t]:""},Fl=function(e,t){const n=e.slice();e.sort(function(s,r){const i=t(s,r);return i===0?n.indexOf(s)-n.indexOf(r):i})},dT=function(e,t){let n,s;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||ge.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||ge.Number.MAX_VALUE,n-s},gSe=function(e,t){let n,s;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||ge.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||ge.Number.MAX_VALUE,n===s&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-s};let jR=function(e,t,n,s,r,i){if(!e)return;const o={bandwidth:t,width:n,height:s,limitRenditionByPlayerDimensions:r};let a=e.playlists;Ds.isAudioOnly(e)&&(a=i.getAudioTrackPlaylists_(),o.audioOnly=!0);let l=a.map(w=>{let A;const M=w.attributes&&w.attributes.RESOLUTION&&w.attributes.RESOLUTION.width,N=w.attributes&&w.attributes.RESOLUTION&&w.attributes.RESOLUTION.height;return A=w.attributes&&w.attributes.BANDWIDTH,A=A||ge.Number.MAX_VALUE,{bandwidth:A,width:M,height:N,playlist:w}});Fl(l,(w,A)=>w.bandwidth-A.bandwidth),l=l.filter(w=>!Ds.isIncompatible(w.playlist));let u=l.filter(w=>Ds.isEnabled(w.playlist));u.length||(u=l.filter(w=>!Ds.isDisabled(w.playlist)));const d=u.filter(w=>w.bandwidth*Xn.BANDWIDTH_VARIANCE<t);let f=d[d.length-1];const h=d.filter(w=>w.bandwidth===f.bandwidth)[0];if(r===!1){const w=h||u[0]||l[0];if(w&&w.playlist){let A="sortedPlaylistReps";return h&&(A="bandwidthBestRep"),u[0]&&(A="enabledPlaylistReps"),ph(`choosing ${lk(w)} using ${A} with options`,o),w.playlist}return ph("could not choose a playlist with options",o),null}const p=d.filter(w=>w.width&&w.height);Fl(p,(w,A)=>w.width-A.width);const g=p.filter(w=>w.width===n&&w.height===s);f=g[g.length-1];const m=g.filter(w=>w.bandwidth===f.bandwidth)[0];let v,y,T;m||(v=p.filter(w=>w.width>n||w.height>s),y=v.filter(w=>w.width===v[0].width&&w.height===v[0].height),f=y[y.length-1],T=y.filter(w=>w.bandwidth===f.bandwidth)[0]);let _;if(i.leastPixelDiffSelector){const w=p.map(A=>(A.pixelDiff=Math.abs(A.width-n)+Math.abs(A.height-s),A));Fl(w,(A,M)=>A.pixelDiff===M.pixelDiff?M.bandwidth-A.bandwidth:A.pixelDiff-M.pixelDiff),_=w[0]}const S=_||T||m||h||u[0]||l[0];if(S&&S.playlist){let w="sortedPlaylistReps";return _?w="leastPixelDiffRep":T?w="resolutionPlusOneRep":m?w="resolutionBestRep":h?w="bandwidthBestRep":u[0]&&(w="enabledPlaylistReps"),ph(`choosing ${lk(S)} using ${w} with options`,o),S.playlist}return ph("could not choose a playlist with options",o),null};const uk=function(){const e=this.useDevicePixelRatio&&ge.devicePixelRatio||1;return jR(this.playlists.main,this.systemBandwidth,parseInt(tm(this.tech_.el(),"width"),10)*e,parseInt(tm(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},vSe=function(e){let t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){const s=this.useDevicePixelRatio&&ge.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),jR(this.playlists.main,t,parseInt(tm(this.tech_.el(),"width"),10)*s,parseInt(tm(this.tech_.el(),"height"),10)*s,this.limitRenditionByPlayerDimensions,this.playlistController_)}},ySe=function(e){const{main:t,currentTime:n,bandwidth:s,duration:r,segmentDuration:i,timeUntilRebuffer:o,currentTimeline:a,syncController:l}=e,u=t.playlists.filter(g=>!Ds.isIncompatible(g));let d=u.filter(Ds.isEnabled);d.length||(d=u.filter(g=>!Ds.isDisabled(g)));const h=d.filter(Ds.hasAttribute.bind(null,"BANDWIDTH")).map(g=>{const v=l.getSyncPoint(g,r,a,n)?1:2,T=Ds.estimateSegmentRequestTime(i,s,g)*v-o;return{playlist:g,rebufferingImpact:T}}),p=h.filter(g=>g.rebufferingImpact<=0);return Fl(p,(g,m)=>dT(m.playlist,g.playlist)),p.length?p[0]:(Fl(h,(g,m)=>g.rebufferingImpact-m.rebufferingImpact),h[0]||null)},bSe=function(){const e=this.playlists.main.playlists.filter(Ds.isEnabled);return Fl(e,(n,s)=>dT(n,s)),e.filter(n=>!!Hc(this.playlists.main,n).video)[0]||null},_Se=e=>{let t=0,n;return e.bytes&&(n=new Uint8Array(e.bytes),e.segments.forEach(s=>{n.set(s,t),t+=s.byteLength})),n},TSe=function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"});let s=n;/^cc708_/.test(n)&&(s="SERVICE"+n.split("_")[1]);const r=t.textTracks().getTrackById(s);if(r)e[n]=r;else{const i=t.options_.vhs&&t.options_.vhs.captionServices||{};let o=n,a=n,l=!1;const u=i[s];u&&(o=u.label,a=u.language,l=u.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:s,default:l,label:o,language:a},!1).track}}},SSe=function({inbandTextTracks:e,captionArray:t,timestampOffset:n}){if(!t)return;const s=ge.WebKitDataCue||ge.VTTCue;t.forEach(r=>{const i=r.stream;e[i].addCue(new s(r.startTime+n,r.endTime+n,r.text))})},wSe=function(e){Object.defineProperties(e.frame,{id:{get(){return je.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get(){return je.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get(){return je.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},CSe=({inbandTextTracks:e,metadataArray:t,timestampOffset:n,videoDuration:s})=>{if(!t)return;const r=ge.WebKitDataCue||ge.VTTCue,i=e.metadataTrack_;if(!i||(t.forEach(d=>{const f=d.cueTime+n;typeof f!="number"||ge.isNaN(f)||f<0||!(f<1/0)||d.frames.forEach(h=>{const p=new r(f,f,h.value||h.url||h.data||"");p.frame=h,p.value=h,wSe(p),i.addCue(p)})}),!i.cues||!i.cues.length))return;const o=i.cues,a=[];for(let d=0;d<o.length;d++)o[d]&&a.push(o[d]);const l=a.reduce((d,f)=>{const h=d[f.startTime]||[];return h.push(f),d[f.startTime]=h,d},{}),u=Object.keys(l).sort((d,f)=>Number(d)-Number(f));u.forEach((d,f)=>{const h=l[d],p=Number(u[f+1])||s;h.forEach(g=>{g.endTime=p})})},ESe=(e,t,n)=>{e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)},Tc=function(e,t,n){let s,r;if(n&&n.cues)for(s=n.cues.length;s--;)r=n.cues[s],r.startTime>=e&&r.endTime<=t&&n.removeCue(r)},xSe=function(e){const t=e.cues;if(t)for(let n=0;n<t.length;n++){const s=[];let r=0;for(let i=0;i<t.length;i++)t[n].startTime===t[i].startTime&&t[n].endTime===t[i].endTime&&t[n].text===t[i].text&&(r++,r>1&&s.push(t[i]));s.length&&s.forEach(i=>e.removeCue(i))}},kSe=(e,t,n)=>{if(typeof t>"u"||t===null||!e.length)return[];const s=Math.ceil((t-n+3)*Fp.ONE_SECOND_IN_TS);let r;for(r=0;r<e.length&&!(e[r].pts>s);r++);return e.slice(r)},OSe=(e,t,n)=>{if(!t.length)return e;if(n)return t.slice();const s=t[0].pts;let r=0;for(r;r<e.length&&!(e[r].pts>=s);r++);return e.slice(0,r).concat(t)},ASe=(e,t,n,s)=>{const r=Math.ceil((t-s)*Fp.ONE_SECOND_IN_TS),i=Math.ceil((n-s)*Fp.ONE_SECOND_IN_TS),o=e.slice();let a=e.length;for(;a--&&!(e[a].pts<=i););if(a===-1)return o;let l=a+1;for(;l--&&!(e[l].pts<=r););return l=Math.max(l,0),o.splice(l,a-l+1),o},ISe=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;const n=Object.keys(e).sort(),s=Object.keys(t).sort();if(n.length!==s.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(i!==s[r]||e[i]!==t[i])return!1}return!0},KR=22,PSe=function(e,t,n){t=t||[];const s=[];let r=0;for(let i=0;i<t.length;i++){const o=t[i];if(e===o.timeline&&(s.push(i),r+=o.duration,r>n))return i}return s.length===0?0:s[s.length-1]},fc=1,$Se=500,ck=e=>typeof e=="number"&&isFinite(e),mh=1/60,NSe=(e,t,n)=>e!=="main"||!t||!n?null:!n.hasAudio&&!n.hasVideo?"Neither audio nor video found in segment.":t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null,MSe=(e,t,n)=>{let s=t-Xn.BACK_BUFFER_LENGTH;e.length&&(s=Math.max(s,e.start(0)));const r=t-n;return Math.min(r,s)},cl=e=>{const{startOfSegment:t,duration:n,segment:s,part:r,playlist:{mediaSequence:i,id:o,segments:a=[]},mediaIndex:l,partIndex:u,timeline:d}=e,f=a.length-1;let h="mediaIndex/partIndex increment";e.getMediaInfoForTime?h=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(h="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(h+=` with independent ${e.independent}`);const p=typeof u=="number",g=e.segment.uri?"segment":"pre-segment",m=p?hR({preloadSegment:s})-1:0;return`${g} [${i+l}/${i+f}]`+(p?` part [${u}/${m}]`:"")+` segment start/end [${s.start} => ${s.end}]`+(p?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${t}] duration [${n}] timeline [${d}] selected by [${h}] playlist [${o}]`},dk=e=>`${e}TimingInfo`,RSe=({segmentTimeline:e,currentTimeline:t,startOfSegment:n,buffered:s,overrideCheck:r})=>!r&&e===t?null:e<t?n:s.length?s.end(s.length-1):n,fk=({timelineChangeController:e,currentTimeline:t,segmentTimeline:n,loaderType:s,audioDisabled:r})=>{if(t===n)return!1;if(s==="audio"){const i=e.lastTimelineChange({type:"main"});return!i||i.to!==n}if(s==="main"&&r){const i=e.pendingTimelineChange({type:"audio"});return!(i&&i.to===n)}return!1},LSe=e=>{let t=0;return["video","audio"].forEach(function(n){const s=e[`${n}TimingInfo`];if(!s)return;const{start:r,end:i}=s;let o;typeof r=="bigint"||typeof i=="bigint"?o=ge.BigInt(i)-ge.BigInt(r):typeof r=="number"&&typeof i=="number"&&(o=i-r),typeof o<"u"&&o>t&&(t=o)}),typeof t=="bigint"&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},hk=({segmentDuration:e,maxDuration:t})=>e?Math.round(e)>t+Fo:!1,DSe=(e,t)=>{if(t!=="hls")return null;const n=LSe({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;const s=e.playlist.targetDuration,r=hk({segmentDuration:n,maxDuration:s*2}),i=hk({segmentDuration:n,maxDuration:s}),o=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${n} when the reported duration is ${e.duration} and the target duration is ${s}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return r||i?{severity:r?"warn":"info",message:o}:null};class eb extends je.EventTarget{constructor(t,n={}){if(super(),!t)throw new TypeError("Initialization settings are required");if(typeof t.currentTime!="function")throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=t.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=t.hasPlayed,this.currentTime_=t.currentTime,this.seekable_=t.seekable,this.seeking_=t.seeking,this.duration_=t.duration,this.mediaSource_=t.mediaSource,this.vhs_=t.vhs,this.loaderType_=t.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=t.segmentMetadataTrack,this.goalBufferLength_=t.goalBufferLength,this.sourceType_=t.sourceType,this.sourceUpdater_=t.sourceUpdater,this.inbandTextTracks_=t.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=t.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=t.parse708captions,this.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,this.captionServices_=t.captionServices,this.exactManifestTimings=t.exactManifestTimings,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=je.browser.IE_VERSION>=11,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=t.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=t.decrypter,this.syncController_=t.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=Yr(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(s){s!==this.state_&&(this.logger_(`${this.state_} -> ${s}`),this.state_=s,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="main"&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="audio"&&this.timelineChangeController_.on("timelinechange",()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}createTransmuxer_(){return zv.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&ge.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(t){this.audioDisabled_=!t,t?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if(this.state!=="WAITING"){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,ge.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(t){return this.state==="APPENDING"&&!this.pendingSegment_?(this.state="READY",!0):!this.pendingSegment_||this.pendingSegment_.requestId!==t}error(t){return typeof t<"u"&&(this.logger_("error occurred:",t),this.error_=t),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&zv.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const t=this.getMediaInfo_();if(!this.sourceUpdater_||!t)return us();if(this.loaderType_==="main"){const{hasAudio:n,hasVideo:s,isMuxed:r}=t;if(s&&n&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(s)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(t,n=!1){if(!t)return null;const s=Jp(t);let r=this.initSegments_[s];return n&&!r&&t.bytes&&(this.initSegments_[s]=r={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}),r||t}segmentKey(t,n=!1){if(!t)return null;const s=OR(t);let r=this.keyCache_[s];this.cacheEncryptionKeys_&&n&&!r&&t.bytes&&(this.keyCache_[s]=r={resolvedUri:t.resolvedUri,bytes:t.bytes});const i={resolvedUri:(r||t).resolvedUri};return r&&(i.bytes=r.bytes),i}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),!!this.playlist_){if(this.state==="INIT"&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"||(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(t,n={}){if(!t)return;const s=this.playlist_,r=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=n,this.state==="INIT"&&(t.syncInfo={mediaSequence:t.mediaSequence,time:0},this.loaderType_==="main"&&this.syncController_.setDateTimeMappingForStart(t));let i=null;if(s&&(s.id?i=s.id:s.uri&&(i=s.uri)),this.logger_(`playlist update [${i} => ${t.id||t.uri}]`),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!s||s.uri!==t.uri){this.mediaIndex!==null&&(t.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}const o=t.mediaSequence-s.mediaSequence;if(this.logger_(`live window shift [${o}]`),this.mediaIndex!==null)if(this.mediaIndex-=o,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const a=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!a.parts||!a.parts.length||!a.parts[this.partIndex])){const l=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=l}}r&&(r.mediaIndex-=o,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=t.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(s,t)}pause(){this.checkBufferTimeout_&&(ge.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return this.checkBufferTimeout_===null}resetEverything(t){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,t),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.resyncLoader()}resyncLoader(){this.transmuxer_&&zv.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(t,n,s=()=>{},r=!1){if(n===1/0&&(n=this.duration_()),n<=t){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}let i=1;const o=()=>{i--,i===0&&s()};(r||!this.audioDisabled_)&&(i++,this.sourceUpdater_.removeAudio(t,n,o)),(r||this.loaderType_==="main")&&(this.gopBuffer_=ASe(this.gopBuffer_,t,n,this.timeMapping_),i++,this.sourceUpdater_.removeVideo(t,n,o));for(const a in this.inbandTextTracks_)Tc(t,n,this.inbandTextTracks_[a]);Tc(t,n,this.segmentMetadataTrack_),o()}monitorBuffer_(){this.checkBufferTimeout_&&ge.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=ge.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&ge.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=ge.setTimeout(this.monitorBufferTick_.bind(this),$Se)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const t=this.chooseNextRequest_();t&&(typeof t.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline})),this.loadSegment_(t))}isEndOfStream_(t=this.mediaIndex,n=this.playlist_,s=this.partIndex){if(!n||!this.mediaSource_)return!1;const r=typeof t=="number"&&n.segments[t],i=t+1===n.segments.length,o=!r||!r.parts||s+1===r.parts.length;return n.endList&&this.mediaSource_.readyState==="open"&&i&&o}chooseNextRequest_(){const t=this.buffered_(),n=tk(t)||0,s=iT(t,this.currentTime_()),r=!this.hasPlayed_()&&s>=1,i=s>=this.goalBufferLength_(),o=this.playlist_.segments;if(!o.length||r||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());const a={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(a.isSyncRequest)a.mediaIndex=PSe(this.currentTimeline_,o,n);else if(this.mediaIndex!==null){const f=o[this.mediaIndex],h=typeof this.partIndex=="number"?this.partIndex:-1;a.startOfSegment=f.end?f.end:n,f.parts&&f.parts[h+1]?(a.mediaIndex=this.mediaIndex,a.partIndex=h+1):a.mediaIndex=this.mediaIndex+1}else{const{segmentIndex:f,startTime:h,partIndex:p}=Ds.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?n:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});a.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${n}`:`currentTime ${this.currentTime_()}`,a.mediaIndex=f,a.startOfSegment=h,a.partIndex=p}const l=o[a.mediaIndex];let u=l&&typeof a.partIndex=="number"&&l.parts&&l.parts[a.partIndex];if(!l||typeof a.partIndex=="number"&&!u)return null;if(typeof a.partIndex!="number"&&l.parts&&(a.partIndex=0,u=l.parts[0]),!s&&u&&!u.independent)if(a.partIndex===0){const f=o[a.mediaIndex-1],h=f.parts&&f.parts.length&&f.parts[f.parts.length-1];h&&h.independent&&(a.mediaIndex-=1,a.partIndex=f.parts.length-1,a.independent="previous segment")}else l.parts[a.partIndex-1].independent&&(a.partIndex-=1,a.independent="previous part");const d=this.mediaSource_&&this.mediaSource_.readyState==="ended";return a.mediaIndex>=o.length-1&&d&&!this.seeking_()?null:this.generateSegmentInfo_(a)}generateSegmentInfo_(t){const{independent:n,playlist:s,mediaIndex:r,startOfSegment:i,isSyncRequest:o,partIndex:a,forceTimestampOffset:l,getMediaInfoForTime:u}=t,d=s.segments[r],f=typeof a=="number"&&d.parts[a],h={requestId:"segment-loader-"+Math.random(),uri:f&&f.resolvedUri||d.resolvedUri,mediaIndex:r,partIndex:f?a:null,isSyncRequest:o,startOfSegment:i,playlist:s,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:d.timeline,duration:f&&f.duration||d.duration,segment:d,part:f,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:n},p=typeof l<"u"?l:this.isPendingTimestampOffset_;h.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:d.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:p});const g=tk(this.sourceUpdater_.audioBuffered());return typeof g=="number"&&(h.audioAppendStart=g-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(h.gopsToAlignWith=kSe(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),h}timestampOffsetForSegment_(t){return RSe(t)}earlyAbortWhenNeeded_(t){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)return;const n=this.currentTime_(),s=t.bandwidth,r=this.pendingSegment_.duration,i=Ds.estimateSegmentRequestTime(r,s,this.playlist_,t.bytesReceived),o=uTe(this.buffered_(),n,this.vhs_.tech_.playbackRate())-1;if(i<=o)return;const a=ySe({main:this.vhs_.playlists.main,currentTime:n,bandwidth:s,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!a)return;const u=i-o-a.rebufferingImpact;let d=.5;o<=Fo&&(d=1),!(!a.playlist||a.playlist.uri===this.playlist_.uri||u<d)&&(this.bandwidth=a.playlist.attributes.BANDWIDTH*Xn.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(t){this.logger_(`Aborting ${cl(t)}`),this.mediaRequestsAborted+=1}handleProgress_(t,n){this.earlyAbortWhenNeeded_(n.stats),!this.checkForAbort_(n.requestId)&&this.trigger("progress")}handleTrackInfo_(t,n){this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&(this.checkForIllegalMediaSwitch(n)||(n=n||{},ISe(this.currentMediaInfo_,n)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=n,this.currentMediaInfo_=n,this.logger_("trackinfo update",n),this.trigger("trackinfo")),!this.checkForAbort_(t.requestId)&&(this.pendingSegment_.trackInfo=n,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())))}handleTimingInfo_(t,n,s,r){if(this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId))return;const i=this.pendingSegment_,o=dk(n);i[o]=i[o]||{},i[o][s]=r,this.logger_(`timinginfo: ${n} - ${s} - ${r}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(t,n){if(this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId))return;if(n.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,n));return}const r=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),i={};n.forEach(o=>{i[o.stream]=i[o.stream]||{startTime:1/0,captions:[],endTime:0};const a=i[o.stream];a.startTime=Math.min(a.startTime,o.startTime+r),a.endTime=Math.max(a.endTime,o.endTime+r),a.captions.push(o)}),Object.keys(i).forEach(o=>{const{startTime:a,endTime:l,captions:u}=i[o],d=this.inbandTextTracks_;this.logger_(`adding cues from ${a} -> ${l} for ${o}`),TSe(d,this.vhs_.tech_,o),Tc(a,l,d[o]),SSe({captionArray:u,inbandTextTracks:d,timestampOffset:r})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(t,n,s){if(this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId))return;if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,n,s));return}const i=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();ESe(this.inbandTextTracks_,s,this.vhs_.tech_),CSe({inbandTextTracks:this.inbandTextTracks_,metadataArray:n,timestampOffset:i,videoDuration:this.duration_()})}processMetadataQueue_(){this.metadataQueue_.id3.forEach(t=>t()),this.metadataQueue_.caption.forEach(t=>t()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const t=this.callQueue_;this.callQueue_=[],t.forEach(n=>n())}processLoadQueue_(){const t=this.loadQueue_;this.loadQueue_=[],t.forEach(n=>n())}hasEnoughInfoToLoad_(){if(this.loaderType_!=="audio")return!0;const t=this.pendingSegment_;return t?this.getCurrentMediaInfo_()?!fk({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}):!0:!1}getCurrentMediaInfo_(t=this.pendingSegment_){return t&&t.trackInfo||this.currentMediaInfo_}getMediaInfo_(t=this.pendingSegment_){return this.getCurrentMediaInfo_(t)||this.startingMediaInfo_}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const t=this.pendingSegment_,n=this.getCurrentMediaInfo_();if(!t||!n)return!1;const{hasAudio:s,hasVideo:r,isMuxed:i}=n;return!(r&&!t.videoTimingInfo||s&&!this.audioDisabled_&&!i&&!t.audioTimingInfo||fk({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(t,n){if(this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,t,n));return}const s=this.pendingSegment_;if(this.setTimeMapping_(s.timeline),this.updateMediaSecondsLoaded_(s.part||s.segment),this.mediaSource_.readyState!=="closed"){if(t.map&&(t.map=this.initSegmentForMap(t.map,!0),s.segment.map=t.map),t.key&&this.segmentKey(t.key,!0),s.isFmp4=t.isFmp4,s.timingInfo=s.timingInfo||{},s.isFmp4)this.trigger("fmp4"),s.timingInfo.start=s[dk(n.type)].start;else{const r=this.getCurrentMediaInfo_(),i=this.loaderType_==="main"&&r&&r.hasVideo;let o;i&&(o=s.videoTimingInfo.start),s.timingInfo.start=this.trueSegmentStart_({currentStart:s.timingInfo.start,playlist:s.playlist,mediaIndex:s.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:i,firstVideoFrameTimeForData:o,videoTimingInfo:s.videoTimingInfo,audioTimingInfo:s.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(s,n.type),this.updateSourceBufferTimestampOffset_(s),s.isSyncRequest){this.updateTimingInfoEnd_(s),this.syncController_.saveSegmentTimingInfo({segmentInfo:s,shouldSaveTimelineMapping:this.loaderType_==="main"});const r=this.chooseNextRequest_();if(r.mediaIndex!==s.mediaIndex||r.partIndex!==s.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}s.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(s,n)}}updateAppendInitSegmentStatus(t,n){this.loaderType_==="main"&&typeof t.timestampOffset=="number"&&!t.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[n]!==t.playlist&&(this.appendInitSegment_[n]=!0)}getInitSegmentAndUpdateState_({type:t,initSegment:n,map:s,playlist:r}){if(s){const i=Jp(s);if(this.activeInitSegmentId_===i)return null;n=this.initSegmentForMap(s,!0).bytes,this.activeInitSegmentId_=i}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null}handleQuotaExceededError_({segmentInfo:t,type:n,bytes:s},r){const i=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();i.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Ta(i).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Ta(o).join(", "));const a=i.length?i.start(0):0,l=i.length?i.end(i.length-1):0,u=o.length?o.start(0):0,d=o.length?o.end(o.length-1):0;if(l-a<=fc&&d-u<=fc){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${s.byteLength}, audio buffer: ${Ta(i).join(", ")}, video buffer: ${Ta(o).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:t,type:n,bytes:s}));const h=this.currentTime_()-fc;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${h}`),this.remove(0,h,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${fc}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=ge.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},fc*1e3)},!0)}handleAppendError_({segmentInfo:t,type:n,bytes:s},r){if(r){if(r.code===KR){this.handleQuotaExceededError_({segmentInfo:t,type:n,bytes:s});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error(`${n} append of ${s.length}b failed for segment #${t.mediaIndex} in playlist ${t.playlist.id}`),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:t,type:n,initSegment:s,data:r,bytes:i}){if(!i){const o=[r];let a=r.byteLength;s&&(o.unshift(s),a+=s.byteLength),i=_Se({bytes:a,segments:o})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:n,bytes:i},this.handleAppendError_.bind(this,{segmentInfo:t,type:n,bytes:i}))}handleSegmentTimingInfo_(t,n,s){if(!this.pendingSegment_||n!==this.pendingSegment_.requestId)return;const r=this.pendingSegment_.segment,i=`${t}TimingInfo`;r[i]||(r[i]={}),r[i].transmuxerPrependedSeconds=s.prependedContentDuration||0,r[i].transmuxedPresentationStart=s.start.presentation,r[i].transmuxedDecodeStart=s.start.decode,r[i].transmuxedPresentationEnd=s.end.presentation,r[i].transmuxedDecodeEnd=s.end.decode,r[i].baseMediaDecodeTime=s.baseMediaDecodeTime}appendData_(t,n){const{type:s,data:r}=n;if(!r||!r.byteLength||s==="audio"&&this.audioDisabled_)return;const i=this.getInitSegmentAndUpdateState_({type:s,initSegment:n.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:s,initSegment:i,data:r})}loadSegment_(t){if(this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),typeof t.timestampOffset=="number"&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(()=>{const n=Yi({},t,{forceTimestampOffset:!0});Yi(t,this.generateSegmentInfo_(n)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(t)});return}this.updateTransmuxerAndRequestSegment_(t)}updateTransmuxerAndRequestSegment_(t){this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)&&(this.gopBuffer_.length=0,t.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset}));const n=this.createSimplifiedSegmentObj_(t),s=this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex),r=this.mediaIndex!==null,i=t.timeline!==this.currentTimeline_&&t.timeline>0,o=s||r&&i;this.logger_(`Requesting ${cl(t)}`),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=fSe({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,t),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:o,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:a,level:l,stream:u})=>{this.logger_(`${cl(t)} logged from transmuxer stream ${u} as a ${l}: ${a}`)}})}trimBackBuffer_(t){const n=MSe(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);n>0&&this.remove(0,n)}createSimplifiedSegmentObj_(t){const n=t.segment,s=t.part,r={resolvedUri:s?s.resolvedUri:n.resolvedUri,byterange:s?s.byterange:n.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,part:t.part},i=t.playlist.segments[t.mediaIndex-1];if(i&&i.timeline===n.timeline&&(i.videoTimingInfo?r.baseStartTime=i.videoTimingInfo.transmuxedDecodeEnd:i.audioTimingInfo&&(r.baseStartTime=i.audioTimingInfo.transmuxedDecodeEnd)),n.key){const o=n.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);r.key=this.segmentKey(n.key),r.key.iv=o}return n.map&&(r.map=this.initSegmentForMap(n.map)),r}saveTransferStats_(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)}saveBandwidthRelatedStats_(t,n){if(this.pendingSegment_.byteLength=n.bytesReceived,t<mh){this.logger_(`Ignoring segment's bandwidth because its duration of ${t} is less than the min to record ${mh}`);return}this.bandwidth=n.bandwidth,this.roundTrip=n.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(t,n,s){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,n,s));return}if(this.saveTransferStats_(n.stats),!this.pendingSegment_||n.requestId!==this.pendingSegment_.requestId)return;if(t){if(this.pendingSegment_=null,this.state="READY",t.code===li.ABORTED)return;if(this.pause(),t.code===li.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(t),this.trigger("error");return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,n.stats),r.endOfAllRequests=n.endOfAllRequests,s.gopInfo&&(this.gopBuffer_=OSe(this.gopBuffer_,s.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}setTimeMapping_(t){const n=this.syncController_.mappingForTimeline(t);n!==null&&(this.timeMapping_=n)}updateMediaSecondsLoaded_(t){typeof t.start=="number"&&typeof t.end=="number"?this.mediaSecondsLoaded+=t.end-t.start:this.mediaSecondsLoaded+=t.duration}shouldUpdateTransmuxerTimestampOffset_(t){return t===null?!1:this.loaderType_==="main"&&t!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset()}trueSegmentStart_({currentStart:t,playlist:n,mediaIndex:s,firstVideoFrameTimeForData:r,currentVideoTimestampOffset:i,useVideoTimingInfo:o,videoTimingInfo:a,audioTimingInfo:l}){if(typeof t<"u")return t;if(!o)return l.start;const u=n.segments[s-1];return s===0||!u||typeof u.start>"u"||u.end!==r+i?r:a.start}waitForAppendsToComplete_(t){const n=this.getCurrentMediaInfo_(t);if(!n){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),this.trigger("error");return}const{hasAudio:s,hasVideo:r,isMuxed:i}=n,o=this.loaderType_==="main"&&r,a=!this.audioDisabled_&&s&&!i;if(t.waitingOnAppends=0,!t.hasAppendedData_){!t.timingInfo&&typeof t.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!0),t.timingInfo={start:0},t.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(t),this.processMetadataQueue_()),this.checkAppendsDone_(t);return}o&&t.waitingOnAppends++,a&&t.waitingOnAppends++,o&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))}checkAppendsDone_(t){this.checkForAbort_(t.requestId)||(t.waitingOnAppends--,t.waitingOnAppends===0&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(t){const n=NSe(this.loaderType_,this.getCurrentMediaInfo_(),t);return n?(this.error({message:n,playlistExclusionDuration:1/0}),this.trigger("error"),!0):!1}updateSourceBufferTimestampOffset_(t){if(t.timestampOffset===null||typeof t.timingInfo.start!="number"||t.changedTimestampOffset||this.loaderType_!=="main")return;let n=!1;t.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:t.segment.videoTimingInfo,audioTimingInfo:t.segment.audioTimingInfo,timingInfo:t.timingInfo}),t.changedTimestampOffset=!0,t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(t.timestampOffset),n=!0),t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(t.timestampOffset),n=!0),n&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:t,audioTimingInfo:n,timingInfo:s}){return this.useDtsForTimestampOffset_?t&&typeof t.transmuxedDecodeStart=="number"?t.transmuxedDecodeStart:n&&typeof n.transmuxedDecodeStart=="number"?n.transmuxedDecodeStart:s.start:s.start}updateTimingInfoEnd_(t){t.timingInfo=t.timingInfo||{};const n=this.getMediaInfo_(),r=this.loaderType_==="main"&&n&&n.hasVideo&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;r&&(t.timingInfo.end=typeof r.end=="number"?r.end:r.start+t.duration)}handleAppendsDone_(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}const t=this.pendingSegment_;this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:this.loaderType_==="main"});const n=DSe(t,this.sourceType_);if(n&&(n.severity==="warn"?je.log.warn(n.message):this.logger_(n.message)),this.recordThroughput_(t),this.pendingSegment_=null,this.state="READY",t.isSyncRequest&&(this.trigger("syncinfoupdate"),!t.hasAppendedData_)){this.logger_(`Throwing away un-appended sync request ${cl(t)}`);return}this.logger_(`Appended ${cl(t)}`),this.addSegmentMetadataCue_(t),this.fetchAtBuffer_=!0,this.currentTimeline_!==t.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),this.loaderType_==="main"&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})),this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate");const s=t.segment,r=t.part,i=s.end&&this.currentTime_()-s.end>t.playlist.targetDuration*3,o=r&&r.end&&this.currentTime_()-r.end>t.playlist.partTargetDuration*3;if(i||o){this.logger_(`bad ${i?"segment":"part"} ${cl(t)}`),this.resetEverything();return}this.mediaIndex!==null&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=t.mediaIndex,this.partIndex=t.partIndex,this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)&&this.endOfStream(),this.trigger("appended"),t.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(t){if(t.duration<mh){this.logger_(`Ignoring segment's throughput because its duration of ${t.duration} is less than the min to record ${mh}`);return}const n=this.throughput.rate,s=Date.now()-t.endOfAllRequests+1,r=Math.floor(t.byteLength/s*8*1e3);this.throughput.rate+=(r-n)/++this.throughput.count}addSegmentMetadataCue_(t){if(!this.segmentMetadataTrack_)return;const n=t.segment,s=n.start,r=n.end;if(!ck(s)||!ck(r))return;Tc(s,r,this.segmentMetadataTrack_);const i=ge.WebKitDataCue||ge.VTTCue,o={custom:n.custom,dateTimeObject:n.dateTimeObject,dateTimeString:n.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:s,end:r},a=JSON.stringify(o),l=new i(s,r,a);l.value=o,this.segmentMetadataTrack_.addCue(l)}}function Fi(){}const WR=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toUpperCase())},FSe=["video","audio"],tb=(e,t)=>{const n=t[`${e}Buffer`];return n&&n.updating||t.queuePending[e]},BSe=(e,t)=>{for(let n=0;n<t.length;n++){const s=t[n];if(s.type==="mediaSource")return null;if(s.type===e)return n}return null},Bl=(e,t)=>{if(t.queue.length===0)return;let n=0,s=t.queue[n];if(s.type==="mediaSource"){!t.updating()&&t.mediaSource.readyState!=="closed"&&(t.queue.shift(),s.action(t),s.doneFn&&s.doneFn(),Bl("audio",t),Bl("video",t));return}if(e!=="mediaSource"&&!(!t.ready()||t.mediaSource.readyState==="closed"||tb(e,t))){if(s.type!==e){if(n=BSe(e,t.queue),n===null)return;s=t.queue[n]}if(t.queue.splice(n,1),t.queuePending[e]=s,s.action(e,t),!s.doneFn){t.queuePending[e]=null,Bl(e,t);return}}},qR=(e,t)=>{const n=t[`${e}Buffer`],s=WR(e);n&&(n.removeEventListener("updateend",t[`on${s}UpdateEnd_`]),n.removeEventListener("error",t[`on${s}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},ei=(e,t)=>e&&t&&Array.prototype.indexOf.call(e.sourceBuffers,t)!==-1,Ws={appendBuffer:(e,t,n)=>(s,r)=>{const i=r[`${s}Buffer`];if(ei(r.mediaSource,i)){r.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${s}Buffer`);try{i.appendBuffer(e)}catch(o){r.logger_(`Error with code ${o.code} `+(o.code===KR?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${s}Buffer`),r.queuePending[s]=null,n(o)}}},remove:(e,t)=>(n,s)=>{const r=s[`${n}Buffer`];if(ei(s.mediaSource,r)){s.logger_(`Removing ${e} to ${t} from ${n}Buffer`);try{r.remove(e,t)}catch{s.logger_(`Remove ${e} to ${t} from ${n}Buffer failed`)}}},timestampOffset:e=>(t,n)=>{const s=n[`${t}Buffer`];ei(n.mediaSource,s)&&(n.logger_(`Setting ${t}timestampOffset to ${e}`),s.timestampOffset=e)},callback:e=>(t,n)=>{e()},endOfStream:e=>t=>{if(t.mediaSource.readyState==="open"){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(n){je.log.warn("Failed to call media source endOfStream",n)}}},duration:e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(n){je.log.warn("Failed to set media source duration",n)}},abort:()=>(e,t)=>{if(t.mediaSource.readyState!=="open")return;const n=t[`${e}Buffer`];if(ei(t.mediaSource,n)){t.logger_(`calling abort on ${e}Buffer`);try{n.abort()}catch(s){je.log.warn(`Failed to abort on ${e}Buffer`,s)}}},addSourceBuffer:(e,t)=>n=>{const s=WR(e),r=kd(t);n.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const i=n.mediaSource.addSourceBuffer(r);i.addEventListener("updateend",n[`on${s}UpdateEnd_`]),i.addEventListener("error",n[`on${s}Error_`]),n.codecs[e]=t,n[`${e}Buffer`]=i},removeSourceBuffer:e=>t=>{const n=t[`${e}Buffer`];if(qR(e,t),!!ei(t.mediaSource,n)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(n)}catch(s){je.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,s)}}},changeType:e=>(t,n)=>{const s=n[`${t}Buffer`],r=kd(e);ei(n.mediaSource,s)&&n.codecs[t]!==e&&(n.logger_(`changing ${t}Buffer codec from ${n.codecs[t]} to ${e}`),s.changeType(r),n.codecs[t]=e)}},qs=({type:e,sourceUpdater:t,action:n,doneFn:s,name:r})=>{t.queue.push({type:e,action:n,doneFn:s,name:r}),Bl(e,t)},pk=(e,t)=>n=>{if(t.queuePending[e]){const s=t.queuePending[e].doneFn;t.queuePending[e]=null,s&&s(t[`${e}Error_`])}Bl(e,t)};class GR extends je.EventTarget{constructor(t){super(),this.mediaSource=t,this.sourceopenListener_=()=>Bl("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=Yr("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=pk("video",this),this.onAudioUpdateEnd_=pk("audio",this),this.onVideoError_=n=>{this.videoError_=n},this.onAudioError_=n=>{this.audioError_=n},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(t){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(t),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(t,n){qs({type:"mediaSource",sourceUpdater:this,action:Ws.addSourceBuffer(t,n),name:"addSourceBuffer"})}abort(t){qs({type:t,sourceUpdater:this,action:Ws.abort(t),name:"abort"})}removeSourceBuffer(t){if(!this.canRemoveSourceBuffer()){je.log.error("removeSourceBuffer is not supported!");return}qs({type:"mediaSource",sourceUpdater:this,action:Ws.removeSourceBuffer(t),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!je.browser.IE_VERSION&&!je.browser.IS_FIREFOX&&ge.MediaSource&&ge.MediaSource.prototype&&typeof ge.MediaSource.prototype.removeSourceBuffer=="function"}static canChangeType(){return ge.SourceBuffer&&ge.SourceBuffer.prototype&&typeof ge.SourceBuffer.prototype.changeType=="function"}canChangeType(){return this.constructor.canChangeType()}changeType(t,n){if(!this.canChangeType()){je.log.error("changeType is not supported!");return}qs({type:t,sourceUpdater:this,action:Ws.changeType(n),name:"changeType"})}addOrChangeSourceBuffers(t){if(!t||typeof t!="object"||Object.keys(t).length===0)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(t).forEach(n=>{const s=t[n];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(n,s);this.canChangeType()&&this.changeType(n,s)})}appendBuffer(t,n){const{segmentInfo:s,type:r,bytes:i}=t;if(this.processedAppend_=!0,r==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([t,n]),this.logger_(`delayed audio append of ${i.length} until video append`);return}const o=n;if(qs({type:r,sourceUpdater:this,action:Ws.appendBuffer(i,s||{mediaIndex:-1},o),doneFn:n,name:"appendBuffer"}),r==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const a=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${a.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,a.forEach(l=>{this.appendBuffer.apply(this,l)})}}audioBuffered(){return ei(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:us()}videoBuffered(){return ei(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:us()}buffered(){const t=ei(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,n=ei(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return n&&!t?this.audioBuffered():t&&!n?this.videoBuffered():lTe(this.audioBuffered(),this.videoBuffered())}setDuration(t,n=Fi){qs({type:"mediaSource",sourceUpdater:this,action:Ws.duration(t),name:"duration",doneFn:n})}endOfStream(t=null,n=Fi){typeof t!="string"&&(t=void 0),qs({type:"mediaSource",sourceUpdater:this,action:Ws.endOfStream(t),name:"endOfStream",doneFn:n})}removeAudio(t,n,s=Fi){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){s();return}qs({type:"audio",sourceUpdater:this,action:Ws.remove(t,n),doneFn:s,name:"remove"})}removeVideo(t,n,s=Fi){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){s();return}qs({type:"video",sourceUpdater:this,action:Ws.remove(t,n),doneFn:s,name:"remove"})}updating(){return!!(tb("audio",this)||tb("video",this))}audioTimestampOffset(t){return typeof t<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(qs({type:"audio",sourceUpdater:this,action:Ws.timestampOffset(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_}videoTimestampOffset(t){return typeof t<"u"&&this.videoBuffer&&this.videoTimestampOffset!==t&&(qs({type:"video",sourceUpdater:this,action:Ws.timestampOffset(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_}audioQueueCallback(t){this.audioBuffer&&qs({type:"audio",sourceUpdater:this,action:Ws.callback(t),name:"callback"})}videoQueueCallback(t){this.videoBuffer&&qs({type:"video",sourceUpdater:this,action:Ws.callback(t),name:"callback"})}dispose(){this.trigger("dispose"),FSe.forEach(t=>{this.abort(t),this.canRemoveSourceBuffer()?this.removeSourceBuffer(t):this[`${t}QueueCallback`](()=>qR(t,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const mk=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),gk=new Uint8Array(`
|
||
|
||
`.split("").map(e=>e.charCodeAt(0)));class VSe extends eb{constructor(t,n={}){super(t,n),this.mediaSource_=null,this.subtitlesTrack_=null,this.loaderType_="subtitle",this.featuresNativeTextTracks_=t.featuresNativeTextTracks,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return us();const t=this.subtitlesTrack_.cues,n=t[0].startTime,s=t[t.length-1].startTime;return us([[n,s]])}initSegmentForMap(t,n=!1){if(!t)return null;const s=Jp(t);let r=this.initSegments_[s];if(n&&!r&&t.bytes){const i=gk.byteLength+t.bytes.byteLength,o=new Uint8Array(i);o.set(t.bytes),o.set(gk,t.bytes.byteLength),this.initSegments_[s]=r={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:o}}return r||t}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(t){return typeof t>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=t,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}remove(t,n){Tc(t,n,this.subtitlesTrack_)}fillBuffer_(){const t=this.chooseNextRequest_();if(t){if(this.syncController_.timestampOffsetForTimeline(t.timeline)===null){const n=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",n),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(t)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(t){for(;t&&t.segment.empty;){if(t.mediaIndex+1>=t.playlist.segments.length){t=null;break}t=this.generateSegmentInfo_({playlist:t.playlist,mediaIndex:t.mediaIndex+1,startOfSegment:t.startOfSegment+t.duration,isSyncRequest:t.isSyncRequest})}return t}stopForError(t){this.error(t),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(t,n,s){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(n.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(t){t.code===li.TIMEOUT&&this.handleTimeout_(),t.code===li.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(t);return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,n.stats),n.key&&this.segmentKey(n.key,!0),this.state="APPENDING",this.trigger("appending");const i=r.segment;if(i.map&&(i.map.bytes=n.map.bytes),r.bytes=n.bytes,typeof ge.WebVTT!="function"&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){let o;const a=()=>{this.subtitlesTrack_.tech_.off("vttjsloaded",o),this.stopForError({message:"Error loading vtt.js"})};o=()=>{this.subtitlesTrack_.tech_.off("vttjserror",a),this.segmentRequestFinished_(t,n,s)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",o),this.subtitlesTrack_.tech_.one("vttjserror",a);return}i.requested=!0;try{this.parseVTTCues_(r)}catch(o){this.stopForError({message:o.message});return}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=i.duration,r.cues.forEach(o=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new ge.VTTCue(o.startTime,o.endTime,o.text):o)}),xSe(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(t){let n,s=!1;typeof ge.TextDecoder=="function"?n=new ge.TextDecoder("utf8"):(n=ge.WebVTT.StringDecoder(),s=!0);const r=new ge.WebVTT.Parser(ge,ge.vttjs,n);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=t.cues.push.bind(t.cues),r.ontimestampmap=o=>{t.timestampmap=o},r.onparsingerror=o=>{je.log.warn("Error encountered when parsing cues: "+o.message)},t.segment.map){let o=t.segment.map.bytes;s&&(o=mk(o)),r.parse(o)}let i=t.bytes;s&&(i=mk(i)),r.parse(i),r.flush()}updateTimeMapping_(t,n,s){const r=t.segment;if(!n)return;if(!t.cues.length){r.empty=!0;return}const i=t.timestampmap,o=i.MPEGTS/Fp.ONE_SECOND_IN_TS-i.LOCAL+n.mapping;if(t.cues.forEach(a=>{a.startTime+=o,a.endTime+=o}),!s.syncInfo){const a=t.cues[0].startTime,l=t.cues[t.cues.length-1].startTime;s.syncInfo={mediaSequence:s.mediaSequence+t.mediaIndex,time:Math.min(a,l-r.duration)}}}}const USe=function(e,t){const n=e.cues;for(let s=0;s<n.length;s++){const r=n[s];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},HSe=function(e,t,n=0){if(!e.segments)return;let s=n,r;for(let i=0;i<e.segments.length;i++){const o=e.segments[i];if(r||(r=USe(t,s+o.duration/2)),r){if("cueIn"in o){r.endTime=s,r.adEndTime=s,s+=o.duration,r=null;continue}if(s<r.endTime){s+=o.duration;continue}r.endTime+=o.duration}else if("cueOut"in o&&(r=new ge.VTTCue(s,s+o.duration,o.cueOut),r.adStartTime=s,r.adEndTime=s+parseFloat(o.cueOut),t.addCue(r)),"cueOutCont"in o){const[a,l]=o.cueOutCont.split("/").map(parseFloat);r=new ge.VTTCue(s,s+o.duration,""),r.adStartTime=s-a,r.adEndTime=r.adStartTime+l,t.addCue(r)}s+=o.duration}},zSe=86400,vk=[{name:"VOD",run:(e,t,n,s,r)=>n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"ProgramDateTime",run:(e,t,n,s,r)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let i=null,o=null;const a=Wy(t);r=r||0;for(let l=0;l<a.length;l++){const u=t.endList||r===0?l:a.length-(l+1),d=a[u],f=d.segment,h=e.timelineToDatetimeMappings[f.timeline];if(!h||!f.dateTimeObject)continue;let g=f.dateTimeObject.getTime()/1e3+h;if(f.parts&&typeof d.partIndex=="number")for(let v=0;v<d.partIndex;v++)g+=f.parts[v].duration;const m=Math.abs(r-g);if(o!==null&&(m===0||o<m))break;o=m,i={time:g,segmentIndex:d.segmentIndex,partIndex:d.partIndex}}return i}},{name:"Segment",run:(e,t,n,s,r)=>{let i=null,o=null;r=r||0;const a=Wy(t);for(let l=0;l<a.length;l++){const u=t.endList||r===0?l:a.length-(l+1),d=a[u],f=d.segment,h=d.part&&d.part.start||f&&f.start;if(f.timeline===s&&typeof h<"u"){const p=Math.abs(r-h);if(o!==null&&o<p)break;(!i||o===null||o>=p)&&(o=p,i={time:h,segmentIndex:d.segmentIndex,partIndex:d.partIndex})}}return i}},{name:"Discontinuity",run:(e,t,n,s,r)=>{let i=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length){let o=null;for(let a=0;a<t.discontinuityStarts.length;a++){const l=t.discontinuityStarts[a],u=t.discontinuitySequence+a+1,d=e.discontinuities[u];if(d){const f=Math.abs(r-d.time);if(o!==null&&o<f)break;(!i||o===null||o>=f)&&(o=f,i={time:d.time,segmentIndex:l,partIndex:null})}}}return i}},{name:"Playlist",run:(e,t,n,s,r)=>t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}];class jSe extends je.EventTarget{constructor(t={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.logger_=Yr("SyncController")}getSyncPoint(t,n,s,r){const i=this.runStrategies_(t,n,s,r);return i.length?this.selectSyncPoint_(i,{key:"time",value:r}):null}getExpiredTime(t,n){if(!t||!t.segments)return null;const s=this.runStrategies_(t,n,t.discontinuitySequence,0);if(!s.length)return null;const r=this.selectSyncPoint_(s,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Uc({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:r.segmentIndex,endIndex:0}))}runStrategies_(t,n,s,r){const i=[];for(let o=0;o<vk.length;o++){const a=vk[o],l=a.run(this,t,n,s,r);l&&(l.strategy=a.name,i.push({strategy:a.name,syncPoint:l}))}return i}selectSyncPoint_(t,n){let s=t[0].syncPoint,r=Math.abs(t[0].syncPoint[n.key]-n.value),i=t[0].strategy;for(let o=1;o<t.length;o++){const a=Math.abs(t[o].syncPoint[n.key]-n.value);a<r&&(r=a,s=t[o].syncPoint,i=t[o].strategy)}return this.logger_(`syncPoint for [${n.key}: ${n.value}] chosen with strategy [${i}]: [time:${s.time}, segmentIndex:${s.segmentIndex}`+(typeof s.partIndex=="number"?`,partIndex:${s.partIndex}`:"")+"]"),s}saveExpiredSegmentInfo(t,n){const s=n.mediaSequence-t.mediaSequence;if(s>zSe){je.log.warn(`Not saving expired segment info. Media sequence gap ${s} is too large.`);return}for(let r=s-1;r>=0;r--){const i=t.segments[r];if(i&&typeof i.start<"u"){n.syncInfo={mediaSequence:t.mediaSequence+r,time:i.start},this.logger_(`playlist refresh sync: [time:${n.syncInfo.time}, mediaSequence: ${n.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(t){if(this.timelineToDatetimeMappings={},t.segments&&t.segments.length&&t.segments[0].dateTimeObject){const n=t.segments[0],s=n.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[n.timeline]=-s}}saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:n}){const s=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;s&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));const i=r.dateTimeObject;r.discontinuity&&n&&i&&(this.timelineToDatetimeMappings[r.timeline]=-(i.getTime()/1e3))}timestampOffsetForTimeline(t){return typeof this.timelines[t]>"u"?null:this.timelines[t].time}mappingForTimeline(t){return typeof this.timelines[t]>"u"?null:this.timelines[t].mapping}calculateSegmentTimeMapping_(t,n,s){const r=t.segment,i=t.part;let o=this.timelines[t.timeline],a,l;if(typeof t.timestampOffset=="number")o={time:t.startOfSegment,mapping:t.startOfSegment-n.start},s&&(this.timelines[t.timeline]=o,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${t.timeline}: [time: ${o.time}] [mapping: ${o.mapping}]`)),a=t.startOfSegment,l=n.end+o.mapping;else if(o)a=n.start+o.mapping,l=n.end+o.mapping;else return!1;return i&&(i.start=a,i.end=l),(!r.start||a<r.start)&&(r.start=a),r.end=l,!0}saveDiscontinuitySyncInfo_(t){const n=t.playlist,s=t.segment;if(s.discontinuity)this.discontinuities[s.timeline]={time:s.start,accuracy:0};else if(n.discontinuityStarts&&n.discontinuityStarts.length)for(let r=0;r<n.discontinuityStarts.length;r++){const i=n.discontinuityStarts[r],o=n.discontinuitySequence+r+1,a=i-t.mediaIndex,l=Math.abs(a);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>l){let u;a<0?u=s.start-Uc({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:t.mediaIndex,endIndex:i}):u=s.end+Uc({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:t.mediaIndex+1,endIndex:i}),this.discontinuities[o]={time:u,accuracy:l}}}}dispose(){this.trigger("dispose"),this.off()}}class KSe extends je.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(t){this.pendingTimelineChanges_[t]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:t,from:n,to:s}){return typeof n=="number"&&typeof s=="number"&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:s},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]}lastTimelineChange({type:t,from:n,to:s}){return typeof n=="number"&&typeof s=="number"&&(this.lastTimelineChanges_[t]={type:t,from:n,to:s},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const WSe=MR(RR(function(){var e=function(){function m(){this.listeners={}}var v=m.prototype;return v.on=function(T,_){this.listeners[T]||(this.listeners[T]=[]),this.listeners[T].push(_)},v.off=function(T,_){if(!this.listeners[T])return!1;var S=this.listeners[T].indexOf(_);return this.listeners[T]=this.listeners[T].slice(0),this.listeners[T].splice(S,1),S>-1},v.trigger=function(T){var _=this.listeners[T];if(_)if(arguments.length===2)for(var S=_.length,w=0;w<S;++w)_[w].call(this,arguments[1]);else for(var A=Array.prototype.slice.call(arguments,1),M=_.length,N=0;N<M;++N)_[N].apply(this,A)},v.dispose=function(){this.listeners={}},v.pipe=function(T){this.on("data",function(_){T.push(_)})},m}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function t(m){return m.subarray(0,m.byteLength-m[m.byteLength-1])}/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */const n=function(){const m=[[[],[],[],[],[]],[[],[],[],[],[]]],v=m[0],y=m[1],T=v[4],_=y[4];let S,w,A;const M=[],N=[];let L,F,W,j,R,q;for(S=0;S<256;S++)N[(M[S]=S<<1^(S>>7)*283)^S]=S;for(w=A=0;!T[w];w^=L||1,A=N[A]||1)for(j=A^A<<1^A<<2^A<<3^A<<4,j=j>>8^j&255^99,T[w]=j,_[j]=w,W=M[F=M[L=M[w]]],q=W*16843009^F*65537^L*257^w*16843008,R=M[j]*257^j*16843008,S=0;S<4;S++)v[S][w]=R=R<<24^R>>>8,y[S][j]=q=q<<24^q>>>8;for(S=0;S<5;S++)v[S]=v[S].slice(0),y[S]=y[S].slice(0);return m};let s=null;class r{constructor(v){s||(s=n()),this._tables=[[s[0][0].slice(),s[0][1].slice(),s[0][2].slice(),s[0][3].slice(),s[0][4].slice()],[s[1][0].slice(),s[1][1].slice(),s[1][2].slice(),s[1][3].slice(),s[1][4].slice()]];let y,T,_;const S=this._tables[0][4],w=this._tables[1],A=v.length;let M=1;if(A!==4&&A!==6&&A!==8)throw new Error("Invalid aes key size");const N=v.slice(0),L=[];for(this._key=[N,L],y=A;y<4*A+28;y++)_=N[y-1],(y%A===0||A===8&&y%A===4)&&(_=S[_>>>24]<<24^S[_>>16&255]<<16^S[_>>8&255]<<8^S[_&255],y%A===0&&(_=_<<8^_>>>24^M<<24,M=M<<1^(M>>7)*283)),N[y]=N[y-A]^_;for(T=0;y;T++,y--)_=N[T&3?y:y-4],y<=4||T<4?L[T]=_:L[T]=w[0][S[_>>>24]]^w[1][S[_>>16&255]]^w[2][S[_>>8&255]]^w[3][S[_&255]]}decrypt(v,y,T,_,S,w){const A=this._key[1];let M=v^A[0],N=_^A[1],L=T^A[2],F=y^A[3],W,j,R;const q=A.length/4-2;let X,K=4;const $=this._tables[1],H=$[0],U=$[1],Z=$[2],ue=$[3],Q=$[4];for(X=0;X<q;X++)W=H[M>>>24]^U[N>>16&255]^Z[L>>8&255]^ue[F&255]^A[K],j=H[N>>>24]^U[L>>16&255]^Z[F>>8&255]^ue[M&255]^A[K+1],R=H[L>>>24]^U[F>>16&255]^Z[M>>8&255]^ue[N&255]^A[K+2],F=H[F>>>24]^U[M>>16&255]^Z[N>>8&255]^ue[L&255]^A[K+3],K+=4,M=W,N=j,L=R;for(X=0;X<4;X++)S[(3&-X)+w]=Q[M>>>24]<<24^Q[N>>16&255]<<16^Q[L>>8&255]<<8^Q[F&255]^A[K++],W=M,M=N,N=L,L=F,F=W}}class i extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(v){this.jobs.push(v),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const o=function(m){return m<<24|(m&65280)<<8|(m&16711680)>>8|m>>>24},a=function(m,v,y){const T=new Int32Array(m.buffer,m.byteOffset,m.byteLength>>2),_=new r(Array.prototype.slice.call(v)),S=new Uint8Array(m.byteLength),w=new Int32Array(S.buffer);let A,M,N,L,F,W,j,R,q;for(A=y[0],M=y[1],N=y[2],L=y[3],q=0;q<T.length;q+=4)F=o(T[q]),W=o(T[q+1]),j=o(T[q+2]),R=o(T[q+3]),_.decrypt(F,W,j,R,w,q),w[q]=o(w[q]^A),w[q+1]=o(w[q+1]^M),w[q+2]=o(w[q+2]^N),w[q+3]=o(w[q+3]^L),A=F,M=W,N=j,L=R;return S};class l{constructor(v,y,T,_){const S=l.STEP,w=new Int32Array(v.buffer),A=new Uint8Array(v.byteLength);let M=0;for(this.asyncStream_=new i,this.asyncStream_.push(this.decryptChunk_(w.subarray(M,M+S),y,T,A)),M=S;M<w.length;M+=S)T=new Uint32Array([o(w[M-4]),o(w[M-3]),o(w[M-2]),o(w[M-1])]),this.asyncStream_.push(this.decryptChunk_(w.subarray(M,M+S),y,T,A));this.asyncStream_.push(function(){_(null,t(A))})}static get STEP(){return 32e3}decryptChunk_(v,y,T,_){return function(){const S=a(v,y,T);_.set(S,v.byteOffset)}}}var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d;typeof window<"u"?d=window:typeof u<"u"?d=u:typeof self<"u"?d=self:d={};var f=d,h=function(v){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(v):v&&v.buffer instanceof ArrayBuffer},p=f.BigInt||Number;p("0x1"),p("0x100"),p("0x10000"),p("0x1000000"),p("0x100000000"),p("0x10000000000"),p("0x1000000000000"),p("0x100000000000000"),p("0x10000000000000000"),function(){var m=new Uint16Array([65484]),v=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);return v[0]===255?"big":v[0]===204?"little":"unknown"}();const g=function(m){const v={};return Object.keys(m).forEach(y=>{const T=m[y];h(T)?v[y]={bytes:T.buffer,byteOffset:T.byteOffset,byteLength:T.byteLength}:v[y]=T}),v};self.onmessage=function(m){const v=m.data,y=new Uint8Array(v.encrypted.bytes,v.encrypted.byteOffset,v.encrypted.byteLength),T=new Uint32Array(v.key.bytes,v.key.byteOffset,v.key.byteLength/4),_=new Uint32Array(v.iv.bytes,v.iv.byteOffset,v.iv.byteLength/4);new l(y,T,_,function(S,w){self.postMessage(g({source:v.source,decrypted:w}),[w.buffer])})}}));var qSe=NR(WSe);const GSe=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},nm=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},nb=(e,t)=>{t.activePlaylistLoader=e,e.load()},YSe=(e,t)=>()=>{const{segmentLoaders:{[e]:n,main:s},mediaTypes:{[e]:r}}=t,i=r.activeTrack(),o=r.getActiveGroup(),a=r.activePlaylistLoader,l=r.lastGroup_;if(!(o&&l&&o.id===l.id)&&(r.lastGroup_=o,r.lastTrack_=i,nm(n,r),!(!o||o.isMainPlaylist))){if(!o.playlistLoader){a&&s.resetEverything();return}n.resyncLoader(),nb(o.playlistLoader,r)}},XSe=(e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:s}}=t;s.lastGroup_=null,n.abort(),n.pause()},QSe=(e,t)=>()=>{const{mainPlaylistLoader:n,segmentLoaders:{[e]:s,main:r},mediaTypes:{[e]:i}}=t,o=i.activeTrack(),a=i.getActiveGroup(),l=i.activePlaylistLoader,u=i.lastTrack_;if(!(u&&o&&u.id===o.id)&&(i.lastGroup_=a,i.lastTrack_=o,nm(s,i),!!a)){if(a.isMainPlaylist){if(!o||!u||o.id===u.id)return;const d=t.vhs.playlistController_,f=d.selectPlaylist();if(d.media()===f)return;i.logger_(`track change. Switching main audio from ${u.id} to ${o.id}`),n.pause(),r.resetEverything(),d.fastQualityChange_(f);return}if(e==="AUDIO"){if(!a.playlistLoader){r.setAudio(!0),r.resetEverything();return}s.setAudio(!0),r.setAudio(!1)}if(l===a.playlistLoader){nb(a.playlistLoader,i);return}s.track&&s.track(o),s.resetEverything(),nb(a.playlistLoader,i)}},sm={AUDIO:(e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:s},excludePlaylist:r}=t;nm(n,s);const i=s.activeTrack(),o=s.activeGroup(),a=(o.filter(u=>u.default)[0]||o[0]).id,l=s.tracks[a];if(i===l){r({error:{message:"Problem encountered loading the default audio track."}});return}je.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const u in s.tracks)s.tracks[u].enabled=s.tracks[u]===l;s.onTrackChanged()},SUBTITLES:(e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:s}}=t;je.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),nm(n,s);const r=s.activeTrack();r&&(r.mode="disabled"),s.onTrackChanged()}},yk={AUDIO:(e,t,n)=>{if(!t)return;const{tech:s,requestOptions:r,segmentLoaders:{[e]:i}}=n;t.on("loadedmetadata",()=>{const o=t.media();i.playlist(o,r),(!s.paused()||o.endList&&s.preload()!=="none")&&i.load()}),t.on("loadedplaylist",()=>{i.playlist(t.media(),r),s.paused()||i.load()}),t.on("error",sm[e](e,n))},SUBTITLES:(e,t,n)=>{const{tech:s,requestOptions:r,segmentLoaders:{[e]:i},mediaTypes:{[e]:o}}=n;t.on("loadedmetadata",()=>{const a=t.media();i.playlist(a,r),i.track(o.activeTrack()),(!s.paused()||a.endList&&s.preload()!=="none")&&i.load()}),t.on("loadedplaylist",()=>{i.playlist(t.media(),r),s.paused()||i.load()}),t.on("error",sm[e](e,n))}},JSe={AUDIO:(e,t)=>{const{vhs:n,sourceType:s,segmentLoaders:{[e]:r},requestOptions:i,main:{mediaGroups:o},mediaTypes:{[e]:{groups:a,tracks:l,logger_:u}},mainPlaylistLoader:d}=t,f=df(d.main);(!o[e]||Object.keys(o[e]).length===0)&&(o[e]={main:{default:{default:!0}}},f&&(o[e].main.default.playlists=d.main.playlists));for(const h in o[e]){a[h]||(a[h]=[]);for(const p in o[e][h]){let g=o[e][h][p],m;if(f?(u(`AUDIO group '${h}' label '${p}' is a main playlist`),g.isMainPlaylist=!0,m=null):s==="vhs-json"&&g.playlists?m=new wl(g.playlists[0],n,i):g.resolvedUri?m=new wl(g.resolvedUri,n,i):g.playlists&&s==="dash"?m=new Jy(g.playlists[0],n,i,d):m=null,g=yn({id:p,playlistLoader:m},g),yk[e](e,g.playlistLoader,t),a[h].push(g),typeof l[p]>"u"){const v=new je.AudioTrack({id:p,kind:GSe(g),enabled:!1,language:g.language,default:g.default,label:p});l[p]=v}}}r.on("error",sm[e](e,t))},SUBTITLES:(e,t)=>{const{tech:n,vhs:s,sourceType:r,segmentLoaders:{[e]:i},requestOptions:o,main:{mediaGroups:a},mediaTypes:{[e]:{groups:l,tracks:u}},mainPlaylistLoader:d}=t;for(const f in a[e]){l[f]||(l[f]=[]);for(const h in a[e][f]){if(a[e][f][h].forced)continue;let p=a[e][f][h],g;if(r==="hls")g=new wl(p.resolvedUri,s,o);else if(r==="dash"){if(!p.playlists.filter(v=>v.excludeUntil!==1/0).length)return;g=new Jy(p.playlists[0],s,o,d)}else r==="vhs-json"&&(g=new wl(p.playlists?p.playlists[0]:p.resolvedUri,s,o));if(p=yn({id:h,playlistLoader:g},p),yk[e](e,p.playlistLoader,t),l[f].push(p),typeof u[h]>"u"){const m=n.addRemoteTextTrack({id:h,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:h},!1).track;u[h]=m}}}i.on("error",sm[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:n,main:{mediaGroups:s},mediaTypes:{[e]:{groups:r,tracks:i}}}=t;for(const o in s[e]){r[o]||(r[o]=[]);for(const a in s[e][o]){const l=s[e][o][a];if(!/^(?:CC|SERVICE)/.test(l.instreamId))continue;const u=n.options_.vhs&&n.options_.vhs.captionServices||{};let d={label:a,language:l.language,instreamId:l.instreamId,default:l.default&&l.autoselect};if(u[d.instreamId]&&(d=yn(d,u[d.instreamId])),d.default===void 0&&delete d.default,r[o].push(yn({id:a},l)),typeof i[a]>"u"){const f=n.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;i[a]=f}}}}},YR=(e,t)=>{for(let n=0;n<e.length;n++)if(lT(t,e[n])||e[n].playlists&&YR(e[n].playlists,t))return!0;return!1},ZSe=(e,t)=>n=>{const{mainPlaylistLoader:s,mediaTypes:{[e]:{groups:r}}}=t,i=s.media();if(!i)return null;let o=null;i.attributes[e]&&(o=r[i.attributes[e]]);const a=Object.keys(r);if(!o)if(e==="AUDIO"&&a.length>1&&df(t.main))for(let l=0;l<a.length;l++){const u=r[a[l]];if(YR(u,i)){o=u;break}}else r.main?o=r.main:a.length===1&&(o=r[a[0]]);return typeof n>"u"?o:n===null||!o?null:o.filter(l=>l.id===n.id)[0]||null},ewe={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const s in n)if(n[s].enabled)return n[s];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const s in n)if(n[s].mode==="showing"||n[s].mode==="hidden")return n[s];return null}},twe=(e,{mediaTypes:t})=>()=>{const n=t[e].activeTrack();return n?t[e].activeGroup(n):null},nwe=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(u=>{JSe[u](u,e)});const{mediaTypes:t,mainPlaylistLoader:n,tech:s,vhs:r,segmentLoaders:{["AUDIO"]:i,main:o}}=e;["AUDIO","SUBTITLES"].forEach(u=>{t[u].activeGroup=ZSe(u,e),t[u].activeTrack=ewe[u](u,e),t[u].onGroupChanged=YSe(u,e),t[u].onGroupChanging=XSe(u,e),t[u].onTrackChanged=QSe(u,e),t[u].getActiveGroup=twe(u,e)});const a=t.AUDIO.activeGroup();if(a){const u=(a.filter(f=>f.default)[0]||a[0]).id;t.AUDIO.tracks[u].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),i.setAudio(!0)):o.setAudio(!0)}n.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(u=>t[u].onGroupChanged())}),n.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(u=>t[u].onGroupChanging())});const l=()=>{t.AUDIO.onTrackChanged(),s.trigger({type:"usage",name:"vhs-audio-change"})};s.audioTracks().addEventListener("change",l),s.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",()=>{s.audioTracks().removeEventListener("change",l),s.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),s.clearTracks("audio");for(const u in t.AUDIO.tracks)s.audioTracks().addTrack(t.AUDIO.tracks[u])},swe=()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Fi,activeTrack:Fi,getActiveGroup:Fi,onGroupChanged:Fi,onTrackChanged:Fi,lastTrack_:null,logger_:Yr(`MediaGroups[${t}]`)}}),e},rwe=60*2;let Ii;const iwe=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],owe=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},awe=function({currentPlaylist:e,buffered:t,currentTime:n,nextPlaylist:s,bufferLowWaterLine:r,bufferHighWaterLine:i,duration:o,bufferBasedABR:a,log:l}){if(!s)return je.log.warn("We received no playlist to switch to. Please check your stream."),!1;const u=`allowing switch ${e&&e.id||"null"} -> ${s.id}`;if(!e)return l(`${u} as current playlist is not set`),!0;if(s.id===e.id)return!1;const d=!!Sl(t,n).length;if(!e.endList)return!d&&typeof e.partTargetDuration=="number"?(l(`not ${u} as current playlist is live llhls, but currentTime isn't in buffered.`),!1):(l(`${u} as current playlist is live`),!0);const f=iT(t,n),h=a?Xn.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Xn.MAX_BUFFER_LOW_WATER_LINE;if(o<h)return l(`${u} as duration < max low water line (${o} < ${h})`),!0;const p=s.attributes.BANDWIDTH,g=e.attributes.BANDWIDTH;if(p<g&&(!a||f<i)){let m=`${u} as next bandwidth < current bandwidth (${p} < ${g})`;return a&&(m+=` and forwardBuffer < bufferHighWaterLine (${f} < ${i})`),l(m),!0}if((!a||p>g)&&f>=r){let m=`${u} as forwardBuffer >= bufferLowWaterLine (${f} >= ${r})`;return a&&(m+=` and next bandwidth > current bandwidth (${p} > ${g})`),l(m),!0}return l(`not ${u} as no switching criteria met`),!1};class lwe extends je.EventTarget{constructor(t){super();const{src:n,withCredentials:s,tech:r,bandwidth:i,externVhs:o,useCueTags:a,playlistExclusionDuration:l,enableLowInitialPlaylist:u,sourceType:d,cacheEncryptionKeys:f,bufferBasedABR:h,leastPixelDiffSelector:p,captionServices:g}=t;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:m}=t;(m===null||typeof m>"u")&&(m=1/0),Ii=o,this.bufferBasedABR=!!h,this.leastPixelDiffSelector=!!p,this.withCredentials=s,this.tech_=r,this.vhs_=r.vhs,this.sourceType_=d,this.useCueTags_=a,this.playlistExclusionDuration=l,this.maxPlaylistRetries=m,this.enableLowInitialPlaylist=u,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:s,maxPlaylistRetries:m,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=swe(),this.mediaSource=new ge.MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=us(),this.hasPlayed_=!1,this.syncController_=new jSe(t),this.segmentMetadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new qSe,this.sourceUpdater_=new GR(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new KSe;const v={vhs:this.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:g,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:i,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:t.exactManifestTimings};this.mainPlaylistLoader_=this.sourceType_==="dash"?new Jy(n,this.vhs_,this.requestOptions_):new wl(n,this.vhs_,this.requestOptions_),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new eb(yn(v,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),t),this.audioSegmentLoader_=new eb(yn(v,{loaderType:"audio"}),t),this.subtitleSegmentLoader_=new VSe(yn(v,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks}),t),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),iwe.forEach(T=>{this[T+"_"]=owe.bind(this,T)}),this.logger_=Yr("pc"),this.triggeredFmp4Usage=!1,this.tech_.preload()==="none"?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const y=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(y,()=>{const T=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-T,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const t=this.mainAppendsToLoadedData_(),n=this.audioAppendsToLoadedData_();return t===-1||n===-1?-1:t+n}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(t="abr"){const n=this.selectPlaylist();n&&this.shouldSwitchToMedia_(n)&&this.switchMedia_(n,t)}switchMedia_(t,n,s){const r=this.media(),i=r&&(r.id||r.uri),o=t.id||t.uri;i&&i!==o&&(this.logger_(`switch media ${i} -> ${o} from ${n}`),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${n}`})),this.mainPlaylistLoader_.media(t,s)}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=ge.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(ge.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const t=this.main(),n=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return n;const s=t.mediaGroups.AUDIO,r=Object.keys(s);let i;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{const a=s.main||r.length&&s[r[0]];for(const l in a)if(a[l].default){i={label:l};break}}if(!i)return n;const o=[];for(const a in s)if(s[a][i.label]){const l=s[a][i.label];if(l.playlists&&l.playlists.length)o.push.apply(o,l.playlists);else if(l.uri)o.push(l);else if(t.playlists.length)for(let u=0;u<t.playlists.length;u++){const d=t.playlists[u];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===a&&o.push(d)}}return o.length?o:n}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const t=this.mainPlaylistLoader_.media(),n=t.targetDuration*1.5*1e3;qy(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,t.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.mainSegmentLoader_.load()),nwe({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),t),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let t=this.mainPlaylistLoader_.media();if(!t){this.excludeUnsupportedVariants_();let n;if(this.enableLowInitialPlaylist&&(n=this.selectInitialPlaylist()),n||(n=this.selectPlaylist()),!n||!this.shouldSwitchToMedia_(n)||(this.initialMedia_=n,this.switchMedia_(this.initialMedia_,"initial"),!(this.sourceType_==="vhs-json"&&this.initialMedia_.segments)))return;t=this.initialMedia_}this.handleUpdatedMediaPlaylist(t)}),this.mainPlaylistLoader_.on("error",()=>{const t=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const t=this.mainPlaylistLoader_.media(),n=t.targetDuration*1.5*1e3;qy(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const t=this.mainPlaylistLoader_.media();if(t.lastExcludeReason_==="playlist-unchanged")return;this.stuckAtPlaylistEnd_(t)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}handleUpdatedMediaPlaylist(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.updateDuration(!t.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(t,n){const s=t.mediaGroups||{};let r=!0;const i=Object.keys(s.AUDIO);for(const o in s.AUDIO)for(const a in s.AUDIO[o])s.AUDIO[o][a].uri||(r=!1);r&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(s.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Ii.Playlist.isAes(n)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),i.length&&Object.keys(s.AUDIO[i[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(t){const n=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,s=this.tech_.currentTime(),r=this.bufferLowWaterLine(),i=this.bufferHighWaterLine(),o=this.tech_.buffered();return awe({buffered:o,currentTime:s,currentPlaylist:n,nextPlaylist:t,bufferLowWaterLine:r,bufferHighWaterLine:i,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const n=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:n.playlist,error:n})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",n=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:rwe}))});const t=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const n=this.getCodecsOrExclude_();n&&this.sourceUpdater_.addOrChangeSourceBuffers(n)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(t=this.selectPlaylist()){if(t===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything(()=>{je.browser.IE_VERSION||je.browser.IS_EDGE?this.tech_.setCurrentTime(this.tech_.currentTime()+.04):this.tech_.setCurrentTime(this.tech_.currentTime())})}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const t=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0))return this.tech_.setCurrentTime(t.end(t.length-1))}setupFirstPlay(){const t=this.mainPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){const n=this.seekable();if(!n.length)return!1;if(je.browser.IE_VERSION&&this.tech_.readyState()===0)return this.tech_.one("loadedmetadata",()=>{this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0)),this.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const t=this.tech_.play();typeof t<"u"&&typeof t.then=="function"&&t.then(null,n=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const t=this.inbandTextTracks_.metadataTrack_.cues;if(!t||!t.length)return;const n=this.duration();t[t.length-1].endTime=isNaN(n)||Math.abs(n)===1/0?Number.MAX_VALUE:n}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const n=this.mainSegmentLoader_.getCurrentMediaInfo_();!n||n.hasVideo?t=t&&this.audioSegmentLoader_.ended_:t=this.audioSegmentLoader_.ended_}t&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(t){if(!this.seekable().length)return!1;const s=this.syncController_.getExpiredTime(t,this.duration());if(s===null)return!1;const r=Ii.Playlist.playlistEnd(t,s),i=this.tech_.currentTime(),o=this.tech_.buffered();if(!o.length)return r-i<=ai;const a=o.end(o.length-1);return a-i<=ai&&r-a<=ai}excludePlaylist({playlistToExclude:t=this.mainPlaylistLoader_.media(),error:n={},playlistExclusionDuration:s}){if(t=t||this.mainPlaylistLoader_.media(),s=s||n.playlistExclusionDuration||this.playlistExclusionDuration,!t){this.error=n,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}t.playlistErrors_++;const r=this.mainPlaylistLoader_.main.playlists,i=r.filter(_g),o=i.length===1&&i[0]===t;if(r.length===1&&s!==1/0)return je.log.warn(`Problem encountered with playlist ${t.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(o);if(o){let p=!1;r.forEach(g=>{if(g===t)return;const m=g.excludeUntil;typeof m<"u"&&m!==1/0&&(p=!0,delete g.excludeUntil)}),p&&(je.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let a;t.playlistErrors_>this.maxPlaylistRetries?a=1/0:a=Date.now()+s*1e3,t.excludeUntil=a,n.reason&&(t.lastExcludeReason_=n.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const l=this.selectPlaylist();if(!l){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}const u=n.internal?this.logger_:je.log.warn,d=n.message?" "+n.message:"";u(`${n.internal?"Internal problem":"Problem"} encountered with playlist ${t.id}.${d} Switching to playlist ${l.id}.`),l.attributes.AUDIO!==t.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==t.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const f=l.targetDuration/2*1e3||5*1e3,h=typeof l.lastRequest=="number"&&Date.now()-l.lastRequest<=f;return this.switchMedia_(l,"exclude",o||h)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(t,n){const s=[],r=t==="all";(r||t==="main")&&s.push(this.mainPlaylistLoader_);const i=[];(r||t==="audio")&&i.push("AUDIO"),(r||t==="subtitle")&&(i.push("CLOSED-CAPTIONS"),i.push("SUBTITLES")),i.forEach(o=>{const a=this.mediaTypes_[o]&&this.mediaTypes_[o].activePlaylistLoader;a&&s.push(a)}),["main","audio","subtitle"].forEach(o=>{const a=this[`${o}SegmentLoader_`];a&&(t===o||t==="all")&&s.push(a)}),s.forEach(o=>n.forEach(a=>{typeof o[a]=="function"&&o[a]()}))}setCurrentTime(t){const n=Sl(this.tech_.buffered(),t);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(n&&n.length)return t;this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;const t=this.mainPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:Ii.Playlist.duration(t):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let t;if(!this.mainPlaylistLoader_)return;let n=this.mainPlaylistLoader_.media();if(!n)return;let s=this.syncController_.getExpiredTime(n,this.duration());if(s===null)return;const r=this.mainPlaylistLoader_.main,i=Ii.Playlist.seekable(n,s,Ii.Playlist.liveEdgeDelay(r,n));if(i.length===0||this.mediaTypes_.AUDIO.activePlaylistLoader&&(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),s=this.syncController_.getExpiredTime(n,this.duration()),s===null||(t=Ii.Playlist.seekable(n,s,Ii.Playlist.liveEdgeDelay(r,n)),t.length===0)))return;let o,a;this.seekable_&&this.seekable_.length&&(o=this.seekable_.end(0),a=this.seekable_.start(0)),t?t.start(0)>i.end(0)||i.start(0)>t.end(0)?this.seekable_=i:this.seekable_=us([[t.start(0)>i.start(0)?t.start(0):i.start(0),t.end(0)<i.end(0)?t.end(0):i.end(0)]]):this.seekable_=i,!(this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===o&&this.seekable_.start(0)===a)&&(this.logger_(`seekable updated [${dR(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(t){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,t),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(t){const r=this.seekable();if(!r.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<r.end(r.length-1))&&this.sourceUpdater_.setDuration(r.end(r.length-1));return}const n=this.tech_.buffered();let s=Ii.Playlist.duration(this.mainPlaylistLoader_.media());n.length>0&&(s=Math.max(s,n.end(n.length-1))),this.mediaSource.duration!==s&&this.sourceUpdater_.setDuration(s)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(t=>{const n=this.mediaTypes_[t].groups;for(const s in n)n[s].forEach(r=>{r.playlistLoader&&r.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const t=!!this.mediaTypes_.AUDIO.activePlaylistLoader,n=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),s=t?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!n||!s)}getCodecsOrExclude_(){const t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;const n=Hc(this.main(),this.media()),s={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(s.video=n.video||t.main.videoCodec||Hye),t.main.isMuxed&&(s.video+=`,${n.audio||t.main.audioCodec||rx}`),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(s.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||rx,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),!s.audio&&!s.video){this.excludePlaylist({playlistToExclude:this.media(),error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}const i=(l,u)=>l?Jh(u):kv(u),o={};let a;if(["video","audio"].forEach(function(l){if(s.hasOwnProperty(l)&&!i(t[l].isFmp4,s[l])){const u=t[l].isFmp4?"browser":"muxer";o[u]=o[u]||[],o[u].push(s[l]),l==="audio"&&(a=u)}}),r&&a&&this.media().attributes.AUDIO){const l=this.media().attributes.AUDIO;this.main().playlists.forEach(u=>{(u.attributes&&u.attributes.AUDIO)===l&&u!==this.media()&&(u.excludeUntil=1/0)}),this.logger_(`excluding audio group ${l} as ${a} does not support codec(s): "${s.audio}"`)}if(Object.keys(o).length){const l=Object.keys(o).reduce((u,d)=>(u&&(u+=", "),u+=`${d} does not support codec(s): "${o[d].join(",")}"`,u),"")+".";this.excludePlaylist({playlistToExclude:this.media(),error:{internal:!0,message:l},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const l=[];if(["video","audio"].forEach(u=>{const d=(Jr(this.sourceUpdater_.codecs[u]||"")[0]||{}).type,f=(Jr(s[u]||"")[0]||{}).type;d&&f&&d.toLowerCase()!==f.toLowerCase()&&l.push(`"${this.sourceUpdater_.codecs[u]}" -> "${s[u]}"`)}),l.length){this.excludePlaylist({playlistToExclude:this.media(),error:{message:`Codec switching not supported: ${l.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return s}tryToCreateSourceBuffers_(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const t=this.getCodecsOrExclude_();if(!t)return;this.sourceUpdater_.createSourceBuffers(t);const n=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(n)}excludeUnsupportedVariants_(){const t=this.main().playlists,n=[];Object.keys(t).forEach(s=>{const r=t[s];if(n.indexOf(r.id)!==-1)return;n.push(r.id);const i=Hc(this.main,r),o=[];i.audio&&!kv(i.audio)&&!Jh(i.audio)&&o.push(`audio codec ${i.audio}`),i.video&&!kv(i.video)&&!Jh(i.video)&&o.push(`video codec ${i.video}`),i.text&&i.text==="stpp.ttml.im1t"&&o.push(`text codec ${i.text}`),o.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id} for unsupported: ${o.join(", ")}`))})}excludeIncompatibleVariants_(t){const n=[],s=this.main().playlists,r=em(Jr(t)),i=ak(r),o=r.video&&Jr(r.video)[0]||null,a=r.audio&&Jr(r.audio)[0]||null;Object.keys(s).forEach(l=>{const u=s[l];if(n.indexOf(u.id)!==-1||u.excludeUntil===1/0)return;n.push(u.id);const d=[],f=Hc(this.mainPlaylistLoader_.main,u),h=ak(f);if(!(!f.audio&&!f.video)){if(h!==i&&d.push(`codec count "${h}" !== "${i}"`),!this.sourceUpdater_.canChangeType()){const p=f.video&&Jr(f.video)[0]||null,g=f.audio&&Jr(f.audio)[0]||null;p&&o&&p.type.toLowerCase()!==o.type.toLowerCase()&&d.push(`video codec "${p.type}" !== "${o.type}"`),g&&a&&g.type.toLowerCase()!==a.type.toLowerCase()&&d.push(`audio codec "${g.type}" !== "${a.type}"`)}d.length&&(u.excludeUntil=1/0,this.logger_(`excluding ${u.id}: ${d.join(" && ")}`))}})}updateAdCues_(t){let n=0;const s=this.seekable();s.length&&(n=s.start(0)),HSe(t,this.cueTagsTrack_,n)}goalBufferLength(){const t=this.tech_.currentTime(),n=Xn.GOAL_BUFFER_LENGTH,s=Xn.GOAL_BUFFER_LENGTH_RATE,r=Math.max(n,Xn.MAX_GOAL_BUFFER_LENGTH);return Math.min(n+t*s,r)}bufferLowWaterLine(){const t=this.tech_.currentTime(),n=Xn.BUFFER_LOW_WATER_LINE,s=Xn.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(n,Xn.MAX_BUFFER_LOW_WATER_LINE),i=Math.max(n,Xn.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(n+t*s,this.bufferBasedABR?i:r)}bufferHighWaterLine(){return Xn.BUFFER_HIGH_WATER_LINE}}const uwe=(e,t,n)=>s=>{const r=e.main.playlists[t],i=aT(r),o=_g(r);return typeof s>"u"?o:(s?delete r.disabled:r.disabled=!0,s!==o&&!i&&(n(),s?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),s)};class cwe{constructor(t,n,s){const{playlistController_:r}=t,i=r.fastQualityChange_.bind(r);if(n.attributes){const o=n.attributes.RESOLUTION;this.width=o&&o.width,this.height=o&&o.height,this.bandwidth=n.attributes.BANDWIDTH,this.frameRate=n.attributes["FRAME-RATE"]}this.codecs=Hc(r.main(),n),this.playlist=n,this.id=s,this.enabled=uwe(t.playlists,n.id,i)}}const dwe=function(e){e.representations=()=>{const t=e.playlistController_.main(),n=df(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(s=>!aT(s)).map((s,r)=>new cwe(e,s,s.id)):[]}},bk=["seeking","seeked","pause","playing","error"];class fwe{constructor(t){this.playlistController_=t.playlistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Yr("PlaybackWatcher"),this.logger_("initialize");const n=()=>this.monitorCurrentTime_(),s=()=>this.monitorCurrentTime_(),r=()=>this.techWaiting_(),i=()=>this.resetTimeUpdate_(),o=this.playlistController_,a=["main","subtitle","audio"],l={};a.forEach(d=>{l[d]={reset:()=>this.resetSegmentDownloads_(d),updateend:()=>this.checkSegmentDownloads_(d)},o[`${d}SegmentLoader_`].on("appendsdone",l[d].updateend),o[`${d}SegmentLoader_`].on("playlistupdate",l[d].reset),this.tech_.on(["seeked","seeking"],l[d].reset)});const u=d=>{["main","audio"].forEach(f=>{o[`${f}SegmentLoader_`][d]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=()=>u("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(bk,i),this.tech_.on("canplay",s),this.tech_.one("play",n),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",r),this.tech_.off(bk,i),this.tech_.off("canplay",s),this.tech_.off("play",n),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),a.forEach(d=>{o[`${d}SegmentLoader_`].off("appendsdone",l[d].updateend),o[`${d}SegmentLoader_`].off("playlistupdate",l[d].reset),this.tech_.off(["seeked","seeking"],l[d].reset)}),this.checkCurrentTimeTimeout_&&ge.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&ge.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=ge.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(t){const n=this.playlistController_[`${t}SegmentLoader_`];this[`${t}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${t} loader`),this[`${t}StalledDownloads_`]=0,this[`${t}Buffered_`]=n.buffered_()}checkSegmentDownloads_(t){const n=this.playlistController_,s=n[`${t}SegmentLoader_`],r=s.buffered_(),i=cTe(this[`${t}Buffered_`],r);if(this[`${t}Buffered_`]=r,i){this.resetSegmentDownloads_(t);return}this[`${t}StalledDownloads_`]++,this.logger_(`found #${this[`${t}StalledDownloads_`]} ${t} appends that did not increase buffer (possible stalled download)`,{playlistId:s.playlist_&&s.playlist_.id,buffered:Ta(r)}),!(this[`${t}StalledDownloads_`]<10)&&(this.logger_(`${t} loader stalled download exclusion`),this.resetSegmentDownloads_(t),this.tech_.trigger({type:"usage",name:`vhs-${t}-download-exclusion`}),t!=="subtitle"&&n.excludePlaylist({error:{message:`Excessive ${t} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const t=this.tech_.currentTime(),n=this.tech_.buffered();if(this.lastRecordedTime===t&&(!n.length||t+ai>=n.end(n.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const n=this.seekable(),s=this.tech_.currentTime(),r=this.afterSeekableWindow_(n,s,this.media(),this.allowSeeksWithinUnsafeLiveWindow);let i;if(r&&(i=n.end(n.length-1)),this.beforeSeekableWindow_(n,s)){const g=n.start(0);i=g+(g===n.end(0)?0:ai)}if(typeof i<"u")return this.logger_(`Trying to seek outside of seekable at time ${s} with seekable range ${dR(n)}. Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0;const o=this.playlistController_.sourceUpdater_,a=this.tech_.buffered(),l=o.audioBuffer?o.audioBuffered():null,u=o.videoBuffer?o.videoBuffered():null,d=this.media(),f=d.partTargetDuration?d.partTargetDuration:(d.targetDuration-Fo)*2,h=[l,u];for(let g=0;g<h.length;g++){if(!h[g])continue;if(iT(h[g],s)<f)return!1}const p=hh(a,s);return p.length===0?!1:(i=p.start(0)+ai,this.logger_(`Buffered region starts (${p.start(0)}) just beyond seek point (${s}). Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0)}waiting_(){if(this.techWaiting_())return;const t=this.tech_.currentTime(),n=this.tech_.buffered(),s=Sl(n,t);if(s.length&&t+3<=s.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.logger_(`Stopped at ${t} while inside a buffered region [${s.start(0)} -> ${s.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){const t=this.seekable(),n=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(t,n)){const a=t.end(t.length-1);return this.logger_(`Fell out of live window at time ${n}. Seeking to live point (seekable end) ${a}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(a),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const s=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:s.audioBuffered(),videoBuffered:s.videoBuffered(),currentTime:n}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const o=hh(r,n);return o.length>0?(this.logger_(`Stopped at ${n} and seeking to ${o.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(n),!0):!1}afterSeekableWindow_(t,n,s,r=!1){if(!t.length)return!1;let i=t.end(t.length-1)+ai;return!s.endList&&r&&(i=t.end(t.length-1)+s.targetDuration*3),n>i}beforeSeekableWindow_(t,n){return!!(t.length&&t.start(0)>0&&n<t.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:t,audioBuffered:n,currentTime:s}){if(!t)return;let r;if(t.length&&n.length){const i=Sl(t,s-3),o=Sl(t,s),a=Sl(n,s);a.length&&!o.length&&i.length&&(r={start:i.end(0),end:a.end(0)})}else hh(t,s).length||(r=this.gapFromVideoUnderflow_(t,s));return r?(this.logger_(`Encountered a gap in video from ${r.start} to ${r.end}. Seeking to current time ${s}`),!0):!1}skipTheGap_(t){const n=this.tech_.buffered(),s=this.tech_.currentTime(),r=hh(n,s);this.resetTimeUpdate_(),!(r.length===0||s!==t)&&(this.logger_("skipTheGap_:","currentTime:",s,"scheduled currentTime:",t,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Fo),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(t,n){const s=aTe(t);for(let r=0;r<s.length;r++){const i=s.start(r),o=s.end(r);if(n-i<4&&n-i>2)return{start:i,end:o}}return null}}const hwe={errorInterval:30,getSource(e){const n=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return e(n)}},XR=function(e,t){let n=0,s=0;const r=yn(hwe,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const i=function(){s&&e.currentTime(s)},o=function(d){d!=null&&(s=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",i),e.src(d),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},a=function(){if(Date.now()-n<r.errorInterval*1e3){e.trigger({type:"usage",name:"vhs-error-reload-canceled"});return}if(!r.getSource||typeof r.getSource!="function"){je.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return n=Date.now(),r.getSource.call(e,o)},l=function(){e.off("loadedmetadata",i),e.off("error",a),e.off("dispose",l)},u=function(d){l(),XR(e,d)};e.on("error",a),e.on("dispose",l),e.reloadSourceOnError=u},pwe=function(e){XR(this,e)};var QR="3.0.0",mwe="6.2.0",gwe="1.0.1",vwe="6.0.0",ywe="4.0.1";const Ts={PlaylistLoader:wl,Playlist:Ds,utils:NTe,STANDARD_PLAYLIST_SELECTOR:uk,INITIAL_PLAYLIST_SELECTOR:bSe,lastBandwidthSelector:uk,movingAverageBandwidthSelector:vSe,comparePlaylistBandwidth:dT,comparePlaylistResolution:gSe,xhr:xR()};Object.keys(Xn).forEach(e=>{Object.defineProperty(Ts,e,{get(){return je.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),Xn[e]},set(t){if(je.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),typeof t!="number"||t<0){je.log.warn(`value of Vhs.${e} must be greater than or equal to 0`);return}Xn[e]=t}})});const JR="videojs-vhs",ZR=function(e,t){const n=t.media();let s=-1;for(let r=0;r<e.length;r++)if(e[r].id===n.id){s=r;break}e.selectedIndex_=s,e.trigger({selectedIndex:s,type:"change"})},bwe=function(e,t){t.representations().forEach(n=>{e.addQualityLevel(n)}),ZR(e,t.playlists)};Ts.canPlaySource=function(){return je.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const _we=(e,t,n)=>{if(!e)return e;let s={};t&&t.attributes&&t.attributes.CODECS&&(s=em(Jr(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(s.audio=n.attributes.CODECS);const r=kd(s.video),i=kd(s.audio),o={};for(const a in e)o[a]={},i&&(o[a].audioContentType=i),r&&(o[a].videoContentType=r),t.contentProtection&&t.contentProtection[a]&&t.contentProtection[a].pssh&&(o[a].pssh=t.contentProtection[a].pssh),typeof e[a]=="string"&&(o[a].url=e[a]);return yn(e,o)},Twe=(e,t)=>e.reduce((n,s)=>{if(!s.contentProtection)return n;const r=t.reduce((i,o)=>{const a=s.contentProtection[o];return a&&a.pssh&&(i[o]={pssh:a.pssh}),i},{});return Object.keys(r).length&&n.push(r),n},[]),Swe=({player:e,sourceKeySystems:t,audioMedia:n,mainPlaylists:s})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=n?s.concat([n]):s,i=Twe(r,Object.keys(t)),o=[],a=[];return i.forEach(l=>{a.push(new Promise((u,d)=>{e.tech_.one("keysessioncreated",u)})),o.push(new Promise((u,d)=>{e.eme.initializeMediaKeys({keySystems:l},f=>{if(f){d(f);return}u()})}))}),Promise.race([Promise.all(o),Promise.race(a)])},wwe=({player:e,sourceKeySystems:t,media:n,audioMedia:s})=>{const r=_we(t,n,s);return r?(e.currentSource().keySystems=r,r&&!e.eme?(je.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},eL=()=>{if(!ge.localStorage)return null;const e=ge.localStorage.getItem(JR);if(!e)return null;try{return JSON.parse(e)}catch{return null}},Cwe=e=>{if(!ge.localStorage)return!1;let t=eL();t=t?yn(t,e):e;try{ge.localStorage.setItem(JR,JSON.stringify(t))}catch{return!1}return t},Ewe=e=>e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(e.substring(e.indexOf(",")+1)):e;Ts.supportsNativeHls=function(){if(!dt||!dt.createElement)return!1;const e=dt.createElement("video");return je.getTech("Html5").isSupported()?["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(n){return/maybe|probably/i.test(e.canPlayType(n))}):!1}();Ts.supportsNativeDash=function(){return!dt||!dt.createElement||!je.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(dt.createElement("video").canPlayType("application/dash+xml"))}();Ts.supportsTypeNatively=e=>e==="hls"?Ts.supportsNativeHls:e==="dash"?Ts.supportsNativeDash:!1;Ts.isSupported=function(){return je.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const xwe=je.getComponent("Component");class tL extends xwe{constructor(t,n,s){if(super(n,s.vhs),typeof s.initialBandwidth=="number"&&(this.options_.bandwidth=s.initialBandwidth),this.logger_=Yr("VhsHandler"),n.options_&&n.options_.playerId){const r=je.getPlayer(n.options_.playerId);this.player_=r}if(this.tech_=n,this.source_=t,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(dt,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=>{const i=dt.fullscreenElement||dt.webkitFullscreenElement||dt.mozFullScreenElement||dt.msFullscreenElement;i&&i.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(){if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=this.options_.llhls!==!1,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,typeof this.options_.playlistExclusionDuration!="number"&&(this.options_.playlistExclusionDuration=5*60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){const t=eL();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=Xn.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Xn.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(t=>{typeof this.source_[t]<"u"&&(this.options_[t]=this.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}src(t,n){if(!t)return;this.setOptions_(),this.options_.src=Ewe(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Ts,this.options_.sourceType=uN(n),this.options_.seekTo=i=>{this.tech_.setCurrentTime(i)},this.playlistController_=new lwe(this.options_);const s=yn({liveRangeSafeTimeDelta:ai},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new fwe(s),this.playlistController_.on("error",()=>{const i=je.players[this.tech_.options_.playerId];let o=this.playlistController_.error;typeof o=="object"&&!o.code?o.code=3:typeof o=="string"&&(o={message:o,code:3}),i.error(o)});const r=this.options_.bufferBasedABR?Ts.movingAverageBandwidthSelector(.55):Ts.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=Ts.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(i){this.playlistController_.selectPlaylist=i.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(i){this.playlistController_.mainSegmentLoader_.throughput.rate=i,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let i=this.playlistController_.mainSegmentLoader_.bandwidth;const o=ge.navigator.connection||ge.navigator.mozConnection||ge.navigator.webkitConnection,a=1e7;if(this.options_.useNetworkInformationApi&&o){const l=o.downlink*1e3*1e3;l>=a&&i>=a?i=Math.max(i,l):i=l}return i},set(i){this.playlistController_.mainSegmentLoader_.bandwidth=i,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const i=1/(this.bandwidth||1);let o;return this.throughput>0?o=1/this.throughput:o=0,Math.floor(1/(i+o))},set(){je.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>Ta(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>Ta(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&Cwe({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{dwe(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=ge.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),Swe({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(n=>{this.logger_("error while creating EME key session",n),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=wwe({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});if(this.player_.tech_.on("keystatuschange",s=>{if(s.status!=="output-restricted")return;const r=this.playlistController_.main();if(!r||!r.playlists)return;const i=[];r.playlists.forEach(o=>{o&&o.attributes&&o.attributes.RESOLUTION&&o.attributes.RESOLUTION.height>=720&&(!o.excludeUntil||o.excludeUntil<1/0)&&(o.excludeUntil=1/0,i.push(o))}),i.length&&(je.log.warn('DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.',...i),this.playlistController_.fastQualityChange_())}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),je.browser.IE_VERSION===11||!n){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){const t=je.players[this.tech_.options_.playerId];!t||!t.qualityLevels||this.qualityLevels_||(this.qualityLevels_=t.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{bwe(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{ZR(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":QR,"mux.js":mwe,"mpd-parser":gwe,"m3u8-parser":vwe,"aes-decrypter":ywe}}version(){return this.constructor.version()}canChangeType(){return GR.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(t){this.playlistController_.setCurrentTime(t)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&ge.URL.revokeObjectURL&&(ge.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(t,n){return VTe({playlist:this.playlistController_.media(),time:t,callback:n})}seekToProgramTime(t,n,s=!0,r=2){return PR({programTime:t,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:s,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:n})}}const fT={name:"videojs-http-streaming",VERSION:QR,canHandleSource(e,t={}){const n=yn(je.options,t);return fT.canPlayType(e.type,n)},handleSource(e,t,n={}){const s=yn(je.options,n);return t.vhs=new tL(e,t,s),t.vhs.xhr=xR(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t={}){const{vhs:{overrideNative:n=!je.browser.IS_ANY_SAFARI}={}}=yn(je.options,t),s=uN(e);return s&&(!Ts.supportsTypeNatively(s)||n)?"maybe":""}},kwe=()=>Jh("avc1.4d400d,mp4a.40.2");kwe()&&je.getTech("Html5").registerSourceHandler(fT,0);je.VhsHandler=tL;je.VhsSourceHandler=fT;je.Vhs=Ts;je.use||je.registerComponent("Vhs",Ts);je.options.vhs=je.options.vhs||{};(!je.getPlugin||!je.getPlugin("reloadSourceOnError"))&&je.registerPlugin("reloadSourceOnError",pwe);function jv(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]])}return n}var Owe={src:{type:String,onChange:function(e,t){return e.src(t)}},width:{type:Number,onChange:function(e,t){return e.width(t)},onEvent:function(e,t){e.on(["playerresize","resize"],function(){return t(e.width())})}},height:{type:Number,onChange:function(e,t){return e.height(t)},onEvent:function(e,t){e.on(["playerresize","resize"],function(){return t(e.height())})}},preload:{type:String,onChange:function(e,t){return e.preload(t)}},loop:{type:Boolean,onChange:function(e,t){return e.loop(t)}},muted:{type:Boolean,onChange:function(e,t){return e.muted(t)},onEvent:function(e,t){return e.on("volumechange",function(){return t(e.muted())})}},poster:{type:String,onChange:function(e,t){return e.poster(t)},onEvent:function(e,t){return e.on("posterchange",function(){return t(e.poster())})}},controls:{type:Boolean,onChange:function(e,t){return e.controls(t)},onEvent:function(e,t){e.on("controlsenabled",function(){return t(!0)}),e.on("controlsdisabled",function(){return t(!1)})}},autoplay:{type:[Boolean,String],onChange:function(e,t){return e.autoplay(t)}},crossorigin:{type:String,onChange:function(e,t){return e.crossOrigin(t)}},crossOrigin:{type:String,onChange:function(e,t){return e.crossOrigin(t)}},playsinline:{type:Boolean,onChange:function(e,t){return e.playsinline(t)}},playsInline:{type:Boolean,onChange:function(e,t){return e.playsinline(t)}}},Awe={id:{type:String},sources:{type:Array,onChange:function(e,t){return e.src(t)}},tracks:{type:Array,onChange:function(e,t){for(var n=e.remoteTextTracks(),s=(n==null?void 0:n.length)||0;s--;)e.removeRemoteTextTrack(n[s]);e.ready(function(){t.forEach(function(r){return e.addRemoteTextTrack(r,!1)})})}},textTrackSettings:{type:Object,onChange:function(e,t){return e.textTrackSettings.options(t)}},language:{type:String,onChange:function(e,t){return e.language(t)},onEvent:function(e,t){return e.on("languagechange",function(){return t(e.language())})}},languages:{type:Object},playbackRates:{type:Array,onChange:function(e,t){return e.playbackRates(t??[])},onEvent:function(e,t){e.on("playbackrateschange",function(){return t(e.playbackRates())})}},audioOnlyMode:{type:Boolean,onChange:function(e,t){return e.audioOnlyMode(t)}},audioPosterMode:{type:Boolean,onChange:function(e,t){return e.audioPosterMode(t)}},responsive:{type:Boolean,onChange:function(e,t){return e.responsive(t)}},breakpoints:{type:Object,onChange:function(e,t){return e.breakpoints(t)}},fluid:{type:Boolean,onChange:function(e,t){return e.fluid(t)}},fill:{type:Boolean,onChange:function(e,t){return e.fill(t)}},aspectRatio:{type:String,onChange:function(e,t){return e.aspectRatio(t)}},fullscreen:{type:Object},liveui:{type:Boolean},liveTracker:{type:Object},disablePictureInPicture:{type:Boolean,onChange:function(e,t){return e.disablePictureInPicture(t)}},notSupportedMessage:{type:String},normalizeAutoplay:{type:Boolean},noUITitleAttributes:{type:Boolean},preferFullWindow:{type:Boolean},suppressNotSupportedError:{type:Boolean},techCanOverridePoster:{type:Boolean},reportTouchActivity:{type:Boolean},techOrder:{type:Array},inactivityTimeout:{type:Number},userActions:{type:Object},plugins:{type:Object},restoreEl:{type:[Boolean,Object]},"vtt.js":{type:String}},Iwe={children:{type:[Array,Object]},controlBar:{type:Object,onChange:function(e,t){return e.controlBar.options(t)}}},Pwe={html5:{type:Object}},$we={volume:{type:Number,onChange:function(e,t){return e.volume(t)},onEvent:function(e,t){return e.on("volumechange",function(){return t(e.volume())})}},playbackRate:{type:Number,onChange:function(e,t){e.playbackRate(t),e.defaultPlaybackRate(t)},onEvent:function(e,t){e.on("ratechange",function(){t(e.playbackRate())})}},options:{type:Object}},Rd=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Owe),Awe),Iwe),Pwe),$we),hT=Object.keys(Rd),nL=Object.assign(Object.assign(Object.assign(Object.assign({},{loadstart:"onLoadStart",suspend:"onSuspend",abort:"onAbort",error:"onError",emptied:"onEmptied",stalled:"onStalled",loadedmetadata:"onLoadedMetadata",loadeddata:"onLoadedData",canplay:"onCanPlay",canplaythrough:"onCanPlayThrough",playing:"onPlaying",waiting:"onWaiting",seeking:"onSeeking",seeked:"onSeeked",ended:"onEnded",durationchange:"onDurationChange",timeupdate:"onTimeUpdate",progress:"onProgress",play:"onPlay",pause:"onpause",ratechange:"onRateChange",resize:"onResize",volumechange:"onVolumeChange"}),{posterchange:"onPosterChange",languagechange:"onLanguageChange",fullscreenchange:"onFullscreenChange",playbackrateschange:"onPlaybackRatesChange",controlsdisabled:"onControlsDisabled",controlsenabled:"onControlsEnabled",enterFullWindow:"onEnterFullWindow",exitFullWindow:"onExitFullWindow",enterpictureinpicture:"onEnterPictureInPicture",leavepictureinpicture:"onLeavePictureInPicture",sourceset:"onSourceSet",texttrackchange:"onTextTrackChange",textdata:"onTextData",useractive:"onUserActive",userinactive:"onUserInactive",usingcustomcontrols:"onUsingCustomControls",usingnativecontrols:"onUsingNativeControls",dispose:"onDispose"}),{beforepluginsetup:"onBeforePluginSetup",pluginsetup:"onPluginSetup"}),{componentresize:"onComponentResize",playerresize:"onPlayerResize",ready:"onReady",tap:"onTap"}),sL=Object.keys(nL);Object.values(nL);var Kv=function(e){var t,n=e==null?void 0:e.trim().replace(/\s+/g," ");return n&&(t=n.split(" "))!==null&&t!==void 0?t:[]},Wv={src:{getter:function(e){return e.src()}},currentSrc:{getter:function(e){return e.currentSrc()}},currentSource:{getter:function(e){return e.currentSource()}},width:{events:["resize","playerresize"],getter:function(e){return e.width()}},height:{events:["resize","playerresize"],getter:function(e){return e.height()}},currentWidth:{events:["resize","playerresize"],getter:function(e){return e.currentWidth()}},currentHeight:{events:["resize","playerresize"],getter:function(e){return e.currentHeight()}},videoWidth:{events:["resize","playerresize"],getter:function(e){return e.videoWidth()}},videoHeight:{events:["resize","playerresize"],getter:function(e){return e.videoHeight()}},controls:{events:["controlsdisabled","controlsenabled"],getter:function(e){return e.controls()}},volume:{events:["volumechange"],getter:function(e){return e.volume()}},muted:{events:["volumechange"],getter:function(e){return e.muted()}},poster:{events:["posterchange"],getter:function(e){return e.poster()}},seeking:{events:["seeking"],getter:function(e){return e.seeking()}},paused:{events:["pause","play","playing"],getter:function(e){return e.paused()}},ended:{events:["ended","play"],getter:function(e){return e.ended()}},currentTime:{events:["timeupdate"],getter:function(e){return e.currentTime()}},duration:{events:["durationchange"],getter:function(e){return e.duration()}},playbackRate:{events:["ratechange"],getter:function(e){return e.playbackRate()}},playbackRates:{events:["playbackrateschange"],getter:function(e){return e.playbackRates()}},isFullscreen:{events:["fullscreenchange"],getter:function(e){return e.isFullscreen()}},isInPictureInPicture:{events:["enterpictureinpicture","leavepictureinpicture"],getter:function(e){return e.isInPictureInPicture()}},isLive:{getter:function(e){var t;return(t=e.liveTracker)===null||t===void 0?void 0:t.isLive()}},language:{events:["languagechange"],getter:function(e){return e.language()}},userActive:{events:["useractive","userinactive"],getter:function(e){return e.userActive()}},readyState:{events:["loadeddata"],getter:function(e){return e.readyState()}},networkState:{events:["loadeddata","error"],getter:function(e){return e.networkState()}},error:{events:["loadeddata","error"],getter:function(e){return e.error()}},buffered:{events:["progress"],getter:function(e){return e.buffered()}},bufferedPercent:{events:["progress"],getter:function(e){return e.bufferedPercent()}},played:{events:["timeupdate"],getter:function(e){return e.played()}},seekable:{events:["progress","seeked"],getter:function(e){return e.seekable()}},audioTracks:{getter:function(e){var t;return(t=e.audioTracks)===null||t===void 0?void 0:t.call(e)}},videoTracks:{getter:function(e){var t;return(t=e.videoTracks)===null||t===void 0?void 0:t.call(e)}},textTracks:{getter:function(e){var t;return(t=e.textTracks)===null||t===void 0?void 0:t.call(e)}}},rL=hT.filter(function(e){return!!Rd[e].onEvent}),iL=function(e){return"update:"+e},Nwe=sL.concat(rL.map(iL)),Mwe=hT.reduce(function(e,t){var n,s=Rd[t],r=Array.isArray(s.type)?s.type:[s.type],i=Object.assign({},s);return r.includes(Boolean)&&(i.default=void 0),Object.assign(Object.assign({},e),((n={})[t]=i,n))},{}),Rwe=te({name:"VueVideoPlayer",props:Object.assign(Object.assign({},Mwe),{class:[String,Object,Array]}),emits:Nwe.concat(["mounted"],["unmounted"]),setup:function(e,t){var n=Xt(e),s=n.class,r=jv(n,["class"]),i=nn(!1),o=nn(null),a=nn(null),l=E(function(){return a.value?a.value.player:null}),u=B(null),d=E(function(){return u.value?Fa(u.value):null});return Tt(function(){var f,h=function(p){var g,m=p.props,v=p.element,y=p.className,T=p.onEvent,_=m.options;_===void 0&&(_={});var S=jv(m,["options"]),w={};Object.keys(S).forEach(function(R){var q=S[R];q!==void 0&&(w[R]=q)});var A=Object.assign(Object.assign({},w),_),M=A.volume,N=A.playbackRate,L=jv(A,["volume","playbackRate"]),F=Object.assign(Object.assign({},L),{playsinline:(g=L.playsinline)!==null&&g!==void 0?g:L.playsInline}),W=je(v,F,function(){var R=this;sL.forEach(function(q){R.on(q,function(X){T(q,X)})}),L.src&&!L.sources&&this.src(L.src),M&&Number.isFinite(M)&&this.volume(M),N&&Number.isFinite(N)&&(this.defaultPlaybackRate(N),setTimeout(function(){R.playbackRate(N)},0))});y&&Kv(y).map(function(R){return W.addClass(R)});var j=function(R){var q;(q=W.options)===null||q===void 0||q.call(W,R??{})};return{player:W,dispose:function(){return W.dispose()},updateClassNames:function(R,q){Kv(R).map(function(X){return W.removeClass(X)}),Kv(q).map(function(X){return W.addClass(X)})},updateOptions:j,updatePropOption:function(R,q){var X,K,$;j(((X={})[R]=q,X)),($=(K=Rd[R])===null||K===void 0?void 0:K.onChange)===null||$===void 0||$.call(K,W,q)}}}({element:o.value,props:r,onEvent:t.emit});f={player:h.player,onEvent:t.emit},rL.forEach(function(p){var g,m;(m=(g=Rd[p])===null||g===void 0?void 0:g.onEvent)===null||m===void 0||m.call(g,f.player,function(v){f.onEvent(iL(p),v)})}),ke(function(){return e.class},function(p,g){var m=I(g),v=I(p);h.updateClassNames(m,v)},{immediate:!0}),ke(function(){return e.options},function(p){return h.updateOptions(p??{})},{deep:!0}),hT.filter(function(p){return p!=="options"}).forEach(function(p){ke(function(){return e[p]},function(g){return h.updatePropOption(p,g)},{deep:!0})}),function(p,g){var m=Object.keys(Wv),v=m.reduce(function(T,_){var S;return Object.assign(Object.assign({},T),((S={})[_]=Wv[_].getter(p),S))},{playing:!1,waiting:!1}),y=function(T,_){v[T]=_,g.onUpdate(T,_,Object.assign({},v))};p.on(["pause","ended"],function(){y("playing",!1)}),p.on(["play","playing"],function(){y("playing",!0)}),p.on("waiting",function(){y("waiting",!0);var T=p.currentTime(),_=function(){T!==p.currentTime()&&(y("waiting",!1),p.off("timeupdate",_))};p.on("timeupdate",_)}),m.forEach(function(T){var _,S=Wv[T];p.on(["loadstart","loadedmetadata"].concat((_=S.events)!==null&&_!==void 0?_:[]),function(){y(T,S.getter(p))})}),g.onInit(Object.assign({},v))}(h.player,{onInit:function(p){u.value=p},onUpdate:function(p,g){u.value&&(u.value[p]=g)}}),a.value=h,i.value=!0,t.emit("mounted",{video:o.value,player:l.value,state:d.value})}),ln(function(){a.value&&(a.value.dispose(),a.value=null,u.value=null,t.emit("unmounted"))}),function(){var f,h;return ot("div",{"data-vjs-player":"",class:I(s)},[ot("video",{class:["video-js","v-video-player"],ref:o}),i.value&&((h=(f=t.slots).default)===null||h===void 0?void 0:h.call(f,{video:o.value,player:l.value,state:d.value}))])}}}),Lwe=Rwe;const Dwe=e=>(Su("data-v-60455942"),e=e(),wu(),e),Fwe={class:"player_area"},Bwe={class:"player_p"},Vwe={class:"current_play_info"},Uwe={class:"play_info_left"},Hwe={class:"current_play_title"},zwe=["href"],jwe={class:"tags"},Kwe={class:"play_list"},Wwe=Dwe(()=>V("h2",{class:"hidden-md-and-down"},"播放列表:(右侧切换播放源)",-1)),qwe={class:"play_content"},Gwe=["onClick"],Ywe={class:"correlation"},Xwe=te({__name:"Play",setup(e){const t=a=>{switch(a.preventDefault(),a.keyCode){case 32:console.log(a.target.paused),a.target.paused?a.target.play():a.target.pause();break;case 37:a.target.currentTime=a.target.currentTime-5<0?0:a.target.currentTime-5;break;case 39:a.target.currentTime=a.target.currentTime+5>a.target.duration?a.target.duration:a.target.currentTime+5;break;case 38:r.options.volume=r.options.volume+.05>1?1:r.options.volume+.05;break;case 40:r.options.volume=r.options.volume-.05<0?0:r.options.volume-.05;break}},n=a=>{let l=document.getElementsByTagName("video")[0];l.focus();const u=document.createEvent("HTMLEvents");u.initEvent("keydown",!0,!1),u.keyCode=a,l.dispatchEvent(u)},s=a=>{let l=document.getElementsByClassName("vjs-button");for(let u of l)u.addEventListener("keydown",function(d){d.preventDefault(),n(d.keyCode)})},r=Bt({loading:!1,detail:{id:"",cid:"",pid:"",name:"",picture:"",playFrom:[],DownFrom:"",playList:[[]],downloadList:"",descriptor:{subTitle:"",cName:"",enName:"",initial:"",classTag:"",actor:"",director:"",writer:"",blurb:"",remarks:"",releaseDate:"",area:"",language:"",year:"",state:"",updateTime:"",addTime:"",dbId:"",dbScore:"",hits:"",content:""}},current:{index:0,episode:"",link:""},currentTabName:"",currentPlayFrom:0,currentEpisode:0,relate:[],options:{title:"",src:"",volume:.6,currentTime:0}}),i=Iu();Ba(()=>{let a=i.currentRoute.value.query;$u("/filmPlayInfo",{id:a.id,playFrom:a.source,episode:a.episode}).then(l=>{l.status==="ok"?(r.detail=l.data.detail,r.current={index:l.data.currentEpisode,...l.data.current},r.currentPlayFrom=l.data.currentPlayFrom,r.currentEpisode=l.data.currentEpisode,r.relate=l.data.relate,r.currentTabName=`tab-${a.source}`,r.options.src=r.current.link,r.loading=!0):Gi.error("影片信息加载失败,请尝试刷新页面!!!")})});const o=a=>{let l=r.detail.playList[a.sourceIndex][a.episodeIndex];r.current={index:a.episodeIndex,episode:l.episode,link:l.link},r.options.src=l.link,r.options.title=r.detail.name+" "+l.episode};return(a,l)=>{const u=nt,d=K_,f=j_;return gt((x(),z("div",Fwe,[V("div",Bwe,[G(c(Lwe),{onMounted:s,src:r.options.src,poster:c(N0e),controls:"",loop:!1,onKeydown:t,bufferedPercent:30,volume:r.options.volume,crossorigin:"anonymous",playsinline:"",class:"video-player","playback-rates":[.5,1,1.5,2]},null,8,["src","poster","volume","playback-rates"])]),V("div",Vwe,[V("div",Uwe,[V("h3",Hwe,[V("a",{href:`/filmDetail?link=${r.detail.id}`},we(r.detail.name),9,zwe),wt(we(r.current.episode),1)]),V("div",jwe,[V("b",null,[G(u,null,{default:ee(()=>[G(c(EO))]),_:1}),wt(" "+we(r.detail.descriptor.cName),1)]),V("span",null,we(r.detail.descriptor.classTag?r.detail.descriptor.classTag:"未知"),1),V("span",null,we(r.detail.descriptor.year),1),V("span",null,we(r.detail.descriptor.area),1)])])]),V("div",Kwe,[Wwe,G(f,{type:"card",modelValue:r.currentTabName,"onUpdate:modelValue":l[0]||(l[0]=h=>r.currentTabName=h),class:"plya_tabs"},{default:ee(()=>[(x(!0),z(et,null,kt(r.detail.playList,(h,p)=>(x(),ve(d,{name:`tab-${p}`,label:`播放列表${p+1}`},{default:ee(()=>[V("div",qwe,[(x(!0),z(et,null,kt(h,(g,m)=>(x(),z("a",{href:"javascript:void(false)",onClick:v=>o({sourceIndex:p,episodeIndex:m,target:this}),class:I(g.link==r.current.link?"play_active":"")},we(g.episode),11,Gwe))),256))])]),_:2},1032,["name","label"]))),256))]),_:1},8,["modelValue"])]),V("div",Ywe,[G(tN,{relateList:r.relate},null,8,["relateList"])])],512)),[[Ut,r.loading]])}}}),Qwe=or(Xwe,[["__scopeId","data-v-60455942"]]),pT=e=>(Su("data-v-1c8b09d3"),e=e(),wu(),e),Jwe={class:"container"},Zwe={class:"search_group"},eCe={key:0,class:"search_res"},tCe={class:"title"},nCe={class:"content"},sCe={class:"film_item"},rCe=["href"],iCe={class:"film_intro"},oCe={class:"tags"},aCe={class:"tag_c"},lCe=pT(()=>V("em",null,"导演:",-1)),uCe=pT(()=>V("em",null,"主演:",-1)),cCe={class:"blurb"},dCe=pT(()=>V("em",null,"剧情:",-1)),fCe={class:"pagination_container"},hCe=te({__name:"SearchFilm",setup(e){const t=Iu(),n=Vme(),s=Bt({list:[],page:{current:0},oldSearch:"",search:""});ke([n],(l,u)=>{o(t.currentRoute.value.query.search,t.currentRoute.value.query.current)});const r=l=>{location.href=`/play?id=${l}&episode=0&source=0`},i=()=>{if(s.search.length<=0){Gi.error({message:"搜索信息不能为空",duration:1e3});return}location.href=location.href=`/search?search=${s.search}`},o=(l,u)=>{$u("/searchFilm",{keyword:l,current:u}).then(d=>{s.list=d.data.list,s.page=d.data.page,s.oldSearch=l})};Tt(()=>{t.currentRoute.value.query.search!=null&&o(t.currentRoute.value.query.search+"",t.currentRoute.value.query.current)});const a=l=>{let u=t.currentRoute.value.query;location.href=`/search?search=${u.search}¤t=${l}`};return(l,u)=>{const d=Un,f=I_,h=Um;return x(),z(et,null,[V("div",Jwe,[V("div",Zwe,[gt(V("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>s.search=p),onKeydown:u[1]||(u[1]=p=>{p.keyCode==13&&i()}),placeholder:"输入关键字搜索 动漫,剧集,电影 ",class:"search"},null,544),[[Bd,s.search]]),G(d,{onClick:i,icon:c(dp),style:{}},null,8,["icon"])]),s.list&&s.list.length>0?(x(),z("div",eCe,[V("div",tCe,[V("h2",null,we(s.oldSearch),1),V("p",null,"共找到"+we(s.page.total)+'部与"'+we(s.oldSearch)+'"相关的影视作品',1)]),V("div",nCe,[(x(!0),z(et,null,kt(s.list,p=>(x(),z("div",sCe,[V("a",{href:`/filmDetail?link=${p.id}`,style:st({backgroundImage:`url('${p.picture}')`})},null,12,rCe),V("div",iCe,[V("h3",null,we(p.name),1),V("p",oCe,[V("span",aCe,we(p.cName),1),V("span",null,we(p.year),1),V("span",null,we(p.area),1)]),V("p",null,[lCe,wt(we(p.director),1)]),V("p",null,[uCe,wt(we(p.actor),1)]),V("p",cCe,[dCe,wt(we(p.blurb.replaceAll(" ","")),1)]),G(d,{icon:c(Cm),onClick:g=>r(p.id)},{default:ee(()=>[wt("立即播放")]),_:2},1032,["icon","onClick"])])]))),256))]),V("div",fCe,[G(f,{background:"",layout:"prev, pager, next","current-page":s.page.current,"onUpdate:currentPage":u[2]||(u[2]=p=>s.page.current=p),onCurrentChange:a,"pager-count":5,"page-size":s.page.pageSize,total:s.page.total,"prev-icon":c(TO),"next-icon":c(SO),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])):he("",!0)]),s.oldSearch!=""&&(!s.list||s.list.length==0)?(x(),ve(h,{key:0,description:"未查询到对应影片"})):he("",!0)],64)}}}),pCe=or(hCe,[["__scopeId","data-v-1c8b09d3"]]),mCe={class:"container"},gCe={class:"header"},vCe={class:"c_header"},yCe=["href"],bCe=["href"],_Ce={class:"pagination_container"},TCe=te({__name:"CategoryFilm",setup(e){const t=Bt({category:{},list:[],page:{current:0},cid:-1}),n=Iu(),s=i=>{let o=n.currentRoute.value.query;o.cid&&o.cid!=""?location.href=`/categoryFilm?pid=${o.pid}&cid=${o.cid}¤t=${i}`:location.href=`/categoryFilm?pid=${o.pid}&¤t=${i}`},r=i=>{$u("/filmCategory",{pid:i.pid,cid:i.cid,current:i.current}).then(o=>{o.status==="ok"?(t.category=o.data.category,t.list=o.data.list,t.page=o.page,t.cid=i.cid?i.cid:-1):Gi.error({message:"请先输入影片名称关键字再进行搜索",duration:1e3})})};return Tt(()=>{let i=n.currentRoute.value.query;r({pid:i.pid,cid:i.cid,current:i.current})}),(i,o)=>{const a=I_;return x(),z("div",mCe,[V("div",gCe,[V("p",null,we(t.category.name),1),V("div",vCe,[V("a",{class:I(`nav ${t.cid==-1?"active":""}`),href:`/categoryFilm?pid=${t.category.id}`},"全部"+we(t.category.name),11,yCe),(x(!0),z(et,null,kt(t.category.children,l=>(x(),z("a",{class:I(`nav ${t.cid==l.id?"active":""}`),href:`/categoryFilm?pid=${l.pid}&cid=${l.id}¤t=1`},we(l.name),11,bCe))),256))])]),G(u1,{list:t.list},null,8,["list"]),V("div",_Ce,[G(a,{background:"",layout:"prev, pager, next","current-page":t.page.current,"onUpdate:currentPage":o[0]||(o[0]=l=>t.page.current=l),onCurrentChange:s,"pager-count":5,"page-size":t.page.pageSize,total:t.page.total,"prev-icon":c(TO),"next-icon":c(SO),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])}}}),SCe=or(TCe,[["__scopeId","data-v-d4b88c34"]]),wCe="/assets/404-b813c94a.png",CCe=e=>(Su("data-v-1e1fea99"),e=e(),wu(),e),ECe={class:"container"},xCe=CCe(()=>V("p",{style:{"font-size":"32px",width:"100%",color:"#a574b7","margin-bottom":"20px"}},"你好像走错地方了哦!!!",-1)),kCe=te({__name:"Error404",setup(e){const t=Iu(),n=s=>{switch(s){case"home":t.push("/");break;case"back":t.go(-1);break}};return(s,r)=>{const i=Um;return x(),z("div",ECe,[G(i,{style:{height:"100%","line-height":"100%","font-size":"20px"},"image-size":400,image:c(wCe)},{description:ee(()=>[xCe,V("button",{onClick:r[0]||(r[0]=o=>n("home"))},"主页"),V("button",{onClick:r[1]||(r[1]=o=>n("back"))},"返回")]),_:1},8,["image"])])}}}),OCe=or(kCe,[["__scopeId","data-v-1e1fea99"]]),ACe=[{path:"/",component:Tve,redirect:"/index",children:[{path:"index",component:Wve},{path:"filmDetail",component:$0e},{path:"play",component:Qwe},{path:"search",component:pCe},{path:"CategoryFilm",component:SCe}]},{path:"/:pathMatch(.*)*",component:OCe}],ICe=Fme({history:eme(),routes:ACe}),mT=Eb(Lpe);mT.use(Ppe);mT.use(ICe);mT.mount("#app")});export default PCe();
|