- install.sh always asks for the install directory (--prefix or a prompt with confirmation, no default); refuses system directories, the repository checkout itself, paths inside/containing it and non-empty directories (a resumed install is allowed). A preflight refusal says nothing was changed. - UI is part of the repository: committed build in deploy/ui-dist with SOURCE_HASH and a staleness guard (check-ui.sh, loud warning). install.sh and update.sh resolve the UI: --ui-dist FILE|DIR, --build-ui, committed build; install stops without a UI unless --no-ui. update.sh swaps the UI when its hash differs from the installed one (.ui-source-hash). - build-ui.sh: --docker, --local (host Node >= 20.19, temporary copy), --node-download (portable Node, SHA-256 verified), --publish. - Verified on Alpine 3.23: install without UI options installs the real UI; local build equals the Docker build; update skips an unchanged UI and warns on a stale build. --node-download is untested (needs network). - Docs: Scenario 2 guide, change summary, plan, README. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
8 lines
243 KiB
JavaScript
8 lines
243 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Analytics-CE9OWhfn.js","assets/vendor-charts-Bcjh2pZL.js","assets/vendor-ui-jlFFG6nm.js","assets/Certificates-DL4-OpRZ.js","assets/ConfirmModal-likdDJzi.js","assets/PKIConfig-CJEinDsL.js","assets/VPNConfig-cSWblOqw.js","assets/ServerManagement-DWxVTYxH.js","assets/Account-B9jhwMBa.js"])))=>i.map(i=>d[i]);
|
|
import{C as zu,r as om}from"./vendor-charts-Bcjh2pZL.js";import{M as lm}from"./vendor-ui-jlFFG6nm.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function wl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Be={},Ds=[],mn=()=>{},Gu=()=>!1,Ni=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),El=e=>e.startsWith("onUpdate:"),rt=Object.assign,Al=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},am=Object.prototype.hasOwnProperty,Ne=(e,t)=>am.call(e,t),oe=Array.isArray,Ms=e=>Or(e)==="[object Map]",zs=e=>Or(e)==="[object Set]",Cc=e=>Or(e)==="[object Date]",me=e=>typeof e=="function",Xe=e=>typeof e=="string",Zt=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",Ju=e=>($e(e)||me(e))&&me(e.then)&&me(e.catch),Xu=Object.prototype.toString,Or=e=>Xu.call(e),cm=e=>Or(e).slice(8,-1),Yu=e=>Or(e)==="[object Object]",Cl=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ur=wl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ki=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},um=/-\w/g,zt=ki(e=>e.replace(um,t=>t.slice(1).toUpperCase())),fm=/\B([A-Z])/g,qn=ki(e=>e.replace(fm,"-$1").toLowerCase()),Ii=ki(e=>e.charAt(0).toUpperCase()+e.slice(1)),No=ki(e=>e?`on${Ii(e)}`:""),Un=(e,t)=>!Object.is(e,t),fi=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Qu=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Li=e=>{const t=parseFloat(e);return isNaN(t)?e:t},dm=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let xc;const Di=()=>xc||(xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mi(e){if(oe(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Xe(s)?gm(s):Mi(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(Xe(e)||$e(e))return e}const hm=/;(?![^(]*\))/g,pm=/:([^]+)/,mm=/\/\*[^]*?\*\//g;function gm(e){const t={};return e.replace(mm,"").split(hm).forEach(n=>{if(n){const s=n.split(pm);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ft(e){let t="";if(Xe(e))t=e;else if(oe(e))for(let n=0;n<e.length;n++){const s=ft(e[n]);s&&(t+=s+" ")}else if($e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const _m="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bm=wl(_m);function Zu(e){return!!e||e===""}function vm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Rr(e[s],t[s]);return n}function Rr(e,t){if(e===t)return!0;let n=Cc(e),s=Cc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Zt(e),s=Zt(t),n||s)return e===t;if(n=oe(e),s=oe(t),n||s)return n&&s?vm(e,t):!1;if(n=$e(e),s=$e(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const l in e){const c=e.hasOwnProperty(l),u=t.hasOwnProperty(l);if(c&&!u||!c&&u||!Rr(e[l],t[l]))return!1}}return String(e)===String(t)}function xl(e,t){return e.findIndex(n=>Rr(n,t))}const ef=e=>!!(e&&e.__v_isRef===!0),Ge=e=>Xe(e)?e:e==null?"":oe(e)||$e(e)&&(e.toString===Xu||!me(e.toString))?ef(e)?Ge(e.value):JSON.stringify(e,tf,2):String(e),tf=(e,t)=>ef(t)?tf(e,t.value):Ms(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[ko(s,o)+" =>"]=r,n),{})}:zs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ko(n))}:Zt(t)?ko(t):$e(t)&&!oe(t)&&!Yu(t)?String(t):t,ko=(e,t="")=>{var n;return Zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Rt;class ym{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Rt,!t&&Rt&&(this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Rt;try{return Rt=this,t()}finally{Rt=n}}}on(){++this._on===1&&(this.prevScope=Rt,Rt=this)}off(){this._on>0&&--this._on===0&&(Rt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function wm(){return Rt}let Ve;const Io=new WeakSet;class nf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Rt&&Rt.active&&Rt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Io.has(this)&&(Io.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||rf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Sc(this),of(this);const t=Ve,n=Yt;Ve=this,Yt=!0;try{return this.fn()}finally{lf(this),Ve=t,Yt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ol(t);this.deps=this.depsTail=void 0,Sc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Io.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xo(this)&&this.run()}get dirty(){return Xo(this)}}let sf=0,fr,dr;function rf(e,t=!1){if(e.flags|=8,t){e.next=dr,dr=e;return}e.next=fr,fr=e}function Sl(){sf++}function Tl(){if(--sf>0)return;if(dr){let t=dr;for(dr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fr;){let t=fr;for(fr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function of(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function lf(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ol(s),Em(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Xo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(af(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function af(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===vr)||(e.globalVersion=vr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xo(e))))return;e.flags|=2;const t=e.dep,n=Ve,s=Yt;Ve=e,Yt=!0;try{of(e);const r=e.fn(e._value);(t.version===0||Un(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Ve=n,Yt=s,lf(e),e.flags&=-3}}function Ol(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ol(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Em(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Yt=!0;const cf=[];function Tn(){cf.push(Yt),Yt=!1}function On(){const e=cf.pop();Yt=e===void 0?!0:e}function Sc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ve;Ve=void 0;try{t()}finally{Ve=n}}}let vr=0;class Am{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Rl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ve||!Yt||Ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ve)n=this.activeLink=new Am(Ve,this),Ve.deps?(n.prevDep=Ve.depsTail,Ve.depsTail.nextDep=n,Ve.depsTail=n):Ve.deps=Ve.depsTail=n,uf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Ve.depsTail,n.nextDep=void 0,Ve.depsTail.nextDep=n,Ve.depsTail=n,Ve.deps===n&&(Ve.deps=s)}return n}trigger(t){this.version++,vr++,this.notify(t)}notify(t){Sl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Tl()}}}function uf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)uf(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Yo=new WeakMap,cs=Symbol(""),Qo=Symbol(""),yr=Symbol("");function pt(e,t,n){if(Yt&&Ve){let s=Yo.get(e);s||Yo.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Rl),r.map=s,r.key=n),r.track()}}function Cn(e,t,n,s,r,o){const l=Yo.get(e);if(!l){vr++;return}const c=u=>{u&&u.trigger()};if(Sl(),t==="clear")l.forEach(c);else{const u=oe(e),h=u&&Cl(n);if(u&&n==="length"){const d=Number(s);l.forEach((p,_)=>{(_==="length"||_===yr||!Zt(_)&&_>=d)&&c(p)})}else switch((n!==void 0||l.has(void 0))&&c(l.get(n)),h&&c(l.get(yr)),t){case"add":u?h&&c(l.get("length")):(c(l.get(cs)),Ms(e)&&c(l.get(Qo)));break;case"delete":u||(c(l.get(cs)),Ms(e)&&c(l.get(Qo)));break;case"set":Ms(e)&&c(l.get(cs));break}}Tl()}function Ps(e){const t=Re(e);return t===e?t:(pt(t,"iterate",yr),Kt(e)?t:t.map(en))}function Fi(e){return pt(e=Re(e),"iterate",yr),e}function Fn(e,t){return Rn(e)?us(e)?Bs(en(t)):Bs(t):en(t)}const Cm={__proto__:null,[Symbol.iterator](){return Lo(this,Symbol.iterator,e=>Fn(this,e))},concat(...e){return Ps(this).concat(...e.map(t=>oe(t)?Ps(t):t))},entries(){return Lo(this,"entries",e=>(e[1]=Fn(this,e[1]),e))},every(e,t){return yn(this,"every",e,t,void 0,arguments)},filter(e,t){return yn(this,"filter",e,t,n=>n.map(s=>Fn(this,s)),arguments)},find(e,t){return yn(this,"find",e,t,n=>Fn(this,n),arguments)},findIndex(e,t){return yn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yn(this,"findLast",e,t,n=>Fn(this,n),arguments)},findLastIndex(e,t){return yn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Do(this,"includes",e)},indexOf(...e){return Do(this,"indexOf",e)},join(e){return Ps(this).join(e)},lastIndexOf(...e){return Do(this,"lastIndexOf",e)},map(e,t){return yn(this,"map",e,t,void 0,arguments)},pop(){return sr(this,"pop")},push(...e){return sr(this,"push",e)},reduce(e,...t){return Tc(this,"reduce",e,t)},reduceRight(e,...t){return Tc(this,"reduceRight",e,t)},shift(){return sr(this,"shift")},some(e,t){return yn(this,"some",e,t,void 0,arguments)},splice(...e){return sr(this,"splice",e)},toReversed(){return Ps(this).toReversed()},toSorted(e){return Ps(this).toSorted(e)},toSpliced(...e){return Ps(this).toSpliced(...e)},unshift(...e){return sr(this,"unshift",e)},values(){return Lo(this,"values",e=>Fn(this,e))}};function Lo(e,t,n){const s=Fi(e),r=s[t]();return s!==e&&!Kt(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const xm=Array.prototype;function yn(e,t,n,s,r,o){const l=Fi(e),c=l!==e&&!Kt(e),u=l[t];if(u!==xm[t]){const p=u.apply(e,o);return c?en(p):p}let h=n;l!==e&&(c?h=function(p,_){return n.call(this,Fn(e,p),_,e)}:n.length>2&&(h=function(p,_){return n.call(this,p,_,e)}));const d=u.call(l,h,s);return c&&r?r(d):d}function Tc(e,t,n,s){const r=Fi(e);let o=n;return r!==e&&(Kt(e)?n.length>3&&(o=function(l,c,u){return n.call(this,l,c,u,e)}):o=function(l,c,u){return n.call(this,l,Fn(e,c),u,e)}),r[t](o,...s)}function Do(e,t,n){const s=Re(e);pt(s,"iterate",yr);const r=s[t](...n);return(r===-1||r===!1)&&kl(n[0])?(n[0]=Re(n[0]),s[t](...n)):r}function sr(e,t,n=[]){Tn(),Sl();const s=Re(e)[t].apply(e,n);return Tl(),On(),s}const Sm=wl("__proto__,__v_isRef,__isVue"),ff=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zt));function Tm(e){Zt(e)||(e=String(e));const t=Re(this);return pt(t,"has",e),t.hasOwnProperty(e)}class df{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;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?Fm:gf:o?mf:pf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=oe(t);if(!r){let u;if(l&&(u=Cm[n]))return u;if(n==="hasOwnProperty")return Tm}const c=Reflect.get(t,n,_t(t)?t:s);if((Zt(n)?ff.has(n):Sm(n))||(r||pt(t,"get",n),o))return c;if(_t(c)){const u=l&&Cl(n)?c:c.value;return r&&$e(u)?el(u):u}return $e(c)?r?el(c):gs(c):c}}class hf extends df{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const l=oe(t)&&Cl(n);if(!this._isShallow){const h=Rn(o);if(!Kt(s)&&!Rn(s)&&(o=Re(o),s=Re(s)),!l&&_t(o)&&!_t(s))return h||(o.value=s),!0}const c=l?Number(n)<t.length:Ne(t,n),u=Reflect.set(t,n,s,_t(t)?t:r);return t===Re(r)&&(c?Un(s,o)&&Cn(t,"set",n,s):Cn(t,"add",n,s)),u}deleteProperty(t,n){const s=Ne(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Cn(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Zt(n)||!ff.has(n))&&pt(t,"has",n),s}ownKeys(t){return pt(t,"iterate",oe(t)?"length":cs),Reflect.ownKeys(t)}}class Om extends df{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Rm=new hf,Pm=new Om,Nm=new hf(!0);const Zo=e=>e,ii=e=>Reflect.getPrototypeOf(e);function km(e,t,n){return function(...s){const r=this.__v_raw,o=Re(r),l=Ms(o),c=e==="entries"||e===Symbol.iterator&&l,u=e==="keys"&&l,h=r[e](...s),d=n?Zo:t?Bs:en;return!t&&pt(o,"iterate",u?Qo:cs),{next(){const{value:p,done:_}=h.next();return _?{value:p,done:_}:{value:c?[d(p[0]),d(p[1])]:d(p),done:_}},[Symbol.iterator](){return this}}}}function oi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Im(e,t){const n={get(r){const o=this.__v_raw,l=Re(o),c=Re(r);e||(Un(r,c)&&pt(l,"get",r),pt(l,"get",c));const{has:u}=ii(l),h=t?Zo:e?Bs:en;if(u.call(l,r))return h(o.get(r));if(u.call(l,c))return h(o.get(c));o!==l&&o.get(r)},get size(){const r=this.__v_raw;return!e&&pt(Re(r),"iterate",cs),r.size},has(r){const o=this.__v_raw,l=Re(o),c=Re(r);return e||(Un(r,c)&&pt(l,"has",r),pt(l,"has",c)),r===c?o.has(r):o.has(r)||o.has(c)},forEach(r,o){const l=this,c=l.__v_raw,u=Re(c),h=t?Zo:e?Bs:en;return!e&&pt(u,"iterate",cs),c.forEach((d,p)=>r.call(o,h(d),h(p),l))}};return rt(n,e?{add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear")}:{add(r){!t&&!Kt(r)&&!Rn(r)&&(r=Re(r));const o=Re(this);return ii(o).has.call(o,r)||(o.add(r),Cn(o,"add",r,r)),this},set(r,o){!t&&!Kt(o)&&!Rn(o)&&(o=Re(o));const l=Re(this),{has:c,get:u}=ii(l);let h=c.call(l,r);h||(r=Re(r),h=c.call(l,r));const d=u.call(l,r);return l.set(r,o),h?Un(o,d)&&Cn(l,"set",r,o):Cn(l,"add",r,o),this},delete(r){const o=Re(this),{has:l,get:c}=ii(o);let u=l.call(o,r);u||(r=Re(r),u=l.call(o,r)),c&&c.call(o,r);const h=o.delete(r);return u&&Cn(o,"delete",r,void 0),h},clear(){const r=Re(this),o=r.size!==0,l=r.clear();return o&&Cn(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=km(r,e,t)}),n}function Pl(e,t){const n=Im(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Ne(n,r)&&r in s?n:s,r,o)}const Lm={get:Pl(!1,!1)},Dm={get:Pl(!1,!0)},Mm={get:Pl(!0,!1)};const pf=new WeakMap,mf=new WeakMap,gf=new WeakMap,Fm=new WeakMap;function $m(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jm(e){return e.__v_skip||!Object.isExtensible(e)?0:$m(cm(e))}function gs(e){return Rn(e)?e:Nl(e,!1,Rm,Lm,pf)}function _f(e){return Nl(e,!1,Nm,Dm,mf)}function el(e){return Nl(e,!0,Pm,Mm,gf)}function Nl(e,t,n,s,r){if(!$e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=jm(e);if(o===0)return e;const l=r.get(e);if(l)return l;const c=new Proxy(e,o===2?s:n);return r.set(e,c),c}function us(e){return Rn(e)?us(e.__v_raw):!!(e&&e.__v_isReactive)}function Rn(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function kl(e){return e?!!e.__v_raw:!1}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}function Bm(e){return!Ne(e,"__v_skip")&&Object.isExtensible(e)&&Qu(e,"__v_skip",!0),e}const en=e=>$e(e)?gs(e):e,Bs=e=>$e(e)?el(e):e;function _t(e){return e?e.__v_isRef===!0:!1}function He(e){return bf(e,!1)}function Hm(e){return bf(e,!0)}function bf(e,t){return _t(e)?e:new Um(e,t)}class Um{constructor(t,n){this.dep=new Rl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Re(t),this._value=n?t:en(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Kt(t)||Rn(t);t=s?t:Re(t),Un(t,n)&&(this._rawValue=t,this._value=s?t:en(t),this.dep.trigger())}}function lt(e){return _t(e)?e.value:e}const Vm={get:(e,t,n)=>t==="__v_raw"?e:lt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return _t(r)&&!_t(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function vf(e){return us(e)?e:new Proxy(e,Vm)}class qm{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Rl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ve!==this)return rf(this,!0),!0}get value(){const t=this.dep.track();return af(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Wm(e,t,n=!1){let s,r;return me(e)?s=e:(s=e.get,r=e.set),new qm(s,r,n)}const li={},Ei=new WeakMap;let is;function Km(e,t=!1,n=is){if(n){let s=Ei.get(n);s||Ei.set(n,s=[]),s.push(e)}}function zm(e,t,n=Be){const{immediate:s,deep:r,once:o,scheduler:l,augmentJob:c,call:u}=n,h=N=>r?N:Kt(N)||r===!1||r===0?xn(N,1):xn(N);let d,p,_,v,y=!1,x=!1;if(_t(e)?(p=()=>e.value,y=Kt(e)):us(e)?(p=()=>h(e),y=!0):oe(e)?(x=!0,y=e.some(N=>us(N)||Kt(N)),p=()=>e.map(N=>{if(_t(N))return N.value;if(us(N))return h(N);if(me(N))return u?u(N,2):N()})):me(e)?t?p=u?()=>u(e,2):e:p=()=>{if(_){Tn();try{_()}finally{On()}}const N=is;is=d;try{return u?u(e,3,[v]):e(v)}finally{is=N}}:p=mn,t&&r){const N=p,R=r===!0?1/0:r;p=()=>xn(N(),R)}const O=wm(),B=()=>{d.stop(),O&&O.active&&Al(O.effects,d)};if(o&&t){const N=t;t=(...R)=>{N(...R),B()}}let $=x?new Array(e.length).fill(li):li;const D=N=>{if(!(!(d.flags&1)||!d.dirty&&!N))if(t){const R=d.run();if(r||y||(x?R.some((J,W)=>Un(J,$[W])):Un(R,$))){_&&_();const J=is;is=d;try{const W=[R,$===li?void 0:x&&$[0]===li?[]:$,v];$=R,u?u(t,3,W):t(...W)}finally{is=J}}}else d.run()};return c&&c(D),d=new nf(p),d.scheduler=l?()=>l(D,!1):D,v=N=>Km(N,!1,d),_=d.onStop=()=>{const N=Ei.get(d);if(N){if(u)u(N,4);else for(const R of N)R();Ei.delete(d)}},t?s?D(!0):$=d.run():l?l(D.bind(null,!0),!0):d.run(),B.pause=d.pause.bind(d),B.resume=d.resume.bind(d),B.stop=B,B}function xn(e,t=1/0,n){if(t<=0||!$e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,_t(e))xn(e.value,t,n);else if(oe(e))for(let s=0;s<e.length;s++)xn(e[s],t,n);else if(zs(e)||Ms(e))e.forEach(s=>{xn(s,t,n)});else if(Yu(e)){for(const s in e)xn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&xn(e[s],t,n)}return e}function Pr(e,t,n,s){try{return s?e(...s):e()}catch(r){$i(r,t,n)}}function tn(e,t,n,s){if(me(e)){const r=Pr(e,t,n,s);return r&&Ju(r)&&r.catch(o=>{$i(o,t,n)}),r}if(oe(e)){const r=[];for(let o=0;o<e.length;o++)r.push(tn(e[o],t,n,s));return r}}function $i(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Be;if(t){let c=t.parent;const u=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const d=c.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,u,h)===!1)return}c=c.parent}if(o){Tn(),Pr(o,null,10,[e,u,h]),On();return}}Gm(e,n,r,s,l)}function Gm(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const St=[];let hn=-1;const Fs=[];let $n=null,ks=0;const yf=Promise.resolve();let Ai=null;function Il(e){const t=Ai||yf;return e?t.then(this?e.bind(this):e):t}function Jm(e){let t=hn+1,n=St.length;for(;t<n;){const s=t+n>>>1,r=St[s],o=wr(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Ll(e){if(!(e.flags&1)){const t=wr(e),n=St[St.length-1];!n||!(e.flags&2)&&t>=wr(n)?St.push(e):St.splice(Jm(t),0,e),e.flags|=1,wf()}}function wf(){Ai||(Ai=yf.then(Af))}function Xm(e){oe(e)?Fs.push(...e):$n&&e.id===-1?$n.splice(ks+1,0,e):e.flags&1||(Fs.push(e),e.flags|=1),wf()}function Oc(e,t,n=hn+1){for(;n<St.length;n++){const s=St[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;St.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ef(e){if(Fs.length){const t=[...new Set(Fs)].sort((n,s)=>wr(n)-wr(s));if(Fs.length=0,$n){$n.push(...t);return}for($n=t,ks=0;ks<$n.length;ks++){const n=$n[ks];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}$n=null,ks=0}}const wr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Af(e){try{for(hn=0;hn<St.length;hn++){const t=St[hn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;hn<St.length;hn++){const t=St[hn];t&&(t.flags&=-2)}hn=-1,St.length=0,Ef(),Ai=null,(St.length||Fs.length)&&Af()}}let dt=null,Cf=null;function Ci(e){const t=dt;return dt=e,Cf=e&&e.type.__scopeId||null,t}function En(e,t=dt,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ti(-1);const o=Ci(t);let l;try{l=e(...r)}finally{Ci(o),s._d&&Ti(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function fs(e,t){if(dt===null)return e;const n=Vi(dt),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,l,c,u=Be]=t[r];o&&(me(o)&&(o={mounted:o,updated:o}),o.deep&&xn(l),s.push({dir:o,instance:n,value:l,oldValue:void 0,arg:c,modifiers:u}))}return e}function ns(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let l=0;l<r.length;l++){const c=r[l];o&&(c.oldValue=o[l].value);let u=c.dir[s];u&&(Tn(),tn(u,n,8,[e.el,c,e,t]),On())}}function di(e,t){if(mt){let n=mt.provides;const s=mt.parent&&mt.parent.provides;s===n&&(n=mt.provides=Object.create(s)),n[e]=t}}function Qt(e,t,n=!1){const s=ed();if(s||js){let r=js?js._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&me(t)?t.call(s&&s.proxy):t}}const Ym=Symbol.for("v-scx"),Qm=()=>Qt(Ym);function hr(e,t,n){return xf(e,t,n)}function xf(e,t,n=Be){const{immediate:s,deep:r,flush:o,once:l}=n,c=rt({},n),u=t&&s||!t&&o!=="post";let h;if(xr){if(o==="sync"){const v=Qm();h=v.__watcherHandles||(v.__watcherHandles=[])}else if(!u){const v=()=>{};return v.stop=mn,v.resume=mn,v.pause=mn,v}}const d=mt;c.call=(v,y,x)=>tn(v,d,y,x);let p=!1;o==="post"?c.scheduler=v=>{Ct(v,d&&d.suspense)}:o!=="sync"&&(p=!0,c.scheduler=(v,y)=>{y?v():Ll(v)}),c.augmentJob=v=>{t&&(v.flags|=4),p&&(v.flags|=2,d&&(v.id=d.uid,v.i=d))};const _=zm(e,t,c);return xr&&(h?h.push(_):u&&_()),_}function Zm(e,t,n){const s=this.proxy,r=Xe(e)?e.includes(".")?Sf(s,e):()=>s[e]:e.bind(s,s);let o;me(t)?o=t:(o=t.handler,n=t);const l=kr(this),c=xf(r,o.bind(s),n);return l(),c}function Sf(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Tf=Symbol("_vte"),eg=e=>e.__isTeleport,pr=e=>e&&(e.disabled||e.disabled===""),Rc=e=>e&&(e.defer||e.defer===""),Pc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Nc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,tl=(e,t)=>{const n=e&&e.to;return Xe(n)?t?t(n):null:n},Of={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,l,c,u,h){const{mc:d,pc:p,pbc:_,o:{insert:v,querySelector:y,createText:x,createComment:O}}=h,B=pr(t.props);let{shapeFlag:$,children:D,dynamicChildren:N}=t;if(e==null){const R=t.el=x(""),J=t.anchor=x("");v(R,n,s),v(J,n,s);const W=(G,re)=>{$&16&&d(D,G,re,r,o,l,c,u)},F=()=>{const G=t.target=tl(t.props,y),re=Rf(G,t,x,v);G&&(l!=="svg"&&Pc(G)?l="svg":l!=="mathml"&&Nc(G)&&(l="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(G),B||(W(G,re),hi(t,!1)))};B&&(W(n,J),hi(t,!0)),Rc(t.props)?(t.el.__isMounted=!1,Ct(()=>{F(),delete t.el.__isMounted},o)):F()}else{if(Rc(t.props)&&e.el.__isMounted===!1){Ct(()=>{Of.process(e,t,n,s,r,o,l,c,u,h)},o);return}t.el=e.el,t.targetStart=e.targetStart;const R=t.anchor=e.anchor,J=t.target=e.target,W=t.targetAnchor=e.targetAnchor,F=pr(e.props),G=F?n:J,re=F?R:W;if(l==="svg"||Pc(J)?l="svg":(l==="mathml"||Nc(J))&&(l="mathml"),N?(_(e.dynamicChildren,N,G,r,o,l,c),$l(e,t,!0)):u||p(e,t,G,re,r,o,l,c,!1),B)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ai(t,n,R,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ce=t.target=tl(t.props,y);ce&&ai(t,ce,null,h,0)}else F&&ai(t,J,W,h,1);hi(t,B)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:l,children:c,anchor:u,targetStart:h,targetAnchor:d,target:p,props:_}=e;if(p&&(r(h),r(d)),o&&r(u),l&16){const v=o||!pr(_);for(let y=0;y<c.length;y++){const x=c[y];s(x,t,n,v,!!x.dynamicChildren)}}},move:ai,hydrate:tg};function ai(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:l,anchor:c,shapeFlag:u,children:h,props:d}=e,p=o===2;if(p&&s(l,t,n),(!p||pr(d))&&u&16)for(let _=0;_<h.length;_++)r(h[_],t,n,2);p&&s(c,t,n)}function tg(e,t,n,s,r,o,{o:{nextSibling:l,parentNode:c,querySelector:u,insert:h,createText:d}},p){function _(x,O,B,$){O.anchor=p(l(x),O,c(x),n,s,r,o),O.targetStart=B,O.targetAnchor=$}const v=t.target=tl(t.props,u),y=pr(t.props);if(v){const x=v._lpa||v.firstChild;if(t.shapeFlag&16)if(y)_(e,t,x,x&&l(x));else{t.anchor=l(e);let O=x;for(;O;){if(O&&O.nodeType===8){if(O.data==="teleport start anchor")t.targetStart=O;else if(O.data==="teleport anchor"){t.targetAnchor=O,v._lpa=t.targetAnchor&&l(t.targetAnchor);break}}O=l(O)}t.targetAnchor||Rf(v,t,d,h),p(x&&l(x),t,v,n,s,r,o)}hi(t,y)}else y&&t.shapeFlag&16&&_(e,t,e,l(e));return t.anchor&&l(t.anchor)}const ng=Of;function hi(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Rf(e,t,n,s){const r=t.targetStart=n(""),o=t.targetAnchor=n("");return r[Tf]=o,e&&(s(r,e),s(o,e)),o}const os=Symbol("_leaveCb"),ci=Symbol("_enterCb");function sg(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Nr(()=>{e.isMounted=!0}),Dl(()=>{e.isUnmounting=!0}),e}const Wt=[Function,Array],rg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wt,onEnter:Wt,onAfterEnter:Wt,onEnterCancelled:Wt,onBeforeLeave:Wt,onLeave:Wt,onAfterLeave:Wt,onLeaveCancelled:Wt,onBeforeAppear:Wt,onAppear:Wt,onAfterAppear:Wt,onAppearCancelled:Wt};function ig(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function nl(e,t,n,s,r){const{appear:o,mode:l,persisted:c=!1,onBeforeEnter:u,onEnter:h,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:_,onLeave:v,onAfterLeave:y,onLeaveCancelled:x,onBeforeAppear:O,onAppear:B,onAfterAppear:$,onAppearCancelled:D}=t,N=String(e.key),R=ig(n,e),J=(G,re)=>{G&&tn(G,s,9,re)},W=(G,re)=>{const ce=re[1];J(G,re),oe(G)?G.every(K=>K.length<=1)&&ce():G.length<=1&&ce()},F={mode:l,persisted:c,beforeEnter(G){let re=u;if(!n.isMounted)if(o)re=O||u;else return;G[os]&&G[os](!0);const ce=R[N];ce&&Is(e,ce)&&ce.el[os]&&ce.el[os](),J(re,[G])},enter(G){let re=h,ce=d,K=p;if(!n.isMounted)if(o)re=B||h,ce=$||d,K=D||p;else return;let ve=!1;const ke=G[ci]=nt=>{ve||(ve=!0,nt?J(K,[G]):J(ce,[G]),F.delayedLeave&&F.delayedLeave(),G[ci]=void 0)};re?W(re,[G,ke]):ke()},leave(G,re){const ce=String(e.key);if(G[ci]&&G[ci](!0),n.isUnmounting)return re();J(_,[G]);let K=!1;const ve=G[os]=ke=>{K||(K=!0,re(),ke?J(x,[G]):J(y,[G]),G[os]=void 0,R[ce]===e&&delete R[ce])};R[ce]=e,v?W(v,[G,ve]):ve()},clone(G){return nl(G,t,n,s)}};return F}function Er(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Er(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pf(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let l=e[o];const c=n==null?l.key:String(n)+String(l.key!=null?l.key:o);l.type===Qe?(l.patchFlag&128&&r++,s=s.concat(Pf(l.children,t,c))):(t||l.type!==gn)&&s.push(c!=null?hs(l,{key:c}):l)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function Nf(e,t){return me(e)?rt({name:e.name},t,{setup:e}):e}function kf(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const xi=new WeakMap;function mr(e,t,n,s,r=!1){if(oe(e)){e.forEach((y,x)=>mr(y,t&&(oe(t)?t[x]:t),n,s,r));return}if($s(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&mr(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Vi(s.component):s.el,l=r?null:o,{i:c,r:u}=e,h=t&&t.r,d=c.refs===Be?c.refs={}:c.refs,p=c.setupState,_=Re(p),v=p===Be?Gu:y=>Ne(_,y);if(h!=null&&h!==u){if(kc(t),Xe(h))d[h]=null,v(h)&&(p[h]=null);else if(_t(h)){h.value=null;const y=t;y.k&&(d[y.k]=null)}}if(me(u))Pr(u,c,12,[l,d]);else{const y=Xe(u),x=_t(u);if(y||x){const O=()=>{if(e.f){const B=y?v(u)?p[u]:d[u]:u.value;if(r)oe(B)&&Al(B,o);else if(oe(B))B.includes(o)||B.push(o);else if(y)d[u]=[o],v(u)&&(p[u]=d[u]);else{const $=[o];u.value=$,e.k&&(d[e.k]=$)}}else y?(d[u]=l,v(u)&&(p[u]=l)):x&&(u.value=l,e.k&&(d[e.k]=l))};if(l){const B=()=>{O(),xi.delete(e)};B.id=-1,xi.set(e,B),Ct(B,n)}else kc(e),O()}}}function kc(e){const t=xi.get(e);t&&(t.flags|=8,xi.delete(e))}Di().requestIdleCallback;Di().cancelIdleCallback;const $s=e=>!!e.type.__asyncLoader,If=e=>e.type.__isKeepAlive;function og(e,t){Lf(e,"a",t)}function lg(e,t){Lf(e,"da",t)}function Lf(e,t,n=mt){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ji(t,s,n),n){let r=n.parent;for(;r&&r.parent;)If(r.parent.vnode)&&ag(s,t,n,r),r=r.parent}}function ag(e,t,n,s){const r=ji(t,e,s,!0);Bi(()=>{Al(s[t],r)},n)}function ji(e,t,n=mt,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{Tn();const c=kr(n),u=tn(t,n,e,l);return c(),On(),u});return s?r.unshift(o):r.push(o),o}}const Pn=e=>(t,n=mt)=>{(!xr||e==="sp")&&ji(e,(...s)=>t(...s),n)},cg=Pn("bm"),Nr=Pn("m"),ug=Pn("bu"),Df=Pn("u"),Dl=Pn("bum"),Bi=Pn("um"),fg=Pn("sp"),dg=Pn("rtg"),hg=Pn("rtc");function pg(e,t=mt){ji("ec",e,t)}const mg="components";function Ic(e,t){return _g(mg,e,!0,t)||e}const gg=Symbol.for("v-ndc");function _g(e,t,n=!0,s=!1){const r=dt||mt;if(r){const o=r.type;{const c=t_(o,!1);if(c&&(c===t||c===zt(t)||c===Ii(zt(t))))return o}const l=Lc(r[e]||o[e],t)||Lc(r.appContext[e],t);return!l&&s?o:l}}function Lc(e,t){return e&&(e[t]||e[zt(t)]||e[Ii(zt(t))])}function sl(e,t,n,s){let r;const o=n,l=oe(e);if(l||Xe(e)){const c=l&&us(e);let u=!1,h=!1;c&&(u=!Kt(e),h=Rn(e),e=Fi(e)),r=new Array(e.length);for(let d=0,p=e.length;d<p;d++)r[d]=t(u?h?Bs(en(e[d])):en(e[d]):e[d],d,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let c=0;c<e;c++)r[c]=t(c+1,c,void 0,o)}else if($e(e))if(e[Symbol.iterator])r=Array.from(e,(c,u)=>t(c,u,void 0,o));else{const c=Object.keys(e);r=new Array(c.length);for(let u=0,h=c.length;u<h;u++){const d=c[u];r[u]=t(e[d],d,u,o)}}else r=[];return r}function E0(e,t,n={},s,r){if(dt.ce||dt.parent&&$s(dt.parent)&&dt.parent.ce){const h=Object.keys(n).length>0;return t!=="default"&&(n.name=t),we(),Hs(Qe,null,[We("slot",n,s&&s())],h?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),we();const l=o&&Mf(o(n)),c=n.key||l&&l.key,u=Hs(Qe,{key:(c&&!Zt(c)?c:`_${t}`)+(!l&&s?"_fb":"")},l||(s?s():[]),l&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function Mf(e){return e.some(t=>Cr(t)?!(t.type===gn||t.type===Qe&&!Mf(t.children)):!0)?e:null}const rl=e=>e?td(e)?Vi(e):rl(e.parent):null,gr=rt(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=>rl(e.parent),$root:e=>rl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>$f(e),$forceUpdate:e=>e.f||(e.f=()=>{Ll(e.update)}),$nextTick:e=>e.n||(e.n=Il.bind(e.proxy)),$watch:e=>Zm.bind(e)}),Mo=(e,t)=>e!==Be&&!e.__isScriptSetup&&Ne(e,t),bg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:l,type:c,appContext:u}=e;if(t[0]!=="$"){const _=l[t];if(_!==void 0)switch(_){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Mo(s,t))return l[t]=1,s[t];if(r!==Be&&Ne(r,t))return l[t]=2,r[t];if(Ne(o,t))return l[t]=3,o[t];if(n!==Be&&Ne(n,t))return l[t]=4,n[t];il&&(l[t]=0)}}const h=gr[t];let d,p;if(h)return t==="$attrs"&&pt(e.attrs,"get",""),h(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==Be&&Ne(n,t))return l[t]=4,n[t];if(p=u.config.globalProperties,Ne(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Mo(r,t)?(r[t]=n,!0):s!==Be&&Ne(s,t)?(s[t]=n,!0):Ne(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,props:o,type:l}},c){let u;return!!(n[c]||e!==Be&&c[0]!=="$"&&Ne(e,c)||Mo(t,c)||Ne(o,c)||Ne(s,c)||Ne(gr,c)||Ne(r.config.globalProperties,c)||(u=l.__cssModules)&&u[c])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Dc(e){return oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let il=!0;function vg(e){const t=$f(e),n=e.proxy,s=e.ctx;il=!1,t.beforeCreate&&Mc(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:c,provide:u,inject:h,created:d,beforeMount:p,mounted:_,beforeUpdate:v,updated:y,activated:x,deactivated:O,beforeDestroy:B,beforeUnmount:$,destroyed:D,unmounted:N,render:R,renderTracked:J,renderTriggered:W,errorCaptured:F,serverPrefetch:G,expose:re,inheritAttrs:ce,components:K,directives:ve,filters:ke}=t;if(h&&yg(h,s,null),l)for(const xe in l){const he=l[xe];me(he)&&(s[xe]=he.bind(n))}if(r){const xe=r.call(n,n);$e(xe)&&(e.data=gs(xe))}if(il=!0,o)for(const xe in o){const he=o[xe],Ot=me(he)?he.bind(n,n):me(he.get)?he.get.bind(n,n):mn,kt=!me(he)&&me(he.set)?he.set.bind(n):mn,I=Tt({get:Ot,set:kt});Object.defineProperty(s,xe,{enumerable:!0,configurable:!0,get:()=>I.value,set:qe=>I.value=qe})}if(c)for(const xe in c)Ff(c[xe],s,n,xe);if(u){const xe=me(u)?u.call(n):u;Reflect.ownKeys(xe).forEach(he=>{di(he,xe[he])})}d&&Mc(d,e,"c");function Ae(xe,he){oe(he)?he.forEach(Ot=>xe(Ot.bind(n))):he&&xe(he.bind(n))}if(Ae(cg,p),Ae(Nr,_),Ae(ug,v),Ae(Df,y),Ae(og,x),Ae(lg,O),Ae(pg,F),Ae(hg,J),Ae(dg,W),Ae(Dl,$),Ae(Bi,N),Ae(fg,G),oe(re))if(re.length){const xe=e.exposed||(e.exposed={});re.forEach(he=>{Object.defineProperty(xe,he,{get:()=>n[he],set:Ot=>n[he]=Ot,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===mn&&(e.render=R),ce!=null&&(e.inheritAttrs=ce),K&&(e.components=K),ve&&(e.directives=ve),G&&kf(e)}function yg(e,t,n=mn){oe(e)&&(e=ol(e));for(const s in e){const r=e[s];let o;$e(r)?"default"in r?o=Qt(r.from||s,r.default,!0):o=Qt(r.from||s):o=Qt(r),_t(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[s]=o}}function Mc(e,t,n){tn(oe(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ff(e,t,n,s){let r=s.includes(".")?Sf(n,s):()=>n[s];if(Xe(e)){const o=t[e];me(o)&&hr(r,o)}else if(me(e))hr(r,e.bind(n));else if($e(e))if(oe(e))e.forEach(o=>Ff(o,t,n,s));else{const o=me(e.handler)?e.handler.bind(n):t[e.handler];me(o)&&hr(r,o,e)}}function $f(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,c=o.get(t);let u;return c?u=c:!r.length&&!n&&!s?u=t:(u={},r.length&&r.forEach(h=>Si(u,h,l,!0)),Si(u,t,l)),$e(t)&&o.set(t,u),u}function Si(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Si(e,o,n,!0),r&&r.forEach(l=>Si(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const c=wg[l]||n&&n[l];e[l]=c?c(e[l],t[l]):t[l]}return e}const wg={data:Fc,props:$c,emits:$c,methods:lr,computed:lr,beforeCreate:At,created:At,beforeMount:At,mounted:At,beforeUpdate:At,updated:At,beforeDestroy:At,beforeUnmount:At,destroyed:At,unmounted:At,activated:At,deactivated:At,errorCaptured:At,serverPrefetch:At,components:lr,directives:lr,watch:Ag,provide:Fc,inject:Eg};function Fc(e,t){return t?e?function(){return rt(me(e)?e.call(this,this):e,me(t)?t.call(this,this):t)}:t:e}function Eg(e,t){return lr(ol(e),ol(t))}function ol(e){if(oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function At(e,t){return e?[...new Set([].concat(e,t))]:t}function lr(e,t){return e?rt(Object.create(null),e,t):t}function $c(e,t){return e?oe(e)&&oe(t)?[...new Set([...e,...t])]:rt(Object.create(null),Dc(e),Dc(t??{})):t}function Ag(e,t){if(!e)return t;if(!t)return e;const n=rt(Object.create(null),e);for(const s in t)n[s]=At(e[s],t[s]);return n}function jf(){return{app:null,config:{isNativeTag:Gu,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Cg=0;function xg(e,t){return function(s,r=null){me(s)||(s=rt({},s)),r!=null&&!$e(r)&&(r=null);const o=jf(),l=new WeakSet,c=[];let u=!1;const h=o.app={_uid:Cg++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:s_,get config(){return o.config},set config(d){},use(d,...p){return l.has(d)||(d&&me(d.install)?(l.add(d),d.install(h,...p)):me(d)&&(l.add(d),d(h,...p))),h},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),h},component(d,p){return p?(o.components[d]=p,h):o.components[d]},directive(d,p){return p?(o.directives[d]=p,h):o.directives[d]},mount(d,p,_){if(!u){const v=h._ceVNode||We(s,r);return v.appContext=o,_===!0?_="svg":_===!1&&(_=void 0),e(v,d,_),u=!0,h._container=d,d.__vue_app__=h,Vi(v.component)}},onUnmount(d){c.push(d)},unmount(){u&&(tn(c,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(d,p){return o.provides[d]=p,h},runWithContext(d){const p=js;js=h;try{return d()}finally{js=p}}};return h}}let js=null;const Sg=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${zt(t)}Modifiers`]||e[`${qn(t)}Modifiers`];function Tg(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Be;let r=n;const o=t.startsWith("update:"),l=o&&Sg(s,t.slice(7));l&&(l.trim&&(r=n.map(d=>Xe(d)?d.trim():d)),l.number&&(r=n.map(Li)));let c,u=s[c=No(t)]||s[c=No(zt(t))];!u&&o&&(u=s[c=No(qn(t))]),u&&tn(u,e,6,r);const h=s[c+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,tn(h,e,6,r)}}const Og=new WeakMap;function Bf(e,t,n=!1){const s=n?Og:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let l={},c=!1;if(!me(e)){const u=h=>{const d=Bf(h,t,!0);d&&(c=!0,rt(l,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!c?($e(e)&&s.set(e,null),null):(oe(o)?o.forEach(u=>l[u]=null):rt(l,o),$e(e)&&s.set(e,l),l)}function Hi(e,t){return!e||!Ni(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,qn(t))||Ne(e,t))}function jc(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:l,attrs:c,emit:u,render:h,renderCache:d,props:p,data:_,setupState:v,ctx:y,inheritAttrs:x}=e,O=Ci(e);let B,$;try{if(n.shapeFlag&4){const N=r||s,R=N;B=pn(h.call(R,N,d,p,v,_,y)),$=c}else{const N=t;B=pn(N.length>1?N(p,{attrs:c,slots:l,emit:u}):N(p,null)),$=t.props?c:Rg(c)}}catch(N){_r.length=0,$i(N,e,1),B=We(gn)}let D=B;if($&&x!==!1){const N=Object.keys($),{shapeFlag:R}=D;N.length&&R&7&&(o&&N.some(El)&&($=Pg($,o)),D=hs(D,$,!1,!0))}return n.dirs&&(D=hs(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&Er(D,n.transition),B=D,Ci(O),B}const Rg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ni(n))&&((t||(t={}))[n]=e[n]);return t},Pg=(e,t)=>{const n={};for(const s in e)(!El(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ng(e,t,n){const{props:s,children:r,component:o}=e,{props:l,children:c,patchFlag:u}=t,h=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Bc(s,l,h):!!l;if(u&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const _=d[p];if(l[_]!==s[_]&&!Hi(h,_))return!0}}}else return(r||c)&&(!c||!c.$stable)?!0:s===l?!1:s?l?Bc(s,l,h):!0:!!l;return!1}function Bc(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!Hi(n,o))return!0}return!1}function kg({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Hf={},Uf=()=>Object.create(Hf),Vf=e=>Object.getPrototypeOf(e)===Hf;function Ig(e,t,n,s=!1){const r={},o=Uf();e.propsDefaults=Object.create(null),qf(e,t,r,o);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=s?r:_f(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Lg(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:l}}=e,c=Re(r),[u]=e.propsOptions;let h=!1;if((s||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let _=d[p];if(Hi(e.emitsOptions,_))continue;const v=t[_];if(u)if(Ne(o,_))v!==o[_]&&(o[_]=v,h=!0);else{const y=zt(_);r[y]=ll(u,c,y,v,e,!1)}else v!==o[_]&&(o[_]=v,h=!0)}}}else{qf(e,t,r,o)&&(h=!0);let d;for(const p in c)(!t||!Ne(t,p)&&((d=qn(p))===p||!Ne(t,d)))&&(u?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=ll(u,c,p,void 0,e,!0)):delete r[p]);if(o!==c)for(const p in o)(!t||!Ne(t,p))&&(delete o[p],h=!0)}h&&Cn(e.attrs,"set","")}function qf(e,t,n,s){const[r,o]=e.propsOptions;let l=!1,c;if(t)for(let u in t){if(ur(u))continue;const h=t[u];let d;r&&Ne(r,d=zt(u))?!o||!o.includes(d)?n[d]=h:(c||(c={}))[d]=h:Hi(e.emitsOptions,u)||(!(u in s)||h!==s[u])&&(s[u]=h,l=!0)}if(o){const u=Re(n),h=c||Be;for(let d=0;d<o.length;d++){const p=o[d];n[p]=ll(r,u,p,h[p],e,!Ne(h,p))}}return l}function ll(e,t,n,s,r,o){const l=e[n];if(l!=null){const c=Ne(l,"default");if(c&&s===void 0){const u=l.default;if(l.type!==Function&&!l.skipFactory&&me(u)){const{propsDefaults:h}=r;if(n in h)s=h[n];else{const d=kr(r);s=h[n]=u.call(null,t),d()}}else s=u;r.ce&&r.ce._setProp(n,s)}l[0]&&(o&&!c?s=!1:l[1]&&(s===""||s===qn(n))&&(s=!0))}return s}const Dg=new WeakMap;function Wf(e,t,n=!1){const s=n?Dg:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,l={},c=[];let u=!1;if(!me(e)){const d=p=>{u=!0;const[_,v]=Wf(p,t,!0);rt(l,_),v&&c.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!u)return $e(e)&&s.set(e,Ds),Ds;if(oe(o))for(let d=0;d<o.length;d++){const p=zt(o[d]);Hc(p)&&(l[p]=Be)}else if(o)for(const d in o){const p=zt(d);if(Hc(p)){const _=o[d],v=l[p]=oe(_)||me(_)?{type:_}:rt({},_),y=v.type;let x=!1,O=!0;if(oe(y))for(let B=0;B<y.length;++B){const $=y[B],D=me($)&&$.name;if(D==="Boolean"){x=!0;break}else D==="String"&&(O=!1)}else x=me(y)&&y.name==="Boolean";v[0]=x,v[1]=O,(x||Ne(v,"default"))&&c.push(p)}}const h=[l,c];return $e(e)&&s.set(e,h),h}function Hc(e){return e[0]!=="$"&&!ur(e)}const Ml=e=>e==="_"||e==="_ctx"||e==="$stable",Fl=e=>oe(e)?e.map(pn):[pn(e)],Mg=(e,t,n)=>{if(t._n)return t;const s=En((...r)=>Fl(t(...r)),n);return s._c=!1,s},Kf=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ml(r))continue;const o=e[r];if(me(o))t[r]=Mg(r,o,s);else if(o!=null){const l=Fl(o);t[r]=()=>l}}},zf=(e,t)=>{const n=Fl(t);e.slots.default=()=>n},Gf=(e,t,n)=>{for(const s in t)(n||!Ml(s))&&(e[s]=t[s])},Fg=(e,t,n)=>{const s=e.slots=Uf();if(e.vnode.shapeFlag&32){const r=t._;r?(Gf(s,t,n),n&&Qu(s,"_",r,!0)):Kf(t,s)}else t&&zf(e,t)},$g=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,l=Be;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:Gf(r,t,n):(o=!t.$stable,Kf(t,r)),l=t}else t&&(zf(e,t),l={default:1});if(o)for(const c in r)!Ml(c)&&l[c]==null&&delete r[c]},Ct=Vg;function jg(e){return Bg(e)}function Bg(e,t){const n=Di();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:l,createText:c,createComment:u,setText:h,setElementText:d,parentNode:p,nextSibling:_,setScopeId:v=mn,insertStaticContent:y}=e,x=(g,b,C,M=null,j=null,L=null,X=void 0,z=null,V=!!b.dynamicChildren)=>{if(g===b)return;g&&!Is(g,b)&&(M=k(g),qe(g,j,L,!0),g=null),b.patchFlag===-2&&(V=!1,b.dynamicChildren=null);const{type:U,ref:ie,shapeFlag:Q}=b;switch(U){case Ui:O(g,b,C,M);break;case gn:B(g,b,C,M);break;case pi:g==null&&$(b,C,M,X);break;case Qe:K(g,b,C,M,j,L,X,z,V);break;default:Q&1?R(g,b,C,M,j,L,X,z,V):Q&6?ve(g,b,C,M,j,L,X,z,V):(Q&64||Q&128)&&U.process(g,b,C,M,j,L,X,z,V,ne)}ie!=null&&j?mr(ie,g&&g.ref,L,b||g,!b):ie==null&&g&&g.ref!=null&&mr(g.ref,null,L,g,!0)},O=(g,b,C,M)=>{if(g==null)s(b.el=c(b.children),C,M);else{const j=b.el=g.el;b.children!==g.children&&h(j,b.children)}},B=(g,b,C,M)=>{g==null?s(b.el=u(b.children||""),C,M):b.el=g.el},$=(g,b,C,M)=>{[g.el,g.anchor]=y(g.children,b,C,M,g.el,g.anchor)},D=({el:g,anchor:b},C,M)=>{let j;for(;g&&g!==b;)j=_(g),s(g,C,M),g=j;s(b,C,M)},N=({el:g,anchor:b})=>{let C;for(;g&&g!==b;)C=_(g),r(g),g=C;r(b)},R=(g,b,C,M,j,L,X,z,V)=>{if(b.type==="svg"?X="svg":b.type==="math"&&(X="mathml"),g==null)J(b,C,M,j,L,X,z,V);else{const U=g.el&&g.el._isVueCE?g.el:null;try{U&&U._beginPatch(),G(g,b,j,L,X,z,V)}finally{U&&U._endPatch()}}},J=(g,b,C,M,j,L,X,z)=>{let V,U;const{props:ie,shapeFlag:Q,transition:se,dirs:le}=g;if(V=g.el=l(g.type,L,ie&&ie.is,ie),Q&8?d(V,g.children):Q&16&&F(g.children,V,null,M,j,Fo(g,L),X,z),le&&ns(g,null,M,"created"),W(V,g,g.scopeId,X,M),ie){for(const Ie in ie)Ie!=="value"&&!ur(Ie)&&o(V,Ie,null,ie[Ie],L,M);"value"in ie&&o(V,"value",null,ie.value,L),(U=ie.onVnodeBeforeMount)&&un(U,M,g)}le&&ns(g,null,M,"beforeMount");const pe=Hg(j,se);pe&&se.beforeEnter(V),s(V,b,C),((U=ie&&ie.onVnodeMounted)||pe||le)&&Ct(()=>{U&&un(U,M,g),pe&&se.enter(V),le&&ns(g,null,M,"mounted")},j)},W=(g,b,C,M,j)=>{if(C&&v(g,C),M)for(let L=0;L<M.length;L++)v(g,M[L]);if(j){let L=j.subTree;if(b===L||Yf(L.type)&&(L.ssContent===b||L.ssFallback===b)){const X=j.vnode;W(g,X,X.scopeId,X.slotScopeIds,j.parent)}}},F=(g,b,C,M,j,L,X,z,V=0)=>{for(let U=V;U<g.length;U++){const ie=g[U]=z?jn(g[U]):pn(g[U]);x(null,ie,b,C,M,j,L,X,z)}},G=(g,b,C,M,j,L,X)=>{const z=b.el=g.el;let{patchFlag:V,dynamicChildren:U,dirs:ie}=b;V|=g.patchFlag&16;const Q=g.props||Be,se=b.props||Be;let le;if(C&&ss(C,!1),(le=se.onVnodeBeforeUpdate)&&un(le,C,b,g),ie&&ns(b,g,C,"beforeUpdate"),C&&ss(C,!0),(Q.innerHTML&&se.innerHTML==null||Q.textContent&&se.textContent==null)&&d(z,""),U?re(g.dynamicChildren,U,z,C,M,Fo(b,j),L):X||he(g,b,z,null,C,M,Fo(b,j),L,!1),V>0){if(V&16)ce(z,Q,se,C,j);else if(V&2&&Q.class!==se.class&&o(z,"class",null,se.class,j),V&4&&o(z,"style",Q.style,se.style,j),V&8){const pe=b.dynamicProps;for(let Ie=0;Ie<pe.length;Ie++){const Te=pe[Ie],ht=Q[Te],et=se[Te];(et!==ht||Te==="value")&&o(z,Te,ht,et,j,C)}}V&1&&g.children!==b.children&&d(z,b.children)}else!X&&U==null&&ce(z,Q,se,C,j);((le=se.onVnodeUpdated)||ie)&&Ct(()=>{le&&un(le,C,b,g),ie&&ns(b,g,C,"updated")},M)},re=(g,b,C,M,j,L,X)=>{for(let z=0;z<b.length;z++){const V=g[z],U=b[z],ie=V.el&&(V.type===Qe||!Is(V,U)||V.shapeFlag&198)?p(V.el):C;x(V,U,ie,null,M,j,L,X,!0)}},ce=(g,b,C,M,j)=>{if(b!==C){if(b!==Be)for(const L in b)!ur(L)&&!(L in C)&&o(g,L,b[L],null,j,M);for(const L in C){if(ur(L))continue;const X=C[L],z=b[L];X!==z&&L!=="value"&&o(g,L,z,X,j,M)}"value"in C&&o(g,"value",b.value,C.value,j)}},K=(g,b,C,M,j,L,X,z,V)=>{const U=b.el=g?g.el:c(""),ie=b.anchor=g?g.anchor:c("");let{patchFlag:Q,dynamicChildren:se,slotScopeIds:le}=b;le&&(z=z?z.concat(le):le),g==null?(s(U,C,M),s(ie,C,M),F(b.children||[],C,ie,j,L,X,z,V)):Q>0&&Q&64&&se&&g.dynamicChildren&&g.dynamicChildren.length===se.length?(re(g.dynamicChildren,se,C,j,L,X,z),(b.key!=null||j&&b===j.subTree)&&$l(g,b,!0)):he(g,b,C,ie,j,L,X,z,V)},ve=(g,b,C,M,j,L,X,z,V)=>{b.slotScopeIds=z,g==null?b.shapeFlag&512?j.ctx.activate(b,C,M,X,V):ke(b,C,M,j,L,X,V):nt(g,b,V)},ke=(g,b,C,M,j,L,X)=>{const z=g.component=Xg(g,M,j);if(If(g)&&(z.ctx.renderer=ne),Yg(z,!1,X),z.asyncDep){if(j&&j.registerDep(z,Ae,X),!g.el){const V=z.subTree=We(gn);B(null,V,b,C),g.placeholder=V.el}}else Ae(z,g,b,C,j,L,X)},nt=(g,b,C)=>{const M=b.component=g.component;if(Ng(g,b,C))if(M.asyncDep&&!M.asyncResolved){xe(M,b,C);return}else M.next=b,M.update();else b.el=g.el,M.vnode=b},Ae=(g,b,C,M,j,L,X)=>{const z=()=>{if(g.isMounted){let{next:Q,bu:se,u:le,parent:pe,vnode:Ie}=g;{const ct=Jf(g);if(ct){Q&&(Q.el=Ie.el,xe(g,Q,X)),ct.asyncDep.then(()=>{g.isUnmounted||z()});return}}let Te=Q,ht;ss(g,!1),Q?(Q.el=Ie.el,xe(g,Q,X)):Q=Ie,se&&fi(se),(ht=Q.props&&Q.props.onVnodeBeforeUpdate)&&un(ht,pe,Q,Ie),ss(g,!0);const et=jc(g),at=g.subTree;g.subTree=et,x(at,et,p(at.el),k(at),g,j,L),Q.el=et.el,Te===null&&kg(g,et.el),le&&Ct(le,j),(ht=Q.props&&Q.props.onVnodeUpdated)&&Ct(()=>un(ht,pe,Q,Ie),j)}else{let Q;const{el:se,props:le}=b,{bm:pe,m:Ie,parent:Te,root:ht,type:et}=g,at=$s(b);ss(g,!1),pe&&fi(pe),!at&&(Q=le&&le.onVnodeBeforeMount)&&un(Q,Te,b),ss(g,!0);{ht.ce&&ht.ce._def.shadowRoot!==!1&&ht.ce._injectChildStyle(et);const ct=g.subTree=jc(g);x(null,ct,C,M,g,j,L),b.el=ct.el}if(Ie&&Ct(Ie,j),!at&&(Q=le&&le.onVnodeMounted)){const ct=b;Ct(()=>un(Q,Te,ct),j)}(b.shapeFlag&256||Te&&$s(Te.vnode)&&Te.vnode.shapeFlag&256)&&g.a&&Ct(g.a,j),g.isMounted=!0,b=C=M=null}};g.scope.on();const V=g.effect=new nf(z);g.scope.off();const U=g.update=V.run.bind(V),ie=g.job=V.runIfDirty.bind(V);ie.i=g,ie.id=g.uid,V.scheduler=()=>Ll(ie),ss(g,!0),U()},xe=(g,b,C)=>{b.component=g;const M=g.vnode.props;g.vnode=b,g.next=null,Lg(g,b.props,M,C),$g(g,b.children,C),Tn(),Oc(g),On()},he=(g,b,C,M,j,L,X,z,V=!1)=>{const U=g&&g.children,ie=g?g.shapeFlag:0,Q=b.children,{patchFlag:se,shapeFlag:le}=b;if(se>0){if(se&128){kt(U,Q,C,M,j,L,X,z,V);return}else if(se&256){Ot(U,Q,C,M,j,L,X,z,V);return}}le&8?(ie&16&&it(U,j,L),Q!==U&&d(C,Q)):ie&16?le&16?kt(U,Q,C,M,j,L,X,z,V):it(U,j,L,!0):(ie&8&&d(C,""),le&16&&F(Q,C,M,j,L,X,z,V))},Ot=(g,b,C,M,j,L,X,z,V)=>{g=g||Ds,b=b||Ds;const U=g.length,ie=b.length,Q=Math.min(U,ie);let se;for(se=0;se<Q;se++){const le=b[se]=V?jn(b[se]):pn(b[se]);x(g[se],le,C,null,j,L,X,z,V)}U>ie?it(g,j,L,!0,!1,Q):F(b,C,M,j,L,X,z,V,Q)},kt=(g,b,C,M,j,L,X,z,V)=>{let U=0;const ie=b.length;let Q=g.length-1,se=ie-1;for(;U<=Q&&U<=se;){const le=g[U],pe=b[U]=V?jn(b[U]):pn(b[U]);if(Is(le,pe))x(le,pe,C,null,j,L,X,z,V);else break;U++}for(;U<=Q&&U<=se;){const le=g[Q],pe=b[se]=V?jn(b[se]):pn(b[se]);if(Is(le,pe))x(le,pe,C,null,j,L,X,z,V);else break;Q--,se--}if(U>Q){if(U<=se){const le=se+1,pe=le<ie?b[le].el:M;for(;U<=se;)x(null,b[U]=V?jn(b[U]):pn(b[U]),C,pe,j,L,X,z,V),U++}}else if(U>se)for(;U<=Q;)qe(g[U],j,L,!0),U++;else{const le=U,pe=U,Ie=new Map;for(U=pe;U<=se;U++){const ut=b[U]=V?jn(b[U]):pn(b[U]);ut.key!=null&&Ie.set(ut.key,U)}let Te,ht=0;const et=se-pe+1;let at=!1,ct=0;const rn=new Array(et);for(U=0;U<et;U++)rn[U]=0;for(U=le;U<=Q;U++){const ut=g[U];if(ht>=et){qe(ut,j,L,!0);continue}let jt;if(ut.key!=null)jt=Ie.get(ut.key);else for(Te=pe;Te<=se;Te++)if(rn[Te-pe]===0&&Is(ut,b[Te])){jt=Te;break}jt===void 0?qe(ut,j,L,!0):(rn[jt-pe]=U+1,jt>=ct?ct=jt:at=!0,x(ut,b[jt],C,null,j,L,X,z,V),ht++)}const $r=at?Ug(rn):Ds;for(Te=$r.length-1,U=et-1;U>=0;U--){const ut=pe+U,jt=b[ut],jr=b[ut+1],Br=ut+1<ie?jr.el||Xf(jr):M;rn[U]===0?x(null,jt,C,Br,j,L,X,z,V):at&&(Te<0||U!==$r[Te]?I(jt,C,Br,2):Te--)}}},I=(g,b,C,M,j=null)=>{const{el:L,type:X,transition:z,children:V,shapeFlag:U}=g;if(U&6){I(g.component.subTree,b,C,M);return}if(U&128){g.suspense.move(b,C,M);return}if(U&64){X.move(g,b,C,ne);return}if(X===Qe){s(L,b,C);for(let Q=0;Q<V.length;Q++)I(V[Q],b,C,M);s(g.anchor,b,C);return}if(X===pi){D(g,b,C);return}if(M!==2&&U&1&&z)if(M===0)z.beforeEnter(L),s(L,b,C),Ct(()=>z.enter(L),j);else{const{leave:Q,delayLeave:se,afterLeave:le}=z,pe=()=>{g.ctx.isUnmounted?r(L):s(L,b,C)},Ie=()=>{L._isLeaving&&L[os](!0),Q(L,()=>{pe(),le&&le()})};se?se(L,pe,Ie):Ie()}else s(L,b,C)},qe=(g,b,C,M=!1,j=!1)=>{const{type:L,props:X,ref:z,children:V,dynamicChildren:U,shapeFlag:ie,patchFlag:Q,dirs:se,cacheIndex:le}=g;if(Q===-2&&(j=!1),z!=null&&(Tn(),mr(z,null,C,g,!0),On()),le!=null&&(b.renderCache[le]=void 0),ie&256){b.ctx.deactivate(g);return}const pe=ie&1&&se,Ie=!$s(g);let Te;if(Ie&&(Te=X&&X.onVnodeBeforeUnmount)&&un(Te,b,g),ie&6)Ze(g.component,C,M);else{if(ie&128){g.suspense.unmount(C,M);return}pe&&ns(g,null,b,"beforeUnmount"),ie&64?g.type.remove(g,b,C,ne,M):U&&!U.hasOnce&&(L!==Qe||Q>0&&Q&64)?it(U,b,C,!1,!0):(L===Qe&&Q&384||!j&&ie&16)&&it(V,b,C),M&&It(g)}(Ie&&(Te=X&&X.onVnodeUnmounted)||pe)&&Ct(()=>{Te&&un(Te,b,g),pe&&ns(g,null,b,"unmounted")},C)},It=g=>{const{type:b,el:C,anchor:M,transition:j}=g;if(b===Qe){bt(C,M);return}if(b===pi){N(g);return}const L=()=>{r(C),j&&!j.persisted&&j.afterLeave&&j.afterLeave()};if(g.shapeFlag&1&&j&&!j.persisted){const{leave:X,delayLeave:z}=j,V=()=>X(C,L);z?z(g.el,L,V):V()}else L()},bt=(g,b)=>{let C;for(;g!==b;)C=_(g),r(g),g=C;r(b)},Ze=(g,b,C)=>{const{bum:M,scope:j,job:L,subTree:X,um:z,m:V,a:U}=g;Uc(V),Uc(U),M&&fi(M),j.stop(),L&&(L.flags|=8,qe(X,g,b,C)),z&&Ct(z,b),Ct(()=>{g.isUnmounted=!0},b)},it=(g,b,C,M=!1,j=!1,L=0)=>{for(let X=L;X<g.length;X++)qe(g[X],b,C,M,j)},k=g=>{if(g.shapeFlag&6)return k(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const b=_(g.anchor||g.el),C=b&&b[Tf];return C?_(C):b};let Z=!1;const P=(g,b,C)=>{let M;g==null?b._vnode&&(qe(b._vnode,null,null,!0),M=b._vnode.component):x(b._vnode||null,g,b,null,null,null,C),b._vnode=g,Z||(Z=!0,Oc(M),Ef(),Z=!1)},ne={p:x,um:qe,m:I,r:It,mt:ke,mc:F,pc:he,pbc:re,n:k,o:e};return{render:P,hydrate:void 0,createApp:xg(P)}}function Fo({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 ss({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $l(e,t,n=!1){const s=e.children,r=t.children;if(oe(s)&&oe(r))for(let o=0;o<s.length;o++){const l=s[o];let c=r[o];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=r[o]=jn(r[o]),c.el=l.el),!n&&c.patchFlag!==-2&&$l(l,c)),c.type===Ui&&(c.patchFlag!==-1?c.el=l.el:c.__elIndex=o+(e.type===Qe?1:0)),c.type===gn&&!c.el&&(c.el=l.el)}}function Ug(e){const t=e.slice(),n=[0];let s,r,o,l,c;const u=e.length;for(s=0;s<u;s++){const h=e[s];if(h!==0){if(r=n[n.length-1],e[r]<h){t[s]=r,n.push(s);continue}for(o=0,l=n.length-1;o<l;)c=o+l>>1,e[n[c]]<h?o=c+1:l=c;h<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}function Jf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jf(t)}function Uc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xf(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Xf(t.subTree):null}const Yf=e=>e.__isSuspense;function Vg(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):Xm(e)}const Qe=Symbol.for("v-fgt"),Ui=Symbol.for("v-txt"),gn=Symbol.for("v-cmt"),pi=Symbol.for("v-stc"),_r=[];let $t=null;function we(e=!1){_r.push($t=e?null:[])}function qg(){_r.pop(),$t=_r[_r.length-1]||null}let Ar=1;function Ti(e,t=!1){Ar+=e,e<0&&$t&&t&&($t.hasOnce=!0)}function Qf(e){return e.dynamicChildren=Ar>0?$t||Ds:null,qg(),Ar>0&&$t&&$t.push(e),e}function Se(e,t,n,s,r,o){return Qf(E(e,t,n,s,r,o,!0))}function Hs(e,t,n,s,r){return Qf(We(e,t,n,s,r,!0))}function Cr(e){return e?e.__v_isVNode===!0:!1}function Is(e,t){return e.type===t.type&&e.key===t.key}const Zf=({key:e})=>e??null,mi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||_t(e)||me(e)?{i:dt,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,s=0,r=null,o=e===Qe?0:1,l=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zf(t),ref:t&&mi(t),scopeId:Cf,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:dt};return c?(jl(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=Xe(n)?8:16),Ar>0&&!l&&$t&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&$t.push(u),u}const We=Wg;function Wg(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===gg)&&(e=gn),Cr(e)){const c=hs(e,t,!0);return n&&jl(c,n),Ar>0&&!o&&$t&&(c.shapeFlag&6?$t[$t.indexOf(e)]=c:$t.push(c)),c.patchFlag=-2,c}if(n_(e)&&(e=e.__vccOpts),t){t=Kg(t);let{class:c,style:u}=t;c&&!Xe(c)&&(t.class=ft(c)),$e(u)&&(kl(u)&&!oe(u)&&(u=rt({},u)),t.style=Mi(u))}const l=Xe(e)?1:Yf(e)?128:eg(e)?64:$e(e)?4:me(e)?2:0;return E(e,t,n,s,r,l,o,!0)}function Kg(e){return e?kl(e)||Vf(e)?rt({},e):e:null}function hs(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:l,children:c,transition:u}=e,h=t?zg(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Zf(h),ref:t&&t.ref?n&&o?oe(o)?o.concat(mi(t)):[o,mi(t)]:mi(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hs(e.ssContent),ssFallback:e.ssFallback&&hs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&Er(d,u.clone(d)),d}function tt(e=" ",t=0){return We(Ui,null,e,t)}function A0(e,t){const n=We(pi,null,e);return n.staticCount=t,n}function Xt(e="",t=!1){return t?(we(),Hs(gn,null,e)):We(gn,null,e)}function pn(e){return e==null||typeof e=="boolean"?We(gn):oe(e)?We(Qe,null,e.slice()):Cr(e)?jn(e):We(Ui,null,String(e))}function jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hs(e)}function jl(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(oe(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),jl(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Vf(t)?t._ctx=dt:r===3&&dt&&(dt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else me(t)?(t={default:t,_ctx:dt},n=32):(t=String(t),s&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function zg(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=ft([t.class,s.class]));else if(r==="style")t.style=Mi([t.style,s.style]);else if(Ni(r)){const o=t[r],l=s[r];l&&o!==l&&!(oe(o)&&o.includes(l))&&(t[r]=o?[].concat(o,l):l)}else r!==""&&(t[r]=s[r])}return t}function un(e,t,n,s=null){tn(e,t,7,[n,s])}const Gg=jf();let Jg=0;function Xg(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Gg,o={uid:Jg++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ym(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wf(s,r),emitsOptions:Bf(s,r),emit:null,emitted:null,propsDefaults:Be,inheritAttrs:s.inheritAttrs,ctx:Be,data:Be,props:Be,attrs:Be,slots:Be,refs:Be,setupState:Be,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Tg.bind(null,o),e.ce&&e.ce(o),o}let mt=null;const ed=()=>mt||dt;let Oi,al;{const e=Di(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(l=>l(o)):r[0](o)}};Oi=t("__VUE_INSTANCE_SETTERS__",n=>mt=n),al=t("__VUE_SSR_SETTERS__",n=>xr=n)}const kr=e=>{const t=mt;return Oi(e),e.scope.on(),()=>{e.scope.off(),Oi(t)}},Vc=()=>{mt&&mt.scope.off(),Oi(null)};function td(e){return e.vnode.shapeFlag&4}let xr=!1;function Yg(e,t=!1,n=!1){t&&al(t);const{props:s,children:r}=e.vnode,o=td(e);Ig(e,s,o,t),Fg(e,r,n||t);const l=o?Qg(e,t):void 0;return t&&al(!1),l}function Qg(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bg);const{setup:s}=n;if(s){Tn();const r=e.setupContext=s.length>1?e_(e):null,o=kr(e),l=Pr(s,e,0,[e.props,r]),c=Ju(l);if(On(),o(),(c||e.sp)&&!$s(e)&&kf(e),c){if(l.then(Vc,Vc),t)return l.then(u=>{qc(e,u)}).catch(u=>{$i(u,e,0)});e.asyncDep=l}else qc(e,l)}else nd(e)}function qc(e,t,n){me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$e(t)&&(e.setupState=vf(t)),nd(e)}function nd(e,t,n){const s=e.type;e.render||(e.render=s.render||mn);{const r=kr(e);Tn();try{vg(e)}finally{On(),r()}}}const Zg={get(e,t){return pt(e,"get",""),e[t]}};function e_(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zg),slots:e.slots,emit:e.emit,expose:t}}function Vi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vf(Bm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gr)return gr[n](e)},has(t,n){return n in t||n in gr}})):e.proxy}function t_(e,t=!0){return me(e)?e.displayName||e.name:e.name||t&&e.__name}function n_(e){return me(e)&&"__vccOpts"in e}const Tt=(e,t)=>Wm(e,t,xr);function sd(e,t,n){try{Ti(-1);const s=arguments.length;return s===2?$e(t)&&!oe(t)?Cr(t)?We(e,null,[t]):We(e,t):We(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Cr(n)&&(n=[n]),We(e,t,n))}finally{Ti(1)}}const s_="3.5.26";let cl;const Wc=typeof window<"u"&&window.trustedTypes;if(Wc)try{cl=Wc.createPolicy("vue",{createHTML:e=>e})}catch{}const rd=cl?e=>cl.createHTML(e):e=>e,r_="http://www.w3.org/2000/svg",i_="http://www.w3.org/1998/Math/MathML",An=typeof document<"u"?document:null,Kc=An&&An.createElement("template"),o_={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"?An.createElementNS(r_,e):t==="mathml"?An.createElementNS(i_,e):n?An.createElement(e,{is:n}):An.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>An.createTextNode(e),createComment:e=>An.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>An.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const l=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Kc.innerHTML=rd(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const c=Kc.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}t.insertBefore(c,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ln="transition",rr="animation",Us=Symbol("_vtc"),id={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},l_=rt({},rg,id),rs=(e,t=[])=>{oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},zc=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function a_(e){const t={};for(const K in e)K in id||(t[K]=e[K]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:h=l,appearToClass:d=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:_=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,y=c_(r),x=y&&y[0],O=y&&y[1],{onBeforeEnter:B,onEnter:$,onEnterCancelled:D,onLeave:N,onLeaveCancelled:R,onBeforeAppear:J=B,onAppear:W=$,onAppearCancelled:F=D}=t,G=(K,ve,ke,nt)=>{K._enterCancelled=nt,Mn(K,ve?d:c),Mn(K,ve?h:l),ke&&ke()},re=(K,ve)=>{K._isLeaving=!1,Mn(K,p),Mn(K,v),Mn(K,_),ve&&ve()},ce=K=>(ve,ke)=>{const nt=K?W:$,Ae=()=>G(ve,K,ke);rs(nt,[ve,Ae]),Gc(()=>{Mn(ve,K?u:o),dn(ve,K?d:c),zc(nt)||Jc(ve,s,x,Ae)})};return rt(t,{onBeforeEnter(K){rs(B,[K]),dn(K,o),dn(K,l)},onBeforeAppear(K){rs(J,[K]),dn(K,u),dn(K,h)},onEnter:ce(!1),onAppear:ce(!0),onLeave(K,ve){K._isLeaving=!0;const ke=()=>re(K,ve);dn(K,p),K._enterCancelled?(dn(K,_),ul(K)):(ul(K),dn(K,_)),Gc(()=>{K._isLeaving&&(Mn(K,p),dn(K,v),zc(N)||Jc(K,s,O,ke))}),rs(N,[K,ke])},onEnterCancelled(K){G(K,!1,void 0,!0),rs(D,[K])},onAppearCancelled(K){G(K,!0,void 0,!0),rs(F,[K])},onLeaveCancelled(K){re(K),rs(R,[K])}})}function c_(e){if(e==null)return null;if($e(e))return[$o(e.enter),$o(e.leave)];{const t=$o(e);return[t,t]}}function $o(e){return dm(e)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Us]||(e[Us]=new Set)).add(t)}function Mn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Us];n&&(n.delete(t),n.size||(e[Us]=void 0))}function Gc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let u_=0;function Jc(e,t,n,s){const r=e._endId=++u_,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:l,timeout:c,propCount:u}=od(e,t);if(!l)return s();const h=l+"end";let d=0;const p=()=>{e.removeEventListener(h,_),o()},_=v=>{v.target===e&&++d>=u&&p()};setTimeout(()=>{d<u&&p()},c+1),e.addEventListener(h,_)}function od(e,t){const n=window.getComputedStyle(e),s=y=>(n[y]||"").split(", "),r=s(`${Ln}Delay`),o=s(`${Ln}Duration`),l=Xc(r,o),c=s(`${rr}Delay`),u=s(`${rr}Duration`),h=Xc(c,u);let d=null,p=0,_=0;t===Ln?l>0&&(d=Ln,p=l,_=o.length):t===rr?h>0&&(d=rr,p=h,_=u.length):(p=Math.max(l,h),d=p>0?l>h?Ln:rr:null,_=d?d===Ln?o.length:u.length:0);const v=d===Ln&&/\b(?:transform|all)(?:,|$)/.test(s(`${Ln}Property`).toString());return{type:d,timeout:p,propCount:_,hasTransform:v}}function Xc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Yc(n)+Yc(e[s])))}function Yc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ul(e){return(e?e.ownerDocument:document).body.offsetHeight}function f_(e,t,n){const s=e[Us];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Qc=Symbol("_vod"),d_=Symbol("_vsh"),h_=Symbol(""),p_=/(?:^|;)\s*display\s*:/;function m_(e,t,n){const s=e.style,r=Xe(n);let o=!1;if(n&&!r){if(t)if(Xe(t))for(const l of t.split(";")){const c=l.slice(0,l.indexOf(":")).trim();n[c]==null&&gi(s,c,"")}else for(const l in t)n[l]==null&&gi(s,l,"");for(const l in n)l==="display"&&(o=!0),gi(s,l,n[l])}else if(r){if(t!==n){const l=s[h_];l&&(n+=";"+l),s.cssText=n,o=p_.test(n)}}else t&&e.removeAttribute("style");Qc in e&&(e[Qc]=o?s.display:"",e[d_]&&(s.display="none"))}const Zc=/\s*!important$/;function gi(e,t,n){if(oe(n))n.forEach(s=>gi(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=g_(e,t);Zc.test(n)?e.setProperty(qn(s),n.replace(Zc,""),"important"):e[s]=n}}const eu=["Webkit","Moz","ms"],jo={};function g_(e,t){const n=jo[t];if(n)return n;let s=zt(t);if(s!=="filter"&&s in e)return jo[t]=s;s=Ii(s);for(let r=0;r<eu.length;r++){const o=eu[r]+s;if(o in e)return jo[t]=o}return t}const tu="http://www.w3.org/1999/xlink";function nu(e,t,n,s,r,o=bm(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(tu,t.slice(6,t.length)):e.setAttributeNS(tu,t,n):n==null||o&&!Zu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Zt(n)?String(n):n)}function su(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?rd(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const c=o==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(c!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Zu(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(r||t)}function Hn(e,t,n,s){e.addEventListener(t,n,s)}function __(e,t,n,s){e.removeEventListener(t,n,s)}const ru=Symbol("_vei");function b_(e,t,n,s,r=null){const o=e[ru]||(e[ru]={}),l=o[t];if(s&&l)l.value=s;else{const[c,u]=v_(t);if(s){const h=o[t]=E_(s,r);Hn(e,c,h,u)}else l&&(__(e,c,l,u),o[t]=void 0)}}const iu=/(?:Once|Passive|Capture)$/;function v_(e){let t;if(iu.test(e)){t={};let s;for(;s=e.match(iu);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):qn(e.slice(2)),t]}let Bo=0;const y_=Promise.resolve(),w_=()=>Bo||(y_.then(()=>Bo=0),Bo=Date.now());function E_(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;tn(A_(s,n.value),t,5,[s])};return n.value=e,n.attached=w_(),n}function A_(e,t){if(oe(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 ou=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,C_=(e,t,n,s,r,o)=>{const l=r==="svg";t==="class"?f_(e,s,l):t==="style"?m_(e,n,s):Ni(t)?El(t)||b_(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):x_(e,t,s,l))?(su(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&nu(e,t,s,l,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Xe(s))?su(e,zt(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),nu(e,t,s,l))};function x_(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ou(t)&&me(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 ou(t)&&Xe(n)?!1:t in e}const ld=new WeakMap,ad=new WeakMap,Ri=Symbol("_moveCb"),lu=Symbol("_enterCb"),S_=e=>(delete e.props.mode,e),T_=S_({name:"TransitionGroup",props:rt({},l_,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ed(),s=sg();let r,o;return Df(()=>{if(!r.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!k_(r[0].el,n.vnode.el,l)){r=[];return}r.forEach(R_),r.forEach(P_);const c=r.filter(N_);ul(n.vnode.el),c.forEach(u=>{const h=u.el,d=h.style;dn(h,l),d.transform=d.webkitTransform=d.transitionDuration="";const p=h[Ri]=_=>{_&&_.target!==h||(!_||_.propertyName.endsWith("transform"))&&(h.removeEventListener("transitionend",p),h[Ri]=null,Mn(h,l))};h.addEventListener("transitionend",p)}),r=[]}),()=>{const l=Re(e),c=a_(l);let u=l.tag||Qe;if(r=[],o)for(let h=0;h<o.length;h++){const d=o[h];d.el&&d.el instanceof Element&&(r.push(d),Er(d,nl(d,c,s,n)),ld.set(d,{left:d.el.offsetLeft,top:d.el.offsetTop}))}o=t.default?Pf(t.default()):[];for(let h=0;h<o.length;h++){const d=o[h];d.key!=null&&Er(d,nl(d,c,s,n))}return We(u,null,o)}}}),O_=T_;function R_(e){const t=e.el;t[Ri]&&t[Ri](),t[lu]&&t[lu]()}function P_(e){ad.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function N_(e){const t=ld.get(e),n=ad.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${r}px)`,o.transitionDuration="0s",e}}function k_(e,t,n){const s=e.cloneNode(),r=e[Us];r&&r.forEach(c=>{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:l}=od(s);return o.removeChild(s),l}const Vs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return oe(t)?n=>fi(t,n):t};function I_(e){e.target.composing=!0}function au(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Sn=Symbol("_assign");function cu(e,t,n){return t&&(e=e.trim()),n&&(e=Li(e)),e}const _i={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Sn]=Vs(r);const o=s||r.props&&r.props.type==="number";Hn(e,t?"change":"input",l=>{l.target.composing||e[Sn](cu(e.value,n,o))}),(n||o)&&Hn(e,"change",()=>{e.value=cu(e.value,n,o)}),t||(Hn(e,"compositionstart",I_),Hn(e,"compositionend",au),Hn(e,"change",au))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},l){if(e[Sn]=Vs(l),e.composing)return;const c=(o||e.type==="number")&&!/^0\d/.test(e.value)?Li(e.value):e.value,u=t??"";c!==u&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===u)||(e.value=u))}},cd={deep:!0,created(e,t,n){e[Sn]=Vs(n),Hn(e,"change",()=>{const s=e._modelValue,r=Sr(e),o=e.checked,l=e[Sn];if(oe(s)){const c=xl(s,r),u=c!==-1;if(o&&!u)l(s.concat(r));else if(!o&&u){const h=[...s];h.splice(c,1),l(h)}}else if(zs(s)){const c=new Set(s);o?c.add(r):c.delete(r),l(c)}else l(ud(e,o))})},mounted:uu,beforeUpdate(e,t,n){e[Sn]=Vs(n),uu(e,t,n)}};function uu(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(oe(t))r=xl(t,s.props.value)>-1;else if(zs(t))r=t.has(s.props.value);else{if(t===n)return;r=Rr(t,ud(e,!0))}e.checked!==r&&(e.checked=r)}const L_={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=zs(t);Hn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Li(Sr(l)):Sr(l));e[Sn](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Il(()=>{e._assigning=!1})}),e[Sn]=Vs(s)},mounted(e,{value:t}){fu(e,t)},beforeUpdate(e,t,n){e[Sn]=Vs(n)},updated(e,{value:t}){e._assigning||fu(e,t)}};function fu(e,t){const n=e.multiple,s=oe(t);if(!(n&&!s&&!zs(t))){for(let r=0,o=e.options.length;r<o;r++){const l=e.options[r],c=Sr(l);if(n)if(s){const u=typeof c;u==="string"||u==="number"?l.selected=t.some(h=>String(h)===String(c)):l.selected=xl(t,c)>-1}else l.selected=t.has(c);else if(Rr(Sr(l),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Sr(e){return"_value"in e?e._value:e.value}function ud(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const D_=["ctrl","shift","alt","meta"],M_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>D_.some(n=>e[`${n}Key`]&&!t.includes(n))},fl=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let l=0;l<t.length;l++){const c=M_[t[l]];if(c&&c(r,t))return}return e(r,...o)}))},F_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},C0=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const o=qn(r.key);if(t.some(l=>l===o||F_[l]===o))return e(r)}))},$_=rt({patchProp:C_},o_);let du;function j_(){return du||(du=jg($_))}const B_=((...e)=>{const t=j_().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=U_(s);if(!r)return;const o=t._component;!me(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,H_(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function H_(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function U_(e){return Xe(e)?document.querySelector(e):e}const V_="data:image/svg+xml,%3csvg%20width='119'%20height='119'%20viewBox='0%200%20119%20119'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M78.8326%2058.0426C78.8765%2048.6428%2071.4389%2040.699%2061.5235%2039.5555C51.6081%2038.4119%2042.3519%2044.4304%2039.982%2053.5619C37.6121%2062.6934%2042.8784%2072.049%2052.2379%2075.3346L44.6584%20113.322H73.7264L66.2799%2075.2595C73.8362%2072.5045%2078.8207%2065.6679%2078.8326%2058.0426Z'%20fill='white'/%3e%3cpath%20d='M118.249%2057.7933C117.583%2025.6833%2091.3083%200%2059.1246%200C26.9408%200%200.665851%2025.6833%203.09067e-08%2057.7933C-0.000675955%2078.6062%2011.0875%2097.8498%2029.1129%20108.319L32.9103%2083.2079C27.0781%2076.837%2023.8452%2068.5192%2023.8473%2059.8902C24.3594%2040.8148%2040.0026%2025.6167%2059.1246%2025.6167C78.2465%2025.6167%2093.8897%2040.8148%2094.4018%2059.8902C94.405%2068.5881%2091.1238%2076.9678%2085.2123%2083.3594L88.9843%20108.395C107.107%2097.9657%20118.266%2078.67%20118.249%2057.7933Z'%20fill='%23ED7F22'/%3e%3c/svg%3e",Ho=He(null),Uo=He(!1);function Bl(){return{config:Ho,isLoaded:Uo,loadConfig:async()=>{if(!Uo.value)try{const t=await fetch("/config.json");Ho.value=await t.json(),Uo.value=!0}catch(t){console.error("Failed to load configuration:",t),Ho.value={api_base_url:"http://localhost:5001/api/v1",refresh_interval:3e4}}}}}function fd(e,t){return function(){return e.apply(t,arguments)}}const{toString:q_}=Object.prototype,{getPrototypeOf:Hl}=Object,{iterator:qi,toStringTag:dd}=Symbol,Wi=(e=>t=>{const n=q_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),sn=e=>(e=e.toLowerCase(),t=>Wi(t)===e),Ki=e=>t=>typeof t===e,{isArray:Gs}=Array,qs=Ki("undefined");function Ir(e){return e!==null&&!qs(e)&&e.constructor!==null&&!qs(e.constructor)&&Pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hd=sn("ArrayBuffer");function W_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hd(e.buffer),t}const K_=Ki("string"),Pt=Ki("function"),pd=Ki("number"),Lr=e=>e!==null&&typeof e=="object",z_=e=>e===!0||e===!1,bi=e=>{if(Wi(e)!=="object")return!1;const t=Hl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(dd in e)&&!(qi in e)},G_=e=>{if(!Lr(e)||Ir(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},J_=sn("Date"),X_=sn("File"),Y_=sn("Blob"),Q_=sn("FileList"),Z_=e=>Lr(e)&&Pt(e.pipe),eb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pt(e.append)&&((t=Wi(e))==="formdata"||t==="object"&&Pt(e.toString)&&e.toString()==="[object FormData]"))},tb=sn("URLSearchParams"),[nb,sb,rb,ib]=["ReadableStream","Request","Response","Headers"].map(sn),ob=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Gs(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{if(Ir(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let c;for(s=0;s<l;s++)c=o[s],t.call(null,e[c],c,e)}}function md(e,t){if(Ir(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const ls=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gd=e=>!qs(e)&&e!==ls;function dl(){const{caseless:e,skipUndefined:t}=gd(this)&&this||{},n={},s=(r,o)=>{const l=e&&md(n,o)||o;bi(n[l])&&bi(r)?n[l]=dl(n[l],r):bi(r)?n[l]=dl({},r):Gs(r)?n[l]=r.slice():(!t||!qs(r))&&(n[l]=r)};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Dr(arguments[r],s);return n}const lb=(e,t,n,{allOwnKeys:s}={})=>(Dr(t,(r,o)=>{n&&Pt(r)?e[o]=fd(r,n):e[o]=r},{allOwnKeys:s}),e),ab=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cb=(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)},ub=(e,t,n,s)=>{let r,o,l;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)l=r[o],(!s||s(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&Hl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fb=(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},db=e=>{if(!e)return null;if(Gs(e))return e;let t=e.length;if(!pd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hl(Uint8Array)),pb=(e,t)=>{const s=(e&&e[qi]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},mb=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},gb=sn("HTMLFormElement"),_b=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),hu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bb=sn("RegExp"),_d=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Dr(n,(r,o)=>{let l;(l=t(r,o,e))!==!1&&(s[o]=l||r)}),Object.defineProperties(e,s)},vb=e=>{_d(e,(t,n)=>{if(Pt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Pt(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+"'")})}})},yb=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return Gs(e)?s(e):s(String(e).split(t)),n},wb=()=>{},Eb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ab(e){return!!(e&&Pt(e.append)&&e[dd]==="FormData"&&e[qi])}const Cb=e=>{const t=new Array(10),n=(s,r)=>{if(Lr(s)){if(t.indexOf(s)>=0)return;if(Ir(s))return s;if(!("toJSON"in s)){t[r]=s;const o=Gs(s)?[]:{};return Dr(s,(l,c)=>{const u=n(l,r+1);!qs(u)&&(o[c]=u)}),t[r]=void 0,o}}return s};return n(e,0)},xb=sn("AsyncFunction"),Sb=e=>e&&(Lr(e)||Pt(e))&&Pt(e.then)&&Pt(e.catch),bd=((e,t)=>e?setImmediate:t?((n,s)=>(ls.addEventListener("message",({source:r,data:o})=>{r===ls&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),ls.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Pt(ls.postMessage)),Tb=typeof queueMicrotask<"u"?queueMicrotask.bind(ls):typeof process<"u"&&process.nextTick||bd,Ob=e=>e!=null&&Pt(e[qi]),S={isArray:Gs,isArrayBuffer:hd,isBuffer:Ir,isFormData:eb,isArrayBufferView:W_,isString:K_,isNumber:pd,isBoolean:z_,isObject:Lr,isPlainObject:bi,isEmptyObject:G_,isReadableStream:nb,isRequest:sb,isResponse:rb,isHeaders:ib,isUndefined:qs,isDate:J_,isFile:X_,isBlob:Y_,isRegExp:bb,isFunction:Pt,isStream:Z_,isURLSearchParams:tb,isTypedArray:hb,isFileList:Q_,forEach:Dr,merge:dl,extend:lb,trim:ob,stripBOM:ab,inherits:cb,toFlatObject:ub,kindOf:Wi,kindOfTest:sn,endsWith:fb,toArray:db,forEachEntry:pb,matchAll:mb,isHTMLForm:gb,hasOwnProperty:hu,hasOwnProp:hu,reduceDescriptors:_d,freezeMethods:vb,toObjectSet:yb,toCamelCase:_b,noop:wb,toFiniteNumber:Eb,findKey:md,global:ls,isContextDefined:gd,isSpecCompliantForm:Ab,toJSONObject:Cb,isAsyncFn:xb,isThenable:Sb,setImmediate:bd,asap:Tb,isIterable:Ob};function ge(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,this.status=r.status?r.status:null)}S.inherits(ge,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const vd=ge.prototype,yd={};["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=>{yd[e]={value:e}});Object.defineProperties(ge,yd);Object.defineProperty(vd,"isAxiosError",{value:!0});ge.from=(e,t,n,s,r,o)=>{const l=Object.create(vd);S.toFlatObject(e,l,function(d){return d!==Error.prototype},h=>h!=="isAxiosError");const c=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return ge.call(l,c,u,n,s,r),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",o&&Object.assign(l,o),l};const Rb=null;function hl(e){return S.isPlainObject(e)||S.isArray(e)}function wd(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function pu(e,t,n){return e?e.concat(t).map(function(r,o){return r=wd(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Pb(e){return S.isArray(e)&&!e.some(hl)}const Nb=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function zi(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,O){return!S.isUndefined(O[x])});const s=n.metaTokens,r=n.visitor||d,o=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(r))throw new TypeError("visitor must be a function");function h(y){if(y===null)return"";if(S.isDate(y))return y.toISOString();if(S.isBoolean(y))return y.toString();if(!u&&S.isBlob(y))throw new ge("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(y)||S.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,x,O){let B=y;if(y&&!O&&typeof y=="object"){if(S.endsWith(x,"{}"))x=s?x:x.slice(0,-2),y=JSON.stringify(y);else if(S.isArray(y)&&Pb(y)||(S.isFileList(y)||S.endsWith(x,"[]"))&&(B=S.toArray(y)))return x=wd(x),B.forEach(function(D,N){!(S.isUndefined(D)||D===null)&&t.append(l===!0?pu([x],N,o):l===null?x:x+"[]",h(D))}),!1}return hl(y)?!0:(t.append(pu(O,x,o),h(y)),!1)}const p=[],_=Object.assign(Nb,{defaultVisitor:d,convertValue:h,isVisitable:hl});function v(y,x){if(!S.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(y),S.forEach(y,function(B,$){(!(S.isUndefined(B)||B===null)&&r.call(t,B,S.isString($)?$.trim():$,x,_))===!0&&v(B,x?x.concat($):[$])}),p.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return v(e),t}function mu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Ul(e,t){this._pairs=[],e&&zi(e,this,t)}const Ed=Ul.prototype;Ed.append=function(t,n){this._pairs.push([t,n])};Ed.toString=function(t){const n=t?function(s){return t.call(this,s,mu)}:mu;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function kb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ad(e,t,n){if(!t)return e;const s=n&&n.encode||kb;S.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(r?o=r(t,n):o=S.isURLSearchParams(t)?t.toString():new Ul(t,n).toString(s),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class gu{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){S.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Cd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ib=typeof URLSearchParams<"u"?URLSearchParams:Ul,Lb=typeof FormData<"u"?FormData:null,Db=typeof Blob<"u"?Blob:null,Mb={isBrowser:!0,classes:{URLSearchParams:Ib,FormData:Lb,Blob:Db},protocols:["http","https","file","blob","url","data"]},Vl=typeof window<"u"&&typeof document<"u",pl=typeof navigator=="object"&&navigator||void 0,Fb=Vl&&(!pl||["ReactNative","NativeScript","NS"].indexOf(pl.product)<0),$b=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jb=Vl&&window.location.href||"http://localhost",Bb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vl,hasStandardBrowserEnv:Fb,hasStandardBrowserWebWorkerEnv:$b,navigator:pl,origin:jb},Symbol.toStringTag,{value:"Module"})),gt={...Bb,...Mb};function Hb(e,t){return zi(e,new gt.classes.URLSearchParams,{visitor:function(n,s,r,o){return gt.isNode&&S.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Ub(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vb(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}function xd(e){function t(n,s,r,o){let l=n[o++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),u=o>=n.length;return l=!l&&S.isArray(r)?r.length:l,u?(S.hasOwnProp(r,l)?r[l]=[r[l],s]:r[l]=s,!c):((!r[l]||!S.isObject(r[l]))&&(r[l]=[]),t(n,s,r[l],o)&&S.isArray(r[l])&&(r[l]=Vb(r[l])),!c)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(s,r)=>{t(Ub(s),r,n,0)}),n}return null}function qb(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Mr={transitional:Cd,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return r?JSON.stringify(xd(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Hb(t,this.formSerializer).toString();if((c=S.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return zi(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),qb(t)):t}],transformResponse:[function(t){const n=this.transitional||Mr.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(s&&!this.responseType||r)){const l=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(c){if(l)throw c.name==="SyntaxError"?ge.from(c,ge.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Mr.headers[e]={}});const Wb=S.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"]),Kb=e=>{const t={};let n,s,r;return e&&e.split(`
|
|
`).forEach(function(l){r=l.indexOf(":"),n=l.substring(0,r).trim().toLowerCase(),s=l.substring(r+1).trim(),!(!n||t[n]&&Wb[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},_u=Symbol("internals");function ir(e){return e&&String(e).trim().toLowerCase()}function vi(e){return e===!1||e==null?e:S.isArray(e)?e.map(vi):String(e)}function zb(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 Gb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vo(e,t,n,s,r){if(S.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!S.isString(t)){if(S.isString(s))return t.indexOf(s)!==-1;if(S.isRegExp(s))return s.test(t)}}function Jb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Xb(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,l){return this[s].call(this,t,r,o,l)},configurable:!0})})}let Nt=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(c,u,h){const d=ir(u);if(!d)throw new Error("header name must be a non-empty string");const p=S.findKey(r,d);(!p||r[p]===void 0||h===!0||h===void 0&&r[p]!==!1)&&(r[p||u]=vi(c))}const l=(c,u)=>S.forEach(c,(h,d)=>o(h,d,u));if(S.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(S.isString(t)&&(t=t.trim())&&!Gb(t))l(Kb(t),n);else if(S.isObject(t)&&S.isIterable(t)){let c={},u,h;for(const d of t){if(!S.isArray(d))throw TypeError("Object iterator must return a key-value pair");c[h=d[0]]=(u=c[h])?S.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}l(c,n)}else t!=null&&o(n,t,s);return this}get(t,n){if(t=ir(t),t){const s=S.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return zb(r);if(S.isFunction(n))return n.call(this,r,s);if(S.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ir(t),t){const s=S.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Vo(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(l){if(l=ir(l),l){const c=S.findKey(s,l);c&&(!n||Vo(s,s[c],c,n))&&(delete s[c],r=!0)}}return S.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||Vo(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return S.forEach(this,(r,o)=>{const l=S.findKey(s,o);if(l){n[l]=vi(r),delete n[o];return}const c=t?Jb(o):String(o).trim();c!==o&&delete n[o],n[c]=vi(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&S.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(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}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[_u]=this[_u]={accessors:{}}).accessors,r=this.prototype;function o(l){const c=ir(l);s[c]||(Xb(r,l),s[c]=!0)}return S.isArray(t)?t.forEach(o):o(t),this}};Nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Nt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});S.freezeMethods(Nt);function qo(e,t){const n=this||Mr,s=t||n,r=Nt.from(s.headers);let o=s.data;return S.forEach(e,function(c){o=c.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Sd(e){return!!(e&&e.__CANCEL__)}function Js(e,t,n){ge.call(this,e??"canceled",ge.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(Js,ge,{__CANCEL__:!0});function Td(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ge("Request failed with status code "+n.status,[ge.ERR_BAD_REQUEST,ge.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Yb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Qb(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,l;return t=t!==void 0?t:1e3,function(u){const h=Date.now(),d=s[o];l||(l=h),n[r]=u,s[r]=h;let p=o,_=0;for(;p!==r;)_+=n[p++],p=p%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),h-l<t)return;const v=d&&h-d;return v?Math.round(_*1e3/v):void 0}}function Zb(e,t){let n=0,s=1e3/t,r,o;const l=(h,d=Date.now())=>{n=d,r=null,o&&(clearTimeout(o),o=null),e(...h)};return[(...h)=>{const d=Date.now(),p=d-n;p>=s?l(h,d):(r=h,o||(o=setTimeout(()=>{o=null,l(r)},s-p)))},()=>r&&l(r)]}const Pi=(e,t,n=3)=>{let s=0;const r=Qb(50,250);return Zb(o=>{const l=o.loaded,c=o.lengthComputable?o.total:void 0,u=l-s,h=r(u),d=l<=c;s=l;const p={loaded:l,total:c,progress:c?l/c:void 0,bytes:u,rate:h||void 0,estimated:h&&c&&d?(c-l)/h:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},bu=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},vu=e=>(...t)=>S.asap(()=>e(...t)),ev=gt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,gt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,tv=gt.hasStandardBrowserEnv?{write(e,t,n,s,r,o,l){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];S.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),S.isString(s)&&c.push(`path=${s}`),S.isString(r)&&c.push(`domain=${r}`),o===!0&&c.push("secure"),S.isString(l)&&c.push(`SameSite=${l}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function nv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Od(e,t,n){let s=!nv(t);return e&&(s||n==!1)?sv(e,t):t}const yu=e=>e instanceof Nt?{...e}:e;function ps(e,t){t=t||{};const n={};function s(h,d,p,_){return S.isPlainObject(h)&&S.isPlainObject(d)?S.merge.call({caseless:_},h,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function r(h,d,p,_){if(S.isUndefined(d)){if(!S.isUndefined(h))return s(void 0,h,p,_)}else return s(h,d,p,_)}function o(h,d){if(!S.isUndefined(d))return s(void 0,d)}function l(h,d){if(S.isUndefined(d)){if(!S.isUndefined(h))return s(void 0,h)}else return s(void 0,d)}function c(h,d,p){if(p in t)return s(h,d);if(p in e)return s(void 0,h)}const u={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(h,d,p)=>r(yu(h),yu(d),p,!0)};return S.forEach(Object.keys({...e,...t}),function(d){const p=u[d]||r,_=p(e[d],t[d],d);S.isUndefined(_)&&p!==c||(n[d]=_)}),n}const Rd=e=>{const t=ps({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:l,auth:c}=t;if(t.headers=l=Nt.from(l),t.url=Ad(Od(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),S.isFormData(n)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(S.isFunction(n.getHeaders)){const u=n.getHeaders(),h=["content-type","content-length"];Object.entries(u).forEach(([d,p])=>{h.includes(d.toLowerCase())&&l.set(d,p)})}}if(gt.hasStandardBrowserEnv&&(s&&S.isFunction(s)&&(s=s(t)),s||s!==!1&&ev(t.url))){const u=r&&o&&tv.read(o);u&&l.set(r,u)}return t},rv=typeof XMLHttpRequest<"u",iv=rv&&function(e){return new Promise(function(n,s){const r=Rd(e);let o=r.data;const l=Nt.from(r.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:h}=r,d,p,_,v,y;function x(){v&&v(),y&&y(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let O=new XMLHttpRequest;O.open(r.method.toUpperCase(),r.url,!0),O.timeout=r.timeout;function B(){if(!O)return;const D=Nt.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),R={data:!c||c==="text"||c==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:D,config:e,request:O};Td(function(W){n(W),x()},function(W){s(W),x()},R),O=null}"onloadend"in O?O.onloadend=B:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(B)},O.onabort=function(){O&&(s(new ge("Request aborted",ge.ECONNABORTED,e,O)),O=null)},O.onerror=function(N){const R=N&&N.message?N.message:"Network Error",J=new ge(R,ge.ERR_NETWORK,e,O);J.event=N||null,s(J),O=null},O.ontimeout=function(){let N=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||Cd;r.timeoutErrorMessage&&(N=r.timeoutErrorMessage),s(new ge(N,R.clarifyTimeoutError?ge.ETIMEDOUT:ge.ECONNABORTED,e,O)),O=null},o===void 0&&l.setContentType(null),"setRequestHeader"in O&&S.forEach(l.toJSON(),function(N,R){O.setRequestHeader(R,N)}),S.isUndefined(r.withCredentials)||(O.withCredentials=!!r.withCredentials),c&&c!=="json"&&(O.responseType=r.responseType),h&&([_,y]=Pi(h,!0),O.addEventListener("progress",_)),u&&O.upload&&([p,v]=Pi(u),O.upload.addEventListener("progress",p),O.upload.addEventListener("loadend",v)),(r.cancelToken||r.signal)&&(d=D=>{O&&(s(!D||D.type?new Js(null,e,O):D),O.abort(),O=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const $=Yb(r.url);if($&>.protocols.indexOf($)===-1){s(new ge("Unsupported protocol "+$+":",ge.ERR_BAD_REQUEST,e));return}O.send(o||null)})},ov=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(h){if(!r){r=!0,c();const d=h instanceof Error?h:this.reason;s.abort(d instanceof ge?d:new Js(d instanceof Error?d.message:d))}};let l=t&&setTimeout(()=>{l=null,o(new ge(`timeout ${t} of ms exceeded`,ge.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o));const{signal:u}=s;return u.unsubscribe=()=>S.asap(c),u}},lv=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},av=async function*(e,t){for await(const n of cv(e))yield*lv(n,t)},cv=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},wu=(e,t,n,s)=>{const r=av(e,t);let o=0,l,c=u=>{l||(l=!0,s&&s(u))};return new ReadableStream({async pull(u){try{const{done:h,value:d}=await r.next();if(h){c(),u.close();return}let p=d.byteLength;if(n){let _=o+=p;n(_)}u.enqueue(new Uint8Array(d))}catch(h){throw c(h),h}},cancel(u){return c(u),r.return()}},{highWaterMark:2})},Eu=64*1024,{isFunction:ui}=S,uv=(({Request:e,Response:t})=>({Request:e,Response:t}))(S.global),{ReadableStream:Au,TextEncoder:Cu}=S.global,xu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fv=e=>{e=S.merge.call({skipUndefined:!0},uv,e);const{fetch:t,Request:n,Response:s}=e,r=t?ui(t):typeof fetch=="function",o=ui(n),l=ui(s);if(!r)return!1;const c=r&&ui(Au),u=r&&(typeof Cu=="function"?(y=>x=>y.encode(x))(new Cu):async y=>new Uint8Array(await new n(y).arrayBuffer())),h=o&&c&&xu(()=>{let y=!1;const x=new n(gt.origin,{body:new Au,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!x}),d=l&&c&&xu(()=>S.isReadableStream(new s("").body)),p={stream:d&&(y=>y.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!p[y]&&(p[y]=(x,O)=>{let B=x&&x[y];if(B)return B.call(x);throw new ge(`Response type '${y}' is not supported`,ge.ERR_NOT_SUPPORT,O)})});const _=async y=>{if(y==null)return 0;if(S.isBlob(y))return y.size;if(S.isSpecCompliantForm(y))return(await new n(gt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(S.isArrayBufferView(y)||S.isArrayBuffer(y))return y.byteLength;if(S.isURLSearchParams(y)&&(y=y+""),S.isString(y))return(await u(y)).byteLength},v=async(y,x)=>{const O=S.toFiniteNumber(y.getContentLength());return O??_(x)};return async y=>{let{url:x,method:O,data:B,signal:$,cancelToken:D,timeout:N,onDownloadProgress:R,onUploadProgress:J,responseType:W,headers:F,withCredentials:G="same-origin",fetchOptions:re}=Rd(y),ce=t||fetch;W=W?(W+"").toLowerCase():"text";let K=ov([$,D&&D.toAbortSignal()],N),ve=null;const ke=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let nt;try{if(J&&h&&O!=="get"&&O!=="head"&&(nt=await v(F,B))!==0){let I=new n(x,{method:"POST",body:B,duplex:"half"}),qe;if(S.isFormData(B)&&(qe=I.headers.get("content-type"))&&F.setContentType(qe),I.body){const[It,bt]=bu(nt,Pi(vu(J)));B=wu(I.body,Eu,It,bt)}}S.isString(G)||(G=G?"include":"omit");const Ae=o&&"credentials"in n.prototype,xe={...re,signal:K,method:O.toUpperCase(),headers:F.normalize().toJSON(),body:B,duplex:"half",credentials:Ae?G:void 0};ve=o&&new n(x,xe);let he=await(o?ce(ve,re):ce(x,xe));const Ot=d&&(W==="stream"||W==="response");if(d&&(R||Ot&&ke)){const I={};["status","statusText","headers"].forEach(Ze=>{I[Ze]=he[Ze]});const qe=S.toFiniteNumber(he.headers.get("content-length")),[It,bt]=R&&bu(qe,Pi(vu(R),!0))||[];he=new s(wu(he.body,Eu,It,()=>{bt&&bt(),ke&&ke()}),I)}W=W||"text";let kt=await p[S.findKey(p,W)||"text"](he,y);return!Ot&&ke&&ke(),await new Promise((I,qe)=>{Td(I,qe,{data:kt,headers:Nt.from(he.headers),status:he.status,statusText:he.statusText,config:y,request:ve})})}catch(Ae){throw ke&&ke(),Ae&&Ae.name==="TypeError"&&/Load failed|fetch/i.test(Ae.message)?Object.assign(new ge("Network Error",ge.ERR_NETWORK,y,ve),{cause:Ae.cause||Ae}):ge.from(Ae,Ae&&Ae.code,y,ve)}}},dv=new Map,Pd=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,o=[s,r,n];let l=o.length,c=l,u,h,d=dv;for(;c--;)u=o[c],h=d.get(u),h===void 0&&d.set(u,h=c?new Map:fv(t)),d=h;return h};Pd();const ql={http:Rb,xhr:iv,fetch:{get:Pd}};S.forEach(ql,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Su=e=>`- ${e}`,hv=e=>S.isFunction(e)||e===null||e===!1;function pv(e,t){e=S.isArray(e)?e:[e];const{length:n}=e;let s,r;const o={};for(let l=0;l<n;l++){s=e[l];let c;if(r=s,!hv(s)&&(r=ql[(c=String(s)).toLowerCase()],r===void 0))throw new ge(`Unknown adapter '${c}'`);if(r&&(S.isFunction(r)||(r=r.get(t))))break;o[c||"#"+l]=r}if(!r){const l=Object.entries(o).map(([u,h])=>`adapter ${u} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?l.length>1?`since :
|
|
`+l.map(Su).join(`
|
|
`):" "+Su(l[0]):"as no adapter specified";throw new ge("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r}const Nd={getAdapter:pv,adapters:ql};function Wo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Js(null,e)}function Tu(e){return Wo(e),e.headers=Nt.from(e.headers),e.data=qo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nd.getAdapter(e.adapter||Mr.adapter,e)(e).then(function(s){return Wo(e),s.data=qo.call(e,e.transformResponse,s),s.headers=Nt.from(s.headers),s},function(s){return Sd(s)||(Wo(e),s&&s.response&&(s.response.data=qo.call(e,e.transformResponse,s.response),s.response.headers=Nt.from(s.response.headers))),Promise.reject(s)})}const kd="1.13.2",Gi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gi[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Ou={};Gi.transitional=function(t,n,s){function r(o,l){return"[Axios v"+kd+"] Transitional option '"+o+"'"+l+(s?". "+s:"")}return(o,l,c)=>{if(t===!1)throw new ge(r(l," has been removed"+(n?" in "+n:"")),ge.ERR_DEPRECATED);return n&&!Ou[l]&&(Ou[l]=!0,console.warn(r(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,c):!0}};Gi.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function mv(e,t,n){if(typeof e!="object")throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],l=t[o];if(l){const c=e[o],u=c===void 0||l(c,o,e);if(u!==!0)throw new ge("option "+o+" must be "+u,ge.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ge("Unknown option "+o,ge.ERR_BAD_OPTION)}}const yi={assertOptions:mv,validators:Gi},fn=yi.validators;let ds=class{constructor(t){this.defaults=t||{},this.interceptors={request:new gu,response:new gu}}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=ps(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&yi.assertOptions(s,{silentJSONParsing:fn.transitional(fn.boolean),forcedJSONParsing:fn.transitional(fn.boolean),clarifyTimeoutError:fn.transitional(fn.boolean)},!1),r!=null&&(S.isFunction(r)?n.paramsSerializer={serialize:r}:yi.assertOptions(r,{encode:fn.function,serialize:fn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),yi.assertOptions(n,{baseUrl:fn.spelling("baseURL"),withXsrfToken:fn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&S.merge(o.common,o[n.method]);o&&S.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Nt.concat(l,o);const c=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,c.unshift(x.fulfilled,x.rejected))});const h=[];this.interceptors.response.forEach(function(x){h.push(x.fulfilled,x.rejected)});let d,p=0,_;if(!u){const y=[Tu.bind(this),void 0];for(y.unshift(...c),y.push(...h),_=y.length,d=Promise.resolve(n);p<_;)d=d.then(y[p++],y[p++]);return d}_=c.length;let v=n;for(;p<_;){const y=c[p++],x=c[p++];try{v=y(v)}catch(O){x.call(this,O);break}}try{d=Tu.call(this,v)}catch(y){return Promise.reject(y)}for(p=0,_=h.length;p<_;)d=d.then(h[p++],h[p++]);return d}getUri(t){t=ps(this.defaults,t);const n=Od(t.baseURL,t.url,t.allowAbsoluteUrls);return Ad(n,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){ds.prototype[t]=function(n,s){return this.request(ps(s||{},{method:t,url:n,data:(s||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(s){return function(o,l,c){return this.request(ps(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}ds.prototype[t]=n(),ds.prototype[t+"Form"]=n(!0)});let gv=class Id{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{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 l=new Promise(c=>{s.subscribe(c),o=c}).then(r);return l.cancel=function(){s.unsubscribe(o)},l},t(function(o,l,c){s.reason||(s.reason=new Js(o,l,c),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)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Id(function(r){t=r}),cancel:t}}};function _v(e){return function(n){return e.apply(null,n)}}function bv(e){return S.isObject(e)&&e.isAxiosError===!0}const ml={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ml).forEach(([e,t])=>{ml[t]=e});function Ld(e){const t=new ds(e),n=fd(ds.prototype.request,t);return S.extend(n,ds.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Ld(ps(e,r))},n}const Ke=Ld(Mr);Ke.Axios=ds;Ke.CanceledError=Js;Ke.CancelToken=gv;Ke.isCancel=Sd;Ke.VERSION=kd;Ke.toFormData=zi;Ke.AxiosError=ge;Ke.Cancel=Ke.CanceledError;Ke.all=function(t){return Promise.all(t)};Ke.spread=_v;Ke.isAxiosError=bv;Ke.mergeConfig=ps;Ke.AxiosHeaders=Nt;Ke.formToJSON=e=>xd(S.isHTMLForm(e)?new FormData(e):e);Ke.getAdapter=Nd.getAdapter;Ke.HttpStatusCode=ml;Ke.default=Ke;const{Axios:T0,AxiosError:O0,CanceledError:R0,isCancel:P0,CancelToken:N0,VERSION:k0,all:I0,Cancel:L0,isAxiosError:D0,spread:M0,toFormData:F0,AxiosHeaders:$0,HttpStatusCode:j0,formToJSON:B0,getAdapter:H0,mergeConfig:U0}=Ke,ar=Ke.create(),gl=Ke.create(),vv=e=>e?.api_base_url||"http://localhost:5001/api/v1",yv=e=>e?.profiles_api_base_url||"http://localhost:8000",Dd=(e,t)=>{e.interceptors.request.use(n=>{const{config:s}=Bl();n.baseURL=t(s.value);const r=localStorage.getItem("ovpmon_token");return r&&(n.headers.Authorization=`Bearer ${r}`),n}),e.interceptors.response.use(n=>n,n=>(n.response&&n.response.status===401&&(localStorage.removeItem("ovpmon_token"),localStorage.removeItem("ovpmon_user"),window.location.pathname!=="/login"&&(window.location.href="/login")),Promise.reject(n)))};Dd(ar,vv);Dd(gl,yv);function Fr(){return{apiClient:ar,profilesApiClient:gl,fetchStats:async()=>(await ar.get("/stats")).data,fetchClientHistory:async(r,o)=>(await ar.get(`/stats/${r}`,{params:{range:o}})).data,fetchAnalytics:async r=>(await ar.get("/analytics",{params:{range:r}})).data,fetchCertificates:async()=>(await gl.get("/profiles")).data}}const Ls=typeof document<"u";function Md(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function wv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Md(e.default)}const Pe=Object.assign;function Ko(e,t){const n={};for(const s in t){const r=t[s];n[s]=nn(r)?r.map(e):e(r)}return n}const br=()=>{},nn=Array.isArray;function Ru(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Fd=/#/g,Ev=/&/g,Av=/\//g,Cv=/=/g,xv=/\?/g,$d=/\+/g,Sv=/%5B/g,Tv=/%5D/g,jd=/%5E/g,Ov=/%60/g,Bd=/%7B/g,Rv=/%7C/g,Hd=/%7D/g,Pv=/%20/g;function Wl(e){return e==null?"":encodeURI(""+e).replace(Rv,"|").replace(Sv,"[").replace(Tv,"]")}function Nv(e){return Wl(e).replace(Bd,"{").replace(Hd,"}").replace(jd,"^")}function _l(e){return Wl(e).replace($d,"%2B").replace(Pv,"+").replace(Fd,"%23").replace(Ev,"%26").replace(Ov,"`").replace(Bd,"{").replace(Hd,"}").replace(jd,"^")}function kv(e){return _l(e).replace(Cv,"%3D")}function Iv(e){return Wl(e).replace(Fd,"%23").replace(xv,"%3F")}function Lv(e){return Iv(e).replace(Av,"%2F")}function Tr(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Dv=/\/$/,Mv=e=>e.replace(Dv,"");function zo(e,t,n="/"){let s,r={},o="",l="";const c=t.indexOf("#");let u=t.indexOf("?");return u=c>=0&&u>c?-1:u,u>=0&&(s=t.slice(0,u),o=t.slice(u,c>0?c:t.length),r=e(o.slice(1))),c>=0&&(s=s||t.slice(0,c),l=t.slice(c,t.length)),s=Bv(s??t,n),{fullPath:s+o+l,path:s,query:r,hash:Tr(l)}}function Fv(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Pu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $v(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ws(t.matched[s],n.matched[r])&&Ud(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ws(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ud(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!jv(e[n],t[n]))return!1;return!0}function jv(e,t){return nn(e)?Nu(e,t):nn(t)?Nu(t,e):e?.valueOf()===t?.valueOf()}function Nu(e,t){return nn(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Bv(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,l,c;for(l=0;l<s.length;l++)if(c=s[l],c!==".")if(c==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(l).join("/")}const Dn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let bl=(function(e){return e.pop="pop",e.push="push",e})({}),Go=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Hv(e){if(!e)if(Ls){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Mv(e)}const Uv=/^[^#]+#/;function Vv(e,t){return e.replace(Uv,"#")+t}function qv(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 Ji=()=>({left:window.scrollX,top:window.scrollY});function Wv(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=qv(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 ku(e,t){return(history.state?history.state.position-t:-1)+e}const vl=new Map;function Kv(e,t){vl.set(e,t)}function zv(e){const t=vl.get(e);return vl.delete(e),t}function Gv(e){return typeof e=="string"||e&&typeof e=="object"}function Vd(e){return typeof e=="string"||typeof e=="symbol"}let Je=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const qd=Symbol("");Je.MATCHER_NOT_FOUND+"",Je.NAVIGATION_GUARD_REDIRECT+"",Je.NAVIGATION_ABORTED+"",Je.NAVIGATION_CANCELLED+"",Je.NAVIGATION_DUPLICATED+"";function Ks(e,t){return Pe(new Error,{type:e,[qd]:!0},t)}function wn(e,t){return e instanceof Error&&qd in e&&(t==null||!!(e.type&t))}const Jv=["params","query","hash"];function Xv(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Jv)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Yv(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace($d," "),o=r.indexOf("="),l=Tr(o<0?r:r.slice(0,o)),c=o<0?null:Tr(r.slice(o+1));if(l in t){let u=t[l];nn(u)||(u=t[l]=[u]),u.push(c)}else t[l]=c}return t}function Iu(e){let t="";for(let n in e){const s=e[n];if(n=kv(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(nn(s)?s.map(r=>r&&_l(r)):[s&&_l(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Qv(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=nn(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Zv=Symbol(""),Lu=Symbol(""),Xi=Symbol(""),Kl=Symbol(""),yl=Symbol("");function or(){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 Bn(e,t,n,s,r,o=l=>l()){const l=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((c,u)=>{const h=_=>{_===!1?u(Ks(Je.NAVIGATION_ABORTED,{from:n,to:t})):_ instanceof Error?u(_):Gv(_)?u(Ks(Je.NAVIGATION_GUARD_REDIRECT,{from:t,to:_})):(l&&s.enterCallbacks[r]===l&&typeof _=="function"&&l.push(_),c())},d=o(()=>e.call(s&&s.instances[r],t,n,h));let p=Promise.resolve(d);e.length<3&&(p=p.then(h)),p.catch(_=>u(_))})}function Jo(e,t,n,s,r=o=>o()){const o=[];for(const l of e)for(const c in l.components){let u=l.components[c];if(!(t!=="beforeRouteEnter"&&!l.instances[c]))if(Md(u)){const h=(u.__vccOpts||u)[t];h&&o.push(Bn(h,n,s,l,c,r))}else{let h=u();o.push(()=>h.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${c}" at "${l.path}"`);const p=wv(d)?d.default:d;l.mods[c]=d,l.components[c]=p;const _=(p.__vccOpts||p)[t];return _&&Bn(_,n,s,l,c,r)()}))}}return o}function ey(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let l=0;l<o;l++){const c=t.matched[l];c&&(e.matched.find(h=>Ws(h,c))?s.push(c):n.push(c));const u=e.matched[l];u&&(t.matched.find(h=>Ws(h,u))||r.push(u))}return[n,s,r]}let ty=()=>location.protocol+"//"+location.host;function Wd(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),Pu(c,"")}return Pu(n,e)+s+r}function ny(e,t,n,s){let r=[],o=[],l=null;const c=({state:_})=>{const v=Wd(e,location),y=n.value,x=t.value;let O=0;if(_){if(n.value=v,t.value=_,l&&l===y){l=null;return}O=x?_.position-x.position:0}else s(v);r.forEach(B=>{B(n.value,y,{delta:O,type:bl.pop,direction:O?O>0?Go.forward:Go.back:Go.unknown})})};function u(){l=n.value}function h(_){r.push(_);const v=()=>{const y=r.indexOf(_);y>-1&&r.splice(y,1)};return o.push(v),v}function d(){if(document.visibilityState==="hidden"){const{history:_}=window;if(!_.state)return;_.replaceState(Pe({},_.state,{scroll:Ji()}),"")}}function p(){for(const _ of o)_();o=[],window.removeEventListener("popstate",c),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",c),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:h,destroy:p}}function Du(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Ji():null}}function sy(e){const{history:t,location:n}=window,s={value:Wd(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(u,h,d){const p=e.indexOf("#"),_=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+u:ty()+e+u;try{t[d?"replaceState":"pushState"](h,"",_),r.value=h}catch(v){console.error(v),n[d?"replace":"assign"](_)}}function l(u,h){o(u,Pe({},t.state,Du(r.value.back,u,r.value.forward,!0),h,{position:r.value.position}),!0),s.value=u}function c(u,h){const d=Pe({},r.value,t.state,{forward:u,scroll:Ji()});o(d.current,d,!0),o(u,Pe({},Du(s.value,u,null),{position:d.position+1},h),!1),s.value=u}return{location:s,state:r,push:c,replace:l}}function ry(e){e=Hv(e);const t=sy(e),n=ny(e,t.state,t.location,t.replace);function s(o,l=!0){l||n.pauseListeners(),history.go(o)}const r=Pe({location:"",base:e,go:s,createHref:Vv.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}let as=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var st=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(st||{});const iy={type:as.Static,value:""},oy=/[a-zA-Z0-9_]/;function ly(e){if(!e)return[[]];if(e==="/")return[[iy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${h}": ${v}`)}let n=st.Static,s=n;const r=[];let o;function l(){o&&r.push(o),o=[]}let c=0,u,h="",d="";function p(){h&&(n===st.Static?o.push({type:as.Static,value:h}):n===st.Param||n===st.ParamRegExp||n===st.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),o.push({type:as.Param,value:h,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),h="")}function _(){h+=u}for(;c<e.length;){if(u=e[c++],u==="\\"&&n!==st.ParamRegExp){s=n,n=st.EscapeNext;continue}switch(n){case st.Static:u==="/"?(h&&p(),l()):u===":"?(p(),n=st.Param):_();break;case st.EscapeNext:_(),n=s;break;case st.Param:u==="("?n=st.ParamRegExp:oy.test(u)?_():(p(),n=st.Static,u!=="*"&&u!=="?"&&u!=="+"&&c--);break;case st.ParamRegExp:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=st.ParamRegExpEnd:d+=u;break;case st.ParamRegExpEnd:p(),n=st.Static,u!=="*"&&u!=="?"&&u!=="+"&&c--,d="";break;default:t("Unknown state");break}}return n===st.ParamRegExp&&t(`Unfinished custom RegExp for param "${h}"`),p(),l(),r}const Mu="[^/]+?",ay={sensitive:!1,strict:!1,start:!0,end:!0};var xt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(xt||{});const cy=/[.+*?^${}()[\]/\\]/g;function uy(e,t){const n=Pe({},ay,t),s=[];let r=n.start?"^":"";const o=[];for(const h of e){const d=h.length?[]:[xt.Root];n.strict&&!h.length&&(r+="/");for(let p=0;p<h.length;p++){const _=h[p];let v=xt.Segment+(n.sensitive?xt.BonusCaseSensitive:0);if(_.type===as.Static)p||(r+="/"),r+=_.value.replace(cy,"\\$&"),v+=xt.Static;else if(_.type===as.Param){const{value:y,repeatable:x,optional:O,regexp:B}=_;o.push({name:y,repeatable:x,optional:O});const $=B||Mu;if($!==Mu){v+=xt.BonusCustomRegExp;try{`${$}`}catch(N){throw new Error(`Invalid custom RegExp for param "${y}" (${$}): `+N.message)}}let D=x?`((?:${$})(?:/(?:${$}))*)`:`(${$})`;p||(D=O&&h.length<2?`(?:/${D})`:"/"+D),O&&(D+="?"),r+=D,v+=xt.Dynamic,O&&(v+=xt.BonusOptional),x&&(v+=xt.BonusRepeatable),$===".*"&&(v+=xt.BonusWildcard)}d.push(v)}s.push(d)}if(n.strict&&n.end){const h=s.length-1;s[h][s[h].length-1]+=xt.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const l=new RegExp(r,n.sensitive?"":"i");function c(h){const d=h.match(l),p={};if(!d)return null;for(let _=1;_<d.length;_++){const v=d[_]||"",y=o[_-1];p[y.name]=v&&y.repeatable?v.split("/"):v}return p}function u(h){let d="",p=!1;for(const _ of e){(!p||!d.endsWith("/"))&&(d+="/"),p=!1;for(const v of _)if(v.type===as.Static)d+=v.value;else if(v.type===as.Param){const{value:y,repeatable:x,optional:O}=v,B=y in h?h[y]:"";if(nn(B)&&!x)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const $=nn(B)?B.join("/"):B;if(!$)if(O)_.length<2&&(d.endsWith("/")?d=d.slice(0,-1):p=!0);else throw new Error(`Missing required param "${y}"`);d+=$}}return d||"/"}return{re:l,score:s,keys:o,parse:c,stringify:u}}function fy(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===xt.Static+xt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===xt.Static+xt.Segment?1:-1:0}function Kd(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=fy(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Fu(s))return 1;if(Fu(r))return-1}return r.length-s.length}function Fu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const dy={strict:!1,end:!0,sensitive:!1};function hy(e,t,n){const s=uy(ly(e.path),n),r=Pe(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function py(e,t){const n=[],s=new Map;t=Ru(dy,t);function r(p){return s.get(p)}function o(p,_,v){const y=!v,x=ju(p);x.aliasOf=v&&v.record;const O=Ru(t,p),B=[x];if("alias"in p){const N=typeof p.alias=="string"?[p.alias]:p.alias;for(const R of N)B.push(ju(Pe({},x,{components:v?v.record.components:x.components,path:R,aliasOf:v?v.record:x})))}let $,D;for(const N of B){const{path:R}=N;if(_&&R[0]!=="/"){const J=_.record.path,W=J[J.length-1]==="/"?"":"/";N.path=_.record.path+(R&&W+R)}if($=hy(N,_,O),v?v.alias.push($):(D=D||$,D!==$&&D.alias.push($),y&&p.name&&!Bu($)&&l(p.name)),zd($)&&u($),x.children){const J=x.children;for(let W=0;W<J.length;W++)o(J[W],$,v&&v.children[W])}v=v||$}return D?()=>{l(D)}:br}function l(p){if(Vd(p)){const _=s.get(p);_&&(s.delete(p),n.splice(n.indexOf(_),1),_.children.forEach(l),_.alias.forEach(l))}else{const _=n.indexOf(p);_>-1&&(n.splice(_,1),p.record.name&&s.delete(p.record.name),p.children.forEach(l),p.alias.forEach(l))}}function c(){return n}function u(p){const _=_y(p,n);n.splice(_,0,p),p.record.name&&!Bu(p)&&s.set(p.record.name,p)}function h(p,_){let v,y={},x,O;if("name"in p&&p.name){if(v=s.get(p.name),!v)throw Ks(Je.MATCHER_NOT_FOUND,{location:p});O=v.record.name,y=Pe($u(_.params,v.keys.filter(D=>!D.optional).concat(v.parent?v.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),p.params&&$u(p.params,v.keys.map(D=>D.name))),x=v.stringify(y)}else if(p.path!=null)x=p.path,v=n.find(D=>D.re.test(x)),v&&(y=v.parse(x),O=v.record.name);else{if(v=_.name?s.get(_.name):n.find(D=>D.re.test(_.path)),!v)throw Ks(Je.MATCHER_NOT_FOUND,{location:p,currentLocation:_});O=v.record.name,y=Pe({},_.params,p.params),x=v.stringify(y)}const B=[];let $=v;for(;$;)B.unshift($.record),$=$.parent;return{name:O,path:x,params:y,matched:B,meta:gy(B)}}e.forEach(p=>o(p));function d(){n.length=0,s.clear()}return{addRoute:o,resolve:h,removeRoute:l,clearRoutes:d,getRoutes:c,getRecordMatcher:r}}function $u(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ju(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:my(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function my(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 Bu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gy(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function _y(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Kd(e,t[o])<0?s=o:n=o+1}const r=by(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function by(e){let t=e;for(;t=t.parent;)if(zd(t)&&Kd(e,t)===0)return t}function zd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Hu(e){const t=Qt(Xi),n=Qt(Kl),s=Tt(()=>{const u=lt(e.to);return t.resolve(u)}),r=Tt(()=>{const{matched:u}=s.value,{length:h}=u,d=u[h-1],p=n.matched;if(!d||!p.length)return-1;const _=p.findIndex(Ws.bind(null,d));if(_>-1)return _;const v=Uu(u[h-2]);return h>1&&Uu(d)===v&&p[p.length-1].path!==v?p.findIndex(Ws.bind(null,u[h-2])):_}),o=Tt(()=>r.value>-1&&Ay(n.params,s.value.params)),l=Tt(()=>r.value>-1&&r.value===n.matched.length-1&&Ud(n.params,s.value.params));function c(u={}){if(Ey(u)){const h=t[lt(e.replace)?"replace":"push"](lt(e.to)).catch(br);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>h),h}return Promise.resolve()}return{route:s,href:Tt(()=>s.value.href),isActive:o,isExactActive:l,navigate:c}}function vy(e){return e.length===1?e[0]:e}const yy=Nf({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"},viewTransition:Boolean},useLink:Hu,setup(e,{slots:t}){const n=gs(Hu(e)),{options:s}=Qt(Xi),r=Tt(()=>({[Vu(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Vu(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&vy(t.default(n));return e.custom?o:sd("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),wy=yy;function Ey(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 Ay(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(!nn(r)||r.length!==s.length||s.some((o,l)=>o.valueOf()!==r[l].valueOf()))return!1}return!0}function Uu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vu=(e,t,n)=>e??t??n,Cy=Nf({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Qt(yl),r=Tt(()=>e.route||s.value),o=Qt(Lu,0),l=Tt(()=>{let h=lt(o);const{matched:d}=r.value;let p;for(;(p=d[h])&&!p.components;)h++;return h}),c=Tt(()=>r.value.matched[l.value]);di(Lu,Tt(()=>l.value+1)),di(Zv,c),di(yl,r);const u=He();return hr(()=>[u.value,c.value,e.name],([h,d,p],[_,v,y])=>{d&&(d.instances[p]=h,v&&v!==d&&h&&h===_&&(d.leaveGuards.size||(d.leaveGuards=v.leaveGuards),d.updateGuards.size||(d.updateGuards=v.updateGuards))),h&&d&&(!v||!Ws(d,v)||!_)&&(d.enterCallbacks[p]||[]).forEach(x=>x(h))},{flush:"post"}),()=>{const h=r.value,d=e.name,p=c.value,_=p&&p.components[d];if(!_)return qu(n.default,{Component:_,route:h});const v=p.props[d],y=v?v===!0?h.params:typeof v=="function"?v(h):v:null,O=sd(_,Pe({},y,t,{onVnodeUnmounted:B=>{B.component.isUnmounted&&(p.instances[d]=null)},ref:u}));return qu(n.default,{Component:O,route:h})||O}}});function qu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const xy=Cy;function Sy(e){const t=py(e.routes,e),n=e.parseQuery||Yv,s=e.stringifyQuery||Iu,r=e.history,o=or(),l=or(),c=or(),u=Hm(Dn);let h=Dn;Ls&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Ko.bind(null,k=>""+k),p=Ko.bind(null,Lv),_=Ko.bind(null,Tr);function v(k,Z){let P,ne;return Vd(k)?(P=t.getRecordMatcher(k),ne=Z):ne=k,t.addRoute(ne,P)}function y(k){const Z=t.getRecordMatcher(k);Z&&t.removeRoute(Z)}function x(){return t.getRoutes().map(k=>k.record)}function O(k){return!!t.getRecordMatcher(k)}function B(k,Z){if(Z=Pe({},Z||u.value),typeof k=="string"){const C=zo(n,k,Z.path),M=t.resolve({path:C.path},Z),j=r.createHref(C.fullPath);return Pe(C,M,{params:_(M.params),hash:Tr(C.hash),redirectedFrom:void 0,href:j})}let P;if(k.path!=null)P=Pe({},k,{path:zo(n,k.path,Z.path).path});else{const C=Pe({},k.params);for(const M in C)C[M]==null&&delete C[M];P=Pe({},k,{params:p(C)}),Z.params=p(Z.params)}const ne=t.resolve(P,Z),Ee=k.hash||"";ne.params=d(_(ne.params));const g=Fv(s,Pe({},k,{hash:Nv(Ee),path:ne.path})),b=r.createHref(g);return Pe({fullPath:g,hash:Ee,query:s===Iu?Qv(k.query):k.query||{}},ne,{redirectedFrom:void 0,href:b})}function $(k){return typeof k=="string"?zo(n,k,u.value.path):Pe({},k)}function D(k,Z){if(h!==k)return Ks(Je.NAVIGATION_CANCELLED,{from:Z,to:k})}function N(k){return W(k)}function R(k){return N(Pe($(k),{replace:!0}))}function J(k,Z){const P=k.matched[k.matched.length-1];if(P&&P.redirect){const{redirect:ne}=P;let Ee=typeof ne=="function"?ne(k,Z):ne;return typeof Ee=="string"&&(Ee=Ee.includes("?")||Ee.includes("#")?Ee=$(Ee):{path:Ee},Ee.params={}),Pe({query:k.query,hash:k.hash,params:Ee.path!=null?{}:k.params},Ee)}}function W(k,Z){const P=h=B(k),ne=u.value,Ee=k.state,g=k.force,b=k.replace===!0,C=J(P,ne);if(C)return W(Pe($(C),{state:typeof C=="object"?Pe({},Ee,C.state):Ee,force:g,replace:b}),Z||P);const M=P;M.redirectedFrom=Z;let j;return!g&&$v(s,ne,P)&&(j=Ks(Je.NAVIGATION_DUPLICATED,{to:M,from:ne}),I(ne,ne,!0,!1)),(j?Promise.resolve(j):re(M,ne)).catch(L=>wn(L)?wn(L,Je.NAVIGATION_GUARD_REDIRECT)?L:kt(L):he(L,M,ne)).then(L=>{if(L){if(wn(L,Je.NAVIGATION_GUARD_REDIRECT))return W(Pe({replace:b},$(L.to),{state:typeof L.to=="object"?Pe({},Ee,L.to.state):Ee,force:g}),Z||M)}else L=K(M,ne,!0,b,Ee);return ce(M,ne,L),L})}function F(k,Z){const P=D(k,Z);return P?Promise.reject(P):Promise.resolve()}function G(k){const Z=bt.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(k):k()}function re(k,Z){let P;const[ne,Ee,g]=ey(k,Z);P=Jo(ne.reverse(),"beforeRouteLeave",k,Z);for(const C of ne)C.leaveGuards.forEach(M=>{P.push(Bn(M,k,Z))});const b=F.bind(null,k,Z);return P.push(b),it(P).then(()=>{P=[];for(const C of o.list())P.push(Bn(C,k,Z));return P.push(b),it(P)}).then(()=>{P=Jo(Ee,"beforeRouteUpdate",k,Z);for(const C of Ee)C.updateGuards.forEach(M=>{P.push(Bn(M,k,Z))});return P.push(b),it(P)}).then(()=>{P=[];for(const C of g)if(C.beforeEnter)if(nn(C.beforeEnter))for(const M of C.beforeEnter)P.push(Bn(M,k,Z));else P.push(Bn(C.beforeEnter,k,Z));return P.push(b),it(P)}).then(()=>(k.matched.forEach(C=>C.enterCallbacks={}),P=Jo(g,"beforeRouteEnter",k,Z,G),P.push(b),it(P))).then(()=>{P=[];for(const C of l.list())P.push(Bn(C,k,Z));return P.push(b),it(P)}).catch(C=>wn(C,Je.NAVIGATION_CANCELLED)?C:Promise.reject(C))}function ce(k,Z,P){c.list().forEach(ne=>G(()=>ne(k,Z,P)))}function K(k,Z,P,ne,Ee){const g=D(k,Z);if(g)return g;const b=Z===Dn,C=Ls?history.state:{};P&&(ne||b?r.replace(k.fullPath,Pe({scroll:b&&C&&C.scroll},Ee)):r.push(k.fullPath,Ee)),u.value=k,I(k,Z,P,b),kt()}let ve;function ke(){ve||(ve=r.listen((k,Z,P)=>{if(!Ze.listening)return;const ne=B(k),Ee=J(ne,Ze.currentRoute.value);if(Ee){W(Pe(Ee,{replace:!0,force:!0}),ne).catch(br);return}h=ne;const g=u.value;Ls&&Kv(ku(g.fullPath,P.delta),Ji()),re(ne,g).catch(b=>wn(b,Je.NAVIGATION_ABORTED|Je.NAVIGATION_CANCELLED)?b:wn(b,Je.NAVIGATION_GUARD_REDIRECT)?(W(Pe($(b.to),{force:!0}),ne).then(C=>{wn(C,Je.NAVIGATION_ABORTED|Je.NAVIGATION_DUPLICATED)&&!P.delta&&P.type===bl.pop&&r.go(-1,!1)}).catch(br),Promise.reject()):(P.delta&&r.go(-P.delta,!1),he(b,ne,g))).then(b=>{b=b||K(ne,g,!1),b&&(P.delta&&!wn(b,Je.NAVIGATION_CANCELLED)?r.go(-P.delta,!1):P.type===bl.pop&&wn(b,Je.NAVIGATION_ABORTED|Je.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),ce(ne,g,b)}).catch(br)}))}let nt=or(),Ae=or(),xe;function he(k,Z,P){kt(k);const ne=Ae.list();return ne.length?ne.forEach(Ee=>Ee(k,Z,P)):console.error(k),Promise.reject(k)}function Ot(){return xe&&u.value!==Dn?Promise.resolve():new Promise((k,Z)=>{nt.add([k,Z])})}function kt(k){return xe||(xe=!k,ke(),nt.list().forEach(([Z,P])=>k?P(k):Z()),nt.reset()),k}function I(k,Z,P,ne){const{scrollBehavior:Ee}=e;if(!Ls||!Ee)return Promise.resolve();const g=!P&&zv(ku(k.fullPath,0))||(ne||!P)&&history.state&&history.state.scroll||null;return Il().then(()=>Ee(k,Z,g)).then(b=>b&&Wv(b)).catch(b=>he(b,k,Z))}const qe=k=>r.go(k);let It;const bt=new Set,Ze={currentRoute:u,listening:!0,addRoute:v,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:O,getRoutes:x,resolve:B,options:e,push:N,replace:R,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:o.add,beforeResolve:l.add,afterEach:c.add,onError:Ae.add,isReady:Ot,install(k){k.component("RouterLink",wy),k.component("RouterView",xy),k.config.globalProperties.$router=Ze,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>lt(u)}),Ls&&!It&&u.value===Dn&&(It=!0,N(r.location).catch(ne=>{}));const Z={};for(const ne in Dn)Object.defineProperty(Z,ne,{get:()=>u.value[ne],enumerable:!0});k.provide(Xi,Ze),k.provide(Kl,_f(Z)),k.provide(yl,u);const P=k.unmount;bt.add(k),k.unmount=function(){bt.delete(k),bt.size<1&&(h=Dn,ve&&ve(),ve=null,u.value=Dn,It=!1,xe=!1),P()}}};function it(k){return k.reduce((Z,P)=>Z.then(()=>G(P)),Promise.resolve())}return Ze}function Gd(){return Qt(Xi)}function Ty(e){return Qt(Kl)}const Oy=4,Ry=5e3,Py=8e3,Vn=gs([]),ms=new Map;let Ny=1;const Jd=e=>{const t=ms.get(e);t&&clearTimeout(t.handle),ms.delete(e)},zl=e=>{Jd(e);const t=Vn.findIndex(n=>n.id===e);t!==-1&&Vn.splice(t,1)},Xd=(e,t)=>{Jd(e),ms.set(e,{handle:setTimeout(()=>zl(e),t),startedAt:Date.now(),remaining:t})},ky=e=>{const t=ms.get(e);t&&(clearTimeout(t.handle),t.remaining=Math.max(0,t.remaining-(Date.now()-t.startedAt)),t.handle=null)},Iy=e=>{const t=ms.get(e);!t||t.handle!==null||Xd(e,t.remaining)},Ly=(e,t="success",n)=>{const s=["success","warning","error","info"].includes(t)?t:"info",r=n??(s==="error"?Py:Ry),o=Ny++;for(Vn.push({id:o,text:String(e??""),type:s,timeout:r});Vn.length>Oy;)zl(Vn[0].id);return r>0&&Xd(o,r),o},Dy=()=>{ms.forEach(e=>clearTimeout(e.handle)),ms.clear(),Vn.splice(0,Vn.length)};function Gl(){return{toasts:Vn,show:Ly,dismiss:zl,pause:ky,resume:Iy,clear:Dy}}const My={class:"toast-stack"},Fy=["role","aria-live","onMouseenter","onMouseleave"],$y={class:"app-toast-text"},jy=["onClick"],By={__name:"ToastContainer",setup(e){const{toasts:t,dismiss:n,pause:s,resume:r,clear:o}=Gl(),l={success:"fa-check-circle",warning:"fa-exclamation-triangle",error:"fa-exclamation-circle",info:"fa-info-circle"};return Dl(o),(c,u)=>(we(),Se("div",My,[We(O_,{name:"toast",tag:"div",class:"toast-stack-list"},{default:En(()=>[(we(!0),Se(Qe,null,sl(lt(t),h=>(we(),Se("div",{key:h.id,class:ft(["app-toast","app-toast-"+h.type]),role:h.type==="error"?"alert":"status","aria-live":h.type==="error"?"assertive":"polite","aria-atomic":"true",onMouseenter:d=>lt(s)(h.id),onMouseleave:d=>lt(r)(h.id)},[E("i",{class:ft(["fas app-toast-icon",l[h.type]]),"aria-hidden":"true"},null,2),E("div",$y,Ge(h.text),1),E("button",{type:"button",class:"app-toast-close","aria-label":"Close notification",onClick:d=>lt(n)(h.id)},[...u[0]||(u[0]=[E("i",{class:"fas fa-times","aria-hidden":"true"},null,-1)])],8,jy),h.timeout>0?(we(),Se("div",{key:0,class:"app-toast-progress",style:Mi({animationDuration:h.timeout+"ms"})},null,4)):Xt("",!0)],42,Fy))),128))]),_:1})]))}},cr=gs({pki_ready:!0,server_ready:!0,missing:[],state:"idle"}),Hy=async()=>{if(!localStorage.getItem("ovpmon_token"))return!1;try{const{profilesApiClient:e}=Fr(),n=(await e.get("/system/init/status")).data||{};return cr.pki_ready=n.pki_ready!==!1,cr.server_ready=n.server_ready!==!1,cr.missing=n.missing||[],cr.state=n.state||"idle",!0}catch{return!1}};function Yd(){return{status:cr,refresh:Hy}}const Uy={key:0,class:"d-flex justify-content-center align-items-center vh-100"},Vy={class:"sidebar-header"},qy={class:"sidebar-menu"},Wy={class:"sidebar-footer"},Ky={class:"main-content"},zy={key:0,class:"top-navbar"},Gy={class:"d-flex align-items-center gap-3"},Jy={class:"navbar-actions"},Xy={class:"header-timezone d-none d-lg-inline-flex"},Yy={class:"user-profile ms-2"},Qy={class:"user-avatar-small bg-primary text-white"},Zy={class:"user-meta d-none d-md-block"},ew={class:"username"},tw={class:"content-wrapper"},nw={__name:"App",setup(e){const{loadConfig:t,isLoaded:n}=Bl(),{apiClient:s}=Fr(),r=He(new Date().toLocaleTimeString("en-us",{timeZoneName:"short"}).split(" ")[2]||"UTC"),o=He(!1),l=He(0),c=He(!1),u=He(!1),h=Ty(),d=Gd(),{status:p,refresh:_}=Yd(),v=Gl(),y=Tt(()=>h.name!=="Login"),x=He(localStorage.getItem("ovpmon_user")||""),O=async()=>{if(!localStorage.getItem("ovpmon_token")){x.value="";return}x.value=localStorage.getItem("ovpmon_user")||"";try{const W=await s.get("/user/me");W.data?.username&&(x.value=W.data.username,localStorage.setItem("ovpmon_user",W.data.username))}catch{}},B=()=>{x.value=localStorage.getItem("ovpmon_user")||""},$=()=>{v.show("Initialize PKI first","info"),h.name!=="PKIConfig"&&d.push("/config/pki")},D=()=>{localStorage.removeItem("ovpmon_token"),localStorage.removeItem("ovpmon_user"),d.push("/login")},N=()=>{o.value=!o.value;const W=o.value?"dark":"light";document.documentElement.setAttribute("data-theme",W),localStorage.setItem("theme",W)},R=()=>{u.value=!u.value,localStorage.setItem("sidebarCompact",u.value)},J=()=>{l.value++};return hr(()=>h.path,()=>{c.value=!1,h.name!=="Login"&&(O(),_())}),Nr(async()=>{await t(),window.addEventListener("ovpmon-user-changed",B),h.name!=="Login"&&(O(),_());const W=localStorage.getItem("theme")||"light";o.value=W==="dark",document.documentElement.setAttribute("data-theme",W);const F=localStorage.getItem("sidebarCompact");u.value=F==="true"}),(W,F)=>{const G=Ic("router-link"),re=Ic("router-view");return we(),Se(Qe,null,[lt(n)?(we(),Se("div",{key:1,class:ft(["app-wrapper",{"mobile-nav-active":c.value,"sidebar-compact":u.value,"no-sidebar":!y.value}])},[c.value&&y.value?(we(),Se("div",{key:0,class:"mobile-overlay",onClick:F[0]||(F[0]=ce=>c.value=!1)})):Xt("",!0),y.value?(we(),Se("aside",{key:1,class:ft(["sidebar",{compact:u.value}])},[E("div",Vy,[F[5]||(F[5]=E("img",{src:V_,alt:"OpenVPN",class:"sidebar-brand-icon"},null,-1)),F[6]||(F[6]=E("span",{class:"brand-text"},"VPN Controller",-1)),E("button",{class:"btn btn-link text-muted d-md-none ms-auto",onClick:F[1]||(F[1]=ce=>c.value=!1)},[...F[4]||(F[4]=[E("i",{class:"fas fa-times"},null,-1)])])]),E("nav",qy,[F[15]||(F[15]=E("div",{class:"nav-section-header"},"MONITORING",-1)),F[16]||(F[16]=E("p",null,null,-1)),We(G,{to:"/",class:"nav-link","active-class":"active",title:"Analytics"},{default:En(()=>[...F[7]||(F[7]=[E("i",{class:"fas fa-chart-line"},null,-1),tt(),E("span",null,"Analytics",-1)])]),_:1}),We(G,{to:"/clients",class:"nav-link","active-class":"active",title:"Clients"},{default:En(()=>[...F[8]||(F[8]=[E("i",{class:"fas fa-network-wired"},null,-1),tt(),E("span",null,"Clients",-1)])]),_:1}),F[17]||(F[17]=E("div",{class:"nav-section-header mt-3"},"CONFIGURATION",-1)),F[18]||(F[18]=E("p",null,null,-1)),We(G,{to:"/config/pki",class:"nav-link","active-class":"active",title:"PKI"},{default:En(()=>[...F[9]||(F[9]=[E("i",{class:"fas fa-fingerprint"},null,-1),tt(),E("span",null,"PKI",-1)])]),_:1}),lt(p).pki_ready?(we(),Hs(G,{key:0,to:"/config/vpn",class:"nav-link","active-class":"active",title:"VPN"},{default:En(()=>[...F[10]||(F[10]=[E("i",{class:"fas fa-server"},null,-1),tt(),E("span",null,"VPN",-1)])]),_:1})):(we(),Se("a",{key:1,href:"/config/pki",class:"nav-link nav-link-locked",title:"Initialize PKI first",onClick:fl($,["prevent"])},[...F[11]||(F[11]=[E("i",{class:"fas fa-lock"},null,-1),tt(),E("span",null,"VPN",-1)])])),F[19]||(F[19]=E("div",{class:"nav-section-header mt-3"},"MANAGEMENT",-1)),F[20]||(F[20]=E("p",null,null,-1)),We(G,{to:"/certificates",class:"nav-link","active-class":"active",title:"Certificates"},{default:En(()=>[...F[12]||(F[12]=[E("i",{class:"fas fa-certificate"},null,-1),tt(),E("span",null,"Certificates",-1)])]),_:1}),We(G,{to:"/server",class:"nav-link","active-class":"active",title:"Server Process"},{default:En(()=>[...F[13]||(F[13]=[E("i",{class:"fas fa-terminal"},null,-1),tt(),E("span",null,"Server Process",-1)])]),_:1}),F[21]||(F[21]=E("div",{class:"nav-section-header mt-3"},"ACCOUNT",-1)),F[22]||(F[22]=E("p",null,null,-1)),We(G,{to:"/account",class:"nav-link","active-class":"active",title:"Account Settings"},{default:En(()=>[...F[14]||(F[14]=[E("i",{class:"fas fa-user-cog"},null,-1),tt(),E("span",null,"Account Settings",-1)])]),_:1}),F[23]||(F[23]=E("div",{class:"mt-auto"},null,-1))]),E("div",Wy,[E("button",{class:"btn btn-link toggle-btn d-none d-md-block w-100",onClick:R,title:"Toggle Sidebar"},[E("i",{class:ft(["fas",u.value?"fa-chevron-right":"fa-chevron-left"])},null,2)])])],2)):Xt("",!0),E("main",Ky,[y.value?(we(),Se("header",zy,[E("div",Gy,[E("button",{class:"btn-header d-md-none",onClick:F[2]||(F[2]=ce=>c.value=!c.value)},[...F[24]||(F[24]=[E("i",{class:"fas fa-bars"},null,-1)])]),F[25]||(F[25]=E("div",{class:"page-title"},null,-1))]),E("div",Jy,[E("span",Xy,[F[26]||(F[26]=E("i",{class:"fas fa-globe me-1 text-muted"},null,-1)),tt(Ge(r.value),1)]),E("button",{class:"btn-header",onClick:N,title:"Toggle Theme"},[E("i",{class:ft(["fas",o.value?"fa-sun":"fa-moon"]),id:"themeIcon"},null,2)]),E("button",{class:"btn-header me-2",onClick:J,title:"Refresh"},[...F[27]||(F[27]=[E("i",{class:"fas fa-sync-alt",id:"refreshIcon"},null,-1)])]),F[29]||(F[29]=E("div",{class:"header-divider d-none d-md-block"},null,-1)),E("div",Yy,[E("div",Qy,Ge(x.value[0]?.toUpperCase()||"U"),1),E("div",Zy,[E("span",ew,Ge(x.value),1)])]),E("button",{class:"btn-header btn-logout ms-2",onClick:D,title:"Logout"},[...F[28]||(F[28]=[E("i",{class:"fas fa-sign-out-alt"},null,-1)])])])])):Xt("",!0),E("div",tw,[(we(),Hs(re,{key:W.$route.fullPath+"-"+l.value}))])])],2)):(we(),Se("div",Uy,[...F[3]||(F[3]=[E("div",{class:"spinner-border text-primary",role:"status"},[E("span",{class:"visually-hidden"},"Loading...")],-1)])])),We(By)],64)}}},sw="modulepreload",rw=function(e){return"/"+e},Wu={},Ns=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let u=function(h){return Promise.all(h.map(d=>Promise.resolve(d).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");r=u(n.map(h=>{if(h=rw(h),h in Wu)return;Wu[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const _=document.createElement("link");if(_.rel=d?"stylesheet":sw,d||(_.as="script"),_.crossOrigin="",_.href=h,c&&_.setAttribute("nonce",c),document.head.appendChild(_),d)return new Promise((v,y)=>{_.addEventListener("load",v),_.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return r.then(l=>{for(const c of l||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})};function Qd(){function e(s,r=2){if(s===0)return"0 B";const o=1024,l=r<0?0:r,c=["B","KB","MB","GB","TB"],u=Math.floor(Math.log(s)/Math.log(o));return parseFloat((s/Math.pow(o,u)).toFixed(l))+" "+c[u]}function t(s){return parseFloat(s).toFixed(3)+" Mbps"}function n(s){if(!s)return null;if(s.endsWith("Z"))return new Date(s);const[r,o]=s.split(" ");if(!r||!o){let _=s.replace(" ","T");return!_.endsWith("Z")&&!_.includes("+")&&(_+="Z"),new Date(_)}const[l,c,u]=r.split("-").map(Number),[h,d,p]=o.split(":").map(Number);return new Date(Date.UTC(l,c-1,u,h,d,p!==void 0?p:0))}return{formatBytes:e,formatRate:t,parseServerDate:n}}zu.register(...om);const iw={class:"modal-dialog modal-xl modal-dialog-centered"},ow={class:"modal-content"},lw={class:"modal-header"},aw={class:"modal-title"},cw={class:"modal-body"},uw={class:"chart-controls"},fw={class:"d-flex align-items-center gap-2"},dw={class:"d-flex align-items-center gap-3 bg-white-custom px-3 py-1 border rounded"},hw={class:"d-flex align-items-center"},pw={class:"toggle-wrapper me-2"},mw={class:"toggle-switch"},gw={class:"text-main user-select-none",style:{cursor:"pointer"},for:"vizToggle"},_w={class:"modal-chart-container"},bw={key:0,class:"position-absolute top-50 start-50 translate-middle"},vw=48,yw={__name:"HistoryModal",props:["modelValue"],setup(e,{expose:t}){const{fetchClientHistory:n}=Fr(),{parseServerDate:s}=Qd(),r=He(null),o=He(null),l=He(""),c=He("24h"),u=He(!1),h=He(!1);let d=null,p=null,_=null;const v=$=>{l.value=$,c.value="24h",u.value=!1,d?.show(),x()},y=()=>{d?.hide()},x=async()=>{if(l.value){h.value=!0;try{const $=await n(l.value,c.value);$.success&&$.data.history?(_=$.data.history,O()):(_=[],p&&p.destroy())}catch($){console.error($)}finally{h.value=!1}}},O=()=>{if(!o.value||!_)return;p&&p.destroy();const $=o.value.getContext("2d"),D=B(_,vw),N=[],R=[],J=[];D.forEach(re=>{const ce=s(re.timestamp);let K="";c.value.includes("h")||c.value==="1d"?K=ce.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):K=ce.toLocaleDateString([],{month:"short",day:"numeric"})+" "+ce.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),N.push(K),u.value?(R.push(re.bytes_received_rate_mbps),J.push(re.bytes_sent_rate_mbps)):(R.push(re.bytes_received/(1024*1024)),J.push(re.bytes_sent/(1024*1024)))});const W=document.documentElement.getAttribute("data-theme")==="dark",F=W?"rgba(240, 246, 252, 0.1)":"rgba(0,0,0,0.05)",G=W?"#8b949e":"#6c757d";p=new zu($,{type:"line",data:{labels:N,datasets:[{label:u.value?"RX Mbps":"Received (MB)",data:R,borderColor:"#1652B8",backgroundColor:"rgba(22, 82, 184, 0.15)",borderWidth:2,fill:!0,tension:.3,pointRadius:3,pointHoverRadius:4},{label:u.value?"TX Mbps":"Sent (MB)",data:J,borderColor:"#EC7C31",backgroundColor:"rgba(236, 124, 49, 0.15)",borderWidth:2,fill:!0,tension:.3,pointRadius:3,pointHoverRadius:4}]},options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{labels:{color:G}}},scales:{x:{ticks:{color:G,maxTicksLimit:8},grid:{color:F}},y:{beginAtZero:!0,ticks:{color:G},grid:{color:F}}}}})},B=($,D)=>{if(!$||$.length===0)return[];if($.length<=D)return $;const N=Math.ceil($.length/D),R=[];for(let J=0;J<$.length;J+=N){const W=$.slice(J,J+N);if(W.length===0)continue;let F=0,G=0,re=0,ce=0;W.forEach(K=>{F+=K.bytes_received||0,G+=K.bytes_sent||0,re=Math.max(re,K.bytes_received_rate_mbps||0),ce=Math.max(ce,K.bytes_sent_rate_mbps||0)}),R.push({timestamp:W[0].timestamp,bytes_received:F,bytes_sent:G,bytes_received_rate_mbps:re,bytes_sent_rate_mbps:ce})}return R};return Nr(()=>{d=new lm(r.value),r.value.addEventListener("hidden.bs.modal",()=>{p&&(p.destroy(),p=null)})}),Bi(()=>{p&&p.destroy()}),t({open:v,close:y}),($,D)=>(we(),Hs(ng,{to:"body"},[E("div",{class:"modal fade",id:"historyModal",tabindex:"-1","aria-hidden":"true",ref_key:"modalRef",ref:r},[E("div",iw,[E("div",ow,[E("div",lw,[E("h5",aw,[D[2]||(D[2]=E("i",{class:"fas fa-chart-area me-2 text-primary"},null,-1)),E("span",null,Ge(l.value),1)]),D[3]||(D[3]=E("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1))]),E("div",cw,[E("div",uw,[E("div",fw,[D[5]||(D[5]=E("label",{class:"text-muted"},[E("i",{class:"far fa-clock me-1"}),tt(" Range:")],-1)),fs(E("select",{"onUpdate:modelValue":D[0]||(D[0]=N=>c.value=N),class:"form-select form-select-sm",style:{width:"auto","min-width":"200px"},onChange:x},[...D[4]||(D[4]=[E("option",{value:"1h"},"Last 1 Hour (30s agg)",-1),E("option",{value:"3h"},"Last 3 Hours (1m agg)",-1),E("option",{value:"24h"},"Last 24 Hours (15m agg)",-1),E("option",{value:"7d"},"Last 7 Days (1h agg)",-1),E("option",{value:"30d"},"Last 30 Days (6h agg)",-1)])],544),[[L_,c.value]])]),E("div",dw,[D[7]||(D[7]=E("span",{class:"small fw-bold text-muted"},"Metric:",-1)),E("div",hw,[E("div",pw,[E("label",mw,[fs(E("input",{type:"checkbox",id:"vizToggle","onUpdate:modelValue":D[1]||(D[1]=N=>u.value=N),onChange:O},null,544),[[cd,u.value]]),D[6]||(D[6]=E("span",{class:"toggle-slider"},null,-1))])]),E("label",gw,Ge(u.value?"Speed (Mbps)":"Data Volume"),1)])])]),E("div",_w,[E("canvas",{ref_key:"chartCanvas",ref:o},null,512),h.value?(we(),Se("div",bw,[...D[8]||(D[8]=[E("div",{class:"spinner-border text-primary",role:"status"},null,-1)])])):Xt("",!0)])])])])],512)]))}},ww={class:"stats-info mb-4"},Ew={class:"stat-item"},Aw={class:"stat-value"},Cw={class:"stat-item"},xw={class:"stat-value"},Sw={class:"stat-item"},Tw={class:"stat-value"},Ow={class:"d-flex justify-content-between align-items-center mb-3 flex-wrap gap-3"},Rw={class:"d-flex gap-3 align-items-center flex-wrap"},Pw={class:"sort-btn-group"},Nw={class:"input-group input-group-sm",style:{width:"250px"}},kw={class:"d-flex align-items-center"},Iw={class:"toggle-wrapper me-2"},Lw={class:"toggle-switch"},Dw={class:"card"},Mw={class:"card-header d-flex justify-content-between align-items-center"},Fw={class:"text-muted"},$w={class:"table-responsive"},jw={class:"table table-hover mb-0"},Bw={key:0,class:"fas fa-sort-down ms-1"},Hw={key:0,class:"fas fa-sort-down ms-1"},Uw={key:0},Vw={key:1},qw={class:"section-divider"},Ww={colspan:"8"},Kw=["onClick"],zw={class:"small text-muted"},Gw={class:"font-monospace small"},Jw={class:"font-monospace small"},Xw={class:"font-monospace small"},Yw={key:1,class:"text-muted opacity-25"},Qw={class:"font-monospace small"},Zw={key:1,class:"text-muted opacity-25"},e0={class:"small text-muted"},t0={__name:"Clients",setup(e){const{fetchStats:t}=Fr(),{formatBytes:n,formatRate:s,parseServerDate:r}=Qd(),{config:o}=Bl(),l=He([]),c=He(!0),u=He("Updating..."),h=He(""),d=He(!1),p=He("sent"),_=He(null);let v=null;const y=Tt(()=>{let N=0,R=0,J=0;return l.value.forEach(W=>{N+=W.total_bytes_received||0,R+=W.total_bytes_sent||0,W.status==="Active"&&J++}),{totalReceived:N,totalSent:R,activeClients:J}}),x=Tt(()=>l.value.filter(N=>!(d.value&&N.status!=="Active"||h.value&&!N.common_name.toLowerCase().includes(h.value.toLowerCase().trim()))).sort((N,R)=>{if(N.status==="Active"&&R.status!=="Active")return-1;if(N.status!=="Active"&&R.status==="Active")return 1;const J=p.value==="received"?N.total_bytes_received:N.total_bytes_sent;return(p.value==="received"?R.total_bytes_received:R.total_bytes_sent)-J})),O=Tt(()=>{const N=[];let R=null,J=null;return x.value.forEach(W=>{W.status!==R&&(R=W.status,J={status:W.status,items:[]},N.push(J)),J.items.push(W)}),N}),B=async()=>{try{const N=await t();N.success&&(l.value=N.data,u.value=new Date().toLocaleTimeString())}catch(N){console.error(N)}finally{c.value=!1}},$=N=>{if(!N||N==="N/A")return"N/A";const R=r(N);return isNaN(R)?N:R.toLocaleString()},D=N=>{_.value.open(N)};return Nr(()=>{B();const N=o.value?.refresh_interval||3e4;v=setInterval(B,N)}),Bi(()=>{v&&clearInterval(v)}),(N,R)=>(we(),Se(Qe,null,[E("div",ww,[E("div",Ew,[E("div",Aw,Ge(lt(n)(y.value.totalReceived)),1),R[6]||(R[6]=E("div",{class:"stat-label"},"Total Received",-1))]),E("div",Cw,[E("div",xw,Ge(lt(n)(y.value.totalSent)),1),R[7]||(R[7]=E("div",{class:"stat-label"},"Total Sent",-1))]),E("div",Sw,[E("div",Tw,Ge(y.value.activeClients),1),R[8]||(R[8]=E("div",{class:"stat-label"},"Active Clients",-1))])]),E("div",Ow,[E("div",Rw,[E("div",Pw,[E("button",{class:ft(["sort-btn",{active:p.value==="received"}]),onClick:R[0]||(R[0]=J=>p.value="received")},"Received",2),E("button",{class:ft(["sort-btn",{active:p.value==="sent"}]),onClick:R[1]||(R[1]=J=>p.value="sent")},"Sent",2)]),E("div",Nw,[R[9]||(R[9]=E("span",{class:"input-group-text"},[E("i",{class:"fas fa-search"})],-1)),fs(E("input",{type:"text",class:"form-control",placeholder:"Search client...","onUpdate:modelValue":R[2]||(R[2]=J=>h.value=J)},null,512),[[_i,h.value]])])]),E("div",kw,[E("div",Iw,[E("label",Lw,[fs(E("input",{type:"checkbox",id:"hideDisconnected","onUpdate:modelValue":R[3]||(R[3]=J=>d.value=J)},null,512),[[cd,d.value]]),R[10]||(R[10]=E("span",{class:"toggle-slider"},null,-1))])]),R[11]||(R[11]=E("label",{class:"user-select-none text-muted",for:"hideDisconnected",style:{cursor:"pointer"}},"Hide Disconnected",-1))])]),E("div",Dw,[E("div",Mw,[R[12]||(R[12]=E("span",null,[E("i",{class:"fas fa-network-wired me-2"}),tt("Clients List")],-1)),E("small",Fw,"Updated: "+Ge(u.value),1)]),E("div",$w,[E("table",jw,[E("thead",null,[E("tr",null,[R[15]||(R[15]=E("th",null,"Client Name",-1)),R[16]||(R[16]=E("th",null,"Real Address",-1)),R[17]||(R[17]=E("th",null,"Status",-1)),E("th",{onClick:R[4]||(R[4]=J=>p.value="received"),class:ft(["cursor-pointer",{"active-sort":p.value==="received"}])},[R[13]||(R[13]=tt(" Received ",-1)),p.value==="received"?(we(),Se("i",Bw)):Xt("",!0)],2),E("th",{onClick:R[5]||(R[5]=J=>p.value="sent"),class:ft(["cursor-pointer",{"active-sort":p.value==="sent"}])},[R[14]||(R[14]=tt(" Sent ",-1)),p.value==="sent"?(we(),Se("i",Hw)):Xt("",!0)],2),R[18]||(R[18]=E("th",null,"Down Speed",-1)),R[19]||(R[19]=E("th",null,"Up Speed",-1)),R[20]||(R[20]=E("th",null,"Last Activity",-1))])]),E("tbody",null,[c.value&&l.value.length===0?(we(),Se("tr",Uw,[...R[21]||(R[21]=[E("td",{colspan:"8",class:"text-center py-4 text-muted"},"Loading...",-1)])])):x.value.length===0?(we(),Se("tr",Vw,[...R[22]||(R[22]=[E("td",{colspan:"8",class:"text-center py-4 text-muted"},"No clients match your filter",-1)])])):(we(!0),Se(Qe,{key:2},sl(O.value,(J,W)=>(we(),Se(Qe,{key:W},[E("tr",qw,[E("td",Ww,[E("i",{class:ft(["fas me-2 small",J.status==="Active"?"fa-circle text-success":"fa-circle text-danger"])},null,2),tt(" "+Ge(J.status)+" Clients ",1)])]),(we(!0),Se(Qe,null,sl(J.items,F=>(we(),Se("tr",{key:F.common_name},[E("td",null,[E("a",{onClick:G=>D(F.common_name),class:"client-link"},[tt(Ge(F.common_name)+" ",1),R[23]||(R[23]=E("i",{class:"fas fa-chart-area ms-1 small opacity-50"},null,-1))],8,Kw)]),E("td",zw,Ge(F.real_address||"-"),1),E("td",null,[E("span",{class:ft(["status-badge",F.status==="Active"?"status-active":"status-disconnected"])},Ge(F.status),3)]),E("td",Gw,Ge(lt(n)(F.total_bytes_received)),1),E("td",Jw,Ge(lt(n)(F.total_bytes_sent)),1),E("td",Xw,[F.status==="Active"?(we(),Se("span",{key:0,class:ft(F.current_recv_rate_mbps>.01?"text-success fw-bold":"text-muted opacity-75")},Ge(F.current_recv_rate_mbps?lt(s)(F.current_recv_rate_mbps):"0.000 Mbps"),3)):(we(),Se("span",Yw,"-"))]),E("td",Qw,[F.status==="Active"?(we(),Se("span",{key:0,class:ft(F.current_sent_rate_mbps>.01?"text-warning fw-bold":"text-muted opacity-75")},Ge(F.current_sent_rate_mbps?lt(s)(F.current_sent_rate_mbps):"0.000 Mbps"),3)):(we(),Se("span",Zw,"-"))]),E("td",e0,Ge($(F.last_activity)),1)]))),128))],64))),128))])])])]),We(yw,{ref_key:"historyModal",ref:_},null,512)],64))}},n0={class:"login-page"},s0={class:"login-card"},r0={class:"login-body"},i0={class:"mb-4"},o0={class:"input-group"},l0={class:"mb-4"},a0={class:"input-group"},c0={key:0,class:"alert alert-danger fade show mb-4"},u0=["disabled"],f0={key:0,class:"spinner-border spinner-border-sm me-2"},d0={class:"mb-4"},h0={key:0,class:"alert alert-danger fade show mb-4"},p0=["disabled"],m0={key:0,class:"spinner-border spinner-border-sm me-2"},g0={__name:"Login",setup(e){const t=Gd(),{apiClient:n}=Fr(),s=He(!1),r=He(""),o=He(!1),l=He(""),c=He(""),u=gs({username:"",password:""}),h=async()=>{s.value=!0,r.value="";try{const _=await n.post("../auth/login",u);_.data.requires_2fa?(o.value=!0,l.value=_.data.temp_token):(localStorage.setItem("ovpmon_token",_.data.token),localStorage.setItem("ovpmon_user",_.data.username),t.push("/"))}catch(_){console.error("Login Error:",_),r.value=_.response?.data?.error||"Login failed. Please check your connection."}finally{s.value=!1}},d=async()=>{s.value=!0,r.value="";try{const _=await n.post("../auth/verify-2fa",{temp_token:l.value,otp:c.value});localStorage.setItem("ovpmon_token",_.data.token),localStorage.setItem("ovpmon_user",_.data.username),t.push("/")}catch(_){r.value=_.response?.data?.error||"Verification failed."}finally{s.value=!1}},p=()=>{o.value=!1,l.value="",c.value="",r.value=""};return(_,v)=>(we(),Se("div",n0,[E("div",s0,[v[12]||(v[12]=E("div",{class:"login-header"},[E("div",{class:"brand-logo"},[E("i",{class:"fas fa-shield-alt"})]),E("h1",null,"OpenVPN Monitor"),E("p",{class:"text-muted"},"Secure Access Control")],-1)),E("div",r0,[o.value?(we(),Se("form",{key:1,onSubmit:fl(d,["prevent"])},[v[11]||(v[11]=E("div",{class:"text-center mb-4"},[E("i",{class:"fas fa-key fa-3x text-warning mb-3"}),E("h3",null,"Two-Factor Authentication"),E("p",{class:"text-muted"},"Enter the 6-digit code from your authenticator app.")],-1)),E("div",d0,[fs(E("input",{type:"text",class:"form-control form-control-lg text-center fw-bold","onUpdate:modelValue":v[2]||(v[2]=y=>c.value=y),placeholder:"000 000",maxlength:"6",required:"",autofocus:""},null,512),[[_i,c.value]])]),r.value?(we(),Se("div",h0,[v[9]||(v[9]=E("i",{class:"fas fa-exclamation-circle me-2"},null,-1)),tt(Ge(r.value),1)])):Xt("",!0),E("button",{type:"submit",class:"btn btn-warning w-100 py-2 fw-bold",disabled:s.value},[s.value?(we(),Se("span",m0)):Xt("",!0),v[10]||(v[10]=tt(" Verify & Continue ",-1))],8,p0),E("button",{type:"button",class:"btn btn-link w-100 mt-2 text-muted",onClick:p}," Back to login ")],32)):(we(),Se("form",{key:0,onSubmit:fl(h,["prevent"])},[E("div",i0,[v[4]||(v[4]=E("label",{class:"form-label"},"Username",-1)),E("div",o0,[v[3]||(v[3]=E("span",{class:"input-group-text"},[E("i",{class:"fas fa-user"})],-1)),fs(E("input",{type:"text",class:"form-control","onUpdate:modelValue":v[0]||(v[0]=y=>u.username=y),placeholder:"Enter username",required:""},null,512),[[_i,u.username]])])]),E("div",l0,[v[6]||(v[6]=E("label",{class:"form-label"},"Password",-1)),E("div",a0,[v[5]||(v[5]=E("span",{class:"input-group-text"},[E("i",{class:"fas fa-lock"})],-1)),fs(E("input",{type:"password",class:"form-control","onUpdate:modelValue":v[1]||(v[1]=y=>u.password=y),placeholder:"Enter password",required:""},null,512),[[_i,u.password]])])]),r.value?(we(),Se("div",c0,[v[7]||(v[7]=E("i",{class:"fas fa-exclamation-circle me-2"},null,-1)),tt(Ge(r.value),1)])):Xt("",!0),E("button",{type:"submit",class:"btn btn-primary w-100 py-2 fw-bold",disabled:s.value},[s.value?(we(),Se("span",f0)):Xt("",!0),v[8]||(v[8]=tt(" Sign In ",-1))],8,u0)],32))]),v[13]||(v[13]=E("div",{class:"login-footer text-center mt-4"},[E("p",{class:"small text-muted"},"© 2026 Admin Dashboard")],-1))])]))}},_0=[{path:"/",name:"Analytics",component:()=>Ns(()=>import("./Analytics-CE9OWhfn.js"),__vite__mapDeps([0,1,2]))},{path:"/clients",name:"Clients",component:t0},{path:"/certificates",name:"Certificates",component:()=>Ns(()=>import("./Certificates-DL4-OpRZ.js"),__vite__mapDeps([3,4,2,1]))},{path:"/config/pki",name:"PKIConfig",component:()=>Ns(()=>import("./PKIConfig-CJEinDsL.js"),__vite__mapDeps([5,1,2]))},{path:"/config/vpn",name:"VPNConfig",component:()=>Ns(()=>import("./VPNConfig-cSWblOqw.js"),__vite__mapDeps([6,1,2])),meta:{requiresPki:!0}},{path:"/server",name:"ServerManagement",component:()=>Ns(()=>import("./ServerManagement-DWxVTYxH.js"),__vite__mapDeps([7,1,2]))},{path:"/account",name:"Account",component:()=>Ns(()=>import("./Account-B9jhwMBa.js"),__vite__mapDeps([8,2,4,1]))},{path:"/login",name:"Login",component:g0,meta:{public:!0}}],Zd=Sy({history:ry(),routes:_0});Zd.beforeEach(async(e,t,n)=>{const s=!!localStorage.getItem("ovpmon_token");if(!e.meta.public&&!s)n({name:"Login"});else if(e.name==="Login"&&s)n({name:"Analytics"});else if(e.meta.requiresPki){const{status:r,refresh:o}=Yd();await o()&&!r.pki_ready?(Gl().show("Initialize PKI before configuring the server","warning"),n({name:"PKIConfig"})):n()}else n()});var wi={exports:{}};var b0=wi.exports,Ku;function v0(){return Ku||(Ku=1,(function(e,t){(function(n,s){e.exports=s()})(b0,function(){const n=new Map,s={set(f,i,a){n.has(f)||n.set(f,new Map);const m=n.get(f);m.has(i)||m.size===0?m.set(i,a):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(m.keys())[0]}.`)},get:(f,i)=>n.has(f)&&n.get(f).get(i)||null,remove(f,i){if(!n.has(f))return;const a=n.get(f);a.delete(i),a.size===0&&n.delete(f)}},r="transitionend",o=f=>(f&&window.CSS&&window.CSS.escape&&(f=f.replace(/#([^\s"#']+)/g,(i,a)=>`#${CSS.escape(a)}`)),f),l=f=>f==null?`${f}`:Object.prototype.toString.call(f).match(/\s([a-z]+)/i)[1].toLowerCase(),c=f=>{f.dispatchEvent(new Event(r))},u=f=>!(!f||typeof f!="object")&&(f.jquery!==void 0&&(f=f[0]),f.nodeType!==void 0),h=f=>u(f)?f.jquery?f[0]:f:typeof f=="string"&&f.length>0?document.querySelector(o(f)):null,d=f=>{if(!u(f)||f.getClientRects().length===0)return!1;const i=getComputedStyle(f).getPropertyValue("visibility")==="visible",a=f.closest("details:not([open])");if(!a)return i;if(a!==f){const m=f.closest("summary");if(m&&m.parentNode!==a||m===null)return!1}return i},p=f=>!f||f.nodeType!==Node.ELEMENT_NODE||!!f.classList.contains("disabled")||(f.disabled!==void 0?f.disabled:f.hasAttribute("disabled")&&f.getAttribute("disabled")!=="false"),_=f=>{if(!document.documentElement.attachShadow)return null;if(typeof f.getRootNode=="function"){const i=f.getRootNode();return i instanceof ShadowRoot?i:null}return f instanceof ShadowRoot?f:f.parentNode?_(f.parentNode):null},v=()=>{},y=f=>{f.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,O=[],B=()=>document.documentElement.dir==="rtl",$=f=>{var i;i=()=>{const a=x();if(a){const m=f.NAME,w=a.fn[m];a.fn[m]=f.jQueryInterface,a.fn[m].Constructor=f,a.fn[m].noConflict=()=>(a.fn[m]=w,f.jQueryInterface)}},document.readyState==="loading"?(O.length||document.addEventListener("DOMContentLoaded",()=>{for(const a of O)a()}),O.push(i)):i()},D=(f,i=[],a=f)=>typeof f=="function"?f.call(...i):a,N=(f,i,a=!0)=>{if(!a)return void D(f);const m=(T=>{if(!T)return 0;let{transitionDuration:H,transitionDelay:q}=window.getComputedStyle(T);const ee=Number.parseFloat(H),te=Number.parseFloat(q);return ee||te?(H=H.split(",")[0],q=q.split(",")[0],1e3*(Number.parseFloat(H)+Number.parseFloat(q))):0})(i)+5;let w=!1;const A=({target:T})=>{T===i&&(w=!0,i.removeEventListener(r,A),D(f))};i.addEventListener(r,A),setTimeout(()=>{w||c(i)},m)},R=(f,i,a,m)=>{const w=f.length;let A=f.indexOf(i);return A===-1?!a&&m?f[w-1]:f[0]:(A+=a?1:-1,m&&(A=(A+w)%w),f[Math.max(0,Math.min(A,w-1))])},J=/[^.]*(?=\..*)\.|.*/,W=/\..*/,F=/::\d+$/,G={};let re=1;const ce={mouseenter:"mouseover",mouseleave:"mouseout"},K=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ve(f,i){return i&&`${i}::${re++}`||f.uidEvent||re++}function ke(f){const i=ve(f);return f.uidEvent=i,G[i]=G[i]||{},G[i]}function nt(f,i,a=null){return Object.values(f).find(m=>m.callable===i&&m.delegationSelector===a)}function Ae(f,i,a){const m=typeof i=="string",w=m?a:i||a;let A=kt(f);return K.has(A)||(A=f),[m,w,A]}function xe(f,i,a,m,w){if(typeof i!="string"||!f)return;let[A,T,H]=Ae(i,a,m);i in ce&&(T=(fe=>function(ue){if(!ue.relatedTarget||ue.relatedTarget!==ue.delegateTarget&&!ue.delegateTarget.contains(ue.relatedTarget))return fe.call(this,ue)})(T));const q=ke(f),ee=q[H]||(q[H]={}),te=nt(ee,T,A?a:null);if(te)return void(te.oneOff=te.oneOff&&w);const Y=ve(T,i.replace(J,"")),_e=A?(function(ae,fe,ue){return function de(Me){const Ue=ae.querySelectorAll(fe);for(let{target:ye}=Me;ye&&ye!==this;ye=ye.parentNode)for(const Oe of Ue)if(Oe===ye)return qe(Me,{delegateTarget:ye}),de.oneOff&&I.off(ae,Me.type,fe,ue),ue.apply(ye,[Me])}})(f,a,T):(function(ae,fe){return function ue(de){return qe(de,{delegateTarget:ae}),ue.oneOff&&I.off(ae,de.type,fe),fe.apply(ae,[de])}})(f,T);_e.delegationSelector=A?a:null,_e.callable=T,_e.oneOff=w,_e.uidEvent=Y,ee[Y]=_e,f.addEventListener(H,_e,A)}function he(f,i,a,m,w){const A=nt(i[a],m,w);A&&(f.removeEventListener(a,A,!!w),delete i[a][A.uidEvent])}function Ot(f,i,a,m){const w=i[a]||{};for(const[A,T]of Object.entries(w))A.includes(m)&&he(f,i,a,T.callable,T.delegationSelector)}function kt(f){return f=f.replace(W,""),ce[f]||f}const I={on(f,i,a,m){xe(f,i,a,m,!1)},one(f,i,a,m){xe(f,i,a,m,!0)},off(f,i,a,m){if(typeof i!="string"||!f)return;const[w,A,T]=Ae(i,a,m),H=T!==i,q=ke(f),ee=q[T]||{},te=i.startsWith(".");if(A===void 0){if(te)for(const Y of Object.keys(q))Ot(f,q,Y,i.slice(1));for(const[Y,_e]of Object.entries(ee)){const ae=Y.replace(F,"");H&&!i.includes(ae)||he(f,q,T,_e.callable,_e.delegationSelector)}}else{if(!Object.keys(ee).length)return;he(f,q,T,A,w?a:null)}},trigger(f,i,a){if(typeof i!="string"||!f)return null;const m=x();let w=null,A=!0,T=!0,H=!1;i!==kt(i)&&m&&(w=m.Event(i,a),m(f).trigger(w),A=!w.isPropagationStopped(),T=!w.isImmediatePropagationStopped(),H=w.isDefaultPrevented());const q=qe(new Event(i,{bubbles:A,cancelable:!0}),a);return H&&q.preventDefault(),T&&f.dispatchEvent(q),q.defaultPrevented&&w&&w.preventDefault(),q}};function qe(f,i={}){for(const[a,m]of Object.entries(i))try{f[a]=m}catch{Object.defineProperty(f,a,{configurable:!0,get:()=>m})}return f}function It(f){if(f==="true")return!0;if(f==="false")return!1;if(f===Number(f).toString())return Number(f);if(f===""||f==="null")return null;if(typeof f!="string")return f;try{return JSON.parse(decodeURIComponent(f))}catch{return f}}function bt(f){return f.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}const Ze={setDataAttribute(f,i,a){f.setAttribute(`data-bs-${bt(i)}`,a)},removeDataAttribute(f,i){f.removeAttribute(`data-bs-${bt(i)}`)},getDataAttributes(f){if(!f)return{};const i={},a=Object.keys(f.dataset).filter(m=>m.startsWith("bs")&&!m.startsWith("bsConfig"));for(const m of a){let w=m.replace(/^bs/,"");w=w.charAt(0).toLowerCase()+w.slice(1),i[w]=It(f.dataset[m])}return i},getDataAttribute:(f,i)=>It(f.getAttribute(`data-bs-${bt(i)}`))};class it{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(i){return i=this._mergeConfigObj(i),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}_configAfterMerge(i){return i}_mergeConfigObj(i,a){const m=u(a)?Ze.getDataAttribute(a,"config"):{};return{...this.constructor.Default,...typeof m=="object"?m:{},...u(a)?Ze.getDataAttributes(a):{},...typeof i=="object"?i:{}}}_typeCheckConfig(i,a=this.constructor.DefaultType){for(const[m,w]of Object.entries(a)){const A=i[m],T=u(A)?"element":l(A);if(!new RegExp(w).test(T))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${m}" provided type "${T}" but expected type "${w}".`)}}}class k extends it{constructor(i,a){super(),(i=h(i))&&(this._element=i,this._config=this._getConfig(a),s.set(this._element,this.constructor.DATA_KEY,this))}dispose(){s.remove(this._element,this.constructor.DATA_KEY),I.off(this._element,this.constructor.EVENT_KEY);for(const i of Object.getOwnPropertyNames(this))this[i]=null}_queueCallback(i,a,m=!0){N(i,a,m)}_getConfig(i){return i=this._mergeConfigObj(i,this._element),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}static getInstance(i){return s.get(h(i),this.DATA_KEY)}static getOrCreateInstance(i,a={}){return this.getInstance(i)||new this(i,typeof a=="object"?a:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(i){return`${i}${this.EVENT_KEY}`}}const Z=f=>{let i=f.getAttribute("data-bs-target");if(!i||i==="#"){let a=f.getAttribute("href");if(!a||!a.includes("#")&&!a.startsWith("."))return null;a.includes("#")&&!a.startsWith("#")&&(a=`#${a.split("#")[1]}`),i=a&&a!=="#"?a.trim():null}return i?i.split(",").map(a=>o(a)).join(","):null},P={find:(f,i=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(i,f)),findOne:(f,i=document.documentElement)=>Element.prototype.querySelector.call(i,f),children:(f,i)=>[].concat(...f.children).filter(a=>a.matches(i)),parents(f,i){const a=[];let m=f.parentNode.closest(i);for(;m;)a.push(m),m=m.parentNode.closest(i);return a},prev(f,i){let a=f.previousElementSibling;for(;a;){if(a.matches(i))return[a];a=a.previousElementSibling}return[]},next(f,i){let a=f.nextElementSibling;for(;a;){if(a.matches(i))return[a];a=a.nextElementSibling}return[]},focusableChildren(f){const i=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(a=>`${a}:not([tabindex^="-"])`).join(",");return this.find(i,f).filter(a=>!p(a)&&d(a))},getSelectorFromElement(f){const i=Z(f);return i&&P.findOne(i)?i:null},getElementFromSelector(f){const i=Z(f);return i?P.findOne(i):null},getMultipleElementsFromSelector(f){const i=Z(f);return i?P.find(i):[]}},ne=(f,i="hide")=>{const a=`click.dismiss${f.EVENT_KEY}`,m=f.NAME;I.on(document,a,`[data-bs-dismiss="${m}"]`,function(w){if(["A","AREA"].includes(this.tagName)&&w.preventDefault(),p(this))return;const A=P.getElementFromSelector(this)||this.closest(`.${m}`);f.getOrCreateInstance(A)[i]()})},Ee=".bs.alert",g=`close${Ee}`,b=`closed${Ee}`;class C extends k{static get NAME(){return"alert"}close(){if(I.trigger(this._element,g).defaultPrevented)return;this._element.classList.remove("show");const i=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,i)}_destroyElement(){this._element.remove(),I.trigger(this._element,b),this.dispose()}static jQueryInterface(i){return this.each(function(){const a=C.getOrCreateInstance(this);if(typeof i=="string"){if(a[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);a[i](this)}})}}ne(C,"close"),$(C);const M='[data-bs-toggle="button"]';class j extends k{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(i){return this.each(function(){const a=j.getOrCreateInstance(this);i==="toggle"&&a[i]()})}}I.on(document,"click.bs.button.data-api",M,f=>{f.preventDefault();const i=f.target.closest(M);j.getOrCreateInstance(i).toggle()}),$(j);const L=".bs.swipe",X=`touchstart${L}`,z=`touchmove${L}`,V=`touchend${L}`,U=`pointerdown${L}`,ie=`pointerup${L}`,Q={endCallback:null,leftCallback:null,rightCallback:null},se={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class le extends it{constructor(i,a){super(),this._element=i,i&&le.isSupported()&&(this._config=this._getConfig(a),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Q}static get DefaultType(){return se}static get NAME(){return"swipe"}dispose(){I.off(this._element,L)}_start(i){this._supportPointerEvents?this._eventIsPointerPenTouch(i)&&(this._deltaX=i.clientX):this._deltaX=i.touches[0].clientX}_end(i){this._eventIsPointerPenTouch(i)&&(this._deltaX=i.clientX-this._deltaX),this._handleSwipe(),D(this._config.endCallback)}_move(i){this._deltaX=i.touches&&i.touches.length>1?0:i.touches[0].clientX-this._deltaX}_handleSwipe(){const i=Math.abs(this._deltaX);if(i<=40)return;const a=i/this._deltaX;this._deltaX=0,a&&D(a>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(I.on(this._element,U,i=>this._start(i)),I.on(this._element,ie,i=>this._end(i)),this._element.classList.add("pointer-event")):(I.on(this._element,X,i=>this._start(i)),I.on(this._element,z,i=>this._move(i)),I.on(this._element,V,i=>this._end(i)))}_eventIsPointerPenTouch(i){return this._supportPointerEvents&&(i.pointerType==="pen"||i.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const pe=".bs.carousel",Ie=".data-api",Te="ArrowLeft",ht="ArrowRight",et="next",at="prev",ct="left",rn="right",$r=`slide${pe}`,ut=`slid${pe}`,jt=`keydown${pe}`,jr=`mouseenter${pe}`,Br=`mouseleave${pe}`,th=`dragstart${pe}`,nh=`load${pe}${Ie}`,sh=`click${pe}${Ie}`,Jl="carousel",Hr="active",Xl=".active",Yl=".carousel-item",rh=Xl+Yl,ih={[Te]:rn,[ht]:ct},oh={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lh={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class _s extends k{constructor(i,a){super(i,a),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=P.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Jl&&this.cycle()}static get Default(){return oh}static get DefaultType(){return lh}static get NAME(){return"carousel"}next(){this._slide(et)}nextWhenVisible(){!document.hidden&&d(this._element)&&this.next()}prev(){this._slide(at)}pause(){this._isSliding&&c(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?I.one(this._element,ut,()=>this.cycle()):this.cycle())}to(i){const a=this._getItems();if(i>a.length-1||i<0)return;if(this._isSliding)return void I.one(this._element,ut,()=>this.to(i));const m=this._getItemIndex(this._getActive());if(m===i)return;const w=i>m?et:at;this._slide(w,a[i])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(i){return i.defaultInterval=i.interval,i}_addEventListeners(){this._config.keyboard&&I.on(this._element,jt,i=>this._keydown(i)),this._config.pause==="hover"&&(I.on(this._element,jr,()=>this.pause()),I.on(this._element,Br,()=>this._maybeEnableCycle())),this._config.touch&&le.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const a of P.find(".carousel-item img",this._element))I.on(a,th,m=>m.preventDefault());const i={leftCallback:()=>this._slide(this._directionToOrder(ct)),rightCallback:()=>this._slide(this._directionToOrder(rn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new le(this._element,i)}_keydown(i){if(/input|textarea/i.test(i.target.tagName))return;const a=ih[i.key];a&&(i.preventDefault(),this._slide(this._directionToOrder(a)))}_getItemIndex(i){return this._getItems().indexOf(i)}_setActiveIndicatorElement(i){if(!this._indicatorsElement)return;const a=P.findOne(Xl,this._indicatorsElement);a.classList.remove(Hr),a.removeAttribute("aria-current");const m=P.findOne(`[data-bs-slide-to="${i}"]`,this._indicatorsElement);m&&(m.classList.add(Hr),m.setAttribute("aria-current","true"))}_updateInterval(){const i=this._activeElement||this._getActive();if(!i)return;const a=Number.parseInt(i.getAttribute("data-bs-interval"),10);this._config.interval=a||this._config.defaultInterval}_slide(i,a=null){if(this._isSliding)return;const m=this._getActive(),w=i===et,A=a||R(this._getItems(),m,w,this._config.wrap);if(A===m)return;const T=this._getItemIndex(A),H=Y=>I.trigger(this._element,Y,{relatedTarget:A,direction:this._orderToDirection(i),from:this._getItemIndex(m),to:T});if(H($r).defaultPrevented||!m||!A)return;const q=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(T),this._activeElement=A;const ee=w?"carousel-item-start":"carousel-item-end",te=w?"carousel-item-next":"carousel-item-prev";A.classList.add(te),y(A),m.classList.add(ee),A.classList.add(ee),this._queueCallback(()=>{A.classList.remove(ee,te),A.classList.add(Hr),m.classList.remove(Hr,te,ee),this._isSliding=!1,H(ut)},m,this._isAnimated()),q&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return P.findOne(rh,this._element)}_getItems(){return P.find(Yl,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(i){return B()?i===ct?at:et:i===ct?et:at}_orderToDirection(i){return B()?i===at?ct:rn:i===at?rn:ct}static jQueryInterface(i){return this.each(function(){const a=_s.getOrCreateInstance(this,i);if(typeof i!="number"){if(typeof i=="string"){if(a[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);a[i]()}}else a.to(i)})}}I.on(document,sh,"[data-bs-slide], [data-bs-slide-to]",function(f){const i=P.getElementFromSelector(this);if(!i||!i.classList.contains(Jl))return;f.preventDefault();const a=_s.getOrCreateInstance(i),m=this.getAttribute("data-bs-slide-to");return m?(a.to(m),void a._maybeEnableCycle()):Ze.getDataAttribute(this,"slide")==="next"?(a.next(),void a._maybeEnableCycle()):(a.prev(),void a._maybeEnableCycle())}),I.on(window,nh,()=>{const f=P.find('[data-bs-ride="carousel"]');for(const i of f)_s.getOrCreateInstance(i)}),$(_s);const Xs=".bs.collapse",ah=`show${Xs}`,ch=`shown${Xs}`,uh=`hide${Xs}`,fh=`hidden${Xs}`,dh=`click${Xs}.data-api`,Yi="show",bs="collapse",Ur="collapsing",hh=`:scope .${bs} .${bs}`,Qi='[data-bs-toggle="collapse"]',ph={parent:null,toggle:!0},mh={parent:"(null|element)",toggle:"boolean"};class vs extends k{constructor(i,a){super(i,a),this._isTransitioning=!1,this._triggerArray=[];const m=P.find(Qi);for(const w of m){const A=P.getSelectorFromElement(w),T=P.find(A).filter(H=>H===this._element);A!==null&&T.length&&this._triggerArray.push(w)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ph}static get DefaultType(){return mh}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let i=[];if(this._config.parent&&(i=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(w=>w!==this._element).map(w=>vs.getOrCreateInstance(w,{toggle:!1}))),i.length&&i[0]._isTransitioning||I.trigger(this._element,ah).defaultPrevented)return;for(const w of i)w.hide();const a=this._getDimension();this._element.classList.remove(bs),this._element.classList.add(Ur),this._element.style[a]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const m=`scroll${a[0].toUpperCase()+a.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ur),this._element.classList.add(bs,Yi),this._element.style[a]="",I.trigger(this._element,ch)},this._element,!0),this._element.style[a]=`${this._element[m]}px`}hide(){if(this._isTransitioning||!this._isShown()||I.trigger(this._element,uh).defaultPrevented)return;const i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,y(this._element),this._element.classList.add(Ur),this._element.classList.remove(bs,Yi);for(const a of this._triggerArray){const m=P.getElementFromSelector(a);m&&!this._isShown(m)&&this._addAriaAndCollapsedClass([a],!1)}this._isTransitioning=!0,this._element.style[i]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ur),this._element.classList.add(bs),I.trigger(this._element,fh)},this._element,!0)}_isShown(i=this._element){return i.classList.contains(Yi)}_configAfterMerge(i){return i.toggle=!!i.toggle,i.parent=h(i.parent),i}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const i=this._getFirstLevelChildren(Qi);for(const a of i){const m=P.getElementFromSelector(a);m&&this._addAriaAndCollapsedClass([a],this._isShown(m))}}_getFirstLevelChildren(i){const a=P.find(hh,this._config.parent);return P.find(i,this._config.parent).filter(m=>!a.includes(m))}_addAriaAndCollapsedClass(i,a){if(i.length)for(const m of i)m.classList.toggle("collapsed",!a),m.setAttribute("aria-expanded",a)}static jQueryInterface(i){const a={};return typeof i=="string"&&/show|hide/.test(i)&&(a.toggle=!1),this.each(function(){const m=vs.getOrCreateInstance(this,a);if(typeof i=="string"){if(m[i]===void 0)throw new TypeError(`No method named "${i}"`);m[i]()}})}}I.on(document,dh,Qi,function(f){(f.target.tagName==="A"||f.delegateTarget&&f.delegateTarget.tagName==="A")&&f.preventDefault();for(const i of P.getMultipleElementsFromSelector(this))vs.getOrCreateInstance(i,{toggle:!1}).toggle()}),$(vs);var vt="top",Lt="bottom",Dt="right",yt="left",Vr="auto",ys=[vt,Lt,Dt,yt],Wn="start",ws="end",Ql="clippingParents",Zi="viewport",Es="popper",Zl="reference",eo=ys.reduce(function(f,i){return f.concat([i+"-"+Wn,i+"-"+ws])},[]),to=[].concat(ys,[Vr]).reduce(function(f,i){return f.concat([i,i+"-"+Wn,i+"-"+ws])},[]),ea="beforeRead",ta="read",na="afterRead",sa="beforeMain",ra="main",ia="afterMain",oa="beforeWrite",la="write",aa="afterWrite",ca=[ea,ta,na,sa,ra,ia,oa,la,aa];function on(f){return f?(f.nodeName||"").toLowerCase():null}function Mt(f){if(f==null)return window;if(f.toString()!=="[object Window]"){var i=f.ownerDocument;return i&&i.defaultView||window}return f}function Kn(f){return f instanceof Mt(f).Element||f instanceof Element}function Bt(f){return f instanceof Mt(f).HTMLElement||f instanceof HTMLElement}function no(f){return typeof ShadowRoot<"u"&&(f instanceof Mt(f).ShadowRoot||f instanceof ShadowRoot)}const so={name:"applyStyles",enabled:!0,phase:"write",fn:function(f){var i=f.state;Object.keys(i.elements).forEach(function(a){var m=i.styles[a]||{},w=i.attributes[a]||{},A=i.elements[a];Bt(A)&&on(A)&&(Object.assign(A.style,m),Object.keys(w).forEach(function(T){var H=w[T];H===!1?A.removeAttribute(T):A.setAttribute(T,H===!0?"":H)}))})},effect:function(f){var i=f.state,a={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,a.popper),i.styles=a,i.elements.arrow&&Object.assign(i.elements.arrow.style,a.arrow),function(){Object.keys(i.elements).forEach(function(m){var w=i.elements[m],A=i.attributes[m]||{},T=Object.keys(i.styles.hasOwnProperty(m)?i.styles[m]:a[m]).reduce(function(H,q){return H[q]="",H},{});Bt(w)&&on(w)&&(Object.assign(w.style,T),Object.keys(A).forEach(function(H){w.removeAttribute(H)}))})}},requires:["computeStyles"]};function ln(f){return f.split("-")[0]}var zn=Math.max,qr=Math.min,As=Math.round;function ro(){var f=navigator.userAgentData;return f!=null&&f.brands&&Array.isArray(f.brands)?f.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function ua(){return!/^((?!chrome|android).)*safari/i.test(ro())}function Cs(f,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);var m=f.getBoundingClientRect(),w=1,A=1;i&&Bt(f)&&(w=f.offsetWidth>0&&As(m.width)/f.offsetWidth||1,A=f.offsetHeight>0&&As(m.height)/f.offsetHeight||1);var T=(Kn(f)?Mt(f):window).visualViewport,H=!ua()&&a,q=(m.left+(H&&T?T.offsetLeft:0))/w,ee=(m.top+(H&&T?T.offsetTop:0))/A,te=m.width/w,Y=m.height/A;return{width:te,height:Y,top:ee,right:q+te,bottom:ee+Y,left:q,x:q,y:ee}}function io(f){var i=Cs(f),a=f.offsetWidth,m=f.offsetHeight;return Math.abs(i.width-a)<=1&&(a=i.width),Math.abs(i.height-m)<=1&&(m=i.height),{x:f.offsetLeft,y:f.offsetTop,width:a,height:m}}function fa(f,i){var a=i.getRootNode&&i.getRootNode();if(f.contains(i))return!0;if(a&&no(a)){var m=i;do{if(m&&f.isSameNode(m))return!0;m=m.parentNode||m.host}while(m)}return!1}function _n(f){return Mt(f).getComputedStyle(f)}function gh(f){return["table","td","th"].indexOf(on(f))>=0}function Nn(f){return((Kn(f)?f.ownerDocument:f.document)||window.document).documentElement}function Wr(f){return on(f)==="html"?f:f.assignedSlot||f.parentNode||(no(f)?f.host:null)||Nn(f)}function da(f){return Bt(f)&&_n(f).position!=="fixed"?f.offsetParent:null}function Ys(f){for(var i=Mt(f),a=da(f);a&&gh(a)&&_n(a).position==="static";)a=da(a);return a&&(on(a)==="html"||on(a)==="body"&&_n(a).position==="static")?i:a||(function(m){var w=/firefox/i.test(ro());if(/Trident/i.test(ro())&&Bt(m)&&_n(m).position==="fixed")return null;var A=Wr(m);for(no(A)&&(A=A.host);Bt(A)&&["html","body"].indexOf(on(A))<0;){var T=_n(A);if(T.transform!=="none"||T.perspective!=="none"||T.contain==="paint"||["transform","perspective"].indexOf(T.willChange)!==-1||w&&T.willChange==="filter"||w&&T.filter&&T.filter!=="none")return A;A=A.parentNode}return null})(f)||i}function oo(f){return["top","bottom"].indexOf(f)>=0?"x":"y"}function Qs(f,i,a){return zn(f,qr(i,a))}function ha(f){return Object.assign({},{top:0,right:0,bottom:0,left:0},f)}function pa(f,i){return i.reduce(function(a,m){return a[m]=f,a},{})}const ma={name:"arrow",enabled:!0,phase:"main",fn:function(f){var i,a=f.state,m=f.name,w=f.options,A=a.elements.arrow,T=a.modifiersData.popperOffsets,H=ln(a.placement),q=oo(H),ee=[yt,Dt].indexOf(H)>=0?"height":"width";if(A&&T){var te=(function(Fe,De){return ha(typeof(Fe=typeof Fe=="function"?Fe(Object.assign({},De.rects,{placement:De.placement})):Fe)!="number"?Fe:pa(Fe,ys))})(w.padding,a),Y=io(A),_e=q==="y"?vt:yt,ae=q==="y"?Lt:Dt,fe=a.rects.reference[ee]+a.rects.reference[q]-T[q]-a.rects.popper[ee],ue=T[q]-a.rects.reference[q],de=Ys(A),Me=de?q==="y"?de.clientHeight||0:de.clientWidth||0:0,Ue=fe/2-ue/2,ye=te[_e],Oe=Me-Y[ee]-te[ae],be=Me/2-Y[ee]/2+Ue,Ce=Qs(ye,be,Oe),Le=q;a.modifiersData[m]=((i={})[Le]=Ce,i.centerOffset=Ce-be,i)}},effect:function(f){var i=f.state,a=f.options.element,m=a===void 0?"[data-popper-arrow]":a;m!=null&&(typeof m!="string"||(m=i.elements.popper.querySelector(m)))&&fa(i.elements.popper,m)&&(i.elements.arrow=m)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xs(f){return f.split("-")[1]}var _h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ga(f){var i,a=f.popper,m=f.popperRect,w=f.placement,A=f.variation,T=f.offsets,H=f.position,q=f.gpuAcceleration,ee=f.adaptive,te=f.roundOffsets,Y=f.isFixed,_e=T.x,ae=_e===void 0?0:_e,fe=T.y,ue=fe===void 0?0:fe,de=typeof te=="function"?te({x:ae,y:ue}):{x:ae,y:ue};ae=de.x,ue=de.y;var Me=T.hasOwnProperty("x"),Ue=T.hasOwnProperty("y"),ye=yt,Oe=vt,be=window;if(ee){var Ce=Ys(a),Le="clientHeight",Fe="clientWidth";Ce===Mt(a)&&_n(Ce=Nn(a)).position!=="static"&&H==="absolute"&&(Le="scrollHeight",Fe="scrollWidth"),(w===vt||(w===yt||w===Dt)&&A===ws)&&(Oe=Lt,ue-=(Y&&Ce===be&&be.visualViewport?be.visualViewport.height:Ce[Le])-m.height,ue*=q?1:-1),w!==yt&&(w!==vt&&w!==Lt||A!==ws)||(ye=Dt,ae-=(Y&&Ce===be&&be.visualViewport?be.visualViewport.width:Ce[Fe])-m.width,ae*=q?1:-1)}var De,Ye=Object.assign({position:H},ee&&_h),Ft=te===!0?(function(Jt,wt){var Ut=Jt.x,Vt=Jt.y,ze=wt.devicePixelRatio||1;return{x:As(Ut*ze)/ze||0,y:As(Vt*ze)/ze||0}})({x:ae,y:ue},Mt(a)):{x:ae,y:ue};return ae=Ft.x,ue=Ft.y,q?Object.assign({},Ye,((De={})[Oe]=Ue?"0":"",De[ye]=Me?"0":"",De.transform=(be.devicePixelRatio||1)<=1?"translate("+ae+"px, "+ue+"px)":"translate3d("+ae+"px, "+ue+"px, 0)",De)):Object.assign({},Ye,((i={})[Oe]=Ue?ue+"px":"",i[ye]=Me?ae+"px":"",i.transform="",i))}const lo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(f){var i=f.state,a=f.options,m=a.gpuAcceleration,w=m===void 0||m,A=a.adaptive,T=A===void 0||A,H=a.roundOffsets,q=H===void 0||H,ee={placement:ln(i.placement),variation:xs(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:w,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,ga(Object.assign({},ee,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:T,roundOffsets:q})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,ga(Object.assign({},ee,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:q})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})},data:{}};var Kr={passive:!0};const ao={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(f){var i=f.state,a=f.instance,m=f.options,w=m.scroll,A=w===void 0||w,T=m.resize,H=T===void 0||T,q=Mt(i.elements.popper),ee=[].concat(i.scrollParents.reference,i.scrollParents.popper);return A&&ee.forEach(function(te){te.addEventListener("scroll",a.update,Kr)}),H&&q.addEventListener("resize",a.update,Kr),function(){A&&ee.forEach(function(te){te.removeEventListener("scroll",a.update,Kr)}),H&&q.removeEventListener("resize",a.update,Kr)}},data:{}};var bh={left:"right",right:"left",bottom:"top",top:"bottom"};function zr(f){return f.replace(/left|right|bottom|top/g,function(i){return bh[i]})}var vh={start:"end",end:"start"};function _a(f){return f.replace(/start|end/g,function(i){return vh[i]})}function co(f){var i=Mt(f);return{scrollLeft:i.pageXOffset,scrollTop:i.pageYOffset}}function uo(f){return Cs(Nn(f)).left+co(f).scrollLeft}function fo(f){var i=_n(f),a=i.overflow,m=i.overflowX,w=i.overflowY;return/auto|scroll|overlay|hidden/.test(a+w+m)}function ba(f){return["html","body","#document"].indexOf(on(f))>=0?f.ownerDocument.body:Bt(f)&&fo(f)?f:ba(Wr(f))}function Zs(f,i){var a;i===void 0&&(i=[]);var m=ba(f),w=m===((a=f.ownerDocument)==null?void 0:a.body),A=Mt(m),T=w?[A].concat(A.visualViewport||[],fo(m)?m:[]):m,H=i.concat(T);return w?H:H.concat(Zs(Wr(T)))}function ho(f){return Object.assign({},f,{left:f.x,top:f.y,right:f.x+f.width,bottom:f.y+f.height})}function va(f,i,a){return i===Zi?ho((function(m,w){var A=Mt(m),T=Nn(m),H=A.visualViewport,q=T.clientWidth,ee=T.clientHeight,te=0,Y=0;if(H){q=H.width,ee=H.height;var _e=ua();(_e||!_e&&w==="fixed")&&(te=H.offsetLeft,Y=H.offsetTop)}return{width:q,height:ee,x:te+uo(m),y:Y}})(f,a)):Kn(i)?(function(m,w){var A=Cs(m,!1,w==="fixed");return A.top=A.top+m.clientTop,A.left=A.left+m.clientLeft,A.bottom=A.top+m.clientHeight,A.right=A.left+m.clientWidth,A.width=m.clientWidth,A.height=m.clientHeight,A.x=A.left,A.y=A.top,A})(i,a):ho((function(m){var w,A=Nn(m),T=co(m),H=(w=m.ownerDocument)==null?void 0:w.body,q=zn(A.scrollWidth,A.clientWidth,H?H.scrollWidth:0,H?H.clientWidth:0),ee=zn(A.scrollHeight,A.clientHeight,H?H.scrollHeight:0,H?H.clientHeight:0),te=-T.scrollLeft+uo(m),Y=-T.scrollTop;return _n(H||A).direction==="rtl"&&(te+=zn(A.clientWidth,H?H.clientWidth:0)-q),{width:q,height:ee,x:te,y:Y}})(Nn(f)))}function ya(f){var i,a=f.reference,m=f.element,w=f.placement,A=w?ln(w):null,T=w?xs(w):null,H=a.x+a.width/2-m.width/2,q=a.y+a.height/2-m.height/2;switch(A){case vt:i={x:H,y:a.y-m.height};break;case Lt:i={x:H,y:a.y+a.height};break;case Dt:i={x:a.x+a.width,y:q};break;case yt:i={x:a.x-m.width,y:q};break;default:i={x:a.x,y:a.y}}var ee=A?oo(A):null;if(ee!=null){var te=ee==="y"?"height":"width";switch(T){case Wn:i[ee]=i[ee]-(a[te]/2-m[te]/2);break;case ws:i[ee]=i[ee]+(a[te]/2-m[te]/2)}}return i}function Ss(f,i){i===void 0&&(i={});var a=i,m=a.placement,w=m===void 0?f.placement:m,A=a.strategy,T=A===void 0?f.strategy:A,H=a.boundary,q=H===void 0?Ql:H,ee=a.rootBoundary,te=ee===void 0?Zi:ee,Y=a.elementContext,_e=Y===void 0?Es:Y,ae=a.altBoundary,fe=ae!==void 0&&ae,ue=a.padding,de=ue===void 0?0:ue,Me=ha(typeof de!="number"?de:pa(de,ys)),Ue=_e===Es?Zl:Es,ye=f.rects.popper,Oe=f.elements[fe?Ue:_e],be=(function(wt,Ut,Vt,ze){var an=Ut==="clippingParents"?(function(je){var Et=Zs(Wr(je)),qt=["absolute","fixed"].indexOf(_n(je).position)>=0&&Bt(je)?Ys(je):je;return Kn(qt)?Et.filter(function(In){return Kn(In)&&fa(In,qt)&&on(In)!=="body"}):[]})(wt):[].concat(Ut),cn=[].concat(an,[Vt]),Rs=cn[0],ot=cn.reduce(function(je,Et){var qt=va(wt,Et,ze);return je.top=zn(qt.top,je.top),je.right=qr(qt.right,je.right),je.bottom=qr(qt.bottom,je.bottom),je.left=zn(qt.left,je.left),je},va(wt,Rs,ze));return ot.width=ot.right-ot.left,ot.height=ot.bottom-ot.top,ot.x=ot.left,ot.y=ot.top,ot})(Kn(Oe)?Oe:Oe.contextElement||Nn(f.elements.popper),q,te,T),Ce=Cs(f.elements.reference),Le=ya({reference:Ce,element:ye,placement:w}),Fe=ho(Object.assign({},ye,Le)),De=_e===Es?Fe:Ce,Ye={top:be.top-De.top+Me.top,bottom:De.bottom-be.bottom+Me.bottom,left:be.left-De.left+Me.left,right:De.right-be.right+Me.right},Ft=f.modifiersData.offset;if(_e===Es&&Ft){var Jt=Ft[w];Object.keys(Ye).forEach(function(wt){var Ut=[Dt,Lt].indexOf(wt)>=0?1:-1,Vt=[vt,Lt].indexOf(wt)>=0?"y":"x";Ye[wt]+=Jt[Vt]*Ut})}return Ye}function yh(f,i){i===void 0&&(i={});var a=i,m=a.placement,w=a.boundary,A=a.rootBoundary,T=a.padding,H=a.flipVariations,q=a.allowedAutoPlacements,ee=q===void 0?to:q,te=xs(m),Y=te?H?eo:eo.filter(function(fe){return xs(fe)===te}):ys,_e=Y.filter(function(fe){return ee.indexOf(fe)>=0});_e.length===0&&(_e=Y);var ae=_e.reduce(function(fe,ue){return fe[ue]=Ss(f,{placement:ue,boundary:w,rootBoundary:A,padding:T})[ln(ue)],fe},{});return Object.keys(ae).sort(function(fe,ue){return ae[fe]-ae[ue]})}const wa={name:"flip",enabled:!0,phase:"main",fn:function(f){var i=f.state,a=f.options,m=f.name;if(!i.modifiersData[m]._skip){for(var w=a.mainAxis,A=w===void 0||w,T=a.altAxis,H=T===void 0||T,q=a.fallbackPlacements,ee=a.padding,te=a.boundary,Y=a.rootBoundary,_e=a.altBoundary,ae=a.flipVariations,fe=ae===void 0||ae,ue=a.allowedAutoPlacements,de=i.options.placement,Me=ln(de),Ue=q||(Me!==de&&fe?(function(je){if(ln(je)===Vr)return[];var Et=zr(je);return[_a(je),Et,_a(Et)]})(de):[zr(de)]),ye=[de].concat(Ue).reduce(function(je,Et){return je.concat(ln(Et)===Vr?yh(i,{placement:Et,boundary:te,rootBoundary:Y,padding:ee,flipVariations:fe,allowedAutoPlacements:ue}):Et)},[]),Oe=i.rects.reference,be=i.rects.popper,Ce=new Map,Le=!0,Fe=ye[0],De=0;De<ye.length;De++){var Ye=ye[De],Ft=ln(Ye),Jt=xs(Ye)===Wn,wt=[vt,Lt].indexOf(Ft)>=0,Ut=wt?"width":"height",Vt=Ss(i,{placement:Ye,boundary:te,rootBoundary:Y,altBoundary:_e,padding:ee}),ze=wt?Jt?Dt:yt:Jt?Lt:vt;Oe[Ut]>be[Ut]&&(ze=zr(ze));var an=zr(ze),cn=[];if(A&&cn.push(Vt[Ft]<=0),H&&cn.push(Vt[ze]<=0,Vt[an]<=0),cn.every(function(je){return je})){Fe=Ye,Le=!1;break}Ce.set(Ye,cn)}if(Le)for(var Rs=function(je){var Et=ye.find(function(qt){var In=Ce.get(qt);if(In)return In.slice(0,je).every(function(ni){return ni})});if(Et)return Fe=Et,"break"},ot=fe?3:1;ot>0&&Rs(ot)!=="break";ot--);i.placement!==Fe&&(i.modifiersData[m]._skip=!0,i.placement=Fe,i.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ea(f,i,a){return a===void 0&&(a={x:0,y:0}),{top:f.top-i.height-a.y,right:f.right-i.width+a.x,bottom:f.bottom-i.height+a.y,left:f.left-i.width-a.x}}function Aa(f){return[vt,Dt,Lt,yt].some(function(i){return f[i]>=0})}const Ca={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(f){var i=f.state,a=f.name,m=i.rects.reference,w=i.rects.popper,A=i.modifiersData.preventOverflow,T=Ss(i,{elementContext:"reference"}),H=Ss(i,{altBoundary:!0}),q=Ea(T,m),ee=Ea(H,w,A),te=Aa(q),Y=Aa(ee);i.modifiersData[a]={referenceClippingOffsets:q,popperEscapeOffsets:ee,isReferenceHidden:te,hasPopperEscaped:Y},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":te,"data-popper-escaped":Y})}},xa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(f){var i=f.state,a=f.options,m=f.name,w=a.offset,A=w===void 0?[0,0]:w,T=to.reduce(function(te,Y){return te[Y]=(function(_e,ae,fe){var ue=ln(_e),de=[yt,vt].indexOf(ue)>=0?-1:1,Me=typeof fe=="function"?fe(Object.assign({},ae,{placement:_e})):fe,Ue=Me[0],ye=Me[1];return Ue=Ue||0,ye=(ye||0)*de,[yt,Dt].indexOf(ue)>=0?{x:ye,y:Ue}:{x:Ue,y:ye}})(Y,i.rects,A),te},{}),H=T[i.placement],q=H.x,ee=H.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=q,i.modifiersData.popperOffsets.y+=ee),i.modifiersData[m]=T}},po={name:"popperOffsets",enabled:!0,phase:"read",fn:function(f){var i=f.state,a=f.name;i.modifiersData[a]=ya({reference:i.rects.reference,element:i.rects.popper,placement:i.placement})},data:{}},Sa={name:"preventOverflow",enabled:!0,phase:"main",fn:function(f){var i=f.state,a=f.options,m=f.name,w=a.mainAxis,A=w===void 0||w,T=a.altAxis,H=T!==void 0&&T,q=a.boundary,ee=a.rootBoundary,te=a.altBoundary,Y=a.padding,_e=a.tether,ae=_e===void 0||_e,fe=a.tetherOffset,ue=fe===void 0?0:fe,de=Ss(i,{boundary:q,rootBoundary:ee,padding:Y,altBoundary:te}),Me=ln(i.placement),Ue=xs(i.placement),ye=!Ue,Oe=oo(Me),be=Oe==="x"?"y":"x",Ce=i.modifiersData.popperOffsets,Le=i.rects.reference,Fe=i.rects.popper,De=typeof ue=="function"?ue(Object.assign({},i.rects,{placement:i.placement})):ue,Ye=typeof De=="number"?{mainAxis:De,altAxis:De}:Object.assign({mainAxis:0,altAxis:0},De),Ft=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,Jt={x:0,y:0};if(Ce){if(A){var wt,Ut=Oe==="y"?vt:yt,Vt=Oe==="y"?Lt:Dt,ze=Oe==="y"?"height":"width",an=Ce[Oe],cn=an+de[Ut],Rs=an-de[Vt],ot=ae?-Fe[ze]/2:0,je=Ue===Wn?Le[ze]:Fe[ze],Et=Ue===Wn?-Fe[ze]:-Le[ze],qt=i.elements.arrow,In=ae&&qt?io(qt):{width:0,height:0},ni=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},dc=ni[Ut],hc=ni[Vt],si=Qs(0,Le[ze],In[ze]),Qp=ye?Le[ze]/2-ot-si-dc-Ye.mainAxis:je-si-dc-Ye.mainAxis,Zp=ye?-Le[ze]/2+ot+si+hc+Ye.mainAxis:Et+si+hc+Ye.mainAxis,Oo=i.elements.arrow&&Ys(i.elements.arrow),em=Oo?Oe==="y"?Oo.clientTop||0:Oo.clientLeft||0:0,pc=(wt=Ft?.[Oe])!=null?wt:0,tm=an+Zp-pc,mc=Qs(ae?qr(cn,an+Qp-pc-em):cn,an,ae?zn(Rs,tm):Rs);Ce[Oe]=mc,Jt[Oe]=mc-an}if(H){var gc,nm=Oe==="x"?vt:yt,sm=Oe==="x"?Lt:Dt,ts=Ce[be],ri=be==="y"?"height":"width",_c=ts+de[nm],bc=ts-de[sm],Ro=[vt,yt].indexOf(Me)!==-1,vc=(gc=Ft?.[be])!=null?gc:0,yc=Ro?_c:ts-Le[ri]-Fe[ri]-vc+Ye.altAxis,wc=Ro?ts+Le[ri]+Fe[ri]-vc-Ye.altAxis:bc,Ec=ae&&Ro?(function(rm,im,Po){var Ac=Qs(rm,im,Po);return Ac>Po?Po:Ac})(yc,ts,wc):Qs(ae?yc:_c,ts,ae?wc:bc);Ce[be]=Ec,Jt[be]=Ec-ts}i.modifiersData[m]=Jt}},requiresIfExists:["offset"]};function wh(f,i,a){a===void 0&&(a=!1);var m,w,A=Bt(i),T=Bt(i)&&(function(Y){var _e=Y.getBoundingClientRect(),ae=As(_e.width)/Y.offsetWidth||1,fe=As(_e.height)/Y.offsetHeight||1;return ae!==1||fe!==1})(i),H=Nn(i),q=Cs(f,T,a),ee={scrollLeft:0,scrollTop:0},te={x:0,y:0};return(A||!A&&!a)&&((on(i)!=="body"||fo(H))&&(ee=(m=i)!==Mt(m)&&Bt(m)?{scrollLeft:(w=m).scrollLeft,scrollTop:w.scrollTop}:co(m)),Bt(i)?((te=Cs(i,!0)).x+=i.clientLeft,te.y+=i.clientTop):H&&(te.x=uo(H))),{x:q.left+ee.scrollLeft-te.x,y:q.top+ee.scrollTop-te.y,width:q.width,height:q.height}}function Eh(f){var i=new Map,a=new Set,m=[];function w(A){a.add(A.name),[].concat(A.requires||[],A.requiresIfExists||[]).forEach(function(T){if(!a.has(T)){var H=i.get(T);H&&w(H)}}),m.push(A)}return f.forEach(function(A){i.set(A.name,A)}),f.forEach(function(A){a.has(A.name)||w(A)}),m}var Ta={placement:"bottom",modifiers:[],strategy:"absolute"};function Oa(){for(var f=arguments.length,i=new Array(f),a=0;a<f;a++)i[a]=arguments[a];return!i.some(function(m){return!(m&&typeof m.getBoundingClientRect=="function")})}function Gr(f){f===void 0&&(f={});var i=f,a=i.defaultModifiers,m=a===void 0?[]:a,w=i.defaultOptions,A=w===void 0?Ta:w;return function(T,H,q){q===void 0&&(q=A);var ee,te,Y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ta,A),modifiersData:{},elements:{reference:T,popper:H},attributes:{},styles:{}},_e=[],ae=!1,fe={state:Y,setOptions:function(de){var Me=typeof de=="function"?de(Y.options):de;ue(),Y.options=Object.assign({},A,Y.options,Me),Y.scrollParents={reference:Kn(T)?Zs(T):T.contextElement?Zs(T.contextElement):[],popper:Zs(H)};var Ue,ye,Oe=(function(be){var Ce=Eh(be);return ca.reduce(function(Le,Fe){return Le.concat(Ce.filter(function(De){return De.phase===Fe}))},[])})((Ue=[].concat(m,Y.options.modifiers),ye=Ue.reduce(function(be,Ce){var Le=be[Ce.name];return be[Ce.name]=Le?Object.assign({},Le,Ce,{options:Object.assign({},Le.options,Ce.options),data:Object.assign({},Le.data,Ce.data)}):Ce,be},{}),Object.keys(ye).map(function(be){return ye[be]})));return Y.orderedModifiers=Oe.filter(function(be){return be.enabled}),Y.orderedModifiers.forEach(function(be){var Ce=be.name,Le=be.options,Fe=Le===void 0?{}:Le,De=be.effect;if(typeof De=="function"){var Ye=De({state:Y,name:Ce,instance:fe,options:Fe});_e.push(Ye||function(){})}}),fe.update()},forceUpdate:function(){if(!ae){var de=Y.elements,Me=de.reference,Ue=de.popper;if(Oa(Me,Ue)){Y.rects={reference:wh(Me,Ys(Ue),Y.options.strategy==="fixed"),popper:io(Ue)},Y.reset=!1,Y.placement=Y.options.placement,Y.orderedModifiers.forEach(function(De){return Y.modifiersData[De.name]=Object.assign({},De.data)});for(var ye=0;ye<Y.orderedModifiers.length;ye++)if(Y.reset!==!0){var Oe=Y.orderedModifiers[ye],be=Oe.fn,Ce=Oe.options,Le=Ce===void 0?{}:Ce,Fe=Oe.name;typeof be=="function"&&(Y=be({state:Y,options:Le,name:Fe,instance:fe})||Y)}else Y.reset=!1,ye=-1}}},update:(ee=function(){return new Promise(function(de){fe.forceUpdate(),de(Y)})},function(){return te||(te=new Promise(function(de){Promise.resolve().then(function(){te=void 0,de(ee())})})),te}),destroy:function(){ue(),ae=!0}};if(!Oa(T,H))return fe;function ue(){_e.forEach(function(de){return de()}),_e=[]}return fe.setOptions(q).then(function(de){!ae&&q.onFirstUpdate&&q.onFirstUpdate(de)}),fe}}var Ah=Gr(),Ch=Gr({defaultModifiers:[ao,po,lo,so]}),mo=Gr({defaultModifiers:[ao,po,lo,so,xa,wa,Sa,ma,Ca]});const Ra=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ia,afterRead:na,afterWrite:aa,applyStyles:so,arrow:ma,auto:Vr,basePlacements:ys,beforeMain:sa,beforeRead:ea,beforeWrite:oa,bottom:Lt,clippingParents:Ql,computeStyles:lo,createPopper:mo,createPopperBase:Ah,createPopperLite:Ch,detectOverflow:Ss,end:ws,eventListeners:ao,flip:wa,hide:Ca,left:yt,main:ra,modifierPhases:ca,offset:xa,placements:to,popper:Es,popperGenerator:Gr,popperOffsets:po,preventOverflow:Sa,read:ta,reference:Zl,right:Dt,start:Wn,top:vt,variationPlacements:eo,viewport:Zi,write:la},Symbol.toStringTag,{value:"Module"})),Pa="dropdown",Gn=".bs.dropdown",go=".data-api",xh="ArrowUp",Na="ArrowDown",Sh=`hide${Gn}`,Th=`hidden${Gn}`,Oh=`show${Gn}`,Rh=`shown${Gn}`,ka=`click${Gn}${go}`,Ia=`keydown${Gn}${go}`,Ph=`keyup${Gn}${go}`,Ts="show",Jn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Nh=`${Jn}.${Ts}`,Jr=".dropdown-menu",kh=B()?"top-end":"top-start",Ih=B()?"top-start":"top-end",Lh=B()?"bottom-end":"bottom-start",Dh=B()?"bottom-start":"bottom-end",Mh=B()?"left-start":"right-start",Fh=B()?"right-start":"left-start",$h={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},jh={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Gt extends k{constructor(i,a){super(i,a),this._popper=null,this._parent=this._element.parentNode,this._menu=P.next(this._element,Jr)[0]||P.prev(this._element,Jr)[0]||P.findOne(Jr,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return $h}static get DefaultType(){return jh}static get NAME(){return Pa}toggle(){return this._isShown()?this.hide():this.show()}show(){if(p(this._element)||this._isShown())return;const i={relatedTarget:this._element};if(!I.trigger(this._element,Oh,i).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const a of[].concat(...document.body.children))I.on(a,"mouseover",v);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ts),this._element.classList.add(Ts),I.trigger(this._element,Rh,i)}}hide(){if(p(this._element)||!this._isShown())return;const i={relatedTarget:this._element};this._completeHide(i)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(i){if(!I.trigger(this._element,Sh,i).defaultPrevented){if("ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))I.off(a,"mouseover",v);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ts),this._element.classList.remove(Ts),this._element.setAttribute("aria-expanded","false"),Ze.removeDataAttribute(this._menu,"popper"),I.trigger(this._element,Th,i)}}_getConfig(i){if(typeof(i=super._getConfig(i)).reference=="object"&&!u(i.reference)&&typeof i.reference.getBoundingClientRect!="function")throw new TypeError(`${Pa.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return i}_createPopper(){if(Ra===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let i=this._element;this._config.reference==="parent"?i=this._parent:u(this._config.reference)?i=h(this._config.reference):typeof this._config.reference=="object"&&(i=this._config.reference);const a=this._getPopperConfig();this._popper=mo(i,this._menu,a)}_isShown(){return this._menu.classList.contains(Ts)}_getPlacement(){const i=this._parent;if(i.classList.contains("dropend"))return Mh;if(i.classList.contains("dropstart"))return Fh;if(i.classList.contains("dropup-center"))return"top";if(i.classList.contains("dropdown-center"))return"bottom";const a=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return i.classList.contains("dropup")?a?Ih:kh:a?Dh:Lh}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:i}=this._config;return typeof i=="string"?i.split(",").map(a=>Number.parseInt(a,10)):typeof i=="function"?a=>i(a,this._element):i}_getPopperConfig(){const i={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ze.setDataAttribute(this._menu,"popper","static"),i.modifiers=[{name:"applyStyles",enabled:!1}]),{...i,...D(this._config.popperConfig,[void 0,i])}}_selectMenuItem({key:i,target:a}){const m=P.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(w=>d(w));m.length&&R(m,a,i===Na,!m.includes(a)).focus()}static jQueryInterface(i){return this.each(function(){const a=Gt.getOrCreateInstance(this,i);if(typeof i=="string"){if(a[i]===void 0)throw new TypeError(`No method named "${i}"`);a[i]()}})}static clearMenus(i){if(i.button===2||i.type==="keyup"&&i.key!=="Tab")return;const a=P.find(Nh);for(const m of a){const w=Gt.getInstance(m);if(!w||w._config.autoClose===!1)continue;const A=i.composedPath(),T=A.includes(w._menu);if(A.includes(w._element)||w._config.autoClose==="inside"&&!T||w._config.autoClose==="outside"&&T||w._menu.contains(i.target)&&(i.type==="keyup"&&i.key==="Tab"||/input|select|option|textarea|form/i.test(i.target.tagName)))continue;const H={relatedTarget:w._element};i.type==="click"&&(H.clickEvent=i),w._completeHide(H)}}static dataApiKeydownHandler(i){const a=/input|textarea/i.test(i.target.tagName),m=i.key==="Escape",w=[xh,Na].includes(i.key);if(!w&&!m||a&&!m)return;i.preventDefault();const A=this.matches(Jn)?this:P.prev(this,Jn)[0]||P.next(this,Jn)[0]||P.findOne(Jn,i.delegateTarget.parentNode),T=Gt.getOrCreateInstance(A);if(w)return i.stopPropagation(),T.show(),void T._selectMenuItem(i);T._isShown()&&(i.stopPropagation(),T.hide(),A.focus())}}I.on(document,Ia,Jn,Gt.dataApiKeydownHandler),I.on(document,Ia,Jr,Gt.dataApiKeydownHandler),I.on(document,ka,Gt.clearMenus),I.on(document,Ph,Gt.clearMenus),I.on(document,ka,Jn,function(f){f.preventDefault(),Gt.getOrCreateInstance(this).toggle()}),$(Gt);const La="backdrop",Da="show",Ma=`mousedown.bs.${La}`,Bh={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Hh={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Fa extends it{constructor(i){super(),this._config=this._getConfig(i),this._isAppended=!1,this._element=null}static get Default(){return Bh}static get DefaultType(){return Hh}static get NAME(){return La}show(i){if(!this._config.isVisible)return void D(i);this._append();const a=this._getElement();this._config.isAnimated&&y(a),a.classList.add(Da),this._emulateAnimation(()=>{D(i)})}hide(i){this._config.isVisible?(this._getElement().classList.remove(Da),this._emulateAnimation(()=>{this.dispose(),D(i)})):D(i)}dispose(){this._isAppended&&(I.off(this._element,Ma),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const i=document.createElement("div");i.className=this._config.className,this._config.isAnimated&&i.classList.add("fade"),this._element=i}return this._element}_configAfterMerge(i){return i.rootElement=h(i.rootElement),i}_append(){if(this._isAppended)return;const i=this._getElement();this._config.rootElement.append(i),I.on(i,Ma,()=>{D(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(i){N(i,this._getElement(),this._config.isAnimated)}}const Xr=".bs.focustrap",Uh=`focusin${Xr}`,Vh=`keydown.tab${Xr}`,$a="backward",qh={autofocus:!0,trapElement:null},Wh={autofocus:"boolean",trapElement:"element"};class ja extends it{constructor(i){super(),this._config=this._getConfig(i),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return qh}static get DefaultType(){return Wh}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),I.off(document,Xr),I.on(document,Uh,i=>this._handleFocusin(i)),I.on(document,Vh,i=>this._handleKeydown(i)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,I.off(document,Xr))}_handleFocusin(i){const{trapElement:a}=this._config;if(i.target===document||i.target===a||a.contains(i.target))return;const m=P.focusableChildren(a);m.length===0?a.focus():this._lastTabNavDirection===$a?m[m.length-1].focus():m[0].focus()}_handleKeydown(i){i.key==="Tab"&&(this._lastTabNavDirection=i.shiftKey?$a:"forward")}}const Ba=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ha=".sticky-top",Yr="padding-right",Ua="margin-right";class _o{constructor(){this._element=document.body}getWidth(){const i=document.documentElement.clientWidth;return Math.abs(window.innerWidth-i)}hide(){const i=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Yr,a=>a+i),this._setElementAttributes(Ba,Yr,a=>a+i),this._setElementAttributes(Ha,Ua,a=>a-i)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Yr),this._resetElementAttributes(Ba,Yr),this._resetElementAttributes(Ha,Ua)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(i,a,m){const w=this.getWidth();this._applyManipulationCallback(i,A=>{if(A!==this._element&&window.innerWidth>A.clientWidth+w)return;this._saveInitialAttribute(A,a);const T=window.getComputedStyle(A).getPropertyValue(a);A.style.setProperty(a,`${m(Number.parseFloat(T))}px`)})}_saveInitialAttribute(i,a){const m=i.style.getPropertyValue(a);m&&Ze.setDataAttribute(i,a,m)}_resetElementAttributes(i,a){this._applyManipulationCallback(i,m=>{const w=Ze.getDataAttribute(m,a);w!==null?(Ze.removeDataAttribute(m,a),m.style.setProperty(a,w)):m.style.removeProperty(a)})}_applyManipulationCallback(i,a){if(u(i))a(i);else for(const m of P.find(i,this._element))a(m)}}const Ht=".bs.modal",Kh=`hide${Ht}`,zh=`hidePrevented${Ht}`,Va=`hidden${Ht}`,qa=`show${Ht}`,Gh=`shown${Ht}`,Jh=`resize${Ht}`,Xh=`click.dismiss${Ht}`,Yh=`mousedown.dismiss${Ht}`,Qh=`keydown.dismiss${Ht}`,Zh=`click${Ht}.data-api`,Wa="modal-open",Ka="show",bo="modal-static",ep={backdrop:!0,focus:!0,keyboard:!0},tp={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Xn extends k{constructor(i,a){super(i,a),this._dialog=P.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new _o,this._addEventListeners()}static get Default(){return ep}static get DefaultType(){return tp}static get NAME(){return"modal"}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){this._isShown||this._isTransitioning||I.trigger(this._element,qa,{relatedTarget:i}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Wa),this._adjustDialog(),this._backdrop.show(()=>this._showElement(i)))}hide(){this._isShown&&!this._isTransitioning&&(I.trigger(this._element,Kh).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ka),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){I.off(window,Ht),I.off(this._dialog,Ht),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Fa({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ja({trapElement:this._element})}_showElement(i){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const a=P.findOne(".modal-body",this._dialog);a&&(a.scrollTop=0),y(this._element),this._element.classList.add(Ka),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,I.trigger(this._element,Gh,{relatedTarget:i})},this._dialog,this._isAnimated())}_addEventListeners(){I.on(this._element,Qh,i=>{i.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),I.on(window,Jh,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),I.on(this._element,Yh,i=>{I.one(this._element,Xh,a=>{this._element===i.target&&this._element===a.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Wa),this._resetAdjustments(),this._scrollBar.reset(),I.trigger(this._element,Va)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(I.trigger(this._element,zh).defaultPrevented)return;const i=this._element.scrollHeight>document.documentElement.clientHeight,a=this._element.style.overflowY;a==="hidden"||this._element.classList.contains(bo)||(i||(this._element.style.overflowY="hidden"),this._element.classList.add(bo),this._queueCallback(()=>{this._element.classList.remove(bo),this._queueCallback(()=>{this._element.style.overflowY=a},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const i=this._element.scrollHeight>document.documentElement.clientHeight,a=this._scrollBar.getWidth(),m=a>0;if(m&&!i){const w=B()?"paddingLeft":"paddingRight";this._element.style[w]=`${a}px`}if(!m&&i){const w=B()?"paddingRight":"paddingLeft";this._element.style[w]=`${a}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(i,a){return this.each(function(){const m=Xn.getOrCreateInstance(this,i);if(typeof i=="string"){if(m[i]===void 0)throw new TypeError(`No method named "${i}"`);m[i](a)}})}}I.on(document,Zh,'[data-bs-toggle="modal"]',function(f){const i=P.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&f.preventDefault(),I.one(i,qa,m=>{m.defaultPrevented||I.one(i,Va,()=>{d(this)&&this.focus()})});const a=P.findOne(".modal.show");a&&Xn.getInstance(a).hide(),Xn.getOrCreateInstance(i).toggle(this)}),ne(Xn),$(Xn);const bn=".bs.offcanvas",za=".data-api",np=`load${bn}${za}`,Ga="show",Ja="showing",Xa="hiding",Ya=".offcanvas.show",sp=`show${bn}`,rp=`shown${bn}`,ip=`hide${bn}`,Qa=`hidePrevented${bn}`,Za=`hidden${bn}`,op=`resize${bn}`,lp=`click${bn}${za}`,ap=`keydown.dismiss${bn}`,cp={backdrop:!0,keyboard:!0,scroll:!1},up={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class vn extends k{constructor(i,a){super(i,a),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return cp}static get DefaultType(){return up}static get NAME(){return"offcanvas"}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){this._isShown||I.trigger(this._element,sp,{relatedTarget:i}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new _o().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ja),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ga),this._element.classList.remove(Ja),I.trigger(this._element,rp,{relatedTarget:i})},this._element,!0))}hide(){this._isShown&&(I.trigger(this._element,ip).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Xa),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Ga,Xa),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new _o().reset(),I.trigger(this._element,Za)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const i=!!this._config.backdrop;return new Fa({className:"offcanvas-backdrop",isVisible:i,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:i?()=>{this._config.backdrop!=="static"?this.hide():I.trigger(this._element,Qa)}:null})}_initializeFocusTrap(){return new ja({trapElement:this._element})}_addEventListeners(){I.on(this._element,ap,i=>{i.key==="Escape"&&(this._config.keyboard?this.hide():I.trigger(this._element,Qa))})}static jQueryInterface(i){return this.each(function(){const a=vn.getOrCreateInstance(this,i);if(typeof i=="string"){if(a[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);a[i](this)}})}}I.on(document,lp,'[data-bs-toggle="offcanvas"]',function(f){const i=P.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&f.preventDefault(),p(this))return;I.one(i,Za,()=>{d(this)&&this.focus()});const a=P.findOne(Ya);a&&a!==i&&vn.getInstance(a).hide(),vn.getOrCreateInstance(i).toggle(this)}),I.on(window,np,()=>{for(const f of P.find(Ya))vn.getOrCreateInstance(f).show()}),I.on(window,op,()=>{for(const f of P.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(f).position!=="fixed"&&vn.getOrCreateInstance(f).hide()}),ne(vn),$(vn);const ec={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},fp=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),dp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,hp=(f,i)=>{const a=f.nodeName.toLowerCase();return i.includes(a)?!fp.has(a)||!!dp.test(f.nodeValue):i.filter(m=>m instanceof RegExp).some(m=>m.test(a))},pp={allowList:ec,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},mp={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},gp={entry:"(string|element|function|null)",selector:"(string|element)"};class _p extends it{constructor(i){super(),this._config=this._getConfig(i)}static get Default(){return pp}static get DefaultType(){return mp}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(i=>this._resolvePossibleFunction(i)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(i){return this._checkContent(i),this._config.content={...this._config.content,...i},this}toHtml(){const i=document.createElement("div");i.innerHTML=this._maybeSanitize(this._config.template);for(const[w,A]of Object.entries(this._config.content))this._setContent(i,A,w);const a=i.children[0],m=this._resolvePossibleFunction(this._config.extraClass);return m&&a.classList.add(...m.split(" ")),a}_typeCheckConfig(i){super._typeCheckConfig(i),this._checkContent(i.content)}_checkContent(i){for(const[a,m]of Object.entries(i))super._typeCheckConfig({selector:a,entry:m},gp)}_setContent(i,a,m){const w=P.findOne(m,i);w&&((a=this._resolvePossibleFunction(a))?u(a)?this._putElementInTemplate(h(a),w):this._config.html?w.innerHTML=this._maybeSanitize(a):w.textContent=a:w.remove())}_maybeSanitize(i){return this._config.sanitize?(function(a,m,w){if(!a.length)return a;if(w&&typeof w=="function")return w(a);const A=new window.DOMParser().parseFromString(a,"text/html"),T=[].concat(...A.body.querySelectorAll("*"));for(const H of T){const q=H.nodeName.toLowerCase();if(!Object.keys(m).includes(q)){H.remove();continue}const ee=[].concat(...H.attributes),te=[].concat(m["*"]||[],m[q]||[]);for(const Y of ee)hp(Y,te)||H.removeAttribute(Y.nodeName)}return A.body.innerHTML})(i,this._config.allowList,this._config.sanitizeFn):i}_resolvePossibleFunction(i){return D(i,[void 0,this])}_putElementInTemplate(i,a){if(this._config.html)return a.innerHTML="",void a.append(i);a.textContent=i.textContent}}const bp=new Set(["sanitize","allowList","sanitizeFn"]),vo="fade",Qr="show",vp=".tooltip-inner",tc=".modal",nc="hide.bs.modal",er="hover",yo="focus",wo="click",yp={AUTO:"auto",TOP:"top",RIGHT:B()?"left":"right",BOTTOM:"bottom",LEFT:B()?"right":"left"},wp={allowList:ec,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ep={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Yn extends k{constructor(i,a){if(Ra===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(i,a),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return wp}static get DefaultType(){return Ep}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),I.off(this._element.closest(tc),nc,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const i=I.trigger(this._element,this.constructor.eventName("show")),a=(_(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(i.defaultPrevented||!a)return;this._disposePopper();const m=this._getTipElement();this._element.setAttribute("aria-describedby",m.getAttribute("id"));const{container:w}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(w.append(m),I.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(m),m.classList.add(Qr),"ontouchstart"in document.documentElement)for(const A of[].concat(...document.body.children))I.on(A,"mouseover",v);this._queueCallback(()=>{I.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!I.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Qr),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))I.off(i,"mouseover",v);this._activeTrigger[wo]=!1,this._activeTrigger[yo]=!1,this._activeTrigger[er]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),I.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(i){const a=this._getTemplateFactory(i).toHtml();if(!a)return null;a.classList.remove(vo,Qr),a.classList.add(`bs-${this.constructor.NAME}-auto`);const m=(w=>{do w+=Math.floor(1e6*Math.random());while(document.getElementById(w));return w})(this.constructor.NAME).toString();return a.setAttribute("id",m),this._isAnimated()&&a.classList.add(vo),a}setContent(i){this._newContent=i,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(i){return this._templateFactory?this._templateFactory.changeContent(i):this._templateFactory=new _p({...this._config,content:i,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[vp]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(i){return this.constructor.getOrCreateInstance(i.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(vo)}_isShown(){return this.tip&&this.tip.classList.contains(Qr)}_createPopper(i){const a=D(this._config.placement,[this,i,this._element]),m=yp[a.toUpperCase()];return mo(this._element,i,this._getPopperConfig(m))}_getOffset(){const{offset:i}=this._config;return typeof i=="string"?i.split(",").map(a=>Number.parseInt(a,10)):typeof i=="function"?a=>i(a,this._element):i}_resolvePossibleFunction(i){return D(i,[this._element,this._element])}_getPopperConfig(i){const a={placement:i,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:m=>{this._getTipElement().setAttribute("data-popper-placement",m.state.placement)}}]};return{...a,...D(this._config.popperConfig,[void 0,a])}}_setListeners(){const i=this._config.trigger.split(" ");for(const a of i)if(a==="click")I.on(this._element,this.constructor.eventName("click"),this._config.selector,m=>{const w=this._initializeOnDelegatedTarget(m);w._activeTrigger[wo]=!(w._isShown()&&w._activeTrigger[wo]),w.toggle()});else if(a!=="manual"){const m=a===er?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),w=a===er?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");I.on(this._element,m,this._config.selector,A=>{const T=this._initializeOnDelegatedTarget(A);T._activeTrigger[A.type==="focusin"?yo:er]=!0,T._enter()}),I.on(this._element,w,this._config.selector,A=>{const T=this._initializeOnDelegatedTarget(A);T._activeTrigger[A.type==="focusout"?yo:er]=T._element.contains(A.relatedTarget),T._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},I.on(this._element.closest(tc),nc,this._hideModalHandler)}_fixTitle(){const i=this._element.getAttribute("title");i&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",i),this._element.setAttribute("data-bs-original-title",i),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(i,a){clearTimeout(this._timeout),this._timeout=setTimeout(i,a)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(i){const a=Ze.getDataAttributes(this._element);for(const m of Object.keys(a))bp.has(m)&&delete a[m];return i={...a,...typeof i=="object"&&i?i:{}},i=this._mergeConfigObj(i),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}_configAfterMerge(i){return i.container=i.container===!1?document.body:h(i.container),typeof i.delay=="number"&&(i.delay={show:i.delay,hide:i.delay}),typeof i.title=="number"&&(i.title=i.title.toString()),typeof i.content=="number"&&(i.content=i.content.toString()),i}_getDelegateConfig(){const i={};for(const[a,m]of Object.entries(this._config))this.constructor.Default[a]!==m&&(i[a]=m);return i.selector=!1,i.trigger="manual",i}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(i){return this.each(function(){const a=Yn.getOrCreateInstance(this,i);if(typeof i=="string"){if(a[i]===void 0)throw new TypeError(`No method named "${i}"`);a[i]()}})}}$(Yn);const Ap=".popover-header",Cp=".popover-body",xp={...Yn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Sp={...Yn.DefaultType,content:"(null|string|element|function)"};class Zr extends Yn{static get Default(){return xp}static get DefaultType(){return Sp}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ap]:this._getTitle(),[Cp]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(i){return this.each(function(){const a=Zr.getOrCreateInstance(this,i);if(typeof i=="string"){if(a[i]===void 0)throw new TypeError(`No method named "${i}"`);a[i]()}})}}$(Zr);const Eo=".bs.scrollspy",Tp=`activate${Eo}`,sc=`click${Eo}`,Op=`load${Eo}.data-api`,Os="active",Ao="[href]",rc=".nav-link",Rp=`${rc}, .nav-item > ${rc}, .list-group-item`,Pp={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Np={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class tr extends k{constructor(i,a){super(i,a),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Pp}static get DefaultType(){return Np}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const i of this._observableSections.values())this._observer.observe(i)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(i){return i.target=h(i.target)||document.body,i.rootMargin=i.offset?`${i.offset}px 0px -30%`:i.rootMargin,typeof i.threshold=="string"&&(i.threshold=i.threshold.split(",").map(a=>Number.parseFloat(a))),i}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(I.off(this._config.target,sc),I.on(this._config.target,sc,Ao,i=>{const a=this._observableSections.get(i.target.hash);if(a){i.preventDefault();const m=this._rootElement||window,w=a.offsetTop-this._element.offsetTop;if(m.scrollTo)return void m.scrollTo({top:w,behavior:"smooth"});m.scrollTop=w}}))}_getNewObserver(){const i={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(a=>this._observerCallback(a),i)}_observerCallback(i){const a=T=>this._targetLinks.get(`#${T.target.id}`),m=T=>{this._previousScrollData.visibleEntryTop=T.target.offsetTop,this._process(a(T))},w=(this._rootElement||document.documentElement).scrollTop,A=w>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=w;for(const T of i){if(!T.isIntersecting){this._activeTarget=null,this._clearActiveClass(a(T));continue}const H=T.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(A&&H){if(m(T),!w)return}else A||H||m(T)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const i=P.find(Ao,this._config.target);for(const a of i){if(!a.hash||p(a))continue;const m=P.findOne(decodeURI(a.hash),this._element);d(m)&&(this._targetLinks.set(decodeURI(a.hash),a),this._observableSections.set(a.hash,m))}}_process(i){this._activeTarget!==i&&(this._clearActiveClass(this._config.target),this._activeTarget=i,i.classList.add(Os),this._activateParents(i),I.trigger(this._element,Tp,{relatedTarget:i}))}_activateParents(i){if(i.classList.contains("dropdown-item"))P.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(Os);else for(const a of P.parents(i,".nav, .list-group"))for(const m of P.prev(a,Rp))m.classList.add(Os)}_clearActiveClass(i){i.classList.remove(Os);const a=P.find(`${Ao}.${Os}`,i);for(const m of a)m.classList.remove(Os)}static jQueryInterface(i){return this.each(function(){const a=tr.getOrCreateInstance(this,i);if(typeof i=="string"){if(a[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);a[i]()}})}}I.on(window,Op,()=>{for(const f of P.find('[data-bs-spy="scroll"]'))tr.getOrCreateInstance(f)}),$(tr);const Qn=".bs.tab",kp=`hide${Qn}`,Ip=`hidden${Qn}`,Lp=`show${Qn}`,Dp=`shown${Qn}`,Mp=`click${Qn}`,Fp=`keydown${Qn}`,$p=`load${Qn}`,jp="ArrowLeft",ic="ArrowRight",Bp="ArrowUp",oc="ArrowDown",Co="Home",lc="End",Zn="active",ac="fade",xo="show",cc=".dropdown-toggle",So=`:not(${cc})`,uc='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',To=`.nav-link${So}, .list-group-item${So}, [role="tab"]${So}, ${uc}`,Hp=`.${Zn}[data-bs-toggle="tab"], .${Zn}[data-bs-toggle="pill"], .${Zn}[data-bs-toggle="list"]`;class es extends k{constructor(i){super(i),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),I.on(this._element,Fp,a=>this._keydown(a)))}static get NAME(){return"tab"}show(){const i=this._element;if(this._elemIsActive(i))return;const a=this._getActiveElem(),m=a?I.trigger(a,kp,{relatedTarget:i}):null;I.trigger(i,Lp,{relatedTarget:a}).defaultPrevented||m&&m.defaultPrevented||(this._deactivate(a,i),this._activate(i,a))}_activate(i,a){i&&(i.classList.add(Zn),this._activate(P.getElementFromSelector(i)),this._queueCallback(()=>{i.getAttribute("role")==="tab"?(i.removeAttribute("tabindex"),i.setAttribute("aria-selected",!0),this._toggleDropDown(i,!0),I.trigger(i,Dp,{relatedTarget:a})):i.classList.add(xo)},i,i.classList.contains(ac)))}_deactivate(i,a){i&&(i.classList.remove(Zn),i.blur(),this._deactivate(P.getElementFromSelector(i)),this._queueCallback(()=>{i.getAttribute("role")==="tab"?(i.setAttribute("aria-selected",!1),i.setAttribute("tabindex","-1"),this._toggleDropDown(i,!1),I.trigger(i,Ip,{relatedTarget:a})):i.classList.remove(xo)},i,i.classList.contains(ac)))}_keydown(i){if(![jp,ic,Bp,oc,Co,lc].includes(i.key))return;i.stopPropagation(),i.preventDefault();const a=this._getChildren().filter(w=>!p(w));let m;if([Co,lc].includes(i.key))m=a[i.key===Co?0:a.length-1];else{const w=[ic,oc].includes(i.key);m=R(a,i.target,w,!0)}m&&(m.focus({preventScroll:!0}),es.getOrCreateInstance(m).show())}_getChildren(){return P.find(To,this._parent)}_getActiveElem(){return this._getChildren().find(i=>this._elemIsActive(i))||null}_setInitialAttributes(i,a){this._setAttributeIfNotExists(i,"role","tablist");for(const m of a)this._setInitialAttributesOnChild(m)}_setInitialAttributesOnChild(i){i=this._getInnerElement(i);const a=this._elemIsActive(i),m=this._getOuterElement(i);i.setAttribute("aria-selected",a),m!==i&&this._setAttributeIfNotExists(m,"role","presentation"),a||i.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(i,"role","tab"),this._setInitialAttributesOnTargetPanel(i)}_setInitialAttributesOnTargetPanel(i){const a=P.getElementFromSelector(i);a&&(this._setAttributeIfNotExists(a,"role","tabpanel"),i.id&&this._setAttributeIfNotExists(a,"aria-labelledby",`${i.id}`))}_toggleDropDown(i,a){const m=this._getOuterElement(i);if(!m.classList.contains("dropdown"))return;const w=(A,T)=>{const H=P.findOne(A,m);H&&H.classList.toggle(T,a)};w(cc,Zn),w(".dropdown-menu",xo),m.setAttribute("aria-expanded",a)}_setAttributeIfNotExists(i,a,m){i.hasAttribute(a)||i.setAttribute(a,m)}_elemIsActive(i){return i.classList.contains(Zn)}_getInnerElement(i){return i.matches(To)?i:P.findOne(To,i)}_getOuterElement(i){return i.closest(".nav-item, .list-group-item")||i}static jQueryInterface(i){return this.each(function(){const a=es.getOrCreateInstance(this);if(typeof i=="string"){if(a[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);a[i]()}})}}I.on(document,Mp,uc,function(f){["A","AREA"].includes(this.tagName)&&f.preventDefault(),p(this)||es.getOrCreateInstance(this).show()}),I.on(window,$p,()=>{for(const f of P.find(Hp))es.getOrCreateInstance(f)}),$(es);const kn=".bs.toast",Up=`mouseover${kn}`,Vp=`mouseout${kn}`,qp=`focusin${kn}`,Wp=`focusout${kn}`,Kp=`hide${kn}`,zp=`hidden${kn}`,Gp=`show${kn}`,Jp=`shown${kn}`,fc="hide",ei="show",ti="showing",Xp={animation:"boolean",autohide:"boolean",delay:"number"},Yp={animation:!0,autohide:!0,delay:5e3};class nr extends k{constructor(i,a){super(i,a),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Yp}static get DefaultType(){return Xp}static get NAME(){return"toast"}show(){I.trigger(this._element,Gp).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(fc),y(this._element),this._element.classList.add(ei,ti),this._queueCallback(()=>{this._element.classList.remove(ti),I.trigger(this._element,Jp),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(I.trigger(this._element,Kp).defaultPrevented||(this._element.classList.add(ti),this._queueCallback(()=>{this._element.classList.add(fc),this._element.classList.remove(ti,ei),I.trigger(this._element,zp)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ei),super.dispose()}isShown(){return this._element.classList.contains(ei)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(i,a){switch(i.type){case"mouseover":case"mouseout":this._hasMouseInteraction=a;break;case"focusin":case"focusout":this._hasKeyboardInteraction=a}if(a)return void this._clearTimeout();const m=i.relatedTarget;this._element===m||this._element.contains(m)||this._maybeScheduleHide()}_setListeners(){I.on(this._element,Up,i=>this._onInteraction(i,!0)),I.on(this._element,Vp,i=>this._onInteraction(i,!1)),I.on(this._element,qp,i=>this._onInteraction(i,!0)),I.on(this._element,Wp,i=>this._onInteraction(i,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(i){return this.each(function(){const a=nr.getOrCreateInstance(this,i);if(typeof i=="string"){if(a[i]===void 0)throw new TypeError(`No method named "${i}"`);a[i](this)}})}}return ne(nr),$(nr),{Alert:C,Button:j,Carousel:_s,Collapse:vs,Dropdown:Gt,Modal:Xn,Offcanvas:vn,Popover:Zr,ScrollSpy:tr,Tab:es,Toast:nr,Tooltip:Yn}})})(wi)),wi.exports}v0();Ke.interceptors.response.use(e=>e,e=>(e.response&&e.response.status===401&&(localStorage.removeItem("ovpmon_token"),localStorage.removeItem("ovpmon_user"),window.location.pathname!=="/login"&&(window.location.href="/login")),Promise.reject(e)));const eh=B_(nw);eh.use(Zd);eh.mount("#app");export{We as A,Gl as B,fl as C,hr as D,Ic as E,Qe as F,Nf as G,sd as H,Df as I,A0 as J,E0 as K,ng as T,gs as a,Bi as b,Se as c,E as d,lt as e,Qd as f,tt as g,cd as h,sl as i,Fr as j,we as k,Hs as l,En as m,Mi as n,Nr as o,C0 as p,_i as q,He as r,Tt as s,Ge as t,Bl as u,L_ as v,fs as w,Xt as x,ft as y,Yd as z};
|