Your IP : 172.69.214.233


Current Path : /var/www/element/data/www/revenuestory.ru/bitrix/js/ui/vue3/router/dist/
Upload File :
Current File : /var/www/element/data/www/revenuestory.ru/bitrix/js/ui/vue3/router/dist/vue-router.bundle.min.js

this.BX=this.BX||{};this.BX.Vue3=this.BX.Vue3||{};(function(e,t){"use strict";
/*!
    * vue-router v4.1.5
    * (c) 2022 Eduardo San Martin Morote
    * @license MIT
    *
    * @source: https://unpkg.com/vue-router@4.1.2/dist/vue-router.esm-browser.js
    */function n(){return o().__VUE_DEVTOOLS_GLOBAL_HOOK__}function o(){return typeof navigator!=="undefined"?window:typeof global!=="undefined"?global:{}}const r="devtools-plugin:setup";function a(e,t){const a=n();if(a){a.emit(r,e,t)}else{const n=o();const r=n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[];r.push({pluginDescriptor:e,setupFn:t})}}const i=typeof window!=="undefined";function s(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const c=Object.assign;function l(e,t){const n={};for(const o in t){const r=t[o];n[o]=f(r)?r.map(e):e(r)}return n}const u=()=>{};const f=Array.isArray;function d(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const h=/\/$/;const p=e=>e.replace(h,"");function m(e,t,n="/"){let o,r={},a="",i="";const s=t.indexOf("#");let c=t.indexOf("?");if(s<c&&s>=0){c=-1}if(c>-1){o=t.slice(0,c);a=t.slice(c+1,s>-1?s:t.length);r=e(a)}if(s>-1){o=o||t.slice(0,s);i=t.slice(s,t.length)}o=k(o!=null?o:t,n);return{fullPath:o+(a&&"?")+a+i,path:o,query:r,hash:i}}function g(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function v(e,t){if(!t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;return e.slice(t.length)||"/"}function y(e,t,n){const o=t.matched.length-1;const r=n.matched.length-1;return o>-1&&o===r&&b(t.matched[o],n.matched[r])&&w(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function b(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function w(e,t){if(Object.keys(e).length!==Object.keys(t).length)return false;for(const n in e){if(!_(e[n],t[n]))return false}return true}function _(e,t){return f(e)?$(e,t):f(t)?$(t,e):e===t}function $(e,t){return f(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):e.length===1&&e[0]===t}function k(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/")){d(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`);return e}if(!e)return t;const n=t.split("/");const o=e.split("/");let r=n.length-1;let a;let i;for(a=0;a<o.length;a++){i=o[a];if(i===".")continue;if(i===".."){if(r>1)r--}else break}return n.slice(0,r).join("/")+"/"+o.slice(a-(a===o.length?1:0)).join("/")}var E;(function(e){e["pop"]="pop";e["push"]="push"})(E||(E={}));var C;(function(e){e["back"]="back";e["forward"]="forward";e["unknown"]=""})(C||(C={}));const R="";function P(e){if(!e){if(i){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/";e=e.replace(/^\w+:\/\/[^\/]+/,"")}else{e="/"}}if(e[0]!=="/"&&e[0]!=="#")e="/"+e;return p(e)}const O=/^[^#]+#/;function x(e,t){return e.replace(O,"#")+t}function S(e,t){const n=document.documentElement.getBoundingClientRect();const o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const j=()=>({left:window.pageXOffset,top:window.pageYOffset});function A(e){let t;if("el"in e){const n=e.el;const o=typeof n==="string"&&n.startsWith("#");if(typeof e.el==="string"){if(!o||!document.getElementById(e.el.slice(1))){try{const t=document.querySelector(e.el);if(o&&t){d(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch(t){d(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}}}const r=typeof n==="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r){d(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=S(r,e)}else{t=e}if("scrollBehavior"in document.documentElement.style)window.scrollTo(t);else{window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}}function I(e,t){const n=history.state?history.state.position-t:-1;return n+e}const T=new Map;function L(e,t){T.set(e,t)}function B(e){const t=T.get(e);T.delete(e);return t}let M=()=>location.protocol+"//"+location.host;function N(e,t){const{pathname:n,search:o,hash:r}=t;const a=e.indexOf("#");if(a>-1){let t=r.includes(e.slice(a))?e.slice(a).length:1;let n=r.slice(t);if(n[0]!=="/")n="/"+n;return v(n,"")}const i=v(n,e);return i+o+r}function U(e,t,n,o){let r=[];let a=[];let i=null;const s=({state:a})=>{const s=N(e,location);const c=n.value;const l=t.value;let u=0;if(a){n.value=s;t.value=a;if(i&&i===c){i=null;return}u=l?a.position-l.position:0}else{o(s)}r.forEach((e=>{e(n.value,c,{delta:u,type:E.pop,direction:u?u>0?C.forward:C.back:C.unknown})}))};function l(){i=n.value}function u(e){r.push(e);const t=()=>{const t=r.indexOf(e);if(t>-1)r.splice(t,1)};a.push(t);return t}function f(){const{history:e}=window;if(!e.state)return;e.replaceState(c({},e.state,{scroll:j()}),"")}function d(){for(const e of a)e();a=[];window.removeEventListener("popstate",s);window.removeEventListener("beforeunload",f)}window.addEventListener("popstate",s);window.addEventListener("beforeunload",f);return{pauseListeners:l,listen:u,destroy:d}}function V(e,t,n,o=false,r=false){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?j():null}}function D(e){const{history:t,location:n}=window;const o={value:N(e,n)};const r={value:t.state};if(!r.value){a(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:true,scroll:null},true)}function a(o,a,i){const s=e.indexOf("#");const c=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:M()+e+o;try{t[i?"replaceState":"pushState"](a,"",c);r.value=a}catch(e){{d("Error with push/replace State",e)}n[i?"replace":"assign"](c)}}function i(e,n){const i=c({},t.state,V(r.value.back,e,r.value.forward,true),n,{position:r.value.position});a(e,i,true);o.value=e}function s(e,n){const i=c({},r.value,t.state,{forward:e,scroll:j()});if(!t.state){d(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:\n\n`+`history.replaceState(history.state, '', url)\n\n`+`You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`)}a(i.current,i,true);const s=c({},V(o.value,e,null),{position:i.position+1},n);a(e,s,false);o.value=e}return{location:o,state:r,push:s,replace:i}}function W(e){e=P(e);const t=D(e);const n=U(e,t.state,t.location,t.replace);function o(e,t=true){if(!t)n.pauseListeners();history.go(e)}const r=c({location:"",base:e,go:o,createHref:x.bind(null,e)},t,n);Object.defineProperty(r,"location",{enumerable:true,get:()=>t.location.value});Object.defineProperty(r,"state",{enumerable:true,get:()=>t.state.value});return r}function q(e=""){let t=[];let n=[R];let o=0;e=P(e);function r(e){o++;if(o===n.length){n.push(e)}else{n.splice(o);n.push(e)}}function a(e,n,{direction:o,delta:r}){const a={direction:o,delta:r,type:E.pop};for(const o of t){o(e,n,a)}}const i={location:R,state:{},base:e,createHref:x.bind(null,e),replace(e){n.splice(o--,1);r(e)},push(e,t){r(e)},listen(e){t.push(e);return()=>{const n=t.indexOf(e);if(n>-1)t.splice(n,1)}},destroy(){t=[];n=[R];o=0},go(e,t=true){const r=this.location;const i=e<0?C.back:C.forward;o=Math.max(0,Math.min(o+e,n.length-1));if(t){a(this.location,r,{direction:i,delta:e})}}};Object.defineProperty(i,"location",{enumerable:true,get:()=>n[o]});return i}function G(e){e=location.host?e||location.pathname+location.search:"";if(!e.includes("#"))e+="#";if(!e.endsWith("#/")&&!e.endsWith("#")){d(`A hash base must end with a "#":\n"${e}" should be "${e.replace(/#.*$/,"#")}".`)}return W(e)}function F(e){return typeof e==="string"||e&&typeof e==="object"}function K(e){return typeof e==="string"||typeof e==="symbol"}const H={path:"/",name:undefined,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:undefined};const X=Symbol("navigation failure");(function(e){e[e["aborted"]=4]="aborted";e[e["cancelled"]=8]="cancelled";e[e["duplicated"]=16]="duplicated"})(e.NavigationFailureType||(e.NavigationFailureType={}));const z={[1]({location:e,currentLocation:t}){return`No match for\n ${JSON.stringify(e)}${t?"\nwhile being at\n"+JSON.stringify(t):""}`},[2]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Z(t)}" via a navigation guard.`},[4]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[8]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[16]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function Y(e,t){{return c(new Error(z[e](t)),{type:e,[X]:true},t)}}function J(e,t){return e instanceof Error&&X in e&&(t==null||!!(e.type&t))}const Q=["params","query","hash"];function Z(e){if(typeof e==="string")return e;if("path"in e)return e.path;const t={};for(const n of Q){if(n in e)t[n]=e[n]}return JSON.stringify(t,null,2)}const ee="[^/]+?";const te={sensitive:false,strict:false,start:true,end:true};const ne=/[.+*?^${}()[\]/\\]/g;function oe(e,t){const n=c({},te,t);const o=[];let r=n.start?"^":"";const a=[];for(const t of e){const e=t.length?[]:[90];if(n.strict&&!t.length)r+="/";for(let o=0;o<t.length;o++){const i=t[o];let s=40+(n.sensitive?.25:0);if(i.type===0){if(!o)r+="/";r+=i.value.replace(ne,"\\$&");s+=40}else if(i.type===1){const{value:e,repeatable:n,optional:c,regexp:l}=i;a.push({name:e,repeatable:n,optional:c});const u=l?l:ee;if(u!==ee){s+=10;try{}catch(t){throw new Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let f=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;if(!o)f=c&&t.length<2?`(?:/${f})`:"/"+f;if(c)f+="?";r+=f;s+=20;if(c)s+=-8;if(n)s+=-20;if(u===".*")s+=-50}e.push(s)}o.push(e)}if(n.strict&&n.end){const e=o.length-1;o[e][o[e].length-1]+=.7000000000000001}if(!n.strict)r+="/?";if(n.end)r+="$";else if(n.strict)r+="(?:/|$)";const i=new RegExp(r,n.sensitive?"":"i");function s(e){const t=e.match(i);const n={};if(!t)return null;for(let e=1;e<t.length;e++){const o=t[e]||"";const r=a[e-1];n[r.name]=o&&r.repeatable?o.split("/"):o}return n}function l(t){let n="";let o=false;for(const r of e){if(!o||!n.endsWith("/"))n+="/";o=false;for(const e of r){if(e.type===0){n+=e.value}else if(e.type===1){const{value:a,repeatable:i,optional:s}=e;const c=a in t?t[a]:"";if(f(c)&&!i){throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`)}const l=f(c)?c.join("/"):c;if(!l){if(s){if(r.length<2){if(n.endsWith("/"))n=n.slice(0,-1);else o=true}}else throw new Error(`Missing required param "${a}"`)}n+=l}}}return n||"/"}return{re:i,score:o,keys:a,parse:s,stringify:l}}function re(e,t){let n=0;while(n<e.length&&n<t.length){const o=t[n]-e[n];if(o)return o;n++}if(e.length<t.length){return e.length===1&&e[0]===40+40?-1:1}else if(e.length>t.length){return t.length===1&&t[0]===40+40?1:-1}return 0}function ae(e,t){let n=0;const o=e.score;const r=t.score;while(n<o.length&&n<r.length){const e=re(o[n],r[n]);if(e)return e;n++}if(Math.abs(r.length-o.length)===1){if(ie(o))return 1;if(ie(r))return-1}return r.length-o.length}function ie(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const se={type:0,value:""};const ce=/[a-zA-Z0-9_]/;function le(e){if(!e)return[[]];if(e==="/")return[[se]];if(!e.startsWith("/")){throw new Error(`Route paths should start with a "/": "${e}" should be "/${e}".`)}function t(e){throw new Error(`ERR (${n})/"${l}": ${e}`)}let n=0;let o=n;const r=[];let a;function i(){if(a)r.push(a);a=[]}let s=0;let c;let l="";let u="";function f(){if(!l)return;if(n===0){a.push({type:0,value:l})}else if(n===1||n===2||n===3){if(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==="?"})}else{t("Invalid state to consume buffer")}l=""}function d(){l+=c}while(s<e.length){c=e[s++];if(c==="\\"&&n!==2){o=n;n=4;continue}switch(n){case 0:if(c==="/"){if(l){f()}i()}else if(c===":"){f();n=1}else{d()}break;case 4:d();n=o;break;case 1:if(c==="("){n=2}else if(ce.test(c)){d()}else{f();n=0;if(c!=="*"&&c!=="?"&&c!=="+")s--}break;case 2:if(c===")"){if(u[u.length-1]=="\\")u=u.slice(0,-1)+c;else n=3}else{u+=c}break;case 3:f();n=0;if(c!=="*"&&c!=="?"&&c!=="+")s--;u="";break;default:t("Unknown state");break}}if(n===2)t(`Unfinished custom RegExp for param "${l}"`);f();i();return r}function ue(e,t,n){const o=oe(le(e.path),n);{const t=new Set;for(const n of o.keys){if(t.has(n.name))d(`Found duplicated params with name "${n.name}" for path "${e.path}". Only the last one will be available on "$route.params".`);t.add(n.name)}}const r=c(o,{record:e,parent:t,children:[],alias:[]});if(t){if(!r.record.aliasOf===!t.record.aliasOf)t.children.push(r)}return r}function fe(e,t){const n=[];const o=new Map;t=ve({strict:false,end:true,sensitive:false},t);function r(e){return o.get(e)}function a(e,n,o){const r=!o;const s=he(e);{we(s,n)}s.aliasOf=o&&o.record;const f=ve(t,e);const d=[s];if("alias"in e){const t=typeof e.alias==="string"?[e.alias]:e.alias;for(const e of t){d.push(c({},s,{components:o?o.record.components:s.components,path:e,aliasOf:o?o.record:s}))}}let h;let p;for(const t of d){const{path:c}=t;if(n&&c[0]!=="/"){const e=n.record.path;const o=e[e.length-1]==="/"?"":"/";t.path=n.record.path+(c&&o+c)}if(t.path==="*"){throw new Error('Catch all routes ("*") must now be defined using a param with a custom regexp.\n'+"See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.")}h=ue(t,n,f);if(n&&c[0]==="/")_e(h,n);if(o){o.alias.push(h);{be(o,h)}}else{p=p||h;if(p!==h)p.alias.push(h);if(r&&e.name&&!me(h))i(e.name)}if(s.children){const e=s.children;for(let t=0;t<e.length;t++){a(e[t],h,o&&o.children[t])}}o=o||h;l(h)}return p?()=>{i(p)}:u}function i(e){if(K(e)){const t=o.get(e);if(t){o.delete(e);n.splice(n.indexOf(t),1);t.children.forEach(i);t.alias.forEach(i)}}else{const t=n.indexOf(e);if(t>-1){n.splice(t,1);if(e.record.name)o.delete(e.record.name);e.children.forEach(i);e.alias.forEach(i)}}}function s(){return n}function l(e){let t=0;while(t<n.length&&ae(e,n[t])>=0&&(e.record.path!==n[t].record.path||!$e(e,n[t])))t++;n.splice(t,0,e);if(e.record.name&&!me(e))o.set(e.record.name,e)}function f(e,t){let r;let a={};let i;let s;if("name"in e&&e.name){r=o.get(e.name);if(!r)throw Y(1,{location:e});{const t=Object.keys(e.params||{}).filter((e=>!r.keys.find((t=>t.name===e))));if(t.length){d(`Discarded invalid param(s) "${t.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}}s=r.record.name;a=c(de(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&de(e.params,r.keys.map((e=>e.name))));i=r.stringify(a)}else if("path"in e){i=e.path;if(!i.startsWith("/")){d(`The Matcher cannot resolve relative paths but received "${i}". Unless you directly called \`matcher.resolve("${i}")\`, this is probably a bug in vue-router. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/router.`)}r=n.find((e=>e.re.test(i)));if(r){a=r.parse(i);s=r.record.name}}else{r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path)));if(!r)throw Y(1,{location:e,currentLocation:t});s=r.record.name;a=c({},t.params,e.params);i=r.stringify(a)}const l=[];let u=r;while(u){l.unshift(u.record);u=u.parent}return{name:s,path:i,params:a,matched:l,meta:ge(l)}}e.forEach((e=>a(e)));return{addRoute:a,resolve:f,removeRoute:i,getRoutes:s,getRecordMatcher:r}}function de(e,t){const n={};for(const o of t){if(o in e)n[o]=e[o]}return n}function he(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:undefined,beforeEnter:e.beforeEnter,props:pe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function pe(e){const t={};const n=e.props||false;if("component"in e){t.default=n}else{for(const o in e.components)t[o]=typeof n==="boolean"?n:n[o]}return t}function me(e){while(e){if(e.record.aliasOf)return true;e=e.parent}return false}function ge(e){return e.reduce(((e,t)=>c(e,t.meta)),{})}function ve(e,t){const n={};for(const o in e){n[o]=o in t?t[o]:e[o]}return n}function ye(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function be(e,t){for(const n of e.keys){if(!n.optional&&!t.keys.find(ye.bind(null,n)))return d(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}for(const n of t.keys){if(!n.optional&&!e.keys.find(ye.bind(null,n)))return d(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}}function we(e,t){if(t&&t.record.name&&!e.name&&!e.path){d(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}}function _e(e,t){for(const n of t.keys){if(!e.keys.find(ye.bind(null,n)))return d(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}}function $e(e,t){return t.children.some((t=>t===e||$e(e,t)))}const ke=/#/g;const Ee=/&/g;const Ce=/\//g;const Re=/=/g;const Pe=/\?/g;const Oe=/\+/g;const xe=/%5B/g;const Se=/%5D/g;const je=/%5E/g;const Ae=/%60/g;const Ie=/%7B/g;const Te=/%7C/g;const Le=/%7D/g;const Be=/%20/g;function Me(e){return encodeURI(""+e).replace(Te,"|").replace(xe,"[").replace(Se,"]")}function Ne(e){return Me(e).replace(Ie,"{").replace(Le,"}").replace(je,"^")}function Ue(e){return Me(e).replace(Oe,"%2B").replace(Be,"+").replace(ke,"%23").replace(Ee,"%26").replace(Ae,"`").replace(Ie,"{").replace(Le,"}").replace(je,"^")}function Ve(e){return Ue(e).replace(Re,"%3D")}function De(e){return Me(e).replace(ke,"%23").replace(Pe,"%3F")}function We(e){return e==null?"":De(e).replace(Ce,"%2F")}function qe(e){try{return decodeURIComponent(""+e)}catch(t){d(`Error decoding "${e}". Using original value`)}return""+e}function Ge(e){const t={};if(e===""||e==="?")return t;const n=e[0]==="?";const o=(n?e.slice(1):e).split("&");for(let e=0;e<o.length;++e){const n=o[e].replace(Oe," ");const r=n.indexOf("=");const a=qe(r<0?n:n.slice(0,r));const i=r<0?null:qe(n.slice(r+1));if(a in t){let e=t[a];if(!f(e)){e=t[a]=[e]}e.push(i)}else{t[a]=i}}return t}function Fe(e){let t="";for(let n in e){const o=e[n];n=Ve(n);if(o==null){if(o!==undefined){t+=(t.length?"&":"")+n}continue}const r=f(o)?o.map((e=>e&&Ue(e))):[o&&Ue(o)];r.forEach((e=>{if(e!==undefined){t+=(t.length?"&":"")+n;if(e!=null)t+="="+e}}))}return t}function Ke(e){const t={};for(const n in e){const o=e[n];if(o!==undefined){t[n]=f(o)?o.map((e=>e==null?null:""+e)):o==null?o:""+o}}return t}const He=Symbol("router view location matched");const Xe=Symbol("router view depth");const ze=Symbol("router");const Ye=Symbol("route location");const Je=Symbol("router view location");function Qe(){let e=[];function t(t){e.push(t);return()=>{const n=e.indexOf(t);if(n>-1)e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Ze(e,n,o){const r=()=>{e[n].delete(o)};t.onUnmounted(r);t.onDeactivated(r);t.onActivated((()=>{e[n].add(o)}));e[n].add(o)}function et(e){if(!t.getCurrentInstance()){d("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const n=t.inject(He,{}).value;if(!n){d("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}Ze(n,"leaveGuards",e)}function tt(e){if(!t.getCurrentInstance()){d("getCurrentInstance() returned null. onBeforeRouteUpdate() must be called at the top of a setup function");return}const n=t.inject(He,{}).value;if(!n){d("No active route record was found when calling `onBeforeRouteUpdate()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}Ze(n,"updateGuards",e)}function nt(e,t,n,o,r){const a=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((i,s)=>{const c=e=>{if(e===false){s(Y(4,{from:n,to:t}))}else if(e instanceof Error){s(e)}else if(F(e)){s(Y(2,{from:t,to:e}))}else{if(a&&o.enterCallbacks[r]===a&&typeof e==="function"){a.push(e)}i()}};const l=e.call(o&&o.instances[r],t,n,ot(c,t,n));let u=Promise.resolve(l);if(e.length<3)u=u.then(c);if(e.length>2){const t=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:\n${e.toString()}\n. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof l==="object"&&"then"in l){u=u.then((e=>{if(!c._called){d(t);return Promise.reject(new Error("Invalid navigation guard"))}return e}))}else if(l!==undefined){if(!c._called){d(t);s(new Error("Invalid navigation guard"));return}}}u.catch((e=>s(e)))}))}function ot(e,t,n){let o=0;return function(){if(o++===1)d(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`);e._called=true;if(o===1)e.apply(null,arguments)}}function rt(e,t,n,o){const r=[];for(const a of e){if(!a.components&&!a.children.length){d(`Record with path "${a.path}" is either missing a "component(s)"`+` or "children" property.`)}for(const e in a.components){let i=a.components[e];{if(!i||typeof i!=="object"&&typeof i!=="function"){d(`Component "${e}" in record with path "${a.path}" is not`+` a valid component. Received "${String(i)}".`);throw new Error("Invalid route component")}else if("then"in i){d(`Component "${e}" in record with path "${a.path}" is a `+`Promise instead of a function that returns a Promise. Did you `+`write "import('./MyPage.vue')" instead of `+`"() => import('./MyPage.vue')" ? This will break in `+`production if not fixed.`);const t=i;i=()=>t}else if(i.__asyncLoader&&!i.__warnedDefineAsync){i.__warnedDefineAsync=true;d(`Component "${e}" in record with path "${a.path}" is defined `+`using "defineAsyncComponent()". `+`Write "() => import('./MyPage.vue')" instead of `+`"defineAsyncComponent(() => import('./MyPage.vue'))".`)}}if(t!=="beforeRouteEnter"&&!a.instances[e])continue;if(at(i)){const s=i.__vccOpts||i;const c=s[t];c&&r.push(nt(c,n,o,a,e))}else{let c=i();if(!("catch"in c)){d(`Component "${e}" in record with path "${a.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`);c=Promise.resolve(c)}r.push((()=>c.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const i=s(r)?r.default:r;a.components[e]=i;const c=i.__vccOpts||i;const l=c[t];return l&&nt(l,n,o,a,e)()}))))}}}return r}function at(e){return typeof e==="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function it(e){return e.matched.every((e=>e.redirect))?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map((e=>e.components&&Promise.all(Object.keys(e.components).reduce(((t,n)=>{const o=e.components[n];if(typeof o==="function"&&!("displayName"in o)){t.push(o().then((t=>{if(!t)return Promise.reject(new Error(`Couldn't resolve component "${n}" at "${e.path}". Ensure you passed a function that returns a promise.`));const o=s(t)?t.default:t;e.components[n]=o;return})))}return t}),[]))))).then((()=>e))}function st(e){const n=t.inject(ze);const o=t.inject(Ye);const r=t.computed((()=>n.resolve(t.unref(e.to))));const a=t.computed((()=>{const{matched:e}=r.value;const{length:t}=e;const n=e[t-1];const a=o.matched;if(!n||!a.length)return-1;const i=a.findIndex(b.bind(null,n));if(i>-1)return i;const s=dt(e[t-2]);return t>1&&dt(n)===s&&a[a.length-1].path!==s?a.findIndex(b.bind(null,e[t-2])):i}));const s=t.computed((()=>a.value>-1&&ft(o.params,r.value.params)));const c=t.computed((()=>a.value>-1&&a.value===o.matched.length-1&&w(o.params,r.value.params)));function l(o={}){if(ut(o)){return n[t.unref(e.replace)?"replace":"push"](t.unref(e.to)).catch(u)}return Promise.resolve()}if(i){const e=t.getCurrentInstance();if(e){const n={route:r.value,isActive:s.value,isExactActive:c.value};e.__vrl_devtools=e.__vrl_devtools||[];e.__vrl_devtools.push(n);t.watchEffect((()=>{n.route=r.value;n.isActive=s.value;n.isExactActive=c.value}),{flush:"post"})}}return{route:r,href:t.computed((()=>r.value.href)),isActive:s,isExactActive:c,navigate:l}}const ct=t.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:true},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:st,setup(e,{slots:n}){const o=t.reactive(st(e));const{options:r}=t.inject(ze);const a=t.computed((()=>({[ht(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[ht(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive})));return()=>{const r=n.default&&n.default(o);return e.custom?r:t.h("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:a.value},r)}}});const lt=ct;function ut(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(e.button!==undefined&&e.button!==0)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}if(e.preventDefault)e.preventDefault();return true}function ft(e,t){for(const n in t){const o=t[n];const r=e[n];if(typeof o==="string"){if(o!==r)return false}else{if(!f(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return false}}return true}function dt(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ht=(e,t,n)=>e!=null?e:t!=null?t:n;const pt=t.defineComponent({name:"RouterView",inheritAttrs:false,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:o}){vt();const r=t.inject(Je);const a=t.computed((()=>e.route||r.value));const s=t.inject(Xe,0);const l=t.computed((()=>{let e=t.unref(s);const{matched:n}=a.value;let o;while((o=n[e])&&!o.components){e++}return e}));const u=t.computed((()=>a.value.matched[l.value]));t.provide(Xe,t.computed((()=>l.value+1)));t.provide(He,u);t.provide(Je,a);const d=t.ref();t.watch((()=>[d.value,u.value,e.name]),(([e,t,n],[o,r,a])=>{if(t){t.instances[n]=e;if(r&&r!==t&&e&&e===o){if(!t.leaveGuards.size){t.leaveGuards=r.leaveGuards}if(!t.updateGuards.size){t.updateGuards=r.updateGuards}}}if(e&&t&&(!r||!b(t,r)||!o)){(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}}),{flush:"post"});return()=>{const r=a.value;const s=e.name;const h=u.value;const p=h&&h.components[s];if(!p){return mt(o.default,{Component:p,route:r})}const m=h.props[s];const g=m?m===true?r.params:typeof m==="function"?m(r):m:null;const v=e=>{if(e.component.isUnmounted){h.instances[s]=null}};const y=t.h(p,c({},g,n,{onVnodeUnmounted:v,ref:d}));if(i&&y.ref){const e={depth:l.value,name:h.name,path:h.path,meta:h.meta};const t=f(y.ref)?y.ref.map((e=>e.i)):[y.ref.i];t.forEach((t=>{t.__vrv_devtools=e}))}return mt(o.default,{Component:y,route:r})||y}}});function mt(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const gt=pt;function vt(){const e=t.getCurrentInstance();const n=e.parent&&e.parent.type.name;if(n&&(n==="KeepAlive"||n.includes("Transition"))){const e=n==="KeepAlive"?"keep-alive":"transition";d(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.\n`+`Use slot props instead:\n\n`+`<router-view v-slot="{ Component }">\n`+`  <${e}>\n`+`  <component :is="Component" />\n`+`  </${e}>\n`+`</router-view>`)}}function yt(e,t){const n=c({},e,{matched:e.matched.map((e=>Bt(e,["instances","children","aliasOf"])))});return{_custom:{type:null,readOnly:true,display:e.fullPath,tooltip:t,value:n}}}function bt(e){return{_custom:{display:e}}}let wt=0;function _t(e,n,o){if(n.__hasDevtools)return;n.__hasDevtools=true;const r=wt++;a({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},(a=>{if(typeof a.now!=="function"){console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.")}a.on.inspectComponent(((e,t)=>{if(e.instanceData){e.instanceData.state.push({type:"Routing",key:"$route",editable:false,value:yt(n.currentRoute.value,"Current Route")})}}));a.on.visitComponentTree((({treeNode:e,componentInstance:t})=>{if(t.__vrv_devtools){const n=t.__vrv_devtools;e.tags.push({label:(n.name?`${n.name.toString()}: `:"")+n.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Et})}if(f(t.__vrl_devtools)){t.__devtoolsApi=a;t.__vrl_devtools.forEach((t=>{let n=Ot;let o="";if(t.isExactActive){n=Rt;o="This is exactly active"}else if(t.isActive){n=Ct;o="This link is active"}e.tags.push({label:t.route.path,textColor:0,tooltip:o,backgroundColor:n})}))}}));t.watch(n.currentRoute,(()=>{l();a.notifyComponentUpdate();a.sendInspectorTree(c);a.sendInspectorState(c)}));const i="router:navigations:"+r;a.addTimelineLayer({id:i,label:`Router${r?" "+r:""} Navigations`,color:4237508});n.onError(((e,t)=>{a.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:t.fullPath,logType:"error",time:a.now(),data:{error:e},groupId:t.meta.__navigationId}})}));let s=0;n.beforeEach(((e,t)=>{const n={guard:bt("beforeEach"),from:yt(t,"Current Location during this navigation"),to:yt(e,"Target location")};Object.defineProperty(e.meta,"__navigationId",{value:s++});a.addTimelineEvent({layerId:i,event:{time:a.now(),title:"Start of navigation",subtitle:e.fullPath,data:n,groupId:e.meta.__navigationId}})}));n.afterEach(((e,t,n)=>{const o={guard:bt("afterEach")};if(n){o.failure={_custom:{type:Error,readOnly:true,display:n?n.message:"",tooltip:"Navigation Failure",value:n}};o.status=bt("?")}else{o.status=bt("?")}o.from=yt(t,"Current Location during this navigation");o.to=yt(e,"Target location");a.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:e.fullPath,time:a.now(),data:o,logType:n?"warning":"default",groupId:e.meta.__navigationId}})}));const c="router-inspector:"+r;a.addInspector({id:c,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!u)return;const e=u;let t=o.getRoutes().filter((e=>!e.parent));t.forEach(Tt);if(e.filter){t=t.filter((t=>Lt(t,e.filter.toLowerCase())))}t.forEach((e=>It(e,n.currentRoute.value)));e.rootNodes=t.map(St)}let u;a.on.getInspectorTree((t=>{u=t;if(t.app===e&&t.inspectorId===c){l()}}));a.on.getInspectorState((t=>{if(t.app===e&&t.inspectorId===c){const e=o.getRoutes();const n=e.find((e=>e.record.__vd_id===t.nodeId));if(n){t.state={options:kt(n)}}}}));a.sendInspectorTree(c);a.sendInspectorState(c)}))}function $t(e){if(e.optional){return e.repeatable?"*":"?"}else{return e.repeatable?"+":""}}function kt(e){const{record:t}=e;const n=[{editable:false,key:"path",value:t.path}];if(t.name!=null){n.push({editable:false,key:"name",value:t.name})}n.push({editable:false,key:"regexp",value:e.re});if(e.keys.length){n.push({editable:false,key:"keys",value:{_custom:{type:null,readOnly:true,display:e.keys.map((e=>`${e.name}${$t(e)}`)).join(" "),tooltip:"Param keys",value:e.keys}}})}if(t.redirect!=null){n.push({editable:false,key:"redirect",value:t.redirect})}if(e.alias.length){n.push({editable:false,key:"aliases",value:e.alias.map((e=>e.record.path))})}if(Object.keys(e.record.meta).length){n.push({editable:false,key:"meta",value:e.record.meta})}n.push({key:"score",editable:false,value:{_custom:{type:null,readOnly:true,display:e.score.map((e=>e.join(", "))).join(" | "),tooltip:"Score used to sort routes",value:e.score}}});return n}const Et=15485081;const Ct=2450411;const Rt=8702998;const Pt=2282478;const Ot=16486972;const xt=6710886;function St(e){const t=[];const{record:n}=e;if(n.name!=null){t.push({label:String(n.name),textColor:0,backgroundColor:Pt})}if(n.aliasOf){t.push({label:"alias",textColor:0,backgroundColor:Ot})}if(e.__vd_match){t.push({label:"matches",textColor:0,backgroundColor:Et})}if(e.__vd_exactActive){t.push({label:"exact",textColor:0,backgroundColor:Rt})}if(e.__vd_active){t.push({label:"active",textColor:0,backgroundColor:Ct})}if(n.redirect){t.push({label:typeof n.redirect==="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:xt})}let o=n.__vd_id;if(o==null){o=String(jt++);n.__vd_id=o}return{id:o,label:n.path,tags:t,children:e.children.map(St)}}let jt=0;const At=/^\/(.*)\/([a-z]*)$/;function It(e,t){const n=t.matched.length&&b(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n;if(!n){e.__vd_active=t.matched.some((t=>b(t,e.record)))}e.children.forEach((e=>It(e,t)))}function Tt(e){e.__vd_match=false;e.children.forEach(Tt)}function Lt(e,t){const n=String(e.re).match(At);e.__vd_match=false;if(!n||n.length<3){return false}const o=new RegExp(n[1].replace(/\$$/,""),n[2]);if(o.test(t)){e.children.forEach((e=>Lt(e,t)));if(e.record.path!=="/"||t==="/"){e.__vd_match=e.re.test(t);return true}return false}const r=e.record.path.toLowerCase();const a=qe(r);if(!t.startsWith("/")&&(a.includes(t)||r.includes(t)))return true;if(a.startsWith(t)||r.startsWith(t))return true;if(e.record.name&&String(e.record.name).includes(t))return true;return e.children.some((e=>Lt(e,t)))}function Bt(e,t){const n={};for(const o in e){if(!t.includes(o)){n[o]=e[o]}}return n}function Mt(e){const n=fe(e.routes,e);const o=e.parseQuery||Ge;const r=e.stringifyQuery||Fe;const a=e.history;if(!a)throw new Error('Provide the "history" option when calling "createRouter()":'+" https://next.router.vuejs.org/api/#history.");const s=Qe();const h=Qe();const p=Qe();const v=t.shallowRef(H);let b=H;if(i&&e.scrollBehavior&&"scrollRestoration"in history){history.scrollRestoration="manual"}const w=l.bind(null,(e=>""+e));const _=l.bind(null,We);const $=l.bind(null,qe);function k(e,t){let o;let r;if(K(e)){o=n.getRecordMatcher(e);r=t}else{r=e}return n.addRoute(r,o)}function C(e){const t=n.getRecordMatcher(e);if(t){n.removeRoute(t)}else{d(`Cannot remove non-existent route "${String(e)}"`)}}function R(){return n.getRoutes().map((e=>e.record))}function P(e){return!!n.getRecordMatcher(e)}function O(e,t){t=c({},t||v.value);if(typeof e==="string"){const r=m(o,e,t.path);const i=n.resolve({path:r.path},t);const s=a.createHref(r.fullPath);{if(s.startsWith("//"))d(`Location "${e}" resolved to "${s}". A resolved location cannot start with multiple slashes.`);else if(!i.matched.length){d(`No match found for location with path "${e}"`)}}return c(r,i,{params:$(i.params),hash:qe(r.hash),redirectedFrom:undefined,href:s})}let i;if("path"in e){if("params"in e&&!("name"in e)&&Object.keys(e.params).length){d(`Path "${e.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`)}i=c({},e,{path:m(o,e.path,t.path).path})}else{const n=c({},e.params);for(const e in n){if(n[e]==null){delete n[e]}}i=c({},e,{params:_(e.params)});t.params=_(t.params)}const s=n.resolve(i,t);const l=e.hash||"";if(l&&!l.startsWith("#")){d(`A \`hash\` should always start with the character "#". Replace "${l}" with "#${l}".`)}s.params=w($(s.params));const u=g(r,c({},e,{hash:Ne(l),path:s.path}));const f=a.createHref(u);{if(f.startsWith("//")){d(`Location "${e}" resolved to "${f}". A resolved location cannot start with multiple slashes.`)}else if(!s.matched.length){d(`No match found for location with path "${"path"in e?e.path:e}"`)}}return c({fullPath:u,hash:l,query:r===Fe?Ke(e.query):e.query||{}},s,{redirectedFrom:undefined,href:f})}function x(e){return typeof e==="string"?m(o,e,v.value.path):c({},e)}function S(e,t){if(b!==e){return Y(8,{from:t,to:e})}}function T(e){return U(e)}function M(e){return T(c(x(e),{replace:true}))}function N(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o=typeof n==="function"?n(e):n;if(typeof o==="string"){o=o.includes("?")||o.includes("#")?o=x(o):{path:o};o.params={}}if(!("path"in o)&&!("name"in o)){d(`Invalid redirect found:\n${JSON.stringify(o,null,2)}\n when navigating to "${e.fullPath}". A redirect must contain a name or path. This will break in production.`);throw new Error("Invalid redirect")}return c({query:e.query,hash:e.hash,params:"path"in o?{}:e.params},o)}}function U(e,t){const n=b=O(e);const o=v.value;const a=e.state;const i=e.force;const s=e.replace===true;const l=N(n);if(l)return U(c(x(l),{state:typeof l==="object"?c({},a,l.state):a,force:i,replace:s}),t||n);const u=n;u.redirectedFrom=t;let f;if(!i&&y(r,o,n)){f=Y(16,{to:u,from:o});ne(o,o,true,false)}return(f?Promise.resolve(f):D(u,o)).catch((e=>J(e)?J(e,2)?e:te(e):Z(e,u,o))).then((e=>{if(e){if(J(e,2)){if(y(r,O(e.to),u)&&t&&(t._count=t._count?t._count+1:1)>10){d(`Detected an infinite redirection in a navigation guard when going from "${o.fullPath}" to "${u.fullPath}". Aborting to avoid a Stack Overflow. This will break in production if not fixed.`);return Promise.reject(new Error("Infinite redirect in navigation guard"))}return U(c({replace:s},x(e.to),{state:typeof e.to==="object"?c({},a,e.to.state):a,force:i}),t||u)}}else{e=q(u,o,true,s,a)}W(u,o,e);return e}))}function V(e,t){const n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function D(e,t){let n;const[o,r,a]=Ut(e,t);n=rt(o.reverse(),"beforeRouteLeave",e,t);for(const r of o){r.leaveGuards.forEach((o=>{n.push(nt(o,e,t))}))}const i=V.bind(null,e,t);n.push(i);return Nt(n).then((()=>{n=[];for(const o of s.list()){n.push(nt(o,e,t))}n.push(i);return Nt(n)})).then((()=>{n=rt(r,"beforeRouteUpdate",e,t);for(const o of r){o.updateGuards.forEach((o=>{n.push(nt(o,e,t))}))}n.push(i);return Nt(n)})).then((()=>{n=[];for(const o of e.matched){if(o.beforeEnter&&!t.matched.includes(o)){if(f(o.beforeEnter)){for(const r of o.beforeEnter)n.push(nt(r,e,t))}else{n.push(nt(o.beforeEnter,e,t))}}}n.push(i);return Nt(n)})).then((()=>{e.matched.forEach((e=>e.enterCallbacks={}));n=rt(a,"beforeRouteEnter",e,t);n.push(i);return Nt(n)})).then((()=>{n=[];for(const o of h.list()){n.push(nt(o,e,t))}n.push(i);return Nt(n)})).catch((e=>J(e,8)?e:Promise.reject(e)))}function W(e,t,n){for(const o of p.list())o(e,t,n)}function q(e,t,n,o,r){const s=S(e,t);if(s)return s;const l=t===H;const u=!i?{}:history.state;if(n){if(o||l)a.replace(e.fullPath,c({scroll:l&&u&&u.scroll},r));else a.push(e.fullPath,r)}v.value=e;ne(e,t,n,l);te()}let G;function F(){if(G)return;G=a.listen(((e,t,n)=>{if(!ie.listening)return;const o=O(e);const r=N(o);if(r){U(c(r,{replace:true}),o).catch(u);return}b=o;const s=v.value;if(i){L(I(s.fullPath,n.delta),j())}D(o,s).catch((e=>{if(J(e,4|8)){return e}if(J(e,2)){U(e.to,o).then((e=>{if(J(e,4|16)&&!n.delta&&n.type===E.pop){a.go(-1,false)}})).catch(u);return Promise.reject()}if(n.delta){a.go(-n.delta,false)}return Z(e,o,s)})).then((e=>{e=e||q(o,s,false);if(e){if(n.delta&&!J(e,8)){a.go(-n.delta,false)}else if(n.type===E.pop&&J(e,4|16)){a.go(-1,false)}}W(o,s,e)})).catch(u)}))}let X=Qe();let z=Qe();let Q;function Z(e,t,n){te(e);const o=z.list();if(o.length){o.forEach((o=>o(e,t,n)))}else{{d("uncaught error during route navigation:")}console.error(e)}return Promise.reject(e)}function ee(){if(Q&&v.value!==H)return Promise.resolve();return new Promise(((e,t)=>{X.add([e,t])}))}function te(e){if(!Q){Q=!e;F();X.list().forEach((([t,n])=>e?n(e):t()));X.reset()}return e}function ne(n,o,r,a){const{scrollBehavior:s}=e;if(!i||!s)return Promise.resolve();const c=!r&&B(I(n.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return t.nextTick().then((()=>s(n,o,c))).then((e=>e&&A(e))).catch((e=>Z(e,n,o)))}const oe=e=>a.go(e);let re;const ae=new Set;const ie={currentRoute:v,listening:true,addRoute:k,removeRoute:C,hasRoute:P,getRoutes:R,resolve:O,options:e,push:T,replace:M,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:s.add,beforeResolve:h.add,afterEach:p.add,onError:z.add,isReady:ee,install(e){const o=this;e.component("RouterLink",lt);e.component("RouterView",gt);e.config.globalProperties.$router=o;Object.defineProperty(e.config.globalProperties,"$route",{enumerable:true,get:()=>t.unref(v)});if(i&&!re&&v.value===H){re=true;T(a.location).catch((e=>{d("Unexpected error when starting the router:",e)}))}const r={};for(const e in H){r[e]=t.computed((()=>v.value[e]))}e.provide(ze,o);e.provide(Ye,t.reactive(r));e.provide(Je,v);const s=e.unmount;ae.add(e);e.unmount=function(){ae.delete(e);if(ae.size<1){b=H;G&&G();G=null;v.value=H;re=false;Q=false}s()};if(i){_t(e,o,n)}}};return ie}function Nt(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function Ut(e,t){const n=[];const o=[];const r=[];const a=Math.max(t.matched.length,e.matched.length);for(let i=0;i<a;i++){const a=t.matched[i];if(a){if(e.matched.find((e=>b(e,a))))o.push(a);else n.push(a)}const s=e.matched[i];if(s){if(!t.matched.find((e=>b(e,s)))){r.push(s)}}}return[n,o,r]}function Vt(){return t.inject(ze)}function Dt(){return t.inject(Ye)}e.RouterLink=lt;e.RouterView=gt;e.START_LOCATION=H;e.createMemoryHistory=q;e.createRouter=Mt;e.createRouterMatcher=fe;e.createWebHashHistory=G;e.createWebHistory=W;e.isNavigationFailure=J;e.loadRouteLocation=it;e.matchedRouteKey=He;e.onBeforeRouteLeave=et;e.onBeforeRouteUpdate=tt;e.parseQuery=Ge;e.routeLocationKey=Ye;e.routerKey=ze;e.routerViewLocationKey=Je;e.stringifyQuery=Fe;e.useLink=st;e.useRoute=Dt;e.useRouter=Vt;e.viewDepthKey=Xe})(this.BX.Vue3.VueRouter=this.BX.Vue3.VueRouter||{},BX.Vue3);
//# sourceMappingURL=vue-router.bundle.map.js