42 lines
205 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]);
(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 _g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vg(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 Eg={exports:{}},qe="top",st="bottom",rt="right",ze="left",Fr="auto",cs=[qe,st,rt,ze],On="start",Jn="end",oc="clippingParents",lo="viewport",Wn="popper",ac="reference",Fi=cs.reduce(function(e,t){return e.concat([t+"-"+On,t+"-"+Jn])},[]),co=[].concat(cs,[Fr]).reduce(function(e,t){return e.concat([t,t+"-"+On,t+"-"+Jn])},[]),lc="beforeRead",cc="read",uc="afterRead",fc="beforeMain",dc="main",hc="afterMain",pc="beforeWrite",gc="write",mc="afterWrite",_c=[lc,cc,uc,fc,dc,hc,pc,gc,mc];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 Nn(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 uo(e){if(typeof ShadowRoot>"u")return!1;var t=it(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bg(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 yg(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,h){return c[h]="",c},{});!ct(r)||!Ot(r)||(Object.assign(r.style,l),Object.keys(o).forEach(function(c){r.removeAttribute(c)}))})}}const fo={name:"applyStyles",enabled:!0,phase:"write",fn:bg,effect:yg,requires:["computeStyles"]};function wt(e){return e.split("-")[0]}var Cn=Math.max,Or=Math.min,Zn=Math.round;function Hi(){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 vc(){return!/^((?!chrome|android).)*safari/i.test(Hi())}function es(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&&Zn(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Zn(s.height)/e.offsetHeight||1);var a=Nn(e)?it(e):window,l=a.visualViewport,c=!vc()&&n,h=(s.left+(c&&l?l.offsetLeft:0))/r,f=(s.top+(c&&l?l.offsetTop:0))/o,d=s.width/r,p=s.height/o;return{width:d,height:p,top:f,right:h+d,bottom:f+p,left:h,x:h,y:f}}function ho(e){var t=es(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 18:35:21 +08:00
*/(function(e,t){(function(n,s){e.exports=s(lm)})(_g,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,h="transitionend",f=m=>(m&&window.CSS&&window.CSS.escape&&(m=m.replace(/#([^\s"#']+)/g,(i,u)=>`#${CSS.escape(u)}`)),m),d=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)},A=m=>{m.dispatchEvent(new Event(h))},C=m=>!m||typeof m!="object"?!1:(typeof m.jquery<"u"&&(m=m[0]),typeof m.nodeType<"u"),k=m=>C(m)?m.jquery?m[0]:m:typeof m=="string"&&m.length>0?document.querySelector(f(m)):null,I=m=>{if(!C(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},R=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",F=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?F(m.parentNode):null},$=()=>{},O=m=>{m.offsetHeight},V=()=>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",P=m=>{K(()=>{const i=V();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(h,j),z(m))};i.addEventListener(h,j),setTimeout(()=>{W||A(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 Ce={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&&T.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&&T.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 18:35:21 +08:00
**//*! #__NO_SIDE_EFFECTS__ */function yo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _e={},Yn=[],St=()=>{},cm=()=>!1,jr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ao=e=>e.startsWith("onUpdate:"),Se=Object.assign,To=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},um=Object.prototype.hasOwnProperty,he=(e,t)=>um.call(e,t),te=Array.isArray,Gn=e=>Ws(e)==="[object Map]",us=e=>Ws(e)==="[object Set]",Ua=e=>Ws(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",$c=e=>(ve(e)||ie(e))&&ie(e.then)&&ie(e.catch),Dc=Object.prototype.toString,Ws=e=>Dc.call(e),fm=e=>Ws(e).slice(8,-1),Lc=e=>Ws(e)==="[object Object]",Co=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ws=yo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dm=/-(\w)/g,ht=Wr(e=>e.replace(dm,(t,n)=>n?n.toUpperCase():"")),hm=/\B([A-Z])/g,ln=Wr(e=>e.replace(hm,"-$1").toLowerCase()),Kr=Wr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ti=Wr(e=>e?`on${Kr(e)}`:""),sn=(e,t)=>!Object.is(e,t),br=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Rc=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Nr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ic=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let Ya;const Pc=()=>Ya||(Ya=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ur(e){if(te(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=be(s)?_m(s):Ur(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(be(e)||ve(e))return e}const pm=/;(?![^(]*\))/g,gm=/:([^]+)/,mm=/\/\*[^]*?\*\//g;function _m(e){const t={};return e.replace(mm,"").split(pm).forEach(n=>{if(n){const s=n.split(gm);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Yr(e){let t="";if(be(e))t=e;else if(te(e))for(let n=0;n<e.length;n++){const s=Yr(e[n]);s&&(t+=s+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Bb(e){if(!e)return null;let{class:t,style:n}=e;return t&&!be(t)&&(e.class=Yr(t)),n&&(e.style=Ur(n)),e}const vm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Em=yo(vm);function Mc(e){return!!e||e===""}function bm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=xn(e[s],t[s]);return n}function xn(e,t){if(e===t)return!0;let n=Ua(e),s=Ua(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?bm(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||!xn(e[a],t[a]))return!1}}return String(e)===String(t)}function wo(e,t){return e.findIndex(n=>xn(n,t))}const kc=e=>!!(e&&e.__v_isRef===!0),Vc=e=>be(e)?e:e==null?"":te(e)||ve(e)&&(e.toString===Dc||!ie(e.toString))?kc(e)?Vc(e.value):JSON.stringify(e,Fc,2):String(e),Fc=(e,t)=>kc(t)?Fc(e,t.value):Gn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Ci(s,o)+" =>"]=r,n),{})}:us(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ci(n))}:Nt(t)?Ci(t):ve(t)&&!te(t)&&!Lc(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 18:35:21 +08:00
**/let Ye;class Hc{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 Bc(e){return new Hc(e)}function jc(){return Ye}function ym(e,t=!1){Ye&&Ye.cleanups.push(e)}let Ee;const wi=new WeakSet;class Wc{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||Uc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ga(this),Yc(this);const t=Ee,n=vt;Ee=this,vt=!0;try{return this.fn()}finally{Gc(this),Ee=t,vt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)No(t);this.deps=this.depsTail=void 0,Ga(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?wi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ji(this)&&this.run()}get dirty(){return ji(this)}}let Kc=0,Ss,Os;function Uc(e,t=!1){if(e.flags|=8,t){e.next=Os,Os=e;return}e.next=Ss,Ss=e}function So(){Kc++}function Oo(){if(--Kc>0)return;if(Os){let t=Os;for(Os=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ss;){let t=Ss;for(Ss=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 Yc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gc(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),No(s),Am(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ji(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Is))return;e.globalVersion=Is;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ji(e)){e.flags&=-3;return}const n=Ee,s=vt;Ee=e,vt=!0;try{Yc(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,Gc(e),e.flags&=-3}}function No(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)No(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Am(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 Ga(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ee;Ee=void 0;try{t()}finally{Ee=n}}}let Is=0;class Tm{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 xo{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 18:35:21 +08:00
**/function Us(e,t,n,s){try{return s?e(...s):e()}catch(r){Ys(r,t,n)}}function Et(e,t,n,s){if(ie(e)){const r=Us(e,t,n,s);return r&&$c(r)&&r.catch(o=>{Ys(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 Ys(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,h=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,c,h)===!1)return}l=l.parent}if(o){cn(),Us(o,null,10,[e,c,h]),un();return}}Zm(e,n,r,s,a)}function Zm(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Ge=[];let Tt=-1;const qn=[];let Xt=null,Kn=0;const cu=Promise.resolve();let Dr=null;function Qr(e){const t=Dr||cu;return e?t.then(this?e.bind(this):e):t}function e_(e){let t=Tt+1,n=Ge.length;for(;t<n;){const s=t+n>>>1,r=Ge[s],o=Ms(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Po(e){if(!(e.flags&1)){const t=Ms(e),n=Ge[Ge.length-1];!n||!(e.flags&2)&&t>=Ms(n)?Ge.push(e):Ge.splice(e_(t),0,e),e.flags|=1,uu()}}function uu(){Dr||(Dr=cu.then(du))}function Ki(e){te(e)?qn.push(...e):Xt&&e.id===-1?Xt.splice(Kn+1,0,e):e.flags&1||(qn.push(e),e.flags|=1),uu()}function Za(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 fu(e){if(qn.length){const t=[...new Set(qn)].sort((n,s)=>Ms(n)-Ms(s));if(qn.length=0,Xt){Xt.push(...t);return}for(Xt=t,Kn=0;Kn<Xt.length;Kn++){const n=Xt[Kn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,Kn=0}}const Ms=e=>e.id==null?e.flags&2?-1:1/0:e.id;function du(e){try{for(Tt=0;Tt<Ge.length;Tt++){const t=Ge[Tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Us(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,fu(),Dr=null,(Ge.length||qn.length)&&du()}}let Oe=null,hu=null;function Lr(e){const t=Oe;return Oe=e,hu=e&&e.type.__scopeId||null,t}function yr(e,t=Oe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&dl(-1);const o=Lr(t);let a;try{a=e(...r)}finally{Lr(o),s._d&&dl(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function Wb(e,t){if(Oe===null)return e;const n=si(Oe),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 pu=Symbol("_vte"),gu=e=>e.__isTeleport,Ns=e=>e&&(e.disabled||e.disabled===""),t_=e=>e&&(e.defer||e.defer===""),el=e=>typeof SVGElement<"u"&&e instanceof SVGElement,tl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ui=(e,t)=>{const n=e&&e.to;return be(n)?t?t(n):null:n},n_={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,a,l,c,h){const{mc:f,pc:d,pbc:p,o:{insert:E,querySelector:A,createText:C,createComment:k}}=h,I=Ns(t.props);let{shapeFlag:R,children:F,dynamicChildren:$}=t;if(e==null){const O=t.el=C(""),V=t.anchor=C("");E(O,n,s),E(V,n,s);const Y=(w,P)=>{R&16&&(r&&r.isCE&&(r.ce._teleportTarget=w),f(F,w,P,r,o,a,l,c))},K=()=>{const w=t.target=Ui(t.props,A),P=mu(w,t,C,E);w&&(a!=="svg"&&el(w)?a="svg":a!=="mathml"&&tl(w)&&(a="mathml"),I||(Y(w,P),Ar(t)))};I&&(Y(n,V),Ar(t)),t_(t.props)?Je(K,o):K()}else{t.el=e.el,t.targetStart=e.targetStart;const O=t.anchor=e.anchor,V=t.target=e.target,Y=t.targetAnchor=e.targetAnchor,K=Ns(e.props),w=K?n:V,P=K?O:Y;if(a==="svg"||el(V)?a="svg":(a==="mathml"||tl(V))&&(a="mathml"),$?(p(e.dynamicChildren,$,w,r,o,a,l),Bo(e,t,!0)):c||d(e,t,w,P,r,o,a,l,!1),I)K?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gr(t,n,O,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=Ui(t.props,A);z&&gr(t,z,null,h,0)}else K&&gr(t,V,Y,h,1);Ar(t)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:a,children:l,anchor:c,targetStart:h,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 18:35:21 +08:00
**/let eo;const ml=typeof window<"u"&&window.trustedTypes;if(ml)try{eo=ml.createPolicy("vue",{createHTML:e=>e})}catch{}const nf=eo?e=>eo.createHTML(e):e=>e,fv="http://www.w3.org/2000/svg",dv="http://www.w3.org/1998/Math/MathML",Pt=typeof document<"u"?document:null,_l=Pt&&Pt.createElement("template"),hv={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(fv,e):t==="mathml"?Pt.createElementNS(dv,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{_l.innerHTML=nf(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=_l.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",Es="animation",is=Symbol("_vtc"),sf={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},rf=Se({},vu,sf),pv=e=>(e.displayName="Transition",e.props=rf,e),gv=pv((e,{slots:t})=>Uo(i_,of(e),t)),An=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},vl=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function of(e){const t={};for(const H in e)H in sf||(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:h=a,appearToClass:f=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:E=`${n}-leave-to`}=e,A=mv(r),C=A&&A[0],k=A&&A[1],{onBeforeEnter:I,onEnter:R,onEnterCancelled:F,onLeave:$,onLeaveCancelled:O,onBeforeAppear:V=I,onAppear:Y=R,onAppearCancelled:K=F}=t,w=(H,Q,ce)=>{qt(H,Q?f:l),qt(H,Q?h:a),ce&&ce()},P=(H,Q)=>{H._isLeaving=!1,qt(H,d),qt(H,E),qt(H,p),Q&&Q()},z=H=>(Q,ce)=>{const me=H?Y:R,re=()=>w(Q,H,ce);An(me,[Q,re]),El(()=>{qt(Q,H?c:o),Rt(Q,H?f:l),vl(me)||bl(Q,s,C,re)})};return Se(t,{onBeforeEnter(H){An(I,[H]),Rt(H,o),Rt(H,a)},onBeforeAppear(H){An(V,[H]),Rt(H,c),Rt(H,h)},onEnter:z(!1),onAppear:z(!0),onLeave(H,Q){H._isLeaving=!0;const ce=()=>P(H,Q);Rt(H,d),Rt(H,p),lf(),El(()=>{H._isLeaving&&(qt(H,d),Rt(H,E),vl($)||bl(H,s,k,ce))}),An($,[H,ce])},onEnterCancelled(H){w(H,!1),An(F,[H])},onAppearCancelled(H){w(H,!0),An(K,[H])},onLeaveCancelled(H){P(H),An(O,[H])}})}function mv(e){if(e==null)return null;if(ve(e))return[Li(e.enter),Li(e.leave)];{const t=Li(e);return[t,t]}}function Li(e){return Ic(e)}function Rt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[is]||(e[is]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[is];n&&(n.delete(t),n.size||(e[is]=void 0))}function El(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let _v=0;function bl(e,t,n,s){const r=e._endId=++_v,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:l,propCount:c}=af(e,t);if(!a)return s();const h=a+"end";let f=0;const d=()=>{e.removeEventListener(h,p),o()},p=E=>{E.target===e&&++f>=c&&d()};setTimeout(()=>{f<c&&d()},l+1),e.addEventListener(h,p)}function af(e,t){const n=window.getComputedStyle(e),s=A=>(n[A]||"").split(", "),r=s(`${Yt}Delay`),o=s(`${Yt}Duration`),a=yl(r,o),l=s(`${Es}Delay`),c=s(`${Es}Duration`),h=yl(l,c);let f=null,d=0,p=0;t===Yt?a>0&&(f=Yt,d=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 18:35:21 +08:00
*/let gf;const ri=e=>gf=e,mf=Symbol();function no(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ds;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ds||(Ds={}));function Xv(){const e=Bc(!0),t=e.run(()=>Xr({}));let n=[],s=[];const r=zr({install(o){ri(r),r._a=o,o.provide(mf,r),o.config.globalProperties.$pinia=r,s.forEach(a=>n.push(a)),s=[]},use(o){return!this._a&&!zv?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const _f=()=>{};function kl(e,t,n,s=_f){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&jc()&&ym(r),r}function jn(e,...t){e.slice().forEach(n=>{n(...t)})}const Qv=e=>e(),Vl=Symbol(),Pi=Symbol();function so(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];no(r)&&no(s)&&e.hasOwnProperty(n)&&!Ae(s)&&!nn(s)?e[n]=so(r,s):e[n]=s}return e}const Jv=Symbol();function Zv(e){return!no(e)||!e.hasOwnProperty(Jv)}const{assign:zt}=Object;function eE(e){return!!(Ae(e)&&e.effect)}function tE(e,t,n,s){const{state:r,actions:o,getters:a}=t,l=n.state.value[e];let c;function h(){l||(n.state.value[e]=r?r():{});const f=Ym(n.state.value[e]);return zt(f,o,Object.keys(a||{}).reduce((d,p)=>(d[p]=zr(nt(()=>{ri(n);const E=n._s.get(e);return a[p].call(E,E)})),d),{}))}return c=vf(e,h,t,n,s,!0),c}function vf(e,t,n={},s,r,o){let a;const l=zt({actions:{}},n),c={deep:!0};let h,f,d=[],p=[],E;const A=s.state.value[e];!o&&!A&&(s.state.value[e]={}),Xr({});let C;function k(K){let w;h=f=!1,typeof K=="function"?(K(s.state.value[e]),w={type:Ds.patchFunction,storeId:e,events:E}):(so(s.state.value[e],K),w={type:Ds.patchObject,payload:K,storeId:e,events:E});const P=C=Symbol();Qr().then(()=>{C===P&&(h=!0)}),f=!0,jn(d,w,s.state.value[e])}const I=o?function(){const{state:w}=n,P=w?w():{};this.$patch(z=>{zt(z,P)})}:_f;function R(){a.stop(),d=[],p=[],s._s.delete(e)}const F=(K,w="")=>{if(Vl in K)return K[Pi]=w,K;const P=function(){ri(s);const z=Array.from(arguments),H=[],Q=[];function ce(Z){H.push(Z)}function me(Z){Q.push(Z)}jn(p,{args:z,name:P[Pi],store:O,after:ce,onError:me});let re;try{re=K.apply(this&&this.$id===e?this:O,z)}catch(Z){throw jn(Q,Z),Z}return re instanceof Promise?re.then(Z=>(jn(H,Z),Z)).catch(Z=>(jn(Q,Z),Promise.reject(Z))):(jn(H,re),re)};return P[Vl]=!0,P[Pi]=w,P},$={_p:s,$id:e,$onAction:kl.bind(null,p),$patch:k,$reset:I,$subscribe(K,w={}){const P=kl(d,K,w.detached,()=>z()),z=a.run(()=>Xn(()=>s.state.value[e],H=>{(w.flush==="sync"?f:h)&&K({storeId:e,type:Ds.direct,events:E},H)},zt({},c,w)));return P},$dispose:R},O=Ks($);s._s.set(e,O);const Y=(s._a&&s._a.runWithContext||Qv)(()=>s._e.run(()=>(a=Bc()).run(()=>t({action:F}))));for(const K in Y){const w=Y[K];if(Ae(w)&&!eE(w)||nn(w))o||(A&&Zv(w)&&(Ae(w)?w.value=A[K]:so(w,A[K])),s.state.value[e][K]=w);else if(typeof w=="function"){const P=F(w,K);Y[K]=P,l.actions[K]=w}}return zt(O,Y),zt(fe(O),Y),Object.defineProperty(O,"$state",{get:()=>s.state.value[e],set:K=>{k(w=>{zt(w,K)})}}),s._p.forEach(K=>{zt(O,a.run(()=>K({store:O,app:s._a,pinia:s,options:l})))}),A&&o&&n.hydrate&&n.hydrate(O.$state,A),h=!0,f=!0,O}function Ef(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 h=T_();return l=l||(h?ft(mf,null):null),l&&ri(l),l=gf,l._s.has(s)||(o?vf(s,t,r,l):tE(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 18:35:21 +08:00
*/const Un=typeof document<"u";function bf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&bf(e.default)}const ge=Object.assign;function Mi(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 Ls=()=>{},bt=Array.isArray,yf=/#/g,sE=/&/g,rE=/\//g,iE=/=/g,oE=/\?/g,Af=/\+/g,aE=/%5B/g,lE=/%5D/g,Tf=/%5E/g,cE=/%60/g,Cf=/%7B/g,uE=/%7C/g,wf=/%7D/g,fE=/%20/g;function Yo(e){return encodeURI(""+e).replace(uE,"|").replace(aE,"[").replace(lE,"]")}function dE(e){return Yo(e).replace(Cf,"{").replace(wf,"}").replace(Tf,"^")}function ro(e){return Yo(e).replace(Af,"%2B").replace(fE,"+").replace(yf,"%23").replace(sE,"%26").replace(cE,"`").replace(Cf,"{").replace(wf,"}").replace(Tf,"^")}function hE(e){return ro(e).replace(iE,"%3D")}function pE(e){return Yo(e).replace(yf,"%23").replace(oE,"%3F")}function gE(e){return e==null?"":pE(e).replace(rE,"%2F")}function Hs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const mE=/\/$/,_E=e=>e.replace(mE,"");function ki(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=yE(s??t,n),{fullPath:s+(o&&"?")+o+a,path:s,query:r,hash:Hs(a)}}function vE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function EE(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&as(t.matched[s],n.matched[r])&&Sf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function as(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!bE(e[n],t[n]))return!1;return!0}function bE(e,t){return bt(e)?Hl(e,t):bt(t)?Hl(t,e):e===t}function Hl(e,t){return bt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function yE(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 Bs;(function(e){e.pop="pop",e.push="push"})(Bs||(Bs={}));var Rs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rs||(Rs={}));function AE(e){if(!e)if(Un){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),_E(e)}const TE=/^[^#]+#/;function CE(e,t){return e.replace(TE,"#")+t}function wE(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 SE(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=wE(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 Bl(e,t){return(history.state?history.state.position-t:-1)+e}const io=new Map;function OE(e,t){io.set(e,t)}function NE(e){const t=io.get(e);return io.delete(e),t}let xE=()=>location.protocol+"//"+location.host;function Of(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),Fl(c,"")}return Fl(n,e)+s+r}function $E(e,t,n,s){let r=[],o=[],a=null;const l=({state:p})=>{const E=Of(e,location),A=n.value,C=t.value;let k=0;if(p){if(n.value=E,t.value=p,a&&a===A){a=null;return}k=C?p.position
2024-04-03 01:16:56 -04:00
(?:
2024-11-03 18:35:21 +08:00
(?:${we}:){7}(?:${we}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:${we}:){6}(?:${mt}|:${we}|:)| // 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
(?:${we}:){5}(?::${mt}|(?::${we}){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
(?:${we}:){4}(?:(?::${we}){0,1}:${mt}|(?::${we}){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
(?:${we}:){3}(?:(?::${we}){0,2}:${mt}|(?::${we}){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
(?:${we}:){2}(?:(?::${we}){0,3}:${mt}|(?::${we}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:${we}:){1}(?:(?::${we}){0,4}:${mt}|(?::${we}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::${we}){0,5}:${mt}|(?::${we}){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 18:35:21 +08:00
`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),ab=new RegExp(`(?:^${mt}$)|(?:^${ai}$)`),lb=new RegExp(`^${mt}$`),cb=new RegExp(`^${ai}$`),li=e=>e&&e.exact?ab:new RegExp(`(?:${tn(e)}${mt}${tn(e)})|(?:${tn(e)}${ai}${tn(e)})`,"g");li.v4=e=>e&&e.exact?lb:new RegExp(`${tn(e)}${mt}${tn(e)}`,"g");li.v6=e=>e&&e.exact?cb:new RegExp(`${tn(e)}${ai}${tn(e)}`,"g");const Rf={exact:!1},If=`${li.v4().source}\\/(3[0-2]|[12]?[0-9])`,Pf=`${li.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,ub=new RegExp(`^${If}$`),fb=new RegExp(`^${Pf}$`),db=({exact:e}=Rf)=>e?ub:new RegExp(If,"g"),hb=({exact:e}=Rf)=>e?fb:new RegExp(Pf,"g"),Mf=db({exact:!0}),kf=hb({exact:!0}),qo=e=>Mf.test(e)?4:kf.test(e)?6:0;qo.v4=e=>Mf.test(e);qo.v6=e=>kf.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]])},pb=Ef("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 Vr("/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)}}}),gb=async()=>{let e=!1;return await Vr("/api/validateAuthentication",{},t=>{e=t.status}),e},fs=nb({history:RE(),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