mirror of
https://github.com/fatedier/frp.git
synced 2025-01-24 02:14:21 +00:00
33 lines
321 KiB
JavaScript
33 lines
321 KiB
JavaScript
|
var yh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var CO=yh((Mt,$t)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&o(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function Ea(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function et(e){if(ce(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Me(o)?_h(o):et(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(Me(e))return e;if(Re(e))return e}}const bh=/;(?![^(]*\))/g,wh=/:([^]+)/,Ch=/\/\*.*?\*\//gs;function _h(e){const t={};return e.replace(Ch,"").split(bh).forEach(n=>{if(n){const o=n.split(wh);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Y(e){let t="";if(Me(e))t=e;else if(ce(e))for(let n=0;n<e.length;n++){const o=Y(e[n]);o&&(t+=o+" ")}else if(Re(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Eh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Sh=Ea(Eh);function Qc(e){return!!e||e===""}function xh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Bs(e[o],t[o]);return n}function Bs(e,t){if(e===t)return!0;let n=Pi(e),o=Pi(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=br(e),o=br(t),n||o)return e===t;if(n=ce(e),o=ce(t),n||o)return n&&o?xh(e,t):!1;if(n=Re(e),o=Re(t),n||o){if(!n||!o)return!1;const r=Object.keys(e).length,s=Object.keys(t).length;if(r!==s)return!1;for(const l in e){const a=e.hasOwnProperty(l),i=t.hasOwnProperty(l);if(a&&!i||!a&&i||!Bs(e[l],t[l]))return!1}}return String(e)===String(t)}function ef(e,t){return e.findIndex(n=>Bs(n,t))}const tt=e=>Me(e)?e:e==null?"":ce(e)||Re(e)&&(e.toString===of||!me(e.toString))?JSON.stringify(e,tf,2):String(e),tf=(e,t)=>t&&t.__v_isRef?tf(e,t.value):Mo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:zs(t)?{[`Set(${t.size})`]:[...t.values()]}:Re(t)&&!ce(t)&&!rf(t)?String(t):t,Ye={},Ao=[],rt=()=>{},Th=()=>!1,Oh=/^on[^a-z]/,Hs=e=>Oh.test(e),Sa=e=>e.startsWith("onUpdate:"),ct=Object.assign,xa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ah=Object.prototype.hasOwnProperty,Oe=(e,t)=>Ah.call(e,t),ce=Array.isArray,Mo=e=>Nr(e)==="[object Map]",zs=e=>Nr(e)==="[object Set]",Pi=e=>Nr(e)==="[object Date]",me=e=>typeof e=="function",Me=e=>typeof e=="string",br=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",nf=e=>Re(e)&&me(e.then)&&me(e.catch),of=Object.prototype.toString,Nr=e=>of.call(e),Mh=e=>Nr(e).slice(8,-1),rf=e=>Nr(e)==="[object Object]",Ta=e=>Me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ls=Ea(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ds=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},$h=/-(\w)/g,Vt=Ds(e=>e.replace($h,(t,n)=>n?n.toUpperCase():"")),Rh=/\B([A-Z])/g,mo=Ds(e=>e.replace(Rh,"-$1").toLowerCase()),Ws=Ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),as=Ds(e=>e?`on${Ws(e)}`:""),wr=(e,t)=>!Object.is(e,t),is=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},bs=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ph=e=>{const t=parseFloat(e);return isNaN(t)?e:t},kh=e=>{const t=Me(e)?Number(e):NaN;return isNaN(t)?e:t};let ki;const Ih=()=>ki||(ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let At;class Lh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=At,!t&&At&&
|
||
|
height:0 !important;
|
||
|
visibility:hidden !important;
|
||
|
${$C()?"":"overflow:hidden !important;"}
|
||
|
position:absolute !important;
|
||
|
z-index:-1000 !important;
|
||
|
top:0 !important;
|
||
|
right:0 !important;
|
||
|
`,cE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function fE(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:cE.map(l=>`${l}:${t.getPropertyValue(l)}`).join(";"),paddingSize:o,borderSize:r,boxSizing:n}}function dc(e,t=1,n){var o;zt||(zt=document.createElement("textarea"),document.body.appendChild(zt));const{paddingSize:r,borderSize:s,boxSizing:l,contextStyle:a}=fE(e);zt.setAttribute("style",`${a};${uE}`),zt.value=e.value||e.placeholder||"";let i=zt.scrollHeight;const u={};l==="border-box"?i=i+s:l==="content-box"&&(i=i-r),zt.value="";const c=zt.scrollHeight-r;if(ht(t)){let f=c*t;l==="border-box"&&(f=f+r+s),i=Math.max(f,i),u.minHeight=`${f}px`}if(ht(n)){let f=c*n;l==="border-box"&&(f=f+r+s),i=Math.min(f,i)}return u.height=`${i}px`,(o=zt.parentNode)==null||o.removeChild(zt),zt=void 0,u}const dE=Xe({id:{type:String,default:void 0},size:Qo,disabled:Boolean,modelValue:{type:Ee([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ee([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:vn},prefixIcon:{type:vn},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ee([Object,Array,String]),default:()=>In({})}}),pE={[go]:e=>Me(e),input:e=>Me(e),change:e=>Me(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},hE=["role"],vE=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],gE=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],mE=ue({name:"ElInput",inheritAttrs:!1}),yE=ue({...mE,props:dE,emits:pE,setup(e,{expose:t,emit:n}){const o=e,r=gg(),s=Js(),l=A(()=>{const k={};return o.containerRole==="combobox"&&(k["aria-haspopup"]=r["aria-haspopup"],k["aria-owns"]=r["aria-owns"],k["aria-expanded"]=r["aria-expanded"]),k}),a=A(()=>[o.type==="textarea"?b.b():v.b(),v.m(h.value),v.is("disabled",p.value),v.is("exceed",pe.value),{[v.b("group")]:s.prepend||s.append,[v.bm("group","append")]:s.append,[v.bm("group","prepend")]:s.prepend,[v.m("prefix")]:s.prefix||o.prefixIcon,[v.m("suffix")]:s.suffix||o.suffixIcon||o.clearable||o.showPassword,[v.bm("suffix","password-clear")]:oe.value&&W.value},r.class]),i=A(()=>[v.e("wrapper"),v.is("focus",E.value)]),u=IC({excludeKeys:A(()=>Object.keys(l.value))}),{form:c,formItem:f}=Hr(),{inputId:d}=ci(o,{formItemContext:f}),h=No(),p=il(),v=xe("input"),b=xe("textarea"),g=ar(),C=ar(),E=R(!1),m=R(!1),M=R(!1),x=R(!1),_=R(),T=ar(o.inputStyle),F=A(()=>g.value||C.value),$=A(()=>{var k;return(k=c==null?void 0:c.statusIcon)!=null?k:!1}),N=A(()=>(f==null?void 0:f.validateState)||""),O=A(()=>N.value&&OC[N.value]),z=A(()=>x.value?wC:q1),Q=A(()=>[r.style,o.inputStyle]),K=A(()=>[o.inputStyle,T.value,{resize:o.resize}]),J=A(()=>sl(o.modelValue)?"":String(o.modelValue)),oe=A(()=>o.clearable&&!p.value&&!o.readonly&&!!J.value&&(E.value||m.value)),W=A(()=>o.showPassword&&!p.value&&!o.readonly&&!!J.value&&(!!J.value||
|
||
|
* Checks if an event is supported in the current execution environment.
|
||
|
*
|
||
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
|
* `reset`, `load`, `error`, and `select`.
|
||
|
*
|
||
|
* Borrows from Modernizr.
|
||
|
*
|
||
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
|
* @param {?boolean} capture Check if the capture phase is supported.
|
||
|
* @return {boolean} True if the event is supported.
|
||
|
* @internal
|
||
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
|
*/const w2=function(e,t){if(e&&e.addEventListener){const n=function(o){const r=b2(o);t&&Reflect.apply(t,this,[o,r])};e.addEventListener("wheel",n,{passive:!0})}},C2={beforeMount(e,t){w2(e,t.value)}},Lp={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Qo,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Np={[go]:e=>Me(e)||ht(e)||Io(e),change:e=>Me(e)||ht(e)||Io(e)},_2=({model:e,isChecked:t})=>{const n=Se(Jo,void 0),o=A(()=>{var s,l;const a=(s=n==null?void 0:n.max)==null?void 0:s.value,i=(l=n==null?void 0:n.min)==null?void 0:l.value;return!$r(a)&&e.value.length>=a&&!t.value||!$r(i)&&e.value.length<=i&&t.value});return{isDisabled:il(A(()=>(n==null?void 0:n.disabled.value)||o.value)),isLimitDisabled:o}},E2=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:r,isLabeledByFormItem:s})=>{const l=Se(Jo,void 0),{formItem:a}=Hr(),{emit:i}=je();function u(p){var v,b;return p===e.trueLabel||p===!0?(v=e.trueLabel)!=null?v:!0:(b=e.falseLabel)!=null?b:!1}function c(p,v){i("change",u(p),v)}function f(p){if(n.value)return;const v=p.target;i("change",u(v.checked),p)}async function d(p){n.value||!o.value&&!r.value&&s.value&&(p.composedPath().some(g=>g.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Ue(),c(t.value,p)))}const h=A(()=>(l==null?void 0:l.validateEvent)||e.validateEvent);return he(()=>e.modelValue,()=>{h.value&&(a==null||a.validate("change").catch(p=>void 0))}),{handleChange:f,onClickRoot:d}},S2=e=>{const t=R(!1),{emit:n}=je(),o=Se(Jo,void 0),r=A(()=>$r(o)===!1),s=R(!1);return{model:A({get(){var a,i;return r.value?(a=o==null?void 0:o.modelValue)==null?void 0:a.value:(i=e.modelValue)!=null?i:t.value},set(a){var i,u;r.value&&ce(a)?(s.value=((i=o==null?void 0:o.max)==null?void 0:i.value)!==void 0&&a.length>(o==null?void 0:o.max.value),s.value===!1&&((u=o==null?void 0:o.changeEvent)==null||u.call(o,a))):(n(go,a),t.value=a)}}),isGroup:r,isLimitExceeded:s}},x2=(e,t,{model:n})=>{const o=Se(Jo,void 0),r=R(!1),s=A(()=>{const u=n.value;return Io(u)?u:ce(u)?Re(e.label)?u.map(Ie).some(c=>Tw(c,e.label)):u.map(Ie).includes(e.label):u!=null?u===e.trueLabel:!!u}),l=No(A(()=>{var u;return(u=o==null?void 0:o.size)==null?void 0:u.value}),{prop:!0}),a=No(A(()=>{var u;return(u=o==null?void 0:o.size)==null?void 0:u.value})),i=A(()=>!!(t.default||e.label));return{checkboxButtonSize:l,isChecked:s,isFocused:r,checkboxSize:a,hasOwnLabel:i}},T2=(e,{model:t})=>{function n(){ce(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},Fp=(e,t)=>{const{formItem:n}=Hr(),{model:o,isGroup:r,isLimitExceeded:s}=S2(e),{isFocused:l,isChecked:a,checkboxButtonSize:i,checkboxSize:u,hasOwnLabel:c}=x2(e,t,{model:o}),{isDisabled:f}=_2({model:o,isChecked:a}),{inputId:d,isLabeledByFormItem:h}=ci(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:r}),{handleChange:p,onClickRoot:v}=E2(e,{model:o,isLimitExceeded:s,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return T2(e,{model:o}),{inputId:d,isLabeledByFormItem:h,isChecked:a,isDisabled:f,isFocused:l,checkboxButtonSize:i,checkboxSize:u,hasOwnLabel:c,model:o,handleChange:p,onClickRoot:v}},O2=["tabindex","role","aria-checked"],A2=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],M2=["id","aria-hidden","disabled","value","name","tabindex"],$2=ue({name:"ElCheckbox"}),R2=ue({...$2,props:Lp,emits:Np,setup(e){const t=e,n=Js(),{inputId:o,isLabeledByFormItem:r,isChecked:s,isDisabled:l,isFocused:a,checkboxSize:i,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=Fp(t,n),h=xe("checkbox"),p=A(()=>[h.b(),h.m(i.value),h.is("disabled",l.value),h.is("bordered",t.border),h.is("checked",s.value)]),v=A(()=>[h.e("input"),h.is("disabled",l.value),h.is("checked",s.value),h.is("indeterminate",t.i
|
||
|
* escape-html
|
||
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
|
* Copyright(c) 2015 Andreas Lubbe
|
||
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
|
* MIT Licensed
|
||
|
*/var Tx=/["'&<>]/,Ox=Ax;function Ax(e){var t=""+e,n=Tx.exec(t);if(!n)return t;var o,r="",s=0,l=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}l!==s&&(r+=t.substring(l,s)),l=s+1,r+=o}return l!==s?r+t.substring(l,s):r}const Pl=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Mx=function(e,t,n,o,r){if(!t&&!o&&(!r||Array.isArray(r)&&!r.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=o?null:function(a,i){return r?(Array.isArray(r)||(r=[r]),r.map(u=>typeof u=="string"?Mr(a,u):u(a,i,e))):(t!=="$key"&&Re(a)&&"$value"in a&&(a=a.$value),[Re(a)?Mr(a,t):a])},l=function(a,i){if(o)return o(a.value,i.value);for(let u=0,c=a.key.length;u<c;u++){if(a.key[u]<i.key[u])return-1;if(a.key[u]>i.key[u])return 1}return 0};return e.map((a,i)=>({value:a,index:i,key:s?s(a,i):null})).sort((a,i)=>{let u=l(a,i);return u||(u=a.index-i.index),u*+n}).map(a=>a.value)},Up=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},$x=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const r=e.columns[o];if(r.columnKey===t){n=r;break}}return n||vo("ElTable",`No column matching with column-key: ${t}`),n},kc=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?Up(e,o[0]):null},at=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const r of n)o=o[r];return`${o}`}else if(typeof t=="function")return t.call(null,e)},lo=function(e,t){const n={};return(e||[]).forEach((o,r)=>{n[at(o,t)]={row:o,index:r}}),n};function Rx(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Oe(t,o)){const r=t[o];typeof r<"u"&&(n[o]=r)}return n}function Ti(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Vp(e){return e===""||e!==void 0&&(e=Ti(e),Number.isNaN(e)&&(e=80)),e}function Px(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function kx(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function vr(e,t,n){let o=!1;const r=e.indexOf(t),s=r!==-1,l=a=>{a==="add"?e.push(t):e.splice(r,1),o=!0,ce(t.children)&&t.children.forEach(i=>{vr(e,i,n??!s)})};return Io(n)?n&&!s?l("add"):!n&&s&&l("remove"):l(s?"remove":"add"),o}function Ix(e,t,n="children",o="hasChildren"){const r=l=>!(Array.isArray(l)&&l.length);function s(l,a,i){t(l,a,i),a.forEach(u=>{if(u[o]){t(u,null,i+1);return}const c=u[n];r(c)||s(u,c,i+1)})}e.forEach(l=>{if(l[o]){t(l,null,0);return}const a=l[n];r(a)||s(l,a,0)})}let dn;function Lx(e,t,n,o){o=Md({enterable:!0,showArrow:!0},o);const{nextZIndex:r}=cl(),s=e==null?void 0:e.dataset.prefix,l=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function a(){const b=o.effect==="light",g=document.createElement("div");return g.className=[`${s}-popper`,b?"is-light":"is-dark",o.popperClass||""].join(" "),n=Ox(n),g.innerHTML=n,g.style.zIndex=String(r()),e==null||e.appendChild(g),g}function i(){const b=document.createElement("div");return b.className=`${s}-popper__arrow`,b}function u(){c&&c.update()}dn==null||dn(),dn=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),l==null||l.removeEventListener("scroll",dn),dn=void 0}catch{}};let c=null,f=u,d=dn;o.enterable&&({onOpen:f,onClose:d}=fp({showAfter:o.showAfter,hideAfter:o.hideAfter,open:u,close:dn}));const h=a();h.onmouseenter=f,h.onmouseleave=d;const p=[];if(o.offset&&p.push({name:"offset",options:{offset:[0,o.offset]}}),o.showArrow){const b=h.appendChild(i());p.push({name:"arrow",options:{element:b,padding:10}})}const v=o.popperOptions||{};return c=ip(t,h,{placement:o.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?p.concat(v.modifiers):p}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),l==null||l.addEventListener("scr
|
||
|
* vue-router v4.1.6
|
||
|
* (c) 2022 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/const xo=typeof window<"u";function h4(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const De=Object.assign;function kl(e,t){const n={};for(const o in t){const r=t[o];n[o]=qt(r)?r.map(e):e(r)}return n}const mr=()=>{},qt=Array.isArray,v4=/\/$/,g4=e=>e.replace(v4,"");function Il(e,t,n="/"){let o,r={},s="",l="";const a=t.indexOf("#");let i=t.indexOf("?");return a<i&&a>=0&&(i=-1),i>-1&&(o=t.slice(0,i),s=t.slice(i+1,a>-1?a:t.length),r=e(s)),a>-1&&(o=o||t.slice(0,a),l=t.slice(a,t.length)),o=w4(o??t,n),{fullPath:o+(s&&"?")+s+l,path:o,query:r,hash:l}}function m4(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function y4(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Uo(t.matched[o],n.matched[r])&&nh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Uo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!b4(e[n],t[n]))return!1;return!0}function b4(e,t){return qt(e)?Bc(e,t):qt(t)?Bc(t,e):e===t}function Bc(e,t){return qt(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function w4(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r=n.length-1,s,l;for(s=0;s<o.length;s++)if(l=o[s],l!==".")if(l==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+o.slice(s-(s===o.length?1:0)).join("/")}var Lr;(function(e){e.pop="pop",e.push="push"})(Lr||(Lr={}));var yr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yr||(yr={}));function C4(e){if(!e)if(xo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),g4(e)}const _4=/^[^#]+#/;function E4(e,t){return e.replace(_4,"#")+t}function S4(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const dl=()=>({left:window.pageXOffset,top:window.pageYOffset});function x4(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=S4(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Hc(e,t){return(history.state?history.state.position-t:-1)+e}const wa=new Map;function T4(e,t){wa.set(e,t)}function O4(e){const t=wa.get(e);return wa.delete(e),t}let A4=()=>location.protocol+"//"+location.host;function oh(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let a=r.includes(e.slice(s))?e.slice(s).length:1,i=r.slice(a);return i[0]!=="/"&&(i="/"+i),Fc(i,"")}return Fc(n,e)+o+r}function M4(e,t,n,o){let r=[],s=[],l=null;const a=({state:d})=>{const h=oh(e,location),p=n.value,v=t.value;let b=0;if(d){if(n.value=h,t.value=d,l&&l===p){l=null;return}b=v?d.position-v.position:0}else o(h);r.forEach(g=>{g(n.value,p,{delta:b,type:Lr.pop,direction:b?b>0?yr.forward:yr.back:yr.unknown})})};function i(){l=n.value}function u(d){r.push(d);const h=()=>{const p=r.indexOf(d);p>-1&&r.splice(p,1)};return s.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(De({},d.state,{scroll:dl()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c),{pauseListeners:i,listen:u,destroy:f}}function zc(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?dl():null}}function $4(e){const{history:t,location:n}=window,o={value:oh(e,n)},r={value:t.state};r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(i,u,c){const f=e.indexOf("#"
|