-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path731.js
More file actions
3 lines (3 loc) · 30.5 KB
/
731.js
File metadata and controls
3 lines (3 loc) · 30.5 KB
1
2
3
/*! For license information please see 731.js.LICENSE.txt */
"use strict";(self.webpackChunk_lenna_proj_lenna_web=self.webpackChunk_lenna_proj_lenna_web||[]).push([[731],{731:(e,t,n)=>{n.r(t),n.d(t,{NavigationFailureType:()=>N,RouterLink:()=>Ie,RouterView:()=>De,START_LOCATION:()=>G,createMemoryHistory:()=>V,createRouter:()=>Ye,createRouterMatcher:()=>Z,createWebHashHistory:()=>U,createWebHistory:()=>D,isNavigationFailure:()=>F,matchedRouteKey:()=>l,onBeforeRouteLeave:()=>xe,onBeforeRouteUpdate:()=>Ce,parseQuery:()=>Ee,routeLocationKey:()=>p,routerKey:()=>f,routerViewLocationKey:()=>d,stringifyQuery:()=>ke,useLink:()=>je,useRoute:()=>tt,useRouter:()=>et,viewDepthKey:()=>u});var r=n(788);function o(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==n.g?n.g:{}}const a="function"==typeof Proxy;class s{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const r=e.settings[t];n[t]=r.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(o,t)}catch(e){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}o=e}},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}const i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,c=e=>i?Symbol(e):"_vr_"+e,l=c("rvlm"),u=c("rvd"),f=c("r"),p=c("rl"),d=c("rvl"),h="undefined"!=typeof window,g=Object.assign;function m(e,t){const n={};for(const r in t){const o=t[r];n[r]=Array.isArray(o)?o.map(e):e(o)}return n}const v=()=>{},y=/\/$/;function _(e,t,n="/"){let r,o={},a="",s="";const i=t.indexOf("?"),c=t.indexOf("#",i>-1?i:0);return i>-1&&(r=t.slice(0,i),a=t.slice(i+1,c>-1?c:t.length),o=e(a)),c>-1&&(r=r||t.slice(0,c),s=t.slice(c,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o,a,s=n.length-1;for(o=0;o<r.length;o++)if(a=r[o],1!==s&&"."!==a){if(".."!==a)break;s--}return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}(null!=r?r:t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:s}}function b(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function w(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function E(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!k(e[n],t[n]))return!1;return!0}function k(e,t){return Array.isArray(e)?O(e,t):Array.isArray(t)?O(t,e):e===t}function O(e,t){return Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var R,A;function x(e){if(!e)if(h){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(y,"")}!function(e){e.pop="pop",e.push="push"}(R||(R={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(A||(A={}));const C=/^[^#]+#/;function P(e,t){return e.replace(C,"#")+t}const S=()=>({left:window.pageXOffset,top:window.pageYOffset});function j(e,t){return(history.state?history.state.position-t:-1)+e}const I=new Map;let L=()=>location.protocol+"//"+location.host;function T(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let t=o.includes(e.slice(a))?e.slice(a).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),b(n,"")}return b(n,e)+r+o}function $(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?S():null}}function D(e){const t=function(e){const{history:t,location:n}=window,r={value:T(e,n)},o={value:t.state};function a(r,a,s){const i=e.indexOf("#"),c=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+r:L()+e+r;try{t[s?"replaceState":"pushState"](a,"",c),o.value=a}catch(e){console.error(e),n[s?"replace":"assign"](c)}}return o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:function(e,n){const s=g({},o.value,t.state,{forward:e,scroll:S()});a(s.current,s,!0),a(e,g({},$(r.value,e,null),{position:s.position+1},n),!1),r.value=e},replace:function(e,n){a(e,g({},t.state,$(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}(e=x(e)),n=function(e,t,n,r){let o=[],a=[],s=null;const i=({state:a})=>{const i=T(e,location),c=n.value,l=t.value;let u=0;if(a){if(n.value=i,t.value=a,s&&s===c)return void(s=null);u=l?a.position-l.position:0}else r(i);o.forEach((e=>{e(n.value,c,{delta:u,type:R.pop,direction:u?u>0?A.forward:A.back:A.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(g({},e.state,{scroll:S()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",c),{pauseListeners:function(){s=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return a.push(t),t},destroy:function(){for(const e of a)e();a=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),r=g({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:P.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function V(e=""){let t=[],n=[""],r=0;function o(e){r++,r===n.length||n.splice(r),n.push(e)}const a={location:"",state:{},base:e=x(e),createHref:P.bind(null,e),replace(e){n.splice(r--,1),o(e)},push(e,t){o(e)},listen:e=>(t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}),destroy(){t=[],n=[""],r=0},go(e,o=!0){const a=this.location,s=e<0?A.back:A.forward;r=Math.max(0,Math.min(r+e,n.length-1)),o&&function(e,n,{direction:r,delta:o}){const a={direction:r,delta:o,type:R.pop};for(const r of t)r(e,n,a)}(this.location,a,{direction:s,delta:e})}};return Object.defineProperty(a,"location",{enumerable:!0,get:()=>n[r]}),a}function U(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),D(e)}function q(e){return"string"==typeof e||"symbol"==typeof e}const G={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},B=c("nf");var N;function M(e,t){return g(new Error,{type:e,[B]:!0},t)}function F(e,t){return e instanceof Error&&B in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(N||(N={}));const Q="[^/]+?",W={sensitive:!1,strict:!1,start:!0,end:!0},K=/[.+*?^${}()[\]/\\]/g;function H(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function z(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const e=H(r[n],o[n]);if(e)return e;n++}return o.length-r.length}const J={type:0,value:""},X=/[a-zA-Z0-9_]/;function Y(e,t,n){const r=function(e,t){const n=g({},W,t),r=[];let o=n.start?"^":"";const a=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(o+="/");for(let r=0;r<t.length;r++){const s=t[r];let i=40+(n.sensitive?.25:0);if(0===s.type)r||(o+="/"),o+=s.value.replace(K,"\\$&"),i+=40;else if(1===s.type){const{value:e,repeatable:n,optional:c,regexp:l}=s;a.push({name:e,repeatable:n,optional:c});const u=l||Q;if(u!==Q){i+=10;try{new RegExp(`(${u})`)}catch(t){throw new Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let f=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(f=c&&t.length<2?`(?:/${f})`:"/"+f),c&&(f+="?"),o+=f,i+=20,c&&(i+=-8),n&&(i+=-20),".*"===u&&(i+=-50)}e.push(i)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");return{re:s,score:r,keys:a,parse:function(e){const t=e.match(s),n={};if(!t)return null;for(let e=1;e<t.length;e++){const r=t[e]||"",o=a[e-1];n[o.name]=r&&o.repeatable?r.split("/"):r}return n},stringify:function(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:a,repeatable:s,optional:i}=e,c=a in t?t[a]:"";if(Array.isArray(c)&&!s)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const l=Array.isArray(c)?c.join("/"):c;if(!l){if(!i)throw new Error(`Missing required param "${a}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=l}}return n}}}(function(e){if(!e)return[[]];if("/"===e)return[[J]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let i,c=0,l="",u="";function f(){l&&(0===n?a.push({type:0,value:l}):1===n||2===n||3===n?(a.length>1&&("*"===i||"+"===i)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:"*"===i||"+"===i,optional:"*"===i||"?"===i})):t("Invalid state to consume buffer"),l="")}function p(){l+=i}for(;c<e.length;)if(i=e[c++],"\\"!==i||2===n)switch(n){case 0:"/"===i?(l&&f(),s()):":"===i?(f(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===i?n=2:X.test(i)?p():(f(),n=0,"*"!==i&&"?"!==i&&"+"!==i&&c--);break;case 2:")"===i?"\\"==u[u.length-1]?u=u.slice(0,-1)+i:n=3:u+=i;break;case 3:f(),n=0,"*"!==i&&"?"!==i&&"+"!==i&&c--,u="";break;default:t("Unknown state")}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${l}"`),f(),s(),o}(e.path),n),o=g(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Z(e,t){const n=[],r=new Map;function o(e,n,r){const i=!r,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ee(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}(e);c.aliasOf=r&&r.record;const l=re(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(g({},c,{components:r?r.record.components:c.components,path:e,aliasOf:r?r.record:c}))}let f,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(f=Y(t,n,l),r?r.alias.push(f):(p=p||f,p!==f&&p.alias.push(f),i&&e.name&&!te(f)&&a(e.name)),"children"in c){const e=c.children;for(let t=0;t<e.length;t++)o(e[t],f,r&&r.children[t])}r=r||f,s(f)}return p?()=>{a(p)}:v}function a(e){if(q(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function s(e){let t=0;for(;t<n.length&&z(e,n[t])>=0;)t++;n.splice(t,0,e),e.record.name&&!te(e)&&r.set(e.record.name,e)}return t=re({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,a,s,i={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw M(1,{location:e});s=o.record.name,i=g(function(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}(t.params,o.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),a=o.stringify(i)}else if("path"in e)a=e.path,o=n.find((e=>e.re.test(a))),o&&(i=o.parse(a),s=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw M(1,{location:e,currentLocation:t});s=o.record.name,i=g({},t.params,e.params),a=o.stringify(i)}const c=[];let l=o;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:a,params:i,matched:c,meta:ne(c)}},removeRoute:a,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function ee(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="boolean"==typeof n?n:n[r];return t}function te(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ne(e){return e.reduce(((e,t)=>g(e,t.meta)),{})}function re(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const oe=/#/g,ae=/&/g,se=/\//g,ie=/=/g,ce=/\?/g,le=/\+/g,ue=/%5B/g,fe=/%5D/g,pe=/%5E/g,de=/%60/g,he=/%7B/g,ge=/%7C/g,me=/%7D/g,ve=/%20/g;function ye(e){return encodeURI(""+e).replace(ge,"|").replace(ue,"[").replace(fe,"]")}function _e(e){return ye(e).replace(le,"%2B").replace(ve,"+").replace(oe,"%23").replace(ae,"%26").replace(de,"`").replace(he,"{").replace(me,"}").replace(pe,"^")}function be(e){return null==e?"":function(e){return ye(e).replace(oe,"%23").replace(ce,"%3F")}(e).replace(se,"%2F")}function we(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}function Ee(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;e<n.length;++e){const r=n[e].replace(le," "),o=r.indexOf("="),a=we(o<0?r:r.slice(0,o)),s=o<0?null:we(r.slice(o+1));if(a in t){let e=t[a];Array.isArray(e)||(e=t[a]=[e]),e.push(s)}else t[a]=s}return t}function ke(e){let t="";for(let n in e){const r=e[n];(n=_e(n).replace(ie,"%3D"),null!=r)?(Array.isArray(r)?r.map((e=>e&&_e(e))):[r&&_e(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==r&&(t+=(t.length?"&":"")+n)}return t}function Oe(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=Array.isArray(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}function Re(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function Ae(e,t,n){const o=()=>{e[t].delete(n)};(0,r.onUnmounted)(o),(0,r.onDeactivated)(o),(0,r.onActivated)((()=>{e[t].add(n)})),e[t].add(n)}function xe(e){const t=(0,r.inject)(l,{}).value;t&&Ae(t,"leaveGuards",e)}function Ce(e){const t=(0,r.inject)(l,{}).value;t&&Ae(t,"updateGuards",e)}function Pe(e,t,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((s,i)=>{const c=e=>{var c;!1===e?i(M(4,{from:n,to:t})):e instanceof Error?i(e):"string"==typeof(c=e)||c&&"object"==typeof c?i(M(2,{from:t,to:e})):(a&&r.enterCallbacks[o]===a&&"function"==typeof e&&a.push(e),s())},l=e.call(r&&r.instances[o],t,n,c);let u=Promise.resolve(l);e.length<3&&(u=u.then(c)),u.catch((e=>i(e)))}))}function Se(e,t,n,r){const o=[];for(const s of e)for(const e in s.components){let c=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(a=c)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(c.__vccOpts||c)[t];a&&o.push(Pe(a,n,r,s,e))}else{let a=c();o.push((()=>a.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const a=(c=o).__esModule||i&&"Module"===c[Symbol.toStringTag]?o.default:o;var c;s.components[e]=a;const l=(a.__vccOpts||a)[t];return l&&Pe(l,n,r,s,e)()}))))}}var a;return o}function je(e){const t=(0,r.inject)(f),n=(0,r.inject)(p),o=(0,r.computed)((()=>t.resolve((0,r.unref)(e.to)))),a=(0,r.computed)((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],a=n.matched;if(!r||!a.length)return-1;const s=a.findIndex(w.bind(null,r));if(s>-1)return s;const i=Le(e[t-2]);return t>1&&Le(r)===i&&a[a.length-1].path!==i?a.findIndex(w.bind(null,e[t-2])):s})),s=(0,r.computed)((()=>a.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!Array.isArray(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}(n.params,o.value.params))),i=(0,r.computed)((()=>a.value>-1&&a.value===n.matched.length-1&&E(n.params,o.value.params)));if(__VUE_PROD_DEVTOOLS__&&h){const e=(0,r.getCurrentInstance)();if(e){const t={route:o.value,isActive:s.value,isExactActive:i.value};e.__vrl_devtools=e.__vrl_devtools||[],e.__vrl_devtools.push(t),(0,r.watchEffect)((()=>{t.route=o.value,t.isActive=s.value,t.isExactActive=i.value}),{flush:"post"})}}return{route:o,href:(0,r.computed)((()=>o.value.href)),isActive:s,isExactActive:i,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[(0,r.unref)(e.replace)?"replace":"push"]((0,r.unref)(e.to)).catch(v):Promise.resolve()}}}const Ie=(0,r.defineComponent)({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:je,setup(e,{slots:t}){const n=(0,r.reactive)(je(e)),{options:o}=(0,r.inject)(f),a=(0,r.computed)((()=>({[Te(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Te(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:(0,r.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}});function Le(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Te=(e,t,n)=>null!=e?e:null!=t?t:n;function $e(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const De=(0,r.defineComponent)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const o=(0,r.inject)(d),a=(0,r.computed)((()=>e.route||o.value)),s=(0,r.inject)(u,0),i=(0,r.computed)((()=>a.value.matched[s]));(0,r.provide)(u,s+1),(0,r.provide)(l,i),(0,r.provide)(d,a);const c=(0,r.ref)();return(0,r.watch)((()=>[c.value,i.value,e.name]),(([e,t,n],[r,o,a])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&w(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=a.value,l=i.value,u=l&&l.components[e.name],f=e.name;if(!u)return $e(n.default,{Component:u,route:o});const p=l.props[e.name],d=p?!0===p?o.params:"function"==typeof p?p(o):p:null,m=(0,r.h)(u,g({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(l.instances[f]=null)},ref:c}));if(__VUE_PROD_DEVTOOLS__&&h&&m.ref){const e={depth:s,name:l.name,path:l.path,meta:l.meta};(Array.isArray(m.ref)?m.ref.map((e=>e.i)):[m.ref.i]).forEach((t=>{t.__vrv_devtools=e}))}return $e(n.default,{Component:m,route:o})||m}}});function Ve(e,t){const n=g({},e,{matched:e.matched.map((e=>function(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}(e,["instances","children","aliasOf"])))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Ue(e){return{_custom:{display:e}}}let qe=0;function Ge(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const i=qe++;!function(e,t){const n=o(),r=o().__VUE_DEVTOOLS_GLOBAL_HOOK__,i=a&&e.enableEarlyProxy;if(!r||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&i){const o=i?new s(e,r):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}else r.emit("devtools-plugin:setup",e,t)}({id:"org.vuejs.router"+(i?"."+i:""),label:"Vue Router",packageName:"vue-router",homepage:"https://next.router.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",componentStateTypes:["Routing"],app:e},(o=>{o.on.inspectComponent(((e,n)=>{e.instanceData&&e.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ve(t.currentRoute.value,"Current Route")})})),o.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 <router-view>",backgroundColor:Ne})}Array.isArray(t.__vrl_devtools)&&(t.__devtoolsApi=o,t.__vrl_devtools.forEach((t=>{let n=Qe,r="";t.isExactActive?(n=Fe,r="This is exactly active"):t.isActive&&(n=Me,r="This link is active"),e.tags.push({label:t.route.path,textColor:0,tooltip:r,backgroundColor:n})})))})),(0,r.watch)(t.currentRoute,(()=>{l(),o.notifyComponentUpdate(),o.sendInspectorTree(c),o.sendInspectorState(c)}));const a="router:navigations:"+i;o.addTimelineLayer({id:a,label:`Router${i?" "+i:""} Navigations`,color:4237508}),t.onError(((e,t)=>{o.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:t.fullPath,logType:"error",time:Date.now(),data:{error:e},groupId:t.meta.__navigationId}})}));let s=0;t.beforeEach(((e,t)=>{const n={guard:Ue("beforeEach"),from:Ve(t,"Current Location during this navigation"),to:Ve(e,"Target location")};Object.defineProperty(e.meta,"__navigationId",{value:s++}),o.addTimelineEvent({layerId:a,event:{time:Date.now(),title:"Start of navigation",subtitle:e.fullPath,data:n,groupId:e.meta.__navigationId}})})),t.afterEach(((e,t,n)=>{const r={guard:Ue("afterEach")};n?(r.failure={_custom:{type:Error,readOnly:!0,display:n?n.message:"",tooltip:"Navigation Failure",value:n}},r.status=Ue("❌")):r.status=Ue("✅"),r.from=Ve(t,"Current Location during this navigation"),r.to=Ve(e,"Target location"),o.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:e.fullPath,time:Date.now(),data:r,logType:n?"warning":"default",groupId:e.meta.__navigationId}})}));const c="router-inspector:"+i;function l(){if(!u)return;const e=u;let r=n.getRoutes().filter((e=>!e.parent));r.forEach(Je),e.filter&&(r=r.filter((t=>Xe(t,e.filter.toLowerCase())))),r.forEach((e=>ze(e,t.currentRoute.value))),e.rootNodes=r.map(We)}let u;o.addInspector({id:c,label:"Routes"+(i?" "+i:""),icon:"book",treeFilterPlaceholder:"Search routes"}),o.on.getInspectorTree((t=>{u=t,t.app===e&&t.inspectorId===c&&l()})),o.on.getInspectorState((t=>{if(t.app===e&&t.inspectorId===c){const e=n.getRoutes().find((e=>e.record.__vd_id===t.nodeId));e&&(t.state={options:Be(e)})}})),o.sendInspectorTree(c),o.sendInspectorState(c)}))}function Be(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return null!=t.name&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map((e=>`${e.name}${function(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}(e)}`)).join(" "),tooltip:"Param keys",value:e.keys}}}),null!=t.redirect&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map((e=>e.record.path))}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map((e=>e.join(", "))).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const Ne=15485081,Me=2450411,Fe=8702998,Qe=16486972;function We(e){const t=[],{record:n}=e;null!=n.name&&t.push({label:String(n.name),textColor:0,backgroundColor:2282478}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Qe}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Ne}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Fe}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Me}),n.redirect&&t.push({label:"redirect: "+("string"==typeof n.redirect?n.redirect:"Object"),textColor:16777215,backgroundColor:6710886});let r=n.__vd_id;return null==r&&(r=String(Ke++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(We)}}let Ke=0;const He=/^\/(.*)\/([a-z]*)$/;function ze(e,t){const n=t.matched.length&&w(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some((t=>w(t,e.record)))),e.children.forEach((e=>ze(e,t)))}function Je(e){e.__vd_match=!1,e.children.forEach(Je)}function Xe(e,t){const n=String(e.re).match(He);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach((e=>Xe(e,t))),("/"!==e.record.path||"/"===t)&&(e.__vd_match=e.re.test(t),!0);const r=e.record.path.toLowerCase(),o=we(r);return!(t.startsWith("/")||!o.includes(t)&&!r.includes(t))||!(!o.startsWith(t)&&!r.startsWith(t))||!(!e.record.name||!String(e.record.name).includes(t))||e.children.some((e=>Xe(e,t)))}function Ye(e){const t=Z(e.routes,e),n=e.parseQuery||Ee,o=e.stringifyQuery||ke,a=e.history,s=Re(),i=Re(),c=Re(),l=(0,r.shallowRef)(G);let u=G;h&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=m.bind(null,(e=>""+e)),b=m.bind(null,be),k=m.bind(null,we);function O(e,r){if(r=g({},r||l.value),"string"==typeof e){const o=_(n,e,r.path),s=t.resolve({path:o.path},r),i=a.createHref(o.fullPath);return g(o,s,{params:k(s.params),hash:we(o.hash),redirectedFrom:void 0,href:i})}let s;if("path"in e)s=g({},e,{path:_(n,e.path,r.path).path});else{const t=g({},e.params);for(const e in t)null==t[e]&&delete t[e];s=g({},e,{params:b(e.params)}),r.params=b(r.params)}const i=t.resolve(s,r),c=e.hash||"";i.params=y(k(i.params));const u=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,g({},e,{hash:(f=c,ye(f).replace(he,"{").replace(me,"}").replace(pe,"^")),path:i.path}));var f;const p=a.createHref(u);return g({fullPath:u,hash:c,query:o===ke?Oe(e.query):e.query||{}},i,{redirectedFrom:void 0,href:p})}function A(e){return"string"==typeof e?_(n,e,l.value.path):g({},e)}function x(e,t){if(u!==e)return M(8,{from:t,to:e})}function C(e){return L(e)}function P(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=A(r):{path:r},r.params={}),g({query:e.query,hash:e.hash,params:e.params},r)}}function L(e,t){const n=u=O(e),r=l.value,a=e.state,s=e.force,i=!0===e.replace,c=P(n);if(c)return L(g(A(c),{state:a,force:s,replace:i}),t||n);const f=n;let p;return f.redirectedFrom=t,!s&&function(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&w(t.matched[r],n.matched[o])&&E(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=M(16,{to:f,from:r}),H(r,r,!0,!1)),(p?Promise.resolve(p):$(f,r)).catch((e=>F(e)?e:W(e,f,r))).then((e=>{if(e){if(F(e,2))return L(g(A(e.to),{state:a,force:s,replace:i}),t||f)}else e=V(f,r,!0,i,a);return D(f,r,e),e}))}function T(e,t){const n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function $(e,t){let n;const[r,o,a]=function(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const a=t.matched[s];a&&(e.matched.find((e=>w(e,a)))?r.push(a):n.push(a));const i=e.matched[s];i&&(t.matched.find((e=>w(e,i)))||o.push(i))}return[n,r,o]}(e,t);n=Se(r.reverse(),"beforeRouteLeave",e,t);for(const o of r)o.leaveGuards.forEach((r=>{n.push(Pe(r,e,t))}));const c=T.bind(null,e,t);return n.push(c),Ze(n).then((()=>{n=[];for(const r of s.list())n.push(Pe(r,e,t));return n.push(c),Ze(n)})).then((()=>{n=Se(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Pe(r,e,t))}));return n.push(c),Ze(n)})).then((()=>{n=[];for(const r of e.matched)if(r.beforeEnter&&!t.matched.includes(r))if(Array.isArray(r.beforeEnter))for(const o of r.beforeEnter)n.push(Pe(o,e,t));else n.push(Pe(r.beforeEnter,e,t));return n.push(c),Ze(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Se(a,"beforeRouteEnter",e,t),n.push(c),Ze(n)))).then((()=>{n=[];for(const r of i.list())n.push(Pe(r,e,t));return n.push(c),Ze(n)})).catch((e=>F(e,8)?e:Promise.reject(e)))}function D(e,t,n){for(const r of c.list())r(e,t,n)}function V(e,t,n,r,o){const s=x(e,t);if(s)return s;const i=t===G,c=h?history.state:{};n&&(r||i?a.replace(e.fullPath,g({scroll:i&&c&&c.scroll},o)):a.push(e.fullPath,o)),l.value=e,H(e,t,n,i),K()}let U;let B,N=Re(),Q=Re();function W(e,t,n){K(e);const r=Q.list();return r.length?r.forEach((r=>r(e,t,n))):console.error(e),Promise.reject(e)}function K(e){B||(B=!0,U=a.listen(((e,t,n)=>{const r=O(e),o=P(r);if(o)return void L(g(o,{replace:!0}),r).catch(v);u=r;const s=l.value;var i,c;h&&(i=j(s.fullPath,n.delta),c=S(),I.set(i,c)),$(r,s).catch((e=>F(e,12)?e:F(e,2)?(L(e.to,r).then((e=>{F(e,20)&&!n.delta&&n.type===R.pop&&a.go(-1,!1)})).catch(v),Promise.reject()):(n.delta&&a.go(-n.delta,!1),W(e,r,s)))).then((e=>{(e=e||V(r,s,!1))&&(n.delta?a.go(-n.delta,!1):n.type===R.pop&&F(e,20)&&a.go(-1,!1)),D(r,s,e)})).catch(v)})),N.list().forEach((([t,n])=>e?n(e):t())),N.reset())}function H(t,n,o,a){const{scrollBehavior:s}=e;if(!h||!s)return Promise.resolve();const i=!o&&function(e){const t=I.get(e);return I.delete(e),t}(j(t.fullPath,0))||(a||!o)&&history.state&&history.state.scroll||null;return(0,r.nextTick)().then((()=>s(t,n,i))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(e,t){const 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)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}(e))).catch((e=>W(e,t,n)))}const z=e=>a.go(e);let J;const X=new Set,Y={currentRoute:l,addRoute:function(e,n){let r,o;return q(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:O,options:e,push:C,replace:function(e){return C(g(A(e),{replace:!0}))},go:z,back:()=>z(-1),forward:()=>z(1),beforeEach:s.add,beforeResolve:i.add,afterEach:c.add,onError:Q.add,isReady:function(){return B&&l.value!==G?Promise.resolve():new Promise(((e,t)=>{N.add([e,t])}))},install(e){const n=this;e.component("RouterLink",Ie),e.component("RouterView",De),e.config.globalProperties.$router=n,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,r.unref)(l)}),h&&!J&&l.value===G&&(J=!0,C(a.location).catch((e=>{})));const o={};for(const e in G)o[e]=(0,r.computed)((()=>l.value[e]));e.provide(f,n),e.provide(p,(0,r.reactive)(o)),e.provide(d,l);const s=e.unmount;X.add(e),e.unmount=function(){X.delete(e),X.size<1&&(u=G,U&&U(),l.value=G,J=!1,B=!1),s()},__VUE_PROD_DEVTOOLS__&&h&&Ge(e,n,t)}};return Y}function Ze(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function et(){return(0,r.inject)(f)}function tt(){return(0,r.inject)(p)}}}]);
//# sourceMappingURL=731.js.map