42 lines
206 KiB
JavaScript
Raw Normal View History

2024-11-03 18:35:21 +08:00
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index2.js","assets/localeText.js","assets/message.js","assets/dayjs.min.js","assets/message.css","assets/index2.css","assets/configurationList.js","assets/configurationList.css","assets/settings.js","assets/vue-datepicker.js","assets/settings.css","assets/ping.js","assets/osmap.js","assets/osmap.css","assets/ping.css","assets/traceroute.js","assets/traceroute.css","assets/newConfiguration.js","assets/index3.js","assets/wireguard.js","assets/restoreConfiguration.js","assets/restoreConfiguration.css","assets/peerList.js","assets/browser.js","assets/peerCreate.js","assets/peerCreate.css","assets/peerList.css","assets/signin.js","assets/signin.css","assets/setup.js","assets/totp.js","assets/share.js","assets/share.css"])))=>i.map(i=>d[i]);
2024-11-03 20:45:59 +08:00
(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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).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)}})();var Eg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bg(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:function(){return e[s]}})}),n}var yg={exports:{}},qe="top",st="bottom",rt="right",ze="left",jr="auto",us=[qe,st,rt,ze],Nn="start",Zn="end",uc="clippingParents",co="viewport",Kn="popper",fc="reference",Hi=us.reduce(function(e,t){return e.concat([t+"-"+Nn,t+"-"+Zn])},[]),uo=[].concat(us,[jr]).reduce(function(e,t){return e.concat([t,t+"-"+Nn,t+"-"+Zn])},[]),dc="beforeRead",hc="read",pc="afterRead",gc="beforeMain",mc="main",_c="afterMain",vc="beforeWrite",Ec="write",bc="afterWrite",yc=[dc,hc,pc,gc,mc,_c,vc,Ec,bc];function Ot(e){return e?(e.nodeName||"").toLowerCase():null}function it(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xn(e){var t=it(e).Element;return e instanceof t||e instanceof Element}function ct(e){var t=it(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function fo(e){if(typeof ShadowRoot>"u")return!1;var t=it(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ag(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},r=t.attributes[n]||{},o=t.elements[n];!ct(o)||!Ot(o)||(Object.assign(o.style,s),Object.keys(r).forEach(function(a){var l=r[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function Tg(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var r=t.elements[s],o=t.attributes[s]||{},a=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),l=a.reduce(function(c,d){return c[d]="",c},{});!ct(r)||!Ot(r)||(Object.assign(r.style,l),Object.keys(o).forEach(function(c){r.removeAttribute(c)}))})}}const ho={name:"applyStyles",enabled:!0,phase:"write",fn:Ag,effect:Tg,requires:["computeStyles"]};function wt(e){return e.split("-")[0]}var Cn=Math.max,$r=Math.min,es=Math.round;function Bi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ac(){return!/^((?!chrome|android).)*safari/i.test(Bi())}function ts(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),r=1,o=1;t&&ct(e)&&(r=e.offsetWidth>0&&es(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&es(s.height)/e.offsetHeight||1);var a=xn(e)?it(e):window,l=a.visualViewport,c=!Ac()&&n,d=(s.left+(c&&l?l.offsetLeft:0))/r,f=(s.top+(c&&l?l.offsetTop:0))/o,h=s.width/r,p=s.height/o;return{width:h,height:p,top:f,right:d+h,bottom:f+p,left:d,x:d,y:f}}function po(e){var t=ts(e),n=e.offsetWidth,s=
2024-10-04 16:58:47 +08:00
* Bootstrap v5.3.3 (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2024-11-03 20:45:59 +08:00
*/(function(e,t){(function(n,s){e.exports=s(um)})(Eg,function(n){function s(m){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(m){for(const u in m)if(u!=="default"){const v=Object.getOwnPropertyDescriptor(m,u);Object.defineProperty(i,u,v.get?v:{enumerable:!0,get:()=>m[u]})}}return i.default=m,Object.freeze(i)}const r=s(n),o=new Map,a={set(m,i,u){o.has(m)||o.set(m,new Map);const v=o.get(m);if(!v.has(i)&&v.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(v.keys())[0]}.`);return}v.set(i,u)},get(m,i){return o.has(m)&&o.get(m).get(i)||null},remove(m,i){if(!o.has(m))return;const u=o.get(m);u.delete(i),u.size===0&&o.delete(m)}},l=1e6,c=1e3,d="transitionend",f=m=>(m&&window.CSS&&window.CSS.escape&&(m=m.replace(/#([^\s"#']+)/g,(i,u)=>`#${CSS.escape(u)}`)),m),h=m=>m==null?`${m}`:Object.prototype.toString.call(m).match(/\s([a-z]+)/i)[1].toLowerCase(),p=m=>{do m+=Math.floor(Math.random()*l);while(document.getElementById(m));return m},E=m=>{if(!m)return 0;let{transitionDuration:i,transitionDelay:u}=window.getComputedStyle(m);const v=Number.parseFloat(i),x=Number.parseFloat(u);return!v&&!x?0:(i=i.split(",")[0],u=u.split(",")[0],(Number.parseFloat(i)+Number.parseFloat(u))*c)},y=m=>{m.dispatchEvent(new Event(d))},A=m=>!m||typeof m!="object"?!1:(typeof m.jquery<"u"&&(m=m[0]),typeof m.nodeType<"u"),M=m=>A(m)?m.jquery?m[0]:m:typeof m=="string"&&m.length>0?document.querySelector(f(m)):null,$=m=>{if(!A(m)||m.getClientRects().length===0)return!1;const i=getComputedStyle(m).getPropertyValue("visibility")==="visible",u=m.closest("details:not([open])");if(!u)return i;if(u!==m){const v=m.closest("summary");if(v&&v.parentNode!==u||v===null)return!1}return i},L=m=>!m||m.nodeType!==Node.ELEMENT_NODE||m.classList.contains("disabled")?!0:typeof m.disabled<"u"?m.disabled:m.hasAttribute("disabled")&&m.getAttribute("disabled")!=="false",P=m=>{if(!document.documentElement.attachShadow)return null;if(typeof m.getRootNode=="function"){const i=m.getRootNode();return i instanceof ShadowRoot?i:null}return m instanceof ShadowRoot?m:m.parentNode?P(m.parentNode):null},D=()=>{},O=m=>{m.offsetHeight},F=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Y=[],K=m=>{document.readyState==="loading"?(Y.length||document.addEventListener("DOMContentLoaded",()=>{for(const i of Y)i()}),Y.push(m)):m()},w=()=>document.documentElement.dir==="rtl",k=m=>{K(()=>{const i=F();if(i){const u=m.NAME,v=i.fn[u];i.fn[u]=m.jQueryInterface,i.fn[u].Constructor=m,i.fn[u].noConflict=()=>(i.fn[u]=v,m.jQueryInterface)}})},z=(m,i=[],u=m)=>typeof m=="function"?m(...i):u,H=(m,i,u=!0)=>{if(!u){z(m);return}const x=E(i)+5;let W=!1;const j=({target:ae})=>{ae===i&&(W=!0,i.removeEventListener(d,j),z(m))};i.addEventListener(d,j),setTimeout(()=>{W||y(i)},x)},Q=(m,i,u,v)=>{const x=m.length;let W=m.indexOf(i);return W===-1?!u&&v?m[x-1]:m[0]:(W+=u?1:-1,v&&(W=(W+x)%x),m[Math.max(0,Math.min(W,x-1))])},ce=/[^.]*(?=\..*)\.|.*/,me=/\..*/,re=/::\d+$/,Z={};let le=1;const we={mouseenter:"mouseover",mouseleave:"mouseout"},He=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 De(m,i){return i&&`${i}::${le++}`||m.uidEvent||le++}function ye(m){const i=De(m);return m.uidEvent=i,Z[i]=Z[i]||{},Z[i]}function et(m,i){return function u(v){return pe(v,{delegateTarget:m}),u.oneOff&&C.off(m,v.type,i),i.apply(m,[v])}}function Be(m,i,u){return function v(x){const W=m.querySelectorAll(i);for(let{target:j}=x;j&&j!==this;j=j.parentNode)for(const ae of W)if(ae===j)return pe(x,{delegateTarget:j}),v.oneOff&&C.of
2024-10-04 16:58:47 +08:00
* @vue/shared v3.5.11
2024-06-18 03:16:42 +08:00
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-11-03 20:45:59 +08:00
**//*! #__NO_SIDE_EFFECTS__ */function Ao(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _e={},Gn=[],St=()=>{},fm=()=>!1,Ur=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),To=e=>e.startsWith("onUpdate:"),Oe=Object.assign,Co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dm=Object.prototype.hasOwnProperty,he=(e,t)=>dm.call(e,t),te=Array.isArray,qn=e=>Us(e)==="[object Map]",fs=e=>Us(e)==="[object Set]",qa=e=>Us(e)==="[object Date]",ie=e=>typeof e=="function",be=e=>typeof e=="string",Nt=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Ic=e=>(ve(e)||ie(e))&&ie(e.then)&&ie(e.catch),Pc=Object.prototype.toString,Us=e=>Pc.call(e),hm=e=>Us(e).slice(8,-1),Mc=e=>Us(e)==="[object Object]",wo=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Os=Ao(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pm=/-(\w)/g,ht=Yr(e=>e.replace(pm,(t,n)=>n?n.toUpperCase():"")),gm=/\B([A-Z])/g,ln=Yr(e=>e.replace(gm,"-$1").toLowerCase()),Gr=Yr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ti=Yr(e=>e?`on${Gr(e)}`:""),sn=(e,t)=>!Object.is(e,t),Tr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},kc=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Dr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Vc=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let za;const Fc=()=>za||(za=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qr(e){if(te(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=be(s)?Em(s):qr(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(be(e)||ve(e))return e}const mm=/;(?![^(]*\))/g,_m=/:([^]+)/,vm=/\/\*[^]*?\*\//g;function Em(e){const t={};return e.replace(vm,"").split(mm).forEach(n=>{if(n){const s=n.split(_m);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function zr(e){let t="";if(be(e))t=e;else if(te(e))for(let n=0;n<e.length;n++){const s=zr(e[n]);s&&(t+=s+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Kb(e){if(!e)return null;let{class:t,style:n}=e;return t&&!be(t)&&(e.class=zr(t)),n&&(e.style=qr(n)),e}const bm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ym=Ao(bm);function Hc(e){return!!e||e===""}function Am(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=$n(e[s],t[s]);return n}function $n(e,t){if(e===t)return!0;let n=qa(e),s=qa(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Nt(e),s=Nt(t),n||s)return e===t;if(n=te(e),s=te(t),n||s)return n&&s?Am(e,t):!1;if(n=ve(e),s=ve(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 a in e){const l=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(l&&!c||!l&&c||!$n(e[a],t[a]))return!1}}return String(e)===String(t)}function So(e,t){return e.findIndex(n=>$n(n,t))}const Bc=e=>!!(e&&e.__v_isRef===!0),jc=e=>be(e)?e:e==null?"":te(e)||ve(e)&&(e.toString===Pc||!ie(e.toString))?Bc(e)?jc(e.value):JSON.stringify(e,Wc,2):String(e),Wc=(e,t)=>Bc(t)?Wc(e,t.value):qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Ci(s,o)+" =>"]=r,n),{})}:fs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ci(n))}:Nt(t)?Ci(t):ve(t)&&!te(t)&&!Mc(t)?String(t):t,Ci=(e,t="")=>{var n;return Nt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
2024-10-04 16:58:47 +08:00
* @vue/reactivity v3.5.11
2024-06-18 03:16:42 +08:00
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-11-03 20:45:59 +08:00
**/let Ye;class Kc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.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=Ye;try{return Ye=this,t()}finally{Ye=n}}}on(){Ye=this}off(){Ye=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Uc(e){return new Kc(e)}function Yc(){return Ye}function Tm(e,t=!1){Ye&&Ye.cleanups.push(e)}let Ee;const wi=new WeakSet;class Gc{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,Ye&&Ye.active&&Ye.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,wi.has(this)&&(wi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||zc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Xa(this),Xc(this);const t=Ee,n=vt;Ee=this,vt=!0;try{return this.fn()}finally{Qc(this),Ee=t,vt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)xo(t);this.deps=this.depsTail=void 0,Xa(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?wi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Wi(this)&&this.run()}get dirty(){return Wi(this)}}let qc=0,Ns,xs;function zc(e,t=!1){if(e.flags|=8,t){e.next=xs,xs=e;return}e.next=Ns,Ns=e}function Oo(){qc++}function No(){if(--qc>0)return;if(xs){let t=xs;for(xs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ns;){let t=Ns;for(Ns=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 Xc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qc(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),xo(s),Cm(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Wi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Jc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Jc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ms))return;e.globalVersion=Ms;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Wi(e)){e.flags&=-3;return}const n=Ee,s=vt;Ee=e,vt=!0;try{Xc(e);const r=e.fn(e._value);(t.version===0||sn(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Ee=n,vt=s,Qc(e),e.flags&=-3}}function xo(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),!n.subs&&n.computed){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)xo(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Cm(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let vt=!0;const Zc=[];function cn(){Zc.push(vt),vt=!1}function un(){const e=Zc.pop();vt=e===void 0?!0:e}function Xa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ee;Ee=void 0;try{t()}finally{Ee=n}}}let Ms=0;class wm{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 $o{constructor(t){this.compute
2024-10-04 16:58:47 +08:00
* @vue/runtime-core v3.5.11
2024-06-18 03:16:42 +08:00
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-11-03 20:45:59 +08:00
**/function Gs(e,t,n,s){try{return s?e(...s):e()}catch(r){ds(r,t,n)}}function Et(e,t,n,s){if(ie(e)){const r=Gs(e,t,n,s);return r&&Ic(r)&&r.catch(o=>{ds(o,t,n)}),r}if(te(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Et(e[o],t,n,s));return r}}function ds(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||_e;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,c,d)===!1)return}l=l.parent}if(o){cn(),Gs(o,null,10,[e,c,d]),un();return}}t_(e,n,r,s,a)}function t_(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Ge=[];let Tt=-1;const zn=[];let Xt=null,Un=0;const hu=Promise.resolve();let Ir=null;function Zr(e){const t=Ir||hu;return e?t.then(this?e.bind(this):e):t}function n_(e){let t=Tt+1,n=Ge.length;for(;t<n;){const s=t+n>>>1,r=Ge[s],o=Vs(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Mo(e){if(!(e.flags&1)){const t=Vs(e),n=Ge[Ge.length-1];!n||!(e.flags&2)&&t>=Vs(n)?Ge.push(e):Ge.splice(n_(t),0,e),e.flags|=1,pu()}}function pu(){Ir||(Ir=hu.then(mu))}function Ui(e){te(e)?zn.push(...e):Xt&&e.id===-1?Xt.splice(Un+1,0,e):e.flags&1||(zn.push(e),e.flags|=1),pu()}function nl(e,t,n=Tt+1){for(;n<Ge.length;n++){const s=Ge[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ge.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function gu(e){if(zn.length){const t=[...new Set(zn)].sort((n,s)=>Vs(n)-Vs(s));if(zn.length=0,Xt){Xt.push(...t);return}for(Xt=t,Un=0;Un<Xt.length;Un++){const n=Xt[Un];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,Un=0}}const Vs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function mu(e){try{for(Tt=0;Tt<Ge.length;Tt++){const t=Ge[Tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Gs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Tt<Ge.length;Tt++){const t=Ge[Tt];t&&(t.flags&=-2)}Tt=-1,Ge.length=0,gu(),Ir=null,(Ge.length||zn.length)&&mu()}}let xe=null,_u=null;function Pr(e){const t=xe;return xe=e,_u=e&&e.type.__scopeId||null,t}function Cr(e,t=xe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&ml(-1);const o=Pr(t);let a;try{a=e(...r)}finally{Pr(o),s._d&&ml(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function Yb(e,t){if(xe===null)return e;const n=si(xe),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,a,l,c=_e]=t[r];o&&(ie(o)&&(o={mounted:o,updated:o}),o.deep&&kt(a),s.push({dir:o,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function bn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){const l=r[a];o&&(l.oldValue=o[a].value);let c=l.dir[s];c&&(cn(),Et(c,n,8,[e.el,l,e,t]),un())}}const vu=Symbol("_vte"),Eu=e=>e.__isTeleport,$s=e=>e&&(e.disabled||e.disabled===""),s_=e=>e&&(e.defer||e.defer===""),sl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,rl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yi=(e,t)=>{const n=e&&e.to;return be(n)?t?t(n):null:n},r_={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,a,l,c,d){const{mc:f,pc:h,pbc:p,o:{insert:E,querySelector:y,createText:A,createComment:M}}=d,$=$s(t.props);let{shapeFlag:L,children:P,dynamicChildren:D}=t;if(e==null){const O=t.el=A(""),F=t.anchor=A("");E(O,n,s),E(F,n,s);const Y=(w,k)=>{L&16&&(r&&r.isCE&&(r.ce._teleportTarget=w),f(P,w,k,r,o,a,l,c))},K=()=>{const w=t.target=Yi(t.props,y),k=bu(w,t,A,E);w&&(a!=="svg"&&sl(w)?a="svg":a!=="mathml"&&rl(w)&&(a="mathml"),$||(Y(w,k),wr(t)))};$&&(Y(n,F),wr(t)),s_(t.props)?Je(K,o):K()}else{t.el=e.el,t.targetStart=e.targetStart;const O=t.anchor=e.anchor,F=t.target=e.target,Y=t.targetAnchor=e.targetAnchor,K=$s(e.props),w=K?n:F,k=K?O:Y;if(a==="svg"||sl(F)?a="svg":(a==="mathml"||rl(F))&&(a="mathml"),D?(p(e.dynamicChildren,D,w,r,o,a,l),Ko(e,t,!0)):c||h(e,t,w,k,r,o,a,l,!1),$)K?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vr(t,n,O,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=Yi(t.props,y);z&&vr(t,z,null,d,0)}else K&&vr(t,F,Y,d,1);wr(t)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:a,children:l,anchor:c,targetStart:d,targetAnchor:
2024-10-04 16:58:47 +08:00
* @vue/runtime-dom v3.5.11
2024-06-18 03:16:42 +08:00
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-11-03 20:45:59 +08:00
**/let to;const bl=typeof window<"u"&&window.trustedTypes;if(bl)try{to=bl.createPolicy("vue",{createHTML:e=>e})}catch{}const rf=to?e=>to.createHTML(e):e=>e,pv="http://www.w3.org/2000/svg",gv="http://www.w3.org/1998/Math/MathML",Pt=typeof document<"u"?document:null,yl=Pt&&Pt.createElement("template"),mv={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"?Pt.createElementNS(pv,e):t==="mathml"?Pt.createElementNS(gv,e):n?Pt.createElement(e,{is:n}):Pt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Pt.createTextNode(e),createComment:e=>Pt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{yl.innerHTML=rf(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=yl.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Yt="transition",ys="animation",os=Symbol("_vtc"),of={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},af=Oe({},Au,of),_v=e=>(e.displayName="Transition",e.props=af,e),vv=_v((e,{slots:t})=>qo(a_,lf(e),t)),An=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},Al=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function lf(e){const t={};for(const H in e)H in of||(t[H]=e[H]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:d=a,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:E=`${n}-leave-to`}=e,y=Ev(r),A=y&&y[0],M=y&&y[1],{onBeforeEnter:$,onEnter:L,onEnterCancelled:P,onLeave:D,onLeaveCancelled:O,onBeforeAppear:F=$,onAppear:Y=L,onAppearCancelled:K=P}=t,w=(H,Q,ce)=>{qt(H,Q?f:l),qt(H,Q?d:a),ce&&ce()},k=(H,Q)=>{H._isLeaving=!1,qt(H,h),qt(H,E),qt(H,p),Q&&Q()},z=H=>(Q,ce)=>{const me=H?Y:L,re=()=>w(Q,H,ce);An(me,[Q,re]),Tl(()=>{qt(Q,H?c:o),Rt(Q,H?f:l),Al(me)||Cl(Q,s,A,re)})};return Oe(t,{onBeforeEnter(H){An($,[H]),Rt(H,o),Rt(H,a)},onBeforeAppear(H){An(F,[H]),Rt(H,c),Rt(H,d)},onEnter:z(!1),onAppear:z(!0),onLeave(H,Q){H._isLeaving=!0;const ce=()=>k(H,Q);Rt(H,h),Rt(H,p),uf(),Tl(()=>{H._isLeaving&&(qt(H,h),Rt(H,E),Al(D)||Cl(H,s,M,ce))}),An(D,[H,ce])},onEnterCancelled(H){w(H,!1),An(P,[H])},onAppearCancelled(H){w(H,!0),An(K,[H])},onLeaveCancelled(H){k(H),An(O,[H])}})}function Ev(e){if(e==null)return null;if(ve(e))return[Ri(e.enter),Ri(e.leave)];{const t=Ri(e);return[t,t]}}function Ri(e){return Vc(e)}function Rt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[os]||(e[os]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[os];n&&(n.delete(t),n.size||(e[os]=void 0))}function Tl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bv=0;function Cl(e,t,n,s){const r=e._endId=++bv,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:l,propCount:c}=cf(e,t);if(!a)return s();const d=a+"end";let f=0;const h=()=>{e.removeEventListener(d,p),o()},p=E=>{E.target===e&&++f>=c&&h()};setTimeout(()=>{f<c&&h()},l+1),e.addEventListener(d,p)}function cf(e,t){const n=window.getComputedStyle(e),s=y=>(n[y]||"").split(", "),r=s(`${Yt}Delay`),o=s(`${Yt}Duration`),a=wl(r,o),l=s(`${ys}Delay`),c=s(`${ys}Duration`),d=wl(l,c);let f=null,h=0,p=0;t===Yt?a>0&&(f=Yt,h=a,p=o.length
2024-10-04 16:58:47 +08:00
* pinia v2.2.4
* (c) 2024 Eduardo San Martin Morote
* @license MIT
2024-11-03 20:45:59 +08:00
*/let _f;const ri=e=>_f=e,vf=Symbol();function so(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Rs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Rs||(Rs={}));function Zv(){const e=Uc(!0),t=e.run(()=>Sn({}));let n=[],s=[];const r=Jr({install(o){ri(r),r._a=o,o.provide(vf,r),o.config.globalProperties.$pinia=r,s.forEach(a=>n.push(a)),s=[]},use(o){return!this._a&&!Jv?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Ef=()=>{};function Bl(e,t,n,s=Ef){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&Yc()&&Tm(r),r}function Wn(e,...t){e.slice().forEach(n=>{n(...t)})}const eE=e=>e(),jl=Symbol(),Mi=Symbol();function ro(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];so(r)&&so(s)&&e.hasOwnProperty(n)&&!Te(s)&&!nn(s)?e[n]=ro(r,s):e[n]=s}return e}const tE=Symbol();function nE(e){return!so(e)||!e.hasOwnProperty(tE)}const{assign:zt}=Object;function sE(e){return!!(Te(e)&&e.effect)}function rE(e,t,n,s){const{state:r,actions:o,getters:a}=t,l=n.state.value[e];let c;function d(){l||(n.state.value[e]=r?r():{});const f=qm(n.state.value[e]);return zt(f,o,Object.keys(a||{}).reduce((h,p)=>(h[p]=Jr(nt(()=>{ri(n);const E=n._s.get(e);return a[p].call(E,E)})),h),{}))}return c=bf(e,d,t,n,s,!0),c}function bf(e,t,n={},s,r,o){let a;const l=zt({actions:{}},n),c={deep:!0};let d,f,h=[],p=[],E;const y=s.state.value[e];!o&&!y&&(s.state.value[e]={}),Sn({});let A;function M(K){let w;d=f=!1,typeof K=="function"?(K(s.state.value[e]),w={type:Rs.patchFunction,storeId:e,events:E}):(ro(s.state.value[e],K),w={type:Rs.patchObject,payload:K,storeId:e,events:E});const k=A=Symbol();Zr().then(()=>{A===k&&(d=!0)}),f=!0,Wn(h,w,s.state.value[e])}const $=o?function(){const{state:w}=n,k=w?w():{};this.$patch(z=>{zt(z,k)})}:Ef;function L(){a.stop(),h=[],p=[],s._s.delete(e)}const P=(K,w="")=>{if(jl in K)return K[Mi]=w,K;const k=function(){ri(s);const z=Array.from(arguments),H=[],Q=[];function ce(Z){H.push(Z)}function me(Z){Q.push(Z)}Wn(p,{args:z,name:k[Mi],store:O,after:ce,onError:me});let re;try{re=K.apply(this&&this.$id===e?this:O,z)}catch(Z){throw Wn(Q,Z),Z}return re instanceof Promise?re.then(Z=>(Wn(H,Z),Z)).catch(Z=>(Wn(Q,Z),Promise.reject(Z))):(Wn(H,re),re)};return k[jl]=!0,k[Mi]=w,k},D={_p:s,$id:e,$onAction:Bl.bind(null,p),$patch:M,$reset:$,$subscribe(K,w={}){const k=Bl(h,K,w.detached,()=>z()),z=a.run(()=>Qn(()=>s.state.value[e],H=>{(w.flush==="sync"?f:d)&&K({storeId:e,type:Rs.direct,events:E},H)},zt({},c,w)));return k},$dispose:L},O=Ys(D);s._s.set(e,O);const Y=(s._a&&s._a.runWithContext||eE)(()=>s._e.run(()=>(a=Uc()).run(()=>t({action:P}))));for(const K in Y){const w=Y[K];if(Te(w)&&!sE(w)||nn(w))o||(y&&nE(w)&&(Te(w)?w.value=y[K]:ro(w,y[K])),s.state.value[e][K]=w);else if(typeof w=="function"){const k=P(w,K);Y[K]=k,l.actions[K]=w}}return zt(O,Y),zt(fe(O),Y),Object.defineProperty(O,"$state",{get:()=>s.state.value[e],set:K=>{M(w=>{zt(w,K)})}}),s._p.forEach(K=>{zt(O,a.run(()=>K({store:O,app:s._a,pinia:s,options:l})))}),y&&o&&n.hydrate&&n.hydrate(O.$state,y),d=!0,f=!0,O}function yf(e,t,n){let s,r;const o=typeof t=="function";typeof e=="string"?(s=e,r=o?n:t):(r=e,s=e.id);function a(l,c){const d=S_();return l=l||(d?ft(vf,null):null),l&&ri(l),l=_f,l._s.has(s)||(o?bf(s,t,r,l):rE(s,r,l)),l._s.get(s)}return a.$id=s,a}/*!
2024-10-04 16:58:47 +08:00
* vue-router v4.4.5
* (c) 2024 Eduardo San Martin Morote
* @license MIT
2024-11-03 20:45:59 +08:00
*/const Yn=typeof document<"u";function Af(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function iE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Af(e.default)}const ge=Object.assign;function ki(e,t){const n={};for(const s in t){const r=t[s];n[s]=bt(r)?r.map(e):e(r)}return n}const Is=()=>{},bt=Array.isArray,Tf=/#/g,oE=/&/g,aE=/\//g,lE=/=/g,cE=/\?/g,Cf=/\+/g,uE=/%5B/g,fE=/%5D/g,wf=/%5E/g,dE=/%60/g,Sf=/%7B/g,hE=/%7C/g,Of=/%7D/g,pE=/%20/g;function zo(e){return encodeURI(""+e).replace(hE,"|").replace(uE,"[").replace(fE,"]")}function gE(e){return zo(e).replace(Sf,"{").replace(Of,"}").replace(wf,"^")}function io(e){return zo(e).replace(Cf,"%2B").replace(pE,"+").replace(Tf,"%23").replace(oE,"%26").replace(dE,"`").replace(Sf,"{").replace(Of,"}").replace(wf,"^")}function mE(e){return io(e).replace(lE,"%3D")}function _E(e){return zo(e).replace(Tf,"%23").replace(cE,"%3F")}function vE(e){return e==null?"":_E(e).replace(aE,"%2F")}function js(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const EE=/\/$/,bE=e=>e.replace(EE,"");function Vi(e,t,n="/"){let s,r={},o="",a="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),a=t.slice(l,t.length)),s=CE(s??t,n),{fullPath:s+(o&&"?")+o+a,path:s,query:r,hash:js(a)}}function yE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Wl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function AE(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&ls(t.matched[s],n.matched[r])&&Nf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ls(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Nf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!TE(e[n],t[n]))return!1;return!0}function TE(e,t){return bt(e)?Kl(e,t):bt(t)?Kl(t,e):e===t}function Kl(e,t){return bt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function CE(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,a,l;for(a=0;a<s.length;a++)if(l=s[a],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(a).join("/")}const Gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ws;(function(e){e.pop="pop",e.push="push"})(Ws||(Ws={}));var Ps;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ps||(Ps={}));function wE(e){if(!e)if(Yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),bE(e)}const SE=/^[^#]+#/;function OE(e,t){return e.replace(SE,"#")+t}function NE(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 ii=()=>({left:window.scrollX,top:window.scrollY});function xE(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=NE(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 Ul(e,t){return(history.state?history.state.position-t:-1)+e}const oo=new Map;function $E(e,t){oo.set(e,t)}function DE(e){const t=oo.get(e);return oo.delete(e),t}let LE=()=>location.protocol+"//"+location.host;function xf(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),Wl(c,"")}return Wl(n,e)+s+r}function RE(e,t,n,s){let r=[],o=[],a=null;const l=({state:p})=>{const E=xf(e,location),y=n.value,A=t.value;let M=0;if(p){if(n.value=E,t.value=p,a&&a===y){a=null;return}M=A?p.position
2024-04-03 01:16:56 -04:00
(?:
2024-11-03 20:45:59 +08:00
(?:${Se}:){7}(?:${Se}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:${Se}:){6}(?:${mt}|:${Se}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:${Se}:){5}(?::${mt}|(?::${Se}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:${Se}:){4}(?:(?::${Se}){0,1}:${mt}|(?::${Se}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:${Se}:){3}(?:(?::${Se}){0,2}:${mt}|(?::${Se}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:${Se}:){2}(?:(?::${Se}){0,3}:${mt}|(?::${Se}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:${Se}:){1}(?:(?::${Se}){0,4}:${mt}|(?::${Se}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::${Se}){0,5}:${mt}|(?::${Se}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
2024-04-03 01:16:56 -04:00
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
2024-11-03 20:45:59 +08:00
`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),ub=new RegExp(`(?:^${mt}$)|(?:^${ai}$)`),fb=new RegExp(`^${mt}$`),db=new RegExp(`^${ai}$`),li=e=>e&&e.exact?ub:new RegExp(`(?:${tn(e)}${mt}${tn(e)})|(?:${tn(e)}${ai}${tn(e)})`,"g");li.v4=e=>e&&e.exact?fb:new RegExp(`${tn(e)}${mt}${tn(e)}`,"g");li.v6=e=>e&&e.exact?db:new RegExp(`${tn(e)}${ai}${tn(e)}`,"g");const Pf={exact:!1},Mf=`${li.v4().source}\\/(3[0-2]|[12]?[0-9])`,kf=`${li.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,hb=new RegExp(`^${Mf}$`),pb=new RegExp(`^${kf}$`),gb=({exact:e}=Pf)=>e?hb:new RegExp(Mf,"g"),mb=({exact:e}=Pf)=>e?pb:new RegExp(kf,"g"),Vf=gb({exact:!0}),Ff=mb({exact:!0}),Qo=e=>Vf.test(e)?4:Ff.test(e)?6:0;Qo.v4=e=>Vf.test(e);Qo.v6=e=>Ff.test(e);const Mt=e=>{const t=fn();if(t.Locale===null)return e;const s=Object.keys(t.Locale).filter(r=>e.match(new RegExp("^"+r+"$","gi"))!==null);return s.length===0||s.length>1||t.Locale[s[0]].length===0?e:e.replace(new RegExp(s[0],"gi"),t.Locale[s[0]])},_b=yf("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:"",ConfigurationListInterval:void 0,PeerScheduleJobs:{dropdowns:{Field:[{display:Mt("Total Received"),value:"total_receive",unit:"GB",type:"number"},{display:Mt("Total Sent"),value:"total_sent",unit:"GB",type:"number"},{display:Mt("Total Usage"),value:"total_data",unit:"GB",type:"number"},{display:Mt("Date"),value:"date",type:"date"}],Operator:[{display:Mt("larger than"),value:"lgt"}],Action:[{display:Mt("Restrict Peer"),value:"restrict"},{display:Mt("Delete Peer"),value:"delete"}]}}}),actions:{async getConfigurations(){await Br("/api/getWireguardConfigurations",{},e=>{e.status&&(this.Configurations=e.data)})},regexCheckIP(e){return/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/.test(e)},checkCIDR(e){return Qo(e)!==0},checkWGKeyLength(e){return console.log(e),/^[A-Za-z0-9+/]{43}=?=?$/.test(e)}}}),vb=async()=>{let e=!1;return await Br("/api/validateAuthentication",{},t=>{e=t.status}),e},hs=ib({history:ME(),scrollBehavior(){document.querySelector("main")!==null&&document.querySelector("main").scrollTo({top:0})},routes:[{name:"Index",path:"/",component:()=>Qe(()=>import("./index2.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:()=>Qe(()=>import("./configurationList.js"),__vite__mapDeps([6,1,7])),meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:()=>Qe(()=>import("./settings.js"),__vite__mapDeps([8,1,3,9,10])),meta:{title:"Settings"}},{path:"/ping",name:"Ping",component:()=>Qe(()=>import("./ping.js"),__vite__mapDeps([11,1,12,13,14]))},{path:"/traceroute",name:"Traceroute",component:()=>Qe(()=>import("./traceroute.js"),__vite__mapDeps([15,12,13,1,16]))},{name:"New Configuration",path:"/new_configuration",component:()=>Qe(()=>import("./newConfiguration.js"),__vite__mapDeps([17,18,19,1])),meta:{title:"New Configuration"}},{name:"Restore Configuration",p