diff --git a/dist/assets/index-CqL-qAH-.js b/dist/assets/index-BBbFzWas.js similarity index 63% rename from dist/assets/index-CqL-qAH-.js rename to dist/assets/index-BBbFzWas.js index 2ff6ffe..f4fc401 100644 --- a/dist/assets/index-CqL-qAH-.js +++ b/dist/assets/index-BBbFzWas.js @@ -2,25 +2,25 @@ * @vue/shared v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function qr(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const le={},zt=[],Ne=()=>{},aa=()=>!1,vs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kr=e=>e.startsWith("onUpdate:"),be=Object.assign,zr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ua=Object.prototype.hasOwnProperty,X=(e,t)=>ua.call(e,t),H=Array.isArray,Wt=e=>In(e)==="[object Map]",Ss=e=>In(e)==="[object Set]",To=e=>In(e)==="[object Date]",G=e=>typeof e=="function",fe=e=>typeof e=="string",Ze=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",rl=e=>(oe(e)||G(e))&&G(e.then)&&G(e.catch),ol=Object.prototype.toString,In=e=>ol.call(e),fa=e=>In(e).slice(8,-1),il=e=>In(e)==="[object Object]",Wr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pn=qr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},da=/-(\w)/g,He=xs(e=>e.replace(da,(t,n)=>n?n.toUpperCase():"")),ha=/\B([A-Z])/g,vt=xs(e=>e.replace(ha,"-$1").toLowerCase()),Es=xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qs=xs(e=>e?`on${Es(e)}`:""),wt=(e,t)=>!Object.is(e,t),Jn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},as=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ao;const cl=()=>Ao||(Ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rs(e){if(H(e)){const t={};for(let n=0;n{if(n){const s=n.split(ma);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Os(e){let t="";if(fe(e))t=e;else if(H(e))for(let n=0;nCs(n,t))}const ul=e=>!!(e&&e.__v_isRef===!0),xe=e=>fe(e)?e:e==null?"":H(e)||oe(e)&&(e.toString===ol||!G(e.toString))?ul(e)?xe(e.value):JSON.stringify(e,fl,2):String(e),fl=(e,t)=>ul(t)?fl(e,t.value):Wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Xs(s,o)+" =>"]=r,n),{})}:Ss(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Xs(n))}:Ze(t)?Xs(t):oe(t)&&!H(t)&&!il(t)?String(t):t,Xs=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function qr(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const le={},zt=[],Ne=()=>{},ua=()=>!1,vs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kr=e=>e.startsWith("onUpdate:"),be=Object.assign,zr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fa=Object.prototype.hasOwnProperty,X=(e,t)=>fa.call(e,t),H=Array.isArray,Wt=e=>In(e)==="[object Map]",Ss=e=>In(e)==="[object Set]",To=e=>In(e)==="[object Date]",G=e=>typeof e=="function",fe=e=>typeof e=="string",Ze=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",ol=e=>(oe(e)||G(e))&&G(e.then)&&G(e.catch),il=Object.prototype.toString,In=e=>il.call(e),da=e=>In(e).slice(8,-1),ll=e=>In(e)==="[object Object]",Wr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pn=qr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ha=/-(\w)/g,He=xs(e=>e.replace(ha,(t,n)=>n?n.toUpperCase():"")),pa=/\B([A-Z])/g,vt=xs(e=>e.replace(pa,"-$1").toLowerCase()),Es=xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qs=xs(e=>e?`on${Es(e)}`:""),wt=(e,t)=>!Object.is(e,t),Jn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},as=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ao;const al=()=>Ao||(Ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rs(e){if(H(e)){const t={};for(let n=0;n{if(n){const s=n.split(ga);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Os(e){let t="";if(fe(e))t=e;else if(H(e))for(let n=0;nCs(n,t))}const fl=e=>!!(e&&e.__v_isRef===!0),xe=e=>fe(e)?e:e==null?"":H(e)||oe(e)&&(e.toString===il||!G(e.toString))?fl(e)?xe(e.value):JSON.stringify(e,dl,2):String(e),dl=(e,t)=>fl(t)?dl(e,t.value):Wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Xs(s,o)+" =>"]=r,n),{})}:Ss(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Xs(n))}:Ze(t)?Xs(t):oe(t)&&!H(t)&&!ll(t)?String(t):t,Xs=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Fe;class Sa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),xt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=It;try{return yt=!0,It=this,this._runnings++,Po(this),this.fn()}finally{ko(this),this._runnings--,It=n,yt=t}}stop(){this.active&&(Po(this),ko(this),this.onStop&&this.onStop(),this.active=!1)}}function Ra(e){return e.value}function Po(e){e._trackId++,e._depsLength=0}function ko(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},gr=new WeakMap,Lt=Symbol(""),yr=Symbol("");function Oe(e,t,n){if(yt&&It){let s=gr.get(e);s||gr.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=gl(()=>s.delete(n))),pl(It,r)}}function rt(e,t,n,s,r,o){const i=gr.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&H(e)){const c=Number(s);i.forEach((u,a)=>{(a==="length"||!Ze(a)&&a>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":H(e)?Wr(n)&&l.push(i.get("length")):(l.push(i.get(Lt)),Wt(e)&&l.push(i.get(yr)));break;case"delete":H(e)||(l.push(i.get(Lt)),Wt(e)&&l.push(i.get(yr)));break;case"set":Wt(e)&&l.push(i.get(Lt));break}Jr();for(const c of l)c&&ml(c,4);Qr()}const Oa=qr("__proto__,__v_isRef,__isVue"),yl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze)),Io=Ca();function Ca(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ee(this);for(let o=0,i=this.length;o{e[t]=function(...n){St(),Jr();const s=ee(this)[t].apply(this,n);return Qr(),xt(),s}}),e}function Ta(e){Ze(e)||(e=String(e));const t=ee(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class _l{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Ba:Sl:o?vl:wl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=H(t);if(!r){if(i&&X(Io,n))return Reflect.get(Io,n,s);if(n==="hasOwnProperty")return Ta}const l=Reflect.get(t,n,s);return(Ze(n)?yl.has(n):Oa(n))||(r||Oe(t,"get",n),o)?l:Ce(l)?i&&Wr(n)?l:l.value:oe(l)?r?El(l):As(l):l}}class bl extends _l{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=$t(o);if(!Xt(s)&&!$t(s)&&(o=ee(o),s=ee(s)),!H(t)&&Ce(o)&&!Ce(s))return c?!1:(o.value=s,!0)}const i=H(t)&&Wr(n)?Number(n)e,Ts=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,s=!1){e=e.__v_raw;const r=ee(e),o=ee(t);n||(wt(t,o)&&Oe(r,"get",t),Oe(r,"get",o));const{has:i}=Ts(r),l=s?Xr:n?eo:xn;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function Un(e,t=!1){const n=this.__v_raw,s=ee(n),r=ee(e);return t||(wt(e,r)&&Oe(s,"has",e),Oe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Bn(e,t=!1){return e=e.__v_raw,!t&&Oe(ee(e),"iterate",Lt),Reflect.get(e,"size",e)}function Lo(e,t=!1){!t&&!Xt(e)&&!$t(e)&&(e=ee(e));const n=ee(this);return Ts(n).has.call(n,e)||(n.add(e),rt(n,"add",e,e)),this}function No(e,t,n=!1){!n&&!Xt(t)&&!$t(t)&&(t=ee(t));const s=ee(this),{has:r,get:o}=Ts(s);let i=r.call(s,e);i||(e=ee(e),i=r.call(s,e));const l=o.call(s,e);return s.set(e,t),i?wt(t,l)&&rt(s,"set",e,t):rt(s,"add",e,t),this}function Mo(e){const t=ee(this),{has:n,get:s}=Ts(t);let r=n.call(t,e);r||(e=ee(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&rt(t,"delete",e,void 0),o}function $o(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&rt(e,"clear",void 0,void 0),n}function Hn(e,t){return function(s,r){const o=this,i=o.__v_raw,l=ee(i),c=t?Xr:e?eo:xn;return!e&&Oe(l,"iterate",Lt),i.forEach((u,a)=>s.call(r,c(u),c(a),o))}}function Vn(e,t,n){return function(...s){const r=this.__v_raw,o=ee(r),i=Wt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),a=n?Xr:t?eo:xn;return!t&&Oe(o,"iterate",c?yr:Lt),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:l?[a(d[0]),a(d[1])]:a(d),done:p}},[Symbol.iterator](){return this}}}}function at(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function La(){const e={get(o){return jn(this,o)},get size(){return Bn(this)},has:Un,add:Lo,set:No,delete:Mo,clear:$o,forEach:Hn(!1,!1)},t={get(o){return jn(this,o,!1,!0)},get size(){return Bn(this)},has:Un,add(o){return Lo.call(this,o,!0)},set(o,i){return No.call(this,o,i,!0)},delete:Mo,clear:$o,forEach:Hn(!1,!0)},n={get(o){return jn(this,o,!0)},get size(){return Bn(this,!0)},has(o){return Un.call(this,o,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:Hn(!0,!1)},s={get(o){return jn(this,o,!0,!0)},get size(){return Bn(this,!0)},has(o){return Un.call(this,o,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Vn(o,!1,!1),n[o]=Vn(o,!0,!1),t[o]=Vn(o,!1,!0),s[o]=Vn(o,!0,!0)}),[e,n,t,s]}const[Na,Ma,$a,Fa]=La();function Yr(e,t){const n=t?e?Fa:$a:e?Ma:Na;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(X(n,r)&&r in s?n:s,r,o)}const Da={get:Yr(!1,!1)},ja={get:Yr(!1,!0)},Ua={get:Yr(!0,!1)};const wl=new WeakMap,vl=new WeakMap,Sl=new WeakMap,Ba=new WeakMap;function Ha(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Va(e){return e.__v_skip||!Object.isExtensible(e)?0:Ha(fa(e))}function As(e){return $t(e)?e:Zr(e,!1,Pa,Da,wl)}function xl(e){return Zr(e,!1,Ia,ja,vl)}function El(e){return Zr(e,!0,ka,Ua,Sl)}function Zr(e,t,n,s,r){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=Va(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function mn(e){return $t(e)?mn(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function Xt(e){return!!(e&&e.__v_isShallow)}function Rl(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function qa(e){return Object.isExtensible(e)&&ll(e,"__v_skip",!0),e}const xn=e=>oe(e)?As(e):e,eo=e=>oe(e)?El(e):e;class Ol{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 Gr(()=>t(this._value),()=>Qn(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=ee(this);return(!t._cacheable||t.effect.dirty)&&wt(t._value,t._value=t.effect.run())&&Qn(t,4),Cl(t),t.effect._dirtyLevel>=2&&Qn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Ka(e,t,n=!1){let s,r;const o=G(e);return o?(s=e,r=Ne):(s=e.get,r=e.set),new Ol(s,r,o||!r,n)}function Cl(e){var t;yt&&It&&(e=ee(e),pl(It,(t=e.dep)!=null?t:e.dep=gl(()=>e.dep=void 0,e instanceof Ol?e:void 0)))}function Qn(e,t=4,n,s){e=ee(e);const r=e.dep;r&&ml(r,t)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function Te(e){return Tl(e,!1)}function za(e){return Tl(e,!0)}function Tl(e,t){return Ce(e)?e:new Wa(e,t)}class Wa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:xn(t)}get value(){return Cl(this),this._value}set value(t){const n=this.__v_isShallow||Xt(t)||$t(t);t=n?t:ee(t),wt(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:xn(t),Qn(this,4))}}function $(e){return Ce(e)?e.value:e}const Ga={get:(e,t,n)=>$(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Al(e){return mn(e)?e:new Proxy(e,Ga)}/** +**/let Fe;class xa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),xt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=It;try{return yt=!0,It=this,this._runnings++,Po(this),this.fn()}finally{ko(this),this._runnings--,It=n,yt=t}}stop(){this.active&&(Po(this),ko(this),this.onStop&&this.onStop(),this.active=!1)}}function Oa(e){return e.value}function Po(e){e._trackId++,e._depsLength=0}function ko(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},gr=new WeakMap,Lt=Symbol(""),yr=Symbol("");function Oe(e,t,n){if(yt&&It){let s=gr.get(e);s||gr.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=yl(()=>s.delete(n))),ml(It,r)}}function rt(e,t,n,s,r,o){const i=gr.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&H(e)){const c=Number(s);i.forEach((u,a)=>{(a==="length"||!Ze(a)&&a>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":H(e)?Wr(n)&&l.push(i.get("length")):(l.push(i.get(Lt)),Wt(e)&&l.push(i.get(yr)));break;case"delete":H(e)||(l.push(i.get(Lt)),Wt(e)&&l.push(i.get(yr)));break;case"set":Wt(e)&&l.push(i.get(Lt));break}Jr();for(const c of l)c&&gl(c,4);Qr()}const Ca=qr("__proto__,__v_isRef,__isVue"),_l=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze)),Io=Ta();function Ta(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ee(this);for(let o=0,i=this.length;o{e[t]=function(...n){St(),Jr();const s=ee(this)[t].apply(this,n);return Qr(),xt(),s}}),e}function Aa(e){Ze(e)||(e=String(e));const t=ee(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class bl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Ha:xl:o?Sl:vl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=H(t);if(!r){if(i&&X(Io,n))return Reflect.get(Io,n,s);if(n==="hasOwnProperty")return Aa}const l=Reflect.get(t,n,s);return(Ze(n)?_l.has(n):Ca(n))||(r||Oe(t,"get",n),o)?l:Ce(l)?i&&Wr(n)?l:l.value:oe(l)?r?Rl(l):As(l):l}}class wl extends bl{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=$t(o);if(!Xt(s)&&!$t(s)&&(o=ee(o),s=ee(s)),!H(t)&&Ce(o)&&!Ce(s))return c?!1:(o.value=s,!0)}const i=H(t)&&Wr(n)?Number(n)e,Ts=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,s=!1){e=e.__v_raw;const r=ee(e),o=ee(t);n||(wt(t,o)&&Oe(r,"get",t),Oe(r,"get",o));const{has:i}=Ts(r),l=s?Xr:n?eo:xn;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function Un(e,t=!1){const n=this.__v_raw,s=ee(n),r=ee(e);return t||(wt(e,r)&&Oe(s,"has",e),Oe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Bn(e,t=!1){return e=e.__v_raw,!t&&Oe(ee(e),"iterate",Lt),Reflect.get(e,"size",e)}function Lo(e,t=!1){!t&&!Xt(e)&&!$t(e)&&(e=ee(e));const n=ee(this);return Ts(n).has.call(n,e)||(n.add(e),rt(n,"add",e,e)),this}function No(e,t,n=!1){!n&&!Xt(t)&&!$t(t)&&(t=ee(t));const s=ee(this),{has:r,get:o}=Ts(s);let i=r.call(s,e);i||(e=ee(e),i=r.call(s,e));const l=o.call(s,e);return s.set(e,t),i?wt(t,l)&&rt(s,"set",e,t):rt(s,"add",e,t),this}function Mo(e){const t=ee(this),{has:n,get:s}=Ts(t);let r=n.call(t,e);r||(e=ee(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&rt(t,"delete",e,void 0),o}function $o(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&rt(e,"clear",void 0,void 0),n}function Hn(e,t){return function(s,r){const o=this,i=o.__v_raw,l=ee(i),c=t?Xr:e?eo:xn;return!e&&Oe(l,"iterate",Lt),i.forEach((u,a)=>s.call(r,c(u),c(a),o))}}function Vn(e,t,n){return function(...s){const r=this.__v_raw,o=ee(r),i=Wt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),a=n?Xr:t?eo:xn;return!t&&Oe(o,"iterate",c?yr:Lt),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:l?[a(d[0]),a(d[1])]:a(d),done:p}},[Symbol.iterator](){return this}}}}function at(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Na(){const e={get(o){return jn(this,o)},get size(){return Bn(this)},has:Un,add:Lo,set:No,delete:Mo,clear:$o,forEach:Hn(!1,!1)},t={get(o){return jn(this,o,!1,!0)},get size(){return Bn(this)},has:Un,add(o){return Lo.call(this,o,!0)},set(o,i){return No.call(this,o,i,!0)},delete:Mo,clear:$o,forEach:Hn(!1,!0)},n={get(o){return jn(this,o,!0)},get size(){return Bn(this,!0)},has(o){return Un.call(this,o,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:Hn(!0,!1)},s={get(o){return jn(this,o,!0,!0)},get size(){return Bn(this,!0)},has(o){return Un.call(this,o,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Vn(o,!1,!1),n[o]=Vn(o,!0,!1),t[o]=Vn(o,!1,!0),s[o]=Vn(o,!0,!0)}),[e,n,t,s]}const[Ma,$a,Fa,Da]=Na();function Yr(e,t){const n=t?e?Da:Fa:e?$a:Ma;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(X(n,r)&&r in s?n:s,r,o)}const ja={get:Yr(!1,!1)},Ua={get:Yr(!1,!0)},Ba={get:Yr(!0,!1)};const vl=new WeakMap,Sl=new WeakMap,xl=new WeakMap,Ha=new WeakMap;function Va(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qa(e){return e.__v_skip||!Object.isExtensible(e)?0:Va(da(e))}function As(e){return $t(e)?e:Zr(e,!1,ka,ja,vl)}function El(e){return Zr(e,!1,La,Ua,Sl)}function Rl(e){return Zr(e,!0,Ia,Ba,xl)}function Zr(e,t,n,s,r){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=qa(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function mn(e){return $t(e)?mn(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function Xt(e){return!!(e&&e.__v_isShallow)}function Ol(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function Ka(e){return Object.isExtensible(e)&&cl(e,"__v_skip",!0),e}const xn=e=>oe(e)?As(e):e,eo=e=>oe(e)?Rl(e):e;class Cl{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 Gr(()=>t(this._value),()=>Qn(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=ee(this);return(!t._cacheable||t.effect.dirty)&&wt(t._value,t._value=t.effect.run())&&Qn(t,4),Tl(t),t.effect._dirtyLevel>=2&&Qn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function za(e,t,n=!1){let s,r;const o=G(e);return o?(s=e,r=Ne):(s=e.get,r=e.set),new Cl(s,r,o||!r,n)}function Tl(e){var t;yt&&It&&(e=ee(e),ml(It,(t=e.dep)!=null?t:e.dep=yl(()=>e.dep=void 0,e instanceof Cl?e:void 0)))}function Qn(e,t=4,n,s){e=ee(e);const r=e.dep;r&&gl(r,t)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function Te(e){return Al(e,!1)}function Wa(e){return Al(e,!0)}function Al(e,t){return Ce(e)?e:new Ga(e,t)}class Ga{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:xn(t)}get value(){return Tl(this),this._value}set value(t){const n=this.__v_isShallow||Xt(t)||$t(t);t=n?t:ee(t),wt(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:xn(t),Qn(this,4))}}function $(e){return Ce(e)?e.value:e}const Ja={get:(e,t,n)=>$(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Pl(e){return mn(e)?e:new Proxy(e,Ja)}/** * @vue/runtime-core v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function _t(e,t,n,s){try{return s?e(...s):e()}catch(r){Ps(r,t,n)}}function Ue(e,t,n,s){if(G(e)){const r=_t(e,t,n,s);return r&&rl(r)&&r.catch(o=>{Ps(o,t,n)}),r}if(H(e)){const r=[];for(let o=0;o>>1,r=ye[s],o=Rn(r);oXe&&ye.splice(t,1)}function Ya(e){H(e)?Gt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?Pt+1:Pt))&&Gt.push(e),kl()}function Fo(e,t,n=En?Xe+1:0){for(;nRn(n)-Rn(s));if(Gt.length=0,ht){ht.push(...t);return}for(ht=t,Pt=0;Pte.id==null?1/0:e.id,Za=(e,t)=>{const n=Rn(e)-Rn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ll(e){_r=!1,En=!0,ye.sort(Za);try{for(Xe=0;Xe{s._d&&Jo(-1);const o=us(t);let i;try{i=e(...r)}finally{us(o),s._d&&Jo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Xn(e,t){if(Pe===null)return e;const n=Fs(Pe),s=e.dirs||(e.dirs=[]);for(let r=0;r!!e.type.__asyncLoader,Fl=e=>e.type.__isKeepAlive;function tu(e,t){Dl(e,"a",t)}function nu(e,t){Dl(e,"da",t)}function Dl(e,t,n=_e){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Is(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Fl(r.parent.vnode)&&su(s,t,n,r),r=r.parent}}function su(e,t,n,s){const r=Is(t,e,s,!0);Bl(()=>{zr(s[t],r)},n)}function Is(e,t,n=_e,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{St();const l=Ln(n),c=Ue(t,n,e,i);return l(),xt(),c});return s?r.unshift(o):r.push(o),o}}const it=e=>(t,n=_e)=>{(!$s||e==="sp")&&Is(e,(...s)=>t(...s),n)},jl=it("bm"),Ls=it("m"),ru=it("bu"),ou=it("u"),Ul=it("bum"),Bl=it("um"),iu=it("sp"),lu=it("rtg"),cu=it("rtc");function au(e,t=_e){Is("ec",e,t)}const Hl="components";function fs(e,t){return fu(Hl,e,!0,t)||e}const uu=Symbol.for("v-ndc");function fu(e,t,n=!0,s=!1){const r=Pe||_e;if(r){const o=r.type;if(e===Hl){const l=tf(o,!1);if(l&&(l===t||l===He(t)||l===Es(He(t))))return o}const i=Do(r[e]||o[e],t)||Do(r.appContext[e],t);return!i&&s?o:i}}function Do(e,t){return e&&(e[t]||e[He(t)]||e[Es(He(t))])}function Nt(e,t,n,s){let r;const o=n;if(H(e)||fe(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,c=i.length;le?lc(e)?Fs(e):br(e.parent):null,gn=be(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=>br(e.parent),$root:e=>br(e.root),$emit:e=>e.emit,$options:e=>ro(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,so(e.update)}),$nextTick:e=>e.n||(e.n=no.bind(e.proxy)),$watch:e=>Nu.bind(e)}),Ys=(e,t)=>e!==le&&!e.__isScriptSetup&&X(e,t),du={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Ys(s,t))return i[t]=1,s[t];if(r!==le&&X(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&X(u,t))return i[t]=3,o[t];if(n!==le&&X(n,t))return i[t]=4,n[t];wr&&(i[t]=0)}}const a=gn[t];let d,p;if(a)return t==="$attrs"&&Oe(e.attrs,"get",""),a(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==le&&X(n,t))return i[t]=4,n[t];if(p=c.config.globalProperties,X(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Ys(r,t)?(r[t]=n,!0):s!==le&&X(s,t)?(s[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==le&&X(e,i)||Ys(t,i)||(l=o[0])&&X(l,i)||X(s,i)||X(gn,i)||X(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function jo(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let wr=!0;function hu(e){const t=ro(e),n=e.proxy,s=e.ctx;wr=!1,t.beforeCreate&&Uo(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:u,created:a,beforeMount:d,mounted:p,beforeUpdate:m,updated:b,activated:_,deactivated:E,beforeDestroy:F,beforeUnmount:L,destroyed:C,unmounted:B,render:re,renderTracked:P,renderTriggered:z,errorCaptured:ae,serverPrefetch:Ie,expose:de,inheritAttrs:lt,components:Rt,directives:Ke,filters:on}=t;if(u&&pu(u,s,null),i)for(const se in i){const Y=i[se];G(Y)&&(s[se]=Y.bind(n))}if(r){const se=r.call(n,n);oe(se)&&(e.data=As(se))}if(wr=!0,o)for(const se in o){const Y=o[se],et=G(Y)?Y.bind(n,n):G(Y.get)?Y.get.bind(n,n):Ne,ct=!G(Y)&&G(Y.set)?Y.set.bind(n):Ne,ze=De({get:et,set:ct});Object.defineProperty(s,se,{enumerable:!0,configurable:!0,get:()=>ze.value,set:ve=>ze.value=ve})}if(l)for(const se in l)Vl(l[se],s,n,se);if(c){const se=G(c)?c.call(n):c;Reflect.ownKeys(se).forEach(Y=>{Zn(Y,se[Y])})}a&&Uo(a,e,"c");function he(se,Y){H(Y)?Y.forEach(et=>se(et.bind(n))):Y&&se(Y.bind(n))}if(he(jl,d),he(Ls,p),he(ru,m),he(ou,b),he(tu,_),he(nu,E),he(au,ae),he(cu,P),he(lu,z),he(Ul,L),he(Bl,B),he(iu,Ie),H(de))if(de.length){const se=e.exposed||(e.exposed={});de.forEach(Y=>{Object.defineProperty(se,Y,{get:()=>n[Y],set:et=>n[Y]=et})})}else e.exposed||(e.exposed={});re&&e.render===Ne&&(e.render=re),lt!=null&&(e.inheritAttrs=lt),Rt&&(e.components=Rt),Ke&&(e.directives=Ke)}function pu(e,t,n=Ne){H(e)&&(e=vr(e));for(const s in e){const r=e[s];let o;oe(r)?"default"in r?o=Ye(r.from||s,r.default,!0):o=Ye(r.from||s):o=Ye(r),Ce(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Uo(e,t,n){Ue(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vl(e,t,n,s){const r=s.includes(".")?sc(n,s):()=>n[s];if(fe(e)){const o=t[e];G(o)&&_n(r,o)}else if(G(e))_n(r,e.bind(n));else if(oe(e))if(H(e))e.forEach(o=>Vl(o,t,n,s));else{const o=G(e.handler)?e.handler.bind(n):t[e.handler];G(o)&&_n(r,o,e)}}function ro(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>ds(c,u,i,!0)),ds(c,t,i)),oe(t)&&o.set(t,c),c}function ds(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&ds(e,o,n,!0),r&&r.forEach(i=>ds(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=mu[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const mu={data:Bo,props:Ho,emits:Ho,methods:hn,computed:hn,beforeCreate:we,created:we,beforeMount:we,mounted:we,beforeUpdate:we,updated:we,beforeDestroy:we,beforeUnmount:we,destroyed:we,unmounted:we,activated:we,deactivated:we,errorCaptured:we,serverPrefetch:we,components:hn,directives:hn,watch:yu,provide:Bo,inject:gu};function Bo(e,t){return t?e?function(){return be(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function gu(e,t){return hn(vr(e),vr(t))}function vr(e){if(H(e)){const t={};for(let n=0;n1)return n&&G(t)?t.call(s&&s.proxy):t}}const Kl={},zl=()=>Object.create(Kl),Wl=e=>Object.getPrototypeOf(e)===Kl;function wu(e,t,n,s=!1){const r={},o=zl();e.propsDefaults=Object.create(null),Gl(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:xl(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function vu(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=ee(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[p,m]=Jl(d,t,!0);be(i,p),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!c)return oe(e)&&s.set(e,zt),zt;if(H(o))for(let a=0;a-1,m[1]=_<0||b<_,(b>-1||X(m,"default"))&&l.push(d)}}}const u=[i,l];return oe(e)&&s.set(e,u),u}function Vo(e){return e[0]!=="$"&&!pn(e)}function qo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ko(e,t){return qo(e)===qo(t)}function zo(e,t){return H(t)?t.findIndex(n=>Ko(n,e)):G(t)&&Ko(t,e)?0:-1}const Ql=e=>e[0]==="_"||e==="$stable",oo=e=>H(e)?e.map(Qe):[Qe(e)],xu=(e,t,n)=>{if(t._n)return t;const s=eu((...r)=>oo(t(...r)),n);return s._c=!1,s},Xl=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ql(r))continue;const o=e[r];if(G(o))t[r]=xu(r,o,s);else if(o!=null){const i=oo(o);t[r]=()=>i}}},Yl=(e,t)=>{const n=oo(t);e.slots.default=()=>n},Zl=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},Eu=(e,t,n)=>{const s=e.slots=zl();if(e.vnode.shapeFlag&32){const r=t._;r?(Zl(s,t,n),n&&ll(s,"_",r,!0)):Xl(t,s)}else t&&Yl(e,t)},Ru=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=le;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Zl(r,t,n):(o=!t.$stable,Xl(t,r)),i=t}else t&&(Yl(e,t),i={default:1});if(o)for(const l in r)!Ql(l)&&i[l]==null&&delete r[l]};function xr(e,t,n,s,r=!1){if(H(e)){e.forEach((p,m)=>xr(p,t&&(H(t)?t[m]:t),n,s,r));return}if(Yn(s)&&!r)return;const o=s.shapeFlag&4?Fs(s.component):s.el,i=r?null:o,{i:l,r:c}=e,u=t&&t.r,a=l.refs===le?l.refs={}:l.refs,d=l.setupState;if(u!=null&&u!==c&&(fe(u)?(a[u]=null,X(d,u)&&(d[u]=null)):Ce(u)&&(u.value=null)),G(c))_t(c,l,12,[i,a]);else{const p=fe(c),m=Ce(c);if(p||m){const b=()=>{if(e.f){const _=p?X(d,c)?d[c]:a[c]:c.value;r?H(_)&&zr(_,o):H(_)?_.includes(o)||_.push(o):p?(a[c]=[o],X(d,c)&&(d[c]=a[c])):(c.value=[o],e.k&&(a[e.k]=c.value))}else p?(a[c]=i,X(d,c)&&(d[c]=i)):m&&(c.value=i,e.k&&(a[e.k]=i))};i?(b.id=-1,Se(b,n)):b()}}}const Ou=Symbol("_vte"),Cu=e=>e.__isTeleport,Se=Hu;function Tu(e){return Au(e)}function Au(e,t){const n=cl();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:a,parentNode:d,nextSibling:p,setScopeId:m=Ne,insertStaticContent:b}=e,_=(f,h,g,S=null,w=null,R=null,k=void 0,T=null,A=!!h.dynamicChildren)=>{if(f===h)return;f&&!cn(f,h)&&(S=v(f),ve(f,w,R,!0),f=null),h.patchFlag===-2&&(A=!1,h.dynamicChildren=null);const{type:x,ref:M,shapeFlag:U}=h;switch(x){case Ms:E(f,h,g,S);break;case Ft:F(f,h,g,S);break;case es:f==null&&L(h,g,S,k);break;case me:Rt(f,h,g,S,w,R,k,T,A);break;default:U&1?re(f,h,g,S,w,R,k,T,A):U&6?Ke(f,h,g,S,w,R,k,T,A):(U&64||U&128)&&x.process(f,h,g,S,w,R,k,T,A,D)}M!=null&&w&&xr(M,f&&f.ref,R,h||f,!h)},E=(f,h,g,S)=>{if(f==null)s(h.el=l(h.children),g,S);else{const w=h.el=f.el;h.children!==f.children&&u(w,h.children)}},F=(f,h,g,S)=>{f==null?s(h.el=c(h.children||""),g,S):h.el=f.el},L=(f,h,g,S)=>{[f.el,f.anchor]=b(f.children,h,g,S,f.el,f.anchor)},C=({el:f,anchor:h},g,S)=>{let w;for(;f&&f!==h;)w=p(f),s(f,g,S),f=w;s(h,g,S)},B=({el:f,anchor:h})=>{let g;for(;f&&f!==h;)g=p(f),r(f),f=g;r(h)},re=(f,h,g,S,w,R,k,T,A)=>{h.type==="svg"?k="svg":h.type==="math"&&(k="mathml"),f==null?P(h,g,S,w,R,k,T,A):Ie(f,h,w,R,k,T,A)},P=(f,h,g,S,w,R,k,T)=>{let A,x;const{props:M,shapeFlag:U,transition:j,dirs:K}=f;if(A=f.el=i(f.type,R,M&&M.is,M),U&8?a(A,f.children):U&16&&ae(f.children,A,null,S,w,Zs(f,R),k,T),K&&Ot(f,null,S,"created"),z(A,f,f.scopeId,k,S),M){for(const ie in M)ie!=="value"&&!pn(ie)&&o(A,ie,null,M[ie],R,S);"value"in M&&o(A,"value",null,M.value,R),(x=M.onVnodeBeforeMount)&&Ge(x,S,f)}K&&Ot(f,null,S,"beforeMount");const J=Pu(w,j);J&&j.beforeEnter(A),s(A,h,g),((x=M&&M.onVnodeMounted)||J||K)&&Se(()=>{x&&Ge(x,S,f),J&&j.enter(A),K&&Ot(f,null,S,"mounted")},w)},z=(f,h,g,S,w)=>{if(g&&m(f,g),S)for(let R=0;R{for(let x=A;x{const T=h.el=f.el;let{patchFlag:A,dynamicChildren:x,dirs:M}=h;A|=f.patchFlag&16;const U=f.props||le,j=h.props||le;let K;if(g&&Ct(g,!1),(K=j.onVnodeBeforeUpdate)&&Ge(K,g,h,f),M&&Ot(h,f,g,"beforeUpdate"),g&&Ct(g,!0),(U.innerHTML&&j.innerHTML==null||U.textContent&&j.textContent==null)&&a(T,""),x?de(f.dynamicChildren,x,T,g,S,Zs(h,w),R):k||Y(f,h,T,null,g,S,Zs(h,w),R,!1),A>0){if(A&16)lt(T,U,j,g,w);else if(A&2&&U.class!==j.class&&o(T,"class",null,j.class,w),A&4&&o(T,"style",U.style,j.style,w),A&8){const J=h.dynamicProps;for(let ie=0;ie{K&&Ge(K,g,h,f),M&&Ot(h,f,g,"updated")},S)},de=(f,h,g,S,w,R,k)=>{for(let T=0;T{if(h!==g){if(h!==le)for(const R in h)!pn(R)&&!(R in g)&&o(f,R,h[R],null,w,S);for(const R in g){if(pn(R))continue;const k=g[R],T=h[R];k!==T&&R!=="value"&&o(f,R,T,k,w,S)}"value"in g&&o(f,"value",h.value,g.value,w)}},Rt=(f,h,g,S,w,R,k,T,A)=>{const x=h.el=f?f.el:l(""),M=h.anchor=f?f.anchor:l("");let{patchFlag:U,dynamicChildren:j,slotScopeIds:K}=h;K&&(T=T?T.concat(K):K),f==null?(s(x,g,S),s(M,g,S),ae(h.children||[],g,M,w,R,k,T,A)):U>0&&U&64&&j&&f.dynamicChildren?(de(f.dynamicChildren,j,g,w,R,k,T),(h.key!=null||w&&h===w.subTree)&&ec(f,h,!0)):Y(f,h,g,M,w,R,k,T,A)},Ke=(f,h,g,S,w,R,k,T,A)=>{h.slotScopeIds=T,f==null?h.shapeFlag&512?w.ctx.activate(h,g,S,k,A):on(h,g,S,w,R,k,A):Ut(f,h,A)},on=(f,h,g,S,w,R,k)=>{const T=f.component=Qu(f,S,w);if(Fl(f)&&(T.ctx.renderer=D),Xu(T,!1,k),T.asyncDep){if(w&&w.registerDep(T,he,k),!f.el){const A=T.subTree=Q(Ft);F(null,A,h,g)}}else he(T,f,h,g,w,R,k)},Ut=(f,h,g)=>{const S=h.component=f.component;if(ju(f,h,g))if(S.asyncDep&&!S.asyncResolved){se(S,h,g);return}else S.next=h,Xa(S.update),S.effect.dirty=!0,S.update();else h.el=f.el,S.vnode=h},he=(f,h,g,S,w,R,k)=>{const T=()=>{if(f.isMounted){let{next:M,bu:U,u:j,parent:K,vnode:J}=f;{const Vt=tc(f);if(Vt){M&&(M.el=J.el,se(f,M,k)),Vt.asyncDep.then(()=>{f.isUnmounted||T()});return}}let ie=M,Z;Ct(f,!1),M?(M.el=J.el,se(f,M,k)):M=J,U&&Jn(U),(Z=M.props&&M.props.onVnodeBeforeUpdate)&&Ge(Z,K,M,J),Ct(f,!0);const pe=er(f),$e=f.subTree;f.subTree=pe,_($e,pe,d($e.el),v($e),f,w,R),M.el=pe.el,ie===null&&Uu(f,pe.el),j&&Se(j,w),(Z=M.props&&M.props.onVnodeUpdated)&&Se(()=>Ge(Z,K,M,J),w)}else{let M;const{el:U,props:j}=h,{bm:K,m:J,parent:ie}=f,Z=Yn(h);if(Ct(f,!1),K&&Jn(K),!Z&&(M=j&&j.onVnodeBeforeMount)&&Ge(M,ie,h),Ct(f,!0),U&&ce){const pe=()=>{f.subTree=er(f),ce(U,f.subTree,f,w,null)};Z?h.type.__asyncLoader().then(()=>!f.isUnmounted&&pe()):pe()}else{const pe=f.subTree=er(f);_(null,pe,g,S,f,w,R),h.el=pe.el}if(J&&Se(J,w),!Z&&(M=j&&j.onVnodeMounted)){const pe=h;Se(()=>Ge(M,ie,pe),w)}(h.shapeFlag&256||ie&&Yn(ie.vnode)&&ie.vnode.shapeFlag&256)&&f.a&&Se(f.a,w),f.isMounted=!0,h=g=S=null}},A=f.effect=new Gr(T,Ne,()=>so(x),f.scope),x=f.update=()=>{A.dirty&&A.run()};x.i=f,x.id=f.uid,Ct(f,!0),x()},se=(f,h,g)=>{h.component=f;const S=f.vnode.props;f.vnode=h,f.next=null,vu(f,h.props,S,g),Ru(f,h.children,g),St(),Fo(f),xt()},Y=(f,h,g,S,w,R,k,T,A=!1)=>{const x=f&&f.children,M=f?f.shapeFlag:0,U=h.children,{patchFlag:j,shapeFlag:K}=h;if(j>0){if(j&128){ct(x,U,g,S,w,R,k,T,A);return}else if(j&256){et(x,U,g,S,w,R,k,T,A);return}}K&8?(M&16&&Le(x,w,R),U!==x&&a(g,U)):M&16?K&16?ct(x,U,g,S,w,R,k,T,A):Le(x,w,R,!0):(M&8&&a(g,""),K&16&&ae(U,g,S,w,R,k,T,A))},et=(f,h,g,S,w,R,k,T,A)=>{f=f||zt,h=h||zt;const x=f.length,M=h.length,U=Math.min(x,M);let j;for(j=0;jM?Le(f,w,R,!0,!1,U):ae(h,g,S,w,R,k,T,A,U)},ct=(f,h,g,S,w,R,k,T,A)=>{let x=0;const M=h.length;let U=f.length-1,j=M-1;for(;x<=U&&x<=j;){const K=f[x],J=h[x]=A?pt(h[x]):Qe(h[x]);if(cn(K,J))_(K,J,g,null,w,R,k,T,A);else break;x++}for(;x<=U&&x<=j;){const K=f[U],J=h[j]=A?pt(h[j]):Qe(h[j]);if(cn(K,J))_(K,J,g,null,w,R,k,T,A);else break;U--,j--}if(x>U){if(x<=j){const K=j+1,J=Kj)for(;x<=U;)ve(f[x],w,R,!0),x++;else{const K=x,J=x,ie=new Map;for(x=J;x<=j;x++){const Ae=h[x]=A?pt(h[x]):Qe(h[x]);Ae.key!=null&&ie.set(Ae.key,x)}let Z,pe=0;const $e=j-J+1;let Vt=!1,Ro=0;const ln=new Array($e);for(x=0;x<$e;x++)ln[x]=0;for(x=K;x<=U;x++){const Ae=f[x];if(pe>=$e){ve(Ae,w,R,!0);continue}let We;if(Ae.key!=null)We=ie.get(Ae.key);else for(Z=J;Z<=j;Z++)if(ln[Z-J]===0&&cn(Ae,h[Z])){We=Z;break}We===void 0?ve(Ae,w,R,!0):(ln[We-J]=x+1,We>=Ro?Ro=We:Vt=!0,_(Ae,h[We],g,null,w,R,k,T,A),pe++)}const Oo=Vt?ku(ln):zt;for(Z=Oo.length-1,x=$e-1;x>=0;x--){const Ae=J+x,We=h[Ae],Co=Ae+1{const{el:R,type:k,transition:T,children:A,shapeFlag:x}=f;if(x&6){ze(f.component.subTree,h,g,S);return}if(x&128){f.suspense.move(h,g,S);return}if(x&64){k.move(f,h,g,D);return}if(k===me){s(R,h,g);for(let U=0;UT.enter(R),w);else{const{leave:U,delayLeave:j,afterLeave:K}=T,J=()=>s(R,h,g),ie=()=>{U(R,()=>{J(),K&&K()})};j?j(R,J,ie):ie()}else s(R,h,g)},ve=(f,h,g,S=!1,w=!1)=>{const{type:R,props:k,ref:T,children:A,dynamicChildren:x,shapeFlag:M,patchFlag:U,dirs:j,cacheIndex:K}=f;if(U===-2&&(w=!1),T!=null&&xr(T,null,g,f,!0),K!=null&&(h.renderCache[K]=void 0),M&256){h.ctx.deactivate(f);return}const J=M&1&&j,ie=!Yn(f);let Z;if(ie&&(Z=k&&k.onVnodeBeforeUnmount)&&Ge(Z,h,f),M&6)Dn(f.component,g,S);else{if(M&128){f.suspense.unmount(g,S);return}J&&Ot(f,null,h,"beforeUnmount"),M&64?f.type.remove(f,h,g,D,S):x&&!x.hasOnce&&(R!==me||U>0&&U&64)?Le(x,h,g,!1,!0):(R===me&&U&384||!w&&M&16)&&Le(A,h,g),S&&Bt(f)}(ie&&(Z=k&&k.onVnodeUnmounted)||J)&&Se(()=>{Z&&Ge(Z,h,f),J&&Ot(f,null,h,"unmounted")},g)},Bt=f=>{const{type:h,el:g,anchor:S,transition:w}=f;if(h===me){Ht(g,S);return}if(h===es){B(f);return}const R=()=>{r(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:k,delayLeave:T}=w,A=()=>k(g,R);T?T(f.el,R,A):A()}else R()},Ht=(f,h)=>{let g;for(;f!==h;)g=p(f),r(f),f=g;r(h)},Dn=(f,h,g)=>{const{bum:S,scope:w,update:R,subTree:k,um:T,m:A,a:x}=f;Wo(A),Wo(x),S&&Jn(S),w.stop(),R&&(R.active=!1,ve(k,f,h,g)),T&&Se(T,h),Se(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Le=(f,h,g,S=!1,w=!1,R=0)=>{for(let k=R;k{if(f.shapeFlag&6)return v(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),g=h&&h[Ou];return g?p(g):h};let N=!1;const I=(f,h,g)=>{f==null?h._vnode&&ve(h._vnode,null,null,!0):_(h._vnode||null,f,h,null,null,null,g),N||(N=!0,Fo(),Il(),N=!1),h._vnode=f},D={p:_,um:ve,m:ze,r:Bt,mt:on,mc:ae,pc:Y,pbc:de,n:v,o:e};let te,ce;return{render:I,hydrate:te,createApp:bu(I,te)}}function Zs({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 Ct({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Pu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ec(e,t,n=!1){const s=e.children,r=t.children;if(H(s)&&H(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function tc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:tc(t)}function Wo(e){if(e)for(let t=0;tYe(Iu),qn={};function _n(e,t,n){return nc(e,t,n)}function nc(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=le){if(t&&o){const P=t;t=(...z)=>{P(...z),re()}}const c=_e,u=P=>s===!0?P:gt(P,s===!1?1:void 0);let a,d=!1,p=!1;if(Ce(e)?(a=()=>e.value,d=Xt(e)):mn(e)?(a=()=>u(e),d=!0):H(e)?(p=!0,d=e.some(P=>mn(P)||Xt(P)),a=()=>e.map(P=>{if(Ce(P))return P.value;if(mn(P))return u(P);if(G(P))return _t(P,c,2)})):G(e)?t?a=()=>_t(e,c,2):a=()=>(m&&m(),Ue(e,c,3,[b])):a=Ne,t&&s){const P=a;a=()=>gt(P())}let m,b=P=>{m=C.onStop=()=>{_t(P,c,4),m=C.onStop=void 0}},_;if($s)if(b=Ne,t?n&&Ue(t,c,3,[a(),p?[]:void 0,b]):a(),r==="sync"){const P=Lu();_=P.__watcherHandles||(P.__watcherHandles=[])}else return Ne;let E=p?new Array(e.length).fill(qn):qn;const F=()=>{if(!(!C.active||!C.dirty))if(t){const P=C.run();(s||d||(p?P.some((z,ae)=>wt(z,E[ae])):wt(P,E)))&&(m&&m(),Ue(t,c,3,[P,E===qn?void 0:p&&E[0]===qn?[]:E,b]),E=P)}else C.run()};F.allowRecurse=!!t;let L;r==="sync"?L=F:r==="post"?L=()=>Se(F,c&&c.suspense):(F.pre=!0,c&&(F.id=c.uid),L=()=>so(F));const C=new Gr(a,Ne,L),B=Ea(),re=()=>{C.stop(),B&&zr(B.effects,C)};return t?n?F():E=C.run():r==="post"?Se(C.run.bind(C),c&&c.suspense):C.run(),_&&_.push(re),re}function Nu(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?sc(s,e):()=>s[e]:e.bind(s,s);let o;G(t)?o=t:(o=t.handler,n=t);const i=Ln(this),l=nc(r,o.bind(s),n);return i(),l}function sc(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{gt(s,t,n)});else if(il(e)){for(const s in e)gt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&>(e[s],t,n)}return e}const Mu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${He(t)}Modifiers`]||e[`${vt(t)}Modifiers`];function $u(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||le;let r=n;const o=t.startsWith("update:"),i=o&&Mu(s,t.slice(7));i&&(i.trim&&(r=n.map(a=>fe(a)?a.trim():a)),i.number&&(r=n.map(as)));let l,c=s[l=Qs(t)]||s[l=Qs(He(t))];!c&&o&&(c=s[l=Qs(vt(t))]),c&&Ue(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ue(u,e,6,r)}}function rc(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!G(e)){const c=u=>{const a=rc(u,t,!0);a&&(l=!0,be(i,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(oe(e)&&s.set(e,null),null):(H(o)?o.forEach(c=>i[c]=null):be(i,o),oe(e)&&s.set(e,i),i)}function Ns(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,vt(t))||X(e,t))}function er(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:u,renderCache:a,props:d,data:p,setupState:m,ctx:b,inheritAttrs:_}=e,E=us(e);let F,L;try{if(n.shapeFlag&4){const B=r||s,re=B;F=Qe(u.call(re,B,a,d,m,p,b)),L=l}else{const B=t;F=Qe(B.length>1?B(d,{attrs:l,slots:i,emit:c}):B(d,null)),L=t.props?l:Fu(l)}}catch(B){bn.length=0,Ps(B,e,1),F=Q(Ft)}let C=F;if(L&&_!==!1){const B=Object.keys(L),{shapeFlag:re}=C;B.length&&re&7&&(o&&B.some(Kr)&&(L=Du(L,o)),C=Yt(C,L,!1,!0))}return n.dirs&&(C=Yt(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),F=C,us(E),F}const Fu=e=>{let t;for(const n in e)(n==="class"||n==="style"||vs(n))&&((t||(t={}))[n]=e[n]);return t},Du=(e,t)=>{const n={};for(const s in e)(!Kr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ju(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Go(s,i,u):!!i;if(c&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;function Hu(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Ya(e)}const me=Symbol.for("v-fgt"),Ms=Symbol.for("v-txt"),Ft=Symbol.for("v-cmt"),es=Symbol.for("v-stc"),bn=[];let ke=null;function V(e=!1){bn.push(ke=e?null:[])}function Vu(){bn.pop(),ke=bn[bn.length-1]||null}let On=1;function Jo(e){On+=e,e<0&&ke&&(ke.hasOnce=!0)}function oc(e){return e.dynamicChildren=On>0?ke||zt:null,Vu(),On>0&&ke&&ke.push(e),e}function q(e,t,n,s,r,o){return oc(O(e,t,n,s,r,o,!0))}function hs(e,t,n,s,r){return oc(Q(e,t,n,s,r,!0))}function Er(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const ic=({key:e})=>e??null,ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||Ce(e)||G(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,s=0,r=null,o=e===me?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ic(t),ref:t&&ts(t),scopeId:ks,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Pe};return l?(io(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=fe(n)?8:16),On>0&&!i&&ke&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ke.push(c),c}const Q=qu;function qu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===uu)&&(e=Ft),Er(e)){const l=Yt(e,t,!0);return n&&io(l,n),On>0&&!o&&ke&&(l.shapeFlag&6?ke[ke.indexOf(e)]=l:ke.push(l)),l.patchFlag=-2,l}if(nf(e)&&(e=e.__vccOpts),t){t=Ku(t);let{class:l,style:c}=t;l&&!fe(l)&&(t.class=Os(l)),oe(c)&&(Rl(c)&&!H(c)&&(c=be({},c)),t.style=Rs(c))}const i=fe(e)?1:Bu(e)?128:Cu(e)?64:oe(e)?4:G(e)?2:0;return O(e,t,n,s,r,i,o,!0)}function Ku(e){return e?Rl(e)||Wl(e)?be({},e):e:null}function Yt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,u=t?Wu(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ic(u),ref:t&&t.ref?n&&o?H(o)?o.concat(ts(t)):[o,ts(t)]:ts(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&$l(a,c.clone(a)),a}function Zt(e=" ",t=0){return Q(Ms,null,e,t)}function zu(e,t){const n=Q(es,null,e);return n.staticCount=t,n}function st(e="",t=!1){return t?(V(),hs(Ft,null,e)):Q(Ft,null,e)}function Qe(e){return e==null||typeof e=="boolean"?Q(Ft):H(e)?Q(me,null,e.slice()):typeof e=="object"?pt(e):Q(Ms,null,String(e))}function pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(e)}function io(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),io(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Wl(t)?t._ctx=Pe:r===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),s&64?(n=16,t=[Zt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wu(...e){const t={};for(let n=0;n{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};ps=t("__VUE_INSTANCE_SETTERS__",n=>_e=n),Rr=t("__VUE_SSR_SETTERS__",n=>$s=n)}const Ln=e=>{const t=_e;return ps(e),e.scope.on(),()=>{e.scope.off(),ps(t)}},Qo=()=>{_e&&_e.scope.off(),ps(null)};function lc(e){return e.vnode.shapeFlag&4}let $s=!1;function Xu(e,t=!1,n=!1){t&&Rr(t);const{props:s,children:r}=e.vnode,o=lc(e);wu(e,s,o,t),Eu(e,r,n);const i=o?Yu(e,t):void 0;return t&&Rr(!1),i}function Yu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,du);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?ef(e):null,o=Ln(e);St();const i=_t(s,e,0,[e.props,r]);if(xt(),o(),rl(i)){if(i.then(Qo,Qo),t)return i.then(l=>{Xo(e,l,t)}).catch(l=>{Ps(l,e,0)});e.asyncDep=i}else Xo(e,i,t)}else cc(e,t)}function Xo(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=Al(t)),cc(e,n)}let Yo;function cc(e,t,n){const s=e.type;if(!e.render){if(!t&&Yo&&!s.render){const r=s.template||ro(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,u=be(be({isCustomElement:o,delimiters:l},i),c);s.render=Yo(r,u)}}e.render=s.render||Ne}{const r=Ln(e);St();try{hu(e)}finally{xt(),r()}}}const Zu={get(e,t){return Oe(e,"get",""),e[t]}};function ef(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zu),slots:e.slots,emit:e.emit,expose:t}}function Fs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Al(qa(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}})):e.proxy}function tf(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function nf(e){return G(e)&&"__vccOpts"in e}const De=(e,t)=>Ka(e,t,$s);function ms(e,t,n){const s=arguments.length;return s===2?oe(t)&&!H(t)?Er(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Er(n)&&(n=[n]),Q(e,t,n))}const sf="3.4.33";/** +**/function _t(e,t,n,s){try{return s?e(...s):e()}catch(r){Ps(r,t,n)}}function Ue(e,t,n,s){if(G(e)){const r=_t(e,t,n,s);return r&&ol(r)&&r.catch(o=>{Ps(o,t,n)}),r}if(H(e)){const r=[];for(let o=0;o>>1,r=ye[s],o=Rn(r);oXe&&ye.splice(t,1)}function Za(e){H(e)?Gt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?Pt+1:Pt))&&Gt.push(e),Il()}function Fo(e,t,n=En?Xe+1:0){for(;nRn(n)-Rn(s));if(Gt.length=0,ht){ht.push(...t);return}for(ht=t,Pt=0;Pte.id==null?1/0:e.id,eu=(e,t)=>{const n=Rn(e)-Rn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Nl(e){_r=!1,En=!0,ye.sort(eu);try{for(Xe=0;Xe{s._d&&Jo(-1);const o=us(t);let i;try{i=e(...r)}finally{us(o),s._d&&Jo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Xn(e,t){if(Pe===null)return e;const n=Fs(Pe),s=e.dirs||(e.dirs=[]);for(let r=0;r!!e.type.__asyncLoader,Dl=e=>e.type.__isKeepAlive;function nu(e,t){jl(e,"a",t)}function su(e,t){jl(e,"da",t)}function jl(e,t,n=_e){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Is(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Dl(r.parent.vnode)&&ru(s,t,n,r),r=r.parent}}function ru(e,t,n,s){const r=Is(t,e,s,!0);Hl(()=>{zr(s[t],r)},n)}function Is(e,t,n=_e,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{St();const l=Ln(n),c=Ue(t,n,e,i);return l(),xt(),c});return s?r.unshift(o):r.push(o),o}}const it=e=>(t,n=_e)=>{(!$s||e==="sp")&&Is(e,(...s)=>t(...s),n)},Ul=it("bm"),Ls=it("m"),ou=it("bu"),iu=it("u"),Bl=it("bum"),Hl=it("um"),lu=it("sp"),cu=it("rtg"),au=it("rtc");function uu(e,t=_e){Is("ec",e,t)}const Vl="components";function fs(e,t){return du(Vl,e,!0,t)||e}const fu=Symbol.for("v-ndc");function du(e,t,n=!0,s=!1){const r=Pe||_e;if(r){const o=r.type;if(e===Vl){const l=nf(o,!1);if(l&&(l===t||l===He(t)||l===Es(He(t))))return o}const i=Do(r[e]||o[e],t)||Do(r.appContext[e],t);return!i&&s?o:i}}function Do(e,t){return e&&(e[t]||e[He(t)]||e[Es(He(t))])}function Nt(e,t,n,s){let r;const o=n;if(H(e)||fe(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,c=i.length;le?cc(e)?Fs(e):br(e.parent):null,gn=be(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=>br(e.parent),$root:e=>br(e.root),$emit:e=>e.emit,$options:e=>ro(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,so(e.update)}),$nextTick:e=>e.n||(e.n=no.bind(e.proxy)),$watch:e=>Mu.bind(e)}),Ys=(e,t)=>e!==le&&!e.__isScriptSetup&&X(e,t),hu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Ys(s,t))return i[t]=1,s[t];if(r!==le&&X(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&X(u,t))return i[t]=3,o[t];if(n!==le&&X(n,t))return i[t]=4,n[t];wr&&(i[t]=0)}}const a=gn[t];let d,p;if(a)return t==="$attrs"&&Oe(e.attrs,"get",""),a(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==le&&X(n,t))return i[t]=4,n[t];if(p=c.config.globalProperties,X(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Ys(r,t)?(r[t]=n,!0):s!==le&&X(s,t)?(s[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==le&&X(e,i)||Ys(t,i)||(l=o[0])&&X(l,i)||X(s,i)||X(gn,i)||X(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function jo(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let wr=!0;function pu(e){const t=ro(e),n=e.proxy,s=e.ctx;wr=!1,t.beforeCreate&&Uo(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:u,created:a,beforeMount:d,mounted:p,beforeUpdate:m,updated:b,activated:_,deactivated:E,beforeDestroy:F,beforeUnmount:L,destroyed:C,unmounted:B,render:re,renderTracked:P,renderTriggered:z,errorCaptured:ae,serverPrefetch:Ie,expose:de,inheritAttrs:lt,components:Rt,directives:Ke,filters:on}=t;if(u&&mu(u,s,null),i)for(const se in i){const Y=i[se];G(Y)&&(s[se]=Y.bind(n))}if(r){const se=r.call(n,n);oe(se)&&(e.data=As(se))}if(wr=!0,o)for(const se in o){const Y=o[se],et=G(Y)?Y.bind(n,n):G(Y.get)?Y.get.bind(n,n):Ne,ct=!G(Y)&&G(Y.set)?Y.set.bind(n):Ne,ze=De({get:et,set:ct});Object.defineProperty(s,se,{enumerable:!0,configurable:!0,get:()=>ze.value,set:ve=>ze.value=ve})}if(l)for(const se in l)ql(l[se],s,n,se);if(c){const se=G(c)?c.call(n):c;Reflect.ownKeys(se).forEach(Y=>{Zn(Y,se[Y])})}a&&Uo(a,e,"c");function he(se,Y){H(Y)?Y.forEach(et=>se(et.bind(n))):Y&&se(Y.bind(n))}if(he(Ul,d),he(Ls,p),he(ou,m),he(iu,b),he(nu,_),he(su,E),he(uu,ae),he(au,P),he(cu,z),he(Bl,L),he(Hl,B),he(lu,Ie),H(de))if(de.length){const se=e.exposed||(e.exposed={});de.forEach(Y=>{Object.defineProperty(se,Y,{get:()=>n[Y],set:et=>n[Y]=et})})}else e.exposed||(e.exposed={});re&&e.render===Ne&&(e.render=re),lt!=null&&(e.inheritAttrs=lt),Rt&&(e.components=Rt),Ke&&(e.directives=Ke)}function mu(e,t,n=Ne){H(e)&&(e=vr(e));for(const s in e){const r=e[s];let o;oe(r)?"default"in r?o=Ye(r.from||s,r.default,!0):o=Ye(r.from||s):o=Ye(r),Ce(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Uo(e,t,n){Ue(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ql(e,t,n,s){const r=s.includes(".")?rc(n,s):()=>n[s];if(fe(e)){const o=t[e];G(o)&&_n(r,o)}else if(G(e))_n(r,e.bind(n));else if(oe(e))if(H(e))e.forEach(o=>ql(o,t,n,s));else{const o=G(e.handler)?e.handler.bind(n):t[e.handler];G(o)&&_n(r,o,e)}}function ro(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>ds(c,u,i,!0)),ds(c,t,i)),oe(t)&&o.set(t,c),c}function ds(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&ds(e,o,n,!0),r&&r.forEach(i=>ds(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=gu[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const gu={data:Bo,props:Ho,emits:Ho,methods:hn,computed:hn,beforeCreate:we,created:we,beforeMount:we,mounted:we,beforeUpdate:we,updated:we,beforeDestroy:we,beforeUnmount:we,destroyed:we,unmounted:we,activated:we,deactivated:we,errorCaptured:we,serverPrefetch:we,components:hn,directives:hn,watch:_u,provide:Bo,inject:yu};function Bo(e,t){return t?e?function(){return be(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function yu(e,t){return hn(vr(e),vr(t))}function vr(e){if(H(e)){const t={};for(let n=0;n1)return n&&G(t)?t.call(s&&s.proxy):t}}const zl={},Wl=()=>Object.create(zl),Gl=e=>Object.getPrototypeOf(e)===zl;function vu(e,t,n,s=!1){const r={},o=Wl();e.propsDefaults=Object.create(null),Jl(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:El(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Su(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=ee(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[p,m]=Ql(d,t,!0);be(i,p),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!c)return oe(e)&&s.set(e,zt),zt;if(H(o))for(let a=0;a-1,m[1]=_<0||b<_,(b>-1||X(m,"default"))&&l.push(d)}}}const u=[i,l];return oe(e)&&s.set(e,u),u}function Vo(e){return e[0]!=="$"&&!pn(e)}function qo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ko(e,t){return qo(e)===qo(t)}function zo(e,t){return H(t)?t.findIndex(n=>Ko(n,e)):G(t)&&Ko(t,e)?0:-1}const Xl=e=>e[0]==="_"||e==="$stable",oo=e=>H(e)?e.map(Qe):[Qe(e)],Eu=(e,t,n)=>{if(t._n)return t;const s=tu((...r)=>oo(t(...r)),n);return s._c=!1,s},Yl=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Xl(r))continue;const o=e[r];if(G(o))t[r]=Eu(r,o,s);else if(o!=null){const i=oo(o);t[r]=()=>i}}},Zl=(e,t)=>{const n=oo(t);e.slots.default=()=>n},ec=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},Ru=(e,t,n)=>{const s=e.slots=Wl();if(e.vnode.shapeFlag&32){const r=t._;r?(ec(s,t,n),n&&cl(s,"_",r,!0)):Yl(t,s)}else t&&Zl(e,t)},Ou=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=le;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:ec(r,t,n):(o=!t.$stable,Yl(t,r)),i=t}else t&&(Zl(e,t),i={default:1});if(o)for(const l in r)!Xl(l)&&i[l]==null&&delete r[l]};function xr(e,t,n,s,r=!1){if(H(e)){e.forEach((p,m)=>xr(p,t&&(H(t)?t[m]:t),n,s,r));return}if(Yn(s)&&!r)return;const o=s.shapeFlag&4?Fs(s.component):s.el,i=r?null:o,{i:l,r:c}=e,u=t&&t.r,a=l.refs===le?l.refs={}:l.refs,d=l.setupState;if(u!=null&&u!==c&&(fe(u)?(a[u]=null,X(d,u)&&(d[u]=null)):Ce(u)&&(u.value=null)),G(c))_t(c,l,12,[i,a]);else{const p=fe(c),m=Ce(c);if(p||m){const b=()=>{if(e.f){const _=p?X(d,c)?d[c]:a[c]:c.value;r?H(_)&&zr(_,o):H(_)?_.includes(o)||_.push(o):p?(a[c]=[o],X(d,c)&&(d[c]=a[c])):(c.value=[o],e.k&&(a[e.k]=c.value))}else p?(a[c]=i,X(d,c)&&(d[c]=i)):m&&(c.value=i,e.k&&(a[e.k]=i))};i?(b.id=-1,Se(b,n)):b()}}}const Cu=Symbol("_vte"),Tu=e=>e.__isTeleport,Se=Vu;function Au(e){return Pu(e)}function Pu(e,t){const n=al();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:a,parentNode:d,nextSibling:p,setScopeId:m=Ne,insertStaticContent:b}=e,_=(f,h,g,S=null,w=null,R=null,k=void 0,T=null,A=!!h.dynamicChildren)=>{if(f===h)return;f&&!cn(f,h)&&(S=v(f),ve(f,w,R,!0),f=null),h.patchFlag===-2&&(A=!1,h.dynamicChildren=null);const{type:x,ref:M,shapeFlag:U}=h;switch(x){case Ms:E(f,h,g,S);break;case Ft:F(f,h,g,S);break;case es:f==null&&L(h,g,S,k);break;case me:Rt(f,h,g,S,w,R,k,T,A);break;default:U&1?re(f,h,g,S,w,R,k,T,A):U&6?Ke(f,h,g,S,w,R,k,T,A):(U&64||U&128)&&x.process(f,h,g,S,w,R,k,T,A,D)}M!=null&&w&&xr(M,f&&f.ref,R,h||f,!h)},E=(f,h,g,S)=>{if(f==null)s(h.el=l(h.children),g,S);else{const w=h.el=f.el;h.children!==f.children&&u(w,h.children)}},F=(f,h,g,S)=>{f==null?s(h.el=c(h.children||""),g,S):h.el=f.el},L=(f,h,g,S)=>{[f.el,f.anchor]=b(f.children,h,g,S,f.el,f.anchor)},C=({el:f,anchor:h},g,S)=>{let w;for(;f&&f!==h;)w=p(f),s(f,g,S),f=w;s(h,g,S)},B=({el:f,anchor:h})=>{let g;for(;f&&f!==h;)g=p(f),r(f),f=g;r(h)},re=(f,h,g,S,w,R,k,T,A)=>{h.type==="svg"?k="svg":h.type==="math"&&(k="mathml"),f==null?P(h,g,S,w,R,k,T,A):Ie(f,h,w,R,k,T,A)},P=(f,h,g,S,w,R,k,T)=>{let A,x;const{props:M,shapeFlag:U,transition:j,dirs:K}=f;if(A=f.el=i(f.type,R,M&&M.is,M),U&8?a(A,f.children):U&16&&ae(f.children,A,null,S,w,Zs(f,R),k,T),K&&Ot(f,null,S,"created"),z(A,f,f.scopeId,k,S),M){for(const ie in M)ie!=="value"&&!pn(ie)&&o(A,ie,null,M[ie],R,S);"value"in M&&o(A,"value",null,M.value,R),(x=M.onVnodeBeforeMount)&&Ge(x,S,f)}K&&Ot(f,null,S,"beforeMount");const J=ku(w,j);J&&j.beforeEnter(A),s(A,h,g),((x=M&&M.onVnodeMounted)||J||K)&&Se(()=>{x&&Ge(x,S,f),J&&j.enter(A),K&&Ot(f,null,S,"mounted")},w)},z=(f,h,g,S,w)=>{if(g&&m(f,g),S)for(let R=0;R{for(let x=A;x{const T=h.el=f.el;let{patchFlag:A,dynamicChildren:x,dirs:M}=h;A|=f.patchFlag&16;const U=f.props||le,j=h.props||le;let K;if(g&&Ct(g,!1),(K=j.onVnodeBeforeUpdate)&&Ge(K,g,h,f),M&&Ot(h,f,g,"beforeUpdate"),g&&Ct(g,!0),(U.innerHTML&&j.innerHTML==null||U.textContent&&j.textContent==null)&&a(T,""),x?de(f.dynamicChildren,x,T,g,S,Zs(h,w),R):k||Y(f,h,T,null,g,S,Zs(h,w),R,!1),A>0){if(A&16)lt(T,U,j,g,w);else if(A&2&&U.class!==j.class&&o(T,"class",null,j.class,w),A&4&&o(T,"style",U.style,j.style,w),A&8){const J=h.dynamicProps;for(let ie=0;ie{K&&Ge(K,g,h,f),M&&Ot(h,f,g,"updated")},S)},de=(f,h,g,S,w,R,k)=>{for(let T=0;T{if(h!==g){if(h!==le)for(const R in h)!pn(R)&&!(R in g)&&o(f,R,h[R],null,w,S);for(const R in g){if(pn(R))continue;const k=g[R],T=h[R];k!==T&&R!=="value"&&o(f,R,T,k,w,S)}"value"in g&&o(f,"value",h.value,g.value,w)}},Rt=(f,h,g,S,w,R,k,T,A)=>{const x=h.el=f?f.el:l(""),M=h.anchor=f?f.anchor:l("");let{patchFlag:U,dynamicChildren:j,slotScopeIds:K}=h;K&&(T=T?T.concat(K):K),f==null?(s(x,g,S),s(M,g,S),ae(h.children||[],g,M,w,R,k,T,A)):U>0&&U&64&&j&&f.dynamicChildren?(de(f.dynamicChildren,j,g,w,R,k,T),(h.key!=null||w&&h===w.subTree)&&tc(f,h,!0)):Y(f,h,g,M,w,R,k,T,A)},Ke=(f,h,g,S,w,R,k,T,A)=>{h.slotScopeIds=T,f==null?h.shapeFlag&512?w.ctx.activate(h,g,S,k,A):on(h,g,S,w,R,k,A):Ut(f,h,A)},on=(f,h,g,S,w,R,k)=>{const T=f.component=Xu(f,S,w);if(Dl(f)&&(T.ctx.renderer=D),Yu(T,!1,k),T.asyncDep){if(w&&w.registerDep(T,he,k),!f.el){const A=T.subTree=Q(Ft);F(null,A,h,g)}}else he(T,f,h,g,w,R,k)},Ut=(f,h,g)=>{const S=h.component=f.component;if(Uu(f,h,g))if(S.asyncDep&&!S.asyncResolved){se(S,h,g);return}else S.next=h,Ya(S.update),S.effect.dirty=!0,S.update();else h.el=f.el,S.vnode=h},he=(f,h,g,S,w,R,k)=>{const T=()=>{if(f.isMounted){let{next:M,bu:U,u:j,parent:K,vnode:J}=f;{const Vt=nc(f);if(Vt){M&&(M.el=J.el,se(f,M,k)),Vt.asyncDep.then(()=>{f.isUnmounted||T()});return}}let ie=M,Z;Ct(f,!1),M?(M.el=J.el,se(f,M,k)):M=J,U&&Jn(U),(Z=M.props&&M.props.onVnodeBeforeUpdate)&&Ge(Z,K,M,J),Ct(f,!0);const pe=er(f),$e=f.subTree;f.subTree=pe,_($e,pe,d($e.el),v($e),f,w,R),M.el=pe.el,ie===null&&Bu(f,pe.el),j&&Se(j,w),(Z=M.props&&M.props.onVnodeUpdated)&&Se(()=>Ge(Z,K,M,J),w)}else{let M;const{el:U,props:j}=h,{bm:K,m:J,parent:ie}=f,Z=Yn(h);if(Ct(f,!1),K&&Jn(K),!Z&&(M=j&&j.onVnodeBeforeMount)&&Ge(M,ie,h),Ct(f,!0),U&&ce){const pe=()=>{f.subTree=er(f),ce(U,f.subTree,f,w,null)};Z?h.type.__asyncLoader().then(()=>!f.isUnmounted&&pe()):pe()}else{const pe=f.subTree=er(f);_(null,pe,g,S,f,w,R),h.el=pe.el}if(J&&Se(J,w),!Z&&(M=j&&j.onVnodeMounted)){const pe=h;Se(()=>Ge(M,ie,pe),w)}(h.shapeFlag&256||ie&&Yn(ie.vnode)&&ie.vnode.shapeFlag&256)&&f.a&&Se(f.a,w),f.isMounted=!0,h=g=S=null}},A=f.effect=new Gr(T,Ne,()=>so(x),f.scope),x=f.update=()=>{A.dirty&&A.run()};x.i=f,x.id=f.uid,Ct(f,!0),x()},se=(f,h,g)=>{h.component=f;const S=f.vnode.props;f.vnode=h,f.next=null,Su(f,h.props,S,g),Ou(f,h.children,g),St(),Fo(f),xt()},Y=(f,h,g,S,w,R,k,T,A=!1)=>{const x=f&&f.children,M=f?f.shapeFlag:0,U=h.children,{patchFlag:j,shapeFlag:K}=h;if(j>0){if(j&128){ct(x,U,g,S,w,R,k,T,A);return}else if(j&256){et(x,U,g,S,w,R,k,T,A);return}}K&8?(M&16&&Le(x,w,R),U!==x&&a(g,U)):M&16?K&16?ct(x,U,g,S,w,R,k,T,A):Le(x,w,R,!0):(M&8&&a(g,""),K&16&&ae(U,g,S,w,R,k,T,A))},et=(f,h,g,S,w,R,k,T,A)=>{f=f||zt,h=h||zt;const x=f.length,M=h.length,U=Math.min(x,M);let j;for(j=0;jM?Le(f,w,R,!0,!1,U):ae(h,g,S,w,R,k,T,A,U)},ct=(f,h,g,S,w,R,k,T,A)=>{let x=0;const M=h.length;let U=f.length-1,j=M-1;for(;x<=U&&x<=j;){const K=f[x],J=h[x]=A?pt(h[x]):Qe(h[x]);if(cn(K,J))_(K,J,g,null,w,R,k,T,A);else break;x++}for(;x<=U&&x<=j;){const K=f[U],J=h[j]=A?pt(h[j]):Qe(h[j]);if(cn(K,J))_(K,J,g,null,w,R,k,T,A);else break;U--,j--}if(x>U){if(x<=j){const K=j+1,J=Kj)for(;x<=U;)ve(f[x],w,R,!0),x++;else{const K=x,J=x,ie=new Map;for(x=J;x<=j;x++){const Ae=h[x]=A?pt(h[x]):Qe(h[x]);Ae.key!=null&&ie.set(Ae.key,x)}let Z,pe=0;const $e=j-J+1;let Vt=!1,Ro=0;const ln=new Array($e);for(x=0;x<$e;x++)ln[x]=0;for(x=K;x<=U;x++){const Ae=f[x];if(pe>=$e){ve(Ae,w,R,!0);continue}let We;if(Ae.key!=null)We=ie.get(Ae.key);else for(Z=J;Z<=j;Z++)if(ln[Z-J]===0&&cn(Ae,h[Z])){We=Z;break}We===void 0?ve(Ae,w,R,!0):(ln[We-J]=x+1,We>=Ro?Ro=We:Vt=!0,_(Ae,h[We],g,null,w,R,k,T,A),pe++)}const Oo=Vt?Iu(ln):zt;for(Z=Oo.length-1,x=$e-1;x>=0;x--){const Ae=J+x,We=h[Ae],Co=Ae+1{const{el:R,type:k,transition:T,children:A,shapeFlag:x}=f;if(x&6){ze(f.component.subTree,h,g,S);return}if(x&128){f.suspense.move(h,g,S);return}if(x&64){k.move(f,h,g,D);return}if(k===me){s(R,h,g);for(let U=0;UT.enter(R),w);else{const{leave:U,delayLeave:j,afterLeave:K}=T,J=()=>s(R,h,g),ie=()=>{U(R,()=>{J(),K&&K()})};j?j(R,J,ie):ie()}else s(R,h,g)},ve=(f,h,g,S=!1,w=!1)=>{const{type:R,props:k,ref:T,children:A,dynamicChildren:x,shapeFlag:M,patchFlag:U,dirs:j,cacheIndex:K}=f;if(U===-2&&(w=!1),T!=null&&xr(T,null,g,f,!0),K!=null&&(h.renderCache[K]=void 0),M&256){h.ctx.deactivate(f);return}const J=M&1&&j,ie=!Yn(f);let Z;if(ie&&(Z=k&&k.onVnodeBeforeUnmount)&&Ge(Z,h,f),M&6)Dn(f.component,g,S);else{if(M&128){f.suspense.unmount(g,S);return}J&&Ot(f,null,h,"beforeUnmount"),M&64?f.type.remove(f,h,g,D,S):x&&!x.hasOnce&&(R!==me||U>0&&U&64)?Le(x,h,g,!1,!0):(R===me&&U&384||!w&&M&16)&&Le(A,h,g),S&&Bt(f)}(ie&&(Z=k&&k.onVnodeUnmounted)||J)&&Se(()=>{Z&&Ge(Z,h,f),J&&Ot(f,null,h,"unmounted")},g)},Bt=f=>{const{type:h,el:g,anchor:S,transition:w}=f;if(h===me){Ht(g,S);return}if(h===es){B(f);return}const R=()=>{r(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:k,delayLeave:T}=w,A=()=>k(g,R);T?T(f.el,R,A):A()}else R()},Ht=(f,h)=>{let g;for(;f!==h;)g=p(f),r(f),f=g;r(h)},Dn=(f,h,g)=>{const{bum:S,scope:w,update:R,subTree:k,um:T,m:A,a:x}=f;Wo(A),Wo(x),S&&Jn(S),w.stop(),R&&(R.active=!1,ve(k,f,h,g)),T&&Se(T,h),Se(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Le=(f,h,g,S=!1,w=!1,R=0)=>{for(let k=R;k{if(f.shapeFlag&6)return v(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),g=h&&h[Cu];return g?p(g):h};let N=!1;const I=(f,h,g)=>{f==null?h._vnode&&ve(h._vnode,null,null,!0):_(h._vnode||null,f,h,null,null,null,g),N||(N=!0,Fo(),Ll(),N=!1),h._vnode=f},D={p:_,um:ve,m:ze,r:Bt,mt:on,mc:ae,pc:Y,pbc:de,n:v,o:e};let te,ce;return{render:I,hydrate:te,createApp:wu(I,te)}}function Zs({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 Ct({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ku(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function tc(e,t,n=!1){const s=e.children,r=t.children;if(H(s)&&H(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function nc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nc(t)}function Wo(e){if(e)for(let t=0;tYe(Lu),qn={};function _n(e,t,n){return sc(e,t,n)}function sc(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=le){if(t&&o){const P=t;t=(...z)=>{P(...z),re()}}const c=_e,u=P=>s===!0?P:gt(P,s===!1?1:void 0);let a,d=!1,p=!1;if(Ce(e)?(a=()=>e.value,d=Xt(e)):mn(e)?(a=()=>u(e),d=!0):H(e)?(p=!0,d=e.some(P=>mn(P)||Xt(P)),a=()=>e.map(P=>{if(Ce(P))return P.value;if(mn(P))return u(P);if(G(P))return _t(P,c,2)})):G(e)?t?a=()=>_t(e,c,2):a=()=>(m&&m(),Ue(e,c,3,[b])):a=Ne,t&&s){const P=a;a=()=>gt(P())}let m,b=P=>{m=C.onStop=()=>{_t(P,c,4),m=C.onStop=void 0}},_;if($s)if(b=Ne,t?n&&Ue(t,c,3,[a(),p?[]:void 0,b]):a(),r==="sync"){const P=Nu();_=P.__watcherHandles||(P.__watcherHandles=[])}else return Ne;let E=p?new Array(e.length).fill(qn):qn;const F=()=>{if(!(!C.active||!C.dirty))if(t){const P=C.run();(s||d||(p?P.some((z,ae)=>wt(z,E[ae])):wt(P,E)))&&(m&&m(),Ue(t,c,3,[P,E===qn?void 0:p&&E[0]===qn?[]:E,b]),E=P)}else C.run()};F.allowRecurse=!!t;let L;r==="sync"?L=F:r==="post"?L=()=>Se(F,c&&c.suspense):(F.pre=!0,c&&(F.id=c.uid),L=()=>so(F));const C=new Gr(a,Ne,L),B=Ra(),re=()=>{C.stop(),B&&zr(B.effects,C)};return t?n?F():E=C.run():r==="post"?Se(C.run.bind(C),c&&c.suspense):C.run(),_&&_.push(re),re}function Mu(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?rc(s,e):()=>s[e]:e.bind(s,s);let o;G(t)?o=t:(o=t.handler,n=t);const i=Ln(this),l=sc(r,o.bind(s),n);return i(),l}function rc(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{gt(s,t,n)});else if(ll(e)){for(const s in e)gt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&>(e[s],t,n)}return e}const $u=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${He(t)}Modifiers`]||e[`${vt(t)}Modifiers`];function Fu(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||le;let r=n;const o=t.startsWith("update:"),i=o&&$u(s,t.slice(7));i&&(i.trim&&(r=n.map(a=>fe(a)?a.trim():a)),i.number&&(r=n.map(as)));let l,c=s[l=Qs(t)]||s[l=Qs(He(t))];!c&&o&&(c=s[l=Qs(vt(t))]),c&&Ue(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ue(u,e,6,r)}}function oc(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!G(e)){const c=u=>{const a=oc(u,t,!0);a&&(l=!0,be(i,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(oe(e)&&s.set(e,null),null):(H(o)?o.forEach(c=>i[c]=null):be(i,o),oe(e)&&s.set(e,i),i)}function Ns(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,vt(t))||X(e,t))}function er(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:u,renderCache:a,props:d,data:p,setupState:m,ctx:b,inheritAttrs:_}=e,E=us(e);let F,L;try{if(n.shapeFlag&4){const B=r||s,re=B;F=Qe(u.call(re,B,a,d,m,p,b)),L=l}else{const B=t;F=Qe(B.length>1?B(d,{attrs:l,slots:i,emit:c}):B(d,null)),L=t.props?l:Du(l)}}catch(B){bn.length=0,Ps(B,e,1),F=Q(Ft)}let C=F;if(L&&_!==!1){const B=Object.keys(L),{shapeFlag:re}=C;B.length&&re&7&&(o&&B.some(Kr)&&(L=ju(L,o)),C=Yt(C,L,!1,!0))}return n.dirs&&(C=Yt(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),F=C,us(E),F}const Du=e=>{let t;for(const n in e)(n==="class"||n==="style"||vs(n))&&((t||(t={}))[n]=e[n]);return t},ju=(e,t)=>{const n={};for(const s in e)(!Kr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Uu(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Go(s,i,u):!!i;if(c&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;function Vu(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Za(e)}const me=Symbol.for("v-fgt"),Ms=Symbol.for("v-txt"),Ft=Symbol.for("v-cmt"),es=Symbol.for("v-stc"),bn=[];let ke=null;function V(e=!1){bn.push(ke=e?null:[])}function qu(){bn.pop(),ke=bn[bn.length-1]||null}let On=1;function Jo(e){On+=e,e<0&&ke&&(ke.hasOnce=!0)}function ic(e){return e.dynamicChildren=On>0?ke||zt:null,qu(),On>0&&ke&&ke.push(e),e}function q(e,t,n,s,r,o){return ic(O(e,t,n,s,r,o,!0))}function hs(e,t,n,s,r){return ic(Q(e,t,n,s,r,!0))}function Er(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const lc=({key:e})=>e??null,ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||Ce(e)||G(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,s=0,r=null,o=e===me?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lc(t),ref:t&&ts(t),scopeId:ks,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Pe};return l?(io(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=fe(n)?8:16),On>0&&!i&&ke&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ke.push(c),c}const Q=Ku;function Ku(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===fu)&&(e=Ft),Er(e)){const l=Yt(e,t,!0);return n&&io(l,n),On>0&&!o&&ke&&(l.shapeFlag&6?ke[ke.indexOf(e)]=l:ke.push(l)),l.patchFlag=-2,l}if(sf(e)&&(e=e.__vccOpts),t){t=zu(t);let{class:l,style:c}=t;l&&!fe(l)&&(t.class=Os(l)),oe(c)&&(Ol(c)&&!H(c)&&(c=be({},c)),t.style=Rs(c))}const i=fe(e)?1:Hu(e)?128:Tu(e)?64:oe(e)?4:G(e)?2:0;return O(e,t,n,s,r,i,o,!0)}function zu(e){return e?Ol(e)||Gl(e)?be({},e):e:null}function Yt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,u=t?Gu(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&lc(u),ref:t&&t.ref?n&&o?H(o)?o.concat(ts(t)):[o,ts(t)]:ts(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Fl(a,c.clone(a)),a}function Zt(e=" ",t=0){return Q(Ms,null,e,t)}function Wu(e,t){const n=Q(es,null,e);return n.staticCount=t,n}function st(e="",t=!1){return t?(V(),hs(Ft,null,e)):Q(Ft,null,e)}function Qe(e){return e==null||typeof e=="boolean"?Q(Ft):H(e)?Q(me,null,e.slice()):typeof e=="object"?pt(e):Q(Ms,null,String(e))}function pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(e)}function io(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),io(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Gl(t)?t._ctx=Pe:r===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),s&64?(n=16,t=[Zt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gu(...e){const t={};for(let n=0;n{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};ps=t("__VUE_INSTANCE_SETTERS__",n=>_e=n),Rr=t("__VUE_SSR_SETTERS__",n=>$s=n)}const Ln=e=>{const t=_e;return ps(e),e.scope.on(),()=>{e.scope.off(),ps(t)}},Qo=()=>{_e&&_e.scope.off(),ps(null)};function cc(e){return e.vnode.shapeFlag&4}let $s=!1;function Yu(e,t=!1,n=!1){t&&Rr(t);const{props:s,children:r}=e.vnode,o=cc(e);vu(e,s,o,t),Ru(e,r,n);const i=o?Zu(e,t):void 0;return t&&Rr(!1),i}function Zu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,hu);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?tf(e):null,o=Ln(e);St();const i=_t(s,e,0,[e.props,r]);if(xt(),o(),ol(i)){if(i.then(Qo,Qo),t)return i.then(l=>{Xo(e,l,t)}).catch(l=>{Ps(l,e,0)});e.asyncDep=i}else Xo(e,i,t)}else ac(e,t)}function Xo(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=Pl(t)),ac(e,n)}let Yo;function ac(e,t,n){const s=e.type;if(!e.render){if(!t&&Yo&&!s.render){const r=s.template||ro(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,u=be(be({isCustomElement:o,delimiters:l},i),c);s.render=Yo(r,u)}}e.render=s.render||Ne}{const r=Ln(e);St();try{pu(e)}finally{xt(),r()}}}const ef={get(e,t){return Oe(e,"get",""),e[t]}};function tf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ef),slots:e.slots,emit:e.emit,expose:t}}function Fs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pl(Ka(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}})):e.proxy}function nf(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function sf(e){return G(e)&&"__vccOpts"in e}const De=(e,t)=>za(e,t,$s);function ms(e,t,n){const s=arguments.length;return s===2?oe(t)&&!H(t)?Er(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Er(n)&&(n=[n]),Q(e,t,n))}const rf="3.4.33";/** * @vue/runtime-dom v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const rf="http://www.w3.org/2000/svg",of="http://www.w3.org/1998/Math/MathML",nt=typeof document<"u"?document:null,Zo=nt&&nt.createElement("template"),lf={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"?nt.createElementNS(rf,e):t==="mathml"?nt.createElementNS(of,e):n?nt.createElement(e,{is:n}):nt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>nt.createTextNode(e),createComment:e=>nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Zo.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=Zo.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},cf=Symbol("_vtc");function af(e,t,n){const s=e[cf];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ei=Symbol("_vod"),uf=Symbol("_vsh"),ff=Symbol(""),df=/(^|;)\s*display\s*:/;function hf(e,t,n){const s=e.style,r=fe(n);let o=!1;if(n&&!r){if(t)if(fe(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&ns(s,l,"")}else for(const i in t)n[i]==null&&ns(s,i,"");for(const i in n)i==="display"&&(o=!0),ns(s,i,n[i])}else if(r){if(t!==n){const i=s[ff];i&&(n+=";"+i),s.cssText=n,o=df.test(n)}}else t&&e.removeAttribute("style");ei in e&&(e[ei]=o?s.display:"",e[uf]&&(s.display="none"))}const ti=/\s*!important$/;function ns(e,t,n){if(H(n))n.forEach(s=>ns(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=pf(e,t);ti.test(n)?e.setProperty(vt(s),n.replace(ti,""),"important"):e[s]=n}}const ni=["Webkit","Moz","ms"],tr={};function pf(e,t){const n=tr[t];if(n)return n;let s=He(t);if(s!=="filter"&&s in e)return tr[t]=s;s=Es(s);for(let r=0;rnr||(bf.then(()=>nr=0),nr=Date.now());function vf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ue(Sf(s,n.value),t,5,[s])};return n.value=e,n.attached=wf(),n}function Sf(e,t){if(H(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 li=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xf=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?af(e,s,i):t==="style"?hf(e,n,s):vs(t)?Kr(t)||yf(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ef(e,t,s,i))?(mf(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ri(e,t,s,i,o,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ri(e,t,s,i))};function Ef(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&li(t)&&G(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 li(t)&&fe(n)?!1:t in e}const gs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Jn(t,n):t};function Rf(e){e.target.composing=!0}function ci(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Jt=Symbol("_assign"),Of={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Jt]=gs(r);const o=s||r.props&&r.props.type==="number";kt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=as(l)),e[Jt](l)}),n&&kt(e,"change",()=>{e.value=e.value.trim()}),t||(kt(e,"compositionstart",Rf),kt(e,"compositionend",ci),kt(e,"change",ci))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[Jt]=gs(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?as(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},sr={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Ss(t);kt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?as(ys(i)):ys(i));e[Jt](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,no(()=>{e._assigning=!1})}),e[Jt]=gs(s)},mounted(e,{value:t,modifiers:{number:n}}){ai(e,t)},beforeUpdate(e,t,n){e[Jt]=gs(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ai(e,t)}};function ai(e,t,n){const s=e.multiple,r=H(t);if(!(s&&!r&&!Ss(t))){for(let o=0,i=e.options.length;oString(a)===String(c)):l.selected=va(t,c)>-1}else l.selected=t.has(c);else if(Cs(ys(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ys(e){return"_value"in e?e._value:e.value}const Cf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Tf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=vt(r.key);if(t.some(i=>i===o||Cf[i]===o))return e(r)})},Af=be({patchProp:xf},lf);let ui;function Pf(){return ui||(ui=Tu(Af))}const kf=(...e)=>{const t=Pf().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Lf(s);if(!r)return;const o=t._component;!G(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,If(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function If(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Lf(e){return fe(e)?document.querySelector(e):e}const lo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20width='430'%20height='430'%3e%3cdefs%3e%3clinearGradient%20id='svg_31'%20spreadMethod='pad'%3e%3cstop%20id='jq_stop_9381'%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20id='jq_stop_4866'%20offset='1'%20stop-color='%23000'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3crect%20id='svg_20'%20width='0'%20height='0'%20x='-249.892'%20y='35.054'%20fill='%2306d622'%20stroke='%2305ce16'%20stroke-width='20'/%3e%3ccircle%20id='svg_25'%20cx='215'%20cy='215'%20r='200'%20fill='%2322d662'%20stroke='%2316ce57'%20stroke-linejoin='round'%20stroke-width='30'/%3e%3cpath%20id='svg_27'%20fill='url(%23svg_31)'%20fill-opacity='0'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'%20d='m215,81c74.033149,0%20134,59.966851%20134,134c0,74.033149%20-59.966851,134%20-134,134c-74.033149,0%20-134,-59.966851%20-134,-134'/%3e%3cline%20id='svg_28'%20x1='215'%20x2='215'%20y1='81.828'%20y2='215'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'/%3e%3cline%20id='svg_29'%20x1='215'%20x2='255'%20y1='216.237'%20y2='175'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'/%3e%3cline%20id='svg_30'%20x1='215'%20x2='175'%20y1='216.774'%20y2='175.538'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'/%3e%3cpath%20id='svg_33'%20fill='url(%23svg_31)'%20fill-opacity='0'%20stroke='%2316ce57'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'%20d='m171.075278,88.279578c-34.946237,11.290323%20-68.279571,36.017306%20-83.333335,82.258066'/%3e%3c/g%3e%3c/svg%3e",Nn=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Nf={},Mf={class:"p-10 footer bg-neutral text-neutral-content"},$f=O("div",null,[O("img",{src:lo,width:"50",height:"50",viewBox:"0 0 24 24"}),O("p",null,[Zt("spotDL"),O("br"),Zt("Open Source Music Downloader")])],-1),Ff=zu('
Social
',1),Df=[$f,Ff];function jf(e,t){return V(),q("footer",Mf,Df)}const Uf=Nn(Nf,[["render",jf]]);function ac(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bf}=Object.prototype,{getPrototypeOf:co}=Object,Ds=(e=>t=>{const n=Bf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qe=e=>(e=e.toLowerCase(),t=>Ds(t)===e),js=e=>t=>typeof t===e,{isArray:nn}=Array,Cn=js("undefined");function Hf(e){return e!==null&&!Cn(e)&&e.constructor!==null&&!Cn(e.constructor)&&Me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uc=qe("ArrayBuffer");function Vf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uc(e.buffer),t}const qf=js("string"),Me=js("function"),fc=js("number"),Us=e=>e!==null&&typeof e=="object",Kf=e=>e===!0||e===!1,ss=e=>{if(Ds(e)!=="object")return!1;const t=co(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},zf=qe("Date"),Wf=qe("File"),Gf=qe("Blob"),Jf=qe("FileList"),Qf=e=>Us(e)&&Me(e.pipe),Xf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Me(e.append)&&((t=Ds(e))==="formdata"||t==="object"&&Me(e.toString)&&e.toString()==="[object FormData]"))},Yf=qe("URLSearchParams"),[Zf,ed,td,nd]=["ReadableStream","Request","Response","Headers"].map(qe),sd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),nn(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const hc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,pc=e=>!Cn(e)&&e!==hc;function Or(){const{caseless:e}=pc(this)&&this||{},t={},n=(s,r)=>{const o=e&&dc(t,r)||r;ss(t[o])&&ss(s)?t[o]=Or(t[o],s):ss(s)?t[o]=Or({},s):nn(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(Mn(t,(r,o)=>{n&&Me(r)?e[o]=ac(r,n):e[o]=r},{allOwnKeys:s}),e),od=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),id=(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)},ld=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&co(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cd=(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},ad=e=>{if(!e)return null;if(nn(e))return e;let t=e.length;if(!fc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ud=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&co(Uint8Array)),fd=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},dd=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},hd=qe("HTMLFormElement"),pd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),fi=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),md=qe("RegExp"),mc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Mn(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},gd=e=>{mc(e,(t,n)=>{if(Me(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Me(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+"'")})}})},yd=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return nn(e)?s(e):s(String(e).split(t)),n},_d=()=>{},bd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,rr="abcdefghijklmnopqrstuvwxyz",di="0123456789",gc={DIGIT:di,ALPHA:rr,ALPHA_DIGIT:rr+rr.toUpperCase()+di},wd=(e=16,t=gc.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function vd(e){return!!(e&&Me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Sd=e=>{const t=new Array(10),n=(s,r)=>{if(Us(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=nn(s)?[]:{};return Mn(s,(i,l)=>{const c=n(i,r+1);!Cn(c)&&(o[l]=c)}),t[r]=void 0,o}}return s};return n(e,0)},xd=qe("AsyncFunction"),Ed=e=>e&&(Us(e)||Me(e))&&Me(e.then)&&Me(e.catch),y={isArray:nn,isArrayBuffer:uc,isBuffer:Hf,isFormData:Xf,isArrayBufferView:Vf,isString:qf,isNumber:fc,isBoolean:Kf,isObject:Us,isPlainObject:ss,isReadableStream:Zf,isRequest:ed,isResponse:td,isHeaders:nd,isUndefined:Cn,isDate:zf,isFile:Wf,isBlob:Gf,isRegExp:md,isFunction:Me,isStream:Qf,isURLSearchParams:Yf,isTypedArray:ud,isFileList:Jf,forEach:Mn,merge:Or,extend:rd,trim:sd,stripBOM:od,inherits:id,toFlatObject:ld,kindOf:Ds,kindOfTest:qe,endsWith:cd,toArray:ad,forEachEntry:fd,matchAll:dd,isHTMLForm:hd,hasOwnProperty:fi,hasOwnProp:fi,reduceDescriptors:mc,freezeMethods:gd,toObjectSet:yd,toCamelCase:pd,noop:_d,toFiniteNumber:bd,findKey:dc,global:hc,isContextDefined:pc,ALPHABET:gc,generateString:wd,isSpecCompliantForm:vd,toJSONObject:Sd,isAsyncFn:xd,isThenable:Ed};function W(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)}y.inherits(W,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:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yc=W.prototype,_c={};["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=>{_c[e]={value:e}});Object.defineProperties(W,_c);Object.defineProperty(yc,"isAxiosError",{value:!0});W.from=(e,t,n,s,r,o)=>{const i=Object.create(yc);return y.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),W.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Rd=null;function Cr(e){return y.isPlainObject(e)||y.isArray(e)}function bc(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function hi(e,t,n){return e?e.concat(t).map(function(r,o){return r=bc(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Od(e){return y.isArray(e)&&!e.some(Cr)}const Cd=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Bs(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,E){return!y.isUndefined(E[_])});const s=n.metaTokens,r=n.visitor||a,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(r))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(y.isDate(b))return b.toISOString();if(!c&&y.isBlob(b))throw new W("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(b)||y.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function a(b,_,E){let F=b;if(b&&!E&&typeof b=="object"){if(y.endsWith(_,"{}"))_=s?_:_.slice(0,-2),b=JSON.stringify(b);else if(y.isArray(b)&&Od(b)||(y.isFileList(b)||y.endsWith(_,"[]"))&&(F=y.toArray(b)))return _=bc(_),F.forEach(function(C,B){!(y.isUndefined(C)||C===null)&&t.append(i===!0?hi([_],B,o):i===null?_:_+"[]",u(C))}),!1}return Cr(b)?!0:(t.append(hi(E,_,o),u(b)),!1)}const d=[],p=Object.assign(Cd,{defaultVisitor:a,convertValue:u,isVisitable:Cr});function m(b,_){if(!y.isUndefined(b)){if(d.indexOf(b)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(b),y.forEach(b,function(F,L){(!(y.isUndefined(F)||F===null)&&r.call(t,F,y.isString(L)?L.trim():L,_,p))===!0&&m(F,_?_.concat(L):[L])}),d.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return m(e),t}function pi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ao(e,t){this._pairs=[],e&&Bs(e,this,t)}const wc=ao.prototype;wc.append=function(t,n){this._pairs.push([t,n])};wc.toString=function(t){const n=t?function(s){return t.call(this,s,pi)}:pi;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Td(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vc(e,t,n){if(!t)return e;const s=n&&n.encode||Td,r=n&&n.serialize;let o;if(r?o=r(t,n):o=y.isURLSearchParams(t)?t.toString():new ao(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class mi{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){y.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Sc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ad=typeof URLSearchParams<"u"?URLSearchParams:ao,Pd=typeof FormData<"u"?FormData:null,kd=typeof Blob<"u"?Blob:null,Id={isBrowser:!0,classes:{URLSearchParams:Ad,FormData:Pd,Blob:kd},protocols:["http","https","file","blob","url","data"]},uo=typeof window<"u"&&typeof document<"u",Ld=(e=>uo&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Nd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Md=uo&&window.location.href||"http://localhost",$d=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uo,hasStandardBrowserEnv:Ld,hasStandardBrowserWebWorkerEnv:Nd,origin:Md},Symbol.toStringTag,{value:"Module"})),Be={...$d,...Id};function Fd(e,t){return Bs(e,new Be.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return Be.isNode&&y.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Dd(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jd(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&y.isArray(r)?r.length:i,c?(y.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!l):((!r[i]||!y.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&y.isArray(r[i])&&(r[i]=jd(r[i])),!l)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(s,r)=>{t(Dd(s),r,n,0)}),n}return null}function Ud(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const $n={transitional:Sc,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=y.isObject(t);if(o&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return r?JSON.stringify(xc(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Fd(t,this.formSerializer).toString();if((l=y.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Bs(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Ud(t)):t}],transformResponse:[function(t){const n=this.transitional||$n.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?W.from(l,W.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Be.classes.FormData,Blob:Be.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{$n.headers[e]={}});const Bd=y.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"]),Hd=e=>{const t={};let n,s,r;return e&&e.split(` -`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Bd[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},gi=Symbol("internals");function an(e){return e&&String(e).trim().toLowerCase()}function rs(e){return e===!1||e==null?e:y.isArray(e)?e.map(rs):String(e)}function Vd(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 qd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function or(e,t,n,s,r){if(y.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!y.isString(t)){if(y.isString(s))return t.indexOf(s)!==-1;if(y.isRegExp(s))return s.test(t)}}function Kd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function zd(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class Re{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,c,u){const a=an(c);if(!a)throw new Error("header name must be a non-empty string");const d=y.findKey(r,a);(!d||r[d]===void 0||u===!0||u===void 0&&r[d]!==!1)&&(r[d||c]=rs(l))}const i=(l,c)=>y.forEach(l,(u,a)=>o(u,a,c));if(y.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(y.isString(t)&&(t=t.trim())&&!qd(t))i(Hd(t),n);else if(y.isHeaders(t))for(const[l,c]of t.entries())o(c,l,s);else t!=null&&o(n,t,s);return this}get(t,n){if(t=an(t),t){const s=y.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Vd(r);if(y.isFunction(n))return n.call(this,r,s);if(y.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=an(t),t){const s=y.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||or(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=an(i),i){const l=y.findKey(s,i);l&&(!n||or(s,s[l],l,n))&&(delete s[l],r=!0)}}return y.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||or(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return y.forEach(this,(r,o)=>{const i=y.findKey(s,o);if(i){n[i]=rs(r),delete n[o];return}const l=t?Kd(o):String(o).trim();l!==o&&delete n[o],n[l]=rs(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&y.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[gi]=this[gi]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=an(i);s[l]||(zd(r,i),s[l]=!0)}return y.isArray(t)?t.forEach(o):o(t),this}}Re.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(Re.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});y.freezeMethods(Re);function ir(e,t){const n=this||$n,s=t||n,r=Re.from(s.headers);let o=s.data;return y.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Ec(e){return!!(e&&e.__CANCEL__)}function sn(e,t,n){W.call(this,e??"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError"}y.inherits(sn,W,{__CANCEL__:!0});function Rc(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Wd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Gd(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),a=s[o];i||(i=u),n[r]=c,s[r]=u;let d=o,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-is)return r&&(clearTimeout(r),r=null),n=l,e.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),e.apply(null,arguments)),s-(l-n)))}}const _s=(e,t,n=3)=>{let s=0;const r=Gd(50,250);return Jd(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-s,u=r(c),a=i<=l;s=i;const d={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&a?(l-i)/u:void 0,event:o,lengthComputable:l!=null};d[t?"download":"upload"]=!0,e(d)},n)},Qd=Be.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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(i){const l=y.isString(i)?r(i):i;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),Xd=Be.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(s)&&i.push("path="+s),y.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.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 Yd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Zd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Oc(e,t){return e&&!Yd(t)?Zd(e,t):t}const yi=e=>e instanceof Re?{...e}:e;function Dt(e,t){t=t||{};const n={};function s(u,a,d){return y.isPlainObject(u)&&y.isPlainObject(a)?y.merge.call({caseless:d},u,a):y.isPlainObject(a)?y.merge({},a):y.isArray(a)?a.slice():a}function r(u,a,d){if(y.isUndefined(a)){if(!y.isUndefined(u))return s(void 0,u,d)}else return s(u,a,d)}function o(u,a){if(!y.isUndefined(a))return s(void 0,a)}function i(u,a){if(y.isUndefined(a)){if(!y.isUndefined(u))return s(void 0,u)}else return s(void 0,a)}function l(u,a,d){if(d in t)return s(u,a);if(d in e)return s(void 0,u)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,a)=>r(yi(u),yi(a),!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(a){const d=c[a]||r,p=d(e[a],t[a],a);y.isUndefined(p)&&d!==l||(n[a]=p)}),n}const Cc=e=>{const t=Dt({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=Re.from(i),t.url=vc(Oc(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(y.isFormData(n)){if(Be.hasStandardBrowserEnv||Be.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...a]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...a].join("; "))}}if(Be.hasStandardBrowserEnv&&(s&&y.isFunction(s)&&(s=s(t)),s||s!==!1&&Qd(t.url))){const u=r&&o&&Xd.read(o);u&&i.set(r,u)}return t},eh=typeof XMLHttpRequest<"u",th=eh&&function(e){return new Promise(function(n,s){const r=Cc(e);let o=r.data;const i=Re.from(r.headers).normalize();let{responseType:l}=r,c;function u(){r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let a=new XMLHttpRequest;a.open(r.method.toUpperCase(),r.url,!0),a.timeout=r.timeout;function d(){if(!a)return;const m=Re.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),_={data:!l||l==="text"||l==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};Rc(function(F){n(F),u()},function(F){s(F),u()},_),a=null}"onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(s(new W("Request aborted",W.ECONNABORTED,r,a)),a=null)},a.onerror=function(){s(new W("Network Error",W.ERR_NETWORK,r,a)),a=null},a.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const _=r.transitional||Sc;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),s(new W(b,_.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,r,a)),a=null},o===void 0&&i.setContentType(null),"setRequestHeader"in a&&y.forEach(i.toJSON(),function(b,_){a.setRequestHeader(_,b)}),y.isUndefined(r.withCredentials)||(a.withCredentials=!!r.withCredentials),l&&l!=="json"&&(a.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&a.addEventListener("progress",_s(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",_s(r.onUploadProgress)),(r.cancelToken||r.signal)&&(c=m=>{a&&(s(!m||m.type?new sn(null,e,a):m),a.abort(),a=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const p=Wd(r.url);if(p&&Be.protocols.indexOf(p)===-1){s(new W("Unsupported protocol "+p+":",W.ERR_BAD_REQUEST,e));return}a.send(o||null)})},nh=(e,t)=>{let n=new AbortController,s;const r=function(c){if(!s){s=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof W?u:new sn(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{r(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",r):c.unsubscribe(r))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",r));const{signal:l}=n;return l.unsubscribe=i,[l,()=>{o&&clearTimeout(o),o=null}]},sh=function*(e,t){let n=e.byteLength;if(!t||n{const o=rh(e,t,r);let i=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await o.next();if(c){l.close(),s();return}let a=u.byteLength;n&&n(i+=a),l.enqueue(new Uint8Array(u))},cancel(l){return s(l),o.return()}},{highWaterMark:2})},bi=(e,t)=>{const n=e!=null;return s=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:s}))},Hs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Tc=Hs&&typeof ReadableStream=="function",Tr=Hs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),oh=Tc&&(()=>{let e=!1;const t=new Request(Be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),wi=64*1024,Ar=Tc&&!!(()=>{try{return y.isReadableStream(new Response("").body)}catch{}})(),bs={stream:Ar&&(e=>e.body)};Hs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!bs[t]&&(bs[t]=y.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,s)})})})(new Response);const ih=async e=>{if(e==null)return 0;if(y.isBlob(e))return e.size;if(y.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(y.isArrayBufferView(e))return e.byteLength;if(y.isURLSearchParams(e)&&(e=e+""),y.isString(e))return(await Tr(e)).byteLength},lh=async(e,t)=>{const n=y.toFiniteNumber(e.getContentLength());return n??ih(t)},ch=Hs&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:a,withCredentials:d="same-origin",fetchOptions:p}=Cc(e);u=u?(u+"").toLowerCase():"text";let[m,b]=r||o||i?nh([r,o],i):[],_,E;const F=()=>{!_&&setTimeout(()=>{m&&m.unsubscribe()}),_=!0};let L;try{if(c&&oh&&n!=="get"&&n!=="head"&&(L=await lh(a,s))!==0){let P=new Request(t,{method:"POST",body:s,duplex:"half"}),z;y.isFormData(s)&&(z=P.headers.get("content-type"))&&a.setContentType(z),P.body&&(s=_i(P.body,wi,bi(L,_s(c)),null,Tr))}y.isString(d)||(d=d?"cors":"omit"),E=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:s,duplex:"half",withCredentials:d});let C=await fetch(E);const B=Ar&&(u==="stream"||u==="response");if(Ar&&(l||B)){const P={};["status","statusText","headers"].forEach(ae=>{P[ae]=C[ae]});const z=y.toFiniteNumber(C.headers.get("content-length"));C=new Response(_i(C.body,wi,l&&bi(z,_s(l,!0)),B&&F,Tr),P)}u=u||"text";let re=await bs[y.findKey(bs,u)||"text"](C,e);return!B&&F(),b&&b(),await new Promise((P,z)=>{Rc(P,z,{data:re,headers:Re.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:E})})}catch(C){throw F(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,E),{cause:C.cause||C}):W.from(C,C&&C.code,e,E)}}),Pr={http:Rd,xhr:th,fetch:ch};y.forEach(Pr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vi=e=>`- ${e}`,ah=e=>y.isFunction(e)||e===null||e===!1,Ac={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +**/const of="http://www.w3.org/2000/svg",lf="http://www.w3.org/1998/Math/MathML",nt=typeof document<"u"?document:null,Zo=nt&&nt.createElement("template"),cf={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"?nt.createElementNS(of,e):t==="mathml"?nt.createElementNS(lf,e):n?nt.createElement(e,{is:n}):nt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>nt.createTextNode(e),createComment:e=>nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Zo.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=Zo.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},af=Symbol("_vtc");function uf(e,t,n){const s=e[af];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ei=Symbol("_vod"),ff=Symbol("_vsh"),df=Symbol(""),hf=/(^|;)\s*display\s*:/;function pf(e,t,n){const s=e.style,r=fe(n);let o=!1;if(n&&!r){if(t)if(fe(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&ns(s,l,"")}else for(const i in t)n[i]==null&&ns(s,i,"");for(const i in n)i==="display"&&(o=!0),ns(s,i,n[i])}else if(r){if(t!==n){const i=s[df];i&&(n+=";"+i),s.cssText=n,o=hf.test(n)}}else t&&e.removeAttribute("style");ei in e&&(e[ei]=o?s.display:"",e[ff]&&(s.display="none"))}const ti=/\s*!important$/;function ns(e,t,n){if(H(n))n.forEach(s=>ns(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=mf(e,t);ti.test(n)?e.setProperty(vt(s),n.replace(ti,""),"important"):e[s]=n}}const ni=["Webkit","Moz","ms"],tr={};function mf(e,t){const n=tr[t];if(n)return n;let s=He(t);if(s!=="filter"&&s in e)return tr[t]=s;s=Es(s);for(let r=0;rnr||(wf.then(()=>nr=0),nr=Date.now());function Sf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ue(xf(s,n.value),t,5,[s])};return n.value=e,n.attached=vf(),n}function xf(e,t){if(H(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 li=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ef=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?uf(e,s,i):t==="style"?pf(e,n,s):vs(t)?Kr(t)||_f(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rf(e,t,s,i))?(gf(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ri(e,t,s,i,o,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ri(e,t,s,i))};function Rf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&li(t)&&G(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 li(t)&&fe(n)?!1:t in e}const gs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Jn(t,n):t};function Of(e){e.target.composing=!0}function ci(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Jt=Symbol("_assign"),Cf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Jt]=gs(r);const o=s||r.props&&r.props.type==="number";kt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=as(l)),e[Jt](l)}),n&&kt(e,"change",()=>{e.value=e.value.trim()}),t||(kt(e,"compositionstart",Of),kt(e,"compositionend",ci),kt(e,"change",ci))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[Jt]=gs(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?as(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},sr={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Ss(t);kt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?as(ys(i)):ys(i));e[Jt](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,no(()=>{e._assigning=!1})}),e[Jt]=gs(s)},mounted(e,{value:t,modifiers:{number:n}}){ai(e,t)},beforeUpdate(e,t,n){e[Jt]=gs(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ai(e,t)}};function ai(e,t,n){const s=e.multiple,r=H(t);if(!(s&&!r&&!Ss(t))){for(let o=0,i=e.options.length;oString(a)===String(c)):l.selected=Sa(t,c)>-1}else l.selected=t.has(c);else if(Cs(ys(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ys(e){return"_value"in e?e._value:e.value}const Tf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Af=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=vt(r.key);if(t.some(i=>i===o||Tf[i]===o))return e(r)})},Pf=be({patchProp:Ef},cf);let ui;function kf(){return ui||(ui=Au(Pf))}const If=(...e)=>{const t=kf().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Nf(s);if(!r)return;const o=t._component;!G(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Lf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Lf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Nf(e){return fe(e)?document.querySelector(e):e}const lo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20width='430'%20height='430'%3e%3cdefs%3e%3clinearGradient%20id='svg_31'%20spreadMethod='pad'%3e%3cstop%20id='jq_stop_9381'%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20id='jq_stop_4866'%20offset='1'%20stop-color='%23000'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3crect%20id='svg_20'%20width='0'%20height='0'%20x='-249.892'%20y='35.054'%20fill='%2306d622'%20stroke='%2305ce16'%20stroke-width='20'/%3e%3ccircle%20id='svg_25'%20cx='215'%20cy='215'%20r='200'%20fill='%2322d662'%20stroke='%2316ce57'%20stroke-linejoin='round'%20stroke-width='30'/%3e%3cpath%20id='svg_27'%20fill='url(%23svg_31)'%20fill-opacity='0'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'%20d='m215,81c74.033149,0%20134,59.966851%20134,134c0,74.033149%20-59.966851,134%20-134,134c-74.033149,0%20-134,-59.966851%20-134,-134'/%3e%3cline%20id='svg_28'%20x1='215'%20x2='215'%20y1='81.828'%20y2='215'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'/%3e%3cline%20id='svg_29'%20x1='215'%20x2='255'%20y1='216.237'%20y2='175'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'/%3e%3cline%20id='svg_30'%20x1='215'%20x2='175'%20y1='216.774'%20y2='175.538'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'/%3e%3cpath%20id='svg_33'%20fill='url(%23svg_31)'%20fill-opacity='0'%20stroke='%2316ce57'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='30'%20d='m171.075278,88.279578c-34.946237,11.290323%20-68.279571,36.017306%20-83.333335,82.258066'/%3e%3c/g%3e%3c/svg%3e",Nn=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Mf={},$f={class:"p-10 footer bg-neutral text-neutral-content"},Ff=O("div",null,[O("img",{src:lo,width:"50",height:"50",viewBox:"0 0 24 24"}),O("p",null,[Zt("spotDL"),O("br"),Zt("Open Source Music Downloader")])],-1),Df=Wu('
Social
',1),jf=[Ff,Df];function Uf(e,t){return V(),q("footer",$f,jf)}const Bf=Nn(Mf,[["render",Uf]]);function uc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hf}=Object.prototype,{getPrototypeOf:co}=Object,Ds=(e=>t=>{const n=Hf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qe=e=>(e=e.toLowerCase(),t=>Ds(t)===e),js=e=>t=>typeof t===e,{isArray:nn}=Array,Cn=js("undefined");function Vf(e){return e!==null&&!Cn(e)&&e.constructor!==null&&!Cn(e.constructor)&&Me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fc=qe("ArrayBuffer");function qf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fc(e.buffer),t}const Kf=js("string"),Me=js("function"),dc=js("number"),Us=e=>e!==null&&typeof e=="object",zf=e=>e===!0||e===!1,ss=e=>{if(Ds(e)!=="object")return!1;const t=co(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wf=qe("Date"),Gf=qe("File"),Jf=qe("Blob"),Qf=qe("FileList"),Xf=e=>Us(e)&&Me(e.pipe),Yf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Me(e.append)&&((t=Ds(e))==="formdata"||t==="object"&&Me(e.toString)&&e.toString()==="[object FormData]"))},Zf=qe("URLSearchParams"),[ed,td,nd,sd]=["ReadableStream","Request","Response","Headers"].map(qe),rd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),nn(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const pc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mc=e=>!Cn(e)&&e!==pc;function Or(){const{caseless:e}=mc(this)&&this||{},t={},n=(s,r)=>{const o=e&&hc(t,r)||r;ss(t[o])&&ss(s)?t[o]=Or(t[o],s):ss(s)?t[o]=Or({},s):nn(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(Mn(t,(r,o)=>{n&&Me(r)?e[o]=uc(r,n):e[o]=r},{allOwnKeys:s}),e),id=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ld=(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)},cd=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&co(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ad=(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},ud=e=>{if(!e)return null;if(nn(e))return e;let t=e.length;if(!dc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},fd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&co(Uint8Array)),dd=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},hd=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},pd=qe("HTMLFormElement"),md=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),fi=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gd=qe("RegExp"),gc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Mn(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},yd=e=>{gc(e,(t,n)=>{if(Me(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Me(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+"'")})}})},_d=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return nn(e)?s(e):s(String(e).split(t)),n},bd=()=>{},wd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,rr="abcdefghijklmnopqrstuvwxyz",di="0123456789",yc={DIGIT:di,ALPHA:rr,ALPHA_DIGIT:rr+rr.toUpperCase()+di},vd=(e=16,t=yc.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function Sd(e){return!!(e&&Me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xd=e=>{const t=new Array(10),n=(s,r)=>{if(Us(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=nn(s)?[]:{};return Mn(s,(i,l)=>{const c=n(i,r+1);!Cn(c)&&(o[l]=c)}),t[r]=void 0,o}}return s};return n(e,0)},Ed=qe("AsyncFunction"),Rd=e=>e&&(Us(e)||Me(e))&&Me(e.then)&&Me(e.catch),y={isArray:nn,isArrayBuffer:fc,isBuffer:Vf,isFormData:Yf,isArrayBufferView:qf,isString:Kf,isNumber:dc,isBoolean:zf,isObject:Us,isPlainObject:ss,isReadableStream:ed,isRequest:td,isResponse:nd,isHeaders:sd,isUndefined:Cn,isDate:Wf,isFile:Gf,isBlob:Jf,isRegExp:gd,isFunction:Me,isStream:Xf,isURLSearchParams:Zf,isTypedArray:fd,isFileList:Qf,forEach:Mn,merge:Or,extend:od,trim:rd,stripBOM:id,inherits:ld,toFlatObject:cd,kindOf:Ds,kindOfTest:qe,endsWith:ad,toArray:ud,forEachEntry:dd,matchAll:hd,isHTMLForm:pd,hasOwnProperty:fi,hasOwnProp:fi,reduceDescriptors:gc,freezeMethods:yd,toObjectSet:_d,toCamelCase:md,noop:bd,toFiniteNumber:wd,findKey:hc,global:pc,isContextDefined:mc,ALPHABET:yc,generateString:vd,isSpecCompliantForm:Sd,toJSONObject:xd,isAsyncFn:Ed,isThenable:Rd};function W(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)}y.inherits(W,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:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _c=W.prototype,bc={};["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=>{bc[e]={value:e}});Object.defineProperties(W,bc);Object.defineProperty(_c,"isAxiosError",{value:!0});W.from=(e,t,n,s,r,o)=>{const i=Object.create(_c);return y.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),W.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Od=null;function Cr(e){return y.isPlainObject(e)||y.isArray(e)}function wc(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function hi(e,t,n){return e?e.concat(t).map(function(r,o){return r=wc(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Cd(e){return y.isArray(e)&&!e.some(Cr)}const Td=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Bs(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,E){return!y.isUndefined(E[_])});const s=n.metaTokens,r=n.visitor||a,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(r))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(y.isDate(b))return b.toISOString();if(!c&&y.isBlob(b))throw new W("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(b)||y.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function a(b,_,E){let F=b;if(b&&!E&&typeof b=="object"){if(y.endsWith(_,"{}"))_=s?_:_.slice(0,-2),b=JSON.stringify(b);else if(y.isArray(b)&&Cd(b)||(y.isFileList(b)||y.endsWith(_,"[]"))&&(F=y.toArray(b)))return _=wc(_),F.forEach(function(C,B){!(y.isUndefined(C)||C===null)&&t.append(i===!0?hi([_],B,o):i===null?_:_+"[]",u(C))}),!1}return Cr(b)?!0:(t.append(hi(E,_,o),u(b)),!1)}const d=[],p=Object.assign(Td,{defaultVisitor:a,convertValue:u,isVisitable:Cr});function m(b,_){if(!y.isUndefined(b)){if(d.indexOf(b)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(b),y.forEach(b,function(F,L){(!(y.isUndefined(F)||F===null)&&r.call(t,F,y.isString(L)?L.trim():L,_,p))===!0&&m(F,_?_.concat(L):[L])}),d.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return m(e),t}function pi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ao(e,t){this._pairs=[],e&&Bs(e,this,t)}const vc=ao.prototype;vc.append=function(t,n){this._pairs.push([t,n])};vc.toString=function(t){const n=t?function(s){return t.call(this,s,pi)}:pi;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Ad(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sc(e,t,n){if(!t)return e;const s=n&&n.encode||Ad,r=n&&n.serialize;let o;if(r?o=r(t,n):o=y.isURLSearchParams(t)?t.toString():new ao(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class mi{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){y.forEach(this.handlers,function(s){s!==null&&t(s)})}}const xc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pd=typeof URLSearchParams<"u"?URLSearchParams:ao,kd=typeof FormData<"u"?FormData:null,Id=typeof Blob<"u"?Blob:null,Ld={isBrowser:!0,classes:{URLSearchParams:Pd,FormData:kd,Blob:Id},protocols:["http","https","file","blob","url","data"]},uo=typeof window<"u"&&typeof document<"u",Nd=(e=>uo&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Md=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$d=uo&&window.location.href||"http://localhost",Fd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uo,hasStandardBrowserEnv:Nd,hasStandardBrowserWebWorkerEnv:Md,origin:$d},Symbol.toStringTag,{value:"Module"})),Be={...Fd,...Ld};function Dd(e,t){return Bs(e,new Be.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return Be.isNode&&y.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function jd(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ud(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&y.isArray(r)?r.length:i,c?(y.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!l):((!r[i]||!y.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&y.isArray(r[i])&&(r[i]=Ud(r[i])),!l)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(s,r)=>{t(jd(s),r,n,0)}),n}return null}function Bd(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const $n={transitional:xc,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=y.isObject(t);if(o&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return r?JSON.stringify(Ec(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Dd(t,this.formSerializer).toString();if((l=y.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Bs(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Bd(t)):t}],transformResponse:[function(t){const n=this.transitional||$n.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?W.from(l,W.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Be.classes.FormData,Blob:Be.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{$n.headers[e]={}});const Hd=y.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"]),Vd=e=>{const t={};let n,s,r;return e&&e.split(` +`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Hd[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},gi=Symbol("internals");function an(e){return e&&String(e).trim().toLowerCase()}function rs(e){return e===!1||e==null?e:y.isArray(e)?e.map(rs):String(e)}function qd(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 Kd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function or(e,t,n,s,r){if(y.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!y.isString(t)){if(y.isString(s))return t.indexOf(s)!==-1;if(y.isRegExp(s))return s.test(t)}}function zd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Wd(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class Re{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,c,u){const a=an(c);if(!a)throw new Error("header name must be a non-empty string");const d=y.findKey(r,a);(!d||r[d]===void 0||u===!0||u===void 0&&r[d]!==!1)&&(r[d||c]=rs(l))}const i=(l,c)=>y.forEach(l,(u,a)=>o(u,a,c));if(y.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(y.isString(t)&&(t=t.trim())&&!Kd(t))i(Vd(t),n);else if(y.isHeaders(t))for(const[l,c]of t.entries())o(c,l,s);else t!=null&&o(n,t,s);return this}get(t,n){if(t=an(t),t){const s=y.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return qd(r);if(y.isFunction(n))return n.call(this,r,s);if(y.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=an(t),t){const s=y.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||or(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=an(i),i){const l=y.findKey(s,i);l&&(!n||or(s,s[l],l,n))&&(delete s[l],r=!0)}}return y.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||or(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return y.forEach(this,(r,o)=>{const i=y.findKey(s,o);if(i){n[i]=rs(r),delete n[o];return}const l=t?zd(o):String(o).trim();l!==o&&delete n[o],n[l]=rs(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&y.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[gi]=this[gi]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=an(i);s[l]||(Wd(r,i),s[l]=!0)}return y.isArray(t)?t.forEach(o):o(t),this}}Re.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(Re.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});y.freezeMethods(Re);function ir(e,t){const n=this||$n,s=t||n,r=Re.from(s.headers);let o=s.data;return y.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Rc(e){return!!(e&&e.__CANCEL__)}function sn(e,t,n){W.call(this,e??"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError"}y.inherits(sn,W,{__CANCEL__:!0});function Oc(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Gd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jd(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),a=s[o];i||(i=u),n[r]=c,s[r]=u;let d=o,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-is)return r&&(clearTimeout(r),r=null),n=l,e.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),e.apply(null,arguments)),s-(l-n)))}}const _s=(e,t,n=3)=>{let s=0;const r=Jd(50,250);return Qd(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-s,u=r(c),a=i<=l;s=i;const d={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&a?(l-i)/u:void 0,event:o,lengthComputable:l!=null};d[t?"download":"upload"]=!0,e(d)},n)},Xd=Be.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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(i){const l=y.isString(i)?r(i):i;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),Yd=Be.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(s)&&i.push("path="+s),y.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.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 Zd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Cc(e,t){return e&&!Zd(t)?eh(e,t):t}const yi=e=>e instanceof Re?{...e}:e;function Dt(e,t){t=t||{};const n={};function s(u,a,d){return y.isPlainObject(u)&&y.isPlainObject(a)?y.merge.call({caseless:d},u,a):y.isPlainObject(a)?y.merge({},a):y.isArray(a)?a.slice():a}function r(u,a,d){if(y.isUndefined(a)){if(!y.isUndefined(u))return s(void 0,u,d)}else return s(u,a,d)}function o(u,a){if(!y.isUndefined(a))return s(void 0,a)}function i(u,a){if(y.isUndefined(a)){if(!y.isUndefined(u))return s(void 0,u)}else return s(void 0,a)}function l(u,a,d){if(d in t)return s(u,a);if(d in e)return s(void 0,u)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,a)=>r(yi(u),yi(a),!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(a){const d=c[a]||r,p=d(e[a],t[a],a);y.isUndefined(p)&&d!==l||(n[a]=p)}),n}const Tc=e=>{const t=Dt({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=Re.from(i),t.url=Sc(Cc(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(y.isFormData(n)){if(Be.hasStandardBrowserEnv||Be.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...a]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...a].join("; "))}}if(Be.hasStandardBrowserEnv&&(s&&y.isFunction(s)&&(s=s(t)),s||s!==!1&&Xd(t.url))){const u=r&&o&&Yd.read(o);u&&i.set(r,u)}return t},th=typeof XMLHttpRequest<"u",nh=th&&function(e){return new Promise(function(n,s){const r=Tc(e);let o=r.data;const i=Re.from(r.headers).normalize();let{responseType:l}=r,c;function u(){r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let a=new XMLHttpRequest;a.open(r.method.toUpperCase(),r.url,!0),a.timeout=r.timeout;function d(){if(!a)return;const m=Re.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),_={data:!l||l==="text"||l==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};Oc(function(F){n(F),u()},function(F){s(F),u()},_),a=null}"onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(s(new W("Request aborted",W.ECONNABORTED,r,a)),a=null)},a.onerror=function(){s(new W("Network Error",W.ERR_NETWORK,r,a)),a=null},a.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const _=r.transitional||xc;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),s(new W(b,_.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,r,a)),a=null},o===void 0&&i.setContentType(null),"setRequestHeader"in a&&y.forEach(i.toJSON(),function(b,_){a.setRequestHeader(_,b)}),y.isUndefined(r.withCredentials)||(a.withCredentials=!!r.withCredentials),l&&l!=="json"&&(a.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&a.addEventListener("progress",_s(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",_s(r.onUploadProgress)),(r.cancelToken||r.signal)&&(c=m=>{a&&(s(!m||m.type?new sn(null,e,a):m),a.abort(),a=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const p=Gd(r.url);if(p&&Be.protocols.indexOf(p)===-1){s(new W("Unsupported protocol "+p+":",W.ERR_BAD_REQUEST,e));return}a.send(o||null)})},sh=(e,t)=>{let n=new AbortController,s;const r=function(c){if(!s){s=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof W?u:new sn(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{r(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",r):c.unsubscribe(r))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",r));const{signal:l}=n;return l.unsubscribe=i,[l,()=>{o&&clearTimeout(o),o=null}]},rh=function*(e,t){let n=e.byteLength;if(!t||n{const o=oh(e,t,r);let i=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await o.next();if(c){l.close(),s();return}let a=u.byteLength;n&&n(i+=a),l.enqueue(new Uint8Array(u))},cancel(l){return s(l),o.return()}},{highWaterMark:2})},bi=(e,t)=>{const n=e!=null;return s=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:s}))},Hs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ac=Hs&&typeof ReadableStream=="function",Tr=Hs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ih=Ac&&(()=>{let e=!1;const t=new Request(Be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),wi=64*1024,Ar=Ac&&!!(()=>{try{return y.isReadableStream(new Response("").body)}catch{}})(),bs={stream:Ar&&(e=>e.body)};Hs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!bs[t]&&(bs[t]=y.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,s)})})})(new Response);const lh=async e=>{if(e==null)return 0;if(y.isBlob(e))return e.size;if(y.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(y.isArrayBufferView(e))return e.byteLength;if(y.isURLSearchParams(e)&&(e=e+""),y.isString(e))return(await Tr(e)).byteLength},ch=async(e,t)=>{const n=y.toFiniteNumber(e.getContentLength());return n??lh(t)},ah=Hs&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:a,withCredentials:d="same-origin",fetchOptions:p}=Tc(e);u=u?(u+"").toLowerCase():"text";let[m,b]=r||o||i?sh([r,o],i):[],_,E;const F=()=>{!_&&setTimeout(()=>{m&&m.unsubscribe()}),_=!0};let L;try{if(c&&ih&&n!=="get"&&n!=="head"&&(L=await ch(a,s))!==0){let P=new Request(t,{method:"POST",body:s,duplex:"half"}),z;y.isFormData(s)&&(z=P.headers.get("content-type"))&&a.setContentType(z),P.body&&(s=_i(P.body,wi,bi(L,_s(c)),null,Tr))}y.isString(d)||(d=d?"cors":"omit"),E=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:s,duplex:"half",withCredentials:d});let C=await fetch(E);const B=Ar&&(u==="stream"||u==="response");if(Ar&&(l||B)){const P={};["status","statusText","headers"].forEach(ae=>{P[ae]=C[ae]});const z=y.toFiniteNumber(C.headers.get("content-length"));C=new Response(_i(C.body,wi,l&&bi(z,_s(l,!0)),B&&F,Tr),P)}u=u||"text";let re=await bs[y.findKey(bs,u)||"text"](C,e);return!B&&F(),b&&b(),await new Promise((P,z)=>{Oc(P,z,{data:re,headers:Re.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:E})})}catch(C){throw F(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,E),{cause:C.cause||C}):W.from(C,C&&C.code,e,E)}}),Pr={http:Od,xhr:nh,fetch:ah};y.forEach(Pr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vi=e=>`- ${e}`,uh=e=>y.isFunction(e)||e===null||e===!1,Pc={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(vi).join(` -`):" "+vi(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Pr};function lr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sn(null,e)}function Si(e){return lr(e),e.headers=Re.from(e.headers),e.data=ir.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ac.getAdapter(e.adapter||$n.adapter)(e).then(function(s){return lr(e),s.data=ir.call(e,e.transformResponse,s),s.headers=Re.from(s.headers),s},function(s){return Ec(s)||(lr(e),s&&s.response&&(s.response.data=ir.call(e,e.transformResponse,s.response),s.response.headers=Re.from(s.response.headers))),Promise.reject(s)})}const Pc="1.7.2",fo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fo[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const xi={};fo.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Pc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new W(r(i," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!xi[i]&&(xi[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function uh(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new W("option "+o+" must be "+c,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const kr={assertOptions:uh,validators:fo},ut=kr.validators;class Mt{constructor(t){this.defaults=t,this.interceptors={request:new mi,response:new mi}}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 o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Dt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&kr.assertOptions(s,{silentJSONParsing:ut.transitional(ut.boolean),forcedJSONParsing:ut.transitional(ut.boolean),clarifyTimeoutError:ut.transitional(ut.boolean)},!1),r!=null&&(y.isFunction(r)?n.paramsSerializer={serialize:r}:kr.assertOptions(r,{encode:ut.function,serialize:ut.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&y.merge(o.common,o[n.method]);o&&y.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),n.headers=Re.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let a,d=0,p;if(!c){const b=[Si.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,u),p=b.length,a=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new sn(o,i,l),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 ho(function(r){t=r}),cancel:t}}}function fh(e){return function(n){return e.apply(null,n)}}function dh(e){return y.isObject(e)&&e.isAxiosError===!0}const Ir={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(Ir).forEach(([e,t])=>{Ir[t]=e});function kc(e){const t=new Mt(e),n=ac(Mt.prototype.request,t);return y.extend(n,Mt.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return kc(Dt(e,r))},n}const ue=kc($n);ue.Axios=Mt;ue.CanceledError=sn;ue.CancelToken=ho;ue.isCancel=Ec;ue.VERSION=Pc;ue.toFormData=Bs;ue.AxiosError=W;ue.Cancel=ue.CanceledError;ue.all=function(t){return Promise.all(t)};ue.spread=fh;ue.isAxiosError=dh;ue.mergeConfig=Dt;ue.AxiosHeaders=Re;ue.formToJSON=e=>xc(y.isHTMLForm(e)?new FormData(e):e);ue.getAdapter=Ac.getAdapter;ue.HttpStatusCode=Ir;ue.default=ue;var qt={};const je={PROTOCOL:qt.PROTOCOL||window.location.protocol,WS_PROTOCOL:qt.WS_PROTOCOL||window.location.protocol==="https:"?"wss:":"ws:",BACKEND:qt.BACKEND||window.location.hostname,PORT:qt.PORT||window.location.port,WS_PORT:qt.WS_PORT||window.location.port,BASEURL:qt.BASEURL||""};let Kn;const hh=new Uint8Array(16);function ph(){if(!Kn&&(Kn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Kn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Kn(hh)}const ge=[];for(let e=0;e<256;++e)ge.push((e+256).toString(16).slice(1));function mh(e,t=0){return ge[e[t+0]]+ge[e[t+1]]+ge[e[t+2]]+ge[e[t+3]]+"-"+ge[e[t+4]]+ge[e[t+5]]+"-"+ge[e[t+6]]+ge[e[t+7]]+"-"+ge[e[t+8]]+ge[e[t+9]]+"-"+ge[e[t+10]]+ge[e[t+11]]+ge[e[t+12]]+ge[e[t+13]]+ge[e[t+14]]+ge[e[t+15]]}const gh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ei={randomUUID:gh};function yh(e,t,n){if(Ei.randomUUID&&!t&&!e)return Ei.randomUUID();e=e||{};const s=e.random||(e.rng||ph)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,mh(s)}var _h={};console.log("using env:",_h);console.log("using config: ",je);const ot=ue.create({baseURL:`${je.PROTOCOL}//${je.BACKEND}:${je.PORT}${je.BASEURL}`}),rn=yh();console.log("session ID: ",rn);Ic();const po=new WebSocket(`${je.WS_PROTOCOL}//${je.BACKEND}${je.PORT!==""?":"+je.PORT:""}${je.BASEURL}/api/ws?client_id=${rn}`);po.onopen=e=>{console.log("websocket connection opened",e)};function Ic(){ot.get("/api/version").then(e=>{const t=localStorage.getItem("version");console.log("Backend version: ",e.data),localStorage.setItem("version",e.data),t!=e.data&&location.reload()}).catch(e=>{console.error(e),console.log("Error getting version, using 0"),localStorage.setItem("version","0.0.0")})}function bh(e){return ot.get("/api/songs/search",{params:{query:e}})}function wh(e){return localStorage.getItem("version")>="4"?ot.get("/api/url",{params:{url:e}}):ot.get("/api/song/url",{params:{url:e}})}function vh(e){return ot.post("/api/download/url",null,{params:{url:e,client_id:rn}})}function Sh(){return ot.get("/api/check_update")}function xh(e){return ot.defaults.baseURL+"/api/download/file?file="+encodeURIComponent(e)+"&client_id="+encodeURIComponent(rn)}function Eh(){return ot.get("/api/settings",{params:{client_id:rn}})}function Rh(e){return ot.post("/api/settings/update",e,{params:{client_id:rn}})}function Oh(e){return po.onmessage=e}function Ch(e){return po.onerror=e}const bt={search:bh,open:wh,download:vh,downloadFileURL:xh,getSettings:Eh,setSettings:Rh,check_for_update:Sh,ws_onmessage:Oh,ws_onerror:Ch,getVersion:Ic},os=Te({audio_providers:[""],lyrics_providers:[""],format:"",output:""}),Th={audio_providers:["youtube","youtube-music"],lyrics_providers:["genius","musixmatch","azlyrics"],format:["mp3","flac","ogg","opus","m4a"],output:"{artists} - {title}.{output-ext}"};bt.getSettings().then(e=>{e.status===200?(console.log("Received settings:",e.data),os.value=e.data):console.log("Error loading settings")});function Ah(){const e=Te();function t(){console.log("Saving settings:",os.value),bt.setSettings(os.value).then(n=>{n.status===200?(console.log("Saved!"),e.value=!0,setTimeout(()=>{e.value=null},2e3)):(console.error("Error saving settings.",n),e.value=!1,setTimeout(()=>{e.value=null},2e3))})}return{saveSettings:t,settings:os,settingsOptions:Th,isSaved:e}}const Ph=O("input",{type:"checkbox",id:"my-modal",class:"modal-toggle"},null,-1),kh={class:"modal"},Ih={class:"modal-box relative"},Lh=O("label",{for:"my-modal",class:"btn btn-sm btn-circle absolute right-2 top-2"},"✕",-1),Nh=O("h3",{class:"font-bold text-lg"},"Download Settings",-1),Mh={class:"flex flex-col justify-center my-4"},$h={class:"form-control w-full"},Fh=O("label",{class:"label"},[O("span",{class:"label-text"},"Audio Provider")],-1),Dh=["selected"],jh={class:"form-control w-full"},Uh=O("label",{class:"label"},[O("span",{class:"label-text"},"Lyrics Provider")],-1),Bh=["selected"],Hh={class:"form-control w-full"},Vh=O("label",{class:"label"},[O("span",{class:"label-text"},"Output Format")],-1),qh=["selected"],Kh={key:0,class:"alert alert-success shadow-lg"},zh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Changes saved")],-1),Wh=[zh],Gh={key:1,class:"alert alert-error shadow-lg"},Jh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Error! Unable to save settings")],-1),Qh=[Jh],Xh={class:"modal-action"},Yh=Et({__name:"Settings",setup(e){const t=Ah();return(n,s)=>(V(),q(me,null,[Ph,O("div",kh,[O("div",Ih,[Lh,Nh,O("div",Mh,[O("div",$h,[Fh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":s[0]||(s[0]=r=>$(t).settings.value.audio_providers[0]=r)},[(V(!0),q(me,null,Nt($(t).settingsOptions.audio_providers,(r,o)=>{var i;return V(),q("option",{key:o,selected:r===((i=$(t).settings.value.audio_providers)==null?void 0:i[0])},xe(r),9,Dh)}),128))],512),[[sr,$(t).settings.value.audio_providers[0]]])]),O("div",jh,[Uh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":s[1]||(s[1]=r=>$(t).settings.value.lyrics_providers[0]=r)},[(V(!0),q(me,null,Nt($(t).settingsOptions.lyrics_providers,(r,o)=>{var i;return V(),q("option",{key:o,selected:r===((i=$(t).settings.value.lyrics_providers)==null?void 0:i[0])},xe(r),9,Bh)}),128))],512),[[sr,$(t).settings.value.lyrics_providers[0]]])]),O("div",Hh,[Vh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":s[2]||(s[2]=r=>$(t).settings.value.format=r)},[(V(!0),q(me,null,Nt($(t).settingsOptions.format,(r,o)=>(V(),q("option",{key:o,selected:r===$(t).settings.value.format},xe(r),9,qh))),128))],512),[[sr,$(t).settings.value.format]])])]),$(t).isSaved.value===!0?(V(),q("div",Kh,Wh)):st("",!0),$(t).isSaved.value===!1?(V(),q("div",Gh,Qh)):st("",!0),O("div",Xh,[O("label",{class:"btn",onClick:s[3]||(s[3]=r=>$(t).saveSettings())},"Save")])])])],64))}}),Je=Te(""),Ri=Te("light"),Oi=Te("dark");function mo({useSystem:e=!0,initialTheme:t="",newLightAlias:n="",newDarkAlias:s=""}={}){function r(a){Ri.value=a,u()}function o(a){Oi.value=a,u()}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function l(a){Je.value=a,u()}function c(){Je==="dark"?Je.value="light":Je==="light"&&(Je.value="dark"),u()}function u(){document.documentElement.setAttribute("data-theme",Je.value==="dark"?Oi.value:Ri.value)}return Je.value!=="light"&&Je.value!=="dark"&&(e&&l(i()),(t==="light"||t==="dark")&&(Je.value=t)),n&&r(n),s&&o(s),u(),{currentTheme:Je,setLightAlias:r,setDarkAlias:o,getSystemTheme:i,setTheme:l,switchTheme:c}}const Zh={class:"bg-base-300 absolute w-full top-0"},ep={__name:"App",setup(e){const t=mo();return jl(()=>{t.setLightAlias("emerald"),t.setDarkAlias("forest")}),(n,s)=>{const r=fs("router-view");return V(),q("div",Zh,[Q(r),Q(Uf),Q(Yh)])}}};/*! +`):" "+vi(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Pr};function lr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sn(null,e)}function Si(e){return lr(e),e.headers=Re.from(e.headers),e.data=ir.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Pc.getAdapter(e.adapter||$n.adapter)(e).then(function(s){return lr(e),s.data=ir.call(e,e.transformResponse,s),s.headers=Re.from(s.headers),s},function(s){return Rc(s)||(lr(e),s&&s.response&&(s.response.data=ir.call(e,e.transformResponse,s.response),s.response.headers=Re.from(s.response.headers))),Promise.reject(s)})}const kc="1.7.2",fo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fo[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const xi={};fo.transitional=function(t,n,s){function r(o,i){return"[Axios v"+kc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new W(r(i," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!xi[i]&&(xi[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function fh(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new W("option "+o+" must be "+c,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const kr={assertOptions:fh,validators:fo},ut=kr.validators;class Mt{constructor(t){this.defaults=t,this.interceptors={request:new mi,response:new mi}}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 o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=` +`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Dt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&kr.assertOptions(s,{silentJSONParsing:ut.transitional(ut.boolean),forcedJSONParsing:ut.transitional(ut.boolean),clarifyTimeoutError:ut.transitional(ut.boolean)},!1),r!=null&&(y.isFunction(r)?n.paramsSerializer={serialize:r}:kr.assertOptions(r,{encode:ut.function,serialize:ut.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&y.merge(o.common,o[n.method]);o&&y.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),n.headers=Re.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let a,d=0,p;if(!c){const b=[Si.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,u),p=b.length,a=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new sn(o,i,l),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 ho(function(r){t=r}),cancel:t}}}function dh(e){return function(n){return e.apply(null,n)}}function hh(e){return y.isObject(e)&&e.isAxiosError===!0}const Ir={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(Ir).forEach(([e,t])=>{Ir[t]=e});function Ic(e){const t=new Mt(e),n=uc(Mt.prototype.request,t);return y.extend(n,Mt.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Ic(Dt(e,r))},n}const ue=Ic($n);ue.Axios=Mt;ue.CanceledError=sn;ue.CancelToken=ho;ue.isCancel=Rc;ue.VERSION=kc;ue.toFormData=Bs;ue.AxiosError=W;ue.Cancel=ue.CanceledError;ue.all=function(t){return Promise.all(t)};ue.spread=dh;ue.isAxiosError=hh;ue.mergeConfig=Dt;ue.AxiosHeaders=Re;ue.formToJSON=e=>Ec(y.isHTMLForm(e)?new FormData(e):e);ue.getAdapter=Pc.getAdapter;ue.HttpStatusCode=Ir;ue.default=ue;var qt={};const je={PROTOCOL:qt.PROTOCOL||window.location.protocol,WS_PROTOCOL:qt.WS_PROTOCOL||window.location.protocol==="https:"?"wss:":"ws:",BACKEND:qt.BACKEND||window.location.hostname,PORT:qt.PORT||window.location.port,WS_PORT:qt.WS_PORT||window.location.port,BASEURL:qt.BASEURL||""};let Kn;const ph=new Uint8Array(16);function mh(){if(!Kn&&(Kn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Kn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Kn(ph)}const ge=[];for(let e=0;e<256;++e)ge.push((e+256).toString(16).slice(1));function gh(e,t=0){return ge[e[t+0]]+ge[e[t+1]]+ge[e[t+2]]+ge[e[t+3]]+"-"+ge[e[t+4]]+ge[e[t+5]]+"-"+ge[e[t+6]]+ge[e[t+7]]+"-"+ge[e[t+8]]+ge[e[t+9]]+"-"+ge[e[t+10]]+ge[e[t+11]]+ge[e[t+12]]+ge[e[t+13]]+ge[e[t+14]]+ge[e[t+15]]}const yh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ei={randomUUID:yh};function _h(e,t,n){if(Ei.randomUUID&&!t&&!e)return Ei.randomUUID();e=e||{};const s=e.random||(e.rng||mh)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,gh(s)}var bh={};console.log("using env:",bh);console.log("using config: ",je);const ot=ue.create({baseURL:`${je.PROTOCOL}//${je.BACKEND}:${je.PORT}${je.BASEURL}`}),rn=_h();console.log("session ID: ",rn);Lc();const po=new WebSocket(`${je.WS_PROTOCOL}//${je.BACKEND}${je.PORT!==""?":"+je.PORT:""}${je.BASEURL}/api/ws?client_id=${rn}`);po.onopen=e=>{console.log("websocket connection opened",e)};function Lc(){ot.get("/api/version").then(e=>{const t=localStorage.getItem("version");console.log("Backend version: ",e.data),localStorage.setItem("version",e.data),t!=e.data&&location.reload()}).catch(e=>{console.error(e),console.log("Error getting version, using 0"),localStorage.setItem("version","0.0.0")})}function wh(e){return ot.get("/api/songs/search",{params:{query:e}})}function vh(e){return localStorage.getItem("version")>="4"?ot.get("/api/url",{params:{url:e}}):ot.get("/api/song/url",{params:{url:e}})}function Sh(e){return ot.post("/api/download/url",null,{params:{url:e,client_id:rn}})}function xh(){return ot.get("/api/check_update")}function Eh(e){return ot.defaults.baseURL+"/api/download/file?file="+encodeURIComponent(e)+"&client_id="+encodeURIComponent(rn)}function Rh(){return ot.get("/api/settings",{params:{client_id:rn}})}function Oh(e){return ot.post("/api/settings/update",e,{params:{client_id:rn}})}function Ch(e){return po.onmessage=e}function Th(e){return po.onerror=e}const bt={search:wh,open:vh,download:Sh,downloadFileURL:Eh,getSettings:Rh,setSettings:Oh,check_for_update:xh,ws_onmessage:Ch,ws_onerror:Th,getVersion:Lc},os=Te({audio_providers:[""],lyrics_providers:[""],format:"",output:""}),Ah={audio_providers:["youtube","youtube-music"],lyrics_providers:["genius","musixmatch","azlyrics"],format:["mp3","flac","ogg","opus","m4a"],output:"{artists} - {title}.{output-ext}"};bt.getSettings().then(e=>{e.status===200?(console.log("Received settings:",e.data),os.value=e.data):console.log("Error loading settings")});function Ph(){const e=Te();function t(){console.log("Saving settings:",os.value),bt.setSettings(os.value).then(n=>{n.status===200?(console.log("Saved!"),e.value=!0,setTimeout(()=>{e.value=null},2e3)):(console.error("Error saving settings.",n),e.value=!1,setTimeout(()=>{e.value=null},2e3))})}return{saveSettings:t,settings:os,settingsOptions:Ah,isSaved:e}}const kh=O("input",{type:"checkbox",id:"my-modal",class:"modal-toggle"},null,-1),Ih={class:"modal"},Lh={class:"modal-box relative"},Nh=O("label",{for:"my-modal",class:"btn btn-sm btn-circle absolute right-2 top-2"},"✕",-1),Mh=O("h3",{class:"font-bold text-lg"},"Download Settings",-1),$h={class:"flex flex-col justify-center my-4"},Fh={class:"form-control w-full"},Dh=O("label",{class:"label"},[O("span",{class:"label-text"},"Audio Provider")],-1),jh=["selected"],Uh={class:"form-control w-full"},Bh=O("label",{class:"label"},[O("span",{class:"label-text"},"Lyrics Provider")],-1),Hh=["selected"],Vh={class:"form-control w-full"},qh=O("label",{class:"label"},[O("span",{class:"label-text"},"Output Format")],-1),Kh=["selected"],zh={key:0,class:"alert alert-success shadow-lg"},Wh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Changes saved")],-1),Gh=[Wh],Jh={key:1,class:"alert alert-error shadow-lg"},Qh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Error! Unable to save settings")],-1),Xh=[Qh],Yh={class:"modal-action"},Zh=Et({__name:"Settings",setup(e){const t=Ph();return(n,s)=>(V(),q(me,null,[kh,O("div",Ih,[O("div",Lh,[Nh,Mh,O("div",$h,[O("div",Fh,[Dh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":s[0]||(s[0]=r=>$(t).settings.value.audio_providers[0]=r)},[(V(!0),q(me,null,Nt($(t).settingsOptions.audio_providers,(r,o)=>{var i;return V(),q("option",{key:o,selected:r===((i=$(t).settings.value.audio_providers)==null?void 0:i[0])},xe(r),9,jh)}),128))],512),[[sr,$(t).settings.value.audio_providers[0]]])]),O("div",Uh,[Bh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":s[1]||(s[1]=r=>$(t).settings.value.lyrics_providers[0]=r)},[(V(!0),q(me,null,Nt($(t).settingsOptions.lyrics_providers,(r,o)=>{var i;return V(),q("option",{key:o,selected:r===((i=$(t).settings.value.lyrics_providers)==null?void 0:i[0])},xe(r),9,Hh)}),128))],512),[[sr,$(t).settings.value.lyrics_providers[0]]])]),O("div",Vh,[qh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":s[2]||(s[2]=r=>$(t).settings.value.format=r)},[(V(!0),q(me,null,Nt($(t).settingsOptions.format,(r,o)=>(V(),q("option",{key:o,selected:r===$(t).settings.value.format},xe(r),9,Kh))),128))],512),[[sr,$(t).settings.value.format]])])]),$(t).isSaved.value===!0?(V(),q("div",zh,Gh)):st("",!0),$(t).isSaved.value===!1?(V(),q("div",Jh,Xh)):st("",!0),O("div",Yh,[O("label",{class:"btn",onClick:s[3]||(s[3]=r=>$(t).saveSettings())},"Save")])])])],64))}}),Je=Te(""),Ri=Te("light"),Oi=Te("dark");function mo({useSystem:e=!0,initialTheme:t="",newLightAlias:n="",newDarkAlias:s=""}={}){function r(a){Ri.value=a,u()}function o(a){Oi.value=a,u()}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function l(a){Je.value=a,u()}function c(){Je==="dark"?Je.value="light":Je==="light"&&(Je.value="dark"),u()}function u(){document.documentElement.setAttribute("data-theme",Je.value==="dark"?Oi.value:Ri.value)}return Je.value!=="light"&&Je.value!=="dark"&&(e&&l(i()),(t==="light"||t==="dark")&&(Je.value=t)),n&&r(n),s&&o(s),u(),{currentTheme:Je,setLightAlias:r,setDarkAlias:o,getSystemTheme:i,setTheme:l,switchTheme:c}}const ep={class:"bg-base-300 absolute w-full top-0"},tp={__name:"App",setup(e){const t=mo();return Ul(()=>{t.setLightAlias("emerald"),t.setDarkAlias("forest")}),(n,s)=>{const r=fs("router-view");return V(),q("div",ep,[Q(r),Q(Bf),Q(Zh)])}}};/*! * vue-router v4.4.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const Kt=typeof document<"u";function tp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ne=Object.assign;function cr(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ve(r)?r.map(e):e(r)}return n}const wn=()=>{},Ve=Array.isArray,Lc=/#/g,np=/&/g,sp=/\//g,rp=/=/g,op=/\?/g,Nc=/\+/g,ip=/%5B/g,lp=/%5D/g,Mc=/%5E/g,cp=/%60/g,$c=/%7B/g,ap=/%7C/g,Fc=/%7D/g,up=/%20/g;function go(e){return encodeURI(""+e).replace(ap,"|").replace(ip,"[").replace(lp,"]")}function fp(e){return go(e).replace($c,"{").replace(Fc,"}").replace(Mc,"^")}function Lr(e){return go(e).replace(Nc,"%2B").replace(up,"+").replace(Lc,"%23").replace(np,"%26").replace(cp,"`").replace($c,"{").replace(Fc,"}").replace(Mc,"^")}function dp(e){return Lr(e).replace(rp,"%3D")}function hp(e){return go(e).replace(Lc,"%23").replace(op,"%3F")}function pp(e){return e==null?"":hp(e).replace(sp,"%2F")}function Tn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const mp=/\/$/,gp=e=>e.replace(mp,"");function ar(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=wp(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Tn(i)}}function yp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ci(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _p(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&en(t.matched[s],n.matched[r])&&Dc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function en(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!bp(e[n],t[n]))return!1;return!0}function bp(e,t){return Ve(e)?Ti(e,t):Ve(t)?Ti(t,e):e===t}function Ti(e,t){return Ve(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function wp(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 o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const ft={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var An;(function(e){e.pop="pop",e.push="push"})(An||(An={}));var vn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vn||(vn={}));function vp(e){if(!e)if(Kt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),gp(e)}const Sp=/^[^#]+#/;function xp(e,t){return e.replace(Sp,"#")+t}function Ep(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 Vs=()=>({left:window.scrollX,top:window.scrollY});function Rp(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=Ep(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 Ai(e,t){return(history.state?history.state.position-t:-1)+e}const Nr=new Map;function Op(e,t){Nr.set(e,t)}function Cp(e){const t=Nr.get(e);return Nr.delete(e),t}let Tp=()=>location.protocol+"//"+location.host;function jc(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Ci(c,"")}return Ci(n,e)+s+r}function Ap(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const m=jc(e,location),b=n.value,_=t.value;let E=0;if(p){if(n.value=m,t.value=p,i&&i===b){i=null;return}E=_?p.position-_.position:0}else s(m);r.forEach(F=>{F(n.value,b,{delta:E,type:An.pop,direction:E?E>0?vn.forward:vn.back:vn.unknown})})};function c(){i=n.value}function u(p){r.push(p);const m=()=>{const b=r.indexOf(p);b>-1&&r.splice(b,1)};return o.push(m),m}function a(){const{history:p}=window;p.state&&p.replaceState(ne({},p.state,{scroll:Vs()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:c,listen:u,destroy:d}}function Pi(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Vs():null}}function Pp(e){const{history:t,location:n}=window,s={value:jc(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,a){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:Tp()+e+c;try{t[a?"replaceState":"pushState"](u,"",p),r.value=u}catch(m){console.error(m),n[a?"replace":"assign"](p)}}function i(c,u){const a=ne({},t.state,Pi(r.value.back,c,r.value.forward,!0),u,{position:r.value.position});o(c,a,!0),s.value=c}function l(c,u){const a=ne({},r.value,t.state,{forward:c,scroll:Vs()});o(a.current,a,!0);const d=ne({},Pi(s.value,c,null),{position:a.position+1},u);o(c,d,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function kp(e){e=vp(e);const t=Pp(e),n=Ap(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ne({location:"",base:e,go:s,createHref:xp.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 Ip(e){return typeof e=="string"||e&&typeof e=="object"}function Uc(e){return typeof e=="string"||typeof e=="symbol"}const Bc=Symbol("");var ki;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ki||(ki={}));function tn(e,t){return ne(new Error,{type:e,[Bc]:!0},t)}function tt(e,t){return e instanceof Error&&Bc in e&&(t==null||!!(e.type&t))}const Ii="[^/]+?",Lp={sensitive:!1,strict:!1,start:!0,end:!0},Np=/[.+*?^${}()[\]/\\]/g;function Mp(e,t){const n=ne({},Lp,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const a=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function Hc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Fp={type:0,value:""},Dp=/[a-zA-Z0-9_]/;function jp(e){if(!e)return[[]];if(e==="/")return[[Fp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,u="",a="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l{i(C)}:wn}function i(d){if(Uc(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){const p=Kp(d,n);n.splice(p,0,d),d.record.name&&!Mi(d)&&s.set(d.record.name,d)}function u(d,p){let m,b={},_,E;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw tn(1,{location:d});E=m.record.name,b=ne(Ni(p.params,m.keys.filter(C=>!C.optional).concat(m.parent?m.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&Ni(d.params,m.keys.map(C=>C.name))),_=m.stringify(b)}else if(d.path!=null)_=d.path,m=n.find(C=>C.re.test(_)),m&&(b=m.parse(_),E=m.record.name);else{if(m=p.name?s.get(p.name):n.find(C=>C.re.test(p.path)),!m)throw tn(1,{location:d,currentLocation:p});E=m.record.name,b=ne({},p.params,d.params),_=m.stringify(b)}const F=[];let L=m;for(;L;)F.unshift(L.record),L=L.parent;return{name:E,path:_,params:b,matched:F,meta:qp(F)}}e.forEach(d=>o(d));function a(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:a,getRoutes:l,getRecordMatcher:r}}function Ni(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Hp(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Vp(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 Vp(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 Mi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qp(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function $i(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Kp(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Hc(e,t[o])<0?s=o:n=o+1}const r=zp(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function zp(e){let t=e;for(;t=t.parent;)if(Vc(t)&&Hc(e,t)===0)return t}function Vc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Wp(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Lr(o)):[s&&Lr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Gp(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ve(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Jp=Symbol(""),Di=Symbol(""),yo=Symbol(""),_o=Symbol(""),Mr=Symbol("");function un(){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 mt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(tn(4,{from:n,to:t})):p instanceof Error?c(p):Ip(p)?c(tn(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},a=o(()=>e.call(s&&s.instances[r],t,n,u));let d=Promise.resolve(a);e.length<3&&(d=d.then(u)),d.catch(p=>c(p))})}function ur(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Qp(c)){const a=(c.__vccOpts||c)[t];a&&o.push(mt(a,n,s,i,l,r))}else{let u=c();o.push(()=>u.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const d=tp(a)?a.default:a;i.components[l]=d;const m=(d.__vccOpts||d)[t];return m&&mt(m,n,s,i,l,r)()}))}}return o}function Qp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ji(e){const t=Ye(yo),n=Ye(_o),s=De(()=>{const c=$(e.to);return t.resolve(c)}),r=De(()=>{const{matched:c}=s.value,{length:u}=c,a=c[u-1],d=n.matched;if(!a||!d.length)return-1;const p=d.findIndex(en.bind(null,a));if(p>-1)return p;const m=Ui(c[u-2]);return u>1&&Ui(a)===m&&d[d.length-1].path!==m?d.findIndex(en.bind(null,c[u-2])):p}),o=De(()=>r.value>-1&&em(n.params,s.value.params)),i=De(()=>r.value>-1&&r.value===n.matched.length-1&&Dc(n.params,s.value.params));function l(c={}){return Zp(c)?t[$(e.replace)?"replace":"push"]($(e.to)).catch(wn):Promise.resolve()}return{route:s,href:De(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const Xp=Et({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:ji,setup(e,{slots:t}){const n=As(ji(e)),{options:s}=Ye(yo),r=De(()=>({[Bi(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Bi(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ms("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Yp=Xp;function Zp(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 em(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(!Ve(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Ui(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bi=(e,t,n)=>e??t??n,tm=Et({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ye(Mr),r=De(()=>e.route||s.value),o=Ye(Di,0),i=De(()=>{let u=$(o);const{matched:a}=r.value;let d;for(;(d=a[u])&&!d.components;)u++;return u}),l=De(()=>r.value.matched[i.value]);Zn(Di,De(()=>i.value+1)),Zn(Jp,l),Zn(Mr,r);const c=Te();return _n(()=>[c.value,l.value,e.name],([u,a,d],[p,m,b])=>{a&&(a.instances[d]=u,m&&m!==a&&u&&u===p&&(a.leaveGuards.size||(a.leaveGuards=m.leaveGuards),a.updateGuards.size||(a.updateGuards=m.updateGuards))),u&&a&&(!m||!en(a,m)||!p)&&(a.enterCallbacks[d]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=r.value,a=e.name,d=l.value,p=d&&d.components[a];if(!p)return Hi(n.default,{Component:p,route:u});const m=d.props[a],b=m?m===!0?u.params:typeof m=="function"?m(u):m:null,E=ms(p,ne({},b,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(d.instances[a]=null)},ref:c}));return Hi(n.default,{Component:E,route:u})||E}}});function Hi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const nm=tm;function sm(e){const t=Bp(e.routes,e),n=e.parseQuery||Wp,s=e.stringifyQuery||Fi,r=e.history,o=un(),i=un(),l=un(),c=za(ft);let u=ft;Kt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=cr.bind(null,v=>""+v),d=cr.bind(null,pp),p=cr.bind(null,Tn);function m(v,N){let I,D;return Uc(v)?(I=t.getRecordMatcher(v),D=N):D=v,t.addRoute(D,I)}function b(v){const N=t.getRecordMatcher(v);N&&t.removeRoute(N)}function _(){return t.getRoutes().map(v=>v.record)}function E(v){return!!t.getRecordMatcher(v)}function F(v,N){if(N=ne({},N||c.value),typeof v=="string"){const h=ar(n,v,N.path),g=t.resolve({path:h.path},N),S=r.createHref(h.fullPath);return ne(h,g,{params:p(g.params),hash:Tn(h.hash),redirectedFrom:void 0,href:S})}let I;if(v.path!=null)I=ne({},v,{path:ar(n,v.path,N.path).path});else{const h=ne({},v.params);for(const g in h)h[g]==null&&delete h[g];I=ne({},v,{params:d(h)}),N.params=d(N.params)}const D=t.resolve(I,N),te=v.hash||"";D.params=a(p(D.params));const ce=yp(s,ne({},v,{hash:fp(te),path:D.path})),f=r.createHref(ce);return ne({fullPath:ce,hash:te,query:s===Fi?Gp(v.query):v.query||{}},D,{redirectedFrom:void 0,href:f})}function L(v){return typeof v=="string"?ar(n,v,c.value.path):ne({},v)}function C(v,N){if(u!==v)return tn(8,{from:N,to:v})}function B(v){return z(v)}function re(v){return B(ne(L(v),{replace:!0}))}function P(v){const N=v.matched[v.matched.length-1];if(N&&N.redirect){const{redirect:I}=N;let D=typeof I=="function"?I(v):I;return typeof D=="string"&&(D=D.includes("?")||D.includes("#")?D=L(D):{path:D},D.params={}),ne({query:v.query,hash:v.hash,params:D.path!=null?{}:v.params},D)}}function z(v,N){const I=u=F(v),D=c.value,te=v.state,ce=v.force,f=v.replace===!0,h=P(I);if(h)return z(ne(L(h),{state:typeof h=="object"?ne({},te,h.state):te,force:ce,replace:f}),N||I);const g=I;g.redirectedFrom=N;let S;return!ce&&_p(s,D,I)&&(S=tn(16,{to:g,from:D}),ze(D,D,!0,!1)),(S?Promise.resolve(S):de(g,D)).catch(w=>tt(w)?tt(w,2)?w:ct(w):Y(w,g,D)).then(w=>{if(w){if(tt(w,2))return z(ne({replace:f},L(w.to),{state:typeof w.to=="object"?ne({},te,w.to.state):te,force:ce}),N||g)}else w=Rt(g,D,!0,f,te);return lt(g,D,w),w})}function ae(v,N){const I=C(v,N);return I?Promise.reject(I):Promise.resolve()}function Ie(v){const N=Ht.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(v):v()}function de(v,N){let I;const[D,te,ce]=rm(v,N);I=ur(D.reverse(),"beforeRouteLeave",v,N);for(const h of D)h.leaveGuards.forEach(g=>{I.push(mt(g,v,N))});const f=ae.bind(null,v,N);return I.push(f),Le(I).then(()=>{I=[];for(const h of o.list())I.push(mt(h,v,N));return I.push(f),Le(I)}).then(()=>{I=ur(te,"beforeRouteUpdate",v,N);for(const h of te)h.updateGuards.forEach(g=>{I.push(mt(g,v,N))});return I.push(f),Le(I)}).then(()=>{I=[];for(const h of ce)if(h.beforeEnter)if(Ve(h.beforeEnter))for(const g of h.beforeEnter)I.push(mt(g,v,N));else I.push(mt(h.beforeEnter,v,N));return I.push(f),Le(I)}).then(()=>(v.matched.forEach(h=>h.enterCallbacks={}),I=ur(ce,"beforeRouteEnter",v,N,Ie),I.push(f),Le(I))).then(()=>{I=[];for(const h of i.list())I.push(mt(h,v,N));return I.push(f),Le(I)}).catch(h=>tt(h,8)?h:Promise.reject(h))}function lt(v,N,I){l.list().forEach(D=>Ie(()=>D(v,N,I)))}function Rt(v,N,I,D,te){const ce=C(v,N);if(ce)return ce;const f=N===ft,h=Kt?history.state:{};I&&(D||f?r.replace(v.fullPath,ne({scroll:f&&h&&h.scroll},te)):r.push(v.fullPath,te)),c.value=v,ze(v,N,I,f),ct()}let Ke;function on(){Ke||(Ke=r.listen((v,N,I)=>{if(!Dn.listening)return;const D=F(v),te=P(D);if(te){z(ne(te,{replace:!0}),D).catch(wn);return}u=D;const ce=c.value;Kt&&Op(Ai(ce.fullPath,I.delta),Vs()),de(D,ce).catch(f=>tt(f,12)?f:tt(f,2)?(z(f.to,D).then(h=>{tt(h,20)&&!I.delta&&I.type===An.pop&&r.go(-1,!1)}).catch(wn),Promise.reject()):(I.delta&&r.go(-I.delta,!1),Y(f,D,ce))).then(f=>{f=f||Rt(D,ce,!1),f&&(I.delta&&!tt(f,8)?r.go(-I.delta,!1):I.type===An.pop&&tt(f,20)&&r.go(-1,!1)),lt(D,ce,f)}).catch(wn)}))}let Ut=un(),he=un(),se;function Y(v,N,I){ct(v);const D=he.list();return D.length?D.forEach(te=>te(v,N,I)):console.error(v),Promise.reject(v)}function et(){return se&&c.value!==ft?Promise.resolve():new Promise((v,N)=>{Ut.add([v,N])})}function ct(v){return se||(se=!v,on(),Ut.list().forEach(([N,I])=>v?I(v):N()),Ut.reset()),v}function ze(v,N,I,D){const{scrollBehavior:te}=e;if(!Kt||!te)return Promise.resolve();const ce=!I&&Cp(Ai(v.fullPath,0))||(D||!I)&&history.state&&history.state.scroll||null;return no().then(()=>te(v,N,ce)).then(f=>f&&Rp(f)).catch(f=>Y(f,v,N))}const ve=v=>r.go(v);let Bt;const Ht=new Set,Dn={currentRoute:c,listening:!0,addRoute:m,removeRoute:b,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:_,resolve:F,options:e,push:B,replace:re,go:ve,back:()=>ve(-1),forward:()=>ve(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:he.add,isReady:et,install(v){const N=this;v.component("RouterLink",Yp),v.component("RouterView",nm),v.config.globalProperties.$router=N,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>$(c)}),Kt&&!Bt&&c.value===ft&&(Bt=!0,B(r.location).catch(te=>{}));const I={};for(const te in ft)Object.defineProperty(I,te,{get:()=>c.value[te],enumerable:!0});v.provide(yo,N),v.provide(_o,xl(I)),v.provide(Mr,c);const D=v.unmount;Ht.add(v),v.unmount=function(){Ht.delete(v),Ht.size<1&&(u=ft,Ke&&Ke(),Ke=null,c.value=ft,Bt=!1,se=!1),D()}}};function Le(v){return v.reduce((N,I)=>N.then(()=>Ie(I)),Promise.resolve())}return Dn}function rm(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ien(u,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(u=>en(u,c))||r.push(c))}return[n,s,r]}function qc(e){return Ye(_o)}const Sn=/^[a-z0-9]+(-[a-z0-9]+)*$/,qs=(e,t,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const l=r.pop(),c=r.pop(),u={provider:r.length>0?r[0]:s,prefix:c,name:l};return t&&!is(u)?null:u}const o=r[0],i=o.split("-");if(i.length>1){const l={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!is(l)?null:l}if(n&&s===""){const l={provider:s,prefix:"",name:o};return t&&!is(l,n)?null:l}return null},is=(e,t)=>e?!!((e.provider===""||e.provider.match(Sn))&&(t&&e.prefix===""||e.prefix.match(Sn))&&e.name.match(Sn)):!1,Kc=Object.freeze({left:0,top:0,width:16,height:16}),ws=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ks=Object.freeze({...Kc,...ws}),$r=Object.freeze({...Ks,body:"",hidden:!1});function om(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function Vi(e,t){const n=om(e,t);for(const s in $r)s in ws?s in e&&!(s in n)&&(n[s]=ws[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function im(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function o(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const l=s[i]&&s[i].parent,c=l&&o(l);c&&(r[i]=[l].concat(c))}return r[i]}return Object.keys(n).concat(Object.keys(s)).forEach(o),r}function lm(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let o={};function i(l){o=Vi(s[l]||r[l],o)}return i(t),n.forEach(i),Vi(e,o)}function zc(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const s=im(e);for(const r in s){const o=s[r];o&&(t(r,lm(e,r,o)),n.push(r))}return n}const cm={provider:"",aliases:{},not_found:{},...Kc};function fr(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Wc(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fr(e,cm))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(Sn)||typeof o.body!="string"||!fr(o,$r))return null}const s=t.aliases||Object.create(null);for(const r in s){const o=s[r],i=o.parent;if(!r.match(Sn)||typeof i!="string"||!n[i]&&!s[i]||!fr(o,$r))return null}return t}const qi=Object.create(null);function am(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function jt(e,t){const n=qi[e]||(qi[e]=Object.create(null));return n[t]||(n[t]=am(e,t))}function bo(e,t){return Wc(t)?zc(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function um(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Pn=!1;function Gc(e){return typeof e=="boolean"&&(Pn=e),Pn}function fm(e){const t=typeof e=="string"?qs(e,!0,Pn):e;if(t){const n=jt(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function dm(e,t){const n=qs(e,!0,Pn);if(!n)return!1;const s=jt(n.provider,n.prefix);return um(s,n.name,t)}function hm(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Pn&&!t&&!e.prefix){let r=!1;return Wc(e)&&(e.prefix="",zc(e,(o,i)=>{i&&dm(o,i)&&(r=!0)})),r}const n=e.prefix;if(!is({provider:t,prefix:n,name:"a"}))return!1;const s=jt(t,n);return!!bo(s,e)}const Jc=Object.freeze({width:null,height:null}),Qc=Object.freeze({...Jc,...ws}),pm=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mm=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ki(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(pm);if(s===null||!s.length)return e;const r=[];let o=s.shift(),i=mm.test(o);for(;;){if(i){const l=parseFloat(o);isNaN(l)?r.push(o):r.push(Math.ceil(l*t*n)/n)}else r.push(o);if(o=s.shift(),o===void 0)return r.join("");i=!i}}function gm(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const r=e.indexOf(">",s),o=e.indexOf("",o);if(i===-1)break;n+=e.slice(r+1,o).trim(),e=e.slice(0,s).trim()+e.slice(i+1)}return{defs:n,content:e}}function ym(e,t){return e?""+e+""+t:t}function _m(e,t,n){const s=gm(e);return ym(s.defs,t+s.content+n)}const bm=e=>e==="unset"||e==="undefined"||e==="none";function wm(e,t){const n={...Ks,...e},s={...Qc,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(_=>{const E=[],F=_.hFlip,L=_.vFlip;let C=_.rotate;F?L?C+=2:(E.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),E.push("scale(-1 1)"),r.top=r.left=0):L&&(E.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),E.push("scale(1 -1)"),r.top=r.left=0);let B;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:B=r.height/2+r.top,E.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:E.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:B=r.width/2+r.left,E.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")");break}C%2===1&&(r.left!==r.top&&(B=r.left,r.left=r.top,r.top=B),r.width!==r.height&&(B=r.width,r.width=r.height,r.height=B)),E.length&&(o=_m(o,'',""))});const i=s.width,l=s.height,c=r.width,u=r.height;let a,d;i===null?(d=l===null?"1em":l==="auto"?u:l,a=Ki(d,c/u)):(a=i==="auto"?c:i,d=l===null?Ki(a,u/c):l==="auto"?u:l);const p={},m=(_,E)=>{bm(E)||(p[_]=E.toString())};m("width",a),m("height",d);const b=[r.left,r.top,c,u];return p.viewBox=b.join(" "),{attributes:p,viewBox:b,body:o}}const vm=/\sid="(\S+)"/g,Sm="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let xm=0;function Em(e,t=Sm){const n=[];let s;for(;s=vm.exec(e);)n.push(s[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(o=>{const i=typeof t=="function"?t(o):t+(xm++).toString(),l=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+i+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const Fr=Object.create(null);function Rm(e,t){Fr[e]=t}function Dr(e){return Fr[e]||Fr[""]}function wo(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const vo=Object.create(null),fn=["https://api.simplesvg.com","https://api.unisvg.com"],ls=[];for(;fn.length>0;)fn.length===1||Math.random()>.5?ls.push(fn.shift()):ls.push(fn.pop());vo[""]=wo({resources:["https://api.iconify.design"].concat(ls)});function Om(e,t){const n=wo(t);return n===null?!1:(vo[e]=n,!0)}function So(e){return vo[e]}const Cm=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let zi=Cm();function Tm(e,t){const n=So(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const o=t+".json?icons=";s=n.maxURL-r-n.path.length-o.length}return s}function Am(e){return e===404}const Pm=(e,t,n)=>{const s=[],r=Tm(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},l=0;return n.forEach((c,u)=>{l+=c.length+1,l>=r&&u>0&&(s.push(i),i={type:o,provider:e,prefix:t,icons:[]},l=c.length),i.icons.push(c)}),s.push(i),s};function km(e){if(typeof e=="string"){const t=So(e);if(t)return t.path}return"/"}const Im=(e,t,n)=>{if(!zi){n("abort",424);return}let s=km(t.provider);switch(t.type){case"icons":{const o=t.prefix,l=t.icons.join(","),c=new URLSearchParams({icons:l});s+=o+".json?"+c.toString();break}case"custom":{const o=t.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;zi(e+s).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(Am(i)?"abort":"next",i)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})},Lm={prepare:Pm,send:Im};function Nm(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const o=r.provider,i=r.prefix,l=r.name,c=n[o]||(n[o]=Object.create(null)),u=c[i]||(c[i]=jt(o,i));let a;l in u.icons?a=t.loaded:i===""||u.missing.has(l)?a=t.missing:a=t.pending;const d={provider:o,prefix:i,name:l};a.push(d)}),t}function Xc(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==t))})}function Mm(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,r=e.prefix;t.forEach(o=>{const i=o.icons,l=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==r)return!0;const u=c.name;if(e.icons[u])i.loaded.push({provider:s,prefix:r,name:u});else if(e.missing.has(u))i.missing.push({provider:s,prefix:r,name:u});else return n=!0,!0;return!1}),i.pending.length!==l&&(n||Xc([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let $m=0;function Fm(e,t,n){const s=$m++,r=Xc.bind(null,n,s);if(!t.pending.length)return r;const o={id:s,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),r}function Dm(e,t=!0,n=!1){const s=[];return e.forEach(r=>{const o=typeof r=="string"?qs(r,t,n):r;o&&s.push(o)}),s}var jm={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Um(e,t,n,s){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let P=e.resources.slice(0);for(i=[];P.length>1;){const z=Math.floor(Math.random()*P.length);i.push(P[z]),P=P.slice(0,z).concat(P.slice(z+1))}i=i.concat(P)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const l=Date.now();let c="pending",u=0,a,d=null,p=[],m=[];typeof s=="function"&&m.push(s);function b(){d&&(clearTimeout(d),d=null)}function _(){c==="pending"&&(c="aborted"),b(),p.forEach(P=>{P.status==="pending"&&(P.status="aborted")}),p=[]}function E(P,z){z&&(m=[]),typeof P=="function"&&m.push(P)}function F(){return{startTime:l,payload:t,status:c,queriesSent:u,queriesPending:p.length,subscribe:E,abort:_}}function L(){c="failed",m.forEach(P=>{P(void 0,a)})}function C(){p.forEach(P=>{P.status==="pending"&&(P.status="aborted")}),p=[]}function B(P,z,ae){const Ie=z!=="success";switch(p=p.filter(de=>de!==P),c){case"pending":break;case"failed":if(Ie||!e.dataAfterTimeout)return;break;default:return}if(z==="abort"){a=ae,L();return}if(Ie){a=ae,p.length||(i.length?re():L());return}if(b(),C(),!e.random){const de=e.resources.indexOf(P.resource);de!==-1&&de!==e.index&&(e.index=de)}c="completed",m.forEach(de=>{de(ae)})}function re(){if(c!=="pending")return;b();const P=i.shift();if(P===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(C(),L())},e.timeout);return}L();return}const z={status:"pending",resource:P,callback:(ae,Ie)=>{B(z,ae,Ie)}};p.push(z),u++,d=setTimeout(re,e.rotate),n(P,t,z.callback)}return setTimeout(re),F}function Yc(e){const t={...jm,...e};let n=[];function s(){n=n.filter(l=>l().status==="pending")}function r(l,c,u){const a=Um(t,l,c,(d,p)=>{s(),u&&u(d,p)});return n.push(a),a}function o(l){return n.find(c=>l(c))||null}return{query:r,find:o,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:s}}function Wi(){}const dr=Object.create(null);function Bm(e){if(!dr[e]){const t=So(e);if(!t)return;const n=Yc(t),s={config:t,redundancy:n};dr[e]=s}return dr[e]}function Hm(e,t,n){let s,r;if(typeof e=="string"){const o=Dr(e);if(!o)return n(void 0,424),Wi;r=o.send;const i=Bm(e);i&&(s=i.redundancy)}else{const o=wo(e);if(o){s=Yc(o);const i=e.resources?e.resources[0]:"",l=Dr(i);l&&(r=l.send)}}return!s||!r?(n(void 0,424),Wi):s.query(t,r,n)().abort}const Gi="iconify2",kn="iconify",Zc=kn+"-count",Ji=kn+"-version",ea=36e5,Vm=168,qm=50;function jr(e,t){try{return e.getItem(t)}catch{}}function xo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Qi(e,t){try{e.removeItem(t)}catch{}}function Ur(e,t){return xo(e,Zc,t.toString())}function Br(e){return parseInt(jr(e,Zc))||0}const zs={local:!0,session:!0},ta={local:new Set,session:new Set};let Eo=!1;function Km(e){Eo=e}let zn=typeof window>"u"?{}:window;function na(e){const t=e+"Storage";try{if(zn&&zn[t]&&typeof zn[t].length=="number")return zn[t]}catch{}zs[e]=!1}function sa(e,t){const n=na(e);if(!n)return;const s=jr(n,Ji);if(s!==Gi){if(s){const l=Br(n);for(let c=0;c{const c=kn+l.toString(),u=jr(n,c);if(typeof u=="string"){try{const a=JSON.parse(u);if(typeof a=="object"&&typeof a.cached=="number"&&a.cached>r&&typeof a.provider=="string"&&typeof a.data=="object"&&typeof a.data.prefix=="string"&&t(a,l))return!0}catch{}Qi(n,c)}};let i=Br(n);for(let l=i-1;l>=0;l--)o(l)||(l===i-1?(i--,Ur(n,i)):ta[e].add(l))}function ra(){if(!Eo){Km(!0);for(const e in zs)sa(e,t=>{const n=t.data,s=t.provider,r=n.prefix,o=jt(s,r);if(!bo(o,n).length)return!1;const i=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,i):i,!0})}}function zm(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const s in zs)sa(s,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function Wm(e,t){Eo||ra();function n(s){let r;if(!zs[s]||!(r=na(s)))return;const o=ta[s];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=Br(r),i>=qm||!Ur(r,i+1))return;const l={cached:Math.floor(Date.now()/ea),provider:e.provider,data:t};return xo(r,kn+i.toString(),JSON.stringify(l))}t.lastModified&&!zm(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Xi(){}function Gm(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Mm(e)}))}function Jm(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=Dr(n)))return;o.prepare(n,s,r).forEach(l=>{Hm(n,l,c=>{if(typeof c!="object")l.icons.forEach(u=>{e.missing.add(u)});else try{const u=bo(e,c);if(!u.length)return;const a=e.pendingIcons;a&&u.forEach(d=>{a.delete(d)}),Wm(e,c)}catch(u){console.error(u)}Gm(e)})})}))}const Qm=(e,t)=>{const n=Dm(e,!0,Gc()),s=Nm(n);if(!s.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(s.loaded,s.missing,s.pending,Xi)}),()=>{c=!1}}const r=Object.create(null),o=[];let i,l;return s.pending.forEach(c=>{const{provider:u,prefix:a}=c;if(a===l&&u===i)return;i=u,l=a,o.push(jt(u,a));const d=r[u]||(r[u]=Object.create(null));d[a]||(d[a]=[])}),s.pending.forEach(c=>{const{provider:u,prefix:a,name:d}=c,p=jt(u,a),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),r[u][a].push(d))}),o.forEach(c=>{const{provider:u,prefix:a}=c;r[u][a].length&&Jm(c,r[u][a])}),t?Fm(t,s,o):Xi};function Xm(e,t){const n={...e};for(const s in t){const r=t[s],o=typeof r;s in Jc?(r===null||r&&(o==="string"||o==="number"))&&(n[s]=r):o===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const Ym=/[\s,]+/;function Zm(e,t){t.split(Ym).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function eg(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?s(o):0)}}return t}function tg(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'"+e+""}function ng(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function sg(e){return"data:image/svg+xml,"+ng(e)}function rg(e){return'url("'+sg(e)+'")'}const Yi={...Qc,inline:!1},og={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ig={display:"inline-block"},Hr={backgroundColor:"currentColor"},oa={backgroundColor:"transparent"},Zi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},el={webkitMask:Hr,mask:Hr,background:oa};for(const e in el){const t=el[e];for(const n in Zi)t[e+n]=Zi[n]}const cs={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";cs[e+"-flip"]=t,cs[e.slice(0,1)+"-flip"]=t,cs[e+"Flip"]=t});function tl(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const nl=(e,t)=>{const n=Xm(Yi,t),s={...og},r=t.mode||"svg",o={},i=t.style,l=typeof i=="object"&&!(i instanceof Array)?i:{};for(let _ in t){const E=t[_];if(E!==void 0)switch(_){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[_]=E===!0||E==="true"||E===1;break;case"flip":typeof E=="string"&&Zm(n,E);break;case"color":o.color=E;break;case"rotate":typeof E=="string"?n[_]=eg(E):typeof E=="number"&&(n[_]=E);break;case"ariaHidden":case"aria-hidden":E!==!0&&E!=="true"&&delete s["aria-hidden"];break;default:{const F=cs[_];F?(E===!0||E==="true"||E===1)&&(n[F]=!0):Yi[_]===void 0&&(s[_]=E)}}}const c=wm(e,n),u=c.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),r==="svg"){s.style={...o,...l},Object.assign(s,u);let _=0,E=t.id;return typeof E=="string"&&(E=E.replace(/-/g,"_")),s.innerHTML=Em(c.body,E?()=>E+"ID"+_++:"iconifyVue"),ms("svg",s)}const{body:a,width:d,height:p}=e,m=r==="mask"||(r==="bg"?!1:a.indexOf("currentColor")!==-1),b=tg(a,{...u,width:d+"",height:p+""});return s.style={...o,"--svg":rg(b),width:tl(u.width),height:tl(u.height),...ig,...m?Hr:oa,...l},ms("span",s)};Gc(!0);Rm("",Lm);if(typeof document<"u"&&typeof window<"u"){ra();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!hm(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Om(n,r)||console.error(s)}catch{console.error(s)}}}}const lg={...Ks,body:""},Ee=Et({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=qs(e,!1,!0))===null)return this.abortLoading(),null;const s=fm(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:e,abort:Qm([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:s,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return nl(lg,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),nl({...Ks,...t.data},n)}}),sl=Te(""),hr=Te(),dn=Te(!1),Wn=Te(!1),Gn=Te("");function Ws(){function e(r){return t(r)||n(r)}function t(r){return!(r===""||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/playlist/")||r.includes("://open.spotify.com/show/")||r.includes("://open.spotify.com/artist/"))}function n(r){return(r.includes("://open.spotify.com/track/")||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/playlist/")||r.includes("://open.spotify.com/artist/"))&&localStorage.getItem("version")>="4.2.1"?!0:!!r.includes("://open.spotify.com/track/")}function s(r){console.log("Searching for:",r),hr.value=[],dn.value=!0,sl.value=r,Wn.value=!1,Gn.value="",bt.search(r).then(o=>{console.log("Received Search Data:",o.data),o.status===200?(hr.value=o.data,dn.value=!1):(console.error("Error Searching:",o),dn.value=!1,Wn.value=!0,Gn.value=o.toString())}).catch(o=>{console.error("Other Error Searching:",o.message),dn.value=!1,Wn.value=!0,Gn.value=o.message})}return{searchTerm:sl,isSearching:dn,results:hr,error:Wn,errorValue:Gn,searchFor:s,isValid:e,isValidSearch:t,isValidURL:n}}const Tt={QUEUED:"In Queue",DOWNLOADING:"Downloading...",DOWNLOADED:"Done",ERROR:"Error"},At=Te([]);class cg{constructor(t){this.song=t,this.web_status=Tt.QUEUED,this.progress=0,this.message="",this.web_download_url=null}setDownloading(){this.web_status=Tt.DOWNLOADING}setDownloaded(){this.web_status=Tt.DOWNLOADED}setError(){this.web_status=Tt.ERROR}setWebURL(t){this.web_download_url=t}isQueued(){return this.song.song_id!==void 0}isDownloading(){return this.web_status===Tt.DOWNLOADING}isDownloaded(){return this.web_status===Tt.DOWNLOADED}isErrored(){return this.web_status===Tt.ERROR}wsUpdate(t){this.progress=t.progress,this.message=t.message}}function Gs(){function e(r){return At.value.findIndex(o=>o.song.song_id===r.song_id)}function t(r){let o=new cg(r);At.value.push(o)}function n(r){console.log("removing",r,r.song_id),At.value=At.value.filter(o=>o.song.song_id!==r.song_id),console.log(At.value)}function s(r){return e(r)===-1?null:At.value[e(r)]}return{appendSong:t,removeSong:n,getBySong:s,downloadQueue:At}}const dt=Gs();bt.ws_onmessage(e=>{let t=JSON.parse(e.data);dt.getBySong(t.song).wsUpdate(t)});bt.ws_onerror(e=>{console.log("websocket error:",e)});function Fn(){const e=Te(!1);function t(o){return e.value=!0,bt.open(o).then(i=>{if(console.log("Received Response:",i),i.status===200){const l=i.data;if(Array.isArray(l))for(const c of l)console.log("Opened Song:",c),s(c);else console.log("Opened Song:",l),s(l)}else console.log("Error:",i)}).catch(i=>{console.log("Other Error:",i.message)}).finally(()=>{e.value=!1})}function n(o){console.log("Downloading",o),dt.getBySong(o).setDownloading(),bt.download(o.url).then(i=>{if(console.log("Received Response:",i),i.status===200){let l=i.data;console.log("Download Complete:",l),dt.getBySong(o).setWebURL(bt.downloadFileURL(l)),dt.getBySong(o).setDownloaded()}else console.log("Error:",i),dt.getBySong(o).setError()}).catch(i=>{console.log("Other Error:",i.message),dt.getBySong(o).setError()})}function s(o,i=!0){dt.appendSong(o),i&&n(o)}function r(o){console.log("removing"),dt.removeSong(o)}return{fromURL:t,download:n,queue:s,remove:r,loading:e}}const ag={class:"flex flex-row items-center space-x-4 w-full"},ug=["placeholder"],fg={key:0,class:"btn btn-square btn-primary loading"},Vr=Et({__name:"SearchInput",setup(e){const t=Ws(),n=Fn(),s=["All Eyes On Me - Bo Burnham","https://open.spotify.com/track/4vfN00PlILRXy5dcXHQE9M?si=e4d9e7c044dd4a8f","Lil Wayne","Drive - Miley Cyrus","Sofia - TMG","Lightning Crashes - Live"],r=Te(s[0]),o=setInterval(()=>{s.push(s.shift()),r.value=s[0]},6e3);Ul(()=>{clearInterval(o)});function i(l){if(t.isValidURL(l))n.fromURL(l),Qt.push({name:"Download"});else if(t.isValidSearch(l)){let c={name:"Search",params:{query:l}};t.isValidSearch(l)&&Qt.push(c)}else console.log("Invalid search term.")}return(l,c)=>(V(),q("div",ag,[Xn(O("input",{type:"text",placeholder:r.value,class:"input input-bordered w-full text-base-content","onUpdate:modelValue":c[0]||(c[0]=u=>$(t).searchTerm.value=u),onKeyup:c[1]||(c[1]=Tf(u=>i($(t).searchTerm.value),["enter"]))},null,40,ug),[[Of,$(t).searchTerm.value]]),$(n).loading.value?(V(),q("button",fg)):(V(),q("button",{key:1,class:"btn btn-square btn-primary",onClick:c[2]||(c[2]=u=>i($(t).searchTerm.value))},[$(t).isValidURL($(t).searchTerm.value)?(V(),hs($(Ee),{key:0,icon:"clarity:download-line",class:"h-6 w-6"})):(V(),hs($(Ee),{key:1,icon:"clarity:search-line",class:"h-6 w-6"}))]))]))}}),Js=e=>(Nl("data-v-316605e7"),e=e(),Ml(),e),dg={class:"hero min-h-screen"},hg={key:0,class:"flex justify-end absolute top-0 right-0"},pg={class:"btn btn-circle swap swap-rotate m-2"},mg=["checked"],gg={for:"my-modal",class:"btn btn-square modal-button m-2"},yg={class:"block text-center justify-center hero-content"},_g=Js(()=>O("div",{class:"bg-cover bg-no-repeat bg-center"},[O("img",{src:lo,class:"mb-5 w-32 center"})],-1)),bg=Js(()=>O("div",null,[O("h1",{class:"mb-5 text-5xl font-bold text-base-content"},"spotDL"),O("p",{class:"mb-5 text-base-content"}," Download your Spotify songs with embedded album art and metadata ")],-1)),wg={role:"alert",class:"alert alert-info shadow-lg my-4"},vg=Js(()=>O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-current flex-shrink-0 w-6 h-6"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),Sg=Js(()=>O("br",null,null,-1)),xg={key:0},Eg=Et({__name:"Hero",setup(e){const t=mo({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"}),n=localStorage.getItem("version")||"0.0.0";return(s,r)=>(V(),q("div",dg,[(V(),q("div",hg,[O("label",pg,[O("input",{type:"checkbox",onChange:r[0]||(r[0]=o=>{var i;return $(t).setTheme((i=o.target)!=null&&i.checked?"light":"dark")}),checked:$(t).currentTheme.value!=="dark"},null,40,mg),Q($(Ee),{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),Q($(Ee),{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),O("label",gg,[Q($(Ee),{icon:"clarity:settings-line",class:"h-6 w-6"})])])),O("div",yg,[_g,bg,Q(Vr),O("div",wg,[vg,O("span",null,[Zt(" This interface now can download a song or an entire album, artist, or playlist. "),Sg,$(n)<"4.2.1"?(V(),q("span",xg," This version is n ")):st("",!0)])])])]))}}),Rg=Nn(Eg,[["__scopeId","data-v-316605e7"]]),Og={components:{Hero:Rg},setup(){return Ls(()=>{window.scroll(0,0)}),{}}};function Cg(e,t,n,s,r,o){const i=fs("Hero");return V(),hs(i)}const Tg=Nn(Og,[["render",Cg]]),ia=e=>(Nl("data-v-b653c167"),e=e(),Ml(),e),Ag={class:"navbar m-2 shadow-lg bg-neutral text-neutral-content rounded-box",style:{width:"auto !important"}},Pg=ia(()=>O("div",{class:"bg-cover bg-no-repeat bg-center"},[O("img",{src:lo,class:"py-2 pr-2 w-10 center"})],-1)),kg=ia(()=>O("button",{class:"text-lg font-bold"},"spotDL",-1)),Ig=[Pg,kg],Lg={class:"hidden sm:flex px-2 mx-2 navbar-center w-96 space-x-4"},Ng={class:"navbar-end"},Mg={class:"btn btn-circle swap swap-rotate mx-2"},$g=["checked"],Fg={for:"my-modal",class:"btn btn-circle modal-button mx-2"},Dg={class:"indicator mx-2"},jg={key:0,class:"indicator-item indicator-top indicator-end badge badge-secondary",style:{top:"-5px",right:"-5px"}},Ug={class:"sm:hidden px-2 mx-2"},Bg=Et({__name:"Navbar",setup(e){const t=Gs();Fn();const n=Ws(),s=qc(),r=mo({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"});return(o,i)=>(V(),q(me,null,[O("div",Ag,[O("button",{class:"px-2 mx-2 navbar-start",onClick:i[0]||(i[0]=l=>$(Qt).push({name:"Home"}))},Ig),O("div",Lg,[Q(Vr,{class:"w-full"})]),O("div",Ng,[O("label",Mg,[O("input",{type:"checkbox",onChange:i[1]||(i[1]=l=>{var c;return $(r).setTheme((c=l.target)!=null&&c.checked?"light":"dark")}),checked:$(r).currentTheme.value!=="dark"},null,40,$g),Q($(Ee),{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),Q($(Ee),{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),O("label",Fg,[Q($(Ee),{icon:"clarity:settings-line",class:"h-6 w-6"})]),O("div",Dg,[$(t).downloadQueue.value.length>0?(V(),q("div",jg,xe($(t).downloadQueue.value.length),1)):st("",!0),O("a",{class:Os(["btn btn-circle",$(s).name==="Download"?"btn-primary":"btn-ghost"]),onClick:i[2]||(i[2]=l=>$(s).name==="Download"?$(Qt).push({name:"Search",params:{query:$(n).searchTerm.value}}):$(Qt).push({name:"Download"}))},[Q($(Ee),{icon:"clarity:download-cloud-line",class:"h-6 w-6"})],2)])])]),O("div",Ug,[Q(Vr,{class:"w-full"})])],64))}}),la=Nn(Bg,[["__scopeId","data-v-b653c167"]]),Hg={class:"min-h-screen m-2"},Vg={key:0,class:"hero min-h-screen"},qg={key:0,class:"btn btn-sm btn-ghost loading"},Kg={key:1,class:"alert alert-error"},zg={class:"flex-1"},Wg=O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 mx-2 stroke-current"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1),Gg={class:"aspect-square md:max-h-fit"},Jg=["src"],Qg={class:"card-body"},Xg={class:"card-title"},Yg={key:0,class:"badge mx-0.5 badge-error"},Zg={key:0},e0=O("br",null,null,-1),t0=O("p",null,[O("br")],-1),n0={class:"card-actions absolute bottom-0 right-0 m-2"},s0=["href"],r0={key:0,class:"btn btn-primary btn-square"},o0=["onClick"],i0=Et({__name:"SearchList",props:["data","error"],emits:["download"],setup(e,{emit:t}){const n=e;console.log("props",n);const s=t,r=Ws(),o=Gs();Fn();function i(l){s("download",l)}return(l,c)=>(V(),q("div",Hg,[$(r).isSearching.value||n.error?(V(),q("div",Vg,[$(r).isSearching?(V(),q("button",qg," LOADING ")):st("",!0),n.error?(V(),q("div",Kg,[O("div",zg,[Wg,O("label",null,"Error: "+xe($(r).errorValue),1)])])):st("",!0)])):(V(!0),q(me,{key:1},Nt(n.data,(u,a)=>{var d;return V(),q("div",{key:a,class:"card md:card-side card-bordered my-2 shadow-lg card-compact bg-base-100"},[O("figure",Gg,[O("img",{src:u.cover_url,class:"object-contain aspect-square md:max-h-44"},null,8,Jg)]),O("div",Qg,[O("h2",Xg,[Zt(xe(u.name)+" ",1),u.explicit?(V(),q("div",Yg," Explicit ")):st("",!0)]),O("h3",null,[(V(!0),q(me,null,Nt(u.artists,(p,m)=>(V(),q("a",{key:m},[m!==0?(V(),q("a",Zg," • ")):st("",!0),Zt(" "+xe(p),1)]))),128))]),O("h3",null,xe(u.album_name),1),e0,t0,O("div",n0,[O("a",{class:"btn btn-ghost btn-square",href:u.url,target:"_blank"},[Q($(Ee),{icon:"clarity:link-line",class:"h-6 w-6"})],8,s0),(d=$(o).getBySong(u))!=null&&d.isQueued()?(V(),q("button",r0,[Q($(Ee),{icon:"clarity:check-line",class:"h-6 w-6"})])):(V(),q("button",{key:1,class:"btn btn-primary btn-square",onClick:p=>i(u)},[Q($(Ee),{icon:"clarity:floppy-line",class:"h-6 w-6"})],8,o0))])])])}),128))]))}}),l0={__name:"Search",setup(e){Ls(()=>{window.scroll(0,0)});const t=qc(),n=Ws(),s=Fn();return _n(()=>t.params.query,()=>{t.params.query&&n.searchFor(t.params.query)},{deep:!0}),n.searchFor(t.params.query),(r,o)=>(V(),q("div",null,[Q(la),Q(i0,{data:$(n).results.value,error:$(n).error.value,onDownload:o[0]||(o[0]=i=>$(s).queue(i))},null,8,["data","error"])]))}},c0={class:"min-h-screen m-2"},a0=O("h1",{class:"m-4 text-xl"},"Queue",-1),u0={key:0},f0=O("div",{class:"alert alert-error shadow-lg"},[O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-current flex-shrink-0 w-6 h-6"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"No downloads are queued. Search for a song to begin.")],-1),d0=[f0],h0={key:1},p0={class:"carousel carousel-end bg-base-200 rounded-box shadow-lg"},m0=["src"],g0={class:"card card-bordered my-2 shadow-lg card-compact bg-base-100"},y0={class:"card-title"},_0={class:"stat-figure text-primary flex space-x-2 items-center"},b0={key:0,class:"badge badge-error gap-2"},w0={class:"badge"},v0=["onClick"],S0=["onClick"],x0={key:2,class:"btn btn-square btn-ghost loading"},E0={__name:"DownloadList",props:{data:Object},setup(e){const t=Gs(),n=Fn();function s(r){const o=document.createElement("a");o.href=r,o.download=r.split("/").pop(),document.body.appendChild(o),o.click(),document.body.removeChild(o)}return(r,o)=>(V(),q("div",c0,[a0,$(t).downloadQueue.value.length===0?(V(),q("div",u0,d0)):(V(),q("div",h0,[O("div",p0,[(V(!0),q(me,null,Nt($(t).downloadQueue.value,(i,l)=>(V(),q("div",{key:l,class:"carousel-item h-48"},[O("img",{src:i.song.cover_url},null,8,m0)]))),128))]),O("div",g0,[(V(!0),q(me,null,Nt($(t).downloadQueue.value,(i,l)=>(V(),q("div",{key:l,class:"card-body grid grid-rows-1"},[O("h2",y0,xe(i.song.name)+" - "+xe(i.song.artist),1),O("p",null,xe(i.song.album_name),1),O("div",_0,[i.isErrored()?(V(),q("div",b0," error ")):st("",!0),O("span",w0,xe(i.message||i.web_status),1),O("button",{class:"btn btn-error btn-outline btn-square",onClick:c=>$(n).remove(i.song)},[Q($(Ee),{icon:"clarity:trash-line",class:"h-6 w-6"})],8,v0),i.isDownloaded()?(V(),q("a",{key:1,class:"btn btn-square btn-ghost",href:"javascript:;",onClick:c=>s(i.web_download_url),download:""},[Q($(Ee),{icon:"clarity:download-line",class:"h-6 w-6"})],8,S0)):i.progress===0?(V(),q("button",x0)):(V(),q("div",{key:3,class:"radial-progress bg-primary text-primary-content border-4 border-primary",style:Rs(`--value: ${i.progress}; --size: 2.5rem`)},xe(Math.round(i.progress))+"% ",5))])]))),128))])]))]))}},R0={components:{Navbar:la,DownloadList:E0},setup(){return Ls(()=>{window.scroll(0,0)}),{}}};function O0(e,t,n,s,r,o){const i=fs("Navbar"),l=fs("DownloadList");return V(),q("div",null,[Q(i),Q(l)])}const C0=Nn(R0,[["render",O0]]),T0=[{path:"/",name:"Home",component:Tg},{path:"/search/:query",name:"Search",component:l0},{path:"/download",name:"Download",component:C0}],Qt=sm({history:kp(je.BASEURL),routes:T0}),ca=kf(ep);ca.use(Qt);ca.mount("#app"); + */const Kt=typeof document<"u";function np(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ne=Object.assign;function cr(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ve(r)?r.map(e):e(r)}return n}const wn=()=>{},Ve=Array.isArray,Nc=/#/g,sp=/&/g,rp=/\//g,op=/=/g,ip=/\?/g,Mc=/\+/g,lp=/%5B/g,cp=/%5D/g,$c=/%5E/g,ap=/%60/g,Fc=/%7B/g,up=/%7C/g,Dc=/%7D/g,fp=/%20/g;function go(e){return encodeURI(""+e).replace(up,"|").replace(lp,"[").replace(cp,"]")}function dp(e){return go(e).replace(Fc,"{").replace(Dc,"}").replace($c,"^")}function Lr(e){return go(e).replace(Mc,"%2B").replace(fp,"+").replace(Nc,"%23").replace(sp,"%26").replace(ap,"`").replace(Fc,"{").replace(Dc,"}").replace($c,"^")}function hp(e){return Lr(e).replace(op,"%3D")}function pp(e){return go(e).replace(Nc,"%23").replace(ip,"%3F")}function mp(e){return e==null?"":pp(e).replace(rp,"%2F")}function Tn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const gp=/\/$/,yp=e=>e.replace(gp,"");function ar(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=vp(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Tn(i)}}function _p(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ci(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function bp(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&en(t.matched[s],n.matched[r])&&jc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function en(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wp(e[n],t[n]))return!1;return!0}function wp(e,t){return Ve(e)?Ti(e,t):Ve(t)?Ti(t,e):e===t}function Ti(e,t){return Ve(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function vp(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 o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const ft={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var An;(function(e){e.pop="pop",e.push="push"})(An||(An={}));var vn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vn||(vn={}));function Sp(e){if(!e)if(Kt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yp(e)}const xp=/^[^#]+#/;function Ep(e,t){return e.replace(xp,"#")+t}function Rp(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 Vs=()=>({left:window.scrollX,top:window.scrollY});function Op(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=Rp(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 Ai(e,t){return(history.state?history.state.position-t:-1)+e}const Nr=new Map;function Cp(e,t){Nr.set(e,t)}function Tp(e){const t=Nr.get(e);return Nr.delete(e),t}let Ap=()=>location.protocol+"//"+location.host;function Uc(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Ci(c,"")}return Ci(n,e)+s+r}function Pp(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const m=Uc(e,location),b=n.value,_=t.value;let E=0;if(p){if(n.value=m,t.value=p,i&&i===b){i=null;return}E=_?p.position-_.position:0}else s(m);r.forEach(F=>{F(n.value,b,{delta:E,type:An.pop,direction:E?E>0?vn.forward:vn.back:vn.unknown})})};function c(){i=n.value}function u(p){r.push(p);const m=()=>{const b=r.indexOf(p);b>-1&&r.splice(b,1)};return o.push(m),m}function a(){const{history:p}=window;p.state&&p.replaceState(ne({},p.state,{scroll:Vs()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:c,listen:u,destroy:d}}function Pi(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Vs():null}}function kp(e){const{history:t,location:n}=window,s={value:Uc(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,a){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:Ap()+e+c;try{t[a?"replaceState":"pushState"](u,"",p),r.value=u}catch(m){console.error(m),n[a?"replace":"assign"](p)}}function i(c,u){const a=ne({},t.state,Pi(r.value.back,c,r.value.forward,!0),u,{position:r.value.position});o(c,a,!0),s.value=c}function l(c,u){const a=ne({},r.value,t.state,{forward:c,scroll:Vs()});o(a.current,a,!0);const d=ne({},Pi(s.value,c,null),{position:a.position+1},u);o(c,d,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function Ip(e){e=Sp(e);const t=kp(e),n=Pp(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ne({location:"",base:e,go:s,createHref:Ep.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 Lp(e){return typeof e=="string"||e&&typeof e=="object"}function Bc(e){return typeof e=="string"||typeof e=="symbol"}const Hc=Symbol("");var ki;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ki||(ki={}));function tn(e,t){return ne(new Error,{type:e,[Hc]:!0},t)}function tt(e,t){return e instanceof Error&&Hc in e&&(t==null||!!(e.type&t))}const Ii="[^/]+?",Np={sensitive:!1,strict:!1,start:!0,end:!0},Mp=/[.+*?^${}()[\]/\\]/g;function $p(e,t){const n=ne({},Np,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const a=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function Vc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Dp={type:0,value:""},jp=/[a-zA-Z0-9_]/;function Up(e){if(!e)return[[]];if(e==="/")return[[Dp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,u="",a="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l{i(C)}:wn}function i(d){if(Bc(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){const p=zp(d,n);n.splice(p,0,d),d.record.name&&!Mi(d)&&s.set(d.record.name,d)}function u(d,p){let m,b={},_,E;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw tn(1,{location:d});E=m.record.name,b=ne(Ni(p.params,m.keys.filter(C=>!C.optional).concat(m.parent?m.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&Ni(d.params,m.keys.map(C=>C.name))),_=m.stringify(b)}else if(d.path!=null)_=d.path,m=n.find(C=>C.re.test(_)),m&&(b=m.parse(_),E=m.record.name);else{if(m=p.name?s.get(p.name):n.find(C=>C.re.test(p.path)),!m)throw tn(1,{location:d,currentLocation:p});E=m.record.name,b=ne({},p.params,d.params),_=m.stringify(b)}const F=[];let L=m;for(;L;)F.unshift(L.record),L=L.parent;return{name:E,path:_,params:b,matched:F,meta:Kp(F)}}e.forEach(d=>o(d));function a(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:a,getRoutes:l,getRecordMatcher:r}}function Ni(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Vp(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qp(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 qp(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 Mi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Kp(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function $i(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function zp(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Vc(e,t[o])<0?s=o:n=o+1}const r=Wp(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Wp(e){let t=e;for(;t=t.parent;)if(qc(t)&&Vc(e,t)===0)return t}function qc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Gp(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Lr(o)):[s&&Lr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jp(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ve(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Qp=Symbol(""),Di=Symbol(""),yo=Symbol(""),_o=Symbol(""),Mr=Symbol("");function un(){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 mt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(tn(4,{from:n,to:t})):p instanceof Error?c(p):Lp(p)?c(tn(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},a=o(()=>e.call(s&&s.instances[r],t,n,u));let d=Promise.resolve(a);e.length<3&&(d=d.then(u)),d.catch(p=>c(p))})}function ur(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Xp(c)){const a=(c.__vccOpts||c)[t];a&&o.push(mt(a,n,s,i,l,r))}else{let u=c();o.push(()=>u.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const d=np(a)?a.default:a;i.components[l]=d;const m=(d.__vccOpts||d)[t];return m&&mt(m,n,s,i,l,r)()}))}}return o}function Xp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ji(e){const t=Ye(yo),n=Ye(_o),s=De(()=>{const c=$(e.to);return t.resolve(c)}),r=De(()=>{const{matched:c}=s.value,{length:u}=c,a=c[u-1],d=n.matched;if(!a||!d.length)return-1;const p=d.findIndex(en.bind(null,a));if(p>-1)return p;const m=Ui(c[u-2]);return u>1&&Ui(a)===m&&d[d.length-1].path!==m?d.findIndex(en.bind(null,c[u-2])):p}),o=De(()=>r.value>-1&&tm(n.params,s.value.params)),i=De(()=>r.value>-1&&r.value===n.matched.length-1&&jc(n.params,s.value.params));function l(c={}){return em(c)?t[$(e.replace)?"replace":"push"]($(e.to)).catch(wn):Promise.resolve()}return{route:s,href:De(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const Yp=Et({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:ji,setup(e,{slots:t}){const n=As(ji(e)),{options:s}=Ye(yo),r=De(()=>({[Bi(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Bi(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ms("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Zp=Yp;function em(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 tm(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(!Ve(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Ui(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bi=(e,t,n)=>e??t??n,nm=Et({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ye(Mr),r=De(()=>e.route||s.value),o=Ye(Di,0),i=De(()=>{let u=$(o);const{matched:a}=r.value;let d;for(;(d=a[u])&&!d.components;)u++;return u}),l=De(()=>r.value.matched[i.value]);Zn(Di,De(()=>i.value+1)),Zn(Qp,l),Zn(Mr,r);const c=Te();return _n(()=>[c.value,l.value,e.name],([u,a,d],[p,m,b])=>{a&&(a.instances[d]=u,m&&m!==a&&u&&u===p&&(a.leaveGuards.size||(a.leaveGuards=m.leaveGuards),a.updateGuards.size||(a.updateGuards=m.updateGuards))),u&&a&&(!m||!en(a,m)||!p)&&(a.enterCallbacks[d]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=r.value,a=e.name,d=l.value,p=d&&d.components[a];if(!p)return Hi(n.default,{Component:p,route:u});const m=d.props[a],b=m?m===!0?u.params:typeof m=="function"?m(u):m:null,E=ms(p,ne({},b,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(d.instances[a]=null)},ref:c}));return Hi(n.default,{Component:E,route:u})||E}}});function Hi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const sm=nm;function rm(e){const t=Hp(e.routes,e),n=e.parseQuery||Gp,s=e.stringifyQuery||Fi,r=e.history,o=un(),i=un(),l=un(),c=Wa(ft);let u=ft;Kt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=cr.bind(null,v=>""+v),d=cr.bind(null,mp),p=cr.bind(null,Tn);function m(v,N){let I,D;return Bc(v)?(I=t.getRecordMatcher(v),D=N):D=v,t.addRoute(D,I)}function b(v){const N=t.getRecordMatcher(v);N&&t.removeRoute(N)}function _(){return t.getRoutes().map(v=>v.record)}function E(v){return!!t.getRecordMatcher(v)}function F(v,N){if(N=ne({},N||c.value),typeof v=="string"){const h=ar(n,v,N.path),g=t.resolve({path:h.path},N),S=r.createHref(h.fullPath);return ne(h,g,{params:p(g.params),hash:Tn(h.hash),redirectedFrom:void 0,href:S})}let I;if(v.path!=null)I=ne({},v,{path:ar(n,v.path,N.path).path});else{const h=ne({},v.params);for(const g in h)h[g]==null&&delete h[g];I=ne({},v,{params:d(h)}),N.params=d(N.params)}const D=t.resolve(I,N),te=v.hash||"";D.params=a(p(D.params));const ce=_p(s,ne({},v,{hash:dp(te),path:D.path})),f=r.createHref(ce);return ne({fullPath:ce,hash:te,query:s===Fi?Jp(v.query):v.query||{}},D,{redirectedFrom:void 0,href:f})}function L(v){return typeof v=="string"?ar(n,v,c.value.path):ne({},v)}function C(v,N){if(u!==v)return tn(8,{from:N,to:v})}function B(v){return z(v)}function re(v){return B(ne(L(v),{replace:!0}))}function P(v){const N=v.matched[v.matched.length-1];if(N&&N.redirect){const{redirect:I}=N;let D=typeof I=="function"?I(v):I;return typeof D=="string"&&(D=D.includes("?")||D.includes("#")?D=L(D):{path:D},D.params={}),ne({query:v.query,hash:v.hash,params:D.path!=null?{}:v.params},D)}}function z(v,N){const I=u=F(v),D=c.value,te=v.state,ce=v.force,f=v.replace===!0,h=P(I);if(h)return z(ne(L(h),{state:typeof h=="object"?ne({},te,h.state):te,force:ce,replace:f}),N||I);const g=I;g.redirectedFrom=N;let S;return!ce&&bp(s,D,I)&&(S=tn(16,{to:g,from:D}),ze(D,D,!0,!1)),(S?Promise.resolve(S):de(g,D)).catch(w=>tt(w)?tt(w,2)?w:ct(w):Y(w,g,D)).then(w=>{if(w){if(tt(w,2))return z(ne({replace:f},L(w.to),{state:typeof w.to=="object"?ne({},te,w.to.state):te,force:ce}),N||g)}else w=Rt(g,D,!0,f,te);return lt(g,D,w),w})}function ae(v,N){const I=C(v,N);return I?Promise.reject(I):Promise.resolve()}function Ie(v){const N=Ht.values().next().value;return N&&typeof N.runWithContext=="function"?N.runWithContext(v):v()}function de(v,N){let I;const[D,te,ce]=om(v,N);I=ur(D.reverse(),"beforeRouteLeave",v,N);for(const h of D)h.leaveGuards.forEach(g=>{I.push(mt(g,v,N))});const f=ae.bind(null,v,N);return I.push(f),Le(I).then(()=>{I=[];for(const h of o.list())I.push(mt(h,v,N));return I.push(f),Le(I)}).then(()=>{I=ur(te,"beforeRouteUpdate",v,N);for(const h of te)h.updateGuards.forEach(g=>{I.push(mt(g,v,N))});return I.push(f),Le(I)}).then(()=>{I=[];for(const h of ce)if(h.beforeEnter)if(Ve(h.beforeEnter))for(const g of h.beforeEnter)I.push(mt(g,v,N));else I.push(mt(h.beforeEnter,v,N));return I.push(f),Le(I)}).then(()=>(v.matched.forEach(h=>h.enterCallbacks={}),I=ur(ce,"beforeRouteEnter",v,N,Ie),I.push(f),Le(I))).then(()=>{I=[];for(const h of i.list())I.push(mt(h,v,N));return I.push(f),Le(I)}).catch(h=>tt(h,8)?h:Promise.reject(h))}function lt(v,N,I){l.list().forEach(D=>Ie(()=>D(v,N,I)))}function Rt(v,N,I,D,te){const ce=C(v,N);if(ce)return ce;const f=N===ft,h=Kt?history.state:{};I&&(D||f?r.replace(v.fullPath,ne({scroll:f&&h&&h.scroll},te)):r.push(v.fullPath,te)),c.value=v,ze(v,N,I,f),ct()}let Ke;function on(){Ke||(Ke=r.listen((v,N,I)=>{if(!Dn.listening)return;const D=F(v),te=P(D);if(te){z(ne(te,{replace:!0}),D).catch(wn);return}u=D;const ce=c.value;Kt&&Cp(Ai(ce.fullPath,I.delta),Vs()),de(D,ce).catch(f=>tt(f,12)?f:tt(f,2)?(z(f.to,D).then(h=>{tt(h,20)&&!I.delta&&I.type===An.pop&&r.go(-1,!1)}).catch(wn),Promise.reject()):(I.delta&&r.go(-I.delta,!1),Y(f,D,ce))).then(f=>{f=f||Rt(D,ce,!1),f&&(I.delta&&!tt(f,8)?r.go(-I.delta,!1):I.type===An.pop&&tt(f,20)&&r.go(-1,!1)),lt(D,ce,f)}).catch(wn)}))}let Ut=un(),he=un(),se;function Y(v,N,I){ct(v);const D=he.list();return D.length?D.forEach(te=>te(v,N,I)):console.error(v),Promise.reject(v)}function et(){return se&&c.value!==ft?Promise.resolve():new Promise((v,N)=>{Ut.add([v,N])})}function ct(v){return se||(se=!v,on(),Ut.list().forEach(([N,I])=>v?I(v):N()),Ut.reset()),v}function ze(v,N,I,D){const{scrollBehavior:te}=e;if(!Kt||!te)return Promise.resolve();const ce=!I&&Tp(Ai(v.fullPath,0))||(D||!I)&&history.state&&history.state.scroll||null;return no().then(()=>te(v,N,ce)).then(f=>f&&Op(f)).catch(f=>Y(f,v,N))}const ve=v=>r.go(v);let Bt;const Ht=new Set,Dn={currentRoute:c,listening:!0,addRoute:m,removeRoute:b,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:_,resolve:F,options:e,push:B,replace:re,go:ve,back:()=>ve(-1),forward:()=>ve(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:he.add,isReady:et,install(v){const N=this;v.component("RouterLink",Zp),v.component("RouterView",sm),v.config.globalProperties.$router=N,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>$(c)}),Kt&&!Bt&&c.value===ft&&(Bt=!0,B(r.location).catch(te=>{}));const I={};for(const te in ft)Object.defineProperty(I,te,{get:()=>c.value[te],enumerable:!0});v.provide(yo,N),v.provide(_o,El(I)),v.provide(Mr,c);const D=v.unmount;Ht.add(v),v.unmount=function(){Ht.delete(v),Ht.size<1&&(u=ft,Ke&&Ke(),Ke=null,c.value=ft,Bt=!1,se=!1),D()}}};function Le(v){return v.reduce((N,I)=>N.then(()=>Ie(I)),Promise.resolve())}return Dn}function om(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ien(u,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(u=>en(u,c))||r.push(c))}return[n,s,r]}function Kc(e){return Ye(_o)}const Sn=/^[a-z0-9]+(-[a-z0-9]+)*$/,qs=(e,t,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const l=r.pop(),c=r.pop(),u={provider:r.length>0?r[0]:s,prefix:c,name:l};return t&&!is(u)?null:u}const o=r[0],i=o.split("-");if(i.length>1){const l={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!is(l)?null:l}if(n&&s===""){const l={provider:s,prefix:"",name:o};return t&&!is(l,n)?null:l}return null},is=(e,t)=>e?!!((e.provider===""||e.provider.match(Sn))&&(t&&e.prefix===""||e.prefix.match(Sn))&&e.name.match(Sn)):!1,zc=Object.freeze({left:0,top:0,width:16,height:16}),ws=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ks=Object.freeze({...zc,...ws}),$r=Object.freeze({...Ks,body:"",hidden:!1});function im(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function Vi(e,t){const n=im(e,t);for(const s in $r)s in ws?s in e&&!(s in n)&&(n[s]=ws[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function lm(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function o(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const l=s[i]&&s[i].parent,c=l&&o(l);c&&(r[i]=[l].concat(c))}return r[i]}return Object.keys(n).concat(Object.keys(s)).forEach(o),r}function cm(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let o={};function i(l){o=Vi(s[l]||r[l],o)}return i(t),n.forEach(i),Vi(e,o)}function Wc(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const s=lm(e);for(const r in s){const o=s[r];o&&(t(r,cm(e,r,o)),n.push(r))}return n}const am={provider:"",aliases:{},not_found:{},...zc};function fr(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Gc(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fr(e,am))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(Sn)||typeof o.body!="string"||!fr(o,$r))return null}const s=t.aliases||Object.create(null);for(const r in s){const o=s[r],i=o.parent;if(!r.match(Sn)||typeof i!="string"||!n[i]&&!s[i]||!fr(o,$r))return null}return t}const qi=Object.create(null);function um(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function jt(e,t){const n=qi[e]||(qi[e]=Object.create(null));return n[t]||(n[t]=um(e,t))}function bo(e,t){return Gc(t)?Wc(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function fm(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Pn=!1;function Jc(e){return typeof e=="boolean"&&(Pn=e),Pn}function dm(e){const t=typeof e=="string"?qs(e,!0,Pn):e;if(t){const n=jt(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function hm(e,t){const n=qs(e,!0,Pn);if(!n)return!1;const s=jt(n.provider,n.prefix);return fm(s,n.name,t)}function pm(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Pn&&!t&&!e.prefix){let r=!1;return Gc(e)&&(e.prefix="",Wc(e,(o,i)=>{i&&hm(o,i)&&(r=!0)})),r}const n=e.prefix;if(!is({provider:t,prefix:n,name:"a"}))return!1;const s=jt(t,n);return!!bo(s,e)}const Qc=Object.freeze({width:null,height:null}),Xc=Object.freeze({...Qc,...ws}),mm=/(-?[0-9.]*[0-9]+[0-9.]*)/g,gm=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ki(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(mm);if(s===null||!s.length)return e;const r=[];let o=s.shift(),i=gm.test(o);for(;;){if(i){const l=parseFloat(o);isNaN(l)?r.push(o):r.push(Math.ceil(l*t*n)/n)}else r.push(o);if(o=s.shift(),o===void 0)return r.join("");i=!i}}function ym(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const r=e.indexOf(">",s),o=e.indexOf("",o);if(i===-1)break;n+=e.slice(r+1,o).trim(),e=e.slice(0,s).trim()+e.slice(i+1)}return{defs:n,content:e}}function _m(e,t){return e?""+e+""+t:t}function bm(e,t,n){const s=ym(e);return _m(s.defs,t+s.content+n)}const wm=e=>e==="unset"||e==="undefined"||e==="none";function vm(e,t){const n={...Ks,...e},s={...Xc,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(_=>{const E=[],F=_.hFlip,L=_.vFlip;let C=_.rotate;F?L?C+=2:(E.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),E.push("scale(-1 1)"),r.top=r.left=0):L&&(E.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),E.push("scale(1 -1)"),r.top=r.left=0);let B;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:B=r.height/2+r.top,E.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:E.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:B=r.width/2+r.left,E.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")");break}C%2===1&&(r.left!==r.top&&(B=r.left,r.left=r.top,r.top=B),r.width!==r.height&&(B=r.width,r.width=r.height,r.height=B)),E.length&&(o=bm(o,'',""))});const i=s.width,l=s.height,c=r.width,u=r.height;let a,d;i===null?(d=l===null?"1em":l==="auto"?u:l,a=Ki(d,c/u)):(a=i==="auto"?c:i,d=l===null?Ki(a,u/c):l==="auto"?u:l);const p={},m=(_,E)=>{wm(E)||(p[_]=E.toString())};m("width",a),m("height",d);const b=[r.left,r.top,c,u];return p.viewBox=b.join(" "),{attributes:p,viewBox:b,body:o}}const Sm=/\sid="(\S+)"/g,xm="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Em=0;function Rm(e,t=xm){const n=[];let s;for(;s=Sm.exec(e);)n.push(s[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(o=>{const i=typeof t=="function"?t(o):t+(Em++).toString(),l=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+i+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const Fr=Object.create(null);function Om(e,t){Fr[e]=t}function Dr(e){return Fr[e]||Fr[""]}function wo(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const vo=Object.create(null),fn=["https://api.simplesvg.com","https://api.unisvg.com"],ls=[];for(;fn.length>0;)fn.length===1||Math.random()>.5?ls.push(fn.shift()):ls.push(fn.pop());vo[""]=wo({resources:["https://api.iconify.design"].concat(ls)});function Cm(e,t){const n=wo(t);return n===null?!1:(vo[e]=n,!0)}function So(e){return vo[e]}const Tm=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let zi=Tm();function Am(e,t){const n=So(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const o=t+".json?icons=";s=n.maxURL-r-n.path.length-o.length}return s}function Pm(e){return e===404}const km=(e,t,n)=>{const s=[],r=Am(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},l=0;return n.forEach((c,u)=>{l+=c.length+1,l>=r&&u>0&&(s.push(i),i={type:o,provider:e,prefix:t,icons:[]},l=c.length),i.icons.push(c)}),s.push(i),s};function Im(e){if(typeof e=="string"){const t=So(e);if(t)return t.path}return"/"}const Lm=(e,t,n)=>{if(!zi){n("abort",424);return}let s=Im(t.provider);switch(t.type){case"icons":{const o=t.prefix,l=t.icons.join(","),c=new URLSearchParams({icons:l});s+=o+".json?"+c.toString();break}case"custom":{const o=t.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;zi(e+s).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(Pm(i)?"abort":"next",i)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})},Nm={prepare:km,send:Lm};function Mm(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const o=r.provider,i=r.prefix,l=r.name,c=n[o]||(n[o]=Object.create(null)),u=c[i]||(c[i]=jt(o,i));let a;l in u.icons?a=t.loaded:i===""||u.missing.has(l)?a=t.missing:a=t.pending;const d={provider:o,prefix:i,name:l};a.push(d)}),t}function Yc(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==t))})}function $m(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,r=e.prefix;t.forEach(o=>{const i=o.icons,l=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==r)return!0;const u=c.name;if(e.icons[u])i.loaded.push({provider:s,prefix:r,name:u});else if(e.missing.has(u))i.missing.push({provider:s,prefix:r,name:u});else return n=!0,!0;return!1}),i.pending.length!==l&&(n||Yc([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let Fm=0;function Dm(e,t,n){const s=Fm++,r=Yc.bind(null,n,s);if(!t.pending.length)return r;const o={id:s,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),r}function jm(e,t=!0,n=!1){const s=[];return e.forEach(r=>{const o=typeof r=="string"?qs(r,t,n):r;o&&s.push(o)}),s}var Um={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bm(e,t,n,s){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let P=e.resources.slice(0);for(i=[];P.length>1;){const z=Math.floor(Math.random()*P.length);i.push(P[z]),P=P.slice(0,z).concat(P.slice(z+1))}i=i.concat(P)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const l=Date.now();let c="pending",u=0,a,d=null,p=[],m=[];typeof s=="function"&&m.push(s);function b(){d&&(clearTimeout(d),d=null)}function _(){c==="pending"&&(c="aborted"),b(),p.forEach(P=>{P.status==="pending"&&(P.status="aborted")}),p=[]}function E(P,z){z&&(m=[]),typeof P=="function"&&m.push(P)}function F(){return{startTime:l,payload:t,status:c,queriesSent:u,queriesPending:p.length,subscribe:E,abort:_}}function L(){c="failed",m.forEach(P=>{P(void 0,a)})}function C(){p.forEach(P=>{P.status==="pending"&&(P.status="aborted")}),p=[]}function B(P,z,ae){const Ie=z!=="success";switch(p=p.filter(de=>de!==P),c){case"pending":break;case"failed":if(Ie||!e.dataAfterTimeout)return;break;default:return}if(z==="abort"){a=ae,L();return}if(Ie){a=ae,p.length||(i.length?re():L());return}if(b(),C(),!e.random){const de=e.resources.indexOf(P.resource);de!==-1&&de!==e.index&&(e.index=de)}c="completed",m.forEach(de=>{de(ae)})}function re(){if(c!=="pending")return;b();const P=i.shift();if(P===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(C(),L())},e.timeout);return}L();return}const z={status:"pending",resource:P,callback:(ae,Ie)=>{B(z,ae,Ie)}};p.push(z),u++,d=setTimeout(re,e.rotate),n(P,t,z.callback)}return setTimeout(re),F}function Zc(e){const t={...Um,...e};let n=[];function s(){n=n.filter(l=>l().status==="pending")}function r(l,c,u){const a=Bm(t,l,c,(d,p)=>{s(),u&&u(d,p)});return n.push(a),a}function o(l){return n.find(c=>l(c))||null}return{query:r,find:o,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:s}}function Wi(){}const dr=Object.create(null);function Hm(e){if(!dr[e]){const t=So(e);if(!t)return;const n=Zc(t),s={config:t,redundancy:n};dr[e]=s}return dr[e]}function Vm(e,t,n){let s,r;if(typeof e=="string"){const o=Dr(e);if(!o)return n(void 0,424),Wi;r=o.send;const i=Hm(e);i&&(s=i.redundancy)}else{const o=wo(e);if(o){s=Zc(o);const i=e.resources?e.resources[0]:"",l=Dr(i);l&&(r=l.send)}}return!s||!r?(n(void 0,424),Wi):s.query(t,r,n)().abort}const Gi="iconify2",kn="iconify",ea=kn+"-count",Ji=kn+"-version",ta=36e5,qm=168,Km=50;function jr(e,t){try{return e.getItem(t)}catch{}}function xo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Qi(e,t){try{e.removeItem(t)}catch{}}function Ur(e,t){return xo(e,ea,t.toString())}function Br(e){return parseInt(jr(e,ea))||0}const zs={local:!0,session:!0},na={local:new Set,session:new Set};let Eo=!1;function zm(e){Eo=e}let zn=typeof window>"u"?{}:window;function sa(e){const t=e+"Storage";try{if(zn&&zn[t]&&typeof zn[t].length=="number")return zn[t]}catch{}zs[e]=!1}function ra(e,t){const n=sa(e);if(!n)return;const s=jr(n,Ji);if(s!==Gi){if(s){const l=Br(n);for(let c=0;c{const c=kn+l.toString(),u=jr(n,c);if(typeof u=="string"){try{const a=JSON.parse(u);if(typeof a=="object"&&typeof a.cached=="number"&&a.cached>r&&typeof a.provider=="string"&&typeof a.data=="object"&&typeof a.data.prefix=="string"&&t(a,l))return!0}catch{}Qi(n,c)}};let i=Br(n);for(let l=i-1;l>=0;l--)o(l)||(l===i-1?(i--,Ur(n,i)):na[e].add(l))}function oa(){if(!Eo){zm(!0);for(const e in zs)ra(e,t=>{const n=t.data,s=t.provider,r=n.prefix,o=jt(s,r);if(!bo(o,n).length)return!1;const i=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,i):i,!0})}}function Wm(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const s in zs)ra(s,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function Gm(e,t){Eo||oa();function n(s){let r;if(!zs[s]||!(r=sa(s)))return;const o=na[s];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=Br(r),i>=Km||!Ur(r,i+1))return;const l={cached:Math.floor(Date.now()/ta),provider:e.provider,data:t};return xo(r,kn+i.toString(),JSON.stringify(l))}t.lastModified&&!Wm(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Xi(){}function Jm(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,$m(e)}))}function Qm(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=Dr(n)))return;o.prepare(n,s,r).forEach(l=>{Vm(n,l,c=>{if(typeof c!="object")l.icons.forEach(u=>{e.missing.add(u)});else try{const u=bo(e,c);if(!u.length)return;const a=e.pendingIcons;a&&u.forEach(d=>{a.delete(d)}),Gm(e,c)}catch(u){console.error(u)}Jm(e)})})}))}const Xm=(e,t)=>{const n=jm(e,!0,Jc()),s=Mm(n);if(!s.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(s.loaded,s.missing,s.pending,Xi)}),()=>{c=!1}}const r=Object.create(null),o=[];let i,l;return s.pending.forEach(c=>{const{provider:u,prefix:a}=c;if(a===l&&u===i)return;i=u,l=a,o.push(jt(u,a));const d=r[u]||(r[u]=Object.create(null));d[a]||(d[a]=[])}),s.pending.forEach(c=>{const{provider:u,prefix:a,name:d}=c,p=jt(u,a),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),r[u][a].push(d))}),o.forEach(c=>{const{provider:u,prefix:a}=c;r[u][a].length&&Qm(c,r[u][a])}),t?Dm(t,s,o):Xi};function Ym(e,t){const n={...e};for(const s in t){const r=t[s],o=typeof r;s in Qc?(r===null||r&&(o==="string"||o==="number"))&&(n[s]=r):o===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const Zm=/[\s,]+/;function eg(e,t){t.split(Zm).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function tg(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?s(o):0)}}return t}function ng(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'"+e+""}function sg(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function rg(e){return"data:image/svg+xml,"+sg(e)}function og(e){return'url("'+rg(e)+'")'}const Yi={...Xc,inline:!1},ig={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},lg={display:"inline-block"},Hr={backgroundColor:"currentColor"},ia={backgroundColor:"transparent"},Zi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},el={webkitMask:Hr,mask:Hr,background:ia};for(const e in el){const t=el[e];for(const n in Zi)t[e+n]=Zi[n]}const cs={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";cs[e+"-flip"]=t,cs[e.slice(0,1)+"-flip"]=t,cs[e+"Flip"]=t});function tl(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const nl=(e,t)=>{const n=Ym(Yi,t),s={...ig},r=t.mode||"svg",o={},i=t.style,l=typeof i=="object"&&!(i instanceof Array)?i:{};for(let _ in t){const E=t[_];if(E!==void 0)switch(_){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[_]=E===!0||E==="true"||E===1;break;case"flip":typeof E=="string"&&eg(n,E);break;case"color":o.color=E;break;case"rotate":typeof E=="string"?n[_]=tg(E):typeof E=="number"&&(n[_]=E);break;case"ariaHidden":case"aria-hidden":E!==!0&&E!=="true"&&delete s["aria-hidden"];break;default:{const F=cs[_];F?(E===!0||E==="true"||E===1)&&(n[F]=!0):Yi[_]===void 0&&(s[_]=E)}}}const c=vm(e,n),u=c.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),r==="svg"){s.style={...o,...l},Object.assign(s,u);let _=0,E=t.id;return typeof E=="string"&&(E=E.replace(/-/g,"_")),s.innerHTML=Rm(c.body,E?()=>E+"ID"+_++:"iconifyVue"),ms("svg",s)}const{body:a,width:d,height:p}=e,m=r==="mask"||(r==="bg"?!1:a.indexOf("currentColor")!==-1),b=ng(a,{...u,width:d+"",height:p+""});return s.style={...o,"--svg":og(b),width:tl(u.width),height:tl(u.height),...lg,...m?Hr:ia,...l},ms("span",s)};Jc(!0);Om("",Nm);if(typeof document<"u"&&typeof window<"u"){oa();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!pm(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Cm(n,r)||console.error(s)}catch{console.error(s)}}}}const cg={...Ks,body:""},Ee=Et({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=qs(e,!1,!0))===null)return this.abortLoading(),null;const s=dm(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:e,abort:Xm([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:s,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return nl(cg,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),nl({...Ks,...t.data},n)}}),sl=Te(""),hr=Te(),dn=Te(!1),Wn=Te(!1),Gn=Te(""),rl=/^https?:\/\/open\.spotify\.com(?:\/[a-zA-Z-]+)?\/(album|track|playlist|artist)\/[a-zA-Z0-9]+/;function Ws(){function e(r){return t(r)||n(r)}function t(r){return r===""||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/playlist/")||r.includes("://open.spotify.com/show/")||r.includes("://open.spotify.com/artist/")?!1:!rl.test(r)}function n(r){return(r.includes("://open.spotify.com/track/")||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/playlist/")||r.includes("://open.spotify.com/artist/"))&&localStorage.getItem("version")>="4.2.1"||r.includes("://open.spotify.com/track/")?!0:!!rl.test(r)}function s(r){console.log("Searching for:",r),hr.value=[],dn.value=!0,sl.value=r,Wn.value=!1,Gn.value="",bt.search(r).then(o=>{console.log("Received Search Data:",o.data),o.status===200?(hr.value=o.data,dn.value=!1):(console.error("Error Searching:",o),dn.value=!1,Wn.value=!0,Gn.value=o.toString())}).catch(o=>{console.error("Other Error Searching:",o.message),dn.value=!1,Wn.value=!0,Gn.value=o.message})}return{searchTerm:sl,isSearching:dn,results:hr,error:Wn,errorValue:Gn,searchFor:s,isValid:e,isValidSearch:t,isValidURL:n}}const Tt={QUEUED:"In Queue",DOWNLOADING:"Downloading...",DOWNLOADED:"Done",ERROR:"Error"},At=Te([]);class ag{constructor(t){this.song=t,this.web_status=Tt.QUEUED,this.progress=0,this.message="",this.web_download_url=null}setDownloading(){this.web_status=Tt.DOWNLOADING}setDownloaded(){this.web_status=Tt.DOWNLOADED}setError(){this.web_status=Tt.ERROR}setWebURL(t){this.web_download_url=t}isQueued(){return this.song.song_id!==void 0}isDownloading(){return this.web_status===Tt.DOWNLOADING}isDownloaded(){return this.web_status===Tt.DOWNLOADED}isErrored(){return this.web_status===Tt.ERROR}wsUpdate(t){this.progress=t.progress,this.message=t.message}}function Gs(){function e(r){return At.value.findIndex(o=>o.song.song_id===r.song_id)}function t(r){let o=new ag(r);At.value.push(o)}function n(r){console.log("removing",r,r.song_id),At.value=At.value.filter(o=>o.song.song_id!==r.song_id),console.log(At.value)}function s(r){return e(r)===-1?null:At.value[e(r)]}return{appendSong:t,removeSong:n,getBySong:s,downloadQueue:At}}const dt=Gs();bt.ws_onmessage(e=>{let t=JSON.parse(e.data);dt.getBySong(t.song).wsUpdate(t)});bt.ws_onerror(e=>{console.log("websocket error:",e)});function Fn(){const e=Te(!1);function t(o){return e.value=!0,bt.open(o).then(i=>{if(console.log("Received Response:",i),i.status===200){const l=i.data;if(Array.isArray(l))for(const c of l)console.log("Opened Song:",c),s(c);else console.log("Opened Song:",l),s(l)}else console.log("Error:",i)}).catch(i=>{console.log("Other Error:",i.message)}).finally(()=>{e.value=!1})}function n(o){console.log("Downloading",o),dt.getBySong(o).setDownloading(),bt.download(o.url).then(i=>{if(console.log("Received Response:",i),i.status===200){let l=i.data;console.log("Download Complete:",l),dt.getBySong(o).setWebURL(bt.downloadFileURL(l)),dt.getBySong(o).setDownloaded()}else console.log("Error:",i),dt.getBySong(o).setError()}).catch(i=>{console.log("Other Error:",i.message),dt.getBySong(o).setError()})}function s(o,i=!0){dt.appendSong(o),i&&n(o)}function r(o){console.log("removing"),dt.removeSong(o)}return{fromURL:t,download:n,queue:s,remove:r,loading:e}}const ug={class:"flex flex-row items-center space-x-4 w-full"},fg=["placeholder"],dg={key:0,class:"btn btn-square btn-primary loading"},Vr=Et({__name:"SearchInput",setup(e){const t=Ws(),n=Fn(),s=["All Eyes On Me - Bo Burnham","https://open.spotify.com/track/4vfN00PlILRXy5dcXHQE9M?si=e4d9e7c044dd4a8f","Lil Wayne","Drive - Miley Cyrus","Sofia - TMG","Lightning Crashes - Live"],r=Te(s[0]),o=setInterval(()=>{s.push(s.shift()),r.value=s[0]},6e3);Bl(()=>{clearInterval(o)});function i(l){if(t.isValidURL(l))n.fromURL(l),Qt.push({name:"Download"});else if(t.isValidSearch(l)){let c={name:"Search",params:{query:l}};t.isValidSearch(l)&&Qt.push(c)}else console.log("Invalid search term.")}return(l,c)=>(V(),q("div",ug,[Xn(O("input",{type:"text",placeholder:r.value,class:"input input-bordered w-full text-base-content","onUpdate:modelValue":c[0]||(c[0]=u=>$(t).searchTerm.value=u),onKeyup:c[1]||(c[1]=Af(u=>i($(t).searchTerm.value),["enter"]))},null,40,fg),[[Cf,$(t).searchTerm.value]]),$(n).loading.value?(V(),q("button",dg)):(V(),q("button",{key:1,class:"btn btn-square btn-primary",onClick:c[2]||(c[2]=u=>i($(t).searchTerm.value))},[$(t).isValidURL($(t).searchTerm.value)?(V(),hs($(Ee),{key:0,icon:"clarity:download-line",class:"h-6 w-6"})):(V(),hs($(Ee),{key:1,icon:"clarity:search-line",class:"h-6 w-6"}))]))]))}}),Js=e=>(Ml("data-v-316605e7"),e=e(),$l(),e),hg={class:"hero min-h-screen"},pg={key:0,class:"flex justify-end absolute top-0 right-0"},mg={class:"btn btn-circle swap swap-rotate m-2"},gg=["checked"],yg={for:"my-modal",class:"btn btn-square modal-button m-2"},_g={class:"block text-center justify-center hero-content"},bg=Js(()=>O("div",{class:"bg-cover bg-no-repeat bg-center"},[O("img",{src:lo,class:"mb-5 w-32 center"})],-1)),wg=Js(()=>O("div",null,[O("h1",{class:"mb-5 text-5xl font-bold text-base-content"},"spotDL"),O("p",{class:"mb-5 text-base-content"}," Download your Spotify songs with embedded album art and metadata ")],-1)),vg={role:"alert",class:"alert alert-info shadow-lg my-4"},Sg=Js(()=>O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-current flex-shrink-0 w-6 h-6"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),xg=Js(()=>O("br",null,null,-1)),Eg={key:0},Rg=Et({__name:"Hero",setup(e){const t=mo({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"}),n=localStorage.getItem("version")||"0.0.0";return(s,r)=>(V(),q("div",hg,[(V(),q("div",pg,[O("label",mg,[O("input",{type:"checkbox",onChange:r[0]||(r[0]=o=>{var i;return $(t).setTheme((i=o.target)!=null&&i.checked?"light":"dark")}),checked:$(t).currentTheme.value!=="dark"},null,40,gg),Q($(Ee),{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),Q($(Ee),{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),O("label",yg,[Q($(Ee),{icon:"clarity:settings-line",class:"h-6 w-6"})])])),O("div",_g,[bg,wg,Q(Vr),O("div",vg,[Sg,O("span",null,[Zt(" This interface now can download a song or an entire album, artist, or playlist. "),xg,$(n)<"4.2.1"?(V(),q("span",Eg," This version is n ")):st("",!0)])])])]))}}),Og=Nn(Rg,[["__scopeId","data-v-316605e7"]]),Cg={components:{Hero:Og},setup(){return Ls(()=>{window.scroll(0,0)}),{}}};function Tg(e,t,n,s,r,o){const i=fs("Hero");return V(),hs(i)}const Ag=Nn(Cg,[["render",Tg]]),la=e=>(Ml("data-v-b653c167"),e=e(),$l(),e),Pg={class:"navbar m-2 shadow-lg bg-neutral text-neutral-content rounded-box",style:{width:"auto !important"}},kg=la(()=>O("div",{class:"bg-cover bg-no-repeat bg-center"},[O("img",{src:lo,class:"py-2 pr-2 w-10 center"})],-1)),Ig=la(()=>O("button",{class:"text-lg font-bold"},"spotDL",-1)),Lg=[kg,Ig],Ng={class:"hidden sm:flex px-2 mx-2 navbar-center w-96 space-x-4"},Mg={class:"navbar-end"},$g={class:"btn btn-circle swap swap-rotate mx-2"},Fg=["checked"],Dg={for:"my-modal",class:"btn btn-circle modal-button mx-2"},jg={class:"indicator mx-2"},Ug={key:0,class:"indicator-item indicator-top indicator-end badge badge-secondary",style:{top:"-5px",right:"-5px"}},Bg={class:"sm:hidden px-2 mx-2"},Hg=Et({__name:"Navbar",setup(e){const t=Gs();Fn();const n=Ws(),s=Kc(),r=mo({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"});return(o,i)=>(V(),q(me,null,[O("div",Pg,[O("button",{class:"px-2 mx-2 navbar-start",onClick:i[0]||(i[0]=l=>$(Qt).push({name:"Home"}))},Lg),O("div",Ng,[Q(Vr,{class:"w-full"})]),O("div",Mg,[O("label",$g,[O("input",{type:"checkbox",onChange:i[1]||(i[1]=l=>{var c;return $(r).setTheme((c=l.target)!=null&&c.checked?"light":"dark")}),checked:$(r).currentTheme.value!=="dark"},null,40,Fg),Q($(Ee),{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),Q($(Ee),{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),O("label",Dg,[Q($(Ee),{icon:"clarity:settings-line",class:"h-6 w-6"})]),O("div",jg,[$(t).downloadQueue.value.length>0?(V(),q("div",Ug,xe($(t).downloadQueue.value.length),1)):st("",!0),O("a",{class:Os(["btn btn-circle",$(s).name==="Download"?"btn-primary":"btn-ghost"]),onClick:i[2]||(i[2]=l=>$(s).name==="Download"?$(Qt).push({name:"Search",params:{query:$(n).searchTerm.value}}):$(Qt).push({name:"Download"}))},[Q($(Ee),{icon:"clarity:download-cloud-line",class:"h-6 w-6"})],2)])])]),O("div",Bg,[Q(Vr,{class:"w-full"})])],64))}}),ca=Nn(Hg,[["__scopeId","data-v-b653c167"]]),Vg={class:"min-h-screen m-2"},qg={key:0,class:"hero min-h-screen"},Kg={key:0,class:"btn btn-sm btn-ghost loading"},zg={key:1,class:"alert alert-error"},Wg={class:"flex-1"},Gg=O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 mx-2 stroke-current"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1),Jg={class:"aspect-square md:max-h-fit"},Qg=["src"],Xg={class:"card-body"},Yg={class:"card-title"},Zg={key:0,class:"badge mx-0.5 badge-error"},e0={key:0},t0=O("br",null,null,-1),n0=O("p",null,[O("br")],-1),s0={class:"card-actions absolute bottom-0 right-0 m-2"},r0=["href"],o0={key:0,class:"btn btn-primary btn-square"},i0=["onClick"],l0=Et({__name:"SearchList",props:["data","error"],emits:["download"],setup(e,{emit:t}){const n=e;console.log("props",n);const s=t,r=Ws(),o=Gs();Fn();function i(l){s("download",l)}return(l,c)=>(V(),q("div",Vg,[$(r).isSearching.value||n.error?(V(),q("div",qg,[$(r).isSearching?(V(),q("button",Kg," LOADING ")):st("",!0),n.error?(V(),q("div",zg,[O("div",Wg,[Gg,O("label",null,"Error: "+xe($(r).errorValue),1)])])):st("",!0)])):(V(!0),q(me,{key:1},Nt(n.data,(u,a)=>{var d;return V(),q("div",{key:a,class:"card md:card-side card-bordered my-2 shadow-lg card-compact bg-base-100"},[O("figure",Jg,[O("img",{src:u.cover_url,class:"object-contain aspect-square md:max-h-44"},null,8,Qg)]),O("div",Xg,[O("h2",Yg,[Zt(xe(u.name)+" ",1),u.explicit?(V(),q("div",Zg," Explicit ")):st("",!0)]),O("h3",null,[(V(!0),q(me,null,Nt(u.artists,(p,m)=>(V(),q("a",{key:m},[m!==0?(V(),q("a",e0," • ")):st("",!0),Zt(" "+xe(p),1)]))),128))]),O("h3",null,xe(u.album_name),1),t0,n0,O("div",s0,[O("a",{class:"btn btn-ghost btn-square",href:u.url,target:"_blank"},[Q($(Ee),{icon:"clarity:link-line",class:"h-6 w-6"})],8,r0),(d=$(o).getBySong(u))!=null&&d.isQueued()?(V(),q("button",o0,[Q($(Ee),{icon:"clarity:check-line",class:"h-6 w-6"})])):(V(),q("button",{key:1,class:"btn btn-primary btn-square",onClick:p=>i(u)},[Q($(Ee),{icon:"clarity:floppy-line",class:"h-6 w-6"})],8,i0))])])])}),128))]))}}),c0={__name:"Search",setup(e){Ls(()=>{window.scroll(0,0)});const t=Kc(),n=Ws(),s=Fn();return _n(()=>t.params.query,()=>{t.params.query&&n.searchFor(t.params.query)},{deep:!0}),n.searchFor(t.params.query),(r,o)=>(V(),q("div",null,[Q(ca),Q(l0,{data:$(n).results.value,error:$(n).error.value,onDownload:o[0]||(o[0]=i=>$(s).queue(i))},null,8,["data","error"])]))}},a0={class:"min-h-screen m-2"},u0=O("h1",{class:"m-4 text-xl"},"Queue",-1),f0={key:0},d0=O("div",{class:"alert alert-error shadow-lg"},[O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-current flex-shrink-0 w-6 h-6"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"No downloads are queued. Search for a song to begin.")],-1),h0=[d0],p0={key:1},m0={class:"carousel carousel-end bg-base-200 rounded-box shadow-lg"},g0=["src"],y0={class:"card card-bordered my-2 shadow-lg card-compact bg-base-100"},_0={class:"card-title"},b0={class:"stat-figure text-primary flex space-x-2 items-center"},w0={key:0,class:"badge badge-error gap-2"},v0={class:"badge"},S0=["onClick"],x0=["onClick"],E0={key:2,class:"btn btn-square btn-ghost loading"},R0={__name:"DownloadList",props:{data:Object},setup(e){const t=Gs(),n=Fn();function s(r){const o=document.createElement("a");o.href=r,o.download=r.split("/").pop(),document.body.appendChild(o),o.click(),document.body.removeChild(o)}return(r,o)=>(V(),q("div",a0,[u0,$(t).downloadQueue.value.length===0?(V(),q("div",f0,h0)):(V(),q("div",p0,[O("div",m0,[(V(!0),q(me,null,Nt($(t).downloadQueue.value,(i,l)=>(V(),q("div",{key:l,class:"carousel-item h-48"},[O("img",{src:i.song.cover_url},null,8,g0)]))),128))]),O("div",y0,[(V(!0),q(me,null,Nt($(t).downloadQueue.value,(i,l)=>(V(),q("div",{key:l,class:"card-body grid grid-rows-1"},[O("h2",_0,xe(i.song.name)+" - "+xe(i.song.artist),1),O("p",null,xe(i.song.album_name),1),O("div",b0,[i.isErrored()?(V(),q("div",w0," error ")):st("",!0),O("span",v0,xe(i.message||i.web_status),1),O("button",{class:"btn btn-error btn-outline btn-square",onClick:c=>$(n).remove(i.song)},[Q($(Ee),{icon:"clarity:trash-line",class:"h-6 w-6"})],8,S0),i.isDownloaded()?(V(),q("a",{key:1,class:"btn btn-square btn-ghost",href:"javascript:;",onClick:c=>s(i.web_download_url),download:""},[Q($(Ee),{icon:"clarity:download-line",class:"h-6 w-6"})],8,x0)):i.progress===0?(V(),q("button",E0)):(V(),q("div",{key:3,class:"radial-progress bg-primary text-primary-content border-4 border-primary",style:Rs(`--value: ${i.progress}; --size: 2.5rem`)},xe(Math.round(i.progress))+"% ",5))])]))),128))])]))]))}},O0={components:{Navbar:ca,DownloadList:R0},setup(){return Ls(()=>{window.scroll(0,0)}),{}}};function C0(e,t,n,s,r,o){const i=fs("Navbar"),l=fs("DownloadList");return V(),q("div",null,[Q(i),Q(l)])}const T0=Nn(O0,[["render",C0]]),A0=[{path:"/",name:"Home",component:Ag},{path:"/search/:query",name:"Search",component:c0},{path:"/download",name:"Download",component:T0}],Qt=rm({history:Ip(je.BASEURL),routes:A0}),aa=If(tp);aa.use(Qt);aa.mount("#app"); diff --git a/dist/index.html b/dist/index.html index c714772..8a8f02c 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ spotDL - + diff --git a/src/model/search.js b/src/model/search.js index 5175f07..e70f51f 100644 --- a/src/model/search.js +++ b/src/model/search.js @@ -8,6 +8,8 @@ const isSearching = ref(false) const error = ref(false) const errorValue = ref('') +const validURLRegex = /^https?:\/\/open\.spotify\.com(?:\/[a-zA-Z-]+)?\/(album|track|playlist|artist)\/[a-zA-Z0-9]+/; + function useSearchManager() { function isValid(str) { return isValidSearch(str) || isValidURL(str) @@ -21,6 +23,8 @@ function useSearchManager() { str.includes('://open.spotify.com/artist/') ) { return false + } else if (validURLRegex.test(str)) { + return false } return true } @@ -35,6 +39,8 @@ function useSearchManager() { return true } else if (str.includes('://open.spotify.com/track/')) { return true + } else if (validURLRegex.test(str)) { + return true } return false }