vendor: 8,846 bytes, line 1
1import{An as e,Dn as t,Et as n,Ht as r,It as i,Ln as a,Mn as o,Sn as s,Vt as c,gn as l,kn as u,qt as d,rn as f,zt as p}from"./vendor-DpiSXbKh.js";c();var m=e=>e.startsWith(`/`);function h(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function g(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&h(e.default)}var _=Object.assign;function v(e,t){let n={};for(let r in t){let i=t[r];n[r]=b(i)?i.map(e):e(i)}return n}var y=()=>{},b=Array.isArray;function x(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var ee=Symbol(``);function S(e,t){return _(Error(),{type:e,[ee]:!0},t)}function C(e,t){return e instanceof Error&&ee in e&&(t==null||!!(e.type&t))}var te=Symbol(``),w=Symbol(``),T=Symbol(``),E=Symbol(``),ne=Symbol(``);function re(){return r(T)}function ie(e){return r(E)}var D=typeof document<`u`,O=/#/g,k=/&/g,A=/\//g,j=/=/g,ae=/\?/g,M=/\+/g,N=/%5B/g,oe=/%5D/g,P=/%5E/g,F=/%60/g,I=/%7B/g,se=/%7C/g,L=/%7D/g,ce=/%20/g;function R(e){return e==null?``:encodeURI(``+e).replace(se,`|`).replace(N,`[`).replace(oe,`]`)}function le(e){return R(e).replace(I,`{`).replace(L,`}`).replace(P,`^`)}function z(e){return R(e).replace(M,`%2B`).replace(ce,`+`).replace(O,`%23`).replace(k,`%26`).replace(F,"`").replace(I,`{`).replace(L,`}`).replace(P,`^`)}function B(e){return z(e).replace(j,`%3D`)}function V(e){return R(e).replace(O,`%23`).replace(ae,`%3F`)}function ue(e){return V(e).replace(A,`%2F`)}function H(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var de=/\/$/,U=e=>e.replace(de,``);function fe(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Y(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:H(o)}}function pe(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function W(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function me(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&G(t.matched[r],n.matched[i])&&K(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function G(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function K(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!q(e[n],t[n]))return!1;return!0}function q(e,t){return b(e)?J(e,t):b(t)?J(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function J(e,t){return b(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Y(e,t){if(m(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var X={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function he(e){if(!e){if(D){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),U(e)}var ge=/^[^#]+#/;function _e(e,t){return e.replace(ge,`#`)+t}function ve(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var ye=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function be(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ve(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function xe(e,t){return(history.state?history.state.position-t:-1)+e}var Se=new Map;function Ce(e){Se.set(e,ye())}function we(e){let t=Se.get(e);return Se.delete(e),t}function Te(e){return typeof e==`string`||e&&typeof e==`object`}function Ee(e){return typeof e==`string`||typeof e==`symbol`}function De(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(M,` `),i=r.indexOf(`=`),a=H(i<0?r:r.slice(0,i)),o=i<0?null:H(r.slice(i+1));if(a in t){let e=t[a];b(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Z(e){let t=``;for(let n in e){let r=e[n];if(n=B(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(b(r)?r.map(e=>e&&z(e)):[r&&z(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Oe(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=b(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Q(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function $(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(S(4,{from:n,to:t})):e instanceof Error?c(e):Te(e)?c(S(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function ke(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(h(s)){let c=(s.__vccOpts||s)[t];c&&a.push($(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=g(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&$(c,n,r,o,e,i)()}))}}}return a}function Ae(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>G(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>G(e,s))||i.push(s))}return[n,r,i]}c(),s();var je=()=>location.protocol+`//`+location.host;function Me(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),W(n,``)}return W(n,e)+r+i}function Ne(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Me(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(_({},e.state,{scroll:ye()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function Pe(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function Fe(e){let{history:t,location:n}=window,r={value:Me(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:je()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,_({},t.state,Pe(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=_({},i.value,t.state,{forward:e,scroll:ye()});a(o.current,o,!0),a(e,_({},Pe(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Ie(e){e=he(e);let t=Fe(e),n=Ne(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=_({location:``,base:e,go:r,createHref:_e.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Le={type:0,value:``},Re=/[a-zA-Z0-9_]/;function ze(e){if(!e)return[[]];if(e===`/`)return[[Le]];if(!m(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(
vendor: 4,369 bytes, line 1
1d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Re.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Be=`[^/]+?`,Ve={sensitive:!1,strict:!1,start:!0,end:!0},He=/[.+*?^${}()[\]/\\]/g;function Ue(e,t){let n=_({},Ve,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(He,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Be;if(u!==Be){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(b(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=b(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function We(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ge(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=We(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ke(r))return 1;if(Ke(i))return-1}return i.length-r.length}function Ke(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var qe={strict:!1,end:!0,sensitive:!1};function Je(e,t,n){let r=_(Ue(ze(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ye(e,t){let n=[],r=new Map;t=x(qe,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ze(e);s.aliasOf=r&&r.record;let l=x(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Ze(_({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!m(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Je(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!$e(d)&&o(e.name)),rt(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:y}function o(e){if(Ee(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=tt(e,n);n.splice(t,0,e),e.record.name&&!$e(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw S(1,{location:e});s=i.record.name,a=_(Xe(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Xe(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw S(1,{location:e,currentLocation:t});s=i.record.name,a=_({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:et(c)}}
vendor: 9,693 bytes, line 1
1e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Xe(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ze(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Qe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Qe(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function $e(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function et(e){return e.reduce((e,t)=>_(e,t.meta),{})}function tt(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ge(e,t[i])<0?r=i:n=i+1}let i=nt(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function nt(e){let t=e;for(;t=t.parent;)if(rt(t)&&Ge(e,t)===0)return t}function rt({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function it(e){let t=r(T),i=r(E),o=n(()=>{let n=a(e.to);return t.resolve(n)}),s=n(()=>{let{matched:e}=o.value,{length:t}=e,n=e[t-1],r=i.matched;if(!n||!r.length)return-1;let a=r.findIndex(G.bind(null,n));if(a>-1)return a;let s=lt(e[t-2]);return t>1&<(n)===s&&r[r.length-1].path!==s?r.findIndex(G.bind(null,e[t-2])):a}),c=n(()=>s.value>-1&&ct(i.params,o.value.params)),l=n(()=>s.value>-1&&s.value===i.matched.length-1&&K(i.params,o.value.params));function u(n={}){if(st(n)){let n=t[a(e.replace)?`replace`:`push`](a(e.to)).catch(y);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:o,href:n(()=>o.value.href),isActive:c,isExactActive:l,navigate:u}}function at(e){return e.length===1?e[0]:e}var ot=i({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:it,setup(e,{slots:i}){let a=t(it(e)),{options:o}=r(T),s=n(()=>({[ut(e.activeClass,o.linkActiveClass,`router-link-active`)]:a.isActive,[ut(e.exactActiveClass,o.linkExactActiveClass,`router-link-exact-active`)]:a.isExactActive}));return()=>{let t=i.default&&at(i.default(a));return e.custom?t:p(`a`,{"aria-current":a.isExactActive?e.ariaCurrentValue:null,href:a.href,onClick:a.navigate,class:s.value},t)}}});function st(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ct(e,t){for(let n in t){let r=t[n],i=e[n];if(b(r)){if(!b(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function lt(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var ut=(e,t,n)=>e??t??n,dt=i({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:i}){let o=r(ne),s=n(()=>e.route||o.value),c=r(w,0),d=n(()=>{let e=a(c),{matched:t}=s.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),m=n(()=>s.value.matched[d.value]);f(w,n(()=>d.value+1)),f(te,m),f(ne,s);let h=u();return l(()=>[h.value,m.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!G(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let n=s.value,r=e.name,a=m.value,o=a&&a.components[r];if(!o)return ft(i.default,{Component:o,route:n});let c=a.props[r],l=c?c===!0?n.params:typeof c==`function`?c(n):c:null,u=p(o,_({},l,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[r]=null)},ref:h}));return ft(i.default,{Component:u,route:n})||u}}});function ft(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var pt=dt;function mt(t){let n=Ye(t.routes,t),r=t.parseQuery||De,i=t.stringifyQuery||Z,s=t.history,c=Q(),l=Q(),u=Q(),f=o(X),p=o(0),m=X;D&&t.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let h=v.bind(null,e=>``+e),g=v.bind(null,ue),x=v.bind(null,H);function ee(e,t){let r,i;Ee(e)?(r=n.getRecordMatcher(e),i=t):i=e;let a=n.addRoute(i,r);return p.value++,()=>{a(),p.value++}}function te(e){let t=n.getRecordMatcher(e);t&&(n.removeRoute(t),p.value++)}function w(){n.clearRoutes(),p.value++}function re(){return n.getRoutes().map(e=>e.record)}function ie(e){return!!n.getRecordMatcher(e)}function O(e,t){if(p.value,typeof e==`string`){t||=e.startsWith(`/`)?X:f.value;let i=fe(r,e,t.path),a=n.resolve({path:i.path},t),o=s.createHref(i.fullPath);return _(i,a,{params:x(a.params),redirectedFrom:void 0,href:o})}t=_({},t||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?X:f.value));let a;if(e.path!=null)a=_({},e,{path:fe(r,e.path,t.path).path});else{let n=_({},e.params);for(let e in n)n[e]??delete n[e];a=_({},e,{params:g(n)}),t.params=g(t.params)}let o=n.resolve(a,t),c=e.hash||``;o.params=h(x(o.params));let l=pe(i,_({},e,{hash:le(c),path:o.path})),u=s.createHref(l);return _({fullPath:l,hash:c,query:i===Z?Oe(e.query):e.query||{}},o,{redirectedFrom:void 0,href:u})}function k(e){return typeof e==`string`?fe(r,e,f.value.path):_({},e)}function A(e,t){if(m!==e)return S(8,{from:t,to:e})}function j(e){return N(e)}function ae(e){return j(_(k(e),{replace:!0}))}function M(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=k(i):{path:i},i.params={}),_({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function N(e,t){let n=m=O(e),r=f.value,a=e.state,o=e.force,s=e.replace===!0,c=M(n,r);if(c)return N(_(k(c),{state:typeof c==`object`?_({},a,c.state):a,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!o&&me(i,r,n)&&(u=S(16,{to:l,from:r}),W(r,r,!0,!1)),(u?Promise.resolve(u):F(l,r)).catch(e=>C(e)?C(e,2)?e:U(e):V(e,l,r)).then(e=>{if(e){if(C(e,2))return N(_({replace:s},k(e.to),{state:typeof e.to==`object`?_({},a,e.to.state):a,force:o}),t||l)}else e=se(l,r,!0,s,a);return I(l,r,e),e})}function oe(e,t){let n=A(e,t);return n?Promise.reject(n):Promise.resolve()}function P(e){let t=q.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function F(e,t){let n,[r,i,a]=Ae(e,t);n=ke(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push($(r,e,t))});let o=oe.bind(null,e,t);return n.push(o),Y(n).then(()=>{n=[];for(let r of c.list())n.push($(r,e,t));return n.push(o),Y(n)}).then(()=>{n=ke(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push($(r,e,t))});return n.push(o),Y(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter){if(b(r.beforeEnter))for(let i of r.beforeEnter)n.push($(i,e,t));else n.push($(r.beforeEnter,e,t))}return n.push(o),Y(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ke(a,`beforeRouteEnter`,e,t,P),n.push(o),Y(n))).then(()=>{n=[];for(let r of l.list())n.push($(r,e,t));return n.push(o),Y(n)}).catch(e=>C(e,8)?e:Promise.reject(e))}function I(e,t,n){u.list().forEach(r=>P(()=>r(e,t,n)))}function se(e,t,n,r,i){let a=A(e,t);if(a)return a;let o=t===X,c=D?history.state:{};n&&(r||o?s.replace(e.fullPath,_({scroll:o&&c&&c.scroll},i)):s.push(e.fullPath,i)),f.value=e,W(e,t,n,o),U()}let L;function ce(){L||=s.listen((e,t,n)=>{if(!J.listening)return;let r=O(e),i=M(r,J.currentRoute.value);if(i){N(_(i,{replace:!0,force:!0}),r).catch(y);return}m=r;let a=f.value;D&&n.delta&&Ce(xe(a.fullPath,n.delta)),F(r,a).catch(e=>C(e,12)?e:C(e,2)?(N(_(k(e.to),{force:!0}),r).then(e=>{C(e,20)&&!n.delta&&n.type===`pop`&&s.go(-1,!1)}).catch(y),Promise.reject()):(n.delta&&s.go(-n.delta,!1),V(e,r,a))).then(e=>{e||=se(r,a,!1),e&&(n.delta&&!C(e,8)?s.go(-n.delta,!1):n.type===`pop`&&C(e,20)&&s.go(-1,!1)),I(r,a,e)}).catch(y)})}let R=Q(),z=Q(),B;function V(e,t,n){U(e);let r=z.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function de(){return B&&f.value!==X?Promise.resolve():new Promise((e,t)=>{R.add([e,t])})}function U(e){return B||(B=!e,ce(),R.list().forEach(([t,n])=>e?n(e):t()),R.reset()),e}function W(e,n,r,i){let{scrollBehavior:a}=t;if(!D||!a)return Promise.resolve();let o=!r&&we(xe(e.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return d().then(()=>a(e,n,o)).then(t=>e===f.value&&t&&be(t)).catch(t=>e===f.value&&V(t,e,n))}let G=e=>s.go(e),K,q=new Set,J={currentRoute:f,listening:!0,addRoute:ee,removeRoute:te,clearRoutes:w,hasRoute:ie,getRoutes:re,resolve:O,options:t,push:j,replace:ae,go:G,back:()=>G(-1),forward:()=>G(1),beforeEach:c.add,beforeResolve:l.add,afterEach:u.add,onError:z.add,isReady:de,install(t){t.component(`RouterLink`,ot),t.component(`RouterView`,pt),t.config.globalProperties.$router=J,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>a(f)}),D&&!K&&f.value===X&&(K=!0,j(s.location).catch(e=>{}));let n={};for(let e in X)Object.defineProperty(n,e,{get:()=>f.value[e],enumerable:!0});t.provide(T,J),t.provide(E,e(n)),t.provide(ne,f);let r=t.unmount;q.add(t),t.unmount=function(){q.delete(t),q.size<1&&(m=X,L&&L(),L=null,f.value=X,K=!1,B=!1),r()}}};function Y(e){return e.reduce((e,t)=>e.then(()=>P(t)),Promise.resolve())}return J}export{ie as a,Z as i,mt as n,re as o,Ie as r,ot as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.