WGDashboard/src/static/app/dist/assets/index-Ci_O9F-I.js

45 lines
210 KiB
JavaScript
Raw Normal View History

2024-11-07 18:33:39 +08:00
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BmyYiuL-.js","assets/localeText-DlbWhMBk.js","assets/message-CXsP-QZu.js","assets/dayjs.min-DK6pYUaK.js","assets/message-CmGi0ZIz.css","assets/index-zXLUk5vR.css","assets/configurationList-R4zHMO-n.js","assets/configurationList-CWcGXYWr.css","assets/settings-C9YJ-hPt.js","assets/vue-datepicker-RQYZW3hA.js","assets/settings-H5PFVa1m.css","assets/ping-jKNm30Yy.js","assets/osmap-BX-SzSvV.js","assets/osmap-CoctJCk_.css","assets/ping-DojRH9NX.css","assets/traceroute-Ca6d0L9O.js","assets/traceroute-C5JbTTY4.css","assets/newConfiguration-C1A8MVyB.js","assets/index-L60y6kc9.js","assets/restoreConfiguration-jcAWmA0j.js","assets/restoreConfiguration-C99iSlXf.css","assets/peerList-v7iRjLK-.js","assets/peerList-D1fpqVhD.css","assets/peerCreate-DuWktuo3.js","assets/peerCreate-BKh8DeBv.css","assets/signin-DfPrOWEk.js","assets/signin-DaFiOgh_.css","assets/setup-zl9tzkJ1.js","assets/totp-DKvqIuAZ.js","assets/browser-CjSdxGTc.js","assets/share-Baml-YA7.js","assets/share-B4McccvP.css"])))=>i.map(i=>d[i]);
2024-11-05 19:43:47 +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 Ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yg(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 bg={exports:{}},qe="top",st="bottom",rt="right",ze="left",jr="auto",us=[qe,st,rt,ze],xn="start",Zn="end",uc="clippingParents",co="viewport",Wn="popper",fc="reference",Hi=us.reduce(function(e,t){return e.concat([t+"-"+xn,t+"-"+Zn])},[]),uo=[].concat(us,[jr]).reduce(function(e,t){return e.concat([t,t+"-"+xn,t+"-"+Zn])},[]),dc="beforeRead",hc="read",pc="afterRead",gc="beforeMain",mc="main",_c="afterMain",vc="beforeWrite",Ec="write",yc="afterWrite",bc=[dc,hc,pc,gc,mc,_c,vc,Ec,yc];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 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 Ct(e){return e.split("-")[0]}var wn=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=Nn(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-05 19:43:47 +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),I=Number.parseFloat(u);return!v&&!I?0:(i=i.split(",")[0],u=u.split(",")[0],(Number.parseFloat(i)+Number.parseFloat(u))*c)},x=m=>{m.dispatchEvent(new Event(d))},C=m=>!m||typeof m!="object"?!1:(typeof m.jquery<"u"&&(m=m[0]),typeof m.nodeType<"u"),D=m=>C(m)?m.jquery?m[0]:m:typeof m=="string"&&m.length>0?document.querySelector(f(m)):null,P=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},V=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",k=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?k(m.parentNode):null},M=()=>{},b=m=>{m.offsetHeight},y=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,S=[],T=m=>{document.readyState==="loading"?(S.length||document.addEventListener("DOMContentLoaded",()=>{for(const i of S)i()}),S.push(m)):m()},A=()=>document.documentElement.dir==="rtl",w=m=>{T(()=>{const i=y();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)}})},j=(m,i=[],u=m)=>typeof m=="function"?m(...i):u,B=(m,i,u=!0)=>{if(!u){j(m);return}const I=E(i)+5;let Y=!1;const U=({target:le})=>{le===i&&(Y=!0,i.removeEventListener(d,U),j(m))};i.addEventListener(d,U),setTimeout(()=>{Y||x(i)},I)},Q=(m,i,u,v)=>{const I=m.length;let Y=m.indexOf(i);return Y===-1?!u&&v?m[I-1]:m[0]:(Y+=u?1:-1,v&&(Y=(Y+I)%I),m[Math.max(0,Math.min(Y,I-1))])},oe=/[^.]*(?=\..*)\.|.*/,he=/\..*/,te=/::\d+$/,Z={};let ce=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}::${ce++}`||m.uidEvent||ce++}function be(m){const i=De(m);return m.uidEvent=i,Z[i]=Z[i]||{},Z[i]}function et(m,i){return function u(v){return ge(v,{delegateTarget:m}),u.oneOff&&$.off(m,v.type,i),i.apply(m,[v])}}function Be(m,i,u){return function v(I){const Y=m.querySelectorAll(i);for(let{target:U}=I;U&&U!==this;U=U.parentNode)for(const le of Y)if(le===U)return ge(I,{delegateTarget:U}),v.oneOff&&$.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-05 19:43:47 +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,wo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dm=Object.prototype.hasOwnProperty,pe=(e,t)=>dm.call(e,t),ne=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",ye=e=>typeof e=="string",xt=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]",Co=e=>ye(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=ye(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(ne(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ye(s)?Em(s):qr(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ye(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(ye(e))t=e;else if(ne(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 Wy(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ye(t)&&(e.class=zr(t)),n&&(e.style=qr(n)),e}const ym="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bm=Ao(ym);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=xt(e),s=xt(t),n||s)return e===t;if(n=ne(e),s=ne(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=>ye(e)?e:e==null?"":ne(e)||ve(e)&&(e.toString===Pc||!ie(e.toString))?Bc(e)?jc(e.value):JSON.stringify(e,Kc,2):String(e),Kc=(e,t)=>Bc(t)?Kc(e,t.value):qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[wi(s,o)+" =>"]=r,n),{})}:fs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>wi(n))}:xt(t)?wi(t):ve(t)&&!ne(t)&&!Mc(t)?String(t):t,wi=(e,t="")=>{var n;return xt(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-05 19:43:47 +08:00
**/let Ye;class Wc{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 Wc(e)}function Yc(){return Ye}function Tm(e,t=!1){Ye&&Ye.cleanups.push(e)}let Ee;const Ci=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,Ci.has(this)&&(Ci.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)No(t);this.deps=this.depsTail=void 0,Xa(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ci.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ki(this)&&this.run()}get dirty(){return Ki(this)}}let qc=0,xs,Ns;function zc(e,t=!1){if(e.flags|=8,t){e.next=Ns,Ns=e;return}e.next=xs,xs=e}function Oo(){qc++}function xo(){if(--qc>0)return;if(Ns){let t=Ns;for(Ns=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;xs;){let t=xs;for(xs=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),No(s),wm(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Ki(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&&!Ki(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 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 wm(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 Cm{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-05 19:43:47 +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(ne(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){ne(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 Ne=null,_u=null;function Pr(e){const t=Ne;return Ne=e,_u=e&&e.type.__scopeId||null,t}function wr(e,t=Ne,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 Yy(e,t){if(Ne===null)return e;const n=si(Ne),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 yn(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 ye(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:x,createText:C,createComment:D}}=d,P=$s(t.props);let{shapeFlag:V,children:k,dynamicChildren:M}=t;if(e==null){const b=t.el=C(""),y=t.anchor=C("");E(b,n,s),E(y,n,s);const S=(A,w)=>{V&16&&(r&&r.isCE&&(r.ce._teleportTarget=A),f(k,A,w,r,o,a,l,c))},T=()=>{const A=t.target=Yi(t.props,x),w=yu(A,t,C,E);A&&(a!=="svg"&&sl(A)?a="svg":a!=="mathml"&&rl(A)&&(a="mathml"),P||(S(A,w),Cr(t)))};P&&(S(n,y),Cr(t)),s_(t.props)?Je(T,o):T()}else{t.el=e.el,t.targetStart=e.targetStart;const b=t.anchor=e.anchor,y=t.target=e.target,S=t.targetAnchor=e.targetAnchor,T=$s(e.props),A=T?n:y,w=T?b:S;if(a==="svg"||sl(y)?a="svg":(a==="mathml"||rl(y))&&(a="mathml"),M?(p(e.dynamicChildren,M,A,r,o,a,l),Wo(e,t,!0)):c||h(e,t,A,w,r,o,a,l,!1),P)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vr(t,n,b,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Yi(t.props,x);j&&vr(t,j,null,d,0)}else T&&vr(t,y,S,d,1);Cr(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-05 19:43:47 +08:00
**/let to;const yl=typeof window<"u"&&window.trustedTypes;if(yl)try{to=yl.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,bl=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{bl.innerHTML=rf(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=bl.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",bs="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=[])=>{ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},Al=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function lf(e){const t={};for(const B in e)B in of||(t[B]=e[B]);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,x=Ev(r),C=x&&x[0],D=x&&x[1],{onBeforeEnter:P,onEnter:V,onEnterCancelled:k,onLeave:M,onLeaveCancelled:b,onBeforeAppear:y=P,onAppear:S=V,onAppearCancelled:T=k}=t,A=(B,Q,oe)=>{qt(B,Q?f:l),qt(B,Q?d:a),oe&&oe()},w=(B,Q)=>{B._isLeaving=!1,qt(B,h),qt(B,E),qt(B,p),Q&&Q()},j=B=>(Q,oe)=>{const he=B?S:V,te=()=>A(Q,B,oe);An(he,[Q,te]),Tl(()=>{qt(Q,B?c:o),Rt(Q,B?f:l),Al(he)||wl(Q,s,C,te)})};return Oe(t,{onBeforeEnter(B){An(P,[B]),Rt(B,o),Rt(B,a)},onBeforeAppear(B){An(y,[B]),Rt(B,c),Rt(B,d)},onEnter:j(!1),onAppear:j(!0),onLeave(B,Q){B._isLeaving=!0;const oe=()=>w(B,Q);Rt(B,h),Rt(B,p),uf(),Tl(()=>{B._isLeaving&&(qt(B,h),Rt(B,E),Al(M)||wl(B,s,D,oe))}),An(M,[B,oe])},onEnterCancelled(B){A(B,!1),An(k,[B])},onAppearCancelled(B){A(B,!0),An(T,[B])},onLeaveCancelled(B){w(B),An(b,[B])}})}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 yv=0;function wl(e,t,n,s){const r=e._endId=++yv,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=x=>(n[x]||"").split(", "),r=s(`${Yt}Delay`),o=s(`${Yt}Duration`),a=Cl(r,o),l=s(`${bs}Delay`),c=s(`${bs}Duration`),d=Cl(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-05 19:43:47 +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 Kn(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=yf(e,d,t,n,s,!0),c}function yf(e,t,n={},s,r,o){let a;const l=zt({actions:{}},n),c={deep:!0};let d,f,h=[],p=[],E;const x=s.state.value[e];!o&&!x&&(s.state.value[e]={}),Sn({});let C;function D(T){let A;d=f=!1,typeof T=="function"?(T(s.state.value[e]),A={type:Rs.patchFunction,storeId:e,events:E}):(ro(s.state.value[e],T),A={type:Rs.patchObject,payload:T,storeId:e,events:E});const w=C=Symbol();Zr().then(()=>{C===w&&(d=!0)}),f=!0,Kn(h,A,s.state.value[e])}const P=o?function(){const{state:A}=n,w=A?A():{};this.$patch(j=>{zt(j,w)})}:Ef;function V(){a.stop(),h=[],p=[],s._s.delete(e)}const k=(T,A="")=>{if(jl in T)return T[Mi]=A,T;const w=function(){ri(s);const j=Array.from(arguments),B=[],Q=[];function oe(Z){B.push(Z)}function he(Z){Q.push(Z)}Kn(p,{args:j,name:w[Mi],store:b,after:oe,onError:he});let te;try{te=T.apply(this&&this.$id===e?this:b,j)}catch(Z){throw Kn(Q,Z),Z}return te instanceof Promise?te.then(Z=>(Kn(B,Z),Z)).catch(Z=>(Kn(Q,Z),Promise.reject(Z))):(Kn(B,te),te)};return w[jl]=!0,w[Mi]=A,w},M={_p:s,$id:e,$onAction:Bl.bind(null,p),$patch:D,$reset:P,$subscribe(T,A={}){const w=Bl(h,T,A.detached,()=>j()),j=a.run(()=>Qn(()=>s.state.value[e],B=>{(A.flush==="sync"?f:d)&&T({storeId:e,type:Rs.direct,events:E},B)},zt({},c,A)));return w},$dispose:V},b=Ys(M);s._s.set(e,b);const S=(s._a&&s._a.runWithContext||eE)(()=>s._e.run(()=>(a=Uc()).run(()=>t({action:k}))));for(const T in S){const A=S[T];if(Te(A)&&!sE(A)||nn(A))o||(x&&nE(A)&&(Te(A)?A.value=x[T]:ro(A,x[T])),s.state.value[e][T]=A);else if(typeof A=="function"){const w=k(A,T);S[T]=w,l.actions[T]=A}}return zt(b,S),zt(fe(b),S),Object.defineProperty(b,"$state",{get:()=>s.state.value[e],set:T=>{D(A=>{zt(A,T)})}}),s._p.forEach(T=>{zt(b,a.run(()=>T({store:b,app:s._a,pinia:s,options:l})))}),x&&o&&n.hydrate&&n.hydrate(b.$state,x),d=!0,f=!0,b}function bf(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?yf(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-05 19:43:47 +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 me=Object.assign;function ki(e,t){const n={};for(const s in t){const r=t[s];n[s]=yt(r)?r.map(e):e(r)}return n}const Is=()=>{},yt=Array.isArray,Tf=/#/g,oE=/&/g,aE=/\//g,lE=/=/g,cE=/\?/g,wf=/\+/g,uE=/%5B/g,fE=/%5D/g,Cf=/%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(Cf,"^")}function io(e){return zo(e).replace(wf,"%2B").replace(pE,"+").replace(Tf,"%23").replace(oE,"%26").replace(dE,"`").replace(Sf,"{").replace(Of,"}").replace(Cf,"^")}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=/\/$/,yE=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=wE(s??t,n),{fullPath:s+(o&&"?")+o+a,path:s,query:r,hash:js(a)}}function bE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kl(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])&&xf(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 xf(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 yt(e)?Wl(e,t):yt(t)?Wl(t,e):e===t}function Wl(e,t){return yt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function wE(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 Ks;(function(e){e.pop="pop",e.push="push"})(Ks||(Ks={}));var Ps;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ps||(Ps={}));function CE(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),yE(e)}const SE=/^[^#]+#/;function OE(e,t){return e.replace(SE,"#")+t}function xE(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 NE(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=xE(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 Nf(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),Kl(c,"")}return Kl(n,e)+s+r}function RE(e,t,n,s){let r=[],o=[],a=null;const l=({state:p})=>{const E=Nf(e,location),x=n.value,C=t.value;let D=0;if(p){if(n.value=E,t.value=p,a&&a===x){a=null;return}D=C?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-07 18:33:39 +08:00
`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),uy=new RegExp(`(?:^${mt}$)|(?:^${ai}$)`),fy=new RegExp(`^${mt}$`),dy=new RegExp(`^${ai}$`),li=e=>e&&e.exact?uy:new RegExp(`(?:${tn(e)}${mt}${tn(e)})|(?:${tn(e)}${ai}${tn(e)})`,"g");li.v4=e=>e&&e.exact?fy:new RegExp(`${tn(e)}${mt}${tn(e)}`,"g");li.v6=e=>e&&e.exact?dy: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])`,hy=new RegExp(`^${Mf}$`),py=new RegExp(`^${kf}$`),gy=({exact:e}=Pf)=>e?hy:new RegExp(Mf,"g"),my=({exact:e}=Pf)=>e?py:new RegExp(kf,"g"),Vf=gy({exact:!0}),Ff=my({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]])},_y=bf("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)}}}),vy=async()=>{let e=!1;return await Br("/api/validateAuthentication",{},t=>{e=t.status}),e},hs=iy({history:ME(),scrollBehavior(){document.querySelector("main")!==null&&document.querySelector("main").scrollTo({top:0})},routes:[{name:"Index",path:"/",component:()=>Qe(()=>import("./index-BmyYiuL-.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:()=>Qe(()=>import("./configurationList-R4zHMO-n.js"),__vite__mapDeps([6,1,7])),meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:()=>Qe(()=>import("./settings-C9YJ-hPt.js"),__vite__mapDeps([8,1,3,9,10])),meta:{title:"Settings"}},{path:"/ping",name:"Ping",component:()=>Qe(()=>import("./ping-jKNm30Yy.js"),__vite__mapDeps([11,1,12,13,14]))},{path:"/traceroute",name:"Traceroute",component:()=>Qe(()=>import("./traceroute-Ca6d0L9O.js"),__vite__mapDeps([15,12,13,1,16]))},{name:"New Configuration",path:"/new_configuration",component:()=>Qe(()=>import("./newConfiguration-C1A8MVyB.js"),__vite__mapDeps([17,18,1])),meta:{title:"Ne
2024-11-05 19:43:47 +08:00
*
* Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/(function(){function e(b){var y=new Float64Array(16);if(b)for(var S=0;S<b.length;++S)y[S]=b[S];return y}function t(b,y){for(var S,T=e(),A=e(),w=0;w<16;++w)A[w]=y[w];n(A),n(A),n(A);for(var j=0;j<2;++j){T[0]=A[0]-65517;for(var w=1;w<15;++w)T[w]=A[w]-65535-(T[w-1]>>16&1),T[w-1]&=65535;T[15]=A[15]-32767-(T[14]>>16&1),S=T[15]>>16&1,T[14]&=65535,s(A,T,1-S)}for(var w=0;w<16;++w)b[2*w]=A[w]&255,b[2*w+1]=A[w]>>8}function n(b){for(var y=0;y<16;++y)b[(y+1)%16]+=(y<15?1:38)*Math.floor(b[y]/65536),b[y]&=65535}function s(b,y,S){for(var T,A=~(S-1),w=0;w<16;++w)T=A&(b[w]^y[w]),b[w]^=T,y[w]^=T}function r(b,y,S){for(var T=0;T<16;++T)b[T]=y[T]+S[T]|0}function o(b,y,S){for(var T=0;T<16;++T)b[T]=y[T]-S[T]|0}function a(b,y,S){for(var T=new Float64Array(31),A=0;A<16;++A)for(var w=0;w<16;++w)T[A+w]+=y[A]*S[w];for(var A=0;A<15;++A)T[A]+=38*T[A+16];for(var A=0;A<16;++A)b[A]=T[A];n(b),n(b)}function l(b,y){for(var S=e(),T=0;T<16;++T)S[T]=y[T];for(var T=253;T>=0;--T)a(S,S,S),T!==2&&T!==4&&a(S,S,y);for(var T=0;T<16;++T)b[T]=S[T]}function c(b){b[31]=b[31]&127|64,b[0]&=248}function d(b){for(var y,S=new Uint8Array(32),T=e([1]),A=e([9]),w=e(),j=e([1]),B=e(),Q=e(),oe=e([56129,1]),he=e([9]),te=0;te<32;++te)S[te]=b[te];c(S);for(var te=254;te>=0;--te)y=S[te>>>3]>>>(te&7)&1,s(T,A,y),s(w,j,y),r(B,T,w),o(T,T,w),r(w,A,j),o(A,A,j),a(j,B,B),a(Q,T,T),a(T,w,T),a(w,A,B),r(B,T,w),o(T,T,w),a(A,T,T),o(w,j,Q),a(T,w,oe),r(T,T,j),a(w,w,T),a(T,j,Q),a(j,A,he),a(A,B,B),s(T,A,y),s(w,j,y);return l(w,w),a(T,T,w),t(S,T),S}function f(){var b=new Uint8Array(32);return window.crypto.getRandomValues(b),b}function h(){var b=f();return c(b),b}function p(b,y){for(var S=Uint8Array.from([y[0]>>2&63,(y[0]<<4|y[1]>>4)&63,(y[1]<<2|y[2]>>6)&63,y[2]&63]),T=0;T<4;++T)b[T]=S[T]+65+(25-S[T]>>8&6)-(51-S[T]>>8&75)-(61-S[T]>>8&15)+(62-S[T]>>8&3)}function E(b){var y,S=new Uint8Array(44);for(y=0;y<32/3;++y)p(S.subarray(y*4),b.subarray(y*3));return p(S.subarray(y*4),Uint8Array.from([b[y*3+0],b[y*3+1],0])),S[43]=61,String.fromCharCode.apply(null,S)}function x(b){let y=window.atob(b),S=y.length,T=new Uint8Array(S);for(let w=0;w<S;w++)T[w]=y.charCodeAt(w);return new Uint8Array(T.buffer)}function C(b,y){b.push(y&255,y>>>8&255,y>>>16&255,y>>>24&255)}function D(b,y){b.push(y&255,y>>>8&255)}function P(b,y){for(var S=0;S<y.length;++S)b.push(y[S]&255)}function V(b){for(var y=unescape(encodeURIComponent(b)),S=new Uint8Array(y.length),T=0;T<y.length;++T)S[T]=y.charCodeAt(T);return S}function k(b){if(!k.table){k.table=[];for(var y=0,S=0;S<256;y=++S){for(var T=0;T<8;++T)y=y&1?3988292384^y>>>1:y>>>1;k.table[S]=y}}for(var A=-1,w=0;w<b.length;++w)A=A>>>8^k.table[(A^b[w])&255];return(A^-1)>>>0}function M(b){for(var y=[],S=[],T=0,A=0;A<b.length;++A){var w=V(b[A].fileName),j=V(b[A].file),B=k(j);C(y,67324752),D(y,20),D(y,0),D(y,0),D(y,0),D(y,0),C(y,B),C(y,j.length),C(y,j.length),D(y,w.length),D(y,0),P(y,w),P(y,j),C(S,33639248),D(S,0),D(S,20),D(S,0),D(S,0),D(S,0),D(S,0),C(S,B),C(S,j.length),C(S,j.length),D(S,w.length),D(S,0),D(S,0),D(S,0),D(S,0),C(S,32),C(S,T),P(S,w),T+=30+j.length+w.length}return P(y,S),C(y,101010256),D(y,0),D(y,0),D(y,b.length),D(y,b.length),C(y,S.length),C(y,T),D(y,0),Uint8Array.from(y)}window.wireguard={generateKeypair:function(){var b=h(),y=d(b),S=f();return{publicKey:E(y),privateKey:E(b),presharedKey:E(S)}},generatePublicKey:function(b){return b=x(b),E(d(b))},generateZipFiles:function(b,y){var S=b.data,T=M(S),A=new Blob([T],{type:"application/zip"}),w=document.createElement("a");w.download=y,w.href=URL.createObjectURL(A),w.style.display="none",document.body.appendChild(w),w.click(),document.body.removeChild(w)}}})();const Ty=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},wy={class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},Cy={class:"container-fluid d-flex text-body align-items-center"},Sy={key:0,class:"ms-auto text-muted"},Oy={__name:"App",setup(e){const t=fn();t.initCrossServerConfiguration(),window.IS_WGDASHBOARD_DESKTOP&&(t.IsElectronApp=!0,t.CrossServerConfiguration.Enable=!0),Qn(t.CrossServerConfiguration,()=>{t.syncCrossServerConfiguration()},{deep:!0});const n