Files
GoFilm/film/data/nginx/html/assets/index-73b7bf54.js
2024-07-11 05:35:22 +08:00

289 lines
1.6 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var KL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var HAe=KL((Cr,Er)=>{(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 a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).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)}})();/**
* @vue/shared v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function A_(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const $n={},vu=[],Jt=()=>{},GL=()=>!1,pg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),I_=e=>e.startsWith("onUpdate:"),Jn=Object.assign,D_=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},YL=Object.prototype.hasOwnProperty,qt=(e,t)=>YL.call(e,t),Xe=Array.isArray,yu=e=>Wf(e)==="[object Map]",yc=e=>Wf(e)==="[object Set]",bl=e=>Wf(e)==="[object Date]",mt=e=>typeof e=="function",bt=e=>typeof e=="string",Vi=e=>typeof e=="symbol",Pt=e=>e!==null&&typeof e=="object",rf=e=>(Pt(e)||mt(e))&&mt(e.then)&&mt(e.catch),$A=Object.prototype.toString,Wf=e=>$A.call(e),kp=e=>Wf(e).slice(8,-1),dm=e=>Wf(e)==="[object Object]",O_=e=>bt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pd=A_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mg=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},XL=/-(\w)/g,qr=mg(e=>e.replace(XL,(t,n)=>n?n.toUpperCase():"")),QL=/\B([A-Z])/g,wo=mg(e=>e.replace(QL,"-$1").toLowerCase()),Kf=mg(e=>e.charAt(0).toUpperCase()+e.slice(1)),$d=mg(e=>e?`on${Kf(e)}`:""),lo=(e,t)=>!Object.is(e,t),Ap=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},RA=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},fm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},JL=e=>{const t=bt(e)?Number(e):NaN;return isNaN(t)?e:t};let Kw;const NA=()=>Kw||(Kw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function it(e){if(Xe(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=bt(s)?n6(s):it(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(bt(e)||Pt(e))return e}const ZL=/;(?![^(]*\))/g,e6=/:([^]+)/,t6=/\/\*[^]*?\*\//g;function n6(e){const t={};return e.replace(t6,"").split(ZL).forEach(n=>{if(n){const s=n.split(e6);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function $(e){let t="";if(bt(e))t=e;else if(Xe(e))for(let n=0;n<e.length;n++){const s=$(e[n]);s&&(t+=s+" ")}else if(Pt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function da(e){if(!e)return null;let{class:t,style:n}=e;return t&&!bt(t)&&(e.class=$(t)),n&&(e.style=it(n)),e}const s6="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",r6=A_(s6);function MA(e){return!!e||e===""}function i6(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=_l(e[s],t[s]);return n}function _l(e,t){if(e===t)return!0;let n=bl(e),s=bl(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Vi(e),s=Vi(t),n||s)return e===t;if(n=Xe(e),s=Xe(t),n||s)return n&&s?i6(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 a in e){const o=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(o&&!l||!o&&l||!_l(e[a],t[a]))return!1}}return String(e)===String(t)}function P_(e,t){return e.findIndex(n=>_l(n,t))}const LA=e=>!!(e&&e.__v_isRef===!0),pe=e=>bt(e)?e:e==null?"":Xe(e)||Pt(e)&&(e.toString===$A||!mt(e.toString))?LA(e)?pe(e.value):JSON.stringify(e,BA,2):String(e),BA=(e,t)=>LA(t)?BA(e,t.value):yu(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[n0(s,i)+" =>"]=r,n),{})}:yc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>n0(n))}:Vi(t)?n0(t):Pt(t)&&!Xe(t)&&!dm(t)?String(t):t,n0=(e,t="")=>{var n;return Vi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let _r;class FA{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=_r,!t&&_r&&(this.index=(_r.scopes||(_r.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=_r;try{return _r=this,t()}finally{_r=n}}}on(){_r=this}off(){_r=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 a6(e){return new FA(e)}function o6(e,t=_r){t&&t.active&&t.effects.push(e)}function VA(){return _r}function UA(e){_r&&_r.cleanups.push(e)}let ll;class $_{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,o6(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,To();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(l6(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Co()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ro,n=ll;try{return ro=!0,ll=this,this._runnings++,Gw(this),this.fn()}finally{Yw(this),this._runnings--,ll=n,ro=t}}stop(){this.active&&(Gw(this),Yw(this),this.onStop&&this.onStop(),this.active=!1)}}function l6(e){return e.value}function Gw(e){e._trackId++,e._depsLength=0}function Yw(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)HA(e.deps[t],e);e.deps.length=e._depsLength}}function HA(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let ro=!0,by=0;const zA=[];function To(){zA.push(ro),ro=!1}function Co(){const e=zA.pop();ro=e===void 0?!0:e}function R_(){by++}function N_(){for(by--;!by&&_y.length;)_y.shift()()}function jA(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&HA(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const _y=[];function qA(e,t,n){R_();for(const s of e.keys()){let r;s._dirtyLevel<t&&(r??(r=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(r??(r=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&_y.push(s.scheduler)))}N_()}const WA=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},hm=new WeakMap,ul=Symbol(""),Sy=Symbol("");function ar(e,t,n){if(ro&&ll){let s=hm.get(e);s||hm.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=WA(()=>s.delete(n))),jA(ll,r)}}function fa(e,t,n,s,r,i){const a=hm.get(e);if(!a)return;let o=[];if(t==="clear")o=[...a.values()];else if(n==="length"&&Xe(e)){const l=Number(s);a.forEach((u,c)=>{(c==="length"||!Vi(c)&&c>=l)&&o.push(u)})}else switch(n!==void 0&&o.push(a.get(n)),t){case"add":Xe(e)?O_(n)&&o.push(a.get("length")):(o.push(a.get(ul)),yu(e)&&o.push(a.get(Sy)));break;case"delete":Xe(e)||(o.push(a.get(ul)),yu(e)&&o.push(a.get(Sy)));break;case"set":yu(e)&&o.push(a.get(ul));break}R_();for(const l of o)l&&qA(l,4);N_()}function u6(e,t){const n=hm.get(e);return n&&n.get(t)}const c6=A_("__proto__,__v_isRef,__isVue"),KA=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vi)),Xw=d6();function d6(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=en(this);for(let i=0,a=this.length;i<a;i++)ar(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(en)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){To(),R_();const s=en(this)[t].apply(this,n);return N_(),Co(),s}}),e}function f6(e){Vi(e)||(e=String(e));const t=en(this);return ar(t,"has",e),t.hasOwnProperty(e)}class GA{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?E6:JA:i?QA:XA).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=Xe(t);if(!r){if(a&&qt(Xw,n))return Reflect.get(Xw,n,s);if(n==="hasOwnProperty")return f6}const o=Reflect.get(t,n,s);return(Vi(n)?KA.has(n):c6(n))||(r||ar(t,"get",n),i)?o:hn(o)?a&&O_(n)?o:o.value:Pt(o)?r?Ol(o):Ct(o):o}}class YA extends GA{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const l=af(i);if(!pm(s)&&!af(s)&&(i=en(i),s=en(s)),!Xe(t)&&hn(i)&&!hn(s))return l?!1:(i.value=s,!0)}const a=Xe(t)&&O_(n)?Number(n)<t.length:qt(t,n),o=Reflect.set(t,n,s,r);return t===en(r)&&(a?lo(s,i)&&fa(t,"set",n,s):fa(t,"add",n,s)),o}deleteProperty(t,n){const s=qt(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&fa(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Vi(n)||!KA.has(n))&&ar(t,"has",n),s}ownKeys(t){return ar(t,"iterate",Xe(t)?"length":ul),Reflect.ownKeys(t)}}class h6 extends GA{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const p6=new YA,m6=new h6,g6=new YA(!0),M_=e=>e,gg=e=>Reflect.getPrototypeOf(e);function Wh(e,t,n=!1,s=!1){e=e.__v_raw;const r=en(e),i=en(t);n||(lo(t,i)&&ar(r,"get",t),ar(r,"get",i));const{has:a}=gg(r),o=s?M_:n?V_:of;if(a.call(r,t))return o(e.get(t));if(a.call(r,i))return o(e.get(i));e!==r&&e.get(t)}function Kh(e,t=!1){const n=this.__v_raw,s=en(n),r=en(e);return t||(lo(e,r)&&ar(s,"has",e),ar(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Gh(e,t=!1){return e=e.__v_raw,!t&&ar(en(e),"iterate",ul),Reflect.get(e,"size",e)}function Qw(e){e=en(e);const t=en(this);return gg(t).has.call(t,e)||(t.add(e),fa(t,"add",e,e)),this}function Jw(e,t){t=en(t);const n=en(this),{has:s,get:r}=gg(n);let i=s.call(n,e);i||(e=en(e),i=s.call(n,e));const a=r.call(n,e);return n.set(e,t),i?lo(t,a)&&fa(n,"set",e,t):fa(n,"add",e,t),this}function Zw(e){const t=en(this),{has:n,get:s}=gg(t);let r=n.call(t,e);r||(e=en(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&fa(t,"delete",e,void 0),i}function eT(){const e=en(this),t=e.size!==0,n=e.clear();return t&&fa(e,"clear",void 0,void 0),n}function Yh(e,t){return function(s,r){const i=this,a=i.__v_raw,o=en(a),l=t?M_:e?V_:of;return!e&&ar(o,"iterate",ul),a.forEach((u,c)=>s.call(r,l(u),l(c),i))}}function Xh(e,t,n){return function(...s){const r=this.__v_raw,i=en(r),a=yu(i),o=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=r[e](...s),c=n?M_:t?V_:of;return!t&&ar(i,"iterate",l?Sy:ul),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:o?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function Ma(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function v6(){const e={get(i){return Wh(this,i)},get size(){return Gh(this)},has:Kh,add:Qw,set:Jw,delete:Zw,clear:eT,forEach:Yh(!1,!1)},t={get(i){return Wh(this,i,!1,!0)},get size(){return Gh(this)},has:Kh,add:Qw,set:Jw,delete:Zw,clear:eT,forEach:Yh(!1,!0)},n={get(i){return Wh(this,i,!0)},get size(){return Gh(this,!0)},has(i){return Kh.call(this,i,!0)},add:Ma("add"),set:Ma("set"),delete:Ma("delete"),clear:Ma("clear"),forEach:Yh(!0,!1)},s={get(i){return Wh(this,i,!0,!0)},get size(){return Gh(this,!0)},has(i){return Kh.call(this,i,!0)},add:Ma("add"),set:Ma("set"),delete:Ma("delete"),clear:Ma("clear"),forEach:Yh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Xh(i,!1,!1),n[i]=Xh(i,!0,!1),t[i]=Xh(i,!1,!0),s[i]=Xh(i,!0,!0)}),[e,n,t,s]}const[y6,b6,_6,S6]=v6();function L_(e,t){const n=t?e?S6:_6:e?b6:y6;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(qt(n,r)&&r in s?n:s,r,i)}const w6={get:L_(!1,!1)},T6={get:L_(!1,!0)},C6={get:L_(!0,!1)},XA=new WeakMap,QA=new WeakMap,JA=new WeakMap,E6=new WeakMap;function x6(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function k6(e){return e.__v_skip||!Object.isExtensible(e)?0:x6(kp(e))}function Ct(e){return af(e)?e:F_(e,!1,p6,w6,XA)}function B_(e){return F_(e,!1,g6,T6,QA)}function Ol(e){return F_(e,!0,m6,C6,JA)}function F_(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 a=k6(e);if(a===0)return e;const o=new Proxy(e,a===2?s:n);return r.set(e,o),o}function Rd(e){return af(e)?Rd(e.__v_raw):!!(e&&e.__v_isReactive)}function af(e){return!!(e&&e.__v_isReadonly)}function pm(e){return!!(e&&e.__v_isShallow)}function ZA(e){return e?!!e.__v_raw:!1}function en(e){const t=e&&e.__v_raw;return t?en(t):e}function bu(e){return Object.isExtensible(e)&&RA(e,"__v_skip",!0),e}const of=e=>Pt(e)?Ct(e):e,V_=e=>Pt(e)?Ol(e):e;class e4{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new $_(()=>t(this._value),()=>Nd(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=en(this);return(!t._cacheable||t.effect.dirty)&&lo(t._value,t._value=t.effect.run())&&Nd(t,4),U_(t),t.effect._dirtyLevel>=2&&Nd(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function A6(e,t,n=!1){let s,r;const i=mt(e);return i?(s=e,r=Jt):(s=e.get,r=e.set),new e4(s,r,i||!r,n)}function U_(e){var t;ro&&ll&&(e=en(e),jA(ll,(t=e.dep)!=null?t:e.dep=WA(()=>e.dep=void 0,e instanceof e4?e:void 0)))}function Nd(e,t=4,n,s){e=en(e);const r=e.dep;r&&qA(r,t)}function hn(e){return!!(e&&e.__v_isRef===!0)}function j(e){return t4(e,!1)}function ln(e){return t4(e,!0)}function t4(e,t){return hn(e)?e:new I6(e,t)}class I6{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:en(t),this._value=n?t:of(t)}get value(){return U_(this),this._value}set value(t){const n=this.__v_isShallow||pm(t)||af(t);t=n?t:en(t),lo(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:of(t),Nd(this,4))}}function d(e){return hn(e)?e.value:e}const D6={get:(e,t,n)=>d(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return hn(r)&&!hn(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function n4(e){return Rd(e)?e:new Proxy(e,D6)}class O6{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>U_(this),()=>Nd(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function P6(e){return new O6(e)}function ms(e){const t=Xe(e)?new Array(e.length):{};for(const n in e)t[n]=s4(e,n);return t}class $6{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 u6(en(this._object),this._key)}}class R6{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return hn(e)?e:mt(e)?new R6(e):Pt(e)&&arguments.length>1?s4(e,t,n):j(e)}function s4(e,t,n){const s=e[t];return hn(s)?s:new $6(e,t,n)}/**
* @vue/runtime-core v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function io(e,t,n,s){try{return s?e(...s):e()}catch(r){vg(r,t,n)}}function Fr(e,t,n,s){if(mt(e)){const r=io(e,t,n,s);return r&&rf(r)&&r.catch(i=>{vg(i,t,n)}),r}if(Xe(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Fr(e[i],t,n,s));return r}}function vg(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,a,o)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){To(),io(l,null,10,[e,a,o]),Co();return}}N6(e,n,r,s)}function N6(e,t,n,s=!0){console.error(e)}let lf=!1,wy=!1;const Is=[];let Ii=0;const _u=[];let Ga=null,Yo=0;const r4=Promise.resolve();let H_=null;function ut(e){const t=H_||r4;return e?t.then(this?e.bind(this):e):t}function M6(e){let t=Ii+1,n=Is.length;for(;t<n;){const s=t+n>>>1,r=Is[s],i=uf(r);i<e||i===e&&r.pre?t=s+1:n=s}return t}function z_(e){(!Is.length||!Is.includes(e,lf&&e.allowRecurse?Ii+1:Ii))&&(e.id==null?Is.push(e):Is.splice(M6(e.id),0,e),i4())}function i4(){!lf&&!wy&&(wy=!0,H_=r4.then(o4))}function L6(e){const t=Is.indexOf(e);t>Ii&&Is.splice(t,1)}function B6(e){Xe(e)?_u.push(...e):(!Ga||!Ga.includes(e,e.allowRecurse?Yo+1:Yo))&&_u.push(e),i4()}function tT(e,t,n=lf?Ii+1:0){for(;n<Is.length;n++){const s=Is[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;Is.splice(n,1),n--,s()}}}function a4(e){if(_u.length){const t=[...new Set(_u)].sort((n,s)=>uf(n)-uf(s));if(_u.length=0,Ga){Ga.push(...t);return}for(Ga=t,Yo=0;Yo<Ga.length;Yo++){const n=Ga[Yo];n.active!==!1&&n()}Ga=null,Yo=0}}const uf=e=>e.id==null?1/0:e.id,F6=(e,t)=>{const n=uf(e)-uf(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function o4(e){wy=!1,lf=!0,Is.sort(F6);const t=Jt;try{for(Ii=0;Ii<Is.length;Ii++){const n=Is[Ii];n&&n.active!==!1&&io(n,null,14)}}finally{Ii=0,Is.length=0,a4(),lf=!1,H_=null,(Is.length||_u.length)&&o4()}}function V6(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||$n;let r=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in s){const c=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:h}=s[c]||$n;h&&(r=n.map(g=>bt(g)?g.trim():g)),f&&(r=n.map(fm))}let o,l=s[o=$d(t)]||s[o=$d(qr(t))];!l&&i&&(l=s[o=$d(wo(t))]),l&&Fr(l,e,6,r);const u=s[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Fr(u,e,6,r)}}function l4(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let a={},o=!1;if(!mt(e)){const l=u=>{const c=l4(u,t,!0);c&&(o=!0,Jn(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!o?(Pt(e)&&s.set(e,null),null):(Xe(i)?i.forEach(l=>a[l]=null):Jn(a,i),Pt(e)&&s.set(e,a),a)}function yg(e,t){return!e||!pg(t)?!1:(t=t.slice(2).replace(/Once$/,""),qt(e,t[0].toLowerCase()+t.slice(1))||qt(e,wo(t))||qt(e,t))}let hs=null,bg=null;function mm(e){const t=hs;return hs=e,bg=e&&e.type.__scopeId||null,t}function ur(e){bg=e}function cr(){bg=null}function L(e,t=hs,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&gT(-1);const i=mm(t);let a;try{a=e(...r)}finally{mm(i),s._d&&gT(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function s0(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:a,attrs:o,emit:l,render:u,renderCache:c,props:f,data:h,setupState:g,ctx:m,inheritAttrs:p}=e,y=mm(e);let v,b;try{if(n.shapeFlag&4){const T=r||s,w=T;v=ki(u.call(w,T,c,f,g,h,m)),b=o}else{const T=t;v=ki(T.length>1?T(f,{attrs:o,slots:a,emit:l}):T(f,null)),b=t.props?o:U6(o)}}catch(T){Vd.length=0,vg(T,e,1),v=I(Ss)}let S=v;if(b&&p!==!1){const T=Object.keys(b),{shapeFlag:w}=S;T.length&&w&7&&(i&&T.some(I_)&&(b=H6(b,i)),S=ga(S,b,!1,!0))}return n.dirs&&(S=ga(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),v=S,mm(y),v}const U6=e=>{let t;for(const n in e)(n==="class"||n==="style"||pg(n))&&((t||(t={}))[n]=e[n]);return t},H6=(e,t)=>{const n={};for(const s in e)(!I_(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function z6(e,t,n){const{props:s,children:r,component:i}=e,{props:a,children:o,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?nT(s,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(a[h]!==s[h]&&!yg(u,h))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:s===a?!1:s?a?nT(s,a,u):!0:!!a;return!1}function nT(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]&&!yg(n,i))return!0}return!1}function j6({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const j_="components",q6="directives";function kt(e,t){return q_(j_,e,!0,t)||e}const u4=Symbol.for("v-ndc");function Nt(e){return bt(e)?q_(j_,e,!1)||e:e||u4}function _g(e){return q_(q6,e)}function q_(e,t,n=!0,s=!1){const r=hs||ws;if(r){const i=r.type;if(e===j_){const o=N5(i,!1);if(o&&(o===t||o===qr(t)||o===Kf(qr(t))))return i}const a=sT(r[e]||i[e],t)||sT(r.appContext[e],t);return!a&&s?i:a}}function sT(e,t){return e&&(e[t]||e[qr(t)]||e[Kf(qr(t))])}const W6=e=>e.__isSuspense;function K6(e,t){t&&t.pendingBranch?Xe(e)?t.effects.push(...e):t.effects.push(e):B6(e)}function Sg(e,t,n=ws,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{To();const o=Gf(n),l=Fr(t,n,e,a);return o(),Co(),l});return s?r.unshift(i):r.push(i),i}}const Ea=e=>(t,n=ws)=>{(!Tg||e==="sp")&&Sg(e,(...s)=>t(...s),n)},Pl=Ea("bm"),gt=Ea("m"),c4=Ea("bu"),xa=Ea("u"),un=Ea("bum"),Eo=Ea("um"),G6=Ea("sp"),Y6=Ea("rtg"),X6=Ea("rtc");function Q6(e,t=ws){Sg("ec",e,t)}function yt(e,t){if(hs===null)return e;const n=Cg(hs),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,o,l=$n]=t[r];i&&(mt(i)&&(i={mounted:i,updated:i}),i.deep&&eo(a),s.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:l}))}return e}function Uo(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let a=0;a<r.length;a++){const o=r[a];i&&(o.oldValue=i[a].value);let l=o.dir[s];l&&(To(),Fr(l,n,8,[e.el,o,e,t]),Co())}}function _t(e,t,n,s){let r;const i=n&&n[s];if(Xe(e)||bt(e)){r=new Array(e.length);for(let a=0,o=e.length;a<o;a++)r[a]=t(e[a],a,void 0,i&&i[a])}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,i&&i[a])}else if(Pt(e))if(e[Symbol.iterator])r=Array.from(e,(a,o)=>t(a,o,void 0,i&&i[o]));else{const a=Object.keys(e);r=new Array(a.length);for(let o=0,l=a.length;o<l;o++){const u=a[o];r[o]=t(e[u],u,o,i&&i[o])}}else r=[];return n&&(n[s]=r),r}function ma(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(Xe(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}/*! #__NO_SIDE_EFFECTS__ */function J(e,t){return mt(e)?(()=>Jn({name:e.name},t,{setup:e}))():e}const Md=e=>!!e.type.__asyncLoader;function be(e,t,n={},s,r){if(hs.isCE||hs.parent&&Md(hs.parent)&&hs.parent.isCE)return t!=="default"&&(n.name=t),I("slot",n,s&&s());let i=e[t];i&&i._c&&(i._d=!1),k();const a=i&&d4(i(n)),o=fe(Ge,{key:n.key||a&&a.key||`_${t}`},a||(s?s():[]),a&&e._===1?64:-2);return!r&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),i&&i._c&&(i._d=!0),o}function d4(e){return e.some(t=>_n(t)?!(t.type===Ss||t.type===Ge&&!d4(t.children)):!0)?e:null}function J6(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:$d(s)]=e[s];return n}const Ty=e=>e?R4(e)?Cg(e):Ty(e.parent):null,Ld=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=>Ty(e.parent),$root:e=>Ty(e.root),$emit:e=>e.emit,$options:e=>W_(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,z_(e.update)}),$nextTick:e=>e.n||(e.n=ut.bind(e.proxy)),$watch:e=>y5.bind(e)}),r0=(e,t)=>e!==$n&&!e.__isScriptSetup&&qt(e,t),Z6={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:a,type:o,appContext:l}=e;let u;if(t[0]!=="$"){const g=a[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(r0(s,t))return a[t]=1,s[t];if(r!==$n&&qt(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&qt(u,t))return a[t]=3,i[t];if(n!==$n&&qt(n,t))return a[t]=4,n[t];Cy&&(a[t]=0)}}const c=Ld[t];let f,h;if(c)return t==="$attrs"&&ar(e.attrs,"get",""),c(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==$n&&qt(n,t))return a[t]=4,n[t];if(h=l.config.globalProperties,qt(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return r0(r,t)?(r[t]=n,!0):s!==$n&&qt(s,t)?(s[t]=n,!0):qt(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}},a){let o;return!!n[a]||e!==$n&&qt(e,a)||r0(t,a)||(o=i[0])&&qt(o,a)||qt(s,a)||qt(Ld,a)||qt(r.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:qt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function us(){return f4().slots}function $l(){return f4().attrs}function f4(){const e=It();return e.setupContext||(e.setupContext=M4(e))}function rT(e){return Xe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cy=!0;function e5(e){const t=W_(e),n=e.proxy,s=e.ctx;Cy=!1,t.beforeCreate&&iT(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:o,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:g,updated:m,activated:p,deactivated:y,beforeDestroy:v,beforeUnmount:b,destroyed:S,unmounted:T,render:w,renderTracked:C,renderTriggered:O,errorCaptured:P,serverPrefetch:M,expose:U,inheritAttrs:B,components:W,directives:Q,filters:G}=t;if(u&&t5(u,s,null),a)for(const H in a){const V=a[H];mt(V)&&(s[H]=V.bind(n))}if(r){const H=r.call(n,n);Pt(H)&&(e.data=Ct(H))}if(Cy=!0,i)for(const H in i){const V=i[H],N=mt(V)?V.bind(n,n):mt(V.get)?V.get.bind(n,n):Jt,Y=!mt(V)&&mt(V.set)?V.set.bind(n):Jt,Z=E({get:N,set:Y});Object.defineProperty(s,H,{enumerable:!0,configurable:!0,get:()=>Z.value,set:ne=>Z.value=ne})}if(o)for(const H in o)h4(o[H],s,n,H);if(l){const H=mt(l)?l.call(n):l;Reflect.ownKeys(H).forEach(V=>{Mt(V,H[V])})}c&&iT(c,e,"c");function q(H,V){Xe(V)?V.forEach(N=>H(N.bind(n))):V&&H(V.bind(n))}if(q(Pl,f),q(gt,h),q(c4,g),q(xa,m),q(b5,p),q(E4,y),q(Q6,P),q(X6,C),q(Y6,O),q(un,b),q(Eo,T),q(G6,M),Xe(U))if(U.length){const H=e.exposed||(e.exposed={});U.forEach(V=>{Object.defineProperty(H,V,{get:()=>n[V],set:N=>n[V]=N})})}else e.exposed||(e.exposed={});w&&e.render===Jt&&(e.render=w),B!=null&&(e.inheritAttrs=B),W&&(e.components=W),Q&&(e.directives=Q)}function t5(e,t,n=Jt){Xe(e)&&(e=Ey(e));for(const s in e){const r=e[s];let i;Pt(r)?"default"in r?i=Je(r.from||s,r.default,!0):i=Je(r.from||s):i=Je(r),hn(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[s]=i}}function iT(e,t,n){Fr(Xe(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function h4(e,t,n,s){const r=s.includes(".")?C4(n,s):()=>n[s];if(bt(e)){const i=t[e];mt(i)&&xe(r,i)}else if(mt(e))xe(r,e.bind(n));else if(Pt(e))if(Xe(e))e.forEach(i=>h4(i,t,n,s));else{const i=mt(e.handler)?e.handler.bind(n):t[e.handler];mt(i)&&xe(r,i,e)}}function W_(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,o=i.get(t);let l;return o?l=o:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(u=>gm(l,u,a,!0)),gm(l,t,a)),Pt(t)&&i.set(t,l),l}function gm(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&gm(e,i,n,!0),r&&r.forEach(a=>gm(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const o=n5[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const n5={data:aT,props:oT,emits:oT,methods:wd,computed:wd,beforeCreate:Bs,created:Bs,beforeMount:Bs,mounted:Bs,beforeUpdate:Bs,updated:Bs,beforeDestroy:Bs,beforeUnmount:Bs,destroyed:Bs,unmounted:Bs,activated:Bs,deactivated:Bs,errorCaptured:Bs,serverPrefetch:Bs,components:wd,directives:wd,watch:r5,provide:aT,inject:s5};function aT(e,t){return t?e?function(){return Jn(mt(e)?e.call(this,this):e,mt(t)?t.call(this,this):t)}:t:e}function s5(e,t){return wd(Ey(e),Ey(t))}function Ey(e){if(Xe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Bs(e,t){return e?[...new Set([].concat(e,t))]:t}function wd(e,t){return e?Jn(Object.create(null),e,t):t}function oT(e,t){return e?Xe(e)&&Xe(t)?[...new Set([...e,...t])]:Jn(Object.create(null),rT(e),rT(t??{})):t}function r5(e,t){if(!e)return t;if(!t)return e;const n=Jn(Object.create(null),e);for(const s in t)n[s]=Bs(e[s],t[s]);return n}function p4(){return{app:null,config:{isNativeTag:GL,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 i5=0;function a5(e,t){return function(s,r=null){mt(s)||(s=Jn({},s)),r!=null&&!Pt(r)&&(r=null);const i=p4(),a=new WeakSet;let o=!1;const l=i.app={_uid:i5++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:L5,get config(){return i.config},set config(u){},use(u,...c){return a.has(u)||(u&&mt(u.install)?(a.add(u),u.install(l,...c)):mt(u)&&(a.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!o){const h=I(s,r);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),c&&t?t(h,u):e(h,u,f),o=!0,l._container=u,u.__vue_app__=l,Cg(h.component)}},unmount(){o&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l},runWithContext(u){const c=Bd;Bd=l;try{return u()}finally{Bd=c}}};return l}}let Bd=null;function Mt(e,t){if(ws){let n=ws.provides;const s=ws.parent&&ws.parent.provides;s===n&&(n=ws.provides=Object.create(s)),n[e]=t}}function Je(e,t,n=!1){const s=ws||hs;if(s||Bd){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Bd._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&mt(t)?t.call(s&&s.proxy):t}}const m4={},g4=()=>Object.create(m4),v4=e=>Object.getPrototypeOf(e)===m4;function o5(e,t,n,s=!1){const r={},i=g4();e.propsDefaults=Object.create(null),y4(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=s?r:B_(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function l5(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,o=en(r),[l]=e.propsOptions;let u=!1;if((s||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(yg(e.emitsOptions,h))continue;const g=t[h];if(l)if(qt(i,h))g!==i[h]&&(i[h]=g,u=!0);else{const m=qr(h);r[m]=xy(l,o,m,g,e,!1)}else g!==i[h]&&(i[h]=g,u=!0)}}}else{y4(e,t,r,i)&&(u=!0);let c;for(const f in o)(!t||!qt(t,f)&&((c=wo(f))===f||!qt(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=xy(l,o,f,void 0,e,!0)):delete r[f]);if(i!==o)for(const f in i)(!t||!qt(t,f))&&(delete i[f],u=!0)}u&&fa(e.attrs,"set","")}function y4(e,t,n,s){const[r,i]=e.propsOptions;let a=!1,o;if(t)for(let l in t){if(Pd(l))continue;const u=t[l];let c;r&&qt(r,c=qr(l))?!i||!i.includes(c)?n[c]=u:(o||(o={}))[c]=u:yg(e.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,a=!0)}if(i){const l=en(n),u=o||$n;for(let c=0;c<i.length;c++){const f=i[c];n[f]=xy(r,l,f,u[f],e,!qt(u,f))}}return a}function xy(e,t,n,s,r,i){const a=e[n];if(a!=null){const o=qt(a,"default");if(o&&s===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&mt(l)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const c=Gf(r);s=u[n]=l.call(null,t),c()}}else s=l}a[0]&&(i&&!o?s=!1:a[1]&&(s===""||s===wo(n))&&(s=!0))}return s}function b4(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const i=e.props,a={},o=[];let l=!1;if(!mt(e)){const c=f=>{l=!0;const[h,g]=b4(f,t,!0);Jn(a,h),g&&o.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Pt(e)&&s.set(e,vu),vu;if(Xe(i))for(let c=0;c<i.length;c++){const f=qr(i[c]);lT(f)&&(a[f]=$n)}else if(i)for(const c in i){const f=qr(c);if(lT(f)){const h=i[c],g=a[f]=Xe(h)||mt(h)?{type:h}:Jn({},h);if(g){const m=dT(Boolean,g.type),p=dT(String,g.type);g[0]=m>-1,g[1]=p<0||m<p,(m>-1||qt(g,"default"))&&o.push(f)}}}const u=[a,o];return Pt(e)&&s.set(e,u),u}function lT(e){return e[0]!=="$"&&!Pd(e)}function uT(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function cT(e,t){return uT(e)===uT(t)}function dT(e,t){return Xe(t)?t.findIndex(n=>cT(n,e)):mt(t)&&cT(t,e)?0:-1}const _4=e=>e[0]==="_"||e==="$stable",K_=e=>Xe(e)?e.map(ki):[ki(e)],u5=(e,t,n)=>{if(t._n)return t;const s=L((...r)=>K_(t(...r)),n);return s._c=!1,s},S4=(e,t,n)=>{const s=e._ctx;for(const r in e){if(_4(r))continue;const i=e[r];if(mt(i))t[r]=u5(r,i,s);else if(i!=null){const a=K_(i);t[r]=()=>a}}},w4=(e,t)=>{const n=K_(t);e.slots.default=()=>n},c5=(e,t)=>{const n=e.slots=g4();if(e.vnode.shapeFlag&32){const s=t._;s?(Jn(n,t),RA(n,"_",s,!0)):S4(t,n)}else t&&w4(e,t)},d5=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,a=$n;if(s.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:(Jn(r,t),!n&&o===1&&delete r._):(i=!t.$stable,S4(t,r)),a=t}else t&&(w4(e,t),a={default:1});if(i)for(const o in r)!_4(o)&&a[o]==null&&delete r[o]};function ky(e,t,n,s,r=!1){if(Xe(e)){e.forEach((h,g)=>ky(h,t&&(Xe(t)?t[g]:t),n,s,r));return}if(Md(s)&&!r)return;const i=s.shapeFlag&4?Cg(s.component):s.el,a=r?null:i,{i:o,r:l}=e,u=t&&t.r,c=o.refs===$n?o.refs={}:o.refs,f=o.setupState;if(u!=null&&u!==l&&(bt(u)?(c[u]=null,qt(f,u)&&(f[u]=null)):hn(u)&&(u.value=null)),mt(l))io(l,o,12,[a,c]);else{const h=bt(l),g=hn(l);if(h||g){const m=()=>{if(e.f){const p=h?qt(f,l)?f[l]:c[l]:l.value;r?Xe(p)&&D_(p,i):Xe(p)?p.includes(i)||p.push(i):h?(c[l]=[i],qt(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else h?(c[l]=a,qt(f,l)&&(f[l]=a)):g&&(l.value=a,e.k&&(c[e.k]=a))};a?(m.id=-1,Qs(m,n)):m()}}}const Qs=K6;function f5(e){return h5(e)}function h5(e,t){const n=NA();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:a,createText:o,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:g=Jt,insertStaticContent:m}=e,p=(ee,se,Te,Le=null,Se=null,De=null,Fe=void 0,Ie=null,je=!!se.dynamicChildren)=>{if(ee===se)return;ee&&!Xo(ee,se)&&(Le=te(ee),ne(ee,Se,De,!0),ee=null),se.patchFlag===-2&&(je=!1,se.dynamicChildren=null);const{type:Ee,ref:Ze,shapeFlag:nt}=se;switch(Ee){case _c:y(ee,se,Te,Le);break;case Ss:v(ee,se,Te,Le);break;case Ip:ee==null&&b(se,Te,Le,Fe);break;case Ge:W(ee,se,Te,Le,Se,De,Fe,Ie,je);break;default:nt&1?w(ee,se,Te,Le,Se,De,Fe,Ie,je):nt&6?Q(ee,se,Te,Le,Se,De,Fe,Ie,je):(nt&64||nt&128)&&Ee.process(ee,se,Te,Le,Se,De,Fe,Ie,je,me)}Ze!=null&&Se&&ky(Ze,ee&&ee.ref,De,se||ee,!se)},y=(ee,se,Te,Le)=>{if(ee==null)s(se.el=o(se.children),Te,Le);else{const Se=se.el=ee.el;se.children!==ee.children&&u(Se,se.children)}},v=(ee,se,Te,Le)=>{ee==null?s(se.el=l(se.children||""),Te,Le):se.el=ee.el},b=(ee,se,Te,Le)=>{[ee.el,ee.anchor]=m(ee.children,se,Te,Le,ee.el,ee.anchor)},S=({el:ee,anchor:se},Te,Le)=>{let Se;for(;ee&&ee!==se;)Se=h(ee),s(ee,Te,Le),ee=Se;s(se,Te,Le)},T=({el:ee,anchor:se})=>{let Te;for(;ee&&ee!==se;)Te=h(ee),r(ee),ee=Te;r(se)},w=(ee,se,Te,Le,Se,De,Fe,Ie,je)=>{se.type==="svg"?Fe="svg":se.type==="math"&&(Fe="mathml"),ee==null?C(se,Te,Le,Se,De,Fe,Ie,je):M(ee,se,Se,De,Fe,Ie,je)},C=(ee,se,Te,Le,Se,De,Fe,Ie)=>{let je,Ee;const{props:Ze,shapeFlag:nt,transition:ke,dirs:et}=ee;if(je=ee.el=a(ee.type,De,Ze&&Ze.is,Ze),nt&8?c(je,ee.children):nt&16&&P(ee.children,je,null,Le,Se,i0(ee,De),Fe,Ie),et&&Uo(ee,null,Le,"created"),O(je,ee,ee.scopeId,Fe,Le),Ze){for(const At in Ze)At!=="value"&&!Pd(At)&&i(je,At,null,Ze[At],De,ee.children,Le,Se,ce);"value"in Ze&&i(je,"value",null,Ze.value,De),(Ee=Ze.onVnodeBeforeMount)&&Ei(Ee,Le,ee)}et&&Uo(ee,null,Le,"beforeMount");const dt=p5(Se,ke);dt&&ke.beforeEnter(je),s(je,se,Te),((Ee=Ze&&Ze.onVnodeMounted)||dt||et)&&Qs(()=>{Ee&&Ei(Ee,Le,ee),dt&&ke.enter(je),et&&Uo(ee,null,Le,"mounted")},Se)},O=(ee,se,Te,Le,Se)=>{if(Te&&g(ee,Te),Le)for(let De=0;De<Le.length;De++)g(ee,Le[De]);if(Se){let De=Se.subTree;if(se===De){const Fe=Se.vnode;O(ee,Fe,Fe.scopeId,Fe.slotScopeIds,Se.parent)}}},P=(ee,se,Te,Le,Se,De,Fe,Ie,je=0)=>{for(let Ee=je;Ee<ee.length;Ee++){const Ze=ee[Ee]=Ie?Xa(ee[Ee]):ki(ee[Ee]);p(null,Ze,se,Te,Le,Se,De,Fe,Ie)}},M=(ee,se,Te,Le,Se,De,Fe)=>{const Ie=se.el=ee.el;let{patchFlag:je,dynamicChildren:Ee,dirs:Ze}=se;je|=ee.patchFlag&16;const nt=ee.props||$n,ke=se.props||$n;let et;if(Te&&Ho(Te,!1),(et=ke.onVnodeBeforeUpdate)&&Ei(et,Te,se,ee),Ze&&Uo(se,ee,Te,"beforeUpdate"),Te&&Ho(Te,!0),Ee?U(ee.dynamicChildren,Ee,Ie,Te,Le,i0(se,Se),De):Fe||V(ee,se,Ie,null,Te,Le,i0(se,Se),De,!1),je>0){if(je&16)B(Ie,se,nt,ke,Te,Le,Se);else if(je&2&&nt.class!==ke.class&&i(Ie,"class",null,ke.class,Se),je&4&&i(Ie,"style",nt.style,ke.style,Se),je&8){const dt=se.dynamicProps;for(let At=0;At<dt.length;At++){const xt=dt[At],ct=nt[xt],Ae=ke[xt];(Ae!==ct||xt==="value")&&i(Ie,xt,ct,Ae,Se,ee.children,Te,Le,ce)}}je&1&&ee.children!==se.children&&c(Ie,se.children)}else!Fe&&Ee==null&&B(Ie,se,nt,ke,Te,Le,Se);((et=ke.onVnodeUpdated)||Ze)&&Qs(()=>{et&&Ei(et,Te,se,ee),Ze&&Uo(se,ee,Te,"updated")},Le)},U=(ee,se,Te,Le,Se,De,Fe)=>{for(let Ie=0;Ie<se.length;Ie++){const je=ee[Ie],Ee=se[Ie],Ze=je.el&&(je.type===Ge||!Xo(je,Ee)||je.shapeFlag&70)?f(je.el):Te;p(je,Ee,Ze,null,Le,Se,De,Fe,!0)}},B=(ee,se,Te,Le,Se,De,Fe)=>{if(Te!==Le){if(Te!==$n)for(const Ie in Te)!Pd(Ie)&&!(Ie in Le)&&i(ee,Ie,Te[Ie],null,Fe,se.children,Se,De,ce);for(const Ie in Le){if(Pd(Ie))continue;const je=Le[Ie],Ee=Te[Ie];je!==Ee&&Ie!=="value"&&i(ee,Ie,Ee,je,Fe,se.children,Se,De,ce)}"value"in Le&&i(ee,"value",Te.value,Le.value,Fe)}},W=(ee,se,Te,Le,Se,De,Fe,Ie,je)=>{const Ee=se.el=ee?ee.el:o(""),Ze=se.anchor=ee?ee.anchor:o("");let{patchFlag:nt,dynamicChildren:ke,slotScopeIds:et}=se;et&&(Ie=Ie?Ie.concat(et):et),ee==null?(s(Ee,Te,Le),s(Ze,Te,Le),P(se.children||[],Te,Ze,Se,De,Fe,Ie,je)):nt>0&&nt&64&&ke&&ee.dynamicChildren?(U(ee.dynamicChildren,ke,Te,Se,De,Fe,Ie),(se.key!=null||Se&&se===Se.subTree)&&G_(ee,se,!0)):V(ee,se,Te,Ze,Se,De,Fe,Ie,je)},Q=(ee,se,Te,Le,Se,De,Fe,Ie,je)=>{se.slotScopeIds=Ie,ee==null?se.shapeFlag&512?Se.ctx.activate(se,Te,Le,Fe,je):G(se,Te,Le,Se,De,Fe,je):X(ee,se,je)},G=(ee,se,Te,Le,Se,De,Fe)=>{const Ie=ee.component=O5(ee,Le,Se);if(wg(ee)&&(Ie.ctx.renderer=me),P5(Ie),Ie.asyncDep){if(Se&&Se.registerDep(Ie,q,Fe),!ee.el){const je=Ie.subTree=I(Ss);v(null,je,se,Te)}}else q(Ie,ee,se,Te,Se,De,Fe)},X=(ee,se,Te)=>{const Le=se.component=ee.component;if(z6(ee,se,Te))if(Le.asyncDep&&!Le.asyncResolved){H(Le,se,Te);return}else Le.next=se,L6(Le.update),Le.effect.dirty=!0,Le.update();else se.el=ee.el,Le.vnode=se},q=(ee,se,Te,Le,Se,De,Fe)=>{const Ie=()=>{if(ee.isMounted){let{next:Ze,bu:nt,u:ke,parent:et,vnode:dt}=ee;{const Ue=T4(ee);if(Ue){Ze&&(Ze.el=dt.el,H(ee,Ze,Fe)),Ue.asyncDep.then(()=>{ee.isUnmounted||Ie()});return}}let At=Ze,xt;Ho(ee,!1),Ze?(Ze.el=dt.el,H(ee,Ze,Fe)):Ze=dt,nt&&Ap(nt),(xt=Ze.props&&Ze.props.onVnodeBeforeUpdate)&&Ei(xt,et,Ze,dt),Ho(ee,!0);const ct=s0(ee),Ae=ee.subTree;ee.subTree=ct,p(Ae,ct,f(Ae.el),te(Ae),ee,Se,De),Ze.el=ct.el,At===null&&j6(ee,ct.el),ke&&Qs(ke,Se),(xt=Ze.props&&Ze.props.onVnodeUpdated)&&Qs(()=>Ei(xt,et,Ze,dt),Se)}else{let Ze;const{el:nt,props:ke}=se,{bm:et,m:dt,parent:At}=ee,xt=Md(se);if(Ho(ee,!1),et&&Ap(et),!xt&&(Ze=ke&&ke.onVnodeBeforeMount)&&Ei(Ze,At,se),Ho(ee,!0),nt&&Be){const ct=()=>{ee.subTree=s0(ee),Be(nt,ee.subTree,ee,Se,null)};xt?se.type.__asyncLoader().then(()=>!ee.isUnmounted&&ct()):ct()}else{const ct=ee.subTree=s0(ee);p(null,ct,Te,Le,ee,Se,De),se.el=ct.el}if(dt&&Qs(dt,Se),!xt&&(Ze=ke&&ke.onVnodeMounted)){const ct=se;Qs(()=>Ei(Ze,At,ct),Se)}(se.shapeFlag&256||At&&Md(At.vnode)&&At.vnode.shapeFlag&256)&&ee.a&&Qs(ee.a,Se),ee.isMounted=!0,se=Te=Le=null}},je=ee.effect=new $_(Ie,Jt,()=>z_(Ee),ee.scope),Ee=ee.update=()=>{je.dirty&&je.run()};Ee.id=ee.uid,Ho(ee,!0),Ee()},H=(ee,se,Te)=>{se.component=ee;const Le=ee.vnode.props;ee.vnode=se,ee.next=null,l5(ee,se.props,Le,Te),d5(ee,se.children,Te),To(),tT(ee),Co()},V=(ee,se,Te,Le,Se,De,Fe,Ie,je=!1)=>{const Ee=ee&&ee.children,Ze=ee?ee.shapeFlag:0,nt=se.children,{patchFlag:ke,shapeFlag:et}=se;if(ke>0){if(ke&128){Y(Ee,nt,Te,Le,Se,De,Fe,Ie,je);return}else if(ke&256){N(Ee,nt,Te,Le,Se,De,Fe,Ie,je);return}}et&8?(Ze&16&&ce(Ee,Se,De),nt!==Ee&&c(Te,nt)):Ze&16?et&16?Y(Ee,nt,Te,Le,Se,De,Fe,Ie,je):ce(Ee,Se,De,!0):(Ze&8&&c(Te,""),et&16&&P(nt,Te,Le,Se,De,Fe,Ie,je))},N=(ee,se,Te,Le,Se,De,Fe,Ie,je)=>{ee=ee||vu,se=se||vu;const Ee=ee.length,Ze=se.length,nt=Math.min(Ee,Ze);let ke;for(ke=0;ke<nt;ke++){const et=se[ke]=je?Xa(se[ke]):ki(se[ke]);p(ee[ke],et,Te,null,Se,De,Fe,Ie,je)}Ee>Ze?ce(ee,Se,De,!0,!1,nt):P(se,Te,Le,Se,De,Fe,Ie,je,nt)},Y=(ee,se,Te,Le,Se,De,Fe,Ie,je)=>{let Ee=0;const Ze=se.length;let nt=ee.length-1,ke=Ze-1;for(;Ee<=nt&&Ee<=ke;){const et=ee[Ee],dt=se[Ee]=je?Xa(se[Ee]):ki(se[Ee]);if(Xo(et,dt))p(et,dt,Te,null,Se,De,Fe,Ie,je);else break;Ee++}for(;Ee<=nt&&Ee<=ke;){const et=ee[nt],dt=se[ke]=je?Xa(se[ke]):ki(se[ke]);if(Xo(et,dt))p(et,dt,Te,null,Se,De,Fe,Ie,je);else break;nt--,ke--}if(Ee>nt){if(Ee<=ke){const et=ke+1,dt=et<Ze?se[et].el:Le;for(;Ee<=ke;)p(null,se[Ee]=je?Xa(se[Ee]):ki(se[Ee]),Te,dt,Se,De,Fe,Ie,je),Ee++}}else if(Ee>ke)for(;Ee<=nt;)ne(ee[Ee],Se,De,!0),Ee++;else{const et=Ee,dt=Ee,At=new Map;for(Ee=dt;Ee<=ke;Ee++){const st=se[Ee]=je?Xa(se[Ee]):ki(se[Ee]);st.key!=null&&At.set(st.key,Ee)}let xt,ct=0;const Ae=ke-dt+1;let Ue=!1,Me=0;const ve=new Array(Ae);for(Ee=0;Ee<Ae;Ee++)ve[Ee]=0;for(Ee=et;Ee<=nt;Ee++){const st=ee[Ee];if(ct>=Ae){ne(st,Se,De,!0);continue}let ye;if(st.key!=null)ye=At.get(st.key);else for(xt=dt;xt<=ke;xt++)if(ve[xt-dt]===0&&Xo(st,se[xt])){ye=xt;break}ye===void 0?ne(st,Se,De,!0):(ve[ye-dt]=Ee+1,ye>=Me?Me=ye:Ue=!0,p(st,se[ye],Te,null,Se,De,Fe,Ie,je),ct++)}const $e=Ue?m5(ve):vu;for(xt=$e.length-1,Ee=Ae-1;Ee>=0;Ee--){const st=dt+Ee,ye=se[st],at=st+1<Ze?se[st+1].el:Le;ve[Ee]===0?p(null,ye,Te,at,Se,De,Fe,Ie,je):Ue&&(xt<0||Ee!==$e[xt]?Z(ye,Te,at,2):xt--)}}},Z=(ee,se,Te,Le,Se=null)=>{const{el:De,type:Fe,transition:Ie,children:je,shapeFlag:Ee}=ee;if(Ee&6){Z(ee.component.subTree,se,Te,Le);return}if(Ee&128){ee.suspense.move(se,Te,Le);return}if(Ee&64){Fe.move(ee,se,Te,me);return}if(Fe===Ge){s(De,se,Te);for(let nt=0;nt<je.length;nt++)Z(je[nt],se,Te,Le);s(ee.anchor,se,Te);return}if(Fe===Ip){S(ee,se,Te);return}if(Le!==2&&Ee&1&&Ie)if(Le===0)Ie.beforeEnter(De),s(De,se,Te),Qs(()=>Ie.enter(De),Se);else{const{leave:nt,delayLeave:ke,afterLeave:et}=Ie,dt=()=>s(De,se,Te),At=()=>{nt(De,()=>{dt(),et&&et()})};ke?ke(De,dt,At):At()}else s(De,se,Te)},ne=(ee,se,Te,Le=!1,Se=!1)=>{const{type:De,props:Fe,ref:Ie,children:je,dynamicChildren:Ee,shapeFlag:Ze,patchFlag:nt,dirs:ke,memoIndex:et}=ee;if(nt===-2&&(Se=!1),Ie!=null&&ky(Ie,null,Te,ee,!0),et!=null&&(se.renderCache[et]=void 0),Ze&256){se.ctx.deactivate(ee);return}const dt=Ze&1&&ke,At=!Md(ee);let xt;if(At&&(xt=Fe&&Fe.onVnodeBeforeUnmount)&&Ei(xt,se,ee),Ze&6)Ne(ee.component,Te,Le);else{if(Ze&128){ee.suspense.unmount(Te,Le);return}dt&&Uo(ee,null,se,"beforeUnmount"),Ze&64?ee.type.remove(ee,se,Te,me,Le):Ee&&(De!==Ge||nt>0&&nt&64)?ce(Ee,se,Te,!1,!0):(De===Ge&&nt&384||!Se&&Ze&16)&&ce(je,se,Te),Le&&ue(ee)}(At&&(xt=Fe&&Fe.onVnodeUnmounted)||dt)&&Qs(()=>{xt&&Ei(xt,se,ee),dt&&Uo(ee,null,se,"unmounted")},Te)},ue=ee=>{const{type:se,el:Te,anchor:Le,transition:Se}=ee;if(se===Ge){_e(Te,Le);return}if(se===Ip){T(ee);return}const De=()=>{r(Te),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(ee.shapeFlag&1&&Se&&!Se.persisted){const{leave:Fe,delayLeave:Ie}=Se,je=()=>Fe(Te,De);Ie?Ie(ee.el,De,je):je()}else De()},_e=(ee,se)=>{let Te;for(;ee!==se;)Te=h(ee),r(ee),ee=Te;r(se)},Ne=(ee,se,Te)=>{const{bum:Le,scope:Se,update:De,subTree:Fe,um:Ie,m:je,a:Ee}=ee;fT(je),fT(Ee),Le&&Ap(Le),Se.stop(),De&&(De.active=!1,ne(Fe,ee,se,Te)),Ie&&Qs(Ie,se),Qs(()=>{ee.isUnmounted=!0},se),se&&se.pendingBranch&&!se.isUnmounted&&ee.asyncDep&&!ee.asyncResolved&&ee.suspenseId===se.pendingId&&(se.deps--,se.deps===0&&se.resolve())},ce=(ee,se,Te,Le=!1,Se=!1,De=0)=>{for(let Fe=De;Fe<ee.length;Fe++)ne(ee[Fe],se,Te,Le,Se)},te=ee=>ee.shapeFlag&6?te(ee.component.subTree):ee.shapeFlag&128?ee.suspense.next():h(ee.anchor||ee.el);let ie=!1;const we=(ee,se,Te)=>{ee==null?se._vnode&&ne(se._vnode,null,null,!0):p(se._vnode||null,ee,se,null,null,null,Te),ie||(ie=!0,tT(),a4(),ie=!1),se._vnode=ee},me={p,um:ne,m:Z,r:ue,mt:G,mc:P,pc:V,pbc:U,n:te,o:e};let Ce,Be;return t&&([Ce,Be]=t(me)),{render:we,hydrate:Ce,createApp:a5(we,Ce)}}function i0({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ho({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function p5(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function G_(e,t,n=!1){const s=e.children,r=t.children;if(Xe(s)&&Xe(r))for(let i=0;i<s.length;i++){const a=s[i];let o=r[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[i]=Xa(r[i]),o.el=a.el),!n&&o.patchFlag!==-2&&G_(a,o)),o.type===_c&&(o.el=a.el)}}function m5(e){const t=e.slice(),n=[0];let s,r,i,a,o;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,a=n.length-1;i<a;)o=i+a>>1,e[n[o]]<u?i=o+1:a=o;u<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function T4(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:T4(t)}function fT(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const g5=Symbol.for("v-scx"),v5=()=>Je(g5);function ps(e,t){return Y_(e,null,t)}const Qh={};function xe(e,t,n){return Y_(e,t,n)}function Y_(e,t,{immediate:n,deep:s,flush:r,once:i,onTrack:a,onTrigger:o}=$n){if(t&&i){const C=t;t=(...O)=>{C(...O),w()}}const l=ws,u=C=>s===!0?C:eo(C,s===!1?1:void 0);let c,f=!1,h=!1;if(hn(e)?(c=()=>e.value,f=pm(e)):Rd(e)?(c=()=>u(e),f=!0):Xe(e)?(h=!0,f=e.some(C=>Rd(C)||pm(C)),c=()=>e.map(C=>{if(hn(C))return C.value;if(Rd(C))return u(C);if(mt(C))return io(C,l,2)})):mt(e)?t?c=()=>io(e,l,2):c=()=>(g&&g(),Fr(e,l,3,[m])):c=Jt,t&&s){const C=c;c=()=>eo(C())}let g,m=C=>{g=S.onStop=()=>{io(C,l,4),g=S.onStop=void 0}},p;if(Tg)if(m=Jt,t?n&&Fr(t,l,3,[c(),h?[]:void 0,m]):c(),r==="sync"){const C=v5();p=C.__watcherHandles||(C.__watcherHandles=[])}else return Jt;let y=h?new Array(e.length).fill(Qh):Qh;const v=()=>{if(!(!S.active||!S.dirty))if(t){const C=S.run();(s||f||(h?C.some((O,P)=>lo(O,y[P])):lo(C,y)))&&(g&&g(),Fr(t,l,3,[C,y===Qh?void 0:h&&y[0]===Qh?[]:y,m]),y=C)}else S.run()};v.allowRecurse=!!t;let b;r==="sync"?b=v:r==="post"?b=()=>Qs(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),b=()=>z_(v));const S=new $_(c,Jt,b),T=VA(),w=()=>{S.stop(),T&&D_(T.effects,S)};return t?n?v():y=S.run():r==="post"?Qs(S.run.bind(S),l&&l.suspense):S.run(),p&&p.push(w),w}function y5(e,t,n){const s=this.proxy,r=bt(e)?e.includes(".")?C4(s,e):()=>s[e]:e.bind(s,s);let i;mt(t)?i=t:(i=t.handler,n=t);const a=Gf(this),o=Y_(r,i.bind(s),n);return a(),o}function C4(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 eo(e,t=1/0,n){if(t<=0||!Pt(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,hn(e))eo(e.value,t,n);else if(Xe(e))for(let s=0;s<e.length;s++)eo(e[s],t,n);else if(yc(e)||yu(e))e.forEach(s=>{eo(s,t,n)});else if(dm(e)){for(const s in e)eo(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&eo(e[s],t,n)}return e}const wg=e=>e.type.__isKeepAlive;function b5(e,t){x4(e,"a",t)}function E4(e,t){x4(e,"da",t)}function x4(e,t,n=ws){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Sg(t,s,n),n){let r=n.parent;for(;r&&r.parent;)wg(r.parent.vnode)&&_5(s,t,n,r),r=r.parent}}function _5(e,t,n,s){const r=Sg(t,e,s,!0);Eo(()=>{D_(s[t],r)},n)}const Ya=Symbol("_leaveCb"),Jh=Symbol("_enterCb");function k4(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gt(()=>{e.isMounted=!0}),un(()=>{e.isUnmounting=!0}),e}const Or=[Function,Array],A4={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Or,onEnter:Or,onAfterEnter:Or,onEnterCancelled:Or,onBeforeLeave:Or,onLeave:Or,onAfterLeave:Or,onLeaveCancelled:Or,onBeforeAppear:Or,onAppear:Or,onAfterAppear:Or,onAppearCancelled:Or},I4=e=>{const t=e.subTree;return t.component?I4(t.component):t},S5={name:"BaseTransition",props:A4,setup(e,{slots:t}){const n=It(),s=k4();return()=>{const r=t.default&&X_(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const h of r)if(h.type!==Ss){i=h;break}}const a=en(e),{mode:o}=a;if(s.isLeaving)return a0(i);const l=hT(i);if(!l)return a0(i);let u=cf(l,a,s,n,h=>u=h);Lu(l,u);const c=n.subTree,f=c&&hT(c);if(f&&f.type!==Ss&&!Xo(l,f)&&I4(n).type!==Ss){const h=cf(f,a,s,n);if(Lu(f,h),o==="out-in"&&l.type!==Ss)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},a0(i);o==="in-out"&&l.type!==Ss&&(h.delayLeave=(g,m,p)=>{const y=D4(s,f);y[String(f.key)]=f,g[Ya]=()=>{m(),g[Ya]=void 0,delete u.delayedLeave},u.delayedLeave=p})}return i}}},w5=S5;function D4(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 cf(e,t,n,s,r){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:m,onLeaveCancelled:p,onBeforeAppear:y,onAppear:v,onAfterAppear:b,onAppearCancelled:S}=t,T=String(e.key),w=D4(n,e),C=(M,U)=>{M&&Fr(M,s,9,U)},O=(M,U)=>{const B=U[1];C(M,U),Xe(M)?M.every(W=>W.length<=1)&&B():M.length<=1&&B()},P={mode:a,persisted:o,beforeEnter(M){let U=l;if(!n.isMounted)if(i)U=y||l;else return;M[Ya]&&M[Ya](!0);const B=w[T];B&&Xo(e,B)&&B.el[Ya]&&B.el[Ya](),C(U,[M])},enter(M){let U=u,B=c,W=f;if(!n.isMounted)if(i)U=v||u,B=b||c,W=S||f;else return;let Q=!1;const G=M[Jh]=X=>{Q||(Q=!0,X?C(W,[M]):C(B,[M]),P.delayedLeave&&P.delayedLeave(),M[Jh]=void 0)};U?O(U,[M,G]):G()},leave(M,U){const B=String(e.key);if(M[Jh]&&M[Jh](!0),n.isUnmounting)return U();C(h,[M]);let W=!1;const Q=M[Ya]=G=>{W||(W=!0,U(),G?C(p,[M]):C(m,[M]),M[Ya]=void 0,w[B]===e&&delete w[B])};w[B]=e,g?O(g,[M,Q]):Q()},clone(M){const U=cf(M,t,n,s,r);return r&&r(U),U}};return P}function a0(e){if(wg(e))return e=ga(e),e.children=null,e}function hT(e){if(!wg(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&mt(n.default))return n.default()}}function Lu(e,t){e.shapeFlag&6&&e.component?Lu(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 X_(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let a=e[i];const o=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Ge?(a.patchFlag&128&&r++,s=s.concat(X_(a.children,t,o))):(t||a.type!==Ss)&&s.push(o!=null?ga(a,{key:o}):a)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}const T5=e=>e.__isTeleport,Fd=e=>e&&(e.disabled||e.disabled===""),pT=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mT=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ay=(e,t)=>{const n=e&&e.to;return bt(n)?t?t(n):null:n},C5={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,a,o,l,u){const{mc:c,pc:f,pbc:h,o:{insert:g,querySelector:m,createText:p,createComment:y}}=u,v=Fd(t.props);let{shapeFlag:b,children:S,dynamicChildren:T}=t;if(e==null){const w=t.el=p(""),C=t.anchor=p("");g(w,n,s),g(C,n,s);const O=t.target=Ay(t.props,m),P=t.targetAnchor=p("");O&&(g(P,O),a==="svg"||pT(O)?a="svg":(a==="mathml"||mT(O))&&(a="mathml"));const M=(U,B)=>{b&16&&c(S,U,B,r,i,a,o,l)};v?M(n,C):O&&M(O,P)}else{t.el=e.el;const w=t.anchor=e.anchor,C=t.target=e.target,O=t.targetAnchor=e.targetAnchor,P=Fd(e.props),M=P?n:C,U=P?w:O;if(a==="svg"||pT(C)?a="svg":(a==="mathml"||mT(C))&&(a="mathml"),T?(h(e.dynamicChildren,T,M,r,i,a,o),G_(e,t,!0)):l||f(e,t,M,U,r,i,a,o,!1),v)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zh(t,n,w,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=Ay(t.props,m);B&&Zh(t,B,null,u,0)}else P&&Zh(t,C,O,u,1)}O4(t)},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:a,children:o,anchor:l,targetAnchor:u,target:c,props:f}=e;if(c&&r(u),i&&r(l),a&16){const h=i||!Fd(f);for(let g=0;g<o.length;g++){const m=o[g];s(m,t,n,h,!!m.dynamicChildren)}}},move:Zh,hydrate:E5};function Zh(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:a,anchor:o,shapeFlag:l,children:u,props:c}=e,f=i===2;if(f&&s(a,t,n),(!f||Fd(c))&&l&16)for(let h=0;h<u.length;h++)r(u[h],t,n,2);f&&s(o,t,n)}function E5(e,t,n,s,r,i,{o:{nextSibling:a,parentNode:o,querySelector:l}},u){const c=t.target=Ay(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Fd(t.props))t.anchor=u(a(e),t,o(e),n,s,r,i),t.targetAnchor=f;else{t.anchor=a(e);let h=f;for(;h;)if(h=a(h),h&&h.nodeType===8&&h.data==="teleport anchor"){t.targetAnchor=h,c._lpa=t.targetAnchor&&a(t.targetAnchor);break}u(f,t,c,n,s,r,i)}O4(t)}return t.anchor&&a(t.anchor)}const bc=C5;function O4(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ge=Symbol.for("v-fgt"),_c=Symbol.for("v-txt"),Ss=Symbol.for("v-cmt"),Ip=Symbol.for("v-stc"),Vd=[];let ai=null;function k(e=!1){Vd.push(ai=e?null:[])}function x5(){Vd.pop(),ai=Vd[Vd.length-1]||null}let df=1;function gT(e){df+=e}function P4(e){return e.dynamicChildren=df>0?ai||vu:null,x5(),df>0&&ai&&ai.push(e),e}function z(e,t,n,s,r,i){return P4(R(e,t,n,s,r,i,!0))}function fe(e,t,n,s,r){return P4(I(e,t,n,s,r,!0))}function _n(e){return e?e.__v_isVNode===!0:!1}function Xo(e,t){return e.type===t.type&&e.key===t.key}const $4=({key:e})=>e??null,Dp=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?bt(e)||hn(e)||mt(e)?{i:hs,r:e,k:t,f:!!n}:e:null);function R(e,t=null,n=null,s=0,r=null,i=e===Ge?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$4(t),ref:t&&Dp(t),scopeId:bg,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:hs};return o?(Q_(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=bt(n)?8:16),df>0&&!a&&ai&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&ai.push(l),l}const I=k5;function k5(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===u4)&&(e=Ss),_n(e)){const o=ga(e,t,!0);return n&&Q_(o,n),df>0&&!i&&ai&&(o.shapeFlag&6?ai[ai.indexOf(e)]=o:ai.push(o)),o.patchFlag=-2,o}if(M5(e)&&(e=e.__vccOpts),t){t=Bu(t);let{class:o,style:l}=t;o&&!bt(o)&&(t.class=$(o)),Pt(l)&&(ZA(l)&&!Xe(l)&&(l=Jn({},l)),t.style=it(l))}const a=bt(e)?1:W6(e)?128:T5(e)?64:Pt(e)?4:mt(e)?2:0;return R(e,t,n,s,r,a,i,!0)}function Bu(e){return e?ZA(e)||v4(e)?Jn({},e):e:null}function ga(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:a,children:o,transition:l}=e,u=t?Lt(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&$4(u),ref:t&&t.ref?n&&i?Xe(i)?i.concat(Dp(t)):[i,Dp(t)]:Dp(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ge?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ga(e.ssContent),ssFallback:e.ssFallback&&ga(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Lu(c,l.clone(c)),c}function Re(e=" ",t=0){return I(_c,null,e,t)}function A5(e,t){const n=I(Ip,null,e);return n.staticCount=t,n}function ae(e="",t=!1){return t?(k(),fe(Ss,null,e)):I(Ss,null,e)}function ki(e){return e==null||typeof e=="boolean"?I(Ss):Xe(e)?I(Ge,null,e.slice()):typeof e=="object"?Xa(e):I(_c,null,String(e))}function Xa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ga(e)}function Q_(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Xe(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Q_(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!v4(t)?t._ctx=hs:r===3&&hs&&(hs.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else mt(t)?(t={default:t,_ctx:hs},n=32):(t=String(t),s&64?(n=16,t=[Re(t)]):n=8);e.children=t,e.shapeFlag|=n}function Lt(...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=$([t.class,s.class]));else if(r==="style")t.style=it([t.style,s.style]);else if(pg(r)){const i=t[r],a=s[r];a&&i!==a&&!(Xe(i)&&i.includes(a))&&(t[r]=i?[].concat(i,a):a)}else r!==""&&(t[r]=s[r])}return t}function Ei(e,t,n,s=null){Fr(e,t,7,[n,s])}const I5=p4();let D5=0;function O5(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||I5,i={uid:D5++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new FA(!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:b4(s,r),emitsOptions:l4(s,r),emit:null,emitted:null,propsDefaults:$n,inheritAttrs:s.inheritAttrs,ctx:$n,data:$n,props:$n,attrs:$n,slots:$n,refs:$n,setupState:$n,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=V6.bind(null,i),e.ce&&e.ce(i),i}let ws=null;const It=()=>ws||hs;let vm,Iy;{const e=NA(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(a=>a(i)):r[0](i)}};vm=t("__VUE_INSTANCE_SETTERS__",n=>ws=n),Iy=t("__VUE_SSR_SETTERS__",n=>Tg=n)}const Gf=e=>{const t=ws;return vm(e),e.scope.on(),()=>{e.scope.off(),vm(t)}},vT=()=>{ws&&ws.scope.off(),vm(null)};function R4(e){return e.vnode.shapeFlag&4}let Tg=!1;function P5(e,t=!1){t&&Iy(t);const{props:n,children:s}=e.vnode,r=R4(e);o5(e,n,r,t),c5(e,s);const i=r?$5(e,t):void 0;return t&&Iy(!1),i}function $5(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Z6);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?M4(e):null,i=Gf(e);To();const a=io(s,e,0,[e.props,r]);if(Co(),i(),rf(a)){if(a.then(vT,vT),t)return a.then(o=>{yT(e,o,t)}).catch(o=>{vg(o,e,0)});e.asyncDep=a}else yT(e,a,t)}else N4(e,t)}function yT(e,t,n){mt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pt(t)&&(e.setupState=n4(t)),N4(e,n)}let bT;function N4(e,t,n){const s=e.type;if(!e.render){if(!t&&bT&&!s.render){const r=s.template||W_(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:o,compilerOptions:l}=s,u=Jn(Jn({isCustomElement:i,delimiters:o},a),l);s.render=bT(r,u)}}e.render=s.render||Jt}{const r=Gf(e);To();try{e5(e)}finally{Co(),r()}}}const R5={get(e,t){return ar(e,"get",""),e[t]}};function M4(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,R5),slots:e.slots,emit:e.emit,expose:t}}function Cg(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(n4(bu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ld)return Ld[n](e)},has(t,n){return n in t||n in Ld}})):e.proxy}function N5(e,t=!0){return mt(e)?e.displayName||e.name:e.name||t&&e.__name}function M5(e){return mt(e)&&"__vccOpts"in e}const E=(e,t)=>A6(e,t,Tg);function lt(e,t,n){const s=arguments.length;return s===2?Pt(t)&&!Xe(t)?_n(t)?I(e,null,[t]):I(e,t):I(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&_n(n)&&(n=[n]),I(e,t,n))}const L5="3.4.31",B5=Jt;/**
* @vue/runtime-dom v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const F5="http://www.w3.org/2000/svg",V5="http://www.w3.org/1998/Math/MathML",ia=typeof document<"u"?document:null,_T=ia&&ia.createElement("template"),U5={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==="svg"?ia.createElementNS(F5,e):t==="mathml"?ia.createElementNS(V5,e):n?ia.createElement(e,{is:n}):ia.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ia.createTextNode(e),createComment:e=>ia.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ia.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const a=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{_T.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const o=_T.content;if(s==="svg"||s==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},La="transition",sd="animation",Fu=Symbol("_vtc"),Wn=(e,{slots:t})=>lt(w5,B4(e),t);Wn.displayName="Transition";const L4={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},H5=Wn.props=Jn({},A4,L4),zo=(e,t=[])=>{Xe(e)?e.forEach(n=>n(...t)):e&&e(...t)},ST=e=>e?Xe(e)?e.some(t=>t.length>1):e.length>1:!1;function B4(e){const t={};for(const W in e)W in L4||(t[W]=e[W]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:c=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,m=z5(r),p=m&&m[0],y=m&&m[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:S,onLeave:T,onLeaveCancelled:w,onBeforeAppear:C=v,onAppear:O=b,onAppearCancelled:P=S}=t,M=(W,Q,G)=>{ja(W,Q?c:o),ja(W,Q?u:a),G&&G()},U=(W,Q)=>{W._isLeaving=!1,ja(W,f),ja(W,g),ja(W,h),Q&&Q()},B=W=>(Q,G)=>{const X=W?O:b,q=()=>M(Q,W,G);zo(X,[Q,q]),wT(()=>{ja(Q,W?l:i),ra(Q,W?c:o),ST(X)||TT(Q,s,p,q)})};return Jn(t,{onBeforeEnter(W){zo(v,[W]),ra(W,i),ra(W,a)},onBeforeAppear(W){zo(C,[W]),ra(W,l),ra(W,u)},onEnter:B(!1),onAppear:B(!0),onLeave(W,Q){W._isLeaving=!0;const G=()=>U(W,Q);ra(W,f),ra(W,h),V4(),wT(()=>{W._isLeaving&&(ja(W,f),ra(W,g),ST(T)||TT(W,s,y,G))}),zo(T,[W,G])},onEnterCancelled(W){M(W,!1),zo(S,[W])},onAppearCancelled(W){M(W,!0),zo(P,[W])},onLeaveCancelled(W){U(W),zo(w,[W])}})}function z5(e){if(e==null)return null;if(Pt(e))return[o0(e.enter),o0(e.leave)];{const t=o0(e);return[t,t]}}function o0(e){return JL(e)}function ra(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Fu]||(e[Fu]=new Set)).add(t)}function ja(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Fu];n&&(n.delete(t),n.size||(e[Fu]=void 0))}function wT(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let j5=0;function TT(e,t,n,s){const r=e._endId=++j5,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:a,timeout:o,propCount:l}=F4(e,t);if(!a)return s();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,h),i()},h=g=>{g.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},o+1),e.addEventListener(u,h)}function F4(e,t){const n=window.getComputedStyle(e),s=m=>(n[m]||"").split(", "),r=s(`${La}Delay`),i=s(`${La}Duration`),a=CT(r,i),o=s(`${sd}Delay`),l=s(`${sd}Duration`),u=CT(o,l);let c=null,f=0,h=0;t===La?a>0&&(c=La,f=a,h=i.length):t===sd?u>0&&(c=sd,f=u,h=l.length):(f=Math.max(a,u),c=f>0?a>u?La:sd:null,h=c?c===La?i.length:l.length:0);const g=c===La&&/\b(transform|all)(,|$)/.test(s(`${La}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:g}}function CT(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>ET(n)+ET(e[s])))}function ET(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function V4(){return document.body.offsetHeight}function q5(e,t,n){const s=e[Fu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ym=Symbol("_vod"),U4=Symbol("_vsh"),zt={beforeMount(e,{value:t},{transition:n}){e[ym]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):rd(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),rd(e,!0),s.enter(e)):s.leave(e,()=>{rd(e,!1)}):rd(e,t))},beforeUnmount(e,{value:t}){rd(e,t)}};function rd(e,t){e.style.display=t?e[ym]:"none",e[U4]=!t}const W5=Symbol(""),K5=/(^|;)\s*display\s*:/;function G5(e,t,n){const s=e.style,r=bt(n);let i=!1;if(n&&!r){if(t)if(bt(t))for(const a of t.split(";")){const o=a.slice(0,a.indexOf(":")).trim();n[o]==null&&Op(s,o,"")}else for(const a in t)n[a]==null&&Op(s,a,"");for(const a in n)a==="display"&&(i=!0),Op(s,a,n[a])}else if(r){if(t!==n){const a=s[W5];a&&(n+=";"+a),s.cssText=n,i=K5.test(n)}}else t&&e.removeAttribute("style");ym in e&&(e[ym]=i?s.display:"",e[U4]&&(s.display="none"))}const xT=/\s*!important$/;function Op(e,t,n){if(Xe(n))n.forEach(s=>Op(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Y5(e,t);xT.test(n)?e.setProperty(wo(s),n.replace(xT,""),"important"):e[s]=n}}const kT=["Webkit","Moz","ms"],l0={};function Y5(e,t){const n=l0[t];if(n)return n;let s=qr(t);if(s!=="filter"&&s in e)return l0[t]=s;s=Kf(s);for(let r=0;r<kT.length;r++){const i=kT[r]+s;if(i in e)return l0[t]=i}return t}const AT="http://www.w3.org/1999/xlink";function IT(e,t,n,s,r,i=r6(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(AT,t.slice(6,t.length)):e.setAttributeNS(AT,t,n):n==null||i&&!MA(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Vi(n)?String(n):n)}function X5(e,t,n,s,r,i,a){if(t==="innerHTML"||t==="textContent"){s&&a(s,r,i),e[t]=n??"";return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const u=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?"":String(n);(u!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=MA(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function oa(e,t,n,s){e.addEventListener(t,n,s)}function Q5(e,t,n,s){e.removeEventListener(t,n,s)}const DT=Symbol("_vei");function J5(e,t,n,s,r=null){const i=e[DT]||(e[DT]={}),a=i[t];if(s&&a)a.value=s;else{const[o,l]=Z5(t);if(s){const u=i[t]=nB(s,r);oa(e,o,u,l)}else a&&(Q5(e,o,a,l),i[t]=void 0)}}const OT=/(?:Once|Passive|Capture)$/;function Z5(e){let t;if(OT.test(e)){t={};let s;for(;s=e.match(OT);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wo(e.slice(2)),t]}let u0=0;const eB=Promise.resolve(),tB=()=>u0||(eB.then(()=>u0=0),u0=Date.now());function nB(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Fr(sB(s,n.value),t,5,[s])};return n.value=e,n.attached=tB(),n}function sB(e,t){if(Xe(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 PT=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,rB=(e,t,n,s,r,i,a,o,l)=>{const u=r==="svg";t==="class"?q5(e,s,u):t==="style"?G5(e,n,s):pg(t)?I_(t)||J5(e,t,n,s,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):iB(e,t,s,u))?(X5(e,t,s,i,a,o,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&IT(e,t,s,u,a,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),IT(e,t,s,u))};function iB(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&PT(t)&&mt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return PT(t)&&bt(n)?!1:t in e}const H4=new WeakMap,z4=new WeakMap,bm=Symbol("_moveCb"),$T=Symbol("_enterCb"),j4={name:"TransitionGroup",props:Jn({},H5,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=It(),s=k4();let r,i;return xa(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!cB(r[0].el,n.vnode.el,a))return;r.forEach(oB),r.forEach(lB);const o=r.filter(uB);V4(),o.forEach(l=>{const u=l.el,c=u.style;ra(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[bm]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u[bm]=null,ja(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=en(e),o=B4(a);let l=a.tag||Ge;if(r=[],i)for(let u=0;u<i.length;u++){const c=i[u];c.el&&c.el instanceof Element&&(r.push(c),Lu(c,cf(c,o,s,n)),H4.set(c,c.el.getBoundingClientRect()))}i=t.default?X_(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Lu(c,cf(c,o,s,n))}return I(l,null,i)}}},aB=e=>delete e.mode;j4.props;const q4=j4;function oB(e){const t=e.el;t[bm]&&t[bm](),t[$T]&&t[$T]()}function lB(e){z4.set(e,e.el.getBoundingClientRect())}function uB(e){const t=H4.get(e),n=z4.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 cB(e,t,n){const s=e.cloneNode(),r=e[Fu];r&&r.forEach(o=>{o.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:a}=F4(s);return i.removeChild(s),a}const uo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Xe(t)?n=>Ap(t,n):t};function dB(e){e.target.composing=!0}function RT(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vr=Symbol("_assign"),va={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Vr]=uo(r);const i=s||r.props&&r.props.type==="number";oa(e,t?"change":"input",a=>{if(a.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=fm(o)),e[Vr](o)}),n&&oa(e,"change",()=>{e.value=e.value.trim()}),t||(oa(e,"compositionstart",dB),oa(e,"compositionend",RT),oa(e,"change",RT))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},a){if(e[Vr]=uo(a),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?fm(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===l)||(e.value=l))}},ff={deep:!0,created(e,t,n){e[Vr]=uo(n),oa(e,"change",()=>{const s=e._modelValue,r=Vu(e),i=e.checked,a=e[Vr];if(Xe(s)){const o=P_(s,r),l=o!==-1;if(i&&!l)a(s.concat(r));else if(!i&&l){const u=[...s];u.splice(o,1),a(u)}}else if(yc(s)){const o=new Set(s);i?o.add(r):o.delete(r),a(o)}else a(W4(e,i))})},mounted:NT,beforeUpdate(e,t,n){e[Vr]=uo(n),NT(e,t,n)}};function NT(e,{value:t,oldValue:n},s){e._modelValue=t,Xe(t)?e.checked=P_(t,s.props.value)>-1:yc(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=_l(t,W4(e,!0)))}const J_={created(e,{value:t},n){e.checked=_l(t,n.props.value),e[Vr]=uo(n),oa(e,"change",()=>{e[Vr](Vu(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Vr]=uo(s),t!==n&&(e.checked=_l(t,s.props.value))}},fB={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=yc(t);oa(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?fm(Vu(a)):Vu(a));e[Vr](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,ut(()=>{e._assigning=!1})}),e[Vr]=uo(s)},mounted(e,{value:t,modifiers:{number:n}}){MT(e,t)},beforeUpdate(e,t,n){e[Vr]=uo(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||MT(e,t)}};function MT(e,t,n){const s=e.multiple,r=Xe(t);if(!(s&&!r&&!yc(t))){for(let i=0,a=e.options.length;i<a;i++){const o=e.options[i],l=Vu(o);if(s)if(r){const u=typeof l;u==="string"||u==="number"?o.selected=t.some(c=>String(c)===String(l)):o.selected=P_(t,l)>-1}else o.selected=t.has(l);else if(_l(Vu(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vu(e){return"_value"in e?e._value:e.value}function W4(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const hB={created(e,t,n){ep(e,t,n,null,"created")},mounted(e,t,n){ep(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){ep(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){ep(e,t,n,s,"updated")}};function pB(e,t){switch(e){case"SELECT":return fB;case"TEXTAREA":return va;default:switch(t){case"checkbox":return ff;case"radio":return J_;default:return va}}}function ep(e,t,n,s,r){const a=pB(e.tagName,n.props&&n.props.type)[r];a&&a(e,t,n,s)}const mB=["ctrl","shift","alt","meta"],gB={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)=>mB.some(n=>e[`${n}Key`]&&!t.includes(n))},vt=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let a=0;a<t.length;a++){const o=gB[t[a]];if(o&&o(r,t))return}return e(r,...i)})},vB={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=wo(r.key);if(t.some(a=>a===i||vB[a]===i))return e(r)})},yB=Jn({patchProp:rB},U5);let LT;function K4(){return LT||(LT=f5(yB))}const co=(...e)=>{K4().render(...e)},Eg=(...e)=>{const t=K4().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=_B(s);if(!r)return;const i=t._component;!mt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,bB(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function bB(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _B(e){return bt(e)?document.querySelector(e):e}const SB='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',wB=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,BT=e=>Array.from(e.querySelectorAll(SB)).filter(t=>TB(t)&&wB(t)),TB=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}},Pp=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},G4=e=>!e.getAttribute("aria-owns"),Y4=(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},$p=e=>{e&&(e.focus(),!G4(e)&&e.click())},xn=(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)},FT=e=>t=>t.pointerType==="mouse"?e(t):void 0;var CB=Object.defineProperty,EB=Object.defineProperties,xB=Object.getOwnPropertyDescriptors,VT=Object.getOwnPropertySymbols,kB=Object.prototype.hasOwnProperty,AB=Object.prototype.propertyIsEnumerable,UT=(e,t,n)=>t in e?CB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IB=(e,t)=>{for(var n in t||(t={}))kB.call(t,n)&&UT(e,n,t[n]);if(VT)for(var n of VT(t))AB.call(t,n)&&UT(e,n,t[n]);return e},DB=(e,t)=>EB(e,xB(t));function HT(e,t){var n;const s=ln();return ps(()=>{s.value=e()},DB(IB({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Ol(s)}var zT;const jt=typeof window<"u",OB=e=>typeof e<"u",Dy=e=>typeof e=="function",PB=e=>typeof e=="string",Uu=()=>{},Oy=jt&&((zT=window==null?void 0:window.navigator)==null?void 0:zT.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function fo(e){return typeof e=="function"?e():d(e)}function X4(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 $B(e,t={}){let n,s,r=Uu;const i=o=>{clearTimeout(o),r(),r=Uu};return o=>{const l=fo(e),u=fo(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(s&&(i(s),s=null),Promise.resolve(o())):new Promise((c,f)=>{r=t.rejectOnCancel?f:c,u&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,c(o())},u)),n=setTimeout(()=>{s&&i(s),s=null,c(o())},l)})}}function RB(e,t=!0,n=!0,s=!1){let r=0,i,a=!0,o=Uu,l;const u=()=>{i&&(clearTimeout(i),i=void 0,o(),o=Uu)};return f=>{const h=fo(e),g=Date.now()-r,m=()=>l=f();return u(),h<=0?(r=Date.now(),m()):(g>h&&(n||!a)?(r=Date.now(),m()):t&&(l=new Promise((p,y)=>{o=s?y:p,i=setTimeout(()=>{r=Date.now(),a=!0,p(m()),u()},Math.max(0,h-g))})),!n&&!i&&(i=setTimeout(()=>a=!0,h)),a=!1,l)}}function NB(e){return e}function MB(e,t){let n,s,r;const i=j(!0),a=()=>{i.value=!0,r()};xe(e,a,{flush:"sync"});const o=Dy(t)?t:t.get,l=Dy(t)?void 0:t.set,u=P6((c,f)=>(s=c,r=f,{get(){return i.value&&(n=o(),i.value=!1),s(),n},set(h){l==null||l(h)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function Yf(e){return VA()?(UA(e),!0):!1}function LB(e,t=200,n={}){return X4($B(t,n),e)}function BB(e,t=200,n={}){const s=j(e.value),r=LB(()=>{s.value=e.value},t,n);return xe(e,()=>r()),s}function Q4(e,t=200,n=!1,s=!0,r=!1){return X4(RB(t,n,s,r),e)}function Z_(e,t=!0){It()?gt(e):t?e():ut(e)}function Sl(e,t,n={}){const{immediate:s=!0}=n,r=j(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function o(){r.value=!1,a()}function l(...u){a(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=null,e(...u)},fo(t))}return s&&(r.value=!0,jt&&l()),Yf(o),{isPending:Ol(r),start:l,stop:o}}function nr(e){var t;const n=fo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const xo=jt?window:void 0,FB=jt?window.document:void 0;function cn(...e){let t,n,s,r;if(PB(e[0])||Array.isArray(e[0])?([n,s,r]=e,t=xo):[t,n,s,r]=e,!t)return Uu;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],a=()=>{i.forEach(c=>c()),i.length=0},o=(c,f,h,g)=>(c.addEventListener(f,h,g),()=>c.removeEventListener(f,h,g)),l=xe(()=>[nr(t),fo(r)],([c,f])=>{a(),c&&i.push(...n.flatMap(h=>s.map(g=>o(c,h,g,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return Yf(u),u}let jT=!1;function e1(e,t,n={}){const{window:s=xo,ignore:r=[],capture:i=!0,detectIframe:a=!1}=n;if(!s)return;Oy&&!jT&&(jT=!0,Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",Uu)));let o=!0;const l=h=>r.some(g=>{if(typeof g=="string")return Array.from(s.document.querySelectorAll(g)).some(m=>m===h.target||h.composedPath().includes(m));{const m=nr(g);return m&&(h.target===m||h.composedPath().includes(m))}}),c=[cn(s,"click",h=>{const g=nr(e);if(!(!g||g===h.target||h.composedPath().includes(g))){if(h.detail===0&&(o=!l(h)),!o){o=!0;return}t(h)}},{passive:!0,capture:i}),cn(s,"pointerdown",h=>{const g=nr(e);g&&(o=!h.composedPath().includes(g)&&!l(h))},{passive:!0}),a&&cn(s,"blur",h=>{var g;const m=nr(e);((g=s.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&t(h)})].filter(Boolean);return()=>c.forEach(h=>h())}function VB(e={}){var t;const{window:n=xo}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,r=MB(()=>null,()=>s==null?void 0:s.activeElement);return n&&(cn(n,"blur",i=>{i.relatedTarget===null&&r.trigger()},!0),cn(n,"focus",r.trigger,!0)),r}function J4(e,t=!1){const n=j(),s=()=>n.value=!!e();return s(),Z_(s,t),n}function UB(e){return JSON.parse(JSON.stringify(e))}const qT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},WT="__vueuse_ssr_handlers__";qT[WT]=qT[WT]||{};function HB(e,t,{window:n=xo,initialValue:s=""}={}){const r=j(s),i=E(()=>{var a;return nr(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return xe([i,()=>fo(e)],([a,o])=>{var l;if(a&&n){const u=(l=n.getComputedStyle(a).getPropertyValue(o))==null?void 0:l.trim();r.value=u||s}},{immediate:!0}),xe(r,a=>{var o;(o=i.value)!=null&&o.style&&i.value.style.setProperty(fo(e),a)}),r}function zB({document:e=FB}={}){if(!e)return j("visible");const t=j(e.visibilityState);return cn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var KT=Object.getOwnPropertySymbols,jB=Object.prototype.hasOwnProperty,qB=Object.prototype.propertyIsEnumerable,WB=(e,t)=>{var n={};for(var s in e)jB.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&KT)for(var s of KT(e))t.indexOf(s)<0&&qB.call(e,s)&&(n[s]=e[s]);return n};function Sn(e,t,n={}){const s=n,{window:r=xo}=s,i=WB(s,["window"]);let a;const o=J4(()=>r&&"ResizeObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},u=xe(()=>nr(e),f=>{l(),o.value&&r&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Yf(c),{isSupported:o,stop:c}}function GT(e,t={}){const{reset:n=!0,windowResize:s=!0,windowScroll:r=!0,immediate:i=!0}=t,a=j(0),o=j(0),l=j(0),u=j(0),c=j(0),f=j(0),h=j(0),g=j(0);function m(){const p=nr(e);if(!p){n&&(a.value=0,o.value=0,l.value=0,u.value=0,c.value=0,f.value=0,h.value=0,g.value=0);return}const y=p.getBoundingClientRect();a.value=y.height,o.value=y.bottom,l.value=y.left,u.value=y.right,c.value=y.top,f.value=y.width,h.value=y.x,g.value=y.y}return Sn(e,m),xe(()=>nr(e),p=>!p&&m()),r&&cn("scroll",m,{capture:!0,passive:!0}),s&&cn("resize",m,{passive:!0}),Z_(()=>{i&&m()}),{height:a,bottom:o,left:l,right:u,top:c,width:f,x:h,y:g,update:m}}var YT=Object.getOwnPropertySymbols,KB=Object.prototype.hasOwnProperty,GB=Object.prototype.propertyIsEnumerable,YB=(e,t)=>{var n={};for(var s in e)KB.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&YT)for(var s of YT(e))t.indexOf(s)<0&&GB.call(e,s)&&(n[s]=e[s]);return n};function Z4(e,t,n={}){const s=n,{window:r=xo}=s,i=YB(s,["window"]);let a;const o=J4(()=>r&&"MutationObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},u=xe(()=>nr(e),f=>{l(),o.value&&r&&f&&(a=new MutationObserver(t),a.observe(f,i))},{immediate:!0}),c=()=>{l(),u()};return Yf(c),{isSupported:o,stop:c}}var XT;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(XT||(XT={}));var XB=Object.defineProperty,QT=Object.getOwnPropertySymbols,QB=Object.prototype.hasOwnProperty,JB=Object.prototype.propertyIsEnumerable,JT=(e,t,n)=>t in e?XB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZB=(e,t)=>{for(var n in t||(t={}))QB.call(t,n)&&JT(e,n,t[n]);if(QT)for(var n of QT(t))JB.call(t,n)&&JT(e,n,t[n]);return e};const eF={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]};ZB({linear:NB},eF);function e3(e,t,n,s={}){var r,i,a;const{clone:o=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=s,h=It(),g=n||(h==null?void 0:h.emit)||((r=h==null?void 0:h.$emit)==null?void 0:r.bind(h))||((a=(i=h==null?void 0:h.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let m=u;t||(t="modelValue"),m=u||m||`update:${t.toString()}`;const p=v=>o?Dy(o)?o(v):UB(v):v,y=()=>OB(e[t])?p(e[t]):f;if(l){const v=y(),b=j(v);return xe(()=>e[t],S=>b.value=p(S)),xe(b,S=>{(S!==e[t]||c)&&g(m,S)},{deep:c}),b}else return E({get(){return y()},set(v){g(m,v)}})}function tF({window:e=xo}={}){if(!e)return j(!1);const t=j(e.document.hasFocus());return cn(e,"blur",()=>{t.value=!1}),cn(e,"focus",()=>{t.value=!0}),t}function nF(e={}){const{window:t=xo,initialWidth:n=1/0,initialHeight:s=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,a=j(n),o=j(s),l=()=>{t&&(i?(a.value=t.innerWidth,o.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,o.value=t.document.documentElement.clientHeight))};return l(),Z_(l),cn("resize",l,{passive:!0}),r&&cn("orientationchange",l,{passive:!0}),{width:a,height:o}}const t3=()=>jt&&/firefox/i.test(window.navigator.userAgent),sF=(e,t)=>{if(!jt||!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},ZT=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Py=(e,t)=>Math.abs(ZT(e)-ZT(t)),t1=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}};function rF(e,t,n,s){const r=n-t;return e/=s/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}var iF=typeof global=="object"&&global&&global.Object===Object&&global;const n3=iF;var aF=typeof self=="object"&&self&&self.Object===Object&&self,oF=n3||aF||Function("return this")();const vi=oF;var lF=vi.Symbol;const Wr=lF;var s3=Object.prototype,uF=s3.hasOwnProperty,cF=s3.toString,id=Wr?Wr.toStringTag:void 0;function dF(e){var t=uF.call(e,id),n=e[id];try{e[id]=void 0;var s=!0}catch{}var r=cF.call(e);return s&&(t?e[id]=n:delete e[id]),r}var fF=Object.prototype,hF=fF.toString;function pF(e){return hF.call(e)}var mF="[object Null]",gF="[object Undefined]",eC=Wr?Wr.toStringTag:void 0;function Rl(e){return e==null?e===void 0?gF:mF:eC&&eC in Object(e)?dF(e):pF(e)}function Ui(e){return e!=null&&typeof e=="object"}var vF="[object Symbol]";function xg(e){return typeof e=="symbol"||Ui(e)&&Rl(e)==vF}function n1(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 yF=Array.isArray;const Ws=yF;var bF=1/0,tC=Wr?Wr.prototype:void 0,nC=tC?tC.toString:void 0;function r3(e){if(typeof e=="string")return e;if(Ws(e))return n1(e,r3)+"";if(xg(e))return nC?nC.call(e):"";var t=e+"";return t=="0"&&1/e==-bF?"-0":t}var _F=/\s/;function SF(e){for(var t=e.length;t--&&_F.test(e.charAt(t)););return t}var wF=/^\s+/;function TF(e){return e&&e.slice(0,SF(e)+1).replace(wF,"")}function Ks(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sC=0/0,CF=/^[-+]0x[0-9a-f]+$/i,EF=/^0b[01]+$/i,xF=/^0o[0-7]+$/i,kF=parseInt;function $y(e){if(typeof e=="number")return e;if(xg(e))return sC;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=TF(e);var n=EF.test(e);return n||xF.test(e)?kF(e.slice(2),n?2:8):CF.test(e)?sC:+e}var rC=1/0,AF=17976931348623157e292;function IF(e){if(!e)return e===0?e:0;if(e=$y(e),e===rC||e===-rC){var t=e<0?-1:1;return t*AF}return e===e?e:0}function DF(e){var t=IF(e),n=t%1;return t===t?n?t-n:t:0}function s1(e){return e}var OF="[object AsyncFunction]",PF="[object Function]",$F="[object GeneratorFunction]",RF="[object Proxy]";function r1(e){if(!Ks(e))return!1;var t=Rl(e);return t==PF||t==$F||t==OF||t==RF}var NF=vi["__core-js_shared__"];const c0=NF;var iC=function(){var e=/[^.]+$/.exec(c0&&c0.keys&&c0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function MF(e){return!!iC&&iC in e}var LF=Function.prototype,BF=LF.toString;function Nl(e){if(e!=null){try{return BF.call(e)}catch{}try{return e+""}catch{}}return""}var FF=/[\\^$.*+?()[\]{}|]/g,VF=/^\[object .+?Constructor\]$/,UF=Function.prototype,HF=Object.prototype,zF=UF.toString,jF=HF.hasOwnProperty,qF=RegExp("^"+zF.call(jF).replace(FF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WF(e){if(!Ks(e)||MF(e))return!1;var t=r1(e)?qF:VF;return t.test(Nl(e))}function KF(e,t){return e==null?void 0:e[t]}function Ml(e,t){var n=KF(e,t);return WF(n)?n:void 0}var GF=Ml(vi,"WeakMap");const Ry=GF;var aC=Object.create,YF=function(){function e(){}return function(t){if(!Ks(t))return{};if(aC)return aC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const XF=YF;function QF(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 JF(){}function i3(e,t){var n=-1,s=e.length;for(t||(t=Array(s));++n<s;)t[n]=e[n];return t}var ZF=800,eV=16,tV=Date.now;function nV(e){var t=0,n=0;return function(){var s=tV(),r=eV-(s-n);if(n=s,r>0){if(++t>=ZF)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function sV(e){return function(){return e}}var rV=function(){try{var e=Ml(Object,"defineProperty");return e({},"",{}),e}catch{}}();const _m=rV;var iV=_m?function(e,t){return _m(e,"toString",{configurable:!0,enumerable:!1,value:sV(t),writable:!0})}:s1;const aV=iV;var oV=nV(aV);const a3=oV;function lV(e,t){for(var n=-1,s=e==null?0:e.length;++n<s&&t(e[n],n,e)!==!1;);return e}function o3(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 uV(e){return e!==e}function cV(e,t,n){for(var s=n-1,r=e.length;++s<r;)if(e[s]===t)return s;return-1}function dV(e,t,n){return t===t?cV(e,t,n):o3(e,uV,n)}function fV(e,t){var n=e==null?0:e.length;return!!n&&dV(e,t,0)>-1}var hV=9007199254740991,pV=/^(?:0|[1-9]\d*)$/;function kg(e,t){var n=typeof e;return t=t??hV,!!t&&(n=="number"||n!="symbol"&&pV.test(e))&&e>-1&&e%1==0&&e<t}function i1(e,t,n){t=="__proto__"&&_m?_m(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Xf(e,t){return e===t||e!==e&&t!==t}var mV=Object.prototype,gV=mV.hasOwnProperty;function a1(e,t,n){var s=e[t];(!(gV.call(e,t)&&Xf(s,n))||n===void 0&&!(t in e))&&i1(e,t,n)}function Sc(e,t,n,s){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var o=t[i],l=s?s(n[o],e[o],o,n,e):void 0;l===void 0&&(l=e[o]),r?i1(n,o,l):a1(n,o,l)}return n}var oC=Math.max;function l3(e,t,n){return t=oC(t===void 0?e.length-1:t,0),function(){for(var s=arguments,r=-1,i=oC(s.length-t,0),a=Array(i);++r<i;)a[r]=s[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=s[r];return o[t]=n(a),QF(e,this,o)}}function u3(e,t){return a3(l3(e,t,s1),e+"")}var vV=9007199254740991;function o1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vV}function wc(e){return e!=null&&o1(e.length)&&!r1(e)}function yV(e,t,n){if(!Ks(n))return!1;var s=typeof t;return(s=="number"?wc(n)&&kg(t,n.length):s=="string"&&t in n)?Xf(n[t],e):!1}function bV(e){return u3(function(t,n){var s=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&yV(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++s<r;){var o=n[s];o&&e(t,o,s,i)}return t})}var _V=Object.prototype;function l1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||_V;return e===n}function SV(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}var wV="[object Arguments]";function lC(e){return Ui(e)&&Rl(e)==wV}var c3=Object.prototype,TV=c3.hasOwnProperty,CV=c3.propertyIsEnumerable,EV=lC(function(){return arguments}())?lC:function(e){return Ui(e)&&TV.call(e,"callee")&&!CV.call(e,"callee")};const hf=EV;function xV(){return!1}var d3=typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,uC=d3&&typeof Er=="object"&&Er&&!Er.nodeType&&Er,kV=uC&&uC.exports===d3,cC=kV?vi.Buffer:void 0,AV=cC?cC.isBuffer:void 0,IV=AV||xV;const pf=IV;var DV="[object Arguments]",OV="[object Array]",PV="[object Boolean]",$V="[object Date]",RV="[object Error]",NV="[object Function]",MV="[object Map]",LV="[object Number]",BV="[object Object]",FV="[object RegExp]",VV="[object Set]",UV="[object String]",HV="[object WeakMap]",zV="[object ArrayBuffer]",jV="[object DataView]",qV="[object Float32Array]",WV="[object Float64Array]",KV="[object Int8Array]",GV="[object Int16Array]",YV="[object Int32Array]",XV="[object Uint8Array]",QV="[object Uint8ClampedArray]",JV="[object Uint16Array]",ZV="[object Uint32Array]",Pn={};Pn[qV]=Pn[WV]=Pn[KV]=Pn[GV]=Pn[YV]=Pn[XV]=Pn[QV]=Pn[JV]=Pn[ZV]=!0;Pn[DV]=Pn[OV]=Pn[zV]=Pn[PV]=Pn[jV]=Pn[$V]=Pn[RV]=Pn[NV]=Pn[MV]=Pn[LV]=Pn[BV]=Pn[FV]=Pn[VV]=Pn[UV]=Pn[HV]=!1;function e9(e){return Ui(e)&&o1(e.length)&&!!Pn[Rl(e)]}function u1(e){return function(t){return e(t)}}var f3=typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,Ud=f3&&typeof Er=="object"&&Er&&!Er.nodeType&&Er,t9=Ud&&Ud.exports===f3,d0=t9&&n3.process,n9=function(){try{var e=Ud&&Ud.require&&Ud.require("util").types;return e||d0&&d0.binding&&d0.binding("util")}catch{}}();const Hu=n9;var dC=Hu&&Hu.isTypedArray,s9=dC?u1(dC):e9;const c1=s9;var r9=Object.prototype,i9=r9.hasOwnProperty;function h3(e,t){var n=Ws(e),s=!n&&hf(e),r=!n&&!s&&pf(e),i=!n&&!s&&!r&&c1(e),a=n||s||r||i,o=a?SV(e.length,String):[],l=o.length;for(var u in e)(t||i9.call(e,u))&&!(a&&(u=="length"||r&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||kg(u,l)))&&o.push(u);return o}function p3(e,t){return function(n){return e(t(n))}}var a9=p3(Object.keys,Object);const o9=a9;var l9=Object.prototype,u9=l9.hasOwnProperty;function c9(e){if(!l1(e))return o9(e);var t=[];for(var n in Object(e))u9.call(e,n)&&n!="constructor"&&t.push(n);return t}function Qf(e){return wc(e)?h3(e):c9(e)}function d9(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var f9=Object.prototype,h9=f9.hasOwnProperty;function p9(e){if(!Ks(e))return d9(e);var t=l1(e),n=[];for(var s in e)s=="constructor"&&(t||!h9.call(e,s))||n.push(s);return n}function Jf(e){return wc(e)?h3(e,!0):p9(e)}var m9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g9=/^\w*$/;function d1(e,t){if(Ws(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||xg(e)?!0:g9.test(e)||!m9.test(e)||t!=null&&e in Object(t)}var v9=Ml(Object,"create");const mf=v9;function y9(){this.__data__=mf?mf(null):{},this.size=0}function b9(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _9="__lodash_hash_undefined__",S9=Object.prototype,w9=S9.hasOwnProperty;function T9(e){var t=this.__data__;if(mf){var n=t[e];return n===_9?void 0:n}return w9.call(t,e)?t[e]:void 0}var C9=Object.prototype,E9=C9.hasOwnProperty;function x9(e){var t=this.__data__;return mf?t[e]!==void 0:E9.call(t,e)}var k9="__lodash_hash_undefined__";function A9(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mf&&t===void 0?k9:t,this}function wl(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])}}wl.prototype.clear=y9;wl.prototype.delete=b9;wl.prototype.get=T9;wl.prototype.has=x9;wl.prototype.set=A9;function I9(){this.__data__=[],this.size=0}function Ag(e,t){for(var n=e.length;n--;)if(Xf(e[n][0],t))return n;return-1}var D9=Array.prototype,O9=D9.splice;function P9(e){var t=this.__data__,n=Ag(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():O9.call(t,n,1),--this.size,!0}function $9(e){var t=this.__data__,n=Ag(t,e);return n<0?void 0:t[n][1]}function R9(e){return Ag(this.__data__,e)>-1}function N9(e,t){var n=this.__data__,s=Ag(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function ka(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])}}ka.prototype.clear=I9;ka.prototype.delete=P9;ka.prototype.get=$9;ka.prototype.has=R9;ka.prototype.set=N9;var M9=Ml(vi,"Map");const gf=M9;function L9(){this.size=0,this.__data__={hash:new wl,map:new(gf||ka),string:new wl}}function B9(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ig(e,t){var n=e.__data__;return B9(t)?n[typeof t=="string"?"string":"hash"]:n.map}function F9(e){var t=Ig(this,e).delete(e);return this.size-=t?1:0,t}function V9(e){return Ig(this,e).get(e)}function U9(e){return Ig(this,e).has(e)}function H9(e,t){var n=Ig(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}function Aa(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])}}Aa.prototype.clear=L9;Aa.prototype.delete=F9;Aa.prototype.get=V9;Aa.prototype.has=U9;Aa.prototype.set=H9;var z9="Expected a function";function Dg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(z9);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 a=e.apply(this,s);return n.cache=i.set(r,a)||i,a};return n.cache=new(Dg.Cache||Aa),n}Dg.Cache=Aa;var j9=500;function q9(e){var t=Dg(e,function(s){return n.size===j9&&n.clear(),s}),n=t.cache;return t}var W9=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K9=/\\(\\)?/g,G9=q9(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(W9,function(n,s,r,i){t.push(r?i.replace(K9,"$1"):s||n)}),t});const Y9=G9;function X9(e){return e==null?"":r3(e)}function Tc(e,t){return Ws(e)?e:d1(e,t)?[e]:Y9(X9(e))}var Q9=1/0;function Cc(e){if(typeof e=="string"||xg(e))return e;var t=e+"";return t=="0"&&1/e==-Q9?"-0":t}function Og(e,t){t=Tc(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[Cc(t[n++])];return n&&n==s?e:void 0}function Rn(e,t,n){var s=e==null?void 0:Og(e,t);return s===void 0?n:s}function f1(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}var fC=Wr?Wr.isConcatSpreadable:void 0;function J9(e){return Ws(e)||hf(e)||!!(fC&&e&&e[fC])}function Zf(e,t,n,s,r){var i=-1,a=e.length;for(n||(n=J9),r||(r=[]);++i<a;){var o=e[i];t>0&&n(o)?t>1?Zf(o,t-1,n,s,r):f1(r,o):s||(r[r.length]=o)}return r}function m3(e){var t=e==null?0:e.length;return t?Zf(e,1):[]}function g3(e){return a3(l3(e,void 0,m3),e+"")}var Z9=p3(Object.getPrototypeOf,Object);const h1=Z9;var e7="[object Object]",t7=Function.prototype,n7=Object.prototype,v3=t7.toString,s7=n7.hasOwnProperty,r7=v3.call(Object);function y3(e){if(!Ui(e)||Rl(e)!=e7)return!1;var t=h1(e);if(t===null)return!0;var n=s7.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&v3.call(n)==r7}function i7(e,t,n){var s=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++s<r;)i[s]=e[s+t];return i}function ho(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]}function a7(){this.__data__=new ka,this.size=0}function o7(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function l7(e){return this.__data__.get(e)}function u7(e){return this.__data__.has(e)}var c7=200;function d7(e,t){var n=this.__data__;if(n instanceof ka){var s=n.__data__;if(!gf||s.length<c7-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new Aa(s)}return n.set(e,t),this.size=n.size,this}function li(e){var t=this.__data__=new ka(e);this.size=t.size}li.prototype.clear=a7;li.prototype.delete=o7;li.prototype.get=l7;li.prototype.has=u7;li.prototype.set=d7;function f7(e,t){return e&&Sc(t,Qf(t),e)}function h7(e,t){return e&&Sc(t,Jf(t),e)}var b3=typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,hC=b3&&typeof Er=="object"&&Er&&!Er.nodeType&&Er,p7=hC&&hC.exports===b3,pC=p7?vi.Buffer:void 0,mC=pC?pC.allocUnsafe:void 0;function _3(e,t){if(t)return e.slice();var n=e.length,s=mC?mC(n):new e.constructor(n);return e.copy(s),s}function m7(e,t){for(var n=-1,s=e==null?0:e.length,r=0,i=[];++n<s;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i}function S3(){return[]}var g7=Object.prototype,v7=g7.propertyIsEnumerable,gC=Object.getOwnPropertySymbols,y7=gC?function(e){return e==null?[]:(e=Object(e),m7(gC(e),function(t){return v7.call(e,t)}))}:S3;const p1=y7;function b7(e,t){return Sc(e,p1(e),t)}var _7=Object.getOwnPropertySymbols,S7=_7?function(e){for(var t=[];e;)f1(t,p1(e)),e=h1(e);return t}:S3;const w3=S7;function w7(e,t){return Sc(e,w3(e),t)}function T3(e,t,n){var s=t(e);return Ws(e)?s:f1(s,n(e))}function Ny(e){return T3(e,Qf,p1)}function C3(e){return T3(e,Jf,w3)}var T7=Ml(vi,"DataView");const My=T7;var C7=Ml(vi,"Promise");const Ly=C7;var E7=Ml(vi,"Set");const Su=E7;var vC="[object Map]",x7="[object Object]",yC="[object Promise]",bC="[object Set]",_C="[object WeakMap]",SC="[object DataView]",k7=Nl(My),A7=Nl(gf),I7=Nl(Ly),D7=Nl(Su),O7=Nl(Ry),Ko=Rl;(My&&Ko(new My(new ArrayBuffer(1)))!=SC||gf&&Ko(new gf)!=vC||Ly&&Ko(Ly.resolve())!=yC||Su&&Ko(new Su)!=bC||Ry&&Ko(new Ry)!=_C)&&(Ko=function(e){var t=Rl(e),n=t==x7?e.constructor:void 0,s=n?Nl(n):"";if(s)switch(s){case k7:return SC;case A7:return vC;case I7:return yC;case D7:return bC;case O7:return _C}return t});const vf=Ko;var P7=Object.prototype,$7=P7.hasOwnProperty;function R7(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&$7.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var N7=vi.Uint8Array;const Sm=N7;function m1(e){var t=new e.constructor(e.byteLength);return new Sm(t).set(new Sm(e)),t}function M7(e,t){var n=t?m1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var L7=/\w*$/;function B7(e){var t=new e.constructor(e.source,L7.exec(e));return t.lastIndex=e.lastIndex,t}var wC=Wr?Wr.prototype:void 0,TC=wC?wC.valueOf:void 0;function F7(e){return TC?Object(TC.call(e)):{}}function E3(e,t){var n=t?m1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var V7="[object Boolean]",U7="[object Date]",H7="[object Map]",z7="[object Number]",j7="[object RegExp]",q7="[object Set]",W7="[object String]",K7="[object Symbol]",G7="[object ArrayBuffer]",Y7="[object DataView]",X7="[object Float32Array]",Q7="[object Float64Array]",J7="[object Int8Array]",Z7="[object Int16Array]",eU="[object Int32Array]",tU="[object Uint8Array]",nU="[object Uint8ClampedArray]",sU="[object Uint16Array]",rU="[object Uint32Array]";function iU(e,t,n){var s=e.constructor;switch(t){case G7:return m1(e);case V7:case U7:return new s(+e);case Y7:return M7(e,n);case X7:case Q7:case J7:case Z7:case eU:case tU:case nU:case sU:case rU:return E3(e,n);case H7:return new s;case z7:case W7:return new s(e);case j7:return B7(e);case q7:return new s;case K7:return F7(e)}}function x3(e){return typeof e.constructor=="function"&&!l1(e)?XF(h1(e)):{}}var aU="[object Map]";function oU(e){return Ui(e)&&vf(e)==aU}var CC=Hu&&Hu.isMap,lU=CC?u1(CC):oU;const uU=lU;var cU="[object Set]";function dU(e){return Ui(e)&&vf(e)==cU}var EC=Hu&&Hu.isSet,fU=EC?u1(EC):dU;const hU=fU;var pU=1,mU=2,gU=4,k3="[object Arguments]",vU="[object Array]",yU="[object Boolean]",bU="[object Date]",_U="[object Error]",A3="[object Function]",SU="[object GeneratorFunction]",wU="[object Map]",TU="[object Number]",I3="[object Object]",CU="[object RegExp]",EU="[object Set]",xU="[object String]",kU="[object Symbol]",AU="[object WeakMap]",IU="[object ArrayBuffer]",DU="[object DataView]",OU="[object Float32Array]",PU="[object Float64Array]",$U="[object Int8Array]",RU="[object Int16Array]",NU="[object Int32Array]",MU="[object Uint8Array]",LU="[object Uint8ClampedArray]",BU="[object Uint16Array]",FU="[object Uint32Array]",En={};En[k3]=En[vU]=En[IU]=En[DU]=En[yU]=En[bU]=En[OU]=En[PU]=En[$U]=En[RU]=En[NU]=En[wU]=En[TU]=En[I3]=En[CU]=En[EU]=En[xU]=En[kU]=En[MU]=En[LU]=En[BU]=En[FU]=!0;En[_U]=En[A3]=En[AU]=!1;function wu(e,t,n,s,r,i){var a,o=t&pU,l=t&mU,u=t&gU;if(n&&(a=r?n(e,s,r,i):n(e)),a!==void 0)return a;if(!Ks(e))return e;var c=Ws(e);if(c){if(a=R7(e),!o)return i3(e,a)}else{var f=vf(e),h=f==A3||f==SU;if(pf(e))return _3(e,o);if(f==I3||f==k3||h&&!r){if(a=l||h?{}:x3(e),!o)return l?w7(e,h7(a,e)):b7(e,f7(a,e))}else{if(!En[f])return r?e:{};a=iU(e,f,o)}}i||(i=new li);var g=i.get(e);if(g)return g;i.set(e,a),hU(e)?e.forEach(function(y){a.add(wu(y,t,n,y,e,i))}):uU(e)&&e.forEach(function(y,v){a.set(v,wu(y,t,n,v,e,i))});var m=u?l?C3:Ny:l?Jf:Qf,p=c?void 0:m(e);return lV(p||e,function(y,v){p&&(v=y,y=e[v]),a1(a,v,wu(y,t,n,v,e,i))}),a}var VU=4;function xC(e){return wu(e,VU)}var UU=1,HU=4;function wm(e){return wu(e,UU|HU)}var zU="__lodash_hash_undefined__";function jU(e){return this.__data__.set(e,zU),this}function qU(e){return this.__data__.has(e)}function yf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Aa;++t<n;)this.add(e[t])}yf.prototype.add=yf.prototype.push=jU;yf.prototype.has=qU;function WU(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 D3(e,t){return e.has(t)}var KU=1,GU=2;function O3(e,t,n,s,r,i){var a=n&KU,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,h=!0,g=n&GU?new yf:void 0;for(i.set(e,t),i.set(t,e);++f<o;){var m=e[f],p=t[f];if(s)var y=a?s(p,m,f,t,e,i):s(m,p,f,e,t,i);if(y!==void 0){if(y)continue;h=!1;break}if(g){if(!WU(t,function(v,b){if(!D3(g,b)&&(m===v||r(m,v,n,s,i)))return g.push(b)})){h=!1;break}}else if(!(m===p||r(m,p,n,s,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function YU(e){var t=-1,n=Array(e.size);return e.forEach(function(s,r){n[++t]=[r,s]}),n}function g1(e){var t=-1,n=Array(e.size);return e.forEach(function(s){n[++t]=s}),n}var XU=1,QU=2,JU="[object Boolean]",ZU="[object Date]",eH="[object Error]",tH="[object Map]",nH="[object Number]",sH="[object RegExp]",rH="[object Set]",iH="[object String]",aH="[object Symbol]",oH="[object ArrayBuffer]",lH="[object DataView]",kC=Wr?Wr.prototype:void 0,f0=kC?kC.valueOf:void 0;function uH(e,t,n,s,r,i,a){switch(n){case lH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case oH:return!(e.byteLength!=t.byteLength||!i(new Sm(e),new Sm(t)));case JU:case ZU:case nH:return Xf(+e,+t);case eH:return e.name==t.name&&e.message==t.message;case sH:case iH:return e==t+"";case tH:var o=YU;case rH:var l=s&XU;if(o||(o=g1),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;s|=QU,a.set(e,t);var c=O3(o(e),o(t),s,r,i,a);return a.delete(e),c;case aH:if(f0)return f0.call(e)==f0.call(t)}return!1}var cH=1,dH=Object.prototype,fH=dH.hasOwnProperty;function hH(e,t,n,s,r,i){var a=n&cH,o=Ny(e),l=o.length,u=Ny(t),c=u.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var h=o[f];if(!(a?h in t:fH.call(t,h)))return!1}var g=i.get(e),m=i.get(t);if(g&&m)return g==t&&m==e;var p=!0;i.set(e,t),i.set(t,e);for(var y=a;++f<l;){h=o[f];var v=e[h],b=t[h];if(s)var S=a?s(b,v,h,t,e,i):s(v,b,h,e,t,i);if(!(S===void 0?v===b||r(v,b,n,s,i):S)){p=!1;break}y||(y=h=="constructor")}if(p&&!y){var T=e.constructor,w=t.constructor;T!=w&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof w=="function"&&w instanceof w)&&(p=!1)}return i.delete(e),i.delete(t),p}var pH=1,AC="[object Arguments]",IC="[object Array]",tp="[object Object]",mH=Object.prototype,DC=mH.hasOwnProperty;function gH(e,t,n,s,r,i){var a=Ws(e),o=Ws(t),l=a?IC:vf(e),u=o?IC:vf(t);l=l==AC?tp:l,u=u==AC?tp:u;var c=l==tp,f=u==tp,h=l==u;if(h&&pf(e)){if(!pf(t))return!1;a=!0,c=!1}if(h&&!c)return i||(i=new li),a||c1(e)?O3(e,t,n,s,r,i):uH(e,t,l,n,s,r,i);if(!(n&pH)){var g=c&&DC.call(e,"__wrapped__"),m=f&&DC.call(t,"__wrapped__");if(g||m){var p=g?e.value():e,y=m?t.value():t;return i||(i=new li),r(p,y,n,s,i)}}return h?(i||(i=new li),hH(e,t,n,s,r,i)):!1}function Pg(e,t,n,s,r){return e===t?!0:e==null||t==null||!Ui(e)&&!Ui(t)?e!==e&&t!==t:gH(e,t,n,s,Pg,r)}var vH=1,yH=2;function bH(e,t,n,s){var r=n.length,i=r,a=!s;if(e==null)return!i;for(e=Object(e);r--;){var o=n[r];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r<i;){o=n[r];var l=o[0],u=e[l],c=o[1];if(a&&o[2]){if(u===void 0&&!(l in e))return!1}else{var f=new li;if(s)var h=s(u,c,l,e,t,f);if(!(h===void 0?Pg(c,u,vH|yH,s,f):h))return!1}}return!0}function P3(e){return e===e&&!Ks(e)}function _H(e){for(var t=Qf(e),n=t.length;n--;){var s=t[n],r=e[s];t[n]=[s,r,P3(r)]}return t}function $3(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function SH(e){var t=_H(e);return t.length==1&&t[0][2]?$3(t[0][0],t[0][1]):function(n){return n===e||bH(n,e,t)}}function wH(e,t){return e!=null&&t in Object(e)}function TH(e,t,n){t=Tc(t,e);for(var s=-1,r=t.length,i=!1;++s<r;){var a=Cc(t[s]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++s!=r?i:(r=e==null?0:e.length,!!r&&o1(r)&&kg(a,r)&&(Ws(e)||hf(e)))}function R3(e,t){return e!=null&&TH(e,t,wH)}var CH=1,EH=2;function xH(e,t){return d1(e)&&P3(t)?$3(Cc(e),t):function(n){var s=Rn(n,e);return s===void 0&&s===t?R3(n,e):Pg(t,s,CH|EH)}}function kH(e){return function(t){return t==null?void 0:t[e]}}function AH(e){return function(t){return Og(t,e)}}function IH(e){return d1(e)?kH(Cc(e)):AH(e)}function N3(e){return typeof e=="function"?e:e==null?s1:typeof e=="object"?Ws(e)?xH(e[0],e[1]):SH(e):IH(e)}function DH(e){return function(t,n,s){for(var r=-1,i=Object(t),a=s(t),o=a.length;o--;){var l=a[e?o:++r];if(n(i[l],l,i)===!1)break}return t}}var OH=DH();const M3=OH;function PH(e,t){return e&&M3(e,t,Qf)}function $H(e,t){return function(n,s){if(n==null)return n;if(!wc(n))return e(n,s);for(var r=n.length,i=t?r:-1,a=Object(n);(t?i--:++i<r)&&s(a[i],i,a)!==!1;);return n}}var RH=$H(PH);const NH=RH;var MH=function(){return vi.Date.now()};const h0=MH;var LH="Expected a function",BH=Math.max,FH=Math.min;function or(e,t,n){var s,r,i,a,o,l,u=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(LH);t=$y(t)||0,Ks(n)&&(c=!!n.leading,f="maxWait"in n,i=f?BH($y(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function g(C){var O=s,P=r;return s=r=void 0,u=C,a=e.apply(P,O),a}function m(C){return u=C,o=setTimeout(v,t),c?g(C):a}function p(C){var O=C-l,P=C-u,M=t-O;return f?FH(M,i-P):M}function y(C){var O=C-l,P=C-u;return l===void 0||O>=t||O<0||f&&P>=i}function v(){var C=h0();if(y(C))return b(C);o=setTimeout(v,p(C))}function b(C){return o=void 0,h&&s?g(C):(s=r=void 0,a)}function S(){o!==void 0&&clearTimeout(o),u=0,s=l=r=o=void 0}function T(){return o===void 0?a:b(h0())}function w(){var C=h0(),O=y(C);if(s=arguments,r=this,l=C,O){if(o===void 0)return m(l);if(f)return clearTimeout(o),o=setTimeout(v,t),g(l)}return o===void 0&&(o=setTimeout(v,t)),a}return w.cancel=S,w.flush=T,w}function By(e,t,n){(n!==void 0&&!Xf(e[t],n)||n===void 0&&!(t in e))&&i1(e,t,n)}function L3(e){return Ui(e)&&wc(e)}function Fy(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function VH(e){return Sc(e,Jf(e))}function UH(e,t,n,s,r,i,a){var o=Fy(e,n),l=Fy(t,n),u=a.get(l);if(u){By(e,n,u);return}var c=i?i(o,l,n+"",e,t,a):void 0,f=c===void 0;if(f){var h=Ws(l),g=!h&&pf(l),m=!h&&!g&&c1(l);c=l,h||g||m?Ws(o)?c=o:L3(o)?c=i3(o):g?(f=!1,c=_3(l,!0)):m?(f=!1,c=E3(l,!0)):c=[]:y3(l)||hf(l)?(c=o,hf(o)?c=VH(o):(!Ks(o)||r1(o))&&(c=x3(l))):f=!1}f&&(a.set(l,c),r(c,l,s,i,a),a.delete(l)),By(e,n,c)}function B3(e,t,n,s,r){e!==t&&M3(t,function(i,a){if(r||(r=new li),Ks(i))UH(e,t,a,n,B3,s,r);else{var o=s?s(Fy(e,a),i,a+"",e,t,r):void 0;o===void 0&&(o=i),By(e,a,o)}},Jf)}function HH(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 zH(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var jH=Math.max,qH=Math.min;function F3(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var r=s-1;return n!==void 0&&(r=DF(n),r=n<0?jH(s+r,0):qH(r,s-1)),o3(e,N3(t),r,!0)}function WH(e,t){var n=-1,s=wc(e)?Array(e.length):[];return NH(e,function(r,i,a){s[++n]=t(r,i,a)}),s}function KH(e,t){var n=Ws(e)?n1:WH;return n(e,N3(t))}function GH(e,t){return Zf(KH(e,t),1)}var YH=1/0;function XH(e){var t=e==null?0:e.length;return t?Zf(e,YH):[]}function Tm(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 QH(e,t){return t.length<2?e:Og(e,i7(t,0,-1))}function Ds(e,t){return Pg(e,t)}function os(e){return e==null}function V3(e){return e===void 0}var JH=bV(function(e,t,n){B3(e,t,n)});const ZH=JH;function ez(e,t){return t=Tc(t,e),e=QH(e,t),e==null||delete e[Cc(zH(t))]}function tz(e){return y3(e)?void 0:e}var nz=1,sz=2,rz=4,iz=g3(function(e,t){var n={};if(e==null)return n;var s=!1;t=n1(t,function(i){return i=Tc(i,e),s||(s=i.length>1),i}),Sc(e,C3(e),n),s&&(n=wu(n,nz|sz|rz,tz));for(var r=t.length;r--;)ez(n,t[r]);return n});const az=iz;function U3(e,t,n,s){if(!Ks(e))return e;t=Tc(t,e);for(var r=-1,i=t.length,a=i-1,o=e;o!=null&&++r<i;){var l=Cc(t[r]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=a){var c=o[l];u=s?s(c,l,o):void 0,u===void 0&&(u=Ks(c)?c:kg(t[r+1])?[]:{})}a1(o,l,u),o=o[l]}return e}function oz(e,t,n){for(var s=-1,r=t.length,i={};++s<r;){var a=t[s],o=Og(e,a);n(o,a)&&U3(i,Tc(a,e),o)}return i}function lz(e,t){return oz(e,t,function(n,s){return R3(e,s)})}var uz=g3(function(e,t){return e==null?{}:lz(e,t)});const Oi=uz;function cz(e,t,n){return e==null?e:U3(e,t,n)}var dz="Expected a function";function cl(e,t,n){var s=!0,r=!0;if(typeof e!="function")throw new TypeError(dz);return Ks(n)&&(s="leading"in n?!!n.leading:s,r="trailing"in n?!!n.trailing:r),or(e,t,{leading:s,maxWait:t,trailing:r})}var fz=1/0,hz=Su&&1/g1(new Su([,-0]))[1]==fz?function(e){return new Su(e)}:JF;const pz=hz;var mz=200;function gz(e,t,n){var s=-1,r=fV,i=e.length,a=!0,o=[],l=o;if(n)a=!1,r=HH;else if(i>=mz){var u=t?null:pz(e);if(u)return g1(u);a=!1,r=D3,l=new yf}else l=t?[]:o;e:for(;++s<i;){var c=e[s],f=t?t(c):c;if(c=n||c!==0?c:0,a&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),o.push(c)}else r(l,f,n)||(l!==o&&l.push(f),o.push(c))}return o}var vz=u3(function(e){return gz(Zf(e,1,L3,!0))});const p0=vz,Fn=e=>e===void 0,Hn=e=>typeof e=="boolean",pt=e=>typeof e=="number",Mr=e=>!e&&e!==0||Xe(e)&&e.length===0||Pt(e)&&!Object.keys(e).length,Kr=e=>typeof Element>"u"?!1:e instanceof Element,Tl=e=>os(e),yz=e=>bt(e)?!Number.isNaN(Number(e)):!1,$g=e=>e===window,po=e=>jt?window.requestAnimationFrame(e):setTimeout(e,16),Cl=e=>jt?window.cancelAnimationFrame(e):clearTimeout(e),v1=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Di=e=>Kf(e),zu=e=>Object.keys(e),bz=e=>Object.entries(e),Rp=(e,t,n)=>({get value(){return Rn(e,t,n)},set value(s){cz(e,t,s)}});class _z extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Zn(e,t){throw new _z(`[${e}] ${t}`)}const H3=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ur=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Lr=(e,t)=>{!e||!t.trim()||e.classList.add(...H3(t))},Os=(e,t)=>{!e||!t.trim()||e.classList.remove(...H3(t))},to=(e,t)=>{var n;if(!jt||!e||!t)return"";let s=qr(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 In(e,t="px"){if(!e)return"";if(pt(e)||yz(e))return`${e}${t}`;if(bt(e))return e}const Sz=(e,t)=>{if(!jt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],s=to(e,n);return["scroll","auto","overlay"].some(r=>s.includes(r))},y1=(e,t)=>{if(!jt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Sz(n,t))return n;n=n.parentNode}return n};let np;const z3=e=>{var t;if(!jt)return 0;if(np!==void 0)return np;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),np=s-i,np};function j3(e,t){if(!jt)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,a=e.scrollTop,o=a+e.clientHeight;r<a?e.scrollTop=r:i>o&&(e.scrollTop=i-e.clientHeight)}function wz(e,t,n,s,r){const i=Date.now();let a;const o=()=>{const u=Date.now()-i,c=rF(u>s?s:u,t,n,s);$g(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u<s?a=po(o):typeof r=="function"&&r()};return o(),()=>{a&&Cl(a)}}const OC=(e,t)=>$g(t)?e.ownerDocument.documentElement:t,PC=e=>$g(e)?window.scrollY:e.scrollTop,sp=e=>{if(!jt||e==="")return null;if(bt(e))try{return document.querySelector(e)}catch{return null}return e};/*! Element Plus Icons Vue v2.3.1 */var Tz=J({name:"Aim",__name:"aim",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),R("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),Cz=Tz,Ez=J({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Xi=Ez,xz=J({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),q3=xz,kz=J({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),mo=kz,Az=J({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),W3=Az,Iz=J({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Hs=Iz,Dz=J({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Rg=Dz,Oz=J({name:"Back",__name:"back",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),R("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),Pz=Oz,$z=J({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),Rz=$z,Nz=J({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Mz=Nz,Lz=J({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Ng=Lz,Bz=J({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Fz=Bz,Vz=J({name:"Check",__name:"check",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),eh=Vz,Uz=J({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Hz=Uz,zz=J({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),R("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"})]))}}),b1=zz,jz=J({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),_1=jz,qz=J({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),R("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ko=qz,Wz=J({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),R("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),R("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Kz=Wz,Gz=J({name:"Clock",__name:"clock",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),R("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),R("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),S1=Gz,Yz=J({name:"Close",__name:"close",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),hi=Yz,Xz=J({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),ju=Xz,Qz=J({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),qu=Qz,Jz=J({name:"Delete",__name:"delete",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Ec=Jz,Zz=J({name:"Document",__name:"document",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),ej=Zz,tj=J({name:"Edit",__name:"edit",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),R("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Mg=tj,nj=J({name:"Film",__name:"film",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),R("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),sj=nj,rj=J({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),ij=rj,aj=J({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),oj=aj,lj=J({name:"Hide",__name:"hide",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),R("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"})]))}}),uj=lj,cj=J({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),dj=cj,fj=J({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),w1=fj,hj=J({name:"Loading",__name:"loading",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Ao=hj,pj=J({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),mj=pj,gj=J({name:"Minus",__name:"minus",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),vj=gj,yj=J({name:"Moon",__name:"moon",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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.696"})]))}}),bj=yj,_j=J({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Vy=_j,Sj=J({name:"More",__name:"more",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),wj=Sj,Tj=J({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Cj=Tj,Ej=J({name:"Plus",__name:"plus",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),T1=Ej,xj=J({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),C1=xj,kj=J({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),Aj=kj,Ij=J({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),K3=Ij,Dj=J({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Oj=Dj,Pj=J({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),$j=Pj,Rj=J({name:"Search",__name:"search",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),bf=Rj,Nj=J({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Mj=Nj,Lj=J({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),Bj=Lj,Fj=J({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),rp=Fj,Vj=J({name:"Star",__name:"star",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Uj=Vj,Hj=J({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),G3=Hj,zj=J({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.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.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.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 0"})]))}}),jj=zj,qj=J({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),R("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),Wj=qj,Kj=J({name:"Timer",__name:"timer",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),R("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),R("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),Gj=Kj,Yj=J({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),Xj=Yj,Qj=J({name:"View",__name:"view",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Jj=Qj,Zj=J({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Lg=Zj,eq=J({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),E1=eq,tq=J({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(k(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),nq=tq;const Y3="__epPropKey",le=e=>e,sq=e=>Pt(e)&&!!e[Y3],yi=(e,t)=>{if(!Pt(e)||sq(e))return e;const{values:n,required:s,default:r,type:i,validator:a}=e,l={type:i,required:!!s,validator:n||a?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),qt(e,"default")&&f.push(r),c||(c=f.includes(u))),a&&(c||(c=a(u))),!c&&f.length>0){const h=[...new Set(f)].map(g=>JSON.stringify(g)).join(", ");B5(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[Y3]:!0};return qt(e,"default")&&(l.default=r),l},Ve=e=>Tm(Object.entries(e).map(([t,n])=>[t,yi(n,t)])),sn=le([String,Object,Function]),x1={Close:hi},k1={Close:hi,SuccessFilled:G3,InfoFilled:w1,WarningFilled:Lg,CircleCloseFilled:_1},go={success:G3,warning:Lg,error:_1,info:w1},A1={validating:Ao,success:b1,error:ko},Dt=(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},X3=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),rq=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Tn=e=>(e.install=Jt,e),Bg=(...e)=>t=>{e.forEach(n=>{mt(n)?n(t):n.value=t})},ot={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"},iq=["year","years","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],m0=["sun","mon","tue","wed","thu","fri","sat"],$t="update:modelValue",dn="change",zs="input",$C=Symbol("INSTALLED_KEY"),Qi=["","default","small","large"],Q3=e=>["",...Qi].includes(e);var Rr=(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))(Rr||{});function Uy(e){return _n(e)&&e.type===Ge}function aq(e){return _n(e)&&e.type===Ss}function oq(e){return _n(e)&&!Uy(e)&&!aq(e)}const lq=e=>{if(!_n(e))return{};const t=e.props||{},n=(_n(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach(r=>{qt(n[r],"default")&&(s[r]=n[r].default)}),Object.keys(t).forEach(r=>{s[qr(r)]=t[r]}),s},uq=e=>{if(!Xe(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},ao=e=>{const t=Xe(e)?e:[e],n=[];return t.forEach(s=>{var r;Xe(s)?n.push(...ao(s)):_n(s)&&Xe(s.children)?n.push(...ao(s.children)):(n.push(s),_n(s)&&((r=s.component)!=null&&r.subTree)&&n.push(...ao(s.component.subTree)))}),n},RC=e=>[...new Set(e)],Sr=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],I1=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),wn=e=>e;function cq(e){let t=0;const n=(...s)=>{t&&Cl(t),t=po(()=>{e(...s),t=0})};return n.cancel=()=>{Cl(t),t=0},n}const dq=["class","style"],fq=/^on[A-Z]/,D1=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,s=E(()=>((n==null?void 0:n.value)||[]).concat(dq)),r=It();return E(r?()=>{var i;return Tm(Object.entries((i=r.proxy)==null?void 0:i.$attrs).filter(([a])=>!s.value.includes(a)&&!(t&&fq.test(a))))}:()=>({}))},ss=({from:e,replacement:t,scope:n,version:s,ref:r,type:i="API"},a)=>{xe(()=>d(a),o=>{},{immediate:!0})},J3=(e,t,n,s)=>{let r={offsetX:0,offsetY:0};const i=l=>{const u=l.clientX,c=l.clientY,{offsetX:f,offsetY:h}=r,g=e.value.getBoundingClientRect(),m=g.left,p=g.top,y=g.width,v=g.height,b=document.documentElement.clientWidth,S=document.documentElement.clientHeight,T=-m+f,w=-p+h,C=b-m-y+f,O=S-p-v+h,P=U=>{let B=f+U.clientX-u,W=h+U.clientY-c;s!=null&&s.value||(B=Math.min(Math.max(B,T),C),W=Math.min(Math.max(W,w),O)),r={offsetX:B,offsetY:W},e.value&&(e.value.style.transform=`translate(${In(B)}, ${In(W)})`)},M=()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",M)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",M)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};gt(()=>{ps(()=>{n.value?a():o()})}),un(()=>{o()})};var hq={name:"en",el:{breadcrumb:{label:"Breadcrumb"},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"},tour:{next:"Next",previous:"Previous",finish:"Finish"},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"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const pq=e=>(t,n)=>mq(t,n,d(e)),mq=(e,t,n)=>Rn(n,e,e).replace(/\{(\w+)\}/g,(s,r)=>{var i;return`${(i=t==null?void 0:t[r])!=null?i:`{${r}}`}`}),gq=e=>{const t=E(()=>d(e).name),n=hn(e)?e:j(e);return{lang:t,locale:n,t:pq(e)}},Z3=Symbol("localeContextKey"),Wt=e=>{const t=e||Je(Z3,j());return gq(E(()=>t.value||hq))},Hd="el",vq="is-",jo=(e,t,n,s,r)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),s&&(i+=`__${s}`),r&&(i+=`--${r}`),i},eI=Symbol("namespaceContextKey"),O1=e=>{const t=e||(It()?Je(eI,j(Hd)):j(Hd));return E(()=>d(t)||Hd)},Pe=(e,t)=>{const n=O1(t);return{namespace:n,b:(p="")=>jo(n.value,e,p,"",""),e:p=>p?jo(n.value,e,"",p,""):"",m:p=>p?jo(n.value,e,"","",p):"",be:(p,y)=>p&&y?jo(n.value,e,p,y,""):"",em:(p,y)=>p&&y?jo(n.value,e,"",p,y):"",bm:(p,y)=>p&&y?jo(n.value,e,p,"",y):"",bem:(p,y,v)=>p&&y&&v?jo(n.value,e,p,y,v):"",is:(p,...y)=>{const v=y.length>=1?y[0]:!0;return p&&v?`${vq}${p}`:""},cssVar:p=>{const y={};for(const v in p)p[v]&&(y[`--${n.value}-${v}`]=p[v]);return y},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const y={};for(const v in p)p[v]&&(y[`--${n.value}-${e}-${v}`]=p[v]);return y},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}},P1=(e,t={})=>{hn(e)||Zn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Pe("popup"),s=E(()=>n.bm("parent","hidden"));if(!jt||Ur(document.body,s.value))return;let r=0,i=!1,a="0";const o=()=>{setTimeout(()=>{Os(document==null?void 0:document.body,s.value),i&&document&&(document.body.style.width=a)},200)};xe(e,l=>{if(!l){o();return}i=!Ur(document.body,s.value),i&&(a=document.body.style.width),r=z3(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=to(document.body,"overflowY");r>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),Lr(document.body,s.value)}),UA(()=>o())},yq=yi({type:le(Boolean),default:null}),bq=yi({type:le(Function)}),tI=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,s=[t],r={[e]:yq,[n]:bq};return{useModelToggle:({indicator:a,toggleReason:o,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const h=It(),{emit:g}=h,m=h.props,p=E(()=>mt(m[n])),y=E(()=>m[e]===null),v=O=>{a.value!==!0&&(a.value=!0,o&&(o.value=O),mt(c)&&c(O))},b=O=>{a.value!==!1&&(a.value=!1,o&&(o.value=O),mt(f)&&f(O))},S=O=>{if(m.disabled===!0||mt(u)&&!u())return;const P=p.value&&jt;P&&g(t,!0),(y.value||!P)&&v(O)},T=O=>{if(m.disabled===!0||!jt)return;const P=p.value&&jt;P&&g(t,!1),(y.value||!P)&&b(O)},w=O=>{Hn(O)&&(m.disabled&&O?p.value&&g(t,!1):a.value!==O&&(O?v():b()))},C=()=>{a.value?T():S()};return xe(()=>m[e],w),l&&h.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...h.proxy.$route}),()=>{l.value&&a.value&&T()}),gt(()=>{w(m[e])}),{hide:T,show:S,toggle:C,hasUpdateHandler:p}},useModelToggleProps:r,useModelToggleEmits:s}};tI("modelValue");const nI=e=>{const t=It();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 sr="top",Gr="bottom",Yr="right",rr="left",$1="auto",th=[sr,Gr,Yr,rr],Wu="start",_f="end",_q="clippingParents",sI="viewport",ad="popper",Sq="reference",NC=th.reduce(function(e,t){return e.concat([t+"-"+Wu,t+"-"+_f])},[]),Ll=[].concat(th,[$1]).reduce(function(e,t){return e.concat([t,t+"-"+Wu,t+"-"+_f])},[]),wq="beforeRead",Tq="read",Cq="afterRead",Eq="beforeMain",xq="main",kq="afterMain",Aq="beforeWrite",Iq="write",Dq="afterWrite",Oq=[wq,Tq,Cq,Eq,xq,kq,Aq,Iq,Dq];function Hi(e){return e?(e.nodeName||"").toLowerCase():null}function bi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ku(e){var t=bi(e).Element;return e instanceof t||e instanceof Element}function Hr(e){var t=bi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function R1(e){if(typeof ShadowRoot>"u")return!1;var t=bi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Pq(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];!Hr(i)||!Hi(i)||(Object.assign(i.style,s),Object.keys(r).forEach(function(a){var o=r[a];o===!1?i.removeAttribute(a):i.setAttribute(a,o===!0?"":o)}))})}function $q(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]||{},a=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),o=a.reduce(function(l,u){return l[u]="",l},{});!Hr(r)||!Hi(r)||(Object.assign(r.style,o),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}var rI={name:"applyStyles",enabled:!0,phase:"write",fn:Pq,effect:$q,requires:["computeStyles"]};function Li(e){return e.split("-")[0]}var dl=Math.max,Cm=Math.min,Gu=Math.round;function Yu(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),s=1,r=1;if(Hr(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(s=Gu(n.width)/a||1),i>0&&(r=Gu(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 N1(e){var t=Yu(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 iI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&R1(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ya(e){return bi(e).getComputedStyle(e)}function Rq(e){return["table","td","th"].indexOf(Hi(e))>=0}function Io(e){return((Ku(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fg(e){return Hi(e)==="html"?e:e.assignedSlot||e.parentNode||(R1(e)?e.host:null)||Io(e)}function MC(e){return!Hr(e)||ya(e).position==="fixed"?null:e.offsetParent}function Nq(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Hr(e)){var s=ya(e);if(s.position==="fixed")return null}var r=Fg(e);for(R1(r)&&(r=r.host);Hr(r)&&["html","body"].indexOf(Hi(r))<0;){var i=ya(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 nh(e){for(var t=bi(e),n=MC(e);n&&Rq(n)&&ya(n).position==="static";)n=MC(n);return n&&(Hi(n)==="html"||Hi(n)==="body"&&ya(n).position==="static")?t:n||Nq(e)||t}function M1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zd(e,t,n){return dl(e,Cm(t,n))}function Mq(e,t,n){var s=zd(e,t,n);return s>n?n:s}function aI(){return{top:0,right:0,bottom:0,left:0}}function oI(e){return Object.assign({},aI(),e)}function lI(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var Lq=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,oI(typeof e!="number"?e:lI(e,th))};function Bq(e){var t,n=e.state,s=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,o=Li(n.placement),l=M1(o),u=[rr,Yr].indexOf(o)>=0,c=u?"height":"width";if(!(!i||!a)){var f=Lq(r.padding,n),h=N1(i),g=l==="y"?sr:rr,m=l==="y"?Gr:Yr,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],y=a[l]-n.rects.reference[l],v=nh(i),b=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,S=p/2-y/2,T=f[g],w=b-h[c]-f[m],C=b/2-h[c]/2+S,O=zd(T,C,w),P=l;n.modifiersData[s]=(t={},t[P]=O,t.centerOffset=O-C,t)}}function Fq(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)||!iI(t.elements.popper,r)||(t.elements.arrow=r))}var Vq={name:"arrow",enabled:!0,phase:"main",fn:Bq,effect:Fq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xu(e){return e.split("-")[1]}var Uq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hq(e){var t=e.x,n=e.y,s=window,r=s.devicePixelRatio||1;return{x:Gu(t*r)/r||0,y:Gu(n*r)/r||0}}function LC(e){var t,n=e.popper,s=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,h=a.x,g=h===void 0?0:h,m=a.y,p=m===void 0?0:m,y=typeof c=="function"?c({x:g,y:p}):{x:g,y:p};g=y.x,p=y.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),S=rr,T=sr,w=window;if(u){var C=nh(n),O="clientHeight",P="clientWidth";if(C===bi(n)&&(C=Io(n),ya(C).position!=="static"&&o==="absolute"&&(O="scrollHeight",P="scrollWidth")),C=C,r===sr||(r===rr||r===Yr)&&i===_f){T=Gr;var M=f&&C===w&&w.visualViewport?w.visualViewport.height:C[O];p-=M-s.height,p*=l?1:-1}if(r===rr||(r===sr||r===Gr)&&i===_f){S=Yr;var U=f&&C===w&&w.visualViewport?w.visualViewport.width:C[P];g-=U-s.width,g*=l?1:-1}}var B=Object.assign({position:o},u&&Uq),W=c===!0?Hq({x:g,y:p}):{x:g,y:p};if(g=W.x,p=W.y,l){var Q;return Object.assign({},B,(Q={},Q[T]=b?"0":"",Q[S]=v?"0":"",Q.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+p+"px)":"translate3d("+g+"px, "+p+"px, 0)",Q))}return Object.assign({},B,(t={},t[T]=b?p+"px":"",t[S]=v?g+"px":"",t.transform="",t))}function zq(e){var t=e.state,n=e.options,s=n.gpuAcceleration,r=s===void 0?!0:s,i=n.adaptive,a=i===void 0?!0:i,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:Li(t.placement),variation:Xu(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,LC(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,LC(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 uI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zq,data:{}},ip={passive:!0};function jq(e){var t=e.state,n=e.instance,s=e.options,r=s.scroll,i=r===void 0?!0:r,a=s.resize,o=a===void 0?!0:a,l=bi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ip)}),o&&l.addEventListener("resize",n.update,ip),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ip)}),o&&l.removeEventListener("resize",n.update,ip)}}var cI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jq,data:{}},qq={left:"right",right:"left",bottom:"top",top:"bottom"};function Np(e){return e.replace(/left|right|bottom|top/g,function(t){return qq[t]})}var Wq={start:"end",end:"start"};function BC(e){return e.replace(/start|end/g,function(t){return Wq[t]})}function L1(e){var t=bi(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function B1(e){return Yu(Io(e)).left+L1(e).scrollLeft}function Kq(e){var t=bi(e),n=Io(e),s=t.visualViewport,r=n.clientWidth,i=n.clientHeight,a=0,o=0;return s&&(r=s.width,i=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=s.offsetLeft,o=s.offsetTop)),{width:r,height:i,x:a+B1(e),y:o}}function Gq(e){var t,n=Io(e),s=L1(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=dl(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=dl(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-s.scrollLeft+B1(e),l=-s.scrollTop;return ya(r||n).direction==="rtl"&&(o+=dl(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}function F1(e){var t=ya(e),n=t.overflow,s=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+s)}function dI(e){return["html","body","#document"].indexOf(Hi(e))>=0?e.ownerDocument.body:Hr(e)&&F1(e)?e:dI(Fg(e))}function jd(e,t){var n;t===void 0&&(t=[]);var s=dI(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=bi(s),a=r?[i].concat(i.visualViewport||[],F1(s)?s:[]):s,o=t.concat(a);return r?o:o.concat(jd(Fg(a)))}function Hy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yq(e){var t=Yu(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 FC(e,t){return t===sI?Hy(Kq(e)):Ku(t)?Yq(t):Hy(Gq(Io(e)))}function Xq(e){var t=jd(Fg(e)),n=["absolute","fixed"].indexOf(ya(e).position)>=0,s=n&&Hr(e)?nh(e):e;return Ku(s)?t.filter(function(r){return Ku(r)&&iI(r,s)&&Hi(r)!=="body"}):[]}function Qq(e,t,n){var s=t==="clippingParents"?Xq(e):[].concat(t),r=[].concat(s,[n]),i=r[0],a=r.reduce(function(o,l){var u=FC(e,l);return o.top=dl(u.top,o.top),o.right=Cm(u.right,o.right),o.bottom=Cm(u.bottom,o.bottom),o.left=dl(u.left,o.left),o},FC(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function fI(e){var t=e.reference,n=e.element,s=e.placement,r=s?Li(s):null,i=s?Xu(s):null,a=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(r){case sr:l={x:a,y:t.y-n.height};break;case Gr:l={x:a,y:t.y+t.height};break;case Yr:l={x:t.x+t.width,y:o};break;case rr:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=r?M1(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Wu:l[u]=l[u]-(t[c]/2-n[c]/2);break;case _f:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Sf(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=s===void 0?e.placement:s,i=n.boundary,a=i===void 0?_q:i,o=n.rootBoundary,l=o===void 0?sI:o,u=n.elementContext,c=u===void 0?ad:u,f=n.altBoundary,h=f===void 0?!1:f,g=n.padding,m=g===void 0?0:g,p=oI(typeof m!="number"?m:lI(m,th)),y=c===ad?Sq:ad,v=e.rects.popper,b=e.elements[h?y:c],S=Qq(Ku(b)?b:b.contextElement||Io(e.elements.popper),a,l),T=Yu(e.elements.reference),w=fI({reference:T,element:v,strategy:"absolute",placement:r}),C=Hy(Object.assign({},v,w)),O=c===ad?C:T,P={top:S.top-O.top+p.top,bottom:O.bottom-S.bottom+p.bottom,left:S.left-O.left+p.left,right:O.right-S.right+p.right},M=e.modifiersData.offset;if(c===ad&&M){var U=M[r];Object.keys(P).forEach(function(B){var W=[Yr,Gr].indexOf(B)>=0?1:-1,Q=[sr,Gr].indexOf(B)>=0?"y":"x";P[B]+=U[Q]*W})}return P}function Jq(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Ll:l,c=Xu(s),f=c?o?NC:NC.filter(function(m){return Xu(m)===c}):th,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var g=h.reduce(function(m,p){return m[p]=Sf(e,{placement:p,boundary:r,rootBoundary:i,padding:a})[Li(p)],m},{});return Object.keys(g).sort(function(m,p){return g[m]-g[p]})}function Zq(e){if(Li(e)===$1)return[];var t=Np(e);return[BC(e),t,BC(t)]}function eW(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,a=n.altAxis,o=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,p=n.allowedAutoPlacements,y=t.options.placement,v=Li(y),b=v===y,S=l||(b||!m?[Np(y)]:Zq(y)),T=[y].concat(S).reduce(function(_e,Ne){return _e.concat(Li(Ne)===$1?Jq(t,{placement:Ne,boundary:c,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:p}):Ne)},[]),w=t.rects.reference,C=t.rects.popper,O=new Map,P=!0,M=T[0],U=0;U<T.length;U++){var B=T[U],W=Li(B),Q=Xu(B)===Wu,G=[sr,Gr].indexOf(W)>=0,X=G?"width":"height",q=Sf(t,{placement:B,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),H=G?Q?Yr:rr:Q?Gr:sr;w[X]>C[X]&&(H=Np(H));var V=Np(H),N=[];if(i&&N.push(q[W]<=0),o&&N.push(q[H]<=0,q[V]<=0),N.every(function(_e){return _e})){M=B,P=!1;break}O.set(B,N)}if(P)for(var Y=m?3:1,Z=function(_e){var Ne=T.find(function(ce){var te=O.get(ce);if(te)return te.slice(0,_e).every(function(ie){return ie})});if(Ne)return M=Ne,"break"},ne=Y;ne>0;ne--){var ue=Z(ne);if(ue==="break")break}t.placement!==M&&(t.modifiersData[s]._skip=!0,t.placement=M,t.reset=!0)}}var tW={name:"flip",enabled:!0,phase:"main",fn:eW,requiresIfExists:["offset"],data:{_skip:!1}};function VC(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 UC(e){return[sr,Yr,Gr,rr].some(function(t){return e[t]>=0})}function nW(e){var t=e.state,n=e.name,s=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Sf(t,{elementContext:"reference"}),o=Sf(t,{altBoundary:!0}),l=VC(a,s),u=VC(o,r,i),c=UC(l),f=UC(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var sW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nW};function rW(e,t,n){var s=Li(e),r=[rr,sr].indexOf(s)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],o=i[1];return a=a||0,o=(o||0)*r,[rr,Yr].indexOf(s)>=0?{x:o,y:a}:{x:a,y:o}}function iW(e){var t=e.state,n=e.options,s=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=Ll.reduce(function(c,f){return c[f]=rW(f,t.rects,i),c},{}),o=a[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[s]=a}var aW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iW};function oW(e){var t=e.state,n=e.name;t.modifiersData[n]=fI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var hI={name:"popperOffsets",enabled:!0,phase:"read",fn:oW,data:{}};function lW(e){return e==="x"?"y":"x"}function uW(e){var t=e.state,n=e.options,s=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,o=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,m=n.tetherOffset,p=m===void 0?0:m,y=Sf(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),v=Li(t.placement),b=Xu(t.placement),S=!b,T=M1(v),w=lW(T),C=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,M=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,U=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(C){if(i){var Q,G=T==="y"?sr:rr,X=T==="y"?Gr:Yr,q=T==="y"?"height":"width",H=C[T],V=H+y[G],N=H-y[X],Y=g?-P[q]/2:0,Z=b===Wu?O[q]:P[q],ne=b===Wu?-P[q]:-O[q],ue=t.elements.arrow,_e=g&&ue?N1(ue):{width:0,height:0},Ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aI(),ce=Ne[G],te=Ne[X],ie=zd(0,O[q],_e[q]),we=S?O[q]/2-Y-ie-ce-U.mainAxis:Z-ie-ce-U.mainAxis,me=S?-O[q]/2+Y+ie+te+U.mainAxis:ne+ie+te+U.mainAxis,Ce=t.elements.arrow&&nh(t.elements.arrow),Be=Ce?T==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,ee=(Q=B==null?void 0:B[T])!=null?Q:0,se=H+we-ee-Be,Te=H+me-ee,Le=zd(g?Cm(V,se):V,H,g?dl(N,Te):N);C[T]=Le,W[T]=Le-H}if(o){var Se,De=T==="x"?sr:rr,Fe=T==="x"?Gr:Yr,Ie=C[w],je=w==="y"?"height":"width",Ee=Ie+y[De],Ze=Ie-y[Fe],nt=[sr,rr].indexOf(v)!==-1,ke=(Se=B==null?void 0:B[w])!=null?Se:0,et=nt?Ee:Ie-O[je]-P[je]-ke+U.altAxis,dt=nt?Ie+O[je]+P[je]-ke-U.altAxis:Ze,At=g&&nt?Mq(et,Ie,dt):zd(g?et:Ee,Ie,g?dt:Ze);C[w]=At,W[w]=At-Ie}t.modifiersData[s]=W}}var cW={name:"preventOverflow",enabled:!0,phase:"main",fn:uW,requiresIfExists:["offset"]};function dW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fW(e){return e===bi(e)||!Hr(e)?L1(e):dW(e)}function hW(e){var t=e.getBoundingClientRect(),n=Gu(t.width)/e.offsetWidth||1,s=Gu(t.height)/e.offsetHeight||1;return n!==1||s!==1}function pW(e,t,n){n===void 0&&(n=!1);var s=Hr(t),r=Hr(t)&&hW(t),i=Io(t),a=Yu(e,r),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((Hi(t)!=="body"||F1(i))&&(o=fW(t)),Hr(t)?(l=Yu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=B1(i))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function mW(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 a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&r(l)}}),s.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),s}function gW(e){var t=mW(e);return Oq.reduce(function(n,s){return n.concat(t.filter(function(r){return r.phase===s}))},[])}function vW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yW(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 HC={placement:"bottom",modifiers:[],strategy:"absolute"};function zC(){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 V1(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?HC:r;return function(a,o,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},HC,i),modifiersData:{},elements:{reference:a,popper:o},attributes:{},styles:{}},c=[],f=!1,h={state:u,setOptions:function(p){var y=typeof p=="function"?p(u.options):p;m(),u.options=Object.assign({},i,u.options,y),u.scrollParents={reference:Ku(a)?jd(a):a.contextElement?jd(a.contextElement):[],popper:jd(o)};var v=gW(yW([].concat(s,u.options.modifiers)));return u.orderedModifiers=v.filter(function(b){return b.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var p=u.elements,y=p.reference,v=p.popper;if(zC(y,v)){u.rects={reference:pW(y,nh(v),u.options.strategy==="fixed"),popper:N1(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var S=u.orderedModifiers[b],T=S.fn,w=S.options,C=w===void 0?{}:w,O=S.name;typeof T=="function"&&(u=T({state:u,options:C,name:O,instance:h})||u)}}}},update:vW(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){m(),f=!0}};if(!zC(a,o))return h;h.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function g(){u.orderedModifiers.forEach(function(p){var y=p.name,v=p.options,b=v===void 0?{}:v,S=p.effect;if(typeof S=="function"){var T=S({state:u,name:y,instance:h,options:b}),w=function(){};c.push(T||w)}})}function m(){c.forEach(function(p){return p()}),c=[]}return h}}V1();var bW=[cI,hI,uI,rI];V1({defaultModifiers:bW});var _W=[cI,hI,uI,rI,aW,tW,cW,Vq,sW],SW=V1({defaultModifiers:_W});const wW=(e,t,n={})=>{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=TW(l);Object.assign(a.value,u)},requires:["computeStyles"]},r=E(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=d(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],s,{name:"applyStyles",enabled:!1}]}}),i=ln(),a=j({styles:{popper:{position:d(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),o=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return xe(r,l=>{const u=d(i);u&&u.setOptions(l)},{deep:!0}),xe([e,t],([l,u])=>{o(),!(!l||!u)&&(i.value=SW(l,u,d(r)))}),un(()=>{o()}),{state:E(()=>{var l;return{...((l=d(i))==null?void 0:l.state)||{}}}),styles:E(()=>d(a).styles),attributes:E(()=>d(a).attributes),update:()=>{var l;return(l=d(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=d(i))==null?void 0:l.forceUpdate()},instanceRef:E(()=>d(i))}};function TW(e){const t=Object.keys(e.elements),n=Tm(t.map(r=>[r,e.styles[r]||{}])),s=Tm(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:s}}const U1=e=>{if(!e)return{onClick:Jt,onMousedown:Jt,onMouseup:Jt};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},CW=(e,t=0)=>{if(t===0)return e;const n=j(!1);let s=0;const r=()=>{s&&clearTimeout(s),s=window.setTimeout(()=>{n.value=e.value},t)};return gt(r),xe(()=>e.value,i=>{i?r():n.value=i}),n};function jC(){let e;const t=(s,r)=>{n(),e=window.setTimeout(s,r)},n=()=>window.clearTimeout(e);return Yf(()=>n()),{registerTimeout:t,cancelTimeout:n}}const qC={prefix:Math.floor(Math.random()*1e4),current:0},EW=Symbol("elIdInjection"),H1=()=>It()?Je(EW,qC):qC,xs=e=>{const t=H1(),n=O1();return E(()=>d(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let iu=[];const WC=e=>{const t=e;t.key===ot.esc&&iu.forEach(n=>n(t))},xW=e=>{gt(()=>{iu.length===0&&document.addEventListener("keydown",WC),jt&&iu.push(e)}),un(()=>{iu=iu.filter(t=>t!==e),iu.length===0&&jt&&document.removeEventListener("keydown",WC)})};let KC;const pI=()=>{const e=O1(),t=H1(),n=E(()=>`${e.value}-popper-container-${t.prefix}`),s=E(()=>`#${n.value}`);return{id:n,selector:s}},kW=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},AW=()=>{const{id:e,selector:t}=pI();return Pl(()=>{jt&&!KC&&!document.body.querySelector(t.value)&&(KC=kW(e.value))}),{id:e,selector:t}},IW=Ve({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),DW=({showAfter:e,hideAfter:t,autoClose:n,open:s,close:r})=>{const{registerTimeout:i}=jC(),{registerTimeout:a,cancelTimeout:o}=jC();return{onOpen:c=>{i(()=>{s(c);const f=d(n);pt(f)&&f>0&&a(()=>{r(c)},f)},d(e))},onClose:c=>{o(),i(()=>{r(c)},d(t))}}},mI=Symbol("elForwardRef"),OW=e=>{Mt(mI,{setForwardRef:n=>{e.value=n}})},PW=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),GC={current:0},YC=j(0),gI=2e3,XC=Symbol("elZIndexContextKey"),vI=Symbol("zIndexContextKey"),xc=e=>{const t=It()?Je(XC,GC):GC,n=e||(It()?Je(vI,void 0):void 0),s=E(()=>{const a=d(n);return pt(a)?a:gI}),r=E(()=>s.value+YC.value),i=()=>(t.current++,YC.value=t.current,r.value);return!jt&&Je(XC),{initialZIndex:s,currentZIndex:r,nextZIndex:i}},Qu=Math.min,fl=Math.max,Em=Math.round,ap=Math.floor,vo=e=>({x:e,y:e}),$W={left:"right",right:"left",bottom:"top",top:"bottom"},RW={start:"end",end:"start"};function zy(e,t,n){return fl(e,Qu(t,n))}function sh(e,t){return typeof e=="function"?e(t):e}function El(e){return e.split("-")[0]}function rh(e){return e.split("-")[1]}function yI(e){return e==="x"?"y":"x"}function z1(e){return e==="y"?"height":"width"}function Ju(e){return["top","bottom"].includes(El(e))?"y":"x"}function j1(e){return yI(Ju(e))}function NW(e,t,n){n===void 0&&(n=!1);const s=rh(e),r=j1(e),i=z1(r);let a=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=xm(a)),[a,xm(a)]}function MW(e){const t=xm(e);return[jy(e),t,jy(t)]}function jy(e){return e.replace(/start|end/g,t=>RW[t])}function LW(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:a;default:return[]}}function BW(e,t,n,s){const r=rh(e);let i=LW(El(e),n==="start",s);return r&&(i=i.map(a=>a+"-"+r),t&&(i=i.concat(i.map(jy)))),i}function xm(e){return e.replace(/left|right|bottom|top/g,t=>$W[t])}function FW(e){return{top:0,right:0,bottom:0,left:0,...e}}function bI(e){return typeof e!="number"?FW(e):{top:e,right:e,bottom:e,left:e}}function km(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function QC(e,t,n){let{reference:s,floating:r}=e;const i=Ju(t),a=j1(t),o=z1(a),l=El(t),u=i==="y",c=s.x+s.width/2-r.width/2,f=s.y+s.height/2-r.height/2,h=s[o]/2-r[o]/2;let g;switch(l){case"top":g={x:c,y:s.y-r.height};break;case"bottom":g={x:c,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:f};break;case"left":g={x:s.x-r.width,y:f};break;default:g={x:s.x,y:s.y}}switch(rh(t)){case"start":g[a]-=h*(n&&u?-1:1);break;case"end":g[a]+=h*(n&&u?-1:1);break}return g}const VW=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,o=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=QC(u,s,l),h=s,g={},m=0;for(let p=0;p<o.length;p++){const{name:y,fn:v}=o[p],{x:b,y:S,data:T,reset:w}=await v({x:c,y:f,initialPlacement:s,placement:h,strategy:r,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});c=b??c,f=S??f,g={...g,[y]:{...g[y],...T}},w&&m<=50&&(m++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):w.rects),{x:c,y:f}=QC(u,h,l)),p=-1)}return{x:c,y:f,placement:h,strategy:r,middlewareData:g}};async function q1(e,t){var n;t===void 0&&(t={});const{x:s,y:r,platform:i,rects:a,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=sh(t,e),m=bI(g),y=o[h?f==="floating"?"reference":"floating":f],v=km(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),b=f==="floating"?{x:s,y:r,width:a.floating.width,height:a.floating.height}:a.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),T=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},w=km(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:b,offsetParent:S,strategy:l}):b);return{top:(v.top-w.top+m.top)/T.y,bottom:(w.bottom-v.bottom+m.bottom)/T.y,left:(v.left-w.left+m.left)/T.x,right:(w.right-v.right+m.right)/T.x}}const UW=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:a,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=sh(e,t)||{};if(u==null)return{};const f=bI(c),h={x:n,y:s},g=j1(r),m=z1(g),p=await a.getDimensions(u),y=g==="y",v=y?"top":"left",b=y?"bottom":"right",S=y?"clientHeight":"clientWidth",T=i.reference[m]+i.reference[g]-h[g]-i.floating[m],w=h[g]-i.reference[g],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let O=C?C[S]:0;(!O||!await(a.isElement==null?void 0:a.isElement(C)))&&(O=o.floating[S]||i.floating[m]);const P=T/2-w/2,M=O/2-p[m]/2-1,U=Qu(f[v],M),B=Qu(f[b],M),W=U,Q=O-p[m]-B,G=O/2-p[m]/2+P,X=zy(W,G,Q),q=!l.arrow&&rh(r)!=null&&G!==X&&i.reference[m]/2-(G<W?U:B)-p[m]/2<0,H=q?G<W?G-W:G-Q:0;return{[g]:h[g]+H,data:{[g]:X,centerOffset:G-X-H,...q&&{alignmentOffset:H}},reset:q}}}),HW=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=sh(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=El(r),b=Ju(o),S=El(o)===o,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=h||(S||!p?[xm(o)]:MW(o)),C=m!=="none";!h&&C&&w.push(...BW(o,p,m,T));const O=[o,...w],P=await q1(t,y),M=[];let U=((s=i.flip)==null?void 0:s.overflows)||[];if(c&&M.push(P[v]),f){const G=NW(r,a,T);M.push(P[G[0]],P[G[1]])}if(U=[...U,{placement:r,overflows:M}],!M.every(G=>G<=0)){var B,W;const G=(((B=i.flip)==null?void 0:B.index)||0)+1,X=O[G];if(X)return{data:{index:G,overflows:U},reset:{placement:X}};let q=(W=U.filter(H=>H.overflows[0]<=0).sort((H,V)=>H.overflows[1]-V.overflows[1])[0])==null?void 0:W.placement;if(!q)switch(g){case"bestFit":{var Q;const H=(Q=U.filter(V=>{if(C){const N=Ju(V.placement);return N===b||N==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(N=>N>0).reduce((N,Y)=>N+Y,0)]).sort((V,N)=>V[1]-N[1])[0])==null?void 0:Q[0];H&&(q=H);break}case"initialPlacement":q=o;break}if(r!==q)return{reset:{placement:q}}}return{}}}};async function zW(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),a=El(n),o=rh(n),l=Ju(n)==="y",u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,f=sh(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return o&&typeof m=="number"&&(g=o==="end"?m*-1:m),l?{x:g*c,y:h*u}:{x:h*u,y:g*c}}const jW=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:i,placement:a,middlewareData:o}=t,l=await zW(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(s=o.arrow)!=null&&s.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},qW=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:o={fn:y=>{let{x:v,y:b}=y;return{x:v,y:b}}},...l}=sh(e,t),u={x:n,y:s},c=await q1(t,l),f=Ju(El(r)),h=yI(f);let g=u[h],m=u[f];if(i){const y=h==="y"?"top":"left",v=h==="y"?"bottom":"right",b=g+c[y],S=g-c[v];g=zy(b,g,S)}if(a){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=m+c[y],S=m-c[v];m=zy(b,m,S)}const p=o.fn({...t,[h]:g,[f]:m});return{...p,data:{x:p.x-n,y:p.y-s}}}}};function kc(e){return _I(e)?(e.nodeName||"").toLowerCase():"#document"}function xr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ia(e){var t;return(t=(_I(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _I(e){return e instanceof Node||e instanceof xr(e).Node}function zi(e){return e instanceof Element||e instanceof xr(e).Element}function ji(e){return e instanceof HTMLElement||e instanceof xr(e).HTMLElement}function JC(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xr(e).ShadowRoot}function ih(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=pi(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function WW(e){return["table","td","th"].includes(kc(e))}function Vg(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function W1(e){const t=K1(),n=pi(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function KW(e){let t=yo(e);for(;ji(t)&&!Zu(t);){if(Vg(t))return null;if(W1(t))return t;t=yo(t)}return null}function K1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zu(e){return["html","body","#document"].includes(kc(e))}function pi(e){return xr(e).getComputedStyle(e)}function Ug(e){return zi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yo(e){if(kc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||JC(e)&&e.host||Ia(e);return JC(t)?t.host:t}function SI(e){const t=yo(e);return Zu(t)?e.ownerDocument?e.ownerDocument.body:e.body:ji(t)&&ih(t)?t:SI(t)}function wf(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=SI(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),a=xr(r);return i?t.concat(a,a.visualViewport||[],ih(r)?r:[],a.frameElement&&n?wf(a.frameElement):[]):t.concat(r,wf(r,[],n))}function wI(e){const t=pi(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=ji(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:s,o=Em(n)!==i||Em(s)!==a;return o&&(n=i,s=a),{width:n,height:s,$:o}}function G1(e){return zi(e)?e:e.contextElement}function Tu(e){const t=G1(e);if(!ji(t))return vo(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=wI(t);let a=(i?Em(n.width):n.width)/s,o=(i?Em(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const GW=vo(0);function TI(e){const t=xr(e);return!K1()||!t.visualViewport?GW:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function YW(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xr(e)?!1:t}function xl(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=G1(e);let a=vo(1);t&&(s?zi(s)&&(a=Tu(s)):a=Tu(e));const o=YW(i,n,s)?TI(i):vo(0);let l=(r.left+o.x)/a.x,u=(r.top+o.y)/a.y,c=r.width/a.x,f=r.height/a.y;if(i){const h=xr(i),g=s&&zi(s)?xr(s):s;let m=h,p=m.frameElement;for(;p&&s&&g!==m;){const y=Tu(p),v=p.getBoundingClientRect(),b=pi(p),S=v.left+(p.clientLeft+parseFloat(b.paddingLeft))*y.x,T=v.top+(p.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,f*=y.y,l+=S,u+=T,m=xr(p),p=m.frameElement}}return km({width:c,height:f,x:l,y:u})}function XW(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",a=Ia(s),o=t?Vg(t.floating):!1;if(s===a||o&&i)return n;let l={scrollLeft:0,scrollTop:0},u=vo(1);const c=vo(0),f=ji(s);if((f||!f&&!i)&&((kc(s)!=="body"||ih(a))&&(l=Ug(s)),ji(s))){const h=xl(s);u=Tu(s),c.x=h.x+s.clientLeft,c.y=h.y+s.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function QW(e){return Array.from(e.getClientRects())}function CI(e){return xl(Ia(e)).left+Ug(e).scrollLeft}function JW(e){const t=Ia(e),n=Ug(e),s=e.ownerDocument.body,r=fl(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=fl(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let a=-n.scrollLeft+CI(e);const o=-n.scrollTop;return pi(s).direction==="rtl"&&(a+=fl(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:a,y:o}}function ZW(e,t){const n=xr(e),s=Ia(e),r=n.visualViewport;let i=s.clientWidth,a=s.clientHeight,o=0,l=0;if(r){i=r.width,a=r.height;const u=K1();(!u||u&&t==="fixed")&&(o=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:o,y:l}}function eK(e,t){const n=xl(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=ji(e)?Tu(e):vo(1),a=e.clientWidth*i.x,o=e.clientHeight*i.y,l=r*i.x,u=s*i.y;return{width:a,height:o,x:l,y:u}}function ZC(e,t,n){let s;if(t==="viewport")s=ZW(e,n);else if(t==="document")s=JW(Ia(e));else if(zi(t))s=eK(t,n);else{const r=TI(e);s={...t,x:t.x-r.x,y:t.y-r.y}}return km(s)}function EI(e,t){const n=yo(e);return n===t||!zi(n)||Zu(n)?!1:pi(n).position==="fixed"||EI(n,t)}function tK(e,t){const n=t.get(e);if(n)return n;let s=wf(e,[],!1).filter(o=>zi(o)&&kc(o)!=="body"),r=null;const i=pi(e).position==="fixed";let a=i?yo(e):e;for(;zi(a)&&!Zu(a);){const o=pi(a),l=W1(a);!l&&o.position==="fixed"&&(r=null),(i?!l&&!r:!l&&o.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ih(a)&&!l&&EI(e,a))?s=s.filter(c=>c!==a):r=o,a=yo(a)}return t.set(e,s),s}function nK(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const a=[...n==="clippingAncestors"?Vg(t)?[]:tK(t,this._c):[].concat(n),s],o=a[0],l=a.reduce((u,c)=>{const f=ZC(t,c,r);return u.top=fl(f.top,u.top),u.right=Qu(f.right,u.right),u.bottom=Qu(f.bottom,u.bottom),u.left=fl(f.left,u.left),u},ZC(t,o,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sK(e){const{width:t,height:n}=wI(e);return{width:t,height:n}}function rK(e,t,n){const s=ji(t),r=Ia(t),i=n==="fixed",a=xl(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const l=vo(0);if(s||!s&&!i)if((kc(t)!=="body"||ih(r))&&(o=Ug(t)),s){const f=xl(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else r&&(l.x=CI(r));const u=a.left+o.scrollLeft-l.x,c=a.top+o.scrollTop-l.y;return{x:u,y:c,width:a.width,height:a.height}}function g0(e){return pi(e).position==="static"}function eE(e,t){return!ji(e)||pi(e).position==="fixed"?null:t?t(e):e.offsetParent}function xI(e,t){const n=xr(e);if(Vg(e))return n;if(!ji(e)){let r=yo(e);for(;r&&!Zu(r);){if(zi(r)&&!g0(r))return r;r=yo(r)}return n}let s=eE(e,t);for(;s&&WW(s)&&g0(s);)s=eE(s,t);return s&&Zu(s)&&g0(s)&&!W1(s)?n:s||KW(e)||n}const iK=async function(e){const t=this.getOffsetParent||xI,n=this.getDimensions,s=await n(e.floating);return{reference:rK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function aK(e){return pi(e).direction==="rtl"}const oK={convertOffsetParentRelativeRectToViewportRelativeRect:XW,getDocumentElement:Ia,getClippingRect:nK,getOffsetParent:xI,getElementRects:iK,getClientRects:QW,getDimensions:sK,getScale:Tu,isElement:zi,isRTL:aK};function lK(e,t){let n=null,s;const r=Ia(e);function i(){var o;clearTimeout(s),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:f,height:h}=e.getBoundingClientRect();if(o||t(),!f||!h)return;const g=ap(c),m=ap(r.clientWidth-(u+f)),p=ap(r.clientHeight-(c+h)),y=ap(u),b={rootMargin:-g+"px "+-m+"px "+-p+"px "+-y+"px",threshold:fl(0,Qu(1,l))||1};let S=!0;function T(w){const C=w[0].intersectionRatio;if(C!==l){if(!S)return a();C?a(!1,C):s=setTimeout(()=>{a(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(T,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(T,b)}n.observe(e)}return a(!0),i}function uK(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,u=G1(e),c=r||i?[...u?wf(u):[],...wf(t)]:[];c.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=u&&o?lK(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(v=>{let[b]=v;b&&b.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let m,p=l?xl(e):null;l&&y();function y(){const v=xl(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,m=requestAnimationFrame(y)}return n(),()=>{var v;c.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),f==null||f(),(v=g)==null||v.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const cK=q1,kI=jW,dK=qW,fK=HW,AI=UW,II=(e,t,n)=>{const s=new Map,r={platform:oK,...n},i={...r.platform,_c:s};return VW(e,t,{...r,platform:i})};Ve({});const hK=e=>{if(!jt)return;if(!e)return e;const t=nr(e);return t||(hn(e)?t:e)},pK=({middleware:e,placement:t,strategy:n})=>{const s=j(),r=j(),i=j(),a=j(),o=j({}),l={x:i,y:a,placement:t,strategy:n,middlewareData:o},u=async()=>{if(!jt)return;const c=hK(s),f=nr(r);if(!c||!f)return;const h=await II(c,f,{placement:d(t),strategy:d(n),middleware:d(e)});zu(l).forEach(g=>{l[g].value=h[g]})};return gt(()=>{ps(()=>{u()})}),{...l,update:u,referenceRef:s,contentRef:r}},mK=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const s=d(e);return s?AI({element:s,padding:t}).fn(n):{}}});function gK(e){const t=j();function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:i,value:a}=e.value;if(r==null||i==null)return;const o=a.slice(0,Math.max(0,r)),l=a.slice(Math.max(0,i));t.value={selectionStart:r,selectionEnd:i,value:a,beforeTxt:o,afterTxt:l}}function s(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:i,afterTxt:a,selectionStart:o}=t.value;if(i==null||a==null||o==null)return;let l=r.length;if(r.endsWith(a))l=r.length-a.length;else if(r.startsWith(i))l=i.length;else{const u=i[o-1],c=r.indexOf(u,o-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,s]}const vK=(e,t,n)=>ao(e.subTree).filter(i=>{var a;return _n(i)&&((a=i.type)==null?void 0:a.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),Y1=(e,t)=>{const n={},s=ln([]);return{children:s,addChild:a=>{n[a.uid]=a,s.value=vK(e,t,n)},removeChild:a=>{delete n[a],s.value=s.value.filter(o=>o.uid!==a)}}},es=yi({type:String,values:Qi,required:!1}),DI=Symbol("size"),yK=()=>{const e=Je(DI,{});return E(()=>d(e.size)||"")};function Hg(e,{afterFocus:t,beforeBlur:n,afterBlur:s}={}){const r=It(),{emit:i}=r,a=ln(),o=j(!1),l=f=>{o.value||(o.value=!0,i("focus",f),t==null||t())},u=f=>{var h;mt(n)&&n(f)||f.relatedTarget&&((h=a.value)!=null&&h.contains(f.relatedTarget))||(o.value=!1,i("blur",f),s==null||s())},c=()=>{var f;(f=e.value)==null||f.focus()};return xe(a,f=>{f&&f.setAttribute("tabindex","-1")}),cn(a,"click",c),{wrapperRef:a,isFocused:o,handleFocus:l,handleBlur:u}}const bK=["",void 0,null],_K=void 0,Ac=Ve({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>mt(e)?!e():!e}}),zg=(e,t)=>{let n=ah();n.value||(n=j({}));const s=E(()=>e.emptyValues||n.value.emptyValues||bK),r=E(()=>mt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:mt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:_K),i=a=>s.value.includes(a);return s.value.includes(r.value),{emptyValues:s,valueOnClear:r,isEmptyValue:i}},SK=Ve({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ys=e=>Oi(SK,e),OI=Symbol(),Am=j();function ah(e,t=void 0){const n=It()?Je(OI,Am):Am;return e?E(()=>{var s,r;return(r=(s=n.value)==null?void 0:s[e])!=null?r:t}):n}function jg(e,t){const n=ah(),s=Pe(e,E(()=>{var o;return((o=n.value)==null?void 0:o.namespace)||Hd})),r=Wt(E(()=>{var o;return(o=n.value)==null?void 0:o.locale})),i=xc(E(()=>{var o;return((o=n.value)==null?void 0:o.zIndex)||gI})),a=E(()=>{var o;return d(t)||((o=n.value)==null?void 0:o.size)||""});return X1(E(()=>d(n)||{})),{ns:s,locale:r,zIndex:i,size:a}}const X1=(e,t,n=!1)=>{var s;const r=!!It(),i=r?ah():void 0,a=(s=t==null?void 0:t.provide)!=null?s:r?Mt:void 0;if(!a)return;const o=E(()=>{const l=d(e);return i!=null&&i.value?wK(i.value,l):l});return a(OI,o),a(Z3,E(()=>o.value.locale)),a(eI,E(()=>o.value.namespace)),a(vI,E(()=>o.value.zIndex)),a(DI,{size:E(()=>o.value.size||"")}),(n||!Am.value)&&(Am.value=o.value),o},wK=(e,t)=>{const n=[...new Set([...zu(e),...zu(t)])],s={};for(const r of n)s[r]=t[r]!==void 0?t[r]:e[r];return s},TK=Ve({a11y:{type:Boolean,default:!0},locale:{type:le(Object)},size:es,button:{type:le(Object)},experimentalFeatures:{type:le(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:le(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Ac}),qy={},CK=J({name:"ElConfigProvider",props:TK,setup(e,{slots:t}){xe(()=>e.message,s=>{Object.assign(qy,s??{})},{immediate:!0,deep:!0});const n=X1(e);return()=>be(t,"default",{config:n==null?void 0:n.value})}}),PI=Dt(CK),EK="2.7.6",xK=(e=[])=>({version:EK,install:(n,s)=>{n[$C]||(n[$C]=!0,e.forEach(r=>n.use(r)),s&&X1(s,n,!0))}}),kK=Ve({zIndex:{type:le([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),AK={scroll:({scrollTop:e,fixed:t})=>pt(e)&&Hn(t),[dn]:e=>Hn(e)};var ze=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};const $I="ElAffix",IK=J({name:$I}),DK=J({...IK,props:kK,emits:AK,setup(e,{expose:t,emit:n}){const s=e,r=Pe("affix"),i=ln(),a=ln(),o=ln(),{height:l}=nF(),{height:u,width:c,top:f,bottom:h,update:g}=GT(a,{windowScroll:!1}),m=GT(i),p=j(!1),y=j(0),v=j(0),b=E(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),S=E(()=>{if(!p.value)return{};const C=s.offset?In(s.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:s.position==="top"?C:"",bottom:s.position==="bottom"?C:"",transform:v.value?`translateY(${v.value}px)`:"",zIndex:s.zIndex}}),T=()=>{if(o.value)if(y.value=o.value instanceof Window?document.documentElement.scrollTop:o.value.scrollTop||0,s.position==="top")if(s.target){const C=m.bottom.value-s.offset-u.value;p.value=s.offset>f.value&&m.bottom.value>0,v.value=C<0?C:0}else p.value=s.offset>f.value;else if(s.target){const C=l.value-m.top.value-s.offset-u.value;p.value=l.value-s.offset<h.value&&l.value>m.top.value,v.value=C<0?-C:0}else p.value=l.value-s.offset<h.value},w=()=>{g(),n("scroll",{scrollTop:y.value,fixed:p.value})};return xe(p,C=>n("change",C)),gt(()=>{var C;s.target?(i.value=(C=document.querySelector(s.target))!=null?C:void 0,i.value||Zn($I,`Target does not exist: ${s.target}`)):i.value=document.documentElement,o.value=y1(a.value,!0),g()}),cn(o,"scroll",w),ps(T),t({update:T,updateRoot:g}),(C,O)=>(k(),z("div",{ref_key:"root",ref:a,class:$(d(r).b()),style:it(d(b))},[R("div",{class:$({[d(r).m("fixed")]:p.value}),style:it(d(S))},[be(C.$slots,"default")],6)],6))}});var OK=ze(DK,[["__file","affix.vue"]]);const PK=Dt(OK),$K=Ve({size:{type:le([Number,String])},color:{type:String}}),RK=J({name:"ElIcon",inheritAttrs:!1}),NK=J({...RK,props:$K,setup(e){const t=e,n=Pe("icon"),s=E(()=>{const{size:r,color:i}=t;return!r&&!i?{}:{fontSize:Fn(r)?void 0:In(r),"--color":i}});return(r,i)=>(k(),z("i",Lt({class:d(n).b(),style:d(s)},r.$attrs),[be(r.$slots,"default")],16))}});var MK=ze(NK,[["__file","icon.vue"]]);const tt=Dt(MK),LK=["light","dark"],BK=Ve({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:zu(go),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:LK,default:"light"}}),FK={close:e=>e instanceof MouseEvent},VK=J({name:"ElAlert"}),UK=J({...VK,props:BK,emits:FK,setup(e,{emit:t}){const n=e,{Close:s}=k1,r=us(),i=Pe("alert"),a=j(!0),o=E(()=>go[n.type]),l=E(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!r.default}]),u=E(()=>({"with-description":n.description||r.default})),c=f=>{a.value=!1,t("close",f)};return(f,h)=>(k(),fe(Wn,{name:d(i).b("fade"),persisted:""},{default:L(()=>[yt(R("div",{class:$([d(i).b(),d(i).m(f.type),d(i).is("center",f.center),d(i).is(f.effect)]),role:"alert"},[f.showIcon&&d(o)?(k(),fe(d(tt),{key:0,class:$(d(l))},{default:L(()=>[(k(),fe(Nt(d(o))))]),_:1},8,["class"])):ae("v-if",!0),R("div",{class:$(d(i).e("content"))},[f.title||f.$slots.title?(k(),z("span",{key:0,class:$([d(i).e("title"),d(u)])},[be(f.$slots,"title",{},()=>[Re(pe(f.title),1)])],2)):ae("v-if",!0),f.$slots.default||f.description?(k(),z("p",{key:1,class:$(d(i).e("description"))},[be(f.$slots,"default",{},()=>[Re(pe(f.description),1)])],2)):ae("v-if",!0),f.closable?(k(),z(Ge,{key:2},[f.closeText?(k(),z("div",{key:0,class:$([d(i).e("close-btn"),d(i).is("customed")]),onClick:c},pe(f.closeText),3)):(k(),fe(d(tt),{key:1,class:$(d(i).e("close-btn")),onClick:c},{default:L(()=>[I(d(s))]),_:1},8,["class"]))],64)):ae("v-if",!0)],2)],2),[[zt,a.value]])]),_:3},8,["name"]))}});var HK=ze(UK,[["__file","alert.vue"]]);const zK=Dt(HK),Bl=Symbol("formContextKey"),qi=Symbol("formItemContextKey"),Kn=(e,t={})=>{const n=j(void 0),s=t.prop?n:nI("size"),r=t.global?n:yK(),i=t.form?{size:void 0}:Je(Bl,void 0),a=t.formItem?{size:void 0}:Je(qi,void 0);return E(()=>s.value||d(e)||(a==null?void 0:a.size)||(i==null?void 0:i.size)||r.value||"")},Gs=e=>{const t=nI("disabled"),n=Je(Bl,void 0);return E(()=>t.value||d(e)||(n==null?void 0:n.disabled)||!1)},$s=()=>{const e=Je(Bl,void 0),t=Je(qi,void 0);return{form:e,formItem:t}},_i=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=j(!1)),s||(s=j(!1));const r=j();let i;const a=E(()=>{var o;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((o=t.inputIds)==null?void 0:o.length)<=1)});return gt(()=>{i=xe([nn(e,"id"),n],([o,l])=>{const u=o??(l?void 0:xs().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})}),Eo(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:a,inputId:r}},jK=Ve({size:{type:String,values:Qi},disabled:Boolean}),qK=Ve({...jK,model:Object,rules:{type:le(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),WK={validate:(e,t,n)=>(Xe(e)||bt(e))&&Hn(t)&&bt(n)};function KK(){const e=j([]),t=E(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const a=e.value.indexOf(i);return a===-1&&t.value,a}function s(i,a){if(i&&a){const o=n(a);e.value.splice(o,1,i)}else i&&e.value.push(i)}function r(i){const a=n(i);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:s,deregisterLabelWidth:r}}const op=(e,t)=>{const n=ho(t);return n.length>0?e.filter(s=>s.prop&&n.includes(s.prop)):e},GK="ElForm",YK=J({name:GK}),XK=J({...YK,props:qK,emits:WK,setup(e,{expose:t,emit:n}){const s=e,r=[],i=Kn(),a=Pe("form"),o=E(()=>{const{labelPosition:S,inline:T}=s;return[a.b(),a.m(i.value||"default"),{[a.m(`label-${S}`)]:S,[a.m("inline")]:T}]}),l=S=>r.find(T=>T.prop===S),u=S=>{r.push(S)},c=S=>{S.prop&&r.splice(r.indexOf(S),1)},f=(S=[])=>{s.model&&op(r,S).forEach(T=>T.resetField())},h=(S=[])=>{op(r,S).forEach(T=>T.clearValidate())},g=E(()=>!!s.model),m=S=>{if(r.length===0)return[];const T=op(r,S);return T.length?T:[]},p=async S=>v(void 0,S),y=async(S=[])=>{if(!g.value)return!1;const T=m(S);if(T.length===0)return!0;let w={};for(const C of T)try{await C.validate("")}catch(O){w={...w,...O}}return Object.keys(w).length===0?!0:Promise.reject(w)},v=async(S=[],T)=>{const w=!mt(T);try{const C=await y(S);return C===!0&&await(T==null?void 0:T(C)),C}catch(C){if(C instanceof Error)throw C;const O=C;return s.scrollToError&&b(Object.keys(O)[0]),await(T==null?void 0:T(!1,O)),w&&Promise.reject(O)}},b=S=>{var T;const w=op(r,S)[0];w&&((T=w.$el)==null||T.scrollIntoView(s.scrollIntoViewOptions))};return xe(()=>s.rules,()=>{s.validateOnRuleChange&&p().catch(S=>void 0)},{deep:!0}),Mt(Bl,Ct({...ms(s),emit:n,resetFields:f,clearValidate:h,validateField:v,getField:l,addField:u,removeField:c,...KK()})),t({validate:p,validateField:v,resetFields:f,clearValidate:h,scrollToField:b,fields:r}),(S,T)=>(k(),z("form",{class:$(d(o))},[be(S.$slots,"default")],2))}});var QK=ze(XK,[["__file","form.vue"]]);function el(){return el=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},el.apply(this,arguments)}function JK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tf(e,t)}function Wy(e){return Wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wy(e)}function Tf(e,t){return Tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,r){return s.__proto__=r,s},Tf(e,t)}function ZK(){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 Mp(e,t,n){return ZK()?Mp=Reflect.construct.bind():Mp=function(r,i,a){var o=[null];o.push.apply(o,i);var l=Function.bind.apply(r,o),u=new l;return a&&Tf(u,a.prototype),u},Mp.apply(null,arguments)}function eG(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ky(e){var t=typeof Map=="function"?new Map:void 0;return Ky=function(s){if(s===null||!eG(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 Mp(s,arguments,Wy(this).constructor)}return r.prototype=Object.create(s.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Tf(r,s)},Ky(e)}var tG=/%[sdj%]/g,nG=function(){};typeof process<"u"&&process.env;function Gy(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 Tr(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 a=e.replace(tG,function(o){if(o==="%%")return"%";if(r>=i)return o;switch(o){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 o}});return a}return e}function sG(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ls(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||sG(t)&&typeof e=="string"&&!e)}function rG(e,t,n){var s=[],r=0,i=e.length;function a(o){s.push.apply(s,o||[]),r++,r===i&&n(s)}e.forEach(function(o){t(o,a)})}function tE(e,t,n){var s=0,r=e.length;function i(a){if(a&&a.length){n(a);return}var o=s;s=s+1,o<r?t(e[o],i):n([])}i([])}function iG(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var nE=function(e){JK(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}(Ky(Error));function aG(e,t,n,s,r){if(t.first){var i=new Promise(function(h,g){var m=function(v){return s(v),v.length?g(new nE(v,Gy(v))):h(r)},p=iG(e);tE(p,n,m)});return i.catch(function(h){return h}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),l=o.length,u=0,c=[],f=new Promise(function(h,g){var m=function(y){if(c.push.apply(c,y),u++,u===l)return s(c),c.length?g(new nE(c,Gy(c))):h(r)};o.length||(s(c),h(r)),o.forEach(function(p){var y=e[p];a.indexOf(p)!==-1?tE(y,n,m):rG(y,n,m)})});return f.catch(function(h){return h}),f}function oG(e){return!!(e&&e.message!==void 0)}function lG(e,t){for(var n=e,s=0;s<t.length;s++){if(n==null)return n;n=n[t[s]]}return n}function sE(e,t){return function(n){var s;return e.fullFields?s=lG(t,e.fullFields):s=t[n.field||e.fullField],oG(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 rE(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]=el({},e[n],s):e[n]=s}}return e}var RI=function(t,n,s,r,i,a){t.required&&(!s.hasOwnProperty(t.field)||ls(n,a||t.type))&&r.push(Tr(i.messages.required,t.fullField))},uG=function(t,n,s,r,i){(/^\s+$/.test(n)||n==="")&&r.push(Tr(i.messages.whitespace,t.fullField))},lp,cG=function(){if(lp)return lp;var e="[a-fA-F\\d:]",t=function(T){return T&&T.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+"$)"),a=new RegExp("^"+n+"$"),o=new RegExp("^"+r+"$"),l=function(T){return T&&T.exact?i:new RegExp("(?:"+t(T)+n+t(T)+")|(?:"+t(T)+r+t(T)+")","g")};l.v4=function(S){return S&&S.exact?a:new RegExp(""+t(S)+n+t(S),"g")},l.v6=function(S){return S&&S.exact?o:new RegExp(""+t(S)+r+t(S),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,h=l.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+h+"|"+g+m+p+")"+y+v;return lp=new RegExp("(?:^"+b+"$)","i"),lp},iE={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},Td={integer:function(t){return Td.number(t)&&parseInt(t,10)===t},float:function(t){return Td.number(t)&&!Td.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"&&!Td.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(iE.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cG())},hex:function(t){return typeof t=="string"&&!!t.match(iE.hex)}},dG=function(t,n,s,r,i){if(t.required&&n===void 0){RI(t,n,s,r,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;a.indexOf(o)>-1?Td[o](n)||r.push(Tr(i.messages.types[o],t.fullField,t.type)):o&&typeof n!==t.type&&r.push(Tr(i.messages.types[o],t.fullField,t.type))},fG=function(t,n,s,r,i){var a=typeof t.len=="number",o=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,h=typeof n=="number",g=typeof n=="string",m=Array.isArray(n);if(h?f="number":g?f="string":m&&(f="array"),!f)return!1;m&&(c=n.length),g&&(c=n.replace(u,"_").length),a?c!==t.len&&r.push(Tr(i.messages[f].len,t.fullField,t.len)):o&&!l&&c<t.min?r.push(Tr(i.messages[f].min,t.fullField,t.min)):l&&!o&&c>t.max?r.push(Tr(i.messages[f].max,t.fullField,t.max)):o&&l&&(c<t.min||c>t.max)&&r.push(Tr(i.messages[f].range,t.fullField,t.min,t.max))},Kl="enum",hG=function(t,n,s,r,i){t[Kl]=Array.isArray(t[Kl])?t[Kl]:[],t[Kl].indexOf(n)===-1&&r.push(Tr(i.messages[Kl],t.fullField,t[Kl].join(", ")))},pG=function(t,n,s,r,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(Tr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||r.push(Tr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},on={required:RI,whitespace:uG,type:dG,range:fG,enum:hG,pattern:pG},mG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n,"string")&&!t.required)return s();on.required(t,n,r,a,i,"string"),ls(n,"string")||(on.type(t,n,r,a,i),on.range(t,n,r,a,i),on.pattern(t,n,r,a,i),t.whitespace===!0&&on.whitespace(t,n,r,a,i))}s(a)},gG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n)&&!t.required)return s();on.required(t,n,r,a,i),n!==void 0&&on.type(t,n,r,a,i)}s(a)},vG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(n===""&&(n=void 0),ls(n)&&!t.required)return s();on.required(t,n,r,a,i),n!==void 0&&(on.type(t,n,r,a,i),on.range(t,n,r,a,i))}s(a)},yG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n)&&!t.required)return s();on.required(t,n,r,a,i),n!==void 0&&on.type(t,n,r,a,i)}s(a)},bG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n)&&!t.required)return s();on.required(t,n,r,a,i),ls(n)||on.type(t,n,r,a,i)}s(a)},_G=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n)&&!t.required)return s();on.required(t,n,r,a,i),n!==void 0&&(on.type(t,n,r,a,i),on.range(t,n,r,a,i))}s(a)},SG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n)&&!t.required)return s();on.required(t,n,r,a,i),n!==void 0&&(on.type(t,n,r,a,i),on.range(t,n,r,a,i))}s(a)},wG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(n==null&&!t.required)return s();on.required(t,n,r,a,i,"array"),n!=null&&(on.type(t,n,r,a,i),on.range(t,n,r,a,i))}s(a)},TG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n)&&!t.required)return s();on.required(t,n,r,a,i),n!==void 0&&on.type(t,n,r,a,i)}s(a)},CG="enum",EG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n)&&!t.required)return s();on.required(t,n,r,a,i),n!==void 0&&on[CG](t,n,r,a,i)}s(a)},xG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n,"string")&&!t.required)return s();on.required(t,n,r,a,i),ls(n,"string")||on.pattern(t,n,r,a,i)}s(a)},kG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n,"date")&&!t.required)return s();if(on.required(t,n,r,a,i),!ls(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),on.type(t,l,r,a,i),l&&on.range(t,l.getTime(),r,a,i)}}s(a)},AG=function(t,n,s,r,i){var a=[],o=Array.isArray(n)?"array":typeof n;on.required(t,n,r,a,i,o),s(a)},v0=function(t,n,s,r,i){var a=t.type,o=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(ls(n,a)&&!t.required)return s();on.required(t,n,r,o,i,a),ls(n,a)||on.type(t,n,r,o,i)}s(o)},IG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ls(n)&&!t.required)return s();on.required(t,n,r,a,i)}s(a)},qd={string:mG,method:gG,number:vG,boolean:yG,regexp:bG,integer:_G,float:SG,array:wG,object:TG,enum:EG,pattern:xG,date:kG,url:v0,hex:v0,email:v0,required:AG,any:IG};function Yy(){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 Xy=Yy(),oh=function(){function e(n){this.rules=null,this._messages=Xy,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 a=s[i];r.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(s){return s&&(this._messages=rE(Yy(),s)),this._messages},t.validate=function(s,r,i){var a=this;r===void 0&&(r={}),i===void 0&&(i=function(){});var o=s,l=r,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,o),Promise.resolve(o);function c(p){var y=[],v={};function b(T){if(Array.isArray(T)){var w;y=(w=y).concat.apply(w,T)}else y.push(T)}for(var S=0;S<p.length;S++)b(p[S]);y.length?(v=Gy(y),u(y,v)):u(null,o)}if(l.messages){var f=this.messages();f===Xy&&(f=Yy()),rE(f,l.messages),l.messages=f}else l.messages=this.messages();var h={},g=l.keys||Object.keys(this.rules);g.forEach(function(p){var y=a.rules[p],v=o[p];y.forEach(function(b){var S=b;typeof S.transform=="function"&&(o===s&&(o=el({},o)),v=o[p]=S.transform(v)),typeof S=="function"?S={validator:S}:S=el({},S),S.validator=a.getValidationMethod(S),S.validator&&(S.field=p,S.fullField=S.fullField||p,S.type=a.getType(S),h[p]=h[p]||[],h[p].push({rule:S,value:v,source:o,field:p}))})});var m={};return aG(h,l,function(p,y){var v=p.rule,b=(v.type==="object"||v.type==="array")&&(typeof v.fields=="object"||typeof v.defaultField=="object");b=b&&(v.required||!v.required&&p.value),v.field=p.field;function S(C,O){return el({},O,{fullField:v.fullField+"."+C,fullFields:v.fullFields?[].concat(v.fullFields,[C]):[C]})}function T(C){C===void 0&&(C=[]);var O=Array.isArray(C)?C:[C];!l.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&v.message!==void 0&&(O=[].concat(v.message));var P=O.map(sE(v,o));if(l.first&&P.length)return m[v.field]=1,y(P);if(!b)y(P);else{if(v.required&&!p.value)return v.message!==void 0?P=[].concat(v.message).map(sE(v,o)):l.error&&(P=[l.error(v,Tr(l.messages.required,v.field))]),y(P);var M={};v.defaultField&&Object.keys(p.value).map(function(W){M[W]=v.defaultField}),M=el({},M,p.rule.fields);var U={};Object.keys(M).forEach(function(W){var Q=M[W],G=Array.isArray(Q)?Q:[Q];U[W]=G.map(S.bind(null,W))});var B=new e(U);B.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),B.validate(p.value,p.rule.options||l,function(W){var Q=[];P&&P.length&&Q.push.apply(Q,P),W&&W.length&&Q.push.apply(Q,W),y(Q.length?Q:null)})}}var w;if(v.asyncValidator)w=v.asyncValidator(v,p.value,T,p.source,l);else if(v.validator){try{w=v.validator(v,p.value,T,p.source,l)}catch(C){console.error==null||console.error(C),l.suppressValidatorError||setTimeout(function(){throw C},0),T(C.message)}w===!0?T():w===!1?T(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||(v.fullField||v.field)+" fails"):w instanceof Array?T(w):w instanceof Error&&T(w.message)}w&&w.then&&w.then(function(){return T()},function(C){return T(C)})},function(p){c(p)},o)},t.getType=function(s){if(s.type===void 0&&s.pattern instanceof RegExp&&(s.type="pattern"),typeof s.validator!="function"&&s.type&&!qd.hasOwnProperty(s.type))throw new Error(Tr("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"?qd.required:qd[this.getType(s)]||void 0},e}();oh.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");qd[t]=n};oh.warning=nG;oh.messages=Xy;oh.validators=qd;const DG=["","error","validating","success"],OG=Ve({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:le([String,Array])},required:{type:Boolean,default:void 0},rules:{type:le([Object,Array])},error:String,validateStatus:{type:String,values:DG},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Qi}}),aE="ElLabelWrap";var PG=J({name:aE,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Je(Bl,void 0),s=Je(qi);s||Zn(aE,"usage: <el-form-item><label-wrap /></el-form-item>");const r=Pe("form"),i=j(),a=j(0),o=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{ut(()=>{t.default&&e.isAutoWidth&&(c==="update"?a.value=o():c==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>l("update");return gt(()=>{u()}),un(()=>{l("remove")}),xa(()=>u()),xe(a,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),Sn(E(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!t)return null;const{isAutoWidth:h}=e;if(h){const g=n==null?void 0:n.autoLabelWidth,m=s==null?void 0:s.hasLabel,p={};if(m&&g&&g!=="auto"){const y=Math.max(0,Number.parseInt(g,10)-a.value),v=n.labelPosition==="left"?"marginRight":"marginLeft";y&&(p[v]=`${y}px`)}return I("div",{ref:i,class:[r.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return I(Ge,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const $G=["role","aria-labelledby"],RG=J({name:"ElFormItem"}),NG=J({...RG,props:OG,setup(e,{expose:t}){const n=e,s=us(),r=Je(Bl,void 0),i=Je(qi,void 0),a=Kn(void 0,{formItem:!1}),o=Pe("form-item"),l=xs().value,u=j([]),c=j(""),f=BB(c,100),h=j(""),g=j();let m,p=!1;const y=E(()=>{if((r==null?void 0:r.labelPosition)==="top")return{};const te=In(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return te?{width:te}:{}}),v=E(()=>{if((r==null?void 0:r.labelPosition)==="top"||r!=null&&r.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const te=In(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return!n.label&&!s.label?{marginLeft:te}:{}}),b=E(()=>[o.b(),o.m(a.value),o.is("error",c.value==="error"),o.is("validating",c.value==="validating"),o.is("success",c.value==="success"),o.is("required",G.value||n.required),o.is("no-asterisk",r==null?void 0:r.hideRequiredAsterisk),(r==null?void 0:r.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[o.m("feedback")]:r==null?void 0:r.statusIcon}]),S=E(()=>Hn(n.inlineMessage)?n.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),T=E(()=>[o.e("error"),{[o.em("error","inline")]:S.value}]),w=E(()=>n.prop?bt(n.prop)?n.prop:n.prop.join("."):""),C=E(()=>!!(n.label||s.label)),O=E(()=>n.for||(u.value.length===1?u.value[0]:void 0)),P=E(()=>!O.value&&C.value),M=!!i,U=E(()=>{const te=r==null?void 0:r.model;if(!(!te||!n.prop))return Rp(te,n.prop).value}),B=E(()=>{const{required:te}=n,ie=[];n.rules&&ie.push(...ho(n.rules));const we=r==null?void 0:r.rules;if(we&&n.prop){const me=Rp(we,n.prop).value;me&&ie.push(...ho(me))}if(te!==void 0){const me=ie.map((Ce,Be)=>[Ce,Be]).filter(([Ce])=>Object.keys(Ce).includes("required"));if(me.length>0)for(const[Ce,Be]of me)Ce.required!==te&&(ie[Be]={...Ce,required:te});else ie.push({required:te})}return ie}),W=E(()=>B.value.length>0),Q=te=>B.value.filter(we=>!we.trigger||!te?!0:Array.isArray(we.trigger)?we.trigger.includes(te):we.trigger===te).map(({trigger:we,...me})=>me),G=E(()=>B.value.some(te=>te.required)),X=E(()=>{var te;return f.value==="error"&&n.showMessage&&((te=r==null?void 0:r.showMessage)!=null?te:!0)}),q=E(()=>`${n.label||""}${(r==null?void 0:r.labelSuffix)||""}`),H=te=>{c.value=te},V=te=>{var ie,we;const{errors:me,fields:Ce}=te;(!me||!Ce)&&console.error(te),H("error"),h.value=me?(we=(ie=me==null?void 0:me[0])==null?void 0:ie.message)!=null?we:`${n.prop} is required`:"",r==null||r.emit("validate",n.prop,!1,h.value)},N=()=>{H("success"),r==null||r.emit("validate",n.prop,!0,"")},Y=async te=>{const ie=w.value;return new oh({[ie]:te}).validate({[ie]:U.value},{firstFields:!0}).then(()=>(N(),!0)).catch(me=>(V(me),Promise.reject(me)))},Z=async(te,ie)=>{if(p||!n.prop)return!1;const we=mt(ie);if(!W.value)return ie==null||ie(!1),!1;const me=Q(te);return me.length===0?(ie==null||ie(!0),!0):(H("validating"),Y(me).then(()=>(ie==null||ie(!0),!0)).catch(Ce=>{const{fields:Be}=Ce;return ie==null||ie(!1,Be),we?!1:Promise.reject(Be)}))},ne=()=>{H(""),h.value="",p=!1},ue=async()=>{const te=r==null?void 0:r.model;if(!te||!n.prop)return;const ie=Rp(te,n.prop);p=!0,ie.value=xC(m),await ut(),ne(),p=!1},_e=te=>{u.value.includes(te)||u.value.push(te)},Ne=te=>{u.value=u.value.filter(ie=>ie!==te)};xe(()=>n.error,te=>{h.value=te||"",H(te?"error":"")},{immediate:!0}),xe(()=>n.validateStatus,te=>H(te||""));const ce=Ct({...ms(n),$el:g,size:a,validateState:c,labelId:l,inputIds:u,isGroup:P,hasLabel:C,fieldValue:U,addInputId:_e,removeInputId:Ne,resetField:ue,clearValidate:ne,validate:Z});return Mt(qi,ce),gt(()=>{n.prop&&(r==null||r.addField(ce),m=xC(U.value))}),un(()=>{r==null||r.removeField(ce)}),t({size:a,validateMessage:h,validateState:c,validate:Z,clearValidate:ne,resetField:ue}),(te,ie)=>{var we;return k(),z("div",{ref_key:"formItemRef",ref:g,class:$(d(b)),role:d(P)?"group":void 0,"aria-labelledby":d(P)?d(l):void 0},[I(d(PG),{"is-auto-width":d(y).width==="auto","update-all":((we=d(r))==null?void 0:we.labelWidth)==="auto"},{default:L(()=>[d(C)?(k(),fe(Nt(d(O)?"label":"div"),{key:0,id:d(l),for:d(O),class:$(d(o).e("label")),style:it(d(y))},{default:L(()=>[be(te.$slots,"label",{label:d(q)},()=>[Re(pe(d(q)),1)])]),_:3},8,["id","for","class","style"])):ae("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),R("div",{class:$(d(o).e("content")),style:it(d(v))},[be(te.$slots,"default"),I(q4,{name:`${d(o).namespace.value}-zoom-in-top`},{default:L(()=>[d(X)?be(te.$slots,"error",{key:0,error:h.value},()=>[R("div",{class:$(d(T))},pe(h.value),3)]):ae("v-if",!0)]),_:3},8,["name"])],6)],10,$G)}}});var NI=ze(NG,[["__file","form-item.vue"]]);const Do=Dt(QK,{FormItem:NI}),Oo=Tn(NI);let ri;const MG=`
height:0 !important;
visibility:hidden !important;
${t3()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,LG=["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 BG(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:LG.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:s,borderSize:r,boxSizing:n}}function oE(e,t=1,n){var s;ri||(ri=document.createElement("textarea"),document.body.appendChild(ri));const{paddingSize:r,borderSize:i,boxSizing:a,contextStyle:o}=BG(e);ri.setAttribute("style",`${o};${MG}`),ri.value=e.value||e.placeholder||"";let l=ri.scrollHeight;const u={};a==="border-box"?l=l+i:a==="content-box"&&(l=l-r),ri.value="";const c=ri.scrollHeight-r;if(pt(t)){let f=c*t;a==="border-box"&&(f=f+r+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(pt(n)){let f=c*n;a==="border-box"&&(f=f+r+i),l=Math.min(f,l)}return u.height=`${l}px`,(s=ri.parentNode)==null||s.removeChild(ri),ri=void 0,u}const FG=Ve({id:{type:String,default:void 0},size:es,disabled:Boolean,modelValue:{type:le([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:le([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:sn},prefixIcon:{type:sn},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:le([Object,Array,String]),default:()=>wn({})},autofocus:{type:Boolean,default:!1},...ys(["ariaLabel"])}),VG={[$t]:e=>bt(e),input:e=>bt(e),change:e=>bt(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},UG=["role"],HG=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],zG=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],jG=J({name:"ElInput",inheritAttrs:!1}),qG=J({...jG,props:FG,emits:VG,setup(e,{expose:t,emit:n}){const s=e,r=$l(),i=us(),a=E(()=>{const ke={};return s.containerRole==="combobox"&&(ke["aria-haspopup"]=r["aria-haspopup"],ke["aria-owns"]=r["aria-owns"],ke["aria-expanded"]=r["aria-expanded"]),ke}),o=E(()=>[s.type==="textarea"?y.b():p.b(),p.m(g.value),p.is("disabled",m.value),p.is("exceed",_e.value),{[p.b("group")]:i.prepend||i.append,[p.m("prefix")]:i.prefix||s.prefixIcon,[p.m("suffix")]:i.suffix||s.suffixIcon||s.clearable||s.showPassword,[p.bm("suffix","password-clear")]:Y.value&&Z.value,[p.b("hidden")]:s.type==="hidden"},r.class]),l=E(()=>[p.e("wrapper"),p.is("focus",U.value)]),u=D1({excludeKeys:E(()=>Object.keys(a.value))}),{form:c,formItem:f}=$s(),{inputId:h}=_i(s,{formItemContext:f}),g=Kn(),m=Gs(),p=Pe("input"),y=Pe("textarea"),v=ln(),b=ln(),S=j(!1),T=j(!1),w=j(!1),C=j(),O=ln(s.inputStyle),P=E(()=>v.value||b.value),{wrapperRef:M,isFocused:U,handleFocus:B,handleBlur:W}=Hg(P,{afterBlur(){var ke;s.validateEvent&&((ke=f==null?void 0:f.validate)==null||ke.call(f,"blur").catch(et=>void 0))}}),Q=E(()=>{var ke;return(ke=c==null?void 0:c.statusIcon)!=null?ke:!1}),G=E(()=>(f==null?void 0:f.validateState)||""),X=E(()=>G.value&&A1[G.value]),q=E(()=>w.value?Jj:uj),H=E(()=>[r.style]),V=E(()=>[s.inputStyle,O.value,{resize:s.resize}]),N=E(()=>os(s.modelValue)?"":String(s.modelValue)),Y=E(()=>s.clearable&&!m.value&&!s.readonly&&!!N.value&&(U.value||S.value)),Z=E(()=>s.showPassword&&!m.value&&!s.readonly&&!!N.value&&(!!N.value||U.value)),ne=E(()=>s.showWordLimit&&!!s.maxlength&&(s.type==="text"||s.type==="textarea")&&!m.value&&!s.readonly&&!s.showPassword),ue=E(()=>N.value.length),_e=E(()=>!!ne.value&&ue.value>Number(s.maxlength)),Ne=E(()=>!!i.suffix||!!s.suffixIcon||Y.value||s.showPassword||ne.value||!!G.value&&Q.value),[ce,te]=gK(v);Sn(b,ke=>{if(me(),!ne.value||s.resize!=="both")return;const et=ke[0],{width:dt}=et.contentRect;C.value={right:`calc(100% - ${dt+15+6}px)`}});const ie=()=>{const{type:ke,autosize:et}=s;if(!(!jt||ke!=="textarea"||!b.value))if(et){const dt=Pt(et)?et.minRows:void 0,At=Pt(et)?et.maxRows:void 0,xt=oE(b.value,dt,At);O.value={overflowY:"hidden",...xt},ut(()=>{b.value.offsetHeight,O.value=xt})}else O.value={minHeight:oE(b.value).minHeight}},me=(ke=>{let et=!1;return()=>{var dt;if(et||!s.autosize)return;((dt=b.value)==null?void 0:dt.offsetParent)===null||(ke(),et=!0)}})(ie),Ce=()=>{const ke=P.value,et=s.formatter?s.formatter(N.value):N.value;!ke||ke.value===et||(ke.value=et)},Be=async ke=>{ce();let{value:et}=ke.target;if(s.formatter&&(et=s.parser?s.parser(et):et),!T.value){if(et===N.value){Ce();return}n($t,et),n("input",et),await ut(),Ce(),te()}},ee=ke=>{n("change",ke.target.value)},se=ke=>{n("compositionstart",ke),T.value=!0},Te=ke=>{var et;n("compositionupdate",ke);const dt=(et=ke.target)==null?void 0:et.value,At=dt[dt.length-1]||"";T.value=!I1(At)},Le=ke=>{n("compositionend",ke),T.value&&(T.value=!1,Be(ke))},Se=()=>{w.value=!w.value,De()},De=async()=>{var ke;await ut(),(ke=P.value)==null||ke.focus()},Fe=()=>{var ke;return(ke=P.value)==null?void 0:ke.blur()},Ie=ke=>{S.value=!1,n("mouseleave",ke)},je=ke=>{S.value=!0,n("mouseenter",ke)},Ee=ke=>{n("keydown",ke)},Ze=()=>{var ke;(ke=P.value)==null||ke.select()},nt=()=>{n($t,""),n("change",""),n("clear"),n("input","")};return xe(()=>s.modelValue,()=>{var ke;ut(()=>ie()),s.validateEvent&&((ke=f==null?void 0:f.validate)==null||ke.call(f,"change").catch(et=>void 0))}),xe(N,()=>Ce()),xe(()=>s.type,async()=>{await ut(),Ce(),ie()}),gt(()=>{!s.formatter&&s.parser,Ce(),ut(ie)}),ss({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},E(()=>!!s.label)),t({input:v,textarea:b,ref:P,textareaStyle:V,autosize:nn(s,"autosize"),focus:De,blur:Fe,select:Ze,clear:nt,resizeTextarea:ie}),(ke,et)=>(k(),z("div",Lt(d(a),{class:[d(o),{[d(p).bm("group","append")]:ke.$slots.append,[d(p).bm("group","prepend")]:ke.$slots.prepend}],style:d(H),role:ke.containerRole,onMouseenter:je,onMouseleave:Ie}),[ae(" input "),ke.type!=="textarea"?(k(),z(Ge,{key:0},[ae(" prepend slot "),ke.$slots.prepend?(k(),z("div",{key:0,class:$(d(p).be("group","prepend"))},[be(ke.$slots,"prepend")],2)):ae("v-if",!0),R("div",{ref_key:"wrapperRef",ref:M,class:$(d(l))},[ae(" prefix slot "),ke.$slots.prefix||ke.prefixIcon?(k(),z("span",{key:0,class:$(d(p).e("prefix"))},[R("span",{class:$(d(p).e("prefix-inner"))},[be(ke.$slots,"prefix"),ke.prefixIcon?(k(),fe(d(tt),{key:0,class:$(d(p).e("icon"))},{default:L(()=>[(k(),fe(Nt(ke.prefixIcon)))]),_:1},8,["class"])):ae("v-if",!0)],2)],2)):ae("v-if",!0),R("input",Lt({id:d(h),ref_key:"input",ref:v,class:d(p).e("inner")},d(u),{minlength:ke.minlength,maxlength:ke.maxlength,type:ke.showPassword?w.value?"text":"password":ke.type,disabled:d(m),readonly:ke.readonly,autocomplete:ke.autocomplete,tabindex:ke.tabindex,"aria-label":ke.label||ke.ariaLabel,placeholder:ke.placeholder,style:ke.inputStyle,form:ke.form,autofocus:ke.autofocus,onCompositionstart:se,onCompositionupdate:Te,onCompositionend:Le,onInput:Be,onFocus:et[0]||(et[0]=(...dt)=>d(B)&&d(B)(...dt)),onBlur:et[1]||(et[1]=(...dt)=>d(W)&&d(W)(...dt)),onChange:ee,onKeydown:Ee}),null,16,HG),ae(" suffix slot "),d(Ne)?(k(),z("span",{key:1,class:$(d(p).e("suffix"))},[R("span",{class:$(d(p).e("suffix-inner"))},[!d(Y)||!d(Z)||!d(ne)?(k(),z(Ge,{key:0},[be(ke.$slots,"suffix"),ke.suffixIcon?(k(),fe(d(tt),{key:0,class:$(d(p).e("icon"))},{default:L(()=>[(k(),fe(Nt(ke.suffixIcon)))]),_:1},8,["class"])):ae("v-if",!0)],64)):ae("v-if",!0),d(Y)?(k(),fe(d(tt),{key:1,class:$([d(p).e("icon"),d(p).e("clear")]),onMousedown:vt(d(Jt),["prevent"]),onClick:nt},{default:L(()=>[I(d(ko))]),_:1},8,["class","onMousedown"])):ae("v-if",!0),d(Z)?(k(),fe(d(tt),{key:2,class:$([d(p).e("icon"),d(p).e("password")]),onClick:Se},{default:L(()=>[(k(),fe(Nt(d(q))))]),_:1},8,["class"])):ae("v-if",!0),d(ne)?(k(),z("span",{key:3,class:$(d(p).e("count"))},[R("span",{class:$(d(p).e("count-inner"))},pe(d(ue))+" / "+pe(ke.maxlength),3)],2)):ae("v-if",!0),d(G)&&d(X)&&d(Q)?(k(),fe(d(tt),{key:4,class:$([d(p).e("icon"),d(p).e("validateIcon"),d(p).is("loading",d(G)==="validating")])},{default:L(()=>[(k(),fe(Nt(d(X))))]),_:1},8,["class"])):ae("v-if",!0)],2)],2)):ae("v-if",!0)],2),ae(" append slot "),ke.$slots.append?(k(),z("div",{key:1,class:$(d(p).be("group","append"))},[be(ke.$slots,"append")],2)):ae("v-if",!0)],64)):(k(),z(Ge,{key:1},[ae(" textarea "),R("textarea",Lt({id:d(h),ref_key:"textarea",ref:b,class:[d(y).e("inner"),d(p).is("focus",d(U))]},d(u),{minlength:ke.minlength,maxlength:ke.maxlength,tabindex:ke.tabindex,disabled:d(m),readonly:ke.readonly,autocomplete:ke.autocomplete,style:d(V),"aria-label":ke.label||ke.ariaLabel,placeholder:ke.placeholder,form:ke.form,autofocus:ke.autofocus,onCompositionstart:se,onCompositionupdate:Te,onCompositionend:Le,onInput:Be,onFocus:et[2]||(et[2]=(...dt)=>d(B)&&d(B)(...dt)),onBlur:et[3]||(et[3]=(...dt)=>d(W)&&d(W)(...dt)),onChange:ee,onKeydown:Ee}),null,16,zG),d(ne)?(k(),z("span",{key:0,style:it(C.value),class:$(d(p).e("count"))},pe(d(ue))+" / "+pe(ke.maxlength),7)):ae("v-if",!0)],64))],16,UG))}});var WG=ze(qG,[["__file","input.vue"]]);const Vn=Dt(WG),Gl=4,MI={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"}},KG=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Q1=Symbol("scrollbarContextKey"),GG=Ve({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),YG="Thumb",XG=J({__name:"thumb",props:GG,setup(e){const t=e,n=Je(Q1),s=Pe("scrollbar");n||Zn(YG,"can not inject scrollbar context");const r=j(),i=j(),a=j({}),o=j(!1);let l=!1,u=!1,c=jt?document.onselectstart:null;const f=E(()=>MI[t.vertical?"vertical":"horizontal"]),h=E(()=>KG({size:t.size,move:t.move,bar:f.value})),g=E(()=>r.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),m=C=>{var O;if(C.stopPropagation(),C.ctrlKey||[1,2].includes(C.button))return;(O=window.getSelection())==null||O.removeAllRanges(),y(C);const P=C.currentTarget;P&&(a.value[f.value.axis]=P[f.value.offset]-(C[f.value.client]-P.getBoundingClientRect()[f.value.direction]))},p=C=>{if(!i.value||!r.value||!n.wrapElement)return;const O=Math.abs(C.target.getBoundingClientRect()[f.value.direction]-C[f.value.client]),P=i.value[f.value.offset]/2,M=(O-P)*100*g.value/r.value[f.value.offset];n.wrapElement[f.value.scroll]=M*n.wrapElement[f.value.scrollSize]/100},y=C=>{C.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),c=document.onselectstart,document.onselectstart=()=>!1},v=C=>{if(!r.value||!i.value||l===!1)return;const O=a.value[f.value.axis];if(!O)return;const P=(r.value.getBoundingClientRect()[f.value.direction]-C[f.value.client])*-1,M=i.value[f.value.offset]-O,U=(P-M)*100*g.value/r.value[f.value.offset];n.wrapElement[f.value.scroll]=U*n.wrapElement[f.value.scrollSize]/100},b=()=>{l=!1,a.value[f.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),w(),u&&(o.value=!1)},S=()=>{u=!1,o.value=!!t.size},T=()=>{u=!0,o.value=l};un(()=>{w(),document.removeEventListener("mouseup",b)});const w=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return cn(nn(n,"scrollbarElement"),"mousemove",S),cn(nn(n,"scrollbarElement"),"mouseleave",T),(C,O)=>(k(),fe(Wn,{name:d(s).b("fade"),persisted:""},{default:L(()=>[yt(R("div",{ref_key:"instance",ref:r,class:$([d(s).e("bar"),d(s).is(d(f).key)]),onMousedown:p},[R("div",{ref_key:"thumb",ref:i,class:$(d(s).e("thumb")),style:it(d(h)),onMousedown:m},null,38)],34),[[zt,C.always||o.value]])]),_:1},8,["name"]))}});var lE=ze(XG,[["__file","thumb.vue"]]);const QG=Ve({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),JG=J({__name:"bar",props:QG,setup(e,{expose:t}){const n=e,s=Je(Q1),r=j(0),i=j(0),a=j(""),o=j(""),l=j(1),u=j(1);return t({handleScroll:h=>{if(h){const g=h.offsetHeight-Gl,m=h.offsetWidth-Gl;i.value=h.scrollTop*100/g*l.value,r.value=h.scrollLeft*100/m*u.value}},update:()=>{const h=s==null?void 0:s.wrapElement;if(!h)return;const g=h.offsetHeight-Gl,m=h.offsetWidth-Gl,p=g**2/h.scrollHeight,y=m**2/h.scrollWidth,v=Math.max(p,n.minSize),b=Math.max(y,n.minSize);l.value=p/(g-p)/(v/(g-v)),u.value=y/(m-y)/(b/(m-b)),o.value=v+Gl<g?`${v}px`:"",a.value=b+Gl<m?`${b}px`:""}}),(h,g)=>(k(),z(Ge,null,[I(lE,{move:r.value,ratio:u.value,size:a.value,always:h.always},null,8,["move","ratio","size","always"]),I(lE,{move:i.value,ratio:l.value,size:o.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}});var ZG=ze(JG,[["__file","bar.vue"]]);const eY=Ve({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:le([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},id:String,role:String,...ys(["ariaLabel","ariaOrientation"])}),tY={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(pt)},nY="ElScrollbar",sY=J({name:nY}),rY=J({...sY,props:eY,emits:tY,setup(e,{expose:t,emit:n}){const s=e,r=Pe("scrollbar");let i,a;const o=j(),l=j(),u=j(),c=j(),f=E(()=>{const S={};return s.height&&(S.height=In(s.height)),s.maxHeight&&(S.maxHeight=In(s.maxHeight)),[s.wrapStyle,S]}),h=E(()=>[s.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!s.native}]),g=E(()=>[r.e("view"),s.viewClass]),m=()=>{var S;l.value&&((S=c.value)==null||S.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function p(S,T){Pt(S)?l.value.scrollTo(S):pt(S)&&pt(T)&&l.value.scrollTo(S,T)}const y=S=>{pt(S)&&(l.value.scrollTop=S)},v=S=>{pt(S)&&(l.value.scrollLeft=S)},b=()=>{var S;(S=c.value)==null||S.update()};return xe(()=>s.noresize,S=>{S?(i==null||i(),a==null||a()):({stop:i}=Sn(u,b),a=cn("resize",b))},{immediate:!0}),xe(()=>[s.maxHeight,s.height],()=>{s.native||ut(()=>{var S;b(),l.value&&((S=c.value)==null||S.handleScroll(l.value))})}),Mt(Q1,Ct({scrollbarElement:o,wrapElement:l})),gt(()=>{s.native||ut(()=>{b()})}),xa(()=>b()),t({wrapRef:l,update:b,scrollTo:p,setScrollTop:y,setScrollLeft:v,handleScroll:m}),(S,T)=>(k(),z("div",{ref_key:"scrollbarRef",ref:o,class:$(d(r).b())},[R("div",{ref_key:"wrapRef",ref:l,class:$(d(h)),style:it(d(f)),onScroll:m},[(k(),fe(Nt(S.tag),{id:S.id,ref_key:"resizeRef",ref:u,class:$(d(g)),style:it(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:L(()=>[be(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),S.native?ae("v-if",!0):(k(),fe(ZG,{key:0,ref_key:"barRef",ref:c,always:S.always,"min-size":S.minSize},null,8,["always","min-size"]))],2))}});var iY=ze(rY,[["__file","scrollbar.vue"]]);const Da=Dt(iY),J1=Symbol("popper"),LI=Symbol("popperContent"),aY=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],BI=Ve({role:{type:String,values:aY,default:"tooltip"}}),oY=J({name:"ElPopper",inheritAttrs:!1}),lY=J({...oY,props:BI,setup(e,{expose:t}){const n=e,s=j(),r=j(),i=j(),a=j(),o=E(()=>n.role),l={triggerRef:s,popperInstanceRef:r,contentRef:i,referenceRef:a,role:o};return t(l),Mt(J1,l),(u,c)=>be(u.$slots,"default")}});var uY=ze(lY,[["__file","popper.vue"]]);const FI=Ve({arrowOffset:{type:Number,default:5}}),cY=J({name:"ElPopperArrow",inheritAttrs:!1}),dY=J({...cY,props:FI,setup(e,{expose:t}){const n=e,s=Pe("popper"),{arrowOffset:r,arrowRef:i,arrowStyle:a}=Je(LI,void 0);return xe(()=>n.arrowOffset,o=>{r.value=o}),un(()=>{i.value=void 0}),t({arrowRef:i}),(o,l)=>(k(),z("span",{ref_key:"arrowRef",ref:i,class:$(d(s).e("arrow")),style:it(d(a)),"data-popper-arrow":""},null,6))}});var fY=ze(dY,[["__file","arrow.vue"]]);const hY="ElOnlyChild",VI=J({name:hY,setup(e,{slots:t,attrs:n}){var s;const r=Je(mI),i=PW((s=r==null?void 0:r.setForwardRef)!=null?s:Jt);return()=>{var a;const o=(a=t.default)==null?void 0:a.call(t,n);if(!o||o.length>1)return null;const l=UI(o);return l?yt(ga(l,n),[[i]]):null}}});function UI(e){if(!e)return null;const t=e;for(const n of t){if(Pt(n))switch(n.type){case Ss:continue;case _c:case"svg":return uE(n);case Ge:return UI(n.children);default:return n}return uE(n)}return null}function uE(e){const t=Pe("only-child");return I("span",{class:t.e("content")},[e])}const HI=Ve({virtualRef:{type:le(Object)},virtualTriggering:Boolean,onMouseenter:{type:le(Function)},onMouseleave:{type:le(Function)},onClick:{type:le(Function)},onKeydown:{type:le(Function)},onFocus:{type:le(Function)},onBlur:{type:le(Function)},onContextmenu:{type:le(Function)},id:String,open:Boolean}),pY=J({name:"ElPopperTrigger",inheritAttrs:!1}),mY=J({...pY,props:HI,setup(e,{expose:t}){const n=e,{role:s,triggerRef:r}=Je(J1,void 0);OW(r);const i=E(()=>o.value?n.id:void 0),a=E(()=>{if(s&&s.value==="tooltip")return n.open&&n.id?n.id:void 0}),o=E(()=>{if(s&&s.value!=="tooltip")return s.value}),l=E(()=>o.value?`${n.open}`:void 0);let u;return gt(()=>{xe(()=>n.virtualRef,c=>{c&&(r.value=nr(c))},{immediate:!0}),xe(r,(c,f)=>{u==null||u(),u=void 0,Kr(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{var g;const m=n[h];m&&(c.addEventListener(h.slice(2).toLowerCase(),m),(g=f==null?void 0:f.removeEventListener)==null||g.call(f,h.slice(2).toLowerCase(),m))}),u=xe([i,a,o,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((g,m)=>{os(h[m])?c.removeAttribute(g):c.setAttribute(g,h[m])})},{immediate:!0})),Kr(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>f.removeAttribute(h))},{immediate:!0})}),un(()=>{u==null||u(),u=void 0}),t({triggerRef:r}),(c,f)=>c.virtualTriggering?ae("v-if",!0):(k(),fe(d(VI),Lt({key:0},c.$attrs,{"aria-controls":d(i),"aria-describedby":d(a),"aria-expanded":d(l),"aria-haspopup":d(o)}),{default:L(()=>[be(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var gY=ze(mY,[["__file","trigger.vue"]]);const y0="focus-trap.focus-after-trapped",b0="focus-trap.focus-after-released",vY="focus-trap.focusout-prevented",cE={cancelable:!0,bubbles:!1},yY={cancelable:!0,bubbles:!1},dE="focusAfterTrapped",fE="focusAfterReleased",Z1=Symbol("elFocusTrap"),e2=j(),qg=j(0),t2=j(0);let up=0;const zI=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},hE=(e,t)=>{for(const n of e)if(!bY(n,t))return n},bY=(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},_Y=e=>{const t=zI(e),n=hE(t,e),s=hE(t.reverse(),e);return[n,s]},SY=e=>e instanceof HTMLInputElement&&"select"in e,qa=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),t2.value=window.performance.now(),e!==n&&SY(e)&&t&&e.select()}};function pE(e,t){const n=[...e],s=e.indexOf(t);return s!==-1&&n.splice(s,1),n}const wY=()=>{let e=[];return{push:s=>{const r=e[0];r&&s!==r&&r.pause(),e=pE(e,s),e.unshift(s)},remove:s=>{var r,i;e=pE(e,s),(i=(r=e[0])==null?void 0:r.resume)==null||i.call(r)}}},TY=(e,t=!1)=>{const n=document.activeElement;for(const s of e)if(qa(s,t),document.activeElement!==n)return},mE=wY(),CY=()=>qg.value>t2.value,cp=()=>{e2.value="pointer",qg.value=window.performance.now()},gE=()=>{e2.value="keyboard",qg.value=window.performance.now()},EY=()=>(gt(()=>{up===0&&(document.addEventListener("mousedown",cp),document.addEventListener("touchstart",cp),document.addEventListener("keydown",gE)),up++}),un(()=>{up--,up<=0&&(document.removeEventListener("mousedown",cp),document.removeEventListener("touchstart",cp),document.removeEventListener("keydown",gE))}),{focusReason:e2,lastUserFocusTimestamp:qg,lastAutomatedFocusTimestamp:t2}),dp=e=>new CustomEvent(vY,{...yY,detail:e}),xY=J({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[dE,fE,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=j();let s,r;const{focusReason:i}=EY();xW(m=>{e.trapped&&!a.paused&&t("release-requested",m)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},o=m=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:p,altKey:y,ctrlKey:v,metaKey:b,currentTarget:S,shiftKey:T}=m,{loop:w}=e,C=p===ot.tab&&!y&&!v&&!b,O=document.activeElement;if(C&&O){const P=S,[M,U]=_Y(P);if(M&&U){if(!T&&O===U){const W=dp({focusReason:i.value});t("focusout-prevented",W),W.defaultPrevented||(m.preventDefault(),w&&qa(M,!0))}else if(T&&[M,P].includes(O)){const W=dp({focusReason:i.value});t("focusout-prevented",W),W.defaultPrevented||(m.preventDefault(),w&&qa(U,!0))}}else if(O===P){const W=dp({focusReason:i.value});t("focusout-prevented",W),W.defaultPrevented||m.preventDefault()}}};Mt(Z1,{focusTrapRef:n,onKeydown:o}),xe(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),xe([n],([m],[p])=>{m&&(m.addEventListener("keydown",o),m.addEventListener("focusin",c),m.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",o),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=m=>{t(dE,m)},u=m=>t(fE,m),c=m=>{const p=d(n);if(!p)return;const y=m.target,v=m.relatedTarget,b=y&&p.contains(y);e.trapped||v&&p.contains(v)||(s=v),b&&t("focusin",m),!a.paused&&e.trapped&&(b?r=y:qa(r,!0))},f=m=>{const p=d(n);if(!(a.paused||!p))if(e.trapped){const y=m.relatedTarget;!os(y)&&!p.contains(y)&&setTimeout(()=>{if(!a.paused&&e.trapped){const v=dp({focusReason:i.value});t("focusout-prevented",v),v.defaultPrevented||qa(r,!0)}},0)}else{const y=m.target;y&&p.contains(y)||t("focusout",m)}};async function h(){await ut();const m=d(n);if(m){mE.push(a);const p=m.contains(document.activeElement)?s:document.activeElement;if(s=p,!m.contains(p)){const v=new Event(y0,cE);m.addEventListener(y0,l),m.dispatchEvent(v),v.defaultPrevented||ut(()=>{let b=e.focusStartEl;bt(b)||(qa(b),document.activeElement!==b&&(b="first")),b==="first"&&TY(zI(m),!0),(document.activeElement===p||b==="container")&&qa(m)})}}}function g(){const m=d(n);if(m){m.removeEventListener(y0,l);const p=new CustomEvent(b0,{...cE,detail:{focusReason:i.value}});m.addEventListener(b0,u),m.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!CY()||m.contains(document.activeElement))&&qa(s??document.body),m.removeEventListener(b0,u),mE.remove(a)}}return gt(()=>{e.trapped&&h(),xe(()=>e.trapped,m=>{m?h():g()})}),un(()=>{e.trapped&&g()}),{onKeydown:o}}});function kY(e,t,n,s,r,i){return be(e.$slots,"default",{handleKeydown:e.onKeydown})}var lh=ze(xY,[["render",kY],["__file","focus-trap.vue"]]);const AY=["fixed","absolute"],IY=Ve({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:le(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ll,default:"bottom"},popperOptions:{type:le(Object),default:()=>({})},strategy:{type:String,values:AY,default:"absolute"}}),jI=Ve({...IY,id:String,style:{type:le([String,Array,Object])},className:{type:le([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:le([String,Array,Object])},popperStyle:{type:le([String,Array,Object])},referenceEl:{type:le(Object)},triggerTargetEl:{type:le(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ys(["ariaLabel"])}),DY={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},OY=(e,t=[])=>{const{placement:n,strategy:s,popperOptions:r}=e,i={placement:n,strategy:s,...r,modifiers:[...$Y(e),...t]};return RY(i,r==null?void 0:r.modifiers),i},PY=e=>{if(jt)return nr(e)};function $Y(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 RY(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const NY=0,MY=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:s,role:r}=Je(J1,void 0),i=j(),a=j(),o=E(()=>({name:"eventListeners",enabled:!!e.visible})),l=E(()=>{var v;const b=d(i),S=(v=d(a))!=null?v:NY;return{name:"arrow",enabled:!V3(b),options:{element:b,padding:S}}}),u=E(()=>({onFirstUpdate:()=>{m()},...OY(e,[d(l),d(o)])})),c=E(()=>PY(e.referenceEl)||d(s)),{attributes:f,state:h,styles:g,update:m,forceUpdate:p,instanceRef:y}=wW(c,n,u);return xe(y,v=>t.value=v),gt(()=>{xe(()=>{var v;return(v=d(c))==null?void 0:v.getBoundingClientRect()},()=>{m()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:y,state:h,styles:g,role:r,forceUpdate:p,update:m}},LY=(e,{attributes:t,styles:n,role:s})=>{const{nextZIndex:r}=xc(),i=Pe("popper"),a=E(()=>d(t).popper),o=j(pt(e.zIndex)?e.zIndex:r()),l=E(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=E(()=>[{zIndex:d(o)},d(n).popper,e.popperStyle||{}]),c=E(()=>s.value==="dialog"?"false":void 0),f=E(()=>d(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:o,updateZIndex:()=>{o.value=pt(e.zIndex)?e.zIndex:r()}}},BY=(e,t)=>{const n=j(!1),s=j();return{focusStartRef:s,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.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")}}},FY=J({name:"ElPopperContent"}),VY=J({...FY,props:jI,emits:DY,setup(e,{expose:t,emit:n}){const s=e,{focusStartRef:r,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:o,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=BY(s,n),{attributes:f,arrowRef:h,contentRef:g,styles:m,instanceRef:p,role:y,update:v}=MY(s),{ariaModal:b,arrowStyle:S,contentAttrs:T,contentClass:w,contentStyle:C,updateZIndex:O}=LY(s,{styles:m,attributes:f,role:y}),P=Je(qi,void 0),M=j();Mt(LI,{arrowStyle:S,arrowRef:h,arrowOffset:M}),P&&Mt(qi,{...P,addInputId:Jt,removeInputId:Jt});let U;const B=(Q=!0)=>{v(),Q&&O()},W=()=>{B(!1),s.visible&&s.focusOnShow?i.value=!0:s.visible===!1&&(i.value=!1)};return gt(()=>{xe(()=>s.triggerTargetEl,(Q,G)=>{U==null||U(),U=void 0;const X=d(Q||g.value),q=d(G||g.value);Kr(X)&&(U=xe([y,()=>s.ariaLabel,b,()=>s.id],H=>{["role","aria-label","aria-modal","id"].forEach((V,N)=>{os(H[N])?X.removeAttribute(V):X.setAttribute(V,H[N])})},{immediate:!0})),q!==X&&Kr(q)&&["role","aria-label","aria-modal","id"].forEach(H=>{q.removeAttribute(H)})},{immediate:!0}),xe(()=>s.visible,W,{immediate:!0})}),un(()=>{U==null||U(),U=void 0}),t({popperContentRef:g,popperInstanceRef:p,updatePopper:B,contentStyle:C}),(Q,G)=>(k(),z("div",Lt({ref_key:"contentRef",ref:g},d(T),{style:d(C),class:d(w),tabindex:"-1",onMouseenter:G[0]||(G[0]=X=>Q.$emit("mouseenter",X)),onMouseleave:G[1]||(G[1]=X=>Q.$emit("mouseleave",X))}),[I(d(lh),{trapped:d(i),"trap-on-focus-in":!0,"focus-trap-el":d(g),"focus-start-el":d(r),onFocusAfterTrapped:d(o),onFocusAfterReleased:d(a),onFocusin:d(l),onFocusoutPrevented:d(u),onReleaseRequested:d(c)},{default:L(()=>[be(Q.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var UY=ze(VY,[["__file","content.vue"]]);const qI=Dt(uY),Wg=Symbol("elTooltip"),as=Ve({...IW,...jI,appendTo:{type:le([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:le(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ys(["ariaLabel"])}),Cf=Ve({...HI,disabled:Boolean,trigger:{type:le([String,Array]),default:"hover"},triggerKeys:{type:le(Array),default:()=>[ot.enter,ot.space]}}),{useModelToggleProps:HY,useModelToggleEmits:zY,useModelToggle:jY}=tI("visible"),qY=Ve({...BI,...HY,...as,...Cf,...FI,showArrow:{type:Boolean,default:!0}}),WY=[...zY,"before-show","before-hide","show","hide","open","close"],KY=(e,t)=>Xe(e)?e.includes(t):e===t,Yl=(e,t,n)=>s=>{KY(d(e),t)&&n(s)},GY=J({name:"ElTooltipTrigger"}),YY=J({...GY,props:Cf,setup(e,{expose:t}){const n=e,s=Pe("tooltip"),{controlled:r,id:i,open:a,onOpen:o,onClose:l,onToggle:u}=Je(Wg,void 0),c=j(null),f=()=>{if(d(r)||n.disabled)return!0},h=nn(n,"trigger"),g=xn(f,Yl(h,"hover",o)),m=xn(f,Yl(h,"hover",l)),p=xn(f,Yl(h,"click",T=>{T.button===0&&u(T)})),y=xn(f,Yl(h,"focus",o)),v=xn(f,Yl(h,"focus",l)),b=xn(f,Yl(h,"contextmenu",T=>{T.preventDefault(),u(T)})),S=xn(f,T=>{const{code:w}=T;n.triggerKeys.includes(w)&&(T.preventDefault(),u(T))});return t({triggerRef:c}),(T,w)=>(k(),fe(d(gY),{id:d(i),"virtual-ref":T.virtualRef,open:d(a),"virtual-triggering":T.virtualTriggering,class:$(d(s).e("trigger")),onBlur:d(v),onClick:d(p),onContextmenu:d(b),onFocus:d(y),onMouseenter:d(g),onMouseleave:d(m),onKeydown:d(S)},{default:L(()=>[be(T.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var XY=ze(YY,[["__file","trigger.vue"]]);const QY=J({name:"ElTooltipContent",inheritAttrs:!1}),JY=J({...QY,props:as,setup(e,{expose:t}){const n=e,{selector:s}=pI(),r=Pe("tooltip"),i=j(null),a=j(!1),{controlled:o,id:l,open:u,trigger:c,onClose:f,onOpen:h,onShow:g,onHide:m,onBeforeShow:p,onBeforeHide:y}=Je(Wg,void 0),v=E(()=>n.transition||`${r.namespace.value}-fade-in-linear`),b=E(()=>n.persistent);un(()=>{a.value=!0});const S=E(()=>d(b)?!0:d(u)),T=E(()=>n.disabled?!1:d(u)),w=E(()=>n.appendTo||s.value),C=E(()=>{var H;return(H=n.style)!=null?H:{}}),O=E(()=>!d(u)),P=()=>{m()},M=()=>{if(d(o))return!0},U=xn(M,()=>{n.enterable&&d(c)==="hover"&&h()}),B=xn(M,()=>{d(c)==="hover"&&f()}),W=()=>{var H,V;(V=(H=i.value)==null?void 0:H.updatePopper)==null||V.call(H),p==null||p()},Q=()=>{y==null||y()},G=()=>{g(),q=e1(E(()=>{var H;return(H=i.value)==null?void 0:H.popperContentRef}),()=>{if(d(o))return;d(c)!=="hover"&&f()})},X=()=>{n.virtualTriggering||f()};let q;return xe(()=>d(u),H=>{H||q==null||q()},{flush:"post"}),xe(()=>n.content,()=>{var H,V;(V=(H=i.value)==null?void 0:H.updatePopper)==null||V.call(H)}),t({contentRef:i}),(H,V)=>(k(),fe(bc,{disabled:!H.teleported,to:d(w)},[I(Wn,{name:d(v),onAfterLeave:P,onBeforeEnter:W,onAfterEnter:G,onBeforeLeave:Q},{default:L(()=>[d(S)?yt((k(),fe(d(UY),Lt({key:0,id:d(l),ref_key:"contentRef",ref:i},H.$attrs,{"aria-label":H.ariaLabel,"aria-hidden":d(O),"boundaries-padding":H.boundariesPadding,"fallback-placements":H.fallbackPlacements,"gpu-acceleration":H.gpuAcceleration,offset:H.offset,placement:H.placement,"popper-options":H.popperOptions,strategy:H.strategy,effect:H.effect,enterable:H.enterable,pure:H.pure,"popper-class":H.popperClass,"popper-style":[H.popperStyle,d(C)],"reference-el":H.referenceEl,"trigger-target-el":H.triggerTargetEl,visible:d(T),"z-index":H.zIndex,onMouseenter:d(U),onMouseleave:d(B),onBlur:X,onClose:d(f)}),{default:L(()=>[a.value?ae("v-if",!0):be(H.$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"])),[[zt,d(T)]]):ae("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ZY=ze(JY,[["__file","content.vue"]]);const eX=["innerHTML"],tX={key:1},nX=J({name:"ElTooltip"}),sX=J({...nX,props:qY,emits:WY,setup(e,{expose:t,emit:n}){const s=e;AW();const r=xs(),i=j(),a=j(),o=()=>{var v;const b=d(i);b&&((v=b.popperInstanceRef)==null||v.update())},l=j(!1),u=j(),{show:c,hide:f,hasUpdateHandler:h}=jY({indicator:l,toggleReason:u}),{onOpen:g,onClose:m}=DW({showAfter:nn(s,"showAfter"),hideAfter:nn(s,"hideAfter"),autoClose:nn(s,"autoClose"),open:c,close:f}),p=E(()=>Hn(s.visible)&&!h.value);Mt(Wg,{controlled:p,id:r,open:Ol(l),trigger:nn(s,"trigger"),onOpen:v=>{g(v)},onClose:v=>{m(v)},onToggle:v=>{d(l)?m(v):g(v)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:o}),xe(()=>s.disabled,v=>{v&&l.value&&(l.value=!1)});const y=v=>{var b,S;const T=(S=(b=a.value)==null?void 0:b.contentRef)==null?void 0:S.popperContentRef,w=(v==null?void 0:v.relatedTarget)||document.activeElement;return T&&T.contains(w)};return E4(()=>l.value&&f()),t({popperRef:i,contentRef:a,isFocusInsideContent:y,updatePopper:o,onOpen:g,onClose:m,hide:f}),(v,b)=>(k(),fe(d(qI),{ref_key:"popperRef",ref:i,role:v.role},{default:L(()=>[I(XY,{disabled:v.disabled,trigger:v.trigger,"trigger-keys":v.triggerKeys,"virtual-ref":v.virtualRef,"virtual-triggering":v.virtualTriggering},{default:L(()=>[v.$slots.default?be(v.$slots,"default",{key:0}):ae("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),I(ZY,{ref_key:"contentRef",ref:a,"aria-label":v.ariaLabel,"boundaries-padding":v.boundariesPadding,content:v.content,disabled:v.disabled,effect:v.effect,enterable:v.enterable,"fallback-placements":v.fallbackPlacements,"hide-after":v.hideAfter,"gpu-acceleration":v.gpuAcceleration,offset:v.offset,persistent:v.persistent,"popper-class":v.popperClass,"popper-style":v.popperStyle,placement:v.placement,"popper-options":v.popperOptions,pure:v.pure,"raw-content":v.rawContent,"reference-el":v.referenceEl,"trigger-target-el":v.triggerTargetEl,"show-after":v.showAfter,strategy:v.strategy,teleported:v.teleported,transition:v.transition,"virtual-triggering":v.virtualTriggering,"z-index":v.zIndex,"append-to":v.appendTo},{default:L(()=>[be(v.$slots,"content",{},()=>[v.rawContent?(k(),z("span",{key:0,innerHTML:v.content},null,8,eX)):(k(),z("span",tX,pe(v.content),1))]),v.showArrow?(k(),fe(d(fY),{key:0,"arrow-offset":v.arrowOffset},null,8,["arrow-offset"])):ae("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 rX=ze(sX,[["__file","tooltip.vue"]]);const gs=Dt(rX),iX=Ve({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:le(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:le([Function,Array]),default:Jt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:as.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...ys(["ariaLabel"])}),aX={[$t]:e=>bt(e),[zs]:e=>bt(e),[dn]:e=>bt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Pt(e)},oX=["aria-expanded","aria-owns"],lX={key:0},uX=["id","aria-selected","onClick"],WI="ElAutocomplete",cX=J({name:WI,inheritAttrs:!1}),dX=J({...cX,props:iX,emits:aX,setup(e,{expose:t,emit:n}){const s=e,r=D1(),i=$l(),a=Gs(),o=Pe("autocomplete"),l=j(),u=j(),c=j(),f=j();let h=!1,g=!1;const m=j([]),p=j(-1),y=j(""),v=j(!1),b=j(!1),S=j(!1),T=xs(),w=E(()=>i.style),C=E(()=>(m.value.length>0||S.value)&&v.value),O=E(()=>!s.hideLoading&&S.value),P=E(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),M=()=>{C.value&&(y.value=`${l.value.$el.offsetWidth}px`)},U=()=>{p.value=-1},W=or(async ce=>{if(b.value)return;const te=ie=>{S.value=!1,!b.value&&(Xe(ie)?(m.value=ie,p.value=s.highlightFirstItem?0:-1):Zn(WI,"autocomplete suggestions must be an array"))};if(S.value=!0,Xe(s.fetchSuggestions))te(s.fetchSuggestions);else{const ie=await s.fetchSuggestions(ce,te);Xe(ie)&&te(ie)}},s.debounce),Q=ce=>{const te=!!ce;if(n(zs,ce),n($t,ce),b.value=!1,v.value||(v.value=te),!s.triggerOnFocus&&!ce){b.value=!0,m.value=[];return}W(ce)},G=ce=>{var te;a.value||(((te=ce.target)==null?void 0:te.tagName)!=="INPUT"||P.value.includes(document.activeElement))&&(v.value=!0)},X=ce=>{n(dn,ce)},q=ce=>{g?g=!1:(v.value=!0,n("focus",ce),s.triggerOnFocus&&!h&&W(String(s.modelValue)))},H=ce=>{setTimeout(()=>{var te;if((te=c.value)!=null&&te.isFocusInsideContent()){g=!0;return}v.value&&Z(),n("blur",ce)})},V=()=>{v.value=!1,n($t,""),n("clear")},N=async()=>{C.value&&p.value>=0&&p.value<m.value.length?_e(m.value[p.value]):s.selectWhenUnmatched&&(n("select",{value:s.modelValue}),m.value=[],p.value=-1)},Y=ce=>{C.value&&(ce.preventDefault(),ce.stopPropagation(),Z())},Z=()=>{v.value=!1},ne=()=>{var ce;(ce=l.value)==null||ce.focus()},ue=()=>{var ce;(ce=l.value)==null||ce.blur()},_e=async ce=>{n(zs,ce[s.valueKey]),n($t,ce[s.valueKey]),n("select",ce),m.value=[],p.value=-1},Ne=ce=>{if(!C.value||S.value)return;if(ce<0){p.value=-1;return}ce>=m.value.length&&(ce=m.value.length-1);const te=u.value.querySelector(`.${o.be("suggestion","wrap")}`),we=te.querySelectorAll(`.${o.be("suggestion","list")} li`)[ce],me=te.scrollTop,{offsetTop:Ce,scrollHeight:Be}=we;Ce+Be>me+te.clientHeight&&(te.scrollTop+=Be),Ce<me&&(te.scrollTop-=Be),p.value=ce,l.value.ref.setAttribute("aria-activedescendant",`${T.value}-item-${p.value}`)};return e1(f,()=>{C.value&&Z()}),gt(()=>{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",`${T.value}-item-${p.value}`),h=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:v,loading:S,inputRef:l,popperRef:c,suggestions:m,handleSelect:_e,handleKeyEnter:N,focus:ne,blur:ue,close:Z,highlight:Ne}),(ce,te)=>(k(),fe(d(gs),{ref_key:"popperRef",ref:c,visible:d(C),placement:ce.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[d(o).e("popper"),ce.popperClass],teleported:ce.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${d(o).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:M,onHide:U},{content:L(()=>[R("div",{ref_key:"regionRef",ref:u,class:$([d(o).b("suggestion"),d(o).is("loading",d(O))]),style:it({[ce.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[I(d(Da),{id:d(T),tag:"ul","wrap-class":d(o).be("suggestion","wrap"),"view-class":d(o).be("suggestion","list"),role:"listbox"},{default:L(()=>[d(O)?(k(),z("li",lX,[be(ce.$slots,"loading",{},()=>[I(d(tt),{class:$(d(o).is("loading"))},{default:L(()=>[I(d(Ao))]),_:1},8,["class"])])])):(k(!0),z(Ge,{key:1},_t(m.value,(ie,we)=>(k(),z("li",{id:`${d(T)}-item-${we}`,key:we,class:$({highlighted:p.value===we}),role:"option","aria-selected":p.value===we,onClick:me=>_e(ie)},[be(ce.$slots,"default",{item:ie},()=>[Re(pe(ie[ce.valueKey]),1)])],10,uX))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:L(()=>[R("div",{ref_key:"listboxRef",ref:f,class:$([d(o).b(),ce.$attrs.class]),style:it(d(w)),role:"combobox","aria-haspopup":"listbox","aria-expanded":d(C),"aria-owns":d(T)},[I(d(Vn),Lt({ref_key:"inputRef",ref:l},d(r),{clearable:ce.clearable,disabled:d(a),name:ce.name,"model-value":ce.modelValue,"aria-label":ce.ariaLabel,onInput:Q,onChange:X,onFocus:q,onBlur:H,onClear:V,onKeydown:[te[0]||(te[0]=Zt(vt(ie=>Ne(p.value-1),["prevent"]),["up"])),te[1]||(te[1]=Zt(vt(ie=>Ne(p.value+1),["prevent"]),["down"])),Zt(N,["enter"]),Zt(Z,["tab"]),Zt(Y,["esc"])],onMousedown:G}),ma({_:2},[ce.$slots.prepend?{name:"prepend",fn:L(()=>[be(ce.$slots,"prepend")])}:void 0,ce.$slots.append?{name:"append",fn:L(()=>[be(ce.$slots,"append")])}:void 0,ce.$slots.prefix?{name:"prefix",fn:L(()=>[be(ce.$slots,"prefix")])}:void 0,ce.$slots.suffix?{name:"suffix",fn:L(()=>[be(ce.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,oX)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var fX=ze(dX,[["__file","autocomplete.vue"]]);const hX=Dt(fX),pX=Ve({size:{type:[Number,String],values:Qi,default:"",validator:e=>pt(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:sn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:le(String),default:"cover"}}),mX={error:e=>e instanceof Event},gX=["src","alt","srcset"],vX=J({name:"ElAvatar"}),yX=J({...vX,props:pX,emits:mX,setup(e,{emit:t}){const n=e,s=Pe("avatar"),r=j(!1),i=E(()=>{const{size:u,icon:c,shape:f}=n,h=[s.b()];return bt(u)&&h.push(s.m(u)),c&&h.push(s.m("icon")),f&&h.push(s.m(f)),h}),a=E(()=>{const{size:u}=n;return pt(u)?s.cssVarBlock({size:In(u)||""}):void 0}),o=E(()=>({objectFit:n.fit}));xe(()=>n.src,()=>r.value=!1);function l(u){r.value=!0,t("error",u)}return(u,c)=>(k(),z("span",{class:$(d(i)),style:it(d(a))},[(u.src||u.srcSet)&&!r.value?(k(),z("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:it(d(o)),onError:l},null,44,gX)):u.icon?(k(),fe(d(tt),{key:1},{default:L(()=>[(k(),fe(Nt(u.icon)))]),_:1})):be(u.$slots,"default",{key:2})],6))}});var bX=ze(yX,[["__file","avatar.vue"]]);const n2=Dt(bX),_X={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},SX={click:e=>e instanceof MouseEvent},wX=(e,t,n)=>{const s=ln(),r=ln(),i=j(!1),a=()=>{s.value&&(i.value=s.value.scrollTop>=e.visibilityHeight)},o=u=>{var c;(c=s.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=Q4(a,300,!0);return cn(r,"scroll",l),gt(()=>{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),a()}),{visible:i,handleClick:o}},KI="ElBacktop",TX=J({name:KI}),CX=J({...TX,props:_X,emits:SX,setup(e,{emit:t}){const n=e,s=Pe("backtop"),{handleClick:r,visible:i}=wX(n,t,KI),a=E(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(o,l)=>(k(),fe(Wn,{name:`${d(s).namespace.value}-fade-in`},{default:L(()=>[d(i)?(k(),z("div",{key:0,style:it(d(a)),class:$(d(s).b()),onClick:l[0]||(l[0]=vt((...u)=>d(r)&&d(r)(...u),["stop"]))},[be(o.$slots,"default",{},()=>[I(d(tt),{class:$(d(s).e("icon"))},{default:L(()=>[I(d(Fz))]),_:1},8,["class"])])],6)):ae("v-if",!0)]),_:3},8,["name"]))}});var EX=ze(CX,[["__file","backtop.vue"]]);const xX=Dt(EX),kX=Ve({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"},showZero:{type:Boolean,default:!0},color:String,dotStyle:{type:le([String,Object,Array])},badgeStyle:{type:le([String,Object,Array])},offset:{type:le(Array),default:[0,0]},dotClass:{type:String},badgeClass:{type:String}}),AX=["textContent"],IX=J({name:"ElBadge"}),DX=J({...IX,props:kX,setup(e,{expose:t}){const n=e,s=Pe("badge"),r=E(()=>n.isDot?"":pt(n.value)&&pt(n.max)?n.max<n.value?`${n.max}+`:n.value===0&&!n.showZero?"":`${n.value}`:`${n.value}`),i=E(()=>{var a,o,l,u,c,f;return[{backgroundColor:n.color,marginRight:In(-((o=(a=n.offset)==null?void 0:a[0])!=null?o:0)),marginTop:In((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(c=n.dotStyle)!=null?c:{},(f=n.badgeStyle)!=null?f:{}]});return ss({from:"dot-style",replacement:"badge-style",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},E(()=>!!n.dotStyle)),ss({from:"dot-class",replacement:"badge-class",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},E(()=>!!n.dotClass)),t({content:r}),(a,o)=>(k(),z("div",{class:$(d(s).b())},[be(a.$slots,"default"),I(Wn,{name:`${d(s).namespace.value}-zoom-in-center`,persisted:""},{default:L(()=>[yt(R("sup",{class:$([d(s).e("content"),d(s).em("content",a.type),d(s).is("fixed",!!a.$slots.default),d(s).is("dot",a.isDot),a.dotClass,a.badgeClass]),style:it(d(i)),textContent:pe(d(r))},null,14,AX),[[zt,!a.hidden&&(d(r)||a.isDot)]])]),_:1},8,["name"])],2))}});var OX=ze(DX,[["__file","badge.vue"]]);const GI=Dt(OX),YI=Symbol("breadcrumbKey"),PX=Ve({separator:{type:String,default:"/"},separatorIcon:{type:sn}}),$X=["aria-label"],RX=J({name:"ElBreadcrumb"}),NX=J({...RX,props:PX,setup(e){const t=e,{t:n}=Wt(),s=Pe("breadcrumb"),r=j();return Mt(YI,t),gt(()=>{const i=r.value.querySelectorAll(`.${s.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,a)=>(k(),z("div",{ref_key:"breadcrumb",ref:r,class:$(d(s).b()),"aria-label":d(n)("el.breadcrumb.label"),role:"navigation"},[be(i.$slots,"default")],10,$X))}});var MX=ze(NX,[["__file","breadcrumb.vue"]]);const LX=Ve({to:{type:le([String,Object]),default:""},replace:{type:Boolean,default:!1}}),BX=J({name:"ElBreadcrumbItem"}),FX=J({...BX,props:LX,setup(e){const t=e,n=It(),s=Je(YI,void 0),r=Pe("breadcrumb"),i=n.appContext.config.globalProperties.$router,a=j(),o=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return k(),z("span",{class:$(d(r).e("item"))},[R("span",{ref_key:"link",ref:a,class:$([d(r).e("inner"),d(r).is("link",!!l.to)]),role:"link",onClick:o},[be(l.$slots,"default")],2),(c=d(s))!=null&&c.separatorIcon?(k(),fe(d(tt),{key:0,class:$(d(r).e("separator"))},{default:L(()=>[(k(),fe(Nt(d(s).separatorIcon)))]),_:1},8,["class"])):(k(),z("span",{key:1,class:$(d(r).e("separator")),role:"presentation"},pe((f=d(s))==null?void 0:f.separator),3))],2)}}});var XI=ze(FX,[["__file","breadcrumb-item.vue"]]);const VX=Dt(MX,{BreadcrumbItem:XI}),UX=Tn(XI),QI=Symbol("buttonGroupContextKey"),HX=(e,t)=>{ss({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=Je(QI,void 0),s=ah("button"),{form:r}=$s(),i=Kn(E(()=>n==null?void 0:n.size)),a=Gs(),o=j(),l=us(),u=E(()=>e.type||(n==null?void 0:n.type)||""),c=E(()=>{var m,p,y;return(y=(p=e.autoInsertSpace)!=null?p:(m=s.value)==null?void 0:m.autoInsertSpace)!=null?y:!1}),f=E(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=E(()=>{var m;const p=(m=l.default)==null?void 0:m.call(l);if(c.value&&(p==null?void 0:p.length)===1){const y=p[0];if((y==null?void 0:y.type)===_c){const v=y.children;return/^\p{Unified_Ideograph}{2}$/u.test(v.trim())}}return!1});return{_disabled:a,_size:i,_type:u,_ref:o,_props:f,shouldAddSpace:h,handleClick:m=>{e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",m)}}},Qy=["default","primary","success","warning","info","danger","text",""],zX=["button","submit","reset"],Jy=Ve({size:es,disabled:Boolean,type:{type:String,values:Qy,default:""},icon:{type:sn},nativeType:{type:String,values:zX,default:"button"},loading:Boolean,loadingIcon:{type:sn,default:()=>Ao},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:le([String,Object]),default:"button"}}),jX={click:e=>e instanceof MouseEvent};function Es(e,t){qX(e)&&(e="100%");var n=WX(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 fp(e){return Math.min(1,Math.max(0,e))}function qX(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function WX(e){return typeof e=="string"&&e.indexOf("%")!==-1}function JI(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function hp(e){return e<=1?"".concat(Number(e)*100,"%"):e}function tl(e){return e.length===1?"0"+e:String(e)}function KX(e,t,n){return{r:Es(e,255)*255,g:Es(t,255)*255,b:Es(n,255)*255}}function vE(e,t,n){e=Es(e,255),t=Es(t,255),n=Es(n,255);var s=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,o=(s+r)/2;if(s===r)a=0,i=0;else{var l=s-r;switch(a=o>.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:a,l:o}}function _0(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 GX(e,t,n){var s,r,i;if(e=Es(e,360),t=Es(t,100),n=Es(n,100),t===0)r=n,i=n,s=n;else{var a=n<.5?n*(1+t):n+t-n*t,o=2*n-a;s=_0(o,a,e+1/3),r=_0(o,a,e),i=_0(o,a,e-1/3)}return{r:s*255,g:r*255,b:i*255}}function yE(e,t,n){e=Es(e,255),t=Es(t,255),n=Es(n,255);var s=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=s,o=s-r,l=s===0?0:o/s;if(s===r)i=0;else{switch(s){case e:i=(t-n)/o+(t<n?6:0);break;case t:i=(n-e)/o+2;break;case n:i=(e-t)/o+4;break}i/=6}return{h:i,s:l,v:a}}function YX(e,t,n){e=Es(e,360)*6,t=Es(t,100),n=Es(n,100);var s=Math.floor(e),r=e-s,i=n*(1-t),a=n*(1-r*t),o=n*(1-(1-r)*t),l=s%6,u=[n,a,i,i,o,n][l],c=[o,n,n,a,i,i][l],f=[i,i,o,n,n,a][l];return{r:u*255,g:c*255,b:f*255}}function bE(e,t,n,s){var r=[tl(Math.round(e).toString(16)),tl(Math.round(t).toString(16)),tl(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 XX(e,t,n,s,r){var i=[tl(Math.round(e).toString(16)),tl(Math.round(t).toString(16)),tl(Math.round(n).toString(16)),tl(QX(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 QX(e){return Math.round(parseFloat(e)*255).toString(16)}function _E(e){return br(e)/255}function br(e){return parseInt(e,16)}function JX(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Zy={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 ZX(e){var t={r:0,g:0,b:0},n=1,s=null,r=null,i=null,a=!1,o=!1;return typeof e=="string"&&(e=nQ(e)),typeof e=="object"&&(ta(e.r)&&ta(e.g)&&ta(e.b)?(t=KX(e.r,e.g,e.b),a=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ta(e.h)&&ta(e.s)&&ta(e.v)?(s=hp(e.s),r=hp(e.v),t=YX(e.h,s,r),a=!0,o="hsv"):ta(e.h)&&ta(e.s)&&ta(e.l)&&(s=hp(e.s),i=hp(e.l),t=GX(e.h,s,i),a=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=JI(n),{ok:a,format:e.format||o,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 eQ="[-\\+]?\\d+%?",tQ="[-\\+]?\\d*\\.\\d+%?",no="(?:".concat(tQ,")|(?:").concat(eQ,")"),S0="[\\s|\\(]+(".concat(no,")[,|\\s]+(").concat(no,")[,|\\s]+(").concat(no,")\\s*\\)?"),w0="[\\s|\\(]+(".concat(no,")[,|\\s]+(").concat(no,")[,|\\s]+(").concat(no,")[,|\\s]+(").concat(no,")\\s*\\)?"),ii={CSS_UNIT:new RegExp(no),rgb:new RegExp("rgb"+S0),rgba:new RegExp("rgba"+w0),hsl:new RegExp("hsl"+S0),hsla:new RegExp("hsla"+w0),hsv:new RegExp("hsv"+S0),hsva:new RegExp("hsva"+w0),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 nQ(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Zy[e])e=Zy[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ii.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ii.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ii.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ii.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ii.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ii.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ii.hex8.exec(e),n?{r:br(n[1]),g:br(n[2]),b:br(n[3]),a:_E(n[4]),format:t?"name":"hex8"}:(n=ii.hex6.exec(e),n?{r:br(n[1]),g:br(n[2]),b:br(n[3]),format:t?"name":"hex"}:(n=ii.hex4.exec(e),n?{r:br(n[1]+n[1]),g:br(n[2]+n[2]),b:br(n[3]+n[3]),a:_E(n[4]+n[4]),format:t?"name":"hex8"}:(n=ii.hex3.exec(e),n?{r:br(n[1]+n[1]),g:br(n[2]+n[2]),b:br(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ta(e){return!!ii.CSS_UNIT.exec(String(e))}var ZI=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=JX(t)),this.originalInput=t;var r=ZX(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,a=t.g/255,o=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.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=JI(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=yE(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=yE(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=vE(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=vE(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),bE(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),XX(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(Es(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(Es(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="#"+bE(this.r,this.g,this.b,!1),n=0,s=Object.entries(Zy);n<s.length;n++){var r=s[n],i=r[0],a=r[1];if(t===a)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=fp(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=fp(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=fp(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=fp(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,a={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(a)},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,a=[],o=1/t;t--;)a.push(new e({h:s,s:r,v:i})),i=(i+o)%1;return a},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,a=1;a<t;a++)r.push(new e({h:(s+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ba(e,t=20){return e.mix("#141414",t).toString()}function sQ(e){const t=Gs(),n=Pe("button");return E(()=>{let s={};const r=e.color;if(r){const i=new ZI(r),a=e.dark?i.tint(20).toString():Ba(i,20);if(e.plain)s=n.cssVarBlock({"bg-color":e.dark?Ba(i,90):i.tint(90).toString(),"text-color":r,"border-color":e.dark?Ba(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":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(s[n.cssVarBlockName("disabled-bg-color")]=e.dark?Ba(i,90):i.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=e.dark?Ba(i,50):i.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=e.dark?Ba(i,80):i.tint(80).toString());else{const o=e.dark?Ba(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":o,"hover-text-color":l,"hover-border-color":o,"active-bg-color":a,"active-border-color":a}),t.value){const u=e.dark?Ba(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 rQ=J({name:"ElButton"}),iQ=J({...rQ,props:Jy,emits:jX,setup(e,{expose:t,emit:n}){const s=e,r=sQ(s),i=Pe("button"),{_ref:a,_size:o,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:h}=HX(s,n),g=E(()=>[i.b(),i.m(l.value),i.m(o.value),i.is("disabled",u.value),i.is("loading",s.loading),i.is("plain",s.plain),i.is("round",s.round),i.is("circle",s.circle),i.is("text",s.text),i.is("link",s.link),i.is("has-bg",s.bg)]);return t({ref:a,size:o,type:l,disabled:u,shouldAddSpace:f}),(m,p)=>(k(),fe(Nt(m.tag),Lt({ref_key:"_ref",ref:a},d(c),{class:d(g),style:d(r),onClick:d(h)}),{default:L(()=>[m.loading?(k(),z(Ge,{key:0},[m.$slots.loading?be(m.$slots,"loading",{key:0}):(k(),fe(d(tt),{key:1,class:$(d(i).is("loading"))},{default:L(()=>[(k(),fe(Nt(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(k(),fe(d(tt),{key:1},{default:L(()=>[m.icon?(k(),fe(Nt(m.icon),{key:0})):be(m.$slots,"icon",{key:1})]),_:3})):ae("v-if",!0),m.$slots.default?(k(),z("span",{key:2,class:$({[d(i).em("text","expand")]:d(f)})},[be(m.$slots,"default")],2)):ae("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var aQ=ze(iQ,[["__file","button.vue"]]);const oQ={size:Jy.size,type:Jy.type},lQ=J({name:"ElButtonGroup"}),uQ=J({...lQ,props:oQ,setup(e){const t=e;Mt(QI,Ct({size:nn(t,"size"),type:nn(t,"type")}));const n=Pe("button");return(s,r)=>(k(),z("div",{class:$(`${d(n).b("group")}`)},[be(s.$slots,"default")],2))}});var eD=ze(uQ,[["__file","button-group.vue"]]);const gn=Dt(aQ,{ButtonGroup:eD}),tD=Tn(eD);var lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ks(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nD(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:function(){return e[s]}})}),n}var sD={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(lr,function(){var n=1e3,s=6e4,r=36e5,i="millisecond",a="second",o="minute",l="hour",u="day",c="week",f="month",h="quarter",g="year",m="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(G){var X=["th","st","nd","rd"],q=G%100;return"["+G+(X[(q-20)%10]||X[q]||X[0])+"]"}},S=function(G,X,q){var H=String(G);return!H||H.length>=X?G:""+Array(X+1-H.length).join(q)+G},T={s:S,z:function(G){var X=-G.utcOffset(),q=Math.abs(X),H=Math.floor(q/60),V=q%60;return(X<=0?"+":"-")+S(H,2,"0")+":"+S(V,2,"0")},m:function G(X,q){if(X.date()<q.date())return-G(q,X);var H=12*(q.year()-X.year())+(q.month()-X.month()),V=X.clone().add(H,f),N=q-V<0,Y=X.clone().add(H+(N?-1:1),f);return+(-(H+(q-V)/(N?V-Y:Y-V))||0)},a:function(G){return G<0?Math.ceil(G)||0:Math.floor(G)},p:function(G){return{M:f,y:g,w:c,d:u,D:m,h:l,m:o,s:a,ms:i,Q:h}[G]||String(G||"").toLowerCase().replace(/s$/,"")},u:function(G){return G===void 0}},w="en",C={};C[w]=b;var O="$isDayjsObject",P=function(G){return G instanceof W||!(!G||!G[O])},M=function G(X,q,H){var V;if(!X)return w;if(typeof X=="string"){var N=X.toLowerCase();C[N]&&(V=N),q&&(C[N]=q,V=N);var Y=X.split("-");if(!V&&Y.length>1)return G(Y[0])}else{var Z=X.name;C[Z]=X,V=Z}return!H&&V&&(w=V),V||!H&&w},U=function(G,X){if(P(G))return G.clone();var q=typeof X=="object"?X:{};return q.date=G,q.args=arguments,new W(q)},B=T;B.l=M,B.i=P,B.w=function(G,X){return U(G,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var W=function(){function G(q){this.$L=M(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[O]=!0}var X=G.prototype;return X.parse=function(q){this.$d=function(H){var V=H.date,N=H.utc;if(V===null)return new Date(NaN);if(B.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var Y=V.match(y);if(Y){var Z=Y[2]-1||0,ne=(Y[7]||"0").substring(0,3);return N?new Date(Date.UTC(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ne)):new Date(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ne)}}return new Date(V)}(q),this.init()},X.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},X.$utils=function(){return B},X.isValid=function(){return this.$d.toString()!==p},X.isSame=function(q,H){var V=U(q);return this.startOf(H)<=V&&V<=this.endOf(H)},X.isAfter=function(q,H){return U(q)<this.startOf(H)},X.isBefore=function(q,H){return this.endOf(H)<U(q)},X.$g=function(q,H,V){return B.u(q)?this[H]:this.set(V,q)},X.unix=function(){return Math.floor(this.valueOf()/1e3)},X.valueOf=function(){return this.$d.getTime()},X.startOf=function(q,H){var V=this,N=!!B.u(H)||H,Y=B.p(q),Z=function(we,me){var Ce=B.w(V.$u?Date.UTC(V.$y,me,we):new Date(V.$y,me,we),V);return N?Ce:Ce.endOf(u)},ne=function(we,me){return B.w(V.toDate()[we].apply(V.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(me)),V)},ue=this.$W,_e=this.$M,Ne=this.$D,ce="set"+(this.$u?"UTC":"");switch(Y){case g:return N?Z(1,0):Z(31,11);case f:return N?Z(1,_e):Z(0,_e+1);case c:var te=this.$locale().weekStart||0,ie=(ue<te?ue+7:ue)-te;return Z(N?Ne-ie:Ne+(6-ie),_e);case u:case m:return ne(ce+"Hours",0);case l:return ne(ce+"Minutes",1);case o:return ne(ce+"Seconds",2);case a:return ne(ce+"Milliseconds",3);default:return this.clone()}},X.endOf=function(q){return this.startOf(q,!1)},X.$set=function(q,H){var V,N=B.p(q),Y="set"+(this.$u?"UTC":""),Z=(V={},V[u]=Y+"Date",V[m]=Y+"Date",V[f]=Y+"Month",V[g]=Y+"FullYear",V[l]=Y+"Hours",V[o]=Y+"Minutes",V[a]=Y+"Seconds",V[i]=Y+"Milliseconds",V)[N],ne=N===u?this.$D+(H-this.$W):H;if(N===f||N===g){var ue=this.clone().set(m,1);ue.$d[Z](ne),ue.init(),this.$d=ue.set(m,Math.min(this.$D,ue.daysInMonth())).$d}else Z&&this.$d[Z](ne);return this.init(),this},X.set=function(q,H){return this.clone().$set(q,H)},X.get=function(q){return this[B.p(q)]()},X.add=function(q,H){var V,N=this;q=Number(q);var Y=B.p(H),Z=function(_e){var Ne=U(N);return B.w(Ne.date(Ne.date()+Math.round(_e*q)),N)};if(Y===f)return this.set(f,this.$M+q);if(Y===g)return this.set(g,this.$y+q);if(Y===u)return Z(1);if(Y===c)return Z(7);var ne=(V={},V[o]=s,V[l]=r,V[a]=n,V)[Y]||1,ue=this.$d.getTime()+q*ne;return B.w(ue,this)},X.subtract=function(q,H){return this.add(-1*q,H)},X.format=function(q){var H=this,V=this.$locale();if(!this.isValid())return V.invalidDate||p;var N=q||"YYYY-MM-DDTHH:mm:ssZ",Y=B.z(this),Z=this.$H,ne=this.$m,ue=this.$M,_e=V.weekdays,Ne=V.months,ce=V.meridiem,te=function(me,Ce,Be,ee){return me&&(me[Ce]||me(H,N))||Be[Ce].slice(0,ee)},ie=function(me){return B.s(Z%12||12,me,"0")},we=ce||function(me,Ce,Be){var ee=me<12?"AM":"PM";return Be?ee.toLowerCase():ee};return N.replace(v,function(me,Ce){return Ce||function(Be){switch(Be){case"YY":return String(H.$y).slice(-2);case"YYYY":return B.s(H.$y,4,"0");case"M":return ue+1;case"MM":return B.s(ue+1,2,"0");case"MMM":return te(V.monthsShort,ue,Ne,3);case"MMMM":return te(Ne,ue);case"D":return H.$D;case"DD":return B.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return te(V.weekdaysMin,H.$W,_e,2);case"ddd":return te(V.weekdaysShort,H.$W,_e,3);case"dddd":return _e[H.$W];case"H":return String(Z);case"HH":return B.s(Z,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return we(Z,ne,!0);case"A":return we(Z,ne,!1);case"m":return String(ne);case"mm":return B.s(ne,2,"0");case"s":return String(H.$s);case"ss":return B.s(H.$s,2,"0");case"SSS":return B.s(H.$ms,3,"0");case"Z":return Y}return null}(me)||Y.replace(":","")})},X.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},X.diff=function(q,H,V){var N,Y=this,Z=B.p(H),ne=U(q),ue=(ne.utcOffset()-this.utcOffset())*s,_e=this-ne,Ne=function(){return B.m(Y,ne)};switch(Z){case g:N=Ne()/12;break;case f:N=Ne();break;case h:N=Ne()/3;break;case c:N=(_e-ue)/6048e5;break;case u:N=(_e-ue)/864e5;break;case l:N=_e/r;break;case o:N=_e/s;break;case a:N=_e/n;break;default:N=_e}return V?N:B.a(N)},X.daysInMonth=function(){return this.endOf(f).$D},X.$locale=function(){return C[this.$L]},X.locale=function(q,H){if(!q)return this.$L;var V=this.clone(),N=M(q,H,!0);return N&&(V.$L=N),V},X.clone=function(){return B.w(this.$d,this)},X.toDate=function(){return new Date(this.valueOf())},X.toJSON=function(){return this.isValid()?this.toISOString():null},X.toISOString=function(){return this.$d.toISOString()},X.toString=function(){return this.$d.toUTCString()},G}(),Q=W.prototype;return U.prototype=Q,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",f],["$y",g],["$D",m]].forEach(function(G){Q[G[1]]=function(X){return this.$g(X,G[0],G[1])}}),U.extend=function(G,X){return G.$i||(G(X,W,U),G.$i=!0),U},U.locale=M,U.isDayjs=P,U.unix=function(G){return U(1e3*G)},U.en=C[w],U.Ls=C,U.p={},U})})(sD);var cQ=sD.exports;const Ot=ks(cQ);var rD={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(lr,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?/,a=/\d*[^-_:/,()\s\d]+/,o={},l=function(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(y){this[p]=+y}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var v=y.match(/([+-]|\d\d)/g),b=60*v[1]+(+v[2]||0);return b===0?0:v[0]==="+"?-b:b}(p)}],f=function(p){var y=o[p];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(p,y){var v,b=o.meridiem;if(b){for(var S=1;S<=24;S+=1)if(p.indexOf(b(S,0,y))>-1){v=S>12;break}}else v=p===(y?"pm":"PM");return v},g={A:[a,function(p){this.afternoon=h(p,!1)}],a:[a,function(p){this.afternoon=h(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[r,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[r,u("day")],Do:[a,function(p){var y=o.ordinal,v=p.match(/\d+/);if(this.day=v[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===p&&(this.day=b)}],M:[i,u("month")],MM:[r,u("month")],MMM:[a,function(p){var y=f("months"),v=(f("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(p)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[a,function(p){var y=f("months").indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(p){this.year=l(p)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function m(p){var y,v;y=p,v=o&&o.formats;for(var b=(p=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,U,B){var W=B&&B.toUpperCase();return U||v[B]||n[B]||v[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Q,G,X){return G||X.slice(1)})})).match(s),S=b.length,T=0;T<S;T+=1){var w=b[T],C=g[w],O=C&&C[0],P=C&&C[1];b[T]=P?{regex:O,parser:P}:w.replace(/^\[|\]$/g,"")}return function(M){for(var U={},B=0,W=0;B<S;B+=1){var Q=b[B];if(typeof Q=="string")W+=Q.length;else{var G=Q.regex,X=Q.parser,q=M.slice(W),H=G.exec(q)[0];X.call(U,H),M=M.replace(H,"")}}return function(V){var N=V.afternoon;if(N!==void 0){var Y=V.hours;N?Y<12&&(V.hours+=12):Y===12&&(V.hours=0),delete V.afternoon}}(U),U}}return function(p,y,v){v.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(l=p.parseTwoDigitYear);var b=y.prototype,S=b.parse;b.parse=function(T){var w=T.date,C=T.utc,O=T.args;this.$u=C;var P=O[1];if(typeof P=="string"){var M=O[2]===!0,U=O[3]===!0,B=M||U,W=O[2];U&&(W=O[2]),o=this.$locale(),!M&&W&&(o=v.Ls[W]),this.$d=function(q,H,V){try{if(["x","X"].indexOf(H)>-1)return new Date((H==="X"?1e3:1)*q);var N=m(H)(q),Y=N.year,Z=N.month,ne=N.day,ue=N.hours,_e=N.minutes,Ne=N.seconds,ce=N.milliseconds,te=N.zone,ie=new Date,we=ne||(Y||Z?1:ie.getDate()),me=Y||ie.getFullYear(),Ce=0;Y&&!Z||(Ce=Z>0?Z-1:ie.getMonth());var Be=ue||0,ee=_e||0,se=Ne||0,Te=ce||0;return te?new Date(Date.UTC(me,Ce,we,Be,ee,se,Te+60*te.offset*1e3)):V?new Date(Date.UTC(me,Ce,we,Be,ee,se,Te)):new Date(me,Ce,we,Be,ee,se,Te)}catch{return new Date("")}}(w,P,C),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),B&&w!=this.format(P)&&(this.$d=new Date("")),o={}}else if(P instanceof Array)for(var Q=P.length,G=1;G<=Q;G+=1){O[1]=P[G-1];var X=v.apply(this,O);if(X.isValid()){this.$d=X.$d,this.$L=X.$L,this.init();break}G===Q&&(this.$d=new Date(""))}else S.call(this,T)}}})})(rD);var dQ=rD.exports;const s2=ks(dQ),SE=["hours","minutes","seconds"],eb="HH:mm:ss",au="YYYY-MM-DD",fQ={date:au,dates:au,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",datetime:`${au} ${eb}`,monthrange:"YYYY-MM",daterange:au,datetimerange:`${au} ${eb}`},T0=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],oo=e=>Array.from(Array.from({length:e}).keys()),iD=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),aD=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),wE=function(e,t){const n=bl(e),s=bl(t);return n&&s?e.getTime()===t.getTime():!n&&!s?e===t:!1},TE=function(e,t){const n=Xe(e),s=Xe(t);return n&&s?e.length!==t.length?!1:e.every((r,i)=>wE(r,t[i])):!n&&!s?wE(e,t):!1},CE=function(e,t,n){const s=Mr(t)||t==="x"?Ot(e).locale(n):Ot(e,t).locale(n);return s.isValid()?s:void 0},EE=function(e,t,n){return Mr(t)?e:t==="x"?+e:Ot(e).locale(n).format(t)},C0=(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},oD=Ve({disabledHours:{type:le(Function)},disabledMinutes:{type:le(Function)},disabledSeconds:{type:le(Function)}}),lD=Ve({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),r2=Ve({id:{type:le([Array,String])},name:{type:le([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:le([String,Object]),default:ko},editable:{type:Boolean,default:!0},prefixIcon:{type:le([String,Object]),default:""},size:es,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},modelValue:{type:le([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:le([Date,Array])},defaultTime:{type:le([Date,Array])},isRange:Boolean,...oD,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,label:{type:String,default:void 0},tabindex:{type:le([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,...Ac,...ys(["ariaLabel"])}),hQ=["id","name","placeholder","value","disabled","readonly"],pQ=["id","name","placeholder","value","disabled","readonly"],mQ=J({name:"Picker"}),gQ=J({...mQ,props:r2,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const s=e,r=$l(),{lang:i}=Wt(),a=Pe("date"),o=Pe("input"),l=Pe("range"),{form:u,formItem:c}=$s(),f=Je("ElPopperOptions",{}),{valueOnClear:h}=zg(s,null),g=j(),m=j(),p=j(!1),y=j(!1),v=j(null);let b=!1,S=!1;const T=E(()=>[a.b("editor"),a.bm("editor",s.type),o.e("wrapper"),a.is("disabled",ue.value),a.is("active",p.value),l.b("editor"),Fe?l.bm("editor",Fe.value):"",r.class]),w=E(()=>[o.e("icon"),l.e("close-icon"),Ce.value?"":l.e("close-icon--hidden")]);xe(p,ye=>{ye?ut(()=>{ye&&(v.value=s.modelValue)}):(Ee.value=null,ut(()=>{C(s.modelValue)}))});const C=(ye,at)=>{(at||!TE(ye,v.value))&&(n("change",ye),s.validateEvent&&(c==null||c.validate("change").catch(Rt=>void 0)))},O=ye=>{if(!TE(s.modelValue,ye)){let at;Xe(ye)?at=ye.map(Rt=>EE(Rt,s.valueFormat,i.value)):ye&&(at=EE(ye,s.valueFormat,i.value)),n("update:modelValue",ye&&at,i.value)}},P=ye=>{n("keydown",ye)},M=E(()=>{if(m.value){const ye=De.value?m.value:m.value.$el;return Array.from(ye.querySelectorAll("input"))}return[]}),U=(ye,at,Rt)=>{const Qt=M.value;Qt.length&&(!Rt||Rt==="min"?(Qt[0].setSelectionRange(ye,at),Qt[0].focus()):Rt==="max"&&(Qt[1].setSelectionRange(ye,at),Qt[1].focus()))},B=()=>{N(!0,!0),ut(()=>{S=!1})},W=(ye="",at=!1)=>{at||(S=!0),p.value=at;let Rt;Xe(ye)?Rt=ye.map(Qt=>Qt.toDate()):Rt=ye&&ye.toDate(),Ee.value=null,O(Rt)},Q=()=>{y.value=!0},G=()=>{n("visible-change",!0)},X=ye=>{(ye==null?void 0:ye.key)===ot.esc&&N(!0,!0)},q=()=>{y.value=!1,p.value=!1,S=!1,n("visible-change",!1)},H=()=>{p.value=!0},V=()=>{p.value=!1},N=(ye=!0,at=!1)=>{S=at;const[Rt,Qt]=d(M);let Dn=Rt;!ye&&De.value&&(Dn=Qt),Dn&&Dn.focus()},Y=ye=>{s.readonly||ue.value||p.value||S||(p.value=!0,n("focus",ye))};let Z;const ne=ye=>{const at=async()=>{setTimeout(()=>{var Rt;Z===at&&(!((Rt=g.value)!=null&&Rt.isFocusInsideContent()&&!b)&&M.value.filter(Qt=>Qt.contains(document.activeElement)).length===0&&(Ze(),p.value=!1,n("blur",ye),s.validateEvent&&(c==null||c.validate("blur").catch(Qt=>void 0))),b=!1)},0)};Z=at,at()},ue=E(()=>s.disabled||(u==null?void 0:u.disabled)),_e=E(()=>{let ye;if(ee.value?Me.value.getDefaultValue&&(ye=Me.value.getDefaultValue()):Xe(s.modelValue)?ye=s.modelValue.map(at=>CE(at,s.valueFormat,i.value)):ye=CE(s.modelValue,s.valueFormat,i.value),Me.value.getRangeAvailableTime){const at=Me.value.getRangeAvailableTime(ye);Ds(at,ye)||(ye=at,O(Xe(ye)?ye.map(Rt=>Rt.toDate()):ye.toDate()))}return Xe(ye)&&ye.some(at=>!at)&&(ye=[]),ye}),Ne=E(()=>{if(!Me.value.panelReady)return"";const ye=ke(_e.value);return Xe(Ee.value)?[Ee.value[0]||ye&&ye[0]||"",Ee.value[1]||ye&&ye[1]||""]:Ee.value!==null?Ee.value:!te.value&&ee.value||!p.value&&ee.value?"":ye?ie.value||we.value?ye.join(", "):ye:""}),ce=E(()=>s.type.includes("time")),te=E(()=>s.type.startsWith("time")),ie=E(()=>s.type==="dates"),we=E(()=>s.type==="years"),me=E(()=>s.prefixIcon||(ce.value?S1:Mz)),Ce=j(!1),Be=ye=>{s.readonly||ue.value||Ce.value&&(ye.stopPropagation(),B(),O(h.value),C(h.value,!0),Ce.value=!1,p.value=!1,Me.value.handleClear&&Me.value.handleClear())},ee=E(()=>{const{modelValue:ye}=s;return!ye||Xe(ye)&&!ye.filter(Boolean).length}),se=async ye=>{var at;s.readonly||ue.value||(((at=ye.target)==null?void 0:at.tagName)!=="INPUT"||M.value.includes(document.activeElement))&&(p.value=!0)},Te=()=>{s.readonly||ue.value||!ee.value&&s.clearable&&(Ce.value=!0)},Le=()=>{Ce.value=!1},Se=ye=>{var at;s.readonly||ue.value||(((at=ye.touches[0].target)==null?void 0:at.tagName)!=="INPUT"||M.value.includes(document.activeElement))&&(p.value=!0)},De=E(()=>s.type.includes("range")),Fe=Kn(),Ie=E(()=>{var ye,at;return(at=(ye=d(g))==null?void 0:ye.popperRef)==null?void 0:at.contentRef}),je=E(()=>{var ye;return d(De)?d(m):(ye=d(m))==null?void 0:ye.$el});e1(je,ye=>{const at=d(Ie),Rt=d(je);at&&(ye.target===at||ye.composedPath().includes(at))||ye.target===Rt||ye.composedPath().includes(Rt)||(p.value=!1)});const Ee=j(null),Ze=()=>{if(Ee.value){const ye=nt(Ne.value);ye&&et(ye)&&(O(Xe(ye)?ye.map(at=>at.toDate()):ye.toDate()),Ee.value=null)}Ee.value===""&&(O(h.value),C(h.value),Ee.value=null)},nt=ye=>ye?Me.value.parseUserInput(ye):null,ke=ye=>ye?Me.value.formatToString(ye):null,et=ye=>Me.value.isValidValue(ye),dt=async ye=>{if(s.readonly||ue.value)return;const{code:at}=ye;if(P(ye),at===ot.esc){p.value===!0&&(p.value=!1,ye.preventDefault(),ye.stopPropagation());return}if(at===ot.down&&(Me.value.handleFocusPicker&&(ye.preventDefault(),ye.stopPropagation()),p.value===!1&&(p.value=!0,await ut()),Me.value.handleFocusPicker)){Me.value.handleFocusPicker();return}if(at===ot.tab){b=!0;return}if(at===ot.enter||at===ot.numpadEnter){(Ee.value===null||Ee.value===""||et(nt(Ne.value)))&&(Ze(),p.value=!1),ye.stopPropagation();return}if(Ee.value){ye.stopPropagation();return}Me.value.handleKeydownInput&&Me.value.handleKeydownInput(ye)},At=ye=>{Ee.value=ye,p.value||(p.value=!0)},xt=ye=>{const at=ye.target;Ee.value?Ee.value=[at.value,Ee.value[1]]:Ee.value=[at.value,null]},ct=ye=>{const at=ye.target;Ee.value?Ee.value=[Ee.value[0],at.value]:Ee.value=[null,at.value]},Ae=()=>{var ye;const at=Ee.value,Rt=nt(at&&at[0]),Qt=d(_e);if(Rt&&Rt.isValid()){Ee.value=[ke(Rt),((ye=Ne.value)==null?void 0:ye[1])||null];const Dn=[Rt,Qt&&(Qt[1]||null)];et(Dn)&&(O(Dn),Ee.value=null)}},Ue=()=>{var ye;const at=d(Ee),Rt=nt(at&&at[1]),Qt=d(_e);if(Rt&&Rt.isValid()){Ee.value=[((ye=d(Ne))==null?void 0:ye[0])||null,ke(Rt)];const Dn=[Qt&&Qt[0],Rt];et(Dn)&&(O(Dn),Ee.value=null)}},Me=j({}),ve=ye=>{Me.value[ye[0]]=ye[1],Me.value.panelReady=!0},$e=ye=>{n("calendar-change",ye)},st=(ye,at,Rt)=>{n("panel-change",ye,at,Rt)};return Mt("EP_PICKER_BASE",{props:s}),ss({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-time-picker",ref:"https://element-plus.org/en-US/component/time-picker.html"},E(()=>!!s.label)),t({focus:N,handleFocusInput:Y,handleBlurInput:ne,handleOpen:H,handleClose:V,onPick:W}),(ye,at)=>(k(),fe(d(gs),Lt({ref_key:"refPopper",ref:g,visible:p.value,effect:"light",pure:"",trigger:"click"},ye.$attrs,{role:"dialog",teleported:"",transition:`${d(a).namespace.value}-zoom-in-top`,"popper-class":[`${d(a).namespace.value}-picker__popper`,ye.popperClass],"popper-options":d(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:Q,onShow:G,onHide:q}),{default:L(()=>[d(De)?(k(),z("div",{key:1,ref_key:"inputRef",ref:m,class:$(d(T)),style:it(ye.$attrs.style),onClick:Y,onMouseenter:Te,onMouseleave:Le,onTouchstartPassive:Se,onKeydown:dt},[d(me)?(k(),fe(d(tt),{key:0,class:$([d(o).e("icon"),d(l).e("icon")]),onMousedown:vt(se,["prevent"]),onTouchstartPassive:Se},{default:L(()=>[(k(),fe(Nt(d(me))))]),_:1},8,["class","onMousedown"])):ae("v-if",!0),R("input",{id:ye.id&&ye.id[0],autocomplete:"off",name:ye.name&&ye.name[0],placeholder:ye.startPlaceholder,value:d(Ne)&&d(Ne)[0],disabled:d(ue),readonly:!ye.editable||ye.readonly,class:$(d(l).b("input")),onMousedown:se,onInput:xt,onChange:Ae,onFocus:Y,onBlur:ne},null,42,hQ),be(ye.$slots,"range-separator",{},()=>[R("span",{class:$(d(l).b("separator"))},pe(ye.rangeSeparator),3)]),R("input",{id:ye.id&&ye.id[1],autocomplete:"off",name:ye.name&&ye.name[1],placeholder:ye.endPlaceholder,value:d(Ne)&&d(Ne)[1],disabled:d(ue),readonly:!ye.editable||ye.readonly,class:$(d(l).b("input")),onMousedown:se,onFocus:Y,onBlur:ne,onInput:ct,onChange:Ue},null,42,pQ),ye.clearIcon?(k(),fe(d(tt),{key:1,class:$(d(w)),onClick:Be},{default:L(()=>[(k(),fe(Nt(ye.clearIcon)))]),_:1},8,["class"])):ae("v-if",!0)],38)):(k(),fe(d(Vn),{key:0,id:ye.id,ref_key:"inputRef",ref:m,"container-role":"combobox","model-value":d(Ne),name:ye.name,size:d(Fe),disabled:d(ue),placeholder:ye.placeholder,class:$([d(a).b("editor"),d(a).bm("editor",ye.type),ye.$attrs.class]),style:it(ye.$attrs.style),readonly:!ye.editable||ye.readonly||d(ie)||d(we)||ye.type==="week","aria-label":ye.label||ye.ariaLabel,tabindex:ye.tabindex,"validate-event":!1,onInput:At,onFocus:Y,onBlur:ne,onKeydown:dt,onChange:Ze,onMousedown:se,onMouseenter:Te,onMouseleave:Le,onTouchstartPassive:Se,onClick:at[0]||(at[0]=vt(()=>{},["stop"]))},{prefix:L(()=>[d(me)?(k(),fe(d(tt),{key:0,class:$(d(o).e("icon")),onMousedown:vt(se,["prevent"]),onTouchstartPassive:Se},{default:L(()=>[(k(),fe(Nt(d(me))))]),_:1},8,["class","onMousedown"])):ae("v-if",!0)]),suffix:L(()=>[Ce.value&&ye.clearIcon?(k(),fe(d(tt),{key:0,class:$(`${d(o).e("icon")} clear-icon`),onClick:vt(Be,["stop"])},{default:L(()=>[(k(),fe(Nt(ye.clearIcon)))]),_:1},8,["class","onClick"])):ae("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onKeydown"]))]),content:L(()=>[be(ye.$slots,"default",{visible:p.value,actualVisible:y.value,parsedValue:d(_e),format:ye.format,dateFormat:ye.dateFormat,timeFormat:ye.timeFormat,unlinkPanels:ye.unlinkPanels,type:ye.type,defaultValue:ye.defaultValue,onPick:W,onSelectRange:U,onSetPickerOption:ve,onCalendarChange:$e,onPanelChange:st,onKeydown:X,onMousedown:at[1]||(at[1]=vt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var uD=ze(gQ,[["__file","picker.vue"]]);const vQ=Ve({...lD,datetimeRole:String,parsedValue:{type:le(Object)}}),cD=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const s=(a,o,l,u)=>{const c={hour:e,minute:t,second:n};let f=a;return["hour","minute","second"].forEach(h=>{if(c[h]){let g;const m=c[h];switch(h){case"minute":{g=m(f.hour(),o,u);break}case"second":{g=m(f.hour(),f.minute(),o,u);break}default:{g=m(o,u);break}}if(g!=null&&g.length&&!g.includes(f[h]())){const p=l?0:g.length-1;f=f[h](g[p])}}}),f},r={};return{timePickerOptions:r,getAvailableTime:s,onSetOption:([a,o])=>{r[a]=o}}},E0=e=>{const t=(s,r)=>s||r,n=s=>s!==!0;return e.map(t).filter(n)},dD=(e,t,n)=>({getHoursList:(a,o)=>C0(24,e&&(()=>e==null?void 0:e(a,o))),getMinutesList:(a,o,l)=>C0(60,t&&(()=>t==null?void 0:t(a,o,l))),getSecondsList:(a,o,l,u)=>C0(60,n&&(()=>n==null?void 0:n(a,o,l,u)))}),fD=(e,t,n)=>{const{getHoursList:s,getMinutesList:r,getSecondsList:i}=dD(e,t,n);return{getAvailableHours:(u,c)=>E0(s(u,c)),getAvailableMinutes:(u,c,f)=>E0(r(u,c,f)),getAvailableSeconds:(u,c,f,h)=>E0(i(u,c,f,h))}},hD=e=>{const t=j(e.parsedValue);return xe(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Wa=new Map;let xE;jt&&(document.addEventListener("mousedown",e=>xE=e),document.addEventListener("mouseup",e=>{for(const t of Wa.values())for(const{documentHandler:n}of t)n(e,xE)}));function kE(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Kr(t.arg)&&n.push(t.arg),function(s,r){const i=t.instance.popperRef,a=s.target,o=r==null?void 0:r.target,l=!t||!t.instance,u=!a||!o,c=e.contains(a)||e.contains(o),f=e===a,h=n.length&&n.some(m=>m==null?void 0:m.contains(a))||n.length&&n.includes(o),g=i&&(i.contains(a)||i.contains(o));l||u||c||f||h||g||t.value(s,r)}}const ba={beforeMount(e,t){Wa.has(e)||Wa.set(e,[]),Wa.get(e).push({documentHandler:kE(e,t),bindingFn:t.value})},updated(e,t){Wa.has(e)||Wa.set(e,[]);const n=Wa.get(e),s=n.findIndex(i=>i.bindingFn===t.oldValue),r={documentHandler:kE(e,t),bindingFn:t.value};s>=0?n.splice(s,1,r):n.push(r)},unmounted(e){Wa.delete(e)}},yQ=100,bQ=600,Im={beforeMount(e,t){const n=t.value,{interval:s=yQ,delay:r=bQ}=mt(n)?{}:n;let i,a;const o=()=>mt(n)?n():n.handler(),l=()=>{a&&(clearTimeout(a),a=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),o(),document.addEventListener("mouseup",()=>l(),{once:!0}),a=setTimeout(()=>{i=setInterval(()=>{o()},s)},r))})}},tb="_trap-focus-children",nl=[],AE=e=>{if(nl.length===0)return;const t=nl[nl.length-1][tb];if(t.length>0&&e.code===ot.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())}},_Q={beforeMount(e){e[tb]=BT(e),nl.push(e),nl.length<=1&&document.addEventListener("keydown",AE)},updated(e){ut(()=>{e[tb]=BT(e)})},unmounted(){nl.shift(),nl.length===0&&document.removeEventListener("keydown",AE)}};var IE=!1,Qo,nb,sb,Lp,Bp,pD,Fp,rb,ib,ab,mD,ob,lb,gD,vD;function Xs(){if(!IE){IE=!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(ob=/\b(iPhone|iP[ao]d)/.exec(e),lb=/\b(iP[ao]d)/.exec(e),ab=/Android/i.exec(e),gD=/FBAN\/\w+;/i.exec(e),vD=/Mobile/i.exec(e),mD=!!/Win64/.exec(e),t){Qo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Qo&&document&&document.documentMode&&(Qo=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(e);pD=s?parseFloat(s[1])+4:Qo,nb=t[2]?parseFloat(t[2]):NaN,sb=t[3]?parseFloat(t[3]):NaN,Lp=t[4]?parseFloat(t[4]):NaN,Lp?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Bp=t&&t[1]?parseFloat(t[1]):NaN):Bp=NaN}else Qo=nb=sb=Bp=Lp=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Fp=r?parseFloat(r[1].replace("_",".")):!0}else Fp=!1;rb=!!n[2],ib=!!n[3]}else Fp=rb=ib=!1}}var ub={ie:function(){return Xs()||Qo},ieCompatibilityMode:function(){return Xs()||pD>Qo},ie64:function(){return ub.ie()&&mD},firefox:function(){return Xs()||nb},opera:function(){return Xs()||sb},webkit:function(){return Xs()||Lp},safari:function(){return ub.webkit()},chrome:function(){return Xs()||Bp},windows:function(){return Xs()||rb},osx:function(){return Xs()||Fp},linux:function(){return Xs()||ib},iphone:function(){return Xs()||ob},mobile:function(){return Xs()||ob||lb||ab||vD},nativeApp:function(){return Xs()||gD},android:function(){return Xs()||ab},ipad:function(){return Xs()||lb}},SQ=ub,pp=!!(typeof window<"u"&&window.document&&window.document.createElement),wQ={canUseDOM:pp,canUseWorkers:typeof Worker<"u",canUseEventListeners:pp&&!!(window.addEventListener||window.attachEvent),canUseViewport:pp&&!!window.screen,isInWorker:!pp},yD=wQ,bD;yD.canUseDOM&&(bD=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function TQ(e,t){if(!yD.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&&bD&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var CQ=TQ,DE=10,OE=40,PE=800;function _D(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*DE,r=n*DE,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||r)&&e.deltaMode&&(e.deltaMode==1?(s*=OE,r*=OE):(s*=PE,r*=PE)),s&&!t&&(t=s<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:s,pixelY:r}}_D.getEventType=function(){return SQ.firefox()?"DOMMouseScroll":CQ("wheel")?"wheel":"mousewheel"};var EQ=_D;/**
* 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 xQ=function(e,t){if(e&&e.addEventListener){const n=function(s){const r=EQ(s);t&&Reflect.apply(t,this,[s,r])};e.addEventListener("wheel",n,{passive:!0})}},kQ={beforeMount(e,t){xQ(e,t.value)}},AQ=Ve({role:{type:String,required:!0},spinnerDate:{type:le(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:le(String),default:""},...oD}),IQ=["onClick"],DQ=["onMouseenter"],OQ=J({__name:"basic-time-spinner",props:AQ,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,s=Pe("time"),{getHoursList:r,getMinutesList:i,getSecondsList:a}=dD(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let o=!1;const l=j(),u=j(),c=j(),f=j(),h={hours:u,minutes:c,seconds:f},g=E(()=>n.showSeconds?SE:SE.slice(0,2)),m=E(()=>{const{spinnerDate:N}=n,Y=N.hour(),Z=N.minute(),ne=N.second();return{hours:Y,minutes:Z,seconds:ne}}),p=E(()=>{const{hours:N,minutes:Y}=d(m);return{hours:r(n.role),minutes:i(N,n.role),seconds:a(N,Y,n.role)}}),y=E(()=>{const{hours:N,minutes:Y,seconds:Z}=d(m);return{hours:T0(N,23),minutes:T0(Y,59),seconds:T0(Z,59)}}),v=or(N=>{o=!1,T(N)},200),b=N=>{if(!!!n.amPmMode)return"";const Z=n.amPmMode==="A";let ne=N<12?" am":" pm";return Z&&(ne=ne.toUpperCase()),ne},S=N=>{let Y;switch(N){case"hours":Y=[0,2];break;case"minutes":Y=[3,5];break;case"seconds":Y=[6,8];break}const[Z,ne]=Y;t("select-range",Z,ne),l.value=N},T=N=>{O(N,d(m)[N])},w=()=>{T("hours"),T("minutes"),T("seconds")},C=N=>N.querySelector(`.${s.namespace.value}-scrollbar__wrap`),O=(N,Y)=>{if(n.arrowControl)return;const Z=d(h[N]);Z&&Z.$el&&(C(Z.$el).scrollTop=Math.max(0,Y*P(N)))},P=N=>{const Y=d(h[N]),Z=Y==null?void 0:Y.$el.querySelector("li");return Z&&Number.parseFloat(to(Z,"height"))||0},M=()=>{B(1)},U=()=>{B(-1)},B=N=>{l.value||S("hours");const Y=l.value,Z=d(m)[Y],ne=l.value==="hours"?24:60,ue=W(Y,Z,N,ne);Q(Y,ue),O(Y,ue),ut(()=>S(Y))},W=(N,Y,Z,ne)=>{let ue=(Y+Z+ne)%ne;const _e=d(p)[N];for(;_e[ue]&&ue!==Y;)ue=(ue+Z+ne)%ne;return ue},Q=(N,Y)=>{if(d(p)[N][Y])return;const{hours:ue,minutes:_e,seconds:Ne}=d(m);let ce;switch(N){case"hours":ce=n.spinnerDate.hour(Y).minute(_e).second(Ne);break;case"minutes":ce=n.spinnerDate.hour(ue).minute(Y).second(Ne);break;case"seconds":ce=n.spinnerDate.hour(ue).minute(_e).second(Y);break}t("change",ce)},G=(N,{value:Y,disabled:Z})=>{Z||(Q(N,Y),S(N),O(N,Y))},X=N=>{o=!0,v(N);const Y=Math.min(Math.round((C(d(h[N]).$el).scrollTop-(q(N)*.5-10)/P(N)+3)/P(N)),N==="hours"?23:59);Q(N,Y)},q=N=>d(h[N]).$el.offsetHeight,H=()=>{const N=Y=>{const Z=d(h[Y]);Z&&Z.$el&&(C(Z.$el).onscroll=()=>{X(Y)})};N("hours"),N("minutes"),N("seconds")};gt(()=>{ut(()=>{!n.arrowControl&&H(),w(),n.role==="start"&&S("hours")})});const V=(N,Y)=>{h[Y].value=N};return t("set-option",[`${n.role}_scrollDown`,B]),t("set-option",[`${n.role}_emitSelectRange`,S]),xe(()=>n.spinnerDate,()=>{o||w()}),(N,Y)=>(k(),z("div",{class:$([d(s).b("spinner"),{"has-seconds":N.showSeconds}])},[N.arrowControl?ae("v-if",!0):(k(!0),z(Ge,{key:0},_t(d(g),Z=>(k(),fe(d(Da),{key:Z,ref_for:!0,ref:ne=>V(ne,Z),class:$(d(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":d(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ne=>S(Z),onMousemove:ne=>T(Z)},{default:L(()=>[(k(!0),z(Ge,null,_t(d(p)[Z],(ne,ue)=>(k(),z("li",{key:ue,class:$([d(s).be("spinner","item"),d(s).is("active",ue===d(m)[Z]),d(s).is("disabled",ne)]),onClick:_e=>G(Z,{value:ue,disabled:ne})},[Z==="hours"?(k(),z(Ge,{key:0},[Re(pe(("0"+(N.amPmMode?ue%12||12:ue)).slice(-2))+pe(b(ue)),1)],64)):(k(),z(Ge,{key:1},[Re(pe(("0"+ue).slice(-2)),1)],64))],10,IQ))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),N.arrowControl?(k(!0),z(Ge,{key:1},_t(d(g),Z=>(k(),z("div",{key:Z,class:$([d(s).be("spinner","wrapper"),d(s).is("arrow")]),onMouseenter:ne=>S(Z)},[yt((k(),fe(d(tt),{class:$(["arrow-up",d(s).be("spinner","arrow")])},{default:L(()=>[I(d(Rg))]),_:1},8,["class"])),[[d(Im),U]]),yt((k(),fe(d(tt),{class:$(["arrow-down",d(s).be("spinner","arrow")])},{default:L(()=>[I(d(Xi))]),_:1},8,["class"])),[[d(Im),M]]),R("ul",{class:$(d(s).be("spinner","list"))},[(k(!0),z(Ge,null,_t(d(y)[Z],(ne,ue)=>(k(),z("li",{key:ue,class:$([d(s).be("spinner","item"),d(s).is("active",ne===d(m)[Z]),d(s).is("disabled",d(p)[Z][ne])])},[typeof ne=="number"?(k(),z(Ge,{key:0},[Z==="hours"?(k(),z(Ge,{key:0},[Re(pe(("0"+(N.amPmMode?ne%12||12:ne)).slice(-2))+pe(b(ne)),1)],64)):(k(),z(Ge,{key:1},[Re(pe(("0"+ne).slice(-2)),1)],64))],64)):ae("v-if",!0)],2))),128))],2)],42,DQ))),128)):ae("v-if",!0)],2))}});var cb=ze(OQ,[["__file","basic-time-spinner.vue"]]);const PQ=J({__name:"panel-time-pick",props:vQ,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=Je("EP_PICKER_BASE"),{arrowControl:r,disabledHours:i,disabledMinutes:a,disabledSeconds:o,defaultValue:l}=s.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=fD(i,a,o),h=Pe("time"),{t:g,lang:m}=Wt(),p=j([0,2]),y=hD(n),v=E(()=>Fn(n.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),b=E(()=>n.format.includes("ss")),S=E(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=V=>{const N=Ot(V).locale(m.value),Y=G(N);return N.isSame(Y)},w=()=>{t("pick",y.value,!1)},C=(V=!1,N=!1)=>{N||t("pick",n.parsedValue,V)},O=V=>{if(!n.visible)return;const N=G(V).millisecond(0);t("pick",N,!0)},P=(V,N)=>{t("select-range",V,N),p.value=[V,N]},M=V=>{const N=[0,3].concat(b.value?[6]:[]),Y=["hours","minutes"].concat(b.value?["seconds"]:[]),ne=(N.indexOf(p.value[0])+V+N.length)%N.length;B.start_emitSelectRange(Y[ne])},U=V=>{const N=V.code,{left:Y,right:Z,up:ne,down:ue}=ot;if([Y,Z].includes(N)){M(N===Y?-1:1),V.preventDefault();return}if([ne,ue].includes(N)){const _e=N===ne?-1:1;B.start_scrollDown(_e),V.preventDefault();return}},{timePickerOptions:B,onSetOption:W,getAvailableTime:Q}=cD({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),G=V=>Q(V,n.datetimeRole||"",!0),X=V=>V?Ot(V,n.format).locale(m.value):null,q=V=>V?V.format(n.format):null,H=()=>Ot(l).locale(m.value);return t("set-picker-option",["isValidValue",T]),t("set-picker-option",["formatToString",q]),t("set-picker-option",["parseUserInput",X]),t("set-picker-option",["handleKeydownInput",U]),t("set-picker-option",["getRangeAvailableTime",G]),t("set-picker-option",["getDefaultValue",H]),(V,N)=>(k(),fe(Wn,{name:d(v)},{default:L(()=>[V.actualVisible||V.visible?(k(),z("div",{key:0,class:$(d(h).b("panel"))},[R("div",{class:$([d(h).be("panel","content"),{"has-seconds":d(b)}])},[I(cb,{ref:"spinner",role:V.datetimeRole||"start","arrow-control":d(r),"show-seconds":d(b),"am-pm-mode":d(S),"spinner-date":V.parsedValue,"disabled-hours":d(i),"disabled-minutes":d(a),"disabled-seconds":d(o),onChange:O,onSetOption:d(W),onSelectRange:P},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),R("div",{class:$(d(h).be("panel","footer"))},[R("button",{type:"button",class:$([d(h).be("panel","btn"),"cancel"]),onClick:w},pe(d(g)("el.datepicker.cancel")),3),R("button",{type:"button",class:$([d(h).be("panel","btn"),"confirm"]),onClick:N[0]||(N[0]=Y=>C())},pe(d(g)("el.datepicker.confirm")),3)],2)],2)):ae("v-if",!0)]),_:1},8,["name"]))}});var Dm=ze(PQ,[["__file","panel-time-pick.vue"]]);const $Q=Ve({...lD,parsedValue:{type:le(Array)}}),RQ=["disabled"],NQ=J({__name:"panel-time-range",props:$Q,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=(Ce,Be)=>{const ee=[];for(let se=Ce;se<=Be;se++)ee.push(se);return ee},{t:r,lang:i}=Wt(),a=Pe("time"),o=Pe("picker"),l=Je("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:h,defaultValue:g}=l.props,m=E(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),T.value?"has-seconds":""]),p=E(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),T.value?"has-seconds":""]),y=E(()=>n.parsedValue[0]),v=E(()=>n.parsedValue[1]),b=hD(n),S=()=>{t("pick",b.value,!1)},T=E(()=>n.format.includes("ss")),w=E(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),C=(Ce=!1)=>{t("pick",[y.value,v.value],Ce)},O=Ce=>{U(Ce.millisecond(0),v.value)},P=Ce=>{U(y.value,Ce.millisecond(0))},M=Ce=>{const Be=Ce.map(se=>Ot(se).locale(i.value)),ee=Z(Be);return Be[0].isSame(ee[0])&&Be[1].isSame(ee[1])},U=(Ce,Be)=>{t("pick",[Ce,Be],!0)},B=E(()=>y.value>v.value),W=j([0,2]),Q=(Ce,Be)=>{t("select-range",Ce,Be,"min"),W.value=[Ce,Be]},G=E(()=>T.value?11:8),X=(Ce,Be)=>{t("select-range",Ce,Be,"max");const ee=d(G);W.value=[Ce+ee,Be+ee]},q=Ce=>{const Be=T.value?[0,3,6,11,14,17]:[0,3,8,11],ee=["hours","minutes"].concat(T.value?["seconds"]:[]),Te=(Be.indexOf(W.value[0])+Ce+Be.length)%Be.length,Le=Be.length/2;Te<Le?Ne.start_emitSelectRange(ee[Te]):Ne.end_emitSelectRange(ee[Te-Le])},H=Ce=>{const Be=Ce.code,{left:ee,right:se,up:Te,down:Le}=ot;if([ee,se].includes(Be)){q(Be===ee?-1:1),Ce.preventDefault();return}if([Te,Le].includes(Be)){const Se=Be===Te?-1:1,De=W.value[0]<G.value?"start":"end";Ne[`${De}_scrollDown`](Se),Ce.preventDefault();return}},V=(Ce,Be)=>{const ee=c?c(Ce):[],se=Ce==="start",Le=(Be||(se?v.value:y.value)).hour(),Se=se?s(Le+1,23):s(0,Le-1);return p0(ee,Se)},N=(Ce,Be,ee)=>{const se=f?f(Ce,Be):[],Te=Be==="start",Le=ee||(Te?v.value:y.value),Se=Le.hour();if(Ce!==Se)return se;const De=Le.minute(),Fe=Te?s(De+1,59):s(0,De-1);return p0(se,Fe)},Y=(Ce,Be,ee,se)=>{const Te=h?h(Ce,Be,ee):[],Le=ee==="start",Se=se||(Le?v.value:y.value),De=Se.hour(),Fe=Se.minute();if(Ce!==De||Be!==Fe)return Te;const Ie=Se.second(),je=Le?s(Ie+1,59):s(0,Ie-1);return p0(Te,je)},Z=([Ce,Be])=>[ce(Ce,"start",!0,Be),ce(Be,"end",!1,Ce)],{getAvailableHours:ne,getAvailableMinutes:ue,getAvailableSeconds:_e}=fD(V,N,Y),{timePickerOptions:Ne,getAvailableTime:ce,onSetOption:te}=cD({getAvailableHours:ne,getAvailableMinutes:ue,getAvailableSeconds:_e}),ie=Ce=>Ce?Xe(Ce)?Ce.map(Be=>Ot(Be,n.format).locale(i.value)):Ot(Ce,n.format).locale(i.value):null,we=Ce=>Ce?Xe(Ce)?Ce.map(Be=>Be.format(n.format)):Ce.format(n.format):null,me=()=>{if(Xe(g))return g.map(Be=>Ot(Be).locale(i.value));const Ce=Ot(g).locale(i.value);return[Ce,Ce.add(60,"m")]};return t("set-picker-option",["formatToString",we]),t("set-picker-option",["parseUserInput",ie]),t("set-picker-option",["isValidValue",M]),t("set-picker-option",["handleKeydownInput",H]),t("set-picker-option",["getDefaultValue",me]),t("set-picker-option",["getRangeAvailableTime",Z]),(Ce,Be)=>Ce.actualVisible?(k(),z("div",{key:0,class:$([d(a).b("range-picker"),d(o).b("panel")])},[R("div",{class:$(d(a).be("range-picker","content"))},[R("div",{class:$(d(a).be("range-picker","cell"))},[R("div",{class:$(d(a).be("range-picker","header"))},pe(d(r)("el.datepicker.startTime")),3),R("div",{class:$(d(m))},[I(cb,{ref:"minSpinner",role:"start","show-seconds":d(T),"am-pm-mode":d(w),"arrow-control":d(u),"spinner-date":d(y),"disabled-hours":V,"disabled-minutes":N,"disabled-seconds":Y,onChange:O,onSetOption:d(te),onSelectRange:Q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),R("div",{class:$(d(a).be("range-picker","cell"))},[R("div",{class:$(d(a).be("range-picker","header"))},pe(d(r)("el.datepicker.endTime")),3),R("div",{class:$(d(p))},[I(cb,{ref:"maxSpinner",role:"end","show-seconds":d(T),"am-pm-mode":d(w),"arrow-control":d(u),"spinner-date":d(v),"disabled-hours":V,"disabled-minutes":N,"disabled-seconds":Y,onChange:P,onSetOption:d(te),onSelectRange:X},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),R("div",{class:$(d(a).be("panel","footer"))},[R("button",{type:"button",class:$([d(a).be("panel","btn"),"cancel"]),onClick:Be[0]||(Be[0]=ee=>S())},pe(d(r)("el.datepicker.cancel")),3),R("button",{type:"button",class:$([d(a).be("panel","btn"),"confirm"]),disabled:d(B),onClick:Be[1]||(Be[1]=ee=>C())},pe(d(r)("el.datepicker.confirm")),11,RQ)],2)],2)):ae("v-if",!0)}});var MQ=ze(NQ,[["__file","panel-time-range.vue"]]);Ot.extend(s2);var LQ=J({name:"ElTimePicker",install:null,props:{...r2,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=j(),[s,r]=e.isRange?["timerange",MQ]:["time",Dm],i=a=>t.emit("update:modelValue",a);return Mt("ElPopperOptions",e.popperOptions),t.expose({focus:a=>{var o;(o=n.value)==null||o.handleFocusInput(a)},blur:a=>{var o;(o=n.value)==null||o.handleBlurInput(a)},handleOpen:()=>{var a;(a=n.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=n.value)==null||a.handleClose()}}),()=>{var a;const o=(a=e.format)!=null?a:eb;return I(uD,Lt(e,{ref:n,type:s,format:o,"onUpdate:modelValue":i}),{default:l=>I(r,l,null)})}}});const Vp=LQ;Vp.install=e=>{e.component(Vp.name,Vp)};const BQ=Vp,FQ=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return oo(t).map((s,r)=>n-(t-r-1))},VQ=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)}),HQ=Ve({selectedDay:{type:le(Object)},range:{type:le(Array)},date:{type:le(Object),required:!0},hideHeader:{type:Boolean}}),zQ={pick:e=>Pt(e)};var SD={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(lr,function(){return function(n,s,r){var i=s.prototype,a=function(f){return f&&(f.indexOf?f:f.s)},o=function(f,h,g,m,p){var y=f.name?f:f.$locale(),v=a(y[h]),b=a(y[g]),S=v||b.map(function(w){return w.slice(0,m)});if(!p)return S;var T=y.weekStart;return S.map(function(w,C){return S[(C+(T||0))%7]})},l=function(){return r.Ls[r.locale()]},u=function(f,h){return f.formats[h]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,p,y){return p||y.slice(1)})}(f.formats[h.toUpperCase()])},c=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):o(f,"months")},monthsShort:function(h){return h?h.format("MMM"):o(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):o(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):o(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):o(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.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 o(l(),"months")},r.monthsShort=function(){return o(l(),"monthsShort","months",3)},r.weekdays=function(f){return o(l(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return o(l(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return o(l(),"weekdaysMin","weekdays",2,f)}}})})(SD);var jQ=SD.exports;const wD=ks(jQ),qQ=(e,t)=>{Ot.extend(wD);const n=Ot.localeData().firstDayOfWeek(),{t:s,lang:r}=Wt(),i=Ot().locale(r.value),a=E(()=>!!e.range&&!!e.range.length),o=E(()=>{let h=[];if(a.value){const[g,m]=e.range,p=oo(m.date()-g.date()+1).map(b=>({text:g.date()+b,type:"current"}));let y=p.length%7;y=y===0?0:7-y;const v=oo(y).map((b,S)=>({text:S+1,type:"next"}));h=p.concat(v)}else{const g=e.date.startOf("month").day(),m=FQ(e.date,(g-n+7)%7).map(b=>({text:b,type:"prev"})),p=VQ(e.date).map(b=>({text:b,type:"current"}));h=[...m,...p];const y=7-(h.length%7||7),v=oo(y).map((b,S)=>({text:S+1,type:"next"}));h=h.concat(v)}return UQ(h)}),l=E(()=>{const h=n;return h===0?m0.map(g=>s(`el.datepicker.weeks.${g}`)):m0.slice(h).concat(m0.slice(0,h)).map(g=>s(`el.datepicker.weeks.${g}`))}),u=(h,g)=>{switch(g){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:a,rows:o,weekDays:l,getFormattedDate:u,handlePickDay:({text:h,type:g})=>{const m=u(h,g);t("pick",m)},getSlotData:({text:h,type:g})=>{const m=u(h,g);return{isSelected:m.isSame(e.selectedDay),type:`${g}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},WQ={key:0},KQ=["onClick"],GQ=J({name:"DateTable"}),YQ=J({...GQ,props:HQ,emits:zQ,setup(e,{expose:t,emit:n}){const s=e,{isInRange:r,now:i,rows:a,weekDays:o,getFormattedDate:l,handlePickDay:u,getSlotData:c}=qQ(s,n),f=Pe("calendar-table"),h=Pe("calendar-day"),g=({text:m,type:p})=>{const y=[p];if(p==="current"){const v=l(m,p);v.isSame(s.selectedDay,"day")&&y.push(h.is("selected")),v.isSame(i,"day")&&y.push(h.is("today"))}return y};return t({getFormattedDate:l}),(m,p)=>(k(),z("table",{class:$([d(f).b(),d(f).is("range",d(r))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?ae("v-if",!0):(k(),z("thead",WQ,[(k(!0),z(Ge,null,_t(d(o),y=>(k(),z("th",{key:y},pe(y),1))),128))])),R("tbody",null,[(k(!0),z(Ge,null,_t(d(a),(y,v)=>(k(),z("tr",{key:v,class:$({[d(f).e("row")]:!0,[d(f).em("row","hide-border")]:v===0&&m.hideHeader})},[(k(!0),z(Ge,null,_t(y,(b,S)=>(k(),z("td",{key:S,class:$(g(b)),onClick:T=>d(u)(b)},[R("div",{class:$(d(h).b())},[be(m.$slots,"date-cell",{data:d(c)(b)},()=>[R("span",null,pe(b.text),1)])],2)],10,KQ))),128))],2))),128))])],2))}});var $E=ze(YQ,[["__file","date-table.vue"]]);const XQ=(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]]},QQ=(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"),a=t.startOf("month"),o=i.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[r.startOf("week"),i],[o.startOf("week"),t]]},JQ=(e,t,n)=>{const{lang:s}=Wt(),r=j(),i=Ot().locale(s.value),a=E({get(){return e.modelValue?l.value:r.value},set(y){if(!y)return;r.value=y;const v=y.toDate();t(zs,v),t($t,v)}}),o=E(()=>{if(!e.range)return[];const y=e.range.map(S=>Ot(S).locale(s.value)),[v,b]=y;return v.isAfter(b)?[]:v.isSame(b,"month")?g(v,b):v.add(1,"month").month()!==b.month()?[]:g(v,b)}),l=E(()=>e.modelValue?Ot(e.modelValue).locale(s.value):a.value||(o.value.length?o.value[0][0]:i)),u=E(()=>l.value.subtract(1,"month").date(1)),c=E(()=>l.value.add(1,"month").date(1)),f=E(()=>l.value.subtract(1,"year").date(1)),h=E(()=>l.value.add(1,"year").date(1)),g=(y,v)=>{const b=y.startOf("week"),S=v.endOf("week"),T=b.get("month"),w=S.get("month");return T===w?[[b,S]]:(T+1)%12===w?XQ(b,S):T+2===w||(T+1)%11===w?QQ(b,S):[]},m=y=>{a.value=y};return{calculateValidatedDateRange:g,date:l,realSelectedDay:a,pickDay:m,selectDate:y=>{const b={"prev-month":u.value,"next-month":c.value,"prev-year":f.value,"next-year":h.value,today:i}[y];b.isSame(l.value,"day")||m(b)},validatedRange:o}},ZQ=e=>Xe(e)&&e.length===2&&e.every(t=>bl(t)),eJ=Ve({modelValue:{type:Date},range:{type:le(Array),validator:ZQ}}),tJ={[$t]:e=>bl(e),[zs]:e=>bl(e)},nJ="ElCalendar",sJ=J({name:nJ}),rJ=J({...sJ,props:eJ,emits:tJ,setup(e,{expose:t,emit:n}){const s=e,r=Pe("calendar"),{calculateValidatedDateRange:i,date:a,pickDay:o,realSelectedDay:l,selectDate:u,validatedRange:c}=JQ(s,n),{t:f}=Wt(),h=E(()=>{const g=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${f("el.datepicker.year")} ${f(g)}`});return t({selectedDay:l,pickDay:o,selectDate:u,calculateValidatedDateRange:i}),(g,m)=>(k(),z("div",{class:$(d(r).b())},[R("div",{class:$(d(r).e("header"))},[be(g.$slots,"header",{date:d(h)},()=>[R("div",{class:$(d(r).e("title"))},pe(d(h)),3),d(c).length===0?(k(),z("div",{key:0,class:$(d(r).e("button-group"))},[I(d(tD),null,{default:L(()=>[I(d(gn),{size:"small",onClick:m[0]||(m[0]=p=>d(u)("prev-month"))},{default:L(()=>[Re(pe(d(f)("el.datepicker.prevMonth")),1)]),_:1}),I(d(gn),{size:"small",onClick:m[1]||(m[1]=p=>d(u)("today"))},{default:L(()=>[Re(pe(d(f)("el.datepicker.today")),1)]),_:1}),I(d(gn),{size:"small",onClick:m[2]||(m[2]=p=>d(u)("next-month"))},{default:L(()=>[Re(pe(d(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):ae("v-if",!0)])],2),d(c).length===0?(k(),z("div",{key:0,class:$(d(r).e("body"))},[I($E,{date:d(a),"selected-day":d(l),onPick:d(o)},ma({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:L(p=>[be(g.$slots,"date-cell",da(Bu(p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(k(),z("div",{key:1,class:$(d(r).e("body"))},[(k(!0),z(Ge,null,_t(d(c),(p,y)=>(k(),fe($E,{key:y,date:p[0],"selected-day":d(l),range:p,"hide-header":y!==0,onPick:d(o)},ma({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:L(v=>[be(g.$slots,"date-cell",da(Bu(v)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var iJ=ze(rJ,[["__file","calendar.vue"]]);const aJ=Dt(iJ),oJ=Ve({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:le([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),lJ=J({name:"ElCard"}),uJ=J({...lJ,props:oJ,setup(e){const t=Pe("card");return(n,s)=>(k(),z("div",{class:$([d(t).b(),d(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(k(),z("div",{key:0,class:$(d(t).e("header"))},[be(n.$slots,"header",{},()=>[Re(pe(n.header),1)])],2)):ae("v-if",!0),R("div",{class:$([d(t).e("body"),n.bodyClass]),style:it(n.bodyStyle)},[be(n.$slots,"default")],6),n.$slots.footer||n.footer?(k(),z("div",{key:1,class:$(d(t).e("footer"))},[be(n.$slots,"footer",{},()=>[Re(pe(n.footer),1)])],2)):ae("v-if",!0)],2))}});var cJ=ze(uJ,[["__file","card.vue"]]);const dJ=Dt(cJ),fJ=Ve({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},motionBlur:{type:Boolean,default:!1}}),hJ={change:(e,t)=>[e,t].every(pt)},TD=Symbol("carouselContextKey"),RE=300,pJ=(e,t,n)=>{const{children:s,addChild:r,removeChild:i}=Y1(It(),"ElCarouselItem"),a=us(),o=j(-1),l=j(null),u=j(!1),c=j(),f=j(0),h=j(!0),g=j(!0),m=j(!1),p=E(()=>e.arrow!=="never"&&!d(b)),y=E(()=>s.value.some(ce=>ce.props.label.toString().length>0)),v=E(()=>e.type==="card"),b=E(()=>e.direction==="vertical"),S=E(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),T=cl(ce=>{U(ce)},RE,{trailing:!0}),w=cl(ce=>{N(ce)},RE),C=ce=>h.value?o.value<=1?ce<=1:ce>1:!0;function O(){l.value&&(clearInterval(l.value),l.value=null)}function P(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>M(),e.interval))}const M=()=>{g.value||(m.value=!0),g.value=!1,o.value<s.value.length-1?o.value=o.value+1:e.loop&&(o.value=0)};function U(ce){if(g.value||(m.value=!0),g.value=!1,bt(ce)){const we=s.value.filter(me=>me.props.name===ce);we.length>0&&(ce=s.value.indexOf(we[0]))}if(ce=Number(ce),Number.isNaN(ce)||ce!==Math.floor(ce))return;const te=s.value.length,ie=o.value;ce<0?o.value=e.loop?te-1:0:ce>=te?o.value=e.loop?0:te-1:o.value=ce,ie===o.value&&B(ie),ne()}function B(ce){s.value.forEach((te,ie)=>{te.translateItem(ie,o.value,ce)})}function W(ce,te){var ie,we,me,Ce;const Be=d(s),ee=Be.length;if(ee===0||!ce.states.inStage)return!1;const se=te+1,Te=te-1,Le=ee-1,Se=Be[Le].states.active,De=Be[0].states.active,Fe=(we=(ie=Be[se])==null?void 0:ie.states)==null?void 0:we.active,Ie=(Ce=(me=Be[Te])==null?void 0:me.states)==null?void 0:Ce.active;return te===Le&&De||Fe?"left":te===0&&Se||Ie?"right":!1}function Q(){u.value=!0,e.pauseOnHover&&O()}function G(){u.value=!1,P()}function X(){m.value=!1}function q(ce){d(b)||s.value.forEach((te,ie)=>{ce===W(te,ie)&&(te.states.hover=!0)})}function H(){d(b)||s.value.forEach(ce=>{ce.states.hover=!1})}function V(ce){ce!==o.value&&(g.value||(m.value=!0)),o.value=ce}function N(ce){e.trigger==="hover"&&ce!==o.value&&(o.value=ce,g.value||(m.value=!0))}function Y(){U(o.value-1)}function Z(){U(o.value+1)}function ne(){O(),e.pauseOnHover||P()}function ue(ce){e.height==="auto"&&(f.value=ce)}function _e(){var ce;const te=(ce=a.default)==null?void 0:ce.call(a);if(!te)return null;const ie=ao(te),we="ElCarouselItem",me=ie.filter(Ce=>_n(Ce)&&Ce.type.name===we);return(me==null?void 0:me.length)===2&&e.loop&&!v.value?(h.value=!0,me):(h.value=!1,null)}xe(()=>o.value,(ce,te)=>{B(te),h.value&&(ce=ce%2,te=te%2),te>-1&&t("change",ce,te)}),xe(()=>e.autoplay,ce=>{ce?P():O()}),xe(()=>e.loop,()=>{U(o.value)}),xe(()=>e.interval,()=>{ne()});const Ne=ln();return gt(()=>{xe(()=>s.value,()=>{s.value.length>0&&U(e.initialIndex)},{immediate:!0}),Ne.value=Sn(c.value,()=>{B()}),P()}),un(()=>{O(),c.value&&Ne.value&&Ne.value.stop()}),Mt(TD,{root:c,isCardType:v,isVertical:b,items:s,loop:e.loop,addItem:r,removeItem:i,setActiveItem:U,setContainerHeight:ue}),{root:c,activeIndex:o,arrowDisplay:p,hasLabel:y,hover:u,isCardType:v,isTransitioning:m,items:s,isVertical:b,containerStyle:S,isItemsTwoLength:h,handleButtonEnter:q,handleTransitionEnd:X,handleButtonLeave:H,handleIndicatorClick:V,handleMouseEnter:Q,handleMouseLeave:G,setActiveItem:U,prev:Y,next:Z,PlaceholderItem:_e,isTwoLengthShow:C,throttledArrowClick:T,throttledIndicatorHover:w}},mJ=["aria-label"],gJ=["aria-label"],vJ=["onMouseenter","onClick"],yJ=["aria-label"],bJ={key:0},_J={key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},SJ=R("defs",null,[R("filter",{id:"elCarouselHorizontal"},[R("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),R("filter",{id:"elCarouselVertical"},[R("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1),wJ=[SJ],TJ="ElCarousel",CJ=J({name:TJ}),EJ=J({...CJ,props:fJ,emits:hJ,setup(e,{expose:t,emit:n}){const s=e,{root:r,activeIndex:i,arrowDisplay:a,hasLabel:o,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:h,handleButtonEnter:g,handleButtonLeave:m,isTransitioning:p,handleIndicatorClick:y,handleMouseEnter:v,handleMouseLeave:b,handleTransitionEnd:S,setActiveItem:T,prev:w,next:C,PlaceholderItem:O,isTwoLengthShow:P,throttledArrowClick:M,throttledIndicatorHover:U}=pJ(s,n),B=Pe("carousel"),{t:W}=Wt(),Q=E(()=>{const q=[B.b(),B.m(s.direction)];return d(u)&&q.push(B.m("card")),q}),G=E(()=>{const q=[B.e("container")];return s.motionBlur&&d(p)&&q.push(d(f)?`${B.namespace.value}-transitioning-vertical`:`${B.namespace.value}-transitioning`),q}),X=E(()=>{const q=[B.e("indicators"),B.em("indicators",s.direction)];return d(o)&&q.push(B.em("indicators","labels")),s.indicatorPosition==="outside"&&q.push(B.em("indicators","outside")),d(f)&&q.push(B.em("indicators","right")),q});return t({setActiveItem:T,prev:w,next:C}),(q,H)=>(k(),z("div",{ref_key:"root",ref:r,class:$(d(Q)),onMouseenter:H[7]||(H[7]=vt((...V)=>d(v)&&d(v)(...V),["stop"])),onMouseleave:H[8]||(H[8]=vt((...V)=>d(b)&&d(b)(...V),["stop"]))},[d(a)?(k(),fe(Wn,{key:0,name:"carousel-arrow-left",persisted:""},{default:L(()=>[yt(R("button",{type:"button",class:$([d(B).e("arrow"),d(B).em("arrow","left")]),"aria-label":d(W)("el.carousel.leftArrow"),onMouseenter:H[0]||(H[0]=V=>d(g)("left")),onMouseleave:H[1]||(H[1]=(...V)=>d(m)&&d(m)(...V)),onClick:H[2]||(H[2]=vt(V=>d(M)(d(i)-1),["stop"]))},[I(d(tt),null,{default:L(()=>[I(d(mo))]),_:1})],42,mJ),[[zt,(q.arrow==="always"||d(l))&&(s.loop||d(i)>0)]])]),_:1})):ae("v-if",!0),d(a)?(k(),fe(Wn,{key:1,name:"carousel-arrow-right",persisted:""},{default:L(()=>[yt(R("button",{type:"button",class:$([d(B).e("arrow"),d(B).em("arrow","right")]),"aria-label":d(W)("el.carousel.rightArrow"),onMouseenter:H[3]||(H[3]=V=>d(g)("right")),onMouseleave:H[4]||(H[4]=(...V)=>d(m)&&d(m)(...V)),onClick:H[5]||(H[5]=vt(V=>d(M)(d(i)+1),["stop"]))},[I(d(tt),null,{default:L(()=>[I(d(Hs))]),_:1})],42,gJ),[[zt,(q.arrow==="always"||d(l))&&(s.loop||d(i)<d(c).length-1)]])]),_:1})):ae("v-if",!0),R("div",{class:$(d(G)),style:it(d(h)),onTransitionend:H[6]||(H[6]=(...V)=>d(S)&&d(S)(...V))},[I(d(O)),be(q.$slots,"default")],38),q.indicatorPosition!=="none"?(k(),z("ul",{key:2,class:$(d(X))},[(k(!0),z(Ge,null,_t(d(c),(V,N)=>yt((k(),z("li",{key:N,class:$([d(B).e("indicator"),d(B).em("indicator",q.direction),d(B).is("active",N===d(i))]),onMouseenter:Y=>d(U)(N),onClick:vt(Y=>d(y)(N),["stop"])},[R("button",{class:$(d(B).e("button")),"aria-label":d(W)("el.carousel.indicator",{index:N+1})},[d(o)?(k(),z("span",bJ,pe(V.props.label),1)):ae("v-if",!0)],10,yJ)],42,vJ)),[[zt,d(P)(N)]])),128))],2)):ae("v-if",!0),s.motionBlur?(k(),z("svg",_J,wJ)):ae("v-if",!0)],34))}});var xJ=ze(EJ,[["__file","carousel.vue"]]);const kJ=Ve({name:{type:String,default:""},label:{type:[String,Number],default:""}}),AJ=(e,t)=>{const n=Je(TD),s=It(),r=.83,i=j(),a=j(!1),o=j(0),l=j(1),u=j(!1),c=j(!1),f=j(!1),h=j(!1),{isCardType:g,isVertical:m}=n;function p(T,w,C){const O=C-1,P=w-1,M=w+1,U=C/2;return w===0&&T===O?-1:w===O&&T===0?C:T<P&&w-T>=U?C+1:T>M&&T-w>=U?-2:T}function y(T,w){var C,O;const P=d(m)?((C=n.root.value)==null?void 0:C.offsetHeight)||0:((O=n.root.value)==null?void 0:O.offsetWidth)||0;return f.value?P*((2-r)*(T-w)+1)/4:T<w?-(1+r)*P/4:(3+r)*P/4}function v(T,w,C){const O=n.root.value;return O?((C?O.offsetHeight:O.offsetWidth)||0)*(T-w):0}const b=(T,w,C)=>{var O;const P=d(g),M=(O=n.items.value.length)!=null?O:Number.NaN,U=T===w;!P&&!Fn(C)&&(h.value=U||T===C),!U&&M>2&&n.loop&&(T=p(T,w,M));const B=d(m);u.value=U,P?(f.value=Math.round(Math.abs(T-w))<=1,o.value=y(T,w),l.value=d(u)?1:r):o.value=v(T,w,B),c.value=!0,U&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function S(){if(n&&d(g)){const T=n.items.value.findIndex(({uid:w})=>w===s.uid);n.setActiveItem(T)}}return gt(()=>{n.addItem({props:e,states:Ct({hover:a,translate:o,scale:l,active:u,ready:c,inStage:f,animating:h}),uid:s.uid,translateItem:b})}),Eo(()=>{n.removeItem(s.uid)}),{carouselItemRef:i,active:u,animating:h,hover:a,inStage:f,isVertical:m,translate:o,isCardType:g,scale:l,ready:c,handleItemClick:S}},IJ=J({name:"ElCarouselItem"}),DJ=J({...IJ,props:kJ,setup(e){const t=e,n=Pe("carousel"),{carouselItemRef:s,active:r,animating:i,hover:a,inStage:o,isVertical:l,translate:u,isCardType:c,scale:f,ready:h,handleItemClick:g}=AJ(t),m=E(()=>[n.e("item"),n.is("active",r.value),n.is("in-stage",o.value),n.is("hover",a.value),n.is("animating",i.value),{[n.em("item","card")]:c.value,[n.em("item","card-vertical")]:c.value&&l.value}]),p=E(()=>{const v=`${`translate${d(l)?"Y":"X"}`}(${d(u)}px)`,b=`scale(${d(f)})`;return{transform:[v,b].join(" ")}});return(y,v)=>yt((k(),z("div",{ref_key:"carouselItemRef",ref:s,class:$(d(m)),style:it(d(p)),onClick:v[0]||(v[0]=(...b)=>d(g)&&d(g)(...b))},[d(c)?yt((k(),z("div",{key:0,class:$(d(n).e("mask"))},null,2)),[[zt,!d(r)]]):ae("v-if",!0),be(y.$slots,"default")],6)),[[zt,d(h)]])}});var CD=ze(DJ,[["__file","carousel-item.vue"]]);const OJ=Dt(xJ,{CarouselItem:CD}),PJ=Tn(CD),ED={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],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:es,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...ys(["ariaControls"])},xD={[$t]:e=>bt(e)||pt(e)||Hn(e),change:e=>bt(e)||pt(e)||Hn(e)},Ic=Symbol("checkboxGroupContextKey"),$J=({model:e,isChecked:t})=>{const n=Je(Ic,void 0),s=E(()=>{var i,a;const o=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(a=n==null?void 0:n.min)==null?void 0:a.value;return!Fn(o)&&e.value.length>=o&&!t.value||!Fn(l)&&e.value.length<=l&&t.value});return{isDisabled:Gs(E(()=>(n==null?void 0:n.disabled.value)||s.value)),isLimitDisabled:s}},RJ=(e,{model:t,isLimitExceeded:n,hasOwnLabel:s,isDisabled:r,isLabeledByFormItem:i})=>{const a=Je(Ic,void 0),{formItem:o}=$s(),{emit:l}=It();function u(m){var p,y,v,b;return[!0,e.trueValue,e.trueLabel].includes(m)?(y=(p=e.trueValue)!=null?p:e.trueLabel)!=null?y:!0:(b=(v=e.falseValue)!=null?v:e.falseLabel)!=null?b:!1}function c(m,p){l("change",u(m),p)}function f(m){if(n.value)return;const p=m.target;l("change",u(p.checked),m)}async function h(m){n.value||!s.value&&!r.value&&i.value&&(m.composedPath().some(v=>v.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await ut(),c(t.value,m)))}const g=E(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return xe(()=>e.modelValue,()=>{g.value&&(o==null||o.validate("change").catch(m=>void 0))}),{handleChange:f,onClickRoot:h}},NJ=e=>{const t=j(!1),{emit:n}=It(),s=Je(Ic,void 0),r=E(()=>Fn(s)===!1),i=j(!1),a=E({get(){var o,l;return r.value?(o=s==null?void 0:s.modelValue)==null?void 0:o.value:(l=e.modelValue)!=null?l:t.value},set(o){var l,u;r.value&&Xe(o)?(i.value=((l=s==null?void 0:s.max)==null?void 0:l.value)!==void 0&&o.length>(s==null?void 0:s.max.value)&&o.length>a.value.length,i.value===!1&&((u=s==null?void 0:s.changeEvent)==null||u.call(s,o))):(n($t,o),t.value=o)}});return{model:a,isGroup:r,isLimitExceeded:i}},MJ=(e,t,{model:n})=>{const s=Je(Ic,void 0),r=j(!1),i=E(()=>Tl(e.value)?e.label:e.value),a=E(()=>{const c=n.value;return Hn(c)?c:Xe(c)?Pt(i.value)?c.map(en).some(f=>Ds(f,i.value)):c.map(en).includes(i.value):c!=null?c===e.trueValue||c===e.trueLabel:!!c}),o=Kn(E(()=>{var c;return(c=s==null?void 0:s.size)==null?void 0:c.value}),{prop:!0}),l=Kn(E(()=>{var c;return(c=s==null?void 0:s.size)==null?void 0:c.value})),u=E(()=>!!t.default||!Tl(i.value));return{checkboxButtonSize:o,isChecked:a,isFocused:r,checkboxSize:l,hasOwnLabel:u,actualValue:i}},kD=(e,t)=>{const{formItem:n}=$s(),{model:s,isGroup:r,isLimitExceeded:i}=NJ(e),{isFocused:a,isChecked:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:f}=MJ(e,t,{model:s}),{isDisabled:h}=$J({model:s,isChecked:o}),{inputId:g,isLabeledByFormItem:m}=_i(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:r}),{handleChange:p,onClickRoot:y}=RJ(e,{model:s,isLimitExceeded:i,hasOwnLabel:c,isDisabled:h,isLabeledByFormItem:m});return(()=>{function b(){var S,T;Xe(s.value)&&!s.value.includes(f.value)?s.value.push(f.value):s.value=(T=(S=e.trueValue)!=null?S:e.trueLabel)!=null?T:!0}e.checked&&b()})(),ss({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>!!e.controls)),ss({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>r.value&&Tl(e.value))),ss({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>!!e.trueLabel)),ss({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:m,isChecked:o,isDisabled:h,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:s,actualValue:f,handleChange:p,onClickRoot:y}},LJ=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],BJ=["id","indeterminate","disabled","value","name","tabindex"],FJ=J({name:"ElCheckbox"}),VJ=J({...FJ,props:ED,emits:xD,setup(e){const t=e,n=us(),{inputId:s,isLabeledByFormItem:r,isChecked:i,isDisabled:a,isFocused:o,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:f,handleChange:h,onClickRoot:g}=kD(t,n),m=Pe("checkbox"),p=E(()=>[m.b(),m.m(l.value),m.is("disabled",a.value),m.is("bordered",t.border),m.is("checked",i.value)]),y=E(()=>[m.e("input"),m.is("disabled",a.value),m.is("checked",i.value),m.is("indeterminate",t.indeterminate),m.is("focus",o.value)]);return(v,b)=>(k(),fe(Nt(!d(u)&&d(r)?"span":"label"),{class:$(d(p)),"aria-controls":v.indeterminate?v.controls||v.ariaControls:null,onClick:d(g)},{default:L(()=>{var S,T;return[R("span",{class:$(d(y))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?yt((k(),z("input",{key:0,id:d(s),"onUpdate:modelValue":b[0]||(b[0]=w=>hn(c)?c.value=w:null),class:$(d(m).e("original")),type:"checkbox",indeterminate:v.indeterminate,name:v.name,tabindex:v.tabindex,disabled:d(a),"true-value":(S=v.trueValue)!=null?S:v.trueLabel,"false-value":(T=v.falseValue)!=null?T:v.falseLabel,onChange:b[1]||(b[1]=(...w)=>d(h)&&d(h)(...w)),onFocus:b[2]||(b[2]=w=>o.value=!0),onBlur:b[3]||(b[3]=w=>o.value=!1),onClick:b[4]||(b[4]=vt(()=>{},["stop"]))},null,42,LJ)),[[ff,d(c)]]):yt((k(),z("input",{key:1,id:d(s),"onUpdate:modelValue":b[5]||(b[5]=w=>hn(c)?c.value=w:null),class:$(d(m).e("original")),type:"checkbox",indeterminate:v.indeterminate,disabled:d(a),value:d(f),name:v.name,tabindex:v.tabindex,onChange:b[6]||(b[6]=(...w)=>d(h)&&d(h)(...w)),onFocus:b[7]||(b[7]=w=>o.value=!0),onBlur:b[8]||(b[8]=w=>o.value=!1),onClick:b[9]||(b[9]=vt(()=>{},["stop"]))},null,42,BJ)),[[ff,d(c)]]),R("span",{class:$(d(m).e("inner"))},null,2)],2),d(u)?(k(),z("span",{key:0,class:$(d(m).e("label"))},[be(v.$slots,"default"),v.$slots.default?ae("v-if",!0):(k(),z(Ge,{key:0},[Re(pe(v.label),1)],64))],2)):ae("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var UJ=ze(VJ,[["__file","checkbox.vue"]]);const HJ=["name","tabindex","disabled","true-value","false-value"],zJ=["name","tabindex","disabled","value"],jJ=J({name:"ElCheckboxButton"}),qJ=J({...jJ,props:ED,emits:xD,setup(e){const t=e,n=us(),{isFocused:s,isChecked:r,isDisabled:i,checkboxButtonSize:a,model:o,actualValue:l,handleChange:u}=kD(t,n),c=Je(Ic,void 0),f=Pe("checkbox"),h=E(()=>{var m,p,y,v;const b=(p=(m=c==null?void 0:c.fill)==null?void 0:m.value)!=null?p:"";return{backgroundColor:b,borderColor:b,color:(v=(y=c==null?void 0:c.textColor)==null?void 0:y.value)!=null?v:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}}),g=E(()=>[f.b("button"),f.bm("button",a.value),f.is("disabled",i.value),f.is("checked",r.value),f.is("focus",s.value)]);return(m,p)=>{var y,v;return k(),z("label",{class:$(d(g))},[m.trueValue||m.falseValue||m.trueLabel||m.falseLabel?yt((k(),z("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=b=>hn(o)?o.value=b:null),class:$(d(f).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:d(i),"true-value":(y=m.trueValue)!=null?y:m.trueLabel,"false-value":(v=m.falseValue)!=null?v:m.falseLabel,onChange:p[1]||(p[1]=(...b)=>d(u)&&d(u)(...b)),onFocus:p[2]||(p[2]=b=>s.value=!0),onBlur:p[3]||(p[3]=b=>s.value=!1),onClick:p[4]||(p[4]=vt(()=>{},["stop"]))},null,42,HJ)),[[ff,d(o)]]):yt((k(),z("input",{key:1,"onUpdate:modelValue":p[5]||(p[5]=b=>hn(o)?o.value=b:null),class:$(d(f).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:d(i),value:d(l),onChange:p[6]||(p[6]=(...b)=>d(u)&&d(u)(...b)),onFocus:p[7]||(p[7]=b=>s.value=!0),onBlur:p[8]||(p[8]=b=>s.value=!1),onClick:p[9]||(p[9]=vt(()=>{},["stop"]))},null,42,zJ)),[[ff,d(o)]]),m.$slots.default||m.label?(k(),z("span",{key:2,class:$(d(f).be("button","inner")),style:it(d(r)?d(h):void 0)},[be(m.$slots,"default",{},()=>[Re(pe(m.label),1)])],6)):ae("v-if",!0)],2)}}});var AD=ze(qJ,[["__file","checkbox-button.vue"]]);const WJ=Ve({modelValue:{type:le(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:es,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...ys(["ariaLabel"])}),KJ={[$t]:e=>Xe(e),change:e=>Xe(e)},GJ=J({name:"ElCheckboxGroup"}),YJ=J({...GJ,props:WJ,emits:KJ,setup(e,{emit:t}){const n=e,s=Pe("checkbox"),{formItem:r}=$s(),{inputId:i,isLabeledByFormItem:a}=_i(n,{formItemContext:r}),o=async u=>{t($t,u),await ut(),t("change",u)},l=E({get(){return n.modelValue},set(u){o(u)}});return Mt(Ic,{...Oi(ms(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:o}),ss({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},E(()=>!!n.label)),xe(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return k(),fe(Nt(u.tag),{id:d(i),class:$(d(s).b("group")),role:"group","aria-label":d(a)?void 0:u.label||u.ariaLabel||"checkbox-group","aria-labelledby":d(a)?(f=d(r))==null?void 0:f.labelId:void 0},{default:L(()=>[be(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var ID=ze(YJ,[["__file","checkbox-group.vue"]]);const Xr=Dt(UJ,{CheckboxButton:AD,CheckboxGroup:ID}),XJ=Tn(AD),DD=Tn(ID),OD=Ve({modelValue:{type:[String,Number,Boolean],default:void 0},size:es,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),QJ=Ve({...OD,border:Boolean}),PD={[$t]:e=>bt(e)||pt(e)||Hn(e),[dn]:e=>bt(e)||pt(e)||Hn(e)},$D=Symbol("radioGroupKey"),RD=(e,t)=>{const n=j(),s=Je($D,void 0),r=E(()=>!!s),i=E(()=>Tl(e.value)?e.label:e.value),a=E({get(){return r.value?s.modelValue:e.modelValue},set(f){r.value?s.changeEvent(f):t&&t($t,f),n.value.checked=e.modelValue===i.value}}),o=Kn(E(()=>s==null?void 0:s.size)),l=Gs(E(()=>s==null?void 0:s.disabled)),u=j(!1),c=E(()=>l.value||r.value&&a.value!==i.value?-1:0);return ss({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},E(()=>r.value&&Tl(e.value))),{radioRef:n,isGroup:r,radioGroup:s,focus:u,size:o,disabled:l,tabIndex:c,modelValue:a,actualValue:i}},JJ=["value","name","disabled"],ZJ=J({name:"ElRadio"}),eZ=J({...ZJ,props:QJ,emits:PD,setup(e,{emit:t}){const n=e,s=Pe("radio"),{radioRef:r,radioGroup:i,focus:a,size:o,disabled:l,modelValue:u,actualValue:c}=RD(n,t);function f(){ut(()=>t("change",u.value))}return(h,g)=>{var m;return k(),z("label",{class:$([d(s).b(),d(s).is("disabled",d(l)),d(s).is("focus",d(a)),d(s).is("bordered",h.border),d(s).is("checked",d(u)===d(c)),d(s).m(d(o))])},[R("span",{class:$([d(s).e("input"),d(s).is("disabled",d(l)),d(s).is("checked",d(u)===d(c))])},[yt(R("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":g[0]||(g[0]=p=>hn(u)?u.value=p:null),class:$(d(s).e("original")),value:d(c),name:h.name||((m=d(i))==null?void 0:m.name),disabled:d(l),type:"radio",onFocus:g[1]||(g[1]=p=>a.value=!0),onBlur:g[2]||(g[2]=p=>a.value=!1),onChange:f,onClick:g[3]||(g[3]=vt(()=>{},["stop"]))},null,42,JJ),[[J_,d(u)]]),R("span",{class:$(d(s).e("inner"))},null,2)],2),R("span",{class:$(d(s).e("label")),onKeydown:g[4]||(g[4]=vt(()=>{},["stop"]))},[be(h.$slots,"default",{},()=>[Re(pe(h.label),1)])],34)],2)}}});var tZ=ze(eZ,[["__file","radio.vue"]]);const nZ=Ve({...OD}),sZ=["value","name","disabled"],rZ=J({name:"ElRadioButton"}),iZ=J({...rZ,props:nZ,setup(e){const t=e,n=Pe("radio"),{radioRef:s,focus:r,size:i,disabled:a,modelValue:o,radioGroup:l,actualValue:u}=RD(t),c=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(f,h)=>{var g;return k(),z("label",{class:$([d(n).b("button"),d(n).is("active",d(o)===d(u)),d(n).is("disabled",d(a)),d(n).is("focus",d(r)),d(n).bm("button",d(i))])},[yt(R("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":h[0]||(h[0]=m=>hn(o)?o.value=m:null),class:$(d(n).be("button","original-radio")),value:d(u),type:"radio",name:f.name||((g=d(l))==null?void 0:g.name),disabled:d(a),onFocus:h[1]||(h[1]=m=>r.value=!0),onBlur:h[2]||(h[2]=m=>r.value=!1),onClick:h[3]||(h[3]=vt(()=>{},["stop"]))},null,42,sZ),[[J_,d(o)]]),R("span",{class:$(d(n).be("button","inner")),style:it(d(o)===d(u)?d(c):{}),onKeydown:h[4]||(h[4]=vt(()=>{},["stop"]))},[be(f.$slots,"default",{},()=>[Re(pe(f.label),1)])],38)],2)}}});var ND=ze(iZ,[["__file","radio-button.vue"]]);const aZ=Ve({id:{type:String,default:void 0},size:es,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},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},...ys(["ariaLabel"])}),oZ=PD,lZ=["id","aria-label","aria-labelledby"],uZ=J({name:"ElRadioGroup"}),cZ=J({...uZ,props:aZ,emits:oZ,setup(e,{emit:t}){const n=e,s=Pe("radio"),r=xs(),i=j(),{formItem:a}=$s(),{inputId:o,isLabeledByFormItem:l}=_i(n,{formItemContext:a}),u=f=>{t($t,f),ut(()=>t("change",f))};gt(()=>{const f=i.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(g=>g.checked)&&h&&(h.tabIndex=0)});const c=E(()=>n.name||r.value);return Mt($D,Ct({...ms(n),changeEvent:u,name:c})),xe(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(f=>void 0))}),ss({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},E(()=>!!n.label)),(f,h)=>(k(),z("div",{id:d(o),ref_key:"radioGroupRef",ref:i,class:$(d(s).b("group")),role:"radiogroup","aria-label":d(l)?void 0:f.label||f.ariaLabel||"radio-group","aria-labelledby":d(l)?d(a).labelId:void 0},[be(f.$slots,"default")],10,lZ))}});var MD=ze(cZ,[["__file","radio-group.vue"]]);const Kg=Dt(tZ,{RadioButton:ND,RadioGroup:MD}),i2=Tn(MD),dZ=Tn(ND);var fZ=J({name:"NodeContent",setup(){return{ns:Pe("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:s,label:r}=t,{renderLabelFn:i}=n;return lt("span",{class:e.e("label")},i?i({node:t,data:s}):r)}});const a2=Symbol(),hZ=J({name:"ElCascaderNode",components:{ElCheckbox:Xr,ElRadio:Kg,NodeContent:fZ,ElIcon:tt,Check:eh,Loading:Ao,ArrowRight:Hs},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Je(a2),s=Pe("cascader-node"),r=E(()=>n.isHoverMenu),i=E(()=>n.config.multiple),a=E(()=>n.config.checkStrictly),o=E(()=>{var C;return(C=n.checkedNodes[0])==null?void 0:C.uid}),l=E(()=>e.node.isDisabled),u=E(()=>e.node.isLeaf),c=E(()=>a.value&&!u.value||!l.value),f=E(()=>g(n.expandingNode)),h=E(()=>a.value&&n.checkedNodes.some(g)),g=C=>{var O;const{level:P,uid:M}=e.node;return((O=C==null?void 0:C.pathNodes[P-1])==null?void 0:O.uid)===M},m=()=>{f.value||n.expandNode(e.node)},p=C=>{const{node:O}=e;C!==O.checked&&n.handleCheckChange(O,C)},y=()=>{n.lazyLoad(e.node,()=>{u.value||m()})},v=C=>{r.value&&(b(),!u.value&&t("expand",C))},b=()=>{const{node:C}=e;!c.value||C.loading||(C.loaded?m():y())},S=()=>{r.value&&!u.value||(u.value&&!l.value&&!a.value&&!i.value?w(!0):b())},T=C=>{a.value?(p(C),e.node.loaded&&m()):w(C)},w=C=>{e.node.loaded?(p(C),!a.value&&m()):y()};return{panel:n,isHoverMenu:r,multiple:i,checkStrictly:a,checkedNodeId:o,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:h,ns:s,handleHoverExpand:v,handleExpand:b,handleClick:S,handleCheck:w,handleSelectCheck:T}}}),pZ=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],mZ=R("span",null,null,-1);function gZ(e,t,n,s,r,i){const a=kt("el-checkbox"),o=kt("el-radio"),l=kt("check"),u=kt("el-icon"),c=kt("node-content"),f=kt("loading"),h=kt("arrow-right");return k(),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:$([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]=(...g)=>e.handleHoverExpand&&e.handleHoverExpand(...g)),onFocus:t[3]||(t[3]=(...g)=>e.handleHoverExpand&&e.handleHoverExpand(...g)),onClick:t[4]||(t[4]=(...g)=>e.handleClick&&e.handleClick(...g))},[ae(" prefix "),e.multiple?(k(),fe(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=vt(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(k(),fe(o,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=vt(()=>{},["stop"]))},{default:L(()=>[ae(`
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),mZ]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(k(),fe(u,{key:2,class:$(e.ns.e("prefix"))},{default:L(()=>[I(l)]),_:1},8,["class"])):ae("v-if",!0),ae(" content "),I(c),ae(" postfix "),e.isLeaf?ae("v-if",!0):(k(),z(Ge,{key:3},[e.node.loading?(k(),fe(u,{key:0,class:$([e.ns.is("loading"),e.ns.e("postfix")])},{default:L(()=>[I(f)]),_:1},8,["class"])):(k(),fe(u,{key:1,class:$(["arrow-right",e.ns.e("postfix")])},{default:L(()=>[I(h)]),_:1},8,["class"]))],64))],42,pZ)}var vZ=ze(hZ,[["render",gZ],["__file","node.vue"]]);const yZ=J({name:"ElCascaderMenu",components:{Loading:Ao,ElIcon:tt,ElScrollbar:Da,ElCascaderNode:vZ},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=It(),n=Pe("cascader-menu"),{t:s}=Wt(),r=xs();let i=null,a=null;const o=Je(a2),l=j(null),u=E(()=>!e.nodes.length),c=E(()=>!o.initialLoaded),f=E(()=>`${r.value}-${e.index}`),h=y=>{i=y.target},g=y=>{if(!(!o.isHoverMenu||!i||!l.value))if(i.contains(y.target)){m();const v=t.vnode.el,{left:b}=v.getBoundingClientRect(),{offsetWidth:S,offsetHeight:T}=v,w=y.clientX-b,C=i.offsetTop,O=C+i.offsetHeight;l.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${w} ${C} L${S} 0 V${C} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${w} ${O} L${S} ${T} V${O} Z" />
`}else a||(a=window.setTimeout(p,o.config.hoverThreshold))},m=()=>{a&&(clearTimeout(a),a=null)},p=()=>{l.value&&(l.value.innerHTML="",m())};return{ns:n,panel:o,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:s,handleExpand:h,handleMouseMove:g,clearHoverZone:p}}});function bZ(e,t,n,s,r,i){const a=kt("el-cascader-node"),o=kt("loading"),l=kt("el-icon"),u=kt("el-scrollbar");return k(),fe(u,{key:e.menuId,tag:"ul",role:"menu",class:$(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:L(()=>{var c;return[(k(!0),z(Ge,null,_t(e.nodes,f=>(k(),fe(a,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(k(),z("div",{key:0,class:$(e.ns.e("empty-text"))},[I(l,{size:"14",class:$(e.ns.is("loading"))},{default:L(()=>[I(o)]),_:1},8,["class"]),Re(" "+pe(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(k(),z("div",{key:1,class:$(e.ns.e("empty-text"))},pe(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(k(),z("svg",{key:2,ref:"hoverZone",class:$(e.ns.e("hover-zone"))},null,2)):ae("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var _Z=ze(yZ,[["render",bZ],["__file","menu.vue"]]);let SZ=0;const wZ=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let db=class fb{constructor(t,n,s,r=!1){this.data=t,this.config=n,this.parent=s,this.root=r,this.uid=SZ++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:a,children:o}=n,l=t[o],u=wZ(this);this.level=r?0:s?s.level+1:1,this.value=t[i],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new fb(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Mr(l)}get isDisabled(){const{data:t,parent:n,config:s}=this,{disabled:r,checkStrictly:i}=s;return(mt(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:a}=n,o=mt(a)?a(t,this):t[a];return Fn(o)?i&&!r?!1:!(Array.isArray(s)&&s.length):!!o}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:s}=this,r=new fb(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${Di(t)}`;this.children.forEach(r=>{r&&(r.broadcast(t,...n),r[s]&&r[s](...n))})}emit(t,...n){const{parent:s}=this,r=`onChild${Di(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 a=i.checked?1:i.indeterminate?.5:0;return r+a},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 hb=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(hb(s.children,t))),n),[]);class NE{constructor(t,n){this.config=n;const s=(t||[]).map(r=>new db(r,this.config));this.nodes=s,this.allNodes=hb(s,!1),this.leafNodes=hb(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new db(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=>Ds(r.value,t)||Ds(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:s,level:r})=>Ds(t.value,s)&&t.level===r)||null}}const LD=Ve({modelValue:{type:le([Number,String,Array])},options:{type:le(Array),default:()=>[]},props:{type:le(Object),default:()=>({})}}),TZ={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Jt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},CZ=e=>E(()=>({...TZ,...e.props})),ME=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},EZ=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():G4(e)&&e.click()},xZ=(e,t)=>{const n=t.slice(0),s=n.map(i=>i.uid),r=e.reduce((i,a)=>{const o=s.indexOf(a.uid);return o>-1&&(i.push(a),n.splice(o,1),s.splice(o,1)),i},[]);return r.push(...n),r},kZ=J({name:"ElCascaderPanel",components:{ElCascaderMenu:_Z},props:{...LD,border:{type:Boolean,default:!0},renderLabel:Function},emits:[$t,dn,"close","expand-change"],setup(e,{emit:t,slots:n}){let s=!1;const r=Pe("cascader"),i=CZ(e);let a=null;const o=j(!0),l=j([]),u=j(null),c=j([]),f=j(null),h=j([]),g=E(()=>i.value.expandTrigger==="hover"),m=E(()=>e.renderLabel||n.default),p=()=>{const{options:W}=e,Q=i.value;s=!1,a=new NE(W,Q),c.value=[a.getNodes()],Q.lazy&&Mr(e.options)?(o.value=!1,y(void 0,G=>{G&&(a=new NE(G,Q),c.value=[a.getNodes()]),o.value=!0,P(!1,!0)})):P(!1,!0)},y=(W,Q)=>{const G=i.value;W=W||new db({},G,void 0,!0),W.loading=!0;const X=q=>{const H=W,V=H.root?null:H;q&&(a==null||a.appendNodes(q,V)),H.loading=!1,H.loaded=!0,H.childrenData=H.childrenData||[],Q&&Q(q)};G.lazyLoad(W,X)},v=(W,Q)=>{var G;const{level:X}=W,q=c.value.slice(0,X);let H;W.isLeaf?H=W.pathNodes[X-2]:(H=W,q.push(W.children)),((G=f.value)==null?void 0:G.uid)!==(H==null?void 0:H.uid)&&(f.value=W,c.value=q,!Q&&t("expand-change",(W==null?void 0:W.pathValues)||[]))},b=(W,Q,G=!0)=>{const{checkStrictly:X,multiple:q}=i.value,H=h.value[0];s=!0,!q&&(H==null||H.doCheck(!1)),W.doCheck(Q),O(),G&&!q&&!X&&t("close"),!G&&!q&&!X&&S(W)},S=W=>{W&&(W=W.parent,S(W),W&&v(W))},T=W=>a==null?void 0:a.getFlattedNodes(W),w=W=>{var Q;return(Q=T(W))==null?void 0:Q.filter(G=>G.checked!==!1)},C=()=>{h.value.forEach(W=>W.doCheck(!1)),O(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},O=()=>{var W;const{checkStrictly:Q,multiple:G}=i.value,X=h.value,q=w(!Q),H=xZ(X,q),V=H.map(N=>N.valueByOption);h.value=H,u.value=G?V:(W=V[0])!=null?W:null},P=(W=!1,Q=!1)=>{const{modelValue:G}=e,{lazy:X,multiple:q,checkStrictly:H}=i.value,V=!H;if(!(!o.value||s||!Q&&Ds(G,u.value)))if(X&&!W){const Y=RC(XH(Sr(G))).map(Z=>a==null?void 0:a.getNodeByValue(Z)).filter(Z=>!!Z&&!Z.loaded&&!Z.loading);Y.length?Y.forEach(Z=>{y(Z,()=>P(!1,Q))}):P(!0,Q)}else{const N=q?Sr(G):[G],Y=RC(N.map(Z=>a==null?void 0:a.getNodeByValue(Z,V)));M(Y,Q),u.value=wm(G)}},M=(W,Q=!0)=>{const{checkStrictly:G}=i.value,X=h.value,q=W.filter(N=>!!N&&(G||N.isLeaf)),H=a==null?void 0:a.getSameNode(f.value),V=Q&&H||q[0];V?V.pathNodes.forEach(N=>v(N,!0)):f.value=null,X.forEach(N=>N.doCheck(!1)),Ct(q).forEach(N=>N.doCheck(!0)),h.value=q,ut(U)},U=()=>{jt&&l.value.forEach(W=>{const Q=W==null?void 0:W.$el;if(Q){const G=Q.querySelector(`.${r.namespace.value}-scrollbar__wrap`),X=Q.querySelector(`.${r.b("node")}.${r.is("active")}`)||Q.querySelector(`.${r.b("node")}.in-active-path`);j3(G,X)}})},B=W=>{const Q=W.target,{code:G}=W;switch(G){case ot.up:case ot.down:{W.preventDefault();const X=G===ot.up?-1:1;$p(Y4(Q,X,`.${r.b("node")}[tabindex="-1"]`));break}case ot.left:{W.preventDefault();const X=l.value[ME(Q)-1],q=X==null?void 0:X.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);$p(q);break}case ot.right:{W.preventDefault();const X=l.value[ME(Q)+1],q=X==null?void 0:X.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);$p(q);break}case ot.enter:EZ(Q);break}};return Mt(a2,Ct({config:i,expandingNode:f,checkedNodes:h,isHoverMenu:g,initialLoaded:o,renderLabelFn:m,lazyLoad:y,expandNode:v,handleCheckChange:b})),xe([i,()=>e.options],p,{deep:!0,immediate:!0}),xe(()=>e.modelValue,()=>{s=!1,P()},{deep:!0}),xe(()=>u.value,W=>{Ds(W,e.modelValue)||(t($t,W),t(dn,W))}),c4(()=>l.value=[]),gt(()=>!Mr(e.modelValue)&&P()),{ns:r,menuList:l,menus:c,checkedNodes:h,handleKeyDown:B,handleCheckChange:b,getFlattedNodes:T,getCheckedNodes:w,clearCheckedNodes:C,calculateCheckedValue:O,scrollToExpandingNode:U}}});function AZ(e,t,n,s,r,i){const a=kt("el-cascader-menu");return k(),z("div",{class:$([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...o)=>e.handleKeyDown&&e.handleKeyDown(...o))},[(k(!0),z(Ge,null,_t(e.menus,(o,l)=>(k(),fe(a,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...o]},null,8,["index","nodes"]))),128))],34)}var Up=ze(kZ,[["render",AZ],["__file","index.vue"]]);Up.install=e=>{e.component(Up.name,Up)};const BD=Up,IZ=BD,Gg=Ve({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Qi},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),DZ={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},OZ=J({name:"ElTag"}),PZ=J({...OZ,props:Gg,emits:DZ,setup(e,{emit:t}){const n=e,s=Kn(),r=Pe("tag"),i=E(()=>{const{type:l,hit:u,effect:c,closable:f,round:h}=n;return[r.b(),r.is("closable",f),r.m(l||"primary"),r.m(s.value),r.m(c),r.is("hit",u),r.is("round",h)]}),a=l=>{t("close",l)},o=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(k(),z("span",{key:0,class:$(d(i)),style:it({backgroundColor:l.color}),onClick:o},[R("span",{class:$(d(r).e("content"))},[be(l.$slots,"default")],2),l.closable?(k(),fe(d(tt),{key:0,class:$(d(r).e("close")),onClick:vt(a,["stop"])},{default:L(()=>[I(d(hi))]),_:1},8,["class","onClick"])):ae("v-if",!0)],6)):(k(),fe(Wn,{key:1,name:`${d(r).namespace.value}-zoom-in-center`,appear:""},{default:L(()=>[R("span",{class:$(d(i)),style:it({backgroundColor:l.color}),onClick:o},[R("span",{class:$(d(r).e("content"))},[be(l.$slots,"default")],2),l.closable?(k(),fe(d(tt),{key:0,class:$(d(r).e("close")),onClick:vt(a,["stop"])},{default:L(()=>[I(d(hi))]),_:1},8,["class","onClick"])):ae("v-if",!0)],6)]),_:3},8,["name"]))}});var $Z=ze(PZ,[["__file","tag.vue"]]);const _a=Dt($Z),RZ=Ve({...LD,size:es,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:le(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:le(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:as.teleported,tagType:{...Gg.type,default:"info"},validateEvent:{type:Boolean,default:!0},...Ac}),NZ={[$t]:e=>!0,[dn]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Hn(e),expandChange:e=>!!e,removeTag:e=>!!e},MZ={key:0},LZ=["placeholder","onKeydown"],BZ=["onClick"],FZ="ElCascader",VZ=J({name:FZ}),UZ=J({...VZ,props:RZ,emits:NZ,setup(e,{expose:t,emit:n}){const s=e,r={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ve})=>{const{modifiersData:$e,placement:st}=ve;["right","left","bottom","top"].includes(st)||($e.arrow.x=35)},requires:["arrow"]}]},i=$l();let a=0,o=0;const l=Pe("cascader"),u=Pe("input"),{t:c}=Wt(),{form:f,formItem:h}=$s(),{valueOnClear:g}=zg(s),m=j(null),p=j(null),y=j(null),v=j(null),b=j(null),S=j(!1),T=j(!1),w=j(!1),C=j(!1),O=j(""),P=j(""),M=j([]),U=j([]),B=j([]),W=j(!1),Q=E(()=>i.style),G=E(()=>s.disabled||(f==null?void 0:f.disabled)),X=E(()=>s.placeholder||c("el.cascader.placeholder")),q=E(()=>P.value||M.value.length>0||W.value?"":X.value),H=Kn(),V=E(()=>["small"].includes(H.value)?"small":"default"),N=E(()=>!!s.props.multiple),Y=E(()=>!s.filterable||N.value),Z=E(()=>N.value?P.value:O.value),ne=E(()=>{var ve;return((ve=v.value)==null?void 0:ve.checkedNodes)||[]}),ue=E(()=>!s.clearable||G.value||w.value||!T.value?!1:!!ne.value.length),_e=E(()=>{const{showAllLevels:ve,separator:$e}=s,st=ne.value;return st.length?N.value?"":st[0].calcText(ve,$e):""}),Ne=E(()=>(h==null?void 0:h.validateState)||""),ce=E({get(){return wm(s.modelValue)},set(ve){const $e=ve||g.value;n($t,$e),n(dn,$e),s.validateEvent&&(h==null||h.validate("change").catch(st=>void 0))}}),te=E(()=>[l.b(),l.m(H.value),l.is("disabled",G.value),i.class]),ie=E(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",S.value)]),we=E(()=>l.is("focus",S.value||C.value)),me=E(()=>{var ve,$e;return($e=(ve=m.value)==null?void 0:ve.popperRef)==null?void 0:$e.contentRef}),Ce=ve=>{var $e,st,ye;G.value||(ve=ve??!S.value,ve!==S.value&&(S.value=ve,(st=($e=p.value)==null?void 0:$e.input)==null||st.setAttribute("aria-expanded",`${ve}`),ve?(Be(),ut((ye=v.value)==null?void 0:ye.scrollToExpandingNode)):s.filterable&&ke(),n("visibleChange",ve)))},Be=()=>{ut(()=>{var ve;(ve=m.value)==null||ve.updatePopper()})},ee=()=>{w.value=!1},se=ve=>{const{showAllLevels:$e,separator:st}=s;return{node:ve,key:ve.uid,text:ve.calcText($e,st),hitState:!1,closable:!G.value&&!ve.isDisabled,isCollapseTag:!1}},Te=ve=>{var $e;const st=ve.node;st.doCheck(!1),($e=v.value)==null||$e.calculateCheckedValue(),n("removeTag",st.valueByOption)},Le=()=>{if(!N.value)return;const ve=ne.value,$e=[],st=[];if(ve.forEach(ye=>st.push(se(ye))),U.value=st,ve.length){ve.slice(0,s.maxCollapseTags).forEach(Rt=>$e.push(se(Rt)));const ye=ve.slice(s.maxCollapseTags),at=ye.length;at&&(s.collapseTags?$e.push({key:-1,text:`+ ${at}`,closable:!1,isCollapseTag:!0}):ye.forEach(Rt=>$e.push(se(Rt))))}M.value=$e},Se=()=>{var ve,$e;const{filterMethod:st,showAllLevels:ye,separator:at}=s,Rt=($e=(ve=v.value)==null?void 0:ve.getFlattedNodes(!s.props.checkStrictly))==null?void 0:$e.filter(Qt=>Qt.isDisabled?!1:(Qt.calcText(ye,at),st(Qt,Z.value)));N.value&&(M.value.forEach(Qt=>{Qt.hitState=!1}),U.value.forEach(Qt=>{Qt.hitState=!1})),w.value=!0,B.value=Rt,Be()},De=()=>{var ve;let $e;w.value&&b.value?$e=b.value.$el.querySelector(`.${l.e("suggestion-item")}`):$e=(ve=v.value)==null?void 0:ve.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),$e&&($e.focus(),!w.value&&$e.click())},Fe=()=>{var ve,$e;const st=(ve=p.value)==null?void 0:ve.input,ye=y.value,at=($e=b.value)==null?void 0:$e.$el;if(!(!jt||!st)){if(at){const Rt=at.querySelector(`.${l.e("suggestion-list")}`);Rt.style.minWidth=`${st.offsetWidth}px`}if(ye){const{offsetHeight:Rt}=ye,Qt=M.value.length>0?`${Math.max(Rt+6,a)}px`:`${a}px`;st.style.height=Qt,Be()}}},Ie=ve=>{var $e;return($e=v.value)==null?void 0:$e.getCheckedNodes(ve)},je=ve=>{Be(),n("expandChange",ve)},Ee=ve=>{var $e;const st=($e=ve.target)==null?void 0:$e.value;if(ve.type==="compositionend")W.value=!1,ut(()=>Ue(st));else{const ye=st[st.length-1]||"";W.value=!I1(ye)}},Ze=ve=>{if(!W.value)switch(ve.code){case ot.enter:Ce();break;case ot.down:Ce(!0),ut(De),ve.preventDefault();break;case ot.esc:S.value===!0&&(ve.preventDefault(),ve.stopPropagation(),Ce(!1));break;case ot.tab:Ce(!1);break}},nt=()=>{var ve;(ve=v.value)==null||ve.clearCheckedNodes(),!S.value&&s.filterable&&ke(),Ce(!1)},ke=()=>{const{value:ve}=_e;O.value=ve,P.value=ve},et=ve=>{var $e,st;const{checked:ye}=ve;N.value?($e=v.value)==null||$e.handleCheckChange(ve,!ye,!1):(!ye&&((st=v.value)==null||st.handleCheckChange(ve,!0,!1)),Ce(!1))},dt=ve=>{const $e=ve.target,{code:st}=ve;switch(st){case ot.up:case ot.down:{const ye=st===ot.up?-1:1;$p(Y4($e,ye,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case ot.enter:$e.click();break}},At=()=>{const ve=M.value,$e=ve[ve.length-1];o=P.value?0:o+1,!(!$e||!o||s.collapseTags&&ve.length>1)&&($e.hitState?Te($e):$e.hitState=!0)},xt=ve=>{const $e=ve.target,st=l.e("search-input");$e.className===st&&(C.value=!0),n("focus",ve)},ct=ve=>{C.value=!1,n("blur",ve)},Ae=or(()=>{const{value:ve}=Z;if(!ve)return;const $e=s.beforeFilter(ve);rf($e)?$e.then(Se).catch(()=>{}):$e!==!1?Se():ee()},s.debounce),Ue=(ve,$e)=>{!S.value&&Ce(!0),!($e!=null&&$e.isComposing)&&(ve?Ae():ee())},Me=ve=>Number.parseFloat(HB(u.cssVarName("input-height"),ve).value)-2;return xe(w,Be),xe([ne,G],Le),xe(M,()=>{ut(()=>Fe())}),xe(H,async()=>{await ut();const ve=p.value.input;a=Me(ve)||a,Fe()}),xe(_e,ke,{immediate:!0}),gt(()=>{const ve=p.value.input,$e=Me(ve);a=ve.offsetHeight||$e,Sn(ve,Fe)}),t({getCheckedNodes:Ie,cascaderPanelRef:v,togglePopperVisible:Ce,contentRef:me}),(ve,$e)=>(k(),fe(d(gs),{ref_key:"tooltipRef",ref:m,visible:S.value,teleported:ve.teleported,"popper-class":[d(l).e("dropdown"),ve.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:`${d(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:ee},{default:L(()=>[yt((k(),z("div",{class:$(d(te)),style:it(d(Q)),onClick:$e[5]||($e[5]=()=>Ce(d(Y)?void 0:!0)),onKeydown:Ze,onMouseenter:$e[6]||($e[6]=st=>T.value=!0),onMouseleave:$e[7]||($e[7]=st=>T.value=!1)},[I(d(Vn),{ref_key:"input",ref:p,modelValue:O.value,"onUpdate:modelValue":$e[1]||($e[1]=st=>O.value=st),placeholder:d(q),readonly:d(Y),disabled:d(G),"validate-event":!1,size:d(H),class:$(d(we)),tabindex:d(N)&&ve.filterable&&!d(G)?-1:void 0,onCompositionstart:Ee,onCompositionupdate:Ee,onCompositionend:Ee,onFocus:xt,onBlur:ct,onInput:Ue},{suffix:L(()=>[d(ue)?(k(),fe(d(tt),{key:"clear",class:$([d(u).e("icon"),"icon-circle-close"]),onClick:vt(nt,["stop"])},{default:L(()=>[I(d(ko))]),_:1},8,["class","onClick"])):(k(),fe(d(tt),{key:"arrow-down",class:$(d(ie)),onClick:$e[0]||($e[0]=vt(st=>Ce(),["stop"]))},{default:L(()=>[I(d(Xi))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),d(N)?(k(),z("div",{key:0,ref_key:"tagWrapper",ref:y,class:$([d(l).e("tags"),d(l).is("validate",!!d(Ne))])},[(k(!0),z(Ge,null,_t(M.value,st=>(k(),fe(d(_a),{key:st.key,type:ve.tagType,size:d(V),hit:st.hitState,closable:st.closable,"disable-transitions":"",onClose:ye=>Te(st)},{default:L(()=>[st.isCollapseTag===!1?(k(),z("span",MZ,pe(st.text),1)):(k(),fe(d(gs),{key:1,disabled:S.value||!ve.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:L(()=>[R("span",null,pe(st.text),1)]),content:L(()=>[R("div",{class:$(d(l).e("collapse-tags"))},[(k(!0),z(Ge,null,_t(U.value.slice(ve.maxCollapseTags),(ye,at)=>(k(),z("div",{key:at,class:$(d(l).e("collapse-tag"))},[(k(),fe(d(_a),{key:ye.key,class:"in-tooltip",type:ve.tagType,size:d(V),hit:ye.hitState,closable:ye.closable,"disable-transitions":"",onClose:Rt=>Te(ye)},{default:L(()=>[R("span",null,pe(ye.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),ve.filterable&&!d(G)?yt((k(),z("input",{key:0,"onUpdate:modelValue":$e[2]||($e[2]=st=>P.value=st),type:"text",class:$(d(l).e("search-input")),placeholder:d(_e)?"":d(X),onInput:$e[3]||($e[3]=st=>Ue(P.value,st)),onClick:$e[4]||($e[4]=vt(st=>Ce(!0),["stop"])),onKeydown:Zt(At,["delete"]),onCompositionstart:Ee,onCompositionupdate:Ee,onCompositionend:Ee,onFocus:xt,onBlur:ct},null,42,LZ)),[[va,P.value]]):ae("v-if",!0)],2)):ae("v-if",!0)],38)),[[d(ba),()=>Ce(!1),d(me)]])]),content:L(()=>[yt(I(d(BD),{ref_key:"cascaderPanelRef",ref:v,modelValue:d(ce),"onUpdate:modelValue":$e[8]||($e[8]=st=>hn(ce)?ce.value=st:null),options:ve.options,props:s.props,border:!1,"render-label":ve.$slots.default,onExpandChange:je,onClose:$e[9]||($e[9]=st=>ve.$nextTick(()=>Ce(!1)))},null,8,["modelValue","options","props","render-label"]),[[zt,!w.value]]),ve.filterable?yt((k(),fe(d(Da),{key:0,ref_key:"suggestionPanel",ref:b,tag:"ul",class:$(d(l).e("suggestion-panel")),"view-class":d(l).e("suggestion-list"),onKeydown:dt},{default:L(()=>[B.value.length?(k(!0),z(Ge,{key:0},_t(B.value,st=>(k(),z("li",{key:st.uid,class:$([d(l).e("suggestion-item"),d(l).is("checked",st.checked)]),tabindex:-1,onClick:ye=>et(st)},[R("span",null,pe(st.text),1),st.checked?(k(),fe(d(tt),{key:0},{default:L(()=>[I(d(eh))]),_:1})):ae("v-if",!0)],10,BZ))),128)):be(ve.$slots,"empty",{key:1},()=>[R("li",{class:$(d(l).e("empty-text"))},pe(d(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[zt,w.value]]):ae("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Hp=ze(UZ,[["__file","cascader.vue"]]);Hp.install=e=>{e.component(Hp.name,Hp)};const HZ=Hp,zZ=HZ,jZ=Ve({checked:{type:Boolean,default:!1},type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),qZ={"update:checked":e=>Hn(e),[dn]:e=>Hn(e)},WZ=J({name:"ElCheckTag"}),KZ=J({...WZ,props:jZ,emits:qZ,setup(e,{emit:t}){const n=e,s=Pe("check-tag"),r=E(()=>[s.b(),s.is("checked",n.checked),s.m(n.type||"primary")]),i=()=>{const a=!n.checked;t(dn,a),t("update:checked",a)};return(a,o)=>(k(),z("span",{class:$(d(r)),onClick:i},[be(a.$slots,"default")],2))}});var GZ=ze(KZ,[["__file","check-tag.vue"]]);const YZ=Dt(GZ),FD=Symbol("rowContextKey"),XZ=["start","center","end","space-around","space-between","space-evenly"],QZ=["top","middle","bottom"],JZ=Ve({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:XZ,default:"start"},align:{type:String,values:QZ}}),ZZ=J({name:"ElRow"}),eee=J({...ZZ,props:JZ,setup(e){const t=e,n=Pe("row"),s=E(()=>t.gutter);Mt(FD,{gutter:s});const r=E(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),i=E(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(a,o)=>(k(),fe(Nt(a.tag),{class:$(d(i)),style:it(d(r))},{default:L(()=>[be(a.$slots,"default")]),_:3},8,["class","style"]))}});var tee=ze(eee,[["__file","row.vue"]]);const VD=Dt(tee),nee=Ve({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:le([Number,Object]),default:()=>wn({})},sm:{type:le([Number,Object]),default:()=>wn({})},md:{type:le([Number,Object]),default:()=>wn({})},lg:{type:le([Number,Object]),default:()=>wn({})},xl:{type:le([Number,Object]),default:()=>wn({})}}),see=J({name:"ElCol"}),ree=J({...see,props:nee,setup(e){const t=e,{gutter:n}=Je(FD,{gutter:E(()=>0)}),s=Pe("col"),r=E(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),i=E(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];pt(c)&&(u==="span"?a.push(s.b(`${t[u]}`)):c>0&&a.push(s.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{pt(t[u])?a.push(s.b(`${u}-${t[u]}`)):Pt(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{a.push(c!=="span"?s.b(`${u}-${c}-${f}`):s.b(`${u}-${f}`))})}),n.value&&a.push(s.is("guttered")),[s.b(),a]});return(a,o)=>(k(),fe(Nt(a.tag),{class:$(d(i)),style:it(d(r))},{default:L(()=>[be(a.$slots,"default")]),_:3},8,["class","style"]))}});var iee=ze(ree,[["__file","col.vue"]]);const UD=Dt(iee),LE=e=>pt(e)||bt(e)||Xe(e),aee=Ve({accordion:Boolean,modelValue:{type:le([Array,String,Number]),default:()=>wn([])}}),oee={[$t]:LE,[dn]:LE},HD=Symbol("collapseContextKey"),lee=(e,t)=>{const n=j(ho(e.modelValue)),s=i=>{n.value=i;const a=e.accordion?n.value[0]:n.value;t($t,a),t(dn,a)},r=i=>{if(e.accordion)s([n.value[0]===i?"":i]);else{const a=[...n.value],o=a.indexOf(i);o>-1?a.splice(o,1):a.push(i),s(a)}};return xe(()=>e.modelValue,()=>n.value=ho(e.modelValue),{deep:!0}),Mt(HD,{activeNames:n,handleItemClick:r}),{activeNames:n,setActiveNames:s}},uee=()=>{const e=Pe("collapse");return{rootKls:E(()=>e.b())}},cee=J({name:"ElCollapse"}),dee=J({...cee,props:aee,emits:oee,setup(e,{expose:t,emit:n}){const s=e,{activeNames:r,setActiveNames:i}=lee(s,n),{rootKls:a}=uee();return t({activeNames:r,setActiveNames:i}),(o,l)=>(k(),z("div",{class:$(d(a))},[be(o.$slots,"default")],2))}});var fee=ze(dee,[["__file","collapse.vue"]]);const hee=J({name:"ElCollapseTransition"}),pee=J({...hee,setup(e){const t=Pe("collapse-transition"),n=r=>{r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom},s={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.height&&(r.dataset.elExistsHeight=r.style.height),r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){requestAnimationFrame(()=>{r.dataset.oldOverflow=r.style.overflow,r.dataset.elExistsHeight?r.style.maxHeight=r.dataset.elExistsHeight:r.scrollHeight!==0?r.style.maxHeight=`${r.scrollHeight}px`:r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom,r.style.overflow="hidden"})},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},enterCancelled(r){n(r)},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){n(r)},leaveCancelled(r){n(r)}};return(r,i)=>(k(),fe(Wn,Lt({name:d(t).b()},J6(s)),{default:L(()=>[be(r.$slots,"default")]),_:3},16,["name"]))}});var zp=ze(pee,[["__file","collapse-transition.vue"]]);zp.install=e=>{e.component(zp.name,zp)};const Yg=zp,zD=Yg,mee=Ve({title:{type:String,default:""},name:{type:le([String,Number]),default:void 0},disabled:Boolean}),gee=e=>{const t=Je(HD),{namespace:n}=Pe("collapse"),s=j(!1),r=j(!1),i=H1(),a=E(()=>i.current++),o=E(()=>{var h;return(h=e.name)!=null?h:`${n.value}-id-${i.prefix}-${d(a)}`}),l=E(()=>t==null?void 0:t.activeNames.value.includes(d(o)));return{focusing:s,id:a,isActive:l,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:s.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(d(o)),s.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(d(o))}}},vee=(e,{focusing:t,isActive:n,id:s})=>{const r=Pe("collapse"),i=E(()=>[r.b("item"),r.is("active",d(n)),r.is("disabled",e.disabled)]),a=E(()=>[r.be("item","header"),r.is("active",d(n)),{focusing:d(t)&&!e.disabled}]),o=E(()=>[r.be("item","arrow"),r.is("active",d(n))]),l=E(()=>r.be("item","wrap")),u=E(()=>r.be("item","content")),c=E(()=>r.b(`content-${d(s)}`)),f=E(()=>r.b(`head-${d(s)}`));return{arrowKls:o,headKls:a,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},yee=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],bee=["id","aria-hidden","aria-labelledby"],_ee=J({name:"ElCollapseItem"}),See=J({..._ee,props:mee,setup(e,{expose:t}){const n=e,{focusing:s,id:r,isActive:i,handleFocus:a,handleHeaderClick:o,handleEnterClick:l}=gee(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:h,itemContentKls:g,scopedContentId:m,scopedHeadId:p}=vee(n,{focusing:s,isActive:i,id:r});return t({isActive:i}),(y,v)=>(k(),z("div",{class:$(d(f))},[R("button",{id:d(p),class:$(d(c)),"aria-expanded":d(i),"aria-controls":d(m),"aria-describedby":d(m),tabindex:y.disabled?-1:0,type:"button",onClick:v[0]||(v[0]=(...b)=>d(o)&&d(o)(...b)),onKeydown:v[1]||(v[1]=Zt(vt((...b)=>d(l)&&d(l)(...b),["stop","prevent"]),["space","enter"])),onFocus:v[2]||(v[2]=(...b)=>d(a)&&d(a)(...b)),onBlur:v[3]||(v[3]=b=>s.value=!1)},[be(y.$slots,"title",{},()=>[Re(pe(y.title),1)]),I(d(tt),{class:$(d(u))},{default:L(()=>[I(d(Hs))]),_:1},8,["class"])],42,yee),I(d(Yg),null,{default:L(()=>[yt(R("div",{id:d(m),role:"region",class:$(d(h)),"aria-hidden":!d(i),"aria-labelledby":d(p)},[R("div",{class:$(d(g))},[be(y.$slots,"default")],2)],10,bee),[[zt,d(i)]])]),_:3})],2))}});var jD=ze(See,[["__file","collapse-item.vue"]]);const wee=Dt(fee,{CollapseItem:jD}),Tee=Tn(jD),Cee=Ve({color:{type:le(Object),required:!0},vertical:{type:Boolean,default:!1}});let x0=!1;function Ef(e,t){if(!jt)return;const n=function(i){var a;(a=t.drag)==null||a.call(t,i)},s=function(i){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",s),document.onselectstart=null,document.ondragstart=null,x0=!1,(a=t.end)==null||a.call(t,i)},r=function(i){var a;x0||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",s),document.addEventListener("touchmove",n),document.addEventListener("touchend",s),x0=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r)}const Eee=e=>{const t=It(),n=ln(),s=ln();function r(a){a.target!==n.value&&i(a)}function i(a){if(!s.value||!n.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=t1(a);if(e.vertical){let f=c-l.top;f=Math.max(n.value.offsetHeight/2,f),f=Math.min(f,l.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((f-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(n.value.offsetWidth/2,f),f=Math.min(f,l.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((f-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:s,handleDrag:i,handleClick:r}},xee=(e,{bar:t,thumb:n,handleDrag:s})=>{const r=It(),i=Pe("color-alpha-slider"),a=j(0),o=j(0),l=j();function u(){if(!n.value||e.vertical)return 0;const b=r.vnode.el,S=e.color.get("alpha");return b?Math.round(S*(b.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const b=r.vnode.el;if(!e.vertical)return 0;const S=e.color.get("alpha");return b?Math.round(S*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:b,g:S,b:T}=e.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${S}, ${T}, 0) 0%, rgba(${b}, ${S}, ${T}, 1) 100%)`}return""}function h(){a.value=u(),o.value=c(),l.value=f()}gt(()=>{if(!t.value||!n.value)return;const b={drag:S=>{s(S)},end:S=>{s(S)}};Ef(t.value,b),Ef(n.value,b),h()}),xe(()=>e.color.get("alpha"),()=>h()),xe(()=>e.color.value,()=>h());const g=E(()=>[i.b(),i.is("vertical",e.vertical)]),m=E(()=>i.e("bar")),p=E(()=>i.e("thumb")),y=E(()=>({background:l.value})),v=E(()=>({left:In(a.value),top:In(o.value)}));return{rootKls:g,barKls:m,barStyle:y,thumbKls:p,thumbStyle:v,update:h}},kee="ElColorAlphaSlider",Aee=J({name:kee}),Iee=J({...Aee,props:Cee,setup(e,{expose:t}){const n=e,{bar:s,thumb:r,handleDrag:i,handleClick:a}=Eee(n),{rootKls:o,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:h}=xee(n,{bar:s,thumb:r,handleDrag:i});return t({update:h,bar:s,thumb:r}),(g,m)=>(k(),z("div",{class:$(d(o))},[R("div",{ref_key:"bar",ref:s,class:$(d(l)),style:it(d(u)),onClick:m[0]||(m[0]=(...p)=>d(a)&&d(a)(...p))},null,6),R("div",{ref_key:"thumb",ref:r,class:$(d(c)),style:it(d(f))},null,6)],2))}});var Dee=ze(Iee,[["__file","alpha-slider.vue"]]);const Oee=J({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Pe("color-hue-slider"),n=It(),s=j(),r=j(),i=j(0),a=j(0),o=E(()=>e.color.get("hue"));xe(()=>o.value,()=>{h()});function l(g){g.target!==s.value&&u(g)}function u(g){if(!r.value||!s.value)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:y,clientY:v}=t1(g);let b;if(e.vertical){let S=v-p.top;S=Math.min(S,p.height-s.value.offsetHeight/2),S=Math.max(s.value.offsetHeight/2,S),b=Math.round((S-s.value.offsetHeight/2)/(p.height-s.value.offsetHeight)*360)}else{let S=y-p.left;S=Math.min(S,p.width-s.value.offsetWidth/2),S=Math.max(s.value.offsetWidth/2,S),b=Math.round((S-s.value.offsetWidth/2)/(p.width-s.value.offsetWidth)*360)}e.color.set("hue",b)}function c(){if(!s.value)return 0;const g=n.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return g?Math.round(m*(g.offsetWidth-s.value.offsetWidth/2)/360):0}function f(){if(!s.value)return 0;const g=n.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return g?Math.round(m*(g.offsetHeight-s.value.offsetHeight/2)/360):0}function h(){i.value=c(),a.value=f()}return gt(()=>{if(!r.value||!s.value)return;const g={drag:m=>{u(m)},end:m=>{u(m)}};Ef(r.value,g),Ef(s.value,g),h()}),{bar:r,thumb:s,thumbLeft:i,thumbTop:a,hueValue:o,handleClick:l,update:h,ns:t}}});function Pee(e,t,n,s,r,i){return k(),z("div",{class:$([e.ns.b(),e.ns.is("vertical",e.vertical)])},[R("div",{ref:"bar",class:$(e.ns.e("bar")),onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},null,2),R("div",{ref:"thumb",class:$(e.ns.e("thumb")),style:it({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var $ee=ze(Oee,[["render",Pee],["__file","hue-slider.vue"]]);const Ree=Ve({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:es,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},teleported:as.teleported,predefine:{type:le(Array)},validateEvent:{type:Boolean,default:!0},...ys(["ariaLabel"])}),Nee={[$t]:e=>bt(e)||os(e),[dn]:e=>bt(e)||os(e),activeChange:e=>bt(e)||os(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},qD=Symbol("colorPickerContextKey"),BE=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Mee=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},Lee=function(e){return typeof e=="string"&&e.includes("%")},Cu=function(e,t){Mee(e)&&(e="100%");const n=Lee(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)},FE={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},jp=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${FE[t]||t}${FE[n]||n}`},VE=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${jp(e)}${jp(t)}${jp(n)}`},k0={A:10,B:11,C:12,D:13,E:14,F:15},qo=function(e){return e.length===2?(k0[e[0].toUpperCase()]||+e[0])*16+(k0[e[1].toUpperCase()]||+e[1]):k0[e[1].toUpperCase()]||+e[1]},Bee=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,a=n===0?2*s/(r+s):2*t/(n+t);return{h:e,s:a*100,v:i*100}},UE=(e,t,n)=>{e=Cu(e,255),t=Cu(t,255),n=Cu(n,255);const s=Math.max(e,t,n),r=Math.min(e,t,n);let i;const a=s,o=s-r,l=s===0?0:o/s;if(s===r)i=0;else{switch(s){case e:{i=(t-n)/o+(t<n?6:0);break}case t:{i=(n-e)/o+2;break}case n:{i=(e-t)/o+4;break}}i/=6}return{h:i*360,s:l*100,v:a*100}},od=function(e,t,n){e=Cu(e,360)*6,t=Cu(t,100),n=Cu(n,100);const s=Math.floor(e),r=e-s,i=n*(1-t),a=n*(1-r*t),o=n*(1-(1-r)*t),l=s%6,u=[n,a,i,i,o,n][l],c=[o,n,n,a,i,i][l],f=[i,i,o,n,n,a][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};class Wd{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)qt(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)qt(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 od(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:a}=Bee(s[0],s[1],s[2]);n(r,i,a)}}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:a}=UE(s[0],s[1],s[2]);n(r,i,a)}}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,a;s.length===3?(r=qo(s[0]+s[0]),i=qo(s[1]+s[1]),a=qo(s[2]+s[2])):(s.length===6||s.length===8)&&(r=qo(s.slice(0,2)),i=qo(s.slice(2,4)),a=qo(s.slice(4,6))),s.length===8?this._alpha=qo(s.slice(6))/255*100:(s.length===3||s.length===6)&&(this._alpha=100);const{h:o,s:l,v:u}=UE(r,i,a);n(o,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 a=BE(t,n/100,s/100);this.value=`hsla(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[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=`${VE(od(t,n,s))}${jp(r*255/100)}`;break}default:{const{r:a,g:o,b:l}=od(t,n,s);this.value=`rgba(${a}, ${o}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const a=BE(t,n/100,s/100);this.value=`hsl(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(s)}%)`;break}case"rgb":{const{r:a,g:o,b:l}=od(t,n,s);this.value=`rgb(${a}, ${o}, ${l})`;break}default:this.value=VE(od(t,n,s))}}}const Fee=J({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=Pe("color-predefine"),{currentColor:n}=Je(qD),s=j(i(e.colors,e.color));xe(()=>n.value,a=>{const o=new Wd;o.fromString(a),s.value.forEach(l=>{l.selected=o.compare(l)})}),ps(()=>{s.value=i(e.colors,e.color)});function r(a){e.color.fromString(e.colors[a])}function i(a,o){return a.map(l=>{const u=new Wd;return u.enableAlpha=e.enableAlpha,u.format="rgba",u.fromString(l),u.selected=u.value===o.value,u})}return{rgbaColors:s,handleSelect:r,ns:t}}}),Vee=["onClick"];function Uee(e,t,n,s,r,i){return k(),z("div",{class:$(e.ns.b())},[R("div",{class:$(e.ns.e("colors"))},[(k(!0),z(Ge,null,_t(e.rgbaColors,(a,o)=>(k(),z("div",{key:e.colors[o],class:$([e.ns.e("color-selector"),e.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:l=>e.handleSelect(o)},[R("div",{style:it({backgroundColor:a.value})},null,4)],10,Vee))),128))],2)],2)}var Hee=ze(Fee,[["render",Uee],["__file","predefine.vue"]]);const zee=J({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Pe("color-svpanel"),n=It(),s=j(0),r=j(0),i=j("hsl(0, 100%, 50%)"),a=E(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function o(){const u=e.color.get("saturation"),c=e.color.get("value"),f=n.vnode.el,{clientWidth:h,clientHeight:g}=f;r.value=u*h/100,s.value=(100-c)*g/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:h,clientY:g}=t1(u);let m=h-f.left,p=g-f.top;m=Math.max(0,m),m=Math.min(m,f.width),p=Math.max(0,p),p=Math.min(p,f.height),r.value=m,s.value=p,e.color.set({saturation:m/f.width*100,value:100-p/f.height*100})}return xe(()=>a.value,()=>{o()}),gt(()=>{Ef(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),o()}),{cursorTop:s,cursorLeft:r,background:i,colorValue:a,handleDrag:l,update:o,ns:t}}}),jee=R("div",null,null,-1),qee=[jee];function Wee(e,t,n,s,r,i){return k(),z("div",{class:$(e.ns.b()),style:it({backgroundColor:e.background})},[R("div",{class:$(e.ns.e("white"))},null,2),R("div",{class:$(e.ns.e("black"))},null,2),R("div",{class:$(e.ns.e("cursor")),style:it({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},qee,6)],6)}var Kee=ze(zee,[["render",Wee],["__file","sv-panel.vue"]]);const Gee=["onKeydown"],Yee=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],Xee=J({name:"ElColorPicker"}),Qee=J({...Xee,props:Ree,emits:Nee,setup(e,{expose:t,emit:n}){const s=e,{t:r}=Wt(),i=Pe("color"),{formItem:a}=$s(),o=Kn(),l=Gs(),{inputId:u,isLabeledByFormItem:c}=_i(s,{formItemContext:a}),f=j(),h=j(),g=j(),m=j(),p=j(),y=j(),{isFocused:v,handleFocus:b,handleBlur:S}=Hg(p,{beforeBlur(me){var Ce;return(Ce=m.value)==null?void 0:Ce.isFocusInsideContent(me)},afterBlur(){q(!1),Y()}}),T=me=>{if(l.value)return we();b(me)};let w=!0;const C=Ct(new Wd({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue})),O=j(!1),P=j(!1),M=j(""),U=E(()=>!s.modelValue&&!P.value?"transparent":X(C,s.showAlpha)),B=E(()=>!s.modelValue&&!P.value?"":C.value),W=E(()=>c.value?void 0:s.label||s.ariaLabel||r("el.colorpicker.defaultLabel"));ss({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-color-picker",ref:"https://element-plus.org/en-US/component/color-picker.html"},E(()=>!!s.label));const Q=E(()=>c.value?a==null?void 0:a.labelId:void 0),G=E(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",o.value),i.is("focused",v.value)]);function X(me,Ce){if(!(me instanceof Wd))throw new TypeError("color should be instance of _color Class");const{r:Be,g:ee,b:se}=me.toRgb();return Ce?`rgba(${Be}, ${ee}, ${se}, ${me.get("alpha")/100})`:`rgb(${Be}, ${ee}, ${se})`}function q(me){O.value=me}const H=or(q,100,{leading:!0});function V(){l.value||q(!0)}function N(){H(!1),Y()}function Y(){ut(()=>{s.modelValue?C.fromString(s.modelValue):(C.value="",ut(()=>{P.value=!1}))})}function Z(){l.value||H(!O.value)}function ne(){C.fromString(M.value)}function ue(){const me=C.value;n($t,me),n("change",me),s.validateEvent&&(a==null||a.validate("change").catch(Ce=>void 0)),H(!1),ut(()=>{const Ce=new Wd({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue});C.compare(Ce)||Y()})}function _e(){H(!1),n($t,null),n("change",null),s.modelValue!==null&&s.validateEvent&&(a==null||a.validate("change").catch(me=>void 0)),Y()}function Ne(me){if(O.value&&(N(),v.value)){const Ce=new FocusEvent("focus",me);S(Ce)}}function ce(me){me.preventDefault(),me.stopPropagation(),q(!1),Y()}function te(me){switch(me.code){case ot.enter:case ot.space:me.preventDefault(),me.stopPropagation(),V(),y.value.focus();break;case ot.esc:ce(me);break}}function ie(){p.value.focus()}function we(){p.value.blur()}return gt(()=>{s.modelValue&&(M.value=B.value)}),xe(()=>s.modelValue,me=>{me?me&&me!==C.value&&(w=!1,C.fromString(me)):P.value=!1}),xe(()=>B.value,me=>{M.value=me,w&&n("activeChange",me),w=!0}),xe(()=>C.value,()=>{!s.modelValue&&!P.value&&(P.value=!0)}),xe(()=>O.value,()=>{ut(()=>{var me,Ce,Be;(me=f.value)==null||me.update(),(Ce=h.value)==null||Ce.update(),(Be=g.value)==null||Be.update()})}),Mt(qD,{currentColor:B}),t({color:C,show:V,hide:N,focus:ie,blur:we}),(me,Ce)=>(k(),fe(d(gs),{ref_key:"popper",ref:m,visible:O.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[d(i).be("picker","panel"),d(i).b("dropdown"),me.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:me.teleported,transition:`${d(i).namespace.value}-zoom-in-top`,persistent:"",onHide:Ce[2]||(Ce[2]=Be=>q(!1))},{content:L(()=>[yt((k(),z("div",{onKeydown:Zt(ce,["esc"])},[R("div",{class:$(d(i).be("dropdown","main-wrapper"))},[I($ee,{ref_key:"hue",ref:f,class:"hue-slider",color:d(C),vertical:""},null,8,["color"]),I(Kee,{ref_key:"sv",ref:h,color:d(C)},null,8,["color"])],2),me.showAlpha?(k(),fe(Dee,{key:0,ref_key:"alpha",ref:g,color:d(C)},null,8,["color"])):ae("v-if",!0),me.predefine?(k(),fe(Hee,{key:1,ref:"predefine","enable-alpha":me.showAlpha,color:d(C),colors:me.predefine},null,8,["enable-alpha","color","colors"])):ae("v-if",!0),R("div",{class:$(d(i).be("dropdown","btns"))},[R("span",{class:$(d(i).be("dropdown","value"))},[I(d(Vn),{ref_key:"inputRef",ref:y,modelValue:M.value,"onUpdate:modelValue":Ce[0]||(Ce[0]=Be=>M.value=Be),"validate-event":!1,size:"small",onKeyup:Zt(ne,["enter"]),onBlur:ne},null,8,["modelValue","onKeyup"])],2),I(d(gn),{class:$(d(i).be("dropdown","link-btn")),text:"",size:"small",onClick:_e},{default:L(()=>[Re(pe(d(r)("el.colorpicker.clear")),1)]),_:1},8,["class"]),I(d(gn),{plain:"",size:"small",class:$(d(i).be("dropdown","btn")),onClick:ue},{default:L(()=>[Re(pe(d(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,Gee)),[[d(ba),Ne]])]),default:L(()=>[R("div",Lt({id:d(u),ref_key:"triggerRef",ref:p},me.$attrs,{class:d(G),role:"button","aria-label":d(W),"aria-labelledby":d(Q),"aria-description":d(r)("el.colorpicker.description",{color:me.modelValue||""}),"aria-disabled":d(l),tabindex:d(l)?-1:me.tabindex,onKeydown:te,onFocus:T,onBlur:Ce[1]||(Ce[1]=(...Be)=>d(S)&&d(S)(...Be))}),[d(l)?(k(),z("div",{key:0,class:$(d(i).be("picker","mask"))},null,2)):ae("v-if",!0),R("div",{class:$(d(i).be("picker","trigger")),onClick:Z},[R("span",{class:$([d(i).be("picker","color"),d(i).is("alpha",me.showAlpha)])},[R("span",{class:$(d(i).be("picker","color-inner")),style:it({backgroundColor:d(U)})},[yt(I(d(tt),{class:$([d(i).be("picker","icon"),d(i).is("icon-arrow-down")])},{default:L(()=>[I(d(Xi))]),_:1},8,["class"]),[[zt,me.modelValue||P.value]]),yt(I(d(tt),{class:$([d(i).be("picker","empty"),d(i).is("icon-close")])},{default:L(()=>[I(d(hi))]),_:1},8,["class"]),[[zt,!me.modelValue&&!P.value]])],6)],2)],2)],16,Yee)]),_:1},8,["visible","popper-class","teleported","transition"]))}});var Jee=ze(Qee,[["__file","color-picker.vue"]]);const Zee=Dt(Jee),ete=J({name:"ElContainer"}),tte=J({...ete,props:{direction:{type:String}},setup(e){const t=e,n=us(),s=Pe("container"),r=E(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(a=>{const o=a.type.name;return o==="ElHeader"||o==="ElFooter"}):!1);return(i,a)=>(k(),z("section",{class:$([d(s).b(),d(s).is("vertical",d(r))])},[be(i.$slots,"default")],2))}});var nte=ze(tte,[["__file","container.vue"]]);const ste=J({name:"ElAside"}),rte=J({...ste,props:{width:{type:String,default:null}},setup(e){const t=e,n=Pe("aside"),s=E(()=>t.width?n.cssVarBlock({width:t.width}):{});return(r,i)=>(k(),z("aside",{class:$(d(n).b()),style:it(d(s))},[be(r.$slots,"default")],6))}});var WD=ze(rte,[["__file","aside.vue"]]);const ite=J({name:"ElFooter"}),ate=J({...ite,props:{height:{type:String,default:null}},setup(e){const t=e,n=Pe("footer"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(k(),z("footer",{class:$(d(n).b()),style:it(d(s))},[be(r.$slots,"default")],6))}});var KD=ze(ate,[["__file","footer.vue"]]);const ote=J({name:"ElHeader"}),lte=J({...ote,props:{height:{type:String,default:null}},setup(e){const t=e,n=Pe("header"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(k(),z("header",{class:$(d(n).b()),style:it(d(s))},[be(r.$slots,"default")],6))}});var GD=ze(lte,[["__file","header.vue"]]);const ute=J({name:"ElMain"}),cte=J({...ute,setup(e){const t=Pe("main");return(n,s)=>(k(),z("main",{class:$(d(t).b())},[be(n.$slots,"default")],2))}});var YD=ze(cte,[["__file","main.vue"]]);const o2=Dt(nte,{Aside:WD,Footer:KD,Header:GD,Main:YD}),XD=Tn(WD),QD=Tn(KD),l2=Tn(GD),u2=Tn(YD);var JD={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(lr,function(){return function(n,s){var r=s.prototype,i=r.format;r.format=function(a){var o=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),c=(a||"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((o.$M+1)/3);case"Do":return l.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return l.ordinal(o.week(),"W");case"w":case"ww":return u.s(o.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(o.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(o.$H===0?24:o.$H),f==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1e3);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return f}});return i.bind(this)(c)}}})})(JD);var dte=JD.exports;const fte=ks(dte);var ZD={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(lr,function(){var n="week",s="year";return function(r,i,a){var o=i.prototype;o.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=a(this).startOf(s).add(1,s).date(u),f=a(this).endOf(n);if(c.isBefore(f))return 1}var h=a(this).startOf(s).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(h,n,!0);return g<0?a(this).startOf("week").week():Math.ceil(g)},o.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(ZD);var hte=ZD.exports;const pte=ks(hte);var eO={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(lr,function(){return function(n,s){s.prototype.weekYear=function(){var r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}})})(eO);var mte=eO.exports;const gte=ks(mte);var tO={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(lr,function(){return function(n,s,r){s.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}})})(tO);var vte=tO.exports;const yte=ks(vte);var nO={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(lr,function(){return function(n,s){s.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}})})(nO);var bte=nO.exports;const _te=ks(bte);var sO={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(lr,function(){return function(n,s){s.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}})})(sO);var Ste=sO.exports;const wte=ks(Ste),c2=Symbol(),Tte=Ve({...r2,type:{type:le(String),default:"date"}}),Cte=["date","dates","year","years","month","week","range"],d2=Ve({disabledDate:{type:le(Function)},date:{type:le(Object),required:!0},minDate:{type:le(Object)},maxDate:{type:le(Object)},parsedValue:{type:le([Object,Array])},rangeState:{type:le(Object),default:()=>({endDate:null,selecting:!1})}}),rO=Ve({type:{type:le(String),required:!0,values:iq},dateFormat:String,timeFormat:String}),iO=Ve({unlinkPanels:Boolean,parsedValue:{type:le(Array)}}),f2=e=>({type:String,values:Cte,default:e}),Ete=Ve({...rO,parsedValue:{type:le([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),xte=Ve({...d2,cellClassName:{type:le(Function)},showWeekNumber:Boolean,selectionMode:f2("date")}),kte=["changerange","pick","select"],pb=e=>{if(!Xe(e))return!1;const[t,n]=e;return Ot.isDayjs(t)&&Ot.isDayjs(n)&&t.isSameOrBefore(n)},aO=(e,{lang:t,unit:n,unlinkPanels:s})=>{let r;if(Xe(e)){let[i,a]=e.map(o=>Ot(o).locale(t));return s||(a=i.add(1,n)),[i,a]}else e?r=Ot(e):r=Ot();return r=r.locale(t),[r,r.add(1,n)]},Ate=(e,t,{columnIndexOffset:n,startDate:s,nextEndDate:r,now:i,unit:a,relativeDateGetter:o,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<e.row;c++){const f=t[c];for(let h=0;h<e.column;h++){let g=f[h+n];g||(g={row:c,column:h,type:"normal",inRange:!1,start:!1,end:!1});const m=c*e.column+h,p=o(m);g.dayjs=p,g.date=p.toDate(),g.timestamp=p.valueOf(),g.type="normal",g.inRange=!!(s&&p.isSameOrAfter(s,a)&&r&&p.isSameOrBefore(r,a))||!!(s&&p.isSameOrBefore(s,a)&&r&&p.isSameOrAfter(r,a)),s!=null&&s.isSameOrAfter(r)?(g.start=!!r&&p.isSame(r,a),g.end=s&&p.isSame(s,a)):(g.start=!!s&&p.isSame(s,a),g.end=!!r&&p.isSame(r,a)),p.isSame(i,a)&&(g.type="today"),l==null||l(g,{rowIndex:c,columnIndex:h}),f[h+n]=g}u==null||u(f)}},mb=(e="")=>["normal","today"].includes(e),Ite=(e,t)=>{const{lang:n}=Wt(),s=j(),r=j(),i=j(),a=j(),o=j([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(N=>N.toLowerCase()),f=E(()=>u>3?7-u:-u),h=E(()=>{const N=e.date.startOf("month");return N.subtract(N.day()||7,"day")}),g=E(()=>c.concat(c).slice(u,u+7)),m=E(()=>m3(d(T)).some(N=>N.isCurrent)),p=E(()=>{const N=e.date.startOf("month"),Y=N.day()||7,Z=N.daysInMonth(),ne=N.subtract(1,"month").daysInMonth();return{startOfMonthDay:Y,dateCountOfMonth:Z,dateCountOfLastMonth:ne}}),y=E(()=>e.selectionMode==="dates"?Sr(e.parsedValue):[]),v=(N,{count:Y,rowIndex:Z,columnIndex:ne})=>{const{startOfMonthDay:ue,dateCountOfMonth:_e,dateCountOfLastMonth:Ne}=d(p),ce=d(f);if(Z>=0&&Z<=1){const te=ue+ce<0?7+ue+ce:ue+ce;if(ne+Z*7>=te)return N.text=Y,!0;N.text=Ne-(te-ne%7)+1+Z*7,N.type="prev-month"}else return Y<=_e?N.text=Y:(N.text=Y-_e,N.type="next-month"),!0;return!1},b=(N,{columnIndex:Y,rowIndex:Z},ne)=>{const{disabledDate:ue,cellClassName:_e}=e,Ne=d(y),ce=v(N,{count:ne,rowIndex:Z,columnIndex:Y}),te=N.dayjs.toDate();return N.selected=Ne.find(ie=>ie.isSame(N.dayjs,"day")),N.isSelected=!!N.selected,N.isCurrent=C(N),N.disabled=ue==null?void 0:ue(te),N.customClass=_e==null?void 0:_e(te),ce},S=N=>{if(e.selectionMode==="week"){const[Y,Z]=e.showWeekNumber?[1,7]:[0,6],ne=V(N[Y+1]);N[Y].inRange=ne,N[Y].start=ne,N[Z].inRange=ne,N[Z].end=ne}},T=E(()=>{const{minDate:N,maxDate:Y,rangeState:Z,showWeekNumber:ne}=e,ue=d(f),_e=d(o),Ne="day";let ce=1;if(ne)for(let te=0;te<6;te++)_e[te][0]||(_e[te][0]={type:"week",text:d(h).add(te*7+1,Ne).week()});return Ate({row:6,column:7},_e,{startDate:N,columnIndexOffset:ne?1:0,nextEndDate:Z.endDate||Y||Z.selecting&&N||null,now:Ot().locale(d(n)).startOf(Ne),unit:Ne,relativeDateGetter:te=>d(h).add(te-ue,Ne),setCellMetadata:(...te)=>{b(...te,ce)&&(ce+=1)},setRowMetadata:S}),_e});xe(()=>e.date,async()=>{var N;(N=d(s))!=null&&N.contains(document.activeElement)&&(await ut(),await w())});const w=async()=>{var N;return(N=d(r))==null?void 0:N.focus()},C=N=>e.selectionMode==="date"&&mb(N.type)&&O(N,e.parsedValue),O=(N,Y)=>Y?Ot(Y).locale(d(n)).isSame(e.date.date(Number(N.text)),"day"):!1,P=(N,Y)=>{const Z=N*7+(Y-(e.showWeekNumber?1:0))-d(f);return d(h).add(Z,"day")},M=N=>{var Y;if(!e.rangeState.selecting)return;let Z=N.target;if(Z.tagName==="SPAN"&&(Z=(Y=Z.parentNode)==null?void 0:Y.parentNode),Z.tagName==="DIV"&&(Z=Z.parentNode),Z.tagName!=="TD")return;const ne=Z.parentNode.rowIndex-1,ue=Z.cellIndex;d(T)[ne][ue].disabled||(ne!==d(i)||ue!==d(a))&&(i.value=ne,a.value=ue,t("changerange",{selecting:!0,endDate:P(ne,ue)}))},U=N=>!d(m)&&(N==null?void 0:N.text)===1&&N.type==="normal"||N.isCurrent,B=N=>{l||d(m)||e.selectionMode!=="date"||H(N,!0)},W=N=>{N.target.closest("td")&&(l=!0)},Q=N=>{N.target.closest("td")&&(l=!1)},G=N=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:N,maxDate:null}),t("select",!0)):(N>=e.minDate?t("pick",{minDate:e.minDate,maxDate:N}):t("pick",{minDate:N,maxDate:e.minDate}),t("select",!1))},X=N=>{const Y=N.week(),Z=`${N.year()}w${Y}`;t("pick",{year:N.year(),week:Y,value:Z,date:N.startOf("week")})},q=(N,Y)=>{const Z=Y?Sr(e.parsedValue).filter(ne=>(ne==null?void 0:ne.valueOf())!==N.valueOf()):Sr(e.parsedValue).concat([N]);t("pick",Z)},H=(N,Y=!1)=>{const Z=N.target.closest("td");if(!Z)return;const ne=Z.parentNode.rowIndex-1,ue=Z.cellIndex,_e=d(T)[ne][ue];if(_e.disabled||_e.type==="week")return;const Ne=P(ne,ue);switch(e.selectionMode){case"range":{G(Ne);break}case"date":{t("pick",Ne,Y);break}case"week":{X(Ne);break}case"dates":{q(Ne,!!_e.selected);break}}},V=N=>{if(e.selectionMode!=="week")return!1;let Y=e.date.startOf("day");if(N.type==="prev-month"&&(Y=Y.subtract(1,"month")),N.type==="next-month"&&(Y=Y.add(1,"month")),Y=Y.date(Number.parseInt(N.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const Z=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(Z,"day").isSame(Y,"day")}return!1};return{WEEKS:g,rows:T,tbodyRef:s,currentCellRef:r,focus:w,isCurrent:C,isWeekActive:V,isSelectedCell:U,handlePickDate:H,handleMouseUp:Q,handleMouseDown:W,handleMouseMove:M,handleFocus:B}},Dte=(e,{isCurrent:t,isWeekActive:n})=>{const s=Pe("date-table"),{t:r}=Wt(),i=E(()=>[s.b(),{"is-week-mode":e.selectionMode==="week"}]),a=E(()=>r("el.datepicker.dateTablePrompt")),o=E(()=>r("el.datepicker.week"));return{tableKls:i,tableLabel:a,weekLabel:o,getCellClasses:c=>{const f=[];return mb(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(mb(c.type)||e.selectionMode==="week")&&(f.push("in-range"),c.start&&f.push("start-date"),c.end&&f.push("end-date")),c.disabled&&f.push("disabled"),c.selected&&f.push("selected"),c.customClass&&f.push(c.customClass),f.join(" ")},getRowKls:c=>[s.e("row"),{current:n(c)}],t:r}},Ote=Ve({cell:{type:le(Object)}});var Pte=J({name:"ElDatePickerCell",props:Ote,setup(e){const t=Pe("date-table-cell"),{slots:n}=Je(c2);return()=>{const{cell:s}=e;return be(n,"default",{...s},()=>[I("div",{class:t.b()},[I("span",{class:t.e("text")},[s==null?void 0:s.text])])])}}});const $te=["aria-label"],Rte={key:0,scope:"col"},Nte=["aria-label"],Mte=["aria-current","aria-selected","tabindex"],Lte=J({__name:"basic-date-table",props:xte,emits:kte,setup(e,{expose:t,emit:n}){const s=e,{WEEKS:r,rows:i,tbodyRef:a,currentCellRef:o,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:f,handlePickDate:h,handleMouseUp:g,handleMouseDown:m,handleMouseMove:p,handleFocus:y}=Ite(s,n),{tableLabel:v,tableKls:b,weekLabel:S,getCellClasses:T,getRowKls:w,t:C}=Dte(s,{isCurrent:u,isWeekActive:c});return t({focus:l}),(O,P)=>(k(),z("table",{"aria-label":d(v),class:$(d(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:P[1]||(P[1]=(...M)=>d(h)&&d(h)(...M)),onMousemove:P[2]||(P[2]=(...M)=>d(p)&&d(p)(...M)),onMousedown:P[3]||(P[3]=vt((...M)=>d(m)&&d(m)(...M),["prevent"])),onMouseup:P[4]||(P[4]=(...M)=>d(g)&&d(g)(...M))},[R("tbody",{ref_key:"tbodyRef",ref:a},[R("tr",null,[O.showWeekNumber?(k(),z("th",Rte,pe(d(S)),1)):ae("v-if",!0),(k(!0),z(Ge,null,_t(d(r),(M,U)=>(k(),z("th",{key:U,"aria-label":d(C)("el.datepicker.weeksFull."+M),scope:"col"},pe(d(C)("el.datepicker.weeks."+M)),9,Nte))),128))]),(k(!0),z(Ge,null,_t(d(i),(M,U)=>(k(),z("tr",{key:U,class:$(d(w)(M[1]))},[(k(!0),z(Ge,null,_t(M,(B,W)=>(k(),z("td",{key:`${U}.${W}`,ref_for:!0,ref:Q=>d(f)(B)&&(o.value=Q),class:$(d(T)(B)),"aria-current":B.isCurrent?"date":void 0,"aria-selected":B.isCurrent,tabindex:d(f)(B)?0:-1,onFocus:P[0]||(P[0]=(...Q)=>d(y)&&d(y)(...Q))},[I(d(Pte),{cell:B},null,8,["cell"])],42,Mte))),128))],2))),128))],512)],42,$te))}});var gb=ze(Lte,[["__file","basic-date-table.vue"]]);const Bte=Ve({...d2,selectionMode:f2("month")}),Fte=["aria-label"],Vte=["aria-selected","aria-label","tabindex","onKeydown"],Ute={class:"cell"},Hte=J({__name:"basic-month-table",props:Bte,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,r=(T,w,C)=>{const O=Ot().locale(C).startOf("month").month(w).year(T),P=O.daysInMonth();return oo(P).map(M=>O.add(M,"day").toDate())},i=Pe("month-table"),{t:a,lang:o}=Wt(),l=j(),u=j(),c=j(s.date.locale("en").localeData().monthsShort().map(T=>T.toLowerCase())),f=j([[],[],[]]),h=j(),g=j(),m=E(()=>{var T,w;const C=f.value,O=Ot().locale(o.value).startOf("month");for(let P=0;P<3;P++){const M=C[P];for(let U=0;U<4;U++){const B=M[U]||(M[U]={row:P,column:U,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});B.type="normal";const W=P*4+U,Q=s.date.startOf("year").month(W),G=s.rangeState.endDate||s.maxDate||s.rangeState.selecting&&s.minDate||null;B.inRange=!!(s.minDate&&Q.isSameOrAfter(s.minDate,"month")&&G&&Q.isSameOrBefore(G,"month"))||!!(s.minDate&&Q.isSameOrBefore(s.minDate,"month")&&G&&Q.isSameOrAfter(G,"month")),(T=s.minDate)!=null&&T.isSameOrAfter(G)?(B.start=!!(G&&Q.isSame(G,"month")),B.end=s.minDate&&Q.isSame(s.minDate,"month")):(B.start=!!(s.minDate&&Q.isSame(s.minDate,"month")),B.end=!!(G&&Q.isSame(G,"month"))),O.isSame(Q)&&(B.type="today"),B.text=W,B.disabled=((w=s.disabledDate)==null?void 0:w.call(s,Q.toDate()))||!1}}return C}),p=()=>{var T;(T=u.value)==null||T.focus()},y=T=>{const w={},C=s.date.year(),O=new Date,P=T.text;return w.disabled=s.disabledDate?r(C,P,o.value).every(s.disabledDate):!1,w.current=Sr(s.parsedValue).findIndex(M=>Ot.isDayjs(M)&&M.year()===C&&M.month()===P)>=0,w.today=O.getFullYear()===C&&O.getMonth()===P,T.inRange&&(w["in-range"]=!0,T.start&&(w["start-date"]=!0),T.end&&(w["end-date"]=!0)),w},v=T=>{const w=s.date.year(),C=T.text;return Sr(s.date).findIndex(O=>O.year()===w&&O.month()===C)>=0},b=T=>{var w;if(!s.rangeState.selecting)return;let C=T.target;if(C.tagName==="SPAN"&&(C=(w=C.parentNode)==null?void 0:w.parentNode),C.tagName==="DIV"&&(C=C.parentNode),C.tagName!=="TD")return;const O=C.parentNode.rowIndex,P=C.cellIndex;m.value[O][P].disabled||(O!==h.value||P!==g.value)&&(h.value=O,g.value=P,n("changerange",{selecting:!0,endDate:s.date.startOf("year").month(O*4+P)}))},S=T=>{var w;const C=(w=T.target)==null?void 0:w.closest("td");if((C==null?void 0:C.tagName)!=="TD"||Ur(C,"disabled"))return;const O=C.cellIndex,M=C.parentNode.rowIndex*4+O,U=s.date.startOf("year").month(M);s.selectionMode==="range"?s.rangeState.selecting?(s.minDate&&U>=s.minDate?n("pick",{minDate:s.minDate,maxDate:U}):n("pick",{minDate:U,maxDate:s.minDate}),n("select",!1)):(n("pick",{minDate:U,maxDate:null}),n("select",!0)):n("pick",M)};return xe(()=>s.date,async()=>{var T,w;(T=l.value)!=null&&T.contains(document.activeElement)&&(await ut(),(w=u.value)==null||w.focus())}),t({focus:p}),(T,w)=>(k(),z("table",{role:"grid","aria-label":d(a)("el.datepicker.monthTablePrompt"),class:$(d(i).b()),onClick:S,onMousemove:b},[R("tbody",{ref_key:"tbodyRef",ref:l},[(k(!0),z(Ge,null,_t(d(m),(C,O)=>(k(),z("tr",{key:O},[(k(!0),z(Ge,null,_t(C,(P,M)=>(k(),z("td",{key:M,ref_for:!0,ref:U=>v(P)&&(u.value=U),class:$(y(P)),"aria-selected":`${v(P)}`,"aria-label":d(a)(`el.datepicker.month${+P.text+1}`),tabindex:v(P)?0:-1,onKeydown:[Zt(vt(S,["prevent","stop"]),["space"]),Zt(vt(S,["prevent","stop"]),["enter"])]},[R("div",null,[R("span",Ute,pe(d(a)("el.datepicker.months."+c.value[P.text])),1)])],42,Vte))),128))]))),128))],512)],42,Fte))}});var vb=ze(Hte,[["__file","basic-month-table.vue"]]);const{date:zte,disabledDate:jte,parsedValue:qte}=d2,Wte=Ve({date:zte,disabledDate:jte,parsedValue:qte,selectionMode:f2("year")}),Kte=["aria-label"],Gte=["aria-selected","tabindex","onKeydown"],Yte={class:"cell"},Xte={key:1},Qte=J({__name:"basic-year-table",props:Wte,emits:["pick"],setup(e,{expose:t,emit:n}){const s=e,r=(p,y)=>{const v=Ot(String(p)).locale(y).startOf("year"),S=v.endOf("year").dayOfYear();return oo(S).map(T=>v.add(T,"day").toDate())},i=Pe("year-table"),{t:a,lang:o}=Wt(),l=j(),u=j(),c=E(()=>Math.floor(s.date.year()/10)*10),f=()=>{var p;(p=u.value)==null||p.focus()},h=p=>{const y={},v=Ot().locale(o.value);return y.disabled=s.disabledDate?r(p,o.value).every(s.disabledDate):!1,y.current=Sr(s.parsedValue).findIndex(b=>b.year()===p)>=0,y.today=v.year()===p,y},g=p=>p===c.value&&s.date.year()<c.value&&s.date.year()>c.value+9||Sr(s.date).findIndex(y=>y.year()===p)>=0||Sr(s.parsedValue).findIndex(y=>(y==null?void 0:y.year())===p)>=0,m=p=>{const v=p.target.closest("td");if(v&&v.textContent){if(Ur(v,"disabled"))return;const b=v.textContent||v.innerText;if(s.selectionMode==="years"){if(p.type==="keydown"){n("pick",Sr(s.parsedValue),!1);return}const S=Ur(v,"current")?Sr(s.parsedValue).filter(T=>(T==null?void 0:T.year())!==Number(b)):Sr(s.parsedValue).concat([Ot(b)]);n("pick",S)}else n("pick",Number(b))}};return xe(()=>s.date,async()=>{var p,y;(p=l.value)!=null&&p.contains(document.activeElement)&&(await ut(),(y=u.value)==null||y.focus())}),t({focus:f}),(p,y)=>(k(),z("table",{role:"grid","aria-label":d(a)("el.datepicker.yearTablePrompt"),class:$(d(i).b()),onClick:m},[R("tbody",{ref_key:"tbodyRef",ref:l},[(k(),z(Ge,null,_t(3,(v,b)=>R("tr",{key:b},[(k(),z(Ge,null,_t(4,(S,T)=>(k(),z(Ge,{key:b+"_"+T},[b*4+T<10?(k(),z("td",{key:0,ref_for:!0,ref:w=>g(d(c)+b*4+T)&&(u.value=w),class:$(["available",h(d(c)+b*4+T)]),"aria-selected":`${g(d(c)+b*4+T)}`,tabindex:g(d(c)+b*4+T)?0:-1,onKeydown:[Zt(vt(m,["prevent","stop"]),["space"]),Zt(vt(m,["prevent","stop"]),["enter"])]},[R("div",null,[R("span",Yte,pe(d(c)+b*4+T),1)])],42,Gte)):(k(),z("td",Xte))],64))),64))])),64))],512)],10,Kte))}});var Jte=ze(Qte,[["__file","basic-year-table.vue"]]);const Zte=["onClick"],ene=["aria-label"],tne=["aria-label"],nne=["aria-label"],sne=["aria-label"],rne=J({__name:"panel-date-pick",props:Ete,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,s=(Ae,Ue,Me)=>!0,r=Pe("picker-panel"),i=Pe("date-picker"),a=$l(),o=us(),{t:l,lang:u}=Wt(),c=Je("EP_PICKER_BASE"),f=Je(Wg),{shortcuts:h,disabledDate:g,cellClassName:m,defaultTime:p}=c.props,y=nn(c.props,"defaultValue"),v=j(),b=j(Ot().locale(u.value)),S=j(!1);let T=!1;const w=E(()=>Ot(p).locale(u.value)),C=E(()=>b.value.month()),O=E(()=>b.value.year()),P=j([]),M=j(null),U=j(null),B=Ae=>P.value.length>0?s(Ae,P.value,n.format||"HH:mm:ss"):!0,W=Ae=>p&&!se.value&&!S.value&&!T?w.value.year(Ae.year()).month(Ae.month()).date(Ae.date()):ce.value?Ae.millisecond(0):Ae.startOf("day"),Q=(Ae,...Ue)=>{if(!Ae)t("pick",Ae,...Ue);else if(Xe(Ae)){const Me=Ae.map(W);t("pick",Me,...Ue)}else t("pick",W(Ae),...Ue);M.value=null,U.value=null,S.value=!1,T=!1},G=async(Ae,Ue)=>{if(Y.value==="date"){Ae=Ae;let Me=n.parsedValue?n.parsedValue.year(Ae.year()).month(Ae.month()).date(Ae.date()):Ae;B(Me)||(Me=P.value[0][0].year(Ae.year()).month(Ae.month()).date(Ae.date())),b.value=Me,Q(Me,ce.value||Ue),n.type==="datetime"&&(await ut(),dt())}else Y.value==="week"?Q(Ae.date):Y.value==="dates"&&Q(Ae,!0)},X=Ae=>{const Ue=Ae?"add":"subtract";b.value=b.value[Ue](1,"month"),ct("month")},q=Ae=>{const Ue=b.value,Me=Ae?"add":"subtract";b.value=H.value==="year"?Ue[Me](10,"year"):Ue[Me](1,"year"),ct("year")},H=j("date"),V=E(()=>{const Ae=l("el.datepicker.year");if(H.value==="year"){const Ue=Math.floor(O.value/10)*10;return Ae?`${Ue} ${Ae} - ${Ue+9} ${Ae}`:`${Ue} - ${Ue+9}`}return`${O.value} ${Ae}`}),N=Ae=>{const Ue=mt(Ae.value)?Ae.value():Ae.value;if(Ue){T=!0,Q(Ot(Ue).locale(u.value));return}Ae.onClick&&Ae.onClick({attrs:a,slots:o,emit:t})},Y=E(()=>{const{type:Ae}=n;return["week","month","year","years","dates"].includes(Ae)?Ae:"date"}),Z=E(()=>Y.value==="date"?H.value:Y.value),ne=E(()=>!!h.length),ue=async Ae=>{b.value=b.value.startOf("month").month(Ae),Y.value==="month"?Q(b.value,!1):(H.value="date",["month","year","date","week"].includes(Y.value)&&(Q(b.value,!0),await ut(),dt())),ct("month")},_e=async(Ae,Ue)=>{Y.value==="year"?(b.value=b.value.startOf("year").year(Ae),Q(b.value,!1)):Y.value==="years"?Q(Ae,Ue??!0):(b.value=b.value.year(Ae),H.value="month",["month","year","date","week"].includes(Y.value)&&(Q(b.value,!0),await ut(),dt())),ct("year")},Ne=async Ae=>{H.value=Ae,await ut(),dt()},ce=E(()=>n.type==="datetime"||n.type==="datetimerange"),te=E(()=>{const Ae=ce.value||Y.value==="dates",Ue=Y.value==="years",Me=H.value==="date",ve=H.value==="year";return Ae&&Me||Ue&&ve}),ie=E(()=>g?n.parsedValue?Xe(n.parsedValue)?g(n.parsedValue[0].toDate()):g(n.parsedValue.toDate()):!0:!1),we=()=>{if(Y.value==="dates"||Y.value==="years")Q(n.parsedValue);else{let Ae=n.parsedValue;if(!Ae){const Ue=Ot(p).locale(u.value),Me=et();Ae=Ue.year(Me.year()).month(Me.month()).date(Me.date())}b.value=Ae,Q(Ae)}},me=E(()=>g?g(Ot().locale(u.value).toDate()):!1),Ce=()=>{const Ue=Ot().locale(u.value).toDate();S.value=!0,(!g||!g(Ue))&&B(Ue)&&(b.value=Ot().locale(u.value),Q(b.value))},Be=E(()=>n.timeFormat||aD(n.format)),ee=E(()=>n.dateFormat||iD(n.format)),se=E(()=>{if(U.value)return U.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||b.value).format(Be.value)}),Te=E(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||b.value).format(ee.value)}),Le=j(!1),Se=()=>{Le.value=!0},De=()=>{Le.value=!1},Fe=Ae=>({hour:Ae.hour(),minute:Ae.minute(),second:Ae.second(),year:Ae.year(),month:Ae.month(),date:Ae.date()}),Ie=(Ae,Ue,Me)=>{const{hour:ve,minute:$e,second:st}=Fe(Ae),ye=n.parsedValue?n.parsedValue.hour(ve).minute($e).second(st):Ae;b.value=ye,Q(b.value,!0),Me||(Le.value=Ue)},je=Ae=>{const Ue=Ot(Ae,Be.value).locale(u.value);if(Ue.isValid()&&B(Ue)){const{year:Me,month:ve,date:$e}=Fe(b.value);b.value=Ue.year(Me).month(ve).date($e),U.value=null,Le.value=!1,Q(b.value,!0)}},Ee=Ae=>{const Ue=Ot(Ae,ee.value).locale(u.value);if(Ue.isValid()){if(g&&g(Ue.toDate()))return;const{hour:Me,minute:ve,second:$e}=Fe(b.value);b.value=Ue.hour(Me).minute(ve).second($e),M.value=null,Q(b.value,!0)}},Ze=Ae=>Ot.isDayjs(Ae)&&Ae.isValid()&&(g?!g(Ae.toDate()):!0),nt=Ae=>Xe(Ae)?Ae.map(Ue=>Ue.format(n.format)):Ae.format(n.format),ke=Ae=>Ot(Ae,n.format).locale(u.value),et=()=>{const Ae=Ot(y.value).locale(u.value);if(!y.value){const Ue=w.value;return Ot().hour(Ue.hour()).minute(Ue.minute()).second(Ue.second()).locale(u.value)}return Ae},dt=async()=>{var Ae;["week","month","year","date"].includes(Y.value)&&((Ae=v.value)==null||Ae.focus(),Y.value==="week"&&xt(ot.down))},At=Ae=>{const{code:Ue}=Ae;[ot.up,ot.down,ot.left,ot.right,ot.home,ot.end,ot.pageUp,ot.pageDown].includes(Ue)&&(xt(Ue),Ae.stopPropagation(),Ae.preventDefault()),[ot.enter,ot.space,ot.numpadEnter].includes(Ue)&&M.value===null&&U.value===null&&(Ae.preventDefault(),Q(b.value,!1))},xt=Ae=>{var Ue;const{up:Me,down:ve,left:$e,right:st,home:ye,end:at,pageUp:Rt,pageDown:Qt}=ot,Dn={year:{[Me]:-4,[ve]:4,[$e]:-1,[st]:1,offset:(Bt,On)=>Bt.setFullYear(Bt.getFullYear()+On)},month:{[Me]:-4,[ve]:4,[$e]:-1,[st]:1,offset:(Bt,On)=>Bt.setMonth(Bt.getMonth()+On)},week:{[Me]:-1,[ve]:1,[$e]:-1,[st]:1,offset:(Bt,On)=>Bt.setDate(Bt.getDate()+On*7)},date:{[Me]:-7,[ve]:7,[$e]:-1,[st]:1,[ye]:Bt=>-Bt.getDay(),[at]:Bt=>-Bt.getDay()+6,[Rt]:Bt=>-new Date(Bt.getFullYear(),Bt.getMonth(),0).getDate(),[Qt]:Bt=>new Date(Bt.getFullYear(),Bt.getMonth()+1,0).getDate(),offset:(Bt,On)=>Bt.setDate(Bt.getDate()+On)}},Mn=b.value.toDate();for(;Math.abs(b.value.diff(Mn,"year",!0))<1;){const Bt=Dn[Z.value];if(!Bt)return;if(Bt.offset(Mn,mt(Bt[Ae])?Bt[Ae](Mn):(Ue=Bt[Ae])!=null?Ue:0),g&&g(Mn))break;const On=Ot(Mn).locale(u.value);b.value=On,t("pick",On,!0);break}},ct=Ae=>{t("panel-change",b.value.toDate(),Ae,H.value)};return xe(()=>Y.value,Ae=>{if(["month","year"].includes(Ae)){H.value=Ae;return}else if(Ae==="years"){H.value="year";return}H.value="date"},{immediate:!0}),xe(()=>H.value,()=>{f==null||f.updatePopper()}),xe(()=>y.value,Ae=>{Ae&&(b.value=et())},{immediate:!0}),xe(()=>n.parsedValue,Ae=>{if(Ae){if(Y.value==="dates"||Y.value==="years"||Array.isArray(Ae))return;b.value=Ae}else b.value=et()},{immediate:!0}),t("set-picker-option",["isValidValue",Ze]),t("set-picker-option",["formatToString",nt]),t("set-picker-option",["parseUserInput",ke]),t("set-picker-option",["handleFocusPicker",dt]),(Ae,Ue)=>(k(),z("div",{class:$([d(r).b(),d(i).b(),{"has-sidebar":Ae.$slots.sidebar||d(ne),"has-time":d(ce)}])},[R("div",{class:$(d(r).e("body-wrapper"))},[be(Ae.$slots,"sidebar",{class:$(d(r).e("sidebar"))}),d(ne)?(k(),z("div",{key:0,class:$(d(r).e("sidebar"))},[(k(!0),z(Ge,null,_t(d(h),(Me,ve)=>(k(),z("button",{key:ve,type:"button",class:$(d(r).e("shortcut")),onClick:$e=>N(Me)},pe(Me.text),11,Zte))),128))],2)):ae("v-if",!0),R("div",{class:$(d(r).e("body"))},[d(ce)?(k(),z("div",{key:0,class:$(d(i).e("time-header"))},[R("span",{class:$(d(i).e("editor-wrap"))},[I(d(Vn),{placeholder:d(l)("el.datepicker.selectDate"),"model-value":d(Te),size:"small","validate-event":!1,onInput:Ue[0]||(Ue[0]=Me=>M.value=Me),onChange:Ee},null,8,["placeholder","model-value"])],2),yt((k(),z("span",{class:$(d(i).e("editor-wrap"))},[I(d(Vn),{placeholder:d(l)("el.datepicker.selectTime"),"model-value":d(se),size:"small","validate-event":!1,onFocus:Se,onInput:Ue[1]||(Ue[1]=Me=>U.value=Me),onChange:je},null,8,["placeholder","model-value"]),I(d(Dm),{visible:Le.value,format:d(Be),"parsed-value":b.value,onPick:Ie},null,8,["visible","format","parsed-value"])],2)),[[d(ba),De]])],2)):ae("v-if",!0),yt(R("div",{class:$([d(i).e("header"),(H.value==="year"||H.value==="month")&&d(i).e("header--bordered")])},[R("span",{class:$(d(i).e("prev-btn"))},[R("button",{type:"button","aria-label":d(l)("el.datepicker.prevYear"),class:$(["d-arrow-left",d(r).e("icon-btn")]),onClick:Ue[2]||(Ue[2]=Me=>q(!1))},[I(d(tt),null,{default:L(()=>[I(d(ju))]),_:1})],10,ene),yt(R("button",{type:"button","aria-label":d(l)("el.datepicker.prevMonth"),class:$([d(r).e("icon-btn"),"arrow-left"]),onClick:Ue[3]||(Ue[3]=Me=>X(!1))},[I(d(tt),null,{default:L(()=>[I(d(mo))]),_:1})],10,tne),[[zt,H.value==="date"]])],2),R("span",{role:"button",class:$(d(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Ue[4]||(Ue[4]=Zt(Me=>Ne("year"),["enter"])),onClick:Ue[5]||(Ue[5]=Me=>Ne("year"))},pe(d(V)),35),yt(R("span",{role:"button","aria-live":"polite",tabindex:"0",class:$([d(i).e("header-label"),{active:H.value==="month"}]),onKeydown:Ue[6]||(Ue[6]=Zt(Me=>Ne("month"),["enter"])),onClick:Ue[7]||(Ue[7]=Me=>Ne("month"))},pe(d(l)(`el.datepicker.month${d(C)+1}`)),35),[[zt,H.value==="date"]]),R("span",{class:$(d(i).e("next-btn"))},[yt(R("button",{type:"button","aria-label":d(l)("el.datepicker.nextMonth"),class:$([d(r).e("icon-btn"),"arrow-right"]),onClick:Ue[8]||(Ue[8]=Me=>X(!0))},[I(d(tt),null,{default:L(()=>[I(d(Hs))]),_:1})],10,nne),[[zt,H.value==="date"]]),R("button",{type:"button","aria-label":d(l)("el.datepicker.nextYear"),class:$([d(r).e("icon-btn"),"d-arrow-right"]),onClick:Ue[9]||(Ue[9]=Me=>q(!0))},[I(d(tt),null,{default:L(()=>[I(d(qu))]),_:1})],10,sne)],2)],2),[[zt,H.value!=="time"]]),R("div",{class:$(d(r).e("content")),onKeydown:At},[H.value==="date"?(k(),fe(gb,{key:0,ref_key:"currentViewRef",ref:v,"selection-mode":d(Y),date:b.value,"parsed-value":Ae.parsedValue,"disabled-date":d(g),"cell-class-name":d(m),onPick:G},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ae("v-if",!0),H.value==="year"?(k(),fe(Jte,{key:1,ref_key:"currentViewRef",ref:v,"selection-mode":d(Y),date:b.value,"disabled-date":d(g),"parsed-value":Ae.parsedValue,onPick:_e},null,8,["selection-mode","date","disabled-date","parsed-value"])):ae("v-if",!0),H.value==="month"?(k(),fe(vb,{key:2,ref_key:"currentViewRef",ref:v,date:b.value,"parsed-value":Ae.parsedValue,"disabled-date":d(g),onPick:ue},null,8,["date","parsed-value","disabled-date"])):ae("v-if",!0)],34)],2)],2),yt(R("div",{class:$(d(r).e("footer"))},[yt(I(d(gn),{text:"",size:"small",class:$(d(r).e("link-btn")),disabled:d(me),onClick:Ce},{default:L(()=>[Re(pe(d(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[zt,d(Y)!=="dates"&&d(Y)!=="years"]]),I(d(gn),{plain:"",size:"small",class:$(d(r).e("link-btn")),disabled:d(ie),onClick:we},{default:L(()=>[Re(pe(d(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[zt,d(te)]])],2))}});var ine=ze(rne,[["__file","panel-date-pick.vue"]]);const ane=Ve({...rO,...iO}),one=e=>{const{emit:t}=It(),n=$l(),s=us();return i=>{const a=mt(i.value)?i.value():i.value;if(a){t("pick",[Ot(a[0]).locale(e.value),Ot(a[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:s,emit:t})}},oO=(e,{defaultValue:t,leftDate:n,rightDate:s,unit:r,onParsedValueChanged:i})=>{const{emit:a}=It(),{pickerNs:o}=Je(c2),l=Pe("date-range-picker"),{t:u,lang:c}=Wt(),f=one(c),h=j(),g=j(),m=j({endDate:null,selecting:!1}),p=S=>{m.value=S},y=(S=!1)=>{const T=d(h),w=d(g);pb([T,w])&&a("pick",[T,w],S)},v=S=>{m.value.selecting=S,S||(m.value.endDate=null)},b=()=>{const[S,T]=aO(d(t),{lang:d(c),unit:r,unlinkPanels:e.unlinkPanels});h.value=void 0,g.value=void 0,n.value=S,s.value=T};return xe(t,S=>{S&&b()},{immediate:!0}),xe(()=>e.parsedValue,S=>{if(Xe(S)&&S.length===2){const[T,w]=S;h.value=T,n.value=T,g.value=w,i(d(h),d(g))}else b()},{immediate:!0}),{minDate:h,maxDate:g,rangeState:m,lang:c,ppNs:o,drpNs:l,handleChangeRange:p,handleRangeConfirm:y,handleShortcutClick:f,onSelect:v,t:u}},lne=["onClick"],une=["aria-label"],cne=["aria-label"],dne=["disabled","aria-label"],fne=["disabled","aria-label"],hne=["disabled","aria-label"],pne=["disabled","aria-label"],mne=["aria-label"],gne=["aria-label"],mp="month",vne=J({__name:"panel-date-range",props:ane,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,s=Je("EP_PICKER_BASE"),{disabledDate:r,cellClassName:i,defaultTime:a,clearable:o}=s.props,l=nn(s.props,"format"),u=nn(s.props,"shortcuts"),c=nn(s.props,"defaultValue"),{lang:f}=Wt(),h=j(Ot().locale(f.value)),g=j(Ot().locale(f.value).add(1,mp)),{minDate:m,maxDate:p,rangeState:y,ppNs:v,drpNs:b,handleChangeRange:S,handleRangeConfirm:T,handleShortcutClick:w,onSelect:C,t:O}=oO(n,{defaultValue:c,leftDate:h,rightDate:g,unit:mp,onParsedValueChanged:Ue}),P=j({min:null,max:null}),M=j({min:null,max:null}),U=E(()=>`${h.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${h.value.month()+1}`)}`),B=E(()=>`${g.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${g.value.month()+1}`)}`),W=E(()=>h.value.year()),Q=E(()=>h.value.month()),G=E(()=>g.value.year()),X=E(()=>g.value.month()),q=E(()=>!!u.value.length),H=E(()=>P.value.min!==null?P.value.min:m.value?m.value.format(ne.value):""),V=E(()=>P.value.max!==null?P.value.max:p.value||m.value?(p.value||m.value).format(ne.value):""),N=E(()=>M.value.min!==null?M.value.min:m.value?m.value.format(Z.value):""),Y=E(()=>M.value.max!==null?M.value.max:p.value||m.value?(p.value||m.value).format(Z.value):""),Z=E(()=>n.timeFormat||aD(l.value)),ne=E(()=>n.dateFormat||iD(l.value)),ue=Me=>pb(Me)&&(r?!r(Me[0].toDate())&&!r(Me[1].toDate()):!0),_e=()=>{h.value=h.value.subtract(1,"year"),n.unlinkPanels||(g.value=h.value.add(1,"month")),Be("year")},Ne=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(g.value=h.value.add(1,"month")),Be("month")},ce=()=>{n.unlinkPanels?g.value=g.value.add(1,"year"):(h.value=h.value.add(1,"year"),g.value=h.value.add(1,"month")),Be("year")},te=()=>{n.unlinkPanels?g.value=g.value.add(1,"month"):(h.value=h.value.add(1,"month"),g.value=h.value.add(1,"month")),Be("month")},ie=()=>{h.value=h.value.add(1,"year"),Be("year")},we=()=>{h.value=h.value.add(1,"month"),Be("month")},me=()=>{g.value=g.value.subtract(1,"year"),Be("year")},Ce=()=>{g.value=g.value.subtract(1,"month"),Be("month")},Be=Me=>{t("panel-change",[h.value.toDate(),g.value.toDate()],Me)},ee=E(()=>{const Me=(Q.value+1)%12,ve=Q.value+1>=12?1:0;return n.unlinkPanels&&new Date(W.value+ve,Me)<new Date(G.value,X.value)}),se=E(()=>n.unlinkPanels&&G.value*12+X.value-(W.value*12+Q.value+1)>=12),Te=E(()=>!(m.value&&p.value&&!y.value.selecting&&pb([m.value,p.value]))),Le=E(()=>n.type==="datetime"||n.type==="datetimerange"),Se=(Me,ve)=>{if(Me)return a?Ot(a[ve]||a).locale(f.value).year(Me.year()).month(Me.month()).date(Me.date()):Me},De=(Me,ve=!0)=>{const $e=Me.minDate,st=Me.maxDate,ye=Se($e,0),at=Se(st,1);p.value===at&&m.value===ye||(t("calendar-change",[$e.toDate(),st&&st.toDate()]),p.value=at,m.value=ye,!(!ve||Le.value)&&T())},Fe=j(!1),Ie=j(!1),je=()=>{Fe.value=!1},Ee=()=>{Ie.value=!1},Ze=(Me,ve)=>{P.value[ve]=Me;const $e=Ot(Me,ne.value).locale(f.value);if($e.isValid()){if(r&&r($e.toDate()))return;ve==="min"?(h.value=$e,m.value=(m.value||h.value).year($e.year()).month($e.month()).date($e.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(m.value))&&(g.value=$e.add(1,"month"),p.value=m.value.add(1,"month"))):(g.value=$e,p.value=(p.value||g.value).year($e.year()).month($e.month()).date($e.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(p.value))&&(h.value=$e.subtract(1,"month"),m.value=p.value.subtract(1,"month")))}},nt=(Me,ve)=>{P.value[ve]=null},ke=(Me,ve)=>{M.value[ve]=Me;const $e=Ot(Me,Z.value).locale(f.value);$e.isValid()&&(ve==="min"?(Fe.value=!0,m.value=(m.value||h.value).hour($e.hour()).minute($e.minute()).second($e.second())):(Ie.value=!0,p.value=(p.value||g.value).hour($e.hour()).minute($e.minute()).second($e.second()),g.value=p.value))},et=(Me,ve)=>{M.value[ve]=null,ve==="min"?(h.value=m.value,Fe.value=!1,(!p.value||p.value.isBefore(m.value))&&(p.value=m.value)):(g.value=p.value,Ie.value=!1,p.value&&p.value.isBefore(m.value)&&(m.value=p.value))},dt=(Me,ve,$e)=>{M.value.min||(Me&&(h.value=Me,m.value=(m.value||h.value).hour(Me.hour()).minute(Me.minute()).second(Me.second())),$e||(Fe.value=ve),(!p.value||p.value.isBefore(m.value))&&(p.value=m.value,g.value=Me))},At=(Me,ve,$e)=>{M.value.max||(Me&&(g.value=Me,p.value=(p.value||g.value).hour(Me.hour()).minute(Me.minute()).second(Me.second())),$e||(Ie.value=ve),p.value&&p.value.isBefore(m.value)&&(m.value=p.value))},xt=()=>{h.value=aO(d(c),{lang:d(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],g.value=h.value.add(1,"month"),p.value=void 0,m.value=void 0,t("pick",null)},ct=Me=>Xe(Me)?Me.map(ve=>ve.format(l.value)):Me.format(l.value),Ae=Me=>Xe(Me)?Me.map(ve=>Ot(ve,l.value).locale(f.value)):Ot(Me,l.value).locale(f.value);function Ue(Me,ve){if(n.unlinkPanels&&ve){const $e=(Me==null?void 0:Me.year())||0,st=(Me==null?void 0:Me.month())||0,ye=ve.year(),at=ve.month();g.value=$e===ye&&st===at?ve.add(1,mp):ve}else g.value=h.value.add(1,mp),ve&&(g.value=g.value.hour(ve.hour()).minute(ve.minute()).second(ve.second()))}return t("set-picker-option",["isValidValue",ue]),t("set-picker-option",["parseUserInput",Ae]),t("set-picker-option",["formatToString",ct]),t("set-picker-option",["handleClear",xt]),(Me,ve)=>(k(),z("div",{class:$([d(v).b(),d(b).b(),{"has-sidebar":Me.$slots.sidebar||d(q),"has-time":d(Le)}])},[R("div",{class:$(d(v).e("body-wrapper"))},[be(Me.$slots,"sidebar",{class:$(d(v).e("sidebar"))}),d(q)?(k(),z("div",{key:0,class:$(d(v).e("sidebar"))},[(k(!0),z(Ge,null,_t(d(u),($e,st)=>(k(),z("button",{key:st,type:"button",class:$(d(v).e("shortcut")),onClick:ye=>d(w)($e)},pe($e.text),11,lne))),128))],2)):ae("v-if",!0),R("div",{class:$(d(v).e("body"))},[d(Le)?(k(),z("div",{key:0,class:$(d(b).e("time-header"))},[R("span",{class:$(d(b).e("editors-wrap"))},[R("span",{class:$(d(b).e("time-picker-wrap"))},[I(d(Vn),{size:"small",disabled:d(y).selecting,placeholder:d(O)("el.datepicker.startDate"),class:$(d(b).e("editor")),"model-value":d(H),"validate-event":!1,onInput:ve[0]||(ve[0]=$e=>Ze($e,"min")),onChange:ve[1]||(ve[1]=$e=>nt($e,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),yt((k(),z("span",{class:$(d(b).e("time-picker-wrap"))},[I(d(Vn),{size:"small",class:$(d(b).e("editor")),disabled:d(y).selecting,placeholder:d(O)("el.datepicker.startTime"),"model-value":d(N),"validate-event":!1,onFocus:ve[2]||(ve[2]=$e=>Fe.value=!0),onInput:ve[3]||(ve[3]=$e=>ke($e,"min")),onChange:ve[4]||(ve[4]=$e=>et($e,"min"))},null,8,["class","disabled","placeholder","model-value"]),I(d(Dm),{visible:Fe.value,format:d(Z),"datetime-role":"start","parsed-value":h.value,onPick:dt},null,8,["visible","format","parsed-value"])],2)),[[d(ba),je]])],2),R("span",null,[I(d(tt),null,{default:L(()=>[I(d(Hs))]),_:1})]),R("span",{class:$([d(b).e("editors-wrap"),"is-right"])},[R("span",{class:$(d(b).e("time-picker-wrap"))},[I(d(Vn),{size:"small",class:$(d(b).e("editor")),disabled:d(y).selecting,placeholder:d(O)("el.datepicker.endDate"),"model-value":d(V),readonly:!d(m),"validate-event":!1,onInput:ve[5]||(ve[5]=$e=>Ze($e,"max")),onChange:ve[6]||(ve[6]=$e=>nt($e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),yt((k(),z("span",{class:$(d(b).e("time-picker-wrap"))},[I(d(Vn),{size:"small",class:$(d(b).e("editor")),disabled:d(y).selecting,placeholder:d(O)("el.datepicker.endTime"),"model-value":d(Y),readonly:!d(m),"validate-event":!1,onFocus:ve[7]||(ve[7]=$e=>d(m)&&(Ie.value=!0)),onInput:ve[8]||(ve[8]=$e=>ke($e,"max")),onChange:ve[9]||(ve[9]=$e=>et($e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),I(d(Dm),{"datetime-role":"end",visible:Ie.value,format:d(Z),"parsed-value":g.value,onPick:At},null,8,["visible","format","parsed-value"])],2)),[[d(ba),Ee]])],2)],2)):ae("v-if",!0),R("div",{class:$([[d(v).e("content"),d(b).e("content")],"is-left"])},[R("div",{class:$(d(b).e("header"))},[R("button",{type:"button",class:$([d(v).e("icon-btn"),"d-arrow-left"]),"aria-label":d(O)("el.datepicker.prevYear"),onClick:_e},[I(d(tt),null,{default:L(()=>[I(d(ju))]),_:1})],10,une),R("button",{type:"button",class:$([d(v).e("icon-btn"),"arrow-left"]),"aria-label":d(O)("el.datepicker.prevMonth"),onClick:Ne},[I(d(tt),null,{default:L(()=>[I(d(mo))]),_:1})],10,cne),Me.unlinkPanels?(k(),z("button",{key:0,type:"button",disabled:!d(se),class:$([[d(v).e("icon-btn"),{"is-disabled":!d(se)}],"d-arrow-right"]),"aria-label":d(O)("el.datepicker.nextYear"),onClick:ie},[I(d(tt),null,{default:L(()=>[I(d(qu))]),_:1})],10,dne)):ae("v-if",!0),Me.unlinkPanels?(k(),z("button",{key:1,type:"button",disabled:!d(ee),class:$([[d(v).e("icon-btn"),{"is-disabled":!d(ee)}],"arrow-right"]),"aria-label":d(O)("el.datepicker.nextMonth"),onClick:we},[I(d(tt),null,{default:L(()=>[I(d(Hs))]),_:1})],10,fne)):ae("v-if",!0),R("div",null,pe(d(U)),1)],2),I(gb,{"selection-mode":"range",date:h.value,"min-date":d(m),"max-date":d(p),"range-state":d(y),"disabled-date":d(r),"cell-class-name":d(i),onChangerange:d(S),onPick:De,onSelect:d(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),R("div",{class:$([[d(v).e("content"),d(b).e("content")],"is-right"])},[R("div",{class:$(d(b).e("header"))},[Me.unlinkPanels?(k(),z("button",{key:0,type:"button",disabled:!d(se),class:$([[d(v).e("icon-btn"),{"is-disabled":!d(se)}],"d-arrow-left"]),"aria-label":d(O)("el.datepicker.prevYear"),onClick:me},[I(d(tt),null,{default:L(()=>[I(d(ju))]),_:1})],10,hne)):ae("v-if",!0),Me.unlinkPanels?(k(),z("button",{key:1,type:"button",disabled:!d(ee),class:$([[d(v).e("icon-btn"),{"is-disabled":!d(ee)}],"arrow-left"]),"aria-label":d(O)("el.datepicker.prevMonth"),onClick:Ce},[I(d(tt),null,{default:L(()=>[I(d(mo))]),_:1})],10,pne)):ae("v-if",!0),R("button",{type:"button","aria-label":d(O)("el.datepicker.nextYear"),class:$([d(v).e("icon-btn"),"d-arrow-right"]),onClick:ce},[I(d(tt),null,{default:L(()=>[I(d(qu))]),_:1})],10,mne),R("button",{type:"button",class:$([d(v).e("icon-btn"),"arrow-right"]),"aria-label":d(O)("el.datepicker.nextMonth"),onClick:te},[I(d(tt),null,{default:L(()=>[I(d(Hs))]),_:1})],10,gne),R("div",null,pe(d(B)),1)],2),I(gb,{"selection-mode":"range",date:g.value,"min-date":d(m),"max-date":d(p),"range-state":d(y),"disabled-date":d(r),"cell-class-name":d(i),onChangerange:d(S),onPick:De,onSelect:d(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),d(Le)?(k(),z("div",{key:0,class:$(d(v).e("footer"))},[d(o)?(k(),fe(d(gn),{key:0,text:"",size:"small",class:$(d(v).e("link-btn")),onClick:xt},{default:L(()=>[Re(pe(d(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):ae("v-if",!0),I(d(gn),{plain:"",size:"small",class:$(d(v).e("link-btn")),disabled:d(Te),onClick:ve[10]||(ve[10]=$e=>d(T)(!1))},{default:L(()=>[Re(pe(d(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):ae("v-if",!0)],2))}});var yne=ze(vne,[["__file","panel-date-range.vue"]]);const bne=Ve({...iO}),_ne=["pick","set-picker-option","calendar-change"],Sne=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:s}=Wt(),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")},a=()=>{t.value=t.value.add(1,"year")},o=()=>{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")}`),c=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:a,rightPrevYear:o,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},wne=["onClick"],Tne=["disabled"],Cne=["disabled"],gp="year",Ene=J({name:"DatePickerMonthRange"}),xne=J({...Ene,props:bne,emits:_ne,setup(e,{emit:t}){const n=e,{lang:s}=Wt(),r=Je("EP_PICKER_BASE"),{shortcuts:i,disabledDate:a}=r.props,o=nn(r.props,"format"),l=nn(r.props,"defaultValue"),u=j(Ot().locale(s.value)),c=j(Ot().locale(s.value).add(1,gp)),{minDate:f,maxDate:h,rangeState:g,ppNs:m,drpNs:p,handleChangeRange:y,handleRangeConfirm:v,handleShortcutClick:b,onSelect:S}=oO(n,{defaultValue:l,leftDate:u,rightDate:c,unit:gp,onParsedValueChanged:q}),T=E(()=>!!i.length),{leftPrevYear:w,rightNextYear:C,leftNextYear:O,rightPrevYear:P,leftLabel:M,rightLabel:U,leftYear:B,rightYear:W}=Sne({unlinkPanels:nn(n,"unlinkPanels"),leftDate:u,rightDate:c}),Q=E(()=>n.unlinkPanels&&W.value>B.value+1),G=(H,V=!0)=>{const N=H.minDate,Y=H.maxDate;h.value===Y&&f.value===N||(t("calendar-change",[N.toDate(),Y&&Y.toDate()]),h.value=Y,f.value=N,V&&v())},X=H=>H.map(V=>V.format(o.value));function q(H,V){if(n.unlinkPanels&&V){const N=(H==null?void 0:H.year())||0,Y=V.year();c.value=N===Y?V.add(1,gp):V}else c.value=u.value.add(1,gp)}return t("set-picker-option",["formatToString",X]),(H,V)=>(k(),z("div",{class:$([d(m).b(),d(p).b(),{"has-sidebar":!!H.$slots.sidebar||d(T)}])},[R("div",{class:$(d(m).e("body-wrapper"))},[be(H.$slots,"sidebar",{class:$(d(m).e("sidebar"))}),d(T)?(k(),z("div",{key:0,class:$(d(m).e("sidebar"))},[(k(!0),z(Ge,null,_t(d(i),(N,Y)=>(k(),z("button",{key:Y,type:"button",class:$(d(m).e("shortcut")),onClick:Z=>d(b)(N)},pe(N.text),11,wne))),128))],2)):ae("v-if",!0),R("div",{class:$(d(m).e("body"))},[R("div",{class:$([[d(m).e("content"),d(p).e("content")],"is-left"])},[R("div",{class:$(d(p).e("header"))},[R("button",{type:"button",class:$([d(m).e("icon-btn"),"d-arrow-left"]),onClick:V[0]||(V[0]=(...N)=>d(w)&&d(w)(...N))},[I(d(tt),null,{default:L(()=>[I(d(ju))]),_:1})],2),H.unlinkPanels?(k(),z("button",{key:0,type:"button",disabled:!d(Q),class:$([[d(m).e("icon-btn"),{[d(m).is("disabled")]:!d(Q)}],"d-arrow-right"]),onClick:V[1]||(V[1]=(...N)=>d(O)&&d(O)(...N))},[I(d(tt),null,{default:L(()=>[I(d(qu))]),_:1})],10,Tne)):ae("v-if",!0),R("div",null,pe(d(M)),1)],2),I(vb,{"selection-mode":"range",date:u.value,"min-date":d(f),"max-date":d(h),"range-state":d(g),"disabled-date":d(a),onChangerange:d(y),onPick:G,onSelect:d(S)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),R("div",{class:$([[d(m).e("content"),d(p).e("content")],"is-right"])},[R("div",{class:$(d(p).e("header"))},[H.unlinkPanels?(k(),z("button",{key:0,type:"button",disabled:!d(Q),class:$([[d(m).e("icon-btn"),{"is-disabled":!d(Q)}],"d-arrow-left"]),onClick:V[2]||(V[2]=(...N)=>d(P)&&d(P)(...N))},[I(d(tt),null,{default:L(()=>[I(d(ju))]),_:1})],10,Cne)):ae("v-if",!0),R("button",{type:"button",class:$([d(m).e("icon-btn"),"d-arrow-right"]),onClick:V[3]||(V[3]=(...N)=>d(C)&&d(C)(...N))},[I(d(tt),null,{default:L(()=>[I(d(qu))]),_:1})],2),R("div",null,pe(d(U)),1)],2),I(vb,{"selection-mode":"range",date:c.value,"min-date":d(f),"max-date":d(h),"range-state":d(g),"disabled-date":d(a),onChangerange:d(y),onPick:G,onSelect:d(S)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var kne=ze(xne,[["__file","panel-month-range.vue"]]);const Ane=function(e){switch(e){case"daterange":case"datetimerange":return yne;case"monthrange":return kne;default:return ine}};Ot.extend(wD);Ot.extend(fte);Ot.extend(s2);Ot.extend(pte);Ot.extend(gte);Ot.extend(yte);Ot.extend(_te);Ot.extend(wte);var Ine=J({name:"ElDatePicker",install:null,props:Tte,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:s}){const r=Pe("picker-panel");Mt("ElPopperOptions",Ct(nn(e,"popperOptions"))),Mt(c2,{slots:s,pickerNs:r});const i=j();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 o=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:fQ[e.type]||au,c=Ane(e.type);return I(uD,Lt(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":o}),{default:f=>I(c,f,null),"range-separator":s["range-separator"]})}}});const qp=Ine;qp.install=e=>{e.component(qp.name,qp)};const lO=qp,h2=Symbol("elDescriptions");var ld=J({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Je(h2,{})}},render(){var e,t,n,s,r,i,a;const o=lq(this.cell),l=(((e=this.cell)==null?void 0:e.dirs)||[]).map(w=>{const{dir:C,arg:O,modifiers:P,value:M}=w;return[C,M,O,P]}),{border:u,direction:c}=this.descriptions,f=c==="vertical",h=((s=(n=(t=this.cell)==null?void 0:t.children)==null?void 0:n.label)==null?void 0:s.call(n))||o.label,g=(a=(i=(r=this.cell)==null?void 0:r.children)==null?void 0:i.default)==null?void 0:a.call(i),m=o.span,p=o.align?`is-${o.align}`:"",y=o.labelAlign?`is-${o.labelAlign}`:p,v=o.className,b=o.labelClassName,S={width:In(o.width),minWidth:In(o.minWidth)},T=Pe("descriptions");switch(this.type){case"label":return yt(lt(this.tag,{style:S,class:[T.e("cell"),T.e("label"),T.is("bordered-label",u),T.is("vertical-label",f),y,b],colSpan:f?m:1},h),l);case"content":return yt(lt(this.tag,{style:S,class:[T.e("cell"),T.e("content"),T.is("bordered-content",u),T.is("vertical-content",f),p,v],colSpan:f?m:m*2-1},g),l);default:return yt(lt("td",{style:S,class:[T.e("cell"),p],colSpan:m},[os(h)?void 0:lt("span",{class:[T.e("label"),b]},h),lt("span",{class:[T.e("content"),v]},g)]),l)}}});const Dne=Ve({row:{type:le(Array),default:()=>[]}}),One={key:1},Pne=J({name:"ElDescriptionsRow"}),$ne=J({...Pne,props:Dne,setup(e){const t=Je(h2,{});return(n,s)=>d(t).direction==="vertical"?(k(),z(Ge,{key:0},[R("tr",null,[(k(!0),z(Ge,null,_t(n.row,(r,i)=>(k(),fe(d(ld),{key:`tr1-${i}`,cell:r,tag:"th",type:"label"},null,8,["cell"]))),128))]),R("tr",null,[(k(!0),z(Ge,null,_t(n.row,(r,i)=>(k(),fe(d(ld),{key:`tr2-${i}`,cell:r,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(k(),z("tr",One,[(k(!0),z(Ge,null,_t(n.row,(r,i)=>(k(),z(Ge,{key:`tr3-${i}`},[d(t).border?(k(),z(Ge,{key:0},[I(d(ld),{cell:r,tag:"td",type:"label"},null,8,["cell"]),I(d(ld),{cell:r,tag:"td",type:"content"},null,8,["cell"])],64)):(k(),fe(d(ld),{key:1,cell:r,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var Rne=ze($ne,[["__file","descriptions-row.vue"]]);const Nne=Ve({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:es,title:{type:String,default:""},extra:{type:String,default:""}}),Mne=J({name:"ElDescriptions"}),Lne=J({...Mne,props:Nne,setup(e){const t=e,n=Pe("descriptions"),s=Kn(),r=us();Mt(h2,t);const i=E(()=>[n.b(),n.m(s.value)]),a=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),o=()=>{if(!r.default)return[];const l=ao(r.default()).filter(g=>{var m;return((m=g==null?void 0:g.type)==null?void 0:m.name)==="ElDescriptionsItem"}),u=[];let c=[],f=t.column,h=0;return l.forEach((g,m)=>{var p;const y=((p=g.props)==null?void 0:p.span)||1;if(m<l.length-1&&(h+=y>f?f:y),m===l.length-1){const v=t.column-h%t.column;c.push(a(g,v,f,!0)),u.push(c);return}y<f?(f-=y,c.push(g)):(c.push(a(g,y,f)),u.push(c),f=t.column,c=[])}),u};return(l,u)=>(k(),z("div",{class:$(d(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(k(),z("div",{key:0,class:$(d(n).e("header"))},[R("div",{class:$(d(n).e("title"))},[be(l.$slots,"title",{},()=>[Re(pe(l.title),1)])],2),R("div",{class:$(d(n).e("extra"))},[be(l.$slots,"extra",{},()=>[Re(pe(l.extra),1)])],2)],2)):ae("v-if",!0),R("div",{class:$(d(n).e("body"))},[R("table",{class:$([d(n).e("table"),d(n).is("bordered",l.border)])},[R("tbody",null,[(k(!0),z(Ge,null,_t(o(),(c,f)=>(k(),fe(Rne,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var Bne=ze(Lne,[["__file","description.vue"]]);const Fne=Ve({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:""}}),uO=J({name:"ElDescriptionsItem",props:Fne}),Vne=Dt(Bne,{DescriptionsItem:uO}),Une=Tn(uO),Hne=Ve({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:le([String,Array,Object])},zIndex:{type:le([String,Number])}}),zne={click:e=>e instanceof MouseEvent},jne="overlay";var qne=J({name:"ElOverlay",props:Hne,emits:zne,setup(e,{slots:t,emit:n}){const s=Pe(jne),r=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:o}=U1(e.customMaskEvent?void 0:r);return()=>e.mask?I("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:o},[be(t,"default")],Rr.STYLE|Rr.CLASS|Rr.PROPS,["onClick","onMouseup","onMousedown"]):lt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[be(t,"default")])}});const p2=qne,cO=Symbol("dialogInjectionKey"),dO=Ve({center:Boolean,alignCenter:Boolean,closeIcon:{type:sn},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),Wne={close:()=>!0},Kne=["aria-level"],Gne=["aria-label"],Yne=["id"],Xne=J({name:"ElDialogContent"}),Qne=J({...Xne,props:dO,emits:Wne,setup(e){const t=e,{t:n}=Wt(),{Close:s}=x1,{dialogRef:r,headerRef:i,bodyId:a,ns:o,style:l}=Je(cO),{focusTrapRef:u}=Je(Z1),c=E(()=>[o.b(),o.is("fullscreen",t.fullscreen),o.is("draggable",t.draggable),o.is("align-center",t.alignCenter),{[o.m("center")]:t.center}]),f=Bg(u,r),h=E(()=>t.draggable),g=E(()=>t.overflow);return J3(r,i,h,g),(m,p)=>(k(),z("div",{ref:d(f),class:$(d(c)),style:it(d(l)),tabindex:"-1"},[R("header",{ref_key:"headerRef",ref:i,class:$([d(o).e("header"),{"show-close":m.showClose}])},[be(m.$slots,"header",{},()=>[R("span",{role:"heading","aria-level":m.ariaLevel,class:$(d(o).e("title"))},pe(m.title),11,Kne)]),m.showClose?(k(),z("button",{key:0,"aria-label":d(n)("el.dialog.close"),class:$(d(o).e("headerbtn")),type:"button",onClick:p[0]||(p[0]=y=>m.$emit("close"))},[I(d(tt),{class:$(d(o).e("close"))},{default:L(()=>[(k(),fe(Nt(m.closeIcon||d(s))))]),_:1},8,["class"])],10,Gne)):ae("v-if",!0)],2),R("div",{id:d(a),class:$(d(o).e("body"))},[be(m.$slots,"default")],10,Yne),m.$slots.footer?(k(),z("footer",{key:0,class:$(d(o).e("footer"))},[be(m.$slots,"footer")],2)):ae("v-if",!0)],6))}});var Jne=ze(Qne,[["__file","dialog-content.vue"]]);const fO=Ve({...dO,appendToBody:Boolean,appendTo:{type:le(String),default:"body"},beforeClose:{type:le(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),hO={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[$t]:e=>Hn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},pO=(e,t)=>{var n;const r=It().emit,{nextZIndex:i}=xc();let a="";const o=xs(),l=xs(),u=j(!1),c=j(!1),f=j(!1),h=j((n=e.zIndex)!=null?n:i());let g,m;const p=ah("namespace",Hd),y=E(()=>{const X={},q=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(X[`${q}-margin-top`]=e.top),e.width&&(X[`${q}-width`]=In(e.width))),X}),v=E(()=>e.alignCenter?{display:"flex"}:{});function b(){r("opened")}function S(){r("closed"),r($t,!1),e.destroyOnClose&&(f.value=!1)}function T(){r("close")}function w(){m==null||m(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Sl(()=>M(),e.openDelay):M()}function C(){g==null||g(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Sl(()=>U(),e.closeDelay):U()}function O(){function X(q){q||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(X):C()}function P(){e.closeOnClickModal&&O()}function M(){jt&&(u.value=!0)}function U(){u.value=!1}function B(){r("openAutoFocus")}function W(){r("closeAutoFocus")}function Q(X){var q;((q=X.detail)==null?void 0:q.focusReason)==="pointer"&&X.preventDefault()}e.lockScroll&&P1(u);function G(){e.closeOnPressEscape&&O()}return xe(()=>e.modelValue,X=>{X?(c.value=!1,w(),f.value=!0,h.value=V3(e.zIndex)?i():h.value++,ut(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):u.value&&C()}),xe(()=>e.fullscreen,X=>{t.value&&(X?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),gt(()=>{e.modelValue&&(u.value=!0,f.value=!0,w())}),{afterEnter:b,afterLeave:S,beforeLeave:T,handleClose:O,onModalClick:P,close:C,doClose:U,onOpenAutoFocus:B,onCloseAutoFocus:W,onCloseRequested:G,onFocusoutPrevented:Q,titleId:o,bodyId:l,closed:c,style:y,overlayDialogStyle:v,rendered:f,visible:u,zIndex:h}},Zne=["aria-label","aria-labelledby","aria-describedby"],ese=J({name:"ElDialog",inheritAttrs:!1}),tse=J({...ese,props:fO,emits:hO,setup(e,{expose:t}){const n=e,s=us();ss({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));const r=Pe("dialog"),i=j(),a=j(),o=j(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:h,rendered:g,zIndex:m,afterEnter:p,afterLeave:y,beforeLeave:v,handleClose:b,onModalClick:S,onOpenAutoFocus:T,onCloseAutoFocus:w,onCloseRequested:C,onFocusoutPrevented:O}=pO(n,i);Mt(cO,{dialogRef:i,headerRef:a,bodyId:c,ns:r,rendered:g,style:f});const P=U1(S),M=E(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:o}),(U,B)=>(k(),fe(bc,{to:U.appendTo,disabled:U.appendTo!=="body"?!1:!U.appendToBody},[I(Wn,{name:"dialog-fade",onAfterEnter:d(p),onAfterLeave:d(y),onBeforeLeave:d(v),persisted:""},{default:L(()=>[yt(I(d(p2),{"custom-mask-event":"",mask:U.modal,"overlay-class":U.modalClass,"z-index":d(m)},{default:L(()=>[R("div",{role:"dialog","aria-modal":"true","aria-label":U.title||void 0,"aria-labelledby":U.title?void 0:d(u),"aria-describedby":d(c),class:$(`${d(r).namespace.value}-overlay-dialog`),style:it(d(h)),onClick:B[0]||(B[0]=(...W)=>d(P).onClick&&d(P).onClick(...W)),onMousedown:B[1]||(B[1]=(...W)=>d(P).onMousedown&&d(P).onMousedown(...W)),onMouseup:B[2]||(B[2]=(...W)=>d(P).onMouseup&&d(P).onMouseup(...W))},[I(d(lh),{loop:"",trapped:d(l),"focus-start-el":"container",onFocusAfterTrapped:d(T),onFocusAfterReleased:d(w),onFocusoutPrevented:d(O),onReleaseRequested:d(C)},{default:L(()=>[d(g)?(k(),fe(Jne,Lt({key:0,ref_key:"dialogContentRef",ref:o},U.$attrs,{center:U.center,"align-center":U.alignCenter,"close-icon":U.closeIcon,draggable:d(M),overflow:U.overflow,fullscreen:U.fullscreen,"show-close":U.showClose,title:U.title,"aria-level":U.headerAriaLevel,onClose:d(b)}),ma({header:L(()=>[U.$slots.title?be(U.$slots,"title",{key:1}):be(U.$slots,"header",{key:0,close:d(b),titleId:d(u),titleClass:d(r).e("title")})]),default:L(()=>[be(U.$slots,"default")]),_:2},[U.$slots.footer?{name:"footer",fn:L(()=>[be(U.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):ae("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Zne)]),_:3},8,["mask","overlay-class","z-index"]),[[zt,d(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var nse=ze(tse,[["__file","dialog.vue"]]);const uh=Dt(nse),sse=Ve({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:le(String),default:"solid"}}),rse=J({name:"ElDivider"}),ise=J({...rse,props:sse,setup(e){const t=e,n=Pe("divider"),s=E(()=>n.cssVar({"border-style":t.borderStyle}));return(r,i)=>(k(),z("div",{class:$([d(n).b(),d(n).m(r.direction)]),style:it(d(s)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(k(),z("div",{key:0,class:$([d(n).e("text"),d(n).is(r.contentPosition)])},[be(r.$slots,"default")],2)):ae("v-if",!0)],6))}});var ase=ze(ise,[["__file","divider.vue"]]);const mO=Dt(ase),ose=Ve({...fO,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),lse=hO,use=["aria-label","aria-labelledby","aria-describedby"],cse=["id","aria-level"],dse=["aria-label"],fse=["id"],hse=J({name:"ElDrawer",inheritAttrs:!1}),pse=J({...hse,props:ose,emits:lse,setup(e,{expose:t}){const n=e,s=us();ss({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(()=>!!s.title));const r=j(),i=j(),a=Pe("drawer"),{t:o}=Wt(),{afterEnter:l,afterLeave:u,beforeLeave:c,visible:f,rendered:h,titleId:g,bodyId:m,zIndex:p,onModalClick:y,onOpenAutoFocus:v,onCloseAutoFocus:b,onFocusoutPrevented:S,onCloseRequested:T,handleClose:w}=pO(n,r),C=E(()=>n.direction==="rtl"||n.direction==="ltr"),O=E(()=>In(n.size));return t({handleClose:w,afterEnter:l,afterLeave:u}),(P,M)=>(k(),fe(bc,{to:"body",disabled:!P.appendToBody},[I(Wn,{name:d(a).b("fade"),onAfterEnter:d(l),onAfterLeave:d(u),onBeforeLeave:d(c),persisted:""},{default:L(()=>[yt(I(d(p2),{mask:P.modal,"overlay-class":P.modalClass,"z-index":d(p),onClick:d(y)},{default:L(()=>[I(d(lh),{loop:"",trapped:d(f),"focus-trap-el":r.value,"focus-start-el":i.value,onFocusAfterTrapped:d(v),onFocusAfterReleased:d(b),onFocusoutPrevented:d(S),onReleaseRequested:d(T)},{default:L(()=>[R("div",Lt({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":P.title||void 0,"aria-labelledby":P.title?void 0:d(g),"aria-describedby":d(m)},P.$attrs,{class:[d(a).b(),P.direction,d(f)&&"open"],style:d(C)?"width: "+d(O):"height: "+d(O),role:"dialog",onClick:M[1]||(M[1]=vt(()=>{},["stop"]))}),[R("span",{ref_key:"focusStartRef",ref:i,class:$(d(a).e("sr-focus")),tabindex:"-1"},null,2),P.withHeader?(k(),z("header",{key:0,class:$(d(a).e("header"))},[P.$slots.title?be(P.$slots,"title",{key:1},()=>[ae(" DEPRECATED SLOT ")]):be(P.$slots,"header",{key:0,close:d(w),titleId:d(g),titleClass:d(a).e("title")},()=>[P.$slots.title?ae("v-if",!0):(k(),z("span",{key:0,id:d(g),role:"heading","aria-level":P.headerAriaLevel,class:$(d(a).e("title"))},pe(P.title),11,cse))]),P.showClose?(k(),z("button",{key:2,"aria-label":d(o)("el.drawer.close"),class:$(d(a).e("close-btn")),type:"button",onClick:M[0]||(M[0]=(...U)=>d(w)&&d(w)(...U))},[I(d(tt),{class:$(d(a).e("close"))},{default:L(()=>[I(d(hi))]),_:1},8,["class"])],10,dse)):ae("v-if",!0)],2)):ae("v-if",!0),d(h)?(k(),z("div",{key:1,id:d(m),class:$(d(a).e("body"))},[be(P.$slots,"default")],10,fse)):ae("v-if",!0),P.$slots.footer?(k(),z("div",{key:2,class:$(d(a).e("footer"))},[be(P.$slots,"footer")],2)):ae("v-if",!0)],16,use)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[zt,d(f)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var mse=ze(pse,[["__file","drawer.vue"]]);const gse=Dt(mse),vse=J({inheritAttrs:!1});function yse(e,t,n,s,r,i){return be(e.$slots,"default")}var bse=ze(vse,[["render",yse],["__file","collection.vue"]]);const _se=J({name:"ElCollectionItem",inheritAttrs:!1});function Sse(e,t,n,s,r,i){return be(e.$slots,"default")}var wse=ze(_se,[["render",Sse],["__file","collection-item.vue"]]);const gO="data-el-collection-item",vO=e=>{const t=`El${e}Collection`,n=`${t}Item`,s=Symbol(t),r=Symbol(n),i={...bse,name:t,setup(){const o=j(null),l=new Map;Mt(s,{itemMap:l,getItems:()=>{const c=d(o);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${gO}]`));return[...l.values()].sort((g,m)=>f.indexOf(g.ref)-f.indexOf(m.ref))},collectionRef:o})}},a={...wse,name:n,setup(o,{attrs:l}){const u=j(null),c=Je(s,void 0);Mt(r,{collectionItemRef:u}),gt(()=>{const f=d(u);f&&c.itemMap.set(f,{ref:f,...l})}),un(()=>{const f=d(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:i,ElCollectionItem:a}},Tse=Ve({style:{type:le([String,Array,Object])},currentTabId:{type:le(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:le(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Cse,ElCollectionItem:Ese,COLLECTION_INJECTION_KEY:m2,COLLECTION_ITEM_INJECTION_KEY:xse}=vO("RovingFocusGroup"),g2=Symbol("elRovingFocusGroup"),yO=Symbol("elRovingFocusGroupItem"),kse={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Ase=(e,t)=>{if(t!=="rtl")return e;switch(e){case ot.right:return ot.left;case ot.left:return ot.right;default:return e}},Ise=(e,t,n)=>{const s=Ase(e.key,n);if(!(t==="vertical"&&[ot.left,ot.right].includes(s))&&!(t==="horizontal"&&[ot.up,ot.down].includes(s)))return kse[s]},Dse=(e,t)=>e.map((n,s)=>e[(s+t)%e.length]),v2=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},HE="currentTabIdChange",zE="rovingFocusGroup.entryFocus",Ose={bubbles:!1,cancelable:!0},Pse=J({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Tse,emits:[HE,"entryFocus"],setup(e,{emit:t}){var n;const s=j((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),r=j(!1),i=j(!1),a=j(null),{getItems:o}=Je(m2,void 0),l=E(()=>[{outline:"none"},e.style]),u=p=>{t(HE,p)},c=()=>{r.value=!0},f=xn(p=>{var y;(y=e.onMousedown)==null||y.call(e,p)},()=>{i.value=!0}),h=xn(p=>{var y;(y=e.onFocus)==null||y.call(e,p)},p=>{const y=!d(i),{target:v,currentTarget:b}=p;if(v===b&&y&&!d(r)){const S=new Event(zE,Ose);if(b==null||b.dispatchEvent(S),!S.defaultPrevented){const T=o().filter(M=>M.focusable),w=T.find(M=>M.active),C=T.find(M=>M.id===d(s)),P=[w,C,...T].filter(Boolean).map(M=>M.ref);v2(P)}}i.value=!1}),g=xn(p=>{var y;(y=e.onBlur)==null||y.call(e,p)},()=>{r.value=!1}),m=(...p)=>{t("entryFocus",...p)};Mt(g2,{currentTabbedId:Ol(s),loop:nn(e,"loop"),tabIndex:E(()=>d(r)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:l,orientation:nn(e,"orientation"),dir:nn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:g,onFocus:h,onMousedown:f}),xe(()=>e.currentTabId,p=>{s.value=p??null}),cn(a,zE,m)}});function $se(e,t,n,s,r,i){return be(e.$slots,"default")}var Rse=ze(Pse,[["render",$se],["__file","roving-focus-group-impl.vue"]]);const Nse=J({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Cse,ElRovingFocusGroupImpl:Rse}});function Mse(e,t,n,s,r,i){const a=kt("el-roving-focus-group-impl"),o=kt("el-focus-group-collection");return k(),fe(o,null,{default:L(()=>[I(a,da(Bu(e.$attrs)),{default:L(()=>[be(e.$slots,"default")]),_:3},16)]),_:3})}var Lse=ze(Nse,[["render",Mse],["__file","roving-focus-group.vue"]]);const Bse=J({components:{ElRovingFocusCollectionItem:Ese},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}=Je(g2,void 0),{getItems:a}=Je(m2,void 0),o=xs(),l=j(null),u=xn(g=>{t("mousedown",g)},g=>{e.focusable?r(d(o)):g.preventDefault()}),c=xn(g=>{t("focus",g)},()=>{r(d(o))}),f=xn(g=>{t("keydown",g)},g=>{const{key:m,shiftKey:p,target:y,currentTarget:v}=g;if(m===ot.tab&&p){i();return}if(y!==v)return;const b=Ise(g);if(b){g.preventDefault();let T=a().filter(w=>w.focusable).map(w=>w.ref);switch(b){case"last":{T.reverse();break}case"prev":case"next":{b==="prev"&&T.reverse();const w=T.indexOf(v);T=s.value?Dse(T,w+1):T.slice(w+1);break}}ut(()=>{v2(T)})}}),h=E(()=>n.value===d(o));return Mt(yO,{rovingFocusGroupItemRef:l,tabIndex:E(()=>d(h)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:o,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function Fse(e,t,n,s,r,i){const a=kt("el-roving-focus-collection-item");return k(),fe(a,{id:e.id,focusable:e.focusable,active:e.active},{default:L(()=>[be(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Vse=ze(Bse,[["render",Fse],["__file","roving-focus-item.vue"]]);const Wp=Ve({trigger:Cf.trigger,effect:{...as.effect,default:"light"},type:{type:le(String)},placement:{type:le(String),default:"bottom"},popperOptions:{type:le(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:le([Number,String]),default:0},maxHeight:{type:le([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:le(Object)},teleported:as.teleported}),bO=Ve({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:sn}}),Use=Ve({onKeydown:{type:le(Function)}}),Hse=[ot.down,ot.pageDown,ot.home],_O=[ot.up,ot.pageUp,ot.end],zse=[...Hse,..._O],{ElCollection:jse,ElCollectionItem:qse,COLLECTION_INJECTION_KEY:Wse,COLLECTION_ITEM_INJECTION_KEY:Kse}=vO("Dropdown"),Xg=Symbol("elDropdown"),{ButtonGroup:Gse}=gn,Yse=J({name:"ElDropdown",components:{ElButton:gn,ElButtonGroup:Gse,ElScrollbar:Da,ElDropdownCollection:jse,ElTooltip:gs,ElRovingFocusGroup:Lse,ElOnlyChild:VI,ElIcon:tt,ArrowDown:Xi},props:Wp,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=It(),s=Pe("dropdown"),{t:r}=Wt(),i=j(),a=j(),o=j(null),l=j(null),u=j(null),c=j(null),f=j(!1),h=[ot.enter,ot.space,ot.down],g=E(()=>({maxHeight:In(e.maxHeight)})),m=E(()=>[s.m(w.value)]),p=E(()=>ho(e.trigger)),y=xs().value,v=E(()=>e.id||y);xe([i,p],([H,V],[N])=>{var Y,Z,ne;(Y=N==null?void 0:N.$el)!=null&&Y.removeEventListener&&N.$el.removeEventListener("pointerenter",O),(Z=H==null?void 0:H.$el)!=null&&Z.removeEventListener&&H.$el.removeEventListener("pointerenter",O),(ne=H==null?void 0:H.$el)!=null&&ne.addEventListener&&V.includes("hover")&&H.$el.addEventListener("pointerenter",O)},{immediate:!0}),un(()=>{var H,V;(V=(H=i.value)==null?void 0:H.$el)!=null&&V.removeEventListener&&i.value.$el.removeEventListener("pointerenter",O)});function b(){S()}function S(){var H;(H=o.value)==null||H.onClose()}function T(){var H;(H=o.value)==null||H.onOpen()}const w=Kn();function C(...H){t("command",...H)}function O(){var H,V;(V=(H=i.value)==null?void 0:H.$el)==null||V.focus()}function P(){}function M(){const H=d(l);p.value.includes("hover")&&(H==null||H.focus()),c.value=null}function U(H){c.value=H}function B(H){f.value||(H.preventDefault(),H.stopImmediatePropagation())}function W(){t("visible-change",!0)}function Q(H){(H==null?void 0:H.type)==="keydown"&&l.value.focus()}function G(){t("visible-change",!1)}return Mt(Xg,{contentRef:l,role:E(()=>e.role),triggerId:v,isUsingKeyboard:f,onItemEnter:P,onItemLeave:M}),Mt("elDropdown",{instance:n,dropdownSize:w,handleClick:b,commandHandler:C,trigger:nn(e,"trigger"),hideOnClick:nn(e,"hideOnClick")}),{t:r,ns:s,scrollbar:u,wrapStyle:g,dropdownTriggerKls:m,dropdownSize:w,triggerId:v,triggerKeys:h,currentTabId:c,handleCurrentTabIdChange:U,handlerMainButtonClick:H=>{t("click",H)},handleEntryFocus:B,handleClose:S,handleOpen:T,handleBeforeShowTooltip:W,handleShowTooltip:Q,handleBeforeHideTooltip:G,onFocusAfterTrapped:H=>{var V,N;H.preventDefault(),(N=(V=l.value)==null?void 0:V.focus)==null||N.call(V,{preventScroll:!0})},popperRef:o,contentRef:l,triggeringElementRef:i,referenceElementRef:a}}});function Xse(e,t,n,s,r,i){var a;const o=kt("el-dropdown-collection"),l=kt("el-roving-focus-group"),u=kt("el-scrollbar"),c=kt("el-only-child"),f=kt("el-tooltip"),h=kt("el-button"),g=kt("arrow-down"),m=kt("el-icon"),p=kt("el-button-group");return k(),z("div",{class:$([e.ns.b(),e.ns.is("disabled",e.disabled)])},[I(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":(a=e.referenceElementRef)==null?void 0:a.$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},ma({content:L(()=>[I(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:L(()=>[I(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:L(()=>[I(o,null,{default:L(()=>[be(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:L(()=>[I(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:L(()=>[be(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?(k(),fe(p,{key:0},{default:L(()=>[I(h,Lt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:L(()=>[be(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),I(h,Lt({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:L(()=>[I(m,{class:$(e.ns.e("icon"))},{default:L(()=>[I(g)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ae("v-if",!0)],2)}var Qse=ze(Yse,[["render",Xse],["__file","dropdown.vue"]]);const Jse=J({name:"DropdownItemImpl",components:{ElIcon:tt},props:bO,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Pe("dropdown"),{role:s}=Je(Xg,void 0),{collectionItemRef:r}=Je(Kse,void 0),{collectionItemRef:i}=Je(xse,void 0),{rovingFocusGroupItemRef:a,tabIndex:o,handleFocus:l,handleKeydown:u,handleMousedown:c}=Je(yO,void 0),f=Bg(r,i,a),h=E(()=>s.value==="menu"?"menuitem":s.value==="navigation"?"link":"button"),g=xn(m=>{const{code:p}=m;if(p===ot.enter||p===ot.space)return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},u);return{ns:n,itemRef:f,dataset:{[gO]:""},role:h,tabIndex:o,handleFocus:l,handleKeydown:g,handleMousedown:c}}}),Zse=["aria-disabled","tabindex","role"];function ere(e,t,n,s,r,i){const a=kt("el-icon");return k(),z(Ge,null,[e.divided?(k(),z("li",Lt({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ae("v-if",!0),R("li",Lt({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]=o=>e.$emit("clickimpl",o)),onFocus:t[1]||(t[1]=(...o)=>e.handleFocus&&e.handleFocus(...o)),onKeydown:t[2]||(t[2]=vt((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=(...o)=>e.handleMousedown&&e.handleMousedown(...o)),onPointermove:t[4]||(t[4]=o=>e.$emit("pointermove",o)),onPointerleave:t[5]||(t[5]=o=>e.$emit("pointerleave",o))}),[e.icon?(k(),fe(a,{key:0},{default:L(()=>[(k(),fe(Nt(e.icon)))]),_:1})):ae("v-if",!0),be(e.$slots,"default")],16,Zse)],64)}var tre=ze(Jse,[["render",ere],["__file","dropdown-item-impl.vue"]]);const SO=()=>{const e=Je("elDropdown",{}),t=E(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},nre=J({name:"ElDropdownItem",components:{ElDropdownCollectionItem:qse,ElRovingFocusItem:Vse,ElDropdownItemImpl:tre},inheritAttrs:!1,props:bO,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:s}=SO(),r=It(),i=j(null),a=E(()=>{var g,m;return(m=(g=d(i))==null?void 0:g.textContent)!=null?m:""}),{onItemEnter:o,onItemLeave:l}=Je(Xg,void 0),u=xn(g=>(t("pointermove",g),g.defaultPrevented),FT(g=>{if(e.disabled){l(g);return}const m=g.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(o(g),g.defaultPrevented||m==null||m.focus())})),c=xn(g=>(t("pointerleave",g),g.defaultPrevented),FT(g=>{l(g)})),f=xn(g=>{if(!e.disabled)return t("click",g),g.type!=="keydown"&&g.defaultPrevented},g=>{var m,p,y;if(e.disabled){g.stopImmediatePropagation();return}(m=s==null?void 0:s.hideOnClick)!=null&&m.value&&((p=s.handleClick)==null||p.call(s)),(y=s.commandHandler)==null||y.call(s,e.command,r,g)}),h=E(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:a,propsAndAttrs:h}}});function sre(e,t,n,s,r,i){var a;const o=kt("el-dropdown-item-impl"),l=kt("el-roving-focus-item"),u=kt("el-dropdown-collection-item");return k(),fe(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:L(()=>[I(l,{focusable:!e.disabled},{default:L(()=>[I(o,Lt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:L(()=>[be(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var wO=ze(nre,[["render",sre],["__file","dropdown-item.vue"]]);const rre=J({name:"ElDropdownMenu",props:Use,setup(e){const t=Pe("dropdown"),{_elDropdownSize:n}=SO(),s=n.value,{focusTrapRef:r,onKeydown:i}=Je(Z1,void 0),{contentRef:a,role:o,triggerId:l}=Je(Xg,void 0),{collectionRef:u,getItems:c}=Je(Wse,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:h,tabIndex:g,onBlur:m,onFocus:p,onMousedown:y}=Je(g2,void 0),{collectionRef:v}=Je(m2,void 0),b=E(()=>[t.b("menu"),t.bm("menu",s==null?void 0:s.value)]),S=Bg(a,u,r,f,v),T=xn(C=>{var O;(O=e.onKeydown)==null||O.call(e,C)},C=>{const{currentTarget:O,code:P,target:M}=C;if(O.contains(M),ot.tab===P&&C.stopImmediatePropagation(),C.preventDefault(),M!==d(a)||!zse.includes(P))return;const B=c().filter(W=>!W.disabled).map(W=>W.ref);_O.includes(P)&&B.reverse(),v2(B)});return{size:s,rovingFocusGroupRootStyle:h,tabIndex:g,dropdownKls:b,role:o,triggerId:l,dropdownListWrapperRef:S,handleKeydown:C=>{T(C),i(C)},onBlur:m,onFocus:p,onMousedown:y}}}),ire=["role","aria-labelledby"];function are(e,t,n,s,r,i){return k(),z("ul",{ref:e.dropdownListWrapperRef,class:$(e.dropdownKls),style:it(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...a)=>e.onBlur&&e.onBlur(...a)),onFocus:t[1]||(t[1]=(...a)=>e.onFocus&&e.onFocus(...a)),onKeydown:t[2]||(t[2]=vt((...a)=>e.handleKeydown&&e.handleKeydown(...a),["self"])),onMousedown:t[3]||(t[3]=vt((...a)=>e.onMousedown&&e.onMousedown(...a),["self"]))},[be(e.$slots,"default")],46,ire)}var TO=ze(rre,[["render",are],["__file","dropdown-menu.vue"]]);const CO=Dt(Qse,{DropdownItem:wO,DropdownMenu:TO}),EO=Tn(wO),xO=Tn(TO),ore={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},lre=["id"],ure=["stop-color"],cre=["stop-color"],dre=["id"],fre=["stop-color"],hre=["stop-color"],pre=["id"],mre={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},gre={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},vre={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},yre=["fill"],bre=["fill"],_re={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)"},Sre=["fill"],wre=["fill"],Tre=["fill"],Cre=["fill"],Ere=["fill"],xre={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},kre=["fill","xlink:href"],Are=["fill","mask"],Ire=["fill"],Dre=J({name:"ImgEmpty"}),Ore=J({...Dre,setup(e){const t=Pe("empty"),n=xs();return(s,r)=>(k(),z("svg",ore,[R("defs",null,[R("linearGradient",{id:`linearGradient-1-${d(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[R("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,ure),R("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,cre)],8,lre),R("linearGradient",{id:`linearGradient-2-${d(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[R("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,fre),R("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,hre)],8,dre),R("rect",{id:`path-3-${d(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,pre)]),R("g",mre,[R("g",gre,[R("g",vre,[R("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(${d(t).cssVarBlockName("fill-color-3")})`},null,8,yre),R("polygon",{id:"Rectangle-Copy-14",fill:`var(${d(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,bre),R("g",_re,[R("polygon",{id:"Rectangle-Copy-10",fill:`var(${d(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,Sre),R("polygon",{id:"Rectangle-Copy-11",fill:`var(${d(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,wre),R("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${d(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,Tre),R("polygon",{id:"Rectangle-Copy-13",fill:`var(${d(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,Cre)]),R("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${d(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,Ere),R("g",xre,[R("use",{id:"Mask",fill:`var(${d(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${d(n)}`},null,8,kre),R("polygon",{id:"Rectangle-Copy",fill:`var(${d(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${d(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,Are)]),R("polygon",{id:"Rectangle-Copy-18",fill:`var(${d(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,Ire)])])])]))}});var Pre=ze(Ore,[["__file","img-empty.vue"]]);const $re=Ve({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Rre=["src"],Nre={key:1},Mre=J({name:"ElEmpty"}),Lre=J({...Mre,props:$re,setup(e){const t=e,{t:n}=Wt(),s=Pe("empty"),r=E(()=>t.description||n("el.table.emptyText")),i=E(()=>({width:In(t.imageSize)}));return(a,o)=>(k(),z("div",{class:$(d(s).b())},[R("div",{class:$(d(s).e("image")),style:it(d(i))},[a.image?(k(),z("img",{key:0,src:a.image,ondragstart:"return false"},null,8,Rre)):be(a.$slots,"image",{key:1},()=>[I(Pre)])],6),R("div",{class:$(d(s).e("description"))},[a.$slots.description?be(a.$slots,"description",{key:0}):(k(),z("p",Nre,pe(d(r)),1))],2),a.$slots.default?(k(),z("div",{key:0,class:$(d(s).e("bottom"))},[be(a.$slots,"default")],2)):ae("v-if",!0)],2))}});var Bre=ze(Lre,[["__file","empty.vue"]]);const ch=Dt(Bre),Fre=Ve({urlList:{type:le(Array),default:()=>wn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:le(String)}}),Vre={close:()=>!0,switch:e=>pt(e),rotate:e=>pt(e)},Ure=["src","crossorigin"],Hre=J({name:"ElImageViewer"}),zre=J({...Hre,props:Fre,emits:Vre,setup(e,{expose:t,emit:n}){var s;const r=e,i={CONTAIN:{name:"contain",icon:bu(oj)},ORIGINAL:{name:"original",icon:bu($j)}},{t:a}=Wt(),o=Pe("image-viewer"),{nextZIndex:l}=xc(),u=j(),c=j([]),f=a6(),h=j(!0),g=j(r.initialIndex),m=ln(i.CONTAIN),p=j({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),y=j((s=r.zIndex)!=null?s:l()),v=E(()=>{const{urlList:Y}=r;return Y.length<=1}),b=E(()=>g.value===0),S=E(()=>g.value===r.urlList.length-1),T=E(()=>r.urlList[g.value]),w=E(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&b.value)]),C=E(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&S.value)]),O=E(()=>{const{scale:Y,deg:Z,offsetX:ne,offsetY:ue,enableTransition:_e}=p.value;let Ne=ne/Y,ce=ue/Y;switch(Z%360){case 90:case-270:[Ne,ce]=[ce,-Ne];break;case 180:case-180:[Ne,ce]=[-Ne,-ce];break;case 270:case-90:[Ne,ce]=[-ce,Ne];break}const te={transform:`scale(${Y}) rotate(${Z}deg) translate(${Ne}px, ${ce}px)`,transition:_e?"transform .3s":""};return m.value.name===i.CONTAIN.name&&(te.maxWidth=te.maxHeight="100%"),te});function P(){U(),n("close")}function M(){const Y=cl(ne=>{switch(ne.code){case ot.esc:r.closeOnPressEscape&&P();break;case ot.space:X();break;case ot.left:H();break;case ot.up:N("zoomIn");break;case ot.right:V();break;case ot.down:N("zoomOut");break}}),Z=cl(ne=>{const ue=ne.deltaY||ne.deltaX;N(ue<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});f.run(()=>{cn(document,"keydown",Y),cn(document,"wheel",Z)})}function U(){f.stop()}function B(){h.value=!1}function W(Y){h.value=!1,Y.target.alt=a("el.image.error")}function Q(Y){if(h.value||Y.button!==0||!u.value)return;p.value.enableTransition=!1;const{offsetX:Z,offsetY:ne}=p.value,ue=Y.pageX,_e=Y.pageY,Ne=cl(te=>{p.value={...p.value,offsetX:Z+te.pageX-ue,offsetY:ne+te.pageY-_e}}),ce=cn(document,"mousemove",Ne);cn(document,"mouseup",()=>{ce()}),Y.preventDefault()}function G(){p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function X(){if(h.value)return;const Y=zu(i),Z=Object.values(i),ne=m.value.name,_e=(Z.findIndex(Ne=>Ne.name===ne)+1)%Y.length;m.value=i[Y[_e]],G()}function q(Y){const Z=r.urlList.length;g.value=(Y+Z)%Z}function H(){b.value&&!r.infinite||q(g.value-1)}function V(){S.value&&!r.infinite||q(g.value+1)}function N(Y,Z={}){if(h.value)return;const{minScale:ne,maxScale:ue}=r,{zoomRate:_e,rotateDeg:Ne,enableTransition:ce}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...Z};switch(Y){case"zoomOut":p.value.scale>ne&&(p.value.scale=Number.parseFloat((p.value.scale/_e).toFixed(3)));break;case"zoomIn":p.value.scale<ue&&(p.value.scale=Number.parseFloat((p.value.scale*_e).toFixed(3)));break;case"clockwise":p.value.deg+=Ne,n("rotate",p.value.deg);break;case"anticlockwise":p.value.deg-=Ne,n("rotate",p.value.deg);break}p.value.enableTransition=ce}return xe(T,()=>{ut(()=>{const Y=c.value[0];Y!=null&&Y.complete||(h.value=!0)})}),xe(g,Y=>{G(),n("switch",Y)}),gt(()=>{var Y,Z;M(),(Z=(Y=u.value)==null?void 0:Y.focus)==null||Z.call(Y)}),t({setActiveItem:q}),(Y,Z)=>(k(),fe(bc,{to:"body",disabled:!Y.teleported},[I(Wn,{name:"viewer-fade",appear:""},{default:L(()=>[R("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:$(d(o).e("wrapper")),style:it({zIndex:y.value})},[R("div",{class:$(d(o).e("mask")),onClick:Z[0]||(Z[0]=vt(ne=>Y.hideOnClickModal&&P(),["self"]))},null,2),ae(" CLOSE "),R("span",{class:$([d(o).e("btn"),d(o).e("close")]),onClick:P},[I(d(tt),null,{default:L(()=>[I(d(hi))]),_:1})],2),ae(" ARROW "),d(v)?ae("v-if",!0):(k(),z(Ge,{key:0},[R("span",{class:$(d(w)),onClick:H},[I(d(tt),null,{default:L(()=>[I(d(mo))]),_:1})],2),R("span",{class:$(d(C)),onClick:V},[I(d(tt),null,{default:L(()=>[I(d(Hs))]),_:1})],2)],64)),ae(" ACTIONS "),R("div",{class:$([d(o).e("btn"),d(o).e("actions")])},[R("div",{class:$(d(o).e("actions__inner"))},[I(d(tt),{onClick:Z[1]||(Z[1]=ne=>N("zoomOut"))},{default:L(()=>[I(d(nq))]),_:1}),I(d(tt),{onClick:Z[2]||(Z[2]=ne=>N("zoomIn"))},{default:L(()=>[I(d(E1))]),_:1}),R("i",{class:$(d(o).e("actions__divider"))},null,2),I(d(tt),{onClick:X},{default:L(()=>[(k(),fe(Nt(d(m).icon)))]),_:1}),R("i",{class:$(d(o).e("actions__divider"))},null,2),I(d(tt),{onClick:Z[3]||(Z[3]=ne=>N("anticlockwise"))},{default:L(()=>[I(d(K3))]),_:1}),I(d(tt),{onClick:Z[4]||(Z[4]=ne=>N("clockwise"))},{default:L(()=>[I(d(Oj))]),_:1})],2)],2),ae(" CANVAS "),R("div",{class:$(d(o).e("canvas"))},[(k(!0),z(Ge,null,_t(Y.urlList,(ne,ue)=>yt((k(),z("img",{ref_for:!0,ref:_e=>c.value[ue]=_e,key:ne,src:ne,style:it(d(O)),class:$(d(o).e("img")),crossorigin:Y.crossorigin,onLoad:B,onError:W,onMousedown:Q},null,46,Ure)),[[zt,ue===g.value]])),128))],2),be(Y.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var jre=ze(zre,[["__file","image-viewer.vue"]]);const y2=Dt(jre),qre=Ve({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:le([String,Object])},previewSrcList:{type:le(Array),default:()=>wn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:le(String)}}),Wre={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>pt(e),close:()=>!0,show:()=>!0},Kre=["src","loading","crossorigin"],Gre={key:0},Yre=J({name:"ElImage",inheritAttrs:!1}),Xre=J({...Yre,props:qre,emits:Wre,setup(e,{emit:t}){const n=e;let s="";const{t:r}=Wt(),i=Pe("image"),a=$l(),o=D1(),l=j(),u=j(!1),c=j(!0),f=j(!1),h=j(),g=j(),m=jt&&"loading"in HTMLImageElement.prototype;let p,y;const v=E(()=>[i.e("inner"),T.value&&i.e("preview"),c.value&&i.is("loading")]),b=E(()=>a.style),S=E(()=>{const{fit:V}=n;return jt&&V?{objectFit:V}:{}}),T=E(()=>{const{previewSrcList:V}=n;return Array.isArray(V)&&V.length>0}),w=E(()=>{const{previewSrcList:V,initialIndex:N}=n;let Y=N;return N>V.length-1&&(Y=0),Y}),C=E(()=>n.loading==="eager"?!1:!m&&n.loading==="lazy"||n.lazy),O=()=>{jt&&(c.value=!0,u.value=!1,l.value=n.src)};function P(V){c.value=!1,u.value=!1,t("load",V)}function M(V){c.value=!1,u.value=!0,t("error",V)}function U(){sF(h.value,g.value)&&(O(),Q())}const B=Q4(U,200,!0);async function W(){var V;if(!jt)return;await ut();const{scrollContainer:N}=n;Kr(N)?g.value=N:bt(N)&&N!==""?g.value=(V=document.querySelector(N))!=null?V:void 0:h.value&&(g.value=y1(h.value)),g.value&&(p=cn(g,"scroll",B),setTimeout(()=>U(),100))}function Q(){!jt||!g.value||!B||(p==null||p(),g.value=void 0)}function G(V){if(V.ctrlKey){if(V.deltaY<0)return V.preventDefault(),!1;if(V.deltaY>0)return V.preventDefault(),!1}}function X(){T.value&&(y=cn("wheel",G,{passive:!1}),s=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function q(){y==null||y(),document.body.style.overflow=s,f.value=!1,t("close")}function H(V){t("switch",V)}return xe(()=>n.src,()=>{C.value?(c.value=!0,u.value=!1,Q(),W()):O()}),gt(()=>{C.value?W():O()}),(V,N)=>(k(),z("div",{ref_key:"container",ref:h,class:$([d(i).b(),V.$attrs.class]),style:it(d(b))},[u.value?be(V.$slots,"error",{key:0},()=>[R("div",{class:$(d(i).e("error"))},pe(d(r)("el.image.error")),3)]):(k(),z(Ge,{key:1},[l.value!==void 0?(k(),z("img",Lt({key:0},d(o),{src:l.value,loading:V.loading,style:d(S),class:d(v),crossorigin:V.crossorigin,onClick:X,onLoad:P,onError:M}),null,16,Kre)):ae("v-if",!0),c.value?(k(),z("div",{key:1,class:$(d(i).e("wrapper"))},[be(V.$slots,"placeholder",{},()=>[R("div",{class:$(d(i).e("placeholder"))},null,2)])],2)):ae("v-if",!0)],64)),d(T)?(k(),z(Ge,{key:2},[f.value?(k(),fe(d(y2),{key:0,"z-index":V.zIndex,"initial-index":d(w),infinite:V.infinite,"zoom-rate":V.zoomRate,"min-scale":V.minScale,"max-scale":V.maxScale,"url-list":V.previewSrcList,"hide-on-click-modal":V.hideOnClickModal,teleported:V.previewTeleported,"close-on-press-escape":V.closeOnPressEscape,onClose:q,onSwitch:H},{default:L(()=>[V.$slots.viewer?(k(),z("div",Gre,[be(V.$slots,"viewer")])):ae("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ae("v-if",!0)],64)):ae("v-if",!0)],6))}});var Qre=ze(Xre,[["__file","image.vue"]]);const kO=Dt(Qre),Jre=Ve({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:es,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||pt(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},...ys(["ariaLabel"])}),Zre={[dn]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[zs]:e=>pt(e)||os(e),[$t]:e=>pt(e)||os(e)},eie=["aria-label","onKeydown"],tie=["aria-label","onKeydown"],nie=J({name:"ElInputNumber"}),sie=J({...nie,props:Jre,emits:Zre,setup(e,{expose:t,emit:n}){const s=e,{t:r}=Wt(),i=Pe("input-number"),a=j(),o=Ct({currentValue:s.modelValue,userInput:null}),{formItem:l}=$s(),u=E(()=>pt(s.modelValue)&&s.modelValue<=s.min),c=E(()=>pt(s.modelValue)&&s.modelValue>=s.max),f=E(()=>{const X=v(s.step);return Fn(s.precision)?Math.max(v(s.modelValue),X):(X>s.precision,s.precision)}),h=E(()=>s.controls&&s.controlsPosition==="right"),g=Kn(),m=Gs(),p=E(()=>{if(o.userInput!==null)return o.userInput;let X=o.currentValue;if(os(X))return"";if(pt(X)){if(Number.isNaN(X))return"";Fn(s.precision)||(X=X.toFixed(s.precision))}return X}),y=(X,q)=>{if(Fn(q)&&(q=f.value),q===0)return Math.round(X);let H=String(X);const V=H.indexOf(".");if(V===-1||!H.replace(".","").split("")[V+q])return X;const Z=H.length;return H.charAt(Z-1)==="5"&&(H=`${H.slice(0,Math.max(0,Z-1))}6`),Number.parseFloat(Number(H).toFixed(q))},v=X=>{if(os(X))return 0;const q=X.toString(),H=q.indexOf(".");let V=0;return H!==-1&&(V=q.length-H-1),V},b=(X,q=1)=>pt(X)?y(X+s.step*q):o.currentValue,S=()=>{if(s.readonly||m.value||c.value)return;const X=Number(p.value)||0,q=b(X);C(q),n(zs,o.currentValue),Q()},T=()=>{if(s.readonly||m.value||u.value)return;const X=Number(p.value)||0,q=b(X,-1);C(q),n(zs,o.currentValue),Q()},w=(X,q)=>{const{max:H,min:V,step:N,precision:Y,stepStrictly:Z,valueOnClear:ne}=s;H<V&&Zn("InputNumber","min should not be greater than max.");let ue=Number(X);if(os(X)||Number.isNaN(ue))return null;if(X===""){if(ne===null)return null;ue=bt(ne)?{min:V,max:H}[ne]:ne}return Z&&(ue=y(Math.round(ue/N)*N,Y)),Fn(Y)||(ue=y(ue,Y)),(ue>H||ue<V)&&(ue=ue>H?H:V,q&&n($t,ue)),ue},C=(X,q=!0)=>{var H;const V=o.currentValue,N=w(X);if(!q){n($t,N);return}V===N&&X||(o.userInput=null,n($t,N),V!==N&&n(dn,N,V),s.validateEvent&&((H=l==null?void 0:l.validate)==null||H.call(l,"change").catch(Y=>void 0)),o.currentValue=N)},O=X=>{o.userInput=X;const q=X===""?null:Number(X);n(zs,q),C(q,!1)},P=X=>{const q=X!==""?Number(X):"";(pt(q)&&!Number.isNaN(q)||X==="")&&C(q),Q(),o.userInput=null},M=()=>{var X,q;(q=(X=a.value)==null?void 0:X.focus)==null||q.call(X)},U=()=>{var X,q;(q=(X=a.value)==null?void 0:X.blur)==null||q.call(X)},B=X=>{n("focus",X)},W=X=>{var q;o.userInput=null,n("blur",X),s.validateEvent&&((q=l==null?void 0:l.validate)==null||q.call(l,"blur").catch(H=>void 0))},Q=()=>{o.currentValue!==s.modelValue&&(o.currentValue=s.modelValue)},G=X=>{document.activeElement===X.target&&X.preventDefault()};return xe(()=>s.modelValue,(X,q)=>{const H=w(X,!0);o.userInput===null&&H!==q&&(o.currentValue=H)},{immediate:!0}),gt(()=>{var X;const{min:q,max:H,modelValue:V}=s,N=(X=a.value)==null?void 0:X.input;if(N.setAttribute("role","spinbutton"),Number.isFinite(H)?N.setAttribute("aria-valuemax",String(H)):N.removeAttribute("aria-valuemax"),Number.isFinite(q)?N.setAttribute("aria-valuemin",String(q)):N.removeAttribute("aria-valuemin"),N.setAttribute("aria-valuenow",o.currentValue||o.currentValue===0?String(o.currentValue):""),N.setAttribute("aria-disabled",String(m.value)),!pt(V)&&V!=null){let Y=Number(V);Number.isNaN(Y)&&(Y=null),n($t,Y)}N.addEventListener("wheel",G,{passive:!1})}),xa(()=>{var X,q;const H=(X=a.value)==null?void 0:X.input;H==null||H.setAttribute("aria-valuenow",`${(q=o.currentValue)!=null?q:""}`)}),ss({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input-number",ref:"https://element-plus.org/en-US/component/input-number.html"},E(()=>!!s.label)),t({focus:M,blur:U}),(X,q)=>(k(),z("div",{class:$([d(i).b(),d(i).m(d(g)),d(i).is("disabled",d(m)),d(i).is("without-controls",!X.controls),d(i).is("controls-right",d(h))]),onDragstart:q[0]||(q[0]=vt(()=>{},["prevent"]))},[X.controls?yt((k(),z("span",{key:0,role:"button","aria-label":d(r)("el.inputNumber.decrease"),class:$([d(i).e("decrease"),d(i).is("disabled",d(u))]),onKeydown:Zt(T,["enter"])},[be(X.$slots,"decrease-icon",{},()=>[I(d(tt),null,{default:L(()=>[d(h)?(k(),fe(d(Xi),{key:0})):(k(),fe(d(vj),{key:1}))]),_:1})])],42,eie)),[[d(Im),T]]):ae("v-if",!0),X.controls?yt((k(),z("span",{key:1,role:"button","aria-label":d(r)("el.inputNumber.increase"),class:$([d(i).e("increase"),d(i).is("disabled",d(c))]),onKeydown:Zt(S,["enter"])},[be(X.$slots,"increase-icon",{},()=>[I(d(tt),null,{default:L(()=>[d(h)?(k(),fe(d(Rg),{key:0})):(k(),fe(d(T1),{key:1}))]),_:1})])],42,tie)),[[d(Im),S]]):ae("v-if",!0),I(d(Vn),{id:X.id,ref_key:"input",ref:a,type:"number",step:X.step,"model-value":d(p),placeholder:X.placeholder,readonly:X.readonly,disabled:d(m),size:d(g),max:X.max,min:X.min,name:X.name,"aria-label":X.label||X.ariaLabel,"validate-event":!1,onKeydown:[Zt(vt(S,["prevent"]),["up"]),Zt(vt(T,["prevent"]),["down"])],onBlur:W,onFocus:B,onInput:O,onChange:P},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],34))}});var rie=ze(sie,[["__file","input-number.vue"]]);const Qg=Dt(rie),iie=Ve({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:""},target:{type:String,default:"_self"},icon:{type:sn}}),aie={click:e=>e instanceof MouseEvent},oie=["href","target"],lie=J({name:"ElLink"}),uie=J({...lie,props:iie,emits:aie,setup(e,{emit:t}){const n=e,s=Pe("link"),r=E(()=>[s.b(),s.m(n.type),s.is("disabled",n.disabled),s.is("underline",n.underline&&!n.disabled)]);function i(a){n.disabled||t("click",a)}return(a,o)=>(k(),z("a",{class:$(d(r)),href:a.disabled||!a.href?void 0:a.href,target:a.disabled||!a.href?void 0:a.target,onClick:i},[a.icon?(k(),fe(d(tt),{key:0},{default:L(()=>[(k(),fe(Nt(a.icon)))]),_:1})):ae("v-if",!0),a.$slots.default?(k(),z("span",{key:1,class:$(d(s).e("inner"))},[be(a.$slots,"default")],2)):ae("v-if",!0),a.$slots.icon?be(a.$slots,"icon",{key:2}):ae("v-if",!0)],10,oie))}});var cie=ze(uie,[["__file","link.vue"]]);const AO=Dt(cie);let die=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 ot.down:{this.gotoSubIndex(this.subIndex+1),r=!0;break}case ot.up:{this.gotoSubIndex(this.subIndex-1),r=!0;break}case ot.tab:{Pp(t,"mouseleave");break}case ot.enter:case ot.space:{r=!0,s.currentTarget.click();break}}return r&&(s.preventDefault(),s.stopPropagation()),!1})})}},fie=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 die(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case ot.down:{Pp(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case ot.up:{Pp(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case ot.tab:{Pp(t.currentTarget,"mouseleave");break}case ot.enter:case ot.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},hie=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 fie(s,t)})}};const pie=J({name:"ElMenuCollapseTransition",setup(){const e=Pe("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,s){Lr(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",s()},onAfterEnter(n){Os(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Ur(n,e.m("collapse"))?(Os(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Lr(n,e.m("collapse"))):(Lr(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Os(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Lr(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function mie(e,t,n,s,r,i){return k(),fe(Wn,Lt({mode:"out-in"},e.listeners),{default:L(()=>[be(e.$slots,"default")]),_:3},16)}var gie=ze(pie,[["render",mie],["__file","menu-collapse-transition.vue"]]);function IO(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 vie(e){return E(()=>{const n=e.backgroundColor;return n?new ZI(n).shade(20).toString():""})}const DO=(e,t)=>{const n=Pe("menu");return E(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":vie(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},yie=Ve({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:sn},expandOpenIcon:{type:sn},collapseCloseIcon:{type:sn},collapseOpenIcon:{type:sn}}),A0="ElSubMenu";var b2=J({name:A0,props:yie,setup(e,{slots:t,expose:n}){const s=It(),{indexPath:r,parentMenu:i}=IO(s,E(()=>e.index)),a=Pe("menu"),o=Pe("sub-menu"),l=Je("rootMenu");l||Zn(A0,"can not inject root menu");const u=Je(`subMenu:${i.value.uid}`);u||Zn(A0,"can not inject sub menu");const c=j({}),f=j({});let h;const g=j(!1),m=j(),p=j(null),y=E(()=>P.value==="horizontal"&&b.value?"bottom-start":"right-start"),v=E(()=>P.value==="horizontal"&&b.value||P.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?C.value?e.expandOpenIcon:e.expandCloseIcon:Xi:e.collapseCloseIcon&&e.collapseOpenIcon?C.value?e.collapseOpenIcon:e.collapseCloseIcon:Hs),b=E(()=>u.level===0),S=E(()=>{const Y=e.teleported;return Y===void 0?b.value:Y}),T=E(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),w=E(()=>P.value==="horizontal"&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),C=E(()=>l.openedMenus.includes(e.index)),O=E(()=>{let Y=!1;return Object.values(c.value).forEach(Z=>{Z.active&&(Y=!0)}),Object.values(f.value).forEach(Z=>{Z.active&&(Y=!0)}),Y}),P=E(()=>l.props.mode),M=Ct({index:e.index,indexPath:r,active:O}),U=DO(l.props,u.level+1),B=E(()=>{var Y;return(Y=e.popperOffset)!=null?Y:l.props.popperOffset}),W=E(()=>{var Y;return(Y=e.popperClass)!=null?Y:l.props.popperClass}),Q=E(()=>{var Y;return(Y=e.showTimeout)!=null?Y:l.props.showTimeout}),G=E(()=>{var Y;return(Y=e.hideTimeout)!=null?Y:l.props.hideTimeout}),X=()=>{var Y,Z,ne;return(ne=(Z=(Y=p.value)==null?void 0:Y.popperRef)==null?void 0:Z.popperInstanceRef)==null?void 0:ne.destroy()},q=Y=>{Y||X()},H=()=>{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:O.value})},V=(Y,Z=Q.value)=>{var ne;if(Y.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,h==null||h(),{stop:h}=Sl(()=>{l.openMenu(e.index,r.value)},Z),S.value&&((ne=i.value.vnode.el)==null||ne.dispatchEvent(new MouseEvent("mouseenter")))}},N=(Y=!1)=>{var Z;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}h==null||h(),u.mouseInChild.value=!1,{stop:h}=Sl(()=>!g.value&&l.closeMenu(e.index,r.value),G.value),S.value&&Y&&((Z=u.handleMouseleave)==null||Z.call(u,!0))};xe(()=>l.props.collapse,Y=>q(!!Y));{const Y=ne=>{f.value[ne.index]=ne},Z=ne=>{delete f.value[ne.index]};Mt(`subMenu:${s.uid}`,{addSubMenu:Y,removeSubMenu:Z,handleMouseleave:N,mouseInChild:g,level:u.level+1})}return n({opened:C}),gt(()=>{l.addSubMenu(M),u.addSubMenu(M)}),un(()=>{u.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var Y;const Z=[(Y=t.title)==null?void 0:Y.call(t),lt(tt,{class:o.e("icon-arrow"),style:{transform:C.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>bt(v.value)?lt(s.appContext.components[v.value]):lt(v.value)})],ne=l.isMenuPopup?lt(gs,{ref:p,visible:C.value,effect:"light",pure:!0,offset:B.value,showArrow:!1,persistent:!0,popperClass:W.value,placement:y.value,teleported:S.value,fallbackPlacements:w.value,transition:T.value,gpuAcceleration:!1},{content:()=>{var ue;return lt("div",{class:[a.m(P.value),a.m("popup-container"),W.value],onMouseenter:_e=>V(_e,100),onMouseleave:()=>N(!0),onFocus:_e=>V(_e,100)},[lt("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${y.value}`)],style:U.value},[(ue=t.default)==null?void 0:ue.call(t)])])},default:()=>lt("div",{class:o.e("title"),onClick:H},Z)}):lt(Ge,{},[lt("div",{class:o.e("title"),ref:m,onClick:H},Z),lt(Yg,{},{default:()=>{var ue;return yt(lt("ul",{role:"menu",class:[a.b(),a.m("inline")],style:U.value},[(ue=t.default)==null?void 0:ue.call(t)]),[[zt,C.value]])}})]);return lt("li",{class:[o.b(),o.is("active",O.value),o.is("opened",C.value),o.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:C.value,onMouseenter:V,onMouseleave:()=>N(),onFocus:V},[ne])}}});const bie=Ve({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:le(Array),default:()=>wn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:sn,default:()=>wj},popperEffect:{type:String,values:["dark","light"],default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),I0=e=>Array.isArray(e)&&e.every(t=>bt(t)),_ie={close:(e,t)=>bt(e)&&I0(t),open:(e,t)=>bt(e)&&I0(t),select:(e,t,n,s)=>bt(e)&&I0(t)&&Pt(n)&&(s===void 0||s instanceof Promise)};var Sie=J({name:"ElMenu",props:bie,emits:_ie,setup(e,{emit:t,slots:n,expose:s}){const r=It(),i=r.appContext.config.globalProperties.$router,a=j(),o=Pe("menu"),l=Pe("sub-menu"),u=j(-1),c=j(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=j(e.defaultActive),h=j({}),g=j({}),m=E(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const G=f.value&&h.value[f.value];if(!G||e.mode==="horizontal"||e.collapse)return;G.indexPath.forEach(q=>{const H=g.value[q];H&&y(q,H.indexPath)})},y=(G,X)=>{c.value.includes(G)||(e.uniqueOpened&&(c.value=c.value.filter(q=>X.includes(q))),c.value.push(G),t("open",G,X))},v=G=>{const X=c.value.indexOf(G);X!==-1&&c.value.splice(X,1)},b=(G,X)=>{v(G),t("close",G,X)},S=({index:G,indexPath:X})=>{c.value.includes(G)?b(G,X):y(G,X)},T=G=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:X,indexPath:q}=G;if(!(os(X)||os(q)))if(e.router&&i){const H=G.route||X,V=i.push(H).then(N=>(N||(f.value=X),N));t("select",X,q,{index:X,indexPath:q,route:H},V)}else f.value=X,t("select",X,q,{index:X,indexPath:q})},w=G=>{const X=h.value,q=X[G]||f.value&&X[f.value]||X[e.defaultActive];q?f.value=q.index:f.value=G},C=G=>{const X=getComputedStyle(G),q=Number.parseInt(X.marginLeft,10),H=Number.parseInt(X.marginRight,10);return G.offsetWidth+q+H||0},O=()=>{var G,X;if(!a.value)return-1;const q=Array.from((X=(G=a.value)==null?void 0:G.childNodes)!=null?X:[]).filter(_e=>_e.nodeName!=="#comment"&&(_e.nodeName!=="#text"||_e.nodeValue)),H=64,V=getComputedStyle(a.value),N=Number.parseInt(V.paddingLeft,10),Y=Number.parseInt(V.paddingRight,10),Z=a.value.clientWidth-N-Y;let ne=0,ue=0;return q.forEach((_e,Ne)=>{ne+=C(_e),ne<=Z-H&&(ue=Ne+1)}),ue===q.length?-1:ue},P=G=>g.value[G].indexPath,M=(G,X=33.34)=>{let q;return()=>{q&&clearTimeout(q),q=setTimeout(()=>{G()},X)}};let U=!0;const B=()=>{if(u.value===O())return;const G=()=>{u.value=-1,ut(()=>{u.value=O()})};U?G():M(G)(),U=!1};xe(()=>e.defaultActive,G=>{h.value[G]||(f.value=""),w(G)}),xe(()=>e.collapse,G=>{G&&(c.value=[])}),xe(h.value,p);let W;ps(()=>{e.mode==="horizontal"&&e.ellipsis?W=Sn(a,B).stop:W==null||W()});const Q=j(!1);{const G=V=>{g.value[V.index]=V},X=V=>{delete g.value[V.index]};Mt("rootMenu",Ct({props:e,openedMenus:c,items:h,subMenus:g,activeIndex:f,isMenuPopup:m,addMenuItem:V=>{h.value[V.index]=V},removeMenuItem:V=>{delete h.value[V.index]},addSubMenu:G,removeSubMenu:X,openMenu:y,closeMenu:b,handleMenuItemClick:T,handleSubMenuClick:S})),Mt(`subMenu:${r.uid}`,{addSubMenu:G,removeSubMenu:X,mouseInChild:Q,level:0})}return gt(()=>{e.mode==="horizontal"&&new hie(r.vnode.el,o.namespace.value)}),s({open:X=>{const{indexPath:q}=g.value[X];q.forEach(H=>y(H,q))},close:v,handleResize:B}),()=>{var G,X;let q=(X=(G=n.default)==null?void 0:G.call(n))!=null?X:[];const H=[];if(e.mode==="horizontal"&&a.value){const Z=ao(q),ne=u.value===-1?Z:Z.slice(0,u.value),ue=u.value===-1?[]:Z.slice(u.value);ue!=null&&ue.length&&e.ellipsis&&(q=ne,H.push(lt(b2,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>lt(tt,{class:l.e("icon-more")},{default:()=>lt(e.ellipsisIcon)}),default:()=>ue})))}const V=DO(e,0),N=e.closeOnClickOutside?[[ba,()=>{c.value.length&&(Q.value||(c.value.forEach(Z=>t("close",Z,P(Z))),c.value=[]))}]]:[],Y=yt(lt("ul",{key:String(e.collapse),role:"menubar",ref:a,style:V.value,class:{[o.b()]:!0,[o.m(e.mode)]:!0,[o.m("collapse")]:e.collapse}},[...q,...H]),N);return e.collapseTransition&&e.mode==="vertical"?lt(gie,()=>Y):Y}}});const wie=Ve({index:{type:le([String,null]),default:null},route:{type:le([String,Object])},disabled:Boolean}),Tie={click:e=>bt(e.index)&&Array.isArray(e.indexPath)},D0="ElMenuItem",Cie=J({name:D0,components:{ElTooltip:gs},props:wie,emits:Tie,setup(e,{emit:t}){const n=It(),s=Je("rootMenu"),r=Pe("menu"),i=Pe("menu-item");s||Zn(D0,"can not inject root menu");const{parentMenu:a,indexPath:o}=IO(n,nn(e,"index")),l=Je(`subMenu:${a.value.uid}`);l||Zn(D0,"can not inject sub menu");const u=E(()=>e.index===s.activeIndex),c=Ct({index:e.index,indexPath:o,active:u}),f=()=>{e.disabled||(s.handleMenuItemClick({index:e.index,indexPath:o.value,route:e.route}),t("click",c))};return gt(()=>{l.addSubMenu(c),s.addMenuItem(c)}),un(()=>{l.removeSubMenu(c),s.removeMenuItem(c)}),{parentMenu:a,rootMenu:s,active:u,nsMenu:r,nsMenuItem:i,handleClick:f}}});function Eie(e,t,n,s,r,i){const a=kt("el-tooltip");return k(),z("li",{class:$([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(k(),fe(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:L(()=>[be(e.$slots,"title")]),default:L(()=>[R("div",{class:$(e.nsMenu.be("tooltip","trigger"))},[be(e.$slots,"default")],2)]),_:3},8,["effect"])):(k(),z(Ge,{key:1},[be(e.$slots,"default"),be(e.$slots,"title")],64))],2)}var OO=ze(Cie,[["render",Eie],["__file","menu-item.vue"]]);const xie={title:String},kie="ElMenuItemGroup",Aie=J({name:kie,props:xie,setup(){return{ns:Pe("menu-item-group")}}});function Iie(e,t,n,s,r,i){return k(),z("li",{class:$(e.ns.b())},[R("div",{class:$(e.ns.e("title"))},[e.$slots.title?be(e.$slots,"title",{key:1}):(k(),z(Ge,{key:0},[Re(pe(e.title),1)],64))],2),R("ul",null,[be(e.$slots,"default")])],2)}var PO=ze(Aie,[["render",Iie],["__file","menu-item-group.vue"]]);const $O=Dt(Sie,{MenuItem:OO,MenuItemGroup:PO,SubMenu:b2}),RO=Tn(OO),Die=Tn(PO),NO=Tn(b2),Oie=Ve({icon:{type:sn,default:()=>Pz},title:String,content:{type:String,default:""}}),Pie={back:()=>!0},$ie=["aria-label"],Rie=J({name:"ElPageHeader"}),Nie=J({...Rie,props:Oie,emits:Pie,setup(e,{emit:t}){const n=us(),{t:s}=Wt(),r=Pe("page-header"),i=E(()=>[r.b(),{[r.m("has-breadcrumb")]:!!n.breadcrumb,[r.m("has-extra")]:!!n.extra,[r.is("contentful")]:!!n.default}]);function a(){t("back")}return(o,l)=>(k(),z("div",{class:$(d(i))},[o.$slots.breadcrumb?(k(),z("div",{key:0,class:$(d(r).e("breadcrumb"))},[be(o.$slots,"breadcrumb")],2)):ae("v-if",!0),R("div",{class:$(d(r).e("header"))},[R("div",{class:$(d(r).e("left"))},[R("div",{class:$(d(r).e("back")),role:"button",tabindex:"0",onClick:a},[o.icon||o.$slots.icon?(k(),z("div",{key:0,"aria-label":o.title||d(s)("el.pageHeader.title"),class:$(d(r).e("icon"))},[be(o.$slots,"icon",{},()=>[o.icon?(k(),fe(d(tt),{key:0},{default:L(()=>[(k(),fe(Nt(o.icon)))]),_:1})):ae("v-if",!0)])],10,$ie)):ae("v-if",!0),R("div",{class:$(d(r).e("title"))},[be(o.$slots,"title",{},()=>[Re(pe(o.title||d(s)("el.pageHeader.title")),1)])],2)],2),I(d(mO),{direction:"vertical"}),R("div",{class:$(d(r).e("content"))},[be(o.$slots,"content",{},()=>[Re(pe(o.content),1)])],2)],2),o.$slots.extra?(k(),z("div",{key:0,class:$(d(r).e("extra"))},[be(o.$slots,"extra")],2)):ae("v-if",!0)],2),o.$slots.default?(k(),z("div",{key:1,class:$(d(r).e("main"))},[be(o.$slots,"default")],2)):ae("v-if",!0)],2))}});var Mie=ze(Nie,[["__file","page-header.vue"]]);const Lie=Dt(Mie),MO=Symbol("elPaginationKey"),Bie=Ve({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:sn}}),Fie={click:e=>e instanceof MouseEvent},Vie=["disabled","aria-label","aria-disabled"],Uie={key:0},Hie=J({name:"ElPaginationPrev"}),zie=J({...Hie,props:Bie,emits:Fie,setup(e){const t=e,{t:n}=Wt(),s=E(()=>t.disabled||t.currentPage<=1);return(r,i)=>(k(),z("button",{type:"button",class:"btn-prev",disabled:d(s),"aria-label":r.prevText||d(n)("el.pagination.prev"),"aria-disabled":d(s),onClick:i[0]||(i[0]=a=>r.$emit("click",a))},[r.prevText?(k(),z("span",Uie,pe(r.prevText),1)):(k(),fe(d(tt),{key:1},{default:L(()=>[(k(),fe(Nt(r.prevIcon)))]),_:1}))],8,Vie))}});var jie=ze(zie,[["__file","prev.vue"]]);const qie=Ve({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:sn}}),Wie=["disabled","aria-label","aria-disabled"],Kie={key:0},Gie=J({name:"ElPaginationNext"}),Yie=J({...Gie,props:qie,emits:["click"],setup(e){const t=e,{t:n}=Wt(),s=E(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(k(),z("button",{type:"button",class:"btn-next",disabled:d(s),"aria-label":r.nextText||d(n)("el.pagination.next"),"aria-disabled":d(s),onClick:i[0]||(i[0]=a=>r.$emit("click",a))},[r.nextText?(k(),z("span",Kie,pe(r.nextText),1)):(k(),fe(d(tt),{key:1},{default:L(()=>[(k(),fe(Nt(r.nextIcon)))]),_:1}))],8,Wie))}});var Xie=ze(Yie,[["__file","next.vue"]]);const LO=Symbol("ElSelectGroup"),Dc=Symbol("ElSelect");function Qie(e,t){const n=Je(Dc),s=Je(LO,{disabled:!1}),r=E(()=>n.props.multiple?c(n.props.modelValue,e.value):c([n.props.modelValue],e.value)),i=E(()=>{if(n.props.multiple){const g=n.props.modelValue||[];return!r.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=E(()=>e.label||(Pt(e.value)?"":e.value)),o=E(()=>e.value||e.label||""),l=E(()=>e.disabled||t.groupDisabled||i.value),u=It(),c=(g=[],m)=>{if(Pt(e.value)){const p=n.props.valueKey;return g&&g.some(y=>en(Rn(y,p))===Rn(m,p))}else return g&&g.includes(m)},f=()=>{!e.disabled&&!s.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},h=g=>{const m=new RegExp(v1(g),"i");t.visible=m.test(a.value)||e.created};return xe(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),xe(()=>e.value,(g,m)=>{const{remote:p,valueKey:y}=n.props;if(Ds(g,m)||(n.onOptionDestroy(m,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!p){if(y&&Pt(g)&&Pt(m)&&g[y]===m[y])return;n.setSelected()}}),xe(()=>s.disabled,()=>{t.groupDisabled=s.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:o,itemSelected:r,isDisabled:l,hoverItem:f,updateOption:h}}const Jie=J({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Pe("select"),n=xs(),s=E(()=>[t.be("dropdown","item"),t.is("disabled",d(o)),t.is("selected",d(a)),t.is("hovering",d(h))]),r=Ct({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:o,select:l,hoverItem:u,updateOption:c}=Qie(e,r),{visible:f,hover:h}=ms(r),g=It().proxy;l.onOptionCreate(g),un(()=>{const p=g.value,{selected:y}=l.states,b=(l.props.multiple?y:[y]).some(S=>S.value===g.value);ut(()=>{l.states.cachedOptions.get(p)===g&&!b&&l.states.cachedOptions.delete(p)}),l.onOptionDestroy(p,g)});function m(){e.disabled!==!0&&r.groupDisabled!==!0&&l.handleOptionSelect(g)}return{ns:t,id:n,containerKls:s,currentLabel:i,itemSelected:a,isDisabled:o,select:l,hoverItem:u,updateOption:c,visible:f,hover:h,selectOptionClick:m,states:r}}}),Zie=["id","aria-disabled","aria-selected"];function eae(e,t,n,s,r,i){return yt((k(),z("li",{id:e.id,class:$(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=vt((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[be(e.$slots,"default",{},()=>[R("span",null,pe(e.currentLabel),1)])],42,Zie)),[[zt,e.visible]])}var _2=ze(Jie,[["render",eae],["__file","option.vue"]]);const tae=J({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Je(Dc),t=Pe("select"),n=E(()=>e.props.popperClass),s=E(()=>e.props.multiple),r=E(()=>e.props.fitInputWidth),i=j("");function a(){var o;i.value=`${(o=e.selectRef)==null?void 0:o.offsetWidth}px`}return gt(()=>{a(),Sn(e.selectRef,a)}),{ns:t,minWidth:i,popperClass:n,isMultiple:s,isFitInputWidth:r}}});function nae(e,t,n,s,r,i){return k(),z("div",{class:$([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:it({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(k(),z("div",{key:0,class:$(e.ns.be("dropdown","header"))},[be(e.$slots,"header")],2)):ae("v-if",!0),be(e.$slots,"default"),e.$slots.footer?(k(),z("div",{key:1,class:$(e.ns.be("dropdown","footer"))},[be(e.$slots,"footer")],2)):ae("v-if",!0)],6)}var sae=ze(tae,[["render",nae],["__file","select-dropdown.vue"]]);function BO(e){const t=j(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const a=i.target.value,o=a[a.length-1]||"";t.value=!I1(o)},handleCompositionEnd:i=>{t.value&&(t.value=!1,mt(e)&&e(i))}}}const rae=11,iae=(e,t)=>{const{t:n}=Wt(),s=xs(),r=Pe("select"),i=Pe("input"),a=Ct({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),o=j(null),l=j(null),u=j(null),c=j(null),f=j(null),h=j(null),g=j(null),m=j(null),p=j(null),y=j(null),v=j(null),b=j(null),{wrapperRef:S,isFocused:T,handleFocus:w,handleBlur:C}=Hg(f,{afterFocus(){e.automaticDropdown&&!O.value&&(O.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(Ke){var ft,rn;return((ft=u.value)==null?void 0:ft.isFocusInsideContent(Ke))||((rn=c.value)==null?void 0:rn.isFocusInsideContent(Ke))},afterBlur(){O.value=!1,a.menuVisibleOnFocus=!1}}),O=j(!1),P=j(),{form:M,formItem:U}=$s(),{inputId:B}=_i(e,{formItemContext:U}),{valueOnClear:W,isEmptyValue:Q}=zg(e),G=E(()=>e.disabled||(M==null?void 0:M.disabled)),X=E(()=>e.multiple?Xe(e.modelValue)&&e.modelValue.length>0:!Q(e.modelValue)),q=E(()=>e.clearable&&!G.value&&a.inputHovering&&X.value),H=E(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),V=E(()=>r.is("reverse",H.value&&O.value)),N=E(()=>(U==null?void 0:U.validateState)||""),Y=E(()=>A1[N.value]),Z=E(()=>e.remote?300:0),ne=E(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&ue.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),ue=E(()=>_e.value.filter(Ke=>Ke.visible).length),_e=E(()=>{const Ke=Array.from(a.options.values()),ft=[];return a.optionValues.forEach(rn=>{const Ft=Ke.findIndex(hr=>hr.value===rn);Ft>-1&&ft.push(Ke[Ft])}),ft.length>=Ke.length?ft:Ke}),Ne=E(()=>Array.from(a.cachedOptions.values())),ce=E(()=>{const Ke=_e.value.filter(ft=>!ft.created).some(ft=>ft.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!Ke}),te=()=>{e.filterable&&mt(e.filterMethod)||e.filterable&&e.remote&&mt(e.remoteMethod)||_e.value.forEach(Ke=>{var ft;(ft=Ke.updateOption)==null||ft.call(Ke,a.inputValue)})},ie=Kn(),we=E(()=>["small"].includes(ie.value)?"small":"default"),me=E({get(){return O.value&&ne.value!==!1},set(Ke){O.value=Ke}}),Ce=E(()=>Xe(e.modelValue)?e.modelValue.length===0&&!a.inputValue:e.filterable?!a.inputValue:!0),Be=E(()=>{var Ke;const ft=(Ke=e.placeholder)!=null?Ke:n("el.select.placeholder");return e.multiple||!X.value?ft:a.selectedLabel}),ee=E(()=>Oy?null:"mouseenter");xe(()=>e.modelValue,(Ke,ft)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",se("")),Le(),!Ds(Ke,ft)&&e.validateEvent&&(U==null||U.validate("change").catch(rn=>void 0))},{flush:"post",deep:!0}),xe(()=>O.value,Ke=>{Ke?se(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",Ke)}),xe(()=>a.options.entries(),()=>{var Ke;if(!jt)return;const ft=((Ke=o.value)==null?void 0:Ke.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Fn(e.modelValue)||!Array.from(ft).includes(document.activeElement))&&Le(),e.defaultFirstOption&&(e.filterable||e.remote)&&ue.value&&Te()},{flush:"post"}),xe(()=>a.hoveringIndex,Ke=>{pt(Ke)&&Ke>-1?P.value=_e.value[Ke]||{}:P.value={},_e.value.forEach(ft=>{ft.hover=P.value===ft})}),ps(()=>{a.isBeforeHide||te()});const se=Ke=>{a.previousQuery!==Ke&&(a.previousQuery=Ke,e.filterable&&mt(e.filterMethod)?e.filterMethod(Ke):e.filterable&&e.remote&&mt(e.remoteMethod)&&e.remoteMethod(Ke),e.defaultFirstOption&&(e.filterable||e.remote)&&ue.value?ut(Te):ut(De))},Te=()=>{const Ke=_e.value.filter(Ft=>Ft.visible&&!Ft.disabled&&!Ft.states.groupDisabled),ft=Ke.find(Ft=>Ft.created),rn=Ke[0];a.hoveringIndex=Me(_e.value,ft||rn)},Le=()=>{if(e.multiple)a.selectedLabel="";else{const ft=Se(e.modelValue);a.selectedLabel=ft.currentLabel,a.selected=ft;return}const Ke=[];Xe(e.modelValue)&&e.modelValue.forEach(ft=>{Ke.push(Se(ft))}),a.selected=Ke},Se=Ke=>{let ft;const rn=kp(Ke).toLowerCase()==="object",Ft=kp(Ke).toLowerCase()==="null",hr=kp(Ke).toLowerCase()==="undefined";for(let mr=a.cachedOptions.size-1;mr>=0;mr--){const ts=Ne.value[mr];if(rn?Rn(ts.value,e.valueKey)===Rn(Ke,e.valueKey):ts.value===Ke){ft={value:Ke,currentLabel:ts.currentLabel,get isDisabled(){return ts.isDisabled}};break}}if(ft)return ft;const pr=rn?Ke.label:!Ft&&!hr?Ke:"";return{value:Ke,currentLabel:pr}},De=()=>{e.multiple?a.hoveringIndex=_e.value.findIndex(Ke=>a.selected.some(ft=>Ti(ft)===Ti(Ke))):a.hoveringIndex=_e.value.findIndex(Ke=>Ti(Ke)===Ti(a.selected))},Fe=()=>{a.selectionWidth=l.value.getBoundingClientRect().width},Ie=()=>{a.calculatorWidth=h.value.getBoundingClientRect().width},je=()=>{a.collapseItemWidth=v.value.getBoundingClientRect().width},Ee=()=>{var Ke,ft;(ft=(Ke=u.value)==null?void 0:Ke.updatePopper)==null||ft.call(Ke)},Ze=()=>{var Ke,ft;(ft=(Ke=c.value)==null?void 0:Ke.updatePopper)==null||ft.call(Ke)},nt=()=>{a.inputValue.length>0&&!O.value&&(O.value=!0),se(a.inputValue)},ke=Ke=>{if(a.inputValue=Ke.target.value,e.remote)et();else return nt()},et=or(()=>{nt()},Z.value),dt=Ke=>{Ds(e.modelValue,Ke)||t(dn,Ke)},At=Ke=>F3(Ke,ft=>!a.disabledOptions.has(ft)),xt=Ke=>{if(e.multiple&&Ke.code!==ot.delete&&Ke.target.value.length<=0){const ft=e.modelValue.slice(),rn=At(ft);if(rn<0)return;const Ft=ft[rn];ft.splice(rn,1),t($t,ft),dt(ft),t("remove-tag",Ft)}},ct=(Ke,ft)=>{const rn=a.selected.indexOf(ft);if(rn>-1&&!G.value){const Ft=e.modelValue.slice();Ft.splice(rn,1),t($t,Ft),dt(Ft),t("remove-tag",ft.value)}Ke.stopPropagation(),Mn()},Ae=Ke=>{Ke.stopPropagation();const ft=e.multiple?[]:W.value;if(e.multiple)for(const rn of a.selected)rn.isDisabled&&ft.push(rn.value);t($t,ft),dt(ft),a.hoveringIndex=-1,O.value=!1,t("clear"),Mn()},Ue=Ke=>{if(e.multiple){const ft=(e.modelValue||[]).slice(),rn=Me(ft,Ke.value);rn>-1?ft.splice(rn,1):(e.multipleLimit<=0||ft.length<e.multipleLimit)&&ft.push(Ke.value),t($t,ft),dt(ft),Ke.created&&se(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t($t,Ke.value),dt(Ke.value),O.value=!1;Mn(),!O.value&&ut(()=>{ve(Ke)})},Me=(Ke=[],ft)=>{if(!Pt(ft))return Ke.indexOf(ft);const rn=e.valueKey;let Ft=-1;return Ke.some((hr,pr)=>en(Rn(hr,rn))===Rn(ft,rn)?(Ft=pr,!0):!1),Ft},ve=Ke=>{var ft,rn,Ft,hr,pr;const ti=Xe(Ke)?Ke[0]:Ke;let mr=null;if(ti!=null&&ti.value){const ts=_e.value.filter(fn=>fn.value===ti.value);ts.length>0&&(mr=ts[0].$el)}if(u.value&&mr){const ts=(hr=(Ft=(rn=(ft=u.value)==null?void 0:ft.popperRef)==null?void 0:rn.contentRef)==null?void 0:Ft.querySelector)==null?void 0:hr.call(Ft,`.${r.be("dropdown","wrap")}`);ts&&j3(ts,mr)}(pr=b.value)==null||pr.handleScroll()},$e=Ke=>{a.options.set(Ke.value,Ke),a.cachedOptions.set(Ke.value,Ke),Ke.disabled&&a.disabledOptions.set(Ke.value,Ke)},st=(Ke,ft)=>{a.options.get(Ke)===ft&&a.options.delete(Ke)},{handleCompositionStart:ye,handleCompositionUpdate:at,handleCompositionEnd:Rt}=BO(Ke=>ke(Ke)),Qt=E(()=>{var Ke,ft;return(ft=(Ke=u.value)==null?void 0:Ke.popperRef)==null?void 0:ft.contentRef}),Dn=()=>{a.isBeforeHide=!1,ut(()=>ve(a.selected))},Mn=()=>{var Ke;(Ke=f.value)==null||Ke.focus()},Bt=()=>{Ro()},On=Ke=>{Ae(Ke)},Ro=Ke=>{if(O.value=!1,T.value){const ft=new FocusEvent("focus",Ke);ut(()=>C(ft))}},No=()=>{a.inputValue.length>0?a.inputValue="":O.value=!1},Ul=()=>{G.value||(Oy&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:O.value=!O.value)},Mo=()=>{O.value?_e.value[a.hoveringIndex]&&Ue(_e.value[a.hoveringIndex]):Ul()},Ti=Ke=>Pt(Ke.value)?Rn(Ke.value,e.valueKey):Ke.value,Hl=E(()=>_e.value.filter(Ke=>Ke.visible).every(Ke=>Ke.disabled)),Hc=E(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),Zi=E(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),$a=Ke=>{if(!O.value){O.value=!0;return}if(!(a.options.size===0||ue.value===0)&&!Hl.value){Ke==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):Ke==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const ft=_e.value[a.hoveringIndex];(ft.disabled===!0||ft.states.groupDisabled===!0||!ft.visible)&&$a(Ke),ut(()=>ve(P.value))}},Ra=()=>{if(!l.value)return 0;const Ke=window.getComputedStyle(l.value);return Number.parseFloat(Ke.gap||"6px")},cs=E(()=>{const Ke=Ra();return{maxWidth:`${v.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-Ke:a.selectionWidth}px`}}),zc=E(()=>({maxWidth:`${a.selectionWidth}px`})),jc=E(()=>({width:`${Math.max(a.calculatorWidth,rae)}px`}));return e.multiple&&!Xe(e.modelValue)&&t($t,[]),!e.multiple&&Xe(e.modelValue)&&t($t,""),Sn(l,Fe),Sn(h,Ie),Sn(p,Ee),Sn(S,Ee),Sn(y,Ze),Sn(v,je),gt(()=>{Le()}),{inputId:B,contentId:s,nsSelect:r,nsInput:i,states:a,isFocused:T,expanded:O,optionsArray:_e,hoverOption:P,selectSize:ie,filteredOptionsCount:ue,resetCalculatorWidth:Ie,updateTooltip:Ee,updateTagTooltip:Ze,debouncedOnInputChange:et,onInput:ke,deletePrevTag:xt,deleteTag:ct,deleteSelected:Ae,handleOptionSelect:Ue,scrollToOption:ve,hasModelValue:X,shouldShowPlaceholder:Ce,currentPlaceholder:Be,mouseEnterEventName:ee,showClose:q,iconComponent:H,iconReverse:V,validateState:N,validateIcon:Y,showNewOption:ce,updateOptions:te,collapseTagSize:we,setSelected:Le,selectDisabled:G,emptyText:ne,handleCompositionStart:ye,handleCompositionUpdate:at,handleCompositionEnd:Rt,onOptionCreate:$e,onOptionDestroy:st,handleMenuEnter:Dn,handleFocus:w,focus:Mn,blur:Bt,handleBlur:C,handleClearClick:On,handleClickOutside:Ro,handleEsc:No,toggleMenu:Ul,selectOption:Mo,getValueKey:Ti,navigateOptions:$a,dropdownMenuVisible:me,showTagList:Hc,collapseTagList:Zi,tagStyle:cs,collapseTagStyle:zc,inputStyle:jc,popperRef:Qt,inputRef:f,tooltipRef:u,tagTooltipRef:c,calculatorRef:h,prefixRef:g,suffixRef:m,selectRef:o,wrapperRef:S,selectionRef:l,scrollbarRef:b,menuRef:p,tagMenuRef:y,collapseItemRef:v}};var aae=J({name:"ElOptions",setup(e,{slots:t}){const n=Je(Dc);let s=[];return()=>{var r,i;const a=(r=t.default)==null?void 0:r.call(t),o=[];function l(u){Xe(u)&&u.forEach(c=>{var f,h,g,m;const p=(f=(c==null?void 0:c.type)||{})==null?void 0:f.name;p==="ElOptionGroup"?l(!bt(c.children)&&!Xe(c.children)&&mt((h=c.children)==null?void 0:h.default)?(g=c.children)==null?void 0:g.default():c.children):p==="ElOption"?o.push((m=c.props)==null?void 0:m.value):Xe(c.children)&&l(c.children)})}return a.length&&l((i=a[0])==null?void 0:i.children),Ds(o,s)||(s=o,n&&(n.states.optionValues=o)),a}}});const oae=Ve({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:es,effect:{type:le(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:as.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:sn,default:ko},fitInputWidth:Boolean,suffixIcon:{type:sn,default:Xi},tagType:{...Gg.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:le(String),values:Ll,default:"bottom-start"},fallbackPlacements:{type:le(Array),default:["bottom-start","top-start","right","left"]},...Ac,...ys(["ariaLabel"])}),jE="ElSelect",lae=J({name:jE,componentName:jE,components:{ElInput:Vn,ElSelectMenu:sae,ElOption:_2,ElOptions:aae,ElTag:_a,ElScrollbar:Da,ElTooltip:gs,ElIcon:tt},directives:{ClickOutside:ba},props:oae,emits:[$t,dn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=iae(e,t);return Mt(Dc,Ct({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),uae=["id","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],cae=["textContent"],dae={key:1};function fae(e,t,n,s,r,i){const a=kt("el-tag"),o=kt("el-tooltip"),l=kt("el-icon"),u=kt("el-option"),c=kt("el-options"),f=kt("el-scrollbar"),h=kt("el-select-menu"),g=_g("click-outside");return yt((k(),z("div",{ref:"selectRef",class:$([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[$d(e.mouseEnterEventName)]:t[16]||(t[16]=m=>e.states.inputHovering=!0),onMouseleave:t[17]||(t[17]=m=>e.states.inputHovering=!1),onClick:t[18]||(t[18]=vt((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent","stop"]))},[I(o,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,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,onBeforeShow:e.handleMenuEnter,onHide:t[15]||(t[15]=m=>e.states.isBeforeHide=!1)},{default:L(()=>{var m;return[R("div",{ref:"wrapperRef",class:$([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(k(),z("div",{key:0,ref:"prefixRef",class:$(e.nsSelect.e("prefix"))},[be(e.$slots,"prefix")],2)):ae("v-if",!0),R("div",{ref:"selectionRef",class:$([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?be(e.$slots,"tag",{key:0},()=>[(k(!0),z(Ge,null,_t(e.showTagList,p=>(k(),z("div",{key:e.getValueKey(p),class:$(e.nsSelect.e("selected-item"))},[I(a,{closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:it(e.tagStyle),onClose:y=>e.deleteTag(y,p)},{default:L(()=>[R("span",{class:$(e.nsSelect.e("tags-text"))},[be(e.$slots,"label",{label:p.currentLabel,value:p.value},()=>[Re(pe(p.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(k(),fe(o,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:L(()=>[R("div",{ref:"collapseItemRef",class:$(e.nsSelect.e("selected-item"))},[I(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:it(e.collapseTagStyle)},{default:L(()=>[R("span",{class:$(e.nsSelect.e("tags-text"))}," + "+pe(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:L(()=>[R("div",{ref:"tagMenuRef",class:$(e.nsSelect.e("selection"))},[(k(!0),z(Ge,null,_t(e.collapseTagList,p=>(k(),z("div",{key:e.getValueKey(p),class:$(e.nsSelect.e("selected-item"))},[I(a,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,p)},{default:L(()=>[R("span",{class:$(e.nsSelect.e("tags-text"))},[be(e.$slots,"label",{label:p.currentLabel,value:p.value},()=>[Re(pe(p.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):ae("v-if",!0)]):ae("v-if",!0),e.selectDisabled?ae("v-if",!0):(k(),z("div",{key:1,class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[yt(R("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=p=>e.states.inputValue=p),type:"text",name:e.name,class:$([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:it(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onBlur:t[2]||(t[2]=(...p)=>e.handleBlur&&e.handleBlur(...p)),onKeydown:[t[3]||(t[3]=Zt(vt(p=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[4]||(t[4]=Zt(vt(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),t[5]||(t[5]=Zt(vt((...p)=>e.handleEsc&&e.handleEsc(...p),["stop","prevent"]),["esc"])),t[6]||(t[6]=Zt(vt((...p)=>e.selectOption&&e.selectOption(...p),["stop","prevent"]),["enter"])),t[7]||(t[7]=Zt(vt((...p)=>e.deletePrevTag&&e.deletePrevTag(...p),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...p)=>e.handleCompositionStart&&e.handleCompositionStart(...p)),onCompositionupdate:t[9]||(t[9]=(...p)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...p)),onCompositionend:t[10]||(t[10]=(...p)=>e.handleCompositionEnd&&e.handleCompositionEnd(...p)),onInput:t[11]||(t[11]=(...p)=>e.onInput&&e.onInput(...p)),onClick:t[12]||(t[12]=vt((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},null,46,uae),[[va,e.states.inputValue]]),e.filterable?(k(),z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:$(e.nsSelect.e("input-calculator")),textContent:pe(e.states.inputValue)},null,10,cae)):ae("v-if",!0)],2)),e.shouldShowPlaceholder?(k(),z("div",{key:2,class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?be(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[R("span",null,pe(e.currentPlaceholder),1)]):(k(),z("span",dae,pe(e.currentPlaceholder),1))],2)):ae("v-if",!0)],2),R("div",{ref:"suffixRef",class:$(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(k(),fe(l,{key:0,class:$([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:L(()=>[(k(),fe(Nt(e.iconComponent)))]),_:1},8,["class"])):ae("v-if",!0),e.showClose&&e.clearIcon?(k(),fe(l,{key:1,class:$([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:L(()=>[(k(),fe(Nt(e.clearIcon)))]),_:1},8,["class","onClick"])):ae("v-if",!0),e.validateState&&e.validateIcon?(k(),fe(l,{key:2,class:$([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:L(()=>[(k(),fe(Nt(e.validateIcon)))]),_:1},8,["class"])):ae("v-if",!0)],2)],2)]}),content:L(()=>[I(h,{ref:"menuRef"},{default:L(()=>[e.$slots.header?(k(),z("div",{key:0,class:$(e.nsSelect.be("dropdown","header")),onClick:t[13]||(t[13]=vt(()=>{},["stop"]))},[be(e.$slots,"header")],2)):ae("v-if",!0),yt(I(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:$([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:L(()=>[e.showNewOption?(k(),fe(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ae("v-if",!0),I(c,null,{default:L(()=>[be(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[zt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(k(),z("div",{key:1,class:$(e.nsSelect.be("dropdown","loading"))},[be(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(k(),z("div",{key:2,class:$(e.nsSelect.be("dropdown","empty"))},[be(e.$slots,"empty",{},()=>[R("span",null,pe(e.emptyText),1)])],2)):ae("v-if",!0),e.$slots.footer?(k(),z("div",{key:3,class:$(e.nsSelect.be("dropdown","footer")),onClick:t[14]||(t[14]=vt(()=>{},["stop"]))},[be(e.$slots,"footer")],2)):ae("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],16)),[[g,e.handleClickOutside,e.popperRef]])}var hae=ze(lae,[["render",fae],["__file","select.vue"]]);const pae=J({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Pe("select"),n=j(null),s=It(),r=j([]);Mt(LO,Ct({...ms(e)}));const i=E(()=>r.value.some(u=>u.visible===!0)),a=u=>{var c,f;return((c=u.type)==null?void 0:c.name)==="ElOption"&&!!((f=u.component)!=null&&f.proxy)},o=u=>{const c=ho(u),f=[];return c.forEach(h=>{var g,m;a(h)?f.push(h.component.proxy):(g=h.children)!=null&&g.length?f.push(...o(h.children)):(m=h.component)!=null&&m.subTree&&f.push(...o(h.component.subTree))}),f},l=()=>{r.value=o(s.subTree)};return gt(()=>{l()}),Z4(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function mae(e,t,n,s,r,i){return yt((k(),z("ul",{ref:"groupRef",class:$(e.ns.be("group","wrap"))},[R("li",{class:$(e.ns.be("group","title"))},pe(e.label),3),R("li",null,[R("ul",{class:$(e.ns.b("group"))},[be(e.$slots,"default")],2)])],2)),[[zt,e.visible]])}var FO=ze(pae,[["render",mae],["__file","option-group.vue"]]);const mi=Dt(hae,{Option:_2,OptionGroup:FO}),bo=Tn(_2),gae=Tn(FO),S2=()=>Je(MO,{}),vae=Ve({pageSize:{type:Number,required:!0},pageSizes:{type:le(Array),default:()=>wn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Qi}}),yae=J({name:"ElPaginationSizes"}),bae=J({...yae,props:vae,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:s}=Wt(),r=Pe("pagination"),i=S2(),a=j(n.pageSize);xe(()=>n.pageSizes,(u,c)=>{if(!Ds(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),xe(()=>n.pageSize,u=>{a.value=u});const o=E(()=>n.pageSizes);function l(u){var c;u!==a.value&&(a.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(k(),z("span",{class:$(d(r).e("sizes"))},[I(d(mi),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:L(()=>[(k(!0),z(Ge,null,_t(d(o),f=>(k(),fe(d(bo),{key:f,value:f,label:f+d(s)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var _ae=ze(bae,[["__file","sizes.vue"]]);const Sae=Ve({size:{type:String,values:Qi}}),wae=["disabled"],Tae=J({name:"ElPaginationJumper"}),Cae=J({...Tae,props:Sae,setup(e){const{t}=Wt(),n=Pe("pagination"),{pageCount:s,disabled:r,currentPage:i,changeEvent:a}=S2(),o=j(),l=E(()=>{var f;return(f=o.value)!=null?f:i==null?void 0:i.value});function u(f){o.value=f?+f:""}function c(f){f=Math.trunc(+f),a==null||a(f),o.value=void 0}return(f,h)=>(k(),z("span",{class:$(d(n).e("jump")),disabled:d(r)},[R("span",{class:$([d(n).e("goto")])},pe(d(t)("el.pagination.goto")),3),I(d(Vn),{size:f.size,class:$([d(n).e("editor"),d(n).is("in-pagination")]),min:1,max:d(s),disabled:d(r),"model-value":d(l),"validate-event":!1,"aria-label":d(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","aria-label"]),R("span",{class:$([d(n).e("classifier")])},pe(d(t)("el.pagination.pageClassifier")),3)],10,wae))}});var Eae=ze(Cae,[["__file","jumper.vue"]]);const xae=Ve({total:{type:Number,default:1e3}}),kae=["disabled"],Aae=J({name:"ElPaginationTotal"}),Iae=J({...Aae,props:xae,setup(e){const{t}=Wt(),n=Pe("pagination"),{disabled:s}=S2();return(r,i)=>(k(),z("span",{class:$(d(n).e("total")),disabled:d(s)},pe(d(t)("el.pagination.total",{total:r.total})),11,kae))}});var Dae=ze(Iae,[["__file","total.vue"]]);const Oae=Ve({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Pae=["onKeyup"],$ae=["aria-current","aria-label","tabindex"],Rae=["tabindex","aria-label"],Nae=["aria-current","aria-label","tabindex"],Mae=["tabindex","aria-label"],Lae=["aria-current","aria-label","tabindex"],Bae=J({name:"ElPaginationPager"}),Fae=J({...Bae,props:Oae,emits:["change"],setup(e,{emit:t}){const n=e,s=Pe("pager"),r=Pe("icon"),{t:i}=Wt(),a=j(!1),o=j(!1),l=j(!1),u=j(!1),c=j(!1),f=j(!1),h=E(()=>{const T=n.pagerCount,w=(T-1)/2,C=Number(n.currentPage),O=Number(n.pageCount);let P=!1,M=!1;O>T&&(C>T-w&&(P=!0),C<O-w&&(M=!0));const U=[];if(P&&!M){const B=O-(T-2);for(let W=B;W<O;W++)U.push(W)}else if(!P&&M)for(let B=2;B<T;B++)U.push(B);else if(P&&M){const B=Math.floor(T/2)-1;for(let W=C-B;W<=C+B;W++)U.push(W)}else for(let B=2;B<O;B++)U.push(B);return U}),g=E(()=>["more","btn-quickprev",r.b(),s.is("disabled",n.disabled)]),m=E(()=>["more","btn-quicknext",r.b(),s.is("disabled",n.disabled)]),p=E(()=>n.disabled?-1:0);ps(()=>{const T=(n.pagerCount-1)/2;a.value=!1,o.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-T&&(a.value=!0),n.currentPage<n.pageCount-T&&(o.value=!0))});function y(T=!1){n.disabled||(T?l.value=!0:u.value=!0)}function v(T=!1){T?c.value=!0:f.value=!0}function b(T){const w=T.target;if(w.tagName.toLowerCase()==="li"&&Array.from(w.classList).includes("number")){const C=Number(w.textContent);C!==n.currentPage&&t("change",C)}else w.tagName.toLowerCase()==="li"&&Array.from(w.classList).includes("more")&&S(T)}function S(T){const w=T.target;if(w.tagName.toLowerCase()==="ul"||n.disabled)return;let C=Number(w.textContent);const O=n.pageCount,P=n.currentPage,M=n.pagerCount-2;w.className.includes("more")&&(w.className.includes("quickprev")?C=P-M:w.className.includes("quicknext")&&(C=P+M)),Number.isNaN(+C)||(C<1&&(C=1),C>O&&(C=O)),C!==P&&t("change",C)}return(T,w)=>(k(),z("ul",{class:$(d(s).b()),onClick:S,onKeyup:Zt(b,["enter"])},[T.pageCount>0?(k(),z("li",{key:0,class:$([[d(s).is("active",T.currentPage===1),d(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===1,"aria-label":d(i)("el.pagination.currentPage",{pager:1}),tabindex:d(p)}," 1 ",10,$ae)):ae("v-if",!0),a.value?(k(),z("li",{key:1,class:$(d(g)),tabindex:d(p),"aria-label":d(i)("el.pagination.prevPages",{pager:T.pagerCount-2}),onMouseenter:w[0]||(w[0]=C=>y(!0)),onMouseleave:w[1]||(w[1]=C=>l.value=!1),onFocus:w[2]||(w[2]=C=>v(!0)),onBlur:w[3]||(w[3]=C=>c.value=!1)},[(l.value||c.value)&&!T.disabled?(k(),fe(d(ju),{key:0})):(k(),fe(d(Vy),{key:1}))],42,Rae)):ae("v-if",!0),(k(!0),z(Ge,null,_t(d(h),C=>(k(),z("li",{key:C,class:$([[d(s).is("active",T.currentPage===C),d(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===C,"aria-label":d(i)("el.pagination.currentPage",{pager:C}),tabindex:d(p)},pe(C),11,Nae))),128)),o.value?(k(),z("li",{key:2,class:$(d(m)),tabindex:d(p),"aria-label":d(i)("el.pagination.nextPages",{pager:T.pagerCount-2}),onMouseenter:w[4]||(w[4]=C=>y()),onMouseleave:w[5]||(w[5]=C=>u.value=!1),onFocus:w[6]||(w[6]=C=>v()),onBlur:w[7]||(w[7]=C=>f.value=!1)},[(u.value||f.value)&&!T.disabled?(k(),fe(d(qu),{key:0})):(k(),fe(d(Vy),{key:1}))],42,Mae)):ae("v-if",!0),T.pageCount>1?(k(),z("li",{key:3,class:$([[d(s).is("active",T.currentPage===T.pageCount),d(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===T.pageCount,"aria-label":d(i)("el.pagination.currentPage",{pager:T.pageCount}),tabindex:d(p)},pe(T.pageCount),11,Lae)):ae("v-if",!0)],42,Pae))}});var Vae=ze(Fae,[["__file","pager.vue"]]);const Ms=e=>typeof e!="number",Uae=Ve({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>pt(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:le(Array),default:()=>wn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:sn,default:()=>mo},nextText:{type:String,default:""},nextIcon:{type:sn,default:()=>Hs},teleported:{type:Boolean,default:!0},small:Boolean,size:es,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),Hae={"update:current-page":e=>pt(e),"update:page-size":e=>pt(e),"size-change":e=>pt(e),change:(e,t)=>pt(e)&&pt(t),"current-change":e=>pt(e),"prev-click":e=>pt(e),"next-click":e=>pt(e)},qE="ElPagination";var zae=J({name:qE,props:Uae,emits:Hae,setup(e,{emit:t,slots:n}){const{t:s}=Wt(),r=Pe("pagination"),i=It().vnode.props||{},a=E(()=>e.small?"small":e==null?void 0:e.size);ss({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},E(()=>!!e.small));const o="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,l="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,u=E(()=>{if(Ms(e.total)&&Ms(e.pageCount)||!Ms(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(Ms(e.pageCount)){if(!Ms(e.total)&&!Ms(e.pageSize)&&!l)return!1}else if(!l)return!1}return!0}),c=j(Ms(e.defaultPageSize)?10:e.defaultPageSize),f=j(Ms(e.defaultCurrentPage)?1:e.defaultCurrentPage),h=E({get(){return Ms(e.pageSize)?c.value:e.pageSize},set(T){Ms(e.pageSize)&&(c.value=T),l&&(t("update:page-size",T),t("size-change",T))}}),g=E(()=>{let T=0;return Ms(e.pageCount)?Ms(e.total)||(T=Math.max(1,Math.ceil(e.total/h.value))):T=e.pageCount,T}),m=E({get(){return Ms(e.currentPage)?f.value:e.currentPage},set(T){let w=T;T<1?w=1:T>g.value&&(w=g.value),Ms(e.currentPage)&&(f.value=w),o&&(t("update:current-page",w),t("current-change",w))}});xe(g,T=>{m.value>T&&(m.value=T)}),xe([m,h],T=>{t("change",...T)},{flush:"post"});function p(T){m.value=T}function y(T){h.value=T;const w=g.value;m.value>w&&(m.value=w)}function v(){e.disabled||(m.value-=1,t("prev-click",m.value))}function b(){e.disabled||(m.value+=1,t("next-click",m.value))}function S(T,w){T&&(T.props||(T.props={}),T.props.class=[T.props.class,w].join(" "))}return Mt(MO,{pageCount:g,disabled:E(()=>e.disabled),currentPage:m,changeEvent:p,handleSizeChange:y}),()=>{var T,w;if(!u.value)return s("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&g.value<=1)return null;const C=[],O=[],P=lt("div",{class:r.e("rightwrapper")},O),M={prev:lt(jie,{disabled:e.disabled,currentPage:m.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:v}),jumper:lt(Eae,{size:a.value}),pager:lt(Vae,{currentPage:m.value,pageCount:g.value,pagerCount:e.pagerCount,onChange:p,disabled:e.disabled}),next:lt(Xie,{disabled:e.disabled,currentPage:m.value,pageCount:g.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:lt(_ae,{pageSize:h.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:a.value}),slot:(w=(T=n==null?void 0:n.default)==null?void 0:T.call(n))!=null?w:null,total:lt(Dae,{total:Ms(e.total)?0:e.total})},U=e.layout.split(",").map(W=>W.trim());let B=!1;return U.forEach(W=>{if(W==="->"){B=!0;return}B?O.push(M[W]):C.push(M[W])}),S(C[0],r.is("first")),S(C[C.length-1],r.is("last")),B&&O.length>0&&(S(O[0],r.is("first")),S(O[O.length-1],r.is("last")),C.push(P)),lt("div",{class:[r.b(),r.is("background",e.background),r.m(a.value)]},C)}}});const dh=Dt(zae),jae=Ve({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Qy,default:"primary"},cancelButtonType:{type:String,values:Qy,default:"text"},icon:{type:sn,default:()=>Aj},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:as.teleported,persistent:as.persistent,width:{type:[String,Number],default:150}}),qae={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Wae=J({name:"ElPopconfirm"}),Kae=J({...Wae,props:jae,emits:qae,setup(e,{emit:t}){const n=e,{t:s}=Wt(),r=Pe("popconfirm"),i=j(),a=()=>{var h,g;(g=(h=i.value)==null?void 0:h.onClose)==null||g.call(h)},o=E(()=>({width:In(n.width)})),l=h=>{t("confirm",h),a()},u=h=>{t("cancel",h),a()},c=E(()=>n.confirmButtonText||s("el.popconfirm.confirmButtonText")),f=E(()=>n.cancelButtonText||s("el.popconfirm.cancelButtonText"));return(h,g)=>(k(),fe(d(gs),Lt({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},h.$attrs,{"popper-class":`${d(r).namespace.value}-popover`,"popper-style":d(o),teleported:h.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":h.hideAfter,persistent:h.persistent}),{content:L(()=>[R("div",{class:$(d(r).b())},[R("div",{class:$(d(r).e("main"))},[!h.hideIcon&&h.icon?(k(),fe(d(tt),{key:0,class:$(d(r).e("icon")),style:it({color:h.iconColor})},{default:L(()=>[(k(),fe(Nt(h.icon)))]),_:1},8,["class","style"])):ae("v-if",!0),Re(" "+pe(h.title),1)],2),R("div",{class:$(d(r).e("action"))},[I(d(gn),{size:"small",type:h.cancelButtonType==="text"?"":h.cancelButtonType,text:h.cancelButtonType==="text",onClick:u},{default:L(()=>[Re(pe(d(f)),1)]),_:1},8,["type","text"]),I(d(gn),{size:"small",type:h.confirmButtonType==="text"?"":h.confirmButtonType,text:h.confirmButtonType==="text",onClick:l},{default:L(()=>[Re(pe(d(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:L(()=>[h.$slots.reference?be(h.$slots,"reference",{key:0}):ae("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Gae=ze(Kae,[["__file","popconfirm.vue"]]);const Yae=Dt(Gae),Xae=Ve({trigger:Cf.trigger,placement:Wp.placement,disabled:Cf.disabled,visible:as.visible,transition:as.transition,popperOptions:Wp.popperOptions,tabindex:Wp.tabindex,content:as.content,popperStyle:as.popperStyle,popperClass:as.popperClass,enterable:{...as.enterable,default:!0},effect:{...as.effect,default:"light"},teleported:as.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}}),Qae={"update:visible":e=>Hn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Jae="onUpdate:visible",Zae=J({name:"ElPopover"}),eoe=J({...Zae,props:Xae,emits:Qae,setup(e,{expose:t,emit:n}){const s=e,r=E(()=>s[Jae]),i=Pe("popover"),a=j(),o=E(()=>{var y;return(y=d(a))==null?void 0:y.popperRef}),l=E(()=>[{width:In(s.width)},s.popperStyle]),u=E(()=>[i.b(),s.popperClass,{[i.m("plain")]:!!s.content}]),c=E(()=>s.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var y;(y=a.value)==null||y.hide()},h=()=>{n("before-enter")},g=()=>{n("before-leave")},m=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:o,hide:f}),(y,v)=>(k(),fe(d(gs),Lt({ref_key:"tooltipRef",ref:a},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":d(u),"popper-style":d(l),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":d(c),"onUpdate:visible":d(r),onBeforeShow:h,onBeforeHide:g,onShow:m,onHide:p}),{content:L(()=>[y.title?(k(),z("div",{key:0,class:$(d(i).e("title")),role:"title"},pe(y.title),3)):ae("v-if",!0),be(y.$slots,"default",{},()=>[Re(pe(y.content),1)])]),default:L(()=>[y.$slots.reference?be(y.$slots,"reference",{key:0}):ae("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 toe=ze(eoe,[["__file","popover.vue"]]);const WE=(e,t)=>{const n=t.arg||t.value,s=n==null?void 0:n.popperRef;s&&(s.triggerRef=e)};var noe={mounted(e,t){WE(e,t)},updated(e,t){WE(e,t)}};const soe="popover",VO=rq(noe,soe),roe=Dt(toe,{directive:VO}),ioe=Ve({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:le(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:le([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:le(Function),default:e=>`${e}%`}}),aoe=["aria-valuenow"],ooe={viewBox:"0 0 100 100"},loe=["d","stroke","stroke-linecap","stroke-width"],uoe=["d","stroke","opacity","stroke-linecap","stroke-width"],coe={key:0},doe=J({name:"ElProgress"}),foe=J({...doe,props:ioe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},s=Pe("progress"),r=E(()=>{const S={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},T=b(t.percentage);return T.includes("gradient")?S.background=T:S.backgroundColor=T,S}),i=E(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=E(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),o=E(()=>{const S=a.value,T=t.type==="dashboard";return`
M 50 50
m 0 ${T?"":"-"}${S}
a ${S} ${S} 0 1 1 0 ${T?"-":""}${S*2}
a ${S} ${S} 0 1 1 0 ${T?"":"-"}${S*2}
`}),l=E(()=>2*Math.PI*a.value),u=E(()=>t.type==="dashboard"?.75:1),c=E(()=>`${-1*l.value*(1-u.value)/2}px`),f=E(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),h=E(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=E(()=>{let S;return t.color?S=b(t.percentage):S=n[t.status]||n.default,S}),m=E(()=>t.status==="warning"?Lg:t.type==="line"?t.status==="success"?b1:ko:t.status==="success"?eh:hi),p=E(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=E(()=>t.format(t.percentage));function v(S){const T=100/S.length;return S.map((C,O)=>bt(C)?{color:C,percentage:(O+1)*T}:C).sort((C,O)=>C.percentage-O.percentage)}const b=S=>{var T;const{color:w}=t;if(mt(w))return w(S);if(bt(w))return w;{const C=v(w);for(const O of C)if(O.percentage>S)return O.color;return(T=C[C.length-1])==null?void 0:T.color}};return(S,T)=>(k(),z("div",{class:$([d(s).b(),d(s).m(S.type),d(s).is(S.status),{[d(s).m("without-text")]:!S.showText,[d(s).m("text-inside")]:S.textInside}]),role:"progressbar","aria-valuenow":S.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[S.type==="line"?(k(),z("div",{key:0,class:$(d(s).b("bar"))},[R("div",{class:$(d(s).be("bar","outer")),style:it({height:`${S.strokeWidth}px`})},[R("div",{class:$([d(s).be("bar","inner"),{[d(s).bem("bar","inner","indeterminate")]:S.indeterminate},{[d(s).bem("bar","inner","striped")]:S.striped},{[d(s).bem("bar","inner","striped-flow")]:S.stripedFlow}]),style:it(d(r))},[(S.showText||S.$slots.default)&&S.textInside?(k(),z("div",{key:0,class:$(d(s).be("bar","innerText"))},[be(S.$slots,"default",{percentage:S.percentage},()=>[R("span",null,pe(d(y)),1)])],2)):ae("v-if",!0)],6)],6)],2)):(k(),z("div",{key:1,class:$(d(s).b("circle")),style:it({height:`${S.width}px`,width:`${S.width}px`})},[(k(),z("svg",ooe,[R("path",{class:$(d(s).be("circle","track")),d:d(o),stroke:`var(${d(s).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":S.strokeLinecap,"stroke-width":d(i),fill:"none",style:it(d(f))},null,14,loe),R("path",{class:$(d(s).be("circle","path")),d:d(o),stroke:d(g),fill:"none",opacity:S.percentage?1:0,"stroke-linecap":S.strokeLinecap,"stroke-width":d(i),style:it(d(h))},null,14,uoe)]))],6)),(S.showText||S.$slots.default)&&!S.textInside?(k(),z("div",{key:2,class:$(d(s).e("text")),style:it({fontSize:`${d(p)}px`})},[be(S.$slots,"default",{percentage:S.percentage},()=>[S.status?(k(),fe(d(tt),{key:1},{default:L(()=>[(k(),fe(Nt(d(m))))]),_:1})):(k(),z("span",coe,pe(d(y)),1))])],6)):ae("v-if",!0)],10,aoe))}});var hoe=ze(foe,[["__file","progress.vue"]]);const UO=Dt(hoe),poe=Ve({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:le([Array,Object]),default:()=>wn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:le([Array,Object]),default:()=>[rp,rp,rp]},voidIcon:{type:sn,default:()=>Uj},disabledVoidIcon:{type:sn,default:()=>rp},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:le(Array),default:()=>wn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:es,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1},...ys(["ariaLabel"])}),moe={[dn]:e=>pt(e),[$t]:e=>pt(e)},goe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],voe=["onMousemove","onClick"],yoe=J({name:"ElRate"}),boe=J({...yoe,props:poe,emits:moe,setup(e,{expose:t,emit:n}){const s=e;function r(q,H){const V=Z=>Pt(Z),N=Object.keys(H).map(Z=>+Z).filter(Z=>{const ne=H[Z];return(V(ne)?ne.excluded:!1)?q<Z:q<=Z}).sort((Z,ne)=>Z-ne),Y=H[N[0]];return V(Y)&&Y.value||Y}const i=Je(Bl,void 0),a=Je(qi,void 0),o=Kn(),l=Pe("rate"),{inputId:u,isLabeledByFormItem:c}=_i(s,{formItemContext:a}),f=j(s.modelValue),h=j(-1),g=j(!0),m=E(()=>[l.b(),l.m(o.value)]),p=E(()=>s.disabled||(i==null?void 0:i.disabled)),y=E(()=>l.cssVarBlock({"void-color":s.voidColor,"disabled-void-color":s.disabledVoidColor,"fill-color":T.value})),v=E(()=>{let q="";return s.showScore?q=s.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${s.modelValue}`:`${f.value}`):s.showText&&(q=s.texts[Math.ceil(f.value)-1]),q}),b=E(()=>s.modelValue*100-Math.floor(s.modelValue)*100),S=E(()=>Xe(s.colors)?{[s.lowThreshold]:s.colors[0],[s.highThreshold]:{value:s.colors[1],excluded:!0},[s.max]:s.colors[2]}:s.colors),T=E(()=>{const q=r(f.value,S.value);return Pt(q)?"":q}),w=E(()=>{let q="";return p.value?q=`${b.value}%`:s.allowHalf&&(q="50%"),{color:T.value,width:q}}),C=E(()=>{let q=Xe(s.icons)?[...s.icons]:{...s.icons};return q=bu(q),Xe(q)?{[s.lowThreshold]:q[0],[s.highThreshold]:{value:q[1],excluded:!0},[s.max]:q[2]}:q}),O=E(()=>r(s.modelValue,C.value)),P=E(()=>p.value?bt(s.disabledVoidIcon)?s.disabledVoidIcon:bu(s.disabledVoidIcon):bt(s.voidIcon)?s.voidIcon:bu(s.voidIcon)),M=E(()=>r(f.value,C.value));function U(q){const H=p.value&&b.value>0&&q-1<s.modelValue&&q>s.modelValue,V=s.allowHalf&&g.value&&q-.5<=f.value&&q>f.value;return H||V}function B(q){s.clearable&&q===s.modelValue&&(q=0),n($t,q),s.modelValue!==q&&n("change",q)}function W(q){p.value||(s.allowHalf&&g.value?B(f.value):B(q))}function Q(q){if(p.value)return;let H=f.value;const V=q.code;return V===ot.up||V===ot.right?(s.allowHalf?H+=.5:H+=1,q.stopPropagation(),q.preventDefault()):(V===ot.left||V===ot.down)&&(s.allowHalf?H-=.5:H-=1,q.stopPropagation(),q.preventDefault()),H=H<0?0:H,H=H>s.max?s.max:H,n($t,H),n("change",H),H}function G(q,H){if(!p.value){if(s.allowHalf&&H){let V=H.target;Ur(V,l.e("item"))&&(V=V.querySelector(`.${l.e("icon")}`)),(V.clientWidth===0||Ur(V,l.e("decimal")))&&(V=V.parentNode),g.value=H.offsetX*2<=V.clientWidth,f.value=g.value?q-.5:q}else f.value=q;h.value=q}}function X(){p.value||(s.allowHalf&&(g.value=s.modelValue!==Math.floor(s.modelValue)),f.value=s.modelValue,h.value=-1)}return xe(()=>s.modelValue,q=>{f.value=q,g.value=s.modelValue!==Math.floor(s.modelValue)}),s.modelValue||n($t,0),ss({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-rate",ref:"https://element-plus.org/en-US/component/rate.html"},E(()=>!!s.label)),t({setCurrentValue:G,resetCurrentValue:X}),(q,H)=>{var V;return k(),z("div",{id:d(u),class:$([d(m),d(l).is("disabled",d(p))]),role:"slider","aria-label":d(c)?void 0:q.label||q.ariaLabel||"rating","aria-labelledby":d(c)?(V=d(a))==null?void 0:V.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":d(v)||void 0,"aria-valuemin":"0","aria-valuemax":q.max,tabindex:"0",style:it(d(y)),onKeydown:Q},[(k(!0),z(Ge,null,_t(q.max,(N,Y)=>(k(),z("span",{key:Y,class:$(d(l).e("item")),onMousemove:Z=>G(N,Z),onMouseleave:X,onClick:Z=>W(N)},[I(d(tt),{class:$([d(l).e("icon"),{hover:h.value===N},d(l).is("active",N<=f.value)])},{default:L(()=>[U(N)?ae("v-if",!0):(k(),z(Ge,{key:0},[yt((k(),fe(Nt(d(M)),null,null,512)),[[zt,N<=f.value]]),yt((k(),fe(Nt(d(P)),null,null,512)),[[zt,!(N<=f.value)]])],64)),U(N)?(k(),z(Ge,{key:1},[(k(),fe(Nt(d(P)),{class:$([d(l).em("decimal","box")])},null,8,["class"])),I(d(tt),{style:it(d(w)),class:$([d(l).e("icon"),d(l).e("decimal")])},{default:L(()=>[(k(),fe(Nt(d(O))))]),_:1},8,["style","class"])],64)):ae("v-if",!0)]),_:2},1032,["class"])],42,voe))),128)),q.showText||q.showScore?(k(),z("span",{key:0,class:$(d(l).e("text")),style:it({color:q.textColor})},pe(d(v)),7)):ae("v-if",!0)],46,goe)}}});var _oe=ze(boe,[["__file","rate.vue"]]);const Soe=Dt(_oe),cu={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},KE={[cu.success]:Hz,[cu.warning]:Lg,[cu.error]:_1,[cu.info]:w1},woe=Ve({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),Toe=J({name:"ElResult"}),Coe=J({...Toe,props:woe,setup(e){const t=e,n=Pe("result"),s=E(()=>{const r=t.icon,i=r&&cu[r]?cu[r]:"icon-info",a=KE[i]||KE["icon-info"];return{class:i,component:a}});return(r,i)=>(k(),z("div",{class:$(d(n).b())},[R("div",{class:$(d(n).e("icon"))},[be(r.$slots,"icon",{},()=>[d(s).component?(k(),fe(Nt(d(s).component),{key:0,class:$(d(s).class)},null,8,["class"])):ae("v-if",!0)])],2),r.title||r.$slots.title?(k(),z("div",{key:0,class:$(d(n).e("title"))},[be(r.$slots,"title",{},()=>[R("p",null,pe(r.title),1)])],2)):ae("v-if",!0),r.subTitle||r.$slots["sub-title"]?(k(),z("div",{key:1,class:$(d(n).e("subtitle"))},[be(r.$slots,"sub-title",{},()=>[R("p",null,pe(r.subTitle),1)])],2)):ae("v-if",!0),r.$slots.extra?(k(),z("div",{key:2,class:$(d(n).e("extra"))},[be(r.$slots,"extra")],2)):ae("v-if",!0)],2))}});var Eoe=ze(Coe,[["__file","result.vue"]]);const xoe=Dt(Eoe);var GE=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function koe(e,t){return!!(e===t||GE(e)&&GE(t))}function Aoe(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 Ioe(e,t){t===void 0&&(t=Aoe);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 a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return s.clear=function(){n=null},s}const HO=()=>{const t=It().proxy.$props;return E(()=>{const n=(s,r,i)=>({});return t.perfMode?Dg(n):Ioe(n)})},yb=50,Om="itemRendered",Pm="scroll",du="forward",$m="backward",Br="auto",Jg="smart",xf="start",Pi="center",kf="end",ec="horizontal",w2="vertical",Doe="ltr",Eu="rtl",Af="negative",T2="positive-ascending",C2="positive-descending",Ooe={[ec]:"left",[w2]:"top"},Poe=20,$oe={[ec]:"deltaX",[w2]:"deltaY"},Roe=({atEndEdge:e,atStartEdge:t,layout:n},s)=>{let r,i=0;const a=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:a,onWheel:l=>{Cl(r);const u=l[$oe[n.value]];a(i)&&a(i+u)||(i+=u,t3()||l.preventDefault(),r=po(()=>{s(i),i=0}))}}},bb=yi({type:le([Number,Function]),required:!0}),_b=yi({type:Number}),Sb=yi({type:Number,default:2}),Noe=yi({type:String,values:["ltr","rtl"],default:"ltr"}),wb=yi({type:Number,default:0}),Rm=yi({type:Number,required:!0}),zO=yi({type:String,values:["horizontal","vertical"],default:w2}),jO=Ve({className:{type:String,default:""},containerElement:{type:le([String,Object]),default:"div"},data:{type:le(Array),default:()=>wn([])},direction:Noe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:le([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),qO=Ve({cache:Sb,estimatedItemSize:_b,layout:zO,initScrollOffset:wb,total:Rm,itemSize:bb,...jO}),Tb={type:Number,default:6},WO={type:Number,default:0},KO={type:Number,default:2},hl=Ve({columnCache:Sb,columnWidth:bb,estimatedColumnWidth:_b,estimatedRowHeight:_b,initScrollLeft:wb,initScrollTop:wb,itemKey:{type:le(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:Sb,rowHeight:bb,totalColumn:Rm,totalRow:Rm,hScrollbarSize:Tb,vScrollbarSize:Tb,scrollbarStartGap:WO,scrollbarEndGap:KO,role:String,...jO}),GO=Ve({alwaysOn:Boolean,class:String,layout:zO,total:Rm,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Tb,startGap:WO,endGap:KO,visible:Boolean}),sl=(e,t)=>e<t?du:$m,If=e=>e===Doe||e===Eu||e===ec,YE=e=>e===Eu;let Xl=null;function Nm(e=!1){if(Xl===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?Xl=C2:(t.scrollLeft=1,t.scrollLeft===0?Xl=Af:Xl=T2),document.body.removeChild(t),Xl}return Xl}function Moe({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 Cb=J({name:"ElVirtualScrollBar",props:GO,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=E(()=>e.startGap+e.endGap),s=Pe("virtual-scrollbar"),r=Pe("scrollbar"),i=j(),a=j();let o=null,l=null;const u=Ct({isDragging:!1,traveled:0}),c=E(()=>MI[e.layout]),f=E(()=>e.clientSize-d(n)),h=E(()=>({position:"absolute",width:`${ec===e.layout?f.value:e.scrollbarSize}px`,height:`${ec===e.layout?e.scrollbarSize:f.value}px`,[Ooe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),g=E(()=>{const C=e.ratio,O=e.clientSize;if(C>=100)return Number.POSITIVE_INFINITY;if(C>=50)return C*O/100;const P=O/3;return Math.floor(Math.min(Math.max(C*O,Poe),P))}),m=E(()=>{if(!Number.isFinite(g.value))return{display:"none"};const C=`${g.value}px`;return Moe({bar:c.value,size:C,move:u.traveled},e.layout)}),p=E(()=>Math.floor(e.clientSize-g.value-d(n))),y=()=>{window.addEventListener("mousemove",T),window.addEventListener("mouseup",S);const C=d(a);C&&(l=document.onselectstart,document.onselectstart=()=>!1,C.addEventListener("touchmove",T),C.addEventListener("touchend",S))},v=()=>{window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",S),document.onselectstart=l,l=null;const C=d(a);C&&(C.removeEventListener("touchmove",T),C.removeEventListener("touchend",S))},b=C=>{C.stopImmediatePropagation(),!(C.ctrlKey||[1,2].includes(C.button))&&(u.isDragging=!0,u[c.value.axis]=C.currentTarget[c.value.offset]-(C[c.value.client]-C.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),y())},S=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),v()},T=C=>{const{isDragging:O}=u;if(!O||!a.value||!i.value)return;const P=u[c.value.axis];if(!P)return;Cl(o);const M=(i.value.getBoundingClientRect()[c.value.direction]-C[c.value.client])*-1,U=a.value[c.value.offset]-P,B=M-U;o=po(()=>{u.traveled=Math.max(e.startGap,Math.min(B,p.value)),t("scroll",B,p.value)})},w=C=>{const O=Math.abs(C.target.getBoundingClientRect()[c.value.direction]-C[c.value.client]),P=a.value[c.value.offset]/2,M=O-P;u.traveled=Math.max(0,Math.min(M,p.value)),t("scroll",M,p.value)};return xe(()=>e.scrollFrom,C=>{u.isDragging||(u.traveled=Math.ceil(C*p.value))}),un(()=>{v()}),()=>lt("div",{role:"presentation",ref:i,class:[s.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:h.value,onMousedown:vt(w,["stop","prevent"]),onTouchstartPrevent:b},lt("div",{ref:a,class:r.e("thumb"),style:m.value,onMousedown:b},[]))}}),YO=({name:e,getOffset:t,getItemSize:n,getItemOffset:s,getEstimatedTotalSize:r,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:o,clearCache:l,validateProps:u})=>J({name:e??"ElVirtualList",props:qO,emits:[Om,Pm],setup(c,{emit:f,expose:h}){u(c);const g=It(),m=Pe("vl"),p=j(o(c,g)),y=HO(),v=j(),b=j(),S=j(),T=j({isScrolling:!1,scrollDir:"forward",scrollOffset:pt(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),w=E(()=>{const{total:ue,cache:_e}=c,{isScrolling:Ne,scrollDir:ce,scrollOffset:te}=d(T);if(ue===0)return[0,0,0,0];const ie=i(c,te,d(p)),we=a(c,ie,te,d(p)),me=!Ne||ce===$m?Math.max(1,_e):1,Ce=!Ne||ce===du?Math.max(1,_e):1;return[Math.max(0,ie-me),Math.max(0,Math.min(ue-1,we+Ce)),ie,we]}),C=E(()=>r(c,d(p))),O=E(()=>If(c.layout)),P=E(()=>[{position:"relative",[`overflow-${O.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:pt(c.height)?`${c.height}px`:c.height,width:pt(c.width)?`${c.width}px`:c.width},c.style]),M=E(()=>{const ue=d(C),_e=d(O);return{height:_e?"100%":`${ue}px`,pointerEvents:d(T).isScrolling?"none":void 0,width:_e?`${ue}px`:"100%"}}),U=E(()=>O.value?c.width:c.height),{onWheel:B}=Roe({atStartEdge:E(()=>T.value.scrollOffset<=0),atEndEdge:E(()=>T.value.scrollOffset>=C.value),layout:E(()=>c.layout)},ue=>{var _e,Ne;(Ne=(_e=S.value).onMouseUp)==null||Ne.call(_e),H(Math.min(T.value.scrollOffset+ue,C.value-U.value))}),W=()=>{const{total:ue}=c;if(ue>0){const[te,ie,we,me]=d(w);f(Om,te,ie,we,me)}const{scrollDir:_e,scrollOffset:Ne,updateRequested:ce}=d(T);f(Pm,_e,Ne,ce)},Q=ue=>{const{clientHeight:_e,scrollHeight:Ne,scrollTop:ce}=ue.currentTarget,te=d(T);if(te.scrollOffset===ce)return;const ie=Math.max(0,Math.min(ce,Ne-_e));T.value={...te,isScrolling:!0,scrollDir:sl(te.scrollOffset,ie),scrollOffset:ie,updateRequested:!1},ut(Y)},G=ue=>{const{clientWidth:_e,scrollLeft:Ne,scrollWidth:ce}=ue.currentTarget,te=d(T);if(te.scrollOffset===Ne)return;const{direction:ie}=c;let we=Ne;if(ie===Eu)switch(Nm()){case Af:{we=-Ne;break}case C2:{we=ce-_e-Ne;break}}we=Math.max(0,Math.min(we,ce-_e)),T.value={...te,isScrolling:!0,scrollDir:sl(te.scrollOffset,we),scrollOffset:we,updateRequested:!1},ut(Y)},X=ue=>{d(O)?G(ue):Q(ue),W()},q=(ue,_e)=>{const Ne=(C.value-U.value)/_e*ue;H(Math.min(C.value-U.value,Ne))},H=ue=>{ue=Math.max(ue,0),ue!==d(T).scrollOffset&&(T.value={...d(T),scrollOffset:ue,scrollDir:sl(d(T).scrollOffset,ue),updateRequested:!0},ut(Y))},V=(ue,_e=Br)=>{const{scrollOffset:Ne}=d(T);ue=Math.max(0,Math.min(ue,c.total-1)),H(t(c,ue,_e,Ne,d(p)))},N=ue=>{const{direction:_e,itemSize:Ne,layout:ce}=c,te=y.value(l&&Ne,l&&ce,l&&_e);let ie;if(qt(te,String(ue)))ie=te[ue];else{const we=s(c,ue,d(p)),me=n(c,ue,d(p)),Ce=d(O),Be=_e===Eu,ee=Ce?we:0;te[ue]=ie={position:"absolute",left:Be?void 0:`${ee}px`,right:Be?`${ee}px`:void 0,top:Ce?0:`${we}px`,height:Ce?"100%":`${me}px`,width:Ce?`${me}px`:"100%"}}return ie},Y=()=>{T.value.isScrolling=!1,ut(()=>{y.value(-1,null,null)})},Z=()=>{const ue=v.value;ue&&(ue.scrollTop=0)};gt(()=>{if(!jt)return;const{initScrollOffset:ue}=c,_e=d(v);pt(ue)&&_e&&(d(O)?_e.scrollLeft=ue:_e.scrollTop=ue),W()}),xa(()=>{const{direction:ue,layout:_e}=c,{scrollOffset:Ne,updateRequested:ce}=d(T),te=d(v);if(ce&&te)if(_e===ec)if(ue===Eu)switch(Nm()){case Af:{te.scrollLeft=-Ne;break}case T2:{te.scrollLeft=Ne;break}default:{const{clientWidth:ie,scrollWidth:we}=te;te.scrollLeft=we-ie-Ne;break}}else te.scrollLeft=Ne;else te.scrollTop=Ne});const ne={ns:m,clientSize:U,estimatedTotalSize:C,windowStyle:P,windowRef:v,innerRef:b,innerStyle:M,itemsToRender:w,scrollbarRef:S,states:T,getItemStyle:N,onScroll:X,onScrollbarScroll:q,onWheel:B,scrollTo:H,scrollToItem:V,resetScrollTop:Z};return h({windowRef:v,innerRef:b,getItemStyleCache:y,scrollTo:H,scrollToItem:V,resetScrollTop:Z,states:T}),ne},render(c){var f;const{$slots:h,className:g,clientSize:m,containerElement:p,data:y,getItemStyle:v,innerElement:b,itemsToRender:S,innerStyle:T,layout:w,total:C,onScroll:O,onScrollbarScroll:P,onWheel:M,states:U,useIsScrolling:B,windowStyle:W,ns:Q}=c,[G,X]=S,q=Nt(p),H=Nt(b),V=[];if(C>0)for(let ne=G;ne<=X;ne++)V.push((f=h.default)==null?void 0:f.call(h,{data:y,key:ne,index:ne,isScrolling:B?U.isScrolling:void 0,style:v(ne)}));const N=[lt(H,{style:T,ref:"innerRef"},bt(H)?V:{default:()=>V})],Y=lt(Cb,{ref:"scrollbarRef",clientSize:m,layout:w,onScroll:P,ratio:m*100/this.estimatedTotalSize,scrollFrom:U.scrollOffset/(this.estimatedTotalSize-m),total:C}),Z=lt(q,{class:[Q.e("window"),g],style:W,onScroll:O,onWheel:M,ref:"windowRef",key:0},bt(q)?[N]:{default:()=>[N]});return lt("div",{key:0,class:[Q.e("wrapper"),U.scrollbarAlwaysOn?"always-on":""]},[Z,Y])}}),XO=YO({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,a,o)=>{const l=If(s)?r:e,u=Math.max(0,t*n-l),c=Math.min(u,i*n),f=Math.max(0,(i+1)*n-l);switch(a===Jg&&(o>=f-l&&o<=c+l?a=Br:a=Pi),a){case xf:return c;case kf:return f;case Pi:{const h=Math.round(f+(c-f)/2);return h<Math.ceil(l/2)?0:h>u+Math.floor(l/2)?u:h}case Br:default:return o>=f&&o<=c?o:o<f?f:c}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:s,width:r},i,a)=>{const o=i*n,l=If(s)?r:e,u=Math.ceil((l+a-o)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),fu=(e,t,n)=>{const{itemSize:s}=e,{items:r,lastVisitedIndex:i}=n;if(t>i){let a=0;if(i>=0){const o=r[i];a=o.offset+o.size}for(let o=i+1;o<=t;o++){const l=s(o);r[o]={offset:a,size:l},a+=l}n.lastVisitedIndex=t}return r[t]},Loe=(e,t,n)=>{const{items:s,lastVisitedIndex:r}=t;return(r>0?s[r].offset:0)>=n?QO(e,t,0,r,n):Boe(e,t,Math.max(0,r),n)},QO=(e,t,n,s,r)=>{for(;n<=s;){const i=n+Math.floor((s-n)/2),a=fu(e,i,t).offset;if(a===r)return i;a<r?n=i+1:a>r&&(s=i-1)}return Math.max(0,n-1)},Boe=(e,t,n,s)=>{const{total:r}=e;let i=1;for(;n<r&&fu(e,n,t).offset<s;)n+=i,i*=2;return QO(e,t,Math.floor(n/2),Math.min(n,r-1),s)},XE=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:s})=>{let r=0;if(s>=e&&(s=e-1),s>=0){const o=t[s];r=o.offset+o.size}const a=(e-s-1)*n;return r+a},Foe=YO({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>fu(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:XE,getOffset:(e,t,n,s,r)=>{const{height:i,layout:a,width:o}=e,l=If(a)?o:i,u=fu(e,t,r),c=XE(e,r),f=Math.max(0,Math.min(c-l,u.offset)),h=Math.max(0,u.offset-l+u.size);switch(n===Jg&&(s>=h-l&&s<=f+l?n=Br:n=Pi),n){case xf:return f;case kf:return h;case Pi:return Math.round(h+(f-h)/2);case Br:default:return s>=h&&s<=f?s:s<h?h:f}},getStartIndexForOffset:(e,t,n)=>Loe(e,n,t),getStopIndexForStartIndex:(e,t,n,s)=>{const{height:r,total:i,layout:a,width:o}=e,l=If(a)?o:r,u=fu(e,t,s),c=n+l;let f=u.offset+u.size,h=t;for(;h<i-1&&f<c;)h++,f+=fu(e,h,s).size;return h},initCache({estimatedItemSize:e=yb},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(s,r=!0)=>{var i,a;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,s-1),(i=t.exposed)==null||i.getItemStyleCache(-1),r&&((a=t.proxy)==null||a.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),Voe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:s},r)=>{let i=null,a=0,o=0;const l=(c,f)=>{const h=c<=0&&t.value||c>=0&&e.value,g=f<=0&&s.value||f>=0&&n.value;return h&&g};return{hasReachedEdge:l,onWheel:c=>{Cl(i);let f=c.deltaX,h=c.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,c.shiftKey&&h!==0&&(f=h,h=0),!(l(a,o)&&l(a+f,o+h))&&(a+=f,o+=h,c.preventDefault(),i=po(()=>{r(a,o),a=0,o=0}))}}},JO=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:s,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:i,getEstimatedTotalWidth:a,getColumnOffset:o,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:g,validateProps:m})=>J({name:e??"ElVirtualList",props:hl,emits:[Om,Pm],setup(p,{emit:y,expose:v,slots:b}){const S=Pe("vl");m(p);const T=It(),w=j(h(p,T));g==null||g(T,w);const C=j(),O=j(),P=j(),M=j(null),U=j({isScrolling:!1,scrollLeft:pt(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:pt(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:du,yAxisScrollDir:du}),B=HO(),W=E(()=>Number.parseInt(`${p.height}`,10)),Q=E(()=>Number.parseInt(`${p.width}`,10)),G=E(()=>{const{totalColumn:Se,totalRow:De,columnCache:Fe}=p,{isScrolling:Ie,xAxisScrollDir:je,scrollLeft:Ee}=d(U);if(Se===0||De===0)return[0,0,0,0];const Ze=s(p,Ee,d(w)),nt=r(p,Ze,Ee,d(w)),ke=!Ie||je===$m?Math.max(1,Fe):1,et=!Ie||je===du?Math.max(1,Fe):1;return[Math.max(0,Ze-ke),Math.max(0,Math.min(Se-1,nt+et)),Ze,nt]}),X=E(()=>{const{totalColumn:Se,totalRow:De,rowCache:Fe}=p,{isScrolling:Ie,yAxisScrollDir:je,scrollTop:Ee}=d(U);if(Se===0||De===0)return[0,0,0,0];const Ze=c(p,Ee,d(w)),nt=f(p,Ze,Ee,d(w)),ke=!Ie||je===$m?Math.max(1,Fe):1,et=!Ie||je===du?Math.max(1,Fe):1;return[Math.max(0,Ze-ke),Math.max(0,Math.min(De-1,nt+et)),Ze,nt]}),q=E(()=>i(p,d(w))),H=E(()=>a(p,d(w))),V=E(()=>{var Se;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:pt(p.height)?`${p.height}px`:p.height,width:pt(p.width)?`${p.width}px`:p.width},(Se=p.style)!=null?Se:{}]}),N=E(()=>{const Se=`${d(H)}px`;return{height:`${d(q)}px`,pointerEvents:d(U).isScrolling?"none":void 0,width:Se}}),Y=()=>{const{totalColumn:Se,totalRow:De}=p;if(Se>0&&De>0){const[nt,ke,et,dt]=d(G),[At,xt,ct,Ae]=d(X);y(Om,{columnCacheStart:nt,columnCacheEnd:ke,rowCacheStart:At,rowCacheEnd:xt,columnVisibleStart:et,columnVisibleEnd:dt,rowVisibleStart:ct,rowVisibleEnd:Ae})}const{scrollLeft:Fe,scrollTop:Ie,updateRequested:je,xAxisScrollDir:Ee,yAxisScrollDir:Ze}=d(U);y(Pm,{xAxisScrollDir:Ee,scrollLeft:Fe,yAxisScrollDir:Ze,scrollTop:Ie,updateRequested:je})},Z=Se=>{const{clientHeight:De,clientWidth:Fe,scrollHeight:Ie,scrollLeft:je,scrollTop:Ee,scrollWidth:Ze}=Se.currentTarget,nt=d(U);if(nt.scrollTop===Ee&&nt.scrollLeft===je)return;let ke=je;if(YE(p.direction))switch(Nm()){case Af:ke=-je;break;case C2:ke=Ze-Fe-je;break}U.value={...nt,isScrolling:!0,scrollLeft:ke,scrollTop:Math.max(0,Math.min(Ee,Ie-De)),updateRequested:!0,xAxisScrollDir:sl(nt.scrollLeft,ke),yAxisScrollDir:sl(nt.scrollTop,Ee)},ut(()=>ie()),we(),Y()},ne=(Se,De)=>{const Fe=d(W),Ie=(q.value-Fe)/De*Se;Ne({scrollTop:Math.min(q.value-Fe,Ie)})},ue=(Se,De)=>{const Fe=d(Q),Ie=(H.value-Fe)/De*Se;Ne({scrollLeft:Math.min(H.value-Fe,Ie)})},{onWheel:_e}=Voe({atXStartEdge:E(()=>U.value.scrollLeft<=0),atXEndEdge:E(()=>U.value.scrollLeft>=H.value-d(Q)),atYStartEdge:E(()=>U.value.scrollTop<=0),atYEndEdge:E(()=>U.value.scrollTop>=q.value-d(W))},(Se,De)=>{var Fe,Ie,je,Ee;(Ie=(Fe=O.value)==null?void 0:Fe.onMouseUp)==null||Ie.call(Fe),(Ee=(je=P.value)==null?void 0:je.onMouseUp)==null||Ee.call(je);const Ze=d(Q),nt=d(W);Ne({scrollLeft:Math.min(U.value.scrollLeft+Se,H.value-Ze),scrollTop:Math.min(U.value.scrollTop+De,q.value-nt)})}),Ne=({scrollLeft:Se=U.value.scrollLeft,scrollTop:De=U.value.scrollTop})=>{Se=Math.max(Se,0),De=Math.max(De,0);const Fe=d(U);De===Fe.scrollTop&&Se===Fe.scrollLeft||(U.value={...Fe,xAxisScrollDir:sl(Fe.scrollLeft,Se),yAxisScrollDir:sl(Fe.scrollTop,De),scrollLeft:Se,scrollTop:De,updateRequested:!0},ut(()=>ie()),we(),Y())},ce=(Se=0,De=0,Fe=Br)=>{const Ie=d(U);De=Math.max(0,Math.min(De,p.totalColumn-1)),Se=Math.max(0,Math.min(Se,p.totalRow-1));const je=z3(S.namespace.value),Ee=d(w),Ze=i(p,Ee),nt=a(p,Ee);Ne({scrollLeft:o(p,De,Fe,Ie.scrollLeft,Ee,nt>p.width?je:0),scrollTop:l(p,Se,Fe,Ie.scrollTop,Ee,Ze>p.height?je:0)})},te=(Se,De)=>{const{columnWidth:Fe,direction:Ie,rowHeight:je}=p,Ee=B.value(t&&Fe,t&&je,t&&Ie),Ze=`${Se},${De}`;if(qt(Ee,Ze))return Ee[Ze];{const[,nt]=n(p,De,d(w)),ke=d(w),et=YE(Ie),[dt,At]=u(p,Se,ke),[xt]=n(p,De,ke);return Ee[Ze]={position:"absolute",left:et?void 0:`${nt}px`,right:et?`${nt}px`:void 0,top:`${At}px`,height:`${dt}px`,width:`${xt}px`},Ee[Ze]}},ie=()=>{U.value.isScrolling=!1,ut(()=>{B.value(-1,null,null)})};gt(()=>{if(!jt)return;const{initScrollLeft:Se,initScrollTop:De}=p,Fe=d(C);Fe&&(pt(Se)&&(Fe.scrollLeft=Se),pt(De)&&(Fe.scrollTop=De)),Y()});const we=()=>{const{direction:Se}=p,{scrollLeft:De,scrollTop:Fe,updateRequested:Ie}=d(U),je=d(C);if(Ie&&je){if(Se===Eu)switch(Nm()){case Af:{je.scrollLeft=-De;break}case T2:{je.scrollLeft=De;break}default:{const{clientWidth:Ee,scrollWidth:Ze}=je;je.scrollLeft=Ze-Ee-De;break}}else je.scrollLeft=Math.max(0,De);je.scrollTop=Math.max(0,Fe)}},{resetAfterColumnIndex:me,resetAfterRowIndex:Ce,resetAfter:Be}=T.proxy;v({windowRef:C,innerRef:M,getItemStyleCache:B,scrollTo:Ne,scrollToItem:ce,states:U,resetAfterColumnIndex:me,resetAfterRowIndex:Ce,resetAfter:Be});const ee=()=>{const{scrollbarAlwaysOn:Se,scrollbarStartGap:De,scrollbarEndGap:Fe,totalColumn:Ie,totalRow:je}=p,Ee=d(Q),Ze=d(W),nt=d(H),ke=d(q),{scrollLeft:et,scrollTop:dt}=d(U),At=lt(Cb,{ref:O,alwaysOn:Se,startGap:De,endGap:Fe,class:S.e("horizontal"),clientSize:Ee,layout:"horizontal",onScroll:ue,ratio:Ee*100/nt,scrollFrom:et/(nt-Ee),total:je,visible:!0}),xt=lt(Cb,{ref:P,alwaysOn:Se,startGap:De,endGap:Fe,class:S.e("vertical"),clientSize:Ze,layout:"vertical",onScroll:ne,ratio:Ze*100/ke,scrollFrom:dt/(ke-Ze),total:Ie,visible:!0});return{horizontalScrollbar:At,verticalScrollbar:xt}},se=()=>{var Se;const[De,Fe]=d(G),[Ie,je]=d(X),{data:Ee,totalColumn:Ze,totalRow:nt,useIsScrolling:ke,itemKey:et}=p,dt=[];if(nt>0&&Ze>0)for(let At=Ie;At<=je;At++)for(let xt=De;xt<=Fe;xt++)dt.push((Se=b.default)==null?void 0:Se.call(b,{columnIndex:xt,data:Ee,key:et({columnIndex:xt,data:Ee,rowIndex:At}),isScrolling:ke?d(U).isScrolling:void 0,style:te(At,xt),rowIndex:At}));return dt},Te=()=>{const Se=Nt(p.innerElement),De=se();return[lt(Se,{style:d(N),ref:M},bt(Se)?De:{default:()=>De})]};return()=>{const Se=Nt(p.containerElement),{horizontalScrollbar:De,verticalScrollbar:Fe}=ee(),Ie=Te();return lt("div",{key:0,class:S.e("wrapper"),role:p.role},[lt(Se,{class:p.className,style:d(V),onScroll:Z,onWheel:_e,ref:C},bt(Se)?Ie:{default:()=>Ie}),De,Fe])}}}),Uoe=JO({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,a,o)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,s*t),c=Math.max(0,s*t-n+o+t);switch(r==="smart"&&(i>=c-n&&i<=u+n?r=Br:r=Pi),r){case xf:return u;case kf:return c;case Pi:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Br:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},s,r,i,a,o)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,s*e),c=Math.max(0,s*e-t+o+e);switch(r===Jg&&(i>=c-t&&i<=u+t?r=Br:r=Pi),r){case xf:return u;case kf:return c;case Pi:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Br:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},s,r)=>{const i=s*e,a=Math.ceil((n+r-i)/e);return Math.max(0,Math.min(t-1,s+a-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,a=Math.ceil((n+r-i)/e);return Math.max(0,Math.min(t-1,s+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:Mm,min:ZO,floor:eP}=Math,Hoe={column:"columnWidth",row:"rowHeight"},Eb={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},aa=(e,t,n,s)=>{const[r,i,a]=[n[s],e[Hoe[s]],n[Eb[s]]];if(t>a){let o=0;if(a>=0){const l=r[a];o=l.offset+l.size}for(let l=a+1;l<=t;l++){const u=i(l);r[l]={offset:o,size:u},o+=u}n[Eb[s]]=t}return r[t]},tP=(e,t,n,s,r,i)=>{for(;n<=s;){const a=n+eP((s-n)/2),o=aa(e,a,t,i).offset;if(o===r)return a;o<r?n=a+1:s=a-1}return Mm(0,n-1)},zoe=(e,t,n,s,r)=>{const i=r==="column"?e.totalColumn:e.totalRow;let a=1;for(;n<i&&aa(e,n,t,r).offset<s;)n+=a,a*=2;return tP(e,t,eP(n/2),ZO(n,i-1),s,r)},QE=(e,t,n,s)=>{const[r,i]=[t[s],t[Eb[s]]];return(i>0?r[i].offset:0)>=n?tP(e,t,0,i,n,s):zoe(e,t,Mm(0,i),n,s)},nP=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:s})=>{let r=0;if(n>=e&&(n=e-1),n>=0){const o=s[n];r=o.offset+o.size}const a=(e-n-1)*t;return r+a},sP=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:s})=>{let r=0;if(s>e&&(s=e-1),s>=0){const o=t[s];r=o.offset+o.size}const a=(e-s-1)*n;return r+a},joe={column:sP,row:nP},JE=(e,t,n,s,r,i,a)=>{const[o,l]=[i==="row"?e.height:e.width,joe[i]],u=aa(e,t,r,i),c=l(e,r),f=Mm(0,ZO(c-o,u.offset)),h=Mm(0,u.offset-o+a+u.size);switch(n===Jg&&(s>=h-o&&s<=f+o?n=Br:n=Pi),n){case xf:return f;case kf:return h;case Pi:return Math.round(h+(f-h)/2);case Br:default:return s>=h&&s<=f?s:h>f||s<h?h:f}},qoe=JO({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const s=aa(e,t,n,"column");return[s.size,s.offset]},getRowPosition:(e,t,n)=>{const s=aa(e,t,n,"row");return[s.size,s.offset]},getColumnOffset:(e,t,n,s,r,i)=>JE(e,t,n,s,r,"column",i),getRowOffset:(e,t,n,s,r,i)=>JE(e,t,n,s,r,"row",i),getColumnStartIndexForOffset:(e,t,n)=>QE(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,s)=>{const r=aa(e,t,s,"column"),i=n+e.width;let a=r.offset+r.size,o=t;for(;o<e.totalColumn-1&&a<i;)o++,a+=aa(e,t,s,"column").size;return o},getEstimatedTotalHeight:nP,getEstimatedTotalWidth:sP,getRowStartIndexForOffset:(e,t,n)=>QE(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,s)=>{const{totalRow:r,height:i}=e,a=aa(e,t,s,"row"),o=n+i;let l=a.size+a.offset,u=t;for(;u<r-1&&l<o;)u++,l+=aa(e,u,s,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:a},o)=>{var l,u;o=Fn(o)?!0:o,pt(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),pt(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),o&&((u=e.proxy)==null||u.$forceUpdate())},s=(i,a)=>{n({columnIndex:i},a)},r=(i,a)=>{n({rowIndex:i},a)};Object.assign(e.proxy,{resetAfterColumnIndex:s,resetAfterRowIndex:r,resetAfter:n})},initCache:({estimatedColumnWidth:e=yb,estimatedRowHeight:t=yb})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Woe=J({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Pe("select")}}});function Koe(e,t,n,s,r,i){return k(),z("div",{class:$(e.ns.be("group","title")),style:it([e.style,{lineHeight:`${e.height}px`}])},pe(e.item.label),7)}var Goe=ze(Woe,[["render",Koe],["__file","group-item.vue"]]);function Yoe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const rP={label:"label",value:"value",disabled:"disabled",options:"options"};function Zg(e){const t=E(()=>({...rP,...e.props}));return{aliasProps:t,getLabel:a=>Rn(a,t.value.label),getValue:a=>Rn(a,t.value.value),getDisabled:a=>Rn(a,t.value.disabled),getOptions:a=>Rn(a,t.value.options)}}const Xoe=Ve({allowCreate:Boolean,autocomplete:{type:le(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:sn,default:ko},effect:{type:le(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:le([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:le(Array),required:!0},placeholder:{type:String},teleported:as.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},remote:Boolean,size:es,props:{type:le(Object),default:()=>rP},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},placement:{type:le(String),values:Ll,default:"bottom-start"},fallbackPlacements:{type:le(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Gg.type,default:"info"},...Ac,...ys(["ariaLabel"])}),Qoe=Ve({data:Array,disabled:Boolean,hovering:Boolean,item:{type:le(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),E2=Symbol("ElSelectV2Injection"),Joe=J({props:Qoe,emits:["select","hover"],setup(e,{emit:t}){const n=Je(E2),s=Pe("select"),{hoverItem:r,selectOptionClick:i}=Yoe(e,{emit:t}),{getLabel:a}=Zg(n.props);return{ns:s,hoverItem:r,selectOptionClick:i,getLabel:a}}}),Zoe=["aria-selected"];function ele(e,t,n,s,r,i){return k(),z("li",{"aria-selected":e.selected,style:it(e.style),class:$([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=vt((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[be(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[R("span",null,pe(e.getLabel(e.item)),1)])],46,Zoe)}var tle=ze(Joe,[["render",ele],["__file","option-item.vue"]]),nle=J({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const s=Je(E2),r=Pe("select"),{getLabel:i,getValue:a,getDisabled:o}=Zg(s.props),l=j([]),u=j(),c=E(()=>e.data.length);xe(()=>c.value,()=>{var B,W;(W=(B=s.tooltipRef.value).updatePopper)==null||W.call(B)});const f=E(()=>Fn(s.props.estimatedOptionHeight)),h=E(()=>f.value?{itemSize:s.props.itemHeight}:{estimatedSize:s.props.estimatedOptionHeight,itemSize:B=>l.value[B]}),g=(B=[],W)=>{const{props:{valueKey:Q}}=s;return Pt(W)?B&&B.some(G=>en(Rn(G,Q))===Rn(W,Q)):B.includes(W)},m=(B,W)=>{if(Pt(W)){const{valueKey:Q}=s.props;return Rn(B,Q)===Rn(W,Q)}else return B===W},p=(B,W)=>s.props.multiple?g(B,a(W)):m(B,a(W)),y=(B,W)=>{const{disabled:Q,multiple:G,multipleLimit:X}=s.props;return Q||!W&&(G?X>0&&B.length>=X:!1)},v=B=>e.hoveringIndex===B;n({listRef:u,isSized:f,isItemDisabled:y,isItemHovering:v,isItemSelected:p,scrollToItem:B=>{const W=u.value;W&&W.scrollToItem(B)},resetScrollTop:()=>{const B=u.value;B&&B.resetScrollTop()}});const T=B=>{const{index:W,data:Q,style:G}=B,X=d(f),{itemSize:q,estimatedSize:H}=d(h),{modelValue:V}=s.props,{onSelect:N,onHover:Y}=s,Z=Q[W];if(Z.type==="Group")return I(Goe,{item:Z,style:G,height:X?q:H},null);const ne=p(V,Z),ue=y(V,ne),_e=v(W);return I(tle,Lt(B,{selected:ne,disabled:o(Z)||ue,created:!!Z.created,hovering:_e,item:Z,onSelect:N,onHover:Y}),{default:Ne=>{var ce;return((ce=t.default)==null?void 0:ce.call(t,Ne))||I("span",null,[i(Z)])}})},{onKeyboardNavigate:w,onKeyboardSelect:C}=s,O=()=>{w("forward")},P=()=>{w("backward")},M=()=>{s.expanded=!1},U=B=>{const{code:W}=B,{tab:Q,esc:G,down:X,up:q,enter:H}=ot;switch(W!==Q&&(B.preventDefault(),B.stopPropagation()),W){case Q:case G:{M();break}case X:{O();break}case q:{P();break}case H:{C();break}}};return()=>{var B,W,Q,G;const{data:X,width:q}=e,{height:H,multiple:V,scrollbarAlwaysOn:N}=s.props,Y=d(f)?XO:Foe;return I("div",{class:[r.b("dropdown"),r.is("multiple",V)],style:{width:`${q}px`}},[(B=t.header)==null?void 0:B.call(t),((W=t.loading)==null?void 0:W.call(t))||((Q=t.empty)==null?void 0:Q.call(t))||I(Y,Lt({ref:u},d(h),{className:r.be("dropdown","list"),scrollbarAlwaysOn:N,data:X,height:H,width:q,total:X.length,onKeydown:U}),{default:Z=>I(T,Z,null)}),(G=t.footer)==null?void 0:G.call(t)])}}});function sle(e,t){const{aliasProps:n,getLabel:s,getValue:r}=Zg(e),i=j(0),a=j(null),o=E(()=>e.allowCreate&&e.filterable);function l(g){const m=p=>s(p)===g;return e.options&&e.options.some(m)||t.createdOptions.some(m)}function u(g){o.value&&(e.multiple&&g.created?i.value++:a.value=g)}function c(g){if(o.value)if(g&&g.length>0){if(l(g))return;const m={[n.value.value]:g,[n.value.label]:g,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=m:t.createdOptions.push(m)}else if(e.multiple)t.createdOptions.length=i.value;else{const m=a.value;t.createdOptions.length=0,m&&m.created&&t.createdOptions.push(m)}}function f(g){if(!o.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===s(g))return;const m=t.createdOptions.findIndex(p=>r(p)===r(g));~m&&(t.createdOptions.splice(m,1),i.value--)}function h(){o.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:c,removeNewOption:f,selectNewOption:u,clearAllNewOption:h}}const rle=11,ile=(e,t)=>{const{t:n}=Wt(),s=Pe("select"),r=Pe("input"),{form:i,formItem:a}=$s(),{inputId:o}=_i(e,{formItemContext:a}),{aliasProps:l,getLabel:u,getValue:c,getDisabled:f,getOptions:h}=Zg(e),{valueOnClear:g,isEmptyValue:m}=zg(e),p=Ct({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),y=j(-1),v=j(null),b=j(null),S=j(null),T=j(null),w=j(null),C=j(null),O=j(null),P=j(null),M=j(null),U=j(null),B=j(null),{wrapperRef:W,isFocused:Q,handleFocus:G,handleBlur:X}=Hg(w,{afterFocus(){e.automaticDropdown&&!V.value&&(V.value=!0,p.menuVisibleOnFocus=!0)},beforeBlur(We){var St,Vt;return((St=S.value)==null?void 0:St.isFocusInsideContent(We))||((Vt=T.value)==null?void 0:Vt.isFocusInsideContent(We))},afterBlur(){V.value=!1,p.menuVisibleOnFocus=!1}}),q=j([]),H=j([]),V=j(!1),N=E(()=>e.disabled||(i==null?void 0:i.disabled)),Y=E(()=>{const We=H.value.length*e.itemHeight;return We>e.height?e.height:We}),Z=E(()=>e.multiple?Xe(e.modelValue)&&e.modelValue.length>0:!m(e.modelValue)),ne=E(()=>e.clearable&&!N.value&&p.inputHovering&&Z.value),ue=E(()=>e.remote&&e.filterable?"":Xi),_e=E(()=>ue.value&&s.is("reverse",V.value)),Ne=E(()=>(a==null?void 0:a.validateState)||""),ce=E(()=>A1[Ne.value]),te=E(()=>e.remote?300:0),ie=E(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!p.inputValue&&q.value.length===0?!1:e.filterable&&p.inputValue&&q.value.length>0&&H.value.length===0?e.noMatchText||n("el.select.noMatch"):q.value.length===0?e.noDataText||n("el.select.noData"):null),we=We=>{const St=Vt=>{if(e.filterable&&mt(e.filterMethod)||e.filterable&&e.remote&&mt(e.remoteMethod))return!0;const tn=new RegExp(v1(We),"i");return We?tn.test(u(Vt)||""):!0};return e.loading?[]:[...p.createdOptions,...e.options].reduce((Vt,tn)=>{const Ys=h(tn);if(Xe(Ys)){const Ir=Ys.filter(St);Ir.length>0&&Vt.push({label:u(tn),type:"Group"},...Ir)}else(e.remote||St(tn))&&Vt.push(tn);return Vt},[])},me=()=>{q.value=we(""),H.value=we(p.inputValue)},Ce=E(()=>{const We=new Map;return q.value.forEach((St,Vt)=>{We.set(Bt(c(St)),{option:St,index:Vt})}),We}),Be=E(()=>{const We=new Map;return H.value.forEach((St,Vt)=>{We.set(Bt(c(St)),{option:St,index:Vt})}),We}),ee=E(()=>H.value.every(We=>f(We))),se=Kn(),Te=E(()=>se.value==="small"?"small":"default"),Le=()=>{var We;y.value=((We=v.value)==null?void 0:We.offsetWidth)||200},Se=()=>{if(!b.value)return 0;const We=window.getComputedStyle(b.value);return Number.parseFloat(We.gap||"6px")},De=E(()=>{const We=Se();return{maxWidth:`${B.value&&e.maxCollapseTags===1?p.selectionWidth-p.collapseItemWidth-We:p.selectionWidth}px`}}),Fe=E(()=>({maxWidth:`${p.selectionWidth}px`})),Ie=E(()=>({width:`${Math.max(p.calculatorWidth,rle)}px`})),je=E(()=>Xe(e.modelValue)?e.modelValue.length===0&&!p.inputValue:e.filterable?!p.inputValue:!0),Ee=E(()=>{var We;const St=(We=e.placeholder)!=null?We:n("el.select.placeholder");return e.multiple||!Z.value?St:p.selectedLabel}),Ze=E(()=>{var We,St;return(St=(We=S.value)==null?void 0:We.popperRef)==null?void 0:St.contentRef}),nt=E(()=>{if(e.multiple){const We=e.modelValue.length;if(e.modelValue.length>0&&Be.value.has(e.modelValue[We-1])){const{index:St}=Be.value.get(e.modelValue[We-1]);return St}}else if(e.modelValue&&Be.value.has(e.modelValue)){const{index:We}=Be.value.get(e.modelValue);return We}return-1}),ke=E({get(){return V.value&&ie.value!==!1},set(We){V.value=We}}),et=E(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(0,e.maxCollapseTags):p.cachedOptions:[]),dt=E(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:At,removeNewOption:xt,selectNewOption:ct,clearAllNewOption:Ae}=sle(e,p),{handleCompositionStart:Ue,handleCompositionUpdate:Me,handleCompositionEnd:ve}=BO(We=>hr(We)),$e=()=>{N.value||(p.menuVisibleOnFocus?p.menuVisibleOnFocus=!1:V.value=!V.value)},st=()=>{p.inputValue.length>0&&!V.value&&(V.value=!0),At(p.inputValue),at(p.inputValue)},ye=or(st,te.value),at=We=>{p.previousQuery!==We&&(p.previousQuery=We,e.filterable&&mt(e.filterMethod)?e.filterMethod(We):e.filterable&&e.remote&&mt(e.remoteMethod)&&e.remoteMethod(We),e.defaultFirstOption&&(e.filterable||e.remote)&&H.value.length?ut(Rt):ut(Ft))},Rt=()=>{const We=H.value.filter(tn=>!tn.disabled&&tn.type!=="Group"),St=We.find(tn=>tn.created),Vt=We[0];p.hoveringIndex=Mn(H.value,St||Vt)},Qt=We=>{Ds(e.modelValue,We)||t(dn,We)},Dn=We=>{t($t,We),Qt(We),p.previousValue=e.multiple?String(We):We},Mn=(We=[],St)=>{if(!Pt(St))return We.indexOf(St);const Vt=e.valueKey;let tn=-1;return We.some((Ys,Ir)=>Rn(Ys,Vt)===Rn(St,Vt)?(tn=Ir,!0):!1),tn},Bt=We=>Pt(We)?Rn(We,e.valueKey):We,On=()=>{Le()},Ro=()=>{p.selectionWidth=b.value.getBoundingClientRect().width},No=()=>{p.calculatorWidth=C.value.getBoundingClientRect().width},Ul=()=>{p.collapseItemWidth=B.value.getBoundingClientRect().width},Mo=()=>{var We,St;(St=(We=S.value)==null?void 0:We.updatePopper)==null||St.call(We)},Ti=()=>{var We,St;(St=(We=T.value)==null?void 0:We.updatePopper)==null||St.call(We)},Hl=We=>{if(e.multiple){let St=e.modelValue.slice();const Vt=Mn(St,c(We));Vt>-1?(St=[...St.slice(0,Vt),...St.slice(Vt+1)],p.cachedOptions.splice(Vt,1),xt(We)):(e.multipleLimit<=0||St.length<e.multipleLimit)&&(St=[...St,c(We)],p.cachedOptions.push(We),ct(We)),Dn(St),We.created&&at(""),e.filterable&&!e.reserveKeyword&&(p.inputValue="")}else p.selectedLabel=u(We),Dn(c(We)),V.value=!1,ct(We),We.created||Ae();Zi()},Hc=(We,St)=>{let Vt=e.modelValue.slice();const tn=Mn(Vt,c(St));tn>-1&&!N.value&&(Vt=[...e.modelValue.slice(0,tn),...e.modelValue.slice(tn+1)],p.cachedOptions.splice(tn,1),Dn(Vt),t("remove-tag",c(St)),xt(St)),We.stopPropagation(),Zi()},Zi=()=>{var We;(We=w.value)==null||We.focus()},$a=()=>{var We;(We=w.value)==null||We.blur()},Ra=()=>{p.inputValue.length>0?p.inputValue="":V.value=!1},cs=We=>F3(We,St=>!p.cachedOptions.some(Vt=>c(Vt)===St&&f(Vt))),zc=We=>{if(e.multiple&&We.code!==ot.delete&&p.inputValue.length===0){We.preventDefault();const St=e.modelValue.slice(),Vt=cs(St);if(Vt<0)return;const tn=St[Vt];St.splice(Vt,1);const Ys=p.cachedOptions[Vt];p.cachedOptions.splice(Vt,1),xt(Ys),Dn(St),t("remove-tag",tn)}},jc=()=>{let We;Xe(e.modelValue)?We=[]:We=g.value,e.multiple?p.cachedOptions=[]:p.selectedLabel="",V.value=!1,Dn(We),t("clear"),Ae(),Zi()},Ke=(We,St=void 0)=>{const Vt=H.value;if(!["forward","backward"].includes(We)||N.value||Vt.length<=0||ee.value)return;if(!V.value)return $e();St===void 0&&(St=p.hoveringIndex);let tn=-1;We==="forward"?(tn=St+1,tn>=Vt.length&&(tn=0)):We==="backward"&&(tn=St-1,(tn<0||tn>=Vt.length)&&(tn=Vt.length-1));const Ys=Vt[tn];if(f(Ys)||Ys.type==="Group")return Ke(We,tn);p.hoveringIndex=tn,mr(tn)},ft=()=>{if(V.value)~p.hoveringIndex&&H.value[p.hoveringIndex]&&Hl(H.value[p.hoveringIndex]);else return $e()},rn=We=>{p.hoveringIndex=We},Ft=()=>{e.multiple?p.hoveringIndex=H.value.findIndex(We=>e.modelValue.some(St=>Bt(St)===Bt(We))):p.hoveringIndex=H.value.findIndex(We=>Bt(We)===Bt(e.modelValue))},hr=We=>{if(p.inputValue=We.target.value,e.remote)ye();else return st()},pr=We=>{if(V.value=!1,Q.value){const St=new FocusEvent("focus",We);X(St)}},ti=()=>(p.isBeforeHide=!1,ut(()=>{~nt.value&&mr(p.hoveringIndex)})),mr=We=>{M.value.scrollToItem(We)},ts=We=>{const St=Bt(We);if(Ce.value.has(St)){const{option:Vt}=Ce.value.get(St);return Vt}return{[l.value.value]:We,[l.value.label]:We}},fn=()=>{if(e.multiple)if(e.modelValue.length>0){p.cachedOptions.length=0,p.previousValue=e.modelValue.toString();for(const We of e.modelValue){const St=ts(We);p.cachedOptions.push(St)}}else p.cachedOptions=[],p.previousValue=void 0;else if(Z.value){p.previousValue=e.modelValue;const We=H.value,St=We.findIndex(Vt=>Bt(c(Vt))===Bt(e.modelValue));~St?p.selectedLabel=u(We[St]):p.selectedLabel=Bt(e.modelValue)}else p.selectedLabel="",p.previousValue=void 0;Ae(),Le()};return xe(V,We=>{We?at(""):(p.inputValue="",p.previousQuery=null,p.isBeforeHide=!0,At("")),t("visible-change",We)}),xe(()=>e.modelValue,(We,St)=>{var Vt;(!We||e.multiple&&We.toString()!==p.previousValue||!e.multiple&&Bt(We)!==Bt(p.previousValue))&&fn(),!Ds(We,St)&&e.validateEvent&&((Vt=a==null?void 0:a.validate)==null||Vt.call(a,"change").catch(tn=>void 0))},{deep:!0}),xe(()=>e.options,()=>{const We=w.value;(!We||We&&document.activeElement!==We)&&fn()},{deep:!0,flush:"post"}),xe(()=>H.value,()=>M.value&&ut(M.value.resetScrollTop)),ps(()=>{p.isBeforeHide||me()}),ps(()=>{const{valueKey:We,options:St}=e,Vt=new Map;for(const tn of St){const Ys=c(tn);let Ir=Ys;if(Pt(Ir)&&(Ir=Rn(Ys,We)),Vt.get(Ir))break;Vt.set(Ir,!0)}}),gt(()=>{fn()}),Sn(v,On),Sn(b,Ro),Sn(C,No),Sn(M,Mo),Sn(W,Mo),Sn(U,Ti),Sn(B,Ul),{inputId:o,collapseTagSize:Te,currentPlaceholder:Ee,expanded:V,emptyText:ie,popupHeight:Y,debounce:te,allOptions:q,filteredOptions:H,iconComponent:ue,iconReverse:_e,tagStyle:De,collapseTagStyle:Fe,inputStyle:Ie,popperSize:y,dropdownMenuVisible:ke,hasModelValue:Z,shouldShowPlaceholder:je,selectDisabled:N,selectSize:se,showClearBtn:ne,states:p,isFocused:Q,nsSelect:s,nsInput:r,calculatorRef:C,inputRef:w,menuRef:M,tagMenuRef:U,tooltipRef:S,tagTooltipRef:T,selectRef:v,wrapperRef:W,selectionRef:b,prefixRef:O,suffixRef:P,collapseItemRef:B,popperRef:Ze,validateState:Ne,validateIcon:ce,showTagList:et,collapseTagList:dt,debouncedOnInputChange:ye,deleteTag:Hc,getLabel:u,getValue:c,getDisabled:f,getValueKey:Bt,handleBlur:X,handleClear:jc,handleClickOutside:pr,handleDel:zc,handleEsc:Ra,handleFocus:G,focus:Zi,blur:$a,handleMenuEnter:ti,handleResize:On,resetSelectionWidth:Ro,resetCalculatorWidth:No,updateTooltip:Mo,updateTagTooltip:Ti,updateOptions:me,toggleMenu:$e,scrollTo:mr,onInput:hr,onKeyboardNavigate:Ke,onKeyboardSelect:ft,onSelect:Hl,onHover:rn,handleCompositionStart:Ue,handleCompositionEnd:ve,handleCompositionUpdate:Me}},ale=J({name:"ElSelectV2",components:{ElSelectMenu:nle,ElTag:_a,ElTooltip:gs,ElIcon:tt},directives:{ClickOutside:ba},props:Xoe,emits:[$t,dn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=E(()=>{const{modelValue:r,multiple:i}=e,a=i?[]:void 0;return Xe(r)?i?r:a:i?a:r}),s=ile(Ct({...ms(e),modelValue:n}),t);return Mt(E2,{props:Ct({...ms(e),height:s.popupHeight,modelValue:n}),tooltipRef:s.tooltipRef,onSelect:s.onSelect,onHover:s.onHover,onKeyboardNavigate:s.onKeyboardNavigate,onKeyboardSelect:s.onKeyboardSelect}),{...s,modelValue:n}}}),ole=["id","autocomplete","aria-expanded","aria-label","disabled","readonly","name"],lle=["textContent"],ule={key:1};function cle(e,t,n,s,r,i){const a=kt("el-tag"),o=kt("el-tooltip"),l=kt("el-icon"),u=kt("el-select-menu"),c=_g("click-outside");return yt((k(),z("div",{ref:"selectRef",class:$([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[I(o,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:L(()=>[R("div",{ref:"wrapperRef",class:$([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[13]||(t[13]=vt((...f)=>e.toggleMenu&&e.toggleMenu(...f),["prevent","stop"]))},[e.$slots.prefix?(k(),z("div",{key:0,ref:"prefixRef",class:$(e.nsSelect.e("prefix"))},[be(e.$slots,"prefix")],2)):ae("v-if",!0),R("div",{ref:"selectionRef",class:$([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?be(e.$slots,"tag",{key:0},()=>[(k(!0),z(Ge,null,_t(e.showTagList,f=>(k(),z("div",{key:e.getValueKey(e.getValue(f)),class:$(e.nsSelect.e("selected-item"))},[I(a,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:it(e.tagStyle),onClose:h=>e.deleteTag(h,f)},{default:L(()=>[R("span",{class:$(e.nsSelect.e("tags-text"))},[be(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[Re(pe(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(k(),fe(o,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:L(()=>[R("div",{ref:"collapseItemRef",class:$(e.nsSelect.e("selected-item"))},[I(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,style:it(e.collapseTagStyle),"disable-transitions":""},{default:L(()=>[R("span",{class:$(e.nsSelect.e("tags-text"))}," + "+pe(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:L(()=>[R("div",{ref:"tagMenuRef",class:$(e.nsSelect.e("selection"))},[(k(!0),z(Ge,null,_t(e.collapseTagList,f=>(k(),z("div",{key:e.getValueKey(e.getValue(f)),class:$(e.nsSelect.e("selected-item"))},[I(a,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:h=>e.deleteTag(h,f)},{default:L(()=>[R("span",{class:$(e.nsSelect.e("tags-text"))},[be(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[Re(pe(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):ae("v-if",!0)]):ae("v-if",!0),e.selectDisabled?ae("v-if",!0):(k(),z("div",{key:1,class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[yt(R("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=f=>e.states.inputValue=f),style:it(e.inputStyle),autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:$([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onFocus:t[1]||(t[1]=(...f)=>e.handleFocus&&e.handleFocus(...f)),onBlur:t[2]||(t[2]=(...f)=>e.handleBlur&&e.handleBlur(...f)),onInput:t[3]||(t[3]=(...f)=>e.onInput&&e.onInput(...f)),onCompositionstart:t[4]||(t[4]=(...f)=>e.handleCompositionStart&&e.handleCompositionStart(...f)),onCompositionupdate:t[5]||(t[5]=(...f)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...f)),onCompositionend:t[6]||(t[6]=(...f)=>e.handleCompositionEnd&&e.handleCompositionEnd(...f)),onKeydown:[t[7]||(t[7]=Zt(vt(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=Zt(vt(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=Zt(vt((...f)=>e.onKeyboardSelect&&e.onKeyboardSelect(...f),["stop","prevent"]),["enter"])),t[10]||(t[10]=Zt(vt((...f)=>e.handleEsc&&e.handleEsc(...f),["stop","prevent"]),["esc"])),t[11]||(t[11]=Zt(vt((...f)=>e.handleDel&&e.handleDel(...f),["stop"]),["delete"]))],onClick:t[12]||(t[12]=vt((...f)=>e.toggleMenu&&e.toggleMenu(...f),["stop"]))},null,46,ole),[[va,e.states.inputValue]]),e.filterable?(k(),z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:$(e.nsSelect.e("input-calculator")),textContent:pe(e.states.inputValue)},null,10,lle)):ae("v-if",!0)],2)),e.shouldShowPlaceholder?(k(),z("div",{key:2,class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?be(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[R("span",null,pe(e.currentPlaceholder),1)]):(k(),z("span",ule,pe(e.currentPlaceholder),1))],2)):ae("v-if",!0)],2),R("div",{ref:"suffixRef",class:$(e.nsSelect.e("suffix"))},[e.iconComponent?yt((k(),fe(l,{key:0,class:$([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:L(()=>[(k(),fe(Nt(e.iconComponent)))]),_:1},8,["class"])),[[zt,!e.showClearBtn]]):ae("v-if",!0),e.showClearBtn&&e.clearIcon?(k(),fe(l,{key:1,class:$([e.nsSelect.e("caret"),e.nsInput.e("icon")]),onClick:vt(e.handleClear,["prevent","stop"])},{default:L(()=>[(k(),fe(Nt(e.clearIcon)))]),_:1},8,["class","onClick"])):ae("v-if",!0),e.validateState&&e.validateIcon?(k(),fe(l,{key:2,class:$([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:L(()=>[(k(),fe(Nt(e.validateIcon)))]),_:1},8,["class"])):ae("v-if",!0)],2)],2)]),content:L(()=>[I(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},ma({default:L(f=>[be(e.$slots,"default",da(Bu(f)))]),_:2},[e.$slots.header?{name:"header",fn:L(()=>[R("div",{class:$(e.nsSelect.be("dropdown","header"))},[be(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:L(()=>[R("div",{class:$(e.nsSelect.be("dropdown","loading"))},[be(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:L(()=>[R("div",{class:$(e.nsSelect.be("dropdown","empty"))},[be(e.$slots,"empty",{},()=>[R("span",null,pe(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:L(()=>[R("div",{class:$(e.nsSelect.be("dropdown","footer"))},[be(e.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","onBeforeShow"])],34)),[[c,e.handleClickOutside,e.popperRef]])}var Kp=ze(ale,[["render",cle],["__file","select.vue"]]);Kp.install=e=>{e.component(Kp.name,Kp)};const dle=Kp,fle=dle,hle=Ve({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),ple=Ve({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),mle=J({name:"ElSkeletonItem"}),gle=J({...mle,props:ple,setup(e){const t=Pe("skeleton");return(n,s)=>(k(),z("div",{class:$([d(t).e("item"),d(t).e(n.variant)])},[n.variant==="image"?(k(),fe(d(Cj),{key:0})):ae("v-if",!0)],2))}});var Lm=ze(gle,[["__file","skeleton-item.vue"]]);const vle=J({name:"ElSkeleton"}),yle=J({...vle,props:hle,setup(e,{expose:t}){const n=e,s=Pe("skeleton"),r=CW(nn(n,"loading"),n.throttle);return t({uiLoading:r}),(i,a)=>d(r)?(k(),z("div",Lt({key:0,class:[d(s).b(),d(s).is("animated",i.animated)]},i.$attrs),[(k(!0),z(Ge,null,_t(i.count,o=>(k(),z(Ge,{key:o},[i.loading?be(i.$slots,"template",{key:o},()=>[I(Lm,{class:$(d(s).is("first")),variant:"p"},null,8,["class"]),(k(!0),z(Ge,null,_t(i.rows,l=>(k(),fe(Lm,{key:l,class:$([d(s).e("paragraph"),d(s).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ae("v-if",!0)],64))),128))],16)):be(i.$slots,"default",da(Lt({key:1},i.$attrs)))}});var ble=ze(yle,[["__file","skeleton.vue"]]);const _le=Dt(ble,{SkeletonItem:Lm}),Sle=Tn(Lm),iP=Symbol("sliderContextKey"),wle=Ve({modelValue:{type:le([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:es,inputSize:es,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:le(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:le(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ll,default:"top"},marks:{type:le(Object)},validateEvent:{type:Boolean,default:!0},...ys(["ariaLabel"])}),O0=e=>pt(e)||Xe(e)&&e.every(pt),Tle={[$t]:O0,[zs]:O0,[dn]:O0},Cle=(e,t,n)=>{const s=j();return gt(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),cn(window,"resize",n),await ut(),n()}),{sliderWrapper:s}},Ele=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]})):[]),xle=(e,t,n)=>{const{form:s,formItem:r}=$s(),i=ln(),a=j(),o=j(),l={firstButton:a,secondButton:o},u=E(()=>e.disabled||(s==null?void 0:s.disabled)||!1),c=E(()=>Math.min(t.firstValue,t.secondValue)),f=E(()=>Math.max(t.firstValue,t.secondValue)),h=E(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),g=E(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),m=E(()=>e.vertical?{height:e.height}:{}),p=E(()=>e.vertical?{height:h.value,bottom:g.value}:{width:h.value,left:g.value}),y=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},v=B=>{const W=e.min+B*(e.max-e.min)/100;if(!e.range)return a;let Q;return Math.abs(c.value-W)<Math.abs(f.value-W)?Q=t.firstValue<t.secondValue?"firstButton":"secondButton":Q=t.firstValue>t.secondValue?"firstButton":"secondButton",l[Q]},b=B=>{const W=v(B);return W.value.setPosition(B),W},S=B=>{t.firstValue=B,w(e.range?[c.value,f.value]:B)},T=B=>{t.secondValue=B,e.range&&w([c.value,f.value])},w=B=>{n($t,B),n(zs,B)},C=async()=>{await ut(),n(dn,e.range?[c.value,f.value]:e.modelValue)},O=B=>{var W,Q,G,X,q,H;if(u.value||t.dragging)return;y();let V=0;if(e.vertical){const N=(G=(Q=(W=B.touches)==null?void 0:W.item(0))==null?void 0:Q.clientY)!=null?G:B.clientY;V=(i.value.getBoundingClientRect().bottom-N)/t.sliderSize*100}else{const N=(H=(q=(X=B.touches)==null?void 0:X.item(0))==null?void 0:q.clientX)!=null?H:B.clientX,Y=i.value.getBoundingClientRect().left;V=(N-Y)/t.sliderSize*100}if(!(V<0||V>100))return b(V)};return{elFormItem:r,slider:i,firstButton:a,secondButton:o,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:m,barStyle:p,resetSize:y,setPosition:b,emitChange:C,onSliderWrapperPrevent:B=>{var W,Q;((W=l.firstButton.value)!=null&&W.dragging||(Q=l.secondButton.value)!=null&&Q.dragging)&&B.preventDefault()},onSliderClick:B=>{O(B)&&C()},onSliderDown:async B=>{const W=O(B);W&&(await ut(),W.value.onButtonDown(B))},setFirstValue:S,setSecondValue:T}},{left:kle,down:Ale,right:Ile,up:Dle,home:Ole,end:Ple,pageUp:$le,pageDown:Rle}=ot,Nle=(e,t,n)=>{const s=j(),r=j(!1),i=E(()=>t.value instanceof Function),a=E(()=>i.value&&t.value(e.modelValue)||e.modelValue),o=or(()=>{n.value&&(r.value=!0)},50),l=or(()=>{n.value&&(r.value=!1)},50);return{tooltip:s,tooltipVisible:r,formatValue:a,displayTooltip:o,hideTooltip:l}},Mle=(e,t,n)=>{const{disabled:s,min:r,max:i,step:a,showTooltip:o,precision:l,sliderSize:u,formatTooltip:c,emitChange:f,resetSize:h,updateDragging:g}=Je(iP),{tooltip:m,tooltipVisible:p,formatValue:y,displayTooltip:v,hideTooltip:b}=Nle(e,c,o),S=j(),T=E(()=>`${(e.modelValue-r.value)/(i.value-r.value)*100}%`),w=E(()=>e.vertical?{bottom:T.value}:{left:T.value}),C=()=>{t.hovering=!0,v()},O=()=>{t.hovering=!1,t.dragging||b()},P=ne=>{s.value||(ne.preventDefault(),V(ne),window.addEventListener("mousemove",N),window.addEventListener("touchmove",N),window.addEventListener("mouseup",Y),window.addEventListener("touchend",Y),window.addEventListener("contextmenu",Y),S.value.focus())},M=ne=>{s.value||(t.newPosition=Number.parseFloat(T.value)+ne/(i.value-r.value)*100,Z(t.newPosition),f())},U=()=>{M(-a.value)},B=()=>{M(a.value)},W=()=>{M(-a.value*4)},Q=()=>{M(a.value*4)},G=()=>{s.value||(Z(0),f())},X=()=>{s.value||(Z(100),f())},q=ne=>{let ue=!0;[kle,Ale].includes(ne.key)?U():[Ile,Dle].includes(ne.key)?B():ne.key===Ole?G():ne.key===Ple?X():ne.key===Rle?W():ne.key===$le?Q():ue=!1,ue&&ne.preventDefault()},H=ne=>{let ue,_e;return ne.type.startsWith("touch")?(_e=ne.touches[0].clientY,ue=ne.touches[0].clientX):(_e=ne.clientY,ue=ne.clientX),{clientX:ue,clientY:_e}},V=ne=>{t.dragging=!0,t.isClick=!0;const{clientX:ue,clientY:_e}=H(ne);e.vertical?t.startY=_e:t.startX=ue,t.startPosition=Number.parseFloat(T.value),t.newPosition=t.startPosition},N=ne=>{if(t.dragging){t.isClick=!1,v(),h();let ue;const{clientX:_e,clientY:Ne}=H(ne);e.vertical?(t.currentY=Ne,ue=(t.startY-t.currentY)/u.value*100):(t.currentX=_e,ue=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+ue,Z(t.newPosition)}},Y=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||Z(t.newPosition),f()},0),window.removeEventListener("mousemove",N),window.removeEventListener("touchmove",N),window.removeEventListener("mouseup",Y),window.removeEventListener("touchend",Y),window.removeEventListener("contextmenu",Y))},Z=async ne=>{if(ne===null||Number.isNaN(+ne))return;ne<0?ne=0:ne>100&&(ne=100);const ue=100/((i.value-r.value)/a.value);let Ne=Math.round(ne/ue)*ue*(i.value-r.value)*.01+r.value;Ne=Number.parseFloat(Ne.toFixed(l.value)),Ne!==e.modelValue&&n($t,Ne),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await ut(),t.dragging&&v(),m.value.updatePopper()};return xe(()=>t.dragging,ne=>{g(ne)}),{disabled:s,button:S,tooltip:m,tooltipVisible:p,showTooltip:o,wrapperStyle:w,formatValue:y,handleMouseEnter:C,handleMouseLeave:O,onButtonDown:P,onKeyDown:q,setPosition:Z}},Lle=(e,t,n,s)=>({stops:E(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const a=(e.max-e.min)/e.step,o=100*e.step/(e.max-e.min),l=Array.from({length:a-1}).map((u,c)=>(c+1)*o);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:a=>e.vertical?{bottom:`${a}%`}:{left:`${a}%`}}),Ble=(e,t,n,s,r,i)=>{const a=u=>{r($t,u),r(zs,u)},o=()=>e.range?![n.value,s.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;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?a([e.min,e.min]):f[0]>e.max?a([e.max,e.max]):f[0]<e.min?a([e.min,f[1]]):f[1]>e.max?a([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],o()&&(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?a(e.min):f>e.max?a(e.max):(t.firstValue=f,o()&&(e.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(h=>void 0)),t.oldValue=f)))};l(),xe(()=>t.dragging,u=>{u||l()}),xe(()=>e.modelValue,(u,c)=>{t.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((f,h)=>f===c[h])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),xe(()=>[e.min,e.max],()=>{l()})},Fle=Ve({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ll,default:"top"}}),Vle={[$t]:e=>pt(e)},Ule=["tabindex"],Hle=J({name:"ElSliderButton"}),zle=J({...Hle,props:Fle,emits:Vle,setup(e,{expose:t,emit:n}){const s=e,r=Pe("slider"),i=Ct({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:s.modelValue}),{disabled:a,button:o,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:h,handleMouseEnter:g,handleMouseLeave:m,onButtonDown:p,onKeyDown:y,setPosition:v}=Mle(s,i,n),{hovering:b,dragging:S}=ms(i);return t({onButtonDown:p,onKeyDown:y,setPosition:v,hovering:b,dragging:S}),(T,w)=>(k(),z("div",{ref_key:"button",ref:o,class:$([d(r).e("button-wrapper"),{hover:d(b),dragging:d(S)}]),style:it(d(f)),tabindex:d(a)?-1:0,onMouseenter:w[0]||(w[0]=(...C)=>d(g)&&d(g)(...C)),onMouseleave:w[1]||(w[1]=(...C)=>d(m)&&d(m)(...C)),onMousedown:w[2]||(w[2]=(...C)=>d(p)&&d(p)(...C)),onTouchstart:w[3]||(w[3]=(...C)=>d(p)&&d(p)(...C)),onFocus:w[4]||(w[4]=(...C)=>d(g)&&d(g)(...C)),onBlur:w[5]||(w[5]=(...C)=>d(m)&&d(m)(...C)),onKeydown:w[6]||(w[6]=(...C)=>d(y)&&d(y)(...C))},[I(d(gs),{ref_key:"tooltip",ref:l,visible:d(c),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!d(u),persistent:""},{content:L(()=>[R("span",null,pe(d(h)),1)]),default:L(()=>[R("div",{class:$([d(r).e("button"),{hover:d(b),dragging:d(S)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,Ule))}});var ZE=ze(zle,[["__file","button.vue"]]);const jle=Ve({mark:{type:le([String,Object]),default:void 0}});var qle=J({name:"ElSliderMarker",props:jle,setup(e){const t=Pe("slider"),n=E(()=>bt(e.mark)?e.mark:e.mark.label),s=E(()=>bt(e.mark)?void 0:e.mark.style);return()=>lt("div",{class:t.e("marks-text"),style:s.value},n.value)}});const Wle=["id","role","aria-label","aria-labelledby"],Kle={key:1},Gle=J({name:"ElSlider"}),Yle=J({...Gle,props:wle,emits:Tle,setup(e,{expose:t,emit:n}){const s=e,r=Pe("slider"),{t:i}=Wt(),a=Ct({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:o,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:h,maxValue:g,runwayStyle:m,barStyle:p,resetSize:y,emitChange:v,onSliderWrapperPrevent:b,onSliderClick:S,onSliderDown:T,setFirstValue:w,setSecondValue:C}=xle(s,a,n),{stops:O,getStopStyle:P}=Lle(s,a,h,g),{inputId:M,isLabeledByFormItem:U}=_i(s,{formItemContext:o}),B=Kn(),W=E(()=>s.inputSize||B.value),Q=E(()=>s.label||s.ariaLabel||i("el.slider.defaultLabel",{min:s.min,max:s.max})),G=E(()=>s.range?s.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):Q.value),X=E(()=>s.formatValueText?s.formatValueText(ne.value):`${ne.value}`),q=E(()=>s.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),H=E(()=>s.formatValueText?s.formatValueText(ue.value):`${ue.value}`),V=E(()=>[r.b(),r.m(B.value),r.is("vertical",s.vertical),{[r.m("with-input")]:s.showInput}]),N=Ele(s);Ble(s,a,h,g,n,o);const Y=E(()=>{const ce=[s.min,s.max,s.step].map(te=>{const ie=`${te}`.split(".")[1];return ie?ie.length:0});return Math.max.apply(null,ce)}),{sliderWrapper:Z}=Cle(s,a,y),{firstValue:ne,secondValue:ue,sliderSize:_e}=ms(a),Ne=ce=>{a.dragging=ce};return Mt(iP,{...ms(s),sliderSize:_e,disabled:f,precision:Y,emitChange:v,resetSize:y,updateDragging:Ne}),ss({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-slider",ref:"https://element-plus.org/en-US/component/slider.html"},E(()=>!!s.label)),t({onSliderClick:S}),(ce,te)=>{var ie,we;return k(),z("div",{id:ce.range?d(M):void 0,ref_key:"sliderWrapper",ref:Z,class:$(d(V)),role:ce.range?"group":void 0,"aria-label":ce.range&&!d(U)?d(Q):void 0,"aria-labelledby":ce.range&&d(U)?(ie=d(o))==null?void 0:ie.labelId:void 0,onTouchstart:te[2]||(te[2]=(...me)=>d(b)&&d(b)(...me)),onTouchmove:te[3]||(te[3]=(...me)=>d(b)&&d(b)(...me))},[R("div",{ref_key:"slider",ref:l,class:$([d(r).e("runway"),{"show-input":ce.showInput&&!ce.range},d(r).is("disabled",d(f))]),style:it(d(m)),onMousedown:te[0]||(te[0]=(...me)=>d(T)&&d(T)(...me)),onTouchstart:te[1]||(te[1]=(...me)=>d(T)&&d(T)(...me))},[R("div",{class:$(d(r).e("bar")),style:it(d(p))},null,6),I(ZE,{id:ce.range?void 0:d(M),ref_key:"firstButton",ref:u,"model-value":d(ne),vertical:ce.vertical,"tooltip-class":ce.tooltipClass,placement:ce.placement,role:"slider","aria-label":ce.range||!d(U)?d(G):void 0,"aria-labelledby":!ce.range&&d(U)?(we=d(o))==null?void 0:we.labelId:void 0,"aria-valuemin":ce.min,"aria-valuemax":ce.range?d(ue):ce.max,"aria-valuenow":d(ne),"aria-valuetext":d(X),"aria-orientation":ce.vertical?"vertical":"horizontal","aria-disabled":d(f),"onUpdate:modelValue":d(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"]),ce.range?(k(),fe(ZE,{key:0,ref_key:"secondButton",ref:c,"model-value":d(ue),vertical:ce.vertical,"tooltip-class":ce.tooltipClass,placement:ce.placement,role:"slider","aria-label":d(q),"aria-valuemin":d(ne),"aria-valuemax":ce.max,"aria-valuenow":d(ue),"aria-valuetext":d(H),"aria-orientation":ce.vertical?"vertical":"horizontal","aria-disabled":d(f),"onUpdate:modelValue":d(C)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ae("v-if",!0),ce.showStops?(k(),z("div",Kle,[(k(!0),z(Ge,null,_t(d(O),(me,Ce)=>(k(),z("div",{key:Ce,class:$(d(r).e("stop")),style:it(d(P)(me))},null,6))),128))])):ae("v-if",!0),d(N).length>0?(k(),z(Ge,{key:2},[R("div",null,[(k(!0),z(Ge,null,_t(d(N),(me,Ce)=>(k(),z("div",{key:Ce,style:it(d(P)(me.position)),class:$([d(r).e("stop"),d(r).e("marks-stop")])},null,6))),128))]),R("div",{class:$(d(r).e("marks"))},[(k(!0),z(Ge,null,_t(d(N),(me,Ce)=>(k(),fe(d(qle),{key:Ce,mark:me.mark,style:it(d(P)(me.position))},null,8,["mark","style"]))),128))],2)],64)):ae("v-if",!0)],38),ce.showInput&&!ce.range?(k(),fe(d(Qg),{key:0,ref:"input","model-value":d(ne),class:$(d(r).e("input")),step:ce.step,disabled:d(f),controls:ce.showInputControls,min:ce.min,max:ce.max,debounce:ce.debounce,size:d(W),"onUpdate:modelValue":d(w),onChange:d(v)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ae("v-if",!0)],42,Wle)}}});var Xle=ze(Yle,[["__file","slider.vue"]]);const Qle=Dt(Xle),Jle=Ve({prefixCls:{type:String}}),ex=J({name:"ElSpaceItem",props:Jle,setup(e,{slots:t}){const n=Pe("space"),s=E(()=>`${e.prefixCls||n.b()}__item`);return()=>lt("div",{class:s.value},be(t,"default"))}}),tx={small:8,default:12,large:16};function Zle(e){const t=Pe("space"),n=E(()=>[t.b(),t.m(e.direction),e.class]),s=j(0),r=j(0),i=E(()=>{const o=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},u={rowGap:`${r.value}px`,columnGap:`${s.value}px`};return[o,l,u,e.style]}),a=E(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return ps(()=>{const{size:o="small",wrap:l,direction:u,fill:c}=e;if(Xe(o)){const[f=0,h=0]=o;s.value=f,r.value=h}else{let f;pt(o)?f=o:f=tx[o||"small"]||tx.small,(l||c)&&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:a}}const eue=Ve({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:le([String,Object,Array]),default:""},style:{type:le([String,Array,Object]),default:""},alignment:{type:le(String),default:"center"},prefixCls:{type:String},spacer:{type:le([Object,String,Number,Array]),default:null,validator:e=>_n(e)||pt(e)||bt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Qi,validator:e=>pt(e)||Xe(e)&&e.length===2&&e.every(pt)}}),tue=J({name:"ElSpace",props:eue,setup(e,{slots:t}){const{classes:n,containerStyle:s,itemStyle:r}=Zle(e);function i(a,o="",l=[]){const{prefixCls:u}=e;return a.forEach((c,f)=>{Uy(c)?Xe(c.children)&&c.children.forEach((h,g)=>{Uy(h)&&Xe(h.children)?i(h.children,`${o+g}-`,l):l.push(I(ex,{style:r.value,prefixCls:u,key:`nested-${o+g}`},{default:()=>[h]},Rr.PROPS|Rr.STYLE,["style","prefixCls"]))}):oq(c)&&l.push(I(ex,{style:r.value,prefixCls:u,key:`LoopKey${o+f}`},{default:()=>[c]},Rr.PROPS|Rr.STYLE,["style","prefixCls"]))}),l}return()=>{var a;const{spacer:o,direction:l}=e,u=be(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(Xe(u.children)){let c=i(u.children);if(o){const f=c.length-1;c=c.reduce((h,g,m)=>{const p=[...h,g];return m!==f&&p.push(I("span",{style:[r.value,l==="vertical"?"width: 100%":null],key:m},[_n(o)?o:Re(o,Rr.TEXT)],Rr.STYLE)),p},[])}return I("div",{class:n.value,style:s.value},c,Rr.STYLE|Rr.CLASS)}return u.children}}}),nue=Dt(tue),sue=Ve({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:le([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:le([String,Object,Array])}}),rue=J({name:"ElStatistic"}),iue=J({...rue,props:sue,setup(e,{expose:t}){const n=e,s=Pe("statistic"),r=E(()=>{const{value:i,formatter:a,precision:o,decimalSeparator:l,groupSeparator:u}=n;if(mt(a))return a(i);if(!pt(i))return i;let[c,f=""]=String(i).split(".");return f=f.padEnd(o,"0").slice(0,o>0?o:0),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,u),[c,f].join(f?l:"")});return t({displayValue:r}),(i,a)=>(k(),z("div",{class:$(d(s).b())},[i.$slots.title||i.title?(k(),z("div",{key:0,class:$(d(s).e("head"))},[be(i.$slots,"title",{},()=>[Re(pe(i.title),1)])],2)):ae("v-if",!0),R("div",{class:$(d(s).e("content"))},[i.$slots.prefix||i.prefix?(k(),z("div",{key:0,class:$(d(s).e("prefix"))},[be(i.$slots,"prefix",{},()=>[R("span",null,pe(i.prefix),1)])],2)):ae("v-if",!0),R("span",{class:$(d(s).e("number")),style:it(i.valueStyle)},pe(d(r)),7),i.$slots.suffix||i.suffix?(k(),z("div",{key:1,class:$(d(s).e("suffix"))},[be(i.$slots,"suffix",{},()=>[R("span",null,pe(i.suffix),1)])],2)):ae("v-if",!0)],2)],2))}});var aue=ze(iue,[["__file","statistic.vue"]]);const aP=Dt(aue),oue=Ve({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:le([Number,Object]),default:0},valueStyle:{type:le([String,Object,Array])}}),lue={finish:()=>!0,[dn]:e=>pt(e)},uue=[["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]],nx=e=>pt(e)?new Date(e).getTime():e.valueOf(),sx=(e,t)=>{let n=e;const s=/\[([^\]]*)]/g;return uue.reduce((i,[a,o])=>{const l=new RegExp(`${a}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/o);return n-=u*o,i.replace(l,c=>String(u).padStart(c.length,"0"))}return i},t).replace(s,"$1")},cue=J({name:"ElCountdown"}),due=J({...cue,props:oue,emits:lue,setup(e,{expose:t,emit:n}){const s=e;let r;const i=j(nx(s.value)-Date.now()),a=E(()=>sx(i.value,s.format)),o=c=>sx(c,s.format),l=()=>{r&&(Cl(r),r=void 0)},u=()=>{const c=nx(s.value),f=()=>{let h=c-Date.now();n("change",h),h<=0?(h=0,l(),n("finish")):r=po(f),i.value=h};r=po(f)};return xe(()=>[s.value,s.format],()=>{l(),u()},{immediate:!0}),un(()=>{l()}),t({displayValue:a}),(c,f)=>(k(),fe(d(aP),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:o},ma({_:2},[_t(c.$slots,(h,g)=>({name:g,fn:L(()=>[be(c.$slots,g)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var fue=ze(due,[["__file","countdown.vue"]]);const hue=Dt(fue),pue=Ve({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"}}),mue={[dn]:(e,t)=>[e,t].every(pt)},gue=J({name:"ElSteps"}),vue=J({...gue,props:pue,emits:mue,setup(e,{emit:t}){const n=e,s=Pe("steps"),{children:r,addChild:i,removeChild:a}=Y1(It(),"ElStep");return xe(r,()=>{r.value.forEach((o,l)=>{o.setIndex(l)})}),Mt("ElSteps",{props:n,steps:r,addStep:i,removeStep:a}),xe(()=>n.active,(o,l)=>{t(dn,o,l)}),(o,l)=>(k(),z("div",{class:$([d(s).b(),d(s).m(o.simple?"simple":o.direction)])},[be(o.$slots,"default")],2))}});var yue=ze(vue,[["__file","steps.vue"]]);const bue=Ve({title:{type:String,default:""},icon:{type:sn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),_ue=J({name:"ElStep"}),Sue=J({..._ue,props:bue,setup(e){const t=e,n=Pe("step"),s=j(-1),r=j({}),i=j(""),a=Je("ElSteps"),o=It();gt(()=>{xe([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([C])=>{T(C)},{immediate:!0})}),un(()=>{a.removeStep(w.uid)});const l=E(()=>t.status||i.value),u=E(()=>{const C=a.steps.value[s.value-1];return C?C.currentStatus:"wait"}),c=E(()=>a.props.alignCenter),f=E(()=>a.props.direction==="vertical"),h=E(()=>a.props.simple),g=E(()=>a.steps.value.length),m=E(()=>{var C;return((C=a.steps.value[g.value-1])==null?void 0:C.uid)===(o==null?void 0:o.uid)}),p=E(()=>h.value?"":a.props.space),y=E(()=>[n.b(),n.is(h.value?"simple":a.props.direction),n.is("flex",m.value&&!p.value&&!c.value),n.is("center",c.value&&!f.value&&!h.value)]),v=E(()=>{const C={flexBasis:pt(p.value)?`${p.value}px`:p.value?p.value:`${100/(g.value-(c.value?0:1))}%`};return f.value||m.value&&(C.maxWidth=`${100/g.value}%`),C}),b=C=>{s.value=C},S=C=>{const O=C==="wait",P={transitionDelay:`${O?"-":""}${150*s.value}ms`},M=C===a.props.processStatus||O?0:100;P.borderWidth=M&&!h.value?"1px":0,P[a.props.direction==="vertical"?"height":"width"]=`${M}%`,r.value=P},T=C=>{C>s.value?i.value=a.props.finishStatus:C===s.value&&u.value!=="error"?i.value=a.props.processStatus:i.value="wait";const O=a.steps.value[s.value-1];O&&O.calcProgress(i.value)},w=Ct({uid:o.uid,currentStatus:l,setIndex:b,calcProgress:S});return a.addStep(w),(C,O)=>(k(),z("div",{style:it(d(v)),class:$(d(y))},[ae(" icon & line "),R("div",{class:$([d(n).e("head"),d(n).is(d(l))])},[d(h)?ae("v-if",!0):(k(),z("div",{key:0,class:$(d(n).e("line"))},[R("i",{class:$(d(n).e("line-inner")),style:it(r.value)},null,6)],2)),R("div",{class:$([d(n).e("icon"),d(n).is(C.icon||C.$slots.icon?"icon":"text")])},[be(C.$slots,"icon",{},()=>[C.icon?(k(),fe(d(tt),{key:0,class:$(d(n).e("icon-inner"))},{default:L(()=>[(k(),fe(Nt(C.icon)))]),_:1},8,["class"])):d(l)==="success"?(k(),fe(d(tt),{key:1,class:$([d(n).e("icon-inner"),d(n).is("status")])},{default:L(()=>[I(d(eh))]),_:1},8,["class"])):d(l)==="error"?(k(),fe(d(tt),{key:2,class:$([d(n).e("icon-inner"),d(n).is("status")])},{default:L(()=>[I(d(hi))]),_:1},8,["class"])):d(h)?ae("v-if",!0):(k(),z("div",{key:3,class:$(d(n).e("icon-inner"))},pe(s.value+1),3))])],2)],2),ae(" title & description "),R("div",{class:$(d(n).e("main"))},[R("div",{class:$([d(n).e("title"),d(n).is(d(l))])},[be(C.$slots,"title",{},()=>[Re(pe(C.title),1)])],2),d(h)?(k(),z("div",{key:0,class:$(d(n).e("arrow"))},null,2)):(k(),z("div",{key:1,class:$([d(n).e("description"),d(n).is(d(l))])},[be(C.$slots,"description",{},()=>[Re(pe(C.description),1)])],2))],2)],6))}});var oP=ze(Sue,[["__file","item.vue"]]);const wue=Dt(yue,{Step:oP}),Tue=Tn(oP),Cue=Ve({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:Q3},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:sn},activeActionIcon:{type:sn},activeIcon:{type:sn},inactiveIcon:{type:sn},activeText:{type:String,default:""},inactiveText:{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},beforeChange:{type:le(Function)},id:String,tabindex:{type:[String,Number]},label:{type:String,default:void 0},...ys(["ariaLabel"])}),Eue={[$t]:e=>Hn(e)||bt(e)||pt(e),[dn]:e=>Hn(e)||bt(e)||pt(e),[zs]:e=>Hn(e)||bt(e)||pt(e)},xue=["onClick"],kue=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],Aue=["aria-hidden"],Iue=["aria-hidden"],Due=["aria-hidden"],lP="ElSwitch",Oue=J({name:lP}),Pue=J({...Oue,props:Cue,emits:Eue,setup(e,{expose:t,emit:n}){const s=e,{formItem:r}=$s(),i=Kn(),a=Pe("switch"),{inputId:o}=_i(s,{formItemContext:r}),l=Gs(E(()=>s.loading)),u=j(s.modelValue!==!1),c=j(),f=j(),h=E(()=>[a.b(),a.m(i.value),a.is("disabled",l.value),a.is("checked",v.value)]),g=E(()=>[a.e("label"),a.em("label","left"),a.is("active",!v.value)]),m=E(()=>[a.e("label"),a.em("label","right"),a.is("active",v.value)]),p=E(()=>({width:In(s.width)}));xe(()=>s.modelValue,()=>{u.value=!0});const y=E(()=>u.value?s.modelValue:!1),v=E(()=>y.value===s.activeValue);[s.activeValue,s.inactiveValue].includes(y.value)||(n($t,s.inactiveValue),n(dn,s.inactiveValue),n(zs,s.inactiveValue)),xe(v,w=>{var C;c.value.checked=w,s.validateEvent&&((C=r==null?void 0:r.validate)==null||C.call(r,"change").catch(O=>void 0))});const b=()=>{const w=v.value?s.inactiveValue:s.activeValue;n($t,w),n(dn,w),n(zs,w),ut(()=>{c.value.checked=v.value})},S=()=>{if(l.value)return;const{beforeChange:w}=s;if(!w){b();return}const C=w();[rf(C),Hn(C)].includes(!0)||Zn(lP,"beforeChange must return type `Promise<boolean>` or `boolean`"),rf(C)?C.then(P=>{P&&b()}).catch(P=>{}):C&&b()},T=()=>{var w,C;(C=(w=c.value)==null?void 0:w.focus)==null||C.call(w)};return gt(()=>{c.value.checked=v.value}),ss({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-switch",ref:"https://element-plus.org/en-US/component/switch.html"},E(()=>!!s.label)),t({focus:T,checked:v}),(w,C)=>(k(),z("div",{class:$(d(h)),onClick:vt(S,["prevent"])},[R("input",{id:d(o),ref_key:"input",ref:c,class:$(d(a).e("input")),type:"checkbox",role:"switch","aria-checked":d(v),"aria-disabled":d(l),"aria-label":w.label||w.ariaLabel,name:w.name,"true-value":w.activeValue,"false-value":w.inactiveValue,disabled:d(l),tabindex:w.tabindex,onChange:b,onKeydown:Zt(S,["enter"])},null,42,kue),!w.inlinePrompt&&(w.inactiveIcon||w.inactiveText)?(k(),z("span",{key:0,class:$(d(g))},[w.inactiveIcon?(k(),fe(d(tt),{key:0},{default:L(()=>[(k(),fe(Nt(w.inactiveIcon)))]),_:1})):ae("v-if",!0),!w.inactiveIcon&&w.inactiveText?(k(),z("span",{key:1,"aria-hidden":d(v)},pe(w.inactiveText),9,Aue)):ae("v-if",!0)],2)):ae("v-if",!0),R("span",{ref_key:"core",ref:f,class:$(d(a).e("core")),style:it(d(p))},[w.inlinePrompt?(k(),z("div",{key:0,class:$(d(a).e("inner"))},[w.activeIcon||w.inactiveIcon?(k(),fe(d(tt),{key:0,class:$(d(a).is("icon"))},{default:L(()=>[(k(),fe(Nt(d(v)?w.activeIcon:w.inactiveIcon)))]),_:1},8,["class"])):w.activeText||w.inactiveText?(k(),z("span",{key:1,class:$(d(a).is("text")),"aria-hidden":!d(v)},pe(d(v)?w.activeText:w.inactiveText),11,Iue)):ae("v-if",!0)],2)):ae("v-if",!0),R("div",{class:$(d(a).e("action"))},[w.loading?(k(),fe(d(tt),{key:0,class:$(d(a).is("loading"))},{default:L(()=>[I(d(Ao))]),_:1},8,["class"])):d(v)?be(w.$slots,"active-action",{key:1},()=>[w.activeActionIcon?(k(),fe(d(tt),{key:0},{default:L(()=>[(k(),fe(Nt(w.activeActionIcon)))]),_:1})):ae("v-if",!0)]):d(v)?ae("v-if",!0):be(w.$slots,"inactive-action",{key:2},()=>[w.inactiveActionIcon?(k(),fe(d(tt),{key:0},{default:L(()=>[(k(),fe(Nt(w.inactiveActionIcon)))]),_:1})):ae("v-if",!0)])],2)],6),!w.inlinePrompt&&(w.activeIcon||w.activeText)?(k(),z("span",{key:1,class:$(d(m))},[w.activeIcon?(k(),fe(d(tt),{key:0},{default:L(()=>[(k(),fe(Nt(w.activeIcon)))]),_:1})):ae("v-if",!0),!w.activeIcon&&w.activeText?(k(),z("span",{key:1,"aria-hidden":!d(v)},pe(w.activeText),9,Due)):ae("v-if",!0)],2)):ae("v-if",!0)],10,xue))}});var $ue=ze(Pue,[["__file","switch.vue"]]);const fh=Dt($ue),P0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Rue=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(o,l){return r?(Array.isArray(r)||(r=[r]),r.map(u=>typeof u=="string"?Rn(o,u):u(o,l,e))):(t!=="$key"&&Pt(o)&&"$value"in o&&(o=o.$value),[Pt(o)?Rn(o,t):o])},a=function(o,l){if(s)return s(o.value,l.value);for(let u=0,c=o.key.length;u<c;u++){if(o.key[u]<l.key[u])return-1;if(o.key[u]>l.key[u])return 1}return 0};return e.map((o,l)=>({value:o,index:l,key:i?i(o,l):null})).sort((o,l)=>{let u=a(o,l);return u||(u=o.index-l.index),u*+n}).map(o=>o.value)},uP=function(e,t){let n=null;return e.columns.forEach(s=>{s.id===t&&(n=s)}),n},Nue=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},rx=function(e,t,n){const s=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return s?uP(e,s[0]):null},Ts=(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)},rl=function(e,t){const n={};return(e||[]).forEach((s,r)=>{n[Ts(s,t)]={row:s,index:r}}),n};function Mue(e,t){const n={};let s;for(s in e)n[s]=e[s];for(s in t)if(qt(t,s)){const r=t[s];typeof r<"u"&&(n[s]=r)}return n}function x2(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function cP(e){return e===""||e!==void 0&&(e=x2(e),Number.isNaN(e)&&(e=80)),e}function Lue(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Bue(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function Kd(e,t,n){let s=!1;const r=e.indexOf(t),i=r!==-1,a=o=>{o==="add"?e.push(t):e.splice(r,1),s=!0,Xe(t.children)&&t.children.forEach(l=>{Kd(e,l,n??!i)})};return Hn(n)?n&&!i?a("add"):!n&&i&&a("remove"):a(i?"remove":"add"),s}function Fue(e,t,n="children",s="hasChildren"){const r=a=>!(Array.isArray(a)&&a.length);function i(a,o,l){t(a,o,l),o.forEach(u=>{if(u[s]){t(u,null,l+1);return}const c=u[n];r(c)||i(u,c,l+1)})}e.forEach(a=>{if(a[s]){t(a,null,0);return}const o=a[n];r(o)||i(a,o,0)})}let $r=null;function Vue(e,t,n,s){if(($r==null?void 0:$r.trigger)===n)return;$r==null||$r();const r=s==null?void 0:s.refs.tableWrapper,i=r==null?void 0:r.dataset.prefix,a={strategy:"fixed",...e.popperOptions},o=I(gs,{content:t,virtualTriggering:!0,virtualRef:n,appendTo:r,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:a,onHide:()=>{$r==null||$r()}});o.appContext={...s.appContext,...s};const l=document.createElement("div");co(o,l),o.component.exposed.onOpen();const u=r==null?void 0:r.querySelector(`.${i}-scrollbar__wrap`);$r=()=>{co(null,l),u==null||u.removeEventListener("scroll",$r),$r=null},$r.trigger=n,u==null||u.addEventListener("scroll",$r)}function dP(e){return e.children?GH(e.children,dP):[e]}function ix(e,t){return e+t.colSpan}const fP=(e,t,n,s)=>{let r=0,i=e;const a=n.states.columns.value;if(s){const l=dP(s[e]);r=a.slice(0,a.indexOf(l[0])).reduce(ix,0),i=r+l.reduce(ix,0)-1}else r=e;let o;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":r>=a.length-n.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:i<n.states.fixedLeafColumnsLength.value?o="left":r>=a.length-n.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:r,after:i}:{}},k2=(e,t,n,s,r,i=0)=>{const a=[],{direction:o,start:l,after:u}=fP(t,n,s,r);if(o){const c=o==="left";a.push(`${e}-fixed-column--${o}`),c&&u+i===s.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!c&&l-i===s.states.columns.value.length-s.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function ax(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const A2=(e,t,n,s)=>{const{direction:r,start:i=0,after:a=0}=fP(e,t,n,s);if(!r)return;const o={},l=r==="left",u=n.states.columns.value;return l?o.left=u.slice(0,i).reduce(ax,0):o.right=u.slice(a+1).reverse().reduce(ax,0),o},tc=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Uue(e){const t=It(),n=j(!1),s=j([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)s.value=l.slice();else if(u){const c=rl(s.value,u);s.value=l.reduce((f,h)=>{const g=Ts(h,u);return c[g]&&f.push(h),f},[])}else s.value=[]},toggleRowExpansion:(l,u)=>{Kd(s.value,l,u)&&t.emit("expand-change",l,s.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=rl(u,c);s.value=l.reduce((h,g)=>{const m=f[g];return m&&h.push(m.row),h},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!rl(s.value,u)[Ts(l,u)]:s.value.includes(l)},states:{expandRows:s,defaultExpandAll:n}}}function Hue(e){const t=It(),n=j(null),s=j(null),r=u=>{t.store.assertRowKey(),n.value=u,a(u)},i=()=>{n.value=null},a=u=>{const{data:c,rowKey:f}=e;let h=null;f.value&&(h=(d(c)||[]).find(g=>Ts(g,f.value)===u)),s.value=h,t.emit("current-change",s.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:i,setCurrentRowByKey:a,updateCurrentRow:u=>{const c=s.value;if(u&&u!==c){s.value=u,t.emit("current-change",s.value,c);return}!u&&c&&(s.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=s.value;if(!c.includes(f)&&f){if(u){const h=Ts(f,u);a(h)}else s.value=null;s.value===null&&t.emit("current-change",null,f)}else n.value&&(a(n.value),i())},states:{_currentRowKey:n,currentRow:s}}}function zue(e){const t=j([]),n=j({}),s=j(16),r=j(!1),i=j({}),a=j("hasChildren"),o=j("children"),l=It(),u=E(()=>{if(!e.rowKey.value)return{};const v=e.data.value||[];return f(v)}),c=E(()=>{const v=e.rowKey.value,b=Object.keys(i.value),S={};return b.length&&b.forEach(T=>{if(i.value[T].length){const w={children:[]};i.value[T].forEach(C=>{const O=Ts(C,v);w.children.push(O),C[a.value]&&!S[O]&&(S[O]={children:[]})}),S[T]=w}}),S}),f=v=>{const b=e.rowKey.value,S={};return Fue(v,(T,w,C)=>{const O=Ts(T,b);Array.isArray(w)?S[O]={children:w.map(P=>Ts(P,b)),level:C}:r.value&&(S[O]={children:[],lazy:!0,level:C})},o.value,a.value),S},h=(v=!1,b=(S=>(S=l.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const T=u.value,w=c.value,C=Object.keys(T),O={};if(C.length){const P=d(n),M=[],U=(W,Q)=>{if(v)return t.value?b||t.value.includes(Q):!!(b||W!=null&&W.expanded);{const G=b||t.value&&t.value.includes(Q);return!!(W!=null&&W.expanded||G)}};C.forEach(W=>{const Q=P[W],G={...T[W]};if(G.expanded=U(Q,W),G.lazy){const{loaded:X=!1,loading:q=!1}=Q||{};G.loaded=!!X,G.loading=!!q,M.push(W)}O[W]=G});const B=Object.keys(w);r.value&&B.length&&M.length&&B.forEach(W=>{const Q=P[W],G=w[W].children;if(M.includes(W)){if(O[W].children.length!==0)throw new Error("[ElTable]children must be an empty array.");O[W].children=G}else{const{loaded:X=!1,loading:q=!1}=Q||{};O[W]={lazy:!0,loaded:!!X,loading:!!q,expanded:U(Q,W),children:G,level:""}}})}n.value=O,(S=l.store)==null||S.updateTableScrollY()};xe(()=>t.value,()=>{h(!0)}),xe(()=>u.value,()=>{h()}),xe(()=>c.value,()=>{h()});const g=v=>{t.value=v,h()},m=(v,b)=>{l.store.assertRowKey();const S=e.rowKey.value,T=Ts(v,S),w=T&&n.value[T];if(T&&w&&"expanded"in w){const C=w.expanded;b=typeof b>"u"?!w.expanded:b,n.value[T].expanded=b,C!==b&&l.emit("expand-change",v,b),l.store.updateTableScrollY()}},p=v=>{l.store.assertRowKey();const b=e.rowKey.value,S=Ts(v,b),T=n.value[S];r.value&&T&&"loaded"in T&&!T.loaded?y(v,S,T):m(v,void 0)},y=(v,b,S)=>{const{load:T}=l.props;T&&!n.value[b].loaded&&(n.value[b].loading=!0,T(v,S,w=>{if(!Array.isArray(w))throw new TypeError("[ElTable] data must be an array");n.value[b].loading=!1,n.value[b].loaded=!0,n.value[b].expanded=!0,w.length&&(i.value[b]=w),l.emit("expand-change",v,!0)}))};return{loadData:y,loadOrToggle:p,toggleTreeExpansion:m,updateTreeExpandKeys:g,updateTreeData:h,normalize:f,states:{expandRowKeys:t,treeData:n,indent:s,lazy:r,lazyTreeNodeMap:i,lazyColumnIdentifier:a,childrenColumnName:o}}}const jue=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:Rue(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Gp=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Gp(n.children)):t.push(n)}),t};function que(){var e;const t=It(),{size:n}=ms((e=t.proxy)==null?void 0:e.$props),s=j(null),r=j([]),i=j([]),a=j(!1),o=j([]),l=j([]),u=j([]),c=j([]),f=j([]),h=j([]),g=j([]),m=j([]),p=[],y=j(0),v=j(0),b=j(0),S=j(!1),T=j([]),w=j(!1),C=j(!1),O=j(null),P=j({}),M=j(null),U=j(null),B=j(null),W=j(null),Q=j(null);xe(r,()=>t.state&&H(!1),{deep:!0});const G=()=>{if(!s.value)throw new Error("[ElTable] prop row-key is required")},X=ct=>{var Ae;(Ae=ct.children)==null||Ae.forEach(Ue=>{Ue.fixed=ct.fixed,X(Ue)})},q=()=>{o.value.forEach(ve=>{X(ve)}),c.value=o.value.filter(ve=>ve.fixed===!0||ve.fixed==="left"),f.value=o.value.filter(ve=>ve.fixed==="right"),c.value.length>0&&o.value[0]&&o.value[0].type==="selection"&&!o.value[0].fixed&&(o.value[0].fixed=!0,c.value.unshift(o.value[0]));const ct=o.value.filter(ve=>!ve.fixed);l.value=[].concat(c.value).concat(ct).concat(f.value);const Ae=Gp(ct),Ue=Gp(c.value),Me=Gp(f.value);y.value=Ae.length,v.value=Ue.length,b.value=Me.length,u.value=[].concat(Ue).concat(Ae).concat(Me),a.value=c.value.length>0||f.value.length>0},H=(ct,Ae=!1)=>{ct&&q(),Ae?t.state.doLayout():t.state.debouncedUpdateLayout()},V=ct=>T.value.includes(ct),N=()=>{S.value=!1;const ct=T.value;T.value=[],ct.length&&t.emit("selection-change",[])},Y=()=>{let ct;if(s.value){ct=[];const Ae=rl(T.value,s.value),Ue=rl(r.value,s.value);for(const Me in Ae)qt(Ae,Me)&&!Ue[Me]&&ct.push(Ae[Me].row)}else ct=T.value.filter(Ae=>!r.value.includes(Ae));if(ct.length){const Ae=T.value.filter(Ue=>!ct.includes(Ue));T.value=Ae,t.emit("selection-change",Ae.slice())}},Z=()=>(T.value||[]).slice(),ne=(ct,Ae=void 0,Ue=!0)=>{if(Kd(T.value,ct,Ae)){const ve=(T.value||[]).slice();Ue&&t.emit("select",ve,ct),t.emit("selection-change",ve)}},ue=()=>{var ct,Ae;const Ue=C.value?!S.value:!(S.value||T.value.length);S.value=Ue;let Me=!1,ve=0;const $e=(Ae=(ct=t==null?void 0:t.store)==null?void 0:ct.states)==null?void 0:Ae.rowKey.value;r.value.forEach((st,ye)=>{const at=ye+ve;O.value?O.value.call(null,st,at)&&Kd(T.value,st,Ue)&&(Me=!0):Kd(T.value,st,Ue)&&(Me=!0),ve+=ce(Ts(st,$e))}),Me&&t.emit("selection-change",T.value?T.value.slice():[]),t.emit("select-all",(T.value||[]).slice())},_e=()=>{const ct=rl(T.value,s.value);r.value.forEach(Ae=>{const Ue=Ts(Ae,s.value),Me=ct[Ue];Me&&(T.value[Me.index]=Ae)})},Ne=()=>{var ct,Ae,Ue;if(((ct=r.value)==null?void 0:ct.length)===0){S.value=!1;return}let Me;s.value&&(Me=rl(T.value,s.value));const ve=function(at){return Me?!!Me[Ts(at,s.value)]:T.value.includes(at)};let $e=!0,st=0,ye=0;for(let at=0,Rt=(r.value||[]).length;at<Rt;at++){const Qt=(Ue=(Ae=t==null?void 0:t.store)==null?void 0:Ae.states)==null?void 0:Ue.rowKey.value,Dn=at+ye,Mn=r.value[at],Bt=O.value&&O.value.call(null,Mn,Dn);if(ve(Mn))st++;else if(!O.value||Bt){$e=!1;break}ye+=ce(Ts(Mn,Qt))}st===0&&($e=!1),S.value=$e},ce=ct=>{var Ae;if(!t||!t.store)return 0;const{treeData:Ue}=t.store.states;let Me=0;const ve=(Ae=Ue.value[ct])==null?void 0:Ae.children;return ve&&(Me+=ve.length,ve.forEach($e=>{Me+=ce($e)})),Me},te=(ct,Ae)=>{Array.isArray(ct)||(ct=[ct]);const Ue={};return ct.forEach(Me=>{P.value[Me.id]=Ae,Ue[Me.columnKey||Me.id]=Ae}),Ue},ie=(ct,Ae,Ue)=>{U.value&&U.value!==ct&&(U.value.order=null),U.value=ct,B.value=Ae,W.value=Ue},we=()=>{let ct=d(i);Object.keys(P.value).forEach(Ae=>{const Ue=P.value[Ae];if(!Ue||Ue.length===0)return;const Me=uP({columns:u.value},Ae);Me&&Me.filterMethod&&(ct=ct.filter(ve=>Ue.some($e=>Me.filterMethod.call(null,$e,ve,Me))))}),M.value=ct},me=()=>{r.value=jue(M.value,{sortingColumn:U.value,sortProp:B.value,sortOrder:W.value})},Ce=(ct=void 0)=>{ct&&ct.filter||we(),me()},Be=ct=>{const{tableHeaderRef:Ae}=t.refs;if(!Ae)return;const Ue=Object.assign({},Ae.filterPanels),Me=Object.keys(Ue);if(Me.length)if(typeof ct=="string"&&(ct=[ct]),Array.isArray(ct)){const ve=ct.map($e=>Nue({columns:u.value},$e));Me.forEach($e=>{const st=ve.find(ye=>ye.id===$e);st&&(st.filteredValue=[])}),t.store.commit("filterChange",{column:ve,values:[],silent:!0,multi:!0})}else Me.forEach(ve=>{const $e=u.value.find(st=>st.id===ve);$e&&($e.filteredValue=[])}),P.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ee=()=>{U.value&&(ie(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:se,toggleRowExpansion:Te,updateExpandRows:Le,states:Se,isRowExpanded:De}=Uue({data:r,rowKey:s}),{updateTreeExpandKeys:Fe,toggleTreeExpansion:Ie,updateTreeData:je,loadOrToggle:Ee,states:Ze}=zue({data:r,rowKey:s}),{updateCurrentRowData:nt,updateCurrentRow:ke,setCurrentRowKey:et,states:dt}=Hue({data:r,rowKey:s});return{assertRowKey:G,updateColumns:q,scheduleLayout:H,isSelected:V,clearSelection:N,cleanSelection:Y,getSelectionRows:Z,toggleRowSelection:ne,_toggleAllSelection:ue,toggleAllSelection:null,updateSelectionByRowKey:_e,updateAllSelected:Ne,updateFilters:te,updateCurrentRow:ke,updateSort:ie,execFilter:we,execSort:me,execQuery:Ce,clearFilter:Be,clearSort:ee,toggleRowExpansion:Te,setExpandRowKeysAdapter:ct=>{se(ct),Fe(ct)},setCurrentRowKey:et,toggleRowExpansionAdapter:(ct,Ae)=>{u.value.some(({type:Me})=>Me==="expand")?Te(ct,Ae):Ie(ct,Ae)},isRowExpanded:De,updateExpandRows:Le,updateCurrentRowData:nt,loadOrToggle:Ee,updateTreeData:je,states:{tableSize:n,rowKey:s,data:r,_data:i,isComplex:a,_columns:o,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:g,rightFixedLeafColumns:m,updateOrderFns:p,leafColumnsLength:y,fixedLeafColumnsLength:v,rightFixedLeafColumnsLength:b,isAllSelected:S,selection:T,reserveSelection:w,selectOnIndeterminate:C,selectable:O,filters:P,filteredData:M,sortingColumn:U,sortProp:B,sortOrder:W,hoverRow:Q,...Se,...Ze,...dt}}}function xb(e,t){return e.map(n=>{var s;return n.id===t.id?t:((s=n.children)!=null&&s.length&&(n.children=xb(n.children,t)),n)})}function kb(e){e.forEach(t=>{var n,s;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(s=t.children)!=null&&s.length&&kb(t.children)}),e.sort((t,n)=>t.no-n.no)}function Wue(){const e=It(),t=que();return{ns:Pe("table"),...t,mutations:{setData(a,o){const l=d(a._data)!==o;a.data.value=o,a._data.value=o,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),d(a.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,o,l,u){const c=d(a._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(o),f=xb(c,l)):(c.push(o),f=c),kb(f),a._columns.value=f,a.updateOrderFns.push(u),o.type==="selection"&&(a.selectable.value=o.selectable,a.reserveSelection.value=o.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,o){var l;((l=o.getColumnIndex)==null?void 0:l.call(o))!==o.no&&(kb(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,o,l,u){const c=d(a._columns)||[];if(l)l.children.splice(l.children.findIndex(h=>h.id===o.id),1),ut(()=>{var h;((h=l.children)==null?void 0:h.length)===0&&delete l.children}),a._columns.value=xb(c,l);else{const h=c.indexOf(o);h>-1&&(c.splice(h,1),a._columns.value=c)}const f=a.updateOrderFns.indexOf(u);f>-1&&a.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,o){const{prop:l,order:u,init:c}=o;if(l){const f=d(a.columns).find(h=>h.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(a,o){const{sortingColumn:l,sortProp:u,sortOrder:c}=a,f=d(l),h=d(u),g=d(c);g===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!o||!(o.silent||o.init))&&e.emit("sort-change",{column:f,prop:h,order:g}),e.store.updateTableScrollY()},filterChange(a,o){const{column:l,values:u,silent:c}=o,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,o){e.store.toggleRowSelection(o),e.store.updateAllSelected()},setHoverRow(a,o){a.hoverRow.value=o},setCurrentRow(a,o){e.store.updateCurrentRow(o)}},commit:function(a,...o){const l=e.store.mutations;if(l[a])l[a].apply(e,[e.store.states].concat(o));else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){ut(()=>e.layout.updateScrollY.apply(e.layout))}}}const Gd={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 Kue(e,t){if(!e)throw new Error("Table is required.");const n=Wue();return n.toggleAllSelection=or(n._toggleAllSelection,10),Object.keys(Gd).forEach(s=>{hP(pP(t,s),s,n)}),Gue(n,t),n}function Gue(e,t){Object.keys(Gd).forEach(n=>{xe(()=>pP(t,n),s=>{hP(s,n,e)})})}function hP(e,t,n){let s=e,r=Gd[t];typeof Gd[t]=="object"&&(r=r.key,s=s||Gd[t].default),n.states[r].value=s}function pP(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 Yue{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=j(null),this.scrollX=j(!1),this.scrollY=j(!1),this.bodyWidth=j(null),this.fixedWidth=j(null),this.rightFixedWidth=j(null),this.gutterWidth=0;for(const n in t)qt(t,n)&&(hn(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(!jt)return;const s=this.table.vnode.el;if(t=Lue(t),this.height.value=Number(t),!s&&(t||t===0))return ut(()=>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(!jt)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,g)=>h+Number(g.minWidth||80),0),c=l/u;let f=0;i.forEach((h,g)=>{if(g===0)return;const m=Math.floor(Number(h.minWidth||80)*c);f+=m,h.realWidth=Number(h.minWidth||80)+m}),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 a=this.store.states.fixedColumns.value;if(a.length>0){let l=0;a.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const o=this.store.states.rightFixedColumns.value;if(o.length>0){let l=0;o.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:Xue}=Xr,Que=J({name:"ElTableFilterPanel",components:{ElCheckbox:Xr,ElCheckboxGroup:Xue,ElScrollbar:Da,ElTooltip:gs,ElIcon:tt,ArrowDown:Xi,ArrowUp:Rg},directives:{ClickOutside:ba},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=It(),{t:n}=Wt(),s=Pe("table-filter"),r=t==null?void 0:t.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const i=j(!1),a=j(null),o=E(()=>e.column&&e.column.filters),l=E(()=>e.column.filterClassName?`${s.b()} ${e.column.filterClassName}`:s.b()),u=E({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{c.value&&(typeof w<"u"&&w!==null?c.value.splice(0,1,w):c.value.splice(0,1))}}),c=E({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),f=E(()=>e.column?e.column.filterMultiple:!0),h=w=>w.value===u.value,g=()=>{i.value=!1},m=w=>{w.stopPropagation(),i.value=!i.value},p=()=>{i.value=!1},y=()=>{S(c.value),g()},v=()=>{c.value=[],S(c.value),g()},b=w=>{u.value=w,S(typeof w<"u"&&w!==null?c.value:[]),g()},S=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};xe(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const T=E(()=>{var w,C;return(C=(w=a.value)==null?void 0:w.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:i,multiple:f,filterClassName:l,filteredValue:c,filterValue:u,filters:o,handleConfirm:y,handleReset:v,handleSelect:b,isActive:h,t:n,ns:s,showFilterPanel:m,hideFilterPanel:p,popperPaneRef:T,tooltip:a}}}),Jue={key:0},Zue=["disabled"],ece=["label","onClick"];function tce(e,t,n,s,r,i){const a=kt("el-checkbox"),o=kt("el-checkbox-group"),l=kt("el-scrollbar"),u=kt("arrow-up"),c=kt("arrow-down"),f=kt("el-icon"),h=kt("el-tooltip"),g=_g("click-outside");return k(),fe(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.filterClassName,persistent:""},{content:L(()=>[e.multiple?(k(),z("div",Jue,[R("div",{class:$(e.ns.e("content"))},[I(l,{"wrap-class":e.ns.e("wrap")},{default:L(()=>[I(o,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:$(e.ns.e("checkbox-group"))},{default:L(()=>[(k(!0),z(Ge,null,_t(e.filters,m=>(k(),fe(a,{key:m.value,value:m.value},{default:L(()=>[Re(pe(m.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),R("div",{class:$(e.ns.e("bottom"))},[R("button",{class:$({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},pe(e.t("el.table.confirmFilter")),11,Zue),R("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},pe(e.t("el.table.resetFilter")),1)],2)])):(k(),z("ul",{key:1,class:$(e.ns.e("list"))},[R("li",{class:$([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=m=>e.handleSelect(null))},pe(e.t("el.table.clearFilter")),3),(k(!0),z(Ge,null,_t(e.filters,m=>(k(),z("li",{key:m.value,class:$([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:p=>e.handleSelect(m.value)},pe(m.text),11,ece))),128))],2))]),default:L(()=>[yt((k(),z("span",{class:$([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...m)=>e.showFilterPanel&&e.showFilterPanel(...m))},[I(f,null,{default:L(()=>[e.column.filterOpened?(k(),fe(u,{key:0})):(k(),fe(c,{key:1}))]),_:1})],2)),[[g,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var nce=ze(Que,[["render",tce],["__file","filter-panel.vue"]]);function mP(e){const t=It();Pl(()=>{n.value.addObserver(t)}),gt(()=>{s(n.value),r(n.value)}),xa(()=>{s(n.value),r(n.value)}),Eo(()=>{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 a;const o=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!o.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=o.length;c<f;c++){const h=o[c],g=h.getAttribute("name"),m=u[g];m&&h.setAttribute("width",m.realWidth||m.width)}},r=i=>{var a,o;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((o=e.vnode.el)==null?void 0:o.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const h=u[c];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 Ji=Symbol("ElTable");function sce(e,t){const n=It(),s=Je(Ji),r=p=>{p.stopPropagation()},i=(p,y)=>{!y.filters&&y.sortable?m(p,y,!1):y.filterable&&!y.sortable&&r(p),s==null||s.emit("header-click",y,p)},a=(p,y)=>{s==null||s.emit("header-contextmenu",y,p)},o=j(null),l=j(!1),u=j({}),c=(p,y)=>{if(jt&&!(y.children&&y.children.length>0)&&o.value&&e.border){l.value=!0;const v=s;t("set-drag-visible",!0);const S=(v==null?void 0:v.vnode.el).getBoundingClientRect().left,T=n.vnode.el.querySelector(`th.${y.id}`),w=T.getBoundingClientRect(),C=w.left-S+30;Lr(T,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:w.right-S,startColumnLeft:w.left-S,tableLeft:S};const O=v==null?void 0:v.refs.resizeProxy;O.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const P=U=>{const B=U.clientX-u.value.startMouseLeft,W=u.value.startLeft+B;O.style.left=`${Math.max(C,W)}px`},M=()=>{if(l.value){const{startColumnLeft:U,startLeft:B}=u.value,Q=Number.parseInt(O.style.left,10)-U;y.width=y.realWidth=Q,v==null||v.emit("header-dragend",y.width,B-U,y,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,o.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Os(T,"noclick")},0)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",M)}},f=(p,y)=>{if(y.children&&y.children.length>0)return;const v=p.target;if(!Kr(v))return;const b=v==null?void 0:v.closest("th");if(!(!y||!y.resizable)&&!l.value&&e.border){const S=b.getBoundingClientRect(),T=document.body.style;S.width>12&&S.right-p.pageX<8?(T.cursor="col-resize",Ur(b,"is-sortable")&&(b.style.cursor="col-resize"),o.value=y):l.value||(T.cursor="",Ur(b,"is-sortable")&&(b.style.cursor="pointer"),o.value=null)}},h=()=>{jt&&(document.body.style.cursor="")},g=({order:p,sortOrders:y})=>{if(p==="")return y[0];const v=y.indexOf(p||null);return y[v>y.length-2?0:v+1]},m=(p,y,v)=>{var b;p.stopPropagation();const S=y.order===v?null:v||g(y),T=(b=p.target)==null?void 0:b.closest("th");if(T&&Ur(T,"noclick")){Os(T,"noclick");return}if(!y.sortable)return;const w=e.store.states;let C=w.sortProp.value,O;const P=w.sortingColumn.value;(P!==y||P===y&&P.order===null)&&(P&&(P.order=null),w.sortingColumn.value=y,C=y.property),S?O=y.order=S:O=y.order=null,w.sortProp.value=C,w.sortOrder.value=O,s==null||s.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:c,handleMouseMove:f,handleMouseOut:h,handleSortClick:m,handleFilterClick:r}}function rce(e){const t=Je(Ji),n=Pe("table");return{getHeaderRowStyle:o=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:o}):l},getHeaderRowClass:o=>{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:o})),l.join(" ")},getHeaderCellStyle:(o,l,u,c)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof h=="function"&&(h=h.call(null,{rowIndex:o,columnIndex:l,row:u,column:c}));const g=A2(l,c.fixed,e.store,u);return tc(g,"left"),tc(g,"right"),Object.assign({},h,g)},getHeaderCellClass:(o,l,u,c)=>{const f=k2(n.b(),l,c.fixed,e.store,u),h=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||h.push("is-leaf"),c.sortable&&h.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return typeof g=="string"?h.push(g):typeof g=="function"&&h.push(g.call(null,{rowIndex:o,columnIndex:l,row:u,column:c})),h.push(n.e("cell")),h.filter(m=>!!m).join(" ")}}}const gP=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,gP(n.children))):t.push(n)}),t},vP=e=>{let t=1;const n=(i,a)=>{if(a&&(i.level=a.level+1,t<i.level&&(t=i.level)),i.children){let o=0;i.children.forEach(l=>{n(l,i),o+=l.colSpan}),i.colSpan=o}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 gP(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(a=>a.isSubColumn=!0)):i.rowSpan=t-i.level+1,s[i.level-1].push(i)}),s};function ice(e){const t=Je(Ji),n=E(()=>vP(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 ace=J({name:"ElTableHeader",components:{ElCheckbox:Xr},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=It(),s=Je(Ji),r=Pe("table"),i=j({}),{onColumnsChange:a,onScrollableChange:o}=mP(s);gt(async()=>{await ut(),await ut();const{prop:C,order:O}=e.defaultSort;s==null||s.store.commit("sort",{prop:C,order:O,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:h,handleSortClick:g,handleFilterClick:m}=sce(e,t),{getHeaderRowStyle:p,getHeaderRowClass:y,getHeaderCellStyle:v,getHeaderCellClass:b}=rce(e),{isGroup:S,toggleAllSelection:T,columnRows:w}=ice(e);return n.state={onColumnsChange:a,onScrollableChange:o},n.filterPanels=i,{ns:r,filterPanels:i,onColumnsChange:a,onScrollableChange:o,columnRows:w,getHeaderRowClass:y,getHeaderRowStyle:p,getHeaderCellClass:b,getHeaderCellStyle:v,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:h,handleSortClick:g,handleFilterClick:m,isGroup:S,toggleAllSelection:T}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:s,getHeaderCellClass:r,getHeaderRowClass:i,getHeaderRowStyle:a,handleHeaderClick:o,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:h,store:g,$parent:m}=this;let p=1;return lt("thead",{class:{[e.is("group")]:t}},n.map((y,v)=>lt("tr",{class:i(v),key:v,style:a(v)},y.map((b,S)=>(b.rowSpan>p&&(p=b.rowSpan),lt("th",{class:r(v,S,y,b),colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:s(v,S,y,b),onClick:T=>{T.currentTarget.classList.contains("noclick")||o(T,b)},onContextmenu:T=>l(T,b),onMousedown:T=>u(T,b),onMousemove:T=>c(T,b),onMouseout:h},[lt("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:S,store:g,_self:m}):b.label,b.sortable&&lt("span",{onClick:T=>f(T,b),class:"caret-wrapper"},[lt("i",{onClick:T=>f(T,b,"ascending"),class:"sort-caret ascending"}),lt("i",{onClick:T=>f(T,b,"descending"),class:"sort-caret descending"})]),b.filterable&&lt(nce,{store:g,placement:b.filterPlacement||"bottom-start",column:b,upDataColumn:(T,w)=>{b[T]=w}})])]))))))}});function $0(e,t,n=.01){return e-t>n}function oce(e){const t=Je(Ji),n=j(""),s=j(lt("div")),r=(m,p,y)=>{var v;const b=t,S=P0(m);let T;const w=(v=b==null?void 0:b.vnode.el)==null?void 0:v.dataset.prefix;S&&(T=rx({columns:e.store.states.columns.value},S,w),T&&(b==null||b.emit(`cell-${y}`,p,T,S,m))),b==null||b.emit(`row-${y}`,p,T,m)},i=(m,p)=>{r(m,p,"dblclick")},a=(m,p)=>{e.store.commit("setCurrentRow",p),r(m,p,"click")},o=(m,p)=>{r(m,p,"contextmenu")},l=or(m=>{e.store.commit("setHoverRow",m)},30),u=or(()=>{e.store.commit("setHoverRow",null)},30),c=m=>{const p=window.getComputedStyle(m,null),y=Number.parseInt(p.paddingLeft,10)||0,v=Number.parseInt(p.paddingRight,10)||0,b=Number.parseInt(p.paddingTop,10)||0,S=Number.parseInt(p.paddingBottom,10)||0;return{left:y,right:v,top:b,bottom:S}},f=(m,p,y)=>{let v=p.target.parentNode;for(;m>1&&(v=v==null?void 0:v.nextSibling,!(!v||v.nodeName!=="TR"));)y(v,"hover-row hover-fixed-row"),m--};return{handleDoubleClick:i,handleClick:a,handleContextMenu:o,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(m,p,y)=>{var v;const b=t,S=P0(m),T=(v=b==null?void 0:b.vnode.el)==null?void 0:v.dataset.prefix;if(S){const N=rx({columns:e.store.states.columns.value},S,T);S.rowSpan>1&&f(S.rowSpan,m,Lr);const Y=b.hoverState={cell:S,column:N,row:p};b==null||b.emit("cell-mouse-enter",Y.row,Y.column,Y.cell,m)}if(!y)return;const w=m.target.querySelector(".cell");if(!(Ur(w,`${T}-tooltip`)&&w.childNodes.length))return;const C=document.createRange();C.setStart(w,0),C.setEnd(w,w.childNodes.length);let{width:O,height:P}=C.getBoundingClientRect();const M=O-Math.floor(O),{width:U,height:B}=w.getBoundingClientRect();M<.001&&(O=Math.floor(O)),P-Math.floor(P)<.001&&(P=Math.floor(P));const{top:Q,left:G,right:X,bottom:q}=c(w),H=G+X,V=Q+q;($0(O+H,U)||$0(P+V,B)||$0(w.scrollWidth,U))&&Vue(y,S.innerText||S.textContent,S,b)},handleCellMouseLeave:m=>{const p=P0(m);if(!p)return;p.rowSpan>1&&f(p.rowSpan,m,Os);const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,m)},tooltipContent:n,tooltipTrigger:s}}function lce(e){const t=Je(Ji),n=Pe("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(n.em("row","striped"));const 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:c})),f},getCellStyle:(u,c,f,h)=>{const g=t==null?void 0:t.props.cellStyle;let m=g??{};typeof g=="function"&&(m=g.call(null,{rowIndex:u,columnIndex:c,row:f,column:h}));const p=A2(c,e==null?void 0:e.fixed,e.store);return tc(p,"left"),tc(p,"right"),Object.assign({},m,p)},getCellClass:(u,c,f,h,g)=>{const m=k2(n.b(),c,e==null?void 0:e.fixed,e.store,void 0,g),p=[h.id,h.align,h.className,...m],y=t==null?void 0:t.props.cellClassName;return typeof y=="string"?p.push(y):typeof y=="function"&&p.push(y.call(null,{rowIndex:u,columnIndex:c,row:f,column:h})),p.push(n.e("cell")),p.filter(v=>!!v).join(" ")},getSpan:(u,c,f,h)=>{let g=1,m=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const y=p({row:u,column:c,rowIndex:f,columnIndex:h});Array.isArray(y)?(g=y[0],m=y[1]):typeof y=="object"&&(g=y.rowspan,m=y.colspan)}return{rowspan:g,colspan:m}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const h=u.map(({realWidth:g,width:m})=>g||m).slice(f,f+c);return Number(h.reduce((g,m)=>Number(g)+Number(m),-1))}}}function uce(e){const t=Je(Ji),n=Pe("table"),{handleDoubleClick:s,handleClick:r,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:o,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=oce(e),{getRowStyle:h,getRowClass:g,getCellStyle:m,getCellClass:p,getSpan:y,getColspanRealWidth:v}=lce(e),b=E(()=>e.store.states.columns.value.findIndex(({type:O})=>O==="default")),S=(O,P)=>{const M=t.props.rowKey;return M?Ts(O,M):P},T=(O,P,M,U=!1)=>{const{tooltipEffect:B,tooltipOptions:W,store:Q}=e,{indent:G,columns:X}=Q.states,q=g(O,P);let H=!0;return M&&(q.push(n.em("row",`level-${M.level}`)),H=M.display),lt("tr",{style:[H?null:{display:"none"},h(O,P)],class:q,key:S(O,P),onDblclick:N=>s(N,O),onClick:N=>r(N,O),onContextmenu:N=>i(N,O),onMouseenter:()=>a(P),onMouseleave:o},X.value.map((N,Y)=>{const{rowspan:Z,colspan:ne}=y(O,N,P,Y);if(!Z||!ne)return null;const ue=Object.assign({},N);ue.realWidth=v(X.value,ne,Y);const _e={store:e.store,_self:e.context||t,column:ue,row:O,$index:P,cellIndex:Y,expanded:U};Y===b.value&&M&&(_e.treeNode={indent:M.level*G.value,level:M.level},typeof M.expanded=="boolean"&&(_e.treeNode.expanded=M.expanded,"loading"in M&&(_e.treeNode.loading=M.loading),"noLazyChildren"in M&&(_e.treeNode.noLazyChildren=M.noLazyChildren)));const Ne=`${S(O,P)},${Y}`,ce=ue.columnKey||ue.rawColumnKey||"",te=w(Y,N,_e),ie=N.showOverflowTooltip&&ZH({effect:B},W,N.showOverflowTooltip);return lt("td",{style:m(P,Y,O,N),class:p(P,Y,O,N,ne-1),key:`${ce}${Ne}`,rowspan:Z,colspan:ne,onMouseenter:we=>l(we,O,ie),onMouseleave:u},[te])}))},w=(O,P,M)=>P.renderCell(M);return{wrappedRowRender:(O,P)=>{const M=e.store,{isRowExpanded:U,assertRowKey:B}=M,{treeData:W,lazyTreeNodeMap:Q,childrenColumnName:G,rowKey:X}=M.states,q=M.states.columns.value;if(q.some(({type:V})=>V==="expand")){const V=U(O),N=T(O,P,void 0,V),Y=t.renderExpanded;return V?Y?[[N,lt("tr",{key:`expanded-row__${N.key}`},[lt("td",{colspan:q.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[Y({row:O,$index:P,store:M,expanded:V})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(W.value).length){B();const V=Ts(O,X.value);let N=W.value[V],Y=null;N&&(Y={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(Y.noLazyChildren=!(N.children&&N.children.length)),Y.loading=N.loading));const Z=[T(O,P,Y)];if(N){let ne=0;const ue=(Ne,ce)=>{Ne&&Ne.length&&ce&&Ne.forEach(te=>{const ie={display:ce.display&&ce.expanded,level:ce.level+1,expanded:!1,noLazyChildren:!1,loading:!1},we=Ts(te,X.value);if(we==null)throw new Error("For nested data item, row-key is required.");if(N={...W.value[we]},N&&(ie.expanded=N.expanded,N.level=N.level||ie.level,N.display=!!(N.expanded&&ie.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(ie.noLazyChildren=!(N.children&&N.children.length)),ie.loading=N.loading)),ne++,Z.push(T(te,P+ne,ie)),N){const me=Q.value[we]||te[G.value];ue(me,N)}})};N.display=!0;const _e=Q.value[V]||O[G.value];ue(_e,N)}return Z}else return T(O,P,void 0)},tooltipContent:c,tooltipTrigger:f}}const cce={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 dce=J({name:"ElTableBody",props:cce,setup(e){const t=It(),n=Je(Ji),s=Pe("table"),{wrappedRowRender:r,tooltipContent:i,tooltipTrigger:a}=uce(e),{onColumnsChange:o,onScrollableChange:l}=mP(n),u=[];return xe(e.store.states.hoverRow,(c,f)=>{var h;const g=t==null?void 0:t.vnode.el,m=Array.from((g==null?void 0:g.children)||[]).filter(v=>v==null?void 0:v.classList.contains(`${s.e("row")}`));let p=c;const y=(h=m[p])==null?void 0:h.childNodes;if(y!=null&&y.length){let v=0;Array.from(y).reduce((S,T,w)=>{var C,O;return((C=y[w])==null?void 0:C.colSpan)>1&&(v=(O=y[w])==null?void 0:O.colSpan),T.nodeName!=="TD"&&v===0&&S.push(w),v>0&&v--,S},[]).forEach(S=>{var T;for(p=c;p>0;){const w=(T=m[p-1])==null?void 0:T.childNodes;if(w[S]&&w[S].nodeName==="TD"&&w[S].rowSpan>1){Lr(w[S],"hover-cell"),u.push(w[S]);break}p--}})}else u.forEach(v=>Os(v,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!jt||po(()=>{const v=m[f],b=m[c];v&&!v.classList.contains("hover-fixed-row")&&Os(v,"hover-row"),b&&Lr(b,"hover-row")})}),Eo(()=>{var c;(c=$r)==null||c()}),{ns:s,onColumnsChange:o,onScrollableChange:l,wrappedRowRender:r,tooltipContent:i,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return lt("tbody",{tabIndex:-1},[n.reduce((s,r)=>s.concat(e(r,s.length)),[])])}});function fce(){const e=Je(Ji),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),a=E(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:s,columnsCount:r,leftFixedCount:i,rightFixedCount:a,columns:t.states.columns}}function hce(e){const{columns:t}=fce(),n=Pe("table");return{getCellClasses:(i,a)=>{const o=i[a],l=[n.e("cell"),o.id,o.align,o.labelClassName,...k2(n.b(),a,o.fixed,e.store)];return o.className&&l.push(o.className),o.children||l.push(n.is("leaf")),l},getCellStyles:(i,a)=>{const o=A2(a,i.fixed,e.store);return tc(o,"left"),tc(o,"right"),o},columns:t}}var pce=J({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:s}=hce(e);return{ns:Pe("table"),getCellClasses:t,getCellStyles:n,columns:s}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:s,sumText:r}=this,i=this.store.states.data.value;let a=[];return s?a=s({columns:e,data:i}):e.forEach((o,l)=>{if(l===0){a[l]=r;return}const u=i.map(g=>Number(g[o.property])),c=[];let f=!0;u.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const m=`${g}`.split(".")[1];c.push(m?m.length:0)}});const h=Math.max.apply(null,c);f?a[l]="":a[l]=u.reduce((g,m)=>{const p=Number(m);return Number.isNaN(+p)?g:Number.parseFloat((g+m).toFixed(Math.min(h,20)))},0)}),lt(lt("tfoot",[lt("tr",{},[...e.map((o,l)=>lt("td",{key:l,colspan:o.colSpan,rowspan:o.rowSpan,class:n(e,l),style:t(o,l)},[lt("div",{class:["cell",o.labelClassName]},[a[l]])]))])]))}});function mce(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f)=>{e.toggleRowSelection(c,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})}}}function gce(e,t,n,s){const r=j(!1),i=j(null),a=j(!1),o=N=>{a.value=N},l=j({width:null,height:null,headerHeight:null}),u=j(!1),c={display:"inline-block",verticalAlign:"middle"},f=j(),h=j(0),g=j(0),m=j(0),p=j(0),y=j(0);ps(()=>{t.setHeight(e.height)}),ps(()=>{t.setMaxHeight(e.maxHeight)}),xe(()=>[e.currentRowKey,n.states.rowKey],([N,Y])=>{!d(Y)||!d(N)||n.setCurrentRowKey(`${N}`)},{immediate:!0}),xe(()=>e.data,N=>{s.store.commit("setData",N)},{immediate:!0,deep:!0}),ps(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const v=()=>{s.store.commit("setHoverRow",null),s.hoverState&&(s.hoverState=null)},b=(N,Y)=>{const{pixelX:Z,pixelY:ne}=Y;Math.abs(Z)>=Math.abs(ne)&&(s.refs.bodyWrapper.scrollLeft+=Y.pixelX/5)},S=E(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),T=E(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),w=()=>{S.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(M)};gt(async()=>{await ut(),n.updateColumns(),U(),requestAnimationFrame(w);const N=s.vnode.el,Y=s.refs.headerWrapper;e.flexible&&N&&N.parentElement&&(N.parentElement.style.minWidth="0"),l.value={width:f.value=N.offsetWidth,height:N.offsetHeight,headerHeight:e.showHeader&&Y?Y.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 C=(N,Y)=>{if(!N)return;const Z=Array.from(N.classList).filter(ne=>!ne.startsWith("is-scrolling-"));Z.push(t.scrollX.value?Y:"is-scrolling-none"),N.className=Z.join(" ")},O=N=>{const{tableWrapper:Y}=s.refs;C(Y,N)},P=N=>{const{tableWrapper:Y}=s.refs;return!!(Y&&Y.classList.contains(N))},M=function(){if(!s.refs.scrollBarRef)return;if(!t.scrollX.value){const ce="is-scrolling-none";P(ce)||O(ce);return}const N=s.refs.scrollBarRef.wrapRef;if(!N)return;const{scrollLeft:Y,offsetWidth:Z,scrollWidth:ne}=N,{headerWrapper:ue,footerWrapper:_e}=s.refs;ue&&(ue.scrollLeft=Y),_e&&(_e.scrollLeft=Y);const Ne=ne-Z-1;Y>=Ne?O("is-scrolling-right"):O(Y===0?"is-scrolling-left":"is-scrolling-middle")},U=()=>{s.refs.scrollBarRef&&(s.refs.scrollBarRef.wrapRef&&cn(s.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?Sn(s.vnode.el,B):cn(window,"resize",B),Sn(s.refs.bodyWrapper,()=>{var N,Y;B(),(Y=(N=s.refs)==null?void 0:N.scrollBarRef)==null||Y.update()}))},B=()=>{var N,Y,Z,ne;const ue=s.vnode.el;if(!s.$ready||!ue)return;let _e=!1;const{width:Ne,height:ce,headerHeight:te}=l.value,ie=f.value=ue.offsetWidth;Ne!==ie&&(_e=!0);const we=ue.offsetHeight;(e.height||S.value)&&ce!==we&&(_e=!0);const me=e.tableLayout==="fixed"?s.refs.headerWrapper:(N=s.refs.tableHeaderRef)==null?void 0:N.$el;e.showHeader&&(me==null?void 0:me.offsetHeight)!==te&&(_e=!0),h.value=((Y=s.refs.tableWrapper)==null?void 0:Y.scrollHeight)||0,m.value=(me==null?void 0:me.scrollHeight)||0,p.value=((Z=s.refs.footerWrapper)==null?void 0:Z.offsetHeight)||0,y.value=((ne=s.refs.appendWrapper)==null?void 0:ne.offsetHeight)||0,g.value=h.value-m.value-p.value-y.value,_e&&(l.value={width:ie,height:we,headerHeight:e.showHeader&&(me==null?void 0:me.offsetHeight)||0},w())},W=Kn(),Q=E(()=>{const{bodyWidth:N,scrollY:Y,gutterWidth:Z}=t;return N.value?`${N.value-(Y.value?Z:0)}px`:""}),G=E(()=>e.maxHeight?"fixed":e.tableLayout),X=E(()=>{if(e.data&&e.data.length)return null;let N="100%";e.height&&g.value&&(N=`${g.value}px`);const Y=f.value;return{width:Y?`${Y}px`:"",height:N}}),q=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`}:{}),H=E(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${m.value+p.value}px)`}:{maxHeight:`${e.maxHeight-m.value-p.value}px`}:{});return{isHidden:r,renderExpanded:i,setDragVisible:o,isGroup:u,handleMouseLeave:v,handleHeaderFooterMousewheel:b,tableSize:W,emptyBlockStyle:X,handleFixedMousewheel:(N,Y)=>{const Z=s.refs.bodyWrapper;if(Math.abs(Y.spinY)>0){const ne=Z.scrollTop;Y.pixelY<0&&ne!==0&&N.preventDefault(),Y.pixelY>0&&Z.scrollHeight-Z.clientHeight>ne&&N.preventDefault(),Z.scrollTop+=Math.ceil(Y.pixelY/5)}else Z.scrollLeft+=Math.ceil(Y.pixelX/5)},resizeProxyVisible:a,bodyWidth:Q,resizeState:l,doLayout:w,tableBodyStyles:T,tableLayout:G,scrollbarViewStyle:c,tableInnerStyle:q,scrollbarStyle:H}}function vce(e){const t=j(),n=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(o=>o())}),t.value.observe(r,i)};gt(()=>{n()}),Eo(()=>{var s;(s=t.value)==null||s.disconnect()})}var yce={data:{type:Array,default:()=>[]},size:es,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:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function yP(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 lt("colgroup",{},n.map(r=>lt("col",s(r))))}yP.props=["columns","tableLayout"];const bce=()=>{const e=j(),t=(i,a)=>{const o=e.value;o&&o.scrollTo(i,a)},n=(i,a)=>{const o=e.value;o&&pt(a)&&["Top","Left"].includes(i)&&o[`setScroll${i}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let _ce=1;const Sce=J({name:"ElTable",directives:{Mousewheel:kQ},components:{TableHeader:ace,TableBody:dce,TableFooter:pce,ElScrollbar:Da,hColgroup:yP},props:yce,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}=Wt(),n=Pe("table"),s=It();Mt(Ji,s);const r=Kue(s,e);s.store=r;const i=new Yue({store:s.store,table:s,fit:e.fit,showHeader:e.showHeader});s.layout=i;const a=E(()=>(r.states.data.value||[]).length===0),{setCurrentRow:o,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:g,clearSort:m,sort:p}=mce(r),{isHidden:y,renderExpanded:v,setDragVisible:b,isGroup:S,handleMouseLeave:T,handleHeaderFooterMousewheel:w,tableSize:C,emptyBlockStyle:O,handleFixedMousewheel:P,resizeProxyVisible:M,bodyWidth:U,resizeState:B,doLayout:W,tableBodyStyles:Q,tableLayout:G,scrollbarViewStyle:X,tableInnerStyle:q,scrollbarStyle:H}=gce(e,i,r,s),{scrollBarRef:V,scrollTo:N,setScrollLeft:Y,setScrollTop:Z}=bce(),ne=or(W,50),ue=`${n.namespace.value}-table_${_ce++}`;s.tableId=ue,s.state={isGroup:S,resizeState:B,doLayout:W,debouncedUpdateLayout:ne};const _e=E(()=>e.sumText||t("el.table.sumText")),Ne=E(()=>e.emptyText||t("el.table.emptyText")),ce=E(()=>vP(r.states.originColumns.value)[0]);return vce(s),{ns:n,layout:i,store:r,columns:ce,handleHeaderFooterMousewheel:w,handleMouseLeave:T,tableId:ue,tableSize:C,isHidden:y,isEmpty:a,renderExpanded:v,resizeProxyVisible:M,resizeState:B,isGroup:S,bodyWidth:U,tableBodyStyles:Q,emptyBlockStyle:O,debouncedUpdateLayout:ne,handleFixedMousewheel:P,setCurrentRow:o,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:g,clearSort:m,doLayout:W,sort:p,t,setDragVisible:b,context:s,computedSumText:_e,computedEmptyText:Ne,tableLayout:G,scrollbarViewStyle:X,tableInnerStyle:q,scrollbarStyle:H,scrollBarRef:V,scrollTo:N,setScrollLeft:Y,setScrollTop:Z}}}),wce=["data-prefix"],Tce={ref:"hiddenColumns",class:"hidden-columns"};function Cce(e,t,n,s,r,i){const a=kt("hColgroup"),o=kt("table-header"),l=kt("table-body"),u=kt("table-footer"),c=kt("el-scrollbar"),f=_g("mousewheel");return k(),z("div",{ref:"tableWrapper",class:$([{[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:it(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[R("div",{class:$(e.ns.e("inner-wrapper")),style:it(e.tableInnerStyle)},[R("div",Tce,[be(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?yt((k(),z("div",{key:0,ref:"headerWrapper",class:$(e.ns.e("header-wrapper"))},[R("table",{ref:"tableHeader",class:$(e.ns.e("header")),style:it(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[I(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),I(o,{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]]):ae("v-if",!0),R("div",{ref:"bodyWrapper",class:$(e.ns.e("body-wrapper"))},[I(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:L(()=>[R("table",{ref:"tableBody",class:$(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:it({width:e.bodyWidth,tableLayout:e.tableLayout})},[I(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(k(),fe(o,{key:0,ref:"tableHeaderRef",class:$(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):ae("v-if",!0),I(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"]),e.showSummary&&e.tableLayout==="auto"?(k(),fe(u,{key:1,class:$(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ae("v-if",!0)],6),e.isEmpty?(k(),z("div",{key:0,ref:"emptyBlock",style:it(e.emptyBlockStyle),class:$(e.ns.e("empty-block"))},[R("span",{class:$(e.ns.e("empty-text"))},[be(e.$slots,"empty",{},()=>[Re(pe(e.computedEmptyText),1)])],2)],6)):ae("v-if",!0),e.$slots.append?(k(),z("div",{key:1,ref:"appendWrapper",class:$(e.ns.e("append-wrapper"))},[be(e.$slots,"append")],2)):ae("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?yt((k(),z("div",{key:1,ref:"footerWrapper",class:$(e.ns.e("footer-wrapper"))},[R("table",{class:$(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:it(e.tableBodyStyles)},[I(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),I(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[zt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ae("v-if",!0),e.border||e.isGroup?(k(),z("div",{key:2,class:$(e.ns.e("border-left-patch"))},null,2)):ae("v-if",!0)],6),yt(R("div",{ref:"resizeProxy",class:$(e.ns.e("column-resize-proxy"))},null,2),[[zt,e.resizeProxyVisible]])],46,wce)}var Ece=ze(Sce,[["render",Cce],["__file","table.vue"]]);const xce={selection:"table-column--selection",expand:"table__expand-column"},kce={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:""}},Ace=e=>xce[e]||"",Ice={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return lt(Xr,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:s}){return lt(Xr,{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),ariaLabel:t.label})},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)),lt("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")),lt("div",{class:r,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[lt(tt,null,{default:()=>[lt(Hs)]})]})},sortable:!1,resizable:!1}};function Dce({row:e,column:t,$index:n}){var s;const r=t.property,i=r&&Rp(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 Oce({row:e,treeNode:t,store:n},s=!1){const{ns:r}=n;if(!t)return s?[lt("span",{class:r.e("placeholder")})]:null;const i=[],a=function(o){o.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(lt("span",{class:r.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const o=[r.e("expand-icon"),t.expanded?r.em("expand-icon","expanded"):""];let l=Hs;t.loading&&(l=Ao),i.push(lt("div",{class:o,onClick:a},{default:()=>[lt(tt,{class:{[r.is("loading")]:t.loading}},{default:()=>[lt(l)]})]}))}else i.push(lt("span",{class:r.e("placeholder")}));return i}function ox(e,t){return e.reduce((n,s)=>(n[s]=s,n),t)}function Pce(e,t){const n=It();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},o=ox(i,a);Object.keys(o).forEach(l=>{const u=a[l];qt(t,u)&&xe(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=x2(c)),u==="minWidth"&&l==="realMinWidth"&&(f=cP(c)),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","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=ox(i,a);Object.keys(o).forEach(l=>{const u=a[l];qt(t,u)&&xe(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function $ce(e,t,n){const s=It(),r=j(""),i=j(!1),a=j(),o=j(),l=Pe("table");ps(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),ps(()=>{o.value=e.headerAlign?`is-${e.headerAlign}`:a.value,o.value});const u=E(()=>{let T=s.vnode.vParent||s.parent;for(;T&&!T.tableId&&!T.columnId;)T=T.vnode.vParent||T.parent;return T}),c=E(()=>{const{store:T}=s.parent;if(!T)return!1;const{treeData:w}=T.states,C=w.value;return C&&Object.keys(C).length>0}),f=j(x2(e.width)),h=j(cP(e.minWidth)),g=T=>(f.value&&(T.width=f.value),h.value&&(T.minWidth=h.value),!f.value&&h.value&&(T.width=void 0),T.minWidth||(T.minWidth=80),T.realWidth=Number(T.width===void 0?T.minWidth:T.width),T),m=T=>{const w=T.type,C=Ice[w]||{};Object.keys(C).forEach(P=>{const M=C[P];P!=="className"&&M!==void 0&&(T[P]=M)});const O=Ace(w);if(O){const P=`${d(l.namespace)}-${O}`;T.className=T.className?`${T.className} ${P}`:P}return T},p=T=>{Array.isArray(T)?T.forEach(C=>w(C)):w(T);function w(C){var O;((O=C==null?void 0:C.type)==null?void 0:O.name)==="ElTableColumn"&&(C.vParent=s)}};return{columnId:r,realAlign:a,isSubColumn:i,realHeaderAlign:o,columnOrTableParent:u,setColumnWidth:g,setColumnForcedProps:m,setColumnRenders:T=>{e.renderHeader||T.type!=="selection"&&(T.renderHeader=C=>(s.columnConfig.value.label,be(t,"header",C,()=>[T.label])));let w=T.renderCell;return T.type==="expand"?(T.renderCell=C=>lt("div",{class:"cell"},[w(C)]),n.value.renderExpanded=C=>t.default?t.default(C):t.default):(w=w||Dce,T.renderCell=C=>{let O=null;if(t.default){const Q=t.default(C);O=Q.some(G=>G.type!==Ss)?Q:w(C)}else O=w(C);const{columns:P}=n.value.store.states,M=P.value.findIndex(Q=>Q.type==="default"),U=c.value&&C.cellIndex===M,B=Oce(C,U),W={class:"cell",style:{}};return T.showOverflowTooltip&&(W.class=`${W.class} ${d(l.namespace)}-tooltip`,W.style={width:`${(C.column.realWidth||Number(C.column.width))-1}px`}),p(O),lt("div",W,[B,O])}),T},getPropsData:(...T)=>T.reduce((w,C)=>(Array.isArray(C)&&C.forEach(O=>{w[O]=e[O]}),w),{}),getColumnElIndex:(T,w)=>Array.prototype.indexOf.call(T,w),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",s.columnConfig.value)}}}var Rce={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Nce=1;var bP=J({name:"ElTableColumn",components:{ElCheckbox:Xr},props:Rce,setup(e,{slots:t}){const n=It(),s=j({}),r=E(()=>{let S=n.parent;for(;S&&!S.tableId;)S=S.parent;return S}),{registerNormalWatchers:i,registerComplexWatchers:a}=Pce(r,e),{columnId:o,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:g,getPropsData:m,getColumnElIndex:p,realAlign:y,updateColumnOrder:v}=$ce(e,t,r),b=c.value;o.value=`${b.tableId||b.columnId}_column_${Nce++}`,Pl(()=>{l.value=r.value!==b;const S=e.type||"default",T=e.sortable===""?!0:e.sortable,w=Fn(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,C={...kce[S],id:o.value,type:S,property:e.prop||e.property,align:y,headerAlign:u,showOverflowTooltip:w,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:T,index:e.index,rawColumnKey:n.vnode.key};let B=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);B=Mue(C,B),B=Bue(g,f,h)(B),s.value=B,i(),a()}),gt(()=>{var S;const T=c.value,w=l.value?T.vnode.el.children:(S=T.refs.hiddenColumns)==null?void 0:S.children,C=()=>p(w||[],n.vnode.el);s.value.getColumnIndex=C,C()>-1&&r.value.store.commit("insertColumn",s.value,l.value?T.columnConfig.value:null,v)}),un(()=>{s.value.getColumnIndex()>-1&&r.value.store.commit("removeColumn",s.value,l.value?b.columnConfig.value:null,v)}),n.columnId=o.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 a of s)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?r.push(a):a.type===Ge&&Array.isArray(a.children)&&a.children.forEach(o=>{(o==null?void 0:o.patchFlag)!==1024&&!bt(o==null?void 0:o.children)&&r.push(o)});return lt("div",r)}catch{return lt("div",[])}}});const hh=Dt(Ece,{TableColumn:bP}),ph=Tn(bP);var Df=(e=>(e.ASC="asc",e.DESC="desc",e))(Df||{}),Of=(e=>(e.CENTER="center",e.RIGHT="right",e))(Of||{}),_P=(e=>(e.LEFT="left",e.RIGHT="right",e))(_P||{});const Ab={asc:"desc",desc:"asc"},Pf=Symbol("placeholder"),Mce=(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 Lce(e,t,n){const s=E(()=>d(t).filter(p=>!p.hidden)),r=E(()=>d(s).filter(p=>p.fixed==="left"||p.fixed===!0)),i=E(()=>d(s).filter(p=>p.fixed==="right")),a=E(()=>d(s).filter(p=>!p.fixed)),o=E(()=>{const p=[];return d(r).forEach(y=>{p.push({...y,placeholderSign:Pf})}),d(a).forEach(y=>{p.push(y)}),d(i).forEach(y=>{p.push({...y,placeholderSign:Pf})}),p}),l=E(()=>d(r).length||d(i).length),u=E(()=>d(t).reduce((y,v)=>(y[v.key]=Mce(v,d(n),e.fixed),y),{})),c=E(()=>d(s).reduce((p,y)=>p+y.width,0)),f=p=>d(t).find(y=>y.key===p),h=p=>d(u)[p],g=(p,y)=>{p.width=y};function m(p){var y;const{key:v}=p.currentTarget.dataset;if(!v)return;const{sortState:b,sortBy:S}=e;let T=Df.ASC;Pt(b)?T=Ab[b[v]]:T=Ab[S.order],(y=e.onColumnSort)==null||y.call(e,{column:f(v),key:v,order:T})}return{columns:t,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:o,normalColumns:a,visibleColumns:s,getColumn:f,getColumnStyle:h,updateColumnWidth:g,onColumnSorted:m}}const Bce=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:r})=>{const i=j({scrollLeft:0,scrollTop:0});function a(g){var m,p,y;const{scrollTop:v}=g;(m=t.value)==null||m.scrollTo(g),(p=n.value)==null||p.scrollToTop(v),(y=s.value)==null||y.scrollToTop(v)}function o(g){i.value=g,a(g)}function l(g){i.value.scrollTop=g,a(d(i))}function u(g){var m,p;i.value.scrollLeft=g,(p=(m=t.value)==null?void 0:m.scrollTo)==null||p.call(m,d(i))}function c(g){var m;o(g),(m=e.onScroll)==null||m.call(e,g)}function f({scrollTop:g}){const{scrollTop:m}=d(i);g!==m&&l(g)}function h(g,m="auto"){var p;(p=t.value)==null||p.scrollToRow(g,m)}return xe(()=>d(i).scrollTop,(g,m)=>{g>m&&r()}),{scrollPos:i,scrollTo:o,scrollToLeft:u,scrollToTop:l,scrollToRow:h,onScroll:c,onVerticalScroll:f}},Fce=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:r,ns:i,isScrolling:a})=>{const o=It(),{emit:l}=o,u=ln(!1),c=j(e.defaultExpandedRowKeys||[]),f=j(-1),h=ln(null),g=j({}),m=j({}),p=ln({}),y=ln({}),v=ln({}),b=E(()=>pt(e.estimatedRowHeight));function S(U){var B;(B=e.onRowsRendered)==null||B.call(e,U),U.rowCacheEnd>d(f)&&(f.value=U.rowCacheEnd)}function T({hovered:U,rowKey:B}){if(a.value)return;r.vnode.el.querySelectorAll(`[rowkey="${String(B)}"]`).forEach(G=>{U?G.classList.add(i.is("hovered")):G.classList.remove(i.is("hovered"))})}function w({expanded:U,rowData:B,rowIndex:W,rowKey:Q}){var G,X;const q=[...d(c)],H=q.indexOf(Q);U?H===-1&&q.push(Q):H>-1&&q.splice(H,1),c.value=q,l("update:expandedRowKeys",q),(G=e.onRowExpand)==null||G.call(e,{expanded:U,rowData:B,rowIndex:W,rowKey:Q}),(X=e.onExpandedRowsChange)==null||X.call(e,q)}const C=or(()=>{var U,B,W,Q;u.value=!0,g.value={...d(g),...d(m)},O(d(h),!1),m.value={},h.value=null,(U=t.value)==null||U.forceUpdate(),(B=n.value)==null||B.forceUpdate(),(W=s.value)==null||W.forceUpdate(),(Q=o.proxy)==null||Q.$forceUpdate(),u.value=!1},0);function O(U,B=!1){d(b)&&[t,n,s].forEach(W=>{const Q=d(W);Q&&Q.resetAfterRowIndex(U,B)})}function P(U,B,W){const Q=d(h);(Q===null||Q>W)&&(h.value=W),m.value[U]=B}function M({rowKey:U,height:B,rowIndex:W},Q){Q?Q===_P.RIGHT?v.value[U]=B:p.value[U]=B:y.value[U]=B;const G=Math.max(...[p,v,y].map(X=>X.value[U]||0));d(g)[U]!==G&&(P(U,G,W),C())}return{expandedRowKeys:c,lastRenderedRowIndex:f,isDynamic:b,isResetting:u,rowHeights:g,resetAfterIndex:O,onRowExpanded:w,onRowHovered:T,onRowsRendered:S,onRowHeightChange:M}},Vce=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:s})=>{const r=j({}),i=E(()=>{const o={},{data:l,rowKey:u}=e,c=d(t);if(!c||!c.length)return l;const f=[],h=new Set;c.forEach(m=>h.add(m));let g=l.slice();for(g.forEach(m=>o[m[u]]=0);g.length>0;){const m=g.shift();f.push(m),h.has(m[u])&&Array.isArray(m.children)&&m.children.length>0&&(g=[...m.children,...g],m.children.forEach(p=>o[p[u]]=o[m[u]]+1))}return r.value=o,f}),a=E(()=>{const{data:o,expandColumnKey:l}=e;return l?d(i):o});return xe(a,(o,l)=>{o!==l&&(n.value=-1,s(0,!0))}),{data:a,depthMap:r}},Uce=(e,t)=>e+t,Yp=e=>Xe(e)?e.reduce(Uce,0):e,kl=(e,t,n={})=>mt(e)?e(t):e??n,so=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=In(e[t])}),e),SP=e=>_n(e)?t=>lt(e,t):e,Hce=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:s,fixedColumnsOnRight:r})=>{const i=E(()=>{const{fixed:S,width:T,vScrollbarSize:w}=e,C=T-w;return S?Math.max(Math.round(d(t)),C):C}),a=E(()=>d(i)+e.vScrollbarSize),o=E(()=>{const{height:S=0,maxHeight:T=0,footerHeight:w,hScrollbarSize:C}=e;if(T>0){const O=d(m),P=d(l),U=d(g)+O+P+C;return Math.min(U,T-w)}return S-w}),l=E(()=>{const{rowHeight:S,estimatedRowHeight:T}=e,w=d(n);return pt(T)?w.length*T:w.length*S}),u=E(()=>{const{maxHeight:S}=e,T=d(o);if(pt(S)&&S>0)return T;const w=d(l)+d(g)+d(m);return Math.min(T,w)}),c=S=>S.width,f=E(()=>Yp(d(s).map(c))),h=E(()=>Yp(d(r).map(c))),g=E(()=>Yp(e.headerHeight)),m=E(()=>{var S;return(((S=e.fixedData)==null?void 0:S.length)||0)*e.rowHeight}),p=E(()=>d(o)-d(g)-d(m)),y=E(()=>{const{style:S={},height:T,width:w}=e;return so({...S,height:T,width:w})}),v=E(()=>so({height:e.footerHeight})),b=E(()=>({top:In(d(g)),bottom:In(e.footerHeight),width:In(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:o,leftTableWidth:f,rightTableWidth:h,headerWidth:a,rowsHeight:l,windowHeight:p,footerHeight:v,emptyStyle:b,rootStyle:y,headerHeight:g}},zce=e=>{const t=j(),n=j(0),s=j(0);let r;return gt(()=>{r=Sn(t,([i])=>{const{width:a,height:o}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(i.target),h=Number.parseInt(l)||0,g=Number.parseInt(u)||0,m=Number.parseInt(c)||0,p=Number.parseInt(f)||0;n.value=a-h-g,s.value=o-m-p}).stop}),un(()=>{r==null||r()}),xe([n,s],([i,a])=>{var o;(o=e.onResize)==null||o.call(e,{width:i,height:a})}),{sizer:t,width:n,height:s}};function jce(e){const t=j(),n=j(),s=j(),{columns:r,columnsStyles:i,columnsTotalWidth:a,fixedColumnsOnLeft:o,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=Lce(e,nn(e,"columns"),nn(e,"fixed")),{scrollTo:h,scrollToLeft:g,scrollToTop:m,scrollToRow:p,onScroll:y,onVerticalScroll:v,scrollPos:b}=Bce(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:ee}),S=Pe("table-v2"),T=It(),w=ln(!1),{expandedRowKeys:C,lastRenderedRowIndex:O,isDynamic:P,isResetting:M,rowHeights:U,resetAfterIndex:B,onRowExpanded:W,onRowHeightChange:Q,onRowHovered:G,onRowsRendered:X}=Fce(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:T,ns:S,isScrolling:w}),{data:q,depthMap:H}=Vce(e,{expandedRowKeys:C,lastRenderedRowIndex:O,resetAfterIndex:B}),{bodyWidth:V,fixedTableHeight:N,mainTableHeight:Y,leftTableWidth:Z,rightTableWidth:ne,headerWidth:ue,rowsHeight:_e,windowHeight:Ne,footerHeight:ce,emptyStyle:te,rootStyle:ie,headerHeight:we}=Hce(e,{columnsTotalWidth:a,data:q,fixedColumnsOnLeft:o,fixedColumnsOnRight:l}),me=j(),Ce=E(()=>{const se=d(q).length===0;return Xe(e.fixedData)?e.fixedData.length===0&&se:se});function Be(se){const{estimatedRowHeight:Te,rowHeight:Le,rowKey:Se}=e;return Te?d(U)[d(q)[se][Se]]||Te:Le}function ee(){const{onEndReached:se}=e;if(!se)return;const{scrollTop:Te}=d(b),Le=d(_e),Se=d(Ne),De=Le-(Te+Se)+e.hScrollbarSize;d(O)>=0&&Le===Te+d(Y)-d(we)&&se(De)}return xe(()=>e.expandedRowKeys,se=>C.value=se,{deep:!0}),{columns:r,containerRef:me,mainTableRef:t,leftTableRef:n,rightTableRef:s,isDynamic:P,isResetting:M,isScrolling:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:a,data:q,expandedRowKeys:C,depthMap:H,fixedColumnsOnLeft:o,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:V,emptyStyle:te,rootStyle:ie,headerWidth:ue,footerHeight:ce,mainTableHeight:Y,fixedTableHeight:N,leftTableWidth:Z,rightTableWidth:ne,showEmpty:Ce,getRowHeight:Be,onColumnSorted:f,onRowHovered:G,onRowExpanded:W,onRowsRendered:X,onRowHeightChange:Q,scrollTo:h,scrollToLeft:g,scrollToTop:m,scrollToRow:p,onScroll:y,onVerticalScroll:v}}const I2=Symbol("tableV2"),wP=String,mh={type:le(Array),required:!0},D2={type:le(Array)},TP={...D2,required:!0},qce=String,lx={type:le(Array),default:()=>wn([])},Jo={type:Number,required:!0},CP={type:le([String,Number,Symbol]),default:"id"},ux={type:le(Object)},il=Ve({class:String,columns:mh,columnsStyles:{type:le(Object),required:!0},depth:Number,expandColumnKey:qce,estimatedRowHeight:{...hl.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:le(Function)},onRowHover:{type:le(Function)},onRowHeightChange:{type:le(Function)},rowData:{type:le(Object),required:!0},rowEventHandlers:{type:le(Object)},rowIndex:{type:Number,required:!0},rowKey:CP,style:{type:le(Object)}}),R0={type:Number,required:!0},O2=Ve({class:String,columns:mh,fixedHeaderData:{type:le(Array)},headerData:{type:le(Array),required:!0},headerHeight:{type:le([Number,Array]),default:50},rowWidth:R0,rowHeight:{type:Number,default:50},height:R0,width:R0}),Xp=Ve({columns:mh,data:TP,fixedData:D2,estimatedRowHeight:il.estimatedRowHeight,width:Jo,height:Jo,headerWidth:Jo,headerHeight:O2.headerHeight,bodyWidth:Jo,rowHeight:Jo,cache:qO.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:hl.scrollbarAlwaysOn,scrollbarStartGap:hl.scrollbarStartGap,scrollbarEndGap:hl.scrollbarEndGap,class:wP,style:ux,containerStyle:ux,getRowHeight:{type:le(Function),required:!0},rowKey:il.rowKey,onRowsRendered:{type:le(Function)},onScroll:{type:le(Function)}}),Wce=Ve({cache:Xp.cache,estimatedRowHeight:il.estimatedRowHeight,rowKey:CP,headerClass:{type:le([String,Function])},headerProps:{type:le([Object,Function])},headerCellProps:{type:le([Object,Function])},headerHeight:O2.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:le([String,Function])},rowProps:{type:le([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:le([Object,Function])},columns:mh,data:TP,dataGetter:{type:le(Function)},fixedData:D2,expandColumnKey:il.expandColumnKey,expandedRowKeys:lx,defaultExpandedRowKeys:lx,class:wP,fixed:Boolean,style:{type:le(Object)},width:Jo,height:Jo,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:hl.hScrollbarSize,vScrollbarSize:hl.vScrollbarSize,scrollbarAlwaysOn:GO.alwaysOn,sortBy:{type:le(Object),default:()=>({})},sortState:{type:le(Object),default:void 0},onColumnSort:{type:le(Function)},onExpandedRowsChange:{type:le(Function)},onEndReached:{type:le(Function)},onRowExpand:il.onRowExpand,onScroll:Xp.onScroll,onRowsRendered:Xp.onRowsRendered,rowEventHandlers:il.rowEventHandlers}),P2=(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))||"",a=be(t,"default",e,()=>[i]);return I("div",{class:e.class,title:i,style:r},[a])};P2.displayName="ElTableV2Cell";P2.inheritAttrs=!1;const $2=(e,{slots:t})=>be(t,"default",e,()=>{var n,s;return[I("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(s=e.column)==null?void 0:s.title])]});$2.displayName="ElTableV2HeaderCell";$2.inheritAttrs=!1;const Kce=Ve({class:String,columns:mh,columnsStyles:{type:le(Object),required:!0},headerIndex:Number,style:{type:le(Object)}}),Gce=J({name:"ElTableV2HeaderRow",props:Kce,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:s,headerIndex:r,style:i}=e;let a=n.map((o,l)=>t.cell({columns:n,column:o,columnIndex:l,headerIndex:r,style:s[o.key]}));return t.header&&(a=t.header({cells:a.map(o=>Xe(o)&&o.length===1?o[0]:o),columns:n,headerIndex:r})),I("div",{class:e.class,style:i,role:"row"},[a])}}}),Yce="ElTableV2Header",Xce=J({name:Yce,props:O2,setup(e,{slots:t,expose:n}){const s=Pe("table-v2"),r=j(),i=E(()=>so({width:e.width,height:e.height})),a=E(()=>so({width:e.rowWidth,height:e.height})),o=E(()=>ho(d(e.headerHeight))),l=f=>{const h=d(r);ut(()=>{h!=null&&h.scroll&&h.scroll({left:f})})},u=()=>{const f=s.e("fixed-header-row"),{columns:h,fixedHeaderData:g,rowHeight:m}=e;return g==null?void 0:g.map((p,y)=>{var v;const b=so({height:m,width:"100%"});return(v=t.fixed)==null?void 0:v.call(t,{class:f,columns:h,rowData:p,rowIndex:-(y+1),style:b})})},c=()=>{const f=s.e("dynamic-header-row"),{columns:h}=e;return d(o).map((g,m)=>{var p;const y=so({width:"100%",height:g});return(p=t.dynamic)==null?void 0:p.call(t,{class:f,columns:h,headerIndex:m,style:y})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return I("div",{ref:r,class:e.class,style:d(i),role:"rowgroup"},[I("div",{style:d(a),class:s.e("header")},[c(),u()])])}}}),Qce=e=>{const{isScrolling:t}=Je(I2),n=j(!1),s=j(),r=E(()=>pt(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=d(s);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:h,rowIndex:g,style:m}=e,{height:p}=u.getBoundingClientRect();n.value=!0,ut(()=>{if(l||p!==Number.parseInt(m.height)){const y=c[0],v=(y==null?void 0:y.placeholderSign)===Pf;f==null||f({rowKey:h,height:p,rowIndex:g},y&&!v&&y.fixed)}})},a=E(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,h=e.rowEventHandlers||{},g={};return Object.entries(h).forEach(([m,p])=>{mt(p)&&(g[m]=y=>{p({event:y,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:p})=>{const y=g[m];g[m]=v=>{f({event:v,hovered:p,rowData:l,rowIndex:u,rowKey:c}),y==null||y(v)}}),g}),o=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:h}=e;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:h})};return gt(()=>{d(r)&&i(!0)}),{isScrolling:t,measurable:r,measured:n,rowRef:s,eventHandlers:a,onExpand:o}},Jce="ElTableV2TableRow",Zce=J({name:Jce,props:il,setup(e,{expose:t,slots:n,attrs:s}){const{eventHandlers:r,isScrolling:i,measurable:a,measured:o,rowRef:l,onExpand:u}=Qce(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:h,depth:g,rowData:m,rowIndex:p,style:y}=e;let v=c.map((b,S)=>{const T=Xe(m.children)&&m.children.length>0&&b.key===h;return n.cell({column:b,columns:c,columnIndex:S,depth:g,style:f[b.key],rowData:m,rowIndex:p,isScrolling:d(i),expandIconProps:T?{rowData:m,rowIndex:p,onExpand:u}:void 0})});if(n.row&&(v=n.row({cells:v.map(b=>Xe(b)&&b.length===1?b[0]:b),style:y,columns:c,depth:g,rowData:m,rowIndex:p,isScrolling:d(i)})),d(a)){const{height:b,...S}=y||{},T=d(o);return I("div",Lt({ref:l,class:e.class,style:T?y:S,role:"row"},s,d(r)),[v])}return I("div",Lt(s,{ref:l,class:e.class,style:y,role:"row"},d(r)),[v])}}}),ede=e=>{const{sortOrder:t}=e;return I(tt,{size:14,class:e.class},{default:()=>[t===Df.ASC?I(Bj,null,null):I(Mj,null,null)]})},tde=e=>{const{expanded:t,expandable:n,onExpand:s,style:r,size:i}=e,a={onClick:n?()=>s(!t):void 0,class:e.class};return I(tt,Lt(a,{size:i,style:r}),{default:()=>[I(Hs,null,null)]})},nde="ElTableV2Grid",sde=e=>{const t=j(),n=j(),s=E(()=>{const{data:p,rowHeight:y,estimatedRowHeight:v}=e;if(!v)return p.length*y}),r=E(()=>{const{fixedData:p,rowHeight:y}=e;return((p==null?void 0:p.length)||0)*y}),i=E(()=>Yp(e.headerHeight)),a=E(()=>{const{height:p}=e;return Math.max(0,p-d(i)-d(r))}),o=E(()=>d(i)+d(r)>0),l=({data:p,rowIndex:y})=>p[y][e.rowKey];function u({rowCacheStart:p,rowCacheEnd:y,rowVisibleStart:v,rowVisibleEnd:b}){var S;(S=e.onRowsRendered)==null||S.call(e,{rowCacheStart:p,rowCacheEnd:y,rowVisibleStart:v,rowVisibleEnd:b})}function c(p,y){var v;(v=n.value)==null||v.resetAfterRowIndex(p,y)}function f(p,y){const v=d(t),b=d(n);Pt(p)?(v==null||v.scrollToLeft(p.scrollLeft),b==null||b.scrollTo(p)):(v==null||v.scrollToLeft(p),b==null||b.scrollTo({scrollLeft:p,scrollTop:y}))}function h(p){var y;(y=d(n))==null||y.scrollTo({scrollTop:p})}function g(p,y){var v;(v=d(n))==null||v.scrollToItem(p,1,y)}function m(){var p,y;(p=d(n))==null||p.$forceUpdate(),(y=d(t))==null||y.$forceUpdate()}return{bodyRef:n,forceUpdate:m,fixedRowHeight:r,gridHeight:a,hasHeader:o,headerHeight:i,headerRef:t,totalHeight:s,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:h,scrollToRow:g}},R2=J({name:nde,props:Xp,setup(e,{slots:t,expose:n}){const{ns:s}=Je(I2),{bodyRef:r,fixedRowHeight:i,gridHeight:a,hasHeader:o,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:h,onItemRendered:g,resetAfterRowIndex:m,scrollTo:p,scrollToTop:y,scrollToRow:v}=sde(e);n({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:y,scrollToRow:v,resetAfterRowIndex:m});const b=()=>e.bodyWidth;return()=>{const{cache:S,columns:T,data:w,fixedData:C,useIsScrolling:O,scrollbarAlwaysOn:P,scrollbarEndGap:M,scrollbarStartGap:U,style:B,rowHeight:W,bodyWidth:Q,estimatedRowHeight:G,headerWidth:X,height:q,width:H,getRowHeight:V,onScroll:N}=e,Y=pt(G),Z=Y?qoe:Uoe,ne=d(u);return I("div",{role:"table",class:[s.e("table"),e.class],style:B},[I(Z,{ref:r,data:w,useIsScrolling:O,itemKey:h,columnCache:0,columnWidth:Y?b:Q,totalColumn:1,totalRow:w.length,rowCache:S,rowHeight:Y?V:W,width:H,height:d(a),class:s.e("body"),role:"rowgroup",scrollbarStartGap:U,scrollbarEndGap:M,scrollbarAlwaysOn:P,onScroll:N,onItemRendered:g,perfMode:!1},{default:ue=>{var _e;const Ne=w[ue.rowIndex];return(_e=t.row)==null?void 0:_e.call(t,{...ue,columns:T,rowData:Ne})}}),d(o)&&I(Xce,{ref:l,class:s.e("header-wrapper"),columns:T,headerData:w,headerHeight:e.headerHeight,fixedHeaderData:C,rowWidth:X,rowHeight:W,width:H,height:Math.min(ne+d(i),q)},{dynamic:t.header,fixed:t.row})])}}});function rde(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_n(e)}const ide=(e,{slots:t})=>{const{mainTableRef:n,...s}=e;return I(R2,Lt({ref:n},s),rde(t)?t:{default:()=>[t]})};function ade(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_n(e)}const ode=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...s}=e;return I(R2,Lt({ref:n},s),ade(t)?t:{default:()=>[t]})};function lde(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_n(e)}const ude=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...s}=e;return I(R2,Lt({ref:n},s),lde(t)?t:{default:()=>[t]})};function cde(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_n(e)}const dde=(e,{slots:t})=>{const{columns:n,columnsStyles:s,depthMap:r,expandColumnKey:i,expandedRowKeys:a,estimatedRowHeight:o,hasFixedColumns:l,rowData:u,rowIndex:c,style:f,isScrolling:h,rowProps:g,rowClass:m,rowKey:p,rowEventHandlers:y,ns:v,onRowHovered:b,onRowExpanded:S}=e,T=kl(m,{columns:n,rowData:u,rowIndex:c},""),w=kl(g,{columns:n,rowData:u,rowIndex:c}),C=u[p],O=r[C]||0,P=!!i,M=c<0,U=[v.e("row"),T,{[v.e(`row-depth-${O}`)]:P&&c>=0,[v.is("expanded")]:P&&a.includes(C),[v.is("fixed")]:!O&&M,[v.is("customized")]:!!t.row}],B=l?b:void 0,W={...w,columns:n,columnsStyles:s,class:U,depth:O,expandColumnKey:i,estimatedRowHeight:M?void 0:o,isScrolling:h,rowIndex:c,rowData:u,rowKey:C,rowEventHandlers:y,style:f};return I(Zce,Lt(W,{onRowExpand:S,onMouseenter:X=>{B==null||B({hovered:!0,rowKey:C,event:X,rowData:u,rowIndex:c})},onMouseleave:X=>{B==null||B({hovered:!1,rowKey:C,event:X,rowData:u,rowIndex:c})},rowkey:C}),cde(t)?t:{default:()=>[t]})},Ib=({columns:e,column:t,columnIndex:n,depth:s,expandIconProps:r,isScrolling:i,rowData:a,rowIndex:o,style:l,expandedRowKeys:u,ns:c,cellProps:f,expandColumnKey:h,indentSize:g,iconSize:m,rowKey:p},{slots:y})=>{const v=so(l);if(t.placeholderSign===Pf)return I("div",{class:c.em("row-cell","placeholder"),style:v},null);const{cellRenderer:b,dataKey:S,dataGetter:T}=t,w=mt(T)?T({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:o}):Rn(a,S??""),C=kl(f,{cellData:w,columns:e,column:t,columnIndex:n,rowIndex:o,rowData:a}),O={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:w,isScrolling:i,rowData:a,rowIndex:o},P=SP(b),M=P?P(O):be(y,"default",O,()=>[I(P2,O,null)]),U=[c.e("row-cell"),t.class,t.align===Of.CENTER&&c.is("align-center"),t.align===Of.RIGHT&&c.is("align-right")],B=o>=0&&h&&t.key===h,W=o>=0&&u.includes(a[p]);let Q;const G=`margin-inline-start: ${s*g}px;`;return B&&(Pt(r)?Q=I(tde,Lt(r,{class:[c.e("expand-icon"),c.is("expanded",W)],size:m,expanded:W,style:G,expandable:!0}),null):Q=I("div",{style:[G,`width: ${m}px; height: ${m}px;`].join(" ")},null)),I("div",Lt({class:U,style:v},C,{role:"cell"}),[Q,M])};Ib.inheritAttrs=!1;function fde(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_n(e)}const hde=({columns:e,columnsStyles:t,headerIndex:n,style:s,headerClass:r,headerProps:i,ns:a},{slots:o})=>{const l={columns:e,headerIndex:n},u=[a.e("header-row"),kl(r,l,""),{[a.is("customized")]:!!o.header}],c={...kl(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:s};return I(Gce,c,fde(o)?o:{default:()=>[o]})},cx=(e,{slots:t})=>{const{column:n,ns:s,style:r,onColumnSorted:i}=e,a=so(r);if(n.placeholderSign===Pf)return I("div",{class:s.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:o,headerClass:l,sortable:u}=n,c={...e,class:s.e("header-cell-text")},f=SP(o),h=f?f(c):be(t,"default",c,()=>[I($2,c,null)]),{sortBy:g,sortState:m,headerCellProps:p}=e;let y,v;if(m){const T=m[n.key];y=!!Ab[T],v=y?T:Df.ASC}else y=n.key===g.key,v=y?g.order:Df.ASC;const b=[s.e("header-cell"),kl(l,e,""),n.align===Of.CENTER&&s.is("align-center"),n.align===Of.RIGHT&&s.is("align-right"),u&&s.is("sortable")],S={...kl(p,e),onClick:n.sortable?i:void 0,class:b,style:a,"data-key":n.key};return I("div",Lt(S,{role:"columnheader"}),[h,u&&I(ede,{class:[s.e("sort-icon"),y&&s.is("sorting")],sortOrder:v},null)])},EP=(e,{slots:t})=>{var n;return I("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};EP.displayName="ElTableV2Footer";const xP=(e,{slots:t})=>{const n=be(t,"default",{},()=>[I(ch,null,null)]);return I("div",{class:e.class,style:e.style},[n])};xP.displayName="ElTableV2Empty";const kP=(e,{slots:t})=>{var n;return I("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};kP.displayName="ElTableV2Overlay";function ud(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_n(e)}const pde="ElTableV2",mde=J({name:pde,props:Wce,setup(e,{slots:t,expose:n}){const s=Pe("table-v2"),{columnsStyles:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,mainColumns:o,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:h,depthMap:g,expandedRowKeys:m,hasFixedColumns:p,mainTableRef:y,leftTableRef:v,rightTableRef:b,isDynamic:S,isResetting:T,isScrolling:w,bodyWidth:C,emptyStyle:O,rootStyle:P,headerWidth:M,footerHeight:U,showEmpty:B,scrollTo:W,scrollToLeft:Q,scrollToTop:G,scrollToRow:X,getRowHeight:q,onColumnSorted:H,onRowHeightChange:V,onRowHovered:N,onRowExpanded:Y,onRowsRendered:Z,onScroll:ne,onVerticalScroll:ue}=jce(e);return n({scrollTo:W,scrollToLeft:Q,scrollToTop:G,scrollToRow:X}),Mt(I2,{ns:s,isResetting:T,isScrolling:w}),()=>{const{cache:_e,cellProps:Ne,estimatedRowHeight:ce,expandColumnKey:te,fixedData:ie,headerHeight:we,headerClass:me,headerProps:Ce,headerCellProps:Be,sortBy:ee,sortState:se,rowHeight:Te,rowClass:Le,rowEventHandlers:Se,rowKey:De,rowProps:Fe,scrollbarAlwaysOn:Ie,indentSize:je,iconSize:Ee,useIsScrolling:Ze,vScrollbarSize:nt,width:ke}=e,et=d(h),dt={cache:_e,class:s.e("main"),columns:d(o),data:et,fixedData:ie,estimatedRowHeight:ce,bodyWidth:d(C)+nt,headerHeight:we,headerWidth:d(M),height:d(l),mainTableRef:y,rowKey:De,rowHeight:Te,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:nt,useIsScrolling:Ze,width:ke,getRowHeight:q,onRowsRendered:Z,onScroll:ne},At=d(c),xt=d(u),ct={cache:_e,class:s.e("left"),columns:d(i),data:et,estimatedRowHeight:ce,leftTableRef:v,rowHeight:Te,bodyWidth:At,headerWidth:At,headerHeight:we,height:xt,rowKey:De,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:nt,useIsScrolling:Ze,width:At,getRowHeight:q,onScroll:ue},Ue=d(f)+nt,Me={cache:_e,class:s.e("right"),columns:d(a),data:et,estimatedRowHeight:ce,rightTableRef:b,rowHeight:Te,bodyWidth:Ue,headerWidth:Ue,headerHeight:we,height:xt,rowKey:De,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:nt,width:Ue,style:`--${d(s.namespace)}-table-scrollbar-size: ${nt}px`,useIsScrolling:Ze,getRowHeight:q,onScroll:ue},ve=d(r),$e={ns:s,depthMap:d(g),columnsStyles:ve,expandColumnKey:te,expandedRowKeys:d(m),estimatedRowHeight:ce,hasFixedColumns:d(p),rowProps:Fe,rowClass:Le,rowKey:De,rowEventHandlers:Se,onRowHovered:N,onRowExpanded:Y,onRowHeightChange:V},st={cellProps:Ne,expandColumnKey:te,indentSize:je,iconSize:Ee,rowKey:De,expandedRowKeys:d(m),ns:s},ye={ns:s,headerClass:me,headerProps:Ce,columnsStyles:ve},at={ns:s,sortBy:ee,sortState:se,headerCellProps:Be,onColumnSorted:H},Rt={row:Mn=>I(dde,Lt(Mn,$e),{row:t.row,cell:Bt=>{let On;return t.cell?I(Ib,Lt(Bt,st,{style:ve[Bt.column.key]}),ud(On=t.cell(Bt))?On:{default:()=>[On]}):I(Ib,Lt(Bt,st,{style:ve[Bt.column.key]}),null)}}),header:Mn=>I(hde,Lt(Mn,ye),{header:t.header,cell:Bt=>{let On;return t["header-cell"]?I(cx,Lt(Bt,at,{style:ve[Bt.column.key]}),ud(On=t["header-cell"](Bt))?On:{default:()=>[On]}):I(cx,Lt(Bt,at,{style:ve[Bt.column.key]}),null)}})},Qt=[e.class,s.b(),s.e("root"),{[s.is("dynamic")]:d(S)}],Dn={class:s.e("footer"),style:d(U)};return I("div",{class:Qt,style:d(P)},[I(ide,dt,ud(Rt)?Rt:{default:()=>[Rt]}),I(ode,ct,ud(Rt)?Rt:{default:()=>[Rt]}),I(ude,Me,ud(Rt)?Rt:{default:()=>[Rt]}),t.footer&&I(EP,Dn,{default:t.footer}),d(B)&&I(xP,{class:s.e("empty"),style:d(O)},{default:t.empty}),t.overlay&&I(kP,{class:s.e("overlay")},{default:t.overlay})])}}}),gde=Ve({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:le(Function)}}),vde=J({name:"ElAutoResizer",props:gde,setup(e,{slots:t}){const n=Pe("auto-resizer"),{height:s,width:r,sizer:i}=zce(e),a={width:"100%",height:"100%"};return()=>{var o;return I("div",{ref:i,class:n.b(),style:a},[(o=t.default)==null?void 0:o.call(t,{height:s.value,width:r.value})])}}}),yde=Dt(mde),bde=Dt(vde),ev=Symbol("tabsRootContextKey"),_de=Ve({tabs:{type:le(Array),default:()=>wn([])}}),AP="ElTabBar",Sde=J({name:AP}),wde=J({...Sde,props:_de,setup(e,{expose:t}){const n=e,s=It(),r=Je(ev);r||Zn(AP,"<el-tabs><el-tab-bar /></el-tabs>");const i=Pe("tabs"),a=j(),o=j(),l=()=>{let c=0,f=0;const h=["top","bottom"].includes(r.props.tabPosition)?"width":"height",g=h==="width"?"x":"y",m=g==="x"?"left":"top";return n.tabs.every(p=>{var y,v;const b=(v=(y=s.parent)==null?void 0:y.refs)==null?void 0:v[`tab-${p.uid}`];if(!b)return!1;if(!p.active)return!0;c=b[`offset${Di(m)}`],f=b[`client${Di(h)}`];const S=window.getComputedStyle(b);return h==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(S.paddingLeft)+Number.parseFloat(S.paddingRight)),c+=Number.parseFloat(S.paddingLeft)),!1}),{[h]:`${f}px`,transform:`translate${Di(g)}(${c}px)`}},u=()=>o.value=l();return xe(()=>n.tabs,async()=>{await ut(),u()},{immediate:!0}),Sn(a,()=>u()),t({ref:a,update:u}),(c,f)=>(k(),z("div",{ref_key:"barRef",ref:a,class:$([d(i).e("active-bar"),d(i).is(d(r).props.tabPosition)]),style:it(o.value)},null,6))}});var Tde=ze(wde,[["__file","tab-bar.vue"]]);const Cde=Ve({panes:{type:le(Array),default:()=>wn([])},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},dx="ElTabNav",xde=J({name:dx,props:Cde,emits:Ede,setup(e,{expose:t,emit:n}){const s=It(),r=Je(ev);r||Zn(dx,"<el-tabs><tab-nav /></el-tabs>");const i=Pe("tabs"),a=zB(),o=tF(),l=j(),u=j(),c=j(),f=j(),h=j(!1),g=j(0),m=j(!1),p=j(!0),y=E(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),v=E(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${g.value}px)`})),b=()=>{if(!l.value)return;const M=l.value[`offset${Di(y.value)}`],U=g.value;if(!U)return;const B=U>M?U-M:0;g.value=B},S=()=>{if(!l.value||!u.value)return;const M=u.value[`offset${Di(y.value)}`],U=l.value[`offset${Di(y.value)}`],B=g.value;if(M-B<=U)return;const W=M-B>U*2?B+U:M-U;g.value=W},T=async()=>{const M=u.value;if(!h.value||!c.value||!l.value||!M)return;await ut();const U=c.value.querySelector(".is-active");if(!U)return;const B=l.value,W=["top","bottom"].includes(r.props.tabPosition),Q=U.getBoundingClientRect(),G=B.getBoundingClientRect(),X=W?M.offsetWidth-G.width:M.offsetHeight-G.height,q=g.value;let H=q;W?(Q.left<G.left&&(H=q-(G.left-Q.left)),Q.right>G.right&&(H=q+Q.right-G.right)):(Q.top<G.top&&(H=q-(G.top-Q.top)),Q.bottom>G.bottom&&(H=q+(Q.bottom-G.bottom))),H=Math.max(H,0),g.value=Math.min(H,X)},w=()=>{var M;if(!u.value||!l.value)return;e.stretch&&((M=f.value)==null||M.update());const U=u.value[`offset${Di(y.value)}`],B=l.value[`offset${Di(y.value)}`],W=g.value;B<U?(h.value=h.value||{},h.value.prev=W,h.value.next=W+B<U,U-W<B&&(g.value=U-B)):(h.value=!1,W>0&&(g.value=0))},C=M=>{const U=M.code,{up:B,down:W,left:Q,right:G}=ot;if(![B,W,Q,G].includes(U))return;const X=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),q=X.indexOf(M.target);let H;U===Q||U===B?q===0?H=X.length-1:H=q-1:q<X.length-1?H=q+1:H=0,X[H].focus({preventScroll:!0}),X[H].click(),O()},O=()=>{p.value&&(m.value=!0)},P=()=>m.value=!1;return xe(a,M=>{M==="hidden"?p.value=!1:M==="visible"&&setTimeout(()=>p.value=!0,50)}),xe(o,M=>{M?setTimeout(()=>p.value=!0,50):p.value=!1}),Sn(c,w),gt(()=>setTimeout(()=>T(),0)),xa(()=>w()),t({scrollToActiveTab:T,removeFocus:P}),xe(()=>e.panes,()=>s.update(),{flush:"post",deep:!0}),()=>{const M=h.value?[I("span",{class:[i.e("nav-prev"),i.is("disabled",!h.value.prev)],onClick:b},[I(tt,null,{default:()=>[I(mo,null,null)]})]),I("span",{class:[i.e("nav-next"),i.is("disabled",!h.value.next)],onClick:S},[I(tt,null,{default:()=>[I(Hs,null,null)]})])]:null,U=e.panes.map((B,W)=>{var Q,G,X,q;const H=B.uid,V=B.props.disabled,N=(G=(Q=B.props.name)!=null?Q:B.index)!=null?G:`${W}`,Y=!V&&(B.isClosable||e.editable);B.index=`${W}`;const Z=Y?I(tt,{class:"is-icon-close",onClick:_e=>n("tabRemove",B,_e)},{default:()=>[I(hi,null,null)]}):null,ne=((q=(X=B.slots).label)==null?void 0:q.call(X))||B.props.label,ue=!V&&B.active?0:-1;return I("div",{ref:`tab-${H}`,class:[i.e("item"),i.is(r.props.tabPosition),i.is("active",B.active),i.is("disabled",V),i.is("closable",Y),i.is("focus",m.value)],id:`tab-${N}`,key:`tab-${H}`,"aria-controls":`pane-${N}`,role:"tab","aria-selected":B.active,tabindex:ue,onFocus:()=>O(),onBlur:()=>P(),onClick:_e=>{P(),n("tabClick",B,N,_e)},onKeydown:_e=>{Y&&(_e.code===ot.delete||_e.code===ot.backspace)&&n("tabRemove",B,_e)}},[ne,Z])});return I("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!h.value),i.is(r.props.tabPosition)]},[M,I("div",{class:i.e("nav-scroll"),ref:l},[I("div",{class:[i.e("nav"),i.is(r.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:u,style:v.value,role:"tablist",onKeydown:C},[e.type?null:I(Tde,{ref:f,tabs:[...e.panes]},null),U])])])}}}),kde=Ve({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:le(Function),default:()=>!0},stretch:Boolean}),N0=e=>bt(e)||pt(e),Ade={[$t]:e=>N0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>N0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>N0(e),tabAdd:()=>!0},Ide=J({name:"ElTabs",props:kde,emits:Ade,setup(e,{emit:t,slots:n,expose:s}){var r;const i=Pe("tabs"),{children:a,addChild:o,removeChild:l}=Y1(It(),"ElTabPane"),u=j(),c=j((r=e.modelValue)!=null?r:"0"),f=async(p,y=!1)=>{var v,b,S;if(!(c.value===p||Fn(p)))try{await((v=e.beforeLeave)==null?void 0:v.call(e,p,c.value))!==!1&&(c.value=p,y&&(t($t,p),t("tabChange",p)),(S=(b=u.value)==null?void 0:b.removeFocus)==null||S.call(b))}catch{}},h=(p,y,v)=>{p.props.disabled||(f(y,!0),t("tabClick",p,v))},g=(p,y)=>{p.props.disabled||Fn(p.props.name)||(y.stopPropagation(),t("edit",p.props.name,"remove"),t("tabRemove",p.props.name))},m=()=>{t("edit",void 0,"add"),t("tabAdd")};return xe(()=>e.modelValue,p=>f(p)),xe(c,async()=>{var p;await ut(),(p=u.value)==null||p.scrollToActiveTab()}),Mt(ev,{props:e,currentName:c,registerPane:o,unregisterPane:l}),s({currentName:c}),()=>{const p=n["add-icon"],y=e.editable||e.addable?I("span",{class:i.e("new-tab"),tabindex:"0",onClick:m,onKeydown:S=>{S.code===ot.enter&&m()}},[p?be(n,"add-icon"):I(tt,{class:i.is("icon-plus")},{default:()=>[I(T1,null,null)]})]):null,v=I("div",{class:[i.e("header"),i.is(e.tabPosition)]},[y,I(xde,{ref:u,currentName:c.value,editable:e.editable,type:e.type,panes:a.value,stretch:e.stretch,onTabClick:h,onTabRemove:g},null)]),b=I("div",{class:i.e("content")},[be(n,"default")]);return I("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[v,b]:[b,v]])}}}),Dde=Ve({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ode=["id","aria-hidden","aria-labelledby"],IP="ElTabPane",Pde=J({name:IP}),$de=J({...Pde,props:Dde,setup(e){const t=e,n=It(),s=us(),r=Je(ev);r||Zn(IP,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Pe("tab-pane"),a=j(),o=E(()=>t.closable||r.props.closable),l=HT(()=>{var g;return r.currentName.value===((g=t.name)!=null?g:a.value)}),u=j(l.value),c=E(()=>{var g;return(g=t.name)!=null?g:a.value}),f=HT(()=>!t.lazy||u.value||l.value);xe(l,g=>{g&&(u.value=!0)});const h=Ct({uid:n.uid,slots:s,props:t,paneName:c,active:l,index:a,isClosable:o});return gt(()=>{r.registerPane(h)}),Eo(()=>{r.unregisterPane(h.uid)}),(g,m)=>d(f)?yt((k(),z("div",{key:0,id:`pane-${d(c)}`,class:$(d(i).b()),role:"tabpanel","aria-hidden":!d(l),"aria-labelledby":`tab-${d(c)}`},[be(g.$slots,"default")],10,Ode)),[[zt,d(l)]]):ae("v-if",!0)}});var DP=ze($de,[["__file","tab-pane.vue"]]);const Rde=Dt(Ide,{TabPane:DP}),Nde=Tn(DP),Mde=Ve({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Qi,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Lde=J({name:"ElText"}),Bde=J({...Lde,props:Mde,setup(e){const t=e,n=Kn(),s=Pe("text"),r=E(()=>[s.b(),s.m(t.type),s.m(n.value),s.is("truncated",t.truncated),s.is("line-clamp",!Fn(t.lineClamp))]);return(i,a)=>(k(),fe(Nt(i.tag),{class:$(d(r)),style:it({"-webkit-line-clamp":i.lineClamp})},{default:L(()=>[be(i.$slots,"default")]),_:3},8,["class","style"]))}});var Fde=ze(Bde,[["__file","text.vue"]]);const Vde=Dt(Fde),Ude=Ve({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:es,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:le([String,Object]),default:()=>S1},clearIcon:{type:le([String,Object]),default:()=>ko},...Ac}),la=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},M0=(e,t)=>{const n=la(e);if(!n)return-1;const s=la(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},fx=e=>`${e}`.padStart(2,"0"),ou=e=>`${fx(e.hours)}:${fx(e.minutes)}`,Hde=(e,t)=>{const n=la(e);if(!n)return"";const s=la(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,ou(r)},zde=J({name:"ElTimeSelect"}),jde=J({...zde,props:Ude,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;Ot.extend(s2);const{Option:s}=mi,r=Pe("input"),i=j(),a=Gs(),{lang:o}=Wt(),l=E(()=>n.modelValue),u=E(()=>{const v=la(n.start);return v?ou(v):null}),c=E(()=>{const v=la(n.end);return v?ou(v):null}),f=E(()=>{const v=la(n.step);return v?ou(v):null}),h=E(()=>{const v=la(n.minTime||"");return v?ou(v):null}),g=E(()=>{const v=la(n.maxTime||"");return v?ou(v):null}),m=E(()=>{const v=[];if(n.start&&n.end&&n.step){let b=u.value,S;for(;b&&c.value&&M0(b,c.value)<=0;)S=Ot(b,"HH:mm").locale(o.value).format(n.format),v.push({value:S,disabled:M0(b,h.value||"-1:-1")<=0||M0(b,g.value||"100:100")>=0}),b=Hde(b,f.value)}return v});return t({blur:()=>{var v,b;(b=(v=i.value)==null?void 0:v.blur)==null||b.call(v)},focus:()=>{var v,b;(b=(v=i.value)==null?void 0:v.focus)==null||b.call(v)}}),(v,b)=>(k(),fe(d(mi),{ref_key:"select",ref:i,"model-value":d(l),disabled:d(a),clearable:v.clearable,"clear-icon":v.clearIcon,size:v.size,effect:v.effect,placeholder:v.placeholder,"default-first-option":"",filterable:v.editable,"empty-values":v.emptyValues,"value-on-clear":v.valueOnClear,"onUpdate:modelValue":b[0]||(b[0]=S=>v.$emit("update:modelValue",S)),onChange:b[1]||(b[1]=S=>v.$emit("change",S)),onBlur:b[2]||(b[2]=S=>v.$emit("blur",S)),onFocus:b[3]||(b[3]=S=>v.$emit("focus",S))},{prefix:L(()=>[v.prefixIcon?(k(),fe(d(tt),{key:0,class:$(d(r).e("prefix-icon"))},{default:L(()=>[(k(),fe(Nt(v.prefixIcon)))]),_:1},8,["class"])):ae("v-if",!0)]),default:L(()=>[(k(!0),z(Ge,null,_t(d(m),S=>(k(),fe(d(s),{key:S.value,label:S.value,value:S.value,disabled:S.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear"]))}});var Qp=ze(jde,[["__file","time-select.vue"]]);Qp.install=e=>{e.component(Qp.name,Qp)};const qde=Qp,Wde=qde,Kde=J({name:"ElTimeline",setup(e,{slots:t}){const n=Pe("timeline");return Mt("timeline",t),()=>lt("ul",{class:[n.b()]},[be(t,"default")])}}),Gde=Ve({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:sn},hollow:{type:Boolean,default:!1}}),Yde=J({name:"ElTimelineItem"}),Xde=J({...Yde,props:Gde,setup(e){const t=e,n=Pe("timeline-item"),s=E(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(r,i)=>(k(),z("li",{class:$([d(n).b(),{[d(n).e("center")]:r.center}])},[R("div",{class:$(d(n).e("tail"))},null,2),r.$slots.dot?ae("v-if",!0):(k(),z("div",{key:0,class:$(d(s)),style:it({backgroundColor:r.color})},[r.icon?(k(),fe(d(tt),{key:0,class:$(d(n).e("icon"))},{default:L(()=>[(k(),fe(Nt(r.icon)))]),_:1},8,["class"])):ae("v-if",!0)],6)),r.$slots.dot?(k(),z("div",{key:1,class:$(d(n).e("dot"))},[be(r.$slots,"dot")],2)):ae("v-if",!0),R("div",{class:$(d(n).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?(k(),z("div",{key:0,class:$([d(n).e("timestamp"),d(n).is("top")])},pe(r.timestamp),3)):ae("v-if",!0),R("div",{class:$(d(n).e("content"))},[be(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?(k(),z("div",{key:1,class:$([d(n).e("timestamp"),d(n).is("bottom")])},pe(r.timestamp),3)):ae("v-if",!0)],2)],2))}});var OP=ze(Xde,[["__file","timeline-item.vue"]]);const Qde=Dt(Kde,{TimelineItem:OP}),Jde=Tn(OP),PP=Ve({nowrap:Boolean});var $P=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))($P||{});const Zde=Object.values($P),N2=Ve({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:le(Object),default:null}}),efe=Ve({side:{type:le(String),values:Zde,required:!0}}),tfe=["absolute","fixed"],nfe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],M2=Ve({arrowPadding:{type:le(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:le(String),values:nfe,default:"bottom"},reference:{type:le(Object),default:null},offset:{type:Number,default:8},strategy:{type:le(String),values:tfe,default:"absolute"},showArrow:{type:Boolean,default:!1},...ys(["ariaLabel"])}),L2=Ve({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:le(Function)},"onUpdate:open":{type:le(Function)}}),Ql={type:le(Function)},B2=Ve({onBlur:Ql,onClick:Ql,onFocus:Ql,onMouseDown:Ql,onMouseEnter:Ql,onMouseLeave:Ql}),sfe=Ve({...L2,...N2,...B2,...M2,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:le(Object),default:null},teleported:Boolean,to:{type:le(String),default:"body"}}),tv=Symbol("tooltipV2"),RP=Symbol("tooltipV2Content"),L0="tooltip_v2.open",rfe=J({name:"ElTooltipV2Root"}),ife=J({...rfe,props:L2,setup(e,{expose:t}){const n=e,s=j(n.defaultOpen),r=j(null),i=E({get:()=>Tl(n.open)?s.value:n.open,set:y=>{var v;s.value=y,(v=n["onUpdate:open"])==null||v.call(n,y)}}),a=E(()=>pt(n.delayDuration)&&n.delayDuration>0),{start:o,stop:l}=Sl(()=>{i.value=!0},E(()=>n.delayDuration),{immediate:!1}),u=Pe("tooltip-v2"),c=xs(),f=()=>{l(),i.value=!0},h=()=>{d(a)?o():f()},g=f,m=()=>{l(),i.value=!1};return xe(i,y=>{var v;y&&(document.dispatchEvent(new CustomEvent(L0)),g()),(v=n.onOpenChange)==null||v.call(n,y)}),gt(()=>{document.addEventListener(L0,m)}),un(()=>{l(),document.removeEventListener(L0,m)}),Mt(tv,{contentId:c,triggerRef:r,ns:u,onClose:m,onDelayOpen:h,onOpen:g}),t({onOpen:g,onClose:m}),(y,v)=>be(y.$slots,"default",{open:d(i)})}});var afe=ze(ife,[["__file","root.vue"]]);const ofe=J({name:"ElTooltipV2Arrow"}),lfe=J({...ofe,props:{...N2,...efe},setup(e){const t=e,{ns:n}=Je(tv),{arrowRef:s}=Je(RP),r=E(()=>{const{style:i,width:a,height:o}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${a}px`,[`--${l}-tooltip-v2-arrow-height`]:`${o}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${a/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:a/2-1,...i||{}}});return(i,a)=>(k(),z("span",{ref_key:"arrowRef",ref:s,style:it(d(r)),class:$(d(n).e("arrow"))},null,6))}});var hx=ze(lfe,[["__file","arrow.vue"]]);const ufe=Ve({style:{type:le([String,Object,Array]),default:()=>({})}}),cfe=J({name:"ElVisuallyHidden"}),dfe=J({...cfe,props:ufe,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)=>(k(),z("span",Lt(s.$attrs,{style:d(n)}),[be(s.$slots,"default")],16))}});var ffe=ze(dfe,[["__file","visual-hidden.vue"]]);const hfe=["data-side"],pfe=J({name:"ElTooltipV2Content"}),mfe=J({...pfe,props:{...M2,...PP},setup(e){const t=e,{triggerRef:n,contentId:s}=Je(tv),r=j(t.placement),i=j(t.strategy),a=j(null),{referenceRef:o,contentRef:l,middlewareData:u,x:c,y:f,update:h}=pK({placement:r,strategy:i,middleware:E(()=>{const S=[kI(t.offset)];return t.showArrow&&S.push(mK({arrowRef:a})),S})}),g=xc().nextZIndex(),m=Pe("tooltip-v2"),p=E(()=>r.value.split("-")[0]),y=E(()=>({position:d(i),top:`${d(f)||0}px`,left:`${d(c)||0}px`,zIndex:g})),v=E(()=>{if(!t.showArrow)return{};const{arrow:S}=d(u);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${S==null?void 0:S.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${S==null?void 0:S.y}px`||""}}),b=E(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(d(i)),t.contentClass]);return xe(a,()=>h()),xe(()=>t.placement,S=>r.value=S),gt(()=>{xe(()=>t.reference||n.value,S=>{o.value=S||void 0},{immediate:!0})}),Mt(RP,{arrowRef:a}),(S,T)=>(k(),z("div",{ref_key:"contentRef",ref:l,style:it(d(y)),"data-tooltip-v2-root":""},[S.nowrap?ae("v-if",!0):(k(),z("div",{key:0,"data-side":d(p),class:$(d(b))},[be(S.$slots,"default",{contentStyle:d(y),contentClass:d(b)}),I(d(ffe),{id:d(s),role:"tooltip"},{default:L(()=>[S.ariaLabel?(k(),z(Ge,{key:0},[Re(pe(S.ariaLabel),1)],64)):be(S.$slots,"default",{key:1})]),_:3},8,["id"]),be(S.$slots,"arrow",{style:it(d(v)),side:d(p)})],10,hfe))],4))}});var px=ze(mfe,[["__file","content.vue"]]);const gfe=Ve({setRef:{type:le(Function),required:!0},onlyChild:Boolean});var vfe=J({props:gfe,setup(e,{slots:t}){const n=j(),s=Bg(n,r=>{r?e.setRef(r.nextElementSibling):e.setRef(null)});return()=>{var r;const[i]=((r=t.default)==null?void 0:r.call(t))||[],a=e.onlyChild?uq(i.children):i.children;return I(Ge,{ref:s},[a])}}});const yfe=J({name:"ElTooltipV2Trigger"}),bfe=J({...yfe,props:{...PP,...B2},setup(e){const t=e,{onClose:n,onOpen:s,onDelayOpen:r,triggerRef:i,contentId:a}=Je(tv);let o=!1;const l=b=>{i.value=b},u=()=>{o=!1},c=xn(t.onMouseEnter,r),f=xn(t.onMouseLeave,n),h=xn(t.onMouseDown,()=>{n(),o=!0,document.addEventListener("mouseup",u,{once:!0})}),g=xn(t.onFocus,()=>{o||s()}),m=xn(t.onBlur,n),p=xn(t.onClick,b=>{b.detail===0&&n()}),y={blur:m,click:p,focus:g,mousedown:h,mouseenter:c,mouseleave:f},v=(b,S,T)=>{b&&Object.entries(S).forEach(([w,C])=>{b[T](w,C)})};return xe(i,(b,S)=>{v(b,y,"addEventListener"),v(S,y,"removeEventListener"),b&&b.setAttribute("aria-describedby",a.value)}),un(()=>{v(i.value,y,"removeEventListener"),document.removeEventListener("mouseup",u)}),(b,S)=>b.nowrap?(k(),fe(d(vfe),{key:0,"set-ref":l,"only-child":""},{default:L(()=>[be(b.$slots,"default")]),_:3})):(k(),z("button",Lt({key:1,ref_key:"triggerRef",ref:i},b.$attrs),[be(b.$slots,"default")],16))}});var _fe=ze(bfe,[["__file","trigger.vue"]]);const Sfe=J({name:"ElTooltipV2"}),wfe=J({...Sfe,props:sfe,setup(e){const n=ms(e),s=Ct(Oi(n,Object.keys(N2))),r=Ct(Oi(n,Object.keys(M2))),i=Ct(Oi(n,Object.keys(L2))),a=Ct(Oi(n,Object.keys(B2)));return(o,l)=>(k(),fe(afe,da(Bu(i)),{default:L(({open:u})=>[I(_fe,Lt(a,{nowrap:""}),{default:L(()=>[be(o.$slots,"trigger")]),_:3},16),(k(),fe(bc,{to:o.to,disabled:!o.teleported},[o.fullTransition?(k(),fe(Wn,da(Lt({key:0},o.transitionProps)),{default:L(()=>[o.alwaysOn||u?(k(),fe(px,da(Lt({key:0},r)),{arrow:L(({style:c,side:f})=>[o.showArrow?(k(),fe(hx,Lt({key:0},s,{style:c,side:f}),null,16,["style","side"])):ae("v-if",!0)]),default:L(()=>[be(o.$slots,"default")]),_:3},16)):ae("v-if",!0)]),_:2},1040)):(k(),z(Ge,{key:1},[o.alwaysOn||u?(k(),fe(px,da(Lt({key:0},r)),{arrow:L(({style:c,side:f})=>[o.showArrow?(k(),fe(hx,Lt({key:0},s,{style:c,side:f}),null,16,["style","side"])):ae("v-if",!0)]),default:L(()=>[be(o.$slots,"default")]),_:3},16)):ae("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var Tfe=ze(wfe,[["__file","tooltip.vue"]]);const Cfe=Dt(Tfe),NP="left-check-change",MP="right-check-change",lu=Ve({data:{type:le(Array),default:()=>[]},titles:{type:le(Array),default:()=>[]},buttonTexts:{type:le(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:le(Function)},leftDefaultChecked:{type:le(Array),default:()=>[]},rightDefaultChecked:{type:le(Array),default:()=>[]},renderContent:{type:le(Function)},modelValue:{type:le(Array),default:()=>[]},format:{type:le(Object),default:()=>({})},filterable:Boolean,props:{type:le(Object),default:()=>wn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Db=(e,t)=>[e,t].every(Xe)||Xe(e)&&os(t),Efe={[dn]:(e,t,n)=>[e,n].every(Xe)&&["left","right"].includes(t),[$t]:e=>Xe(e),[NP]:Db,[MP]:Db},Ob="checked-change",xfe=Ve({data:lu.data,optionRender:{type:le(Function)},placeholder:String,title:String,filterable:Boolean,format:lu.format,filterMethod:lu.filterMethod,defaultChecked:lu.leftDefaultChecked,props:lu.props}),kfe={[Ob]:Db},gh=e=>{const t={label:"label",key:"key",disabled:"disabled"};return E(()=>({...t,...e.props}))},Afe=(e,t,n)=>{const s=gh(e),r=E(()=>e.data.filter(c=>mt(e.filterMethod)?e.filterMethod(t.query,c):String(c[s.value.label]||c[s.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=E(()=>r.value.filter(c=>!c[s.value.disabled])),a=E(()=>{const c=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:g}=e.format;return h&&g?c>0?g.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${c}/${f}`}),o=E(()=>{const c=t.checked.length;return c>0&&c<i.value.length}),l=()=>{const c=i.value.map(f=>f[s.value.key]);t.allChecked=c.length>0&&c.every(f=>t.checked.includes(f))},u=c=>{t.checked=c?i.value.map(f=>f[s.value.key]):[]};return xe(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const h=c.concat(f).filter(g=>!c.includes(g)||!f.includes(g));n(Ob,c,h)}else n(Ob,c),t.checkChangeByUser=!0}),xe(i,()=>{l()}),xe(()=>e.data,()=>{const c=[],f=r.value.map(h=>h[s.value.key]);t.checked.forEach(h=>{f.includes(h)&&c.push(h)}),t.checkChangeByUser=!1,t.checked=c}),xe(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(m=>f.includes(m)))return;const h=[],g=i.value.map(m=>m[s.value.key]);c.forEach(m=>{g.includes(m)&&h.push(m)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:r,checkableData:i,checkedSummary:a,isIndeterminate:o,updateAllChecked:l,handleAllCheckedChange:u}},Ife=(e,t)=>({onSourceCheckedChange:(r,i)=>{e.leftChecked=r,i&&t(NP,r,i)},onTargetCheckedChange:(r,i)=>{e.rightChecked=r,i&&t(MP,r,i)}}),Dfe=e=>{const t=gh(e),n=E(()=>e.data.reduce((i,a)=>(i[a[t.value.key]]=a)&&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,a)=>{const o=n.value[a];return o&&i.push(o),i},[]));return{sourceData:s,targetData:r}},Ofe=(e,t,n)=>{const s=gh(e),r=(o,l,u)=>{n($t,o),n(dn,o,l,u)};return{addToLeft:()=>{const o=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=o.indexOf(l);u>-1&&o.splice(u,1)}),r(o,"left",t.rightChecked)},addToRight:()=>{let o=e.modelValue.slice();const l=e.data.filter(u=>{const c=u[s.value.key];return t.leftChecked.includes(c)&&!e.modelValue.includes(c)}).map(u=>u[s.value.key]);o=e.targetOrder==="unshift"?l.concat(o):o.concat(l),e.targetOrder==="original"&&(o=e.data.filter(u=>o.includes(u[s.value.key])).map(u=>u[s.value.key])),r(o,"right",t.leftChecked)}}},Pfe=J({name:"ElTransferPanel"}),$fe=J({...Pfe,props:xfe,emits:kfe,setup(e,{expose:t,emit:n}){const s=e,r=us(),i=({option:S})=>S,{t:a}=Wt(),o=Pe("transfer"),l=Ct({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=gh(s),{filteredData:c,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:g}=Afe(s,l,n),m=E(()=>!Mr(l.query)&&Mr(c.value)),p=E(()=>!Mr(r.default()[0].children)),{checked:y,allChecked:v,query:b}=ms(l);return t({query:b}),(S,T)=>(k(),z("div",{class:$(d(o).b("panel"))},[R("p",{class:$(d(o).be("panel","header"))},[I(d(Xr),{modelValue:d(v),"onUpdate:modelValue":T[0]||(T[0]=w=>hn(v)?v.value=w:null),indeterminate:d(h),"validate-event":!1,onChange:d(g)},{default:L(()=>[Re(pe(S.title)+" ",1),R("span",null,pe(d(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),R("div",{class:$([d(o).be("panel","body"),d(o).is("with-footer",d(p))])},[S.filterable?(k(),fe(d(Vn),{key:0,modelValue:d(b),"onUpdate:modelValue":T[1]||(T[1]=w=>hn(b)?b.value=w:null),class:$(d(o).be("panel","filter")),size:"default",placeholder:S.placeholder,"prefix-icon":d(bf),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ae("v-if",!0),yt(I(d(DD),{modelValue:d(y),"onUpdate:modelValue":T[2]||(T[2]=w=>hn(y)?y.value=w:null),"validate-event":!1,class:$([d(o).is("filterable",S.filterable),d(o).be("panel","list")])},{default:L(()=>[(k(!0),z(Ge,null,_t(d(c),w=>(k(),fe(d(Xr),{key:w[d(u).key],class:$(d(o).be("panel","item")),value:w[d(u).key],disabled:w[d(u).disabled],"validate-event":!1},{default:L(()=>{var C;return[I(i,{option:(C=S.optionRender)==null?void 0:C.call(S,w)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[zt,!d(m)&&!d(Mr)(S.data)]]),yt(R("p",{class:$(d(o).be("panel","empty"))},pe(d(m)?d(a)("el.transfer.noMatch"):d(a)("el.transfer.noData")),3),[[zt,d(m)||d(Mr)(S.data)]])],2),d(p)?(k(),z("p",{key:0,class:$(d(o).be("panel","footer"))},[be(S.$slots,"default")],2)):ae("v-if",!0)],2))}});var mx=ze($fe,[["__file","transfer-panel.vue"]]);const Rfe={key:0},Nfe={key:0},Mfe=J({name:"ElTransfer"}),Lfe=J({...Mfe,props:lu,emits:Efe,setup(e,{expose:t,emit:n}){const s=e,r=us(),{t:i}=Wt(),a=Pe("transfer"),{formItem:o}=$s(),l=Ct({leftChecked:[],rightChecked:[]}),u=gh(s),{sourceData:c,targetData:f}=Dfe(s),{onSourceCheckedChange:h,onTargetCheckedChange:g}=Ife(l,n),{addToLeft:m,addToRight:p}=Ofe(s,l,n),y=j(),v=j(),b=P=>{switch(P){case"left":y.value.query="";break;case"right":v.value.query="";break}},S=E(()=>s.buttonTexts.length===2),T=E(()=>s.titles[0]||i("el.transfer.titles.0")),w=E(()=>s.titles[1]||i("el.transfer.titles.1")),C=E(()=>s.filterPlaceholder||i("el.transfer.filterPlaceholder"));xe(()=>s.modelValue,()=>{var P;s.validateEvent&&((P=o==null?void 0:o.validate)==null||P.call(o,"change").catch(M=>void 0))});const O=E(()=>P=>s.renderContent?s.renderContent(lt,P):r.default?r.default({option:P}):lt("span",P[u.value.label]||P[u.value.key]));return t({clearQuery:b,leftPanel:y,rightPanel:v}),(P,M)=>(k(),z("div",{class:$(d(a).b())},[I(mx,{ref_key:"leftPanel",ref:y,data:d(c),"option-render":d(O),placeholder:d(C),title:d(T),filterable:P.filterable,format:P.format,"filter-method":P.filterMethod,"default-checked":P.leftDefaultChecked,props:s.props,onCheckedChange:d(h)},{default:L(()=>[be(P.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),R("div",{class:$(d(a).e("buttons"))},[I(d(gn),{type:"primary",class:$([d(a).e("button"),d(a).is("with-texts",d(S))]),disabled:d(Mr)(l.rightChecked),onClick:d(m)},{default:L(()=>[I(d(tt),null,{default:L(()=>[I(d(mo))]),_:1}),d(Fn)(P.buttonTexts[0])?ae("v-if",!0):(k(),z("span",Rfe,pe(P.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),I(d(gn),{type:"primary",class:$([d(a).e("button"),d(a).is("with-texts",d(S))]),disabled:d(Mr)(l.leftChecked),onClick:d(p)},{default:L(()=>[d(Fn)(P.buttonTexts[1])?ae("v-if",!0):(k(),z("span",Nfe,pe(P.buttonTexts[1]),1)),I(d(tt),null,{default:L(()=>[I(d(Hs))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),I(mx,{ref_key:"rightPanel",ref:v,data:d(f),"option-render":d(O),placeholder:d(C),filterable:P.filterable,format:P.format,"filter-method":P.filterMethod,title:d(w),"default-checked":P.rightDefaultChecked,props:s.props,onCheckedChange:d(g)},{default:L(()=>[be(P.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Bfe=ze(Lfe,[["__file","transfer.vue"]]);const Ffe=Dt(Bfe),xu="$treeNodeId",gx=function(e,t){!t||t[xu]||Object.defineProperty(t,xu,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},F2=function(e,t){return e?t[e]:t[xu]},Pb=(e,t,n)=>{const s=e.value.currentNode;n();const r=e.value.currentNode;s!==r&&t("current-change",r?r.data:null,r)},$b=e=>{let t=!0,n=!0,s=!0;for(let r=0,i=e.length;r<i;r++){const a=e[r];(a.checked!==!0||a.indeterminate)&&(t=!1,a.disabled||(s=!1)),(a.checked!==!1||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:s,half:!t&&!n}},Cd=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:s}=$b(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||Cd(r)},vp=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 Vfe=0,Rb=class Jp{constructor(t){this.id=Vfe++,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)qt(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=vp(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)||gx(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)||gx(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=vp(this,"children")||[];for(let s=0,r=n.length;s<r;s++)this.insertChild({data:n[s]})}get label(){return vp(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return vp(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 Jp)){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=Ct(new Jp(t)),t instanceof Jp&&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||Cd(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:a,allWithoutDisable:o}=$b(this.childNodes);!this.isLeaf&&!a&&o&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let h=0,g=u.length;h<g;h++){const m=u[h];r=r||t!==!1;const p=m.disabled?m.checked:r;m.setChecked(p,n,!0,r)}const{half:c,all:f}=$b(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),Cd(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||s||Cd(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,a)=>{const o=i[xu];!!o&&n.findIndex(u=>u[xu]===o)>=0?s[o]={index:a,data:i}:r.push({index:a,data:i})}),this.store.lazy||n.forEach(i=>{s[i[xu]]||this.removeChildByData(i)}),r.forEach(({index:i,data:a})=>{this.insertChild({data:a},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=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)},r=()=>{this.loading=!1};this.store.load(this,s,r)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const s=n.shift();n.unshift(...s.childNodes),t(s)}}reInitChecked(){this.store.checkStrictly||Cd(this)}};class Ufe{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)qt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Rb({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 a=i.root?i.root.childNodes:i.childNodes;if(a.forEach(o=>{o.visible=n.call(o,t,o.data,o),r(o)}),!i.visible&&a.length){let o=!0;o=!a.some(l=>l.visible),i.root?i.root.visible=o===!1:i.visible=o===!1}t&&i.visible&&!i.isLeaf&&(!s||i.loaded)&&i.expand()};r(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Rb)return t;const n=Pt(t)?F2(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=Tl(n)?this.root:this.getNode(n);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(o=>{(o.checked||n&&o.indeterminate)&&(!t||t&&o.isLeaf)&&s.push(o.data),r(o)})};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)qt(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 a=r[i];this.remove(a.data)}for(let i=0,a=n.length;i<a;i++){const o=n[i];this.append(o,s.data)}}_setCheckedKeys(t,n=!1,s){const r=this._getAllNodes().sort((l,u)=>l.level-u.level),i=Object.create(null),a=Object.keys(s);r.forEach(l=>l.setChecked(!1,!1));const o=l=>{l.childNodes.forEach(u=>{var c;i[u.data[t]]=!0,(c=u.childNodes)!=null&&c.length&&o(u)})};for(let l=0,u=r.length;l<u;l++){const c=r[l],f=c.data[t].toString();if(!a.includes(f)){c.checked&&!i[f]&&c.setChecked(!1,!1);continue}if(c.childNodes.length&&o(c),c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const g=function(m){m.childNodes.forEach(y=>{y.isLeaf||y.setChecked(!1,!1),g(y)})};g(c)}}}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 Hfe=J({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Pe("tree"),n=Je("NodeInstance"),s=Je("RootTree");return()=>{const r=e.node,{data:i,store:a}=r;return e.renderContent?e.renderContent(lt,{_self:n,node:r,data:i,store:a}):be(s.ctx.slots,"default",{node:r,data:i},()=>[lt("span",{class:t.be("node","label")},[r.label])])}}});var zfe=ze(Hfe,[["__file","tree-node-content.vue"]]);function LP(e){const t=Je("TreeNodeMap",null),n={treeNodeExpand:s=>{e.node!==s&&e.node.collapse()},children:[]};return t&&t.children.push(n),Mt("TreeNodeMap",n),{broadcastExpanded:s=>{if(e.accordion)for(const r of n.children)r.treeNodeExpand(s)}}}const BP=Symbol("dragEvents");function jfe({props:e,ctx:t,el$:n,dropIndicator$:s,store:r}){const i=Pe("tree"),a=j({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Mt(BP,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=f,t.emit("node-drag-start",f.node,c)},treeNodeDragOver:({event:c,treeNode:f})=>{const h=f,g=a.value.dropNode;g&&g.node.id!==h.node.id&&Os(g.$el,i.is("drop-inner"));const m=a.value.draggingNode;if(!m||!h)return;let p=!0,y=!0,v=!0,b=!0;typeof e.allowDrop=="function"&&(p=e.allowDrop(m.node,h.node,"prev"),b=y=e.allowDrop(m.node,h.node,"inner"),v=e.allowDrop(m.node,h.node,"next")),c.dataTransfer.dropEffect=y||p||v?"move":"none",(p||y||v)&&(g==null?void 0:g.node.id)!==h.node.id&&(g&&t.emit("node-drag-leave",m.node,g.node,c),t.emit("node-drag-enter",m.node,h.node,c)),p||y||v?a.value.dropNode=h:a.value.dropNode=null,h.node.nextSibling===m.node&&(v=!1),h.node.previousSibling===m.node&&(p=!1),h.node.contains(m.node,!1)&&(y=!1),(m.node===h.node||m.node.contains(h.node))&&(p=!1,y=!1,v=!1);const S=h.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),T=n.value.getBoundingClientRect();let w;const C=p?y?.25:v?.45:1:-1,O=v?y?.75:p?.55:0:1;let P=-9999;const M=c.clientY-S.top;M<S.height*C?w="before":M>S.height*O?w="after":y?w="inner":w="none";const U=h.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),B=s.value;w==="before"?P=U.top-T.top:w==="after"&&(P=U.bottom-T.top),B.style.top=`${P}px`,B.style.left=`${U.right-T.left}px`,w==="inner"?Lr(h.$el,i.is("drop-inner")):Os(h.$el,i.is("drop-inner")),a.value.showDropIndicator=w==="before"||w==="after",a.value.allowDrop=a.value.showDropIndicator||b,a.value.dropType=w,t.emit("node-drag-over",m.node,h.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:h,dropNode:g}=a.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&g){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?g.node.parent.insertBefore(m,g.node):h==="after"?g.node.parent.insertAfter(m,g.node):h==="inner"&&g.node.insertChild(m),h!=="none"&&(r.value.registerNode(m),r.value.key&&f.node.eachNode(p=>{var y;(y=r.value.nodesMap[p.data[r.value.key]])==null||y.setChecked(p.checked,!r.value.checkStrictly)})),Os(g.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,g.node,h,c),h!=="none"&&t.emit("node-drop",f.node,g.node,h,c)}f&&!g&&t.emit("node-drag-end",f.node,null,h,c),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const qfe=J({name:"ElTreeNode",components:{ElCollapseTransition:Yg,ElCheckbox:Xr,NodeContent:zfe,ElIcon:tt,Loading:Ao},props:{node:{type:Rb,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Pe("tree"),{broadcastExpanded:s}=LP(e),r=Je("RootTree"),i=j(!1),a=j(!1),o=j(null),l=j(null),u=j(null),c=Je(BP),f=It();Mt("NodeInstance",f),e.node.expanded&&(i.value=!0,a.value=!0);const h=r.props.props.children||"children";xe(()=>{const M=e.node.data[h];return M&&[...M]},()=>{e.node.updateChildren()}),xe(()=>e.node.indeterminate,M=>{p(e.node.checked,M)}),xe(()=>e.node.checked,M=>{p(M,e.node.indeterminate)}),xe(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),xe(()=>e.node.expanded,M=>{ut(()=>i.value=M),M&&(a.value=!0)});const g=M=>F2(r.props.nodeKey,M.data),m=M=>{const U=e.props.class;if(!U)return{};let B;if(mt(U)){const{data:W}=M;B=U(W,M)}else B=U;return bt(B)?{[B]:!0}:B},p=(M,U)=>{(o.value!==M||l.value!==U)&&r.ctx.emit("check-change",e.node.data,M,U),o.value=M,l.value=U},y=M=>{Pb(r.store,r.ctx.emit,()=>r.store.value.setCurrentNode(e.node)),r.currentNode.value=e.node,r.props.expandOnClickNode&&b(),r.props.checkOnClickNode&&!e.node.disabled&&S(null,{target:{checked:!e.node.checked}}),r.ctx.emit("node-click",e.node.data,e.node,f,M)},v=M=>{r.instance.vnode.props.onNodeContextmenu&&(M.stopPropagation(),M.preventDefault()),r.ctx.emit("node-contextmenu",M,e.node.data,e.node,f)},b=()=>{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)))},S=(M,U)=>{e.node.setChecked(U.target.checked,!r.props.checkStrictly),ut(()=>{const B=r.store.value;r.ctx.emit("check",e.node.data,{checkedNodes:B.getCheckedNodes(),checkedKeys:B.getCheckedKeys(),halfCheckedNodes:B.getHalfCheckedNodes(),halfCheckedKeys:B.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:r,expanded:i,childNodeRendered:a,oldChecked:o,oldIndeterminate:l,getNodeKey:g,getNodeClass:m,handleSelectChange:p,handleClick:y,handleContextMenu:v,handleExpandIconClick:b,handleCheckChange:S,handleChildNodeExpand:(M,U,B)=>{s(U),r.ctx.emit("node-expand",M,U,B)},handleDragStart:M=>{r.props.draggable&&c.treeNodeDragStart({event:M,treeNode:e})},handleDragOver:M=>{M.preventDefault(),r.props.draggable&&c.treeNodeDragOver({event:M,treeNode:{$el:u.value,node:e.node}})},handleDrop:M=>{M.preventDefault()},handleDragEnd:M=>{r.props.draggable&&c.treeNodeDragEnd(M)},CaretRight:Ng}}}),Wfe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Kfe=["aria-expanded"];function Gfe(e,t,n,s,r,i){const a=kt("el-icon"),o=kt("el-checkbox"),l=kt("loading"),u=kt("node-content"),c=kt("el-tree-node"),f=kt("el-collapse-transition");return yt((k(),z("div",{ref:"node$",class:$([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]=vt((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[2]||(t[2]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[3]||(t[3]=vt((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[4]||(t[4]=vt((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[5]||(t[5]=vt((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[6]||(t[6]=vt((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[R("div",{class:$(e.ns.be("node","content")),style:it({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(k(),fe(a,{key:0,class:$([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:vt(e.handleExpandIconClick,["stop"])},{default:L(()=>[(k(),fe(Nt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ae("v-if",!0),e.showCheckbox?(k(),fe(o,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=vt(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ae("v-if",!0),e.node.loading?(k(),fe(a,{key:2,class:$([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:L(()=>[I(l)]),_:1},8,["class"])):ae("v-if",!0),I(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),I(f,null,{default:L(()=>[!e.renderAfterExpand||e.childNodeRendered?yt((k(),z("div",{key:0,class:$(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(k(!0),z(Ge,null,_t(e.node.childNodes,h=>(k(),fe(c,{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,Kfe)),[[zt,e.expanded]]):ae("v-if",!0)]),_:1})],42,Wfe)),[[zt,e.node.visible]])}var Yfe=ze(qfe,[["render",Gfe],["__file","tree-node.vue"]]);function Xfe({el$:e},t){const n=Pe("tree"),s=ln([]),r=ln([]);gt(()=>{a()}),xa(()=>{s.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),xe(r,o=>{o.forEach(l=>{l.setAttribute("tabindex","-1")})}),cn(e,"keydown",o=>{const l=o.target;if(!l.className.includes(n.b("node")))return;const u=o.code;s.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=s.value.indexOf(l);let f;if([ot.up,ot.down].includes(u)){if(o.preventDefault(),u===ot.up){f=c===-1?0:c!==0?c-1:s.value.length-1;const g=f;for(;!t.value.getNode(s.value[f].dataset.key).canFocus;){if(f--,f===g){f=-1;break}f<0&&(f=s.value.length-1)}}else{f=c===-1?0:c<s.value.length-1?c+1:0;const g=f;for(;!t.value.getNode(s.value[f].dataset.key).canFocus;){if(f++,f===g){f=-1;break}f>=s.value.length&&(f=0)}}f!==-1&&s.value[f].focus()}[ot.left,ot.right].includes(u)&&(o.preventDefault(),l.click());const h=l.querySelector('[type="checkbox"]');[ot.enter,ot.space].includes(u)&&h&&(o.preventDefault(),h.click())});const a=()=>{var o;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}(o=s.value[0])==null||o.setAttribute("tabindex","0")}}const Qfe=J({name:"ElTree",components:{ElTreeNode:Yfe},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:sn}},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}=Wt(),s=Pe("tree"),r=Je(Dc,null),i=j(new Ufe({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}));i.value.initialize();const a=j(i.value.root),o=j(null),l=j(null),u=j(null),{broadcastExpanded:c}=LP(e),{dragState:f}=jfe({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});Xfe({el$:l},i);const h=E(()=>{const{childNodes:V}=a.value,N=r?r.hasFilteredOptions!==0:!1;return(!V||V.length===0||V.every(({visible:Y})=>!Y))&&!N});xe(()=>e.currentNodeKey,V=>{i.value.setCurrentNodeKey(V)}),xe(()=>e.defaultCheckedKeys,V=>{i.value.setDefaultCheckedKey(V)}),xe(()=>e.defaultExpandedKeys,V=>{i.value.setDefaultExpandedKeys(V)}),xe(()=>e.data,V=>{i.value.setData(V)},{deep:!0}),xe(()=>e.checkStrictly,V=>{i.value.checkStrictly=V});const g=V=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(V)},m=V=>F2(e.nodeKey,V.data),p=V=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const N=i.value.getNode(V);if(!N)return[];const Y=[N.data];let Z=N.parent;for(;Z&&Z!==a.value;)Y.push(Z.data),Z=Z.parent;return Y.reverse()},y=(V,N)=>i.value.getCheckedNodes(V,N),v=V=>i.value.getCheckedKeys(V),b=()=>{const V=i.value.getCurrentNode();return V?V.data:null},S=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const V=b();return V?V[e.nodeKey]:null},T=(V,N)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(V,N)},w=(V,N)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(V,N)},C=(V,N,Y)=>{i.value.setChecked(V,N,Y)},O=()=>i.value.getHalfCheckedNodes(),P=()=>i.value.getHalfCheckedKeys(),M=(V,N=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Pb(i,t.emit,()=>i.value.setUserCurrentNode(V,N))},U=(V,N=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Pb(i,t.emit,()=>i.value.setCurrentNodeKey(V,N))},B=V=>i.value.getNode(V),W=V=>{i.value.remove(V)},Q=(V,N)=>{i.value.append(V,N)},G=(V,N)=>{i.value.insertBefore(V,N)},X=(V,N)=>{i.value.insertAfter(V,N)},q=(V,N,Y)=>{c(N),t.emit("node-expand",V,N,Y)},H=(V,N)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(V,N)};return Mt("RootTree",{ctx:t,props:e,store:i,root:a,currentNode:o,instance:It()}),Mt(qi,void 0),{ns:s,store:i,root:a,currentNode:o,dragState:f,el$:l,dropIndicator$:u,isEmpty:h,filter:g,getNodeKey:m,getNodePath:p,getCheckedNodes:y,getCheckedKeys:v,getCurrentNode:b,getCurrentKey:S,setCheckedNodes:T,setCheckedKeys:w,setChecked:C,getHalfCheckedNodes:O,getHalfCheckedKeys:P,setCurrentNode:M,setCurrentKey:U,t:n,getNode:B,remove:W,append:Q,insertBefore:G,insertAfter:X,handleNodeExpand:q,updateKeyChildren:H}}});function Jfe(e,t,n,s,r,i){const a=kt("el-tree-node");return k(),z("div",{ref:"el$",class:$([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"},[(k(!0),z(Ge,null,_t(e.root.childNodes,o=>(k(),fe(a,{key:e.getNodeKey(o),node:o,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?(k(),z("div",{key:0,class:$(e.ns.e("empty-block"))},[be(e.$slots,"empty",{},()=>{var o;return[R("span",{class:$(e.ns.e("empty-text"))},pe((o=e.emptyText)!=null?o:e.t("el.tree.emptyText")),3)]})],2)):ae("v-if",!0),yt(R("div",{ref:"dropIndicator$",class:$(e.ns.e("drop-indicator"))},null,2),[[zt,e.dragState.showDropIndicator]])],2)}var Zp=ze(Qfe,[["render",Jfe],["__file","tree.vue"]]);Zp.install=e=>{e.component(Zp.name,Zp)};const Bm=Zp,Zfe=Bm,ehe=(e,{attrs:t,emit:n},{select:s,tree:r,key:i})=>{const a=Pe("tree-select");return xe(()=>e.data,()=>{e.filterable&&ut(()=>{var l,u;(u=r.value)==null||u.filter((l=s.value)==null?void 0:l.states.inputValue)})},{flush:"post"}),{...Oi(ms(e),Object.keys(mi.props)),...t,"onUpdate:modelValue":l=>n($t,l),valueKey:i,popperClass:E(()=>{const l=[a.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{var u;e.filterMethod?e.filterMethod(l):e.remoteMethod?e.remoteMethod(l):(u=r.value)==null||u.filter(l)}}},the=J({extends:bo,setup(e,t){const n=bo.setup(e,t);delete n.selectOptionClick;const s=It().proxy;return ut(()=>{n.select.states.cachedOptions.get(s.value)||n.select.onOptionCreate(s)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Nb(e){return e||e===0}function V2(e){return Array.isArray(e)&&e.length}function cd(e){return Array.isArray(e)?e:Nb(e)?[e]:[]}function em(e,t,n,s,r){for(let i=0;i<e.length;i++){const a=e[i];if(t(a,i,e,r))return s?s(a,i,e,r):a;{const o=n(a);if(V2(o)){const l=em(o,t,n,s,a);if(l)return l}}}}function Mb(e,t,n,s){for(let r=0;r<e.length;r++){const i=e[r];t(i,r,e,s);const a=n(i);V2(a)&&Mb(a,t,n,i)}}const nhe=(e,{attrs:t,slots:n,emit:s},{select:r,tree:i,key:a})=>{xe(()=>e.modelValue,()=>{e.showCheckbox&&ut(()=>{const f=i.value;f&&!Ds(f.getCheckedKeys(),cd(e.modelValue))&&f.setCheckedKeys(cd(e.modelValue))})},{immediate:!0,deep:!0});const o=E(()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(f,h)=>{var g;const m=o.value[f];return mt(m)?m(h,(g=i.value)==null?void 0:g.getNode(l("value",h))):h[m]},u=cd(e.modelValue).map(f=>em(e.data||[],h=>l("value",h)===f,h=>l("children",h),(h,g,m,p)=>p&&l("value",p))).filter(f=>Nb(f)),c=E(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const f=[];return Mb(e.data.concat(e.cacheData),h=>{const g=l("value",h);f.push({value:g,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),f});return{...Oi(ms(e),Object.keys(Bm.props)),...t,nodeKey:a,expandOnClickNode:E(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:E(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(f,{node:h,data:g,store:m})=>f(the,{value:l("value",g),label:l("label",g),disabled:l("disabled",g)},e.renderContent?()=>e.renderContent(f,{node:h,data:g,store:m}):n.default?()=>n.default({node:h,data:g,store:m}):void 0),filterNodeMethod:(f,h,g)=>e.filterNodeMethod?e.filterNodeMethod(f,h,g):f?new RegExp(v1(f),"i").test(l("label",h)||""):!0,onNodeClick:(f,h,g)=>{var m,p,y,v;if((m=t.onNodeClick)==null||m.call(t,f,h,g),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!l("disabled",f)){const b=(p=r.value)==null?void 0:p.states.options.get(l("value",f));(y=r.value)==null||y.handleOptionSelect(b)}}else e.expandOnClickNode&&g.proxy.handleExpandIconClick();(v=r.value)==null||v.focus()}},onCheck:(f,h)=>{var g;if(!e.showCheckbox)return;const m=l("value",f),p={};Mb([i.value.store.root],S=>p[S.key]=S,S=>S.childNodes);const y=h.checkedKeys,v=e.multiple?cd(e.modelValue).filter(S=>!(S in p)&&!y.includes(S)):[],b=v.concat(y);if(e.checkStrictly)s($t,e.multiple?b:b.includes(m)?m:void 0);else if(e.multiple)s($t,v.concat(i.value.getCheckedKeys(!0)));else{const S=em([f],C=>!V2(l("children",C))&&!l("disabled",C),C=>l("children",C)),T=S?l("value",S):void 0,w=Nb(e.modelValue)&&!!em([f],C=>l("value",C)===e.modelValue,C=>l("children",C));s($t,T===e.modelValue||w?void 0:T)}ut(()=>{var S;const T=cd(e.modelValue);i.value.setCheckedKeys(T),(S=t.onCheck)==null||S.call(t,f,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})}),(g=r.value)==null||g.focus()},cacheOptions:c}};var she=J({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Je(Dc);return xe(()=>e.data,()=>{var n;e.data.forEach(r=>{t.states.cachedOptions.has(r.value)||t.states.cachedOptions.set(r.value,r)});const s=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Array.from(s).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const rhe=J({name:"ElTreeSelect",inheritAttrs:!1,props:{...mi.props,...Bm.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:s}=t,r=j(),i=j(),a=E(()=>e.nodeKey||e.valueKey||"value"),o=ehe(e,t,{select:r,tree:i,key:a}),{cacheOptions:l,...u}=nhe(e,t,{select:r,tree:i,key:a}),c=Ct({});return s(c),gt(()=>{Object.assign(c,{...Oi(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Oi(r.value,["focus","blur"])})}),()=>lt(mi,Ct({...o,ref:f=>r.value=f}),{...n,default:()=>[lt(she,{data:l.value}),lt(Bm,Ct({...u,ref:f=>i.value=f}))]})}});var tm=ze(rhe,[["__file","tree-select.vue"]]);tm.install=e=>{e.component(tm.name,tm)};const ihe=tm,ahe=ihe,U2=Symbol(),ohe={key:-1,level:-1,data:{}};var Ed=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Ed||{}),Lb=(e=>(e.ADD="add",e.DELETE="delete",e))(Lb||{});const FP={type:Number,default:26},lhe=Ve({data:{type:le(Array),default:()=>wn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:le(Object),default:()=>wn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:le(Array),default:()=>wn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:le(Array),default:()=>wn([])},indent:{type:Number,default:16},itemSize:FP,icon:{type:sn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:le([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:le(Function)},perfMode:{type:Boolean,default:!0}}),uhe=Ve({node:{type:le(Object),default:()=>wn(ohe)},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:FP}),che=Ve({node:{type:le(Object),required:!0}}),VP="node-click",UP="node-expand",HP="node-collapse",zP="current-change",jP="check",qP="check-change",WP="node-contextmenu",dhe={[VP]:(e,t,n)=>e&&t&&n,[UP]:(e,t)=>e&&t,[HP]:(e,t)=>e&&t,[zP]:(e,t)=>e&&t,[jP]:(e,t)=>e&&t,[qP]:(e,t)=>e&&typeof t=="boolean",[WP]:(e,t,n)=>e&&t&&n},fhe={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function hhe(e,t){const n=j(new Set),s=j(new Set),{emit:r}=It();xe([()=>t.value,()=>e.defaultCheckedKeys],()=>ut(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:S,maxLevel:T}=t.value,w=n.value,C=new Set;for(let O=T-1;O>=1;--O){const P=S.get(O);P&&P.forEach(M=>{const U=M.children;if(U){let B=!0,W=!1;for(const Q of U){const G=Q.key;if(w.has(G))W=!0;else if(C.has(G)){B=!1,W=!0;break}else B=!1}B?w.add(M.key):W?(C.add(M.key),w.delete(M.key)):(w.delete(M.key),C.delete(M.key))}})}s.value=C},a=S=>n.value.has(S.key),o=S=>s.value.has(S.key),l=(S,T,w=!0)=>{const C=n.value,O=(P,M)=>{C[M?Lb.ADD:Lb.DELETE](P.key);const U=P.children;!e.checkStrictly&&U&&U.forEach(B=>{B.disabled||O(B,M)})};O(S,T),i(),w&&u(S,T)},u=(S,T)=>{const{checkedNodes:w,checkedKeys:C}=m(),{halfCheckedNodes:O,halfCheckedKeys:P}=p();r(jP,S.data,{checkedKeys:C,checkedNodes:w,halfCheckedKeys:P,halfCheckedNodes:O}),r(qP,S.data,T)};function c(S=!1){return m(S).checkedKeys}function f(S=!1){return m(S).checkedNodes}function h(){return p().halfCheckedKeys}function g(){return p().halfCheckedNodes}function m(S=!1){const T=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:C}=t.value;n.value.forEach(O=>{const P=C.get(O);P&&(!S||S&&P.isLeaf)&&(w.push(O),T.push(P.data))})}return{checkedKeys:w,checkedNodes:T}}function p(){const S=[],T=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:w}=t.value;s.value.forEach(C=>{const O=w.get(C);O&&(T.push(C),S.push(O.data))})}return{halfCheckedNodes:S,halfCheckedKeys:T}}function y(S){n.value.clear(),s.value.clear(),ut(()=>{b(S)})}function v(S,T){if(t!=null&&t.value&&e.showCheckbox){const w=t.value.treeNodeMap.get(S);w&&l(w,T,!1)}}function b(S){if(t!=null&&t.value){const{treeNodeMap:T}=t.value;if(e.showCheckbox&&T&&S)for(const w of S){const C=T.get(w);C&&!a(C)&&l(C,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:a,isIndeterminate:o,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:g,setChecked:v,setCheckedKeys:y}}function phe(e,t){const n=j(new Set([])),s=j(new Set([])),r=E(()=>mt(e.filterMethod));function i(o){var l;if(!r.value)return;const u=new Set,c=s.value,f=n.value,h=[],g=((l=t.value)==null?void 0:l.treeNodes)||[],m=e.filterMethod;f.clear();function p(y){y.forEach(v=>{h.push(v),m!=null&&m(o,v.data)?h.forEach(S=>{u.add(S.key)}):v.isLeaf&&f.add(v.key);const b=v.children;if(b&&p(b),!v.isLeaf){if(!u.has(v.key))f.add(v.key);else if(b){let S=!0;for(const T of b)if(!f.has(T.key)){S=!1;break}S?c.add(v.key):c.delete(v.key)}}h.pop()})}return p(g),u}function a(o){return s.value.has(o.key)}return{hiddenExpandIconKeySet:s,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:a}}function mhe(e,t){const n=j(new Set(e.defaultExpandedKeys)),s=j(),r=ln();xe(()=>e.currentNodeKey,ie=>{s.value=ie},{immediate:!0}),xe(()=>e.data,ie=>{ce(ie)},{immediate:!0});const{isIndeterminate:i,isChecked:a,toggleCheckbox:o,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:g}=hhe(e,r),{doFilter:m,hiddenNodeKeySet:p,isForceHiddenExpandIcon:y}=phe(e,r),v=E(()=>{var ie;return((ie=e.props)==null?void 0:ie.value)||Ed.KEY}),b=E(()=>{var ie;return((ie=e.props)==null?void 0:ie.children)||Ed.CHILDREN}),S=E(()=>{var ie;return((ie=e.props)==null?void 0:ie.disabled)||Ed.DISABLED}),T=E(()=>{var ie;return((ie=e.props)==null?void 0:ie.label)||Ed.LABEL}),w=E(()=>{const ie=n.value,we=p.value,me=[],Ce=r.value&&r.value.treeNodes||[];function Be(){const ee=[];for(let se=Ce.length-1;se>=0;--se)ee.push(Ce[se]);for(;ee.length;){const se=ee.pop();if(se&&(we.has(se.key)||me.push(se),ie.has(se.key))){const Te=se.children;if(Te){const Le=Te.length;for(let Se=Le-1;Se>=0;--Se)ee.push(Te[Se])}}}}return Be(),me}),C=E(()=>w.value.length>0);function O(ie){const we=new Map,me=new Map;let Ce=1;function Be(se,Te=1,Le=void 0){var Se;const De=[];for(const Fe of se){const Ie=U(Fe),je={level:Te,key:Ie,data:Fe};je.label=W(Fe),je.parent=Le;const Ee=M(Fe);je.disabled=B(Fe),je.isLeaf=!Ee||Ee.length===0,Ee&&Ee.length&&(je.children=Be(Ee,Te+1,je)),De.push(je),we.set(Ie,je),me.has(Te)||me.set(Te,[]),(Se=me.get(Te))==null||Se.push(je)}return Te>Ce&&(Ce=Te),De}const ee=Be(ie);return{treeNodeMap:we,levelTreeNodeMap:me,maxLevel:Ce,treeNodes:ee}}function P(ie){const we=m(ie);we&&(n.value=we)}function M(ie){return ie[b.value]}function U(ie){return ie?ie[v.value]:""}function B(ie){return ie[S.value]}function W(ie){return ie[T.value]}function Q(ie){n.value.has(ie.key)?N(ie):V(ie)}function G(ie){n.value=new Set(ie)}function X(ie,we){t(VP,ie.data,ie,we),q(ie),e.expandOnClickNode&&Q(ie),e.showCheckbox&&e.checkOnClickNode&&!ie.disabled&&o(ie,!a(ie),!0)}function q(ie){ne(ie)||(s.value=ie.key,t(zP,ie.data,ie))}function H(ie,we){o(ie,we)}function V(ie){const we=n.value;if(r.value&&e.accordion){const{treeNodeMap:me}=r.value;we.forEach(Ce=>{const Be=me.get(Ce);ie&&ie.level===(Be==null?void 0:Be.level)&&we.delete(Ce)})}we.add(ie.key),t(UP,ie.data,ie)}function N(ie){n.value.delete(ie.key),t(HP,ie.data,ie)}function Y(ie){return n.value.has(ie.key)}function Z(ie){return!!ie.disabled}function ne(ie){const we=s.value;return we!==void 0&&we===ie.key}function ue(){var ie,we;if(s.value)return(we=(ie=r.value)==null?void 0:ie.treeNodeMap.get(s.value))==null?void 0:we.data}function _e(){return s.value}function Ne(ie){s.value=ie}function ce(ie){ut(()=>r.value=O(ie))}function te(ie){var we;const me=Pt(ie)?U(ie):ie;return(we=r.value)==null?void 0:we.treeNodeMap.get(me)}return{tree:r,flattenTree:w,isNotEmpty:C,getKey:U,getChildren:M,toggleExpand:Q,toggleCheckbox:o,isExpanded:Y,isChecked:a,isIndeterminate:i,isDisabled:Z,isCurrent:ne,isForceHiddenExpandIcon:y,handleNodeClick:X,handleNodeCheck:H,getCurrentNode:ue,getCurrentKey:_e,setCurrentKey:Ne,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:g,filter:P,setData:ce,getNode:te,expandNode:V,collapseNode:N,setExpandedKeys:G}}var ghe=J({name:"ElTreeNodeContent",props:che,setup(e){const t=Je(U2),n=Pe("tree");return()=>{const s=e.node,{data:r}=s;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:s,data:r}):lt("span",{class:n.be("node","label")},[s==null?void 0:s.label])}}});const vhe=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],yhe=J({name:"ElTreeNode"}),bhe=J({...yhe,props:uhe,emits:fhe,setup(e,{emit:t}){const n=e,s=Je(U2),r=Pe("tree"),i=E(()=>{var f;return(f=s==null?void 0:s.props.indent)!=null?f:16}),a=E(()=>{var f;return(f=s==null?void 0:s.props.icon)!=null?f:Ng}),o=f=>{t("click",n.node,f)},l=()=>{t("toggle",n.node)},u=f=>{t("check",n.node,f)},c=f=>{var h,g,m,p;(m=(g=(h=s==null?void 0:s.instance)==null?void 0:h.vnode)==null?void 0:g.props)!=null&&m.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),s==null||s.ctx.emit(WP,f,(p=n.node)==null?void 0:p.data,n.node)};return(f,h)=>{var g,m,p;return k(),z("div",{ref:"node$",class:$([d(r).b("node"),d(r).is("expanded",f.expanded),d(r).is("current",f.current),d(r).is("focusable",!f.disabled),d(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":(g=f.node)==null?void 0:g.key,onClick:vt(o,["stop"]),onContextmenu:c},[R("div",{class:$(d(r).be("node","content")),style:it({paddingLeft:`${(f.node.level-1)*d(i)}px`,height:f.itemSize+"px"})},[d(a)?(k(),fe(d(tt),{key:0,class:$([d(r).is("leaf",!!((m=f.node)!=null&&m.isLeaf)),d(r).is("hidden",f.hiddenExpandIcon),{expanded:!((p=f.node)!=null&&p.isLeaf)&&f.expanded},d(r).be("node","expand-icon")]),onClick:vt(l,["stop"])},{default:L(()=>[(k(),fe(Nt(d(a))))]),_:1},8,["class","onClick"])):ae("v-if",!0),f.showCheckbox?(k(),fe(d(Xr),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:h[0]||(h[0]=vt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ae("v-if",!0),I(d(ghe),{node:f.node},null,8,["node"])],6)],42,vhe)}}});var _he=ze(bhe,[["__file","tree-node.vue"]]);const She=J({name:"ElTreeV2"}),whe=J({...She,props:lhe,emits:dhe,setup(e,{expose:t,emit:n}){const s=e,r=us(),i=E(()=>s.itemSize);Mt(U2,{ctx:{emit:n,slots:r},props:s,instance:It()}),Mt(qi,void 0);const{t:a}=Wt(),o=Pe("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:h,isChecked:g,isDisabled:m,isCurrent:p,isForceHiddenExpandIcon:y,handleNodeClick:v,handleNodeCheck:b,toggleCheckbox:S,getCurrentNode:T,getCurrentKey:w,setCurrentKey:C,getCheckedKeys:O,getCheckedNodes:P,getHalfCheckedKeys:M,getHalfCheckedNodes:U,setChecked:B,setCheckedKeys:W,filter:Q,setData:G,getNode:X,expandNode:q,collapseNode:H,setExpandedKeys:V}=mhe(s,n);return t({toggleCheckbox:S,getCurrentNode:T,getCurrentKey:w,setCurrentKey:C,getCheckedKeys:O,getCheckedNodes:P,getHalfCheckedKeys:M,getHalfCheckedNodes:U,setChecked:B,setCheckedKeys:W,filter:Q,setData:G,getNode:X,expandNode:q,collapseNode:H,setExpandedKeys:V}),(N,Y)=>{var Z;return k(),z("div",{class:$([d(o).b(),{[d(o).m("highlight-current")]:N.highlightCurrent}]),role:"tree"},[d(u)?(k(),fe(d(XO),{key:0,"class-name":d(o).b("virtual-list"),data:d(l),total:d(l).length,height:N.height,"item-size":d(i),"perf-mode":N.perfMode},{default:L(({data:ne,index:ue,style:_e})=>[(k(),fe(_he,{key:ne[ue].key,style:it(_e),node:ne[ue],expanded:d(f)(ne[ue]),"show-checkbox":N.showCheckbox,checked:d(g)(ne[ue]),indeterminate:d(h)(ne[ue]),"item-size":d(i),disabled:d(m)(ne[ue]),current:d(p)(ne[ue]),"hidden-expand-icon":d(y)(ne[ue]),onClick:d(v),onToggle:d(c),onCheck:d(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(k(),z("div",{key:1,class:$(d(o).e("empty-block"))},[R("span",{class:$(d(o).e("empty-text"))},pe((Z=N.emptyText)!=null?Z:d(a)("el.tree.emptyText")),3)],2))],2)}}});var The=ze(whe,[["__file","tree.vue"]]);const Che=Dt(The),KP=Symbol("uploadContextKey"),Ehe="ElUpload";class xhe extends Error{constructor(t,n,s,r){super(t),this.name="UploadAjaxError",this.status=n,this.method=s,this.url=r}}function vx(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 xhe(s,n.status,t.method,e)}function khe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Ahe=e=>{typeof XMLHttpRequest>"u"&&Zn(Ehe,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const a=i;a.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(a)});const s=new FormData;if(e.data)for(const[i,a]of Object.entries(e.data))Xe(a)&&a.length?s.append(i,...a):s.append(i,a);s.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(vx(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(vx(n,e,t));e.onSuccess(khe(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,a)=>t.setRequestHeader(a,i));else for(const[i,a]of Object.entries(r))os(a)||t.setRequestHeader(i,String(a));return t.send(s),t},GP=["text","picture","picture-card"];let Ihe=1;const Bb=()=>Date.now()+Ihe++,YP=Ve({action:{type:String,default:"#"},headers:{type:le(Object)},method:{type:String,default:"post"},data:{type:le([Object,Function,Promise]),default:()=>wn({})},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:""},fileList:{type:le(Array),default:()=>wn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:GP,default:"text"},httpRequest:{type:le(Function),default:Ahe},disabled:Boolean,limit:Number}),Dhe=Ve({...YP,beforeUpload:{type:le(Function),default:Jt},beforeRemove:{type:le(Function)},onRemove:{type:le(Function),default:Jt},onChange:{type:le(Function),default:Jt},onPreview:{type:le(Function),default:Jt},onSuccess:{type:le(Function),default:Jt},onProgress:{type:le(Function),default:Jt},onError:{type:le(Function),default:Jt},onExceed:{type:le(Function),default:Jt},crossorigin:{type:le(String)}}),Ohe=Ve({files:{type:le(Array),default:()=>wn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:le(Function),default:Jt},listType:{type:String,values:GP,default:"text"},crossorigin:{type:le(String)}}),Phe={remove:e=>!!e},$he=["onKeydown"],Rhe=["src","crossorigin"],Nhe=["onClick"],Mhe=["title"],Lhe=["onClick"],Bhe=["onClick"],Fhe=J({name:"ElUploadList"}),Vhe=J({...Fhe,props:Ohe,emits:Phe,setup(e,{emit:t}){const n=e,{t:s}=Wt(),r=Pe("upload"),i=Pe("icon"),a=Pe("list"),o=Gs(),l=j(!1),u=E(()=>[r.b("list"),r.bm("list",n.listType),r.is("disabled",n.disabled)]),c=f=>{t("remove",f)};return(f,h)=>(k(),fe(q4,{tag:"ul",class:$(d(u)),name:d(a).b()},{default:L(()=>[(k(!0),z(Ge,null,_t(f.files,g=>(k(),z("li",{key:g.uid||g.name,class:$([d(r).be("list","item"),d(r).is(g.status),{focusing:l.value}]),tabindex:"0",onKeydown:Zt(m=>!d(o)&&c(g),["delete"]),onFocus:h[0]||(h[0]=m=>l.value=!0),onBlur:h[1]||(h[1]=m=>l.value=!1),onClick:h[2]||(h[2]=m=>l.value=!1)},[be(f.$slots,"default",{file:g},()=>[f.listType==="picture"||g.status!=="uploading"&&f.listType==="picture-card"?(k(),z("img",{key:0,class:$(d(r).be("list","item-thumbnail")),src:g.url,crossorigin:f.crossorigin,alt:""},null,10,Rhe)):ae("v-if",!0),g.status==="uploading"||f.listType!=="picture-card"?(k(),z("div",{key:1,class:$(d(r).be("list","item-info"))},[R("a",{class:$(d(r).be("list","item-name")),onClick:vt(m=>f.handlePreview(g),["prevent"])},[I(d(tt),{class:$(d(i).m("document"))},{default:L(()=>[I(d(ej))]),_:1},8,["class"]),R("span",{class:$(d(r).be("list","item-file-name")),title:g.name},pe(g.name),11,Mhe)],10,Nhe),g.status==="uploading"?(k(),fe(d(UO),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(g.percentage),style:it(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ae("v-if",!0)],2)):ae("v-if",!0),R("label",{class:$(d(r).be("list","item-status-label"))},[f.listType==="text"?(k(),fe(d(tt),{key:0,class:$([d(i).m("upload-success"),d(i).m("circle-check")])},{default:L(()=>[I(d(b1))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(k(),fe(d(tt),{key:1,class:$([d(i).m("upload-success"),d(i).m("check")])},{default:L(()=>[I(d(eh))]),_:1},8,["class"])):ae("v-if",!0)],2),d(o)?ae("v-if",!0):(k(),fe(d(tt),{key:2,class:$(d(i).m("close")),onClick:m=>c(g)},{default:L(()=>[I(d(hi))]),_:2},1032,["class","onClick"])),ae(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ae(" This is a bug which needs to be fixed "),ae(" TODO: Fix the incorrect navigation interaction "),d(o)?ae("v-if",!0):(k(),z("i",{key:3,class:$(d(i).m("close-tip"))},pe(d(s)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(k(),z("span",{key:4,class:$(d(r).be("list","item-actions"))},[R("span",{class:$(d(r).be("list","item-preview")),onClick:m=>f.handlePreview(g)},[I(d(tt),{class:$(d(i).m("zoom-in"))},{default:L(()=>[I(d(E1))]),_:1},8,["class"])],10,Lhe),d(o)?ae("v-if",!0):(k(),z("span",{key:0,class:$(d(r).be("list","item-delete")),onClick:m=>c(g)},[I(d(tt),{class:$(d(i).m("delete"))},{default:L(()=>[I(d(Ec))]),_:1},8,["class"])],10,Bhe))],2)):ae("v-if",!0)])],42,$he))),128)),be(f.$slots,"append")]),_:3},8,["class","name"]))}});var yx=ze(Vhe,[["__file","upload-list.vue"]]);const Uhe=Ve({disabled:{type:Boolean,default:!1}}),Hhe={file:e=>Xe(e)},zhe=["onDrop","onDragover"],XP="ElUploadDrag",jhe=J({name:XP}),qhe=J({...jhe,props:Uhe,emits:Hhe,setup(e,{emit:t}){Je(KP)||Zn(XP,"usage: <el-upload><el-upload-dragger /></el-upload>");const s=Pe("upload"),r=j(!1),i=Gs(),a=l=>{if(i.value)return;r.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files);t("file",u)},o=()=>{i.value||(r.value=!0)};return(l,u)=>(k(),z("div",{class:$([d(s).b("dragger"),d(s).is("dragover",r.value)]),onDrop:vt(a,["prevent"]),onDragover:vt(o,["prevent"]),onDragleave:u[0]||(u[0]=vt(c=>r.value=!1,["prevent"]))},[be(l.$slots,"default")],42,zhe))}});var Whe=ze(qhe,[["__file","upload-dragger.vue"]]);const Khe=Ve({...YP,beforeUpload:{type:le(Function),default:Jt},onRemove:{type:le(Function),default:Jt},onStart:{type:le(Function),default:Jt},onSuccess:{type:le(Function),default:Jt},onProgress:{type:le(Function),default:Jt},onError:{type:le(Function),default:Jt},onExceed:{type:le(Function),default:Jt}}),Ghe=["onKeydown"],Yhe=["name","multiple","accept"],Xhe=J({name:"ElUploadContent",inheritAttrs:!1}),Qhe=J({...Xhe,props:Khe,setup(e,{expose:t}){const n=e,s=Pe("upload"),r=Gs(),i=ln({}),a=ln(),o=p=>{if(p.length===0)return;const{autoUpload:y,limit:v,fileList:b,multiple:S,onStart:T,onExceed:w}=n;if(v&&b.length+p.length>v){w(p,b);return}S||(p=p.slice(0,1));for(const C of p){const O=C;O.uid=Bb(),T(O),y&&l(O)}},l=async p=>{if(a.value.value="",!n.beforeUpload)return c(p);let y,v={};try{const S=n.data,T=n.beforeUpload(p);v=dm(n.data)?wm(n.data):n.data,y=await T,dm(n.data)&&Ds(S,v)&&(v=wm(n.data))}catch{y=!1}if(y===!1){n.onRemove(p);return}let b=p;y instanceof Blob&&(y instanceof File?b=y:b=new File([y],p.name,{type:p.type})),c(Object.assign(b,{uid:p.uid}),v)},u=async(p,y)=>mt(p)?p(y):p,c=async(p,y)=>{const{headers:v,data:b,method:S,withCredentials:T,name:w,action:C,onProgress:O,onSuccess:P,onError:M,httpRequest:U}=n;try{y=await u(y??b,p)}catch{n.onRemove(p);return}const{uid:B}=p,W={headers:v||{},withCredentials:T,file:p,data:y,method:S,filename:w,action:C,onProgress:G=>{O(G,p)},onSuccess:G=>{P(G,p),delete i.value[B]},onError:G=>{M(G,p),delete i.value[B]}},Q=U(W);i.value[B]=Q,Q instanceof Promise&&Q.then(W.onSuccess,W.onError)},f=p=>{const y=p.target.files;y&&o(Array.from(y))},h=()=>{r.value||(a.value.value="",a.value.click())},g=()=>{h()};return t({abort:p=>{bz(i.value).filter(p?([v])=>String(p.uid)===v:()=>!0).forEach(([v,b])=>{b instanceof XMLHttpRequest&&b.abort(),delete i.value[v]})},upload:l}),(p,y)=>(k(),z("div",{class:$([d(s).b(),d(s).m(p.listType),d(s).is("drag",p.drag)]),tabindex:"0",onClick:h,onKeydown:Zt(vt(g,["self"]),["enter","space"])},[p.drag?(k(),fe(Whe,{key:0,disabled:d(r),onFile:o},{default:L(()=>[be(p.$slots,"default")]),_:3},8,["disabled"])):be(p.$slots,"default",{key:1}),R("input",{ref_key:"inputRef",ref:a,class:$(d(s).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:y[0]||(y[0]=vt(()=>{},["stop"]))},null,42,Yhe)],42,Ghe))}});var bx=ze(Qhe,[["__file","upload-content.vue"]]);const _x="ElUpload",Sx=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Jhe=(e,t)=>{const n=e3(e,"fileList",void 0,{passive:!0}),s=h=>n.value.find(g=>g.uid===h.uid);function r(h){var g;(g=t.value)==null||g.abort(h)}function i(h=["ready","uploading","success","fail"]){n.value=n.value.filter(g=>!h.includes(g.status))}const a=(h,g)=>{const m=s(g);m&&(console.error(h),m.status="fail",n.value.splice(n.value.indexOf(m),1),e.onError(h,m,n.value),e.onChange(m,n.value))},o=(h,g)=>{const m=s(g);m&&(e.onProgress(h,m,n.value),m.status="uploading",m.percentage=Math.round(h.percent))},l=(h,g)=>{const m=s(g);m&&(m.status="success",m.response=h,e.onSuccess(h,m,n.value),e.onChange(m,n.value))},u=h=>{os(h.uid)&&(h.uid=Bb());const g={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{g.url=URL.createObjectURL(h)}catch(m){m.message,e.onError(m,g,n.value)}n.value=[...n.value,g],e.onChange(g,n.value)},c=async h=>{const g=h instanceof File?s(h):h;g||Zn(_x,"file to be removed not found");const m=p=>{r(p);const y=n.value;y.splice(y.indexOf(p),1),e.onRemove(p,y),Sx(p)};e.beforeRemove?await e.beforeRemove(g,n.value)!==!1&&m(g):m(g)};function f(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var g;return h&&((g=t.value)==null?void 0:g.upload(h))})}return xe(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(g=>{const{raw:m,url:p}=g;if(!p&&m)try{g.url=URL.createObjectURL(m)}catch(y){e.onError(y,g,n.value)}return g}))}),xe(n,h=>{for(const g of h)g.uid||(g.uid=Bb()),g.status||(g.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:r,clearFiles:i,handleError:a,handleProgress:o,handleStart:u,handleSuccess:l,handleRemove:c,submit:f,revokeFileObjectURL:Sx}},Zhe=J({name:"ElUpload"}),epe=J({...Zhe,props:Dhe,setup(e,{expose:t}){const n=e,s=Gs(),r=ln(),{abort:i,submit:a,clearFiles:o,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:h,handleProgress:g,revokeFileObjectURL:m}=Jhe(n,r),p=E(()=>n.listType==="picture-card"),y=E(()=>({...n,fileList:l.value,onStart:u,onProgress:g,onSuccess:h,onError:c,onRemove:f}));return un(()=>{l.value.forEach(m)}),Mt(KP,{accept:nn(n,"accept")}),t({abort:i,submit:a,clearFiles:o,handleStart:u,handleRemove:f}),(v,b)=>(k(),z("div",null,[d(p)&&v.showFileList?(k(),fe(yx,{key:0,disabled:d(s),"list-type":v.listType,files:d(l),crossorigin:v.crossorigin,"handle-preview":v.onPreview,onRemove:d(f)},ma({append:L(()=>[I(bx,Lt({ref_key:"uploadRef",ref:r},d(y)),{default:L(()=>[v.$slots.trigger?be(v.$slots,"trigger",{key:0}):ae("v-if",!0),!v.$slots.trigger&&v.$slots.default?be(v.$slots,"default",{key:1}):ae("v-if",!0)]),_:3},16)]),_:2},[v.$slots.file?{name:"default",fn:L(({file:S})=>[be(v.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ae("v-if",!0),!d(p)||d(p)&&!v.showFileList?(k(),fe(bx,Lt({key:1,ref_key:"uploadRef",ref:r},d(y)),{default:L(()=>[v.$slots.trigger?be(v.$slots,"trigger",{key:0}):ae("v-if",!0),!v.$slots.trigger&&v.$slots.default?be(v.$slots,"default",{key:1}):ae("v-if",!0)]),_:3},16)):ae("v-if",!0),v.$slots.trigger?be(v.$slots,"default",{key:2}):ae("v-if",!0),be(v.$slots,"tip"),!d(p)&&v.showFileList?(k(),fe(yx,{key:3,disabled:d(s),"list-type":v.listType,files:d(l),crossorigin:v.crossorigin,"handle-preview":v.onPreview,onRemove:d(f)},ma({_:2},[v.$slots.file?{name:"default",fn:L(({file:S})=>[be(v.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ae("v-if",!0)]))}});var tpe=ze(epe,[["__file","upload.vue"]]);const H2=Dt(tpe),npe=Ve({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:le([String,Array]),default:"Element Plus"},font:{type:le(Object)},gap:{type:le(Array),default:()=>[100,100]},offset:{type:le(Array)}});function spe(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function rpe(e){return Object.keys(e).map(t=>`${spe(t)}: ${e[t]};`).join(" ")}function ipe(){return window.devicePixelRatio||1}const ape=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},QP=3;function B0(e,t,n=1){const s=document.createElement("canvas"),r=s.getContext("2d"),i=e*n,a=t*n;return s.setAttribute("width",`${i}px`),s.setAttribute("height",`${a}px`),r.save(),[r,s,i,a]}function ope(){function e(t,n,s,r,i,a,o,l){const[u,c,f,h]=B0(r,i,s);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,f,h);else{const{color:Z,fontSize:ne,fontStyle:ue,fontWeight:_e,fontFamily:Ne,textAlign:ce,textBaseline:te}=a,ie=Number(ne)*s;u.font=`${ue} normal ${_e} ${ie}px/${i}px ${Ne}`,u.fillStyle=Z,u.textAlign=ce,u.textBaseline=te;const we=Array.isArray(t)?t:[t];we==null||we.forEach((me,Ce)=>{u.fillText(me??"",f/2,Ce*(ie+QP*s))})}const g=Math.PI/180*Number(n),m=Math.max(r,i),[p,y,v]=B0(m,m,s);p.translate(v/2,v/2),p.rotate(g),f>0&&h>0&&p.drawImage(c,-f/2,-h/2);function b(Z,ne){const ue=Z*Math.cos(g)-ne*Math.sin(g),_e=Z*Math.sin(g)+ne*Math.cos(g);return[ue,_e]}let S=0,T=0,w=0,C=0;const O=f/2,P=h/2;[[0-O,0-P],[0+O,0-P],[0+O,0+P],[0-O,0+P]].forEach(([Z,ne])=>{const[ue,_e]=b(Z,ne);S=Math.min(S,ue),T=Math.max(T,ue),w=Math.min(w,_e),C=Math.max(C,_e)});const U=S+v/2,B=w+v/2,W=T-S,Q=C-w,G=o*s,X=l*s,q=(W+G)*2,H=Q+X,[V,N]=B0(q,H);function Y(Z=0,ne=0){V.drawImage(y,U,B,W,Q,Z,ne,W,Q)}return Y(),Y(W+G,-Q/2-X/2),Y(W+G,+Q/2+X/2),[N.toDataURL(),q/s,H/s]}return e}const lpe=J({name:"ElWatermark"}),upe=J({...lpe,props:npe,setup(e){const t=e,n={position:"relative"},s=E(()=>{var U,B;return(B=(U=t.font)==null?void 0:U.color)!=null?B:"rgba(0,0,0,.15)"}),r=E(()=>{var U,B;return(B=(U=t.font)==null?void 0:U.fontSize)!=null?B:16}),i=E(()=>{var U,B;return(B=(U=t.font)==null?void 0:U.fontWeight)!=null?B:"normal"}),a=E(()=>{var U,B;return(B=(U=t.font)==null?void 0:U.fontStyle)!=null?B:"normal"}),o=E(()=>{var U,B;return(B=(U=t.font)==null?void 0:U.fontFamily)!=null?B:"sans-serif"}),l=E(()=>{var U,B;return(B=(U=t.font)==null?void 0:U.textAlign)!=null?B:"center"}),u=E(()=>{var U,B;return(B=(U=t.font)==null?void 0:U.textBaseline)!=null?B:"hanging"}),c=E(()=>t.gap[0]),f=E(()=>t.gap[1]),h=E(()=>c.value/2),g=E(()=>f.value/2),m=E(()=>{var U,B;return(B=(U=t.offset)==null?void 0:U[0])!=null?B:h.value}),p=E(()=>{var U,B;return(B=(U=t.offset)==null?void 0:U[1])!=null?B:g.value}),y=()=>{const U={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let B=m.value-h.value,W=p.value-g.value;return B>0&&(U.left=`${B}px`,U.width=`calc(100% - ${B}px)`,B=0),W>0&&(U.top=`${W}px`,U.height=`calc(100% - ${W}px)`,W=0),U.backgroundPosition=`${B}px ${W}px`,U},v=ln(null),b=ln(),S=j(!1),T=()=>{b.value&&(b.value.remove(),b.value=void 0)},w=(U,B)=>{var W;v.value&&b.value&&(S.value=!0,b.value.setAttribute("style",rpe({...y(),backgroundImage:`url('${U}')`,backgroundSize:`${Math.floor(B)}px`})),(W=v.value)==null||W.append(b.value),setTimeout(()=>{S.value=!1}))},C=U=>{let B=120,W=64;const Q=t.image,G=t.content,X=t.width,q=t.height;if(!Q&&U.measureText){U.font=`${Number(r.value)}px ${o.value}`;const H=Array.isArray(G)?G:[G],V=H.map(N=>{const Y=U.measureText(N);return[Y.width,Y.fontBoundingBoxAscent!==void 0?Y.fontBoundingBoxAscent+Y.fontBoundingBoxDescent:Y.actualBoundingBoxAscent+Y.actualBoundingBoxDescent]});B=Math.ceil(Math.max(...V.map(N=>N[0]))),W=Math.ceil(Math.max(...V.map(N=>N[1])))*H.length+(H.length-1)*QP}return[X??B,q??W]},O=ope(),P=()=>{const B=document.createElement("canvas").getContext("2d"),W=t.image,Q=t.content,G=t.rotate;if(B){b.value||(b.value=document.createElement("div"));const X=ipe(),[q,H]=C(B),V=N=>{const[Y,Z]=O(N||"",G,X,q,H,{color:s.value,fontSize:r.value,fontStyle:a.value,fontWeight:i.value,fontFamily:o.value,textAlign:l.value,textBaseline:u.value},c.value,f.value);w(Y,Z)};if(W){const N=new Image;N.onload=()=>{V(N)},N.onerror=()=>{V(Q)},N.crossOrigin="anonymous",N.referrerPolicy="no-referrer",N.src=W}else V(Q)}};return gt(()=>{P()}),xe(()=>t,()=>{P()},{deep:!0,flush:"post"}),un(()=>{T()}),Z4(v,U=>{S.value||U.forEach(B=>{ape(B,b.value)&&(T(),P())})},{attributes:!0,subtree:!0,childList:!0}),(U,B)=>(k(),z("div",{ref_key:"containerRef",ref:v,style:it([n])},[be(U.$slots,"default")],4))}});var cpe=ze(upe,[["__file","watermark.vue"]]);const dpe=Dt(cpe),fpe=Ve({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:le(Object)},targetAreaClickable:{type:Boolean,default:!0}}),hpe=(e,t,n,s,r)=>{const i=j(null),a=()=>{let f;return bt(e.value)?f=document.querySelector(e.value):mt(e.value)?f=e.value():f=e.value,f},o=()=>{const f=a();if(!f||!t.value){i.value=null;return}!ppe(f)&&t.value&&f.scrollIntoView(r.value);const{left:h,top:g,width:m,height:p}=f.getBoundingClientRect();i.value={left:h,top:g,width:m,height:p,radius:0}};gt(()=>{xe([t,e],()=>{o()},{immediate:!0}),window.addEventListener("resize",o)}),un(()=>{window.removeEventListener("resize",o)});const l=f=>{var h;return(h=Xe(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?h:6},u=E(()=>{var f;if(!i.value)return i.value;const h=l(0),g=l(1),m=((f=n.value)==null?void 0:f.radius)||2;return{left:i.value.left-h,top:i.value.top-g,width:i.value.width+h*2,height:i.value.height+g*2,radius:m}}),c=E(()=>{const f=a();return!s.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var h,g,m,p;return window.DOMRect.fromRect({width:((h=u.value)==null?void 0:h.width)||0,height:((g=u.value)==null?void 0:g.height)||0,x:((m=u.value)==null?void 0:m.left)||0,y:((p=u.value)==null?void 0:p.top)||0})}}});return{mergedPosInfo:u,triggerTarget:c}},nv=Symbol("ElTour");function ppe(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:s,right:r,bottom:i,left:a}=e.getBoundingClientRect();return s>=0&&a>=0&&r<=t&&i<=n}const mpe=(e,t,n,s,r,i,a,o)=>{const l=j(),u=j(),c=j({}),f={x:l,y:u,placement:s,strategy:r,middlewareData:c},h=E(()=>{const v=[kI(d(i)),fK(),dK(),gpe()];return d(o)&&d(n)&&v.push(AI({element:d(n)})),v}),g=async()=>{if(!jt)return;const v=d(e),b=d(t);if(!v||!b)return;const S=await II(v,b,{placement:d(s),strategy:d(r),middleware:d(h)});zu(f).forEach(T=>{f[T].value=S[T]})},m=E(()=>{if(!d(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:d(a)};const{overflow:v}=d(c);return{position:d(r),zIndex:d(a),top:d(u)!=null?`${d(u)}px`:"",left:d(l)!=null?`${d(l)}px`:"",maxWidth:v!=null&&v.maxWidth?`${v==null?void 0:v.maxWidth}px`:""}}),p=E(()=>{if(!d(o))return{};const{arrow:v}=d(c);return{left:(v==null?void 0:v.x)!=null?`${v==null?void 0:v.x}px`:"",top:(v==null?void 0:v.y)!=null?`${v==null?void 0:v.y}px`:""}});let y;return gt(()=>{const v=d(e),b=d(t);v&&b&&(y=uK(v,b,g)),ps(()=>{g()})}),un(()=>{y&&y()}),{update:g,contentStyle:m,arrowStyle:p}},gpe=()=>({name:"overflow",async fn(e){const t=await cK(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),vpe={style:{width:"100%",height:"100%"}},ype=["d"],bpe=J({name:"ElTourMask",inheritAttrs:!1}),_pe=J({...bpe,props:fpe,setup(e){const t=e,{ns:n}=Je(nv),s=E(()=>{var o,l;return(l=(o=t.pos)==null?void 0:o.radius)!=null?l:2}),r=E(()=>{const o=s.value,l=`a${o},${o} 0 0 1`;return{topRight:`${l} ${o},${o}`,bottomRight:`${l} ${-o},${o}`,bottomLeft:`${l} ${-o},${-o}`,topLeft:`${l} ${o},${-o}`}}),i=E(()=>{const o=window.innerWidth,l=window.innerHeight,u=r.value,c=`M${o},0 L0,0 L0,${l} L${o},${l} L${o},0 Z`,f=s.value;return t.pos?`${c} M${t.pos.left+f},${t.pos.top} h${t.pos.width-f*2} ${u.topRight} v${t.pos.height-f*2} ${u.bottomRight} h${-t.pos.width+f*2} ${u.bottomLeft} v${-t.pos.height+f*2} ${u.topLeft} z`:c}),a=E(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return P1(nn(t,"visible"),{ns:n}),(o,l)=>o.visible?(k(),z("div",Lt({key:0,class:d(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:o.zIndex,pointerEvents:o.pos&&o.targetAreaClickable?"none":"auto"}},o.$attrs),[(k(),z("svg",vpe,[R("path",{class:$(d(n).e("hollow")),style:it(d(a)),d:d(i)},null,14,ype)]))],16)):ae("v-if",!0)}});var Spe=ze(_pe,[["__file","mask.vue"]]);const wpe=["absolute","fixed"],Tpe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],z2=Ve({placement:{type:le(String),values:Tpe,default:"bottom"},reference:{type:le(Object),default:null},strategy:{type:le(String),values:wpe,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Cpe={close:()=>!0},Epe=["data-side"],xpe=J({name:"ElTourContent"}),kpe=J({...xpe,props:z2,emits:Cpe,setup(e,{emit:t}){const n=e,s=j(n.placement),r=j(n.strategy),i=j(null),a=j(null);xe(()=>n.placement,()=>{s.value=n.placement});const{contentStyle:o,arrowStyle:l}=mpe(nn(n,"reference"),i,a,s,r,nn(n,"offset"),nn(n,"zIndex"),nn(n,"showArrow")),u=E(()=>s.value.split("-")[0]),{ns:c}=Je(nv),f=()=>{t("close")},h=g=>{g.detail.focusReason==="pointer"&&g.preventDefault()};return(g,m)=>(k(),z("div",{ref_key:"contentRef",ref:i,style:it(d(o)),class:$(d(c).e("content")),"data-side":d(u),tabindex:"-1"},[I(d(lh),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:f,onFocusoutPrevented:h},{default:L(()=>[be(g.$slots,"default")]),_:3},8,["focus-trap-el"]),g.showArrow?(k(),z("span",{key:0,ref_key:"arrowRef",ref:a,style:it(d(l)),class:$(d(c).e("arrow"))},null,6)):ae("v-if",!0)],14,Epe))}});var Ape=ze(kpe,[["__file","content.vue"]]),Ipe=J({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let s=0;return()=>{var r,i;const a=(r=t.default)==null?void 0:r.call(t),o=[];let l=0;function u(c){Xe(c)&&c.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(o.push(f),l+=1)})}return a.length&&u(ao((i=a[0])==null?void 0:i.children)),s!==l&&(s=l,n("update-total",l)),o.length?o[e.current]:null}}});const Dpe=Ve({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:sn},placement:z2.placement,contentStyle:{type:le([Object])},mask:{type:le([Boolean,Object]),default:!0},gap:{type:le(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:le([Boolean,Object]),default:()=>({block:"center"})},type:{type:le(String)},appendTo:{type:le([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Ope={[$t]:e=>Hn(e),"update:current":e=>pt(e),close:e=>pt(e),finish:()=>!0,change:e=>pt(e)},Ppe=J({name:"ElTour"}),$pe=J({...Ppe,props:Dpe,emits:Ope,setup(e,{emit:t}){const n=e,s=Pe("tour"),r=j(0),i=j(),a=e3(n,"current",t,{passive:!0}),o=E(()=>{var M;return(M=i.value)==null?void 0:M.target}),l=E(()=>[s.b(),y.value==="primary"?s.m("primary"):""]),u=E(()=>{var M;return((M=i.value)==null?void 0:M.placement)||n.placement}),c=E(()=>{var M,U;return(U=(M=i.value)==null?void 0:M.contentStyle)!=null?U:n.contentStyle}),f=E(()=>{var M,U;return(U=(M=i.value)==null?void 0:M.mask)!=null?U:n.mask}),h=E(()=>!!f.value&&n.modelValue),g=E(()=>Hn(f.value)?void 0:f.value),m=E(()=>{var M,U;return!!o.value&&((U=(M=i.value)==null?void 0:M.showArrow)!=null?U:n.showArrow)}),p=E(()=>{var M,U;return(U=(M=i.value)==null?void 0:M.scrollIntoViewOptions)!=null?U:n.scrollIntoViewOptions}),y=E(()=>{var M,U;return(U=(M=i.value)==null?void 0:M.type)!=null?U:n.type}),{nextZIndex:v}=xc(),b=v(),S=E(()=>{var M;return(M=n.zIndex)!=null?M:b}),{mergedPosInfo:T,triggerTarget:w}=hpe(o,nn(n,"modelValue"),nn(n,"gap"),f,p);xe(()=>n.modelValue,M=>{M||(a.value=0)});const C=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",a.value))},O=M=>{r.value=M},P=us();return Mt(nv,{currentStep:i,current:a,total:r,showClose:nn(n,"showClose"),closeIcon:nn(n,"closeIcon"),mergedType:y,ns:s,slots:P,updateModelValue(M){t("update:modelValue",M)},onClose(){t("close",a.value)},onFinish(){t("finish")},onChange(){t("change",a.value)}}),(M,U)=>{var B,W;return k(),z(Ge,null,[(k(),fe(bc,{to:M.appendTo},[R("div",Lt({class:d(l)},M.$attrs),[I(Spe,{visible:d(h),fill:(B=d(g))==null?void 0:B.color,style:it((W=d(g))==null?void 0:W.style),pos:d(T),"z-index":d(S),"target-area-clickable":M.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),M.modelValue?(k(),fe(Ape,{key:d(a),reference:d(w),placement:d(u),"show-arrow":d(m),"z-index":d(S),style:it(d(c)),onClose:C},{default:L(()=>[I(d(Ipe),{current:d(a),onUpdateTotal:O},{default:L(()=>[be(M.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):ae("v-if",!0)],16)],8,["to"])),ae(" just for IDE "),ae("v-if",!0)],64)}}});var Rpe=ze($pe,[["__file","tour.vue"]]);const Npe=Ve({target:{type:le([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:sn},showArrow:{type:Boolean,default:void 0},placement:z2.placement,mask:{type:le([Boolean,Object]),default:void 0},contentStyle:{type:le([Object])},prevButtonProps:{type:le(Object)},nextButtonProps:{type:le(Object)},scrollIntoViewOptions:{type:le([Boolean,Object]),default:void 0},type:{type:le(String)}}),Mpe={close:()=>!0},Lpe=J({name:"ElTourStep"}),Bpe=J({...Lpe,props:Npe,emits:Mpe,setup(e,{emit:t}){const n=e,{Close:s}=x1,{t:r}=Wt(),{currentStep:i,current:a,total:o,showClose:l,closeIcon:u,mergedType:c,ns:f,slots:h,updateModelValue:g,onClose:m,onFinish:p,onChange:y}=Je(nv);xe(n,P=>{i.value=P},{immediate:!0});const v=E(()=>{var P;return(P=n.showClose)!=null?P:l.value}),b=E(()=>{var P,M;return(M=(P=n.closeIcon)!=null?P:u.value)!=null?M:s}),S=P=>{if(P)return az(P,["children","onClick"])},T=()=>{var P,M;a.value-=1,(P=n.prevButtonProps)!=null&&P.onClick&&((M=n.prevButtonProps)==null||M.onClick()),y()},w=()=>{var P;a.value>=o.value-1?C():a.value+=1,(P=n.nextButtonProps)!=null&&P.onClick&&n.nextButtonProps.onClick(),y()},C=()=>{O(),p()},O=()=>{g(!1),m(),t("close")};return(P,M)=>(k(),z(Ge,null,[d(v)?(k(),z("button",{key:0,"aria-label":"Close",class:$(d(f).e("closebtn")),type:"button",onClick:O},[I(d(tt),{class:$(d(f).e("close"))},{default:L(()=>[(k(),fe(Nt(d(b))))]),_:1},8,["class"])],2)):ae("v-if",!0),R("header",{class:$([d(f).e("header"),{"show-close":d(l)}])},[be(P.$slots,"header",{},()=>[R("span",{role:"heading",class:$(d(f).e("title"))},pe(P.title),3)])],2),R("div",{class:$(d(f).e("body"))},[be(P.$slots,"default",{},()=>[R("span",null,pe(P.description),1)])],2),R("footer",{class:$(d(f).e("footer"))},[R("div",{class:$(d(f).b("indicators"))},[d(h).indicators?(k(),fe(Nt(d(h).indicators),{key:0,current:d(a),total:d(o)},null,8,["current","total"])):(k(!0),z(Ge,{key:1},_t(d(o),(U,B)=>(k(),z("span",{key:U,class:$([d(f).b("indicator"),B===d(a)?"is-active":""])},null,2))),128))],2),R("div",{class:$(d(f).b("buttons"))},[d(a)>0?(k(),fe(d(gn),Lt({key:0,size:"small",type:d(c)},S(P.prevButtonProps),{onClick:T}),{default:L(()=>{var U,B;return[Re(pe((B=(U=P.prevButtonProps)==null?void 0:U.children)!=null?B:d(r)("el.tour.previous")),1)]}),_:1},16,["type"])):ae("v-if",!0),d(a)<=d(o)-1?(k(),fe(d(gn),Lt({key:1,size:"small",type:d(c)==="primary"?"default":"primary"},S(P.nextButtonProps),{onClick:w}),{default:L(()=>{var U,B;return[Re(pe((B=(U=P.nextButtonProps)==null?void 0:U.children)!=null?B:d(a)===d(o)-1?d(r)("el.tour.finish"):d(r)("el.tour.next")),1)]}),_:1},16,["type"])):ae("v-if",!0)],2)],2)],64))}});var JP=ze(Bpe,[["__file","step.vue"]]);const Fpe=Dt(Rpe,{TourStep:JP}),Vpe=Tn(JP),Upe=Ve({container:{type:le([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:le(String),default:"default"},direction:{type:le(String),default:"vertical"}}),Hpe={change:e=>bt(e),click:(e,t)=>e instanceof MouseEvent&&(bt(t)||Fn(t))},ZP=Symbol("anchor"),zpe=J({name:"ElAnchor"}),jpe=J({...zpe,props:Upe,emits:Hpe,setup(e,{expose:t,emit:n}){const s=e,r=j(""),i=j(null),a=j(null),o=j(),l={};let u=!1,c=0;const f=Pe("anchor"),h=E(()=>[f.b(),s.type==="underline"?f.m("underline"):"",f.m(s.direction)]),g=P=>{l[P.href]=P.el},m=P=>{delete l[P]},p=P=>{r.value!==P&&(r.value=P,n("change",P))};let y=null;const v=P=>{if(!o.value)return;const M=sp(P);if(!M)return;y&&y(),u=!0;const U=OC(M,o.value),B=Py(M,U),W=U.scrollHeight-U.clientHeight,Q=Math.min(B-s.offset,W);y=wz(o.value,c,Q,s.duration,()=>{setTimeout(()=>{u=!1},20)})},b=P=>{P&&(p(P),v(P))},S=(P,M)=>{n("click",P,M),b(M)},T=cq(()=>{o.value&&(c=PC(o.value));const P=w();u||Fn(P)||p(P)}),w=()=>{if(!o.value)return;const P=PC(o.value),M=[];for(const U of Object.keys(l)){const B=sp(U);if(!B)continue;const W=OC(B,o.value),Q=Py(B,W);M.push({top:Q-s.offset-s.bound,href:U})}M.sort((U,B)=>U.top-B.top);for(let U=0;U<M.length;U++){const B=M[U],W=M[U+1];if(U===0&&P===0)return"";if(B.top<=P&&(!W||W.top>P))return B.href}},C=()=>{const P=sp(s.container);!P||$g(P)?o.value=window:o.value=P};cn(o,"scroll",T);const O=E(()=>{if(!i.value||!a.value||!r.value)return{};const P=l[r.value];if(!P)return{};const M=i.value.getBoundingClientRect(),U=a.value.getBoundingClientRect(),B=P.getBoundingClientRect();return s.direction==="horizontal"?{left:`${B.left-M.left}px`,width:`${B.width}px`,opacity:1}:{top:`${B.top-M.top+(B.height-U.height)/2}px`,opacity:1}});return gt(()=>{C();const P=decodeURIComponent(window.location.hash);sp(P)?b(P):T()}),xe(()=>s.container,()=>{C()}),Mt(ZP,{ns:f,direction:s.direction,currentAnchor:r,addLink:g,removeLink:m,handleClick:S}),t({scrollTo:b}),(P,M)=>(k(),z("div",{ref_key:"anchorRef",ref:i,class:$(d(h))},[P.marker?(k(),z("div",{key:0,ref_key:"markerRef",ref:a,class:$(d(f).e("marker")),style:it(d(O))},null,6)):ae("v-if",!0),R("div",{class:$(d(f).e("list"))},[be(P.$slots,"default")],2)],2))}});var qpe=ze(jpe,[["__file","anchor.vue"]]);const Wpe=Ve({title:String,href:String}),Kpe=["href"],Gpe=J({name:"ElAnchorLink"}),Ype=J({...Gpe,props:Wpe,setup(e){const t=e,n=j(null),{ns:s,direction:r,currentAnchor:i,addLink:a,removeLink:o,handleClick:l}=Je(ZP),u=E(()=>[s.e("link"),s.is("active",i.value===t.href)]),c=f=>{l(f,t.href)};return xe(()=>t.href,(f,h)=>{ut(()=>{h&&o(h),f&&a({href:f,el:n.value})})}),gt(()=>{const{href:f}=t;f&&a({href:f,el:n.value})}),un(()=>{const{href:f}=t;f&&o(f)}),(f,h)=>(k(),z("div",{class:$(d(s).e("item"))},[R("a",{ref_key:"linkRef",ref:n,class:$(d(u)),href:f.href,onClick:c},[be(f.$slots,"default",{},()=>[Re(pe(f.title),1)])],10,Kpe),f.$slots["sub-link"]&&d(r)==="vertical"?(k(),z("div",{key:0,class:$(d(s).e("list"))},[be(f.$slots,"sub-link")],2)):ae("v-if",!0)],2))}});var e8=ze(Ype,[["__file","anchor-link.vue"]]);const Xpe=Dt(qpe,{AnchorLink:e8}),Qpe=Tn(e8),Jpe=Ve({options:{type:le(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:es,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...ys(["ariaLabel"])}),Zpe={[$t]:e=>bt(e)||pt(e),[dn]:e=>bt(e)||pt(e)},eme=["id","aria-label","aria-labelledby"],tme=["name","disabled","checked","onChange"],nme=J({name:"ElSegmented"}),sme=J({...nme,props:Jpe,emits:Zpe,setup(e,{emit:t}){const n=e,s=Pe("segmented"),r=xs(),i=Kn(),a=Gs(),{formItem:o}=$s(),{inputId:l,isLabeledByFormItem:u}=_i(n,{formItemContext:o}),c=j(null),f=VB(),h=Ct({isInit:!1,width:0,translateX:0,disabled:!1,focusVisible:!1}),g=M=>{const U=m(M);t($t,U),t(dn,U)},m=M=>Pt(M)?M.value:M,p=M=>Pt(M)?M.label:M,y=M=>!!(a.value||Pt(M)&&M.disabled),v=M=>n.modelValue===m(M),b=M=>n.options.find(U=>m(U)===M),S=M=>[s.e("item"),s.is("selected",v(M)),s.is("disabled",y(M))],T=()=>{if(!c.value)return;const M=c.value.querySelector(".is-selected"),U=c.value.querySelector(".is-selected input");if(!M||!U){h.width=0,h.translateX=0,h.disabled=!1,h.focusVisible=!1;return}const B=M.getBoundingClientRect();h.isInit=!0,h.width=B.width,h.translateX=M.offsetLeft,h.disabled=y(b(n.modelValue));try{h.focusVisible=U.matches(":focus-visible")}catch{}},w=E(()=>[s.b(),s.m(i.value),s.is("block",n.block)]),C=E(()=>({width:`${h.width}px`,transform:`translateX(${h.translateX}px)`,display:h.isInit?"block":"none"})),O=E(()=>[s.e("item-selected"),s.is("disabled",h.disabled),s.is("focus-visible",h.focusVisible)]),P=E(()=>n.name||r.value);return Sn(c,T),xe(f,T),xe(()=>n.modelValue,()=>{var M;T(),n.validateEvent&&((M=o==null?void 0:o.validate)==null||M.call(o,"change").catch(U=>void 0))},{flush:"post"}),(M,U)=>(k(),z("div",{id:d(l),ref_key:"segmentedRef",ref:c,class:$(d(w)),role:"radiogroup","aria-label":d(u)?void 0:M.ariaLabel||"segmented","aria-labelledby":d(u)?d(o).labelId:void 0},[R("div",{class:$(d(s).e("group"))},[R("div",{style:it(d(C)),class:$(d(O))},null,6),(k(!0),z(Ge,null,_t(M.options,(B,W)=>(k(),z("label",{key:W,class:$(S(B))},[R("input",{class:$(d(s).e("item-input")),type:"radio",name:d(P),disabled:y(B),checked:v(B),onChange:Q=>g(B)},null,42,tme),R("div",{class:$(d(s).e("item-label"))},[be(M.$slots,"default",{item:B},()=>[Re(pe(p(B)),1)])],2)],2))),128))],2)],10,eme))}});var rme=ze(sme,[["__file","segmented.vue"]]);const ime=Dt(rme);var ame=[PK,zK,hX,bde,n2,xX,GI,VX,UX,gn,tD,aJ,dJ,OJ,PJ,zZ,IZ,YZ,Xr,XJ,DD,UD,wee,Tee,zD,Zee,PI,o2,XD,QD,l2,u2,lO,Vne,Une,uh,mO,gse,CO,EO,xO,ch,Do,Oo,tt,kO,y2,Vn,Qg,AO,$O,RO,Die,NO,Lie,dh,Yae,roe,qI,UO,Kg,dZ,i2,Soe,xoe,VD,Da,mi,bo,gae,fle,_le,Sle,Qle,nue,aP,hue,wue,Tue,fh,hh,ph,yde,Rde,Nde,_a,Vde,BQ,Wde,Qde,Jde,gs,Cfe,Ffe,Zfe,ahe,Che,H2,dpe,Fpe,Vpe,Xpe,Qpe,ime];const Nr="ElInfiniteScroll",ome=50,lme=200,ume=0,cme={delay:{type:Number,default:lme},distance:{type:Number,default:ume},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},j2=(e,t)=>Object.entries(cme).reduce((n,[s,r])=>{var i,a;const{type:o,default:l}=r,u=e.getAttribute(`infinite-scroll-${s}`);let c=(a=(i=t[u])!=null?i:u)!=null?a:l;return c=c==="false"?!1:c,c=o(c),n[s]=Number.isNaN(c)?l:c,n},{}),t8=e=>{const{observer:t}=e[Nr];t&&(t.disconnect(),delete e[Nr].observer)},dme=(e,t)=>{const{container:n,containerEl:s,instance:r,observer:i,lastScrollTop:a}=e[Nr],{disabled:o,distance:l}=j2(e,r),{clientHeight:u,scrollHeight:c,scrollTop:f}=s,h=f-a;if(e[Nr].lastScrollTop=f,i||o||h<0)return;let g=!1;if(n===e)g=c-(u+f)<=l;else{const{clientTop:m,scrollHeight:p}=e,y=Py(e,s);g=f+u>=y+m+p-l}g&&t.call(r)};function F0(e,t){const{containerEl:n,instance:s}=e[Nr],{disabled:r}=j2(e,s);r||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(s):t8(e))}const fme={async mounted(e,t){const{instance:n,value:s}=t;mt(s)||Zn(Nr,"'v-infinite-scroll' binding value must be a function"),await ut();const{delay:r,immediate:i}=j2(e,n),a=y1(e,!0),o=a===window?document.documentElement:a,l=cl(dme.bind(null,e,s),r);if(a){if(e[Nr]={instance:n,container:a,containerEl:o,delay:r,cb:s,onScroll:l,lastScrollTop:o.scrollTop},i){const u=new MutationObserver(cl(F0.bind(null,e,s),ome));e[Nr].observer=u,u.observe(e,{childList:!0,subtree:!0}),F0(e,s)}a.addEventListener("scroll",l)}},unmounted(e){if(!e[Nr])return;const{container:t,onScroll:n}=e[Nr];t==null||t.removeEventListener("scroll",n),t8(e)},async updated(e){if(!e[Nr])await ut();else{const{containerEl:t,cb:n,observer:s}=e[Nr];t.clientHeight&&s&&F0(e,n)}}},Fb=fme;Fb.install=e=>{e.directive("InfiniteScroll",Fb)};const hme=Fb;function pme(e){let t;const n=j(!1),s=Ct({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(h){s.text=h}function i(){const h=s.parent,g=f.ns;if(!h.vLoadingAddClassList){let m=h.getAttribute("loading-number");m=Number.parseInt(m)-1,m?h.setAttribute("loading-number",m.toString()):(Os(h,g.bm("parent","relative")),h.removeAttribute("loading-number")),Os(h,g.bm("parent","hidden"))}a(),c.unmount()}function a(){var h,g;(g=(h=f.$el)==null?void 0:h.parentNode)==null||g.removeChild(f.$el)}function o(){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 c=Eg(J({name:"ElLoading",setup(h,{expose:g}){const{ns:m,zIndex:p}=jg("loading");return g({ns:m,zIndex:p}),()=>{const y=s.spinner||s.svg,v=lt("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[lt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=s.text?lt("p",{class:m.b("text")},[s.text]):void 0;return lt(Wn,{name:m.b("fade"),onAfterLeave:l},{default:L(()=>[yt(I("div",{style:{backgroundColor:s.background||""},class:[m.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[lt("div",{class:m.b("spinner")},[v,b])]),[[zt,s.visible]])])})}}})),f=c.mount(document.createElement("div"));return{...ms(s),setText:r,removeElLoadingChild:a,close:o,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let yp;const Vb=function(e={}){if(!jt)return;const t=mme(e);if(t.fullscreen&&yp)return yp;const n=pme({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(yp=void 0)}});gme(t,t.parent,n),wx(t,t.parent,n),t.parent.vLoadingAddClassList=()=>wx(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),ut(()=>n.visible.value=t.visible),t.fullscreen&&(yp=n),n},mme=e=>{var t,n,s,r;let i;return bt(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}},gme=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,r={};if(e.fullscreen)n.originalPosition.value=to(document.body,"position"),n.originalOverflow.value=to(document.body,"overflow"),r.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=to(document.body,"position"),await ut();for(const i of["top","left"]){const a=i==="top"?"scrollTop":"scrollLeft";r[i]=`${e.target.getBoundingClientRect()[i]+document.body[a]+document.documentElement[a]-Number.parseInt(to(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])r[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=to(t,"position");for(const[i,a]of Object.entries(r))n.$el.style[i]=a},wx=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Os(t,s.bm("parent","relative")):Lr(t,s.bm("parent","relative")),e.fullscreen&&e.lock?Lr(t,s.bm("parent","hidden")):Os(t,s.bm("parent","hidden"))},nm=Symbol("ElLoading"),Tx=(e,t)=>{var n,s,r,i;const a=t.instance,o=h=>Pt(t.value)?t.value[h]:void 0,l=h=>{const g=bt(h)&&(a==null?void 0:a[h])||h;return g&&j(g)},u=h=>l(o(h)||e.getAttribute(`element-loading-${wo(h)}`)),c=(n=o("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(s=o("target"))!=null?s:c?void 0:e,body:(r=o("body"))!=null?r:t.modifiers.body,lock:(i=o("lock"))!=null?i:t.modifiers.lock};e[nm]={options:f,instance:Vb(f)}},vme=(e,t)=>{for(const n of Object.keys(t))hn(t[n])&&(t[n].value=e[n])},Cx={mounted(e,t){t.value&&Tx(e,t)},updated(e,t){const n=e[nm];t.oldValue!==t.value&&(t.value&&!t.oldValue?Tx(e,t):t.value&&t.oldValue?Pt(t.value)&&vme(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[nm])==null||t.instance.close(),e[nm]=null}},yme={install(e){e.directive("loading",Cx),e.config.globalProperties.$loading=Vb},directive:Cx,service:Vb},n8=["success","info","warning","error"],As=wn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:jt?document.body:void 0}),bme=Ve({customClass:{type:String,default:As.customClass},center:{type:Boolean,default:As.center},dangerouslyUseHTMLString:{type:Boolean,default:As.dangerouslyUseHTMLString},duration:{type:Number,default:As.duration},icon:{type:sn,default:As.icon},id:{type:String,default:As.id},message:{type:le([String,Object,Function]),default:As.message},onClose:{type:le(Function),default:As.onClose},showClose:{type:Boolean,default:As.showClose},type:{type:String,values:n8,default:As.type},plain:{type:Boolean,default:As.plain},offset:{type:Number,default:As.offset},zIndex:{type:Number,default:As.zIndex},grouping:{type:Boolean,default:As.grouping},repeatNum:{type:Number,default:As.repeatNum}}),_me={destroy:()=>!0},oi=B_([]),Sme=e=>{const t=oi.findIndex(r=>r.id===e),n=oi[t];let s;return t>0&&(s=oi[t-1]),{current:n,prev:s}},wme=e=>{const{prev:t}=Sme(e);return t?t.vm.exposed.bottom.value:0},Tme=(e,t)=>oi.findIndex(s=>s.id===e)>0?16:t,Cme=["id"],Eme=["innerHTML"],xme=J({name:"ElMessage"}),kme=J({...xme,props:bme,emits:_me,setup(e,{expose:t}){const n=e,{Close:s}=k1,{ns:r,zIndex:i}=jg("message"),{currentZIndex:a,nextZIndex:o}=i,l=j(),u=j(!1),c=j(0);let f;const h=E(()=>n.type?n.type==="error"?"danger":n.type:"info"),g=E(()=>{const O=n.type;return{[r.bm("icon",O)]:O&&go[O]}}),m=E(()=>n.icon||go[n.type]||""),p=E(()=>wme(n.id)),y=E(()=>Tme(n.id,n.offset)+p.value),v=E(()=>c.value+y.value),b=E(()=>({top:`${y.value}px`,zIndex:a.value}));function S(){n.duration!==0&&({stop:f}=Sl(()=>{w()},n.duration))}function T(){f==null||f()}function w(){u.value=!1}function C({code:O}){O===ot.esc&&w()}return gt(()=>{S(),o(),u.value=!0}),xe(()=>n.repeatNum,()=>{T(),S()}),cn(document,"keydown",C),Sn(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:v,close:w}),(O,P)=>(k(),fe(Wn,{name:d(r).b("fade"),onBeforeLeave:O.onClose,onAfterLeave:P[0]||(P[0]=M=>O.$emit("destroy")),persisted:""},{default:L(()=>[yt(R("div",{id:O.id,ref_key:"messageRef",ref:l,class:$([d(r).b(),{[d(r).m(O.type)]:O.type},d(r).is("center",O.center),d(r).is("closable",O.showClose),d(r).is("plain",O.plain),O.customClass]),style:it(d(b)),role:"alert",onMouseenter:T,onMouseleave:S},[O.repeatNum>1?(k(),fe(d(GI),{key:0,value:O.repeatNum,type:d(h),class:$(d(r).e("badge"))},null,8,["value","type","class"])):ae("v-if",!0),d(m)?(k(),fe(d(tt),{key:1,class:$([d(r).e("icon"),d(g)])},{default:L(()=>[(k(),fe(Nt(d(m))))]),_:1},8,["class"])):ae("v-if",!0),be(O.$slots,"default",{},()=>[O.dangerouslyUseHTMLString?(k(),z(Ge,{key:1},[ae(" Caution here, message could've been compromised, never use user's input as message "),R("p",{class:$(d(r).e("content")),innerHTML:O.message},null,10,Eme)],2112)):(k(),z("p",{key:0,class:$(d(r).e("content"))},pe(O.message),3))]),O.showClose?(k(),fe(d(tt),{key:2,class:$(d(r).e("closeBtn")),onClick:vt(w,["stop"])},{default:L(()=>[I(d(s))]),_:1},8,["class","onClick"])):ae("v-if",!0)],46,Cme),[[zt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Ame=ze(kme,[["__file","message.vue"]]);let Ime=1;const s8=e=>{const t=!e||bt(e)||_n(e)||mt(e)?{message:e}:e,n={...As,...t};if(!n.appendTo)n.appendTo=document.body;else if(bt(n.appendTo)){let s=document.querySelector(n.appendTo);Kr(s)||(s=document.body),n.appendTo=s}return n},Dme=e=>{const t=oi.indexOf(e);if(t===-1)return;oi.splice(t,1);const{handler:n}=e;n.close()},Ome=({appendTo:e,...t},n)=>{const s=`message_${Ime++}`,r=t.onClose,i=document.createElement("div"),a={...t,id:s,onClose:()=>{r==null||r(),Dme(c)},onDestroy:()=>{co(null,i)}},o=I(Ame,a,mt(a.message)||_n(a.message)?{default:mt(a.message)?a.message:()=>a.message}:null);o.appContext=n||nc._context,co(o,i),e.appendChild(i.firstElementChild);const l=o.component,c={id:s,vnode:o,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:o.component.props};return c},nc=(e={},t)=>{if(!jt)return{close:()=>{}};if(pt(qy.max)&&oi.length>=qy.max)return{close:()=>{}};const n=s8(e);if(n.grouping&&oi.length){const r=oi.find(({vnode:i})=>{var a;return((a=i.props)==null?void 0:a.message)===n.message});if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}const s=Ome(n,t);return oi.push(s),s.handler};n8.forEach(e=>{nc[e]=(t={},n)=>{const s=s8(t);return nc({...s,type:e},n)}});function Pme(e){for(const t of oi)(!e||e===t.props.type)&&t.handler.close()}nc.closeAll=Pme;nc._context=null;const wt=X3(nc,"$message"),$me=J({name:"ElMessageBox",directives:{TrapFocus:_Q},components:{ElButton:gn,ElFocusTrap:lh,ElInput:Vn,ElOverlay:p2,ElIcon:tt,...k1},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Q3},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,overflow: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}=jg("message-box",E(()=>e.buttonSize)),{t:a}=n,{nextZIndex:o}=s,l=j(!1),u=Ct({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:o()}),c=E(()=>{const q=u.type;return{[r.bm("icon",q)]:q&&go[q]}}),f=xs(),h=xs(),g=E(()=>u.icon||go[u.type]||""),m=E(()=>!!u.message),p=j(),y=j(),v=j(),b=j(),S=j(),T=E(()=>u.confirmButtonClass);xe(()=>u.inputValue,async q=>{await ut(),e.boxType==="prompt"&&q!==null&&W()},{immediate:!0}),xe(()=>l.value,q=>{var H,V;q&&(e.boxType!=="prompt"&&(u.autofocus?v.value=(V=(H=S.value)==null?void 0:H.$el)!=null?V:p.value:v.value=p.value),u.zIndex=o()),e.boxType==="prompt"&&(q?ut().then(()=>{var N;b.value&&b.value.$el&&(u.autofocus?v.value=(N=Q())!=null?N:p.value:v.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const w=E(()=>e.draggable),C=E(()=>e.overflow);J3(p,y,w,C),gt(async()=>{await ut(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),un(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){l.value&&(l.value=!1,ut(()=>{u.action&&t("action",u.action)}))}const P=()=>{e.closeOnClickModal&&B(u.distinguishCancelAndClose?"close":"cancel")},M=U1(P),U=q=>{if(u.inputType!=="textarea")return q.preventDefault(),B("confirm")},B=q=>{var H;e.boxType==="prompt"&&q==="confirm"&&!W()||(u.action=q,u.beforeClose?(H=u.beforeClose)==null||H.call(u,q,u,O):O())},W=()=>{if(e.boxType==="prompt"){const q=u.inputPattern;if(q&&!q.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const H=u.inputValidator;if(typeof H=="function"){const V=H(u.inputValue);if(V===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof V=="string")return u.editorErrorMessage=V,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},Q=()=>{const q=b.value.$refs;return q.input||q.textarea},G=()=>{B("close")},X=()=>{e.closeOnPressEscape&&G()};return e.lockScroll&&P1(l),{...ms(u),ns:r,overlayEvent:M,visible:l,hasMessage:m,typeClass:c,contentId:f,inputId:h,btnSize:i,iconComponent:g,confirmButtonClasses:T,rootRef:p,focusStartRef:v,headerRef:y,inputRef:b,confirmRef:S,doClose:O,handleClose:G,onCloseRequested:X,handleWrapperClick:P,handleInputEnter:U,handleAction:B,t:a}}}),Rme=["aria-label","aria-describedby"],Nme=["aria-label"],Mme=["id"];function Lme(e,t,n,s,r,i){const a=kt("el-icon"),o=kt("close"),l=kt("el-input"),u=kt("el-button"),c=kt("el-focus-trap"),f=kt("el-overlay");return k(),fe(Wn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=h=>e.$emit("vanish")),persisted:""},{default:L(()=>[yt(I(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:L(()=>[R("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:$(`${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))},[I(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:L(()=>[R("div",{ref:"rootRef",class:$([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:it(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=vt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(k(),z("div",{key:0,ref:"headerRef",class:$([e.ns.e("header"),{"show-close":e.showClose}])},[R("div",{class:$(e.ns.e("title"))},[e.iconComponent&&e.center?(k(),fe(a,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:L(()=>[(k(),fe(Nt(e.iconComponent)))]),_:1},8,["class"])):ae("v-if",!0),R("span",null,pe(e.title),1)],2),e.showClose?(k(),z("button",{key:0,type:"button",class:$(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(vt(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[I(a,{class:$(e.ns.e("close"))},{default:L(()=>[I(o)]),_:1},8,["class"])],42,Nme)):ae("v-if",!0)],2)):ae("v-if",!0),R("div",{id:e.contentId,class:$(e.ns.e("content"))},[R("div",{class:$(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(k(),fe(a,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:L(()=>[(k(),fe(Nt(e.iconComponent)))]),_:1},8,["class"])):ae("v-if",!0),e.hasMessage?(k(),z("div",{key:1,class:$(e.ns.e("message"))},[be(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(k(),fe(Nt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(k(),fe(Nt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:L(()=>[Re(pe(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ae("v-if",!0)],2),yt(R("div",{class:$(e.ns.e("input"))},[I(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:$({invalid:e.validateError}),onKeydown:Zt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),R("div",{class:$(e.ns.e("errormsg")),style:it({visibility:e.editorErrorMessage?"visible":"hidden"})},pe(e.editorErrorMessage),7)],2),[[zt,e.showInput]])],10,Mme),R("div",{class:$(e.ns.e("btns"))},[e.showCancelButton?(k(),fe(u,{key:0,loading:e.cancelButtonLoading,class:$([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=h=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Zt(vt(h=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:L(()=>[Re(pe(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ae("v-if",!0),yt(I(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:$([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(vt(h=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:L(()=>[Re(pe(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[zt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Rme)]),_:3},8,["z-index","overlay-class","mask"]),[[zt,e.visible]])]),_:3})}var Bme=ze($me,[["render",Lme],["__file","index.vue"]]);const $f=new Map,Fme=e=>{let t=document.body;return e.appendTo&&(bt(e.appendTo)&&(t=document.querySelector(e.appendTo)),Kr(e.appendTo)&&(t=e.appendTo),Kr(t)||(t=document.body)),t},Vme=(e,t,n=null)=>{const s=I(Bme,e,mt(e.message)||_n(e.message)?{default:mt(e.message)?e.message:()=>e.message}:null);return s.appContext=n,co(s,t),Fme(e).appendChild(t.firstElementChild),s.component},Ume=()=>document.createElement("div"),Hme=(e,t)=>{const n=Ume();e.onVanish=()=>{co(null,n),$f.delete(r)},e.onAction=i=>{const a=$f.get(r);let o;e.showInput?o={value:r.inputValue,action:i}:o=i,e.callback?e.callback(o,s.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(o)};const s=Vme(e,n,t),r=s.proxy;for(const i in e)qt(e,i)&&!qt(r.$props,i)&&(r[i]=e[i]);return r.visible=!0,r};function Oc(e,t=null){if(!jt)return Promise.reject();let n;return bt(e)||_n(e)?e={message:e}:n=e.callback,new Promise((s,r)=>{const i=Hme(e,t??Oc._context);$f.set(i,{options:e,callback:n,resolve:s,reject:r})})}const zme=["alert","confirm","prompt"],jme={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};zme.forEach(e=>{Oc[e]=qme(e)});function qme(e){return(t,n,s,r)=>{let i="";return Pt(n)?(s=n,i=""):Fn(n)?i="":i=n,Oc(Object.assign({title:i,message:t,type:"",...jme[e]},s,{boxType:e}),r)}}Oc.close=()=>{$f.forEach((e,t)=>{t.doClose()}),$f.clear()};Oc._context=null;const Ka=Oc;Ka.install=e=>{Ka._context=e._context,e.config.globalProperties.$msgbox=Ka,e.config.globalProperties.$messageBox=Ka,e.config.globalProperties.$alert=Ka.alert,e.config.globalProperties.$confirm=Ka.confirm,e.config.globalProperties.$prompt=Ka.prompt};const Wme=Ka,r8=["success","info","warning","error"],Kme=Ve({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:sn},id:{type:String,default:""},message:{type:le([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:le(Function),default:()=>{}},onClose:{type:le(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:[...r8,""],default:""},zIndex:Number}),Gme={destroy:()=>!0},Yme=["id"],Xme=["textContent"],Qme={key:0},Jme=["innerHTML"],Zme=J({name:"ElNotification"}),ege=J({...Zme,props:Kme,emits:Gme,setup(e,{expose:t}){const n=e,{ns:s,zIndex:r}=jg("notification"),{nextZIndex:i,currentZIndex:a}=r,{Close:o}=x1,l=j(!1);let u;const c=E(()=>{const S=n.type;return S&&go[n.type]?s.m(S):""}),f=E(()=>n.type&&go[n.type]||n.icon),h=E(()=>n.position.endsWith("right")?"right":"left"),g=E(()=>n.position.startsWith("top")?"top":"bottom"),m=E(()=>{var S;return{[g.value]:`${n.offset}px`,zIndex:(S=n.zIndex)!=null?S:a.value}});function p(){n.duration>0&&({stop:u}=Sl(()=>{l.value&&v()},n.duration))}function y(){u==null||u()}function v(){l.value=!1}function b({code:S}){S===ot.delete||S===ot.backspace?y():S===ot.esc?l.value&&v():p()}return gt(()=>{p(),i(),l.value=!0}),cn(document,"keydown",b),t({visible:l,close:v}),(S,T)=>(k(),fe(Wn,{name:d(s).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:T[1]||(T[1]=w=>S.$emit("destroy")),persisted:""},{default:L(()=>[yt(R("div",{id:S.id,class:$([d(s).b(),S.customClass,d(h)]),style:it(d(m)),role:"alert",onMouseenter:y,onMouseleave:p,onClick:T[0]||(T[0]=(...w)=>S.onClick&&S.onClick(...w))},[d(f)?(k(),fe(d(tt),{key:0,class:$([d(s).e("icon"),d(c)])},{default:L(()=>[(k(),fe(Nt(d(f))))]),_:1},8,["class"])):ae("v-if",!0),R("div",{class:$(d(s).e("group"))},[R("h2",{class:$(d(s).e("title")),textContent:pe(S.title)},null,10,Xme),yt(R("div",{class:$(d(s).e("content")),style:it(S.title?void 0:{margin:0})},[be(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(k(),z(Ge,{key:1},[ae(" Caution here, message could've been compromised, never use user's input as message "),R("p",{innerHTML:S.message},null,8,Jme)],2112)):(k(),z("p",Qme,pe(S.message),1))])],6),[[zt,S.message]]),S.showClose?(k(),fe(d(tt),{key:0,class:$(d(s).e("closeBtn")),onClick:vt(v,["stop"])},{default:L(()=>[I(d(o))]),_:1},8,["class","onClick"])):ae("v-if",!0)],2)],46,Yme),[[zt,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var tge=ze(ege,[["__file","notification.vue"]]);const Fm={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ub=16;let nge=1;const sc=function(e={},t=null){if(!jt)return{close:()=>{}};(typeof e=="string"||_n(e))&&(e={message:e});const n=e.position||"top-right";let s=e.offset||0;Fm[n].forEach(({vm:c})=>{var f;s+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+Ub}),s+=Ub;const r=`notification_${nge++}`,i=e.onClose,a={...e,offset:s,id:r,onClose:()=>{sge(r,n,i)}};let o=document.body;Kr(e.appendTo)?o=e.appendTo:bt(e.appendTo)&&(o=document.querySelector(e.appendTo)),Kr(o)||(o=document.body);const l=document.createElement("div"),u=I(tge,a,_n(a.message)?{default:()=>a.message}:null);return u.appContext=t??sc._context,u.props.onDestroy=()=>{co(null,l)},co(u,l),Fm[n].push({vm:u}),o.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};r8.forEach(e=>{sc[e]=(t={})=>((typeof t=="string"||_n(t))&&(t={message:t}),sc({...t,type:e}))});function sge(e,t,n){const s=Fm[t],r=s.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(r===-1)return;const{vm:i}=s[r];if(!i)return;n==null||n(i);const a=i.el.offsetHeight,o=t.split("-")[0];s.splice(r,1);const l=s.length;if(!(l<1))for(let u=r;u<l;u++){const{el:c,component:f}=s[u].vm,h=Number.parseInt(c.style[o],10)-a-Ub;f.props.offset=h}}function rge(){for(const e of Object.values(Fm))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}sc.closeAll=rge;sc._context=null;const ige=X3(sc,"$notify");var age=[hme,yme,wt,Wme,ige,VO],oge=xK([...ame,...age]);const lge={class:"util"},uge=J({__name:"Util",setup(e){const t=Ct({show:!1,darkTheme:!0});gt(()=>{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="#16161a";break;case"more":t.show=!t.show;break}};return(s,r)=>{const i=tt,a=zD;return k(),z("div",lge,[I(a,null,{default:L(()=>[yt(R("div",null,[R("a",{href:"javascript:;",onClick:r[0]||(r[0]=o=>n("top"))},[I(i,null,{default:L(()=>[I(d(Rg))]),_:1})]),t.darkTheme?(k(),z("a",{key:0,href:"javascript:;",onClick:r[1]||(r[1]=o=>n("light"))},[I(i,null,{default:L(()=>[I(d(jj))]),_:1})])):ae("",!0),t.darkTheme?ae("",!0):(k(),z("a",{key:1,href:"javascript:;",onClick:r[2]||(r[2]=o=>n("dark"))},[I(i,null,{default:L(()=>[I(d(bj))]),_:1})])),R("a",{href:"/custom/player",onClick:r[3]||(r[3]=o=>n("dark"))},[I(i,null,{default:L(()=>[I(d(Xj))]),_:1})])],512),[[zt,t.show]])]),_:1}),R("a",{href:"javascript:;",onClick:r[4]||(r[4]=o=>n("more")),class:"more"},[I(i,null,{default:L(()=>[I(d(Vy))]),_:1})])])}}}),Cn=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},cge=Cn(uge,[["__scopeId","data-v-66b1aa59"]]);var i8={exports:{}};/*! Element Plus v2.7.6 */(function(e,t){(function(n,s){e.exports=s()})(lr,function(){var n={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};return n})})(i8);var dge=i8.exports;const fge=ks(dge),hge={class:"main"},pge=J({__name:"App",setup(e){return(t,n)=>{const s=kt("router-view"),r=PI;return k(),fe(r,{locale:d(fge)},{default:L(()=>[R("div",hge,[I(s),I(cge)])]),_:1},8,["locale"])}}});/*!
* vue-router v4.4.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const uu=typeof document<"u";function mge(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const yn=Object.assign;function V0(e,t){const n={};for(const s in t){const r=t[s];n[s]=gi(r)?r.map(e):e(r)}return n}const Yd=()=>{},gi=Array.isArray,a8=/#/g,gge=/&/g,vge=/\//g,yge=/=/g,bge=/\?/g,o8=/\+/g,_ge=/%5B/g,Sge=/%5D/g,l8=/%5E/g,wge=/%60/g,u8=/%7B/g,Tge=/%7C/g,c8=/%7D/g,Cge=/%20/g;function q2(e){return encodeURI(""+e).replace(Tge,"|").replace(_ge,"[").replace(Sge,"]")}function Ege(e){return q2(e).replace(u8,"{").replace(c8,"}").replace(l8,"^")}function Hb(e){return q2(e).replace(o8,"%2B").replace(Cge,"+").replace(a8,"%23").replace(gge,"%26").replace(wge,"`").replace(u8,"{").replace(c8,"}").replace(l8,"^")}function xge(e){return Hb(e).replace(yge,"%3D")}function kge(e){return q2(e).replace(a8,"%23").replace(bge,"%3F")}function Age(e){return e==null?"":kge(e).replace(vge,"%2F")}function Rf(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ige=/\/$/,Dge=e=>e.replace(Ige,"");function U0(e,t,n="/"){let s,r={},i="",a="";const o=t.indexOf("#");let l=t.indexOf("?");return o<l&&o>=0&&(l=-1),l>-1&&(s=t.slice(0,l),i=t.slice(l+1,o>-1?o:t.length),r=e(i)),o>-1&&(s=s||t.slice(0,o),a=t.slice(o,t.length)),s=Rge(s??t,n),{fullPath:s+(i&&"?")+i+a,path:s,query:r,hash:Rf(a)}}function Oge(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ex(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Pge(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&rc(t.matched[s],n.matched[r])&&d8(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function rc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function d8(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!$ge(e[n],t[n]))return!1;return!0}function $ge(e,t){return gi(e)?xx(e,t):gi(t)?xx(t,e):e===t}function xx(e,t){return gi(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Rge(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,a,o;for(a=0;a<s.length;a++)if(o=s[a],o!==".")if(o==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(a).join("/")}const Fa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Nf;(function(e){e.pop="pop",e.push="push"})(Nf||(Nf={}));var Xd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xd||(Xd={}));function Nge(e){if(!e)if(uu){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Dge(e)}const Mge=/^[^#]+#/;function Lge(e,t){return e.replace(Mge,"#")+t}function Bge(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 sv=()=>({left:window.scrollX,top:window.scrollY});function Fge(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=Bge(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function kx(e,t){return(history.state?history.state.position-t:-1)+e}const zb=new Map;function Vge(e,t){zb.set(e,t)}function Uge(e){const t=zb.get(e);return zb.delete(e),t}let Hge=()=>location.protocol+"//"+location.host;function f8(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Ex(l,"")}return Ex(n,e)+s+r}function zge(e,t,n,s){let r=[],i=[],a=null;const o=({state:h})=>{const g=f8(e,location),m=n.value,p=t.value;let y=0;if(h){if(n.value=g,t.value=h,a&&a===m){a=null;return}y=p?h.position-p.position:0}else s(g);r.forEach(v=>{v(n.value,m,{delta:y,type:Nf.pop,direction:y?y>0?Xd.forward:Xd.back:Xd.unknown})})};function l(){a=n.value}function u(h){r.push(h);const g=()=>{const m=r.indexOf(h);m>-1&&r.splice(m,1)};return i.push(g),g}function c(){const{history:h}=window;h.state&&h.replaceState(yn({},h.state,{scroll:sv()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Ax(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?sv():null}}function jge(e){const{history:t,location:n}=window,s={value:f8(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,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Hge()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),r.value=u}catch(g){console.error(g),n[c?"replace":"assign"](h)}}function a(l,u){const c=yn({},t.state,Ax(r.value.back,l,r.value.forward,!0),u,{position:r.value.position});i(l,c,!0),s.value=l}function o(l,u){const c=yn({},r.value,t.state,{forward:l,scroll:sv()});i(c.current,c,!0);const f=yn({},Ax(s.value,l,null),{position:c.position+1},u);i(l,f,!1),s.value=l}return{location:s,state:r,push:o,replace:a}}function qge(e){e=Nge(e);const t=jge(e),n=zge(e,t.state,t.location,t.replace);function s(i,a=!0){a||n.pauseListeners(),history.go(i)}const r=yn({location:"",base:e,go:s,createHref:Lge.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 Wge(e){return typeof e=="string"||e&&typeof e=="object"}function h8(e){return typeof e=="string"||typeof e=="symbol"}const p8=Symbol("");var Ix;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ix||(Ix={}));function ic(e,t){return yn(new Error,{type:e,[p8]:!0},t)}function na(e,t){return e instanceof Error&&p8 in e&&(t==null||!!(e.type&t))}const Dx="[^/]+?",Kge={sensitive:!1,strict:!1,start:!0,end:!0},Gge=/[.+*?^${}()[\]/\\]/g;function Yge(e,t){const n=yn({},Kge,t),s=[];let r=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const h=u[f];let g=40+(n.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(Gge,"\\$&"),g+=40;else if(h.type===1){const{value:m,repeatable:p,optional:y,regexp:v}=h;i.push({name:m,repeatable:p,optional:y});const b=v||Dx;if(b!==Dx){g+=10;try{new RegExp(`(${b})`)}catch(T){throw new Error(`Invalid custom RegExp for param "${m}" (${b}): `+T.message)}}let S=p?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(S=y&&u.length<2?`(?:/${S})`:"/"+S),y&&(S+="?"),r+=S,g+=20,y&&(g+=-8),p&&(g+=-20),b===".*"&&(g+=-50)}c.push(g)}s.push(c)}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 a=new RegExp(r,n.sensitive?"":"i");function o(u){const c=u.match(a),f={};if(!c)return null;for(let h=1;h<c.length;h++){const g=c[h]||"",m=i[h-1];f[m.name]=g&&m.repeatable?g.split("/"):g}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const g of h)if(g.type===0)c+=g.value;else if(g.type===1){const{value:m,repeatable:p,optional:y}=g,v=m in u?u[m]:"";if(gi(v)&&!p)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const b=gi(v)?v.join("/"):v;if(!b)if(y)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${m}"`);c+=b}}return c||"/"}return{re:a,score:s,keys:i,parse:o,stringify:l}}function Xge(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 m8(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const i=Xge(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(Ox(s))return 1;if(Ox(r))return-1}return r.length-s.length}function Ox(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Qge={type:0,value:""},Jge=/[a-zA-Z0-9_]/;function Zge(e){if(!e)return[[]];if(e==="/")return[[Qge]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,s=n;const r=[];let i;function a(){i&&r.push(i),i=[]}let o=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;o<e.length;){if(l=e[o++],l==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),a()):l===":"?(f(),n=1):h();break;case 4:h(),n=s;break;case 1:l==="("?n=2:Jge.test(l)?h():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&o--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),r}function eve(e,t,n){const s=Yge(Zge(e.path),n),r=yn(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function tve(e,t){const n=[],s=new Map;t=Rx({strict:!1,end:!0,sensitive:!1},t);function r(f){return s.get(f)}function i(f,h,g){const m=!g,p=nve(f);p.aliasOf=g&&g.record;const y=Rx(t,f),v=[p];if("alias"in f){const T=typeof f.alias=="string"?[f.alias]:f.alias;for(const w of T)v.push(yn({},p,{components:g?g.record.components:p.components,path:w,aliasOf:g?g.record:p}))}let b,S;for(const T of v){const{path:w}=T;if(h&&w[0]!=="/"){const C=h.record.path,O=C[C.length-1]==="/"?"":"/";T.path=h.record.path+(w&&O+w)}if(b=eve(T,h,y),g?g.alias.push(b):(S=S||b,S!==b&&S.alias.push(b),m&&f.name&&!$x(b)&&a(f.name)),g8(b)&&l(b),p.children){const C=p.children;for(let O=0;O<C.length;O++)i(C[O],b,g&&g.children[O])}g=g||b}return S?()=>{a(S)}:Yd}function a(f){if(h8(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function o(){return n}function l(f){const h=ive(f,n);n.splice(h,0,f),f.record.name&&!$x(f)&&s.set(f.record.name,f)}function u(f,h){let g,m={},p,y;if("name"in f&&f.name){if(g=s.get(f.name),!g)throw ic(1,{location:f});y=g.record.name,m=yn(Px(h.params,g.keys.filter(S=>!S.optional).concat(g.parent?g.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),f.params&&Px(f.params,g.keys.map(S=>S.name))),p=g.stringify(m)}else if(f.path!=null)p=f.path,g=n.find(S=>S.re.test(p)),g&&(m=g.parse(p),y=g.record.name);else{if(g=h.name?s.get(h.name):n.find(S=>S.re.test(h.path)),!g)throw ic(1,{location:f,currentLocation:h});y=g.record.name,m=yn({},h.params,f.params),p=g.stringify(m)}const v=[];let b=g;for(;b;)v.unshift(b.record),b=b.parent;return{name:y,path:p,params:m,matched:v,meta:rve(v)}}e.forEach(f=>i(f));function c(){n.length=0,s.clear()}return{addRoute:i,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:o,getRecordMatcher:r}}function Px(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function nve(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:sve(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 sve(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=="object"?n[s]:n;return t}function $x(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rve(e){return e.reduce((t,n)=>yn(t,n.meta),{})}function Rx(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function ive(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;m8(e,t[i])<0?s=i:n=i+1}const r=ave(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function ave(e){let t=e;for(;t=t.parent;)if(g8(t)&&m8(e,t)===0)return t}function g8({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ove(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(o8," "),a=i.indexOf("="),o=Rf(a<0?i:i.slice(0,a)),l=a<0?null:Rf(i.slice(a+1));if(o in t){let u=t[o];gi(u)||(u=t[o]=[u]),u.push(l)}else t[o]=l}return t}function Nx(e){let t="";for(let n in e){const s=e[n];if(n=xge(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(gi(s)?s.map(i=>i&&Hb(i)):[s&&Hb(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function lve(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=gi(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const uve=Symbol(""),Mx=Symbol(""),rv=Symbol(""),W2=Symbol(""),jb=Symbol("");function dd(){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.slice(),reset:n}}function Qa(e,t,n,s,r,i=a=>a()){const a=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,l)=>{const u=h=>{h===!1?l(ic(4,{from:n,to:t})):h instanceof Error?l(h):Wge(h)?l(ic(2,{from:t,to:h})):(a&&s.enterCallbacks[r]===a&&typeof h=="function"&&a.push(h),o())},c=i(()=>e.call(s&&s.instances[r],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function H0(e,t,n,s,r=i=>i()){const i=[];for(const a of e)for(const o in a.components){let l=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(cve(l)){const c=(l.__vccOpts||l)[t];c&&i.push(Qa(c,n,s,a,o,r))}else{let u=l();i.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=mge(c)?c.default:c;a.components[o]=f;const g=(f.__vccOpts||f)[t];return g&&Qa(g,n,s,a,o,r)()}))}}return i}function cve(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Lx(e){const t=Je(rv),n=Je(W2),s=E(()=>{const l=d(e.to);return t.resolve(l)}),r=E(()=>{const{matched:l}=s.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(rc.bind(null,c));if(h>-1)return h;const g=Bx(l[u-2]);return u>1&&Bx(c)===g&&f[f.length-1].path!==g?f.findIndex(rc.bind(null,l[u-2])):h}),i=E(()=>r.value>-1&&pve(n.params,s.value.params)),a=E(()=>r.value>-1&&r.value===n.matched.length-1&&d8(n.params,s.value.params));function o(l={}){return hve(l)?t[d(e.replace)?"replace":"push"](d(e.to)).catch(Yd):Promise.resolve()}return{route:s,href:E(()=>s.value.href),isActive:i,isExactActive:a,navigate:o}}const dve=J({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Lx,setup(e,{slots:t}){const n=Ct(Lx(e)),{options:s}=Je(rv),r=E(()=>({[Fx(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Fx(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:lt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),fve=dve;function hve(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 pve(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(!gi(r)||r.length!==s.length||s.some((i,a)=>i!==r[a]))return!1}return!0}function Bx(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Fx=(e,t,n)=>e??t??n,mve=J({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Je(jb),r=E(()=>e.route||s.value),i=Je(Mx,0),a=E(()=>{let u=d(i);const{matched:c}=r.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),o=E(()=>r.value.matched[a.value]);Mt(Mx,E(()=>a.value+1)),Mt(uve,o),Mt(jb,r);const l=j();return xe(()=>[l.value,o.value,e.name],([u,c,f],[h,g,m])=>{c&&(c.instances[f]=u,g&&g!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!rc(c,g)||!h)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,f=o.value,h=f&&f.components[c];if(!h)return Vx(n.default,{Component:h,route:u});const g=f.props[c],m=g?g===!0?u.params:typeof g=="function"?g(u):g:null,y=lt(h,yn({},m,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Vx(n.default,{Component:y,route:u})||y}}});function Vx(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const gve=mve;function vve(e){const t=tve(e.routes,e),n=e.parseQuery||ove,s=e.stringifyQuery||Nx,r=e.history,i=dd(),a=dd(),o=dd(),l=ln(Fa);let u=Fa;uu&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=V0.bind(null,te=>""+te),f=V0.bind(null,Age),h=V0.bind(null,Rf);function g(te,ie){let we,me;return h8(te)?(we=t.getRecordMatcher(te),me=ie):me=te,t.addRoute(me,we)}function m(te){const ie=t.getRecordMatcher(te);ie&&t.removeRoute(ie)}function p(){return t.getRoutes().map(te=>te.record)}function y(te){return!!t.getRecordMatcher(te)}function v(te,ie){if(ie=yn({},ie||l.value),typeof te=="string"){const se=U0(n,te,ie.path),Te=t.resolve({path:se.path},ie),Le=r.createHref(se.fullPath);return yn(se,Te,{params:h(Te.params),hash:Rf(se.hash),redirectedFrom:void 0,href:Le})}let we;if(te.path!=null)we=yn({},te,{path:U0(n,te.path,ie.path).path});else{const se=yn({},te.params);for(const Te in se)se[Te]==null&&delete se[Te];we=yn({},te,{params:f(se)}),ie.params=f(ie.params)}const me=t.resolve(we,ie),Ce=te.hash||"";me.params=c(h(me.params));const Be=Oge(s,yn({},te,{hash:Ege(Ce),path:me.path})),ee=r.createHref(Be);return yn({fullPath:Be,hash:Ce,query:s===Nx?lve(te.query):te.query||{}},me,{redirectedFrom:void 0,href:ee})}function b(te){return typeof te=="string"?U0(n,te,l.value.path):yn({},te)}function S(te,ie){if(u!==te)return ic(8,{from:ie,to:te})}function T(te){return O(te)}function w(te){return T(yn(b(te),{replace:!0}))}function C(te){const ie=te.matched[te.matched.length-1];if(ie&&ie.redirect){const{redirect:we}=ie;let me=typeof we=="function"?we(te):we;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=b(me):{path:me},me.params={}),yn({query:te.query,hash:te.hash,params:me.path!=null?{}:te.params},me)}}function O(te,ie){const we=u=v(te),me=l.value,Ce=te.state,Be=te.force,ee=te.replace===!0,se=C(we);if(se)return O(yn(b(se),{state:typeof se=="object"?yn({},Ce,se.state):Ce,force:Be,replace:ee}),ie||we);const Te=we;Te.redirectedFrom=ie;let Le;return!Be&&Pge(s,me,we)&&(Le=ic(16,{to:Te,from:me}),Z(me,me,!0,!1)),(Le?Promise.resolve(Le):U(Te,me)).catch(Se=>na(Se)?na(Se,2)?Se:Y(Se):V(Se,Te,me)).then(Se=>{if(Se){if(na(Se,2))return O(yn({replace:ee},b(Se.to),{state:typeof Se.to=="object"?yn({},Ce,Se.to.state):Ce,force:Be}),ie||Te)}else Se=W(Te,me,!0,ee,Ce);return B(Te,me,Se),Se})}function P(te,ie){const we=S(te,ie);return we?Promise.reject(we):Promise.resolve()}function M(te){const ie=_e.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(te):te()}function U(te,ie){let we;const[me,Ce,Be]=yve(te,ie);we=H0(me.reverse(),"beforeRouteLeave",te,ie);for(const se of me)se.leaveGuards.forEach(Te=>{we.push(Qa(Te,te,ie))});const ee=P.bind(null,te,ie);return we.push(ee),ce(we).then(()=>{we=[];for(const se of i.list())we.push(Qa(se,te,ie));return we.push(ee),ce(we)}).then(()=>{we=H0(Ce,"beforeRouteUpdate",te,ie);for(const se of Ce)se.updateGuards.forEach(Te=>{we.push(Qa(Te,te,ie))});return we.push(ee),ce(we)}).then(()=>{we=[];for(const se of Be)if(se.beforeEnter)if(gi(se.beforeEnter))for(const Te of se.beforeEnter)we.push(Qa(Te,te,ie));else we.push(Qa(se.beforeEnter,te,ie));return we.push(ee),ce(we)}).then(()=>(te.matched.forEach(se=>se.enterCallbacks={}),we=H0(Be,"beforeRouteEnter",te,ie,M),we.push(ee),ce(we))).then(()=>{we=[];for(const se of a.list())we.push(Qa(se,te,ie));return we.push(ee),ce(we)}).catch(se=>na(se,8)?se:Promise.reject(se))}function B(te,ie,we){o.list().forEach(me=>M(()=>me(te,ie,we)))}function W(te,ie,we,me,Ce){const Be=S(te,ie);if(Be)return Be;const ee=ie===Fa,se=uu?history.state:{};we&&(me||ee?r.replace(te.fullPath,yn({scroll:ee&&se&&se.scroll},Ce)):r.push(te.fullPath,Ce)),l.value=te,Z(te,ie,we,ee),Y()}let Q;function G(){Q||(Q=r.listen((te,ie,we)=>{if(!Ne.listening)return;const me=v(te),Ce=C(me);if(Ce){O(yn(Ce,{replace:!0}),me).catch(Yd);return}u=me;const Be=l.value;uu&&Vge(kx(Be.fullPath,we.delta),sv()),U(me,Be).catch(ee=>na(ee,12)?ee:na(ee,2)?(O(ee.to,me).then(se=>{na(se,20)&&!we.delta&&we.type===Nf.pop&&r.go(-1,!1)}).catch(Yd),Promise.reject()):(we.delta&&r.go(-we.delta,!1),V(ee,me,Be))).then(ee=>{ee=ee||W(me,Be,!1),ee&&(we.delta&&!na(ee,8)?r.go(-we.delta,!1):we.type===Nf.pop&&na(ee,20)&&r.go(-1,!1)),B(me,Be,ee)}).catch(Yd)}))}let X=dd(),q=dd(),H;function V(te,ie,we){Y(te);const me=q.list();return me.length?me.forEach(Ce=>Ce(te,ie,we)):console.error(te),Promise.reject(te)}function N(){return H&&l.value!==Fa?Promise.resolve():new Promise((te,ie)=>{X.add([te,ie])})}function Y(te){return H||(H=!te,G(),X.list().forEach(([ie,we])=>te?we(te):ie()),X.reset()),te}function Z(te,ie,we,me){const{scrollBehavior:Ce}=e;if(!uu||!Ce)return Promise.resolve();const Be=!we&&Uge(kx(te.fullPath,0))||(me||!we)&&history.state&&history.state.scroll||null;return ut().then(()=>Ce(te,ie,Be)).then(ee=>ee&&Fge(ee)).catch(ee=>V(ee,te,ie))}const ne=te=>r.go(te);let ue;const _e=new Set,Ne={currentRoute:l,listening:!0,addRoute:g,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:p,resolve:v,options:e,push:T,replace:w,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:i.add,beforeResolve:a.add,afterEach:o.add,onError:q.add,isReady:N,install(te){const ie=this;te.component("RouterLink",fve),te.component("RouterView",gve),te.config.globalProperties.$router=ie,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>d(l)}),uu&&!ue&&l.value===Fa&&(ue=!0,T(r.location).catch(Ce=>{}));const we={};for(const Ce in Fa)Object.defineProperty(we,Ce,{get:()=>l.value[Ce],enumerable:!0});te.provide(rv,ie),te.provide(W2,B_(we)),te.provide(jb,l);const me=te.unmount;_e.add(te),te.unmount=function(){_e.delete(te),_e.size<1&&(u=Fa,Q&&Q(),Q=null,l.value=Fa,ue=!1,H=!1),me()}}};function ce(te){return te.reduce((ie,we)=>ie.then(()=>M(we)),Promise.resolve())}return Ne}function yve(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const o=t.matched[a];o&&(e.matched.find(u=>rc(u,o))?s.push(o):n.push(o));const l=e.matched[a];l&&(t.matched.find(u=>rc(u,l))||r.push(l))}return[n,s,r]}function Oa(){return Je(rv)}function bve(e){return Je(W2)}function v8(e,t){return function(){return e.apply(t,arguments)}}const{toString:_ve}=Object.prototype,{getPrototypeOf:K2}=Object,iv=(e=>t=>{const n=_ve.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Si=e=>(e=e.toLowerCase(),t=>iv(t)===e),av=e=>t=>typeof t===e,{isArray:Pc}=Array,Mf=av("undefined");function Sve(e){return e!==null&&!Mf(e)&&e.constructor!==null&&!Mf(e.constructor)&&zr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y8=Si("ArrayBuffer");function wve(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&y8(e.buffer),t}const Tve=av("string"),zr=av("function"),b8=av("number"),ov=e=>e!==null&&typeof e=="object",Cve=e=>e===!0||e===!1,sm=e=>{if(iv(e)!=="object")return!1;const t=K2(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Eve=Si("Date"),xve=Si("File"),kve=Si("Blob"),Ave=Si("FileList"),Ive=e=>ov(e)&&zr(e.pipe),Dve=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||zr(e.append)&&((t=iv(e))==="formdata"||t==="object"&&zr(e.toString)&&e.toString()==="[object FormData]"))},Ove=Si("URLSearchParams"),[Pve,$ve,Rve,Nve]=["ReadableStream","Request","Response","Headers"].map(Si),Mve=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Pc(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),a=i.length;let o;for(s=0;s<a;s++)o=i[s],t.call(null,e[o],o,e)}}function _8(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 S8=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),w8=e=>!Mf(e)&&e!==S8;function qb(){const{caseless:e}=w8(this)&&this||{},t={},n=(s,r)=>{const i=e&&_8(t,r)||r;sm(t[i])&&sm(s)?t[i]=qb(t[i],s):sm(s)?t[i]=qb({},s):Pc(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&vh(arguments[s],n);return t}const Lve=(e,t,n,{allOwnKeys:s}={})=>(vh(t,(r,i)=>{n&&zr(r)?e[i]=v8(r,n):e[i]=r},{allOwnKeys:s}),e),Bve=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Fve=(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)},Vve=(e,t,n,s)=>{let r,i,a;const o={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],(!s||s(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=n!==!1&&K2(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uve=(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},Hve=e=>{if(!e)return null;if(Pc(e))return e;let t=e.length;if(!b8(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zve=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&K2(Uint8Array)),jve=(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])}},qve=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Wve=Si("HTMLFormElement"),Kve=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Ux=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gve=Si("RegExp"),T8=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};vh(n,(r,i)=>{let a;(a=t(r,i,e))!==!1&&(s[i]=a||r)}),Object.defineProperties(e,s)},Yve=e=>{T8(e,(t,n)=>{if(zr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(zr(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+"'")})}})},Xve=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Pc(e)?s(e):s(String(e).split(t)),n},Qve=()=>{},Jve=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,z0="abcdefghijklmnopqrstuvwxyz",Hx="0123456789",C8={DIGIT:Hx,ALPHA:z0,ALPHA_DIGIT:z0+z0.toUpperCase()+Hx},Zve=(e=16,t=C8.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function e0e(e){return!!(e&&zr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const t0e=e=>{const t=new Array(10),n=(s,r)=>{if(ov(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=Pc(s)?[]:{};return vh(s,(a,o)=>{const l=n(a,r+1);!Mf(l)&&(i[o]=l)}),t[r]=void 0,i}}return s};return n(e,0)},n0e=Si("AsyncFunction"),s0e=e=>e&&(ov(e)||zr(e))&&zr(e.then)&&zr(e.catch),Qe={isArray:Pc,isArrayBuffer:y8,isBuffer:Sve,isFormData:Dve,isArrayBufferView:wve,isString:Tve,isNumber:b8,isBoolean:Cve,isObject:ov,isPlainObject:sm,isReadableStream:Pve,isRequest:$ve,isResponse:Rve,isHeaders:Nve,isUndefined:Mf,isDate:Eve,isFile:xve,isBlob:kve,isRegExp:Gve,isFunction:zr,isStream:Ive,isURLSearchParams:Ove,isTypedArray:zve,isFileList:Ave,forEach:vh,merge:qb,extend:Lve,trim:Mve,stripBOM:Bve,inherits:Fve,toFlatObject:Vve,kindOf:iv,kindOfTest:Si,endsWith:Uve,toArray:Hve,forEachEntry:jve,matchAll:qve,isHTMLForm:Wve,hasOwnProperty:Ux,hasOwnProp:Ux,reduceDescriptors:T8,freezeMethods:Yve,toObjectSet:Xve,toCamelCase:Kve,noop:Qve,toFiniteNumber:Jve,findKey:_8,global:S8,isContextDefined:w8,ALPHABET:C8,generateString:Zve,isSpecCompliantForm:e0e,toJSONObject:t0e,isAsyncFn:n0e,isThenable:s0e};function Xt(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)}Qe.inherits(Xt,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:Qe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const E8=Xt.prototype,x8={};["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=>{x8[e]={value:e}});Object.defineProperties(Xt,x8);Object.defineProperty(E8,"isAxiosError",{value:!0});Xt.from=(e,t,n,s,r,i)=>{const a=Object.create(E8);return Qe.toFlatObject(e,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Xt.call(a,e.message,t,n,s,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const r0e=null;function Wb(e){return Qe.isPlainObject(e)||Qe.isArray(e)}function k8(e){return Qe.endsWith(e,"[]")?e.slice(0,-2):e}function zx(e,t,n){return e?e.concat(t).map(function(r,i){return r=k8(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function i0e(e){return Qe.isArray(e)&&!e.some(Wb)}const a0e=Qe.toFlatObject(Qe,{},null,function(t){return/^is[A-Z]/.test(t)});function lv(e,t,n){if(!Qe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Qe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!Qe.isUndefined(y[p])});const s=n.metaTokens,r=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Qe.isSpecCompliantForm(t);if(!Qe.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(Qe.isDate(m))return m.toISOString();if(!l&&Qe.isBlob(m))throw new Xt("Blob is not supported. Use a Buffer instead.");return Qe.isArrayBuffer(m)||Qe.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,p,y){let v=m;if(m&&!y&&typeof m=="object"){if(Qe.endsWith(p,"{}"))p=s?p:p.slice(0,-2),m=JSON.stringify(m);else if(Qe.isArray(m)&&i0e(m)||(Qe.isFileList(m)||Qe.endsWith(p,"[]"))&&(v=Qe.toArray(m)))return p=k8(p),v.forEach(function(S,T){!(Qe.isUndefined(S)||S===null)&&t.append(a===!0?zx([p],T,i):a===null?p:p+"[]",u(S))}),!1}return Wb(m)?!0:(t.append(zx(y,p,i),u(m)),!1)}const f=[],h=Object.assign(a0e,{defaultVisitor:c,convertValue:u,isVisitable:Wb});function g(m,p){if(!Qe.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),Qe.forEach(m,function(v,b){(!(Qe.isUndefined(v)||v===null)&&r.call(t,v,Qe.isString(b)?b.trim():b,p,h))===!0&&g(v,p?p.concat(b):[b])}),f.pop()}}if(!Qe.isObject(e))throw new TypeError("data must be an object");return g(e),t}function jx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function G2(e,t){this._pairs=[],e&&lv(e,this,t)}const A8=G2.prototype;A8.append=function(t,n){this._pairs.push([t,n])};A8.toString=function(t){const n=t?function(s){return t.call(this,s,jx)}:jx;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function o0e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function I8(e,t,n){if(!t)return e;const s=n&&n.encode||o0e,r=n&&n.serialize;let i;if(r?i=r(t,n):i=Qe.isURLSearchParams(t)?t.toString():new G2(t,n).toString(s),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class l0e{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){Qe.forEach(this.handlers,function(s){s!==null&&t(s)})}}const qx=l0e,D8={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u0e=typeof URLSearchParams<"u"?URLSearchParams:G2,c0e=typeof FormData<"u"?FormData:null,d0e=typeof Blob<"u"?Blob:null,f0e={isBrowser:!0,classes:{URLSearchParams:u0e,FormData:c0e,Blob:d0e},protocols:["http","https","file","blob","url","data"]},Y2=typeof window<"u"&&typeof document<"u",h0e=(e=>Y2&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),p0e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),m0e=Y2&&window.location.href||"http://localhost",g0e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Y2,hasStandardBrowserEnv:h0e,hasStandardBrowserWebWorkerEnv:p0e,origin:m0e},Symbol.toStringTag,{value:"Module"})),ui={...g0e,...f0e};function v0e(e,t){return lv(e,new ui.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return ui.isNode&&Qe.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function y0e(e){return Qe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b0e(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 O8(e){function t(n,s,r,i){let a=n[i++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=i>=n.length;return a=!a&&Qe.isArray(r)?r.length:a,l?(Qe.hasOwnProp(r,a)?r[a]=[r[a],s]:r[a]=s,!o):((!r[a]||!Qe.isObject(r[a]))&&(r[a]=[]),t(n,s,r[a],i)&&Qe.isArray(r[a])&&(r[a]=b0e(r[a])),!o)}if(Qe.isFormData(e)&&Qe.isFunction(e.entries)){const n={};return Qe.forEachEntry(e,(s,r)=>{t(y0e(s),r,n,0)}),n}return null}function _0e(e,t,n){if(Qe.isString(e))try{return(t||JSON.parse)(e),Qe.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const X2={transitional:D8,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=Qe.isObject(t);if(i&&Qe.isHTMLForm(t)&&(t=new FormData(t)),Qe.isFormData(t))return r?JSON.stringify(O8(t)):t;if(Qe.isArrayBuffer(t)||Qe.isBuffer(t)||Qe.isStream(t)||Qe.isFile(t)||Qe.isBlob(t)||Qe.isReadableStream(t))return t;if(Qe.isArrayBufferView(t))return t.buffer;if(Qe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return v0e(t,this.formSerializer).toString();if((o=Qe.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return lv(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),_0e(t)):t}],transformResponse:[function(t){const n=this.transitional||X2.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Qe.isResponse(t)||Qe.isReadableStream(t))return t;if(t&&Qe.isString(t)&&(s&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?Xt.from(o,Xt.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ui.classes.FormData,Blob:ui.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Qe.forEach(["delete","get","head","post","put","patch"],e=>{X2.headers[e]={}});const Q2=X2,S0e=Qe.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"]),w0e=e=>{const t={};let n,s,r;return e&&e.split(`
`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),s=a.substring(r+1).trim(),!(!n||t[n]&&S0e[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Wx=Symbol("internals");function fd(e){return e&&String(e).trim().toLowerCase()}function rm(e){return e===!1||e==null?e:Qe.isArray(e)?e.map(rm):String(e)}function T0e(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}const C0e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function j0(e,t,n,s,r){if(Qe.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!Qe.isString(t)){if(Qe.isString(s))return t.indexOf(s)!==-1;if(Qe.isRegExp(s))return s.test(t)}}function E0e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function x0e(e,t){const n=Qe.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,a){return this[s].call(this,t,r,i,a)},configurable:!0})})}class uv{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(o,l,u){const c=fd(l);if(!c)throw new Error("header name must be a non-empty string");const f=Qe.findKey(r,c);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||l]=rm(o))}const a=(o,l)=>Qe.forEach(o,(u,c)=>i(u,c,l));if(Qe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Qe.isString(t)&&(t=t.trim())&&!C0e(t))a(w0e(t),n);else if(Qe.isHeaders(t))for(const[o,l]of t.entries())i(l,o,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=fd(t),t){const s=Qe.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return T0e(r);if(Qe.isFunction(n))return n.call(this,r,s);if(Qe.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fd(t),t){const s=Qe.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||j0(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(a){if(a=fd(a),a){const o=Qe.findKey(s,a);o&&(!n||j0(s,s[o],o,n))&&(delete s[o],r=!0)}}return Qe.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||j0(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return Qe.forEach(this,(r,i)=>{const a=Qe.findKey(s,i);if(a){n[a]=rm(r),delete n[i];return}const o=t?E0e(i):String(i).trim();o!==i&&delete n[i],n[o]=rm(r),s[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Qe.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&Qe.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[Wx]=this[Wx]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=fd(a);s[o]||(x0e(r,a),s[o]=!0)}return Qe.isArray(t)?t.forEach(i):i(t),this}}uv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Qe.reduceDescriptors(uv.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});Qe.freezeMethods(uv);const ci=uv;function q0(e,t){const n=this||Q2,s=t||n,r=ci.from(s.headers);let i=s.data;return Qe.forEach(e,function(o){i=o.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function P8(e){return!!(e&&e.__CANCEL__)}function $c(e,t,n){Xt.call(this,e??"canceled",Xt.ERR_CANCELED,t,n),this.name="CanceledError"}Qe.inherits($c,Xt,{__CANCEL__:!0});function $8(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Xt("Request failed with status code "+n.status,[Xt.ERR_BAD_REQUEST,Xt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function k0e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function A0e(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=s[i];a||(a=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-a<t)return;const g=c&&u-c;return g?Math.round(h*1e3/g):void 0}}function I0e(e,t){let n=0;const s=1e3/t;let r=null;return function(){const a=this===!0,o=Date.now();if(a||o-n>s)return r&&(clearTimeout(r),r=null),n=o,e.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),e.apply(null,arguments)),s-(o-n)))}}const Vm=(e,t,n=3)=>{let s=0;const r=A0e(50,250);return I0e(i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-s,u=r(l),c=a<=o;s=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-a)/u:void 0,event:i,lengthComputable:o!=null};f[t?"download":"upload"]=!0,e(f)},n)},D0e=ui.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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(a){const o=Qe.isString(a)?r(a):a;return o.protocol===s.protocol&&o.host===s.host}}():function(){return function(){return!0}}(),O0e=ui.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const a=[e+"="+encodeURIComponent(t)];Qe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Qe.isString(s)&&a.push("path="+s),Qe.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function P0e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $0e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function R8(e,t){return e&&!P0e(t)?$0e(e,t):t}const Kx=e=>e instanceof ci?{...e}:e;function Al(e,t){t=t||{};const n={};function s(u,c,f){return Qe.isPlainObject(u)&&Qe.isPlainObject(c)?Qe.merge.call({caseless:f},u,c):Qe.isPlainObject(c)?Qe.merge({},c):Qe.isArray(c)?c.slice():c}function r(u,c,f){if(Qe.isUndefined(c)){if(!Qe.isUndefined(u))return s(void 0,u,f)}else return s(u,c,f)}function i(u,c){if(!Qe.isUndefined(c))return s(void 0,c)}function a(u,c){if(Qe.isUndefined(c)){if(!Qe.isUndefined(u))return s(void 0,u)}else return s(void 0,c)}function o(u,c,f){if(f in t)return s(u,c);if(f in e)return s(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,c)=>r(Kx(u),Kx(c),!0)};return Qe.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||r,h=f(e[c],t[c],c);Qe.isUndefined(h)&&f!==o||(n[c]=h)}),n}const N8=e=>{const t=Al({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:o}=t;t.headers=a=ci.from(a),t.url=I8(R8(t.baseURL,t.url),e.params,e.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(Qe.isFormData(n)){if(ui.hasStandardBrowserEnv||ui.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(ui.hasStandardBrowserEnv&&(s&&Qe.isFunction(s)&&(s=s(t)),s||s!==!1&&D0e(t.url))){const u=r&&i&&O0e.read(i);u&&a.set(r,u)}return t},R0e=typeof XMLHttpRequest<"u",N0e=R0e&&function(e){return new Promise(function(n,s){const r=N8(e);let i=r.data;const a=ci.from(r.headers).normalize();let{responseType:o}=r,l;function u(){r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function f(){if(!c)return;const g=ci.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};$8(function(v){n(v),u()},function(v){s(v),u()},p),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(s(new Xt("Request aborted",Xt.ECONNABORTED,r,c)),c=null)},c.onerror=function(){s(new Xt("Network Error",Xt.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let m=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const p=r.transitional||D8;r.timeoutErrorMessage&&(m=r.timeoutErrorMessage),s(new Xt(m,p.clarifyTimeoutError?Xt.ETIMEDOUT:Xt.ECONNABORTED,r,c)),c=null},i===void 0&&a.setContentType(null),"setRequestHeader"in c&&Qe.forEach(a.toJSON(),function(m,p){c.setRequestHeader(p,m)}),Qe.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),o&&o!=="json"&&(c.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&c.addEventListener("progress",Vm(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Vm(r.onUploadProgress)),(r.cancelToken||r.signal)&&(l=g=>{c&&(s(!g||g.type?new $c(null,e,c):g),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const h=k0e(r.url);if(h&&ui.protocols.indexOf(h)===-1){s(new Xt("Unsupported protocol "+h+":",Xt.ERR_BAD_REQUEST,e));return}c.send(i||null)})},M0e=(e,t)=>{let n=new AbortController,s;const r=function(l){if(!s){s=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof Xt?u:new $c(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{r(new Xt(`timeout ${t} of ms exceeded`,Xt.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:o}=n;return o.unsubscribe=a,[o,()=>{i&&clearTimeout(i),i=null}]},L0e=M0e,B0e=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},F0e=async function*(e,t,n){for await(const s of e)yield*B0e(ArrayBuffer.isView(s)?s:await n(String(s)),t)},Gx=(e,t,n,s,r)=>{const i=F0e(e,t,r);let a=0;return new ReadableStream({type:"bytes",async pull(o){const{done:l,value:u}=await i.next();if(l){o.close(),s();return}let c=u.byteLength;n&&n(a+=c),o.enqueue(new Uint8Array(u))},cancel(o){return s(o),i.return()}},{highWaterMark:2})},Yx=(e,t)=>{const n=e!=null;return s=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:s}))},cv=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",M8=cv&&typeof ReadableStream=="function",Kb=cv&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),V0e=M8&&(()=>{let e=!1;const t=new Request(ui.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Xx=64*1024,Gb=M8&&!!(()=>{try{return Qe.isReadableStream(new Response("").body)}catch{}})(),Um={stream:Gb&&(e=>e.body)};cv&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Um[t]&&(Um[t]=Qe.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new Xt(`Response type '${t}' is not supported`,Xt.ERR_NOT_SUPPORT,s)})})})(new Response);const U0e=async e=>{if(e==null)return 0;if(Qe.isBlob(e))return e.size;if(Qe.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Qe.isArrayBufferView(e))return e.byteLength;if(Qe.isURLSearchParams(e)&&(e=e+""),Qe.isString(e))return(await Kb(e)).byteLength},H0e=async(e,t)=>{const n=Qe.toFiniteNumber(e.getContentLength());return n??U0e(t)},z0e=cv&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=N8(e);u=u?(u+"").toLowerCase():"text";let[g,m]=r||i||a?L0e([r,i],a):[],p,y;const v=()=>{!p&&setTimeout(()=>{g&&g.unsubscribe()}),p=!0};let b;try{if(l&&V0e&&n!=="get"&&n!=="head"&&(b=await H0e(c,s))!==0){let C=new Request(t,{method:"POST",body:s,duplex:"half"}),O;Qe.isFormData(s)&&(O=C.headers.get("content-type"))&&c.setContentType(O),C.body&&(s=Gx(C.body,Xx,Yx(b,Vm(l)),null,Kb))}Qe.isString(f)||(f=f?"cors":"omit"),y=new Request(t,{...h,signal:g,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:s,duplex:"half",withCredentials:f});let S=await fetch(y);const T=Gb&&(u==="stream"||u==="response");if(Gb&&(o||T)){const C={};["status","statusText","headers"].forEach(P=>{C[P]=S[P]});const O=Qe.toFiniteNumber(S.headers.get("content-length"));S=new Response(Gx(S.body,Xx,o&&Yx(O,Vm(o,!0)),T&&v,Kb),C)}u=u||"text";let w=await Um[Qe.findKey(Um,u)||"text"](S,e);return!T&&v(),m&&m(),await new Promise((C,O)=>{$8(C,O,{data:w,headers:ci.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:y})})}catch(S){throw v(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new Xt("Network Error",Xt.ERR_NETWORK,e,y),{cause:S.cause||S}):Xt.from(S,S&&S.code,e,y)}}),Yb={http:r0e,xhr:N0e,fetch:z0e};Qe.forEach(Yb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qx=e=>`- ${e}`,j0e=e=>Qe.isFunction(e)||e===null||e===!1,L8={getAdapter:e=>{e=Qe.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i<t;i++){n=e[i];let a;if(s=n,!j0e(n)&&(s=Yb[(a=String(n)).toLowerCase()],s===void 0))throw new Xt(`Unknown adapter '${a}'`);if(s)break;r[a||"#"+i]=s}if(!s){const i=Object.entries(r).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
`+i.map(Qx).join(`
`):" "+Qx(i[0]):"as no adapter specified";throw new Xt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:Yb};function W0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $c(null,e)}function Jx(e){return W0(e),e.headers=ci.from(e.headers),e.data=q0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),L8.getAdapter(e.adapter||Q2.adapter)(e).then(function(s){return W0(e),s.data=q0.call(e,e.transformResponse,s),s.headers=ci.from(s.headers),s},function(s){return P8(s)||(W0(e),s&&s.response&&(s.response.data=q0.call(e,e.transformResponse,s.response),s.response.headers=ci.from(s.response.headers))),Promise.reject(s)})}const B8="1.7.2",J2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{J2[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Zx={};J2.transitional=function(t,n,s){function r(i,a){return"[Axios v"+B8+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,o)=>{if(t===!1)throw new Xt(r(a," has been removed"+(n?" in "+n:"")),Xt.ERR_DEPRECATED);return n&&!Zx[a]&&(Zx[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,o):!0}};function q0e(e,t,n){if(typeof e!="object")throw new Xt("options must be an object",Xt.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],a=t[i];if(a){const o=e[i],l=o===void 0||a(o,i,e);if(l!==!0)throw new Xt("option "+i+" must be "+l,Xt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Xt("Unknown option "+i,Xt.ERR_BAD_OPTION)}}const Xb={assertOptions:q0e,validators:J2},Va=Xb.validators;class Hm{constructor(t){this.defaults=t,this.interceptors={request:new qx,response:new qx}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Al(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&Xb.assertOptions(s,{silentJSONParsing:Va.transitional(Va.boolean),forcedJSONParsing:Va.transitional(Va.boolean),clarifyTimeoutError:Va.transitional(Va.boolean)},!1),r!=null&&(Qe.isFunction(r)?n.paramsSerializer={serialize:r}:Xb.assertOptions(r,{encode:Va.function,serialize:Va.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Qe.merge(i.common,i[n.method]);i&&Qe.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ci.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,o.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,h;if(!l){const m=[Jx.bind(this),void 0];for(m.unshift.apply(m,o),m.push.apply(m,u),h=m.length,c=Promise.resolve(n);f<h;)c=c.then(m[f++],m[f++]);return c}h=o.length;let g=n;for(f=0;f<h;){const m=o[f++],p=o[f++];try{g=m(g)}catch(y){p.call(this,y);break}}try{c=Jx.call(this,g)}catch(m){return Promise.reject(m)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Al(this.defaults,t);const n=R8(t.baseURL,t.url);return I8(n,t.params,t.paramsSerializer)}}Qe.forEach(["delete","get","head","options"],function(t){Hm.prototype[t]=function(n,s){return this.request(Al(s||{},{method:t,url:n,data:(s||{}).data}))}});Qe.forEach(["post","put","patch"],function(t){function n(s){return function(i,a,o){return this.request(Al(o||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Hm.prototype[t]=n(),Hm.prototype[t+"Form"]=n(!0)});const im=Hm;class Z2{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 a=new Promise(o=>{s.subscribe(o),i=o}).then(r);return a.cancel=function(){s.unsubscribe(i)},a},t(function(i,a,o){s.reason||(s.reason=new $c(i,a,o),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 Z2(function(r){t=r}),cancel:t}}}const W0e=Z2;function K0e(e){return function(n){return e.apply(null,n)}}function G0e(e){return Qe.isObject(e)&&e.isAxiosError===!0}const Qb={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(Qb).forEach(([e,t])=>{Qb[t]=e});const Y0e=Qb;function F8(e){const t=new im(e),n=v8(im.prototype.request,t);return Qe.extend(n,im.prototype,t,{allOwnKeys:!0}),Qe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return F8(Al(e,r))},n}const rs=F8(Q2);rs.Axios=im;rs.CanceledError=$c;rs.CancelToken=W0e;rs.isCancel=P8;rs.VERSION=B8;rs.toFormData=lv;rs.AxiosError=Xt;rs.Cancel=rs.CanceledError;rs.all=function(t){return Promise.all(t)};rs.spread=K0e;rs.isAxiosError=G0e;rs.mergeConfig=Al;rs.AxiosHeaders=ci;rs.formToJSON=e=>O8(Qe.isHTMLForm(e)?new FormData(e):e);rs.getAdapter=L8.getAdapter;rs.HttpStatusCode=Y0e;rs.default=rs;const X0e=rs,Q0e={class:"loader"},J0e=A5('<div class="loader-container" data-v-f4c312d6><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div></div>',1),Z0e=[J0e],eye=J({__name:"Loading",props:{msg:{}},setup(e){return(t,n)=>yt((k(),z("div",Q0e,Z0e,512)),[[zt,e.msg.show]])}}),tye=Cn(eye,[["__scopeId","data-v-f4c312d6"]]),am=Ct({show:!1,title:"拼命加载中..."}),nye=Eg(tye,{msg:am}).mount(document.createElement("div")),K0={start(e){am.show=!0,am.title=e,document.body.appendChild(nye.$el),document.body.style.overflow="hidden"},close(){am.show=!1,document.body.style.overflow="auto"}},sye=e=>{const t={key:"auth-token",value:e};localStorage.setItem("auth",JSON.stringify(t))},V8=()=>JSON.parse(localStorage.getItem("auth")),rye=()=>{localStorage.removeItem("auth")};let hd=0;const U8=e=>new Promise((t,n)=>{const s=X0e.create({baseURL:"/api",timeout:8e4});s.interceptors.request.use(r=>{hd++,K0.start("");let i=V8();return i&&i.value.length>0&&(r.headers[i.key]=i.value),r},r=>Promise.reject(r)),s.interceptors.response.use(r=>{hd--,hd==0&&K0.close();let i=r.headers["new-token"];return i&&i.length>0&&sye(i),r.data},r=>(hd--,hd==0&&K0.close(),r.response.status==401?(iw.replace("/login"),wt.error(r.response.data.msg)):r.response.status==403?wt.error("无访问权限!!!"):wt.error("服务器繁忙,请稍后再试"),Promise.reject(r))),s(e).then(r=>{t(r)}).catch(r=>{n(r)})}),mn=(e,t)=>U8({url:e,method:"get",params:t}),_s=(e,t)=>U8({url:e,method:"post",data:t}),ku={FILM_HISTORY:"filmHistory"},Au={setCookie(e,t,n=30){let s=new Date;s.setTime(s.getTime()+n*24*60*60*1e3);let r="expires="+s.toUTCString();document.cookie=e+"="+encodeURIComponent(t)+"; "+r+": path=/"},getCookie(e){let t=document.cookie.split("; ");for(let n=0;n<t.length;n++){let[s,r]=t[n].split("=");if(s==e)return decodeURIComponent(r)}return""},clearCookie(e){let t=new Date;t.setTime(-1);let n="expires="+t.toUTCString();document.cookie=e+"=''; "+n}},dv=e=>(ur("data-v-ddd1fdf0"),e=e(),cr(),e),iye={class:"header"},aye={class:"nav_left"},oye={href:"/",class:"site"},lye={class:"search_group"},uye={class:"nav_right"},cye={class:"nav_link"},dye=dv(()=>R("a",{href:"/"},"首页",-1)),fye=["href"],hye=["href"],pye=dv(()=>R("b",{style:{"font-size":"22px"},class:"iconfont icon-history"},null,-1)),mye=[pye],gye={key:0,class:"dropdown-container"},vye={class:"history-h"},yye=dv(()=>R("b",{class:"iconfont icon-record history-h-icon"},null,-1)),bye=dv(()=>R("span",{class:"history-h-title"},"历史观看记录",-1)),_ye={key:0,class:"history-c"},Sye=["href"],wye={class:"history-c-item-t"},Tye={class:"history-c-item-e"},Cye={href:"/search",class:"hidden-md-and-up"},Eye=J({__name:"Header",setup(e){const t=j(""),n=Ct({historyFlag:!1,historyList:[{}],nav:Array,site:Object}),s=l=>{if(n.historyFlag=l,l){let u=Au.getCookie(ku.FILM_HISTORY)?JSON.parse(Au.getCookie(ku.FILM_HISTORY)):null,c=[];if(u){for(let f in u)c.push(u[f]);c.sort((f,h)=>h.timeStamp-f.timeStamp)}n.historyList=c}},r=()=>{Au.clearCookie(ku.FILM_HISTORY),n.historyList=[]};Oa();const i=()=>{if(t.value.length<=0){wt.error({message:"请先输入影片名称关键字再进行搜索",duration:1500});return}location.href=`/search?search=${t.value}`},a=Ct({cartoon:{},film:{},tv:{},variety:{}}),o=()=>{mn("/config/basic").then(l=>{l.code===0?n.site=l.data:wt.error({message:l.msg})})};return gt(()=>{mn("/navCategory").then(l=>{l.code===0?n.nav=l.data:wt.error({message:"导航分类信息获取失败",duration:1e3})}),o()}),(l,u)=>{const c=gn,f=ch,h=tt;return k(),z("div",iye,[R("div",aye,[R("a",oye,pe(n.site.siteName),1),R("div",lye,[yt(R("input",{"onUpdate:modelValue":u[0]||(u[0]=g=>t.value=g),onKeydown:u[1]||(u[1]=g=>{g.keyCode==13&&i()}),placeholder:"搜索 动漫,剧集,电影 ",class:"search"},null,544),[[va,t.value]]),I(c,{onClick:i,icon:d(bf)},null,8,["icon"])])]),R("div",uye,[R("div",cye,[dye,(k(!0),z(Ge,null,_t(n.nav,g=>(k(),z("a",{href:`/filmClassify?Pid=${g.id}`},pe(g.name),9,fye))),256))]),R("div",{class:"history-link hidden-md-and-down",onMouseenter:u[2]||(u[2]=g=>s(!0)),onMouseleave:u[3]||(u[3]=g=>s(!1))},[R("a",{href:`/filmClassify?Pid=${a.variety.id}`},mye,8,hye),I(Wn,{name:"fade-slide",duration:"300"},{default:L(()=>[n.historyFlag?(k(),z("div",gye,[R("div",vye,[yye,bye,n.historyList.length>0?(k(),z("a",{key:0,class:"iconfont icon-clear1 history-del",onClick:r})):ae("",!0)]),n.historyList.length>0?(k(),z("div",_ye,[(k(!0),z(Ge,null,_t(n.historyList,g=>(k(),z("a",{href:g.link,class:"history-c-item"},[R("span",wye,pe(g.name),1),R("span",Tye,pe(g.episode),1)],8,Sye))),256))])):(k(),fe(f,{key:1,style:{padding:"10px 0"},description:"暂无观看记录"}))])):ae("",!0)]),_:1})],32),R("a",Cye,[I(h,{style:{"font-size":"18px"}},{default:L(()=>[I(d(bf))]),_:1})])])])}}}),xye=Cn(Eye,[["__scopeId","data-v-ddd1fdf0"]]),kye={},Aye={class:"custom-footer"};function Iye(e,t){return k(),z("div",Aye," 本站所有内容均来自互联网分享站点所提供的公开引用资源,未提供资源上传、存储服务。 ")}const Dye=Cn(kye,[["render",Iye],["__scopeId","data-v-83253fd7"]]),Oye=J({__name:"IndexHome",setup(e){return(t,n)=>{const s=l2,r=kt("router-view"),i=u2,a=QD,o=o2;return k(),fe(o,null,{default:L(()=>[I(s,null,{default:L(()=>[I(xye)]),_:1}),I(i,null,{default:L(()=>[I(r)]),_:1}),I(a,null,{default:L(()=>[I(Dye)]),_:1})]),_:1})}}}),Pye=Cn(Oye,[["__scopeId","data-v-4896a07a"]]),$ye={key:0,class:"c_content"},Rye={key:0},Nye=["href"],Mye={class:"tag_group"},Lye={class:"cus_tag"},Bye={class:"cus_tag"},Fye={class:"cus_tag"},Vye={class:"cus_remark hidden-md-and-up"},Uye=["src","alt"],Hye=["href"],zye={class:"cus_remark hidden-md-and-down"},jye=J({__name:"FilmList",props:{list:Array,col:Number},setup(e){const t=e,n=Ct({col:0,list:Array,width:0}),s=r=>{r.target.style.display="none"};return ps(()=>{const r=navigator.userAgent.toLowerCase();let i=/mobile|android|iphone|ipad|phone/i.test(r),a=i?3:t.col?t.col:0,o=t.list,l=o.length;if(n.width=i?31:Math.floor(100/a),l%a!=0)for(let u=0;u<a-l%a;u++){let c={...o[0]};c.id=-99,o.push(c)}n.list=o}),(r,i)=>{const a=ch;return n.list?(k(),z("div",$ye,[n.list.length>0?(k(!0),z(Ge,{key:0},_t(n.list,o=>{var l;return k(),z("div",{class:"item",style:it({width:`calc(${n.width-1}%)`})},[o.id!=-99?(k(),z("div",Rye,[R("a",{href:`/filmDetail?link=${o.id}`,class:"default_image link_content"},[R("div",Mye,[R("span",Lye,pe(o.year?o.year.slice(0,4):"未知"),1),R("span",Bye,pe(o.cName),1),R("span",Fye,pe(o.area.split(",")[0]),1)]),R("span",Vye,pe(o.remarks),1),R("img",{src:o.picture,alt:(l=o.name)==null?void 0:l.split("[")[0],onError:s},null,40,Uye)],8,Nye),R("a",{href:`/filmDetail?link=${o.id}`,class:"content_text_tag"},pe(o.name.split("[")[0]),9,Hye),R("span",zye,pe(o.remarks),1)])):ae("",!0)],4)}),256)):ae("",!0),n.list.length<=0?(k(),fe(a,{key:1,style:{padding:"10px 0",margin:"0 auto"},description:"暂无相关数据"})):ae("",!0)])):ae("",!0)}}}),Iu=Cn(jye,[["__scopeId","data-v-b7dc5067"]]),qye={class:"container"},Wye={class:"content_item"},Kye=["href"],Gye={class:"nav_ul"},Yye={key:0,class:"nav_category hidden-md-and-down"},Xye=["href"],Qye={class:"nav_category hidden-md-and-down"},Jye=["href"],Zye={class:"hot_title"},ebe={class:"content_right_item"},tbe=["href"],nbe={class:"top_item"},sbe=J({__name:"Home",setup(e){let t=[{name:"樱花庄的宠物女孩",year:2012,cName:"动漫",poster:"https://img.bfzypic.com/upload/vod/20230424-43/06e79232a4650aea00f7476356a49847.jpg",picture:"https://s2.loli.net/2024/02/21/Wt1QDhabdEI7HcL.jpg"},{name:"从零开始的异世界生活",year:2016,cName:"动漫",poster:"https://img.bfzypic.com/upload/vod/20230424-29/82e3aec3f43103fa1b7e5a0e7f7c3806.jpg",picture:"https://s2.loli.net/2024/02/21/UkpdhIRO12fsy6C.jpg"},{name:"五等分的新娘",year:2020,cName:"动漫",poster:"https://img.bfzypic.com/upload/vod/20230424-38/dfff403cfd9a5b7d6eed8b4f1b3dedb1.jpg",picture:"https://s2.loli.net/2024/02/21/wXJr59Zuv4tcKNp.jpg"},{name:"我的青春恋爱物语果然有问题",year:2018,cName:"动漫",poster:"https://img.bfzypic.com/upload/vod/20230424-37/e5c9ec121c2cba230243c333447e818a.jpg",picture:"https://s2.loli.net/2024/02/21/oMAGzSliK2YbhRu.jpg"}];j();const n=Ct({info:{},banner:{current:{name:"",year:2024,cName:"",poster:"",picture:""},touch:{index:0,star:0,end:0}}});return Pl(()=>{n.banner.current=t[0],mn("/index").then(s=>{s.code==0?n.info=s.data:wt.error({message:s.msg})})}),(s,r)=>{const i=UD,a=VD;return k(),z("div",qye,[ae("",!0),ae("",!0),(k(!0),z(Ge,null,_t(n.info.content,o=>(k(),z("div",Wye,[o.nav.show?(k(),z(Ge,{key:0},[I(a,{class:"row-bg cus_nav",justify:"space-between"},{default:L(()=>[I(i,{span:12,class:"title"},{default:L(()=>[R("span",{class:$(`iconfont ${o.nav.name.search("电影")!=-1?"icon-film":o.nav.name.search("剧")!=-1?"icon-tv":o.nav.name.search("动漫")!=-1?"icon-cartoon":"icon-variety"}`),style:{color:"#79bbff","font-size":"32px","margin-right":"10px","line-height":"130%"}},null,2),R("a",{href:`/filmClassify?Pid=${o.nav.id}`},pe(o.nav.name),9,Kye)]),_:2},1024),I(i,{span:12},{default:L(()=>[R("ul",Gye,[(k(!0),z(Ge,null,_t(o.nav.children,l=>(k(),z(Ge,null,[l.show?(k(),z("li",Yye,[R("a",{href:`/filmClassifySearch?Pid=${l.pid}&Category=${l.id}`},pe(l.name),9,Xye)])):ae("",!0)],64))),256)),R("li",Qye,[R("a",{href:`/filmClassify?Pid=${o.nav.id}`},"更多 >",8,Jye)])])]),_:2},1024)]),_:2},1024),I(a,{class:"cus_content"},{default:L(()=>[I(i,{md:24,lg:20,xl:20,class:"cus_content"},{default:L(()=>[o.movies?(k(),fe(Iu,{key:0,col:6,list:o.movies.slice(0,12)},null,8,["list"])):ae("",!0)]),_:2},1024),I(i,{md:0,lg:4,xl:4,class:"hidden-md-and-down content_right"},{default:L(()=>[R("h3",Zye,"🔥热播"+pe(o.nav.name),1),(k(!0),z(Ge,null,_t(o.hot.slice(0,12),(l,u)=>(k(),z("div",ebe,[R("a",{href:`/filmDetail?link=${l.mid}`},[R("b",nbe,pe(u+1+"."),1),R("span",null,pe(l.name),1)],8,tbe)]))),256))]),_:2},1024)]),_:2},1024)],64)):ae("",!0)]))),256))])}}}),rbe=Cn(sbe,[["__scopeId","data-v-b69e2ae1"]]),ibe=e=>(ur("data-v-7fb740c1"),e=e(),cr(),e),abe={class:"relate_container"},obe=ibe(()=>R("p",{class:"title"},"相关推荐",-1)),lbe=J({__name:"RelateList",props:{relateList:Array},setup(e){return(t,n)=>(k(),z("div",abe,[obe,I(Iu,{col:7,list:e.relateList},null,8,["list"])]))}}),H8=Cn(lbe,[["__scopeId","data-v-7fb740c1"]]),Zr=e=>(ur("data-v-9834b603"),e=e(),cr(),e),ube={class:"film"},cbe={class:"hidden-sm-and-up"},dbe={class:"title_mt"},fbe={class:"title_mt_right"},hbe={class:"tags"},pbe={style:{margin:"2px 0"}},mbe=Zr(()=>R("span",null,"导演:",-1)),gbe=Zr(()=>R("span",null,"主演:",-1)),vbe=Zr(()=>R("span",null,"上映:",-1)),ybe=Zr(()=>R("span",null,"地区:",-1)),bbe={key:0},_be=Zr(()=>R("span",null,"连载:",-1)),Sbe={class:"mt_content"},wbe=["innerHTML"],Tbe={class:"title hidden-sm-and-down"},Cbe={class:"tags"},Ebe={class:"t_c"},xbe=["href"],kbe={key:0},Abe=Zr(()=>R("span",null,"导演:",-1)),Ibe=Zr(()=>R("span",null,"主演:",-1)),Dbe=Zr(()=>R("span",null,"上映:",-1)),Obe={key:0},Pbe=Zr(()=>R("span",null,"连载:",-1)),$be=Zr(()=>R("span",null,"评分:",-1)),Rbe={id:"score"},Nbe={class:"cus_wap"},Mbe=Zr(()=>R("p",{style:{"min-width":"40px"}},[R("span",null,"剧情:")],-1)),Lbe=["innerHTML"],Bbe={class:"play-module"},Fbe={class:"play-module-item"},Vbe={class:"module-heading"},Ube=Zr(()=>R("p",{class:"play-module-title"},"播放列表",-1)),Hbe={class:"play-tab-group"},zbe=["onClick"],jbe={class:"play-list"},qbe={class:"play-list-item"},Wbe=["onClick"],Kbe={class:"correlation"},Gbe=J({__name:"FilmDetails",setup(e){const t=Oa(),n=Ct({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:""},list:[]},relate:[],loading:!1,currentTabId:""}),s=u=>{let c="";return u.split(",").forEach((f,h)=>{h<3&&(c+=`${f} `)}),c.trimEnd()},r=u=>{n.currentTabId=u},i=u=>{t.push({path:"/play",query:{id:`${t.currentRoute.value.query.link}`,...u}})},a=j({state:!1,text:"展开"}),o=j(),l=u=>{if(u){a.value={state:!u,text:"展开"},o.value.style.webkitLineClamp=2;return}a.value={state:!u,text:"收起"},o.value.style.webkitLineClamp=8};return Pl(()=>{let u=t.currentRoute.value.query.link;mn("/filmDetail",{id:u}).then(c=>{c.code===0?(n.detail=c.data.detail,n.detail.name=n.detail.name.replace(/(.*)/g,""),n.detail.descriptor.content=n.detail.descriptor.content.replace(/(&.*;)|( )|(  )|(\n)|(<[^>]+>)/g,""),n.relate=c.data.relate,n.detail.descriptor.actor=s(n.detail.descriptor.actor),n.detail.descriptor.director=s(n.detail.descriptor.director),n.currentTabId=c.data.detail.list[0].id,n.loading=!0):wt({type:"error",dangerouslyUseHTMLString:!0,message:c.msg})})}),(u,c)=>{const f=tt,h=gn;return yt((k(),z("div",ube,[R("div",cbe,[R("div",dbe,[R("a",{class:"picture_mt",href:"",style:it({backgroundImage:`url('${n.detail.picture}')`})},null,4),R("div",fbe,[R("h3",null,pe(n.detail.name),1),R("ul",hbe,[R("li",pbe,pe(n.detail.descriptor.classTag?`${n.detail.descriptor.classTag}`.replaceAll(","," | "):"未知"),1)]),R("p",null,[mbe,Re(" "+pe(n.detail.descriptor.director),1)]),R("p",null,[gbe,Re(" "+pe(s(n.detail.descriptor.actor)),1)]),R("p",null,[vbe,Re(" "+pe(n.detail.descriptor.releaseDate),1)]),R("p",null,[ybe,Re(" "+pe(n.detail.descriptor.area),1)]),n.detail.descriptor.remarks?(k(),z("p",bbe,[_be,Re(pe(n.detail.descriptor.remarks),1)])):ae("",!0)])]),R("div",Sbe,[R("p",{innerHTML:`${n.detail.descriptor.content}`.replaceAll("  ","")},null,8,wbe)])]),R("div",Tbe,[R("a",{class:"picture",href:"",style:it({backgroundImage:`url('${n.detail.picture}')`})},null,4),R("h2",null,pe(n.detail.name),1),R("ul",Cbe,[R("li",Ebe,[R("a",{href:`/filmClassifySearch?Pid=${n.detail.pid}&Category=${n.detail.cid}`},[I(f,null,{default:L(()=>[I(d(C1))]),_:1}),Re(" "+pe(n.detail.descriptor.cName),1)],8,xbe)]),n.detail.descriptor.classTag?(k(),z("li",kbe,pe(`${n.detail.descriptor.classTag}`.replaceAll(",","")),1)):ae("",!0),R("li",null,pe(n.detail.descriptor.year),1),R("li",null,pe(n.detail.descriptor.area),1)]),R("p",null,[Abe,Re(" "+pe(n.detail.descriptor.director),1)]),R("p",null,[Ibe,Re(" "+pe(n.detail.descriptor.actor),1)]),R("p",null,[Dbe,Re(" "+pe(n.detail.descriptor.releaseDate),1)]),n.detail.descriptor.remarks?(k(),z("p",Obe,[Pbe,Re(pe(n.detail.descriptor.remarks),1)])):ae("",!0),R("p",null,[$be,R("b",Rbe,pe(n.detail.descriptor.dbScore),1)]),R("div",Nbe,[Mbe,R("p",{ref_key:"textContent",ref:o,class:"text_content"},[`${n.detail.descriptor.content}`.length>140?(k(),fe(h,{key:0,class:"multi_text",style:{color:"#a574b7"},onClick:c[0]||(c[0]=g=>l(a.value.state)),link:""},{default:L(()=>[Re(pe(a.value.text),1)]),_:1})):ae("",!0),R("span",{class:"cus_info",innerHTML:n.detail.descriptor.content},null,8,Lbe)],512)]),R("p",null,[I(h,{type:"warning",class:"player",size:"large",onClick:c[1]||(c[1]=g=>i({episode:0,source:n.detail.list[0].id})),round:""},{default:L(()=>[I(f,null,{default:L(()=>[I(d(Ng))]),_:1}),Re(" 立即播放 ")]),_:1})])]),R("div",Bbe,[R("div",Fbe,[R("div",Vbe,[Ube,R("div",Hbe,[(k(!0),z(Ge,null,_t(n.detail.list,g=>(k(),z("a",{href:"javascript:;",class:$(`play-tab-item ${n.currentTabId==g.id?"tab-active":""}`),onClick:m=>r(g.id)},pe(g.name),11,zbe))),256))])]),R("div",jbe,[(k(!0),z(Ge,null,_t(n.detail.list,g=>yt((k(),z("div",qbe,[(k(!0),z(Ge,null,_t(g.linkList,(m,p)=>(k(),z("a",{class:"play-link",href:"javascript:;",onClick:y=>i({source:g.id,episode:p})},pe(m.episode),9,Wbe))),256))],512)),[[zt,n.currentTabId==g.id]])),256))])])]),R("div",Kbe,[I(H8,{"relate-list":n.relate},null,8,["relate-list"])])],512)),[[zt,n.loading]])}}}),Ybe=Cn(Gbe,[["__scopeId","data-v-9834b603"]]),z8="/assets/play-bb9c8990.png";var xd;typeof window<"u"?xd=window:typeof lr<"u"?xd=lr:typeof self<"u"?xd=self:xd={};var fv=xd;const he=ks(fv),Xbe={},Qbe=Object.freeze(Object.defineProperty({__proto__:null,default:Xbe},Symbol.toStringTag,{value:"Module"})),Jbe=nD(Qbe);var ek=typeof lr<"u"?lr:typeof window<"u"?window:{},Zbe=Jbe,kd;typeof document<"u"?kd=document:(kd=ek["__GLOBAL_DOCUMENT_CACHE@4"],kd||(kd=ek["__GLOBAL_DOCUMENT_CACHE@4"]=Zbe));var j8=kd;const ht=ks(j8);var e_e=t_e;function t_e(e,t){var n,s=null;try{n=JSON.parse(e,t)}catch(r){s=r}return[s,n]}const n_e=ks(e_e);var eS={exports:{}};function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},qn.apply(null,arguments)}const s_e=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qn}},Symbol.toStringTag,{value:"Module"})),r_e=nD(s_e);var i_e=o_e,a_e=Object.prototype.toString;function o_e(e){if(!e)return!1;var t=a_e.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)}function l_e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=u_e(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u_e(e,t){if(e){if(typeof e=="string")return tk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tk(e,t)}}function tk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}var c_e=function(){function e(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},t.addInterceptor=function(s,r){this.typeToInterceptorsMap_.has(s)||this.typeToInterceptorsMap_.set(s,new Set);var i=this.typeToInterceptorsMap_.get(s);return i.has(r)?!1:(i.add(r),!0)},t.removeInterceptor=function(s,r){var i=this.typeToInterceptorsMap_.get(s);return i&&i.has(r)?(i.delete(r),!0):!1},t.clearInterceptorsByType=function(s){var r=this.typeToInterceptorsMap_.get(s);return r?(this.typeToInterceptorsMap_.delete(s),this.typeToInterceptorsMap_.set(s,new Set),!0):!1},t.clear=function(){return this.typeToInterceptorsMap_.size?(this.typeToInterceptorsMap_=new Map,!0):!1},t.getForType=function(s){return this.typeToInterceptorsMap_.get(s)||new Set},t.execute=function(s,r){for(var i=this.getForType(s),a=l_e(i),o;!(o=a()).done;){var l=o.value;try{r=l(r)}catch{}}return r},e}(),d_e=c_e,f_e=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},t.getMaxAttempts=function(){return this.maxAttempts_},t.setMaxAttempts=function(s){this.maxAttempts_=s},t.getDelayFactor=function(){return this.delayFactor_},t.setDelayFactor=function(s){this.delayFactor_=s},t.getFuzzFactor=function(){return this.fuzzFactor_},t.setFuzzFactor=function(s){this.fuzzFactor_=s},t.getInitialDelay=function(){return this.initialDelay_},t.setInitialDelay=function(s){this.initialDelay_=s},t.createRetry=function(s){var r=s===void 0?{}:s,i=r.maxAttempts,a=r.delayFactor,o=r.fuzzFactor,l=r.initialDelay;return new h_e({maxAttempts:i||this.maxAttempts_,delayFactor:a||this.delayFactor_,fuzzFactor:o||this.fuzzFactor_,initialDelay:l||this.initialDelay_})},e}(),h_e=function(){function e(n){this.maxAttempts_=n.maxAttempts,this.delayFactor_=n.delayFactor,this.fuzzFactor_=n.fuzzFactor,this.currentDelay_=n.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var s=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+s},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var s=this.getCurrentMinPossibleDelay(),r=this.getCurrentMaxPossibleDelay();return s+Math.random()*(r-s)},e}(),p_e=f_e,m_e=fv,g_e=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 a=i;if(n)if(m_e.TextDecoder){var o=v_e(r.headers&&r.headers["content-type"]);try{a=new TextDecoder(o).decode(i)}catch{}}else a=String.fromCharCode.apply(null,new Uint8Array(i));t({cause:a});return}t(null,i)}};function v_e(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 y_e=g_e,q8=fv,b_e=r_e,__e=i_e,W8=d_e,S_e=p_e;Xn.httpHandler=y_e;Xn.requestInterceptorsStorage=new W8;Xn.responseInterceptorsStorage=new W8;Xn.retryManager=new S_e;/**
* @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 w_e=function(t){var n={};return t&&t.trim().split(`
`).forEach(function(s){var r=s.indexOf(":"),i=s.slice(0,r).trim().toLowerCase(),a=s.slice(r+1).trim();typeof n[i]>"u"?n[i]=a:Array.isArray(n[i])?n[i].push(a):n[i]=[n[i],a]}),n};eS.exports=Xn;eS.exports.default=Xn;Xn.XMLHttpRequest=q8.XMLHttpRequest||x_e;Xn.XDomainRequest="withCredentials"in new Xn.XMLHttpRequest?Xn.XMLHttpRequest:q8.XDomainRequest;T_e(["get","put","post","patch","head","delete"],function(e){Xn[e==="delete"?"del":e]=function(t,n,s){return n=K8(t,n,s),n.method=e.toUpperCase(),tS(n)}});function T_e(e,t){for(var n=0;n<e.length;n++)t(e[n])}function C_e(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function K8(e,t,n){var s=e;return __e(t)?(n=t,typeof e=="string"&&(s={uri:e})):s=b_e({},t,{uri:e}),s.callback=n,s}function Xn(e,t,n){return t=K8(e,t,n),tS(t)}function tS(e){if(typeof e.callback>"u")throw new Error("callback argument missing");if(e.requestType&&Xn.requestInterceptorsStorage.getIsEnabled()){var t={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},n=Xn.requestInterceptorsStorage.execute(e.requestType,t);e.uri=n.uri,e.headers=n.headers,e.body=n.body,e.metadata=n.metadata,e.retry=n.retry,e.timeout=n.timeout}var s=!1,r=function(w,C,O){s||(s=!0,e.callback(w,C,O))};function i(){u.readyState===4&&!Xn.responseInterceptorsStorage.getIsEnabled()&&setTimeout(l,0)}function a(){var T=void 0;if(u.response?T=u.response:T=u.responseText||E_e(u),v)try{T=JSON.parse(T)}catch{}return T}function o(T){if(clearTimeout(b),clearTimeout(e.retryTimeout),T instanceof Error||(T=new Error(""+(T||"Unknown XMLHttpRequest Error"))),T.statusCode=0,!f&&Xn.retryManager.getIsEnabled()&&e.retry&&e.retry.shouldRetry()){e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=u,tS(e)},e.retry.getCurrentFuzzedDelay());return}if(e.requestType&&Xn.responseInterceptorsStorage.getIsEnabled()){var w={headers:S.headers||{},body:S.body,responseUrl:u.responseURL,responseType:u.responseType},C=Xn.responseInterceptorsStorage.execute(e.requestType,w);S.body=C.body,S.headers=C.headers}return r(T,S)}function l(){if(!f){var T;clearTimeout(b),clearTimeout(e.retryTimeout),e.useXDR&&u.status===void 0?T=200:T=u.status===1223?204:u.status;var w=S,C=null;if(T!==0?(w={body:a(),statusCode:T,method:g,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&&(w.headers=w_e(u.getAllResponseHeaders()))):C=new Error("Internal XMLHttpRequest Error"),e.requestType&&Xn.responseInterceptorsStorage.getIsEnabled()){var O={headers:w.headers||{},body:w.body,responseUrl:u.responseURL,responseType:u.responseType},P=Xn.responseInterceptorsStorage.execute(e.requestType,O);w.body=P.body,w.headers=P.headers}return r(C,w,w.body)}}var u=e.xhr||null;u||(e.cors||e.useXDR?u=new Xn.XDomainRequest:u=new Xn.XMLHttpRequest);var c,f,h=u.url=e.uri||e.url,g=u.method=e.method||"GET",m=e.body||e.data,p=u.headers=e.headers||{},y=!!e.sync,v=!1,b,S={body:void 0,headers:{},statusCode:0,method:g,url:h,rawRequest:u};if("json"in e&&e.json!==!1&&(v=!0,p.accept||p.Accept||(p.Accept="application/json"),g!=="GET"&&g!=="HEAD"&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),m=JSON.stringify(e.json===!0?m:e.json))),u.onreadystatechange=i,u.onload=l,u.onerror=o,u.onprogress=function(){},u.onabort=function(){f=!0,clearTimeout(e.retryTimeout)},u.ontimeout=o,u.open(g,h,!y,e.username,e.password),y||(u.withCredentials=!!e.withCredentials),!y&&e.timeout>0&&(b=setTimeout(function(){if(!f){f=!0,u.abort("timeout");var T=new Error("XMLHttpRequest timeout");T.code="ETIMEDOUT",o(T)}},e.timeout)),u.setRequestHeader)for(c in p)p.hasOwnProperty(c)&&u.setRequestHeader(c,p[c]);else if(e.headers&&!C_e(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&typeof e.beforeSend=="function"&&e.beforeSend(u),u.send(m||null),u}function E_e(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 x_e(){}var k_e=eS.exports;const G8=ks(k_e);var Y8={exports:{}},nk=j8,nS=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 wr(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}wr.prototype=nS(Error.prototype);wr.prototype.constructor=wr;wr.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function sS(e){function t(s,r,i,a){return(s|0)*3600+(r|0)*60+(i|0)+(a|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 Qd(){this.values=nS(null)}Qd.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 Ad(e,t,n,s){var r=s?e.split(s):[e];for(var i in r)if(typeof r[i]=="string"){var a=r[i].split(n);if(a.length===2){var o=a[0].trim(),l=a[1].trim();t(o,l)}}}function A_e(e,t,n){var s=e;function r(){var o=sS(e);if(o===null)throw new wr(wr.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),o}function i(o,l){var u=new Qd;Ad(o,function(c,f){switch(c){case"region":for(var h=n.length-1;h>=0;h--)if(n[h].id===f){u.set(c,n[h].region);break}break;case"vertical":u.alt(c,f,["rl","lr"]);break;case"line":var g=f.split(","),m=g[0];u.integer(c,m),u.percent(c,m)&&u.set("snapToLines",!1),u.alt(c,m,["auto"]),g.length===2&&u.alt("lineAlign",g[1],["start","center","end"]);break;case"position":g=f.split(","),u.percent(c,g[0]),g.length===2&&u.alt("positionAlign",g[1],["start","center","end"]);break;case"size":u.percent(c,f);break;case"align":u.alt(c,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 a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=r(),a(),e.substr(0,3)!=="-->")throw new wr(wr.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+s);e=e.substr(3),a(),t.endTime=r(),a(),i(e,t)}var G0=nk.createElement&&nk.createElement("textarea"),I_e={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},sk={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)"},D_e={v:"title",lang:"lang"},rk={rt:"ruby"};function X8(e,t){function n(){if(!t)return null;function m(y){return t=t.substr(y.length),y}var p=t.match(/^([^<]*)(<[^>]*>?)?/);return m(p[1]?p[1]:p[2])}function s(m){return G0.innerHTML=m,m=G0.textContent,G0.textContent="",m}function r(m,p){return!rk[p.localName]||rk[p.localName]===m.localName}function i(m,p){var y=I_e[m];if(!y)return null;var v=e.document.createElement(y),b=D_e[m];return b&&p&&(v[b]=p.trim()),v}for(var a=e.document.createElement("div"),o=a,l,u=[];(l=n())!==null;){if(l[0]==="<"){if(l[1]==="/"){u.length&&u[u.length-1]===l.substr(2).replace(">","")&&(u.pop(),o=o.parentNode);continue}var c=sS(l.substr(1,l.length-2)),f;if(c){f=e.document.createProcessingInstruction("timestamp",c),o.appendChild(f);continue}var h=l.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||(f=i(h[1],h[3]),!f)||!r(o,f))continue;if(h[2]){var g=h[2].split(".");g.forEach(function(m){var p=/^bg_/.test(m),y=p?m.slice(3):m;if(sk.hasOwnProperty(y)){var v=p?"background-color":"color",b=sk[y];f.style[v]=b}}),f.className=g.join(" ")}u.push(h[1]),o.appendChild(f),o=f;continue}o.appendChild(e.document.createTextNode(s(l)))}return a}var ik=[[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 O_e(e){for(var t=0;t<ik.length;t++){var n=ik[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function P_e(e){var t=[],n="",s;if(!e||!e.childNodes)return"ltr";function r(o,l){for(var u=l.childNodes.length-1;u>=0;u--)o.push(l.childNodes[u])}function i(o){if(!o||!o.length)return null;var l=o.pop(),u=l.textContent||l.innerText;if(u){var c=u.match(/^.*(\n|\r)/);return c?(o.length=0,c[0]):u}if(l.tagName==="ruby")return i(o);if(l.childNodes)return r(o,l),i(o)}for(r(t,e);n=i(t);)for(var a=0;a<n.length;a++)if(s=n.charCodeAt(a),O_e(s))return"rtl";return"ltr"}function $_e(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 hv(){}hv.prototype.applyStyles=function(e,t){t=t||this.div;for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n])};hv.prototype.formatStyle=function(e,t){return e===0?0:e+t};function zm(e,t,n){hv.call(this),this.cue=t,this.cueDiv=X8(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:P_e(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":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":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")})}}zm.prototype=nS(hv.prototype);zm.prototype.constructor=zm;function Vs(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}Vs.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}};Vs.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top};Vs.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1};Vs.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right};Vs.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}};Vs.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)};Vs.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}};Vs.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 R_e(e,t,n,s){function r(y,v){for(var b,S=new Vs(y),T=1,w=0;w<v.length;w++){for(;y.overlapsOppositeAxis(n,v[w])||y.within(n)&&y.overlapsAny(s);)y.move(v[w]);if(y.within(n))return y;var C=y.intersectPercentage(n);T>C&&(b=new Vs(y),T=C),y=new Vs(S)}return b||S}var i=new Vs(t),a=t.cue,o=$_e(a),l=[];if(a.snapToLines){var u;switch(a.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 c=i.lineHeight,f=c*Math.round(o),h=n[u]+c,g=l[0];Math.abs(f)>h&&(f=f<0?-1:1,f*=Math.ceil(h/c)*c),o<0&&(f+=a.vertical===""?n.height:n.width,l=l.reverse()),i.move(g,f)}else{var m=i.lineHeight/n.height*100;switch(a.lineAlign){case"center":o-=m/2;break;case"end":o-=m;break}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")});break}l=["+y","-x","+x","-y"],i=new Vs(t)}var p=r(i,l);t.move(p.toCSSCompatValues(n))}function Rc(){}Rc.StringDecoder=function(){return{decode:function(e){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}};Rc.convertCueToDOMTree=function(e,t){return!e||!t?null:X8(e,t)};var N_e=.05,M_e="sans-serif",L_e="1.5%";Rc.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=L_e,n.appendChild(s);function r(c){for(var f=0;f<c.length;f++)if(c[f].hasBeenReset||!c[f].displayState)return!0;return!1}if(!r(t)){for(var i=0;i<t.length;i++)s.appendChild(t[i].displayState);return}var a=[],o=Vs.getSimpleBoxPosition(s),l=Math.round(o.height*N_e*100)/100,u={font:l+"px "+M_e};(function(){for(var c,f,h=0;h<t.length;h++)f=t[h],c=new zm(e,f,u),s.appendChild(c.div),R_e(e,c,o,a),f.displayState=c.div,a.push(Vs.getSimpleBoxPosition(c))})()};Rc.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=[]};Rc.Parser.prototype={reportOrThrowError:function(e){if(e instanceof wr)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 c=t.buffer,f=0;f<c.length&&c[f]!=="\r"&&c[f]!==`
`;)++f;var h=c.substr(0,f);return c[f]==="\r"&&++f,c[f]===`
`&&++f,t.buffer=c.substr(f),h}function s(c){var f=new Qd;if(Ad(c,function(g,m){switch(g){case"id":f.set(g,m);break;case"width":f.percent(g,m);break;case"lines":f.integer(g,m);break;case"regionanchor":case"viewportanchor":var p=m.split(",");if(p.length!==2)break;var y=new Qd;if(y.percent("x",p[0]),y.percent("y",p[1]),!y.has("x")||!y.has("y"))break;f.set(g+"X",y.get("x")),f.set(g+"Y",y.get("y"));break;case"scroll":f.alt(g,m,["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(c){var f=new Qd;Ad(c,function(h,g){switch(h){case"MPEGT":f.integer(h+"S",g);break;case"LOCA":f.set(h+"L",sS(g));break}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:f.get("MPEGTS"),LOCAL:f.get("LOCAL")})}function i(c){c.match(/X-TIMESTAMP-MAP/)?Ad(c,function(f,h){switch(f){case"X-TIMESTAMP-MAP":r(h);break}},/=/):Ad(c,function(f,h){switch(f){case"Region":s(h);break}},/:/)}try{var a;if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;a=n();var o=a.match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new wr(wr.Errors.BadSignature);t.state="HEADER"}for(var l=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(l?l=!1:a=n(),t.state){case"HEADER":/:/.test(a)?i(a):a||(t.state="ID");continue;case"NOTE":a||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){t.state="NOTE";break}if(!a)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",a.indexOf("-->")===-1){t.cue.id=a;continue}case"CUE":try{A_e(a,t.cue,t.regionList)}catch(c){t.reportOrThrowError(c),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var u=a.indexOf("-->")!==-1;if(!a||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+=a.replace(/\u2028/g,`
`).replace(/u2029/g,`
`);continue;case"BADCUE":a||(t.state="ID");continue}}}catch(c){t.reportOrThrowError(c),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 wr(wr.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var B_e=Rc,F_e="auto",V_e={"":1,lr:1,rl:1},U_e={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function H_e(e){if(typeof e!="string")return!1;var t=V_e[e.toLowerCase()];return t?e.toLowerCase():!1}function Y0(e){if(typeof e!="string")return!1;var t=U_e[e.toLowerCase()];return t?e.toLowerCase():!1}function Q8(e,t,n){this.hasBeenReset=!1;var s="",r=!1,i=e,a=t,o=n,l=null,u="",c=!0,f="auto",h="start",g="auto",m="auto",p=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(v){s=""+v}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(v){r=!!v}},startTime:{enumerable:!0,get:function(){return i},set:function(v){if(typeof v!="number")throw new TypeError("Start time must be set to a number.");i=v,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a},set:function(v){if(typeof v!="number")throw new TypeError("End time must be set to a number.");a=v,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(v){o=""+v,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(v){l=v,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(v){var b=H_e(v);if(b===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=b,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(v){c=!!v,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(v){if(typeof v!="number"&&v!==F_e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=v,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(v){var b=Y0(v);b?(h=b,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(v){if(v<0||v>100)throw new Error("Position must be between 0 and 100.");g=v,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(v){var b=Y0(v);b?(m=b,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return p},set:function(v){if(v<0||v>100)throw new Error("Size must be between 0 and 100.");p=v,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(v){var b=Y0(v);if(!b)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=b,this.hasBeenReset=!0}}}),this.displayState=void 0}Q8.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var z_e=Q8,j_e={"":!0,up:!0};function q_e(e){if(typeof e!="string")return!1;var t=j_e[e.toLowerCase()];return t?e.toLowerCase():!1}function pd(e){return typeof e=="number"&&e>=0&&e<=100}function W_e(){var e=100,t=3,n=0,s=100,r=0,i=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(o){if(!pd(o))throw new Error("Width must be between 0 and 100.");e=o}},lines:{enumerable:!0,get:function(){return t},set:function(o){if(typeof o!="number")throw new TypeError("Lines must be set to a number.");t=o}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(o){if(!pd(o))throw new Error("RegionAnchorX must be between 0 and 100.");s=o}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(o){if(!pd(o))throw new Error("RegionAnchorY must be between 0 and 100.");n=o}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(o){if(!pd(o))throw new Error("ViewportAnchorY must be between 0 and 100.");i=o}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(o){if(!pd(o))throw new Error("ViewportAnchorX must be between 0 and 100.");r=o}},scroll:{enumerable:!0,get:function(){return a},set:function(o){var l=q_e(o);l===!1?console.warn("Scroll: an invalid or illegal string was specified."):a=l}}})}var K_e=W_e,Sa=fv,Fl=Y8.exports={WebVTT:B_e,VTTCue:z_e,VTTRegion:K_e};Sa.vttjs=Fl;Sa.WebVTT=Fl.WebVTT;var G_e=Fl.VTTCue,Y_e=Fl.VTTRegion,X_e=Sa.VTTCue,Q_e=Sa.VTTRegion;Fl.shim=function(){Sa.VTTCue=G_e,Sa.VTTRegion=Y_e};Fl.restore=function(){Sa.VTTCue=X_e,Sa.VTTRegion=Q_e};Sa.VTTCue||Fl.shim();var J_e=Y8.exports;const ak=ks(J_e);var J8={exports:{}};(function(e,t){(function(n){var s=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(l,u,c){if(c=c||{},l=l.trim(),u=u.trim(),!u){if(!c.alwaysNormalize)return l;var f=o.parseURL(l);if(!f)throw new Error("Error trying to parse base URL.");return f.path=o.normalizePath(f.path),o.buildURLFromParts(f)}var h=o.parseURL(u);if(!h)throw new Error("Error trying to parse relative URL.");if(h.scheme)return c.alwaysNormalize?(h.path=o.normalizePath(h.path),o.buildURLFromParts(h)):u;var g=o.parseURL(l);if(!g)throw new Error("Error trying to parse base URL.");if(!g.netLoc&&g.path&&g.path[0]!=="/"){var m=r.exec(g.path);g.netLoc=m[1],g.path=m[2]}g.netLoc&&!g.path&&(g.path="/");var p={scheme:g.scheme,netLoc:h.netLoc,path:null,params:h.params,query:h.query,fragment:h.fragment};if(!h.netLoc&&(p.netLoc=g.netLoc,h.path[0]!=="/"))if(!h.path)p.path=g.path,h.params||(p.params=g.params,h.query||(p.query=g.query));else{var y=g.path,v=y.substring(0,y.lastIndexOf("/")+1)+h.path;p.path=o.normalizePath(v)}return p.path===null&&(p.path=c.alwaysNormalize?o.normalizePath(h.path):h.path),o.buildURLFromParts(p)},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(a,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};e.exports=o})()})(J8);var Z_e=J8.exports;const ok=ks(Z_e);var lk="http://example.com",pv=function(t,n){if(/^[a-z]+:/i.test(n))return n;/^data:/.test(t)&&(t=he.location&&he.location.href||"");var s=typeof he.URL=="function",r=/^\/\//.test(t),i=!he.location&&!/\/\//i.test(t);if(s?t=new he.URL(t,he.location||lk):/\/\//i.test(t)||(t=ok.buildAbsoluteURL(he.location&&he.location.href||"",t)),s){var a=new URL(n,t);return i?a.href.slice(lk.length):r?a.href.slice(a.protocol.length):a.href}return ok.buildAbsoluteURL(t,n)},rS=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,a=0;a<i;++a)r[a].call(this,arguments[1]);else for(var o=Array.prototype.slice.call(arguments,1),l=r.length,u=0;u<l;++u)r[u].apply(this,o)},t.dispose=function(){this.listeners={}},t.pipe=function(s){this.on("data",function(r){s.push(r)})},e}(),e1e=function(t){return he.atob?he.atob(t):Buffer.from(t,"base64").toString("binary")};function t1e(e){for(var t=e1e(e),n=new Uint8Array(t.length),s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}/*! @name m3u8-parser @version 7.1.0 @license Apache-2.0 */class n1e extends rS{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 s1e=String.fromCharCode(9),X0=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},r1e=function(){const e="[^=]*",t='"[^"]*"|[^,]*',n="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+n+")")},gr=function(e){const t={};if(!e)return t;const n=e.split(r1e());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 i1e extends rS{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,a)=>{const o=a(t);return o===t?i:i.concat([o])},[t]).forEach(i=>{for(let a=0;a<this.customParsers.length;a++)if(this.customParsers[a].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=qn(X0(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 a=gr(n[1]);a.URI&&(s.uri=a.URI),a.BYTERANGE&&(s.byterange=X0(a.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=gr(n[1]),s.attributes.RESOLUTION){const a=s.attributes.RESOLUTION.split("x"),o={};a[0]&&(o.width=parseInt(a[0],10)),a[1]&&(o.height=parseInt(a[1],10)),s.attributes.RESOLUTION=o}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=gr(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=gr(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=gr(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=gr(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(s1e)),this.trigger("data",s);return}if(n=/^#EXT-X-PART:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"part"},s.attributes=gr(n[1]),["DURATION"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=parseFloat(s.attributes[a]))}),["INDEPENDENT","GAP"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=/YES/.test(s.attributes[a]))}),s.attributes.hasOwnProperty("BYTERANGE")&&(s.attributes.byterange=X0(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=gr(n[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=parseFloat(s.attributes[a]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=/YES/.test(s.attributes[a]))}),this.trigger("data",s);return}if(n=/^#EXT-X-PART-INF:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"part-inf"},s.attributes=gr(n[1]),["PART-TARGET"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=parseFloat(s.attributes[a]))}),this.trigger("data",s);return}if(n=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"preload-hint"},s.attributes=gr(n[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(a){if(s.attributes.hasOwnProperty(a)){s.attributes[a]=parseInt(s.attributes[a],10);const o=a==="BYTERANGE-LENGTH"?"length":"offset";s.attributes.byterange=s.attributes.byterange||{},s.attributes.byterange[o]=s.attributes[a],delete s.attributes[a]}}),this.trigger("data",s);return}if(n=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"rendition-report"},s.attributes=gr(n[1]),["LAST-MSN","LAST-PART"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=parseInt(s.attributes[a],10))}),this.trigger("data",s);return}if(n=/^#EXT-X-DATERANGE:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"daterange"},s.attributes=gr(n[1]),["ID","CLASS"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=String(s.attributes[o]))}),["START-DATE","END-DATE"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=new Date(s.attributes[o]))}),["DURATION","PLANNED-DURATION"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=parseFloat(s.attributes[o]))}),["END-ON-NEXT"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=/YES/i.test(s.attributes[o]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=s.attributes[o].toString(16))});const a=/^X-([A-Z]+-)+[A-Z]+$/;for(const o in s.attributes){if(!a.test(o))continue;const l=/[0-9A-Fa-f]{6}/g.test(s.attributes[o]),u=/^\d+(\.\d+)?$/.test(s.attributes[o]);s.attributes[o]=l?s.attributes[o].toString(16):u?parseFloat(s.attributes[o]):String(s.attributes[o])}this.trigger("data",s);return}if(n=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(i),n){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(n=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(i),n){s={type:"tag",tagType:"content-steering"},s.attributes=gr(n[1]),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 a1e=e=>e.toLowerCase().replace(/-(\w)/g,t=>t[1].toUpperCase()),Ua=function(e){const t={};return Object.keys(e).forEach(function(n){t[a1e(n)]=e[n]}),t},Q0=function(e){const{serverControl:t,targetDuration:n,partTargetDuration:s}=e;if(!t)return;const r="#EXT-X-SERVER-CONTROL",i="holdBack",a="partHoldBack",o=n&&n*3,l=s&&s*2;n&&!t.hasOwnProperty(i)&&(t[i]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&t[i]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${t[i]}) to targetDuration * 3 (${o})`}),t[i]=o),s&&!t.hasOwnProperty(a)&&(t[a]=s*3,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`})),s&&t[a]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${l}).`}),t[a]=l)};class o1e extends rS{constructor(){super(),this.lineStream=new n1e,this.parseStream=new i1e,this.lineStream.pipe(this.parseStream),this.lastProgramDateTime=null;const t=this,n=[];let s={},r,i,a=!1;const o=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},u="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";let c=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],segments:[]};let f=0,h=0;const g={};this.on("end",()=>{s.uri||!s.parts&&!s.preloadHints||(!s.map&&r&&(s.map=r),!s.key&&i&&(s.key=i),!s.timeline&&typeof c=="number"&&(s.timeline=c),this.manifest.preloadSegment=s)}),this.parseStream.on("data",function(m){let p,y;({tag(){({version(){m.version&&(this.manifest.version=m.version)},"allow-cache"(){this.manifest.allowCache=m.allowed,"allowed"in m||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const v={};"length"in m&&(s.byterange=v,v.length=m.length,"offset"in m||(m.offset=f)),"offset"in m&&(s.byterange=v,v.offset=m.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"})),m.title&&(s.title=m.title),m.duration>0&&(s.duration=m.duration),m.duration===0&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(!m.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(m.attributes.METHOD==="NONE"){i=null;return}if(!m.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(m.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:m.attributes};return}if(m.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:m.attributes.URI};return}if(m.attributes.KEYFORMAT===u){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(m.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(m.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),m.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(m.attributes.KEYID&&m.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:m.attributes.KEYFORMAT,keyId:m.attributes.KEYID.substring(2)},pssh:t1e(m.attributes.URI.split(",")[1])};return}m.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:m.attributes.METHOD||"AES-128",uri:m.attributes.URI},typeof m.attributes.IV<"u"&&(i.iv=m.attributes.IV)},"media-sequence"(){if(!isFinite(m.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+m.number});return}this.manifest.mediaSequence=m.number},"discontinuity-sequence"(){if(!isFinite(m.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+m.number});return}this.manifest.discontinuitySequence=m.number,c=m.number},"playlist-type"(){if(!/VOD|EVENT/.test(m.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+m.playlist});return}this.manifest.playlistType=m.playlistType},map(){r={},m.uri&&(r.uri=m.uri),m.byterange&&(r.byterange=m.byterange),i&&(r.key=i)},"stream-inf"(){if(this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,!m.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}s.attributes||(s.attributes={}),qn(s.attributes,m.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(m.attributes&&m.attributes.TYPE&&m.attributes["GROUP-ID"]&&m.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}const v=this.manifest.mediaGroups[m.attributes.TYPE];v[m.attributes["GROUP-ID"]]=v[m.attributes["GROUP-ID"]]||{},p=v[m.attributes["GROUP-ID"]],y={default:/yes/i.test(m.attributes.DEFAULT)},y.default?y.autoselect=!0:y.autoselect=/yes/i.test(m.attributes.AUTOSELECT),m.attributes.LANGUAGE&&(y.language=m.attributes.LANGUAGE),m.attributes.URI&&(y.uri=m.attributes.URI),m.attributes["INSTREAM-ID"]&&(y.instreamId=m.attributes["INSTREAM-ID"]),m.attributes.CHARACTERISTICS&&(y.characteristics=m.attributes.CHARACTERISTICS),m.attributes.FORCED&&(y.forced=/yes/i.test(m.attributes.FORCED)),p[m.attributes.NAME]=y},discontinuity(){c+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=m.dateTimeString,this.manifest.dateTimeObject=m.dateTimeObject),s.dateTimeString=m.dateTimeString,s.dateTimeObject=m.dateTimeObject;const{lastProgramDateTime:v}=this;this.lastProgramDateTime=new Date(m.dateTimeString).getTime(),v===null&&this.manifest.segments.reduceRight((b,S)=>(S.programDateTime=b-S.duration*1e3,S.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(m.duration)||m.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+m.duration});return}this.manifest.targetDuration=m.duration,Q0.call(this,this.manifest)},start(){if(!m.attributes||isNaN(m.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:m.attributes["TIME-OFFSET"],precise:m.attributes.PRECISE}},"cue-out"(){s.cueOut=m.data},"cue-out-cont"(){s.cueOutCont=m.data},"cue-in"(){s.cueIn=m.data},skip(){this.manifest.skip=Ua(m.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",m.attributes,["SKIPPED-SEGMENTS"])},part(){a=!0;const v=this.manifest.segments.length,b=Ua(m.attributes);s.parts=s.parts||[],s.parts.push(b),b.byterange&&(b.byterange.hasOwnProperty("offset")||(b.byterange.offset=h),h=b.byterange.offset+b.byterange.length);const S=s.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${S} for segment #${v}`,m.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((T,w)=>{T.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${w} lacks required attribute(s): LAST-PART`})})},"server-control"(){const v=this.manifest.serverControl=Ua(m.attributes);v.hasOwnProperty("canBlockReload")||(v.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Q0.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,b=Ua(m.attributes),S=b.type&&b.type==="PART";s.preloadHints=s.preloadHints||[],s.preloadHints.push(b),b.byterange&&(b.byterange.hasOwnProperty("offset")||(b.byterange.offset=S?h:0,S&&(h=b.byterange.offset+b.byterange.length)));const T=s.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${T} for segment #${v}`,m.attributes,["TYPE","URI"]),!!b.type)for(let w=0;w<s.preloadHints.length-1;w++){const C=s.preloadHints[w];C.type&&C.type===b.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${T} for segment #${v} has the same TYPE ${b.type} as preload hint #${w}`})}},"rendition-report"(){const v=Ua(m.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(v);const b=this.manifest.renditionReports.length-1,S=["LAST-MSN","URI"];a&&S.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${b}`,m.attributes,S)},"part-inf"(){this.manifest.partInf=Ua(m.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",m.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Q0.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Ua(m.attributes));const v=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${v}`,m.attributes,["ID","START-DATE"]);const b=this.manifest.dateRanges[v];b.endDate&&b.startDate&&new Date(b.endDate)<new Date(b.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),b.duration&&b.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),b.plannedDuration&&b.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const S=!!b.endOnNext;if(S&&!b.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),S&&(b.duration||b.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),b.duration&&b.endDate){const w=b.startDate.getTime()+b.duration*1e3;this.manifest.dateRanges[v].endDate=new Date(w)}if(!g[b.id])g[b.id]=b;else{for(const w in g[b.id])if(b[w]&&JSON.stringify(g[b.id][w])!==JSON.stringify(b[w])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const T=this.manifest.dateRanges.findIndex(w=>w.id===b.id);this.manifest.dateRanges[T]=qn(this.manifest.dateRanges[T],b),g[b.id]=qn(g[b.id],b),this.manifest.dateRanges.pop()}},"independent-segments"(){this.manifest.independentSegments=!0},"content-steering"(){this.manifest.contentSteering=Ua(m.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",m.attributes,["SERVER-URI"])}}[m.tagType]||o).call(t)},uri(){s.uri=m.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=c,r&&(s.map=r),h=0,this.lastProgramDateTime!==null&&(s.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=s.duration*1e3),s={}},comment(){},custom(){m.segment?(s.custom=s.custom||{},s.custom[m.customType]=m.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[m.customType]=m.data)}})[m.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.manifest.dateRanges.length&&this.lastProgramDateTime===null&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(t){this.parseStream.addParser(t)}addTagMapper(t){this.parseStream.addTagMapper(t)}}var pl={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^/},l1e=["video","audio","text"],uk=["Video","Audio","Text"],Z8=function(t){return t&&t.replace(/avc1\.(\d+)\.(\d+)/i,function(n,s,r){var i=("00"+Number(s).toString(16)).slice(-2),a=("00"+Number(r).toString(16)).slice(-2);return"avc1."+i+"00"+a})},xi=function(t){t===void 0&&(t="");var n=t.split(","),s=[];return n.forEach(function(r){r=r.trim();var i;l1e.forEach(function(a){var o=pl[a].exec(r.toLowerCase());if(!(!o||o.length<=1)){i=a;var l=r.substring(0,o[1].length),u=r.replace(l,"");s.push({type:l,details:u,mediaType:a})}}),i||s.push({type:r,details:"",mediaType:"unknown"})}),s},u1e=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 xi(i.playlists[0].attributes.CODECS)}return null},e$=function(t){return t===void 0&&(t=""),pl.audio.test(t.trim().toLowerCase())},c1e=function(t){return t===void 0&&(t=""),pl.text.test(t.trim().toLowerCase())},Lf=function(t){if(!(!t||typeof t!="string")){var n=t.toLowerCase().split(",").map(function(i){return Z8(i.trim())}),s="video";n.length===1&&e$(n[0])?s="audio":n.length===1&&c1e(n[0])&&(s="application");var r="mp4";return n.every(function(i){return pl.mp4.test(i)})?r="mp4":n.every(function(i){return pl.webm.test(i)})?r="webm":n.every(function(i){return pl.ogg.test(i)})&&(r="ogg"),s+"/"+r+';codecs="'+t+'"'}},om=function(t){return t===void 0&&(t=""),he.MediaSource&&he.MediaSource.isTypeSupported&&he.MediaSource.isTypeSupported(Lf(t))||!1},J0=function(t){return t===void 0&&(t=""),t.toLowerCase().split(",").every(function(n){n=n.trim();for(var s=0;s<uk.length;s++){var r=uk[s];if(pl["muxer"+r].test(n))return!0}return!1})},ck="mp4a.40.2",d1e="avc1.4d400d",f1e=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,h1e=/^application\/dash\+xml/i,t$=function(t){return f1e.test(t)?"hls":h1e.test(t)?"dash":t==="application/vnd.videojs.vhs+json"?"vhs-json":null},p1e=function(t){return t.toString(2).length},m1e=function(t){return Math.ceil(p1e(t)/8)},n$=function(t){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},g1e=function(t){return n$(t)},Ut=function(t){return t instanceof Uint8Array?t:(!Array.isArray(t)&&!g1e(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))},bs=he.BigInt||Number,Jb=[bs("0x1"),bs("0x100"),bs("0x10000"),bs("0x1000000"),bs("0x100000000"),bs("0x10000000000"),bs("0x1000000000000"),bs("0x100000000000000"),bs("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 v1e=function(t,n){var s=n===void 0?{}:n,r=s.signed,i=r===void 0?!1:r,a=s.le,o=a===void 0?!1:a;t=Ut(t);var l=o?"reduce":"reduceRight",u=t[l]?t[l]:Array.prototype[l],c=u.call(t,function(h,g,m){var p=o?m:Math.abs(m+1-t.length);return h+bs(g)*Jb[p]},bs(0));if(i){var f=Jb[t.length]/bs(2)-bs(1);c=bs(c),c>f&&(c-=f,c-=f,c-=bs(2))}return Number(c)},y1e=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=bs(t);for(var a=m1e(t),o=new Uint8Array(new ArrayBuffer(a)),l=0;l<a;l++){var u=i?l:Math.abs(l+1-o.length);o[u]=Number(t/Jb[l]&bs(255)),t<0&&(o[u]=Math.abs(~o[u]),o[u]-=l===0?1:2)}return o},s$=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},b1e=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];if(n=n.filter(function(o){return o&&(o.byteLength||o.length)&&typeof o!="string"}),n.length<=1)return Ut(n[0]);var r=n.reduce(function(o,l,u){return o+(l.byteLength||l.length)},0),i=new Uint8Array(r),a=0;return n.forEach(function(o){o=Ut(o),i.set(o,a),a+=o.byteLength}),i},Ln=function(t,n,s){var r=s===void 0?{}:s,i=r.offset,a=i===void 0?0:i,o=r.mask,l=o===void 0?[]:o;t=Ut(t),n=Ut(n);var u=n.every?n.every:Array.prototype.every;return n.length&&t.length-a>=n.length&&u.call(n,function(c,f){var h=l[f]?l[f]&t[a+f]:t[a+f];return c===h})},_1e=function(t,n,s){n.forEach(function(r){for(var i in t.mediaGroups[r])for(var a in t.mediaGroups[r][i]){var o=t.mediaGroups[r][i][a];s(o,r,i,a)}})},S1e=function(t){return he.atob?he.atob(t):Buffer.from(t,"base64").toString("binary")};function w1e(e){for(var t=S1e(e),n=new Uint8Array(t.length),s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}var Po={},Pa={};function T1e(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 iS(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze=="function"?t.freeze(e):e}function C1e(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 r$=iS({HTML:"text/html",isHTML:function(e){return e===r$.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i$=iS({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===i$.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Pa.assign=C1e;Pa.find=T1e;Pa.freeze=iS;Pa.MIME_TYPE=r$;Pa.NAMESPACE=i$;var a$=Pa,Bi=a$.find,Bf=a$.NAMESPACE;function E1e(e){return e!==""}function x1e(e){return e?e.split(/[\t\n\f\r ]+/).filter(E1e):[]}function k1e(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function dk(e){if(!e)return[];var t=x1e(e);return Object.keys(t.reduce(k1e,{}))}function A1e(e){return function(t){return e&&e.indexOf(t)!==-1}}function yh(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function dr(e,t){var n=e.prototype;if(!(n instanceof t)){let r=function(){};var s=r;r.prototype=t.prototype,r=new r,yh(n,r),e.prototype=n=r}n.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),n.constructor=e)}var fr={},di=fr.ELEMENT_NODE=1,ac=fr.ATTRIBUTE_NODE=2,jm=fr.TEXT_NODE=3,o$=fr.CDATA_SECTION_NODE=4,l$=fr.ENTITY_REFERENCE_NODE=5,I1e=fr.ENTITY_NODE=6,u$=fr.PROCESSING_INSTRUCTION_NODE=7,c$=fr.COMMENT_NODE=8,d$=fr.DOCUMENT_NODE=9,f$=fr.DOCUMENT_TYPE_NODE=10,wa=fr.DOCUMENT_FRAGMENT_NODE=11,D1e=fr.NOTATION_NODE=12,Rs={},vs={};Rs.INDEX_SIZE_ERR=(vs[1]="Index size error",1);Rs.DOMSTRING_SIZE_ERR=(vs[2]="DOMString size error",2);var Zs=Rs.HIERARCHY_REQUEST_ERR=(vs[3]="Hierarchy request error",3);Rs.WRONG_DOCUMENT_ERR=(vs[4]="Wrong document",4);Rs.INVALID_CHARACTER_ERR=(vs[5]="Invalid character",5);Rs.NO_DATA_ALLOWED_ERR=(vs[6]="No data allowed",6);Rs.NO_MODIFICATION_ALLOWED_ERR=(vs[7]="No modification allowed",7);var h$=Rs.NOT_FOUND_ERR=(vs[8]="Not found",8);Rs.NOT_SUPPORTED_ERR=(vs[9]="Not supported",9);var fk=Rs.INUSE_ATTRIBUTE_ERR=(vs[10]="Attribute in use",10);Rs.INVALID_STATE_ERR=(vs[11]="Invalid state",11);Rs.SYNTAX_ERR=(vs[12]="Syntax error",12);Rs.INVALID_MODIFICATION_ERR=(vs[13]="Invalid modification",13);Rs.NAMESPACE_ERR=(vs[14]="Invalid namespace",14);Rs.INVALID_ACCESS_ERR=(vs[15]="Invalid access",15);function Qn(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,vs[e]),this.message=vs[e],Error.captureStackTrace&&Error.captureStackTrace(this,Qn);return n.code=e,t&&(this.message=this.message+": "+t),n}Qn.prototype=Error.prototype;yh(Rs,Qn);function ha(){}ha.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],s=0;s<this.length;s++)hu(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 oc(e,t){this._node=e,this._refresh=t,aS(this)}function aS(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(E$(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var s=n.length;s in e;s++)Object.prototype.hasOwnProperty.call(e,s)&&delete e[s];yh(n,e),e._inc=t}}oc.prototype.item=function(e){return aS(this),this[e]||null};dr(oc,ha);function qm(){}function p$(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function hk(e,t,n,s){if(s?t[p$(t,s)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(s&&v$(r,e,s),O1e(r,e,n))}}function pk(e,t,n){var s=p$(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&&(v$(i,e,n),n.ownerElement=null)}}else throw new Qn(h$,new Error(e.tagName+"@"+n))}qm.prototype={length:0,item:ha.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 Qn(fk);var n=this.getNamedItem(e.nodeName);return hk(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new Qn(fk);return n=this.getNamedItemNS(e.namespaceURI,e.localName),hk(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return pk(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return pk(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 m$(){}m$.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var s=new bh;if(s.implementation=this,s.childNodes=new ha,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 mv;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=n||"",s}};function bn(){}bn.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 Wm(this,e,t)},replaceChild:function(e,t){Wm(this,e,t,b$),t&&this.removeChild(t)},removeChild:function(e){return y$(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return Zb(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==jm&&e.nodeType==jm?(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==ac?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==ac?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function g$(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}yh(fr,bn);yh(fr,bn.prototype);function Ff(e,t){if(t(e))return!0;if(e=e.firstChild)do if(Ff(e,t))return!0;while(e=e.nextSibling)}function bh(){this.ownerDocument=this}function O1e(e,t,n){e&&e._inc++;var s=n.namespaceURI;s===Bf.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function v$(e,t,n,s){e&&e._inc++;var r=n.namespaceURI;r===Bf.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function oS(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 y$(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,oS(e.ownerDocument,e),t}function P1e(e){return e&&(e.nodeType===bn.DOCUMENT_NODE||e.nodeType===bn.DOCUMENT_FRAGMENT_NODE||e.nodeType===bn.ELEMENT_NODE)}function $1e(e){return e&&(Fi(e)||lS(e)||Ta(e)||e.nodeType===bn.DOCUMENT_FRAGMENT_NODE||e.nodeType===bn.COMMENT_NODE||e.nodeType===bn.PROCESSING_INSTRUCTION_NODE)}function Ta(e){return e&&e.nodeType===bn.DOCUMENT_TYPE_NODE}function Fi(e){return e&&e.nodeType===bn.ELEMENT_NODE}function lS(e){return e&&e.nodeType===bn.TEXT_NODE}function mk(e,t){var n=e.childNodes||[];if(Bi(n,Fi)||Ta(t))return!1;var s=Bi(n,Ta);return!(t&&s&&n.indexOf(s)>n.indexOf(t))}function gk(e,t){var n=e.childNodes||[];function s(i){return Fi(i)&&i!==t}if(Bi(n,s))return!1;var r=Bi(n,Ta);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function R1e(e,t,n){if(!P1e(e))throw new Qn(Zs,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new Qn(h$,"child not in parent");if(!$1e(t)||Ta(t)&&e.nodeType!==bn.DOCUMENT_NODE)throw new Qn(Zs,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function N1e(e,t,n){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===bn.DOCUMENT_FRAGMENT_NODE){var i=r.filter(Fi);if(i.length>1||Bi(r,lS))throw new Qn(Zs,"More than one element or text in fragment");if(i.length===1&&!mk(e,n))throw new Qn(Zs,"Element in fragment can not be inserted before doctype")}if(Fi(t)&&!mk(e,n))throw new Qn(Zs,"Only one element can be added and only after doctype");if(Ta(t)){if(Bi(s,Ta))throw new Qn(Zs,"Only one doctype is allowed");var a=Bi(s,Fi);if(n&&s.indexOf(a)<s.indexOf(n))throw new Qn(Zs,"Doctype can only be inserted before an element");if(!n&&a)throw new Qn(Zs,"Doctype can not be appended since element is present")}}function b$(e,t,n){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===bn.DOCUMENT_FRAGMENT_NODE){var i=r.filter(Fi);if(i.length>1||Bi(r,lS))throw new Qn(Zs,"More than one element or text in fragment");if(i.length===1&&!gk(e,n))throw new Qn(Zs,"Element in fragment can not be inserted before doctype")}if(Fi(t)&&!gk(e,n))throw new Qn(Zs,"Only one element can be added and only after doctype");if(Ta(t)){let l=function(u){return Ta(u)&&u!==n};var o=l;if(Bi(s,l))throw new Qn(Zs,"Only one doctype is allowed");var a=Bi(s,Fi);if(n&&s.indexOf(a)<s.indexOf(n))throw new Qn(Zs,"Doctype can only be inserted before an element")}}function Wm(e,t,n,s){R1e(e,t,n),e.nodeType===bn.DOCUMENT_NODE&&(s||N1e)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===wa){var i=t.firstChild;if(i==null)return t;var a=t.lastChild}else i=a=t;var o=n?n.previousSibling:e.lastChild;i.previousSibling=o,a.nextSibling=n,o?o.nextSibling=i:e.firstChild=i,n==null?e.lastChild=a:n.previousSibling=a;do i.parentNode=e;while(i!==a&&(i=i.nextSibling));return oS(e.ownerDocument||e,e),t.nodeType==wa&&(t.firstChild=t.lastChild=null),t}function M1e(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,oS(e.ownerDocument,e,t),t}bh.prototype={nodeName:"#document",nodeType:d$,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==wa){for(var n=e.firstChild;n;){var s=n.nextSibling;this.insertBefore(n,t),n=s}return e}return Wm(this,e,t),e.ownerDocument=this,this.documentElement===null&&e.nodeType===di&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),y$(this,e)},replaceChild:function(e,t){Wm(this,e,t,b$),e.ownerDocument=this,t&&this.removeChild(t),Fi(e)&&(this.documentElement=e)},importNode:function(e,t){return C$(this,e,t)},getElementById:function(e){var t=null;return Ff(this.documentElement,function(n){if(n.nodeType==di&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=dk(e);return new oc(this,function(n){var s=[];return t.length>0&&Ff(n.documentElement,function(r){if(r!==n&&r.nodeType===di){var i=r.getAttribute("class");if(i){var a=e===i;if(!a){var o=dk(i);a=t.every(A1e(o))}a&&s.push(r)}}}),s})},createElement:function(e){var t=new Il;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new ha;var n=t.attributes=new qm;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new gv;return e.ownerDocument=this,e.childNodes=new ha,e},createTextNode:function(e){var t=new uS;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new cS;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new dS;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new hS;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new Km;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new fS;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Il,s=t.split(":"),r=n.attributes=new qm;return n.childNodes=new ha,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 Km,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}};dr(bh,bn);function Il(){this._nsMap={}}Il.prototype={nodeType:di,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===wa?this.insertBefore(e,null):M1e(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 oc(this,function(t){var n=[];return Ff(t,function(s){s!==t&&s.nodeType==di&&(e==="*"||s.tagName==e)&&n.push(s)}),n})},getElementsByTagNameNS:function(e,t){return new oc(this,function(n){var s=[];return Ff(n,function(r){r!==n&&r.nodeType===di&&(e==="*"||r.namespaceURI===e)&&(t==="*"||r.localName==t)&&s.push(r)}),s})}};bh.prototype.getElementsByTagName=Il.prototype.getElementsByTagName;bh.prototype.getElementsByTagNameNS=Il.prototype.getElementsByTagNameNS;dr(Il,bn);function Km(){}Km.prototype.nodeType=ac;dr(Km,bn);function _h(){}_h.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(vs[Zs])},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}};dr(_h,bn);function uS(){}uS.prototype={nodeName:"#text",nodeType:jm,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}};dr(uS,_h);function cS(){}cS.prototype={nodeName:"#comment",nodeType:c$};dr(cS,_h);function dS(){}dS.prototype={nodeName:"#cdata-section",nodeType:o$};dr(dS,_h);function mv(){}mv.prototype.nodeType=f$;dr(mv,bn);function _$(){}_$.prototype.nodeType=D1e;dr(_$,bn);function S$(){}S$.prototype.nodeType=I1e;dr(S$,bn);function fS(){}fS.prototype.nodeType=l$;dr(fS,bn);function gv(){}gv.prototype.nodeName="#document-fragment";gv.prototype.nodeType=wa;dr(gv,bn);function hS(){}hS.prototype.nodeType=u$;dr(hS,bn);function w$(){}w$.prototype.serializeToString=function(e,t,n){return T$.call(e,t,n)};bn.prototype.toString=T$;function T$(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 a=[{namespace:i,prefix:null}]}return hu(this,n,e,t,a),n.join("")}function vk(e,t,n){var s=e.prefix||"",r=e.namespaceURI;if(!r||s==="xml"&&r===Bf.XML||r===Bf.XMLNS)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix===s)return a.namespace!==r}return!0}function Z0(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,g$),'"')}function hu(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 di:var i=e.attributes,a=i.length,v=e.firstChild,o=e.tagName;n=Bf.isHTML(e.namespaceURI)||n;var l=o;if(!n&&!e.prefix&&e.namespaceURI){for(var u,c=0;c<i.length;c++)if(i.item(c).name==="xmlns"){u=i.item(c).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+":"+o);break}}}t.push("<",l);for(var g=0;g<a;g++){var m=i.item(g);m.prefix=="xmlns"?r.push({prefix:m.localName,namespace:m.value}):m.nodeName=="xmlns"&&r.push({prefix:"",namespace:m.value})}for(var g=0;g<a;g++){var m=i.item(g);if(vk(m,n,r)){var p=m.prefix||"",y=m.namespaceURI;Z0(t,p?"xmlns:"+p:"xmlns",y),r.push({prefix:p,namespace:y})}hu(m,t,n,s,r)}if(o===l&&vk(e,n,r)){var p=e.prefix||"",y=e.namespaceURI;Z0(t,p?"xmlns:"+p:"xmlns",y),r.push({prefix:p,namespace:y})}if(v||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(o)){if(t.push(">"),n&&/^script$/i.test(o))for(;v;)v.data?t.push(v.data):hu(v,t,n,s,r.slice()),v=v.nextSibling;else for(;v;)hu(v,t,n,s,r.slice()),v=v.nextSibling;t.push("</",l,">")}else t.push("/>");return;case d$:case wa:for(var v=e.firstChild;v;)hu(v,t,n,s,r.slice()),v=v.nextSibling;return;case ac:return Z0(t,e.name,e.value);case jm:return t.push(e.data.replace(/[<&>]/g,g$));case o$:return t.push("<![CDATA[",e.data,"]]>");case c$:return t.push("<!--",e.data,"-->");case f$:var b=e.publicId,S=e.systemId;if(t.push("<!DOCTYPE ",e.name),b)t.push(" PUBLIC ",b),S&&S!="."&&t.push(" ",S),t.push(">");else if(S&&S!=".")t.push(" SYSTEM ",S,">");else{var T=e.internalSubset;T&&t.push(" [",T,"]"),t.push(">")}return;case u$:return t.push("<?",e.target," ",e.data,"?>");case l$:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function C$(e,t,n){var s;switch(t.nodeType){case di:s=t.cloneNode(!1),s.ownerDocument=e;case wa:break;case ac:n=!0;break}if(s||(s=t.cloneNode(!1)),s.ownerDocument=e,s.parentNode=null,n)for(var r=t.firstChild;r;)s.appendChild(C$(e,r,n)),r=r.nextSibling;return s}function Zb(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 ha),s.ownerDocument=e,s.nodeType){case di:var a=t.attributes,o=s.attributes=new qm,l=a.length;o._ownerElement=s;for(var u=0;u<l;u++)s.setAttributeNode(Zb(e,a.item(u),!0));break;case ac:n=!0}if(n)for(var c=t.firstChild;c;)s.appendChild(Zb(e,c,n)),c=c.nextSibling;return s}function E$(e,t,n){e[t]=n}try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case di:case wa: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 KAe=e;Object.defineProperty(oc.prototype,"length",{get:function(){return aS(this),this.$$length}}),Object.defineProperty(bn.prototype,"textContent",{get:function(){return e(this)},set:function(t){switch(this.nodeType){case di:case wa: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}}}),E$=function(t,n,s){t["$$"+n]=s}}}catch{}Po.DocumentType=mv;Po.DOMException=Qn;Po.DOMImplementation=m$;Po.Element=Il;Po.Node=bn;Po.NodeList=ha;Po.XMLSerializer=w$;var vv={},x$={};(function(e){var t=Pa.freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"",backsim:"∽",backsimeq:"⋍",Backslash:"",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"",Bernoullis:"",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"",caps:"∩︀",caret:"",caron:"ˇ",Cayleys:"",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"",dd:"",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:"",emsp13:"",emsp14:"",ENG:"Ŋ",eng:"ŋ",ensp:"",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"",escr:"",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"",ExponentialE:"",exponentiale:"",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"",frown:"⌢",Fscr:"",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:"",half:"½",hamilt:"",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"",hfr:"𝔥",HilbertSpace:"",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"",hyphen:"",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"",Imacr:"Ī",imacr:"ī",image:"",ImaginaryI:"",imagline:"",imagpart:"",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"",Lscr:"",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"",lsquor:"",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:"",Mellintrf:"",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"",midast:"*",midcir:"⫰",middot:"·",minus:"",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:"",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"",operp:"⦹",oplus:"⊕",Or:"⩔",or:"",orarr:"↻",ord:"⩝",order:"",orderof:"",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"",pointint:"⨕",Popf:"",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"",primes:"",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:"",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"",rationals:"",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"",real:"",realine:"",realpart:"",reals:"",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"",Rscr:"",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"",rsquor:"",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"",setmn:"",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"",smashp:"⨳",smeparsl:"⧤",smid:"",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"",ThickSpace:"",thinsp:"",ThinSpace:"",thkap:"≈",thksim:"",THORN:"Þ",thorn:"þ",Tilde:"",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"",vee:"",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:"",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES})(x$);var pS={},Vf=Pa.NAMESPACE,e_=/[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]/,yk=new RegExp("[\\-\\.0-9"+e_.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),bk=new RegExp("^"+e_.source+yk.source+"*(?::"+e_.source+yk.source+"*)?$"),md=0,Ha=1,Jl=2,gd=3,Zl=4,eu=5,vd=6,bp=7;function lc(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,lc)}lc.prototype=new Error;lc.prototype.name=lc.name;function k$(){}k$.prototype={parse:function(e,t,n){var s=this.domBuilder;s.startDocument(),A$(t,t={}),L1e(e,t,n,s,this.errorHandler),s.endDocument()}};function L1e(e,t,n,s,r){function i(q){if(q>65535){q-=65536;var H=55296+(q>>10),V=56320+(q&1023);return String.fromCharCode(H,V)}else return String.fromCharCode(q)}function a(q){var H=q.slice(1,-1);return Object.hasOwnProperty.call(n,H)?n[H]:H.charAt(0)==="#"?i(parseInt(H.substr(1).replace("x","0x"))):(r.error("entity not found:"+q),q)}function o(q){if(q>p){var H=e.substring(p,q).replace(/&#?\w+;/g,a);h&&l(p),s.characters(H,0,q-p),p=q}}function l(q,H){for(;q>=c&&(H=f.exec(e));)u=H.index,c=u+H[0].length,h.lineNumber++;h.columnNumber=q-u+1}for(var u=0,c=0,f=/.*(?:\r\n?|\n)|.*$/g,h=s.locator,g=[{currentNSMap:t}],m={},p=0;;){try{var y=e.indexOf("<",p);if(y<0){if(!e.substr(p).match(/^\s*$/)){var v=s.doc,b=v.createTextNode(e.substr(p));v.appendChild(b),s.currentElement=b}return}switch(y>p&&o(y),e.charAt(y+1)){case"/":var B=e.indexOf(">",y+3),S=e.substring(y+2,B).replace(/[ \t\n\r]+$/g,""),T=g.pop();B<0?(S=e.substring(y+2).replace(/[\s<].*/,""),r.error("end tag name: "+S+" is not complete:"+T.tagName),B=y+1+S.length):S.match(/\s</)&&(S=S.replace(/[\s<].*/,""),r.error("end tag name: "+S+" maybe not complete"),B=y+1+S.length);var w=T.localNSMap,C=T.tagName==S,O=C||T.tagName&&T.tagName.toLowerCase()==S.toLowerCase();if(O){if(s.endElement(T.uri,T.localName,S),w)for(var P in w)Object.prototype.hasOwnProperty.call(w,P)&&s.endPrefixMapping(P);C||r.fatalError("end tag name: "+S+" is not match the current start tagName:"+T.tagName)}else g.push(T);B++;break;case"?":h&&l(y),B=H1e(e,y,s);break;case"!":h&&l(y),B=U1e(e,y,s,r);break;default:h&&l(y);var M=new I$,U=g[g.length-1].currentNSMap,B=B1e(e,y,M,U,a,r),W=M.length;if(!M.closed&&V1e(e,B,M.tagName,m)&&(M.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),h&&W){for(var Q=_k(h,{}),G=0;G<W;G++){var X=M[G];l(X.offset),X.locator=_k(h,{})}s.locator=Q,Sk(M,s,U)&&g.push(M),s.locator=h}else Sk(M,s,U)&&g.push(M);Vf.isHTML(M.uri)&&!M.closed?B=F1e(e,B,M.tagName,a,s):B++}}catch(q){if(q instanceof lc)throw q;r.error("element parse error: "+q),B=-1}B>p?p=B:o(Math.max(y,p)+1)}}function _k(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function B1e(e,t,n,s,r,i){function a(h,g,m){n.attributeNames.hasOwnProperty(h)&&i.fatalError("Attribute "+h+" redefined"),n.addValue(h,g.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),m)}for(var o,l,u=++t,c=md;;){var f=e.charAt(u);switch(f){case"=":if(c===Ha)o=e.slice(t,u),c=gd;else if(c===Jl)c=gd;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(c===gd||c===Ha)if(c===Ha&&(i.warning('attribute value must after "="'),o=e.slice(t,u)),t=u+1,u=e.indexOf(f,t),u>0)l=e.slice(t,u),a(o,l,t-1),c=eu;else throw new Error("attribute value no end '"+f+"' match");else if(c==Zl)l=e.slice(t,u),a(o,l,t),i.warning('attribute "'+o+'" missed start quot('+f+")!!"),t=u+1,c=eu;else throw new Error('attribute value must after "="');break;case"/":switch(c){case md:n.setTagName(e.slice(t,u));case eu:case vd:case bp:c=bp,n.closed=!0;case Zl:case Ha:break;case Jl:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),c==md&&n.setTagName(e.slice(t,u)),u;case">":switch(c){case md:n.setTagName(e.slice(t,u));case eu:case vd:case bp:break;case Zl:case Ha:l=e.slice(t,u),l.slice(-1)==="/"&&(n.closed=!0,l=l.slice(0,-1));case Jl:c===Jl&&(l=o),c==Zl?(i.warning('attribute "'+l+'" missed quot(")!'),a(o,l,t)):((!Vf.isHTML(s[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),a(l,l,t));break;case gd:throw new Error("attribute value missed!!")}return u;case"€":f=" ";default:if(f<=" ")switch(c){case md:n.setTagName(e.slice(t,u)),c=vd;break;case Ha:o=e.slice(t,u),c=Jl;break;case Zl:var l=e.slice(t,u);i.warning('attribute "'+l+'" missed quot(")!!'),a(o,l,t);case eu:c=vd;break}else switch(c){case Jl:n.tagName,(!Vf.isHTML(s[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),a(o,o,t),t=u,c=Ha;break;case eu:i.warning('attribute space is required"'+o+'"!!');case vd:c=Ha,t=u;break;case gd:c=Zl,t=u;break;case bp:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function Sk(e,t,n){for(var s=e.tagName,r=null,f=e.length;f--;){var i=e[f],a=i.qName,o=i.value,h=a.indexOf(":");if(h>0)var l=i.prefix=a.slice(0,h),u=a.slice(h+1),c=l==="xmlns"&&u;else u=a,l=null,c=a==="xmlns"&&"";i.localName=u,c!==!1&&(r==null&&(r={},A$(n,n={})),n[c]=r[c]=o,i.uri=Vf.XMLNS,t.startPrefixMapping(c,o))}for(var f=e.length;f--;){i=e[f];var l=i.prefix;l&&(l==="xml"&&(i.uri=Vf.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 g=e.uri=n[l||""];if(t.startElement(g,u,s,e),e.closed){if(t.endElement(g,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 F1e(e,t,n,s,r){if(/^(?:script|textarea)$/i.test(n)){var i=e.indexOf("</"+n+">",t),a=e.substring(t+1,i);if(/[&<]/.test(a))return/^script$/i.test(n)?(r.characters(a,0,a.length),i):(a=a.replace(/&#?\w+;/g,s),r.characters(a,0,a.length),i)}return t+1}function V1e(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 A$(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function U1e(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 a=z1e(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var l=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return n.startDTD(l,u,c),n.endDTD(),f.index+f[0].length}}return-1}function H1e(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 I$(){this.attributeNames={}}I$.prototype={setTagName:function(e){if(!bk.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!bk.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 z1e(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}pS.XMLReader=k$;pS.ParseError=lc;var j1e=Pa,q1e=Po,wk=x$,D$=pS,W1e=q1e.DOMImplementation,Tk=j1e.NAMESPACE,K1e=D$.ParseError,G1e=D$.XMLReader;function O$(e){return e.replace(/\r[\n\u0085]/g,`
`).replace(/[\r\u0085\u2028]/g,`
`)}function P$(e){this.options=e||{locator:{}}}P$.prototype.parseFromString=function(e,t){var n=this.options,s=new G1e,r=n.domBuilder||new Sh,i=n.errorHandler,a=n.locator,o=n.xmlns||{},l=/\/x?html?$/.test(t),u=l?wk.HTML_ENTITIES:wk.XML_ENTITIES;a&&r.setDocumentLocator(a),s.errorHandler=Y1e(i,r,a),s.domBuilder=n.domBuilder||r,l&&(o[""]=Tk.HTML),o.xml=o.xml||Tk.XML;var c=n.normalizeLineEndings||O$;return e&&typeof e=="string"?s.parse(c(e),o,u):s.errorHandler.error("invalid doc source"),r.doc};function Y1e(e,t,n){if(!e){if(t instanceof Sh)return t;e=t}var s={},r=e instanceof Function;n=n||{};function i(a){var o=e[a];!o&&r&&(o=e.length==2?function(l){e(a,l)}:e),s[a]=o&&function(l){o("[xmldom "+a+"] "+l+t_(n))}||function(){}}return i("warning"),i("error"),i("fatalError"),s}function Sh(){this.cdata=!1}function tu(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}Sh.prototype={startDocument:function(){this.doc=new W1e().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),a=s.length;_p(this,i),this.currentElement=i,this.locator&&tu(this.locator,i);for(var o=0;o<a;o++){var e=s.getURI(o),l=s.getValue(o),n=s.getQName(o),u=r.createAttributeNS(e,n);this.locator&&tu(s.getLocator(o),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&&tu(this.locator,n),_p(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=Ck.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&&tu(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=Ck.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&tu(this.locator,s),_p(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&&tu(this.locator,r),_p(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning] "+e,t_(this.locator))},error:function(e){console.error("[xmldom error] "+e,t_(this.locator))},fatalError:function(e){throw new K1e(e,this.locator)}};function t_(e){if(e)return`
@`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function Ck(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){Sh.prototype[e]=function(){return null}});function _p(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}vv.__DOMHandler=Sh;vv.normalizeLineEndings=O$;vv.DOMParser=P$;var X1e=vv.DOMParser;/*! @name mpd-parser @version 1.3.0 @license Apache-2.0 */const Ek=e=>!!e&&typeof e=="object",fs=(...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]):Ek(t[s])&&Ek(n[s])?t[s]=fs(t[s],n[s]):t[s]=n[s]}),t),{}),$$=e=>Object.keys(e).map(t=>e[t]),Q1e=(e,t)=>{const n=[];for(let s=e;s<t;s++)n.push(s);return n},uc=e=>e.reduce((t,n)=>t.concat(n),[]),R$=e=>{if(!e.length)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t},J1e=(e,t)=>e.reduce((n,s,r)=>(s[t]&&n.push(r),n),[]),Z1e=(e,t)=>$$(e.reduce((n,s)=>(s.forEach(r=>{n[t(r)]=r}),n),{}));var cc={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",INVALID_NUMBER_OF_CONTENT_STEERING:"INVALID_NUMBER_OF_CONTENT_STEERING",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 Uf=({baseUrl:e="",source:t="",range:n="",indexRange:s=""})=>{const r={uri:t,resolvedUri:pv(e||"",t)};if(n||s){const a=(n||s).split("-");let o=he.BigInt?he.BigInt(a[0]):parseInt(a[0],10),l=he.BigInt?he.BigInt(a[1]):parseInt(a[1],10);o<Number.MAX_SAFE_INTEGER&&typeof o=="bigint"&&(o=Number(o)),l<Number.MAX_SAFE_INTEGER&&typeof l=="bigint"&&(l=Number(l));let u;typeof l=="bigint"||typeof o=="bigint"?u=he.BigInt(l)-he.BigInt(o)+he.BigInt(1):u=l-o+1,typeof u=="bigint"&&u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),r.byterange={length:u,offset:o}}return r},e2e=e=>{let t;return typeof e.offset=="bigint"||typeof e.length=="bigint"?t=he.BigInt(e.offset)+he.BigInt(e.length)-he.BigInt(1):t=e.offset+e.length-1,`${e.offset}-${t}`},xk=e=>(e&&typeof e!="number"&&(e=parseInt(e,10)),isNaN(e)?null:e),t2e={static(e){const{duration:t,timescale:n=1,sourceDuration:s,periodDuration:r}=e,i=xk(e.endNumber),a=t/n;return typeof i=="number"?{start:0,end:i}:typeof r=="number"?{start:0,end:r/a}:{start:0,end:s/a}},dynamic(e){const{NOW:t,clientOffset:n,availabilityStartTime:s,timescale:r=1,duration:i,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,u=xk(e.endNumber),c=(t+n)/1e3,f=s+a,g=c+o-f,m=Math.ceil(g*r/i),p=Math.floor((c-f-l)*r/i),y=Math.floor((c-f)*r/i);return{start:Math.max(0,p),end:typeof u=="number"?u:Math.min(m,y)}}},n2e=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}},mS=e=>{const{type:t,duration:n,timescale:s=1,periodDuration:r,sourceDuration:i}=e,{start:a,end:o}=t2e[t](e),l=Q1e(a,o).map(n2e(e));if(t==="static"){const u=l.length-1,c=typeof r=="number"?r:i;l[u].duration=c-n/s*u}return l},N$=e=>{const{baseUrl:t,initialization:n={},sourceDuration:s,indexRange:r="",periodStart:i,presentationTime:a,number:o=0,duration:l}=e;if(!t)throw new Error(cc.NO_BASE_URL);const u=Uf({baseUrl:t,source:n.sourceURL,range:n.range}),c=Uf({baseUrl:t,source:t,indexRange:r});if(c.map=u,l){const f=mS(e);f.length&&(c.duration=f[0].duration,c.timeline=f[0].timeline)}else s&&(c.duration=s,c.timeline=i);return c.presentationTime=a||i,c.number=o,[c]},gS=(e,t,n)=>{const s=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,i=e.timeline||0,a=e.sidx.byterange,o=a.offset+a.length,l=t.timescale,u=t.references.filter(y=>y.referenceType!==1),c=[],f=e.endList?"static":"dynamic",h=e.sidx.timeline;let g=h,m=e.mediaSequence||0,p;typeof t.firstOffset=="bigint"?p=he.BigInt(o)+t.firstOffset:p=o+t.firstOffset;for(let y=0;y<u.length;y++){const v=t.references[y],b=v.referencedSize,S=v.subsegmentDuration;let T;typeof p=="bigint"?T=p+he.BigInt(b)-he.BigInt(1):T=p+b-1;const w=`${p}-${T}`,O=N$({baseUrl:n,timescale:l,timeline:i,periodStart:h,presentationTime:g,number:m,duration:S,sourceDuration:r,indexRange:w,type:f})[0];s&&(O.map=s),c.push(O),typeof p=="bigint"?p+=he.BigInt(b):p+=b,g+=S/l,m++}return e.segments=c,e},s2e=["AUDIO","SUBTITLES"],r2e=1/60,M$=e=>Z1e(e,({timeline:t})=>t).sort((t,n)=>t.timeline>n.timeline?1:-1),i2e=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},kk=e=>{let t=[];return _1e(e,s2e,(n,s,r,i)=>{t=t.concat(n.playlists||[])}),t},Ak=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((n,s)=>{n.number=e.mediaSequence+s})},a2e=({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach(s=>{s.discontinuitySequence=n.findIndex(function({timeline:l}){return l===s.timeline});const r=i2e(e,s.attributes.NAME);if(!r||s.sidx)return;const i=s.segments[0],a=r.segments.findIndex(function(l){return Math.abs(l.presentationTime-i.presentationTime)<r2e});if(a===-1){Ak({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[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,s.discontinuityStarts.unshift(0),s.discontinuitySequence--),Ak({playlist:s,mediaSequence:r.segments[a].number})})},o2e=({oldManifest:e,newManifest:t})=>{const n=e.playlists.concat(kk(e)),s=t.playlists.concat(kk(t));return t.timelineStarts=M$([e.timelineStarts,t.timelineStarts]),a2e({oldPlaylists:n,newPlaylists:s,timelineStarts:t.timelineStarts}),t},yv=e=>e&&e.uri+"-"+e2e(e.byterange),ey=e=>{const t=e.reduce(function(s,r){return s[r.attributes.baseUrl]||(s[r.attributes.baseUrl]=[]),s[r.attributes.baseUrl].push(r),s},{});let n=[];return Object.values(t).forEach(s=>{const r=$$(s.reduce((i,a)=>{const o=a.attributes.id+(a.attributes.lang||"");return i[o]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),i[o].segments.push(...a.segments)),a.attributes.contentProtection&&(i[o].attributes.contentProtection=a.attributes.contentProtection)):(i[o]=a,i[o].attributes.timelineStarts=[]),i[o].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),i},{}));n=n.concat(r)}),n.map(s=>(s.discontinuityStarts=J1e(s.segments||[],"discontinuity"),s))},vS=(e,t)=>{const n=yv(e.sidx),s=n&&t[n]&&t[n].sidx;return s&&gS(e,s,e.sidx.resolvedUri),e},l2e=(e,t={})=>{if(!Object.keys(t).length)return e;for(const n in e)e[n]=vS(e[n],t);return e},u2e=({attributes:e,segments:t,sidx:n,mediaSequence:s,discontinuitySequence:r,discontinuityStarts:i},a)=>{const o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:i,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),n&&(o.sidx=n),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},c2e=({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};e.codecs&&(i.CODECS=e.codecs);const a={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};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a},d2e=(e,t={},n=!1)=>{let s;const r=e.reduce((i,a)=>{const o=a.attributes.role&&a.attributes.role.value||"",l=a.attributes.lang||"";let u=a.attributes.label||"main";if(l&&!a.attributes.label){const f=o?` (${o})`:"";u=`${a.attributes.lang}${f}`}i[u]||(i[u]={language:l,autoselect:!0,default:o==="main",playlists:[],uri:""});const c=vS(u2e(a,n),t);return i[u].playlists.push(c),typeof s>"u"&&o==="main"&&(s=a,s.default=!0),i},{});if(!s){const i=Object.keys(r)[0];r[i].default=!0}return r},f2e=(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(vS(c2e(s),t)),n},{}),h2e=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),{}),p2e=({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:e.baseUrl||"",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),e.serviceLocation&&(r.attributes.serviceLocation=e.serviceLocation),n&&(r.sidx=n),r},m2e=({attributes:e})=>e.mimeType==="video/mp4"||e.mimeType==="video/webm"||e.contentType==="video",g2e=({attributes:e})=>e.mimeType==="audio/mp4"||e.mimeType==="audio/webm"||e.contentType==="audio",v2e=({attributes:e})=>e.mimeType==="text/vtt"||e.contentType==="text",y2e=(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})})},Ik=e=>e?Object.keys(e).reduce((t,n)=>{const s=e[n];return t.concat(s.playlists)},[]):[],b2e=({dashPlaylists:e,locations:t,contentSteering:n,sidxMapping:s={},previousManifest:r,eventStream:i})=>{if(!e.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:u}=e[0].attributes,c=ey(e.filter(m2e)).map(p2e),f=ey(e.filter(g2e)),h=ey(e.filter(v2e)),g=e.map(T=>T.attributes.captionServices).filter(Boolean),m={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:l2e(c,s)};u>=0&&(m.minimumUpdatePeriod=u*1e3),t&&(m.locations=t),n&&(m.contentSteering=n),o==="dynamic"&&(m.suggestedPresentationDelay=l),i&&i.length>0&&(m.eventStream=i);const p=m.playlists.length===0,y=f.length?d2e(f,s,p):null,v=h.length?f2e(h,s):null,b=c.concat(Ik(y),Ik(v)),S=b.map(({timelineStarts:T})=>T);return m.timelineStarts=M$(S),y2e(b,m.timelineStarts),y&&(m.mediaGroups.AUDIO.audio=y),v&&(m.mediaGroups.SUBTITLES.subs=v),g.length&&(m.mediaGroups["CLOSED-CAPTIONS"].cc=h2e(g)),r?o2e({oldManifest:r,newManifest:m}):m},_2e=(e,t,n)=>{const{NOW:s,clientOffset:r,availabilityStartTime:i,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e,u=(s+r)/1e3,c=i+o,h=u+l-c;return Math.ceil((h*a-t)/n)},L$=(e,t)=>{const{type:n,minimumUpdatePeriod:s=0,media:r="",sourceDuration:i,timescale:a=1,startNumber:o=1,periodStart:l}=e,u=[];let c=-1;for(let f=0;f<t.length;f++){const h=t[f],g=h.d,m=h.r||0,p=h.t||0;c<0&&(c=p),p&&p>c&&(c=p);let y;if(m<0){const S=f+1;S===t.length?n==="dynamic"&&s>0&&r.indexOf("$Number$")>0?y=_2e(e,c,g):y=(i*a-c)/g:y=(t[S].t-c)/g}else y=m+1;const v=o+u.length+y;let b=o+u.length;for(;b<v;)u.push({number:b,duration:g/a,time:c,timeline:l}),c+=g,b++}return u},S2e=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,w2e=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}`},Dk=(e,t)=>e.replace(S2e,w2e(t)),T2e=(e,t)=>!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?mS(e):L$(e,t),C2e=(e,t)=>{const n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:s={sourceURL:"",range:""}}=e,r=Uf({baseUrl:e.baseUrl,source:Dk(s.sourceURL,n),range:s.range});return T2e(e,t).map(a=>{n.Number=a.number,n.Time=a.time;const o=Dk(e.media||"",n),l=e.timescale||1,u=e.presentationTimeOffset||0,c=e.periodStart+(a.time-u)/l;return{uri:o,timeline:a.timeline,duration:a.duration,resolvedUri:pv(e.baseUrl||"",o),map:r,number:a.number,presentationTime:c}})},E2e=(e,t)=>{const{baseUrl:n,initialization:s={}}=e,r=Uf({baseUrl:n,source:s.sourceURL,range:s.range}),i=Uf({baseUrl:n,source:t.media,range:t.mediaRange});return i.map=r,i},x2e=(e,t)=>{const{duration:n,segmentUrls:s=[],periodStart:r}=e;if(!n&&!t||n&&t)throw new Error(cc.SEGMENT_TIME_UNSPECIFIED);const i=s.map(l=>E2e(e,l));let a;return n&&(a=mS(e)),t&&(a=L$(e,t)),a.map((l,u)=>{if(i[u]){const c=i[u],f=e.timescale||1,h=e.presentationTimeOffset||0;return c.timeline=l.timeline,c.duration=l.duration,c.number=l.number,c.presentationTime=r+(l.time-h)/f,c}}).filter(l=>l)},k2e=({attributes:e,segmentInfo:t})=>{let n,s;t.template?(s=C2e,n=fs(e,t.template)):t.base?(s=N$,n=fs(e,t.base)):t.list&&(s=x2e,n=fs(e,t.list));const r={attributes:e};if(!s)return r;const i=s(n,t.segmentTimeline);if(n.duration){const{duration:a,timescale:o=1}=n;n.duration=a/o}else i.length?n.duration=i.reduce((a,o)=>Math.max(a,Math.ceil(o.duration)),0):n.duration=0;return r.attributes=n,r.segments=i,t.base&&n.indexRange&&(r.sidx=i[0],r.segments=[]),r},A2e=e=>e.map(k2e),Bn=(e,t)=>R$(e.childNodes).filter(({tagName:n})=>n===t),wh=e=>e.textContent.trim(),I2e=e=>parseFloat(e.split("/").reduce((t,n)=>t/n)),nu=e=>{const o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!o)return 0;const[l,u,c,f,h,g]=o.slice(1);return parseFloat(l||0)*31536e3+parseFloat(u||0)*2592e3+parseFloat(c||0)*86400+parseFloat(f||0)*3600+parseFloat(h||0)*60+parseFloat(g||0)},D2e=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)),Ok={mediaPresentationDuration(e){return nu(e)},availabilityStartTime(e){return D2e(e)/1e3},minimumUpdatePeriod(e){return nu(e)},suggestedPresentationDelay(e){return nu(e)},type(e){return e},timeShiftBufferDepth(e){return nu(e)},start(e){return nu(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return I2e(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)?nu(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}},ns=e=>e&&e.attributes?R$(e.attributes).reduce((t,n)=>{const s=Ok[n.name]||Ok.DEFAULT;return t[n.name]=s(n.value),t},{}):{},O2e={"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","urn:mpeg:dash:mp4protection:2011":"mp4protection"},bv=(e,t)=>t.length?uc(e.map(function(n){return t.map(function(s){const r=wh(s),i=pv(n.baseUrl,r),a=fs(ns(s),{baseUrl:i});return i!==r&&!a.serviceLocation&&n.serviceLocation&&(a.serviceLocation=n.serviceLocation),a})})):e,yS=e=>{const t=Bn(e,"SegmentTemplate")[0],n=Bn(e,"SegmentList")[0],s=n&&Bn(n,"SegmentURL").map(f=>fs({tag:"SegmentURL"},ns(f))),r=Bn(e,"SegmentBase")[0],i=n||t,a=i&&Bn(i,"SegmentTimeline")[0],o=n||r||t,l=o&&Bn(o,"Initialization")[0],u=t&&ns(t);u&&l?u.initialization=l&&ns(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const c={template:u,segmentTimeline:a&&Bn(a,"S").map(f=>ns(f)),list:n&&fs(ns(n),{segmentUrls:s,initialization:ns(l)}),base:r&&fs(ns(r),{initialization:ns(l)})};return Object.keys(c).forEach(f=>{c[f]||delete c[f]}),c},P2e=(e,t,n)=>s=>{const r=Bn(s,"BaseURL"),i=bv(t,r),a=fs(e,ns(s)),o=yS(s);return i.map(l=>({segmentInfo:fs(n,o),attributes:fs(a,l)}))},$2e=e=>e.reduce((t,n)=>{const s=ns(n);s.schemeIdUri&&(s.schemeIdUri=s.schemeIdUri.toLowerCase());const r=O2e[s.schemeIdUri];if(r){t[r]={attributes:s};const i=Bn(n,"cenc:pssh")[0];if(i){const a=wh(i);t[r].pssh=a&&w1e(a)}}return t},{}),R2e=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(a=>{const[o,l]=a.split(":");o==="lang"?s.language=l:o==="er"?s.easyReader=Number(l):o==="war"?s.aspectRatio=Number(l):o==="3D"&&(s["3D"]=Number(l))})}else s.language=n;return s.channel&&(s.channel="SERVICE"+s.channel),s})},N2e=e=>uc(Bn(e.node,"EventStream").map(t=>{const n=ns(t),s=n.schemeIdUri;return Bn(t,"Event").map(r=>{const i=ns(r),a=i.presentationTime||0,o=n.timescale||1,l=i.duration||0,u=a/o+e.attributes.start;return{schemeIdUri:s,value:n.value,id:i.id,start:u,end:u+l/o,messageData:wh(r)||i.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),M2e=(e,t,n)=>s=>{const r=ns(s),i=bv(t,Bn(s,"BaseURL")),a=Bn(s,"Role")[0],o={role:ns(a)};let l=fs(e,r,o);const u=Bn(s,"Accessibility")[0],c=R2e(ns(u));c&&(l=fs(l,{captionServices:c}));const f=Bn(s,"Label")[0];if(f&&f.childNodes.length){const y=f.childNodes[0].nodeValue.trim();l=fs(l,{label:y})}const h=$2e(Bn(s,"ContentProtection"));Object.keys(h).length&&(l=fs(l,{contentProtection:h}));const g=yS(s),m=Bn(s,"Representation"),p=fs(n,g);return uc(m.map(P2e(l,i,p)))},L2e=(e,t)=>(n,s)=>{const r=bv(t,Bn(n.node,"BaseURL")),i=fs(e,{periodStart:n.attributes.start});typeof n.attributes.duration=="number"&&(i.periodDuration=n.attributes.duration);const a=Bn(n.node,"AdaptationSet"),o=yS(n.node);return uc(a.map(M2e(i,r,o)))},B2e=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const n=fs({serverURL:wh(e[0])},ns(e[0]));return n.queryBeforeStart=n.queryBeforeStart==="true",n},F2e=({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,V2e=(e,t={})=>{const{manifestUri:n="",NOW:s=Date.now(),clientOffset:r=0,eventHandler:i=function(){}}=t,a=Bn(e,"Period");if(!a.length)throw new Error(cc.INVALID_NUMBER_OF_PERIOD);const o=Bn(e,"Location"),l=ns(e),u=bv([{baseUrl:n}],Bn(e,"BaseURL")),c=Bn(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=s,l.clientOffset=r,o.length&&(l.locations=o.map(wh));const f=[];return a.forEach((h,g)=>{const m=ns(h),p=f[g-1];m.start=F2e({attributes:m,priorPeriodAttributes:p?p.attributes:null,mpdType:l.type}),f.push({node:h,attributes:m})}),{locations:l.locations,contentSteeringInfo:B2e(c,i),representationInfo:uc(f.map(L2e(l,u))),eventStream:uc(f.map(N2e))}},B$=e=>{if(e==="")throw new Error(cc.DASH_EMPTY_MANIFEST);const t=new X1e;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(cc.DASH_INVALID_XML);return s},U2e=e=>{const t=Bn(e,"UTCTiming")[0];if(!t)return null;const n=ns(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(cc.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},H2e=(e,t={})=>{const n=V2e(B$(e),t),s=A2e(n.representationInfo);return b2e({dashPlaylists:s,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})},z2e=e=>U2e(B$(e));var F$=Math.pow(2,32),j2e=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)*F$+t.getUint32(4)},q2e={getUint64:j2e,MAX_UINT32:F$},Pk=q2e.getUint64,W2e=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=Pk(e.subarray(s)),n.firstOffset=Pk(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},K2e=W2e;const G2e=ks(K2e);var Y2e=Ut([73,68,51]),X2e=function(t,n){n===void 0&&(n=0),t=Ut(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},Id=function e(t,n){return n===void 0&&(n=0),t=Ut(t),t.length-n<10||!Ln(t,Y2e,{offset:n})?n:(n+=X2e(t,n),e(t,n))},$k=function(t){return typeof t=="string"?s$(t):t},Q2e=function(t){return Array.isArray(t)?t.map(function(n){return $k(n)}):[$k(t)]},J2e=function e(t,n,s){s===void 0&&(s=!1),n=Q2e(n),t=Ut(t);var r=[];if(!n.length)return r;for(var i=0;i<t.length;){var a=(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])>>>0,o=t.subarray(i+4,i+8);if(a===0)break;var l=i+a;if(l>t.length){if(s)break;l=t.length}var u=t.subarray(i+8,l);Ln(o,n[0])&&(n.length===1?r.push(u):r.push.apply(r,e(u,n.slice(1),s))),i=l}return r},Sp={EBML:Ut([26,69,223,163]),DocType:Ut([66,130]),Segment:Ut([24,83,128,103]),SegmentInfo:Ut([21,73,169,102]),Tracks:Ut([22,84,174,107]),Track:Ut([174]),TrackNumber:Ut([215]),DefaultDuration:Ut([35,227,131]),TrackEntry:Ut([174]),TrackType:Ut([131]),FlagDefault:Ut([136]),CodecID:Ut([134]),CodecPrivate:Ut([99,162]),VideoTrack:Ut([224]),AudioTrack:Ut([225]),Cluster:Ut([31,67,182,117]),Timestamp:Ut([231]),TimestampScale:Ut([42,215,177]),BlockGroup:Ut([160]),BlockDuration:Ut([155]),Block:Ut([161]),SimpleBlock:Ut([163])},n_=[128,64,32,16,8,4,2,1],Z2e=function(t){for(var n=1,s=0;s<n_.length&&!(t&n_[s]);s++)n++;return n},Gm=function(t,n,s,r){s===void 0&&(s=!0),r===void 0&&(r=!1);var i=Z2e(t[n]),a=t.subarray(n,n+i);return s&&(a=Array.prototype.slice.call(t,n,n+i),a[0]^=n_[i-1]),{length:i,value:v1e(a,{signed:r}),bytes:a}},Rk=function e(t){return typeof t=="string"?t.match(/.{1,2}/g).map(function(n){return e(n)}):typeof t=="number"?y1e(t):t},eSe=function(t){return Array.isArray(t)?t.map(function(n){return Rk(n)}):[Rk(t)]},tSe=function e(t,n,s){if(s>=n.length)return n.length;var r=Gm(n,s,!1);if(Ln(t.bytes,r.bytes))return s;var i=Gm(n,s+r.length);return e(t,n,s+i.length+i.value+r.length)},Nk=function e(t,n){n=eSe(n),t=Ut(t);var s=[];if(!n.length)return s;for(var r=0;r<t.length;){var i=Gm(t,r,!1),a=Gm(t,r+i.length),o=r+i.length+a.length;a.value===127&&(a.value=tSe(i,t,o),a.value!==t.length&&(a.value-=o));var l=o+a.value>t.length?t.length:o+a.value,u=t.subarray(o,l);Ln(n[0],i.bytes)&&(n.length===1?s.push(u):s=s.concat(e(u,n.slice(1))));var c=i.length+a.length+u.length;r+=c}return s},nSe=Ut([0,0,0,1]),sSe=Ut([0,0,1]),rSe=Ut([0,0,3]),iSe=function(t){for(var n=[],s=1;s<t.length-2;)Ln(t.subarray(s,s+3),rSe)&&(n.push(s+2),s++),s++;if(n.length===0)return t;var r=t.length-n.length,i=new Uint8Array(r),a=0;for(s=0;s<r;a++,s++)a===n[0]&&(a++,n.shift()),i[s]=t[a];return i},V$=function(t,n,s,r){r===void 0&&(r=1/0),t=Ut(t),s=[].concat(s);for(var i=0,a,o=0;i<t.length&&(o<r||a);){var l=void 0;if(Ln(t.subarray(i),nSe)?l=4:Ln(t.subarray(i),sSe)&&(l=3),!l){i++;continue}if(o++,a)return iSe(t.subarray(a,i));var u=void 0;n==="h264"?u=t[i+l]&31:n==="h265"&&(u=t[i+l]>>1&63),s.indexOf(u)!==-1&&(a=i+l),i+=l+(n==="h264"?1:2)}return t.subarray(0,0)},aSe=function(t,n,s){return V$(t,"h264",n,s)},oSe=function(t,n,s){return V$(t,"h265",n,s)},Ls={webm:Ut([119,101,98,109]),matroska:Ut([109,97,116,114,111,115,107,97]),flac:Ut([102,76,97,67]),ogg:Ut([79,103,103,83]),ac3:Ut([11,119]),riff:Ut([82,73,70,70]),avi:Ut([65,86,73]),wav:Ut([87,65,86,69]),"3gp":Ut([102,116,121,112,51,103]),mp4:Ut([102,116,121,112]),fmp4:Ut([115,116,121,112]),mov:Ut([102,116,121,112,113,116]),moov:Ut([109,111,111,118]),moof:Ut([109,111,111,102])},dc={aac:function(t){var n=Id(t);return Ln(t,[255,16],{offset:n,mask:[255,22]})},mp3:function(t){var n=Id(t);return Ln(t,[255,2],{offset:n,mask:[255,6]})},webm:function(t){var n=Nk(t,[Sp.EBML,Sp.DocType])[0];return Ln(n,Ls.webm)},mkv:function(t){var n=Nk(t,[Sp.EBML,Sp.DocType])[0];return Ln(n,Ls.matroska)},mp4:function(t){if(dc["3gp"](t)||dc.mov(t))return!1;if(Ln(t,Ls.mp4,{offset:4})||Ln(t,Ls.fmp4,{offset:4})||Ln(t,Ls.moof,{offset:4})||Ln(t,Ls.moov,{offset:4}))return!0},mov:function(t){return Ln(t,Ls.mov,{offset:4})},"3gp":function(t){return Ln(t,Ls["3gp"],{offset:4})},ac3:function(t){var n=Id(t);return Ln(t,Ls.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=Id(t);return Ln(t,Ls.flac,{offset:n})},ogg:function(t){return Ln(t,Ls.ogg)},avi:function(t){return Ln(t,Ls.riff)&&Ln(t,Ls.avi,{offset:8})},wav:function(t){return Ln(t,Ls.riff)&&Ln(t,Ls.wav,{offset:8})},h264:function(t){return aSe(t,7,3).length},h265:function(t){return oSe(t,[32,33],3).length}},s_=Object.keys(dc).filter(function(e){return e!=="ts"&&e!=="h264"&&e!=="h265"}).concat(["ts","h264","h265"]);s_.forEach(function(e){var t=dc[e];dc[e]=function(n){return t(Ut(n))}});var lSe=dc,bS=function(t){t=Ut(t);for(var n=0;n<s_.length;n++){var s=s_[n];if(lSe[s](t))return s}return""},uSe=function(t){return J2e(t,["moof"]).length>0},_S=9e4,SS,wS,_v,TS,U$,H$,z$;SS=function(e){return e*_S};wS=function(e,t){return e*t};_v=function(e){return e/_S};TS=function(e,t){return e/t};U$=function(e,t){return SS(TS(e,t))};H$=function(e,t){return wS(_v(e),t)};z$=function(e,t,n){return _v(n?e:e-t)};var al={ONE_SECOND_IN_TS:_S,secondsToVideoTs:SS,secondsToAudioTs:wS,videoTsToSeconds:_v,audioTsToSeconds:TS,audioTsToVideoTs:U$,videoTsToAudioTs:H$,metadataTsToSeconds:z$};/**
* @license
* Video.js 8.16.1 <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 r_="8.16.1";const ua={},_o=function(e,t){return ua[e]=ua[e]||[],t&&(ua[e]=ua[e].concat(t)),ua[e]},cSe=function(e,t){_o(e,t)},j$=function(e,t){const n=_o(e).indexOf(t);return n<=-1?!1:(ua[e]=ua[e].slice(),ua[e].splice(n,1),!0)},dSe=function(e,t){_o(e,[].concat(t).map(n=>{const s=(...r)=>(j$(e,s),n(...r));return s}))},Ym={prefixed:!0},lm=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],Mk=lm[0];let Dd;for(let e=0;e<lm.length;e++)if(lm[e][1]in ht){Dd=lm[e];break}if(Dd){for(let e=0;e<Dd.length;e++)Ym[Mk[e]]=Dd[e];Ym.prefixed=Dd[0]!==Mk[0]}let Js=[];const fSe=(e,t,n)=>(s,r,i)=>{const a=t.levels[r],o=new RegExp(`^(${a})$`);let l=e;if(s!=="log"&&i.unshift(s.toUpperCase()+":"),n&&(l=`%c${e}`,i.unshift(n)),i.unshift(l+":"),Js){Js.push([].concat(i));const c=Js.length-1e3;Js.splice(0,c>0?c:0)}if(!he.console)return;let u=he.console[s];!u&&s==="debug"&&(u=he.console.info||he.console.log),!(!u||!a||!o.test(s))&&u[Array.isArray(i)?"apply":"call"](he.console,i)};function i_(e,t=":",n=""){let s="info",r;function i(...a){r("log",s,a)}return r=fSe(e,i,n),i.createLogger=(a,o,l)=>{const u=o!==void 0?o:t,c=l!==void 0?l:n,f=`${e} ${u} ${a}`;return i_(f,u,c)},i.createNewLogger=(a,o,l)=>i_(a,o,l),i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:s},i.level=a=>{if(typeof a=="string"){if(!i.levels.hasOwnProperty(a))throw new Error(`"${a}" in not a valid log level`);s=a}return s},i.history=()=>Js?[].concat(Js):[],i.history.filter=a=>(Js||[]).filter(o=>new RegExp(`.*${a}.*`).test(o[0])),i.history.clear=()=>{Js&&(Js.length=0)},i.history.disable=()=>{Js!==null&&(Js.length=0,Js=null)},i.history.enable=()=>{Js===null&&(Js=[])},i.error=(...a)=>r("error",s,a),i.warn=(...a)=>r("warn",s,a),i.debug=(...a)=>r("debug",s,a),i}const an=i_("VIDEOJS"),q$=an.createLogger,hSe=Object.prototype.toString,W$=function(e){return Wi(e)?Object.keys(e):[]};function Du(e,t){W$(e).forEach(n=>t(e[n],n))}function K$(e,t,n=0){return W$(e).reduce((s,r)=>t(s,e[r],r),n)}function Wi(e){return!!e&&typeof e=="object"}function fc(e){return Wi(e)&&hSe.call(e)==="[object Object]"&&e.constructor===Object}function kn(...e){const t={};return e.forEach(n=>{n&&Du(n,(s,r)=>{if(!fc(s)){t[r]=s;return}fc(t[r])||(t[r]={}),t[r]=kn(t[r],s)})}),t}function G$(e={}){const t=[];for(const n in e)if(e.hasOwnProperty(n)){const s=e[n];t.push(s)}return t}function Sv(e,t,n,s=!0){const r=a=>Object.defineProperty(e,t,{value:a,enumerable:!0,writable:!0}),i={configurable:!0,enumerable:!0,get(){const a=n();return r(a),a}};return s&&(i.set=r),Object.defineProperty(e,t,i)}var pSe=Object.freeze({__proto__:null,each:Du,reduce:K$,isObject:Wi,isPlain:fc,merge:kn,values:G$,defineLazyProperty:Sv});let CS=!1,Y$=null,Ki=!1,X$,Q$=!1,Ou=!1,Pu=!1,Gi=!1,ES=null,wv=null;const mSe=!!(he.cast&&he.cast.framework&&he.cast.framework.CastReceiverContext);let J$=null,Xm=!1,Tv=!1,Qm=!1,Cv=!1,Jm=!1,Zm=!1,a_=!1;const Hf=!!(Nc()&&("ontouchstart"in he||he.navigator.maxTouchPoints||he.DocumentTouch&&he.document instanceof he.DocumentTouch)),za=he.navigator&&he.navigator.userAgentData;za&&za.platform&&za.brands&&(Ki=za.platform==="Android",Ou=!!za.brands.find(e=>e.brand==="Microsoft Edge"),Pu=!!za.brands.find(e=>e.brand==="Chromium"),Gi=!Ou&&Pu,ES=wv=(za.brands.find(e=>e.brand==="Chromium")||{}).version||null,Tv=za.platform==="Windows");if(!Pu){const e=he.navigator&&he.navigator.userAgent||"";CS=/iPod/i.test(e),Y$=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),Ki=/Android/i.test(e),X$=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}(),Q$=/Firefox/i.test(e),Ou=/Edg/i.test(e),Pu=/Chrome/i.test(e)||/CriOS/i.test(e),Gi=!Ou&&Pu,ES=wv=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),J$=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}(),Jm=/Tizen/i.test(e),Zm=/Web0S/i.test(e),a_=Jm||Zm,Xm=/Safari/i.test(e)&&!Gi&&!Ki&&!Ou&&!a_,Tv=/Windows/i.test(e),Qm=/iPad/i.test(e)||Xm&&Hf&&!/iPhone/i.test(e),Cv=/iPhone/i.test(e)&&!Qm}const js=Cv||Qm||CS,Ev=(Xm||js)&&!Gi;var Z$=Object.freeze({__proto__:null,get IS_IPOD(){return CS},get IOS_VERSION(){return Y$},get IS_ANDROID(){return Ki},get ANDROID_VERSION(){return X$},get IS_FIREFOX(){return Q$},get IS_EDGE(){return Ou},get IS_CHROMIUM(){return Pu},get IS_CHROME(){return Gi},get CHROMIUM_VERSION(){return ES},get CHROME_VERSION(){return wv},IS_CHROMECAST_RECEIVER:mSe,get IE_VERSION(){return J$},get IS_SAFARI(){return Xm},get IS_WINDOWS(){return Tv},get IS_IPAD(){return Qm},get IS_IPHONE(){return Cv},get IS_TIZEN(){return Jm},get IS_WEBOS(){return Zm},get IS_SMART_TV(){return a_},TOUCH_ENABLED:Hf,IS_IOS:js,IS_ANY_SAFARI:Ev});function Lk(e){return typeof e=="string"&&!!e.trim()}function gSe(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Nc(){return ht===he.document}function Mc(e){return Wi(e)&&e.nodeType===1}function eR(){try{return he.parent!==he.self}catch{return!0}}function tR(e){return function(t,n){if(!Lk(t))return ht[e](null);Lk(n)&&(n=ht.querySelector(n));const s=Mc(n)?n:ht;return s[e]&&s[e](t)}}function Kt(e="div",t={},n={},s){const r=ht.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(i){const a=t[i];i==="textContent"?$o(r,a):(r[i]!==a||i==="tabIndex")&&(r[i]=a)}),Object.getOwnPropertyNames(n).forEach(function(i){r.setAttribute(i,n[i])}),s&&xS(r,s),r}function $o(e,t){return typeof e.textContent>"u"?e.innerText=t:e.textContent=t,e}function o_(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Jd(e,t){return gSe(t),e.classList.contains(t)}function ml(e,...t){return e.classList.add(...t.reduce((n,s)=>n.concat(s.split(/\s+/)),[])),e}function xv(e,...t){return e?(e.classList.remove(...t.reduce((n,s)=>n.concat(s.split(/\s+/)),[])),e):(an.warn("removeClass was called with an element that doesn't exist"),null)}function nR(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 sR(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 Ja(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 a=s[r].value;n.includes(i)&&(a=a!==null),t[i]=a}}return t}function rR(e,t){return e.getAttribute(t)}function hc(e,t,n){e.setAttribute(t,n)}function kv(e,t){e.removeAttribute(t)}function iR(){ht.body.focus(),ht.onselectstart=function(){return!1}}function aR(){ht.onselectstart=function(){return!0}}function pc(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(mc(e,"height"))),n.width||(n.width=parseFloat(mc(e,"width"))),n}}function zf(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!==ht[Ym.fullscreenElement];)s+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:s,top:r,width:t,height:n}}function Av(e,t){const n={x:0,y:0};if(js){let c=e;for(;c&&c.nodeName.toLowerCase()!=="html";){const f=mc(c,"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]}if(c.assignedSlot&&c.assignedSlot.parentElement&&he.WebKitCSSMatrix){const h=he.getComputedStyle(c.assignedSlot.parentElement).transform,g=new he.WebKitCSSMatrix(h);n.x+=g.m41,n.y+=g.m42}c=c.parentNode||c.host}}const s={},r=zf(t.target),i=zf(e),a=i.width,o=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,js&&(u-=n.x,l-=n.y)),s.y=1-Math.max(0,Math.min(1,l/o)),s.x=Math.max(0,Math.min(1,u/a)),s}function oR(e){return Wi(e)&&e.nodeType===3}function Iv(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function lR(e){return typeof e=="function"&&(e=e()),(Array.isArray(e)?e:[e]).map(t=>{if(typeof t=="function"&&(t=t()),Mc(t)||oR(t))return t;if(typeof t=="string"&&/\S/.test(t))return ht.createTextNode(t)}).filter(t=>t)}function xS(e,t){return lR(t).forEach(n=>e.appendChild(n)),e}function uR(e,t){return xS(Iv(e),t)}function jf(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||e.type==="mousedown"&&e.button===0&&e.buttons===0?!0:!(e.button!==0||e.buttons!==1)}const So=tR("querySelector"),cR=tR("querySelectorAll");function mc(e,t){if(!e||!t)return"";if(typeof he.getComputedStyle=="function"){let n;try{n=he.getComputedStyle(e)}catch{return""}return n?n.getPropertyValue(t)||n[t]:""}return""}function dR(e){[...ht.styleSheets].forEach(t=>{try{const n=[...t.cssRules].map(r=>r.cssText).join(""),s=ht.createElement("style");s.textContent=n,e.document.head.appendChild(s)}catch{const s=ht.createElement("link");s.rel="stylesheet",s.type=t.type,s.media=t.media.mediaText,s.href=t.href,e.document.head.appendChild(s)}})}var fR=Object.freeze({__proto__:null,isReal:Nc,isEl:Mc,isInFrame:eR,createEl:Kt,textContent:$o,prependTo:o_,hasClass:Jd,addClass:ml,removeClass:xv,toggleClass:nR,setAttributes:sR,getAttributes:Ja,getAttribute:rR,setAttribute:hc,removeAttribute:kv,blockTextSelection:iR,unblockTextSelection:aR,getBoundingClientRect:pc,findPosition:zf,getPointerPosition:Av,isTextNode:oR,emptyEl:Iv,normalizeContent:lR,appendContent:xS,insertContent:uR,isSingleLeftClick:jf,$:So,$$:cR,computedStyle:mc,copyStyleSheetsToWindow:dR});let hR=!1,l_;const vSe=function(){if(l_.options.autoSetup===!1)return;const e=Array.prototype.slice.call(ht.getElementsByTagName("video")),t=Array.prototype.slice.call(ht.getElementsByTagName("audio")),n=Array.prototype.slice.call(ht.getElementsByTagName("video-js")),s=e.concat(t,n);if(s&&s.length>0)for(let r=0,i=s.length;r<i;r++){const a=s[r];if(a&&a.getAttribute)a.player===void 0&&a.getAttribute("data-setup")!==null&&l_(a);else{u_(1);break}}else hR||u_(1)};function u_(e,t){Nc()&&(t&&(l_=t),he.setTimeout(vSe,e))}function c_(){hR=!0,he.removeEventListener("load",c_)}Nc()&&(ht.readyState==="complete"?c_():he.addEventListener("load",c_));const pR=function(e){const t=ht.createElement("style");return t.className=e,t},mR=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var Us=new WeakMap;const ySe=3;let bSe=ySe;function Qr(){return bSe++}function Bk(e,t){if(!Us.has(e))return;const n=Us.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&&Us.delete(e)}function kS(e,t,n,s){n.forEach(function(r){e(t,r,s)})}function Dv(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||he.event;e={};const r=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(const i in s)r.includes(i)||i==="returnValue"&&s.preventDefault||(e[i]=s[i]);if(e.target||(e.target=e.srcElement||ht),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 i=ht.documentElement,a=ht.body;e.pageX=e.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),e.pageY=e.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.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 wp;const _Se=function(){if(typeof wp!="boolean"){wp=!1;try{const e=Object.defineProperty({},"passive",{get(){wp=!0}});he.addEventListener("test",null,e),he.removeEventListener("test",null,e)}catch{}}return wp},SSe=["touchstart","touchmove"];function kr(e,t,n){if(Array.isArray(t))return kS(kr,e,t,n);Us.has(e)||Us.set(e,{});const s=Us.get(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),n.guid||(n.guid=Qr()),s.handlers[t].push(n),s.dispatcher||(s.disabled=!1,s.dispatcher=function(r,i){if(s.disabled)return;r=Dv(r);const a=s.handlers[r.type];if(a){const o=a.slice(0);for(let l=0,u=o.length;l<u&&!r.isImmediatePropagationStopped();l++)try{o[l].call(e,r,i)}catch(c){an.error(c)}}}),s.handlers[t].length===1)if(e.addEventListener){let r=!1;_Se()&&SSe.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,s.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function Ps(e,t,n){if(!Us.has(e))return;const s=Us.get(e);if(!s.handlers)return;if(Array.isArray(t))return kS(Ps,e,t,n);const r=function(a,o){s.handlers[o]=[],Bk(a,o)};if(t===void 0){for(const a in s.handlers)Object.prototype.hasOwnProperty.call(s.handlers||{},a)&&r(e,a);return}const i=s.handlers[t];if(i){if(!n){r(e,t);return}if(n.guid)for(let a=0;a<i.length;a++)i[a].guid===n.guid&&i.splice(a--,1);Bk(e,t)}}function Lc(e,t,n){const s=Us.has(e)?Us.get(e):{},r=e.parentNode||e.ownerDocument;if(typeof t=="string"?t={type:t,target:e}:t.target||(t.target=e),t=Dv(t),s.dispatcher&&s.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&t.bubbles===!0)Lc.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){Us.has(t.target)||Us.set(t.target,{});const i=Us.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 Ov(e,t,n){if(Array.isArray(t))return kS(Ov,e,t,n);const s=function(){Ps(e,t,s),n.apply(this,arguments)};s.guid=n.guid=n.guid||Qr(),kr(e,t,s)}function AS(e,t,n){const s=function(){Ps(e,t,s),n.apply(this,arguments)};s.guid=n.guid=n.guid||Qr(),kr(e,t,s)}var wSe=Object.freeze({__proto__:null,fixEvent:Dv,on:kr,off:Ps,trigger:Lc,one:Ov,any:AS});const Jr=30,An=function(e,t,n){t.guid||(t.guid=Qr());const s=t.bind(e);return s.guid=n?n+"_"+t.guid:t.guid,s},Yi=function(e,t){let n=he.performance.now();return function(...r){const i=he.performance.now();i-n>=t&&(e(...r),n=i)}},gR=function(e,t,n,s=he){let r;const i=()=>{s.clearTimeout(r),r=null},a=function(){const o=this,l=arguments;let u=function(){r=null,u=null,n||e.apply(o,l)};!r&&n&&e.apply(o,l),s.clearTimeout(r),r=s.setTimeout(u,t)};return a.cancel=i,a};var TSe=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Jr,bind_:An,throttle:Yi,debounce:gR});let yd;class Ar{on(t,n){const s=this.addEventListener;this.addEventListener=()=>{},kr(this,t,n),this.addEventListener=s}off(t,n){Ps(this,t,n)}one(t,n){const s=this.addEventListener;this.addEventListener=()=>{},Ov(this,t,n),this.addEventListener=s}any(t,n){const s=this.addEventListener;this.addEventListener=()=>{},AS(this,t,n),this.addEventListener=s}trigger(t){const n=t.type||t;typeof t=="string"&&(t={type:n}),t=Dv(t),this.allowedEvents_[n]&&this["on"+n]&&this["on"+n](t),Lc(this,t)}queueTrigger(t){yd||(yd=new Map);const n=t.type||t;let s=yd.get(this);s||(s=new Map,yd.set(this,s));const r=s.get(n);s.delete(n),he.clearTimeout(r);const i=he.setTimeout(()=>{s.delete(n),s.size===0&&(s=null,yd.delete(this)),this.trigger(t)},0);s.set(n,i)}}Ar.prototype.allowedEvents_={};Ar.prototype.addEventListener=Ar.prototype.on;Ar.prototype.removeEventListener=Ar.prototype.off;Ar.prototype.dispatchEvent=Ar.prototype.trigger;const Pv=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,pa=e=>e instanceof Ar||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>typeof e[t]=="function"),CSe=(e,t)=>{pa(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},d_=e=>typeof e=="string"&&/\S/.test(e)||Array.isArray(e)&&!!e.length,eg=(e,t,n)=>{if(!e||!e.nodeName&&!pa(e))throw new Error(`Invalid target for ${Pv(t)}#${n}; must be a DOM node or evented object.`)},vR=(e,t,n)=>{if(!d_(e))throw new Error(`Invalid event type for ${Pv(t)}#${n}; must be a non-empty string or array.`)},yR=(e,t,n)=>{if(typeof e!="function")throw new Error(`Invalid listener for ${Pv(t)}#${n}; must be a function.`)},ty=(e,t,n)=>{const s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let r,i,a;return s?(r=e.eventBusEl_,t.length>=3&&t.shift(),[i,a]=t):[r,i,a]=t,eg(r,e,n),vR(i,e,n),yR(a,e,n),a=An(e,a),{isTargetingSelf:s,target:r,type:i,listener:a}},Wo=(e,t,n,s)=>{eg(e,e,t),e.nodeName?wSe[t](e,n,s):e[t](n,s)},ESe={on(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=ty(this,e,"on");if(Wo(n,"on",s,r),!t){const i=()=>this.off(n,s,r);i.guid=r.guid;const a=()=>this.off("dispose",i);a.guid=r.guid,Wo(this,"on","dispose",i),Wo(n,"on","dispose",a)}},one(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=ty(this,e,"one");if(t)Wo(n,"one",s,r);else{const i=(...a)=>{this.off(n,s,i),r.apply(null,a)};i.guid=r.guid,Wo(n,"one",s,i)}},any(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=ty(this,e,"any");if(t)Wo(n,"any",s,r);else{const i=(...a)=>{this.off(n,s,i),r.apply(null,a)};i.guid=r.guid,Wo(n,"any",s,i)}},off(e,t,n){if(!e||d_(e))Ps(this.eventBusEl_,e,t);else{const s=e,r=t;eg(s,this,"off"),vR(r,this,"off"),yR(n,this,"off"),n=An(this,n),this.off("dispose",n),s.nodeName?(Ps(s,r,n),Ps(s,"dispose",n)):pa(s)&&(s.off(r,n),s.off("dispose",n))}},trigger(e,t){eg(this.eventBusEl_,this,"trigger");const n=e&&typeof e!="string"?e.type:e;if(!d_(n))throw new Error(`Invalid event type for ${Pv(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return Lc(this.eventBusEl_,e,t)}};function IS(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_=Kt("span",{className:"vjs-event-bus"});return Object.assign(e,ESe),e.eventedCallbacks&&e.eventedCallbacks.forEach(s=>{s()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(s){s&&Us.has(s)&&Us.delete(s)}),he.setTimeout(()=>{e.eventBusEl_=null},0)}),e}const xSe={state:{},setState(e){typeof e=="function"&&(e=e());let t;return Du(e,(n,s)=>{this.state[s]!==n&&(t=t||{},t[s]={from:this.state[s],to:n}),this.state[s]=n}),t&&pa(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function bR(e,t){return Object.assign(e,xSe),e.state=Object.assign({},e.state,t),typeof e.handleStateChanged=="function"&&pa(e)&&e.on("statechanged",e.handleStateChanged),e}const Zd=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toLowerCase())},jn=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toUpperCase())},_R=function(e,t){return jn(e)===jn(t)};var kSe=Object.freeze({__proto__:null,toLowerCase:Zd,toTitleCase:jn,titleCaseEquals:_R});class Ye{constructor(t,n,s){if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=kn({},this.options_),n=this.options_=kn(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_${Qr()}`}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)),["on","off","one","any","trigger"].forEach(r=>{this[r]=void 0}),n.evented!==!1&&(IS(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),bR(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()}on(t,n){}off(t,n){}one(t,n){}any(t,n){}trigger(t,n){}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_=kn(this.options_,t),this.options_):this.options_}el(){return this.el_}createEl(t,n,s){return Kt(t,n,s)}localize(t,n,s=t){const r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),a=i&&i[r],o=r&&r.split("-")[0],l=i&&i[o];let u=s;return a&&a[t]?u=a[t]:l&&l[t]&&(u=l[t]),n&&(u=u.replace(/\{(\d+)\}/g,function(c,f){const h=n[f-1];let g=h;return typeof h>"u"&&(g=c),g})),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}setIcon(t,n=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const s="http://www.w3.org/2000/svg",r=Kt("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),i=ht.createElementNS(s,"svg");i.setAttributeNS(null,"viewBox","0 0 512 512");const a=ht.createElementNS(s,"use");return i.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${t}`),r.appendChild(i),this.iconIsSet_?n.replaceChild(r,n.querySelector(".vjs-icon-placeholder")):n.appendChild(r),this.iconIsSet_=!0,r}addChild(t,n={},s=this.children_.length){let r,i;if(typeof t=="string"){i=jn(t);const a=n.componentClass||i;n.name=i;const o=Ye.getComponent(a);if(!o)throw new Error(`Component ${a} does not exist`);if(typeof o!="function")return null;r=new o(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&&jn(r.name()),i&&(this.childNameIndex_[i]=r,this.childNameIndex_[Zd(i)]=r),typeof r.el=="function"&&r.el()){let a=null;this.children_[s+1]&&(this.children_[s+1].el_?a=this.children_[s+1].el_:Mc(this.children_[s+1])&&(a=this.children_[s+1])),this.contentEl().insertBefore(r.el(),a)}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_[jn(t.name())]=null,this.childNameIndex_[Zd(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=a=>{const o=a.name;let l=a.opts;if(n[o]!==void 0&&(l=n[o]),l===!1)return;l===!0&&(l={}),l.playerOptions=this.options_.playerOptions;const u=this.addChild(o,l);u&&(this[o]=u)};let r;const i=Ye.getComponent("Tech");Array.isArray(t)?r=t:r=Object.keys(t),r.concat(Object.keys(this.options_).filter(function(a){return!r.some(function(o){return typeof o=="string"?a===o:a===o.name})})).map(a=>{let o,l;return typeof a=="string"?(o=a,l=t[o]||this.options_[o]||{}):(o=a.name,l=a),{name:o,opts:l}}).filter(a=>{const o=Ye.getComponent(a.opts.componentClass||jn(a.name));return o&&!i.isTech(o)}).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 So(t,n||this.contentEl())}$$(t,n){return cR(t,n||this.contentEl())}hasClass(t){return Jd(this.el_,t)}addClass(...t){ml(this.el_,...t)}removeClass(...t){xv(this.el_,...t)}toggleClass(t,n){nR(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 rR(this.el_,t)}setAttribute(t,n){hc(this.el_,t,n)}removeAttribute(t){kv(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"+jn(t)],10)}currentDimension(t){let n=0;if(t!=="width"&&t!=="height")throw new Error("currentDimension only accepts width or height value");if(n=mc(this.el_,t),n=parseFloat(n),n===0||isNaN(n)){const s=`offset${jn(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")}getPositions(){const t=this.el_.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left},s={x:t.left+t.width/2,y:t.top+t.height/2,width:0,height:0,top:t.top+t.height/2,right:t.left+t.width/2,bottom:t.top+t.height/2,left:t.left+t.width/2};return{boundingClientRect:n,center:s}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(t){this.player_&&(t.key!=="Tab"&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)&&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(o){o.touches.length===1&&(n={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},t=he.performance.now(),i=!0)}),this.on("touchmove",function(o){if(o.touches.length>1)i=!1;else if(n){const l=o.touches[0].pageX-n.pageX,u=o.touches[0].pageY-n.pageY;Math.sqrt(l*l+u*u)>s&&(i=!1)}});const a=function(){i=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(o){n=null,i===!0&&he.performance.now()-t<r&&(o.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const t=An(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=An(this,t),this.clearTimersOnDispose_(),s=he.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),he.clearTimeout(t)),t}setInterval(t,n){t=An(this,t),this.clearTimersOnDispose_();const s=he.setInterval(t,n);return this.setIntervalIds_.add(s),s}clearInterval(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),he.clearInterval(t)),t}requestAnimationFrame(t){this.clearTimersOnDispose_();var n;return t=An(this,t),n=he.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=An(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),he.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}))}getIsDisabled(){return!!this.el_.disabled}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(t){return(t||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(t){function n(i){const a=he.getComputedStyle(i,null),o=a.getPropertyValue("visibility");return a.getPropertyValue("display")!=="none"&&!["hidden","collapse"].includes(o)}function s(i){return!(!n(i.parentElement)||!n(i)||i.style.opacity==="0"||he.getComputedStyle(i).height==="0px"||he.getComputedStyle(i).width==="0px")}function r(i){if(i.offsetWidth+i.offsetHeight+i.getBoundingClientRect().height+i.getBoundingClientRect().width===0)return!1;const a={x:i.getBoundingClientRect().left+i.offsetWidth/2,y:i.getBoundingClientRect().top+i.offsetHeight/2};if(a.x<0||a.x>(ht.documentElement.clientWidth||he.innerWidth)||a.y<0||a.y>(ht.documentElement.clientHeight||he.innerHeight))return!1;let o=ht.elementFromPoint(a.x,a.y);for(;o;){if(o===i)return!0;if(o.parentNode)o=o.parentNode;else return!1}}return t||(t=this.el()),!!(r(t)&&s(t)&&(!t.parentElement||t.tabIndex>=0))}static registerComponent(t,n){if(typeof t!="string"||!t)throw new Error(`Illegal component name, "${t}"; must be a non-empty string.`);const s=Ye.getComponent("Tech"),r=s&&s.isTech(n),i=Ye===n||Ye.prototype.isPrototypeOf(n.prototype);if(r||!i){let o;throw r?o="techs must be registered using Tech.registerTech()":o="must be a Component subclass",new Error(`Illegal component, "${t}"; ${o}.`)}t=jn(t),Ye.components_||(Ye.components_={});const a=Ye.getComponent("Player");if(t==="Player"&&a&&a.players){const o=a.players,l=Object.keys(o);if(o&&l.length>0&&l.map(u=>o[u]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return Ye.components_[t]=n,Ye.components_[Zd(t)]=n,n}static getComponent(t){if(!(!t||!Ye.components_))return Ye.components_[t]}}Ye.registerComponent("Component",Ye);function ASe(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 Fk(e,t,n,s){return ASe(e,s,n.length-1),n[s][t]}function ny(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:Fk.bind(null,"start",0,e),end:Fk.bind(null,"end",1,e)},he.Symbol&&he.Symbol.iterator&&(t[he.Symbol.iterator]=()=>(e||[]).values()),t}function fi(e,t){return Array.isArray(e)?ny(e):e===void 0||t===void 0?ny():ny([[e,t]])}const SR=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),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=s=n="-"),r=r>0||a>0?r+":":"",s=((r||i>=10)&&s<10?"0"+s:s)+":",n=n<10?"0"+n:n,r+s+n};let DS=SR;function wR(e){DS=e}function TR(){DS=SR}function Dl(e,t=e){return DS(e,t)}var ISe=Object.freeze({__proto__:null,createTimeRanges:fi,createTimeRange:fi,setFormatTime:wR,resetFormatTime:TR,formatTime:Dl});function CR(e,t){let n=0,s,r;if(!t)return 0;(!e||!e.length)&&(e=fi(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 zn(e){if(e instanceof zn)return e;typeof e=="number"?this.code=e:typeof e=="string"?this.message=e:Wi(e)&&(typeof e.code=="number"&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=zn.defaultMessages[this.code]||"")}zn.prototype.code=0;zn.prototype.message="";zn.prototype.status=null;zn.prototype.metadata=null;zn.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];zn.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."};zn.MEDIA_ERR_CUSTOM=0;zn.prototype.MEDIA_ERR_CUSTOM=0;zn.MEDIA_ERR_ABORTED=1;zn.prototype.MEDIA_ERR_ABORTED=1;zn.MEDIA_ERR_NETWORK=2;zn.prototype.MEDIA_ERR_NETWORK=2;zn.MEDIA_ERR_DECODE=3;zn.prototype.MEDIA_ERR_DECODE=3;zn.MEDIA_ERR_SRC_NOT_SUPPORTED=4;zn.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4;zn.MEDIA_ERR_ENCRYPTED=5;zn.prototype.MEDIA_ERR_ENCRYPTED=5;function ef(e){return e!=null&&typeof e.then=="function"}function $i(e){ef(e)&&e.then(null,t=>{})}const f_=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}})})},DSe=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=f_(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(f_))},OSe=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 Vk={textTracksToJson:DSe,jsonToTextTracks:OSe,trackToJson_:f_};const sy="vjs-modal-dialog";class Bc extends Ye{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_=Kt("div",{className:`${sy}-content`},{role:"document"}),this.descEl_=Kt("p",{className:`${sy}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),$o(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","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${sy} 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_){this.options_.fillAlways&&this.fill();return}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({type:"modalclose",bubbles:!0}),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(),uR(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"),Iv(this.contentEl()),this.trigger("modalempty")}content(t){return typeof t<"u"&&(this.content_=t),this.content_}conditionalFocus_(){const t=ht.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(this.trigger({type:"modalKeydown",originalEvent:t,target:this,bubbles:!0}),t.stopPropagation(),t.key==="Escape"&&this.closeable()){t.preventDefault(),this.close();return}if(t.key!=="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}ht.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 he.HTMLAnchorElement||n instanceof he.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof he.HTMLInputElement||n instanceof he.HTMLSelectElement||n instanceof he.HTMLTextAreaElement||n instanceof he.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof he.HTMLIFrameElement||n instanceof he.HTMLObjectElement||n instanceof he.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable"))}}Bc.prototype.options_={pauseOnOpen:!0,temporary:!0};Ye.registerComponent("ModalDialog",Bc);class gc extends Ar{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})},pa(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}}gc.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const e in gc.prototype.allowedEvents_)gc.prototype["on"+e]=null;const ry=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 PSe extends gc{constructor(t=[]){for(let n=t.length-1;n>=0;n--)if(t[n].enabled){ry(t,t[n]);break}super(t),this.changing_=!1}addTrack(t){t.enabled&&ry(this,t),super.addTrack(t),t.addEventListener&&(t.enabledChange_=()=>{this.changing_||(this.changing_=!0,ry(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 iy=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 $Se extends gc{constructor(t=[]){for(let n=t.length-1;n>=0;n--)if(t[n].selected){iy(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&&iy(this,t),super.addTrack(t),t.addEventListener&&(t.selectedChange_=()=>{this.changing_||(this.changing_=!0,iy(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 ER extends gc{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 RSe{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 tg{constructor(t){tg.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(a){""+a in this||Object.defineProperty(this,""+a,{get(){return this.cues_[a]}})};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 NSe={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},MSe={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},LSe={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Uk={disabled:"disabled",hidden:"hidden",showing:"showing"};class OS extends Ar{constructor(t={}){super();const n={id:t.id||"vjs_track_"+Qr(),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 PS=function(e){return new URL(e,ht.baseURI)},xR=function(e){return new URL(e,ht.baseURI).href},$S=function(e){if(typeof e=="string"){const n=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(n)return n.pop().toLowerCase()}return""},$v=function(e,t=he.location){return PS(e).origin!==t.origin};var BSe=Object.freeze({__proto__:null,parseUrl:PS,getAbsoluteURL:xR,getFileExtension:$S,isCrossOrigin:$v});const Hk=function(e,t){const n=new he.WebVTT.Parser(he,he.vttjs,he.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&&(he.console&&he.console.groupCollapsed&&he.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),s.forEach(r=>an.error(r)),he.console&&he.console.groupEnd&&he.console.groupEnd()),n.flush()},zk=function(e,t){const n={uri:e},s=$v(e);s&&(n.cors=s);const r=t.tech_.crossOrigin()==="use-credentials";r&&(n.withCredentials=r),G8(n,An(this,function(i,a,o){if(i)return an.error(i,a);t.loaded_=!0,typeof he.WebVTT!="function"?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],l=>{if(l.type==="vttjserror"){an.error(`vttjs failed to load, stopping trying to process ${t.src}`);return}return Hk(o,t)}):Hk(o,t)}))};class Th extends OS{constructor(t={}){if(!t.tech)throw new Error("A tech was not provided.");const n=kn(t,{kind:LSe[t.kind]||"subtitles",language:t.language||t.srclang||""});let s=Uk[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 tg(this.cues_),a=new tg(this.activeCues_);let o=!1;this.timeupdateHandler=An(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,o&&(this.trigger("cuechange"),o=!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){Uk[u]&&s!==u&&(s=u,!this.preload_&&s!=="disabled"&&this.cues.length===0&&zk(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 a;const u=this.tech_.currentTime(),c=[];for(let f=0,h=this.cues.length;f<h;f++){const g=this.cues[f];g.startTime<=u&&g.endTime>=u&&c.push(g)}if(o=!1,c.length!==this.activeCues_.length)o=!0;else for(let f=0;f<c.length;f++)this.activeCues_.indexOf(c[f])===-1&&(o=!0);return this.activeCues_=c,a.setCues_(this.activeCues_),a},set(){}}}),n.src?(this.src=n.src,this.preload_||(this.loaded_=!0),(this.preload_||n.kind!=="subtitles"&&n.kind!=="captions")&&zk(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(!("getCueAsHTML"in n)){n=new he.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}}}}Th.prototype.allowedEvents_={cuechange:"cuechange"};class kR extends OS{constructor(t={}){const n=kn(t,{kind:MSe[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 AR extends OS{constructor(t={}){const n=kn(t,{kind:NSe[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 Ca extends Ar{constructor(t={}){super();let n;const s=new Th(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=Ca.NONE,s.addEventListener("loadeddata",()=>{n=Ca.LOADED,this.trigger({type:"load",target:this})})}}Ca.prototype.allowedEvents_={load:"load"};Ca.NONE=0;Ca.LOADING=1;Ca.LOADED=2;Ca.ERROR=3;const jr={audio:{ListClass:PSe,TrackClass:kR,capitalName:"Audio"},video:{ListClass:$Se,TrackClass:AR,capitalName:"Video"},text:{ListClass:ER,TrackClass:Th,capitalName:"Text"}};Object.keys(jr).forEach(function(e){jr[e].getterName=`${e}Tracks`,jr[e].privateName=`${e}Tracks_`});const vc={remoteText:{ListClass:ER,TrackClass:Th,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:RSe,TrackClass:Ca,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Fs=Object.assign({},jr,vc);vc.names=Object.keys(vc);jr.names=Object.keys(jr);Fs.names=[].concat(vc.names).concat(jr.names);function FSe(e,t,n,s,r={}){const i=e.textTracks();r.kind=t,n&&(r.label=n),s&&(r.language=s),r.tech=e;const a=new Fs.text.TrackClass(r);return i.addTrack(a),a}class Yt extends Ye{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}),Fs.names.forEach(s=>{const r=Fs[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 Fs.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(An(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 fi(0,0)}bufferedPercent(){return CR(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(jr.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 zn(t),this.trigger("error")),this.error_}played(){return this.hasStarted_?fi(0,0):fi()}play(){}setScrubbing(t){}scrubbing(){}setCurrentTime(t){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){jr.names.forEach(t=>{const n=jr[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(!he.WebVTT)if(ht.body.contains(this.el())){if(!this.options_["vtt.js"]&&fc(ak)&&Object.keys(ak).length>0){this.trigger("vttjsloaded");return}const t=ht.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}),he.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const t=this.textTracks(),n=this.remoteTextTracks(),s=o=>t.addTrack(o.track),r=o=>t.removeTrack(o.track);n.on("addtrack",s),n.on("removetrack",r),this.addWebVttScript_();const i=()=>this.trigger("texttrackchange"),a=()=>{i();for(let o=0;o<t.length;o++){const l=t[o];l.removeEventListener("cuechange",i),l.mode==="showing"&&l.addEventListener("cuechange",i)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",s),n.off("removetrack",r),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(let o=0;o<t.length;o++)t[o].removeEventListener("cuechange",i)})}addTextTrack(t,n,s){if(!t)throw new Error("TextTrack kind is required but was not provided");return FSe(this,t,n,s)}createRemoteTextTrack(t){const n=kn(t,{tech:this});return new vc.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=Qr();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(t){}overrideNativeVideoTracks(t){}canPlayType(t){return""}static canPlayType(t){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=jn(t),Yt.techs_[t]=n,Yt.techs_[Zd(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=jn(t),he&&he.videojs&&he.videojs[t])return an.warn(`The ${t} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),he.videojs[t]}}}Fs.names.forEach(function(e){const t=Fs[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 a=0;a<r.length;a++)if(i=r[a].canHandleSource(n,s),i)return r[a];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:an.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)}};Ye.registerComponent("Tech",Yt);Yt.registerTech("Tech",Yt);Yt.defaultTechOrder_=[];const gl={},h_={},ng={};function VSe(e,t){gl[e]=gl[e]||[],gl[e].push(t)}function USe(e,t,n){e.setTimeout(()=>Go(t,gl[t.type],n,e),1)}function HSe(e,t){e.forEach(n=>n.setTech&&n.setTech(t))}function zSe(e,t,n){return e.reduceRight(RS(n),t[n]())}function jSe(e,t,n,s){return t[n](e.reduce(RS(n),s))}function jk(e,t,n,s=null){const r="call"+jn(n),i=e.reduce(RS(r),s),a=i===ng,o=a?null:t[n](i);return KSe(e,n,o,a),o}const qSe={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},WSe={setCurrentTime:1,setMuted:1,setVolume:1},qk={play:1,pause:1};function RS(e){return(t,n)=>t===ng?ng:n[e]?n[e](t):t}function KSe(e,t,n,s){for(let r=e.length-1;r>=0;r--){const i=e[r];i[t]&&i[t](s,n)}}function GSe(e){h_[e.id()]=null}function YSe(e,t){const n=h_[e.id()];let s=null;if(n==null)return s=t(e),h_[e.id()]=[[t,s]],s;for(let r=0;r<n.length;r++){const[i,a]=n[r];i===t&&(s=a)}return s===null&&(s=t(e),n.push([t,s])),s}function Go(e={},t=[],n,s,r=[],i=!1){const[a,...o]=t;if(typeof a=="string")Go(e,gl[a],n,s,r,i);else if(a){const l=YSe(s,a);if(!l.setSource)return r.push(l),Go(e,o,n,s,r,i);l.setSource(Object.assign({},e),function(u,c){if(u)return Go(e,o,n,s,r,i);r.push(l),Go(c,e.type===c.type?o:gl[c.type],n,s,r,i)})}else o.length?Go(e,o,n,s,r,i):i?n(e,r):Go(e,gl["*"],n,s,r,!0)}const XSe={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"},sg=function(e=""){const t=$S(e);return XSe[t.toLowerCase()]||""},QSe=(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 sg(t)},IR=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(n){n=IR(n),Array.isArray(n)?t=t.concat(n):Wi(n)&&t.push(n)}),e=t}else typeof e=="string"&&e.trim()?e=[Wk({src:e})]:Wi(e)&&typeof e.src=="string"&&e.src&&e.src.trim()?e=[Wk(e)]:e=[];return e};function Wk(e){if(!e.type){const t=sg(e.src);t&&(e.type=t)}return e}var JSe=`<svg xmlns="http://www.w3.org/2000/svg">
<defs>
<symbol viewBox="0 0 48 48" id="vjs-icon-play">
<path d="M16 10v28l22-14z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-pause">
<path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-audio">
<path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-captions">
<path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">
<path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">
<path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">
<path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">
<path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">
<path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">
<path d="M14 18v12h8l10 10V8L22 18h-8z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">
<path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">
<path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-spinner">
<path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>
</symbol>
<symbol viewBox="0 0 24 24" id="vjs-icon-hd">
<path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-chapters">
<path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>
</symbol>
<symbol viewBox="0 0 40 40" id="vjs-icon-downloading">
<path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-file-download">
<path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">
<path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">
<path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-share">
<path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-cog">
<path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-square">
<path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-circle">
<circle cx="24" cy="24" r="20"></circle>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">
<path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">
<path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-cancel">
<path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-replay">
<path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-repeat">
<path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>
</symbol>
<symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">
<path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>
</symbol>
<symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">
<path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>
</symbol>
<symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">
<path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>
</symbol>
<symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">
<path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>
</symbol>
<symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">
<path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>
</symbol>
<symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">
<path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>
</symbol>
<symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">
<g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-next-item">
<path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">
<path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">
<path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-cast">
<path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>
</symbol>
<symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">
<path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>
</symbol>
<symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">
<path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>
<path fill="none" d="M-1-3h24v24H-1z"></path>
</symbol>
<symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">
<path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>
</symbol>
<symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">
<path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>
</symbol>
<symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">
<path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>
</symbol>
<symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">
<path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>
</symbol>
<symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">
<path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>
</symbol>
</defs>
</svg>`;const Kk=Jm?10009:Zm?461:8,su={codes:{play:415,pause:19,ff:417,rw:412,back:Kk},names:{415:"play",19:"pause",417:"ff",412:"rw",[Kk]:"back"},isEventKey(e,t){return t=t.toLowerCase(),!!(this.names[e.keyCode]&&this.names[e.keyCode]===t)},getEventName(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){const t=this.codes[e.code];return this.names[t]}return null}},Gk=5;class ZSe extends Ar{constructor(t){super(),this.player_=t,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on("modalclose",()=>{this.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0)}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(t){const n=t.originalEvent?t.originalEvent:t;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(n.key)){if(this.isPaused_)return;n.preventDefault();const s=n.key.substring(5).toLowerCase();this.move(s)}else if(su.isEventKey(n,"play")||su.isEventKey(n,"pause")||su.isEventKey(n,"ff")||su.isEventKey(n,"rw")){n.preventDefault();const s=su.getEventName(n);this.performMediaAction_(s)}else su.isEventKey(n,"Back")&&t.target&&t.target.closeable()&&(n.preventDefault(),t.target.close())}performMediaAction_(t){if(this.player_)switch(t){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+Gk);break;case"rw":this.userSeek_(this.player_.currentTime()-Gk);break}}userSeek_(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(t){const n=t.relatedTarget;let s=null;const r=this.getCurrentComponent(t.target);n&&(s=!!n.closest(".video-js"),n.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(!t.currentTarget.contains(t.relatedTarget)&&!s||!n)&&(r.name()==="CloseButton"?this.refocusComponent():(this.pause(),r&&r.el()&&(this.lastFocusedComponent_=r)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const t=this.player_,n=[];function s(r){for(const i of r)i.hasOwnProperty("el_")&&i.getIsFocusable()&&i.getIsAvailableToBeFocused(i.el())&&n.push(i),i.hasOwnProperty("children_")&&i.children_.length>0&&s(i.children_)}return t.children_.forEach(r=>{if(r.hasOwnProperty("el_"))if(r.getIsFocusable&&r.getIsAvailableToBeFocused&&r.getIsFocusable()&&r.getIsAvailableToBeFocused(r.el())){n.push(r);return}else r.hasOwnProperty("children_")&&r.children_.length>0?s(r.children_):r.hasOwnProperty("items")&&r.items.length>0?s(r.items):this.findSuitableDOMChild(r)&&n.push(r)}),this.focusableComponents=n,this.focusableComponents}findSuitableDOMChild(t){function n(s){if(t.getIsFocusable(s)&&t.getIsAvailableToBeFocused(s))return s;for(let r=0;r<s.children.length;r++){const i=s.children[r],a=n(i);if(a)return a}return null}return n(t.el())}getCurrentComponent(t){this.updateFocusableComponents();const n=t||document.activeElement;if(this.focusableComponents.length){for(const s of this.focusableComponents)if(s.el()===n)return s}}add(t){const n=[...this.focusableComponents];t.hasOwnProperty("el_")&&t.getIsFocusable()&&t.getIsAvailableToBeFocused(t.el())&&n.push(t),this.focusableComponents=n,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(t){for(let n=0;n<this.focusableComponents.length;n++)if(this.focusableComponents[n].name()===t.name()){this.focusableComponents.splice(n,1),this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents});return}}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(t){const n=this.getCurrentComponent();if(!n)return;const s=n.getPositions(),r=this.focusableComponents.filter(a=>a!==n&&this.isInDirection_(s.boundingClientRect,a.getPositions().boundingClientRect,t)),i=this.findBestCandidate_(s.center,r,t);i?this.focus(i):this.trigger({type:"endOfFocusableComponents",direction:t,focusedComponent:n})}findBestCandidate_(t,n,s){let r=1/0,i=null;for(const a of n){const o=a.getPositions().center,l=this.calculateDistance_(t,o,s);l<r&&(r=l,i=a)}return i}isInDirection_(t,n,s){switch(s){case"right":return n.left>=t.right;case"left":return n.right<=t.left;case"down":return n.top>=t.bottom;case"up":return n.bottom<=t.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===this.lastFocusedComponent_.name()){this.focus(this.focusableComponents[t]);return}}else this.focus(this.updateFocusableComponents()[0])}focus(t){t.getIsAvailableToBeFocused(t.el())?t.focus():this.findSuitableDOMChild(t)&&this.findSuitableDOMChild(t).focus()}calculateDistance_(t,n,s){const r=Math.abs(t.x-n.x),i=Math.abs(t.y-n.y);let a;switch(s){case"right":case"left":a=r+i*100;break;case"up":a=i*2+r*.5;break;case"down":a=i*5+r;break;default:a=r+i}return a}searchForTrackSelect_(){const t=this;for(const n of t.updateFocusableComponents())if(n.constructor.name==="TextTrackSelect"){t.focus(n);break}}}class ewe extends Ye{constructor(t,n,s){const r=kn({createEl:!1},n);if(super(t,r,s),!n.playerOptions.sources||n.playerOptions.sources.length===0)for(let i=0,a=n.playerOptions.techOrder;i<a.length;i++){const o=jn(a[i]);let l=Yt.getTech(o);if(o||(l=Ye.getComponent(o)),l&&l.isSupported()){t.loadTech_(o);break}}else t.src(n.playerOptions.sources)}}Ye.registerComponent("MediaLoader",ewe);class Rv extends Ye{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"&&an.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=Kt(t,n,s);return this.player_.options_.experimentalSvgIcons||r.appendChild(Kt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(t){return this.controlTextEl_=Kt("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,$o(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){t.key===" "||t.key==="Enter"?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):super.handleKeyDown(t)}}Ye.registerComponent("ClickableComponent",Rv);class p_ extends Rv{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 Kt("div",{className:"vjs-poster"})}crossOrigin(t){if(typeof t>"u")return this.$("img")?this.$("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.$("img")&&(this.$("img").crossOrigin=t)}update(t){const n=this.player().poster();this.setSrc(n),n?this.show():this.hide()}setSrc(t){if(!t){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(Kt("picture",{className:"vjs-poster",tabIndex:-1},{},Kt("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=t}handleClick(t){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?$i(this.player_.play()):this.player_.pause())}}p_.prototype.crossorigin=p_.prototype.crossOrigin;Ye.registerComponent("PosterImage",p_);const Pr="#222",Yk="#ccc",twe={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 ay(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 bd(e,t,n){try{e.style[t]=n}catch{return}}function Xk(e){return e?`${e}px`:""}class nwe extends Ye{constructor(t,n,s){super(t,n,s);const r=a=>this.updateDisplay(a),i=a=>{this.updateDisplayOverlay(),this.updateDisplay(a)};t.on("loadstart",a=>this.toggleDisplay(a)),t.on("texttrackchange",r),t.on("loadedmetadata",a=>{this.updateDisplayOverlay(),this.preselectTrack(a)}),t.ready(An(this,function(){if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",i),t.on("playerresize",i);const a=he.screen.orientation||he,o=he.screen.orientation?"change":"orientationchange";a.addEventListener(o,i),t.on("dispose",()=>a.removeEventListener(o,i));const l=this.options_.playerOptions.tracks||[];for(let u=0;u<l.length;u++)this.player_.addRemoteTextTrack(l[u],!0);this.preselectTrack()}))}preselectTrack(){const t={captions:1,subtitles:1},n=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage;let r,i,a;for(let o=0;o<n.length;o++){const l=n[o];s&&s.enabled&&s.language&&s.language===l.language&&l.kind in t?l.kind===s.kind?a=l:a||(a=l):s&&!s.enabled?(a=null,r=null,i=null):l.default&&(l.kind==="descriptions"&&!r?r=l:l.kind in t&&!i&&(i=l))}a?a.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 he.WebVTT=="function"&&he.WebVTT.processCues(he,[],this.el_)}updateDisplay(){const t=this.player_.textTracks(),n=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),n){const a=[];for(let o=0;o<t.length;++o){const l=t[o];l.mode==="showing"&&a.push(l)}this.updateForTrack(a);return}let s=null,r=null,i=t.length;for(;i--;){const a=t[i];a.mode==="showing"&&(a.kind==="descriptions"?s=a:r=a)}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))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!he.CSS.supports("inset-inline: 10px"))return;const t=this.player_.currentWidth(),n=this.player_.currentHeight(),s=t/n,r=this.player_.videoWidth()/this.player_.videoHeight();let i=0,a=0;Math.abs(s-r)>.1&&(s>r?i=Math.round((t-n*r)/2):a=Math.round((n-t/r)/2)),bd(this.el_,"insetInline",Xk(i)),bd(this.el_,"insetBlock",Xk(a))}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 a=i.displayState;if(n.color&&(a.firstChild.style.color=n.color),n.textOpacity&&bd(a.firstChild,"color",ay(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(a.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&bd(a.firstChild,"backgroundColor",ay(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?bd(a,"backgroundColor",ay(n.windowColor,n.windowOpacity)):a.style.backgroundColor=n.windowColor),n.edgeStyle&&(n.edgeStyle==="dropshadow"?a.firstChild.style.textShadow=`2px 2px 3px ${Pr}, 2px 2px 4px ${Pr}, 2px 2px 5px ${Pr}`:n.edgeStyle==="raised"?a.firstChild.style.textShadow=`1px 1px ${Pr}, 2px 2px ${Pr}, 3px 3px ${Pr}`:n.edgeStyle==="depressed"?a.firstChild.style.textShadow=`1px 1px ${Yk}, 0 1px ${Yk}, -1px -1px ${Pr}, 0 -1px ${Pr}`:n.edgeStyle==="uniform"&&(a.firstChild.style.textShadow=`0 0 4px ${Pr}, 0 0 4px ${Pr}, 0 0 4px ${Pr}, 0 0 4px ${Pr}`)),n.fontPercent&&n.fontPercent!==1){const o=he.parseFloat(a.style.fontSize);a.style.fontSize=o*n.fontPercent+"px",a.style.height="auto",a.style.top="auto"}n.fontFamily&&n.fontFamily!=="default"&&(n.fontFamily==="small-caps"?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=twe[n.fontFamily])}}updateForTrack(t){if(Array.isArray(t)||(t=[t]),typeof he.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])}he.WebVTT.processCues(he,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 a=r.activeCues[i].displayState;ml(a,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:s)),r.language&&hc(a,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}Ye.registerComponent("TextTrackDisplay",nwe);class swe extends Ye{createEl(){const t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),s=Kt("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}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}Ye.registerComponent("LoadingSpinner",swe);class qs extends Rv{createEl(t,n={},s={}){t="button",n=Object.assign({className:this.buildCSSClass()},n),s=Object.assign({type:"button"},s);const r=Kt(t,n,s);return this.player_.options_.experimentalSvgIcons||r.appendChild(Kt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(t,n={}){const s=this.constructor.name;return an.warn(`Adding an actionable (user controllable) child to a Button (${s}) is not supported; use a ClickableComponent instead.`),Ye.prototype.addChild.call(this,t,n)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(t){if(t.key===" "||t.key==="Enter"){t.stopPropagation();return}super.handleKeyDown(t)}}Ye.registerComponent("Button",qs);class DR extends qs{constructor(t,n){super(t,n),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",s=>this.handleMouseDown(s))}buildCSSClass(){return"vjs-big-play-button"}handleClick(t){const n=this.player_.play();if(this.mouseused_&&"clientX"in t&&"clientY"in t){$i(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();ef(n)?n.then(i,()=>{}):this.setTimeout(i,1)}handleKeyDown(t){this.mouseused_=!1,super.handleKeyDown(t)}handleMouseDown(t){this.mouseused_=!0}}DR.prototype.controlText_="Play Video";Ye.registerComponent("BigPlayButton",DR);class rwe extends qs{constructor(t,n){super(t,n),this.setIcon("cancel"),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){t.key==="Escape"?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):super.handleKeyDown(t)}}Ye.registerComponent("CloseButton",rwe);class OR extends qs{constructor(t,n={}){super(t,n),n.replay=n.replay===void 0||n.replay,this.setIcon("play"),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()?$i(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.setIcon("pause"),this.controlText("Pause")}handlePause(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",n=>this.handleSeeked(n))}}OR.prototype.controlText_="Play";Ye.registerComponent("PlayToggle",OR);class Fc extends Ye{constructor(t,n){super(t,n),this.on(t,["timeupdate","ended","seeking"],s=>this.update(s)),this.updateTextNode_()}createEl(){const t=this.buildCSSClass(),n=super.createEl("div",{className:`${t} vjs-time-control vjs-control`}),s=Kt("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return n.appendChild(s),this.contentEl_=Kt("span",{className:`${t}-display`},{role:"presentation"}),n.appendChild(this.contentEl_),n}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(t){!this.player_.options_.enableSmoothSeeking&&t.type==="seeking"||this.updateContent(t)}updateTextNode_(t=0){t=Dl(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,an.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_=ht.createTextNode(this.formattedTime_),this.textNode_&&(n?this.contentEl_.replaceChild(this.textNode_,n):this.contentEl_.appendChild(this.textNode_))}))}updateContent(t){}}Fc.prototype.labelText_="Time";Fc.prototype.controlText_="Time";Ye.registerComponent("TimeDisplay",Fc);class NS extends Fc{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)}}NS.prototype.labelText_="Current Time";NS.prototype.controlText_="Current Time";Ye.registerComponent("CurrentTimeDisplay",NS);class MS extends Fc{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)}}MS.prototype.labelText_="Duration";MS.prototype.controlText_="Duration";Ye.registerComponent("DurationDisplay",MS);class iwe extends Ye{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}}Ye.registerComponent("TimeDivider",iwe);class LS extends Fc{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(Kt("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)}}LS.prototype.labelText_="Remaining Time";LS.prototype.controlText_="Remaining Time";Ye.registerComponent("RemainingTimeDisplay",LS);class awe extends Ye{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_=Kt("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Kt("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(ht.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()}}Ye.registerComponent("LiveDisplay",awe);class PR extends qs{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.setIcon("circle",t),this.textEl_=Kt("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()}}PR.prototype.controlText_="Seek to live, currently playing live";Ye.registerComponent("SeekToLive",PR);function Ch(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))}var owe=Object.freeze({__proto__:null,clamp:Ch});class BS extends Ye{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"&&!Gi&&t.preventDefault(),iR(),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(t){const n=this.bar.el_.ownerDocument;aR(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(n,"mousemove",this.handleMouseMove_),this.off(n,"mouseup",this.handleMouseUp_),this.off(n,"touchmove",this.handleMouseMove_),this.off(n,"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(Ch(this.getPercent(),0,1).toFixed(4))}calculateDistance(t){const n=Av(this.el_,t);return this.vertical()?n.y:n.x}handleKeyDown(t){const n=this.options_.playerOptions.spatialNavigation,s=n&&n.enabled,r=n&&n.horizontalSeek;s?r&&t.key==="ArrowLeft"||!r&&t.key==="ArrowDown"?(t.preventDefault(),t.stopPropagation(),this.stepBack()):r&&t.key==="ArrowRight"||!r&&t.key==="ArrowUp"?(t.preventDefault(),t.stopPropagation(),this.stepForward()):super.handleKeyDown(t):t.key==="ArrowLeft"||t.key==="ArrowDown"?(t.preventDefault(),t.stopPropagation(),this.stepBack()):t.key==="ArrowUp"||t.key==="ArrowRight"?(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")}}Ye.registerComponent("Slider",BS);const oy=(e,t)=>Ch(e/t*100,0,100).toFixed(2)+"%";class lwe extends Ye{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=Kt("span",{className:"vjs-control-text"}),s=Kt("span",{textContent:this.localize("Loaded")}),r=ht.createTextNode(": ");return this.percentageEl_=Kt("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(),a=this.partEls_,o=oy(i,r);this.percent_!==o&&(this.el_.style.width=o,$o(this.percentageEl_,o),this.percent_=o);for(let l=0;l<s.length;l++){const u=s.start(l),c=s.end(l);let f=a[l];f||(f=this.el_.appendChild(Kt()),a[l]=f),!(f.dataset.start===u&&f.dataset.end===c)&&(f.dataset.start=u,f.dataset.end=c,f.style.left=oy(u,i),f.style.width=oy(c-u,i))}for(let l=a.length;l>s.length;l--)this.el_.removeChild(a[l-1]);a.length=s.length})}}Ye.registerComponent("LoadProgressBar",lwe);class uwe extends Ye{constructor(t,n){super(t,n),this.update=Yi(An(this,this.update),Jr)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(t,n,s){const r=zf(this.el_),i=pc(this.player_.el()),a=t.width*n;if(!i||!r)return;let o=t.left-i.left+a,l=t.width-a+(i.right-t.right);l||(l=t.width-a,o=a);let u=r.width/2;o<u?u+=u-o: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){$o(this.el_,t)}updateTime(t,n,s,r){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let i;const a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const o=this.player_.liveTracker.liveWindow(),l=o-n*o;i=(l<1?"":"-")+Dl(l,o)}else i=Dl(s,a);this.update(t,n,i),r&&r()})}}Ye.registerComponent("TimeTooltip",uwe);class FS extends Ye{constructor(t,n){super(t,n),this.setIcon("circle"),this.update=Yi(An(this,this.update),Jr)}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)}}FS.prototype.options_={children:[]};!js&&!Ki&&FS.prototype.options_.children.push("timeTooltip");Ye.registerComponent("PlayProgressBar",FS);class $R extends Ye{constructor(t,n){super(t,n),this.update=Yi(An(this,this.update),Jr)}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`})}}$R.prototype.options_={children:["timeTooltip"]};Ye.registerComponent("MouseTimeDisplay",$R);const Tp=5,Qk=12;class VS extends BS{constructor(t,n){super(t,n),this.setEventHandlers_()}setEventHandlers_(){this.update_=An(this,this.update),this.update=Yi(this.update_,Jr),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],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 ht&&"visibilityState"in ht&&this.on(ht,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(t){ht.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,Jr))}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(ht.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}",[Dl(s,i),Dl(i,i)],"{1} of {2}")),this.currentTime_=s,this.duration_=i),this.bar&&this.bar.update(pc(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){jf(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(t))}handleMouseMove(t,n=!1){if(!jf(t)||isNaN(this.player_.duration()))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 a=i.seekableStart(),o=i.liveCurrentTime();if(s=a+r*i.liveWindow(),s>=o&&(s=o),s<=a&&(s=a+.1),s===1/0)return}this.userSeek_(s),this.player_.options_.enableSmoothSeeking&&this.update()}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?$i(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+Tp)}stepBack(){this.userSeek_(this.player_.currentTime()-Tp)}handleAction(t){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(t){const n=this.player_.liveTracker;if(t.key===" "||t.key==="Enter")t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(t.key==="Home")t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(t.key==="End")t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(t.key)){t.preventDefault(),t.stopPropagation();const s=parseInt(t.key,10)*.1;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*s):this.userSeek_(this.player_.duration()*s)}else t.key==="PageDown"?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-Tp*Qk)):t.key==="PageUp"?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+Tp*Qk)):super.handleKeyDown(t)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],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 ht&&"visibilityState"in ht&&this.off(ht,"visibilitychange",this.toggleVisibility_),super.dispose()}}VS.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};!js&&!Ki&&VS.prototype.options_.children.splice(1,0,"mouseTimeDisplay");Ye.registerComponent("SeekBar",VS);class RR extends Ye{constructor(t,n){super(t,n),this.handleMouseMove=Yi(An(this,this.handleMouseMove),Jr),this.throttledHandleMouseSeek=Yi(An(this,this.handleMouseSeek),Jr),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(),a=zf(i);let o=Av(i,t).x;o=Ch(o,0,1),r&&r.update(a,o),s&&s.update(a,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&&$i(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()}}RR.prototype.options_={children:["seekBar"]};Ye.registerComponent("ProgressControl",RR);class NR extends qs{constructor(t,n){super(t,n),this.setIcon("picture-in-picture-enter"),this.on(t,["enterpictureinpicture","leavepictureinpicture"],s=>this.handlePictureInPictureChange(s)),this.on(t,["disablepictureinpicturechanged","loadedmetadata"],s=>this.handlePictureInPictureEnabledChange(s)),this.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){if(!(this.player_.currentType().substring(0,5)==="audio"||this.player_.audioPosterMode()||this.player_.audioOnlyMode())){this.show();return}this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()}handlePictureInPictureEnabledChange(){ht.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in he?this.enable():this.disable()}handlePictureInPictureChange(t){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){typeof ht.exitPictureInPicture=="function"&&super.show()}}NR.prototype.controlText_="Picture-in-Picture";Ye.registerComponent("PictureInPictureToggle",NR);class MR extends qs{constructor(t,n){super(t,n),this.setIcon("fullscreen-enter"),this.on(t,"fullscreenchange",s=>this.handleFullscreenChange(s)),ht[t.fsApi_.fullscreenEnabled]===!1&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(t){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}MR.prototype.controlText_="Fullscreen";Ye.registerComponent("FullscreenToggle",MR);const cwe=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 dwe extends Ye{createEl(){const t=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",t),t.appendChild(super.createEl("span",{className:"vjs-control-text"})),t}}Ye.registerComponent("VolumeLevel",dwe);class fwe extends Ye{constructor(t,n){super(t,n),this.update=Yi(An(this,this.update),Jr)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(t,n,s,r){if(!s){const i=pc(this.el_),a=pc(this.player_.el()),o=t.width*n;if(!a||!i)return;const l=t.left-a.left+o,u=t.width-o+(a.right-t.right);let c=i.width/2;l<c?c+=c-l:u<c&&(c=u),c<0?c=0:c>i.width&&(c=i.width),this.el_.style.right=`-${c}px`}this.write(`${r}%`)}write(t){$o(this.el_,t)}updateVolume(t,n,s,r,i){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(t,n,s,r.toFixed(0)),i&&i()})}}Ye.registerComponent("VolumeLevelTooltip",fwe);class LR extends Ye{constructor(t,n){super(t,n),this.update=Yi(An(this,this.update),Jr)}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`})}}LR.prototype.options_={children:["volumeLevelTooltip"]};Ye.registerComponent("MouseVolumeLevelDisplay",LR);class Nv extends BS{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){jf(t)&&super.handleMouseDown(t)}handleMouseMove(t){const n=this.getChild("mouseVolumeLevelDisplay");if(n){const s=this.el(),r=pc(s),i=this.vertical();let a=Av(s,t);a=i?a.y:a.x,a=Ch(a,0,1),n.update(r,a,i)}jf(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)})}}Nv.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!js&&!Ki&&Nv.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");Nv.prototype.playerEvent="volumechange";Ye.registerComponent("VolumeBar",Nv);class BR extends Ye{constructor(t,n={}){n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||fc(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),super(t,n),cwe(this,t),this.throttledHandleMouseMove=Yi(An(this,this.handleMouseMove),Jr),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)}}BR.prototype.options_={children:["volumeBar"]};Ye.registerComponent("VolumeControl",BR);const hwe=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 FR extends qs{constructor(t,n){super(t,n),hwe(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;this.setIcon("volume-high"),js&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),t===0||this.player_.muted()?(this.setIcon("volume-mute"),n=0):t<.33?(this.setIcon("volume-low"),n=1):t<.67&&(this.setIcon("volume-medium"),n=2),xv(this.el_,[0,1,2,3].reduce((s,r)=>s+`${r?" ":""}vjs-vol-${r}`,"")),ml(this.el_,`vjs-vol-${n}`)}updateControlText_(){const n=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)}}FR.prototype.controlText_="Mute";Ye.registerComponent("MuteToggle",FR);class VR extends Ye{constructor(t,n={}){typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||fc(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){t.key==="Escape"&&this.muteToggle.focus()}handleMouseOver(t){this.addClass("vjs-hover"),kr(ht,"keyup",this.handleKeyPressHandler_)}handleMouseOut(t){this.removeClass("vjs-hover"),Ps(ht,"keyup",this.handleKeyPressHandler_)}handleKeyPress(t){t.key==="Escape"&&this.handleMouseOut()}}VR.prototype.options_={children:["muteToggle","volumeControl"]};Ye.registerComponent("VolumePanel",VR);class UR extends qs{constructor(t,n){super(t,n),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(t.language())])),this.show()):this.hide()}getSkipForwardTime(){const t=this.options_.playerOptions;return t.controlBar&&t.controlBar.skipButtons&&t.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(t){if(isNaN(this.player_.duration()))return;const n=this.player_.currentTime(),s=this.player_.liveTracker,r=s&&s.isLive()?s.seekableEnd():this.player_.duration();let i;n+this.skipTime<=r?i=n+this.skipTime:i=r,this.player_.currentTime(i)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}UR.prototype.controlText_="Skip Forward";Ye.registerComponent("SkipForward",UR);class HR extends qs{constructor(t,n){super(t,n),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime.toLocaleString(t.language())])),this.show()):this.hide()}getSkipBackwardTime(){const t=this.options_.playerOptions;return t.controlBar&&t.controlBar.skipButtons&&t.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(t){const n=this.player_.currentTime(),s=this.player_.liveTracker,r=s&&s.isLive()&&s.seekableStart();let i;r&&n-this.skipTime<=r?i=r:n>=this.skipTime?i=n-this.skipTime:i=0,this.player_.currentTime(i)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}HR.prototype.controlText_="Skip Backward";Ye.registerComponent("SkipBackward",HR);class zR extends Ye{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 Ye&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(t){t instanceof Ye&&(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_=Kt(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_),kr(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||ht.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){t.key==="ArrowLeft"||t.key==="ArrowDown"?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(t.key==="ArrowRight"||t.key==="ArrowUp")&&(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())}}Ye.registerComponent("Menu",zR);class US extends Ye{constructor(t,n={}){super(t,n),this.menuButton_=new qs(t,n),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const s=qs.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(),kr(ht,"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 zR(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const n=Kt("li",{className:"vjs-menu-title",textContent:jn(this.options_.title),tabIndex:-1}),s=new Ye(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()},{})}setIcon(t){super.setIcon(t,this.menuButton_.el_)}buildWrapperCSSClass(){let t="vjs-menu-button";this.options_.inline===!0?t+="-inline":t+="-popup";const n=qs.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"),Ps(ht,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(t){t.key==="Esc"||t.key==="Tab"?(this.buttonPressed_&&this.unpressButton(),!t.key==="Tab"&&(t.preventDefault(),this.menuButton_.focus())):(t.key==="Up"||t.key==="Down"&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))}handleMenuKeyUp(t){(t.key==="Esc"||t.key==="Tab")&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(t){this.handleSubmenuKeyDown(t)}handleSubmenuKeyDown(t){(t.key==="Esc"||t.key==="Tab")&&(this.buttonPressed_&&this.unpressButton(),!t.key==="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"),js&&eR())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()}}Ye.registerComponent("MenuButton",US);class HS extends US{constructor(t,n){const s=n.tracks;if(super(t,n),this.items.length<=1&&this.hide(),!s)return;const r=An(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)})}}Ye.registerComponent("TrackButton",HS);class Eh extends Rv{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),i=Kt("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(i):r.replaceChild(i,r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(t){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(t.key)||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))}}Ye.registerComponent("MenuItem",Eh);class xh extends Eh{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=(...o)=>{this.handleTracksChange.apply(this,o)},a=(...o)=>{this.handleSelectedLanguageChange.apply(this,o)};if(t.on(["loadstart","texttrackchange"],i),r.addEventListener("change",i),r.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){t.off(["loadstart","texttrackchange"],i),r.removeEventListener("change",i),r.removeEventListener("selectedlanguagechange",a)}),r.onchange===void 0){let o;this.on(["tap","click"],function(){if(typeof he.Event!="object")try{o=new he.Event("change")}catch{}o||(o=ht.createEvent("Event"),o.initEvent("change",!0,!0)),r.dispatchEvent(o)})}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()}}Ye.registerComponent("TextTrackMenuItem",xh);class jR extends xh{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 a=n[r];if(this.options_.kinds.indexOf(a.kind)>-1&&a.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 a=n[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&a.mode==="showing"){s=!1;break}}s&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}Ye.registerComponent("OffTextTrackMenuItem",jR);class Vc extends HS{constructor(t,n={}){n.tracks=t.textTracks(),super(t,n)}createItems(t=[],n=xh){let s;this.label_&&(s=`${this.label_} off`),t.push(new jR(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 a=r[i];if(this.kinds_.indexOf(a.kind)>-1){const o=new n(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass(`vjs-${a.kind}-menu-item`),t.push(o)}}return t}}Ye.registerComponent("TextTrackButton",Vc);class qR extends Eh{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)}}Ye.registerComponent("ChaptersTrackMenuItem",qR);class zS extends Vc{constructor(t,n,s){super(t,n,s),this.setIcon("chapters"),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(jn(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],a=new qR(this.player_,{track:this.track_,cue:i});t.push(a)}return t}}zS.prototype.kind_="chapters";zS.prototype.controlText_="Chapters";Ye.registerComponent("ChaptersButton",zS);class jS extends Vc{constructor(t,n,s){super(t,n,s),this.setIcon("audio-description");const r=t.textTracks(),i=An(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 a=n[r];if(a.kind!==this.kind_&&a.mode==="showing"){s=!0;break}}s?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}jS.prototype.kind_="descriptions";jS.prototype.controlText_="Descriptions";Ye.registerComponent("DescriptionsButton",jS);class qS extends Vc{constructor(t,n,s){super(t,n,s),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}qS.prototype.kind_="subtitles";qS.prototype.controlText_="Subtitles";Ye.registerComponent("SubtitlesButton",qS);class WS extends xh{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()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}Ye.registerComponent("CaptionSettingsMenuItem",WS);class KS extends Vc{constructor(t,n,s){super(t,n,s),this.setIcon("captions")}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 WS(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(t)}}KS.prototype.kind_="captions";KS.prototype.controlText_="Captions";Ye.registerComponent("CaptionsButton",KS);class WR extends xh{createEl(t,n,s){const r=super.createEl(t,n,s),i=r.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):i.appendChild(Kt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Kt("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}Ye.registerComponent("SubsCapsMenuItem",WR);class GS extends Vc{constructor(t,n={}){super(t,n),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(jn(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 WS(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=super.createItems(t,WR),t}}GS.prototype.kinds_=["captions","subtitles"];GS.prototype.controlText_="Subtitles";Ye.registerComponent("SubsCapsButton",GS);class KR extends Eh{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=(...a)=>{this.handleTracksChange.apply(this,a)};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["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(i.appendChild(Kt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Kt("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)}}Ye.registerComponent("AudioTrackMenuItem",KR);class GR extends HS{constructor(t,n={}){n.tracks=t.audioTracks(),super(t,n),this.setIcon("audio")}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 KR(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return t}}GR.prototype.controlText_="Audio Track";Ye.registerComponent("AudioTrackButton",GR);class YS extends Eh{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)}}YS.prototype.contentElType="button";Ye.registerComponent("PlaybackRateMenuItem",YS);class YR extends US{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_=Kt("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 YS(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")}}YR.prototype.controlText_="Playback Rate";Ye.registerComponent("PlaybackRateMenuButton",YR);class XR extends Ye{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(t="div",n={},s={}){return n.className||(n.className=this.buildCSSClass()),super.createEl(t,n,s)}}Ye.registerComponent("Spacer",XR);class pwe extends XR{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}}Ye.registerComponent("CustomControlSpacer",pwe);class QR extends Ye{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}QR.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]};Ye.registerComponent("ControlBar",QR);class JR extends Bc{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):""}}JR.prototype.options_=Object.assign({},Bc.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});Ye.registerComponent("ErrorDisplay",JR);class ZR extends Ye{constructor(t,n={}){super(t,n),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),Kt("select",{id:this.options_.id},{},this.options_.SelectOptions.map(n=>{const s=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${Qr()}`)+"-"+n[1].replace(/\W+/g,""),r=Kt("option",{id:s,value:this.localize(n[0]),textContent:n[1]});return r.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${s}`),r}))}}Ye.registerComponent("TextTrackSelect",ZR);class vl extends Ye{constructor(t,n={}){super(t,n);const s=Kt("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(s);const r=this.options_.selects;for(const i of r){const a=this.options_.selectConfigs[i],o=a.className,l=a.id.replace("%s",this.options_.id_);let u=null;const c=`vjs_select_${Qr()}`;if(this.options_.type==="colors"){u=Kt("span",{className:o});const h=Kt("label",{id:l,className:"vjs-label",textContent:a.label});h.setAttribute("for",c),u.appendChild(h)}const f=new ZR(t,{SelectOptions:a.options,legendId:this.options_.legendId,id:c,labelId:l});this.addChild(f),this.options_.type==="colors"&&(u.appendChild(f.el()),this.el().appendChild(u))}}createEl(){return Kt("fieldset",{className:this.options_.className})}}Ye.registerComponent("TextTrackFieldset",vl);class eN extends Ye{constructor(t,n={}){super(t,n);const s=this.options_.textTrackComponentid,r=new vl(t,{id_:s,legendId:`captions-text-legend-${s}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(r);const i=new vl(t,{id_:s,legendId:`captions-background-${s}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(i);const a=new vl(t,{id_:s,legendId:`captions-window-${s}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(a)}createEl(){return Kt("div",{className:"vjs-track-settings-colors"})}}Ye.registerComponent("TextTrackSettingsColors",eN);class tN extends Ye{constructor(t,n={}){super(t,n);const s=this.options_.textTrackComponentid,r=new vl(t,{id_:s,legendId:`captions-font-size-${s}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(r);const i=new vl(t,{id_:s,legendId:`captions-edge-style-${s}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(i);const a=new vl(t,{id_:s,legendId:`captions-font-family-${s}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(a)}createEl(){return Kt("div",{className:"vjs-track-settings-font"})}}Ye.registerComponent("TextTrackSettingsFont",tN);class nN extends Ye{constructor(t,n={}){super(t,n);const s=this.localize("restore all settings to the default values"),r=new qs(t,{controlText:s,className:"vjs-default-button"});r.el().classList.remove("vjs-control","vjs-button"),r.el().textContent=this.localize("Reset"),this.addChild(r);const i=new qs(t,{controlText:s,className:"vjs-done-button"});i.el().classList.remove("vjs-control","vjs-button"),i.el().textContent=this.localize("Done"),this.addChild(i)}createEl(){return Kt("div",{className:"vjs-track-settings-controls"})}}Ye.registerComponent("TrackSettingsControls",nN);const ly="vjs-text-track-settings",Jk=["#000","Black"],Zk=["#00F","Blue"],eA=["#0FF","Cyan"],tA=["#0F0","Green"],nA=["#F0F","Magenta"],sA=["#F00","Red"],rA=["#FFF","White"],iA=["#FF0","Yellow"],uy=["1","Opaque"],cy=["0.5","Semi-Transparent"],aA=["0","Transparent"],Za={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Jk,rA,sA,tA,Zk,iA,nA,eA],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[uy,cy,aA],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[rA,Jk,sA,tA,Zk,iA,nA,eA],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",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:"",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:"Opacity",options:[uy,cy],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[aA,cy,uy],className:"vjs-window-opacity vjs-opacity"}};Za.windowColor.options=Za.backgroundColor.options;function sN(e,t){if(t&&(e=t(e)),e&&e!=="none")return e}function mwe(e,t){const n=e.options[e.options.selectedIndex].value;return sN(n,t)}function gwe(e,t,n){if(t){for(let s=0;s<e.options.length;s++)if(sN(e.options[s].value,n)===t){e.selectedIndex=s;break}}}class vwe extends Bc{constructor(t,n){n.temporary=!1,super(t,n),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(t),this.endDialog=Kt("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.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(t){const n=new eN(t,{textTrackComponentid:this.id_,selectConfigs:Za,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(n);const s=new tN(t,{textTrackComponentid:this.id_,selectConfigs:Za,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(s);const r=new nN(t);this.addChild(r)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),Du(Za,t=>{this.on(this.$(t.selector),"change",this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}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 K$(Za,(t,n,s)=>{const r=mwe(this.$(n.selector),n.parser);return r!==void 0&&(t[s]=r),t},{})}setValues(t){Du(Za,(n,s)=>{gwe(this.$(n.selector),t[s],n.parser)})}setDefaults(){Du(Za,t=>{const n=t.hasOwnProperty("default")?t.default:0;this.$(t.selector).selectedIndex=n})}restoreSettings(){let t;try{t=JSON.parse(he.localStorage.getItem(ly))}catch(n){an.warn(n)}t&&this.setValues(t)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const t=this.getValues();try{Object.keys(t).length?he.localStorage.setItem(ly,JSON.stringify(t)):he.localStorage.removeItem(ly)}catch(n){an.warn(n)}}updateDisplay(){const t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}}Ye.registerComponent("TextTrackSettings",vwe);class ywe extends Ye{constructor(t,n){let s=n.ResizeObserver||he.ResizeObserver;n.ResizeObserver===null&&(s=!1);const r=kn({createEl:!s,reportTouchActivity:!1},n);super(t,r),this.ResizeObserver=n.ResizeObserver||he.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=gR(()=>{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 a=this.unloadListener_=function(){Ps(this,"resize",i),Ps(this,"unload",a),a=null};kr(this.el_.contentWindow,"unload",a),kr(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()}}Ye.registerComponent("ResizeManager",ywe);const bwe={trackingThreshold:20,liveTolerance:15};class _we extends Ye{constructor(t,n){const s=kn(bwe,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(he.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 a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-i)>this.options_.liveTolerance;(!this.timeupdateSeen_||r===1/0)&&(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,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_,Jr),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()}}Ye.registerComponent("LiveTracker",_we);class Swe extends Ye{constructor(t,n){super(t,n),this.on("statechanged",s=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Kt("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${Qr()}`}),description:Kt("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${Qr()}`})},Kt("div",{className:"vjs-title-bar"},{},G$(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],a=this.els[r],o=s[r];Iv(a),i&&$o(a,i),n&&(n.removeAttribute(o),i&&n.setAttribute(o,a.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}}Ye.registerComponent("TitleBar",Swe);const m_=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 a=n[i].src;a&&s.indexOf(a)===-1&&s.push(a)}return s.length?(s.length===1&&(r=s[0]),e.triggerSourceset(r),!0):!1},wwe=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=ht.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const n=ht.createDocumentFragment();for(;t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",he.Element.prototype.appendChild.call(this,n),this.innerHTML}}),rN=(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},Twe=e=>rN([e.el(),he.HTMLMediaElement.prototype,he.Element.prototype,wwe],"innerHTML"),oA=function(e){const t=e.el();if(t.resetSourceWatch_)return;const n={},s=Twe(e),r=i=>(...a)=>{const o=i.apply(t,a);return m_(e),o};["append","appendChild","insertAdjacentHTML"].forEach(i=>{t[i]&&(n[i]=t[i],t[i]=r(n[i]))}),Object.defineProperty(t,"innerHTML",kn(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_)},Cwe=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?xR(he.Element.prototype.getAttribute.call(this,"src")):""},set(e){return he.Element.prototype.setAttribute.call(this,"src",e),e}}),Ewe=e=>rN([e.el(),he.HTMLMediaElement.prototype,Cwe],"src"),xwe=function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const n=Ewe(e),s=t.setAttribute,r=t.load;Object.defineProperty(t,"src",kn(n,{set:i=>{const a=n.set.call(t,i);return e.triggerSourceset(t.src),a}})),t.setAttribute=(i,a)=>{const o=s.call(t,i,a);return/src/i.test(i)&&e.triggerSourceset(t.src),o},t.load=()=>{const i=r.call(t);return m_(e)||(e.triggerSourceset(""),oA(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):m_(e)||oA(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=s,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}};class Et 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 a=i.length;const o=[];for(;a--;){const l=i[a];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")&&$v(l.src)&&(r=!0)):o.push(l))}for(let l=0;l<o.length;l++)this.el_.removeChild(o[l])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&r&&an.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_(),(Hf||Cv)&&t.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),Et.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){xwe(this)}restoreMetadataTracksInIOSNativePlayer_(){const t=this.textTracks();let n;const s=()=>{n=[];for(let i=0;i<t.length;i++){const a=t[i];a.kind==="metadata"&&n.push({track:a,storedMode:a.mode})}};s(),t.addEventListener("change",s),this.on("dispose",()=>t.removeEventListener("change",s));const r=()=>{for(let i=0;i<n.length;i++){const a=n[i];a.track.mode==="disabled"&&a.track.mode!==a.storedMode&&(a.track.mode=a.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=jr[t],s=this.el()[n.getterName],r=this[n.getterName]();if(!this[`featuresNative${n.capitalName}Tracks`]||!s||!s.addEventListener)return;const i={change:o=>{const l={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(l),t==="text"&&this[vc.remoteText.getterName]().trigger(l)},addtrack(o){r.addTrack(o.track)},removetrack(o){r.removeTrack(o.track)}},a=function(){const o=[];for(let l=0;l<r.length;l++){let u=!1;for(let c=0;c<s.length;c++)if(s[c]===r[l]){u=!0;break}u||o.push(r[l])}for(;o.length;)r.removeTrack(o.shift())};this[n.getterName+"Listeners_"]=i,Object.keys(i).forEach(o=>{const l=i[o];s.addEventListener(o,l),this.on("dispose",u=>s.removeEventListener(o,l))}),this.on("loadstart",a),this.on("dispose",o=>this.off("loadstart",a))}proxyNativeTracks_(){jr.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),Et.disposeMediaElement(t),t=s}else{t=ht.createElement("video");const s=this.options_.tag&&Ja(this.options_.tag),r=kn({},s);(!Hf||this.options_.nativeControlsForTouch!==!0)&&delete r.controls,sR(t,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&hc(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?hc(t,r,r):kv(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&&Ev?this.el_.fastSeek(t):this.el_.currentTime=t}catch(n){an(n,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&Ki&&Gi&&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)$i(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(){Et.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=ht.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),he.performance&&(t.creationTime=he.performance.now()),t}}Sv(Et,"TEST_VID",function(){if(!Nc())return;const e=ht.createElement("video"),t=ht.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e});Et.isSupported=function(){try{Et.TEST_VID.volume=.5}catch{return!1}return!!(Et.TEST_VID&&Et.TEST_VID.canPlayType)};Et.canPlayType=function(e){return Et.TEST_VID.canPlayType(e)};Et.canPlaySource=function(e,t){return Et.canPlayType(e.type)};Et.canControlVolume=function(){try{const e=Et.TEST_VID.volume;Et.TEST_VID.volume=e/2+.1;const t=e!==Et.TEST_VID.volume;return t&&js?(he.setTimeout(()=>{Et&&Et.prototype&&(Et.prototype.featuresVolumeControl=e!==Et.TEST_VID.volume)}),!1):t}catch{return!1}};Et.canMuteVolume=function(){try{const e=Et.TEST_VID.muted;return Et.TEST_VID.muted=!e,Et.TEST_VID.muted?hc(Et.TEST_VID,"muted","muted"):kv(Et.TEST_VID,"muted","muted"),e!==Et.TEST_VID.muted}catch{return!1}};Et.canControlPlaybackRate=function(){if(Ki&&Gi&&wv<58)return!1;try{const e=Et.TEST_VID.playbackRate;return Et.TEST_VID.playbackRate=e/2+.1,e!==Et.TEST_VID.playbackRate}catch{return!1}};Et.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(ht.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(ht.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(ht.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(ht.createElement("audio"),"innerHTML",{get:e,set:e})}catch{return!1}return!0};Et.supportsNativeTextTracks=function(){return Ev||js&&Gi};Et.supportsNativeVideoTracks=function(){return!!(Et.TEST_VID&&Et.TEST_VID.videoTracks)};Et.supportsNativeAudioTracks=function(){return!!(Et.TEST_VID&&Et.TEST_VID.audioTracks)};Et.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]){Sv(Et.prototype,e,()=>Et[t](),!0)});Et.prototype.featuresVolumeControl=Et.canControlVolume();Et.prototype.movingMediaElementInDOM=!js;Et.prototype.featuresFullscreenResize=!0;Et.prototype.featuresProgressEvents=!0;Et.prototype.featuresTimeupdateEvents=!0;Et.prototype.featuresVideoFrameCallback=!!(Et.TEST_VID&&Et.TEST_VID.requestVideoFrameCallback);Et.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{}}()}};Et.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){Et.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Et.prototype["set"+jn(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){Et.prototype[e]=function(){return this.el_[e]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){Et.prototype["set"+jn(e)]=function(t){this.el_[e]=t}});["pause","load","play"].forEach(function(e){Et.prototype[e]=function(){return this.el_[e]()}});Yt.withSourceHandlers(Et);Et.nativeSourceHandler={};Et.nativeSourceHandler.canPlayType=function(e){try{return Et.TEST_VID.canPlayType(e)}catch{return""}};Et.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Et.nativeSourceHandler.canPlayType(e.type);if(e.src){const n=$S(e.src);return Et.nativeSourceHandler.canPlayType(`video/${n}`)}return""};Et.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)};Et.nativeSourceHandler.dispose=function(){};Et.registerSourceHandler(Et.nativeSourceHandler);Yt.registerTech("Html5",Et);const iN=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],dy={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},g_=["tiny","xsmall","small","medium","large","xlarge","huge"],um={};g_.forEach(e=>{const t=e.charAt(0)==="x"?`x-${e.substring(1)}`:e;um[e]=`vjs-layout-${t}`});const kwe={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class Nn extends Ye{constructor(t,n,s){if(t.id=t.id||n.id||`vjs_video_${Qr()}`,n=Object.assign(Nn.getTagSettings(t),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){const a=t.closest("[lang]");a&&(n.language=a.getAttribute("lang"))}if(super(null,n,s),this.boundDocumentFullscreenChange_=a=>this.documentFullscreenChange_(a),this.boundFullWindowOnEscKey_=a=>this.fullWindowOnEscKey(a),this.boundUpdateStyleEl_=a=>this.updateStyleEl_(a),this.boundApplyInitTime_=a=>this.applyInitTime_(a),this.boundUpdateCurrentBreakpoint_=a=>this.updateCurrentBreakpoint_(a),this.boundHandleTechClick_=a=>this.handleTechClick_(a),this.boundHandleTechDoubleClick_=a=>this.handleTechDoubleClick_(a),this.boundHandleTechTouchStart_=a=>this.handleTechTouchStart_(a),this.boundHandleTechTouchMove_=a=>this.handleTechTouchMove_(a),this.boundHandleTechTouchEnd_=a=>this.handleTechTouchEnd_(a),this.boundHandleTechTap_=a=>this.handleTechTap_(a),this.boundUpdatePlayerHeightOnAudioOnlyMode_=a=>this.updatePlayerHeightOnAudioOnlyMode_(a),this.isFullscreen_=!1,this.log=q$(this.id_),this.fsApi_=Ym,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_={controlBarHeight:null,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&&Ja(t),this.language(this.options_.language),n.languages){const a={};Object.getOwnPropertyNames(n.languages).forEach(function(o){a[o.toLowerCase()]=n.languages[o]}),this.languages_=a}else this.languages_=Nn.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(a=>{if(typeof this[a]!="function")throw new Error(`plugin "${a}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),IS(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(kr(ht,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=kn(this.options_);if(n.plugins&&Object.keys(n.plugins).forEach(a=>{this[a](n.plugins[a])}),n.debug&&this.debug(!0),this.options_.playerOptions=r,this.middleware_=[],this.playbackRates(n.playbackRates),n.experimentalSvgIcons){const o=new he.DOMParser().parseFromString(JSe,"image/svg+xml");if(o.querySelector("parsererror"))an.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const u=o.documentElement;u.style.display="none",this.el_.appendChild(u),this.addClass("vjs-svg-icons-enabled")}}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"),n.spatialNavigation&&n.spatialNavigation.enabled&&(this.spatialNavigation=new ZSe(this),this.addClass("vjs-spatial-navigation-enabled")),Hf&&this.addClass("vjs-touch-enabled"),js||this.addClass("vjs-workinghover"),Nn.players[this.id_]=this;const i=r_.split(".")[0];this.addClass(`vjs-v${i}`),this.userActive(!0),this.reportUserActivity(),this.one("play",a=>this.listenForUserActivity_(a)),this.on("keydown",a=>this.handleKeyDown(a)),this.on("languagechange",a=>this.handleLanguagechange(a)),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"),Ps(ht,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ps(ht,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),Nn.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),GSe(this),Fs.names.forEach(t=>{const n=Fs[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=Ja(t);if(r){for(n=this.el_=t,t=this.tag=ht.createElement("video");n.children.length;)t.appendChild(n.firstChild);Jd(n,"video-js")||ml(n,"video-js"),n.appendChild(t),s=this.playerElIngest_=n,Object.keys(n).forEach(l=>{try{t[l]=n[l]}catch{}})}t.setAttribute("tabindex","-1"),i.tabindex="-1",Gi&&Tv&&(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(l){r&&l==="class"||n.setAttribute(l,i[l]),r&&t.setAttribute(l,i[l])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused");const a=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(l=>Z$[l]).map(l=>"vjs-device-"+l.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...a),he.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=pR("vjs-styles-dimensions");const l=So(".vjs-styles-defaults"),u=So("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.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 l=0;l<o.length;l++){const u=o.item(l);ml(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!s&&t.parentNode.insertBefore(n,t),o_(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"){an.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)){an.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,pa(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),CSe(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(he.VIDEOJS_NO_DYNAMIC_STYLE===!0){const o=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&&(o>=0&&(u.width=o),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(":"),a=i[1]/i[0];this.width_!==void 0?t=this.width_:this.height_!==void 0?t=this.height_/a:t=this.videoWidth()||300,this.height_!==void 0?n=this.height_:n=t*a,/^[^a-zA-Z]/.test(this.id())?r="dimensions-"+this.id():r=this.id()+"-dimensions",this.addClass(r),mR(this.styleEl_,`
.${r} {
width: ${t}px;
height: ${n}px;
}
.${r}.vjs-fluid:not(.vjs-audio-only-mode) {
padding-top: ${a*100}%;
}
`)}loadTech_(t,n){this.tech_&&this.unloadTech_();const s=jn(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 a={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};Fs.names.forEach(l=>{const u=Fs[l];a[u.getterName]=this[u.privateName]}),Object.assign(a,this.options_[s]),Object.assign(a,this.options_[r]),Object.assign(a,this.options_[t.toLowerCase()]),this.tag&&(a.tag=this.tag),n&&n.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);const o=Yt.getTech(t);if(!o)throw new Error(`No Tech named '${s}' exists! '${s}' should be registered using videojs.registerTech()'`);this.tech_=new o(a),this.tech_.ready(An(this,this.handleTechReady_),!0),Vk.jsonToTextTracks(this.textTracksJson_||[],this.tech_),iN.forEach(l=>{this.on(this.tech_,l,u=>this[`handleTech${jn(l)}_`](u))}),Object.keys(dy).forEach(l=>{this.on(this.tech_,l,u=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${dy[l]}_`].bind(this),event:u});return}this[`handleTech${dy[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)&&o_(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){Fs.names.forEach(t=>{const n=Fs[t];this[n.privateName]=this[n.getterName]()}),this.textTracksJson_=Vk.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&&an.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_}version(){return{"video.js":r_}}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 a=this.play();if(ef(a))return a.catch(o=>{throw i(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${o||""}`)})};let s;if(t==="any"&&!this.muted()?(s=this.play(),ef(s)&&(s=s.catch(n))):t==="muted"&&!this.muted()?s=n():s=this.play(),!!ef(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=QSe(this,n)),this.cache_.source=kn({},t,{src:n,type:s});const r=this.cache_.sources.filter(l=>l.src&&l.src===n),i=[],a=this.$$("source"),o=[];for(let l=0;l<a.length;l++){const u=Ja(a[l]);i.push(u),u.src&&u.src===n&&o.push(u.src)}o.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 a=this.techGet_("currentSrc");this.lastSource_.tech=a,this.updateSourceCaches_(a)})}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()?$i(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=ht[this.fsApi_.fullscreenElement]===s;!r&&s.matches&&(r=s.matches(":"+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();t&&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 WSe)return jSe(this.middleware_,this.tech_,t,n);if(t in qk)return jk(this.middleware_,this.tech_,t,n);try{this.tech_&&this.tech_[t](n)}catch(s){throw an(s),s}},!0)}techGet_(t){if(!(!this.tech_||!this.tech_.isReady_)){if(t in qSe)return zSe(this.middleware_,this.tech_,t);if(t in qk)return jk(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(n){throw this.tech_[t]===void 0?(an(`Video.js: ${t} method not defined for ${this.techName_} playback technology.`,n),n):n.name==="TypeError"?(an(`Video.js: ${t} unavailable on ${this.techName_} playback technology element.`,n),this.tech_.isReady_=!1,n):(an(n),n)}}}play(){return new Promise(t=>{this.play_(t)})}play_(t=$i){this.playCallbacks_.push(t);const n=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),s=!!(Ev||js);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n){this.waitToPlay_=a=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!n&&s&&this.load();return}const r=this.techGet_("play");s&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),r===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}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")||fi(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(t===void 0)return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime;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,isFinite(t)&&(this.cache_.currentTime=Number(t))}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=fi(0,0)),t}seekable(){let t=this.techGet_("seekable");return(!t||!t.length)&&(t=fi(0,0)),t}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return CR(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,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",o),n.off("fullscreenchange",a)}function a(){i(),s()}function o(u,c){i(),r(c)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);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",a),t.off("fullscreenchange",i)}function i(){r(),n()}function a(l,u){r(),s(u)}t.one("fullscreenchange",i),t.one("fullscreenerror",a);const o=t.exitFullscreenHelper_();o&&(o.then(r,r),o.then(n,s))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const t=ht[this.fsApi_.exitFullscreen]();return t&&$i(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=ht.documentElement.style.overflow,kr(ht,"keydown",this.boundFullWindowOnEscKey_),ht.documentElement.style.overflow="hidden",ml(ht.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(t){t.key==="Escape"&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,Ps(ht,"keydown",this.boundFullWindowOnEscKey_),ht.documentElement.style.overflow=this.docOrigOverflow,xv(ht.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(this.options_.enableDocumentPictureInPicture&&he.documentPictureInPicture){const t=ht.createElement(this.el().tagName);return t.classList=this.el().classList,t.classList.add("vjs-pip-container"),this.posterImage&&t.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&t.appendChild(this.titleBar.el().cloneNode(!0)),t.appendChild(Kt("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),he.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(n=>(dR(n),this.el_.parentNode.insertBefore(t,this.el_),n.document.body.appendChild(this.el_),n.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:n}),n.addEventListener("pagehide",s=>{const r=s.target.querySelector(".video-js");t.parentNode.replaceChild(r,t),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),n))}return"pictureInPictureEnabled"in ht&&this.disablePictureInPicture()===!1?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){if(he.documentPictureInPicture&&he.documentPictureInPicture.window)return he.documentPictureInPicture.window.close(),Promise.resolve();if("pictureInPictureEnabled"in ht)return ht.exitPictureInPicture()}handleKeyDown(t){const{userActions:n}=this.options_;!n||!n.hotkeys||(r=>{const i=r.tagName.toLowerCase();if(r.isContentEditable)return!0;const a=["button","checkbox","hidden","radio","reset","submit"];return i==="input"?a.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=a=>t.key.toLowerCase()==="f",muteKey:r=a=>t.key.toLowerCase()==="m",playPauseKey:i=a=>t.key.toLowerCase()==="k"||t.key.toLowerCase()===" "}=n;if(s.call(this,t)){t.preventDefault(),t.stopPropagation();const a=Ye.getComponent("FullscreenToggle");ht[this.fsApi_.fullscreenEnabled]!==!1&&a.prototype.handleClick.call(this,t)}else r.call(this,t)?(t.preventDefault(),t.stopPropagation(),Ye.getComponent("MuteToggle").prototype.handleClick.call(this,t)):i.call(this,t)&&(t.preventDefault(),t.stopPropagation(),Ye.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 a=Yt.getTech(i);if(a||(a=Ye.getComponent(i)),!a){an.error(`The "${i}" tech is undefined. Skipped browser support check for that tech.`);continue}if(a.isSupported()&&(n=a.canPlayType(t),n))return n}return""}selectSource(t){const n=this.options_.techOrder.map(o=>[o,Yt.getTech(o)]).filter(([o,l])=>l?l.isSupported():(an.error(`The "${o}" tech is undefined. Skipped browser support check for that tech.`),!1)),s=function(o,l,u){let c;return o.some(f=>l.some(h=>{if(c=u(f,h),c)return!0})),c};let r;const i=o=>(l,u)=>o(u,l),a=([o,l],u)=>{if(l.canPlaySource(u,this.options_[o.toLowerCase()]))return{source:u,tech:o}};return this.options_.sourceOrder?r=s(t,n,i(a)):r=s(n,t,a),r||!1}handleSrc_(t,n){if(typeof t>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const s=IR(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]),USe(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}HSe(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?_R(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(){if(this.tech_&&this.tech_.vhs){this.src(this.currentSource());return}this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const t=this.play();$i(t.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),pa(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:t,durationDisplay:n,progressControl:s,remainingTimeDisplay:r}=this.controlBar||{},{seekBar:i}=s||{};t&&t.updateContent(),n&&n.updateContent(),r&&r.updateContent(),i&&(i.update(),i.loadProgressBar&&i.loadProgressBar.update())}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.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(_o("beforeerror").forEach(n=>{const s=n(this,t);if(!(Wi(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_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new zn(t),this.addClass("vjs-error"),an.error(`(CODE:${this.error_.code} ${zn.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),_o("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=An(this,this.reportUserActivity),i=function(f){(f.screenX!==n||f.screenY!==s)&&(n=f.screenX,s=f.screenY,r())},a=function(){r(),this.clearInterval(t),t=this.setInterval(r,250)},o=function(f){r(),this.clearInterval(t)};this.on("mousedown",a),this.on("mousemove",i),this.on("mouseup",o),this.on("mouseleave",o);const l=this.getChild("controlBar");l&&!js&&!Ki&&(l.on("mouseenter",function(f){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(f){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r);let u;const c=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(u);const f=this.options_.inactivityTimeout;f<=0||(u=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},f))};this.setInterval(c,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_}updatePlayerHeightOnAudioOnlyMode_(){const t=this.getChild("ControlBar");!t||this.audioOnlyCache_.controlBarHeight===t.currentHeight()||(this.audioOnlyCache_.controlBarHeight=t.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}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.audioOnlyCache_.controlBarHeight=s,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(s),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),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(),pa(this)&&this.trigger("languagechange"))}languages(){return kn(Nn.prototype.options_.languages,this.languages_)}toJSON(){const t=kn(this.options_),n=t.tracks;t.tracks=[];for(let s=0;s<n.length;s++){let r=n[s];r=kn(r),r.player=void 0,t.tracks[s]=r}return t}createModal(t,n){n=n||{},n.content=t||"";const s=new Bc(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<g_.length;s++){const r=g_[s],i=this.breakpoints_[r];if(n<=i){if(t===r)return;t&&this.removeClass(um[t]),this.addClass(um[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({},kwe,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 um[this.breakpoint_]||""}loadMedia(t,n){if(!t||typeof t!="object")return;const s=this.crossOrigin();this.reset(),this.cache_.media=kn(t);const{artist:r,artwork:i,description:a,poster:o,src:l,textTracks:u,title:c}=this.cache_.media;!i&&o&&(this.cache_.media.artwork=[{src:o,type:sg(o)}]),s&&this.crossOrigin(s),l&&this.src(l),o&&this.poster(o),Array.isArray(u)&&u.forEach(f=>this.addRemoteTextTrack(f,!1)),this.titleBar&&this.titleBar.update({title:c,description:a||r||""}),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:sg(r.poster)}]),r}return kn(this.cache_.media)}static getTagSettings(t){const n={sources:[],tracks:[]},s=Ja(t),r=s["data-setup"];if(Jd(t,"vjs-fill")&&(s.fill=!0),Jd(t,"vjs-fluid")&&(s.fluid=!0),r!==null){const[i,a]=n_e(r||"{}");i&&an.error(i),Object.assign(s,a)}if(Object.assign(n,s),t.hasChildNodes()){const i=t.childNodes;for(let a=0,o=i.length;a<o;a++){const l=i[a],u=l.nodeName.toLowerCase();u==="source"?n.sources.push(Ja(l)):u==="track"&&n.tracks.push(Ja(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"))}}Fs.names.forEach(function(e){const t=Fs[e];Nn.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}});Nn.prototype.crossorigin=Nn.prototype.crossOrigin;Nn.players={};const _d=he.navigator;Nn.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:_d&&(_d.languages&&_d.languages[0]||_d.userLanguage||_d.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,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1};iN.forEach(function(e){Nn.prototype[`handleTech${jn(e)}_`]=function(){return this.trigger(e)}});Ye.registerComponent("Player",Nn);const rg="plugin",$u="activePlugins_",pu={},ig=e=>pu.hasOwnProperty(e),cm=e=>ig(e)?pu[e]:void 0,aN=(e,t)=>{e[$u]=e[$u]||{},e[$u][t]=!0},ag=(e,t,n)=>{const s=(n?"before":"")+"pluginsetup";e.trigger(s,t),e.trigger(s+":"+t.name,t)},Awe=function(e,t){const n=function(){ag(this,{name:e,plugin:t,instance:null},!0);const s=t.apply(this,arguments);return aN(this,e),ag(this,{name:e,plugin:t,instance:s}),s};return Object.keys(t).forEach(function(s){n[s]=t[s]}),n},lA=(e,t)=>(t.prototype.name=e,function(...n){ag(this,{name:e,plugin:t,instance:null},!0);const s=new t(this,...n);return this[e]=()=>s,ag(this,s.getEventHash()),s});class ir{constructor(t){if(this.constructor===ir)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),IS(this),delete this.trigger,bR(this,this.constructor.defaultState),aN(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 Lc(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[$u][t]=!1,this.player=this.state=null,n[t]=lA(t,pu[t])}static isBasic(t){const n=typeof t=="string"?cm(t):t;return typeof n=="function"&&!ir.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(ig(t))an.warn(`A plugin named "${t}" already exists. You may want to avoid re-registering plugins!`);else if(Nn.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 pu[t]=n,t!==rg&&(ir.isBasic(n)?Nn.prototype[t]=Awe(t,n):Nn.prototype[t]=lA(t,n)),n}static deregisterPlugin(t){if(t===rg)throw new Error("Cannot de-register base plugin.");ig(t)&&(delete pu[t],delete Nn.prototype[t])}static getPlugins(t=Object.keys(pu)){let n;return t.forEach(s=>{const r=cm(s);r&&(n=n||{},n[s]=r)}),n}static getPluginVersion(t){const n=cm(t);return n&&n.VERSION||""}}ir.getPlugin=cm;ir.BASE_PLUGIN_NAME=rg;ir.registerPlugin(rg,ir);Nn.prototype.usingPlugin=function(e){return!!this[$u]&&this[$u][e]===!0};Nn.prototype.hasPlugin=function(e){return!!ig(e)};function Iwe(e,t){let n=!1;return function(...s){return n||an.warn(e),n=!0,t.apply(this,s)}}function wi(e,t,n,s){return Iwe(`${t} is deprecated and will be removed in ${e}.0; please use ${n} instead.`,s)}var Dwe={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"};const oN=e=>e.indexOf("#")===0?e.slice(1):e;function He(e,t,n){let s=He.getPlayer(e);if(s)return t&&an.warn(`Player "${e}" is already initialised. Options will not be applied.`),n&&s.ready(n),s;const r=typeof e=="string"?So("#"+oN(e)):e;if(!Mc(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const a=("getRootNode"in r?r.getRootNode()instanceof he.ShadowRoot:!1)?r.getRootNode():r.ownerDocument.body;(!r.ownerDocument.defaultView||!a.contains(r))&&an.warn("The element supplied is not included in the DOM"),t=t||{},t.restoreEl===!0&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),_o("beforesetup").forEach(l=>{const u=l(r,kn(t));if(!Wi(u)||Array.isArray(u)){an.error("please return an object in beforesetup hooks");return}t=kn(t,u)});const o=Ye.getComponent("Player");return s=new o(r,t,n),_o("setup").forEach(l=>l(s)),s}He.hooks_=ua;He.hooks=_o;He.hook=cSe;He.hookOnce=dSe;He.removeHook=j$;if(he.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&Nc()){let e=So(".vjs-styles-defaults");if(!e){e=pR("vjs-styles-defaults");const t=So("head");t&&t.insertBefore(e,t.firstChild),mR(e,`
.video-js {
width: 300px;
height: 150px;
}
.vjs-fluid:not(.vjs-audio-only-mode) {
padding-top: 56.25%
}
`)}}u_(1,He);He.VERSION=r_;He.options=Nn.prototype.options_;He.getPlayers=()=>Nn.players;He.getPlayer=e=>{const t=Nn.players;let n;if(typeof e=="string"){const s=oN(e),r=t[s];if(r)return r;n=So("#"+s)}else n=e;if(Mc(n)){const{player:s,playerId:r}=n;if(s||t[r])return s||t[r]}};He.getAllPlayers=()=>Object.keys(Nn.players).map(e=>Nn.players[e]).filter(Boolean);He.players=Nn.players;He.getComponent=Ye.getComponent;He.registerComponent=(e,t)=>(Yt.isTech(t)&&an.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Ye.registerComponent.call(Ye,e,t));He.getTech=Yt.getTech;He.registerTech=Yt.registerTech;He.use=VSe;Object.defineProperty(He,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(He.middleware,"TERMINATOR",{value:ng,writeable:!1,enumerable:!0});He.browser=Z$;He.obj=pSe;He.mergeOptions=wi(9,"videojs.mergeOptions","videojs.obj.merge",kn);He.defineLazyProperty=wi(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",Sv);He.bind=wi(9,"videojs.bind","native Function.prototype.bind",An);He.registerPlugin=ir.registerPlugin;He.deregisterPlugin=ir.deregisterPlugin;He.plugin=(e,t)=>(an.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),ir.registerPlugin(e,t));He.getPlugins=ir.getPlugins;He.getPlugin=ir.getPlugin;He.getPluginVersion=ir.getPluginVersion;He.addLanguage=function(e,t){return e=(""+e).toLowerCase(),He.options.languages=kn(He.options.languages,{[e]:t}),He.options.languages[e]};He.log=an;He.createLogger=q$;He.time=ISe;He.createTimeRange=wi(9,"videojs.createTimeRange","videojs.time.createTimeRanges",fi);He.createTimeRanges=wi(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",fi);He.formatTime=wi(9,"videojs.formatTime","videojs.time.formatTime",Dl);He.setFormatTime=wi(9,"videojs.setFormatTime","videojs.time.setFormatTime",wR);He.resetFormatTime=wi(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",TR);He.parseUrl=wi(9,"videojs.parseUrl","videojs.url.parseUrl",PS);He.isCrossOrigin=wi(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",$v);He.EventTarget=Ar;He.any=AS;He.on=kr;He.one=Ov;He.off=Ps;He.trigger=Lc;He.xhr=G8;He.TextTrack=Th;He.AudioTrack=kR;He.VideoTrack=AR;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{He[e]=function(){return an.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),fR[e].apply(null,arguments)}});He.computedStyle=wi(9,"videojs.computedStyle","videojs.dom.computedStyle",mc);He.dom=fR;He.fn=TSe;He.num=owe;He.str=kSe;He.url=BSe;He.Error=Dwe;/*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */class Owe{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 og extends He.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[Symbol.iterator]=()=>t.levels_.values(),t}addQualityLevel(t){let n=this.getQualityLevelById(t.id);if(n)return n;const s=this.levels_.length;return n=new Owe(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}}og.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const e in og.prototype.allowedEvents_)og.prototype["on"+e]=null;var lN="4.1.0";const Pwe=function(e,t){const n=e.qualityLevels,s=new og,r=function(){s.dispose(),e.qualityLevels=n,e.off("dispose",r)};return e.on("dispose",r),e.qualityLevels=()=>s,e.qualityLevels.VERSION=lN,s},uN=function(e){return Pwe(this,He.obj.merge({},e))};He.registerPlugin("qualityLevels",uN);uN.VERSION=lN;/*! @name @videojs/http-streaming @version 3.13.1 @license Apache-2.0 */const er=pv,lg=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,ei=e=>He.log.debug?He.log.debug.bind(He,"VHS:",`${e} >`):function(){};function pn(...e){const t=He.obj||He;return(t.merge||t.mergeOptions).apply(t,e)}function Cs(...e){const t=He.time||He;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}function $we(e){if(e.length===0)return"Buffered Ranges are empty";let t=`Buffered Ranges:
`;for(let n=0;n<e.length;n++){const s=e.start(n),r=e.end(n);t+=`${s} --> ${r}. Duration (${r-s})
`}return t}const Ri=1/30,Ni=Ri*3,cN=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 Cs(n)},mu=function(e,t){return cN(e,function(n,s){return n-Ni<=t&&s+Ni>=t})},Cp=function(e,t){return cN(e,function(n){return n-Ri>=t})},Rwe=function(e){if(e.length<2)return Cs();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 Cs(t)},Nwe=function(e,t){let n=null,s=null,r=0;const i=[],a=[];if(!e||!e.length||!t||!t.length)return Cs();let o=e.length;for(;o--;)i.push({time:e.start(o),type:"start"}),i.push({time:e.end(o),type:"end"});for(o=t.length;o--;)i.push({time:t.start(o),type:"start"}),i.push({time:t.end(o),type:"end"});for(i.sort(function(l,u){return l.time-u.time}),o=0;o<i.length;o++)i[o].type==="start"?(r++,r===2&&(n=i[o].time)):i[o].type==="end"&&(r--,r===1&&(s=i[o].time)),n!==null&&s!==null&&(a.push([n,s]),n=null,s=null);return Cs(a)},dN=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(", ")},Mwe=function(e,t,n=1){return((e.length?e.end(e.length-1):0)-t)/n},ol=e=>{const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},Lwe=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},fy=function(e){if(!(!e||!e.length||!e.end))return e.end(e.length-1)},XS=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},QS=(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},v_=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),[]),fN=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},hN=({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},pN=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const n=fN(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},Bwe=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+=QS(e,r),typeof r.start<"u")return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},Fwe=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+=QS(e,s),typeof s.end<"u")return{result:s.end-n,precise:!0}}return{result:-1,precise:!1}},mN=function(e,t,n){if(typeof t>"u"&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const s=Bwe(e,t);if(s.precise)return s.result;const r=Fwe(e,t);return r.precise?r.result:s.result+n},gN=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 he.Infinity}return mN(e,t,n)},tf=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},vN=function(e,t,n,s){if(!e||!e.segments)return null;if(e.endList)return gN(e);if(t===null)return null;t=t||0;let r=mN(e,e.mediaSequence+e.segments.length,t);return n&&(s=typeof s=="number"?s:pN(null,e),r-=s),Math.max(0,r)},Vwe=function(e,t,n){const r=t||0;let i=vN(e,t,!0,n);return i===null?Cs():(i<r&&(i=r),Cs(r,i))},Uwe=function({playlist:e,currentTime:t,startingSegmentIndex:n,startingPartIndex:s,startTime:r,exactManifestTimings:i}){let a=t-r;const o=v_(e);let l=0;for(let u=0;u<o.length;u++){const c=o[u];if(n===c.segmentIndex&&!(typeof s=="number"&&typeof c.partIndex=="number"&&s!==c.partIndex)){l=u;break}}if(a<0){if(l>0)for(let u=l-1;u>=0;u--){const c=o[u];if(a+=c.duration,i){if(a<0)continue}else if(a+Ri<=0)continue;return{partIndex:c.partIndex,segmentIndex:c.segmentIndex,startTime:r-tf({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:u})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t}}if(l<0){for(let u=l;u<0;u++)if(a-=e.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t};l=0}for(let u=l;u<o.length;u++){const c=o[u];a-=c.duration;const f=c.duration>Ri,h=a===0,g=f&&a+Ri>=0;if(!((h||g)&&u!==o.length-1)){if(i){if(a>0)continue}else if(a-Ri>=0)continue;return{partIndex:c.partIndex,segmentIndex:c.segmentIndex,startTime:r+tf({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:u})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:t}},yN=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},JS=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Mv=function(e){const t=yN(e);return!e.disabled&&!t},Hwe=function(e){return e.disabled},zwe=function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},bN=function(e,t){return t.attributes&&t.attributes[e]},jwe=function(e,t,n,s=0){return bN("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-s*8)/t:NaN},y_=(e,t)=>{if(e.playlists.length===1)return!0;const n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return e.playlists.filter(s=>Mv(s)?(s.attributes.BANDWIDTH||0)<n:!1).length===0},ZS=(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),uA=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},kh=e=>{if(!e||!e.playlists||!e.playlists.length)return uA(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=>e$(i))||uA(e,i=>ZS(n,i))))return!1}return!0};var tr={liveEdgeDelay:pN,duration:gN,seekable:Vwe,getMediaInfoForTime:Uwe,isEnabled:Mv,isDisabled:Hwe,isExcluded:yN,isIncompatible:JS,playlistEnd:vN,isAes:zwe,hasAttribute:bN,estimateSegmentRequestTime:jwe,isLowestEnabledRendition:y_,isAudioOnly:kh,playlistMatch:ZS,segmentDurationWithParts:QS};const{log:_N}=He,Ru=(e,t)=>`${e}-${t}`,SN=(e,t,n)=>`placeholder-uri-${e}-${t}-${n}`,qwe=({onwarn:e,oninfo:t,manifestString:n,customTagParsers:s=[],customTagMappers:r=[],llhls:i})=>{const a=new o1e;e&&a.on("warn",e),t&&a.on("info",t),s.forEach(u=>a.addParser(u)),r.forEach(u=>a.addTagMapper(u)),a.push(n),a.end();const o=a.manifest;if(i||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(u){o.hasOwnProperty(u)&&delete o[u]}),o.segments&&o.segments.forEach(function(u){["parts","preloadHints"].forEach(function(c){u.hasOwnProperty(c)&&delete u[c]})})),!o.targetDuration){let u=10;o.segments&&o.segments.length&&(u=o.segments.reduce((c,f)=>Math.max(c,f.duration),0)),e&&e({message:`manifest has no targetDuration defaulting to ${u}`}),o.targetDuration=u}const l=fN(o);if(l.length&&!o.partTargetDuration){const u=l.reduce((c,f)=>Math.max(c,f.duration),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${u}`}),_N.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.")),o.partTargetDuration=u}return o},Uc=(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)}})},wN=({playlist:e,uri:t,id:n})=>{e.id=n,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},Wwe=e=>{let t=e.playlists.length;for(;t--;){const n=e.playlists[t];wN({playlist:n,id:Ru(t,n.uri)}),n.resolvedUri=er(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||_N.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},Kwe=e=>{Uc(e,t=>{t.uri&&(t.resolvedUri=er(e.uri,t.uri))})},Gwe=(e,t)=>{const n=Ru(0,t),s={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:he.location.href,resolvedUri:he.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return s.playlists[n]=s.playlists[0],s.playlists[t]=s.playlists[0],s},TN=(e,t,n=SN)=>{e.uri=t;for(let r=0;r<e.playlists.length;r++)if(!e.playlists[r].uri){const i=`placeholder-uri-${r}`;e.playlists[r].uri=i}const s=kh(e);Uc(e,(r,i,a,o)=>{if(!r.playlists||!r.playlists.length){if(s&&i==="AUDIO"&&!r.uri)for(let l=0;l<e.playlists.length;l++){const u=e.playlists[l];if(u.attributes&&u.attributes.AUDIO&&u.attributes.AUDIO===a)return}r.playlists=[qn({},r)]}r.playlists.forEach(function(l,u){const c=n(i,a,o,l),f=Ru(u,c);l.uri?l.resolvedUri=l.resolvedUri||er(e.uri,l.uri):(l.uri=u===0?c:f,l.resolvedUri=l.uri),l.id=l.id||f,l.attributes=l.attributes||{},e.playlists[l.id]=l,e.playlists[l.uri]=l})}),Wwe(e),Kwe(e)};class cA{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(t=[]){if(this.offset_!==null||!t.length)return;const[n]=t;n.programDateTime!==void 0&&(this.offset_=n.programDateTime/1e3)}setPendingDateRanges(t=[]){if(!t.length)return;const[n]=t,s=n.startDate.getTime();this.trimProcessedDateRanges_(s),this.pendingDateRanges_=t.reduce((r,i)=>(r.set(i.id,i),r),new Map)}processDateRange(t){this.pendingDateRanges_.delete(t.id),this.processedDateRanges_.set(t.id,t)}getDateRangesToProcess(){if(this.offset_===null)return[];const t={},n=[];this.pendingDateRanges_.forEach((s,r)=>{if(!this.processedDateRanges_.has(r)&&(s.startTime=s.startDate.getTime()/1e3-this.offset_,s.processDateRange=()=>this.processDateRange(s),n.push(s),!!s.class))if(t[s.class]){const i=t[s.class].push(s);s.classListIndex=i-1}else t[s.class]=[s],s.classListIndex=0});for(const s of n){const r=t[s.class]||[];s.endDate?s.endTime=s.endDate.getTime()/1e3-this.offset_:s.endOnNext&&r[s.classListIndex+1]?s.endTime=r[s.classListIndex+1].startTime:s.duration?s.endTime=s.startTime+s.duration:s.plannedDuration?s.endTime=s.startTime+s.plannedDuration:s.endTime=s.startTime}return n}trimProcessedDateRanges_(t){new Map(this.processedDateRanges_).forEach((s,r)=>{s.startDate.getTime()<t&&this.processedDateRanges_.delete(r)})}}const CN=22,yl=({requestType:e,request:t,error:n,parseFailure:s})=>{const r=t.status<200||t.status>299,i=t.status>=400&&t.status<=499,a={uri:t.uri,requestType:e},o=r&&!i||s;if(n&&i)a.error=qn({},n),a.errorType=He.Error.NetworkRequestFailed;else if(t.aborted)a.errorType=He.Error.NetworkRequestAborted;else if(t.timedout)a.erroType=He.Error.NetworkRequestTimeout;else if(o){const l=s?He.Error.NetworkBodyParserFailed:He.Error.NetworkBadStatus;a.errorType=l,a.status=t.status,a.headers=t.headers}return a},{EventTarget:Ywe}=He,Xwe=(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||[],a=hN(t)-1;a>-1&&a!==i.length-1&&(n._HLS_part=a),(a>-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 he.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},Qwe=(e,t)=>{if(!e)return t;const n=pn(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]=pn(e.parts[s],t.parts[s]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},Jwe=(e,t,n)=>{const s=e.slice(),r=t.slice();n=n||0;const i=[];let a;for(let o=0;o<r.length;o++){const l=s[o+n],u=r[o];l?(a=l.map||a,i.push(Qwe(l,u))):(a&&!u.map&&(u.map=a),i.push(u))}return i},EN=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=er(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=er(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=er(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=er(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(n=>{n.resolvedUri||(n.resolvedUri=er(t,n.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(n=>{n.resolvedUri||(n.resolvedUri=er(t,n.uri))})},xN=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},kN=(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,b_=(e,t,n=kN)=>{const s=pn(e,{}),r=s.playlists[t.id];if(!r||n(r,t))return null;t.segments=xN(t);const i=pn(r,t);if(i.preloadSegment&&!t.preloadSegment&&delete i.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(let a=0;a<t.skip.skippedSegments;a++)t.segments.unshift({skipped:!0})}i.segments=Jwe(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}i.segments.forEach(a=>{EN(a,i.resolvedUri)});for(let a=0;a<s.playlists.length;a++)s.playlists[a].id===t.id&&(s.playlists[a]=i);return s.playlists[t.id]=i,s.playlists[t.uri]=i,Uc(e,(a,o,l,u)=>{if(a.playlists)for(let c=0;c<a.playlists.length;c++)t.id===a.playlists[c].id&&(a.playlists[c]=i)}),s},__=(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},dA=(e,t,n)=>{if(!e)return;const s=[];return e.forEach(r=>{if(!r.attributes)return;const{BANDWIDTH:i,RESOLUTION:a,CODECS:o}=r.attributes;s.push({id:r.id,bandwidth:i,resolution:a,codecs:o})}),{type:t,isLive:n,renditions:s}};class gu extends Ywe{constructor(t,n,s={}){if(super(),!t)throw new Error("A non-empty playlist URL or object is required");this.logger_=ei("PlaylistLoader");const{withCredentials:r=!1}=s;this.src=t,this.vhs_=n,this.withCredentials=r,this.addDateRangesToTextTrack_=s.addDateRangesToTextTrack;const i=n.options_;this.customTagParsers=i&&i.customTagParsers||[],this.customTagMappers=i&&i.customTagMappers||[],this.llhls=i&&i.llhls,this.dateRangesStorage_=new cA,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const t=this.media();if(!t)return;this.dateRangesStorage_.setOffset(t.segments),this.dateRangesStorage_.setPendingDateRanges(t.dateRanges);const n=this.dateRangesStorage_.getDateRangesToProcess();!n.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(n)}handleMediaupdatetimeout_(){if(this.state!=="HAVE_METADATA")return;const t=this.media();let n=er(this.main.uri,t.uri);this.llhls&&(n=Xwe(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials,requestType:"hls-playlist"},(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,metadata:yl({requestType:t.requestType,request:t,error:t.error})},this.trigger("error")}parseManifest_({url:t,manifestString:n}){try{return qwe({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})}catch(s){this.error=s,this.error.metadata={errorType:He.Error.StreamingHlsPlaylistParserError,error:s}}}haveMetadata({playlistString:t,playlistObject:n,url:s,id:r}){this.request=null,this.state="HAVE_METADATA";const i={playlistInfo:{type:"media",uri:s}};this.trigger({type:"playlistparsestart",metadata:i});const a=n||this.parseManifest_({url:s,manifestString:t});a.lastRequest=Date.now(),wN({playlist:a,uri:s,id:r});const o=b_(this.main,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,o?(this.main=o,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(__(this.media(),!!o)),i.parsedPlaylist=dA(this.main.playlists,i.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:i}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),he.clearTimeout(this.mediaUpdateTimeout),he.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new cA,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(he.clearTimeout(this.finalRenditionTimeout),n){const o=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=he.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_(__(t,!0)),!r)return;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;const a={playlistInfo:{type:"media",uri:t.uri}};this.trigger({type:"playlistrequeststart",metadata:a}),this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(o,l)=>{if(this.request){if(t.lastRequest=Date.now(),t.resolvedUri=lg(t.resolvedUri,l),o)return this.playlistRequestError(this.request,t,s);this.trigger({type:"playlistrequestcomplete",metadata:a}),this.haveMetadata({playlistString:l.responseText,url:t.uri,id:t.id}),s==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}pause(){this.mediaUpdateTimeout&&(he.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&&(he.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const n=this.media();if(t){const s=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=he.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&&(he.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=he.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=he.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}const t={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(n,s)=>{if(!this.request)return;if(this.request=null,n)return this.error={status:s.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:s.responseText,code:2,metadata:yl({requestType:s.requestType,request:s,error:n})},this.state==="HAVE_NOTHING"&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:t}),this.src=lg(this.src,s),this.trigger({type:"playlistparsestart",metadata:t});const r=this.parseManifest_({manifestString:s.responseText,url:this.src});t.parsedPlaylist=dA(r.playlists,t.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:t}),this.setupInitialPlaylist(r)})}srcUri(){return typeof this.src=="string"?this.src:this.src.uri}setupInitialPlaylist(t){if(this.state="HAVE_MAIN_MANIFEST",t.playlists){this.main=t,TN(this.main,this.srcUri()),t.playlists.forEach(s=>{s.segments=xN(s),s.segments.forEach(r=>{EN(r,s.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}const n=this.srcUri()||he.location.href;this.main=Gwe(t,n),this.haveMetadata({playlistObject:t,url:n,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(t,n){const s=this.main,r=t.ID;let i=s.playlists.length;for(;i--;){const a=s.playlists[i];if(a.attributes["PATHWAY-ID"]===r){const o=a.resolvedUri,l=a.id;if(n){const u=this.createCloneURI_(a.resolvedUri,t),c=Ru(r,u),f=this.createCloneAttributes_(r,a.attributes),h=this.createClonePlaylist_(a,c,t,f);s.playlists[i]=h,s.playlists[c]=h,s.playlists[u]=h}else s.playlists.splice(i,1);delete s.playlists[l],delete s.playlists[o]}}this.updateOrDeleteCloneMedia(t,n)}updateOrDeleteCloneMedia(t,n){const s=this.main,r=t.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(i=>{if(!(!s.mediaGroups[i]||!s.mediaGroups[i][r])){for(const a in s.mediaGroups[i])if(a===r){for(const o in s.mediaGroups[i][a])s.mediaGroups[i][a][o].playlists.forEach((u,c)=>{const f=s.playlists[u.id],h=f.id,g=f.resolvedUri;delete s.playlists[h],delete s.playlists[g]});delete s.mediaGroups[i][a]}}}),n&&this.createClonedMediaGroups_(t)}addClonePathway(t,n={}){const s=this.main,r=s.playlists.length,i=this.createCloneURI_(n.resolvedUri,t),a=Ru(t.ID,i),o=this.createCloneAttributes_(t.ID,n.attributes),l=this.createClonePlaylist_(n,a,t,o);s.playlists[r]=l,s.playlists[a]=l,s.playlists[i]=l,this.createClonedMediaGroups_(t)}createClonedMediaGroups_(t){const n=t.ID,s=t["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(i=>{if(!(!r.mediaGroups[i]||r.mediaGroups[i][n]))for(const a in r.mediaGroups[i]){if(a===s)r.mediaGroups[i][n]={};else continue;for(const o in r.mediaGroups[i][a]){const l=r.mediaGroups[i][a][o];r.mediaGroups[i][n][o]=qn({},l);const u=r.mediaGroups[i][n][o],c=this.createCloneURI_(l.resolvedUri,t);u.resolvedUri=c,u.uri=c,u.playlists=[],l.playlists.forEach((f,h)=>{const g=r.playlists[f.id],m=SN(i,n,o),p=Ru(n,m);if(g&&!r.playlists[p]){const y=this.createClonePlaylist_(g,p,t),v=y.resolvedUri;r.playlists[p]=y,r.playlists[v]=y}u.playlists[h]=this.createClonePlaylist_(f,p,t)})}}})}createClonePlaylist_(t,n,s,r){const i=this.createCloneURI_(t.resolvedUri,s),a={resolvedUri:i,uri:i,id:n};return t.segments&&(a.segments=[]),r&&(a.attributes=r),pn(t,a)}createCloneURI_(t,n){const s=new URL(t);s.hostname=n["URI-REPLACEMENT"].HOST;const r=n["URI-REPLACEMENT"].PARAMS;for(const i of Object.keys(r))s.searchParams.set(i,r[i]);return s.href}createCloneAttributes_(t,n){const s={"PATHWAY-ID":t};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{n[r]&&(s[r]=t)}),s}getKeyIdSet(t){if(t.contentProtection){const n=new Set;for(const s in t.contentProtection){const r=t.contentProtection[s].attributes.keyId;r&&n.add(r.toLowerCase())}return n}}}const S_=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)},Zwe=(e,t)=>{if(!e||!e.size)return;let n=t;return e.forEach(s=>{n=s(n)}),n},eTe=(e,t,n,s)=>{!e||!e.size||e.forEach(r=>{r(t,n,s)})},AN=function(){const e=function t(n,s){n=pn({timeout:45e3},n);const r=t.beforeRequest||He.Vhs.xhr.beforeRequest,i=t._requestCallbackSet||He.Vhs.xhr._requestCallbackSet||new Set,a=t._responseCallbackSet||He.Vhs.xhr._responseCallbackSet;r&&typeof r=="function"&&(He.log.warn("beforeRequest is deprecated, use onRequest instead."),i.add(r));const o=He.Vhs.xhr.original===!0?He.xhr:He.Vhs.xhr,l=Zwe(i,n);i.delete(r);const u=o(l||n,function(f,h){return eTe(a,u,f,h),S_(u,f,h,s)}),c=u.abort;return u.abort=function(){return u.aborted=!0,c.apply(u,arguments)},u.uri=n.uri,u.requestType=n.requestType,u.requestTime=Date.now(),u};return e.original=!0,e},tTe=function(e){let t;const n=e.offset;return typeof e.offset=="bigint"||typeof e.length=="bigint"?t=he.BigInt(e.offset)+he.BigInt(e.length)-he.BigInt(1):t=e.offset+e.length-1,"bytes="+n+"-"+t},w_=function(e){const t={};return e.byterange&&(t.Range=tTe(e.byterange)),t},nTe=function(e,t){return e.start(t)+"-"+e.end(t)},sTe=function(e,t){const n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},rTe=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},IN=function(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];n$(s)?t[n]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[n]=s}),t},ug=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},DN=function(e){return e.resolvedUri},ON=e=>{const t=Array.prototype.slice.call(e),n=16;let s="",r,i;for(let a=0;a<t.length/n;a++)r=t.slice(a*n,a*n+n).map(sTe).join(""),i=t.slice(a*n,a*n+n).map(rTe).join(""),s+=r+" "+i+`
`;return s},iTe=({bytes:e})=>ON(e),aTe=e=>{let t="",n;for(n=0;n<e.length;n++)t+=nTe(e,n)+" ";return t};var oTe=Object.freeze({__proto__:null,createTransferableMessage:IN,initSegmentId:ug,segmentKeyId:DN,hexDump:ON,tagDump:iTe,textRanges:aTe});const PN=.25,lTe=(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)},uTe=e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds,cTe=(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<new Date(s.dateTimeObject))return null;for(let l=0;l<t.segments.length-1;l++){s=t.segments[l];const u=new Date(t.segments[l+1].dateTimeObject);if(n<u)break}const r=t.segments[t.segments.length-1],i=r.dateTimeObject,a=r.videoTimingInfo?uTe(r.videoTimingInfo):r.duration+r.duration*PN,o=new Date(i.getTime()+a*1e3);return n>o?null:(n>new Date(i)&&(s=r),{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:tr.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*PN)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},hTe=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},pTe=({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=lTe(t,s.segment);return i&&(r.programDateTime=i.toISOString()),n(null,r)},$N=({programTime:e,playlist:t,retryCount:n=2,seekTo:s,pauseAfterSeek:r=!0,tech:i,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(typeof e>"u"||!t||!s)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!i.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!hTe(t))return a({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const o=cTe(e,t);if(!o)return a({message:`${e} was not found in the stream`});const l=o.segment,u=fTe(l.dateTimeObject,e);if(o.type==="estimate"){if(n===0)return a({message:`${e} is not buffered yet. Try again`});s(o.estimatedStart+u),i.one("seeked",()=>{$N({programTime:e,playlist:t,retryCount:n-1,seekTo:s,pauseAfterSeek:r,tech:i,callback:a})});return}const c=l.start+u,f=()=>a(null,i.currentTime());i.one("seeked",f),r&&i.pause(),s(c)},hy=(e,t)=>{if(e.readyState===4)return t()},mTe=(e,t,n,s)=>{let r=[],i,a=!1;const o=function(f,h,g,m){return h.abort(),a=!0,n(f,h,g,m)},l=function(f,h){if(a)return;if(f)return f.metadata=yl({requestType:s,request:h,error:f}),o(f,h,"",r);const g=h.responseText.substring(r&&r.byteLength||0,h.responseText.length);if(r=b1e(r,s$(g,!0)),i=i||Id(r),r.length<10||i&&r.length<i+2)return hy(h,()=>o(f,h,"",r));const m=bS(r);return m==="ts"&&r.length<188?hy(h,()=>o(f,h,"",r)):!m&&r.length<376?hy(h,()=>o(f,h,"",r)):o(null,h,m,r)},c=t({uri:e,beforeSend(f){f.overrideMimeType("text/plain; charset=x-user-defined"),f.addEventListener("progress",function({total:h,loaded:g}){return S_(f,null,{statusCode:f.status},l)})}},function(f,h){return S_(c,f,h,l)});return c},{EventTarget:gTe}=He,fA=function(e,t){if(!kN(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,a=r.byterange;if(i&&!a||!i&&a||i.offset!==a.offset||i.length!==a.length)return!1}return!0},vTe=(e,t,n,s)=>{const r=s.attributes.NAME||n;return`placeholder-uri-${e}-${t}-${r}`},yTe=({mainXml:e,srcUrl:t,clientOffset:n,sidxMapping:s,previousManifest:r})=>{const i=H2e(e,{manifestUri:t,clientOffset:n,sidxMapping:s,previousManifest:r});return TN(i,t,vTe),i},bTe=(e,t)=>{Uc(e,(n,s,r,i)=>{i in t.mediaGroups[s][r]||delete e.mediaGroups[s][r][i]})},_Te=(e,t,n)=>{let s=!0,r=pn(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let i=0;i<t.playlists.length;i++){const a=t.playlists[i];if(a.sidx){const l=yv(a.sidx);n&&n[l]&&n[l].sidx&&gS(a,n[l].sidx,a.sidx.resolvedUri)}const o=b_(r,a,fA);o&&(r=o,s=!1)}return Uc(t,(i,a,o,l)=>{if(i.playlists&&i.playlists.length){const u=i.playlists[0].id,c=b_(r,i.playlists[0],fA);c&&(r=c,l in r.mediaGroups[a][o]||(r.mediaGroups[a][o][l]=i),r.mediaGroups[a][o][l].playlists[0]=r.playlists[u],s=!1)}}),bTe(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(s=!1),s?null:r},STe=(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,hA=(e,t)=>{const n={};for(const s in e){const i=e[s].sidx;if(i){const a=yv(i);if(!t[a])break;const o=t[a].sidxInfo;STe(o,i)&&(n[a]=t[a])}}return n},wTe=(e,t)=>{let s=hA(e.playlists,t);return Uc(e,(r,i,a,o)=>{if(r.playlists&&r.playlists.length){const l=r.playlists;s=pn(s,hA(l,t))}}),s};class T_ extends gTe{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,this.addMetadataToTextTrack=s.addMetadataToTextTrack,!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_=ei("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,metadata:t.metadata},s&&(this.state=s),this.trigger("error"),!0}addSidxSegments_(t,n,s){const r=t.sidx&&yv(t.sidx);if(!t.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r]){this.mediaRequest_=he.setTimeout(()=>s(!1),0);return}const i=lg(t.sidx.resolvedUri),a=(l,u)=>{if(this.requestErrored_(l,u,n))return;const c=this.mainPlaylistLoader_.sidxMapping_,{requestType:f}=u;let h;try{h=G2e(Ut(u.response).subarray(8))}catch(g){g.metadata=yl({requestType:f,request:u,parseFailure:!0}),this.requestErrored_(g,u,n);return}return c[r]={sidxInfo:t.sidx,sidx:h},gS(t,h,t.sidx.resolvedUri),s(!0)},o="dash-sidx";this.request=mTe(i,this.vhs_.xhr,(l,u,c,f)=>{if(l)return a(l,u);if(!c||c!=="mp4"){const m=c||"unknown";return a({status:u.status,message:`Unsupported ${m} container type for sidx segment at URL: ${i}`,response:"",playlist:t,internal:!0,playlistExclusionDuration:1/0,code:2},u)}const{offset:h,length:g}=t.sidx.byterange;if(f.length>=g+h)return a(l,{response:f.subarray(h,h+g),status:u.status,uri:u.uri});this.request=this.vhs_.xhr({uri:i,responseType:"arraybuffer",requestType:"dash-sidx",headers:w_({byterange:t.sidx.byterange})},a)},o)}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},he.clearTimeout(this.minimumUpdatePeriodTimeout_),he.clearTimeout(this.mediaRequest_),he.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(),he.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(he.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)}load(t){he.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const n=this.media();if(t){const s=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=he.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_=he.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((t,n)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(t){const n={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:n}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(s,r)=>{if(s){const{requestType:a}=r;s.metadata=yl({requestType:a,request:r,error:s})}if(this.requestErrored_(s,r)){this.state==="HAVE_NOTHING"&&(this.started=!1);return}this.trigger({type:"manifestrequestcomplete",metadata:n});const i=r.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=r.responseText,r.responseHeaders&&r.responseHeaders.date?this.mainLoaded_=Date.parse(r.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=lg(this.mainPlaylistLoader_.srcUrl,r),i){this.handleMain_(),this.syncClientServerClock_(()=>t(r,i));return}return t(r,i)})}syncClientServerClock_(t){const n=z2e(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:er(this.mainPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(s,r)=>{if(!this.request)return;if(s){const{requestType:a}=r;return this.error.metadata=yl({requestType:a,request:r,error:s}),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,n={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestparsestart",metadata:n});let s;try{s=yTe({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:t})}catch(i){this.error=i,this.error.metadata={errorType:He.Error.StreamingDashManifestParserError,error:i},this.trigger("error")}t&&(s=_Te(t,s,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=s||t;const r=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(r&&r!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=r),(!t||s&&s.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(s),s){const{duration:i,endList:a}=s,o=[];s.playlists.forEach(u=>{o.push({id:u.id,bandwidth:u.attributes.BANDWIDTH,resolution:u.attributes.RESOLUTION,codecs:u.attributes.CODECS})});const l={duration:i,isLive:!a,renditions:o};n.parsedManifest=l,this.trigger({type:"manifestparsecomplete",metadata:n})}return!!s}updateMinimumUpdatePeriodTimeout_(){const t=this.mainPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(he.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_=he.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=he.setTimeout(()=>{this.trigger("mediaupdatetimeout"),r()},__(this.media(),!!s)))};r()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(t){if(t&&this.mainPlaylistLoader_.main.eventStream){const n=this.mainPlaylistLoader_.main.eventStream.map(s=>({cueTime:s.start,frames:[{data:s.messageData}]}));this.addMetadataToTextTrack("EventStream",n,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(t){if(t.contentProtection){const n=new Set;for(const s in t.contentProtection){const r=t.contentProtection[s].attributes["cenc:default_KID"];r&&n.add(r.replace(/-/g,"").toLowerCase())}return n}}}var ds={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 TTe=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},RN=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},CTe=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())}},NN=function(e){return function(){const t=CTe(e),n=RN(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}},MN=function(e){return`var browserWorkerPolyFill = ${RN.toString()};
browserWorkerPolyFill(self);
`+e},LN=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},ETe=MN(LN(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 _={};this.on=function(x,D){_[x]||(_[x]=[]),_[x]=_[x].concat(D)},this.off=function(x,D){var A;return _[x]?(A=_[x].indexOf(D),_[x]=_[x].slice(),_[x].splice(A,1),A>-1):!1},this.trigger=function(x){var D,A,F,K;if(D=_[x],!!D)if(arguments.length===2)for(F=D.length,A=0;A<F;++A)D[A].call(this,arguments[1]);else{for(K=[],A=arguments.length,A=1;A<arguments.length;++A)K.push(arguments[A]);for(F=D.length,A=0;A<F;++A)D[A].apply(this,K)}},this.dispose=function(){_={}}}};t.prototype.pipe=function(_){return this.on("data",function(x){_.push(x)}),this.on("done",function(x){_.flush(x)}),this.on("partialdone",function(x){_.partialFlush(x)}),this.on("endedtimeline",function(x){_.endTimeline(x)}),this.on("reset",function(x){_.reset(x)}),_},t.prototype.push=function(_){this.trigger("data",_)},t.prototype.flush=function(_){this.trigger("done",_)},t.prototype.partialFlush=function(_){this.trigger("partialdone",_)},t.prototype.endTimeline=function(_){this.trigger("endedtimeline",_)},t.prototype.reset=function(_){this.trigger("reset",_)};var n=t,s=Math.pow(2,32),r=function(_){var x=new DataView(_.buffer,_.byteOffset,_.byteLength),D;return x.getBigUint64?(D=x.getBigUint64(0),D<Number.MAX_SAFE_INTEGER?Number(D):D):x.getUint32(0)*s+x.getUint32(4)},i={getUint64:r,MAX_UINT32:s},a=i.MAX_UINT32,o,l,u,c,f,h,g,m,p,y,v,b,S,T,w,C,O,P,M,U,B,W,Q,G,X,q,H,V,N,Y,Z,ne,ue,_e,Ne,ce;(function(){var _;if(Q={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(_ in Q)Q.hasOwnProperty(_)&&(Q[_]=[_.charCodeAt(0),_.charCodeAt(1),_.charCodeAt(2),_.charCodeAt(3)]);G=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),q=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),X=new Uint8Array([0,0,0,1]),H=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]),V=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]),N={video:H,audio:V},ne=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Z=new Uint8Array([0,0,0,0,0,0,0,0]),ue=new Uint8Array([0,0,0,0,0,0,0,0]),_e=ue,Ne=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ce=ue,Y=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),o=function(_){var x=[],D=0,A,F,K;for(A=1;A<arguments.length;A++)x.push(arguments[A]);for(A=x.length;A--;)D+=x[A].byteLength;for(F=new Uint8Array(D+8),K=new DataView(F.buffer,F.byteOffset,F.byteLength),K.setUint32(0,F.byteLength),F.set(_,4),A=0,D=8;A<x.length;A++)F.set(x[A],D),D+=x[A].byteLength;return F},l=function(){return o(Q.dinf,o(Q.dref,ne))},u=function(_){return o(Q.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,_.audioobjecttype<<3|_.samplingfrequencyindex>>>1,_.samplingfrequencyindex<<7|_.channelcount<<3,6,1,2]))},c=function(){return o(Q.ftyp,G,X,G,q)},C=function(_){return o(Q.hdlr,N[_])},f=function(_){return o(Q.mdat,_)},w=function(_){var x=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,_.duration>>>24&255,_.duration>>>16&255,_.duration>>>8&255,_.duration&255,85,196,0,0]);return _.samplerate&&(x[12]=_.samplerate>>>24&255,x[13]=_.samplerate>>>16&255,x[14]=_.samplerate>>>8&255,x[15]=_.samplerate&255),o(Q.mdhd,x)},T=function(_){return o(Q.mdia,w(_),C(_.type),g(_))},h=function(_){return o(Q.mfhd,new Uint8Array([0,0,0,0,(_&4278190080)>>24,(_&16711680)>>16,(_&65280)>>8,_&255]))},g=function(_){return o(Q.minf,_.type==="video"?o(Q.vmhd,Y):o(Q.smhd,Z),l(),P(_))},m=function(_,x){for(var D=[],A=x.length;A--;)D[A]=U(x[A]);return o.apply(null,[Q.moof,h(_)].concat(D))},p=function(_){for(var x=_.length,D=[];x--;)D[x]=b(_[x]);return o.apply(null,[Q.moov,v(4294967295)].concat(D).concat(y(_)))},y=function(_){for(var x=_.length,D=[];x--;)D[x]=B(_[x]);return o.apply(null,[Q.mvex].concat(D))},v=function(_){var x=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(_&4278190080)>>24,(_&16711680)>>16,(_&65280)>>8,_&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 o(Q.mvhd,x)},O=function(_){var x=_.samples||[],D=new Uint8Array(4+x.length),A,F;for(F=0;F<x.length;F++)A=x[F].flags,D[F+4]=A.dependsOn<<4|A.isDependedOn<<2|A.hasRedundancy;return o(Q.sdtp,D)},P=function(_){return o(Q.stbl,M(_),o(Q.stts,ce),o(Q.stsc,_e),o(Q.stsz,Ne),o(Q.stco,ue))},function(){var _,x;M=function(D){return o(Q.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),D.type==="video"?_(D):x(D))},_=function(D){var A=D.sps||[],F=D.pps||[],K=[],re=[],oe,de;for(oe=0;oe<A.length;oe++)K.push((A[oe].byteLength&65280)>>>8),K.push(A[oe].byteLength&255),K=K.concat(Array.prototype.slice.call(A[oe]));for(oe=0;oe<F.length;oe++)re.push((F[oe].byteLength&65280)>>>8),re.push(F[oe].byteLength&255),re=re.concat(Array.prototype.slice.call(F[oe]));if(de=[Q.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,(D.width&65280)>>8,D.width&255,(D.height&65280)>>8,D.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]),o(Q.avcC,new Uint8Array([1,D.profileIdc,D.profileCompatibility,D.levelIdc,255].concat([A.length],K,[F.length],re))),o(Q.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],D.sarRatio){var ge=D.sarRatio[0],Oe=D.sarRatio[1];de.push(o(Q.pasp,new Uint8Array([(ge&4278190080)>>24,(ge&16711680)>>16,(ge&65280)>>8,ge&255,(Oe&4278190080)>>24,(Oe&16711680)>>16,(Oe&65280)>>8,Oe&255])))}return o.apply(null,de)},x=function(D){return o(Q.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(D.channelcount&65280)>>8,D.channelcount&255,(D.samplesize&65280)>>8,D.samplesize&255,0,0,0,0,(D.samplerate&65280)>>8,D.samplerate&255,0,0]),u(D))}}(),S=function(_){var x=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(_.id&4278190080)>>24,(_.id&16711680)>>16,(_.id&65280)>>8,_.id&255,0,0,0,0,(_.duration&4278190080)>>24,(_.duration&16711680)>>16,(_.duration&65280)>>8,_.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,(_.width&65280)>>8,_.width&255,0,0,(_.height&65280)>>8,_.height&255,0,0]);return o(Q.tkhd,x)},U=function(_){var x,D,A,F,K,re,oe;return x=o(Q.tfhd,new Uint8Array([0,0,0,58,(_.id&4278190080)>>24,(_.id&16711680)>>16,(_.id&65280)>>8,_.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),re=Math.floor(_.baseMediaDecodeTime/a),oe=Math.floor(_.baseMediaDecodeTime%a),D=o(Q.tfdt,new Uint8Array([1,0,0,0,re>>>24&255,re>>>16&255,re>>>8&255,re&255,oe>>>24&255,oe>>>16&255,oe>>>8&255,oe&255])),K=32+20+8+16+8+8,_.type==="audio"?(A=W(_,K),o(Q.traf,x,D,A)):(F=O(_),A=W(_,F.length+K),o(Q.traf,x,D,A,F))},b=function(_){return _.duration=_.duration||4294967295,o(Q.trak,S(_),T(_))},B=function(_){var x=new Uint8Array([0,0,0,0,(_.id&4278190080)>>24,(_.id&16711680)>>16,(_.id&65280)>>8,_.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return _.type!=="video"&&(x[x.length-1]=0),o(Q.trex,x)},function(){var _,x,D;D=function(A,F){var K=0,re=0,oe=0,de=0;return A.length&&(A[0].duration!==void 0&&(K=1),A[0].size!==void 0&&(re=2),A[0].flags!==void 0&&(oe=4),A[0].compositionTimeOffset!==void 0&&(de=8)),[0,0,K|re|oe|de,1,(A.length&4278190080)>>>24,(A.length&16711680)>>>16,(A.length&65280)>>>8,A.length&255,(F&4278190080)>>>24,(F&16711680)>>>16,(F&65280)>>>8,F&255]},x=function(A,F){var K,re,oe,de,ge,Oe;for(de=A.samples||[],F+=8+12+16*de.length,oe=D(de,F),re=new Uint8Array(oe.length+de.length*16),re.set(oe),K=oe.length,Oe=0;Oe<de.length;Oe++)ge=de[Oe],re[K++]=(ge.duration&4278190080)>>>24,re[K++]=(ge.duration&16711680)>>>16,re[K++]=(ge.duration&65280)>>>8,re[K++]=ge.duration&255,re[K++]=(ge.size&4278190080)>>>24,re[K++]=(ge.size&16711680)>>>16,re[K++]=(ge.size&65280)>>>8,re[K++]=ge.size&255,re[K++]=ge.flags.isLeading<<2|ge.flags.dependsOn,re[K++]=ge.flags.isDependedOn<<6|ge.flags.hasRedundancy<<4|ge.flags.paddingValue<<1|ge.flags.isNonSyncSample,re[K++]=ge.flags.degradationPriority&61440,re[K++]=ge.flags.degradationPriority&15,re[K++]=(ge.compositionTimeOffset&4278190080)>>>24,re[K++]=(ge.compositionTimeOffset&16711680)>>>16,re[K++]=(ge.compositionTimeOffset&65280)>>>8,re[K++]=ge.compositionTimeOffset&255;return o(Q.trun,re)},_=function(A,F){var K,re,oe,de,ge,Oe;for(de=A.samples||[],F+=8+12+8*de.length,oe=D(de,F),K=new Uint8Array(oe.length+de.length*8),K.set(oe),re=oe.length,Oe=0;Oe<de.length;Oe++)ge=de[Oe],K[re++]=(ge.duration&4278190080)>>>24,K[re++]=(ge.duration&16711680)>>>16,K[re++]=(ge.duration&65280)>>>8,K[re++]=ge.duration&255,K[re++]=(ge.size&4278190080)>>>24,K[re++]=(ge.size&16711680)>>>16,K[re++]=(ge.size&65280)>>>8,K[re++]=ge.size&255;return o(Q.trun,K)},W=function(A,F){return A.type==="audio"?_(A,F):x(A,F)}}();var te={ftyp:c,mdat:f,moof:m,moov:p,initSegment:function(_){var x=c(),D=p(_),A;return A=new Uint8Array(x.byteLength+D.byteLength),A.set(x),A.set(D,x.byteLength),A}},ie=function(_){var x,D,A=[],F=[];for(F.byteLength=0,F.nalCount=0,F.duration=0,A.byteLength=0,x=0;x<_.length;x++)D=_[x],D.nalUnitType==="access_unit_delimiter_rbsp"?(A.length&&(A.duration=D.dts-A.dts,F.byteLength+=A.byteLength,F.nalCount+=A.length,F.duration+=A.duration,F.push(A)),A=[D],A.byteLength=D.data.byteLength,A.pts=D.pts,A.dts=D.dts):(D.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(A.keyFrame=!0),A.duration=D.dts-A.dts,A.byteLength+=D.data.byteLength,A.push(D));return F.length&&(!A.duration||A.duration<=0)&&(A.duration=F[F.length-1].duration),F.byteLength+=A.byteLength,F.nalCount+=A.length,F.duration+=A.duration,F.push(A),F},we=function(_){var x,D,A=[],F=[];for(A.byteLength=0,A.nalCount=0,A.duration=0,A.pts=_[0].pts,A.dts=_[0].dts,F.byteLength=0,F.nalCount=0,F.duration=0,F.pts=_[0].pts,F.dts=_[0].dts,x=0;x<_.length;x++)D=_[x],D.keyFrame?(A.length&&(F.push(A),F.byteLength+=A.byteLength,F.nalCount+=A.nalCount,F.duration+=A.duration),A=[D],A.nalCount=D.length,A.byteLength=D.byteLength,A.pts=D.pts,A.dts=D.dts,A.duration=D.duration):(A.duration+=D.duration,A.nalCount+=D.length,A.byteLength+=D.byteLength,A.push(D));return F.length&&A.duration<=0&&(A.duration=F[F.length-1].duration),F.byteLength+=A.byteLength,F.nalCount+=A.nalCount,F.duration+=A.duration,F.push(A),F},me=function(_){var x;return!_[0][0].keyFrame&&_.length>1&&(x=_.shift(),_.byteLength-=x.byteLength,_.nalCount-=x.nalCount,_[0][0].dts=x.dts,_[0][0].pts=x.pts,_[0][0].duration+=x.duration),_},Ce=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},Be=function(_,x){var D=Ce();return D.dataOffset=x,D.compositionTimeOffset=_.pts-_.dts,D.duration=_.duration,D.size=4*_.length,D.size+=_.byteLength,_.keyFrame&&(D.flags.dependsOn=2,D.flags.isNonSyncSample=0),D},ee=function(_,x){var D,A,F,K,re,oe=x||0,de=[];for(D=0;D<_.length;D++)for(K=_[D],A=0;A<K.length;A++)re=K[A],F=Be(re,oe),oe+=F.size,de.push(F);return de},se=function(_){var x,D,A,F,K,re,oe=0,de=_.byteLength,ge=_.nalCount,Oe=de+4*ge,qe=new Uint8Array(Oe),Tt=new DataView(qe.buffer);for(x=0;x<_.length;x++)for(F=_[x],D=0;D<F.length;D++)for(K=F[D],A=0;A<K.length;A++)re=K[A],Tt.setUint32(oe,re.data.byteLength),oe+=4,qe.set(re.data,oe),oe+=re.data.byteLength;return qe},Te=function(_,x){var D,A=x||0,F=[];return D=Be(_,A),F.push(D),F},Le=function(_){var x,D,A=0,F=_.byteLength,K=_.length,re=F+4*K,oe=new Uint8Array(re),de=new DataView(oe.buffer);for(x=0;x<_.length;x++)D=_[x],de.setUint32(A,D.data.byteLength),A+=4,oe.set(D.data,A),A+=D.data.byteLength;return oe},Se={groupNalsIntoFrames:ie,groupFramesIntoGops:we,extendFirstKeyFrame:me,generateSampleTable:ee,concatenateNalData:se,generateSampleTableForFrame:Te,concatenateNalDataForFrame:Le},De=[33,16,5,32,164,27],Fe=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],Ie=function(_){for(var x=[];_--;)x.push(0);return x},je=function(_){return Object.keys(_).reduce(function(x,D){return x[D]=new Uint8Array(_[D].reduce(function(A,F){return A.concat(F)},[])),x},{})},Ee,Ze=function(){if(!Ee){var _={96e3:[De,[227,64],Ie(154),[56]],88200:[De,[231],Ie(170),[56]],64e3:[De,[248,192],Ie(240),[56]],48e3:[De,[255,192],Ie(268),[55,148,128],Ie(54),[112]],44100:[De,[255,192],Ie(268),[55,163,128],Ie(84),[112]],32e3:[De,[255,192],Ie(268),[55,234],Ie(226),[112]],24e3:[De,[255,192],Ie(268),[55,255,128],Ie(268),[111,112],Ie(126),[224]],16e3:[De,[255,192],Ie(268),[55,255,128],Ie(268),[111,255],Ie(269),[223,108],Ie(195),[1,192]],12e3:[Fe,Ie(268),[3,127,248],Ie(268),[6,255,240],Ie(268),[13,255,224],Ie(268),[27,253,128],Ie(259),[56]],11025:[Fe,Ie(268),[3,127,248],Ie(268),[6,255,240],Ie(268),[13,255,224],Ie(268),[27,255,192],Ie(268),[55,175,128],Ie(108),[112]],8e3:[Fe,Ie(268),[3,121,16],Ie(47),[7]]};Ee=je(_)}return Ee},nt=9e4,ke,et,dt,At,xt,ct,Ae;ke=function(_){return _*nt},et=function(_,x){return _*x},dt=function(_){return _/nt},At=function(_,x){return _/x},xt=function(_,x){return ke(At(_,x))},ct=function(_,x){return et(dt(_),x)},Ae=function(_,x,D){return dt(D?_:_-x)};var Ue={ONE_SECOND_IN_TS:nt,secondsToVideoTs:ke,secondsToAudioTs:et,videoTsToSeconds:dt,audioTsToSeconds:At,audioTsToVideoTs:xt,videoTsToAudioTs:ct,metadataTsToSeconds:Ae},Me=Ze,ve=Ue,$e=function(_){var x,D,A=0;for(x=0;x<_.length;x++)D=_[x],A+=D.data.byteLength;return A},st=function(_,x,D,A){var F,K=0,re=0,oe=0,de=0,ge,Oe,qe;if(x.length&&(F=ve.audioTsToVideoTs(_.baseMediaDecodeTime,_.samplerate),K=Math.ceil(ve.ONE_SECOND_IN_TS/(_.samplerate/1024)),D&&A&&(re=F-Math.max(D,A),oe=Math.floor(re/K),de=oe*K),!(oe<1||de>ve.ONE_SECOND_IN_TS/2))){for(ge=Me()[_.samplerate],ge||(ge=x[0].data),Oe=0;Oe<oe;Oe++)qe=x[0],x.splice(0,0,{data:ge,dts:qe.dts-K,pts:qe.pts-K});return _.baseMediaDecodeTime-=Math.floor(ve.videoTsToAudioTs(de,_.samplerate)),de}},ye=function(_,x,D){return x.minSegmentDts>=D?_:(x.minSegmentDts=1/0,_.filter(function(A){return A.dts>=D?(x.minSegmentDts=Math.min(x.minSegmentDts,A.dts),x.minSegmentPts=x.minSegmentDts,!0):!1}))},at=function(_){var x,D,A=[];for(x=0;x<_.length;x++)D=_[x],A.push({size:D.data.byteLength,duration:1024});return A},Rt=function(_){var x,D,A=0,F=new Uint8Array($e(_));for(x=0;x<_.length;x++)D=_[x],F.set(D.data,A),A+=D.data.byteLength;return F},Qt={prefixWithSilence:st,trimAdtsFramesByEarliestDts:ye,generateSampleTable:at,concatenateFrameData:Rt},Dn=Ue.ONE_SECOND_IN_TS,Mn=function(_,x){typeof x.pts=="number"&&(_.timelineStartInfo.pts===void 0&&(_.timelineStartInfo.pts=x.pts),_.minSegmentPts===void 0?_.minSegmentPts=x.pts:_.minSegmentPts=Math.min(_.minSegmentPts,x.pts),_.maxSegmentPts===void 0?_.maxSegmentPts=x.pts:_.maxSegmentPts=Math.max(_.maxSegmentPts,x.pts)),typeof x.dts=="number"&&(_.timelineStartInfo.dts===void 0&&(_.timelineStartInfo.dts=x.dts),_.minSegmentDts===void 0?_.minSegmentDts=x.dts:_.minSegmentDts=Math.min(_.minSegmentDts,x.dts),_.maxSegmentDts===void 0?_.maxSegmentDts=x.dts:_.maxSegmentDts=Math.max(_.maxSegmentDts,x.dts))},Bt=function(_){delete _.minSegmentDts,delete _.maxSegmentDts,delete _.minSegmentPts,delete _.maxSegmentPts},On=function(_,x){var D,A,F=_.minSegmentDts;return x||(F-=_.timelineStartInfo.dts),D=_.timelineStartInfo.baseMediaDecodeTime,D+=F,D=Math.max(0,D),_.type==="audio"&&(A=_.samplerate/Dn,D*=A,D=Math.floor(D)),D},Ro={clearDtsInfo:Bt,calculateTrackBaseMediaDecodeTime:On,collectDtsInfo:Mn},No=4,Ul=128,Mo=function(_){for(var x=0,D={payloadType:-1,payloadSize:0},A=0,F=0;x<_.byteLength&&_[x]!==Ul;){for(;_[x]===255;)A+=255,x++;for(A+=_[x++];_[x]===255;)F+=255,x++;if(F+=_[x++],!D.payload&&A===No){var K=String.fromCharCode(_[x+3],_[x+4],_[x+5],_[x+6]);if(K==="GA94"){D.payloadType=A,D.payloadSize=F,D.payload=_.subarray(x,x+F);break}else D.payload=void 0}x+=F,A=0,F=0}return D},Ti=function(_){return _.payload[0]!==181||(_.payload[1]<<8|_.payload[2])!==49||String.fromCharCode(_.payload[3],_.payload[4],_.payload[5],_.payload[6])!=="GA94"||_.payload[7]!==3?null:_.payload.subarray(8,_.payload.length-1)},Hl=function(_,x){var D=[],A,F,K,re;if(!(x[0]&64))return D;for(F=x[0]&31,A=0;A<F;A++)K=A*3,re={type:x[K+2]&3,pts:_},x[K+2]&4&&(re.ccData=x[K+3]<<8|x[K+4],D.push(re));return D},Hc=function(_){for(var x=_.byteLength,D=[],A=1,F,K;A<x-2;)_[A]===0&&_[A+1]===0&&_[A+2]===3?(D.push(A+2),A+=2):A++;if(D.length===0)return _;F=x-D.length,K=new Uint8Array(F);var re=0;for(A=0;A<F;re++,A++)re===D[0]&&(re++,D.shift()),K[A]=_[re];return K},Zi={parseSei:Mo,parseUserData:Ti,parseCaptionPackets:Hl,discardEmulationPreventionBytes:Hc,USER_DATA_REGISTERED_ITU_T_T35:No},$a=n,Ra=Zi,cs=function(_){_=_||{},cs.prototype.init.call(this),this.parse708captions_=typeof _.parse708captions=="boolean"?_.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new fn(0,0),new fn(0,1),new fn(1,0),new fn(1,1)],this.parse708captions_&&(this.cc708Stream_=new Ft({captionServices:_.captionServices})),this.reset(),this.ccStreams_.forEach(function(x){x.on("data",this.trigger.bind(this,"data")),x.on("partialdone",this.trigger.bind(this,"partialdone")),x.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")))};cs.prototype=new $a,cs.prototype.push=function(_){var x,D,A;if(_.nalUnitType==="sei_rbsp"&&(x=Ra.parseSei(_.escapedRBSP),!!x.payload&&x.payloadType===Ra.USER_DATA_REGISTERED_ITU_T_T35&&(D=Ra.parseUserData(x),!!D))){if(_.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(_.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}A=Ra.parseCaptionPackets(_.pts,D),this.captionPackets_=this.captionPackets_.concat(A),this.latestDts_!==_.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=_.dts}},cs.prototype.flushCCStreams=function(_){this.ccStreams_.forEach(function(x){return _==="flush"?x.flush():x.partialFlush()},this)},cs.prototype.flushStream=function(_){if(!this.captionPackets_.length){this.flushCCStreams(_);return}this.captionPackets_.forEach(function(x,D){x.presortIndex=D}),this.captionPackets_.sort(function(x,D){return x.pts===D.pts?x.presortIndex-D.presortIndex:x.pts-D.pts}),this.captionPackets_.forEach(function(x){x.type<2?this.dispatchCea608Packet(x):this.dispatchCea708Packet(x)},this),this.captionPackets_.length=0,this.flushCCStreams(_)},cs.prototype.flush=function(){return this.flushStream("flush")},cs.prototype.partialFlush=function(){return this.flushStream("partialFlush")},cs.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(_){_.reset()})},cs.prototype.dispatchCea608Packet=function(_){this.setsTextOrXDSActive(_)?this.activeCea608Channel_[_.type]=null:this.setsChannel1Active(_)?this.activeCea608Channel_[_.type]=0:this.setsChannel2Active(_)&&(this.activeCea608Channel_[_.type]=1),this.activeCea608Channel_[_.type]!==null&&this.ccStreams_[(_.type<<1)+this.activeCea608Channel_[_.type]].push(_)},cs.prototype.setsChannel1Active=function(_){return(_.ccData&30720)===4096},cs.prototype.setsChannel2Active=function(_){return(_.ccData&30720)===6144},cs.prototype.setsTextOrXDSActive=function(_){return(_.ccData&28928)===256||(_.ccData&30974)===4138||(_.ccData&30974)===6186},cs.prototype.dispatchCea708Packet=function(_){this.parse708captions_&&this.cc708Stream_.push(_)};var zc={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},jc=function(_){var x=zc[_]||_;return _&4096&&_===x?"":String.fromCharCode(x)},Ke=function(_){return 32<=_&&_<=127||160<=_&&_<=255},ft=function(_){this.windowNum=_,this.reset()};ft.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},ft.prototype.getText=function(){return this.rows.join(`
`)},ft.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ft.prototype.newLine=function(_){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(_),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ft.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},ft.prototype.addText=function(_){this.rows[this.rowIdx]+=_},ft.prototype.backspace=function(){if(!this.isEmpty()){var _=this.rows[this.rowIdx];this.rows[this.rowIdx]=_.substr(0,_.length-1)}};var rn=function(_,x,D){this.serviceNum=_,this.text="",this.currentWindow=new ft(-1),this.windows=[],this.stream=D,typeof x=="string"&&this.createTextDecoder(x)};rn.prototype.init=function(_,x){this.startPts=_;for(var D=0;D<8;D++)this.windows[D]=new ft(D),typeof x=="function"&&(this.windows[D].beforeRowOverflow=x)},rn.prototype.setCurrentWindow=function(_){this.currentWindow=this.windows[_]},rn.prototype.createTextDecoder=function(_){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(_)}catch(x){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+_+" encoding. "+x})}};var Ft=function(_){_=_||{},Ft.prototype.init.call(this);var x=this,D=_.captionServices||{},A={},F;Object.keys(D).forEach(K=>{F=D[K],/^SERVICE/.test(K)&&(A[K]=F.encoding)}),this.serviceEncodings=A,this.current708Packet=null,this.services={},this.push=function(K){K.type===3?(x.new708Packet(),x.add708Bytes(K)):(x.current708Packet===null&&x.new708Packet(),x.add708Bytes(K))}};Ft.prototype=new $a,Ft.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Ft.prototype.add708Bytes=function(_){var x=_.ccData,D=x>>>8,A=x&255;this.current708Packet.ptsVals.push(_.pts),this.current708Packet.data.push(D),this.current708Packet.data.push(A)},Ft.prototype.push708Packet=function(){var _=this.current708Packet,x=_.data,D=null,A=null,F=0,K=x[F++];for(_.seq=K>>6,_.sizeCode=K&63;F<x.length;F++)K=x[F++],D=K>>5,A=K&31,D===7&&A>0&&(K=x[F++],D=K),this.pushServiceBlock(D,F,A),A>0&&(F+=A-1)},Ft.prototype.pushServiceBlock=function(_,x,D){var A,F=x,K=this.current708Packet.data,re=this.services[_];for(re||(re=this.initService(_,F));F<x+D&&F<K.length;F++)A=K[F],Ke(A)?F=this.handleText(F,re):A===24?F=this.multiByteCharacter(F,re):A===16?F=this.extendedCommands(F,re):128<=A&&A<=135?F=this.setCurrentWindow(F,re):152<=A&&A<=159?F=this.defineWindow(F,re):A===136?F=this.clearWindows(F,re):A===140?F=this.deleteWindows(F,re):A===137?F=this.displayWindows(F,re):A===138?F=this.hideWindows(F,re):A===139?F=this.toggleWindows(F,re):A===151?F=this.setWindowAttributes(F,re):A===144?F=this.setPenAttributes(F,re):A===145?F=this.setPenColor(F,re):A===146?F=this.setPenLocation(F,re):A===143?re=this.reset(F,re):A===8?re.currentWindow.backspace():A===12?re.currentWindow.clearText():A===13?re.currentWindow.pendingNewLine=!0:A===14?re.currentWindow.clearText():A===141&&F++},Ft.prototype.extendedCommands=function(_,x){var D=this.current708Packet.data,A=D[++_];return Ke(A)&&(_=this.handleText(_,x,{isExtended:!0})),_},Ft.prototype.getPts=function(_){return this.current708Packet.ptsVals[Math.floor(_/2)]},Ft.prototype.initService=function(_,x){var A="SERVICE"+_,D=this,A,F;return A in this.serviceEncodings&&(F=this.serviceEncodings[A]),this.services[_]=new rn(_,F,D),this.services[_].init(this.getPts(x),function(K){D.flushDisplayed(K,D.services[_])}),this.services[_]},Ft.prototype.handleText=function(_,x,D){var A=D&&D.isExtended,F=D&&D.isMultiByte,K=this.current708Packet.data,re=A?4096:0,oe=K[_],de=K[_+1],ge=x.currentWindow,Oe,qe;function Tt(rt){return rt.map(Ht=>("0"+(Ht&255).toString(16)).slice(-2)).join("")}if(F?(qe=[oe,de],_++):qe=[oe],x.textDecoder_&&!A)Oe=x.textDecoder_.decode(new Uint8Array(qe));else if(F){const rt=Tt(qe);Oe=String.fromCharCode(parseInt(rt,16))}else Oe=jc(re|oe);return ge.pendingNewLine&&!ge.isEmpty()&&ge.newLine(this.getPts(_)),ge.pendingNewLine=!1,ge.addText(Oe),_},Ft.prototype.multiByteCharacter=function(_,x){var D=this.current708Packet.data,A=D[_+1],F=D[_+2];return Ke(A)&&Ke(F)&&(_=this.handleText(++_,x,{isMultiByte:!0})),_},Ft.prototype.setCurrentWindow=function(_,x){var D=this.current708Packet.data,A=D[_],F=A&7;return x.setCurrentWindow(F),_},Ft.prototype.defineWindow=function(_,x){var D=this.current708Packet.data,A=D[_],F=A&7;x.setCurrentWindow(F);var K=x.currentWindow;return A=D[++_],K.visible=(A&32)>>5,K.rowLock=(A&16)>>4,K.columnLock=(A&8)>>3,K.priority=A&7,A=D[++_],K.relativePositioning=(A&128)>>7,K.anchorVertical=A&127,A=D[++_],K.anchorHorizontal=A,A=D[++_],K.anchorPoint=(A&240)>>4,K.rowCount=A&15,A=D[++_],K.columnCount=A&63,A=D[++_],K.windowStyle=(A&56)>>3,K.penStyle=A&7,K.virtualRowCount=K.rowCount+1,_},Ft.prototype.setWindowAttributes=function(_,x){var D=this.current708Packet.data,A=D[_],F=x.currentWindow.winAttr;return A=D[++_],F.fillOpacity=(A&192)>>6,F.fillRed=(A&48)>>4,F.fillGreen=(A&12)>>2,F.fillBlue=A&3,A=D[++_],F.borderType=(A&192)>>6,F.borderRed=(A&48)>>4,F.borderGreen=(A&12)>>2,F.borderBlue=A&3,A=D[++_],F.borderType+=(A&128)>>5,F.wordWrap=(A&64)>>6,F.printDirection=(A&48)>>4,F.scrollDirection=(A&12)>>2,F.justify=A&3,A=D[++_],F.effectSpeed=(A&240)>>4,F.effectDirection=(A&12)>>2,F.displayEffect=A&3,_},Ft.prototype.flushDisplayed=function(_,x){for(var D=[],A=0;A<8;A++)x.windows[A].visible&&!x.windows[A].isEmpty()&&D.push(x.windows[A].getText());x.endPts=_,x.text=D.join(`
`),this.pushCaption(x),x.startPts=_},Ft.prototype.pushCaption=function(_){_.text!==""&&(this.trigger("data",{startPts:_.startPts,endPts:_.endPts,text:_.text,stream:"cc708_"+_.serviceNum}),_.text="",_.startPts=_.endPts)},Ft.prototype.displayWindows=function(_,x){var D=this.current708Packet.data,A=D[++_],F=this.getPts(_);this.flushDisplayed(F,x);for(var K=0;K<8;K++)A&1<<K&&(x.windows[K].visible=1);return _},Ft.prototype.hideWindows=function(_,x){var D=this.current708Packet.data,A=D[++_],F=this.getPts(_);this.flushDisplayed(F,x);for(var K=0;K<8;K++)A&1<<K&&(x.windows[K].visible=0);return _},Ft.prototype.toggleWindows=function(_,x){var D=this.current708Packet.data,A=D[++_],F=this.getPts(_);this.flushDisplayed(F,x);for(var K=0;K<8;K++)A&1<<K&&(x.windows[K].visible^=1);return _},Ft.prototype.clearWindows=function(_,x){var D=this.current708Packet.data,A=D[++_],F=this.getPts(_);this.flushDisplayed(F,x);for(var K=0;K<8;K++)A&1<<K&&x.windows[K].clearText();return _},Ft.prototype.deleteWindows=function(_,x){var D=this.current708Packet.data,A=D[++_],F=this.getPts(_);this.flushDisplayed(F,x);for(var K=0;K<8;K++)A&1<<K&&x.windows[K].reset();return _},Ft.prototype.setPenAttributes=function(_,x){var D=this.current708Packet.data,A=D[_],F=x.currentWindow.penAttr;return A=D[++_],F.textTag=(A&240)>>4,F.offset=(A&12)>>2,F.penSize=A&3,A=D[++_],F.italics=(A&128)>>7,F.underline=(A&64)>>6,F.edgeType=(A&56)>>3,F.fontStyle=A&7,_},Ft.prototype.setPenColor=function(_,x){var D=this.current708Packet.data,A=D[_],F=x.currentWindow.penColor;return A=D[++_],F.fgOpacity=(A&192)>>6,F.fgRed=(A&48)>>4,F.fgGreen=(A&12)>>2,F.fgBlue=A&3,A=D[++_],F.bgOpacity=(A&192)>>6,F.bgRed=(A&48)>>4,F.bgGreen=(A&12)>>2,F.bgBlue=A&3,A=D[++_],F.edgeRed=(A&48)>>4,F.edgeGreen=(A&12)>>2,F.edgeBlue=A&3,_},Ft.prototype.setPenLocation=function(_,x){var D=this.current708Packet.data,A=D[_],F=x.currentWindow.penLoc;return x.currentWindow.pendingNewLine=!0,A=D[++_],F.row=A&15,A=D[++_],F.column=A&63,_},Ft.prototype.reset=function(_,x){var D=this.getPts(_);return this.flushDisplayed(D,x),this.initService(x.serviceNum,_)};var hr={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},pr=function(_){return _===null?"":(_=hr[_]||_,String.fromCharCode(_))},ti=14,mr=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ts=function(){for(var _=[],x=ti+1;x--;)_.push({text:"",indent:0,offset:0});return _},fn=function(_,x){fn.prototype.init.call(this),this.field_=_||0,this.dataChannel_=x||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(D){var A,F,K,re,oe;if(A=D.ccData&32639,A===this.lastControlCode_){this.lastControlCode_=null;return}if((A&61440)===4096?this.lastControlCode_=A:A!==this.PADDING_&&(this.lastControlCode_=null),K=A>>>8,re=A&255,A!==this.PADDING_)if(A===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(A===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(D.pts),this.flushDisplayed(D.pts),F=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=F,this.startPts_=D.pts;else if(A===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(D.pts);else if(A===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(D.pts);else if(A===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(D.pts);else if(A===this.CARRIAGE_RETURN_)this.clearFormatting(D.pts),this.flushDisplayed(D.pts),this.shiftRowsUp_(),this.startPts_=D.pts;else if(A===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(A===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(D.pts),this.displayed_=ts();else if(A===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ts();else if(A===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(D.pts),this.displayed_=ts()),this.mode_="paintOn",this.startPts_=D.pts;else if(this.isSpecialCharacter(K,re))K=(K&3)<<8,oe=pr(K|re),this[this.mode_](D.pts,oe),this.column_++;else if(this.isExtCharacter(K,re))this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),K=(K&3)<<8,oe=pr(K|re),this[this.mode_](D.pts,oe),this.column_++;else if(this.isMidRowCode(K,re))this.clearFormatting(D.pts),this[this.mode_](D.pts," "),this.column_++,(re&14)===14&&this.addFormatting(D.pts,["i"]),(re&1)===1&&this.addFormatting(D.pts,["u"]);else if(this.isOffsetControlCode(K,re)){const ge=re&3;this.nonDisplayed_[this.row_].offset=ge,this.column_+=ge}else if(this.isPAC(K,re)){var de=mr.indexOf(A&7968);if(this.mode_==="rollUp"&&(de-this.rollUpRows_+1<0&&(de=this.rollUpRows_-1),this.setRollUp(D.pts,de)),de!==this.row_&&de>=0&&de<=14&&(this.clearFormatting(D.pts),this.row_=de),re&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(D.pts,["u"]),(A&16)===16){const ge=(A&14)>>1;this.column_=ge*4,this.nonDisplayed_[this.row_].indent+=ge}this.isColorPAC(re)&&(re&14)===14&&this.addFormatting(D.pts,["i"])}else this.isNormalChar(K)&&(re===0&&(re=null),oe=pr(K),oe+=pr(re),this[this.mode_](D.pts,oe),this.column_+=oe.length)}};fn.prototype=new $a,fn.prototype.flushDisplayed=function(_){const x=A=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+A+"."})},D=[];this.displayed_.forEach((A,F)=>{if(A&&A.text&&A.text.length){try{A.text=A.text.trim()}catch{x(F)}A.text.length&&D.push({text:A.text,line:F+1,position:10+Math.min(70,A.indent*10)+A.offset*2.5})}else A==null&&x(F)}),D.length&&this.trigger("data",{startPts:this.startPts_,endPts:_,content:D,stream:this.name_})},fn.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ts(),this.nonDisplayed_=ts(),this.lastControlCode_=null,this.column_=0,this.row_=ti,this.rollUpRows_=2,this.formatting_=[]},fn.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},fn.prototype.isSpecialCharacter=function(_,x){return _===this.EXT_&&x>=48&&x<=63},fn.prototype.isExtCharacter=function(_,x){return(_===this.EXT_+1||_===this.EXT_+2)&&x>=32&&x<=63},fn.prototype.isMidRowCode=function(_,x){return _===this.EXT_&&x>=32&&x<=47},fn.prototype.isOffsetControlCode=function(_,x){return _===this.OFFSET_&&x>=33&&x<=35},fn.prototype.isPAC=function(_,x){return _>=this.BASE_&&_<this.BASE_+8&&x>=64&&x<=127},fn.prototype.isColorPAC=function(_){return _>=64&&_<=79||_>=96&&_<=127},fn.prototype.isNormalChar=function(_){return _>=32&&_<=127},fn.prototype.setRollUp=function(_,x){if(this.mode_!=="rollUp"&&(this.row_=ti,this.mode_="rollUp",this.flushDisplayed(_),this.nonDisplayed_=ts(),this.displayed_=ts()),x!==void 0&&x!==this.row_)for(var D=0;D<this.rollUpRows_;D++)this.displayed_[x-D]=this.displayed_[this.row_-D],this.displayed_[this.row_-D]={text:"",indent:0,offset:0};x===void 0&&(x=this.row_),this.topRow_=x-this.rollUpRows_+1},fn.prototype.addFormatting=function(_,x){this.formatting_=this.formatting_.concat(x);var D=x.reduce(function(A,F){return A+"<"+F+">"},"");this[this.mode_](_,D)},fn.prototype.clearFormatting=function(_){if(this.formatting_.length){var x=this.formatting_.reverse().reduce(function(D,A){return D+"</"+A+">"},"");this.formatting_=[],this[this.mode_](_,x)}},fn.prototype.popOn=function(_,x){var D=this.nonDisplayed_[this.row_].text;D+=x,this.nonDisplayed_[this.row_].text=D},fn.prototype.rollUp=function(_,x){var D=this.displayed_[this.row_].text;D+=x,this.displayed_[this.row_].text=D},fn.prototype.shiftRowsUp_=function(){var _;for(_=0;_<this.topRow_;_++)this.displayed_[_]={text:"",indent:0,offset:0};for(_=this.row_+1;_<ti+1;_++)this.displayed_[_]={text:"",indent:0,offset:0};for(_=this.topRow_;_<this.row_;_++)this.displayed_[_]=this.displayed_[_+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},fn.prototype.paintOn=function(_,x){var D=this.displayed_[this.row_].text;D+=x,this.displayed_[this.row_].text=D};var We={CaptionStream:cs,Cea608Stream:fn,Cea708Stream:Ft},St={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Vt=n,tn=8589934592,Ys=4294967296,Ir="shared",Fv=function(_,x){var D=1;for(_>x&&(D=-1);Math.abs(x-_)>Ys;)_+=D*tn;return _},Vv=function(_){var x,D;Vv.prototype.init.call(this),this.type_=_||Ir,this.push=function(A){if(A.type==="metadata"){this.trigger("data",A);return}this.type_!==Ir&&A.type!==this.type_||(D===void 0&&(D=A.dts),A.dts=Fv(A.dts,D),A.pts=Fv(A.pts,D),x=A.dts,this.trigger("data",A))},this.flush=function(){D=x,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){D=void 0,x=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Vv.prototype=new Vt;var ow={TimestampRolloverStream:Vv,handleRollover:Fv},gM=(_,x,D)=>{if(!_)return-1;for(var A=D;A<_.length;A++)if(_[A]===x)return A;return-1},vM={typedArrayIndexOf:gM},Ih=vM.typedArrayIndexOf,Dh={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},lw=function(_,x,D){var A,F="";for(A=x;A<D;A++)F+="%"+("00"+_[A].toString(16)).slice(-2);return F},qc=function(_,x,D){return decodeURIComponent(lw(_,x,D))},Wc=function(_,x,D){return unescape(lw(_,x,D))},Kc=function(_){return _[0]<<21|_[1]<<14|_[2]<<7|_[3]},Gc={APIC:function(_){var x=1,D,A,F="-->";_.data[0]===Dh.Utf8&&(D=Ih(_.data,0,x),!(D<0)&&(_.mimeType=Wc(_.data,x,D),x=D+1,_.pictureType=_.data[x],x++,A=Ih(_.data,0,x),!(A<0)&&(_.description=qc(_.data,x,A),x=A+1,_.mimeType===F?_.url=Wc(_.data,x,_.data.length):_.pictureData=_.data.subarray(x,_.data.length))))},"T*":function(_){_.data[0]===Dh.Utf8&&(_.value=qc(_.data,1,_.data.length).replace(/\0*$/,""),_.values=_.value.split("\0"))},TXXX:function(_){var x;_.data[0]===Dh.Utf8&&(x=Ih(_.data,0,1),x!==-1&&(_.description=qc(_.data,1,x),_.value=qc(_.data,x+1,_.data.length).replace(/\0*$/,""),_.data=_.value))},"W*":function(_){_.url=Wc(_.data,0,_.data.length).replace(/\0.*$/,"")},WXXX:function(_){var x;_.data[0]===Dh.Utf8&&(x=Ih(_.data,0,1),x!==-1&&(_.description=qc(_.data,1,x),_.url=Wc(_.data,x+1,_.data.length).replace(/\0.*$/,"")))},PRIV:function(_){var x;for(x=0;x<_.data.length;x++)if(_.data[x]===0){_.owner=Wc(_.data,0,x);break}_.privateData=_.data.subarray(x+1),_.data=_.privateData}},yM=function(_){var x,D,A=10,F=0,K=[];if(!(_.length<10||_[0]!=="I".charCodeAt(0)||_[1]!=="D".charCodeAt(0)||_[2]!=="3".charCodeAt(0))){F=Kc(_.subarray(6,10)),F+=10;var re=_[5]&64;re&&(A+=4,A+=Kc(_.subarray(10,14)),F-=Kc(_.subarray(16,20)));do{if(x=Kc(_.subarray(A+4,A+8)),x<1)break;D=String.fromCharCode(_[A],_[A+1],_[A+2],_[A+3]);var oe={id:D,data:_.subarray(A+10,A+x+10)};oe.key=oe.id,Gc[oe.id]?Gc[oe.id](oe):oe.id[0]==="T"?Gc["T*"](oe):oe.id[0]==="W"&&Gc["W*"](oe),K.push(oe),A+=10,A+=x}while(A<F);return K}},uw={parseId3Frames:yM,parseSyncSafeInteger:Kc,frameParsers:Gc},bM=n,_M=St,Na=uw,Oh;Oh=function(_){var x={descriptor:_&&_.descriptor},D=0,A=[],F=0,K;if(Oh.prototype.init.call(this),this.dispatchType=_M.METADATA_STREAM_TYPE.toString(16),x.descriptor)for(K=0;K<x.descriptor.length;K++)this.dispatchType+=("00"+x.descriptor[K].toString(16)).slice(-2);this.push=function(re){var oe,de,ge,Oe,qe,Tt;if(re.type==="timed-metadata"){if(re.dataAlignmentIndicator&&(F=0,A.length=0),A.length===0&&(re.data.length<10||re.data[0]!=="I".charCodeAt(0)||re.data[1]!=="D".charCodeAt(0)||re.data[2]!=="3".charCodeAt(0))){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(A.push(re),F+=re.data.byteLength,A.length===1&&(D=Na.parseSyncSafeInteger(re.data.subarray(6,10)),D+=10),!(F<D)){for(oe={data:new Uint8Array(D),frames:[],pts:A[0].pts,dts:A[0].dts},qe=0;qe<D;)oe.data.set(A[0].data.subarray(0,D-qe),qe),qe+=A[0].data.byteLength,F-=A[0].data.byteLength,A.shift();de=10,oe.data[5]&64&&(de+=4,de+=Na.parseSyncSafeInteger(oe.data.subarray(10,14)),D-=Na.parseSyncSafeInteger(oe.data.subarray(16,20)));do{if(ge=Na.parseSyncSafeInteger(oe.data.subarray(de+4,de+8)),ge<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(Tt=String.fromCharCode(oe.data[de],oe.data[de+1],oe.data[de+2],oe.data[de+3]),Oe={id:Tt,data:oe.data.subarray(de+10,de+ge+10)},Oe.key=Oe.id,Na.frameParsers[Oe.id]?Na.frameParsers[Oe.id](Oe):Oe.id[0]==="T"?Na.frameParsers["T*"](Oe):Oe.id[0]==="W"&&Na.frameParsers["W*"](Oe),Oe.owner==="com.apple.streaming.transportStreamTimestamp"){var rt=Oe.data,Ht=(rt[3]&1)<<30|rt[4]<<22|rt[5]<<14|rt[6]<<6|rt[7]>>>2;Ht*=4,Ht+=rt[7]&3,Oe.timeStamp=Ht,oe.pts===void 0&&oe.dts===void 0&&(oe.pts=Oe.timeStamp,oe.dts=Oe.timeStamp),this.trigger("timestamp",Oe)}oe.frames.push(Oe),de+=10,de+=ge}while(de<D);this.trigger("data",oe)}}}},Oh.prototype=new bM;var SM=Oh,Uv=n,Hv=We,ni=St,wM=ow.TimestampRolloverStream,Ph,Yc,$h,zl=188,zv=71;Ph=function(){var _=new Uint8Array(zl),x=0;Ph.prototype.init.call(this),this.push=function(D){var A=0,F=zl,K;for(x?(K=new Uint8Array(D.byteLength+x),K.set(_.subarray(0,x)),K.set(D,x),x=0):K=D;F<K.byteLength;){if(K[A]===zv&&K[F]===zv){this.trigger("data",K.subarray(A,F)),A+=zl,F+=zl;continue}A++,F++}A<K.byteLength&&(_.set(K.subarray(A),0),x=K.byteLength-A)},this.flush=function(){x===zl&&_[0]===zv&&(this.trigger("data",_),x=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){x=0,this.trigger("reset")}},Ph.prototype=new Uv,Yc=function(){var _,x,D,A;Yc.prototype.init.call(this),A=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,_=function(F,K){var re=0;K.payloadUnitStartIndicator&&(re+=F[re]+1),K.type==="pat"?x(F.subarray(re),K):D(F.subarray(re),K)},x=function(F,K){K.section_number=F[7],K.last_section_number=F[8],A.pmtPid=(F[10]&31)<<8|F[11],K.pmtPid=A.pmtPid},D=function(F,K){var re,oe,de,ge;if(F[5]&1){for(A.programMapTable={video:null,audio:null,"timed-metadata":{}},re=(F[1]&15)<<8|F[2],oe=3+re-4,de=(F[10]&15)<<8|F[11],ge=12+de;ge<oe;){var Oe=F[ge],qe=(F[ge+1]&31)<<8|F[ge+2];Oe===ni.H264_STREAM_TYPE&&A.programMapTable.video===null?A.programMapTable.video=qe:Oe===ni.ADTS_STREAM_TYPE&&A.programMapTable.audio===null?A.programMapTable.audio=qe:Oe===ni.METADATA_STREAM_TYPE&&(A.programMapTable["timed-metadata"][qe]=Oe),ge+=((F[ge+3]&15)<<8|F[ge+4])+5}K.programMapTable=A.programMapTable}},this.push=function(F){var K={},re=4;if(K.payloadUnitStartIndicator=!!(F[1]&64),K.pid=F[1]&31,K.pid<<=8,K.pid|=F[2],(F[3]&48)>>>4>1&&(re+=F[re]+1),K.pid===0)K.type="pat",_(F.subarray(re),K),this.trigger("data",K);else if(K.pid===this.pmtPid)for(K.type="pmt",_(F.subarray(re),K),this.trigger("data",K);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([F,re,K]):this.processPes_(F,re,K)},this.processPes_=function(F,K,re){re.pid===this.programMapTable.video?re.streamType=ni.H264_STREAM_TYPE:re.pid===this.programMapTable.audio?re.streamType=ni.ADTS_STREAM_TYPE:re.streamType=this.programMapTable["timed-metadata"][re.pid],re.type="pes",re.data=F.subarray(K),this.trigger("data",re)}},Yc.prototype=new Uv,Yc.STREAM_TYPES={h264:27,adts:15},$h=function(){var _=this,x=!1,D={data:[],size:0},A={data:[],size:0},F={data:[],size:0},K,re=function(de,ge){var Oe;const qe=de[0]<<16|de[1]<<8|de[2];ge.data=new Uint8Array,qe===1&&(ge.packetLength=6+(de[4]<<8|de[5]),ge.dataAlignmentIndicator=(de[6]&4)!==0,Oe=de[7],Oe&192&&(ge.pts=(de[9]&14)<<27|(de[10]&255)<<20|(de[11]&254)<<12|(de[12]&255)<<5|(de[13]&254)>>>3,ge.pts*=4,ge.pts+=(de[13]&6)>>>1,ge.dts=ge.pts,Oe&64&&(ge.dts=(de[14]&14)<<27|(de[15]&255)<<20|(de[16]&254)<<12|(de[17]&255)<<5|(de[18]&254)>>>3,ge.dts*=4,ge.dts+=(de[18]&6)>>>1)),ge.data=de.subarray(9+de[8]))},oe=function(de,ge,Oe){var qe=new Uint8Array(de.size),Tt={type:ge},rt=0,Ht=0,Gt=!1,is;if(!(!de.data.length||de.size<9)){for(Tt.trackId=de.data[0].pid,rt=0;rt<de.data.length;rt++)is=de.data[rt],qe.set(is.data,Ht),Ht+=is.data.byteLength;re(qe,Tt),Gt=ge==="video"||Tt.packetLength<=de.size,(Oe||Gt)&&(de.size=0,de.data.length=0),Gt&&_.trigger("data",Tt)}};$h.prototype.init.call(this),this.push=function(de){({pat:function(){},pes:function(){var ge,Oe;switch(de.streamType){case ni.H264_STREAM_TYPE:ge=D,Oe="video";break;case ni.ADTS_STREAM_TYPE:ge=A,Oe="audio";break;case ni.METADATA_STREAM_TYPE:ge=F,Oe="timed-metadata";break;default:return}de.payloadUnitStartIndicator&&oe(ge,Oe,!0),ge.data.push(de),ge.size+=de.data.byteLength},pmt:function(){var ge={type:"metadata",tracks:[]};K=de.programMapTable,K.video!==null&&ge.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+K.video,codec:"avc",type:"video"}),K.audio!==null&&ge.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+K.audio,codec:"adts",type:"audio"}),x=!0,_.trigger("data",ge)}})[de.type]()},this.reset=function(){D.size=0,D.data.length=0,A.size=0,A.data.length=0,this.trigger("reset")},this.flushStreams_=function(){oe(D,"video"),oe(A,"audio"),oe(F,"timed-metadata")},this.flush=function(){if(!x&&K){var de={type:"metadata",tracks:[]};K.video!==null&&de.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+K.video,codec:"avc",type:"video"}),K.audio!==null&&de.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+K.audio,codec:"adts",type:"audio"}),_.trigger("data",de)}x=!1,this.flushStreams_(),this.trigger("done")}},$h.prototype=new Uv;var cw={PAT_PID:0,MP2T_PACKET_LENGTH:zl,TransportPacketStream:Ph,TransportParseStream:Yc,ElementaryStream:$h,TimestampRolloverStream:wM,CaptionStream:Hv.CaptionStream,Cea608Stream:Hv.Cea608Stream,Cea708Stream:Hv.Cea708Stream,MetadataStream:SM};for(var jv in ni)ni.hasOwnProperty(jv)&&(cw[jv]=ni[jv]);var TM=cw,CM=n,EM=Ue.ONE_SECOND_IN_TS,Rh,dw=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Rh=function(_){var x,D=0;Rh.prototype.init.call(this),this.skipWarn_=function(A,F){this.trigger("log",{level:"warn",message:`adts skiping bytes ${A} to ${F} in frame ${D} outside syncword`})},this.push=function(A){var F=0,K,re,oe,de,ge;if(_||(D=0),A.type==="audio"){x&&x.length?(oe=x,x=new Uint8Array(oe.byteLength+A.data.byteLength),x.set(oe),x.set(A.data,oe.byteLength)):x=A.data;for(var Oe;F+7<x.length;){if(x[F]!==255||(x[F+1]&246)!==240){typeof Oe!="number"&&(Oe=F),F++;continue}if(typeof Oe=="number"&&(this.skipWarn_(Oe,F),Oe=null),re=(~x[F+1]&1)*2,K=(x[F+3]&3)<<11|x[F+4]<<3|(x[F+5]&224)>>5,de=((x[F+6]&3)+1)*1024,ge=de*EM/dw[(x[F+2]&60)>>>2],x.byteLength-F<K)break;this.trigger("data",{pts:A.pts+D*ge,dts:A.dts+D*ge,sampleCount:de,audioobjecttype:(x[F+2]>>>6&3)+1,channelcount:(x[F+2]&1)<<2|(x[F+3]&192)>>>6,samplerate:dw[(x[F+2]&60)>>>2],samplingfrequencyindex:(x[F+2]&60)>>>2,samplesize:16,data:x.subarray(F+7+re,F+K)}),D++,F+=K}typeof Oe=="number"&&(this.skipWarn_(Oe,F),Oe=null),x=x.subarray(F)}},this.flush=function(){D=0,this.trigger("done")},this.reset=function(){x=void 0,this.trigger("reset")},this.endTimeline=function(){x=void 0,this.trigger("endedtimeline")}},Rh.prototype=new CM;var xM=Rh,fw;fw=function(_){var x=_.byteLength,D=0,A=0;this.length=function(){return 8*x},this.bitsAvailable=function(){return 8*x+A},this.loadWord=function(){var F=_.byteLength-x,K=new Uint8Array(4),re=Math.min(4,x);if(re===0)throw new Error("no bytes available");K.set(_.subarray(F,F+re)),D=new DataView(K.buffer).getUint32(0),A=re*8,x-=re},this.skipBits=function(F){var K;A>F?(D<<=F,A-=F):(F-=A,K=Math.floor(F/8),F-=K*8,x-=K,this.loadWord(),D<<=F,A-=F)},this.readBits=function(F){var K=Math.min(A,F),re=D>>>32-K;return A-=K,A>0?D<<=K:x>0&&this.loadWord(),K=F-K,K>0?re<<K|this.readBits(K):re},this.skipLeadingZeros=function(){var F;for(F=0;F<A;++F)if(D&2147483648>>>F)return D<<=F,A-=F,F;return this.loadWord(),F+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var F=this.skipLeadingZeros();return this.readBits(F+1)-1},this.readExpGolomb=function(){var F=this.readUnsignedExpGolomb();return 1&F?1+F>>>1:-1*(F>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var kM=fw,hw=n,AM=kM,Nh,Xc,pw;Xc=function(){var _=0,x,D;Xc.prototype.init.call(this),this.push=function(A){var F;D?(F=new Uint8Array(D.byteLength+A.data.byteLength),F.set(D),F.set(A.data,D.byteLength),D=F):D=A.data;for(var K=D.byteLength;_<K-3;_++)if(D[_+2]===1){x=_+5;break}for(;x<K;)switch(D[x]){case 0:if(D[x-1]!==0){x+=2;break}else if(D[x-2]!==0){x++;break}_+3!==x-2&&this.trigger("data",D.subarray(_+3,x-2));do x++;while(D[x]!==1&&x<K);_=x-2,x+=3;break;case 1:if(D[x-1]!==0||D[x-2]!==0){x+=3;break}this.trigger("data",D.subarray(_+3,x-2)),_=x-2,x+=3;break;default:x+=3;break}D=D.subarray(_),x-=_,_=0},this.reset=function(){D=null,_=0,this.trigger("reset")},this.flush=function(){D&&D.byteLength>3&&this.trigger("data",D.subarray(_+3)),D=null,_=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},Xc.prototype=new hw,pw={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Nh=function(){var _=new Xc,x,D,A,F,K,re,oe;Nh.prototype.init.call(this),x=this,this.push=function(de){de.type==="video"&&(D=de.trackId,A=de.pts,F=de.dts,_.push(de))},_.on("data",function(de){var ge={trackId:D,pts:A,dts:F,data:de,nalUnitTypeCode:de[0]&31};switch(ge.nalUnitTypeCode){case 5:ge.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:ge.nalUnitType="sei_rbsp",ge.escapedRBSP=K(de.subarray(1));break;case 7:ge.nalUnitType="seq_parameter_set_rbsp",ge.escapedRBSP=K(de.subarray(1)),ge.config=re(ge.escapedRBSP);break;case 8:ge.nalUnitType="pic_parameter_set_rbsp";break;case 9:ge.nalUnitType="access_unit_delimiter_rbsp";break}x.trigger("data",ge)}),_.on("done",function(){x.trigger("done")}),_.on("partialdone",function(){x.trigger("partialdone")}),_.on("reset",function(){x.trigger("reset")}),_.on("endedtimeline",function(){x.trigger("endedtimeline")}),this.flush=function(){_.flush()},this.partialFlush=function(){_.partialFlush()},this.reset=function(){_.reset()},this.endTimeline=function(){_.endTimeline()},oe=function(de,ge){var Oe=8,qe=8,Tt,rt;for(Tt=0;Tt<de;Tt++)qe!==0&&(rt=ge.readExpGolomb(),qe=(Oe+rt+256)%256),Oe=qe===0?Oe:qe},K=function(de){for(var ge=de.byteLength,Oe=[],qe=1,Tt,rt;qe<ge-2;)de[qe]===0&&de[qe+1]===0&&de[qe+2]===3?(Oe.push(qe+2),qe+=2):qe++;if(Oe.length===0)return de;Tt=ge-Oe.length,rt=new Uint8Array(Tt);var Ht=0;for(qe=0;qe<Tt;Ht++,qe++)Ht===Oe[0]&&(Ht++,Oe.shift()),rt[qe]=de[Ht];return rt},re=function(de){var ge=0,Oe=0,qe=0,Tt=0,rt,Ht,Gt,is,Dr,Fo,Hw,zw,jw,t0,qw,Yn=[1,1],Ww,Vo;if(rt=new AM(de),Ht=rt.readUnsignedByte(),is=rt.readUnsignedByte(),Gt=rt.readUnsignedByte(),rt.skipUnsignedExpGolomb(),pw[Ht]&&(Dr=rt.readUnsignedExpGolomb(),Dr===3&&rt.skipBits(1),rt.skipUnsignedExpGolomb(),rt.skipUnsignedExpGolomb(),rt.skipBits(1),rt.readBoolean()))for(qw=Dr!==3?8:12,Vo=0;Vo<qw;Vo++)rt.readBoolean()&&(Vo<6?oe(16,rt):oe(64,rt));if(rt.skipUnsignedExpGolomb(),Fo=rt.readUnsignedExpGolomb(),Fo===0)rt.readUnsignedExpGolomb();else if(Fo===1)for(rt.skipBits(1),rt.skipExpGolomb(),rt.skipExpGolomb(),Hw=rt.readUnsignedExpGolomb(),Vo=0;Vo<Hw;Vo++)rt.skipExpGolomb();if(rt.skipUnsignedExpGolomb(),rt.skipBits(1),zw=rt.readUnsignedExpGolomb(),jw=rt.readUnsignedExpGolomb(),t0=rt.readBits(1),t0===0&&rt.skipBits(1),rt.skipBits(1),rt.readBoolean()&&(ge=rt.readUnsignedExpGolomb(),Oe=rt.readUnsignedExpGolomb(),qe=rt.readUnsignedExpGolomb(),Tt=rt.readUnsignedExpGolomb()),rt.readBoolean()&&rt.readBoolean()){switch(Ww=rt.readUnsignedByte(),Ww){case 1:Yn=[1,1];break;case 2:Yn=[12,11];break;case 3:Yn=[10,11];break;case 4:Yn=[16,11];break;case 5:Yn=[40,33];break;case 6:Yn=[24,11];break;case 7:Yn=[20,11];break;case 8:Yn=[32,11];break;case 9:Yn=[80,33];break;case 10:Yn=[18,11];break;case 11:Yn=[15,11];break;case 12:Yn=[64,33];break;case 13:Yn=[160,99];break;case 14:Yn=[4,3];break;case 15:Yn=[3,2];break;case 16:Yn=[2,1];break;case 255:{Yn=[rt.readUnsignedByte()<<8|rt.readUnsignedByte(),rt.readUnsignedByte()<<8|rt.readUnsignedByte()];break}}Yn&&Yn[0]/Yn[1]}return{profileIdc:Ht,levelIdc:Gt,profileCompatibility:is,width:(zw+1)*16-ge*2-Oe*2,height:(2-t0)*(jw+1)*16-qe*2-Tt*2,sarRatio:Yn}}},Nh.prototype=new hw;var IM={H264Stream:Nh,NalByteStream:Xc},DM=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],mw=function(_,x){var D=_[x+6]<<21|_[x+7]<<14|_[x+8]<<7|_[x+9],A=_[x+5],F=(A&16)>>4;return D=D>=0?D:0,F?D+20:D+10},gw=function(_,x){return _.length-x<10||_[x]!=="I".charCodeAt(0)||_[x+1]!=="D".charCodeAt(0)||_[x+2]!=="3".charCodeAt(0)?x:(x+=mw(_,x),gw(_,x))},OM=function(_){var x=gw(_,0);return _.length>=x+2&&(_[x]&255)===255&&(_[x+1]&240)===240&&(_[x+1]&22)===16},vw=function(_){return _[0]<<21|_[1]<<14|_[2]<<7|_[3]},PM=function(_,x,D){var A,F="";for(A=x;A<D;A++)F+="%"+("00"+_[A].toString(16)).slice(-2);return F},$M=function(_,x,D){return unescape(PM(_,x,D))},RM=function(_,x){var D=(_[x+5]&224)>>5,A=_[x+4]<<3,F=_[x+3]&6144;return F|A|D},NM=function(_,x){return _[x]==="I".charCodeAt(0)&&_[x+1]==="D".charCodeAt(0)&&_[x+2]==="3".charCodeAt(0)?"timed-metadata":_[x]&!0&&(_[x+1]&240)===240?"audio":null},MM=function(_){for(var x=0;x+5<_.length;){if(_[x]!==255||(_[x+1]&246)!==240){x++;continue}return DM[(_[x+2]&60)>>>2]}return null},LM=function(_){var x,D,A,F;x=10,_[5]&64&&(x+=4,x+=vw(_.subarray(10,14)));do{if(D=vw(_.subarray(x+4,x+8)),D<1)return null;if(F=String.fromCharCode(_[x],_[x+1],_[x+2],_[x+3]),F==="PRIV"){A=_.subarray(x+10,x+D+10);for(var K=0;K<A.byteLength;K++)if(A[K]===0){var re=$M(A,0,K);if(re==="com.apple.streaming.transportStreamTimestamp"){var oe=A.subarray(K+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}}x+=10,x+=D}while(x<_.byteLength);return null},qv={isLikelyAacData:OM,parseId3TagSize:mw,parseAdtsSize:RM,parseType:NM,parseSampleRate:MM,parseAacTimestamp:LM},BM=n,yw=qv,Mh;Mh=function(){var _=new Uint8Array,x=0;Mh.prototype.init.call(this),this.setTimestamp=function(D){x=D},this.push=function(D){var A=0,F=0,K,re,oe,de;for(_.length?(de=_.length,_=new Uint8Array(D.byteLength+de),_.set(_.subarray(0,de)),_.set(D,de)):_=D;_.length-F>=3;){if(_[F]==="I".charCodeAt(0)&&_[F+1]==="D".charCodeAt(0)&&_[F+2]==="3".charCodeAt(0)){if(_.length-F<10||(A=yw.parseId3TagSize(_,F),F+A>_.length))break;re={type:"timed-metadata",data:_.subarray(F,F+A)},this.trigger("data",re),F+=A;continue}else if((_[F]&255)===255&&(_[F+1]&240)===240){if(_.length-F<7||(A=yw.parseAdtsSize(_,F),F+A>_.length))break;oe={type:"audio",data:_.subarray(F,F+A),pts:x,dts:x},this.trigger("data",oe),F+=A;continue}F++}K=_.length-F,K>0?_=_.subarray(F):_=new Uint8Array},this.reset=function(){_=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){_=new Uint8Array,this.trigger("endedtimeline")}},Mh.prototype=new BM;var FM=Mh,VM=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],UM=VM,HM=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],zM=HM,Lh=n,Qc=te,Jc=Se,Bh=Qt,si=Ro,ea=TM,Fh=Ue,bw=xM,jM=IM.H264Stream,qM=FM,WM=qv.isLikelyAacData,KM=Ue.ONE_SECOND_IN_TS,Wv=UM,Kv=zM,Zc,jl,Vh,Lo,GM=function(_,x){x.stream=_,this.trigger("log",x)},_w=function(_,x){for(var D=Object.keys(x),A=0;A<D.length;A++){var F=D[A];F==="headOfPipeline"||!x[F].on||x[F].on("log",GM.bind(_,F))}},Sw=function(_,x){var D;if(_.length!==x.length)return!1;for(D=0;D<_.length;D++)if(_[D]!==x[D])return!1;return!0},Gv=function(_,x,D,A,F,K){var re=D-x,oe=A-x,de=F-D;return{start:{dts:_,pts:_+re},end:{dts:_+oe,pts:_+de},prependedContentDuration:K,baseMediaDecodeTime:_}};jl=function(_,x){var D=[],A,F=0,K=0,re=1/0;x=x||{},A=x.firstSequenceNumber||0,jl.prototype.init.call(this),this.push=function(oe){si.collectDtsInfo(_,oe),_&&Wv.forEach(function(de){_[de]=oe[de]}),D.push(oe)},this.setEarliestDts=function(oe){F=oe},this.setVideoBaseMediaDecodeTime=function(oe){re=oe},this.setAudioAppendStart=function(oe){K=oe},this.flush=function(){var oe,de,ge,Oe,qe,Tt,rt;if(D.length===0){this.trigger("done","AudioSegmentStream");return}oe=Bh.trimAdtsFramesByEarliestDts(D,_,F),_.baseMediaDecodeTime=si.calculateTrackBaseMediaDecodeTime(_,x.keepOriginalTimestamps),rt=Bh.prefixWithSilence(_,oe,K,re),_.samples=Bh.generateSampleTable(oe),ge=Qc.mdat(Bh.concatenateFrameData(oe)),D=[],de=Qc.moof(A,[_]),Oe=new Uint8Array(de.byteLength+ge.byteLength),A++,Oe.set(de),Oe.set(ge,de.byteLength),si.clearDtsInfo(_),qe=Math.ceil(KM*1024/_.samplerate),oe.length&&(Tt=oe.length*qe,this.trigger("segmentTimingInfo",Gv(Fh.audioTsToVideoTs(_.baseMediaDecodeTime,_.samplerate),oe[0].dts,oe[0].pts,oe[0].dts+Tt,oe[0].pts+Tt,rt||0)),this.trigger("timingInfo",{start:oe[0].pts,end:oe[0].pts+Tt})),this.trigger("data",{track:_,boxes:Oe}),this.trigger("done","AudioSegmentStream")},this.reset=function(){si.clearDtsInfo(_),D=[],this.trigger("reset")}},jl.prototype=new Lh,Zc=function(_,x){var D,A=[],F=[],K,re;x=x||{},D=x.firstSequenceNumber||0,Zc.prototype.init.call(this),delete _.minPTS,this.gopCache_=[],this.push=function(oe){si.collectDtsInfo(_,oe),oe.nalUnitType==="seq_parameter_set_rbsp"&&!K&&(K=oe.config,_.sps=[oe.data],Kv.forEach(function(de){_[de]=K[de]},this)),oe.nalUnitType==="pic_parameter_set_rbsp"&&!re&&(re=oe.data,_.pps=[oe.data]),A.push(oe)},this.flush=function(){for(var oe,de,ge,Oe,qe,Tt,rt=0,Ht,Gt;A.length&&A[0].nalUnitType!=="access_unit_delimiter_rbsp";)A.shift();if(A.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(oe=Jc.groupNalsIntoFrames(A),ge=Jc.groupFramesIntoGops(oe),ge[0][0].keyFrame||(de=this.getGopForFusion_(A[0],_),de?(rt=de.duration,ge.unshift(de),ge.byteLength+=de.byteLength,ge.nalCount+=de.nalCount,ge.pts=de.pts,ge.dts=de.dts,ge.duration+=de.duration):ge=Jc.extendFirstKeyFrame(ge)),F.length){var is;if(x.alignGopsAtEnd?is=this.alignGopsAtEnd_(ge):is=this.alignGopsAtStart_(ge),!is){this.gopCache_.unshift({gop:ge.pop(),pps:_.pps,sps:_.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),A=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}si.clearDtsInfo(_),ge=is}si.collectDtsInfo(_,ge),_.samples=Jc.generateSampleTable(ge),qe=Qc.mdat(Jc.concatenateNalData(ge)),_.baseMediaDecodeTime=si.calculateTrackBaseMediaDecodeTime(_,x.keepOriginalTimestamps),this.trigger("processedGopsInfo",ge.map(function(Dr){return{pts:Dr.pts,dts:Dr.dts,byteLength:Dr.byteLength}})),Ht=ge[0],Gt=ge[ge.length-1],this.trigger("segmentTimingInfo",Gv(_.baseMediaDecodeTime,Ht.dts,Ht.pts,Gt.dts+Gt.duration,Gt.pts+Gt.duration,rt)),this.trigger("timingInfo",{start:ge[0].pts,end:ge[ge.length-1].pts+ge[ge.length-1].duration}),this.gopCache_.unshift({gop:ge.pop(),pps:_.pps,sps:_.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),A=[],this.trigger("baseMediaDecodeTime",_.baseMediaDecodeTime),this.trigger("timelineStartInfo",_.timelineStartInfo),Oe=Qc.moof(D,[_]),Tt=new Uint8Array(Oe.byteLength+qe.byteLength),D++,Tt.set(Oe),Tt.set(qe,Oe.byteLength),this.trigger("data",{track:_,boxes:Tt}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),A=[],this.gopCache_.length=0,F.length=0,this.trigger("reset")},this.resetStream_=function(){si.clearDtsInfo(_),K=void 0,re=void 0},this.getGopForFusion_=function(oe){var de=45e3,ge=1e4,Oe=1/0,qe,Tt,rt,Ht,Gt;for(Gt=0;Gt<this.gopCache_.length;Gt++)Ht=this.gopCache_[Gt],rt=Ht.gop,!(!(_.pps&&Sw(_.pps[0],Ht.pps[0]))||!(_.sps&&Sw(_.sps[0],Ht.sps[0])))&&(rt.dts<_.timelineStartInfo.dts||(qe=oe.dts-rt.dts-rt.duration,qe>=-ge&&qe<=de&&(!Tt||Oe>qe)&&(Tt=Ht,Oe=qe)));return Tt?Tt.gop:null},this.alignGopsAtStart_=function(oe){var de,ge,Oe,qe,Tt,rt,Ht,Gt;for(Tt=oe.byteLength,rt=oe.nalCount,Ht=oe.duration,de=ge=0;de<F.length&&ge<oe.length&&(Oe=F[de],qe=oe[ge],Oe.pts!==qe.pts);){if(qe.pts>Oe.pts){de++;continue}ge++,Tt-=qe.byteLength,rt-=qe.nalCount,Ht-=qe.duration}return ge===0?oe:ge===oe.length?null:(Gt=oe.slice(ge),Gt.byteLength=Tt,Gt.duration=Ht,Gt.nalCount=rt,Gt.pts=Gt[0].pts,Gt.dts=Gt[0].dts,Gt)},this.alignGopsAtEnd_=function(oe){var de,ge,Oe,qe,Tt,rt;for(de=F.length-1,ge=oe.length-1,Tt=null,rt=!1;de>=0&&ge>=0;){if(Oe=F[de],qe=oe[ge],Oe.pts===qe.pts){rt=!0;break}if(Oe.pts>qe.pts){de--;continue}de===F.length-1&&(Tt=ge),ge--}if(!rt&&Tt===null)return null;var Ht;if(rt?Ht=ge:Ht=Tt,Ht===0)return oe;var Gt=oe.slice(Ht),is=Gt.reduce(function(Dr,Fo){return Dr.byteLength+=Fo.byteLength,Dr.duration+=Fo.duration,Dr.nalCount+=Fo.nalCount,Dr},{byteLength:0,duration:0,nalCount:0});return Gt.byteLength=is.byteLength,Gt.duration=is.duration,Gt.nalCount=is.nalCount,Gt.pts=Gt[0].pts,Gt.dts=Gt[0].dts,Gt},this.alignGopsWith=function(oe){F=oe}},Zc.prototype=new Lh,Lo=function(_,x){this.numberOfTracks=0,this.metadataStream=x,_=_||{},typeof _.remux<"u"?this.remuxTracks=!!_.remux:this.remuxTracks=!0,typeof _.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=_.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Lo.prototype.init.call(this),this.push=function(D){if(D.content||D.text)return this.pendingCaptions.push(D);if(D.frames)return this.pendingMetadata.push(D);this.pendingTracks.push(D.track),this.pendingBytes+=D.boxes.byteLength,D.track.type==="video"&&(this.videoTrack=D.track,this.pendingBoxes.push(D.boxes)),D.track.type==="audio"&&(this.audioTrack=D.track,this.pendingBoxes.unshift(D.boxes))}},Lo.prototype=new Lh,Lo.prototype.flush=function(_){var x=0,D={captions:[],captionStreams:{},metadata:[],info:{}},A,F,K,re=0,oe;if(this.pendingTracks.length<this.numberOfTracks){if(_!=="VideoSegmentStream"&&_!=="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?(re=this.videoTrack.timelineStartInfo.pts,Kv.forEach(function(de){D.info[de]=this.videoTrack[de]},this)):this.audioTrack&&(re=this.audioTrack.timelineStartInfo.pts,Wv.forEach(function(de){D.info[de]=this.audioTrack[de]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?D.type=this.pendingTracks[0].type:D.type="combined",this.emittedTracks+=this.pendingTracks.length,K=Qc.initSegment(this.pendingTracks),D.initSegment=new Uint8Array(K.byteLength),D.initSegment.set(K),D.data=new Uint8Array(this.pendingBytes),oe=0;oe<this.pendingBoxes.length;oe++)D.data.set(this.pendingBoxes[oe],x),x+=this.pendingBoxes[oe].byteLength;for(oe=0;oe<this.pendingCaptions.length;oe++)A=this.pendingCaptions[oe],A.startTime=Fh.metadataTsToSeconds(A.startPts,re,this.keepOriginalTimestamps),A.endTime=Fh.metadataTsToSeconds(A.endPts,re,this.keepOriginalTimestamps),D.captionStreams[A.stream]=!0,D.captions.push(A);for(oe=0;oe<this.pendingMetadata.length;oe++)F=this.pendingMetadata[oe],F.cueTime=Fh.metadataTsToSeconds(F.pts,re,this.keepOriginalTimestamps),D.metadata.push(F);for(D.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",D),oe=0;oe<D.captions.length;oe++)A=D.captions[oe],this.trigger("caption",A);for(oe=0;oe<D.metadata.length;oe++)F=D.metadata[oe],this.trigger("id3Frame",F)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Lo.prototype.setRemux=function(_){this.remuxTracks=_},Vh=function(_){var x=this,D=!0,A,F;Vh.prototype.init.call(this),_=_||{},this.baseMediaDecodeTime=_.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var K={};this.transmuxPipeline_=K,K.type="aac",K.metadataStream=new ea.MetadataStream,K.aacStream=new qM,K.audioTimestampRolloverStream=new ea.TimestampRolloverStream("audio"),K.timedMetadataTimestampRolloverStream=new ea.TimestampRolloverStream("timed-metadata"),K.adtsStream=new bw,K.coalesceStream=new Lo(_,K.metadataStream),K.headOfPipeline=K.aacStream,K.aacStream.pipe(K.audioTimestampRolloverStream).pipe(K.adtsStream),K.aacStream.pipe(K.timedMetadataTimestampRolloverStream).pipe(K.metadataStream).pipe(K.coalesceStream),K.metadataStream.on("timestamp",function(re){K.aacStream.setTimestamp(re.timeStamp)}),K.aacStream.on("data",function(re){re.type!=="timed-metadata"&&re.type!=="audio"||K.audioSegmentStream||(F=F||{timelineStartInfo:{baseMediaDecodeTime:x.baseMediaDecodeTime},codec:"adts",type:"audio"},K.coalesceStream.numberOfTracks++,K.audioSegmentStream=new jl(F,_),K.audioSegmentStream.on("log",x.getLogTrigger_("audioSegmentStream")),K.audioSegmentStream.on("timingInfo",x.trigger.bind(x,"audioTimingInfo")),K.adtsStream.pipe(K.audioSegmentStream).pipe(K.coalesceStream),x.trigger("trackinfo",{hasAudio:!!F,hasVideo:!!A}))}),K.coalesceStream.on("data",this.trigger.bind(this,"data")),K.coalesceStream.on("done",this.trigger.bind(this,"done")),_w(this,K)},this.setupTsPipeline=function(){var K={};this.transmuxPipeline_=K,K.type="ts",K.metadataStream=new ea.MetadataStream,K.packetStream=new ea.TransportPacketStream,K.parseStream=new ea.TransportParseStream,K.elementaryStream=new ea.ElementaryStream,K.timestampRolloverStream=new ea.TimestampRolloverStream,K.adtsStream=new bw,K.h264Stream=new jM,K.captionStream=new ea.CaptionStream(_),K.coalesceStream=new Lo(_,K.metadataStream),K.headOfPipeline=K.packetStream,K.packetStream.pipe(K.parseStream).pipe(K.elementaryStream).pipe(K.timestampRolloverStream),K.timestampRolloverStream.pipe(K.h264Stream),K.timestampRolloverStream.pipe(K.adtsStream),K.timestampRolloverStream.pipe(K.metadataStream).pipe(K.coalesceStream),K.h264Stream.pipe(K.captionStream).pipe(K.coalesceStream),K.elementaryStream.on("data",function(re){var oe;if(re.type==="metadata"){for(oe=re.tracks.length;oe--;)!A&&re.tracks[oe].type==="video"?(A=re.tracks[oe],A.timelineStartInfo.baseMediaDecodeTime=x.baseMediaDecodeTime):!F&&re.tracks[oe].type==="audio"&&(F=re.tracks[oe],F.timelineStartInfo.baseMediaDecodeTime=x.baseMediaDecodeTime);A&&!K.videoSegmentStream&&(K.coalesceStream.numberOfTracks++,K.videoSegmentStream=new Zc(A,_),K.videoSegmentStream.on("log",x.getLogTrigger_("videoSegmentStream")),K.videoSegmentStream.on("timelineStartInfo",function(de){F&&!_.keepOriginalTimestamps&&(F.timelineStartInfo=de,K.audioSegmentStream.setEarliestDts(de.dts-x.baseMediaDecodeTime))}),K.videoSegmentStream.on("processedGopsInfo",x.trigger.bind(x,"gopInfo")),K.videoSegmentStream.on("segmentTimingInfo",x.trigger.bind(x,"videoSegmentTimingInfo")),K.videoSegmentStream.on("baseMediaDecodeTime",function(de){F&&K.audioSegmentStream.setVideoBaseMediaDecodeTime(de)}),K.videoSegmentStream.on("timingInfo",x.trigger.bind(x,"videoTimingInfo")),K.h264Stream.pipe(K.videoSegmentStream).pipe(K.coalesceStream)),F&&!K.audioSegmentStream&&(K.coalesceStream.numberOfTracks++,K.audioSegmentStream=new jl(F,_),K.audioSegmentStream.on("log",x.getLogTrigger_("audioSegmentStream")),K.audioSegmentStream.on("timingInfo",x.trigger.bind(x,"audioTimingInfo")),K.audioSegmentStream.on("segmentTimingInfo",x.trigger.bind(x,"audioSegmentTimingInfo")),K.adtsStream.pipe(K.audioSegmentStream).pipe(K.coalesceStream)),x.trigger("trackinfo",{hasAudio:!!F,hasVideo:!!A})}}),K.coalesceStream.on("data",this.trigger.bind(this,"data")),K.coalesceStream.on("id3Frame",function(re){re.dispatchType=K.metadataStream.dispatchType,x.trigger("id3Frame",re)}),K.coalesceStream.on("caption",this.trigger.bind(this,"caption")),K.coalesceStream.on("done",this.trigger.bind(this,"done")),_w(this,K)},this.setBaseMediaDecodeTime=function(K){var re=this.transmuxPipeline_;_.keepOriginalTimestamps||(this.baseMediaDecodeTime=K),F&&(F.timelineStartInfo.dts=void 0,F.timelineStartInfo.pts=void 0,si.clearDtsInfo(F),re.audioTimestampRolloverStream&&re.audioTimestampRolloverStream.discontinuity()),A&&(re.videoSegmentStream&&(re.videoSegmentStream.gopCache_=[]),A.timelineStartInfo.dts=void 0,A.timelineStartInfo.pts=void 0,si.clearDtsInfo(A),re.captionStream.reset()),re.timestampRolloverStream&&re.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(K){F&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(K)},this.setRemux=function(K){var re=this.transmuxPipeline_;_.remux=K,re&&re.coalesceStream&&re.coalesceStream.setRemux(K)},this.alignGopsWith=function(K){A&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(K)},this.getLogTrigger_=function(K){var re=this;return function(oe){oe.stream=K,re.trigger("log",oe)}},this.push=function(K){if(D){var re=WM(K);re&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!re&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),D=!1}this.transmuxPipeline_.headOfPipeline.push(K)},this.flush=function(){D=!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()}},Vh.prototype=new Lh;var YM={Transmuxer:Vh,VideoSegmentStream:Zc,AudioSegmentStream:jl,AUDIO_PROPERTIES:Wv,VIDEO_PROPERTIES:Kv,generateSegmentTimingInfo:Gv},XM=function(_){return _>>>0},QM=function(_){return("00"+_.toString(16)).slice(-2)},Uh={toUnsigned:XM,toHexString:QM},JM=function(_){var x="";return x+=String.fromCharCode(_[0]),x+=String.fromCharCode(_[1]),x+=String.fromCharCode(_[2]),x+=String.fromCharCode(_[3]),x},ww=JM,ZM=Uh.toUnsigned,eL=ww,Tw=function(_,x){var D=[],A,F,K,re,oe;if(!x.length)return null;for(A=0;A<_.byteLength;)F=ZM(_[A]<<24|_[A+1]<<16|_[A+2]<<8|_[A+3]),K=eL(_.subarray(A+4,A+8)),re=F>1?A+F:_.byteLength,K===x[0]&&(x.length===1?D.push(_.subarray(A+8,re)):(oe=Tw(_.subarray(A+8,re),x.slice(1)),oe.length&&(D=D.concat(oe)))),A=re;return D},Cw=Tw,tL=Uh.toUnsigned,nL=i.getUint64,sL=function(_){var x={version:_[0],flags:new Uint8Array(_.subarray(1,4))};return x.version===1?x.baseMediaDecodeTime=nL(_.subarray(4)):x.baseMediaDecodeTime=tL(_[4]<<24|_[5]<<16|_[6]<<8|_[7]),x},Ew=sL,rL=function(_){return{isLeading:(_[0]&12)>>>2,dependsOn:_[0]&3,isDependedOn:(_[1]&192)>>>6,hasRedundancy:(_[1]&48)>>>4,paddingValue:(_[1]&14)>>>1,isNonSyncSample:_[1]&1,degradationPriority:_[2]<<8|_[3]}},iL=rL,xw=iL,aL=function(_){var x={version:_[0],flags:new Uint8Array(_.subarray(1,4)),samples:[]},D=new DataView(_.buffer,_.byteOffset,_.byteLength),A=x.flags[2]&1,F=x.flags[2]&4,K=x.flags[1]&1,re=x.flags[1]&2,oe=x.flags[1]&4,de=x.flags[1]&8,ge=D.getUint32(4),Oe=8,qe;for(A&&(x.dataOffset=D.getInt32(Oe),Oe+=4),F&&ge&&(qe={flags:xw(_.subarray(Oe,Oe+4))},Oe+=4,K&&(qe.duration=D.getUint32(Oe),Oe+=4),re&&(qe.size=D.getUint32(Oe),Oe+=4),de&&(x.version===1?qe.compositionTimeOffset=D.getInt32(Oe):qe.compositionTimeOffset=D.getUint32(Oe),Oe+=4),x.samples.push(qe),ge--);ge--;)qe={},K&&(qe.duration=D.getUint32(Oe),Oe+=4),re&&(qe.size=D.getUint32(Oe),Oe+=4),oe&&(qe.flags=xw(_.subarray(Oe,Oe+4)),Oe+=4),de&&(x.version===1?qe.compositionTimeOffset=D.getInt32(Oe):qe.compositionTimeOffset=D.getUint32(Oe),Oe+=4),x.samples.push(qe);return x},kw=aL,oL=function(_){var x=new DataView(_.buffer,_.byteOffset,_.byteLength),D={version:_[0],flags:new Uint8Array(_.subarray(1,4)),trackId:x.getUint32(4)},A=D.flags[2]&1,F=D.flags[2]&2,K=D.flags[2]&8,re=D.flags[2]&16,oe=D.flags[2]&32,de=D.flags[0]&65536,ge=D.flags[0]&131072,Oe;return Oe=8,A&&(Oe+=4,D.baseDataOffset=x.getUint32(12),Oe+=4),F&&(D.sampleDescriptionIndex=x.getUint32(Oe),Oe+=4),K&&(D.defaultSampleDuration=x.getUint32(Oe),Oe+=4),re&&(D.defaultSampleSize=x.getUint32(Oe),Oe+=4),oe&&(D.defaultSampleFlags=x.getUint32(Oe)),de&&(D.durationIsEmpty=!0),!A&&ge&&(D.baseDataOffsetIsMoof=!0),D},Aw=oL,ed;typeof window<"u"?ed=window:typeof e<"u"?ed=e:typeof self<"u"?ed=self:ed={};var Iw=ed,lL=Zi.discardEmulationPreventionBytes,uL=We.CaptionStream,td=Cw,cL=Ew,dL=kw,fL=Aw,Dw=Iw,hL=function(_,x){for(var D=_,A=0;A<x.length;A++){var F=x[A];if(D<F.size)return F;D-=F.size}return null},pL=function(_,x,D){var A=new DataView(_.buffer,_.byteOffset,_.byteLength),F={logs:[],seiNals:[]},K,re,oe,de;for(re=0;re+4<_.length;re+=oe)if(oe=A.getUint32(re),re+=4,!(oe<=0))switch(_[re]&31){case 6:var ge=_.subarray(re+1,re+1+oe),Oe=hL(re,x);if(K={nalUnitType:"sei_rbsp",size:oe,data:ge,escapedRBSP:lL(ge),trackId:D},Oe)K.pts=Oe.pts,K.dts=Oe.dts,de=Oe;else if(de)K.pts=de.pts,K.dts=de.dts;else{F.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+re+" for trackId "+D+". See mux.js#223."});break}F.seiNals.push(K);break}return F},mL=function(_,x,D){var A=x,F=D.defaultSampleDuration||0,K=D.defaultSampleSize||0,re=D.trackId,oe=[];return _.forEach(function(de){var ge=dL(de),Oe=ge.samples;Oe.forEach(function(qe){qe.duration===void 0&&(qe.duration=F),qe.size===void 0&&(qe.size=K),qe.trackId=re,qe.dts=A,qe.compositionTimeOffset===void 0&&(qe.compositionTimeOffset=0),typeof A=="bigint"?(qe.pts=A+Dw.BigInt(qe.compositionTimeOffset),A+=Dw.BigInt(qe.duration)):(qe.pts=A+qe.compositionTimeOffset,A+=qe.duration)}),oe=oe.concat(Oe)}),oe},gL=function(_,x){var D=td(_,["moof","traf"]),A=td(_,["mdat"]),F={},K=[];return A.forEach(function(re,oe){var de=D[oe];K.push({mdat:re,traf:de})}),K.forEach(function(re){var oe=re.mdat,de=re.traf,ge=td(de,["tfhd"]),Oe=fL(ge[0]),qe=Oe.trackId,Tt=td(de,["tfdt"]),rt=Tt.length>0?cL(Tt[0]).baseMediaDecodeTime:0,Ht=td(de,["trun"]),Gt,is;x===qe&&Ht.length>0&&(Gt=mL(Ht,rt,Oe),is=pL(oe,Gt,qe),F[qe]||(F[qe]={seiNals:[],logs:[]}),F[qe].seiNals=F[qe].seiNals.concat(is.seiNals),F[qe].logs=F[qe].logs.concat(is.logs))}),F},vL=function(_,x,D){var A;if(x===null)return null;A=gL(_,x);var F=A[x]||{};return{seiNals:F.seiNals,logs:F.logs,timescale:D}},yL=function(){var _=!1,x,D,A,F,K,re;this.isInitialized=function(){return _},this.init=function(oe){x=new uL,_=!0,re=oe?oe.isPartial:!1,x.on("data",function(de){de.startTime=de.startPts/F,de.endTime=de.endPts/F,K.captions.push(de),K.captionStreams[de.stream]=!0}),x.on("log",function(de){K.logs.push(de)})},this.isNewInit=function(oe,de){return oe&&oe.length===0||de&&typeof de=="object"&&Object.keys(de).length===0?!1:A!==oe[0]||F!==de[A]},this.parse=function(oe,de,ge){var Oe;if(this.isInitialized()){if(!de||!ge)return null;if(this.isNewInit(de,ge))A=de[0],F=ge[A];else if(A===null||!F)return D.push(oe),null}else return null;for(;D.length>0;){var qe=D.shift();this.parse(qe,de,ge)}return Oe=vL(oe,A,F),Oe&&Oe.logs&&(K.logs=K.logs.concat(Oe.logs)),Oe===null||!Oe.seiNals?K.logs.length?{logs:K.logs,captions:[],captionStreams:[]}:null:(this.pushNals(Oe.seiNals),this.flushStream(),K)},this.pushNals=function(oe){if(!this.isInitialized()||!oe||oe.length===0)return null;oe.forEach(function(de){x.push(de)})},this.flushStream=function(){if(!this.isInitialized())return null;re?x.partialFlush():x.flush()},this.clearParsedCaptions=function(){K.captions=[],K.captionStreams={},K.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;x.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){D=[],A=null,F=null,K?this.clearParsedCaptions():K={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},bL=yL,_L=function(_){for(var x=0,D=String.fromCharCode(_[x]),A="";D!=="\0";)A+=D,x++,D=String.fromCharCode(_[x]);return A+=D,A},SL={uint8ToCString:_L},Hh=SL.uint8ToCString,wL=i.getUint64,TL=function(_){var x=4,D=_[0],A,F,K,re,oe,de,ge,Oe;if(D===0){A=Hh(_.subarray(x)),x+=A.length,F=Hh(_.subarray(x)),x+=F.length;var qe=new DataView(_.buffer);K=qe.getUint32(x),x+=4,oe=qe.getUint32(x),x+=4,de=qe.getUint32(x),x+=4,ge=qe.getUint32(x),x+=4}else if(D===1){var qe=new DataView(_.buffer);K=qe.getUint32(x),x+=4,re=wL(_.subarray(x)),x+=8,de=qe.getUint32(x),x+=4,ge=qe.getUint32(x),x+=4,A=Hh(_.subarray(x)),x+=A.length,F=Hh(_.subarray(x)),x+=F.length}Oe=new Uint8Array(_.subarray(x,_.byteLength));var Tt={scheme_id_uri:A,value:F,timescale:K||1,presentation_time:re,presentation_time_delta:oe,event_duration:de,id:ge,message_data:Oe};return EL(D,Tt)?Tt:void 0},CL=function(_,x,D,A){return _||_===0?_/x:A+D/x},EL=function(_,x){var D=x.scheme_id_uri!=="\0",A=_===0&&Ow(x.presentation_time_delta)&&D,F=_===1&&Ow(x.presentation_time)&&D;return!(_>1)&&A||F},Ow=function(_){return _!==void 0||_!==null},xL={parseEmsgBox:TL,scaleTime:CL},zh=Uh.toUnsigned,nd=Uh.toHexString,Gn=Cw,ql=ww,Yv=xL,kL=Aw,AL=kw,IL=Ew,DL=i.getUint64,Pw,$w,Rw,Nw,Mw,Xv,Lw,Qv=Iw,OL=uw.parseId3Frames;Pw=function(_){var x={},D=Gn(_,["moov","trak"]);return D.reduce(function(A,F){var K,re,oe,de,ge;return K=Gn(F,["tkhd"])[0],!K||(re=K[0],oe=re===0?12:20,de=zh(K[oe]<<24|K[oe+1]<<16|K[oe+2]<<8|K[oe+3]),ge=Gn(F,["mdia","mdhd"])[0],!ge)?null:(re=ge[0],oe=re===0?12:20,A[de]=zh(ge[oe]<<24|ge[oe+1]<<16|ge[oe+2]<<8|ge[oe+3]),A)},x)},$w=function(_,x){var D;D=Gn(x,["moof","traf"]);var A=D.reduce(function(F,K){var re=Gn(K,["tfhd"])[0],oe=zh(re[4]<<24|re[5]<<16|re[6]<<8|re[7]),de=_[oe]||9e4,ge=Gn(K,["tfdt"])[0],Oe=new DataView(ge.buffer,ge.byteOffset,ge.byteLength),qe;ge[0]===1?qe=DL(ge.subarray(4,12)):qe=Oe.getUint32(4);let Tt;return typeof qe=="bigint"?Tt=qe/Qv.BigInt(de):typeof qe=="number"&&!isNaN(qe)&&(Tt=qe/de),Tt<Number.MAX_SAFE_INTEGER&&(Tt=Number(Tt)),Tt<F&&(F=Tt),F},1/0);return typeof A=="bigint"||isFinite(A)?A:0},Rw=function(_,x){var D=Gn(x,["moof","traf"]),A=0,F=0,K;if(D&&D.length){var re=Gn(D[0],["tfhd"])[0],oe=Gn(D[0],["trun"])[0],de=Gn(D[0],["tfdt"])[0];if(re){var ge=kL(re);K=ge.trackId}if(de){var Oe=IL(de);A=Oe.baseMediaDecodeTime}if(oe){var qe=AL(oe);qe.samples&&qe.samples.length&&(F=qe.samples[0].compositionTimeOffset||0)}}var Tt=_[K]||9e4;typeof A=="bigint"&&(F=Qv.BigInt(F),Tt=Qv.BigInt(Tt));var rt=(A+F)/Tt;return typeof rt=="bigint"&&rt<Number.MAX_SAFE_INTEGER&&(rt=Number(rt)),rt},Nw=function(_){var x=Gn(_,["moov","trak"]),D=[];return x.forEach(function(A){var F=Gn(A,["mdia","hdlr"]),K=Gn(A,["tkhd"]);F.forEach(function(re,oe){var de=ql(re.subarray(8,12)),ge=K[oe],Oe,qe,Tt;de==="vide"&&(Oe=new DataView(ge.buffer,ge.byteOffset,ge.byteLength),qe=Oe.getUint8(0),Tt=qe===0?Oe.getUint32(12):Oe.getUint32(20),D.push(Tt))})}),D},Xv=function(_){var x=_[0],D=x===0?12:20;return zh(_[D]<<24|_[D+1]<<16|_[D+2]<<8|_[D+3])},Mw=function(_){var x=Gn(_,["moov","trak"]),D=[];return x.forEach(function(A){var F={},K=Gn(A,["tkhd"])[0],re,oe;K&&(re=new DataView(K.buffer,K.byteOffset,K.byteLength),oe=re.getUint8(0),F.id=oe===0?re.getUint32(12):re.getUint32(20));var de=Gn(A,["mdia","hdlr"])[0];if(de){var ge=ql(de.subarray(8,12));ge==="vide"?F.type="video":ge==="soun"?F.type="audio":F.type=ge}var Oe=Gn(A,["mdia","minf","stbl","stsd"])[0];if(Oe){var qe=Oe.subarray(8);F.codec=ql(qe.subarray(4,8));var Tt=Gn(qe,[F.codec])[0],rt,Ht;Tt&&(/^[asm]vc[1-9]$/i.test(F.codec)?(rt=Tt.subarray(78),Ht=ql(rt.subarray(4,8)),Ht==="avcC"&&rt.length>11?(F.codec+=".",F.codec+=nd(rt[9]),F.codec+=nd(rt[10]),F.codec+=nd(rt[11])):F.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(F.codec)?(rt=Tt.subarray(28),Ht=ql(rt.subarray(4,8)),Ht==="esds"&&rt.length>20&&rt[19]!==0?(F.codec+="."+nd(rt[19]),F.codec+="."+nd(rt[20]>>>2&63).replace(/^0/,"")):F.codec="mp4a.40.2"):F.codec=F.codec.toLowerCase())}var Gt=Gn(A,["mdia","mdhd"])[0];Gt&&(F.timescale=Xv(Gt)),D.push(F)}),D},Lw=function(_,x=0){var D=Gn(_,["emsg"]);return D.map(A=>{var F=Yv.parseEmsgBox(new Uint8Array(A)),K=OL(F.message_data);return{cueTime:Yv.scaleTime(F.presentation_time,F.timescale,F.presentation_time_delta,x),duration:Yv.scaleTime(F.event_duration,F.timescale),frames:K}})};var Jv={findBox:Gn,parseType:ql,timescale:Pw,startTime:$w,compositionStartTime:Rw,videoTrackIds:Nw,tracks:Mw,getTimescaleFromMediaHeader:Xv,getEmsgID3:Lw},Zv=St,Bw=function(_){var x=_[1]&31;return x<<=8,x|=_[2],x},jh=function(_){return!!(_[1]&64)},qh=function(_){var x=0;return(_[3]&48)>>>4>1&&(x+=_[4]+1),x},PL=function(_,x){var D=Bw(_);return D===0?"pat":D===x?"pmt":x?"pes":null},$L=function(_){var x=jh(_),D=4+qh(_);return x&&(D+=_[D]+1),(_[D+10]&31)<<8|_[D+11]},RL=function(_){var x={},D=jh(_),A=4+qh(_);if(D&&(A+=_[A]+1),!!(_[A+5]&1)){var F,K,re;F=(_[A+1]&15)<<8|_[A+2],K=3+F-4,re=(_[A+10]&15)<<8|_[A+11];for(var oe=12+re;oe<K;){var de=A+oe;x[(_[de+1]&31)<<8|_[de+2]]=_[de],oe+=((_[de+3]&15)<<8|_[de+4])+5}return x}},NL=function(_,x){var D=Bw(_),A=x[D];switch(A){case Zv.H264_STREAM_TYPE:return"video";case Zv.ADTS_STREAM_TYPE:return"audio";case Zv.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},ML=function(_){var x=jh(_);if(!x)return null;var D=4+qh(_);if(D>=_.byteLength)return null;var A=null,F;return F=_[D+7],F&192&&(A={},A.pts=(_[D+9]&14)<<27|(_[D+10]&255)<<20|(_[D+11]&254)<<12|(_[D+12]&255)<<5|(_[D+13]&254)>>>3,A.pts*=4,A.pts+=(_[D+13]&6)>>>1,A.dts=A.pts,F&64&&(A.dts=(_[D+14]&14)<<27|(_[D+15]&255)<<20|(_[D+16]&254)<<12|(_[D+17]&255)<<5|(_[D+18]&254)>>>3,A.dts*=4,A.dts+=(_[D+18]&6)>>>1)),A},e0=function(_){switch(_){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}},LL=function(_){for(var x=4+qh(_),D=_.subarray(x),A=0,F=0,K=!1,re;F<D.byteLength-3;F++)if(D[F+2]===1){A=F+5;break}for(;A<D.byteLength;)switch(D[A]){case 0:if(D[A-1]!==0){A+=2;break}else if(D[A-2]!==0){A++;break}F+3!==A-2&&(re=e0(D[F+3]&31),re==="slice_layer_without_partitioning_rbsp_idr"&&(K=!0));do A++;while(D[A]!==1&&A<D.length);F=A-2,A+=3;break;case 1:if(D[A-1]!==0||D[A-2]!==0){A+=3;break}re=e0(D[F+3]&31),re==="slice_layer_without_partitioning_rbsp_idr"&&(K=!0),F=A-2,A+=3;break;default:A+=3;break}return D=D.subarray(F),A-=F,F=0,D&&D.byteLength>3&&(re=e0(D[F+3]&31),re==="slice_layer_without_partitioning_rbsp_idr"&&(K=!0)),K},BL={parseType:PL,parsePat:$L,parsePmt:RL,parsePayloadUnitStartIndicator:jh,parsePesType:NL,parsePesTime:ML,videoPacketContainsKeyFrame:LL},Fw=St,Wl=ow.handleRollover,vn={};vn.ts=BL,vn.aac=qv;var Bo=Ue.ONE_SECOND_IN_TS,Ns=188,Ci=71,FL=function(_,x){for(var D=0,A=Ns,F,K;A<_.byteLength;){if(_[D]===Ci&&_[A]===Ci){switch(F=_.subarray(D,A),K=vn.ts.parseType(F,x.pid),K){case"pat":x.pid=vn.ts.parsePat(F);break;case"pmt":var re=vn.ts.parsePmt(F);x.table=x.table||{},Object.keys(re).forEach(function(oe){x.table[oe]=re[oe]});break}D+=Ns,A+=Ns;continue}D++,A++}},Vw=function(_,x,D){for(var A=0,F=Ns,K,re,oe,de,ge,Oe=!1;F<=_.byteLength;){if(_[A]===Ci&&(_[F]===Ci||F===_.byteLength)){switch(K=_.subarray(A,F),re=vn.ts.parseType(K,x.pid),re){case"pes":oe=vn.ts.parsePesType(K,x.table),de=vn.ts.parsePayloadUnitStartIndicator(K),oe==="audio"&&de&&(ge=vn.ts.parsePesTime(K),ge&&(ge.type="audio",D.audio.push(ge),Oe=!0));break}if(Oe)break;A+=Ns,F+=Ns;continue}A++,F++}for(F=_.byteLength,A=F-Ns,Oe=!1;A>=0;){if(_[A]===Ci&&(_[F]===Ci||F===_.byteLength)){switch(K=_.subarray(A,F),re=vn.ts.parseType(K,x.pid),re){case"pes":oe=vn.ts.parsePesType(K,x.table),de=vn.ts.parsePayloadUnitStartIndicator(K),oe==="audio"&&de&&(ge=vn.ts.parsePesTime(K),ge&&(ge.type="audio",D.audio.push(ge),Oe=!0));break}if(Oe)break;A-=Ns,F-=Ns;continue}A--,F--}},VL=function(_,x,D){for(var A=0,F=Ns,K,re,oe,de,ge,Oe,qe,Tt,rt=!1,Ht={data:[],size:0};F<_.byteLength;){if(_[A]===Ci&&_[F]===Ci){switch(K=_.subarray(A,F),re=vn.ts.parseType(K,x.pid),re){case"pes":if(oe=vn.ts.parsePesType(K,x.table),de=vn.ts.parsePayloadUnitStartIndicator(K),oe==="video"&&(de&&!rt&&(ge=vn.ts.parsePesTime(K),ge&&(ge.type="video",D.video.push(ge),rt=!0)),!D.firstKeyFrame)){if(de&&Ht.size!==0){for(Oe=new Uint8Array(Ht.size),qe=0;Ht.data.length;)Tt=Ht.data.shift(),Oe.set(Tt,qe),qe+=Tt.byteLength;if(vn.ts.videoPacketContainsKeyFrame(Oe)){var Gt=vn.ts.parsePesTime(Oe);Gt?(D.firstKeyFrame=Gt,D.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.")}Ht.size=0}Ht.data.push(K),Ht.size+=K.byteLength}break}if(rt&&D.firstKeyFrame)break;A+=Ns,F+=Ns;continue}A++,F++}for(F=_.byteLength,A=F-Ns,rt=!1;A>=0;){if(_[A]===Ci&&_[F]===Ci){switch(K=_.subarray(A,F),re=vn.ts.parseType(K,x.pid),re){case"pes":oe=vn.ts.parsePesType(K,x.table),de=vn.ts.parsePayloadUnitStartIndicator(K),oe==="video"&&de&&(ge=vn.ts.parsePesTime(K),ge&&(ge.type="video",D.video.push(ge),rt=!0));break}if(rt)break;A-=Ns,F-=Ns;continue}A--,F--}},UL=function(_,x){if(_.audio&&_.audio.length){var D=x;(typeof D>"u"||isNaN(D))&&(D=_.audio[0].dts),_.audio.forEach(function(K){K.dts=Wl(K.dts,D),K.pts=Wl(K.pts,D),K.dtsTime=K.dts/Bo,K.ptsTime=K.pts/Bo})}if(_.video&&_.video.length){var A=x;if((typeof A>"u"||isNaN(A))&&(A=_.video[0].dts),_.video.forEach(function(K){K.dts=Wl(K.dts,A),K.pts=Wl(K.pts,A),K.dtsTime=K.dts/Bo,K.ptsTime=K.pts/Bo}),_.firstKeyFrame){var F=_.firstKeyFrame;F.dts=Wl(F.dts,A),F.pts=Wl(F.pts,A),F.dtsTime=F.dts/Bo,F.ptsTime=F.pts/Bo}}},HL=function(_){for(var x=!1,D=0,A=null,F=null,K=0,re=0,oe;_.length-re>=3;){var de=vn.aac.parseType(_,re);switch(de){case"timed-metadata":if(_.length-re<10){x=!0;break}if(K=vn.aac.parseId3TagSize(_,re),K>_.length){x=!0;break}F===null&&(oe=_.subarray(re,re+K),F=vn.aac.parseAacTimestamp(oe)),re+=K;break;case"audio":if(_.length-re<7){x=!0;break}if(K=vn.aac.parseAdtsSize(_,re),K>_.length){x=!0;break}A===null&&(oe=_.subarray(re,re+K),A=vn.aac.parseSampleRate(oe)),D++,re+=K;break;default:re++;break}if(x)return null}if(A===null||F===null)return null;var ge=Bo/A,Oe={audio:[{type:"audio",dts:F,pts:F},{type:"audio",dts:F+D*1024*ge,pts:F+D*1024*ge}]};return Oe},zL=function(_){var x={pid:null,table:null},D={};FL(_,x);for(var A in x.table)if(x.table.hasOwnProperty(A)){var F=x.table[A];switch(F){case Fw.H264_STREAM_TYPE:D.video=[],VL(_,x,D),D.video.length===0&&delete D.video;break;case Fw.ADTS_STREAM_TYPE:D.audio=[],Vw(_,x,D),D.audio.length===0&&delete D.audio;break}}return D},jL=function(_,x){var D=vn.aac.isLikelyAacData(_),A;return D?A=HL(_):A=zL(_),!A||!A.audio&&!A.video?null:(UL(A,x),A)},qL={inspect:jL,parseAudioPes_:Vw};const WL=function(_,x){x.on("data",function(D){const A=D.initSegment;D.initSegment={data:A.buffer,byteOffset:A.byteOffset,byteLength:A.byteLength};const F=D.data;D.data=F.buffer,_.postMessage({action:"data",segment:D,byteOffset:F.byteOffset,byteLength:F.byteLength},[D.data])}),x.on("done",function(D){_.postMessage({action:"done"})}),x.on("gopInfo",function(D){_.postMessage({action:"gopInfo",gopInfo:D})}),x.on("videoSegmentTimingInfo",function(D){const A={start:{decode:Ue.videoTsToSeconds(D.start.dts),presentation:Ue.videoTsToSeconds(D.start.pts)},end:{decode:Ue.videoTsToSeconds(D.end.dts),presentation:Ue.videoTsToSeconds(D.end.pts)},baseMediaDecodeTime:Ue.videoTsToSeconds(D.baseMediaDecodeTime)};D.prependedContentDuration&&(A.prependedContentDuration=Ue.videoTsToSeconds(D.prependedContentDuration)),_.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:A})}),x.on("audioSegmentTimingInfo",function(D){const A={start:{decode:Ue.videoTsToSeconds(D.start.dts),presentation:Ue.videoTsToSeconds(D.start.pts)},end:{decode:Ue.videoTsToSeconds(D.end.dts),presentation:Ue.videoTsToSeconds(D.end.pts)},baseMediaDecodeTime:Ue.videoTsToSeconds(D.baseMediaDecodeTime)};D.prependedContentDuration&&(A.prependedContentDuration=Ue.videoTsToSeconds(D.prependedContentDuration)),_.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:A})}),x.on("id3Frame",function(D){_.postMessage({action:"id3Frame",id3Frame:D})}),x.on("caption",function(D){_.postMessage({action:"caption",caption:D})}),x.on("trackinfo",function(D){_.postMessage({action:"trackinfo",trackInfo:D})}),x.on("audioTimingInfo",function(D){_.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:Ue.videoTsToSeconds(D.start),end:Ue.videoTsToSeconds(D.end)}})}),x.on("videoTimingInfo",function(D){_.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:Ue.videoTsToSeconds(D.start),end:Ue.videoTsToSeconds(D.end)}})}),x.on("log",function(D){_.postMessage({action:"log",log:D})})};class Uw{constructor(x,D){this.options=D||{},this.self=x,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new YM.Transmuxer(this.options),WL(this.self,this.transmuxer)}pushMp4Captions(x){this.captionParser||(this.captionParser=new bL,this.captionParser.init());const D=new Uint8Array(x.data,x.byteOffset,x.byteLength),A=this.captionParser.parse(D,x.trackIds,x.timescales);this.self.postMessage({action:"mp4Captions",captions:A&&A.captions||[],logs:A&&A.logs||[],data:D.buffer},[D.buffer])}probeMp4StartTime({timescales:x,data:D}){const A=Jv.startTime(x,D);this.self.postMessage({action:"probeMp4StartTime",startTime:A,data:D},[D.buffer])}probeMp4Tracks({data:x}){const D=Jv.tracks(x);this.self.postMessage({action:"probeMp4Tracks",tracks:D,data:x},[x.buffer])}probeEmsgID3({data:x,offset:D}){const A=Jv.getEmsgID3(x,D);this.self.postMessage({action:"probeEmsgID3",id3Frames:A,emsgData:x},[x.buffer])}probeTs({data:x,baseStartTime:D}){const A=typeof D=="number"&&!isNaN(D)?D*Ue.ONE_SECOND_IN_TS:void 0,F=qL.inspect(x,A);let K=null;F&&(K={hasVideo:F.video&&F.video.length===2||!1,hasAudio:F.audio&&F.audio.length===2||!1},K.hasVideo&&(K.videoStart=F.video[0].ptsTime),K.hasAudio&&(K.audioStart=F.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:K,data:x},[x.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(x){const D=new Uint8Array(x.data,x.byteOffset,x.byteLength);this.transmuxer.push(D)}reset(){this.transmuxer.reset()}setTimestampOffset(x){const D=x.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(Ue.secondsToVideoTs(D)))}setAudioAppendStart(x){this.transmuxer.setAudioAppendStart(Math.ceil(Ue.secondsToVideoTs(x.appendStart)))}setRemux(x){this.transmuxer.setRemux(x.remux)}flush(x){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(x){this.transmuxer.alignGopsWith(x.gopsToAlignWith.slice())}}self.onmessage=function(_){if(_.data.action==="init"&&_.data.options){this.messageHandlers=new Uw(self,_.data.options);return}this.messageHandlers||(this.messageHandlers=new Uw(self)),_.data&&_.data.action&&_.data.action!=="init"&&this.messageHandlers[_.data.action]&&this.messageHandlers[_.data.action](_.data)}}));var xTe=NN(ETe);const kTe=(e,t,n)=>{const{type:s,initSegment:r,captions:i,captionStreams:a,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:u}=e.data.segment;t.buffer.push({captions:i,captionStreams:a,metadata:o});const c=e.data.segment.boxes||{data:e.data.segment.data},f={type:s,data:new Uint8Array(c.data,c.data.byteOffset,c.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)},ATe=({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)},ITe=(e,t)=>{t.gopInfo=e.data.gopInfo},BN=e=>{const{transmuxer:t,bytes:n,audioAppendStart:s,gopsToAlignWith:r,remux:i,onData:a,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:u,onVideoSegmentTimingInfo:c,onAudioSegmentTimingInfo:f,onId3:h,onCaptions:g,onDone:m,onEndedTimeline:p,onTransmuxerLog:y,isEndOfTimeline:v,segment:b,triggerSegmentEventFn:S}=e,T={buffer:[]};let w=v;const C=P=>{t.currentTransmux===e&&(P.data.action==="data"&&kTe(P,T,a),P.data.action==="trackinfo"&&o(P.data.trackInfo),P.data.action==="gopInfo"&&ITe(P,T),P.data.action==="audioTimingInfo"&&l(P.data.audioTimingInfo),P.data.action==="videoTimingInfo"&&u(P.data.videoTimingInfo),P.data.action==="videoSegmentTimingInfo"&&c(P.data.videoSegmentTimingInfo),P.data.action==="audioSegmentTimingInfo"&&f(P.data.audioSegmentTimingInfo),P.data.action==="id3Frame"&&h([P.data.id3Frame],P.data.id3Frame.dispatchType),P.data.action==="caption"&&g(P.data.caption),P.data.action==="endedtimeline"&&(w=!1,p()),P.data.action==="log"&&y(P.data.log),P.data.type==="transmuxed"&&(w||(t.onmessage=null,ATe({transmuxedData:T,callback:m}),FN(t))))},O=()=>{const P={message:"Received an error message from the transmuxer worker",metadata:{errorType:He.Error.StreamingFailedToTransmuxSegment,segmentInfo:Zo({segment:b})}};m(null,P)};if(t.onmessage=C,t.onerror=O,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 P=n instanceof ArrayBuffer?n:n.buffer,M=n instanceof ArrayBuffer?0:n.byteOffset;S({type:"segmenttransmuxingstart",segment:b}),t.postMessage({action:"push",data:P,byteOffset:M,byteLength:n.byteLength},[P])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},FN=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),typeof e.currentTransmux=="function"?e.currentTransmux():BN(e.currentTransmux))},pA=(e,t)=>{e.postMessage({action:t}),FN(e)},VN=(e,t)=>{if(!t.currentTransmux){t.currentTransmux=e,pA(t,e);return}t.transmuxQueue.push(pA.bind(null,t,e))},DTe=e=>{VN("reset",e)},OTe=e=>{VN("endTimeline",e)},UN=e=>{if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,BN(e);return}e.transmuxer.transmuxQueue.push(e)},PTe=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 py={reset:DTe,endTimeline:OTe,transmux:UN,createTransmuxer:PTe};const nf=function(e){const t=e.transmuxer,n=e.endAction||e.action,s=e.callback,r=qn({},e,{endAction:null,transmuxer:null,callback:null}),i=a=>{a.data.action===n&&(t.removeEventListener("message",i),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),s(a.data))};if(t.addEventListener("message",i),e.data){const a=e.data instanceof ArrayBuffer;r.byteOffset=a?0:e.data.byteOffset,r.byteLength=e.data.byteLength;const o=[a?e.data:e.data.buffer];t.postMessage(r,o)}else t.postMessage(r)},Mi={FAILURE:2,TIMEOUT:-101,ABORTED:-102},C_=e=>{e.forEach(t=>{t.abort()})},$Te=e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}),RTe=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},ew=(e,t)=>{const{requestType:n}=t,s=yl({requestType:n,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Mi.TIMEOUT,xhr:t,metadata:s}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Mi.ABORTED,xhr:t,metadata:s}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Mi.FAILURE,xhr:t,metadata:s}:t.responseType==="arraybuffer"&&t.response.byteLength===0?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Mi.FAILURE,xhr:t,metadata:s}:null},mA=(e,t,n,s)=>(r,i)=>{const a=i.response,o=ew(r,i);if(o)return n(o,e);if(a.byteLength!==16)return n({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:Mi.FAILURE,xhr:i},e);const l=new DataView(a),u=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]);for(let f=0;f<t.length;f++)t[f].bytes=u;const c={uri:i.uri};return s({type:"segmentkeyloadcomplete",segment:e,keyInfo:c}),n(null,e)},HN=(e,t)=>{const n=bS(e.map.bytes);if(n!=="mp4"){const s=e.map.resolvedUri||e.map.uri,r=n||"unknown";return t({internal:!0,message:`Found unsupported ${r} container for initialization segment at URL: ${s}`,code:Mi.FAILURE,metadata:{mediaType:r}})}nf({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))})},NTe=({segment:e,finishProcessingFn:t,triggerSegmentEventFn:n})=>(s,r)=>{const i=ew(s,r);if(i)return t(i,e);const a=new Uint8Array(r.response);if(n({type:"segmentloaded",segment:e}),e.map.key)return e.map.encryptedBytes=a,t(null,e);e.map.bytes=a,HN(e,function(o){if(o)return o.xhr=r,o.status=r.status,t(o,e);t(null,e)})},MTe=({segment:e,finishProcessingFn:t,responseType:n,triggerSegmentEventFn:s})=>(r,i)=>{const a=ew(r,i);if(a)return t(a,e);s({type:"segmentloaded",segment:e});const o=n==="arraybuffer"||!i.responseText?i.response:TTe(i.responseText.substring(e.lastReachedChar||0));return e.stats=$Te(i),e.key?e.encryptedBytes=new Uint8Array(o):e.bytes=new Uint8Array(o),t(null,e)},LTe=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:g})=>{const m=e.map&&e.map.tracks||{},p=!!(m.audio&&m.video);let y=s.bind(null,e,"audio","start");const v=s.bind(null,e,"audio","end");let b=s.bind(null,e,"video","start");const S=s.bind(null,e,"video","end"),T=()=>UN({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:p,onData:w=>{w.type=w.type==="combined"?"video":w.type,c(e,w)},onTrackInfo:w=>{n&&(p&&(w.isMuxed=!0),n(e,w))},onAudioTimingInfo:w=>{y&&typeof w.start<"u"&&(y(w.start),y=null),v&&typeof w.end<"u"&&v(w.end)},onVideoTimingInfo:w=>{b&&typeof w.start<"u"&&(b(w.start),b=null),S&&typeof w.end<"u"&&S(w.end)},onVideoSegmentTimingInfo:w=>{const C={pts:{start:w.start.presentation,end:w.end.presentation},dts:{start:w.start.decode,end:w.end.decode}};g({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:C}),r(w)},onAudioSegmentTimingInfo:w=>{const C={pts:{start:w.start.pts,end:w.end.pts},dts:{start:w.start.dts,end:w.end.dts}};g({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:C}),i(w)},onId3:(w,C)=>{a(e,w,C)},onCaptions:w=>{o(e,[w])},isEndOfTimeline:l,onEndedTimeline:()=>{u()},onTransmuxerLog:h,onDone:(w,C)=>{f&&(w.type=w.type==="combined"?"video":w.type,g({type:"segmenttransmuxingcomplete",segment:e}),f(C,e,w))},segment:e,triggerSegmentEventFn:g});nf({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:w=>{e.bytes=t=w.data;const C=w.result;C&&(n(e,{hasAudio:C.hasAudio,hasVideo:C.hasVideo,isMuxed:p}),n=null),T()}})},zN=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:g})=>{let m=new Uint8Array(t);if(uSe(m)){e.isFmp4=!0;const{tracks:p}=e.map,y={isFmp4:!0,hasVideo:!!p.video,hasAudio:!!p.audio};p.audio&&p.audio.codec&&p.audio.codec!=="enca"&&(y.audioCodec=p.audio.codec),p.video&&p.video.codec&&p.video.codec!=="encv"&&(y.videoCodec=p.video.codec),p.video&&p.audio&&(y.isMuxed=!0),n(e,y);const v=(b,S)=>{c(e,{data:m,type:y.hasAudio&&!y.isMuxed?"audio":"video"}),S&&S.length&&a(e,S),b&&b.length&&o(e,b),f(null,e,{})};nf({action:"probeMp4StartTime",timescales:e.map.timescales,data:m,transmuxer:e.transmuxer,callback:({data:b,startTime:S})=>{t=b.buffer,e.bytes=m=b,y.hasAudio&&!y.isMuxed&&s(e,"audio","start",S),y.hasVideo&&s(e,"video","start",S),nf({action:"probeEmsgID3",data:m,transmuxer:e.transmuxer,offset:S,callback:({emsgData:T,id3Frames:w})=>{if(t=T.buffer,e.bytes=m=T,!p.video||!T.byteLength||!e.transmuxer){v(void 0,w);return}nf({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:m,timescales:e.map.timescales,trackIds:[p.video.id],callback:C=>{t=C.data.buffer,e.bytes=m=C.data,C.logs.forEach(function(O){h(pn(O,{stream:"mp4CaptionParser"}))}),v(C.captions,w)}})}})}});return}if(!e.transmuxer){f(null,e,{});return}if(typeof e.container>"u"&&(e.container=bS(m)),e.container!=="ts"&&e.container!=="aac"){n(e,{hasAudio:!1,hasVideo:!1}),f(null,e,{});return}LTe({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:g})},jN=function({id:e,key:t,encryptedBytes:n,decryptionWorker:s,segment:r,doneFn:i},a){const o=u=>{if(u.data.source===e){s.removeEventListener("message",o);const c=u.data.decrypted;a(new Uint8Array(c.bytes,c.byteOffset,c.byteLength))}};s.onerror=()=>{const u="An error occurred in the decryption worker",c=Zo({segment:r}),f={message:u,metadata:{error:new Error(u),errorType:He.Error.StreamingFailedToDecryptSegment,segmentInfo:c,keyInfo:{uri:r.key.resolvedUri||r.map.key.resolvedUri}}};i(f,r)},s.addEventListener("message",o);let l;t.bytes.slice?l=t.bytes.slice():l=new Uint32Array(Array.prototype.slice.call(t.bytes)),s.postMessage(IN({source:e,encrypted:n,key:l,iv:t.iv}),[n.buffer,l.buffer])},BTe=({decryptionWorker:e,segment:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:g})=>{g({type:"segmentdecryptionstart"}),jN({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:f},m=>{t.bytes=m,g({type:"segmentdecryptioncomplete",segment:t}),zN({segment:t,bytes:t.bytes,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:g})})},FTe=({activeXhrs:e,decryptionWorker:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:g})=>{let m=0,p=!1;return(y,v)=>{if(!p){if(y)return p=!0,C_(e),f(y,v);if(m+=1,m===e.length){const b=function(){if(v.encryptedBytes)return BTe({decryptionWorker:t,segment:v,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:g});zN({segment:v,bytes:v.bytes,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:g})};if(v.endOfAllRequests=Date.now(),v.map&&v.map.encryptedBytes&&!v.map.bytes)return g({type:"segmentdecryptionstart",segment:v}),jN({decryptionWorker:t,id:v.requestId+"-init",encryptedBytes:v.map.encryptedBytes,key:v.map.key,segment:v,doneFn:f},S=>{v.map.bytes=S,g({type:"segmentdecryptioncomplete",segment:v}),HN(v,T=>{if(T)return C_(e),f(T,v);b()})});b()}}}},VTe=({loadendState:e,abortFn:t})=>n=>{n.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)},UTe=({segment:e,progressFn:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c})=>f=>{if(!f.target.aborted)return e.stats=pn(e.stats,RTe(f)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(f,e)},HTe=({xhr:e,xhrOptions:t,decryptionWorker:n,segment:s,abortFn:r,progressFn:i,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:g,dataFn:m,doneFn:p,onTransmuxerLog:y,triggerSegmentEventFn:v})=>{const b=[],S=FTe({activeXhrs:b,decryptionWorker:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:g,dataFn:m,doneFn:p,onTransmuxerLog:y,triggerSegmentEventFn:v});if(s.key&&!s.key.bytes){const P=[s.key];s.map&&!s.map.bytes&&s.map.key&&s.map.key.resolvedUri===s.key.resolvedUri&&P.push(s.map.key);const M=pn(t,{uri:s.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),U=mA(s,P,S,v),B={uri:s.key.resolvedUri};v({type:"segmentkeyloadstart",segment:s,keyInfo:B});const W=e(M,U);b.push(W)}if(s.map&&!s.map.bytes){if(s.map.key&&(!s.key||s.key.resolvedUri!==s.map.key.resolvedUri)){const W=pn(t,{uri:s.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),Q=mA(s,[s.map.key],S,v),G={uri:s.map.key.resolvedUri};v({type:"segmentkeyloadstart",segment:s,keyInfo:G});const X=e(W,Q);b.push(X)}const M=pn(t,{uri:s.map.resolvedUri,responseType:"arraybuffer",headers:w_(s.map),requestType:"segment-media-initialization"}),U=NTe({segment:s,finishProcessingFn:S,triggerSegmentEventFn:v});v({type:"segmentloadstart",segment:s});const B=e(M,U);b.push(B)}const T=pn(t,{uri:s.part&&s.part.resolvedUri||s.resolvedUri,responseType:"arraybuffer",headers:w_(s),requestType:"segment"}),w=MTe({segment:s,finishProcessingFn:S,responseType:T.responseType,triggerSegmentEventFn:v});v({type:"segmentloadstart",segment:s});const C=e(T,w);C.addEventListener("progress",UTe({segment:s,progressFn:i,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:g,dataFn:m})),b.push(C);const O={};return b.forEach(P=>{P.addEventListener("loadend",VTe({loadendState:O,abortFn:r}))}),()=>C_(b)},zTe=ei("CodecUtils"),jTe=function(e){const t=e.attributes||{};if(t.CODECS)return xi(t.CODECS)},qN=(e,t)=>{const n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},qTe=(e,t)=>{if(!qN(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},cg=function(e){const t={};return e.forEach(({mediaType:n,type:s,details:r})=>{t[n]=t[n]||[],t[n].push(Z8(`${s}${r}`))}),Object.keys(t).forEach(function(n){if(t[n].length>1){zTe(`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},gA=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},sf=function(e,t){const n=t.attributes||{},s=cg(jTe(t)||[]);if(qN(e,t)&&!s.audio&&!qTe(e,t)){const r=cg(u1e(e,n.AUDIO)||[]);r.audio&&(s.audio=r.audio)}return s},Ep=ei("PlaylistSelector"),vA=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||""})},dg=function(e,t){if(!e)return"";const n=he.getComputedStyle(e);return n?n[t]:""},Nu=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})},tw=function(e,t){let n,s;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||he.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||he.Number.MAX_VALUE,n-s},WTe=function(e,t){let n,s;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||he.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||he.Number.MAX_VALUE,n===s&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-s};let WN=function(e,t,n,s,r,i){if(!e)return;const a={bandwidth:t,width:n,height:s,limitRenditionByPlayerDimensions:r};let o=e.playlists;tr.isAudioOnly(e)&&(o=i.getAudioTrackPlaylists_(),a.audioOnly=!0);let l=o.map(w=>{let C;const O=w.attributes&&w.attributes.RESOLUTION&&w.attributes.RESOLUTION.width,P=w.attributes&&w.attributes.RESOLUTION&&w.attributes.RESOLUTION.height;return C=w.attributes&&w.attributes.BANDWIDTH,C=C||he.Number.MAX_VALUE,{bandwidth:C,width:O,height:P,playlist:w}});Nu(l,(w,C)=>w.bandwidth-C.bandwidth),l=l.filter(w=>!tr.isIncompatible(w.playlist));let u=l.filter(w=>tr.isEnabled(w.playlist));u.length||(u=l.filter(w=>!tr.isDisabled(w.playlist)));const c=u.filter(w=>w.bandwidth*ds.BANDWIDTH_VARIANCE<t);let f=c[c.length-1];const h=c.filter(w=>w.bandwidth===f.bandwidth)[0];if(r===!1){const w=h||u[0]||l[0];if(w&&w.playlist){let C="sortedPlaylistReps";return h&&(C="bandwidthBestRep"),u[0]&&(C="enabledPlaylistReps"),Ep(`choosing ${vA(w)} using ${C} with options`,a),w.playlist}return Ep("could not choose a playlist with options",a),null}const g=c.filter(w=>w.width&&w.height);Nu(g,(w,C)=>w.width-C.width);const m=g.filter(w=>w.width===n&&w.height===s);f=m[m.length-1];const p=m.filter(w=>w.bandwidth===f.bandwidth)[0];let y,v,b;p||(y=g.filter(w=>w.width>n||w.height>s),v=y.filter(w=>w.width===y[0].width&&w.height===y[0].height),f=v[v.length-1],b=v.filter(w=>w.bandwidth===f.bandwidth)[0]);let S;if(i.leastPixelDiffSelector){const w=g.map(C=>(C.pixelDiff=Math.abs(C.width-n)+Math.abs(C.height-s),C));Nu(w,(C,O)=>C.pixelDiff===O.pixelDiff?O.bandwidth-C.bandwidth:C.pixelDiff-O.pixelDiff),S=w[0]}const T=S||b||p||h||u[0]||l[0];if(T&&T.playlist){let w="sortedPlaylistReps";return S?w="leastPixelDiffRep":b?w="resolutionPlusOneRep":p?w="resolutionBestRep":h?w="bandwidthBestRep":u[0]&&(w="enabledPlaylistReps"),Ep(`choosing ${vA(T)} using ${w} with options`,a),T.playlist}return Ep("could not choose a playlist with options",a),null};const yA=function(){let e=this.useDevicePixelRatio&&he.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),WN(this.playlists.main,this.systemBandwidth,parseInt(dg(this.tech_.el(),"width"),10)*e,parseInt(dg(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},KTe=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(){let s=this.useDevicePixelRatio&&he.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(s=this.customPixelRatio),t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),WN(this.playlists.main,t,parseInt(dg(this.tech_.el(),"width"),10)*s,parseInt(dg(this.tech_.el(),"height"),10)*s,this.limitRenditionByPlayerDimensions,this.playlistController_)}},GTe=function(e){const{main:t,currentTime:n,bandwidth:s,duration:r,segmentDuration:i,timeUntilRebuffer:a,currentTimeline:o,syncController:l}=e,u=t.playlists.filter(m=>!tr.isIncompatible(m));let c=u.filter(tr.isEnabled);c.length||(c=u.filter(m=>!tr.isDisabled(m)));const h=c.filter(tr.hasAttribute.bind(null,"BANDWIDTH")).map(m=>{const y=l.getSyncPoint(m,r,o,n)?1:2,b=tr.estimateSegmentRequestTime(i,s,m)*y-a;return{playlist:m,rebufferingImpact:b}}),g=h.filter(m=>m.rebufferingImpact<=0);return Nu(g,(m,p)=>tw(p.playlist,m.playlist)),g.length?g[0]:(Nu(h,(m,p)=>m.rebufferingImpact-p.rebufferingImpact),h[0]||null)},YTe=function(){const e=this.playlists.main.playlists.filter(tr.isEnabled);return Nu(e,(n,s)=>tw(n,s)),e.filter(n=>!!sf(this.playlists.main,n).video)[0]||null},XTe=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};function KN(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch{return""}}const QTe=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 a=n,o=n,l=!1;const u=i[s];u&&(a=u.label,o=u.language,l=u.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:s,default:l,label:a,language:o},!1).track}}},JTe=function({inbandTextTracks:e,captionArray:t,timestampOffset:n}){if(!t)return;const s=he.WebKitDataCue||he.VTTCue;t.forEach(r=>{const i=r.stream;r.content?r.content.forEach(a=>{const o=new s(r.startTime+n,r.endTime+n,a.text);o.line=a.line,o.align="left",o.position=a.position,o.positionAlign="line-left",e[i].addCue(o)}):e[i].addCue(new s(r.startTime+n,r.endTime+n,r.text))})},ZTe=function(e){Object.defineProperties(e.frame,{id:{get(){return He.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get(){return He.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get(){return He.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},eCe=({inbandTextTracks:e,metadataArray:t,timestampOffset:n,videoDuration:s})=>{if(!t)return;const r=he.WebKitDataCue||he.VTTCue,i=e.metadataTrack_;if(!i||(t.forEach(c=>{const f=c.cueTime+n;typeof f!="number"||he.isNaN(f)||f<0||!(f<1/0)||!c.frames||!c.frames.length||c.frames.forEach(h=>{const g=new r(f,f,h.value||h.url||h.data||"");g.frame=h,g.value=h,ZTe(g),i.addCue(g)})}),!i.cues||!i.cues.length))return;const a=i.cues,o=[];for(let c=0;c<a.length;c++)a[c]&&o.push(a[c]);const l=o.reduce((c,f)=>{const h=c[f.startTime]||[];return h.push(f),c[f.startTime]=h,c},{}),u=Object.keys(l).sort((c,f)=>Number(c)-Number(f));u.forEach((c,f)=>{const h=l[c],g=isFinite(s)?s:c,m=Number(u[f+1])||g;h.forEach(p=>{p.endTime=m})})},tCe={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},nCe=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),sCe=({inbandTextTracks:e,dateRanges:t})=>{const n=e.metadataTrack_;if(!n)return;const s=he.WebKitDataCue||he.VTTCue;t.forEach(r=>{for(const i of Object.keys(r)){if(nCe.has(i))continue;const a=new s(r.startTime,r.endTime,"");a.id=r.id,a.type="com.apple.quicktime.HLS",a.value={key:tCe[i],data:r[i]},(i==="scte35Out"||i==="scte35In")&&(a.value.data=new Uint8Array(a.value.data.match(/[\da-f]{2}/gi)).buffer),n.addCue(a)}r.processDateRange()})},bA=(e,t,n)=>{e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,He.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},Od=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)},rCe=function(e){const t=e.cues;if(!t)return;const n={};for(let s=t.length-1;s>=0;s--){const r=t[s],i=`${r.startTime}-${r.endTime}-${r.text}`;n[i]?e.removeCue(r):n[i]=r}},iCe=(e,t,n)=>{if(typeof t>"u"||t===null||!e.length)return[];const s=Math.ceil((t-n+3)*al.ONE_SECOND_IN_TS);let r;for(r=0;r<e.length&&!(e[r].pts>s);r++);return e.slice(r)},aCe=(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)},oCe=(e,t,n,s)=>{const r=Math.ceil((t-s)*al.ONE_SECOND_IN_TS),i=Math.ceil((n-s)*al.ONE_SECOND_IN_TS),a=e.slice();let o=e.length;for(;o--&&!(e[o].pts<=i););if(o===-1)return a;let l=o+1;for(;l--&&!(e[l].pts<=r););return l=Math.max(l,0),a.splice(l,o-l+1),a},lCe=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},uCe=function(e,t,n){t=t||[];const s=[];let r=0;for(let i=0;i<t.length;i++){const a=t[i];if(e===a.timeline&&(s.push(i),r+=a.duration,r>n))return i}return s.length===0?0:s[s.length-1]},Sd=1,cCe=500,_A=e=>typeof e=="number"&&isFinite(e),xp=1/60,dCe=(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,fCe=(e,t,n)=>{let s=t-ds.BACK_BUFFER_LENGTH;e.length&&(s=Math.max(s,e.start(0)));const r=t-n;return Math.min(r,s)},ru=e=>{const{startOfSegment:t,duration:n,segment:s,part:r,playlist:{mediaSequence:i,id:a,segments:o=[]},mediaIndex:l,partIndex:u,timeline:c}=e,f=o.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 g=typeof u=="number",m=e.segment.uri?"segment":"pre-segment",p=g?hN({preloadSegment:s})-1:0;return`${m} [${i+l}/${i+f}]`+(g?` part [${u}/${p}]`:"")+` segment start/end [${s.start} => ${s.end}]`+(g?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${t}] duration [${n}] timeline [${c}] selected by [${h}] playlist [${a}]`},SA=e=>`${e}TimingInfo`,hCe=({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,wA=({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},pCe=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 a;typeof r=="bigint"||typeof i=="bigint"?a=he.BigInt(i)-he.BigInt(r):typeof r=="number"&&typeof i=="number"&&(a=i-r),typeof a<"u"&&a>t&&(t=a)}),typeof t=="bigint"&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},TA=({segmentDuration:e,maxDuration:t})=>e?Math.round(e)>t+Ri:!1,mCe=(e,t)=>{if(t!=="hls")return null;const n=pCe({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;const s=e.playlist.targetDuration,r=TA({segmentDuration:n,maxDuration:s*2}),i=TA({segmentDuration:n,maxDuration:s}),a=`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:a}:null},Zo=({type:e,segment:t})=>{if(!t)return;const n=!!(t.key||t.map&&t.map.ke),s=!!(t.map&&!t.map.bytes),r=t.startOfSegment===void 0?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:r,duration:t.duration,isEncrypted:n,isMediaInitialization:s}};class E_ extends He.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.addMetadataToTextTrack=t.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,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_=ei(`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.sourceUpdater_.on("codecschange",s=>{this.trigger(qn({type:"codecschange"},s))}),this.loaderType_==="main"&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="audio"&&this.timelineChangeController_.on("timelinechange",s=>{this.trigger(qn({type:"timelinechange"},s)),this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return py.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_&&he.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,he.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_&&py.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const t=this.getMediaInfo_();if(!this.sourceUpdater_||!t)return Cs();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=ug(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=DN(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.mediaSequenceSync_&&(this.mediaSequenceSync_.update(t,this.currentTime_()),this.logger_(`Playlist update:
currentTime: ${this.currentTime_()}
bufferedEnd: ${fy(this.buffered_())}
`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!s||s.uri!==t.uri){this.mediaIndex!==null&&(!t.endList&&typeof t.partTargetDuration=="number"?this.resetLoader():this.resyncLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}const a=t.mediaSequence-s.mediaSequence;if(this.logger_(`live window shift [${a}]`),this.mediaIndex!==null)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.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-=a,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_&&(he.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return this.checkBufferTimeout_===null}resetEverything(t){this.ended_=!1,this.activeInitSegmentId_=null,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.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&py.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const t=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;this.sourceType_==="hls"&&!t&&(this.shouldForceTimestampOffsetAfterResync_=!0),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 a=()=>{i--,i===0&&s()};(r||!this.audioDisabled_)&&(i++,this.sourceUpdater_.removeAudio(t,n,a)),(r||this.loaderType_==="main")&&(this.gopBuffer_=oCe(this.gopBuffer_,t,n,this.timeMapping_),i++,this.sourceUpdater_.removeVideo(t,n,a));for(const o in this.inbandTextTracks_)Od(t,n,this.inbandTextTracks_[o]);Od(t,n,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&he.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=he.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&he.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=he.setTimeout(this.monitorBufferTick_.bind(this),cCe)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const t=this.chooseNextRequest_();if(!t)return;const n={segmentInfo:Zo({type:this.loaderType_,segment:t})};this.trigger({type:"segmentselected",metadata:n}),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,a=!r||!r.parts||s+1===r.parts.length;return n.endList&&this.mediaSource_.readyState==="open"&&i&&a}chooseNextRequest_(){const t=this.buffered_(),n=fy(t)||0,s=XS(t,this.currentTime_()),r=!this.hasPlayed_()&&s>=1,i=s>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||r||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(o.isSyncRequest)o.mediaIndex=uCe(this.currentTimeline_,a,n),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${o.mediaIndex}`);else if(this.mediaIndex!==null){const h=a[this.mediaIndex],g=typeof this.partIndex=="number"?this.partIndex:-1;o.startOfSegment=h.end?h.end:n,h.parts&&h.parts[g+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=g+1):o.mediaIndex=this.mediaIndex+1}else{let h,g,m;const p=this.fetchAtBuffer_?n:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:
For TargetTime: ${p}.
CurrentTime: ${this.currentTime_()}
BufferedEnd: ${n}
Fetch At Buffer: ${this.fetchAtBuffer_}
`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const y=this.getSyncInfoFromMediaSequenceSync_(p);if(!y){const v="No sync info found while using media sequence sync";return this.error({message:v,metadata:{errorType:He.Error.StreamingFailedToSelectNextSegment,error:new Error(v)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${y.start} --> ${y.end})`),h=y.segmentIndex,g=y.partIndex,m=y.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const y=tr.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:p,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});h=y.segmentIndex,g=y.partIndex,m=y.startTime}o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${p}`:`currentTime ${p}`,o.mediaIndex=h,o.startOfSegment=m,o.partIndex=g,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${o.mediaIndex} `)}const l=a[o.mediaIndex];let u=l&&typeof o.partIndex=="number"&&l.parts&&l.parts[o.partIndex];if(!l||typeof o.partIndex=="number"&&!u)return null;typeof o.partIndex!="number"&&l.parts&&(o.partIndex=0,u=l.parts[0]);const c=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!s&&u&&!c&&!u.independent)if(o.partIndex===0){const h=a[o.mediaIndex-1],g=h.parts&&h.parts.length&&h.parts[h.parts.length-1];g&&g.independent&&(o.mediaIndex-=1,o.partIndex=h.parts.length-1,o.independent="previous segment")}else l.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const f=this.mediaSource_&&this.mediaSource_.readyState==="ended";return o.mediaIndex>=a.length-1&&f&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,o.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(o))}getSyncInfoFromMediaSequenceSync_(t){if(!this.mediaSequenceSync_)return null;const n=Math.max(t,this.mediaSequenceSync_.start);t!==n&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${t} to ${n}`);const s=this.mediaSequenceSync_.getSyncInfoForTime(n);if(!s)return null;if(!s.isAppended)return s;const r=this.mediaSequenceSync_.getSyncInfoForTime(s.end);return r?(r.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),r):null}generateSegmentInfo_(t){const{independent:n,playlist:s,mediaIndex:r,startOfSegment:i,isSyncRequest:a,partIndex:o,forceTimestampOffset:l,getMediaInfoForTime:u}=t,c=s.segments[r],f=typeof o=="number"&&c.parts[o],h={requestId:"segment-loader-"+Math.random(),uri:f&&f.resolvedUri||c.resolvedUri,mediaIndex:r,partIndex:f?o:null,isSyncRequest:a,startOfSegment:i,playlist:s,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:f&&f.duration||c.duration,segment:c,part:f,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:n},g=typeof l<"u"?l:this.isPendingTimestampOffset_;h.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:g});const m=fy(this.sourceUpdater_.audioBuffered());return typeof m=="number"&&(h.audioAppendStart=m-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(h.gopsToAlignWith=iCe(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),h}timestampOffsetForSegment_(t){return hCe(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=tr.estimateSegmentRequestTime(r,s,this.playlist_,t.bytesReceived),a=Mwe(this.buffered_(),n,this.vhs_.tech_.playbackRate())-1;if(i<=a)return;const o=GTe({main:this.vhs_.playlists.main,currentTime:n,bandwidth:s,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const u=i-a-o.rebufferingImpact;let c=.5;a<=Ri&&(c=1),!(!o.playlist||o.playlist.uri===this.playlist_.uri||u<c)&&(this.bandwidth=o.playlist.attributes.BANDWIDTH*ds.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(t){this.logger_(`Aborting ${ru(t)}`),this.mediaRequestsAborted+=1}handleProgress_(t,n){this.earlyAbortWhenNeeded_(n.stats),!this.checkForAbort_(n.requestId)&&this.trigger("progress")}handleTrackInfo_(t,n){const{hasAudio:s,hasVideo:r}=n,i={segmentInfo:Zo({type:this.loaderType_,segment:t}),trackInfo:{hasAudio:s,hasVideo:r}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:i}),this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&(this.checkForIllegalMediaSwitch(n)||(n=n||{},lCe(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_,a=SA(n);i[a]=i[a]||{},i[a][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(a=>{i[a.stream]=i[a.stream]||{startTime:1/0,captions:[],endTime:0};const o=i[a.stream];o.startTime=Math.min(o.startTime,a.startTime+r),o.endTime=Math.max(o.endTime,a.endTime+r),o.captions.push(a)}),Object.keys(i).forEach(a=>{const{startTime:o,endTime:l,captions:u}=i[a],c=this.inbandTextTracks_;this.logger_(`adding cues from ${o} -> ${l} for ${a}`),QTe(c,this.vhs_.tech_,a),Od(o,l,c[a]),JTe({captionArray:u,inbandTextTracks:c,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}this.addMetadataToTextTrack(s,n,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_()?!wA({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_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}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||wA({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[SA(n.type)].start;else{const r=this.getCurrentMediaInfo_(),i=this.loaderType_==="main"&&r&&r.hasVideo;let a;i&&(a=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:a,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=ug(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(),a=this.sourceUpdater_.videoBuffered();i.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+ol(i).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+ol(a).join(", "));const o=i.length?i.start(0):0,l=i.length?i.end(i.length-1):0,u=a.length?a.start(0):0,c=a.length?a.end(a.length-1):0;if(l-o<=Sd&&c-u<=Sd){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${s.byteLength}, audio buffer: ${ol(i).join(", ")}, video buffer: ${ol(a).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_()-Sd;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 ${Sd}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=he.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},Sd*1e3)},!0)}handleAppendError_({segmentInfo:t,type:n,bytes:s},r){if(r){if(r.code===CN){this.handleQuotaExceededError_({segmentInfo:t,type:n,bytes:s});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error({message:`${n} append of ${s.length}b failed for segment #${t.mediaIndex} in playlist ${t.playlist.id}`,metadata:{errorType:He.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:t,type:n,initSegment:s,data:r,bytes:i}){if(!i){const o=[r];let l=r.byteLength;s&&(o.unshift(s),l+=s.byteLength),i=XTe({bytes:l,segments:o})}const a={segmentInfo:Zo({type:this.loaderType_,segment:t})};this.trigger({type:"segmentappendstart",metadata:a}),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=qn({},t,{forceTimestampOffset:!0});qn(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,a=s||r&&i;this.logger_(`Requesting
${KN(t.uri)}
${ru(t)}`),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=HTe({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:a,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:o,level:l,stream:u})=>{this.logger_(`${ru(t)} logged from transmuxer stream ${u} as a ${l}: ${o}`)},triggerSegmentEventFn:({type:o,segment:l,keyInfo:u,trackInfo:c,timingInfo:f})=>{const g={segmentInfo:Zo({segment:l})};u&&(g.keyInfo=u),c&&(g.trackInfo=c),f&&(g.timingInfo=f),this.trigger({type:o,metadata:g})}})}trimBackBuffer_(t){const n=fCe(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);n>0&&this.remove(0,n)}createSimplifiedSegmentObj_(t){const n=t.segment,s=t.part,r=t.segment.key||t.segment.map&&t.segment.map.key,i=t.segment.map&&!t.segment.map.bytes,a={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,type:this.loaderType_,start:t.startOfSegment,duration:t.duration,isEncrypted:r,isMediaInitialization:i},o=t.playlist.segments[t.mediaIndex-1];if(o&&o.timeline===n.timeline&&(o.videoTimingInfo?a.baseStartTime=o.videoTimingInfo.transmuxedDecodeEnd:o.audioTimingInfo&&(a.baseStartTime=o.audioTimingInfo.transmuxedDecodeEnd)),n.key){const l=n.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);a.key=this.segmentKey(n.key),a.key.iv=l}return n.map&&(a.map=this.initSegmentForMap(n.map)),a}saveTransferStats_(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)}saveBandwidthRelatedStats_(t,n){if(this.pendingSegment_.byteLength=n.bytesReceived,t<xp){this.logger_(`Ignoring segment's bandwidth because its duration of ${t} is less than the min to record ${xp}`);return}const s={bandwidthInfo:{from:this.bandwidth,to:n.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:s}),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===Mi.ABORTED)return;if(this.pause(),t.code===Mi.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_=aCe(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:a,videoTimingInfo:o,audioTimingInfo:l}){if(typeof t<"u")return t;if(!a)return l.start;const u=n.segments[s-1];return s===0||!u||typeof u.start>"u"||u.end!==r+i?r:o.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,a=this.loaderType_==="main"&&r,o=!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}a&&t.waitingOnAppends++,o&&t.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t)),o&&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=dCe(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_){const l={segmentInfo:Zo({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:l})}if(!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}const t=this.pendingSegment_;t.part&&t.part.syncInfo?t.part.syncInfo.markAppended():t.segment.syncInfo&&t.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:this.loaderType_==="main"});const n=mCe(t,this.sourceType_);if(n&&(n.severity==="warn"?He.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 ${ru(t)}`);return}this.logger_(`Appended ${ru(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,a=r&&r.end&&this.currentTime_()-r.end>t.playlist.partTargetDuration*3;if(i||a){this.logger_(`bad ${i?"segment":"part"} ${ru(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<xp){this.logger_(`Ignoring segment's throughput because its duration of ${t.duration} is less than the min to record ${xp}`);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(!_A(s)||!_A(r))return;Od(s,r,this.segmentMetadataTrack_);const i=he.WebKitDataCue||he.VTTCue,a={custom:n.custom,dateTimeObject:n.dateTimeObject,dateTimeString:n.dateTimeString,programDateTime:n.programDateTime,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},o=JSON.stringify(a),l=new i(s,r,o);l.value=a,this.segmentMetadataTrack_.addCue(l)}}function ca(){}const GN=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toUpperCase())},gCe=["video","audio"],x_=(e,t)=>{const n=t[`${e}Buffer`];return n&&n.updating||t.queuePending[e]},vCe=(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},Mu=(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(),Mu("audio",t),Mu("video",t));return}if(e!=="mediaSource"&&!(!t.ready()||t.mediaSource.readyState==="closed"||x_(e,t))){if(s.type!==e){if(n=vCe(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,Mu(e,t);return}}},YN=(e,t)=>{const n=t[`${e}Buffer`],s=GN(e);n&&(n.removeEventListener("updateend",t[`on${s}UpdateEnd_`]),n.removeEventListener("error",t[`on${s}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},Ai=(e,t)=>e&&t&&Array.prototype.indexOf.call(e.sourceBuffers,t)!==-1,vr={appendBuffer:(e,t,n)=>(s,r)=>{const i=r[`${s}Buffer`];if(Ai(r.mediaSource,i)){r.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${s}Buffer`);try{i.appendBuffer(e)}catch(a){r.logger_(`Error with code ${a.code} `+(a.code===CN?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${s}Buffer`),r.queuePending[s]=null,n(a)}}},remove:(e,t)=>(n,s)=>{const r=s[`${n}Buffer`];if(Ai(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`];Ai(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){He.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){He.log.warn("Failed to set media source duration",n)}},abort:()=>(e,t)=>{if(t.mediaSource.readyState!=="open")return;const n=t[`${e}Buffer`];if(Ai(t.mediaSource,n)){t.logger_(`calling abort on ${e}Buffer`);try{n.abort()}catch(s){He.log.warn(`Failed to abort on ${e}Buffer`,s)}}},addSourceBuffer:(e,t)=>n=>{const s=GN(e),r=Lf(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(YN(e,t),!!Ai(t.mediaSource,n)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(n)}catch(s){He.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,s)}}},changeType:e=>(t,n)=>{const s=n[`${t}Buffer`],r=Lf(e);if(!Ai(n.mediaSource,s))return;const i=e.substring(0,e.indexOf(".")),a=n.codecs[t];if(a.substring(0,a.indexOf("."))===i)return;const l={codecsChangeInfo:{from:a,to:e}};n.trigger({type:"codecschange",metadata:l}),n.logger_(`changing ${t}Buffer codec from ${a} to ${e}`);try{s.changeType(r),n.codecs[t]=e}catch(u){l.errorType=He.Error.StreamingCodecsChangeError,l.error=u,u.metadata=l,n.error_=u,n.trigger("error"),He.log.warn(`Failed to changeType on ${t}Buffer`,u)}}},yr=({type:e,sourceUpdater:t,action:n,doneFn:s,name:r})=>{t.queue.push({type:e,action:n,doneFn:s,name:r}),Mu(e,t)},CA=(e,t)=>n=>{const s=t[`${e}Buffered`](),r=$we(s);if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,r),t.queuePending[e]){const i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[`${e}Error_`])}Mu(e,t)};class XN extends He.EventTarget{constructor(t){super(),this.mediaSource=t,this.sourceopenListener_=()=>Mu("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=ei("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=CA("video",this),this.onAudioUpdateEnd_=CA("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){yr({type:"mediaSource",sourceUpdater:this,action:vr.addSourceBuffer(t,n),name:"addSourceBuffer"})}abort(t){yr({type:t,sourceUpdater:this,action:vr.abort(t),name:"abort"})}removeSourceBuffer(t){if(!this.canRemoveSourceBuffer()){He.log.error("removeSourceBuffer is not supported!");return}yr({type:"mediaSource",sourceUpdater:this,action:vr.removeSourceBuffer(t),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!He.browser.IS_FIREFOX&&he.MediaSource&&he.MediaSource.prototype&&typeof he.MediaSource.prototype.removeSourceBuffer=="function"}static canChangeType(){return he.SourceBuffer&&he.SourceBuffer.prototype&&typeof he.SourceBuffer.prototype.changeType=="function"}canChangeType(){return this.constructor.canChangeType()}changeType(t,n){if(!this.canChangeType()){He.log.error("changeType is not supported!");return}yr({type:t,sourceUpdater:this,action:vr.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 a=n;if(yr({type:r,sourceUpdater:this,action:vr.appendBuffer(i,s||{mediaIndex:-1},a),doneFn:n,name:"appendBuffer"}),r==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const o=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${o.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,o.forEach(l=>{this.appendBuffer.apply(this,l)})}}audioBuffered(){return Ai(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Cs()}videoBuffered(){return Ai(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Cs()}buffered(){const t=Ai(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,n=Ai(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return n&&!t?this.audioBuffered():t&&!n?this.videoBuffered():Nwe(this.audioBuffered(),this.videoBuffered())}setDuration(t,n=ca){yr({type:"mediaSource",sourceUpdater:this,action:vr.duration(t),name:"duration",doneFn:n})}endOfStream(t=null,n=ca){typeof t!="string"&&(t=void 0),yr({type:"mediaSource",sourceUpdater:this,action:vr.endOfStream(t),name:"endOfStream",doneFn:n})}removeAudio(t,n,s=ca){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){s();return}yr({type:"audio",sourceUpdater:this,action:vr.remove(t,n),doneFn:s,name:"remove"})}removeVideo(t,n,s=ca){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){s();return}yr({type:"video",sourceUpdater:this,action:vr.remove(t,n),doneFn:s,name:"remove"})}updating(){return!!(x_("audio",this)||x_("video",this))}audioTimestampOffset(t){return typeof t<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(yr({type:"audio",sourceUpdater:this,action:vr.timestampOffset(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_}videoTimestampOffset(t){return typeof t<"u"&&this.videoBuffer&&this.videoTimestampOffset!==t&&(yr({type:"video",sourceUpdater:this,action:vr.timestampOffset(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_}audioQueueCallback(t){this.audioBuffer&&yr({type:"audio",sourceUpdater:this,action:vr.callback(t),name:"callback"})}videoQueueCallback(t){this.videoBuffer&&yr({type:"video",sourceUpdater:this,action:vr.callback(t),name:"callback"})}dispose(){this.trigger("dispose"),gCe.forEach(t=>{this.abort(t),this.canRemoveSourceBuffer()?this.removeSourceBuffer(t):this[`${t}QueueCallback`](()=>YN(t,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const EA=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),yCe=e=>{const t=new Uint8Array(e);return Array.from(t).map(n=>n.toString(16).padStart(2,"0")).join("")},xA=new Uint8Array(`
`.split("").map(e=>e.charCodeAt(0)));class bCe extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class _Ce extends E_{constructor(t,n={}){super(t,n),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=t.featuresNativeTextTracks,this.loadVttJs=t.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Cs();const t=this.subtitlesTrack_.cues,n=t[0].startTime,s=t[t.length-1].startTime;return Cs([[n,s]])}initSegmentForMap(t,n=!1){if(!t)return null;const s=ug(t);let r=this.initSegments_[s];if(n&&!r&&t.bytes){const i=xA.byteLength+t.bytes.byteLength,a=new Uint8Array(i);a.set(t.bytes),a.set(xA,t.bytes.byteLength),this.initSegments_[s]=r={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:a}}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){Od(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===Mi.TIMEOUT&&this.handleTimeout_(),t.code===Mi.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 he.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(t,n,s),()=>this.stopForError({message:"Error loading vtt.js"}));return}i.requested=!0;try{this.parseVTTCues_(r)}catch(a){this.stopForError({message:a.message,metadata:{errorType:He.Error.StreamingVttParserError,error:a}});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(a=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new he.VTTCue(a.startTime,a.endTime,a.text):a)}),rCe(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(t){let n,s=!1;if(typeof he.WebVTT!="function")throw new bCe;typeof he.TextDecoder=="function"?n=new he.TextDecoder("utf8"):(n=he.WebVTT.StringDecoder(),s=!0);const r=new he.WebVTT.Parser(he,he.vttjs,n);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=t.cues.push.bind(t.cues),r.ontimestampmap=a=>{t.timestampmap=a},r.onparsingerror=a=>{He.log.warn("Error encountered when parsing cues: "+a.message)},t.segment.map){let a=t.segment.map.bytes;s&&(a=EA(a)),r.parse(a)}let i=t.bytes;s&&(i=EA(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{MPEGTS:i,LOCAL:a}=t.timestampmap,l=i/al.ONE_SECOND_IN_TS-a+n.mapping;if(t.cues.forEach(u=>{const c=u.endTime-u.startTime,f=i===0?u.startTime+l:this.handleRollover_(u.startTime+l,n.time);u.startTime=Math.max(f,0),u.endTime=Math.max(f+c,0)}),!s.syncInfo){const u=t.cues[0].startTime,c=t.cues[t.cues.length-1].startTime;s.syncInfo={mediaSequence:s.mediaSequence+t.mediaIndex,time:Math.min(u,c-r.duration)}}}handleRollover_(t,n){if(n===null)return t;let s=t*al.ONE_SECOND_IN_TS;const r=n*al.ONE_SECOND_IN_TS;let i;for(r<s?i=-8589934592:i=8589934592;Math.abs(s-r)>4294967296;)s+=i;return s/al.ONE_SECOND_IN_TS}}const SCe=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},wCe=function(e,t,n=0){if(!e.segments)return;let s=n,r;for(let i=0;i<e.segments.length;i++){const a=e.segments[i];if(r||(r=SCe(t,s+a.duration/2)),r){if("cueIn"in a){r.endTime=s,r.adEndTime=s,s+=a.duration,r=null;continue}if(s<r.endTime){s+=a.duration;continue}r.endTime+=a.duration}else if("cueOut"in a&&(r=new he.VTTCue(s,s+a.duration,a.cueOut),r.adStartTime=s,r.adEndTime=s+parseFloat(a.cueOut),t.addCue(r)),"cueOutCont"in a){const[o,l]=a.cueOutCont.split("/").map(parseFloat);r=new he.VTTCue(s,s+a.duration,""),r.adStartTime=s-o,r.adEndTime=r.adStartTime+l,t.addCue(r)}s+=a.duration}};class kA{constructor({start:t,end:n,segmentIndex:s,partIndex:r=null,appended:i=!1}){this.start_=t,this.end_=n,this.segmentIndex_=s,this.partIndex_=r,this.appended_=i}isInRange(t){return t>=this.start&&t<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class TCe{constructor(t,n=[]){this.segmentSyncInfo_=t,this.partsSyncInfo_=n}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(t=>t.resetAppendedStatus())}}class QN{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(t=>t.resetAppendStatus())}update(t,n){const{mediaSequence:s,segments:r}=t;if(this.isReliable_=this.isReliablePlaylist_(s,r),!!this.isReliable_)return this.updateStorage_(r,s,this.calculateBaseTime_(s,n))}getSyncInfoForTime(t){for(const{segmentSyncInfo:n,partsSyncInfo:s}of this.storage_.values())if(s.length){for(const r of s)if(r.isInRange(t))return r}else if(n.isInRange(t))return n;return null}getSyncInfoForMediaSequence(t){return this.storage_.get(t)}updateStorage_(t,n,s){const r=new Map;let i=`
`,a=s,o=n;this.start_=a,t.forEach((l,u)=>{const c=this.storage_.get(o),f=a,h=f+l.duration,g=!!(c&&c.segmentSyncInfo&&c.segmentSyncInfo.isAppended),m=new kA({start:f,end:h,appended:g,segmentIndex:u});l.syncInfo=m;let p=a;const y=(l.parts||[]).map((v,b)=>{const S=p,T=p+v.duration,w=!!(c&&c.partsSyncInfo&&c.partsSyncInfo[b]&&c.partsSyncInfo[b].isAppended),C=new kA({start:S,end:T,appended:w,segmentIndex:u,partIndex:b});return p=T,i+=`Media Sequence: ${o}.${b} | Range: ${S} --> ${T} | Appended: ${w}
`,v.syncInfo=C,C});r.set(o,new TCe(m,y)),i+=`${KN(l.resolvedUri)} | Media Sequence: ${o} | Range: ${f} --> ${h} | Appended: ${g}
`,o++,a=h}),this.end_=a,this.storage_=r,this.diagnostics_=i}calculateBaseTime_(t,n){return this.storage_.size?this.storage_.has(t)?this.storage_.get(t).segmentSyncInfo.start:n:0}isReliablePlaylist_(t,n){return t!=null&&Array.isArray(n)&&n.length}}class AA extends QN{constructor(t){super(),this.parent_=t}calculateBaseTime_(t,n){if(!this.storage_.size){const s=this.parent_.getSyncInfoForMediaSequence(t);return s?s.segmentSyncInfo.start:0}return super.calculateBaseTime_(t,n)}}const CCe=86400,my=[{name:"VOD",run:(e,t,n,s,r)=>n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(e,t,n,s,r,i)=>{const a=e.getMediaSequenceSync(i);if(!a||!a.isReliable)return null;const o=a.getSyncInfoForTime(r);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}},{name:"ProgramDateTime",run:(e,t,n,s,r)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let i=null,a=null;const o=v_(t);r=r||0;for(let l=0;l<o.length;l++){const u=t.endList||r===0?l:o.length-(l+1),c=o[u],f=c.segment,h=e.timelineToDatetimeMappings[f.timeline];if(!h||!f.dateTimeObject)continue;let m=f.dateTimeObject.getTime()/1e3+h;if(f.parts&&typeof c.partIndex=="number")for(let y=0;y<c.partIndex;y++)m+=f.parts[y].duration;const p=Math.abs(r-m);if(a!==null&&(p===0||a<p))break;a=p,i={time:m,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}return i}},{name:"Segment",run:(e,t,n,s,r)=>{let i=null,a=null;r=r||0;const o=v_(t);for(let l=0;l<o.length;l++){const u=t.endList||r===0?l:o.length-(l+1),c=o[u],f=c.segment,h=c.part&&c.part.start||f&&f.start;if(f.timeline===s&&typeof h<"u"){const g=Math.abs(r-h);if(a!==null&&a<g)break;(!i||a===null||a>=g)&&(a=g,i={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return i}},{name:"Discontinuity",run:(e,t,n,s,r)=>{let i=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length){let a=null;for(let o=0;o<t.discontinuityStarts.length;o++){const l=t.discontinuityStarts[o],u=t.discontinuitySequence+o+1,c=e.discontinuities[u];if(c){const f=Math.abs(r-c.time);if(a!==null&&a<f)break;(!i||a===null||a>=f)&&(a=f,i={time:c.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 ECe extends He.EventTarget{constructor(t={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const n=new QN,s=new AA(n),r=new AA(n);this.mediaSequenceStorage_={main:n,audio:s,vtt:r},this.logger_=ei("SyncController")}getMediaSequenceSync(t){return this.mediaSequenceStorage_[t]||null}getSyncPoint(t,n,s,r,i){if(n!==1/0)return my.find(({name:l})=>l==="VOD").run(this,t,n);const a=this.runStrategies_(t,n,s,r,i);if(!a.length)return null;for(const o of a){const{syncPoint:l,strategy:u}=o,{segmentIndex:c,time:f}=l;if(c<0)continue;const h=t.segments[c],g=f,m=g+h.duration;if(this.logger_(`Strategy: ${u}. Current time: ${r}. selected segment: ${c}. Time: [${g} -> ${m}]}`),r>=g&&r<m)return this.logger_("Found sync point with exact match: ",l),l}return this.selectSyncPoint_(a,{key:"time",value:r})}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+tf({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:r.segmentIndex,endIndex:0}))}runStrategies_(t,n,s,r,i){const a=[];for(let o=0;o<my.length;o++){const l=my[o],u=l.run(this,t,n,s,r,i);u&&(u.strategy=l.name,a.push({strategy:l.name,syncPoint:u}))}return a}selectSyncPoint_(t,n){let s=t[0].syncPoint,r=Math.abs(t[0].syncPoint[n.key]-n.value),i=t[0].strategy;for(let a=1;a<t.length;a++){const o=Math.abs(t[a].syncPoint[n.key]-n.value);o<r&&(r=o,s=t[a].syncPoint,i=t[a].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>CCe){He.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 a=this.timelines[t.timeline],o,l;if(typeof t.timestampOffset=="number")a={time:t.startOfSegment,mapping:t.startOfSegment-n.start},s&&(this.timelines[t.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${t.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),o=t.startOfSegment,l=n.end+a.mapping;else if(a)o=n.start+a.mapping,l=n.end+a.mapping;else return!1;return i&&(i.start=o,i.end=l),(!r.start||o<r.start)&&(r.start=o),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],a=n.discontinuitySequence+r+1,o=i-t.mediaIndex,l=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>l){let u;o<0?u=s.start-tf({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:t.mediaIndex,endIndex:i}):u=s.end+tf({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:t.mediaIndex+1,endIndex:i}),this.discontinuities[a]={time:u,accuracy:l}}}}dispose(){this.trigger("dispose"),this.off()}}class xCe extends He.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}){if(typeof n=="number"&&typeof s=="number"){this.lastTimelineChanges_[t]={type:t,from:n,to:s},delete this.pendingTimelineChanges_[t];const r={timelineChangeInfo:{from:n,to:s}};this.trigger({type:"timelinechange",metadata:r})}return this.lastTimelineChanges_[t]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const kCe=MN(LN(function(){var e=function(){function p(){this.listeners={}}var y=p.prototype;return y.on=function(b,S){this.listeners[b]||(this.listeners[b]=[]),this.listeners[b].push(S)},y.off=function(b,S){if(!this.listeners[b])return!1;var T=this.listeners[b].indexOf(S);return this.listeners[b]=this.listeners[b].slice(0),this.listeners[b].splice(T,1),T>-1},y.trigger=function(b){var S=this.listeners[b];if(S)if(arguments.length===2)for(var T=S.length,w=0;w<T;++w)S[w].call(this,arguments[1]);else for(var C=Array.prototype.slice.call(arguments,1),O=S.length,P=0;P<O;++P)S[P].apply(this,C)},y.dispose=function(){this.listeners={}},y.pipe=function(b){this.on("data",function(S){b.push(S)})},p}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function t(p){return p.subarray(0,p.byteLength-p[p.byteLength-1])}/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */const n=function(){const p=[[[],[],[],[],[]],[[],[],[],[],[]]],y=p[0],v=p[1],b=y[4],S=v[4];let T,w,C;const O=[],P=[];let M,U,B,W,Q,G;for(T=0;T<256;T++)P[(O[T]=T<<1^(T>>7)*283)^T]=T;for(w=C=0;!b[w];w^=M||1,C=P[C]||1)for(W=C^C<<1^C<<2^C<<3^C<<4,W=W>>8^W&255^99,b[w]=W,S[W]=w,B=O[U=O[M=O[w]]],G=B*16843009^U*65537^M*257^w*16843008,Q=O[W]*257^W*16843008,T=0;T<4;T++)y[T][w]=Q=Q<<24^Q>>>8,v[T][W]=G=G<<24^G>>>8;for(T=0;T<5;T++)y[T]=y[T].slice(0),v[T]=v[T].slice(0);return p};let s=null;class r{constructor(y){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 v,b,S;const T=this._tables[0][4],w=this._tables[1],C=y.length;let O=1;if(C!==4&&C!==6&&C!==8)throw new Error("Invalid aes key size");const P=y.slice(0),M=[];for(this._key=[P,M],v=C;v<4*C+28;v++)S=P[v-1],(v%C===0||C===8&&v%C===4)&&(S=T[S>>>24]<<24^T[S>>16&255]<<16^T[S>>8&255]<<8^T[S&255],v%C===0&&(S=S<<8^S>>>24^O<<24,O=O<<1^(O>>7)*283)),P[v]=P[v-C]^S;for(b=0;v;b++,v--)S=P[b&3?v:v-4],v<=4||b<4?M[b]=S:M[b]=w[0][T[S>>>24]]^w[1][T[S>>16&255]]^w[2][T[S>>8&255]]^w[3][T[S&255]]}decrypt(y,v,b,S,T,w){const C=this._key[1];let O=y^C[0],P=S^C[1],M=b^C[2],U=v^C[3],B,W,Q;const G=C.length/4-2;let X,q=4;const H=this._tables[1],V=H[0],N=H[1],Y=H[2],Z=H[3],ne=H[4];for(X=0;X<G;X++)B=V[O>>>24]^N[P>>16&255]^Y[M>>8&255]^Z[U&255]^C[q],W=V[P>>>24]^N[M>>16&255]^Y[U>>8&255]^Z[O&255]^C[q+1],Q=V[M>>>24]^N[U>>16&255]^Y[O>>8&255]^Z[P&255]^C[q+2],U=V[U>>>24]^N[O>>16&255]^Y[P>>8&255]^Z[M&255]^C[q+3],q+=4,O=B,P=W,M=Q;for(X=0;X<4;X++)T[(3&-X)+w]=ne[O>>>24]<<24^ne[P>>16&255]<<16^ne[M>>8&255]<<8^ne[U&255]^C[q++],B=O,O=P,P=M,M=U,U=B}}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(y){this.jobs.push(y),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const a=function(p){return p<<24|(p&65280)<<8|(p&16711680)>>8|p>>>24},o=function(p,y,v){const b=new Int32Array(p.buffer,p.byteOffset,p.byteLength>>2),S=new r(Array.prototype.slice.call(y)),T=new Uint8Array(p.byteLength),w=new Int32Array(T.buffer);let C,O,P,M,U,B,W,Q,G;for(C=v[0],O=v[1],P=v[2],M=v[3],G=0;G<b.length;G+=4)U=a(b[G]),B=a(b[G+1]),W=a(b[G+2]),Q=a(b[G+3]),S.decrypt(U,B,W,Q,w,G),w[G]=a(w[G]^C),w[G+1]=a(w[G+1]^O),w[G+2]=a(w[G+2]^P),w[G+3]=a(w[G+3]^M),C=U,O=B,P=W,M=Q;return T};class l{constructor(y,v,b,S){const T=l.STEP,w=new Int32Array(y.buffer),C=new Uint8Array(y.byteLength);let O=0;for(this.asyncStream_=new i,this.asyncStream_.push(this.decryptChunk_(w.subarray(O,O+T),v,b,C)),O=T;O<w.length;O+=T)b=new Uint32Array([a(w[O-4]),a(w[O-3]),a(w[O-2]),a(w[O-1])]),this.asyncStream_.push(this.decryptChunk_(w.subarray(O,O+T),v,b,C));this.asyncStream_.push(function(){S(null,t(C))})}static get STEP(){return 32e3}decryptChunk_(y,v,b,S){return function(){const T=o(y,v,b);S.set(T,y.byteOffset)}}}var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c;typeof window<"u"?c=window:typeof u<"u"?c=u:typeof self<"u"?c=self:c={};var f=c,h=function(y){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(y):y&&y.buffer instanceof ArrayBuffer},g=f.BigInt||Number;g("0x1"),g("0x100"),g("0x10000"),g("0x1000000"),g("0x100000000"),g("0x10000000000"),g("0x1000000000000"),g("0x100000000000000"),g("0x10000000000000000"),function(){var p=new Uint16Array([65484]),y=new Uint8Array(p.buffer,p.byteOffset,p.byteLength);return y[0]===255?"big":y[0]===204?"little":"unknown"}();const m=function(p){const y={};return Object.keys(p).forEach(v=>{const b=p[v];h(b)?y[v]={bytes:b.buffer,byteOffset:b.byteOffset,byteLength:b.byteLength}:y[v]=b}),y};self.onmessage=function(p){const y=p.data,v=new Uint8Array(y.encrypted.bytes,y.encrypted.byteOffset,y.encrypted.byteLength),b=new Uint32Array(y.key.bytes,y.key.byteOffset,y.key.byteLength/4),S=new Uint32Array(y.iv.bytes,y.iv.byteOffset,y.iv.byteLength/4);new l(v,b,S,function(T,w){self.postMessage(m({source:y.source,decrypted:w}),[w.buffer])})}}));var ACe=NN(kCe);const ICe=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},JN=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},k_=(e,t)=>{t.activePlaylistLoader=e,e.load()},DCe=(e,t)=>()=>{const{segmentLoaders:{[e]:n,main:s},mediaTypes:{[e]:r}}=t,i=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;if(!(a&&l&&a.id===l.id)&&(r.lastGroup_=a,r.lastTrack_=i,JN(n,r),!(!a||a.isMainPlaylist))){if(!a.playlistLoader){o&&s.resetEverything();return}n.resyncLoader(),k_(a.playlistLoader,r)}},OCe=(e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:s}}=t;s.lastGroup_=null,n.abort(),n.pause()},PCe=(e,t)=>()=>{const{mainPlaylistLoader:n,segmentLoaders:{[e]:s,main:r},mediaTypes:{[e]:i}}=t,a=i.activeTrack(),o=i.getActiveGroup(),l=i.activePlaylistLoader,u=i.lastTrack_;if(!(u&&a&&u.id===a.id)&&(i.lastGroup_=o,i.lastTrack_=a,JN(s,i),!!o)){if(o.isMainPlaylist){if(!a||!u||a.id===u.id)return;const c=t.vhs.playlistController_,f=c.selectPlaylist();if(c.media()===f)return;i.logger_(`track change. Switching main audio from ${u.id} to ${a.id}`),n.pause(),r.resetEverything(),c.fastQualityChange_(f);return}if(e==="AUDIO"){if(!o.playlistLoader){r.setAudio(!0),r.resetEverything();return}s.setAudio(!0),r.setAudio(!1)}if(l===o.playlistLoader){k_(o.playlistLoader,i);return}s.track&&s.track(a),s.resetEverything(),k_(o.playlistLoader,i)}},fg={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:n},excludePlaylist:s}=t,r=n.activeTrack(),i=n.activeGroup(),a=(i.filter(l=>l.default)[0]||i[0]).id,o=n.tracks[a];if(r===o){s({error:{message:"Problem encountered loading the default audio track."}});return}He.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const l in n.tracks)n.tracks[l].enabled=n.tracks[l]===o;n.onTrackChanged()},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:n}}=t;He.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const s=n.activeTrack();s&&(s.mode="disabled"),n.onTrackChanged()}},IA={AUDIO:(e,t,n)=>{if(!t)return;const{tech:s,requestOptions:r,segmentLoaders:{[e]:i}}=n;t.on("loadedmetadata",()=>{const a=t.media();i.playlist(a,r),(!s.paused()||a.endList&&s.preload()!=="none")&&i.load()}),t.on("loadedplaylist",()=>{i.playlist(t.media(),r),s.paused()||i.load()}),t.on("error",fg[e](e,n))},SUBTITLES:(e,t,n)=>{const{tech:s,requestOptions:r,segmentLoaders:{[e]:i},mediaTypes:{[e]:a}}=n;t.on("loadedmetadata",()=>{const o=t.media();i.playlist(o,r),i.track(a.activeTrack()),(!s.paused()||o.endList&&s.preload()!=="none")&&i.load()}),t.on("loadedplaylist",()=>{i.playlist(t.media(),r),s.paused()||i.load()}),t.on("error",fg[e](e,n))}},$Ce={AUDIO:(e,t)=>{const{vhs:n,sourceType:s,segmentLoaders:{[e]:r},requestOptions:i,main:{mediaGroups:a},mediaTypes:{[e]:{groups:o,tracks:l,logger_:u}},mainPlaylistLoader:c}=t,f=kh(c.main);(!a[e]||Object.keys(a[e]).length===0)&&(a[e]={main:{default:{default:!0}}},f&&(a[e].main.default.playlists=c.main.playlists));for(const h in a[e]){o[h]||(o[h]=[]);for(const g in a[e][h]){let m=a[e][h][g],p;if(f?(u(`AUDIO group '${h}' label '${g}' is a main playlist`),m.isMainPlaylist=!0,p=null):s==="vhs-json"&&m.playlists?p=new gu(m.playlists[0],n,i):m.resolvedUri?p=new gu(m.resolvedUri,n,i):m.playlists&&s==="dash"?p=new T_(m.playlists[0],n,i,c):p=null,m=pn({id:g,playlistLoader:p},m),IA[e](e,m.playlistLoader,t),o[h].push(m),typeof l[g]>"u"){const y=new He.AudioTrack({id:g,kind:ICe(m),enabled:!1,language:m.language,default:m.default,label:g});l[g]=y}}}r.on("error",fg[e](e,t))},SUBTITLES:(e,t)=>{const{tech:n,vhs:s,sourceType:r,segmentLoaders:{[e]:i},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[e]:{groups:l,tracks:u}},mainPlaylistLoader:c}=t;for(const f in o[e]){l[f]||(l[f]=[]);for(const h in o[e][f]){if(!s.options_.useForcedSubtitles&&o[e][f][h].forced)continue;let g=o[e][f][h],m;if(r==="hls")m=new gu(g.resolvedUri,s,a);else if(r==="dash"){if(!g.playlists.filter(y=>y.excludeUntil!==1/0).length)return;m=new T_(g.playlists[0],s,a,c)}else r==="vhs-json"&&(m=new gu(g.playlists?g.playlists[0]:g.resolvedUri,s,a));if(g=pn({id:h,playlistLoader:m},g),IA[e](e,g.playlistLoader,t),l[f].push(g),typeof u[h]>"u"){const p=n.addRemoteTextTrack({id:h,kind:"subtitles",default:g.default&&g.autoselect,language:g.language,label:h},!1).track;u[h]=p}}}i.on("error",fg[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:n,main:{mediaGroups:s},mediaTypes:{[e]:{groups:r,tracks:i}}}=t;for(const a in s[e]){r[a]||(r[a]=[]);for(const o in s[e][a]){const l=s[e][a][o];if(!/^(?:CC|SERVICE)/.test(l.instreamId))continue;const u=n.options_.vhs&&n.options_.vhs.captionServices||{};let c={label:o,language:l.language,instreamId:l.instreamId,default:l.default&&l.autoselect};if(u[c.instreamId]&&(c=pn(c,u[c.instreamId])),c.default===void 0&&delete c.default,r[a].push(pn({id:o},l)),typeof i[o]>"u"){const f=n.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;i[o]=f}}}}},ZN=(e,t)=>{for(let n=0;n<e.length;n++)if(ZS(t,e[n])||e[n].playlists&&ZN(e[n].playlists,t))return!0;return!1},RCe=(e,t)=>n=>{const{mainPlaylistLoader:s,mediaTypes:{[e]:{groups:r}}}=t,i=s.media();if(!i)return null;let a=null;i.attributes[e]&&(a=r[i.attributes[e]]);const o=Object.keys(r);if(!a)if(e==="AUDIO"&&o.length>1&&kh(t.main))for(let l=0;l<o.length;l++){const u=r[o[l]];if(ZN(u,i)){a=u;break}}else r.main?a=r.main:o.length===1&&(a=r[o[0]]);return typeof n>"u"?a:n===null||!a?null:a.filter(l=>l.id===n.id)[0]||null},NCe={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}},MCe=(e,{mediaTypes:t})=>()=>{const n=t[e].activeTrack();return n?t[e].activeGroup(n):null},LCe=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(u=>{$Ce[u](u,e)});const{mediaTypes:t,mainPlaylistLoader:n,tech:s,vhs:r,segmentLoaders:{["AUDIO"]:i,main:a}}=e;["AUDIO","SUBTITLES"].forEach(u=>{t[u].activeGroup=RCe(u,e),t[u].activeTrack=NCe[u](u,e),t[u].onGroupChanged=DCe(u,e),t[u].onGroupChanging=OCe(u,e),t[u].onTrackChanged=PCe(u,e),t[u].getActiveGroup=MCe(u,e)});const o=t.AUDIO.activeGroup();if(o){const u=(o.filter(f=>f.default)[0]||o[0]).id;t.AUDIO.tracks[u].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),i.setAudio(!0)):a.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])},BCe=()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ca,activeTrack:ca,getActiveGroup:ca,onGroupChanged:ca,onTrackChanged:ca,lastTrack_:null,logger_:ei(`MediaGroups[${t}]`)}}),e};class DA{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(t){t===1&&(this.version_=t)}set ttl(t){this.ttl_=t||300}set reloadUri(t){t&&(this.reloadUri_=er(this.reloadUri_,t))}set priority(t){t&&t.length&&(this.priority_=t)}set pathwayClones(t){t&&t.length&&(this.pathwayClones_=new Map(t.map(n=>[n.ID,n])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class FCe extends He.EventTarget{constructor(t,n){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new DA,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=ei("Content Steering"),this.xhr_=t,this.getBandwidth_=n}assignTagProperties(t,n){this.manifestType_=n.serverUri?"HLS":"DASH";const s=n.serverUri||n.serverURL;if(!s){this.logger_(`steering manifest URL is ${s}, cannot request steering manifest.`),this.trigger("error");return}if(s.startsWith("data:")){this.decodeDataUriManifest_(s.substring(s.indexOf(",")+1));return}this.steeringManifest.reloadUri=er(t,s),this.defaultPathway=n.pathwayId||n.defaultServiceLocation,this.queryBeforeStart=n.queryBeforeStart,this.proxyServerUrl_=n.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering")}requestSteeringManifest(t){const n=this.steeringManifest.reloadUri;if(!n)return;const s=t?n:this.getRequestURI(n);if(!s){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}const r={contentSteeringInfo:{uri:s}};this.trigger({type:"contentsteeringloadstart",metadata:r}),this.request_=this.xhr_({uri:s,requestType:"content-steering-manifest"},(i,a)=>{if(i){if(a.status===410){this.logger_(`manifest request 410 ${i}.`),this.logger_(`There will be no more content steering requests to ${s} this session.`),this.excludedSteeringManifestURLs.add(s);return}if(a.status===429){const u=a.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${i}.`),this.logger_(`content steering will retry in ${u} seconds.`),this.startTTLTimeout_(parseInt(u,10));return}this.logger_(`manifest failed to load ${i}.`),this.startTTLTimeout_();return}this.trigger({type:"contentsteeringloadcomplete",metadata:r});let o;try{o=JSON.parse(this.request_.responseText)}catch(u){const c={errorType:He.Error.StreamingContentSteeringParserError,error:u};this.trigger({type:"error",metadata:c})}this.assignSteeringProperties_(o);const l={contentSteeringInfo:r.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:l}),this.startTTLTimeout_()})}setProxyServerUrl_(t){const n=new he.URL(t),s=new he.URL(this.proxyServerUrl_);return s.searchParams.set("url",encodeURI(n.toString())),this.setSteeringParams_(s.toString())}decodeDataUriManifest_(t){const n=JSON.parse(he.atob(t));this.assignSteeringProperties_(n)}setSteeringParams_(t){const n=new he.URL(t),s=this.getPathway(),r=this.getBandwidth_();if(s){const i=`_${this.manifestType_}_pathway`;n.searchParams.set(i,s)}if(r){const i=`_${this.manifestType_}_throughput`;n.searchParams.set(i,r)}return n.toString()}assignSteeringProperties_(t){if(this.steeringManifest.version=t.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${t.VERSION}, which is not supported.`),this.trigger("error");return}this.steeringManifest.ttl=t.TTL,this.steeringManifest.reloadUri=t["RELOAD-URI"],this.steeringManifest.priority=t["PATHWAY-PRIORITY"]||t["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=t["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const s=(r=>{for(const i of r)if(this.availablePathways_.has(i))return i;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==s&&(this.currentPathway=s,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(t){if(!t)return null;const n=r=>this.excludedSteeringManifestURLs.has(r);if(this.proxyServerUrl_){const r=this.setProxyServerUrl_(t);if(!n(r))return r}const s=this.setSteeringParams_(t);return n(s)?null:s}startTTLTimeout_(t=this.steeringManifest.ttl){const n=t*1e3;this.ttlTimeout_=he.setTimeout(()=>{this.requestSteeringManifest()},n)}clearTTLTimeout_(){he.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new DA}addAvailablePathway(t){t&&this.availablePathways_.add(t)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(t){return this.availablePathways_.delete(t)}didDASHTagChange(t,n){return!n&&this.steeringManifest.reloadUri||n&&(er(t,n.serverURL)!==this.steeringManifest.reloadUri||n.defaultServiceLocation!==this.defaultPathway||n.queryBeforeStart!==this.queryBeforeStart||n.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}const VCe=10;let sa;const UCe=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],HCe=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},zCe=function({currentPlaylist:e,buffered:t,currentTime:n,nextPlaylist:s,bufferLowWaterLine:r,bufferHighWaterLine:i,duration:a,bufferBasedABR:o,log:l}){if(!s)return He.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 c=!!mu(t,n).length;if(!e.endList)return!c&&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=XS(t,n),h=o?ds.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:ds.MAX_BUFFER_LOW_WATER_LINE;if(a<h)return l(`${u} as duration < max low water line (${a} < ${h})`),!0;const g=s.attributes.BANDWIDTH,m=e.attributes.BANDWIDTH;if(g<m&&(!o||f<i)){let p=`${u} as next bandwidth < current bandwidth (${g} < ${m})`;return o&&(p+=` and forwardBuffer < bufferHighWaterLine (${f} < ${i})`),l(p),!0}if((!o||g>m)&&f>=r){let p=`${u} as forwardBuffer >= bufferLowWaterLine (${f} >= ${r})`;return o&&(p+=` and next bandwidth > current bandwidth (${g} > ${m})`),l(p),!0}return l(`not ${u} as no switching criteria met`),!1};class jCe extends He.EventTarget{constructor(t){super();const{src:n,withCredentials:s,tech:r,bandwidth:i,externVhs:a,useCueTags:o,playlistExclusionDuration:l,enableLowInitialPlaylist:u,sourceType:c,cacheEncryptionKeys:f,bufferBasedABR:h,leastPixelDiffSelector:g,captionServices:m}=t;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:p}=t;(p===null||typeof p>"u")&&(p=1/0),sa=a,this.bufferBasedABR=!!h,this.leastPixelDiffSelector=!!g,this.withCredentials=s,this.tech_=r,this.vhs_=r.vhs,this.player_=t.player_,this.sourceType_=c,this.useCueTags_=o,this.playlistExclusionDuration=l,this.maxPlaylistRetries=p,this.enableLowInitialPlaylist=u,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:s,maxPlaylistRetries:p,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=BCe(),this.mediaSource=new he.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_=Cs(),this.hasPlayed_=!1,this.syncController_=new ECe(t),this.segmentMetadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new ACe,this.sourceUpdater_=new XN(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new xCe,this.keyStatusMap_=new Map;const y={vhs:this.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:m,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,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_=this.sourceType_==="dash"?new T_(n,this.vhs_,pn(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new gu(n,this.vhs_,pn(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new E_(pn(y,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),t),this.audioSegmentLoader_=new E_(pn(y,{loaderType:"audio"}),t),this.subtitleSegmentLoader_=new _Ce(pn(y,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((S,T)=>{function w(){r.off("vttjserror",C),S()}function C(){r.off("vttjsloaded",w),T()}r.one("vttjsloaded",w),r.one("vttjserror",C),r.addWebVttScript_()})}),t);const v=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new FCe(this.vhs_.xhr,v),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),UCe.forEach(S=>{this[S+"_"]=HCe.bind(this,S)}),this.logger_=ei("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 b=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(b,()=>{const S=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-S,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),a=t&&(t.id||t.uri);if(i&&i!==a){this.logger_(`switch media ${i} -> ${a} from ${n}`);const o={renditionInfo:{id:a,bandwidth:t.attributes.BANDWIDTH,resolution:t.attributes.RESOLUTION,codecs:t.attributes.CODECS},cause:n};this.trigger({type:"renditionselected",metadata:o}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${n}`})}this.mainPlaylistLoader_.media(t,s)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{const n=this.mediaTypes_[t],s=n?n.activeGroup():null,r=this.contentSteeringController_.getPathway();if(s&&r){const a=(s.length?s[0].playlists:s.playlists).filter(o=>o.attributes.serviceLocation===r);a.length&&this.mediaTypes_[t].activePlaylistLoader.media(a[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=he.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(he.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 o=s.main||r.length&&s[r[0]];for(const l in o)if(o[l].default){i={label:l};break}}if(!i)return n;const a=[];for(const o in s)if(s[o][i.label]){const l=s[o][i.label];if(l.playlists&&l.playlists.length)a.push.apply(a,l.playlists);else if(l.uri)a.push(l);else if(t.playlists.length)for(let u=0;u<t.playlists.length;u++){const c=t.playlists[u];c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===o&&a.push(c)}}return a.length?a:n}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const n=this.mainPlaylistLoader_.media(),s=n.targetDuration*1.5*1e3;y_(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=s,n.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(n,this.requestOptions_),this.mainSegmentLoader_.load()),LCe({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(),n),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 n=this.mainPlaylistLoader_.media();if(!n){this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_();let s;if(this.enableLowInitialPlaylist&&(s=this.selectInitialPlaylist()),s||(s=this.selectPlaylist()),!s||!this.shouldSwitchToMedia_(s)||(this.initialMedia_=s,this.switchMedia_(this.initialMedia_,"initial"),!(this.sourceType_==="vhs-json"&&this.initialMedia_.segments)))return;n=this.initialMedia_}this.handleUpdatedMediaPlaylist(n)}),this.mainPlaylistLoader_.on("error",()=>{const n=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:n.playlist,error:n})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const n=this.mainPlaylistLoader_.media(),s=n.targetDuration*1.5*1e3;y_(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=s,this.sourceType_==="dash"&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(n,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const n=this.mainPlaylistLoader_.media();if(n.lastExcludeReason_==="playlist-unchanged")return;this.stuckAtPlaylistEnd_(n)&&(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"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(n=>{this.mainPlaylistLoader_.on(n,s=>{this.player_.trigger(qn({},s))})})}handleUpdatedMediaPlaylist(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),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 a in s.AUDIO)for(const o in s.AUDIO[a])s.AUDIO[a][o].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"}),sa.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(),a=this.tech_.buffered();return zCe({buffered:a,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 s=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:s.playlist,error:s})}),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",s=>{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:VCe}))});const t=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const s=this.getCodecsOrExclude_();s&&this.sourceUpdater_.addOrChangeSourceBuffers(s)};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()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(s=>{this.mainSegmentLoader_.on(s,r=>{this.player_.trigger(qn({},r))}),this.audioSegmentLoader_.on(s,r=>{this.player_.trigger(qn({},r))}),this.subtitleSegmentLoader_.on(s,r=>{this.player_.trigger(qn({},r))})})}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&&t===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(t,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(()=>{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||t.start){const n=this.seekable();if(!n.length)return!1;const s=n.end(0);let r=s;if(t.start){const i=t.start.timeOffset;i<0?r=Math.max(s+i,n.start(0)):r=Math.min(s,i)}this.trigger("firstplay"),this.tech_.setCurrentTime(r)}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=sa.Playlist.playlistEnd(t,s),i=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return r-i<=Ni;const o=a.end(a.length-1);return o-i<=Ni&&r-o<=Ni}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(Mv),a=i.length===1&&i[0]===t;if(r.length===1&&s!==1/0)return He.log.warn(`Problem encountered with playlist ${t.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){const m=this.pathwayAttribute_(t),p=this.contentSteeringController_.steeringManifest.ttl*1e3;this.contentSteeringController_.excludePathway(m),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(m)},p);return}let g=!1;r.forEach(m=>{if(m===t)return;const p=m.excludeUntil;typeof p<"u"&&p!==1/0&&(g=!0,delete m.excludeUntil)}),g&&(He.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let o;t.playlistErrors_>this.maxPlaylistRetries?o=1/0:o=Date.now()+s*1e3,t.excludeUntil=o,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_:He.log.warn,c=n.message?" "+n.message:"";u(`${n.internal?"Internal problem":"Problem"} encountered with playlist ${t.id}.${c} 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",a||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(a=>{const o=this.mediaTypes_[a]&&this.mediaTypes_[a].activePlaylistLoader;o&&s.push(o)}),["main","audio","subtitle"].forEach(a=>{const o=this[`${a}SegmentLoader_`];o&&(t===a||t==="all")&&s.push(o)}),s.forEach(a=>n.forEach(o=>{typeof a[o]=="function"&&a[o]()}))}setCurrentTime(t){const n=mu(this.tech_.buffered(),t);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(n&&n.length)return t;this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;const t=this.mainPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:sa.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=sa.Playlist.seekable(n,s,sa.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=sa.Playlist.seekable(n,s,sa.Playlist.liveEdgeDelay(r,n)),t.length===0)))return;let a,o;if(this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),t?t.start(0)>i.end(0)||i.start(0)>t.end(0)?this.seekable_=i:this.seekable_=Cs([[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)===a&&this.seekable_.start(0)===o)return;this.logger_(`seekable updated [${dN(this.seekable_)}]`);const l={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:l}),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=sa.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.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),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_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();t.video=t.main;const s=sf(this.main(),n),r={},i=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(r.video=s.video||t.main.videoCodec||d1e),t.main.isMuxed&&(r.video+=`,${s.audio||t.main.audioCodec||ck}`),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||i)&&(r.audio=s.audio||t.main.audioCodec||t.audio.audioCodec||ck,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),!r.audio&&!r.video){this.excludePlaylist({playlistToExclude:n,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}const a=(u,c)=>u?om(c):J0(c),o={};let l;if(["video","audio"].forEach(function(u){if(r.hasOwnProperty(u)&&!a(t[u].isFmp4,r[u])){const c=t[u].isFmp4?"browser":"muxer";o[c]=o[c]||[],o[c].push(r[u]),u==="audio"&&(l=c)}}),i&&l&&n.attributes.AUDIO){const u=n.attributes.AUDIO;this.main().playlists.forEach(c=>{(c.attributes&&c.attributes.AUDIO)===u&&c!==n&&(c.excludeUntil=1/0)}),this.logger_(`excluding audio group ${u} as ${l} does not support codec(s): "${r.audio}"`)}if(Object.keys(o).length){const u=Object.keys(o).reduce((c,f)=>(c&&(c+=", "),c+=`${f} does not support codec(s): "${o[f].join(",")}"`,c),"")+".";this.excludePlaylist({playlistToExclude:n,error:{internal:!0,message:u},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const u=[];if(["video","audio"].forEach(c=>{const f=(xi(this.sourceUpdater_.codecs[c]||"")[0]||{}).type,h=(xi(r[c]||"")[0]||{}).type;f&&h&&f.toLowerCase()!==h.toLowerCase()&&u.push(`"${this.sourceUpdater_.codecs[c]}" -> "${r[c]}"`)}),u.length){this.excludePlaylist({playlistToExclude:n,error:{message:`Codec switching not supported: ${u.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return r}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=sf(this.main,r),a=[];i.audio&&!J0(i.audio)&&!om(i.audio)&&a.push(`audio codec ${i.audio}`),i.video&&!J0(i.video)&&!om(i.video)&&a.push(`video codec ${i.video}`),i.text&&i.text==="stpp.ttml.im1t"&&a.push(`text codec ${i.text}`),a.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id} for unsupported: ${a.join(", ")}`))})}excludeIncompatibleVariants_(t){const n=[],s=this.main().playlists,r=cg(xi(t)),i=gA(r),a=r.video&&xi(r.video)[0]||null,o=r.audio&&xi(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 c=[],f=sf(this.mainPlaylistLoader_.main,u),h=gA(f);if(!(!f.audio&&!f.video)){if(h!==i&&c.push(`codec count "${h}" !== "${i}"`),!this.sourceUpdater_.canChangeType()){const g=f.video&&xi(f.video)[0]||null,m=f.audio&&xi(f.audio)[0]||null;g&&a&&g.type.toLowerCase()!==a.type.toLowerCase()&&c.push(`video codec "${g.type}" !== "${a.type}"`),m&&o&&m.type.toLowerCase()!==o.type.toLowerCase()&&c.push(`audio codec "${m.type}" !== "${o.type}"`)}c.length&&(u.excludeUntil=1/0,this.logger_(`excluding ${u.id}: ${c.join(" && ")}`))}})}updateAdCues_(t){let n=0;const s=this.seekable();s.length&&(n=s.start(0)),wCe(t,this.cueTagsTrack_,n)}goalBufferLength(){const t=this.tech_.currentTime(),n=ds.GOAL_BUFFER_LENGTH,s=ds.GOAL_BUFFER_LENGTH_RATE,r=Math.max(n,ds.MAX_GOAL_BUFFER_LENGTH);return Math.min(n+t*s,r)}bufferLowWaterLine(){const t=this.tech_.currentTime(),n=ds.BUFFER_LOW_WATER_LINE,s=ds.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(n,ds.MAX_BUFFER_LOW_WATER_LINE),i=Math.max(n,ds.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(n+t*s,this.bufferBasedABR?i:r)}bufferHighWaterLine(){return ds.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(t){bA(this.inbandTextTracks_,"com.apple.streaming",this.tech_),sCe({inbandTextTracks:this.inbandTextTracks_,dateRanges:t})}addMetadataToTextTrack(t,n,s){const r=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();bA(this.inbandTextTracks_,t,this.tech_),eCe({inbandTextTracks:this.inbandTextTracks_,metadataArray:n,timestampOffset:r,videoDuration:s})}pathwayAttribute_(t){return t.attributes["PATHWAY-ID"]||t.attributes.serviceLocation}initContentSteeringController_(){const t=this.main();if(t.contentSteering){for(const n of t.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(n));if(this.contentSteeringController_.assignTagProperties(t.uri,t.contentSteering),this.contentSteeringController_.queryBeforeStart){this.contentSteeringController_.requestSteeringManifest(!0);return}this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(n=>{this.contentSteeringController_.on(n,s=>{this.trigger(qn({},s))})}),this.sourceType_==="dash"&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const n=this.main();(this.contentSteeringController_.didDASHTagChange(n.uri,n.contentSteering)||(()=>{const i=this.contentSteeringController_.getAvailablePathways(),a=[];for(const o of n.playlists){const l=o.attributes.serviceLocation;if(l&&(a.push(l),!i.has(l)))return!0}return!!(!a.length&&i.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const t=this.contentSteeringController_.getPathway();if(!t)return;this.handlePathwayClones_();const s=this.main().playlists,r=new Set;let i=!1;Object.keys(s).forEach(a=>{const o=s[a],l=this.pathwayAttribute_(o),u=l&&t!==l;o.excludeUntil===1/0&&o.lastExcludeReason_==="content-steering"&&!u&&(delete o.excludeUntil,delete o.lastExcludeReason_,i=!0);const f=!o.excludeUntil&&o.excludeUntil!==1/0;!r.has(o.id)&&u&&f&&(r.add(o.id),o.excludeUntil=1/0,o.lastExcludeReason_="content-steering",this.logger_(`excluding ${o.id} for ${o.lastExcludeReason_}`))}),this.contentSteeringController_.manifestType_==="DASH"&&Object.keys(this.mediaTypes_).forEach(a=>{const o=this.mediaTypes_[a];if(o.activePlaylistLoader){const l=o.activePlaylistLoader.media_;l&&l.attributes.serviceLocation!==t&&(i=!0)}}),i&&this.changeSegmentPathway_()}handlePathwayClones_(){const n=this.main().playlists,s=this.contentSteeringController_.currentPathwayClones,r=this.contentSteeringController_.nextPathwayClones;if(s&&s.size||r&&r.size){for(const[a,o]of s.entries())r.get(a)||(this.mainPlaylistLoader_.updateOrDeleteClone(o),this.contentSteeringController_.excludePathway(a));for(const[a,o]of r.entries()){const l=s.get(a);if(!l){n.filter(c=>c.attributes["PATHWAY-ID"]===o["BASE-ID"]).forEach(c=>{this.mainPlaylistLoader_.addClonePathway(o,c)}),this.contentSteeringController_.addAvailablePathway(a);continue}this.equalPathwayClones_(l,o)||(this.mainPlaylistLoader_.updateOrDeleteClone(o,!0),this.contentSteeringController_.addAvailablePathway(a))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...r])))}}equalPathwayClones_(t,n){if(t["BASE-ID"]!==n["BASE-ID"]||t.ID!==n.ID||t["URI-REPLACEMENT"].HOST!==n["URI-REPLACEMENT"].HOST)return!1;const s=t["URI-REPLACEMENT"].PARAMS,r=n["URI-REPLACEMENT"].PARAMS;for(const i in s)if(s[i]!==r[i])return!1;for(const i in r)if(s[i]!==r[i])return!1;return!0}changeSegmentPathway_(){const t=this.selectPlaylist();this.pauseLoading(),this.contentSteeringController_.manifestType_==="DASH"&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(t,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let t=0;const n="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(s=>{const r=this.mainPlaylistLoader_.getKeyIdSet(s);!r||!r.size||r.forEach(i=>{const a="usable",o=this.keyStatusMap_.has(i)&&this.keyStatusMap_.get(i)===a,l=s.lastExcludeReason_===n&&s.excludeUntil===1/0;o?o&&l&&(delete s.excludeUntil,delete s.lastExcludeReason_,this.logger_(`enabling playlist ${s.id} because key ID ${i} is ${a}`)):(s.excludeUntil!==1/0&&s.lastExcludeReason_!==n&&(s.excludeUntil=1/0,s.lastExcludeReason_=n,this.logger_(`excluding playlist ${s.id} because the key ID ${i} doesn't exist in the keyStatusMap or is not ${a}`)),t++)})}),t>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(s=>{const r=s&&s.attributes&&s.attributes.RESOLUTION&&s.attributes.RESOLUTION.height<720,i=s.excludeUntil===1/0&&s.lastExcludeReason_===n;r&&i&&(delete s.excludeUntil,He.log.warn(`enabling non-HD playlist ${s.id} because all playlists were excluded due to ${n} key IDs`))})}addKeyStatus_(t,n){const i=(typeof t=="string"?t:yCe(t)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${n}' with key ID ${i} added to the keyStatusMap`),this.keyStatusMap_.set(i,n)}updatePlaylistByKeyStatus(t,n){this.addKeyStatus_(t,n),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}const qCe=(e,t,n)=>s=>{const r=e.main.playlists[t],i=JS(r),a=Mv(r);if(typeof s>"u")return a;s?delete r.disabled:r.disabled=!0;const o={renditionInfo:{id:t,bandwidth:r.attributes.BANDWIDTH,resolution:r.attributes.RESOLUTION,codecs:r.attributes.CODECS},cause:"fast-quality"};return s!==a&&!i&&(n(r),s?e.trigger({type:"renditionenabled",metadata:o}):e.trigger({type:"renditiondisabled",metadata:o})),s};class WCe{constructor(t,n,s){const{playlistController_:r}=t,i=r.fastQualityChange_.bind(r);if(n.attributes){const a=n.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=n.attributes.BANDWIDTH,this.frameRate=n.attributes["FRAME-RATE"]}this.codecs=sf(r.main(),n),this.playlist=n,this.id=s,this.enabled=qCe(t.playlists,n.id,i)}}const KCe=function(e){e.representations=()=>{const t=e.playlistController_.main(),n=kh(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(s=>!JS(s)).map((s,r)=>new WCe(e,s,s.id)):[]}},OA=["seeking","seeked","pause","playing","error"];class GCe extends He.EventTarget{constructor(t){super(),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.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=ei("PlaybackWatcher"),this.logger_("initialize");const n=()=>this.monitorCurrentTime_(),s=()=>this.monitorCurrentTime_(),r=()=>this.techWaiting_(),i=()=>this.resetTimeUpdate_(),a=this.playlistController_,o=["main","subtitle","audio"],l={};o.forEach(c=>{l[c]={reset:()=>this.resetSegmentDownloads_(c),updateend:()=>this.checkSegmentDownloads_(c)},a[`${c}SegmentLoader_`].on("appendsdone",l[c].updateend),a[`${c}SegmentLoader_`].on("playlistupdate",l[c].reset),this.tech_.on(["seeked","seeking"],l[c].reset)});const u=c=>{["main","audio"].forEach(f=>{a[`${f}SegmentLoader_`][c]("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(OA,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(OA,i),this.tech_.off("canplay",s),this.tech_.off("play",n),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),o.forEach(c=>{a[`${c}SegmentLoader_`].off("appendsdone",l[c].updateend),a[`${c}SegmentLoader_`].off("playlistupdate",l[c].reset),this.tech_.off(["seeked","seeking"],l[c].reset)}),this.checkCurrentTimeTimeout_&&he.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&he.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=he.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=Lwe(this[`${t}Buffered_`],r);if(this[`${t}Buffered_`]=r,i){const a={bufferedRanges:r};n.trigger({type:"bufferedrangeschanged",metadata:a}),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:ol(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+Ni>=n.end(n.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&t===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(t===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(Cs([this.lastRecordedTime,t]));const s={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:s}),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 m=n.start(0);i=m+(m===n.end(0)?0:Ni)}if(typeof i<"u")return this.logger_(`Trying to seek outside of seekable at time ${s} with seekable range ${dN(n)}. Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0;const a=this.playlistController_.sourceUpdater_,o=this.tech_.buffered(),l=a.audioBuffer?a.audioBuffered():null,u=a.videoBuffer?a.videoBuffered():null,c=this.media(),f=c.partTargetDuration?c.partTargetDuration:(c.targetDuration-Ri)*2,h=[l,u];for(let m=0;m<h.length;m++){if(!h[m])continue;if(XS(h[m],s)<f)return!1}const g=Cp(o,s);return g.length===0?!1:(i=g.start(0)+Ni,this.logger_(`Buffered region starts (${g.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=mu(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 o=t.end(t.length-1);return this.logger_(`Fell out of live window at time ${n}. Seeking to live point (seekable end) ${o}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(o),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 a=Cp(r,n);return a.length>0?(this.logger_(`Stopped at ${n} and seeking to ${a.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)+Ni;const a=!s.endList,o=typeof s.partTargetDuration=="number";return a&&(o||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=mu(t,s-3),a=mu(t,s),o=mu(n,s);o.length&&!a.length&&i.length&&(r={start:i.end(0),end:o.end(0)})}else Cp(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=Cp(n,s);if(this.resetTimeUpdate_(),r.length===0||s!==t)return;this.logger_("skipTheGap_:","currentTime:",s,"scheduled currentTime:",t,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Ri);const i={gapInfo:{from:s,to:r.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:i}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(t,n){const s=Rwe(t);for(let r=0;r<s.length;r++){const i=s.start(r),a=s.end(r);if(n-i<4&&n-i>2)return{start:i,end:a}}return null}}const YCe={errorInterval:30,getSource(e){const n=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return e(n)}},eM=function(e,t){let n=0,s=0;const r=pn(YCe,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const i=function(){s&&e.currentTime(s)},a=function(c){c!=null&&(s=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",i),e.src(c),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},o=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"){He.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return n=Date.now(),r.getSource.call(e,a)},l=function(){e.off("loadedmetadata",i),e.off("error",o),e.off("dispose",l)},u=function(c){l(),eM(e,c)};e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=u},XCe=function(e){eM(this,e)};var tM="3.13.1",QCe="7.0.3",JCe="1.3.0",ZCe="7.1.0",eEe="4.0.1";const Un={PlaylistLoader:gu,Playlist:tr,utils:oTe,STANDARD_PLAYLIST_SELECTOR:yA,INITIAL_PLAYLIST_SELECTOR:YTe,lastBandwidthSelector:yA,movingAverageBandwidthSelector:KTe,comparePlaylistBandwidth:tw,comparePlaylistResolution:WTe,xhr:AN()};Object.keys(ds).forEach(e=>{Object.defineProperty(Un,e,{get(){return He.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),ds[e]},set(t){if(He.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),typeof t!="number"||t<0){He.log.warn(`value of Vhs.${e} must be greater than or equal to 0`);return}ds[e]=t}})});const nM="videojs-vhs",sM=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"})},tEe=function(e,t){t.representations().forEach(n=>{e.addQualityLevel(n)}),sM(e,t.playlists)};Un.canPlaySource=function(){return He.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const nEe=(e,t,n)=>{if(!e)return e;let s={};t&&t.attributes&&t.attributes.CODECS&&(s=cg(xi(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(s.audio=n.attributes.CODECS);const r=Lf(s.video),i=Lf(s.audio),a={};for(const o in e)a[o]={},i&&(a[o].audioContentType=i),r&&(a[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(a[o].pssh=t.contentProtection[o].pssh),typeof e[o]=="string"&&(a[o].url=e[o]);return pn(e,a)},sEe=(e,t)=>e.reduce((n,s)=>{if(!s.contentProtection)return n;const r=t.reduce((i,a)=>{const o=s.contentProtection[a];return o&&o.pssh&&(i[a]={pssh:o.pssh}),i},{});return Object.keys(r).length&&n.push(r),n},[]),rEe=({player:e,sourceKeySystems:t,audioMedia:n,mainPlaylists:s})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=n?s.concat([n]):s,i=sEe(r,Object.keys(t)),a=[],o=[];return i.forEach(l=>{o.push(new Promise((u,c)=>{e.tech_.one("keysessioncreated",u)})),a.push(new Promise((u,c)=>{e.eme.initializeMediaKeys({keySystems:l},f=>{if(f){c(f);return}u()})}))}),Promise.race([Promise.all(a),Promise.race(o)])},iEe=({player:e,sourceKeySystems:t,media:n,audioMedia:s})=>{const r=nEe(t,n,s);return r?(e.currentSource().keySystems=r,r&&!e.eme?(He.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},rM=()=>{if(!he.localStorage)return null;const e=he.localStorage.getItem(nM);if(!e)return null;try{return JSON.parse(e)}catch{return null}},aEe=e=>{if(!he.localStorage)return!1;let t=rM();t=t?pn(t,e):e;try{he.localStorage.setItem(nM,JSON.stringify(t))}catch{return!1}return t},oEe=e=>e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(e.substring(e.indexOf(",")+1)):e,iM=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},aM=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},oM=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},lM=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};Un.supportsNativeHls=function(){if(!ht||!ht.createElement)return!1;const e=ht.createElement("video");return He.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}();Un.supportsNativeDash=function(){return!ht||!ht.createElement||!He.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(ht.createElement("video").canPlayType("application/dash+xml"))}();Un.supportsTypeNatively=e=>e==="hls"?Un.supportsNativeHls:e==="dash"?Un.supportsNativeDash:!1;Un.isSupported=function(){return He.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};Un.xhr.onRequest=function(e){iM(Un.xhr,e)};Un.xhr.onResponse=function(e){aM(Un.xhr,e)};Un.xhr.offRequest=function(e){oM(Un.xhr,e)};Un.xhr.offResponse=function(e){lM(Un.xhr,e)};const lEe=He.getComponent("Component");class uM extends lEe{constructor(t,n,s){if(super(n,s.vhs),typeof s.initialBandwidth=="number"&&(this.options_.bandwidth=s.initialBandwidth),this.logger_=ei("VhsHandler"),n.options_&&n.options_.playerId){const r=He.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(ht,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=>{const i=ht.fullscreenElement||ht.webkitFullscreenElement||ht.mozFullScreenElement||ht.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_(t={}){if(this.options_=pn(this.options_,t),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_.useForcedSubtitles=this.options_.useForcedSubtitles||!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=60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){const s=rM();s&&s.bandwidth&&(this.options_.bandwidth=s.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),s&&s.throughput&&(this.options_.throughput=s.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=ds.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===ds.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(s=>{typeof this.source_[s]<"u"&&(this.options_[s]=this.source_[s])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio;const n=this.options_.customPixelRatio;typeof n=="number"&&n>=0&&(this.customPixelRatio=n)}setOptions(t={}){this.setOptions_(t)}src(t,n){if(!t)return;this.setOptions_(),this.options_.src=oEe(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Un,this.options_.sourceType=t$(n),this.options_.seekTo=i=>{this.tech_.setCurrentTime(i)},this.options_.player_=this.player_,this.playlistController_=new jCe(this.options_);const s=pn({liveRangeSafeTimeDelta:Ni},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new GCe(s),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{const i=He.players[this.tech_.options_.playerId];let a=this.playlistController_.error;typeof a=="object"&&!a.code?a.code=3:typeof a=="string"&&(a={message:a,code:3}),i.error(a)});const r=this.options_.bufferBasedABR?Un.movingAverageBandwidthSelector(.55):Un.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=Un.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 a=he.navigator.connection||he.navigator.mozConnection||he.navigator.webkitConnection,o=1e7;if(this.options_.useNetworkInformationApi&&a){const l=a.downlink*1e3*1e3;l>=o&&i>=o?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 a;return this.throughput>0?a=1/this.throughput:a=0,Math.floor(1/(i+a))},set(){He.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:()=>ol(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:()=>ol(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&&aEe({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{KCe(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_=he.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"),rEe({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=iEe({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});if(this.player_.tech_.on("keystatuschange",s=>{this.playlistController_.updatePlaylistByKeyStatus(s.keyId,s.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!n){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){const t=He.players[this.tech_.options_.playerId];!t||!t.qualityLevels||this.qualityLevels_||(this.qualityLevels_=t.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{tEe(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{sM(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":tM,"mux.js":QCe,"mpd-parser":JCe,"m3u8-parser":ZCe,"aes-decrypter":eEe}}version(){return this.constructor.version()}canChangeType(){return XN.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_&&he.URL.revokeObjectURL&&(he.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(t,n){return pTe({playlist:this.playlistController_.media(),time:t,callback:n})}seekToProgramTime(t,n,s=!0,r=2){return $N({programTime:t,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:s,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:n})}setupXhrHooks_(){this.xhr.onRequest=t=>{iM(this.xhr,t)},this.xhr.onResponse=t=>{aM(this.xhr,t)},this.xhr.offRequest=t=>{oM(this.xhr,t)},this.xhr.offResponse=t=>{lM(this.xhr,t)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){const t=["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"],n=["gapjumped","playedrangeschanged"];t.forEach(s=>{this.playlistController_.on(s,r=>{this.player_.trigger(qn({},r))})}),n.forEach(s=>{this.playbackWatcher_.on(s,r=>{this.player_.trigger(qn({},r))})})}}const hg={name:"videojs-http-streaming",VERSION:tM,canHandleSource(e,t={}){const n=pn(He.options,t);return hg.canPlayType(e.type,n)},handleSource(e,t,n={}){const s=pn(He.options,n);return t.vhs=new uM(e,t,s),t.vhs.xhr=AN(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const n=t$(e);if(!n)return"";const s=hg.getOverrideNative(t);return!Un.supportsTypeNatively(n)||s?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,n=!(He.browser.IS_ANY_SAFARI||He.browser.IS_IOS),{overrideNative:s=n}=t;return s}},uEe=()=>om("avc1.4d400d,mp4a.40.2");uEe()&&He.getTech("Html5").registerSourceHandler(hg,0);He.VhsHandler=uM;He.VhsSourceHandler=hg;He.Vhs=Un;He.use||He.registerComponent("Vhs",Un);He.options.vhs=He.options.vhs||{};(!He.getPlugin||!He.getPlugin("reloadSourceOnError"))&&He.registerPlugin("reloadSourceOnError",XCe);function gy(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 cEe={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)}}},dEe={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}},fEe={children:{type:[Array,Object]},controlBar:{type:Object,onChange:function(e,t){return e.controlBar.options(t)}}},hEe={html5:{type:Object}},pEe={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}},qf=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cEe),dEe),fEe),hEe),pEe),nw=Object.keys(qf),cM=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"}),dM=Object.keys(cM);Object.values(cM);var vy=function(e){var t,n=e==null?void 0:e.trim().replace(/\s+/g," ");return n&&(t=n.split(" "))!==null&&t!==void 0?t:[]},yy={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)}}},fM=nw.filter(function(e){return!!qf[e].onEvent}),hM=function(e){return"update:"+e},mEe=dM.concat(fM.map(hM)),gEe=nw.reduce(function(e,t){var n,s=qf[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))},{}),vEe=J({name:"VueVideoPlayer",props:Object.assign(Object.assign({},gEe),{class:[String,Object,Array]}),emits:mEe.concat(["mounted"],["unmounted"]),setup:function(e,t){var n=en(e),s=n.class,r=gy(n,["class"]),i=ln(!1),a=ln(null),o=ln(null),l=E(function(){return o.value?o.value.player:null}),u=j(null),c=E(function(){return u.value?Ol(u.value):null});return gt(function(){var f,h=function(g){var m,p=g.props,y=g.element,v=g.className,b=g.onEvent,S=p.options;S===void 0&&(S={});var T=gy(p,["options"]),w={};Object.keys(T).forEach(function(Q){var G=T[Q];G!==void 0&&(w[Q]=G)});var C=Object.assign(Object.assign({},w),S),O=C.volume,P=C.playbackRate,M=gy(C,["volume","playbackRate"]),U=Object.assign(Object.assign({},M),{playsinline:(m=M.playsinline)!==null&&m!==void 0?m:M.playsInline}),B=He(y,U,function(){var Q=this;dM.forEach(function(G){Q.on(G,function(X){b(G,X)})}),M.src&&!M.sources&&this.src(M.src),O&&Number.isFinite(O)&&this.volume(O),P&&Number.isFinite(P)&&(this.defaultPlaybackRate(P),setTimeout(function(){Q.playbackRate(P)},0))});v&&vy(v).map(function(Q){return B.addClass(Q)});var W=function(Q){var G;(G=B.options)===null||G===void 0||G.call(B,Q??{})};return{player:B,dispose:function(){return B.dispose()},updateClassNames:function(Q,G){vy(Q).map(function(X){return B.removeClass(X)}),vy(G).map(function(X){return B.addClass(X)})},updateOptions:W,updatePropOption:function(Q,G){var X,q,H;W(((X={})[Q]=G,X)),(H=(q=qf[Q])===null||q===void 0?void 0:q.onChange)===null||H===void 0||H.call(q,B,G)}}}({element:a.value,props:r,onEvent:t.emit});f={player:h.player,onEvent:t.emit},fM.forEach(function(g){var m,p;(p=(m=qf[g])===null||m===void 0?void 0:m.onEvent)===null||p===void 0||p.call(m,f.player,function(y){f.onEvent(hM(g),y)})}),xe(function(){return e.class},function(g,m){var p=$(m),y=$(g);h.updateClassNames(p,y)},{immediate:!0}),xe(function(){return e.options},function(g){return h.updateOptions(g??{})},{deep:!0}),nw.filter(function(g){return g!=="options"}).forEach(function(g){xe(function(){return e[g]},function(m){return h.updatePropOption(g,m)},{deep:!0})}),function(g,m){var p=Object.keys(yy),y=p.reduce(function(b,S){var T;return Object.assign(Object.assign({},b),((T={})[S]=yy[S].getter(g),T))},{playing:!1,waiting:!1}),v=function(b,S){y[b]=S,m.onUpdate(b,S,Object.assign({},y))};g.on(["pause","ended"],function(){v("playing",!1)}),g.on(["play","playing"],function(){v("playing",!0)}),g.on("waiting",function(){v("waiting",!0);var b=g.currentTime(),S=function(){b!==g.currentTime()&&(v("waiting",!1),g.off("timeupdate",S))};g.on("timeupdate",S)}),p.forEach(function(b){var S,T=yy[b];g.on(["loadstart","loadedmetadata"].concat((S=T.events)!==null&&S!==void 0?S:[]),function(){v(b,T.getter(g))})}),m.onInit(Object.assign({},y))}(h.player,{onInit:function(g){u.value=g},onUpdate:function(g,m){u.value&&(u.value[g]=m)}}),o.value=h,i.value=!0,t.emit("mounted",{video:a.value,player:l.value,state:c.value})}),un(function(){o.value&&(o.value.dispose(),o.value=null,u.value=null,t.emit("unmounted"))}),function(){var f,h;return lt("div",{"data-vjs-player":"",class:$(s)},[lt("video",{class:["video-js","v-video-player"],ref:a}),i.value&&((h=(f=t.slots).default)===null||h===void 0?void 0:h.call(f,{video:a.value,player:l.value,state:c.value}))])}}}),pM=vEe;const yEe=e=>(ur("data-v-d83218a5"),e=e(),cr(),e),bEe={class:"player_area"},_Ee={class:"player_p"},SEe={class:"current_play_info"},wEe={class:"play_info_left"},TEe={class:"current_play_title"},CEe=["href"],EEe={class:"tags"},xEe=["href"],kEe={class:"hidden-sm-and-down"},AEe={class:"hidden-sm-and-down"},IEe={class:"play_info_right"},DEe={class:"play-module"},OEe={class:"play-module-item"},PEe={class:"module-heading"},$Ee=yEe(()=>R("p",{class:"play-module-title"},"播放列表",-1)),REe={class:"play-tab-group"},NEe=["onClick"],MEe={class:"play-list"},LEe={class:"play-list-item"},BEe=["onClick"],FEe={class:"correlation"},VEe=J({__name:"Play",setup(e){const t=m=>{n.currentTabId=m},n=Ct({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:""},list:[]},current:{index:0,episode:"",link:""},currentEpisode:0,relate:[],currentTabId:"",autoplay:!0,options:{title:"",src:"",volume:.6,currentTime:50}}),s=E(()=>{let m=!1;return n.detail.list.forEach(p=>{n.currentTabId==p.id&&(m=n.current.index!=p.linkList.length-1)}),m}),r=Oa(),i=m=>{n.detail.list.forEach(p=>{if(p.id==m.sourceId){let y=p.linkList[m.episodeIndex];n.current={index:m.episodeIndex,episode:y.episode,link:y.link},n.currentEpisode=m.episodeIndex,n.options.src=y.link,n.options.title=n.detail.name+" "+y.episode,n.currentTabId=m.sourceId}})},a=m=>{switch(m.preventDefault(),m.keyCode){case 32:m.target.paused?m.target.play():m.target.pause();break;case 37:m.target.currentTime=m.target.currentTime-5<0?0:m.target.currentTime-5;break;case 39:m.target.currentTime=m.target.currentTime+5>m.target.duration?m.target.duration:m.target.currentTime+5;break;case 38:n.options.volume=n.options.volume+.05>1?1:n.options.volume+.05;break;case 40:n.options.volume=n.options.volume-.05<0?0:n.options.volume-.05;break}},o=()=>{n.autoplay&&l()},l=()=>{s.value&&(i({sourceId:n.currentTabId,episodeIndex:n.current.index+1,target:""}),n.autoplay&&setTimeout(()=>{document.getElementsByTagName("video")[0].play()},1e3))},u=m=>{let p=document.getElementsByTagName("video")[0];p.focus();const y=document.createEvent("HTMLEvents");y.initEvent("keydown",!0,!1),y.keyCode=m,p.dispatchEvent(y)},c=m=>{let p=document.getElementsByClassName("vjs-button");for(let y of p)y.addEventListener("keydown",function(v){v.preventDefault(),u(v.keyCode)})},f=m=>{c()},h=m=>{let p=r.currentRoute.value.query.currentTime;p&&m.target.player.currentTime(p)},g=()=>{if(n.options.src.length>0){let m=document.getElementsByTagName("video")[0],p=Au.getCookie(ku.FILM_HISTORY)?JSON.parse(Au.getCookie(ku.FILM_HISTORY)):{},y=`/play?id=${n.detail.id}&source=${n.currentPlayFrom}&episode=${n.currentEpisode}&currentTime=${m.currentTime}`;p[n.detail.id]={name:n.detail.name,link:y,episode:n.current.episode,timeStamp:new Date().valueOf()},Au.setCookie(ku.FILM_HISTORY,JSON.stringify(p))}};return window.addEventListener("beforeunload",g),Pl(()=>{let m=r.currentRoute.value.query;mn("/filmPlayInfo",{id:m.id,playFrom:m.source,episode:m.episode}).then(p=>{p.code===0?(n.detail=p.data.detail,n.current={index:p.data.currentEpisode,...p.data.current},n.currentEpisode=p.data.currentEpisode,n.relate=p.data.relate,n.options.src=n.current.link,n.currentTabId=p.data.currentPlayFrom,n.loading=!0):wt.error({message:p.msg})})}),(m,p)=>{const y=tt;return yt((k(),z("div",bEe,[R("div",_Ee,[I(d(pM),{onMounted:f,src:n.options.src,poster:d(z8),controls:"",onReady:h,onEnded:o,loop:!1,onKeydown:a,bufferedPercent:30,volume:n.options.volume,crossorigin:"anonymous",playsinline:"",class:"video-player","playback-rates":[.5,1,1.5,2]},null,8,["src","poster","volume"])]),R("div",SEe,[R("div",wEe,[R("h3",TEe,[R("a",{href:`/filmDetail?link=${n.detail.id}`},pe(n.detail.name),9,CEe),Re(pe(n.current.episode),1)]),R("div",EEe,[R("a",{href:`/filmClassifySearch?Pid=${n.detail.pid}&Category=${n.detail.cid}`},[I(y,null,{default:L(()=>[I(d(C1))]),_:1}),Re(" "+pe(n.detail.descriptor.cName),1)],8,xEe),R("span",null,pe(n.detail.descriptor.classTag?n.detail.descriptor.classTag.replaceAll(",","/"):"未知"),1),R("span",kEe,pe(n.detail.descriptor.year),1),R("span",AEe,pe(n.detail.descriptor.area),1)])]),R("div",IEe,[R("a",{href:"javascript:;",class:$(`iconfont icon-play1 ${n.autoplay?"p_r_active":""}`),onClick:p[0]||(p[0]=()=>{n.autoplay=!n.autoplay})},null,2),yt(R("a",{href:"javascript:;",class:"iconfont icon-iov-next",onClick:l},null,512),[[zt,s.value]])])]),R("div",DEe,[R("div",OEe,[R("div",PEe,[$Ee,R("div",REe,[(k(!0),z(Ge,null,_t(n.detail.list,v=>(k(),z("a",{href:"javascript:;",class:$(`play-tab-item ${n.currentTabId==v.id?"tab-active":""}`),onClick:b=>t(v.id)},pe(v.name),11,NEe))),256))])]),R("div",MEe,[(k(!0),z(Ge,null,_t(n.detail.list,v=>yt((k(),z("div",LEe,[(k(!0),z(Ge,null,_t(v.linkList,(b,S)=>(k(),z("a",{class:$(`play-link ${b.link==n.current.link?"play-link-active":""}`),href:"javascript:;",onClick:T=>i({sourceId:v.id,episodeIndex:S,target:this})},pe(b.episode),11,BEe))),256))],512)),[[zt,n.currentTabId==v.id]])),256))])])]),R("div",FEe,[I(H8,{relateList:n.relate},null,8,["relateList"])])],512)),[[zt,n.loading]])}}}),UEe=Cn(VEe,[["__scopeId","data-v-d83218a5"]]),sw=e=>(ur("data-v-cd1f93df"),e=e(),cr(),e),HEe={class:"container"},zEe={class:"search_group"},jEe={key:0,class:"search_res"},qEe={class:"title"},WEe={class:"content"},KEe={class:"film_item"},GEe=["href"],YEe={class:"film_intro"},XEe={class:"tags"},QEe={class:"tag_c"},JEe=sw(()=>R("em",null,"导演:",-1)),ZEe=sw(()=>R("em",null,"主演:",-1)),exe={class:"blurb"},txe=sw(()=>R("em",null,"剧情:",-1)),nxe={class:"pagination_container"},sxe=J({__name:"SearchFilm",setup(e){const t=Oa(),n=bve(),s=Ct({list:[],page:{current:0},oldSearch:"",search:""});xe([n],(l,u)=>{a(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){wt.error({message:"搜索信息不能为空",duration:1e3});return}location.href=location.href=`/search?search=${s.search}`},a=(l,u)=>{mn("/searchFilm",{keyword:l,current:u}).then(c=>{console.log(c),c.code==0?(s.list=c.data.list,s.page=c.data.page,s.oldSearch=l):wt.warning({message:c.msg,duration:1e3})})};gt(()=>{t.currentRoute.value.query.search!=null&&a(t.currentRoute.value.query.search+"",t.currentRoute.value.query.current)});const o=l=>{let u=t.currentRoute.value.query;location.href=`/search?search=${u.search}&current=${l}`};return(l,u)=>{const c=gn,f=dh,h=ch;return k(),z(Ge,null,[R("div",HEe,[R("div",zEe,[yt(R("input",{"onUpdate:modelValue":u[0]||(u[0]=g=>s.search=g),onKeydown:u[1]||(u[1]=g=>{g.keyCode==13&&i()}),placeholder:"输入关键字搜索 动漫,剧集,电影 ",class:"search"},null,544),[[va,s.search]]),I(c,{onClick:i,icon:d(bf),style:{}},null,8,["icon"])]),s.list&&s.list.length>0?(k(),z("div",jEe,[R("div",qEe,[R("h2",null,pe(s.oldSearch),1),R("p",null,"共找到"+pe(s.page.total)+'部与"'+pe(s.oldSearch)+'"相关的影视作品',1)]),R("div",WEe,[(k(!0),z(Ge,null,_t(s.list,g=>(k(),z("div",KEe,[R("a",{href:`/filmDetail?link=${g.id}`,style:it({backgroundImage:`url('${g.picture}')`})},null,12,GEe),R("div",YEe,[R("h3",null,pe(g.name),1),R("p",XEe,[R("span",QEe,pe(g.cName),1),R("span",null,pe(g.year),1),R("span",null,pe(g.area),1)]),R("p",null,[JEe,Re(pe(g.director),1)]),R("p",null,[ZEe,Re(pe(g.actor),1)]),R("p",exe,[txe,Re(pe(g.blurb.replaceAll("  ","")),1)]),I(c,{icon:d(Ng),onClick:m=>r(g.id)},{default:L(()=>[Re("立即播放")]),_:2},1032,["icon","onClick"])])]))),256))]),R("div",nxe,[I(f,{background:"",layout:"prev, pager, next","current-page":s.page.current,"onUpdate:currentPage":u[2]||(u[2]=g=>s.page.current=g),onCurrentChange:o,"pager-count":5,"page-size":s.page.pageSize,total:s.page.total,"prev-icon":d(q3),"next-icon":d(W3),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])):ae("",!0)]),s.oldSearch!=""&&(!s.list||s.list.length==0)?(k(),fe(h,{key:0,description:"未查询到对应影片"})):ae("",!0)],64)}}}),rxe=Cn(sxe,[["__scopeId","data-v-cd1f93df"]]),ixe="/assets/404-b813c94a.png",axe=e=>(ur("data-v-148e0a5e"),e=e(),cr(),e),oxe={class:"container"},lxe=["src"],uxe=axe(()=>R("p",{class:"warning-txt"},"你好像走错地方了哦!!!",-1)),cxe={class:"btn-group"},dxe=J({__name:"Error404",setup(e){const t=Oa(),n=s=>{switch(s){case"home":t.push("/");break;case"back":t.go(-1);break}};return(s,r)=>(k(),z("div",oxe,[ae("",!0),R("img",{src:d(ixe),alt:"404",class:"notfound-img"},null,8,lxe),uxe,R("div",cxe,[R("button",{onClick:r[2]||(r[2]=i=>n("home"))},"主页"),R("button",{onClick:r[3]||(r[3]=i=>n("back"))},"返回")])]))}}),fxe=Cn(dxe,[["__scopeId","data-v-148e0a5e"]]),mM=e=>(ur("data-v-92a5dec1"),e=e(),cr(),e),hxe={key:0,class:"container"},pxe={class:"title"},mxe=["href"],gxe=mM(()=>R("span",{class:"line"},null,-1)),vxe=["href"],yxe={class:"t_container"},bxe={class:"t_item"},_xe={class:"t_title"},Sxe=mM(()=>R("b",{class:"iconfont icon-triangle"},null,-1)),wxe={class:"tag_group"},Txe=["onClick"],Cxe={class:"pagination_container"},Exe=J({__name:"FilmClassifySearch",setup(e){const t=Ct({title:{},list:[],search:{sortList:[],titles:[],tags:[]},page:{current:0},searchParams:{Pid:"",Category:"",Plot:"",Area:"",Language:"",Year:"",Sort:""}}),n=Oa(),s=o=>{i()},r=(o,l)=>{t.searchParams[o]=l,t.page.current=1,i()},i=()=>{let o="";for(let l in t.searchParams){let u=t.searchParams[l];u!=""&&(o+=`&${l}=${u}`)}location.href="/filmClassifySearch?"+o.slice(1)+`&current=${t.page.current}`},a=()=>{let o=n.currentRoute.value.query;mn("/filmClassifySearch",{...o}).then(l=>{l.code===0?(t.title=l.data.title,t.list=l.data.list,t.page=l.data.page,t.search=l.data.search,t.searchParams=l.data.params,console.log(t)):wt.error({message:"影片搜索结果异常,请稍后刷新重试",duration:1e3})})};return gt(()=>{a()}),(o,l)=>{const u=dh;return t.title.name?(k(),z("div",hxe,[R("div",pxe,[R("a",{href:`/filmClassify?Pid=${t.title.id}`},pe(t.title.name),9,mxe),gxe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}`,class:"h_active"},pe(`${t.title.name}库`),9,vxe)]),R("div",yxe,[(k(!0),z(Ge,null,_t(t.search.sortList,c=>(k(),z("div",bxe,[R("div",_xe,[Re(pe(t.search.titles[c])+" ",1),Sxe]),R("div",wxe,[(k(!0),z(Ge,null,_t(t.search.tags[c],f=>(k(),z("a",{href:"javascript:void(false)",class:$(`tag ${f.Value===t.searchParams[c]?"t_active":""}`),onClick:h=>r(c,f.Value)},pe(f.Name),11,Txe))),256))])]))),256))]),I(Iu,{col:7,list:t.list},null,8,["list"]),R("div",Cxe,[I(u,{background:"",layout:"prev, pager, next","current-page":t.page.current,"onUpdate:currentPage":l[0]||(l[0]=c=>t.page.current=c),onCurrentChange:s,"pager-count":5,"page-size":t.page.pageSize,total:t.page.total,"prev-icon":d(q3),"next-icon":d(W3),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])):ae("",!0)}}}),xxe=Cn(Exe,[["__scopeId","data-v-92a5dec1"]]),Vl=e=>(ur("data-v-bcb171db"),e=e(),cr(),e),kxe={key:0,class:"container"},Axe={class:"title"},Ixe=["href"],Dxe=Vl(()=>R("span",{class:"line"},null,-1)),Oxe=["href"],Pxe={class:"content"},$xe={class:"news"},Rxe={class:"c_nav"},Nxe=Vl(()=>R("span",{class:"c_nav_text silver"},"最新上映",-1)),Mxe=["href"],Lxe=Vl(()=>R("b",{class:"iconfont icon-more"},null,-1)),Bxe={class:"news"},Fxe={class:"c_nav"},Vxe=Vl(()=>R("span",{class:"c_nav_text silver"},"排行榜",-1)),Uxe=["href"],Hxe=Vl(()=>R("b",{class:"iconfont icon-more"},null,-1)),zxe={class:"news"},jxe={class:"c_nav"},qxe=Vl(()=>R("span",{class:"c_nav_text silver"},"最近更新",-1)),Wxe=["href"],Kxe=Vl(()=>R("b",{class:"iconfont icon-more"},null,-1)),Gxe=J({__name:"FilmClassify",setup(e){const t=Ct({title:{},content:{news:[],top:[],recent:[]}}),n=Oa(),s=()=>{let r=n.currentRoute.value.query;mn("/filmClassify",{Pid:r.Pid}).then(i=>{i.code===0?(t.title=i.data.title,t.content=i.data.content):wt.error({message:i.msg,duration:1e3})})};return gt(()=>{s()}),(r,i)=>t.content.news.length>0?(k(),z("div",kxe,[R("div",Axe,[R("a",{href:`/filmClassify?Pid=${t.title.id}`,class:"h_active"},pe(t.title.name),9,Ixe),Dxe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}`},pe(`${t.title.name}库`),9,Oxe)]),R("div",Pxe,[R("div",$xe,[R("div",Rxe,[Nxe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=release_stamp`,class:"c_nav_more"},[Re("更多"),Lxe],8,Mxe)]),I(Iu,{col:7,list:t.content.news},null,8,["list"])]),R("div",Bxe,[R("div",Fxe,[Vxe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=hits`,class:"c_nav_more"},[Re("更多"),Hxe],8,Uxe)]),I(Iu,{col:7,list:t.content.top},null,8,["list"])]),R("div",zxe,[R("div",jxe,[qxe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=update_stamp`,class:"c_nav_more"},[Re("更多"),Kxe],8,Wxe)]),I(Iu,{col:7,list:t.content.recent},null,8,["list"])])])])):ae("",!0)}}),Yxe=Cn(Gxe,[["__scopeId","data-v-bcb171db"]]),Xxe=e=>(ur("data-v-5d6b8cb4"),e=e(),cr(),e),Qxe={class:"container"},Jxe=Xxe(()=>R("h3",null,"管理后台首页, 不知道放点啥, 先空着",-1)),Zxe=[Jxe],eke=J({__name:"Index",setup(e){return gt(()=>{mn("/manage/index").then(t=>{t.code==0?wt.success({message:t.msg}):wt.error({message:t.msg})})}),(t,n)=>(k(),z("div",Qxe,Zxe))}}),tke=Cn(eke,[["__scopeId","data-v-5d6b8cb4"]]),rw=e=>(ur("data-v-2e64a78d"),e=e(),cr(),e),nke={class:"container"},ske={class:"container-form"},rke={class:"cus-form"},ike=rw(()=>R("h2",{class:"form-title"},"GoFilm Manage",-1)),ake={class:"cus-form-item"},oke=rw(()=>R("i",{class:"cus-item-icon iconfont icon-account"},null,-1)),lke={class:"cus-form-item"},uke=rw(()=>R("i",{class:"cus-item-icon iconfont icon-password"},null,-1)),cke=["type"],dke=J({__name:"Login",setup(e){const t=Ct({userName:"",password:"",pwdIsShow:!1}),n=Oa(),s=()=>{_s("/login",{userName:t.userName,password:t.password}).then(r=>{r.code===0?n.push("/manage/index"):wt.error({message:r.msg})})};return(r,i)=>{const a=gn;return k(),z("div",nke,[ae("",!0),R("div",ske,[R("form",rke,[ike,R("div",ake,[yt(R("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=o=>t.userName=o),placeholder:"用户名 / 邮箱",class:"cus-input"},null,512),[[va,t.userName]]),oke]),R("div",lke,[uke,yt(R("input",{type:`${t.pwdIsShow?"text":"password"}`,"onUpdate:modelValue":i[1]||(i[1]=o=>t.password=o),placeholder:"密码",class:"cus-input",onKeydown:Zt(s,["enter"])},null,40,cke),[[hB,t.password]]),R("i",{class:$(`cus-pwd iconfont ${t.pwdIsShow?"icon-eye2":"icon-eye"}`),onClick:i[2]||(i[2]=o=>t.pwdIsShow=!t.pwdIsShow)},null,2)]),I(a,{"native-type":"button",type:"primary",size:"large",color:"#9b49e7",round:"",onClick:s},{default:L(()=>[Re("登录")]),_:1}),I(a,{"native-type":"button",disabled:"",type:"primary",size:"large",color:"#9b49e7",round:""},{default:L(()=>[Re("注册")]),_:1})])])])}}}),fke=Cn(dke,[["__scopeId","data-v-2e64a78d"]]),Lv=e=>(ur("data-v-64b1c9fb"),e=e(),cr(),e),hke={class:"header_container"},pke={class:"left"},mke=Lv(()=>R("h3",null,"后台管理中心",-1)),gke={class:"right"},vke={class:"dropdown_user"},yke=Lv(()=>R("em",{class:"iconfont icon-user-info"},null,-1)),bke=Lv(()=>R("em",{class:"iconfont icon-change-pwd2"},null,-1)),_ke=Lv(()=>R("em",{class:"iconfont icon-logout"},null,-1)),Ske={class:"dialog-footer"},wke="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[$@$!%*?&])[A-Za-z\\d$@$!%*?&]{8,12}$",Tke=J({__name:"ManageHeader",setup(e){const t=Oa(),n=Ct({userInfo:{id:Number,userName:String,email:String,gender:Number,nickName:String,avatar:String,status:Number}}),s=Je("collapse"),r=Ct({changePwd:!1}),i=Ct({changePwd:{password:"",newPassword:"",confirmPassword:""},type:{password:!1,newPassword:!1,confirmPassword:!1}}),l=Ct({password:[{required:!0,message:"原始密码信息不能为空",trigger:"blur"}],newPassword:[{required:!0,validator:(g,m,p)=>{console.log(m),m===""?p(new Error("新密码不能为空")):m.match(wke)||p(new Error("密码必须为8-12位且包含大小写字母数字和特殊字符")),p()},trigger:"blur"}],confirmPassword:[{required:!0,validator:(g,m,p)=>{m===""?p(new Error("确认密码不能为空")):i.changePwd.newPassword!==""&&i.changePwd.newPassword!=i.changePwd.confirmPassword&&p(new Error("新密码与确认密码不一致")),p()},trigger:"blur"}]}),u=()=>{_s("/changePassword",{password:i.changePwd.password,newPassword:i.changePwd.newPassword}).then(g=>{g.code===0?(i.changePwd={password:"",newPassword:"",confirmPassword:""},r.changePwd=!1,wt.success({message:g.msg})):wt.error({message:g.msg})})},c=()=>{r.changePwd=!1,i.changePwd={password:"",newPassword:"",confirmPassword:""}},f=()=>{mn("/logout").then(g=>{g.code===0?(rye(),t.push("/login")):wt.error({message:g.msg})})},h=()=>{mn("/manage/user/info").then(g=>{g.code===0?(g.data.avatar=g.data.avatar=="empty"?"https://s2.loli.net/2023/12/05/O2SEiUcMx5aWlv4.jpg":g.data.avatar,n.userInfo=g.data):wt.error({message:g.msg})})};return gt(()=>{h()}),(g,m)=>{const p=n2,y=tt,v=EO,b=xO,S=CO,T=Vn,w=Oo,C=Do,O=gn,P=uh;return k(),z("div",hke,[R("div",pke,[R("a",{href:"javascript:;",onClick:m[0]||(m[0]=(...M)=>d(s).changeCollapse&&d(s).changeCollapse(...M)),class:$(`iconfont ${d(s).collapse.value?"icon-unfold":"icon-fold"}`)},null,2),mke]),R("div",gke,[I(S,{placement:"bottom"},{dropdown:L(()=>[I(b,null,{default:L(()=>[I(v,{command:"a"},{default:L(()=>[yke,Re("个人信息")]),_:1}),I(v,{command:"a",onClick:m[1]||(m[1]=M=>r.changePwd=!0)},{default:L(()=>[bke,Re("修改密码 ")]),_:1}),I(v,{command:"e",divided:"",onClick:f},{default:L(()=>[_ke,Re("退出登录 ")]),_:1})]),_:1})]),default:L(()=>[R("div",vke,[I(p,{class:"avatar",size:35,src:n.userInfo.avatar.toString(),alt:"admin"},null,8,["src"]),R("span",null,pe(n.userInfo.nickName),1),I(y,{class:"el-icon--right"},{default:L(()=>[I(d(Xi))]),_:1})])]),_:1})]),I(P,{modelValue:r.changePwd,"onUpdate:modelValue":m[8]||(m[8]=M=>r.changePwd=M),width:"480px",title:"用户密码修改"},{footer:L(()=>[R("span",Ske,[I(O,{color:"#9b49e7",onClick:u},{default:L(()=>[Re("确认")]),_:1}),I(O,{onClick:c},{default:L(()=>[Re("取消")]),_:1})])]),default:L(()=>[I(C,{model:i.changePwd,rules:l,"label-width":"80px"},{default:L(()=>[I(w,{label:"原始密码",prop:"password"},{default:L(()=>[I(T,{modelValue:i.changePwd.password,"onUpdate:modelValue":m[2]||(m[2]=M=>i.changePwd.password=M),type:i.type.password?"text":"password"},null,8,["modelValue","type"]),R("i",{class:$(`cus-pwd iconfont ${i.type.password?"icon-eye2":"icon-eye"}`),onClick:m[3]||(m[3]=M=>i.type.password=!i.type.password)},null,2)]),_:1}),I(w,{label:"新密码",prop:"newPassword"},{default:L(()=>[I(T,{modelValue:i.changePwd.newPassword,"onUpdate:modelValue":m[4]||(m[4]=M=>i.changePwd.newPassword=M),type:i.type.newPassword?"text":"password"},null,8,["modelValue","type"]),R("i",{class:$(`cus-pwd iconfont ${i.type.newPassword?"icon-eye2":"icon-eye"}`),onClick:m[5]||(m[5]=M=>i.type.newPassword=!i.type.newPassword)},null,2)]),_:1}),I(w,{label:"确认密码",prop:"confirmPassword"},{default:L(()=>[I(T,{modelValue:i.changePwd.confirmPassword,"onUpdate:modelValue":m[6]||(m[6]=M=>i.changePwd.confirmPassword=M),type:i.type.confirmPassword?"text":"password"},null,8,["modelValue","type"]),R("i",{class:$(`cus-pwd iconfont ${i.type.confirmPassword?"icon-eye2":"icon-eye"}`),onClick:m[7]||(m[7]=M=>i.type.confirmPassword=!i.type.confirmPassword)},null,2)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}}}),Cke=Cn(Tke,[["__scopeId","data-v-64b1c9fb"]]),Ah=e=>(ur("data-v-62de4680"),e=e(),cr(),e),Eke={class:"site_name"},xke=Ah(()=>R("span",null,"网站管理",-1)),kke=Ah(()=>R("span",null,"采集管理",-1)),Ake=Ah(()=>R("span",null,"定时任务",-1)),Ike=Ah(()=>R("span",null,"影片管理",-1)),Dke=Ah(()=>R("span",null,"文件管理",-1)),Oke=J({__name:"Sidebar",setup(e){const t=Je("collapse"),n=Ct({site:{siteName:String,logo:String}}),s=()=>{window.open("/index")},r=()=>{mn("/manage/config/basic").then(i=>{i.code==0?n.site=i.data:wt.error({message:i.msg})})};return gt(()=>{r()}),(i,a)=>{const o=n2,l=RO,u=tt,c=NO,f=$O;return k(),z("div",null,[I(f,{"default-active":"2",class:"side-nav",router:"",collapse:d(t).collapse.value},{default:L(()=>[I(l,{index:"",onClick:s},{title:L(()=>[R("b",Eke,pe(n.site.siteName),1)]),default:L(()=>[I(o,{class:"logo",size:30,src:n.site.logo.toString(),alt:"GoFilm"},null,8,["src"])]),_:1}),I(c,{index:"/manage/index"},{title:L(()=>[I(u,null,{default:L(()=>[I(d(dj))]),_:1}),xke]),default:L(()=>[I(l,{index:"/manage/system/webSite"},{default:L(()=>[Re("站点管理")]),_:1})]),_:1}),I(c,{index:"/manage/collect"},{title:L(()=>[I(u,null,{default:L(()=>[I(d(mj))]),_:1}),kke]),default:L(()=>[I(l,{index:"/manage/collect/index"},{default:L(()=>[Re("影视采集")]),_:1})]),_:1}),I(c,{index:"/manage/cron"},{title:L(()=>[I(u,null,{default:L(()=>[I(d(Gj))]),_:1}),Ake]),default:L(()=>[I(l,{index:"/manage/cron/index"},{default:L(()=>[Re("任务管理")]),_:1})]),_:1}),I(c,{index:"/manage/film"},{title:L(()=>[I(u,null,{default:L(()=>[I(d(sj))]),_:1}),Ike]),default:L(()=>[I(l,{index:"/manage/film/class"},{default:L(()=>[Re("影视分类")]),_:1}),I(l,{index:"/manage/film"},{default:L(()=>[Re("影视信息")]),_:1}),I(l,{index:"/manage/film/add"},{default:L(()=>[Re("影片添加")]),_:1}),I(l,{index:"/manage/film/detail"},{default:L(()=>[Re("视频详情")]),_:1})]),_:1}),I(c,{index:"/manage/file"},{title:L(()=>[I(u,null,{default:L(()=>[I(d(ij))]),_:1}),Dke]),default:L(()=>[I(l,{index:"/manage/file/upload"},{default:L(()=>[Re("文件上传")]),_:1}),I(l,{index:"/manage/file/gallery"},{default:L(()=>[Re("图库管理")]),_:1})]),_:1})]),_:1},8,["collapse"])])}}}),Pke=Cn(Oke,[["__scopeId","data-v-62de4680"]]),$ke={class:"container"},Rke=J({__name:"ManageHome",setup(e){const t=j(!1);return Mt("collapse",{collapse:t,changeCollapse:()=>{t.value=!t.value}}),(s,r)=>{const i=XD,a=l2,o=kt("router-view"),l=u2,u=o2;return k(),z("div",$ke,[I(u,null,{default:L(()=>[I(i,{width:t.value?"auto":"190px",class:"side"},{default:L(()=>[I(Pke)]),_:1},8,["width"]),I(u,null,{default:L(()=>[I(a,{class:"header"},{default:L(()=>[I(Cke)]),_:1}),I(l,{class:"view"},{default:L(()=>[I(o)]),_:1})]),_:1})]),_:1})])}}}),Nke=Cn(Rke,[["__scopeId","data-v-da813000"]]),Mke={class:"container"},Lke={class:"cus_util"},Bke={class:"dialog-footer"},Fke={class:"dialog-footer"},Vke={class:"dialog-footer"},Uke=J({__name:"CollectManage",setup(e){const t=Ct({siteList:[],collectDuration:[{time:24,label:"采集今日"},{time:168,label:"采集本周"},{time:-1,label:"采集全部"}]}),n=Ct({addV:!1,editV:!1,batchV:!1}),s=Ct({add:{name:"",uri:"",resultModel:0,grade:1,collectType:0,syncPictures:!1,state:!1,interval:0},edit:{id:"",name:"",uri:"",resultModel:0,grade:1,collectType:0,syncPictures:!1,state:!1,interval:0},batch:{ids:[],time:0},options:[]}),r=()=>{n.batchV=!0,mn("/manage/collect/options").then(y=>{y.code===0?s.options=y.data:wt.error({message:y.msg})})},i=()=>{_s("/manage/spider/start",{ids:s.batch.ids,time:s.batch.time,batch:!0}).then(y=>{y.code===0?(wt.success({message:y.msg}),m(),p()):wt.error({message:y.msg})})},a=y=>{_s("/manage/spider/start",{id:y.id,time:y.cd,batch:!1}).then(v=>{v.code===0?(wt.success({message:v.msg}),p()):wt.error({message:v.msg})})},o=y=>{switch(y){case 0:s.add.syncPictures=s.add.syncPictures&&s.add.grade==0;break;case 1:s.edit.syncPictures=s.edit.syncPictures&&s.edit.grade==0;break}},l=()=>{_s("/manage/collect/add",s.add).then(y=>{y.code===0?(wt.success({message:y.msg}),m(),p()):wt.error({message:y.msg})})},u=y=>{_s("/manage/collect/test",y).then(v=>{v.code===0?wt.success({message:v.msg}):wt.error({message:v.msg})})},c=y=>{mn("/manage/collect/find",{id:y}).then(v=>{v.code===0?s.edit=v.data:wt.error({message:v.msg})}),n.editV=!0},f=y=>{_s("/manage/collect/change",{id:y.id,state:y.state,syncPictures:y.syncPictures}).then(v=>{v.code===0?(wt.success({message:v.msg}),p()):wt.error({message:v.msg})})},h=y=>{_s("/manage/collect/update",y).then(v=>{v.code===0?(wt.success({message:v.msg}),n.editV=!1,p()):wt.error({message:v.msg})})},g=y=>{mn("/manage/collect/del",{id:y}).then(v=>{v.code===0?(wt.success({message:v.msg}),p()):wt.error({message:v.msg})})},m=()=>{n.addV=!1,n.editV=!1,n.batchV=!1,s.add={name:"",uri:"",resultModel:0,grade:1,collectType:0,syncPictures:!1,state:!1,interval:0}},p=()=>{mn("/manage/collect/list").then(y=>{y.code===0?t.siteList=y.data.map(v=>{switch(v.collectType){case 0:v.collectTypeText="视频";break;case 1:v.collectTypeText="文章";break;case 2:v.collectTypeText="演员";break;case 3:v.collectTypeText="角色";break;case 4:v.collectTypeText="网站";break}return v.cd=24,v}):wt.error({message:y.msg})})};return gt(()=>{p()}),(y,v)=>{const b=ph,S=_a,T=AO,w=fh,C=bo,O=mi,P=gn,M=hh,U=Vn,B=Oo,W=Qg,Q=gs,G=Kg,X=i2,q=Do,H=uh;return k(),z("div",Mke,[I(M,{data:t.siteList,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:L(()=>[I(b,{prop:"name",label:"资源名称"}),I(b,{prop:"resultModel",align:"center",label:"数据类型"},{default:L(V=>[I(S,{"disable-transitions":""},{default:L(()=>[Re(pe(V.row.resultModel==0?"JSON":"XML"),1)]),_:2},1024)]),_:1}),I(b,{prop:"collectType",align:"center",label:"资源类型"},{default:L(V=>[I(S,{"disable-transitions":""},{default:L(()=>[Re(pe(V.row.collectTypeText),1)]),_:2},1024)]),_:1}),I(b,{prop:"uri",label:"资源站"},{default:L(V=>[I(T,{href:V.row.uri,target:"_blank"},{default:L(()=>[Re(pe(V.row.uri),1)]),_:2},1032,["href"])]),_:1}),I(b,{prop:"syncPictures",align:"center",label:"同步图片"},{default:L(V=>[I(w,{onChange:N=>f(V.row),disabled:V.row.grade==1,modelValue:V.row.syncPictures,"onUpdate:modelValue":N=>V.row.syncPictures=N,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["onChange","disabled","modelValue","onUpdate:modelValue"])]),_:1}),I(b,{prop:"state",align:"center",label:"是否启用"},{default:L(V=>[I(w,{onChange:N=>f(V.row),modelValue:V.row.state,"onUpdate:modelValue":N=>V.row.state=N,"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["onChange","modelValue","onUpdate:modelValue"])]),_:1}),I(b,{prop:"grade",align:"center",label:"站点权重"},{default:L(V=>[I(S,{"disable-transitions":"",type:`${V.row.grade==0?"success":"info"}`},{default:L(()=>[Re(pe(V.row.grade==0?"采集主站":"附属站点"),1)]),_:2},1032,["type"])]),_:1}),I(b,{prop:"grade",align:"center",label:"采集间隔"},{default:L(V=>[I(S,{"disable-transitions":"",type:"success"},{default:L(()=>[Re(pe(V.row.interval>0?`${V.row.interval} ms`:"无限制"),1)]),_:2},1024)]),_:1}),I(b,{label:"采集方式"},{default:L(V=>[I(O,{modelValue:V.row.cd,"onUpdate:modelValue":N=>V.row.cd=N,class:"m-2",placeholder:"Select",size:"small"},{default:L(()=>[(k(!0),z(Ge,null,_t(t.collectDuration,N=>(k(),fe(C,{key:N.time,label:N.label,value:N.time},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),I(b,{label:"操作",align:"center"},{default:L(V=>[I(P,{type:"success",icon:d(Wj),plain:"",circle:"",onClick:N=>a(V.row)},null,8,["icon","onClick"]),I(P,{type:"primary",icon:d(Mg),plain:"",circle:"",onClick:N=>c(V.row.id)},null,8,["icon","onClick"]),I(P,{type:"danger",icon:d(Ec),plain:"",circle:"",onClick:N=>g(V.row.id)},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),R("div",Lke,[I(P,{color:"#9b49e7",icon:d(Kz),onClick:v[0]||(v[0]=V=>n.addV=!0)},{default:L(()=>[Re("添加采集站")]),_:1},8,["icon"]),I(P,{color:"#d942bf",onClick:r,icon:d(C1)},{default:L(()=>[Re("一键采集")]),_:1},8,["icon"]),I(P,{type:"danger",icon:d(Rz)},{default:L(()=>[Re("ReZero")]),_:1},8,["icon"])]),I(H,{modelValue:n.addV,"onUpdate:modelValue":v[13]||(v[13]=V=>n.addV=V),title:"添加采集站点"},{footer:L(()=>[R("span",Bke,[I(P,{color:"#cf48be",onClick:v[11]||(v[11]=V=>u(s.add))},{default:L(()=>[Re("测试")]),_:1}),I(P,{color:"#9b49e7",onClick:l},{default:L(()=>[Re("添加")]),_:1}),I(P,{onClick:v[12]||(v[12]=V=>n.addV=!1)},{default:L(()=>[Re("取消")]),_:1})])]),default:L(()=>[I(q,{model:s.add},{default:L(()=>[I(B,{label:"资源名称"},{default:L(()=>[I(U,{modelValue:s.add.name,"onUpdate:modelValue":v[1]||(v[1]=V=>s.add.name=V),placeholder:"自定义资源名称(禁用汉字)"},null,8,["modelValue"])]),_:1}),I(B,{label:"接口地址"},{default:L(()=>[I(U,{modelValue:s.add.uri,"onUpdate:modelValue":v[2]||(v[2]=V=>s.add.uri=V),placeholder:"资源采集链接,本站只采集综合资源或m3u8资源"},null,8,["modelValue"])]),_:1}),I(B,{label:"间隔时长"},{default:L(()=>[I(Q,{class:"box-item",effect:"dark",content:"单次采集请求的时间间隔, 单位/ms",placement:"top"},{default:L(()=>[I(W,{modelValue:s.add.interval,"onUpdate:modelValue":v[3]||(v[3]=V=>s.add.interval=V),min:0,step:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),I(B,{label:"接口类型"},{default:L(()=>[I(X,{modelValue:s.add.resultModel,"onUpdate:modelValue":v[4]||(v[4]=V=>s.add.resultModel=V)},{default:L(()=>[I(G,{label:0},{default:L(()=>[Re("JSON")]),_:1}),I(G,{disabled:"",label:1},{default:L(()=>[Re("XML")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(B,{label:"资源类型"},{default:L(()=>[I(X,{fill:"#9b49e7",modelValue:s.add.collectType,"onUpdate:modelValue":v[5]||(v[5]=V=>s.add.collectType=V)},{default:L(()=>[I(G,{fill:"#9b49e7",label:0},{default:L(()=>[Re("视频")]),_:1}),I(G,{disabled:"",label:1},{default:L(()=>[Re("文章")]),_:1}),I(G,{disabled:"",label:2},{default:L(()=>[Re("演员")]),_:1}),I(G,{disabled:"",label:3},{default:L(()=>[Re("角色")]),_:1}),I(G,{disabled:"",label:4},{default:L(()=>[Re("网站")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(B,{label:"站点权重"},{default:L(()=>[I(X,{onChange:v[6]||(v[6]=V=>o(0)),fill:"#9b49e7",modelValue:s.add.grade,"onUpdate:modelValue":v[7]||(v[7]=V=>s.add.grade=V)},{default:L(()=>[I(G,{label:0},{default:L(()=>[Re("主站点")]),_:1}),I(G,{label:1},{default:L(()=>[Re("附属站点")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(B,{label:"图片同步"},{default:L(()=>[I(w,{modelValue:s.add.syncPictures,"onUpdate:modelValue":v[8]||(v[8]=V=>s.add.syncPictures=V),onChange:v[9]||(v[9]=V=>o(0)),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),I(B,{label:"是否启用"},{default:L(()=>[I(w,{modelValue:s.add.state,"onUpdate:modelValue":v[10]||(v[10]=V=>s.add.state=V),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),I(H,{modelValue:n.editV,"onUpdate:modelValue":v[27]||(v[27]=V=>n.editV=V),title:"修改资源站信息"},{footer:L(()=>[R("span",Fke,[I(P,{color:"#cf48be",onClick:v[24]||(v[24]=V=>u(s.edit))},{default:L(()=>[Re("测试")]),_:1}),I(P,{color:"#9b49e7",onClick:v[25]||(v[25]=V=>h(s.edit))},{default:L(()=>[Re("更新")]),_:1}),I(P,{onClick:v[26]||(v[26]=V=>n.editV=!1)},{default:L(()=>[Re("取消")]),_:1})])]),default:L(()=>[I(q,{model:s.edit},{default:L(()=>[I(B,{label:"资源名称"},{default:L(()=>[I(U,{modelValue:s.edit.name,"onUpdate:modelValue":v[14]||(v[14]=V=>s.edit.name=V),placeholder:"自定义资源名称(禁用汉字)"},null,8,["modelValue"])]),_:1}),I(B,{label:"接口地址"},{default:L(()=>[I(U,{modelValue:s.edit.uri,"onUpdate:modelValue":v[15]||(v[15]=V=>s.edit.uri=V),placeholder:"资源采集链接,本站只采集综合资源或m3u8资源"},null,8,["modelValue"])]),_:1}),I(B,{label:"间隔时长"},{default:L(()=>[I(Q,{class:"box-item",effect:"dark",content:"单次采集请求的时间间隔, 单位/ms",placement:"top"},{default:L(()=>[I(W,{modelValue:s.edit.interval,"onUpdate:modelValue":v[16]||(v[16]=V=>s.edit.interval=V),min:0,step:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),I(B,{label:"接口类型"},{default:L(()=>[I(X,{modelValue:s.edit.resultModel,"onUpdate:modelValue":v[17]||(v[17]=V=>s.edit.resultModel=V)},{default:L(()=>[I(G,{label:0},{default:L(()=>[Re("JSON")]),_:1}),I(G,{disabled:"",label:1},{default:L(()=>[Re("XML")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(B,{label:"资源类型"},{default:L(()=>[I(X,{fill:"#9b49e7",modelValue:s.edit.collectType,"onUpdate:modelValue":v[18]||(v[18]=V=>s.edit.collectType=V)},{default:L(()=>[I(G,{fill:"#9b49e7",label:0},{default:L(()=>[Re("视频")]),_:1}),I(G,{disabled:"",label:1},{default:L(()=>[Re("文章")]),_:1}),I(G,{disabled:"",label:2},{default:L(()=>[Re("演员")]),_:1}),I(G,{disabled:"",label:3},{default:L(()=>[Re("角色")]),_:1}),I(G,{disabled:"",label:4},{default:L(()=>[Re("网站")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(B,{label:"站点权重"},{default:L(()=>[I(X,{fill:"#9b49e7",onChange:v[19]||(v[19]=V=>o(1)),modelValue:s.edit.grade,"onUpdate:modelValue":v[20]||(v[20]=V=>s.edit.grade=V)},{default:L(()=>[I(G,{label:0},{default:L(()=>[Re("主站点")]),_:1}),I(G,{label:1},{default:L(()=>[Re("附属站点")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(B,{label:"图片同步"},{default:L(()=>[I(w,{modelValue:s.edit.syncPictures,"onUpdate:modelValue":v[21]||(v[21]=V=>s.edit.syncPictures=V),onChange:v[22]||(v[22]=V=>o(1)),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),I(B,{label:"是否启用"},{default:L(()=>[I(w,{modelValue:s.edit.state,"onUpdate:modelValue":v[23]||(v[23]=V=>s.edit.state=V),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),I(H,{modelValue:n.batchV,"onUpdate:modelValue":v[30]||(v[30]=V=>n.batchV=V),width:"450px",title:"多资源站一键采集"},{footer:L(()=>[R("span",Vke,[I(P,{color:"#9b49e7",onClick:i},{default:L(()=>[Re("确认执行")]),_:1}),I(P,{onClick:m},{default:L(()=>[Re("取消")]),_:1})])]),default:L(()=>[I(q,{model:s.batch},{default:L(()=>[I(B,{label:"执行站点"},{default:L(()=>[I(O,{modelValue:s.batch.ids,"onUpdate:modelValue":v[28]||(v[28]=V=>s.batch.ids=V),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:L(()=>[(k(!0),z(Ge,null,_t(s.options,V=>(k(),fe(C,{key:V.id,label:V.name,value:V.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(B,{label:"采集时长"},{default:L(()=>[I(Q,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:L(()=>[I(W,{modelValue:s.batch.time,"onUpdate:modelValue":v[29]||(v[29]=V=>s.batch.time=V),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),Hke=Cn(Uke,[["__scopeId","data-v-05c029f4"]]),zke=e=>(ur("data-v-3c90743b"),e=e(),cr(),e),jke={class:"container"},qke=zke(()=>R("h2",{class:"title"},"网站基础参数配置",-1)),Wke={class:"content"},Kke=J({__name:"SiteConfig",setup(e){const t=Ct({site:{siteName:"",domain:"",logo:"",keyword:"",describe:"",state:!0,hint:""}}),n=()=>{_s("/manage/config/basic/update",t.site).then(r=>{r.code===0?(wt.success({message:r.msg}),s()):wt.error({message:r.msg})})},s=()=>{mn("/manage/config/basic").then(r=>{r.code===0?t.site=r.data:wt.error({message:r.msg})})};return gt(()=>{s()}),(r,i)=>{const a=Vn,o=Oo,l=fh,u=gn,c=Do;return k(),z("div",jke,[qke,R("div",Wke,[I(c,{size:"large",model:t.site,"label-width":"120px"},{default:L(()=>[I(o,{label:"网站名称"},{default:L(()=>[I(a,{modelValue:t.site.siteName,"onUpdate:modelValue":i[0]||(i[0]=f=>t.site.siteName=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"网站域名"},{default:L(()=>[I(a,{modelValue:t.site.domain,"onUpdate:modelValue":i[1]||(i[1]=f=>t.site.domain=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"网站Logo"},{default:L(()=>[I(a,{modelValue:t.site.logo,"onUpdate:modelValue":i[2]||(i[2]=f=>t.site.logo=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"搜索关键字"},{default:L(()=>[I(a,{modelValue:t.site.keyword,"onUpdate:modelValue":i[3]||(i[3]=f=>t.site.keyword=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"网站描述"},{default:L(()=>[I(a,{modelValue:t.site.describe,"onUpdate:modelValue":i[4]||(i[4]=f=>t.site.describe=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"网站状态"},{default:L(()=>[I(l,{modelValue:t.site.state,"onUpdate:modelValue":i[5]||(i[5]=f=>t.site.state=f),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),I(o,{label:"维护提示"},{default:L(()=>[I(a,{modelValue:t.site.hint,"onUpdate:modelValue":i[6]||(i[6]=f=>t.site.hint=f)},null,8,["modelValue"])]),_:1}),I(o,null,{default:L(()=>[I(u,{color:"#9b49e7",onClick:n},{default:L(()=>[Re("更新")]),_:1}),I(u,{onClick:s},{default:L(()=>[Re("重置")]),_:1})]),_:1})]),_:1},8,["model"])])])}}}),Gke=Cn(Kke,[["__scopeId","data-v-3c90743b"]]),Yke={class:"container"},Xke={class:"cus_util"},Qke={class:"dialog-footer"},Jke={class:"dialog-footer"},Zke=J({__name:"CronManage",setup(e){const t=Ct({taskList:[]}),n=Ct({addV:!1,editV:!1}),s=Ct({add:{spec:"",remark:"",model:1,ids:[],time:0,state:!1},options:[],edit:{id:"",cid:"",spec:"",remark:"",model:1,ids:[],time:0,state:!1}}),r=()=>{_s("/manage/cron/add",s.add).then(g=>{g.code===0?(wt.success({message:g.msg}),a(),h()):wt.error({message:g.msg})})},i=()=>{console.log(s.edit),_s("/manage/cron/update",{id:s.edit.id,ids:s.edit.ids,time:s.edit.time,state:s.edit.state,remark:s.edit.remark}).then(g=>{g.code===0?(wt.success({message:g.msg}),a(),h()):wt.error({message:g.msg})})},a=()=>{n.addV=!1,n.editV=!1,s.add={spec:"",remark:"",model:1,ids:[],time:0,state:!1},s.edit={id:"",cid:"",spec:"",remark:"",model:1,ids:[],time:0,state:!1}},o=()=>{n.addV=!0,f()},l=g=>{mn("/manage/cron/del",{id:g}).then(m=>{m.code===0?(wt.success({message:m.msg}),h()):wt.error({message:m.msg})})},u=(g,m)=>{_s("/manage/cron/change",{id:g,state:m}).then(p=>{p.code===0?(wt.success({message:p.msg}),h()):wt.error({message:p.msg})})},c=g=>{n.editV=!0,f(),mn("/manage/cron/find",{id:g}).then(m=>{m.code===0?s.edit=m.data:wt.error({message:m.msg})})},f=()=>{mn("/manage/collect/options").then(g=>{g.code===0?s.options=g.data:wt.error({message:g.msg})})},h=()=>{mn("/manage/cron/list").then(g=>{g.code===0?t.taskList=g.data:(t.taskList=[],wt.warning({message:g.msg}))})};return gt(()=>{h()}),(g,m)=>{const p=_a,y=ph,v=fh,b=gn,S=hh,T=Vn,w=Oo,C=Kg,O=gs,P=i2,M=bo,U=mi,B=Qg,W=Do,Q=uh;return k(),z("div",Yke,[I(S,{data:t.taskList,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:L(()=>[I(y,{prop:"id",label:"任务ID"},{default:L(G=>[I(p,{"disable-transitions":""},{default:L(()=>[Re(pe(G.row.id),1)]),_:2},1024)]),_:1}),I(y,{prop:"remark",label:"任务描述"}),I(y,{prop:"model",align:"center",label:"任务类型"},{default:L(G=>[I(p,{"disable-transitions":""},{default:L(()=>[Re(pe(G.row.model==0?"自动更新":"自定义任务"),1)]),_:2},1024)]),_:1}),I(y,{prop:"state",align:"center",label:"是否启用"},{default:L(G=>[I(v,{modelValue:G.row.state,"onUpdate:modelValue":X=>G.row.state=X,onChange:X=>u(G.row.id,G.row.state),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),I(y,{prop:"preV",align:"center",label:"上次执行时间"},{default:L(G=>[I(p,{type:"success","disable-transitions":""},{default:L(()=>[Re(pe(G.row.preV),1)]),_:2},1024)]),_:1}),I(y,{prop:"next",align:"center",label:"下次执行时间"},{default:L(G=>[I(p,{type:"warning","disable-transitions":""},{default:L(()=>[Re(pe(G.row.next),1)]),_:2},1024)]),_:1}),I(y,{label:"操作",align:"center"},{default:L(G=>[I(b,{type:"primary",icon:d(Mg),plain:"",circle:"",onClick:X=>c(G.row.id)},null,8,["icon","onClick"]),I(b,{type:"danger",icon:d(Ec),plain:"",circle:"",onClick:X=>l(G.row.id)},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),R("div",Xke,[I(b,{color:"#9b49e7",icon:d(S1),onClick:o},{default:L(()=>[Re("创建定时任务")]),_:1},8,["icon"])]),I(Q,{modelValue:n.addV,"onUpdate:modelValue":m[6]||(m[6]=G=>n.addV=G),title:"创建定时任务"},{footer:L(()=>[R("span",Qke,[I(b,{color:"#9b49e7",onClick:r},{default:L(()=>[Re("添加")]),_:1}),I(b,{onClick:a},{default:L(()=>[Re("取消")]),_:1})])]),default:L(()=>[I(W,{model:s.add},{default:L(()=>[I(w,{label:"任务周期"},{default:L(()=>[I(T,{modelValue:s.add.spec,"onUpdate:modelValue":m[0]||(m[0]=G=>s.add.spec=G),placeholder:"定时任务Cron表达式 (例: [0 */20 * * * ?] 每20分钟执行一次)"},null,8,["modelValue"])]),_:1}),I(w,{label:"任务描述"},{default:L(()=>[I(T,{modelValue:s.add.remark,"onUpdate:modelValue":m[1]||(m[1]=G=>s.add.remark=G),placeholder:"定时任务描述信息"},null,8,["modelValue"])]),_:1}),I(w,{label:"任务类型"},{default:L(()=>[I(P,{fill:"#9b49e7",modelValue:s.add.model,"onUpdate:modelValue":m[2]||(m[2]=G=>s.add.model=G)},{default:L(()=>[I(O,{class:"box-item",effect:"dark",content:"执行所有已启用站点的采集任务",placement:"top"},{default:L(()=>[I(C,{label:0},{default:L(()=>[Re("自动更新")]),_:1})]),_:1}),I(O,{class:"box-item",effect:"dark",content:"只执行指定站点的采集任务",placement:"top"},{default:L(()=>[I(C,{label:1},{default:L(()=>[Re("自定义更新")]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),s.add.model==1?(k(),fe(w,{key:0,label:"资源绑定"},{default:L(()=>[I(U,{modelValue:s.add.ids,"onUpdate:modelValue":m[3]||(m[3]=G=>s.add.ids=G),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:L(()=>[(k(!0),z(Ge,null,_t(s.options,G=>(k(),fe(M,{key:G.id,label:G.name,value:G.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):ae("",!0),I(w,{label:"采集时长"},{default:L(()=>[I(O,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:L(()=>[I(B,{modelValue:s.add.time,"onUpdate:modelValue":m[4]||(m[4]=G=>s.add.time=G),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),I(w,{label:"任务状态"},{default:L(()=>[I(v,{modelValue:s.add.state,"onUpdate:modelValue":m[5]||(m[5]=G=>s.add.state=G),"inline-prompt":"","active-text":"开启","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),I(Q,{modelValue:n.editV,"onUpdate:modelValue":m[11]||(m[11]=G=>n.editV=G),title:"创建定时任务"},{footer:L(()=>[R("span",Jke,[I(b,{color:"#9b49e7",onClick:i},{default:L(()=>[Re("更新")]),_:1}),I(b,{onClick:a},{default:L(()=>[Re("取消")]),_:1})])]),default:L(()=>[I(W,{model:s.edit},{default:L(()=>[I(w,{label:"任务标识"},{default:L(()=>[I(p,{type:"success","disable-transitions":""},{default:L(()=>[Re(pe(s.edit.id),1)]),_:1})]),_:1}),I(w,{label:"任务描述"},{default:L(()=>[I(T,{modelValue:s.edit.remark,"onUpdate:modelValue":m[7]||(m[7]=G=>s.edit.remark=G),placeholder:"定时任务描述信息"},null,8,["modelValue"])]),_:1}),I(w,{label:"任务周期"},{default:L(()=>[I(p,{"disable-transitions":""},{default:L(()=>[Re(pe(s.edit.spec),1)]),_:1})]),_:1}),I(w,{label:"任务类型"},{default:L(()=>[I(p,{"disable-transitions":""},{default:L(()=>[Re(pe(s.edit.model==0?"自动更新":"自定义更新"),1)]),_:1})]),_:1}),s.edit.model==1?(k(),fe(w,{key:0,label:"资源绑定"},{default:L(()=>[I(U,{modelValue:s.edit.ids,"onUpdate:modelValue":m[8]||(m[8]=G=>s.edit.ids=G),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:L(()=>[(k(!0),z(Ge,null,_t(s.options,G=>(k(),fe(M,{key:G.id,label:G.name,value:G.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):ae("",!0),I(w,{label:"采集时长"},{default:L(()=>[I(O,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:L(()=>[I(B,{modelValue:s.edit.time,"onUpdate:modelValue":m[9]||(m[9]=G=>s.edit.time=G),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),I(w,{label:"任务状态"},{default:L(()=>[I(v,{modelValue:s.edit.state,"onUpdate:modelValue":m[10]||(m[10]=G=>s.edit.state=G),"inline-prompt":"","active-text":"开启","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),eAe=Cn(Zke,[["__scopeId","data-v-4952dbd4"]]),tAe={},nAe=R("h2",{style:{color:"#8e48b4"}},"功能开发中, 请关注后续更新",-1),sAe=[nAe];function rAe(e,t){return k(),z("div",null,sAe)}const PA=Cn(tAe,[["render",rAe]]),iAe={class:"container"},aAe={class:"cus_util"},oAe={class:"dialog-footer"},lAe=J({__name:"FilmClass",setup(e){const t=Ct({classTree:[]}),n=Ct({editV:!1,editForm:{id:-99,pid:-99,name:"",show:!0,children:[]}}),s=c=>{mn("/manage/film/class/del",{id:c}).then(f=>{f.code===0?(u(),wt.success({message:f.msg})):wt.error({message:f.msg})})},r=c=>{n.editV=!0,mn("/manage/film/class/find",{id:c}).then(f=>{f.code===0?n.editForm=f.data:wt.error({message:f.msg})})},i=()=>{let{id:c,name:f,show:h}=n.editForm;_s("/manage/film/class/update",{id:c,name:f,show:h}).then(g=>{g.code===0?(n.editV=!1,u(),wt.success({message:g.msg})):wt.error({message:g.msg})})},a=(c,f)=>{_s("/manage/film/class/update",{id:c,show:f}).then(h=>{h.code===0?(n.editV=!1,u(),wt.success({message:h.msg})):wt.error({message:h.msg})})},o=()=>{n.editForm={id:-99,pid:-99,name:"",show:!0,children:[]}},l=()=>{mn("/manage/spider/class/cover").then(c=>{c.code===0?wt.success({message:c.msg}):wt.error({message:c.msg})})},u=()=>{mn("/manage/film/class/tree").then(c=>{c.code===0?t.classTree=c.data.children:wt.error({message:c.msg})})};return gt(()=>{u()}),(c,f)=>{const h=_a,g=ph,m=fh,p=gn,y=hh,v=Vn,b=Oo,S=Do,T=uh;return k(),z("div",iAe,[I(y,{data:t.classTree,style:{width:"100%"},border:"",size:"default","table-layout":"auto","max-height":"calc(90vh - 20px)","row-key":"id","row-class-name":"cus-tr"},{default:L(()=>[I(g,{prop:"name",label:"分类名称"},{default:L(w=>[I(h,{type:w.row.pid==0?"success":"warning","disable-transitions":""},{default:L(()=>[Re(pe(w.row.name),1)]),_:2},1032,["type"])]),_:1}),I(g,{prop:"show",align:"center",label:"是否展示"},{default:L(w=>[w.row.pid==0?(k(),fe(m,{key:0,modelValue:w.row.show,"onUpdate:modelValue":C=>w.row.show=C,"inline-prompt":"","active-text":"展示","inactive-text":"隐藏",onChange:C=>a(w.row.id,w.row.show)},null,8,["modelValue","onUpdate:modelValue","onChange"])):(k(),fe(m,{key:1,modelValue:w.row.show,"onUpdate:modelValue":C=>w.row.show=C,"inline-prompt":"","active-text":"屏蔽","inactive-text":"恢复",onChange:C=>a(w.row.id,w.row.show)},null,8,["modelValue","onUpdate:modelValue","onChange"]))]),_:1}),I(g,{label:"操作",align:"center"},{default:L(w=>[I(p,{type:"primary",icon:d(Mg),onClick:C=>r(w.row.id),plain:"",circle:""},null,8,["icon","onClick"]),I(p,{type:"danger",icon:d(Ec),onClick:C=>s(w.row.id),plain:"",circle:""},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),R("div",aAe,[I(p,{color:"#9b49e7",icon:d(K3),onClick:l},{default:L(()=>[Re("重置分类信息")]),_:1},8,["icon"])]),I(T,{modelValue:n.editV,"onUpdate:modelValue":f[3]||(f[3]=w=>n.editV=w),onClose:o,width:"480px",title:"更新分类信息"},{footer:L(()=>[R("span",oAe,[I(p,{color:"#9b49e7",onClick:i},{default:L(()=>[Re("更新")]),_:1}),I(p,{onClick:f[2]||(f[2]=w=>n.editV=!1)},{default:L(()=>[Re("取消")]),_:1})])]),default:L(()=>[I(S,{model:n.editForm},{default:L(()=>[I(b,{label:"分类名称"},{default:L(()=>[I(v,{modelValue:n.editForm.name,"onUpdate:modelValue":f[0]||(f[0]=w=>n.editForm.name=w),placeholder:"分类名称,用于首页导航展示"},null,8,["modelValue"])]),_:1}),I(b,{label:"分类层级"},{default:L(()=>[I(h,{type:n.editForm.pid==0?"success":"warning","disable-transitions":""},{default:L(()=>[Re(pe(n.editForm.pid==0?"一级分类":"二级分类"),1)]),_:1},8,["type"])]),_:1}),I(b,{label:"是否展示"},{default:L(()=>[I(m,{modelValue:n.editForm.show,"onUpdate:modelValue":f[1]||(f[1]=w=>n.editForm.show=w),"inline-prompt":"","active-text":"展示","inactive-text":"隐藏"},null,8,["modelValue"])]),_:1}),n.editForm.children?(k(),fe(b,{key:0,class:"class_sub",label:"拓展分类"},{default:L(()=>[(k(!0),z(Ge,null,_t(n.editForm.children,w=>(k(),fe(h,{class:"class_sub_tag",type:"warning","disable-transitions":""},{default:L(()=>[Re(pe(w.name),1)]),_:2},1024))),256))]),_:1})):ae("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),uAe=Cn(lAe,[["__scopeId","data-v-5899af42"]]),cAe={dateFormat(e,t="YYYY-mm-dd HH:MM:SS"){let n=new Date(e*1e3);const s={"Y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"H+":n.getHours().toString(),"M+":n.getMinutes().toString(),"S+":n.getSeconds().toString()};for(let r in s){let i=new RegExp("("+r+")").exec(t);i&&(t=t.replace(i[1],i[1].length==1?s[r]:s[r].padStart(i[1].length,"0")))}return t}},dAe={class:"container"},fAe={class:"params_form"},hAe={class:"content"},pAe={style:{color:"#8b40ff"}},mAe={class:"pagination"},gAe=J({__name:"Film",setup(e){const t=Ct({list:[],page:{current:1,pageCount:0,pageSize:10,total:0},params:{name:"",pid:0,cid:0,plot:"",area:"",language:"",year:"",remarks:"",beginTime:"",endTime:""},options:{class:[{id:0,pid:-1,name:"",show:!0}],Plot:[],Area:[],Language:[],year:[],remarks:[]},dateGroup:[],classId:0});let n={};const s=l=>{for(let u=0;u<t.options.class.length;u++)if(t.options.class[u].id==l){let c=t.options.class[u];if(c.pid<=0){t.params.pid=c.id,t.params.cid=0;return}else if(c.pid==t.params.pid){t.params.pid=c.pid,t.params.cid=c.id;return}t.params.pid=c.pid,t.params.cid=c.id;let f=c.pid==0?n[c.id]:n[c.pid];f?(t.options.Plot=f.Plot,console.log(t.options.Plot),t.options.Area=f.Area,t.options.Language=f.Language):(t.options.Plot=[],t.options.Area=[],t.options.Language=[]),t.params.plot="",t.params.area="",t.params.language=""}},r=l=>(t.page.current-1)*t.page.pageSize+l+1,i=()=>{let l=t.params;t.dateGroup&&t.dateGroup.length==2?(l.beginTime=t.dateGroup[0],l.endTime=t.dateGroup[1]):(l.beginTime="",l.endTime=""),a()},a=()=>{let{current:l,pageSize:u}=t.page,c=t.params;mn("/manage/film/search/list",{...c,current:l,pageSize:u}).then(f=>{f.code===0?(t.list=f.data.list?f.data.list.map(h=>(h.year=h.year<=0?"未知":h.year,h.score=h.score==0?"暂无":h.score,h)):[],t.page=f.data.params.paging,t.options.class=f.data.options.class,t.options.remarks=f.data.options.remarks,t.options.year=f.data.options.year,n=f.data.options.tags):wt.error({message:f.msg})})};gt(()=>{a()});const o=l=>{console.log(l),mn("/manage/film/search/del",{id:l}).then(u=>{u.code===0?(wt.success({message:u.msg}),a()):wt.error({message:u.msg})})};return(l,u)=>{const c=Vn,f=Oo,h=bo,g=mi,m=lO,p=gn,y=Do,v=ph,b=_a,S=hh,T=dh;return k(),z("div",dAe,[R("div",fAe,[I(y,{model:t.params,class:"cus_form"},{default:L(()=>[I(f,null,{default:L(()=>[I(c,{modelValue:t.params.name,"onUpdate:modelValue":u[0]||(u[0]=w=>t.params.name=w),style:{display:"inline-block","text-align":"left"},placeholder:"片名搜素","suffix-icon":d(bf)},null,8,["modelValue","suffix-icon"])]),_:1}),I(f,null,{default:L(()=>[I(g,{modelValue:t.classId,"onUpdate:modelValue":u[1]||(u[1]=w=>t.classId=w),onChange:s,placeholder:"影片分类"},{default:L(()=>[(k(!0),z(Ge,null,_t(t.options.class,w=>(k(),fe(h,{key:w.id,label:w.name,value:w.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(f,null,{default:L(()=>[I(g,{modelValue:t.params.plot,"onUpdate:modelValue":u[2]||(u[2]=w=>t.params.plot=w),placeholder:"剧情筛选"},{default:L(()=>[(k(!0),z(Ge,null,_t(t.options.Plot,w=>(k(),fe(h,{key:w.Value,label:w.Name,value:w.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(f,null,{default:L(()=>[I(g,{modelValue:t.params.area,"onUpdate:modelValue":u[3]||(u[3]=w=>t.params.area=w),placeholder:"地区筛选"},{default:L(()=>[(k(!0),z(Ge,null,_t(t.options.Area,w=>(k(),fe(h,{key:w.Value,label:w.Name,value:w.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(f,null,{default:L(()=>[I(g,{modelValue:t.params.language,"onUpdate:modelValue":u[4]||(u[4]=w=>t.params.language=w),placeholder:"语言筛选"},{default:L(()=>[(k(!0),z(Ge,null,_t(t.options.Language,w=>(k(),fe(h,{key:w.Value,label:w.Name,value:w.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(f,null,{default:L(()=>[I(g,{modelValue:t.params.year,"onUpdate:modelValue":u[5]||(u[5]=w=>t.params.year=w),placeholder:"上映年份"},{default:L(()=>[(k(!0),z(Ge,null,_t(t.options.year,w=>(k(),fe(h,{key:w.Value,label:w.Name,value:w.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(f,null,{default:L(()=>[I(g,{modelValue:t.params.remarks,"onUpdate:modelValue":u[6]||(u[6]=w=>t.params.remarks=w),placeholder:"更新状态"},{default:L(()=>[(k(!0),z(Ge,null,_t(t.options.remarks,w=>(k(),fe(h,{key:w.Value,label:w.Name,value:w.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(f,null,{default:L(()=>[I(m,{modelValue:t.dateGroup,"onUpdate:modelValue":u[7]||(u[7]=w=>t.dateGroup=w),"value-format":"YYYY-MM-DD HH:mm:ss",type:"datetimerange","start-placeholder":"起始时间","end-placeholder":"终止时间"},null,8,["modelValue"])]),_:1}),I(f,null,{default:L(()=>[I(p,{type:"primary",onClick:i},{default:L(()=>[Re("查询")]),_:1})]),_:1})]),_:1},8,["model"])]),R("div",hAe,[I(S,{data:t.list,style:{width:"100%"},border:"",size:"default","table-layout":"auto","max-height":"calc(68vh - 20px)","row-key":"id","row-class-name":"cus-tr"},{default:L(()=>[I(v,{type:"index","min-width":"50px",align:"left",label:"序号"},{default:L(w=>[R("span",pAe,pe(r(w.$index)),1)]),_:1}),I(v,{prop:"mid",align:"center",label:"影片ID"},{default:L(w=>[I(b,{type:"success","disable-transitions":""},{default:L(()=>[Re(pe(w.row.mid),1)]),_:2},1024)]),_:1}),I(v,{prop:"name",align:"left",label:"影片名称","show-overflow-tooltip":"","class-name":"col_name"}),I(v,{prop:"cName",align:"center",label:"所属分类"},{default:L(w=>[I(b,{type:"warning","disable-transitions":""},{default:L(()=>[Re(pe(w.row.cName),1)]),_:2},1024)]),_:1}),I(v,{prop:"year",align:"center",label:"年份"},{default:L(w=>[I(b,{type:"warning","disable-transitions":""},{default:L(()=>[Re(pe(w.row.year),1)]),_:2},1024)]),_:1}),I(v,{sortable:"",prop:"score",align:"center",label:"评分"},{default:L(w=>[I(b,{type:"success","disable-transitions":""},{default:L(()=>[Re(pe(w.row.score),1)]),_:2},1024)]),_:1}),I(v,{sortable:"",prop:"hits",align:"center",label:"热度"},{default:L(w=>[I(b,{type:"danger","disable-transitions":""},{default:L(()=>[Re("🔥"+pe(w.row.hits),1)]),_:2},1024)]),_:1}),I(v,{prop:"remarks",align:"center",label:"更新状态"},{default:L(w=>[w.row.remarks=="已完结"?(k(),fe(b,{key:0,type:"success","disable-transitions":""},{default:L(()=>[Re(pe(w.row.remarks),1)]),_:2},1024)):(k(),fe(b,{key:1,"disable-transitions":""},{default:L(()=>[Re(pe(w.row.remarks),1)]),_:2},1024))]),_:1}),I(v,{sortable:"",prop:"updateStamp",align:"center",label:"更新时间"},{default:L(w=>[I(b,{type:"success","disable-transitions":""},{default:L(()=>[Re(pe(d(cAe).dateFormat(w.row.updateStamp)),1)]),_:2},1024)]),_:1}),I(v,{label:"操作",align:"center"},{default:L(w=>[I(p,{type:"success",icon:d(Cz),onClick:u[8]||(u[8]=()=>{}),plain:"",circle:""},null,8,["icon"]),I(p,{type:"primary",icon:d(Mg),onClick:u[9]||(u[9]=()=>{}),plain:"",circle:""},null,8,["icon"]),I(p,{type:"danger",icon:d(Ec),onClick:C=>o(w.row.ID),plain:"",circle:""},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),R("div",mAe,[I(T,{"page-sizes":[10,20,50,100,500],background:"",layout:"prev, pager, next, sizes, total, jumper",total:t.page.total,"page-size":t.page.pageSize,"onUpdate:pageSize":u[10]||(u[10]=w=>t.page.pageSize=w),"current-page":t.page.current,"onUpdate:currentPage":u[11]||(u[11]=w=>t.page.current=w),onChange:a,"hide-on-single-page":""},null,8,["total","page-size","current-page"])])])])}}}),vAe=Cn(gAe,[["__scopeId","data-v-3c6f2ef8"]]),yAe=J({__name:"ImageViewer",props:{options:{type:Object,default:{list:Array,currentLink:String,show:Boolean}},remove:{type:Function,default:null}},setup(e){const t=e,n=Ct({show:!1,list:[{link:""}],zIndex:2e3,initialIndex:0,infinite:!0,hideOnClickModal:!1});return gt(()=>{var s;n.list=t.options.list,n.list.forEach((r,i)=>{r==t.options.currentLink&&(n.initialIndex=i)}),n.show=(s=t.options)==null?void 0:s.show}),xe([n],()=>{!n.show&&t.remove()}),(s,r)=>{const i=y2;return n.show?(k(),fe(i,{key:0,urlList:n.list,"z-index":n.zIndex,"initial-index":n.initialIndex,infinite:n.infinite,hideOnClickModal:n.hideOnClickModal,onClose:r[0]||(r[0]=a=>n.show=!1)},null,8,["urlList","z-index","initial-index","infinite","hideOnClickModal"])):ae("",!0)}}}),bAe=e=>{e.show=!0;const t=document.createElement("div");document.body.appendChild(t);const n=Eg(yAe,{options:e,remove(){n.unmount(),document.body.removeChild(t)}});return n.mount(t)},_Ae={class:"container"},SAe={class:"content"},wAe={class:"el-upload-list__item-actions"},TAe=["onClick"],CAe=["onClick"],EAe={class:"pagination"},xAe=J({__name:"FileUpload",setup(e){const t=Ct({photoWall:[],page:{current:1,pageSize:39,pageNumber:0,total:0},imgList:[""]}),n=a=>{console.log(a),console.log(a.file);let o=a.file,l=new FormData;l.append("file",o),_s("/manage/file/upload",l).then(u=>{u.code===0?(wt.success({message:u.msg}),s()):wt.error({message:u.msg})})},s=()=>{mn("/manage/file/list",{current:t.page.current}).then(a=>{a.code===0?(t.photoWall=a.data.list,t.page=a.data.page):wt.error({message:a.msg})})};gt(()=>{s()});const r=a=>{mn("/manage/file/del",{id:a.ID}).then(o=>{o.code===0?(s(),wt.success({message:o.msg})):wt.error({message:o.msg})})},i=a=>{let o=t.photoWall.map(l=>l.link);bAe({list:o,currentLink:a.link})};return(a,o)=>{const l=kO,u=tt,c=H2,f=dh;return k(),z("div",_Ae,[R("div",SAe,[I(c,{"file-list":t.photoWall,"onUpdate:fileList":o[0]||(o[0]=h=>t.photoWall=h),action:"#","list-type":"picture-card","on-remove":a.handleRemove,"http-request":n},{file:L(({file:h})=>[I(l,{class:"el-upload-list__item-thumbnail",style:{width:"100%",height:"100%"},src:h.link,fit:"cover"},null,8,["src"]),R("span",wAe,[R("span",{class:"el-upload-list__item-preview",onClick:g=>i(h)},[I(u,null,{default:L(()=>[I(d(E1))]),_:1})],8,TAe),ae("",!0),R("span",{class:"el-upload-list__item-delete",onClick:g=>r(h)},[I(u,null,{default:L(()=>[I(d(Ec))]),_:1})],8,CAe)])]),default:L(()=>[I(u,null,{default:L(()=>[I(d(T1))]),_:1})]),_:1},8,["file-list","on-remove"]),R("div",EAe,[I(f,{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pageSize,"onUpdate:pageSize":o[1]||(o[1]=h=>t.page.pageSize=h),"current-page":t.page.current,"onUpdate:currentPage":o[2]||(o[2]=h=>t.page.current=h),onChange:s,"hide-on-single-page":""},null,8,["total","page-size","current-page"])])])])}}}),kAe=Cn(xAe,[["__scopeId","data-v-49adce24"]]),Bv=e=>(ur("data-v-10354ec4"),e=e(),cr(),e),AAe={class:"container"},IAe=Bv(()=>R("h2",{style:{"text-align":"start"}},"添加影片",-1)),DAe=Bv(()=>R("div",{class:"el-input-group__prepend",style:{border:"1px solid #dcdfe6","border-right":"none","border-radius":"3px",height:"32px"}},"影片分类: ",-1)),OAe=Bv(()=>R("span",{class:"el-input-group__prepend cus_label"},"剧情简介: ",-1)),PAe=Bv(()=>R("span",{class:"el-input-group__prepend cus_label"},"播放地址: ",-1)),$Ae=J({__name:"FilmAdd",setup(e){const t={id:0,cid:0,pid:0,name:"",picture:"",subTitle:"",cName:"",enName:"",initial:"",classTag:"",actor:"",director:"",writer:"",blurb:"",content:"",remarks:"",releaseDate:"",area:"",lang:"",year:"",state:"",updateTime:"",addTime:"",dbId:0,dbScore:"",hits:0,playForm:"",playLink:""},n=Ct({form:t,options:{category:[{id:0,name:"分类名称",pid:0}]}}),s=a=>{console.log(a),console.log(a.file);let o=a.file,l=new FormData;l.append("file",o),_s("/manage/file/upload",l).then(u=>{u.code===0?(wt.success({message:u.msg}),n.form.picture=u.data):wt.error({message:u.msg})})},r=a=>{n.options.category.forEach(o=>{o.id==a&&(n.form.cid=o.id,n.form.pid=o.pid,n.form.cName=o.name)})},i=()=>{let a=n.form;a.dbId=a.dbId-0,a.hits=a.hits-0,_s("/manage/film/add",{...n.form}).then(o=>{o.code===0?(wt.success({message:o.msg}),n.form=t):wt.error({message:o.msg})})};return gt(()=>{mn("/manage/film/class/tree").then(a=>{if(a.code===0){let o=[{id:0,name:"分类名称",pid:0}];o.pop(),a.data.children.forEach(l=>{l.children&&l.children.length>0&&(o=[...o,...l.children])}),n.options.category=o}else wt.error({message:a.msg})})}),(a,o)=>{const l=bo,u=mi,c=Oo,f=Vn,h=gn,g=H2,m=Do;return k(),z("div",AAe,[IAe,I(m,{model:n.form,class:"film_add_form"},{default:L(()=>[I(c,null,{default:L(()=>[DAe,I(u,{modelValue:n.currentClass,"onUpdate:modelValue":o[0]||(o[0]=p=>n.currentClass=p),style:{width:"calc(100% - 103px)"},onChange:r,placeholder:"影片分类选择"},{default:L(()=>[(k(!0),z(Ge,null,_t(n.options.category,p=>(k(),fe(l,{key:p.id,label:p.name,value:p.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.name,"onUpdate:modelValue":o[1]||(o[1]=p=>n.form.name=p),placeholder:"请输入影片名称",clearable:""},{prepend:L(()=>[Re("影片名称: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.subTitle,"onUpdate:modelValue":o[2]||(o[2]=p=>n.form.subTitle=p),placeholder:"影片别名, 可留空",clearable:""},{prepend:L(()=>[Re("影片别名: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.initial,"onUpdate:modelValue":o[3]||(o[3]=p=>n.form.initial=p),placeholder:"影片检索首字母, 大写",clearable:""},{prepend:L(()=>[Re("首字母: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.classTag,"onUpdate:modelValue":o[4]||(o[4]=p=>n.form.classTag=p),placeholder:"影片剧情标签(多标签以逗号分隔): 奇幻,校园,爱情",clearable:""},{prepend:L(()=>[Re("剧情Tag: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.director,"onUpdate:modelValue":o[5]||(o[5]=p=>n.form.director=p),placeholder:"导演名, 多个名称以逗号进行分隔",clearable:""},{prepend:L(()=>[Re("导演: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.actor,"onUpdate:modelValue":o[6]||(o[6]=p=>n.form.actor=p),placeholder:"主演名, 多个名称以逗号进行分隔",clearable:""},{prepend:L(()=>[Re("主演: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.writer,"onUpdate:modelValue":o[7]||(o[7]=p=>n.form.writer=p),placeholder:"作者名, 多个名称以逗号进行分隔",clearable:""},{prepend:L(()=>[Re("作者: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.remarks,"onUpdate:modelValue":o[8]||(o[8]=p=>n.form.remarks=p),placeholder:"影片更新进度信息, 完结, HD, 更新至xx集",clearable:""},{prepend:L(()=>[Re("更新状态: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.releaseDate,"onUpdate:modelValue":o[9]||(o[9]=p=>n.form.releaseDate=p),placeholder:"影片上映时间: YYYY-MM-DD",clearable:""},{prepend:L(()=>[Re("上映时间: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.area,"onUpdate:modelValue":o[10]||(o[10]=p=>n.form.area=p),placeholder:"影片来源地区信息",clearable:""},{prepend:L(()=>[Re("地区: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.lang,"onUpdate:modelValue":o[11]||(o[11]=p=>n.form.lang=p),placeholder:"影片语言信息",clearable:""},{prepend:L(()=>[Re("语言: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.year,"onUpdate:modelValue":o[12]||(o[12]=p=>n.form.year=p),placeholder:"影片上映年份信息: YYYY",clearable:""},{prepend:L(()=>[Re("年份: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.state,"onUpdate:modelValue":o[13]||(o[13]=p=>n.form.state=p),placeholder:" 影片状态: 正片 | 预告片",clearable:""},{prepend:L(()=>[Re("影片状态: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.dbId,"onUpdate:modelValue":o[14]||(o[14]=p=>n.form.dbId=p),placeholder:"豆瓣ID",clearable:""},{prepend:L(()=>[Re("豆瓣Id: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.dbScore,"onUpdate:modelValue":o[15]||(o[15]=p=>n.form.dbScore=p),placeholder:"豆瓣评分",clearable:""},{prepend:L(()=>[Re("豆瓣评分: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.hits,"onUpdate:modelValue":o[16]||(o[16]=p=>n.form.hits=p),placeholder:"影片热度(播放数)",clearable:""},{prepend:L(()=>[Re("影片热度: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.picture,"onUpdate:modelValue":o[17]||(o[17]=p=>n.form.picture=p),placeholder:"输入图片URL链接或点击上传到服务器并自动生成URL连接信息)",clearable:""},{prepend:L(()=>[Re("影片海报: ")]),append:L(()=>[I(g,{class:"upload-demo","show-file-list":!1,action:"#","http-request":s},{default:L(()=>[I(h,{type:"primary"},{default:L(()=>[Re("上传图片")]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:L(()=>[I(f,{modelValue:n.form.playForm,"onUpdate:modelValue":o[18]||(o[18]=p=>n.form.playForm=p),placeholder:"影片播放资源来源: xxXm3u8",clearable:""},{prepend:L(()=>[Re("播放来源: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{label:L(()=>[OAe]),default:L(()=>[I(f,{modelValue:n.form.content,"onUpdate:modelValue":o[19]||(o[19]=p=>n.form.content=p),autosize:{minRows:2,maxRows:5},type:"textarea",placeholder:"影片剧情描述信息"},null,8,["modelValue"])]),_:1}),I(c,{label:"播放地址:"},{label:L(()=>[PAe]),default:L(()=>[I(f,{modelValue:n.form.playLink,"onUpdate:modelValue":o[20]||(o[20]=p=>n.form.playLink=p),autosize:{minRows:2,maxRows:5},type:"textarea",placeholder:`影片播放地址信息:
格式: 第01集$https://xxx/xxx/index.m3u8#第02集$https://xxx/xxx/index.m3u8`},null,8,["modelValue"])]),_:1}),I(c,{class:"form_btn"},{default:L(()=>[I(h,{type:"primary",onClick:i},{default:L(()=>[Re("添加影片")]),_:1}),I(h,null,{default:L(()=>[Re("清空信息")]),_:1})]),_:1})]),_:1},8,["model"])])}}}),RAe=Cn($Ae,[["__scopeId","data-v-10354ec4"]]),NAe={class:"container"},MAe={class:"player_header"},LAe={class:"player_link"},BAe={class:"player_area"},FAe=J({__name:"CustomPlay",setup(e){const t=Ct({link:"",options:{title:"",src:"",volume:.6,currentTime:50}}),n=o=>{switch(o.preventDefault(),o.keyCode){case 32:o.target.paused?o.target.play():o.target.pause();break;case 37:o.target.currentTime=o.target.currentTime-5<0?0:o.target.currentTime-5;break;case 39:o.target.currentTime=o.target.currentTime+5>o.target.duration?o.target.duration:o.target.currentTime+5;break;case 38:t.options.volume=t.options.volume+.05>1?1:t.options.volume+.05;break;case 40:t.options.volume=t.options.volume-.05<0?0:t.options.volume-.05;break}},s=o=>{let l=document.getElementsByTagName("video")[0];l.focus();const u=document.createEvent("HTMLEvents");u.initEvent("keydown",!0,!1),u.keyCode=o,l.dispatchEvent(u)},r=o=>{let l=document.getElementsByClassName("vjs-button");for(let u of l)u.addEventListener("keydown",function(c){c.preventDefault(),s(c.keyCode)})},i=o=>{r()},a=()=>{if(!/(^http[s]?:\/\/[^\s]+\.m3u8$)|(^http[s]?:\/\/[^\s]+\.mp4$)/.test(t.link)){wt.error({message:"视频链接格式异常, 请输入正确的播放链接!!!"});return}t.options.src=t.link,document.getElementsByTagName("video")[0].play()};return(o,l)=>(k(),z("div",NAe,[R("div",MAe,[R("div",LAe,[yt(R("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=u=>t.link=u),onKeyup:Zt(a,["enter"]),placeholder:"请输入视频播放地址, mp4 或 m3u8 格式",class:"cus-input"},null,544),[[va,t.link]]),R("button",{class:"iconfont icon-play",onClick:a})])]),R("div",BAe,[I(d(pM),{onMounted:i,src:t.options.src,poster:d(z8),controls:"",loop:!1,onKeydown:n,bufferedPercent:30,volume:t.options.volume,crossorigin:"anonymous",playsinline:"",class:"video-player","playback-rates":[.5,1,1.5,2]},null,8,["src","poster","volume"])])]))}}),VAe=Cn(FAe,[["__scopeId","data-v-ec46972d"]]),UAe=[{path:"/",component:Pye,redirect:"/index",children:[{path:"index",component:rbe},{path:"filmDetail",component:Ybe},{path:"play",component:UEe},{path:"search",component:rxe},{path:"filmClassify",component:Yxe},{path:"filmClassifySearch",component:xxe},{path:"/custom/player",component:VAe}]},{path:"/login",component:fke},{path:"/manage",component:Nke,redirect:"/manage/index",children:[{path:"index",component:tke},{path:"collect/index",component:Hke},{path:"system/webSite",component:Gke},{path:"cron/index",component:eAe},{path:"file/upload",component:kAe},{path:"file/gallery",component:PA},{path:"film",component:vAe},{path:"film/class",component:uAe},{path:"film/add",component:RAe},{path:"film/detail",component:PA}]},{path:"/:pathMatch(.*)*",component:fxe}],iw=vve({history:qge(),routes:UAe});iw.beforeEach((e,t,n)=>{let s=new RegExp(/^\/manage\//).test(e.path),r=V8();s&&!r?n("/login"):n()});const aw=Eg(pge);aw.use(oge);aw.use(iw);aw.mount("#app")});export default HAe();