@kitbag/router 0.23.1 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(I,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],R):(I=typeof globalThis<"u"?globalThis:I||self,R(I["@kitbag/router"]={},I.Vue))})(this,(function(I,R){"use strict";class Ln extends Error{constructor(t){super(`Child property on meta for ${t} conflicts with the parent meta.`)}}function Lo(e,t){return Do(e,t),{...e,...t}}function Do(e,t){const n=Object.keys(e).find(r=>r in t&&typeof t[r]!=typeof e[r]);if(n)throw new Ln(n)}class Dn extends Error{constructor(t){super(`Invalid Param "${t}": Router does not support multiple params by the same name. All param names must be unique.`)}}function Vo(e,t){return e.filter(n=>t===n).length}function Be(...e){const t=e.flatMap(n=>Array.isArray(n)?n:Object.keys(n));for(const n of t)if(Vo(t,n)>1)throw new Dn(n)}function xo(e,t){return Be(e,t),{...e,...t}}function Vn(e){return"hooks"in e}function fe(e){return e&&Vn(e)?e.hooks:[]}function xn(e,t){return[...fe(e),...fe(t)]}function xt(e){return"parent"in e&&!!e.parent}function Mt(e){return"component"in e&&!!e.component}function Bt(e){return"props"in e&&typeof e.props=="function"}function $t(e){return"components"in e&&!!e.components}function Ht(e){return"props"in e&&typeof e.props=="object"}function jt(e,t){return{...t,meta:Lo(e.meta,t.meta),state:xo(e.state,t.state),hooks:xn(e,t),matches:[...e.matches,t.matched],context:[...e.context,...t.context],depth:e.depth+1}}function W(e){return typeof e!="string"?!1:/^(https?:\/\/|\/).*/g.test(e)}function Mn(e){return W(e)?e:`/${e}`}const Zt=Symbol("IS_URL_SYMBOL");function le(e){return typeof e=="object"&&e!==null&&Zt in e}class de extends Error{constructor(){super("Router not installed")}}class Bn extends Error{constructor(t,n){super(`useRoute called with incorrect route. Given ${t}, expected ${n}`)}}function rt(){let e=0;return()=>(++e).toString()}const Mo=rt()();function Bo(e){return e===Mo}const Gt=rt();function $n(e){return e===void 0?"":e}class pe{redirects=new Set;onBeforeRouteEnter=new Set;onBeforeRouteUpdate=new Set;onBeforeRouteLeave=new Set;onAfterRouteEnter=new Set;onAfterRouteUpdate=new Set;onAfterRouteLeave=new Set;onError=new Set}class $o extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Router does not support multiple redirects to the same route. All redirects must be unique.`)}}function ot(){const e=new pe;return{redirect:(f,m)=>{if(e.redirects.size>0)throw new $o(f.name);const c=(E,{replace:l})=>{l(f.name,m?.(E.params))};return e.redirects.add(c),()=>e.redirects.delete(c)},onBeforeRouteEnter:f=>(e.onBeforeRouteEnter.add(f),()=>e.onBeforeRouteEnter.delete(f)),onBeforeRouteUpdate:f=>(e.onBeforeRouteUpdate.add(f),()=>e.onBeforeRouteUpdate.delete(f)),onBeforeRouteLeave:f=>(e.onBeforeRouteLeave.add(f),()=>e.onBeforeRouteLeave.delete(f)),onAfterRouteEnter:f=>(e.onAfterRouteEnter.add(f),()=>e.onAfterRouteEnter.delete(f)),onAfterRouteUpdate:f=>(e.onAfterRouteUpdate.add(f),()=>e.onAfterRouteUpdate.delete(f)),onAfterRouteLeave:f=>(e.onAfterRouteLeave.add(f),()=>e.onAfterRouteLeave.delete(f)),onError:f=>(e.onError.add(f),()=>e.onError.delete(f)),store:e}}class qt extends Error{context;constructor(t={}){super(t.message??"Uncaught InvalidRouteParamValueError"),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...t}}}const $e="[",st="]";function Ho(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function jo(e){return typeof e=="function"&&Ho(e)}function it(e){return typeof e=="object"&&"get"in e&&typeof e.get=="function"&&"set"in e&&typeof e.set=="function"}function Ft(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Hn(e,t){return it(e)?{...e,defaultValue:t??e.defaultValue}:{get:n=>he(n,{param:e}),set:n=>ie(n,{param:e}),defaultValue:t}}function at(e){return it(e)&&e.defaultValue!==void 0}function Zo(e,t){return Hn(e,t)}function Go(e){return e!==void 0}function Oe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function qo(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"}function te(e){return typeof e=="string"&&e.length>0}let P=null;async function Fo(){const{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:a,ZodEmail:i,ZodUUID:u,ZodBase64:f,ZodCUID:m,ZodCUID2:c,ZodULID:E,ZodJWT:l,ZodBigInt:p,ZodNaN:S,ZodBoolean:_,ZodDate:h,ZodISODateTime:T,ZodISODate:g,ZodISOTime:d,ZodNumber:y,ZodLiteral:w,ZodObject:A,ZodEnum:C,ZodArray:M,ZodTuple:$,ZodUnion:K,ZodDiscriminatedUnion:Ve,ZodRecord:re,ZodMap:oe,ZodSet:xe,ZodIntersection:j,ZodPromise:b}=await import("zod");return{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:a,ZodEmail:i,ZodUUID:u,ZodBase64:f,ZodCUID:m,ZodCUID2:c,ZodULID:E,ZodJWT:l,ZodBigInt:p,ZodNaN:S,ZodBoolean:_,ZodDate:h,ZodISODateTime:T,ZodISODate:g,ZodISOTime:d,ZodNumber:y,ZodLiteral:w,ZodObject:A,ZodEnum:C,ZodArray:M,ZodTuple:$,ZodUnion:K,ZodDiscriminatedUnion:Ve,ZodRecord:re,ZodMap:oe,ZodSet:xe,ZodIntersection:j,ZodPromise:b}}function zo(e){return Object.values(e).some(t=>le(t)?Object.values(t.schema.host.params).some(({param:n})=>zt(n))||Object.values(t.schema.path.params).some(({param:n})=>zt(n))||Object.values(t.schema.query.params).some(({param:n})=>zt(n)):!1)}function zt(e){return Oe(e)&&"parse"in e&&typeof e.parse=="function"&&"~standard"in e&&Oe(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="zod"}async function Wo(){try{P=await Fo()}catch{throw new Error("Failed to initialize Zod")}}function jn(e){return P?e instanceof P.ZodType:!1}function Zn(e){return{get:(t,{invalid:n})=>{try{return Wt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Jt(t,e)}catch{throw n()}}}}const Jo=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function we(e,t){if(typeof t=="string"&&Jo.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function He(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ct(e,t){return P?.ZodString&&e instanceof P.ZodString?1:P?.ZodString&&t instanceof P.ZodString?-1:0}function Wt(e,t){if(!P)throw new Error("Zod is not initialized");if(t instanceof P.ZodString)return t.parse(e);if(t instanceof P.ZodBoolean)return t.parse(!!e);if(t instanceof P.ZodDate)return t.parse(new Date(e));if(t instanceof P.ZodNumber)return t.parse(Number(e));if(t instanceof P.ZodBigInt)return t.parse(BigInt(e));if(t instanceof P.ZodNaN)return t.parse(Number(e));if(t instanceof P.ZodLiteral)return He([()=>t.parse(Number(e)),()=>t.parse(!!e),()=>t.parse(e)]);if(t instanceof P.ZodObject)return t.parse(JSON.parse(e,we));if(t instanceof P.ZodEnum)return t.parse(e);if(t instanceof P.ZodArray||t instanceof P.ZodTuple)return t.parse(JSON.parse(e,we));if(t instanceof P.ZodUnion){const n=Array.from(t.def.options).sort(ct).map(r=>()=>Wt(e,r));return He(n)}if(t instanceof P.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ct).map(r=>()=>Wt(e,r));return He(n)}if(t instanceof P.ZodRecord)return t.parse(JSON.parse(e,we));if(t instanceof P.ZodMap)return t.parse(new Map(JSON.parse(e,we)));if(t instanceof P.ZodSet)return t.parse(new Set(JSON.parse(e,we)));if(t instanceof P.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof P.ZodPromise)throw new Error("Promise schemas are not supported");return t.parse(e)}function Jt(e,t){if(!P)throw new Error("Zod is not initialized");if(t instanceof P.ZodString||t instanceof P.ZodISODateTime||t instanceof P.ZodISODate||t instanceof P.ZodISOTime||t instanceof P.ZodIPv4||t instanceof P.ZodIPv6||t instanceof P.ZodCIDRv4||t instanceof P.ZodCIDRv6||t instanceof P.ZodURL||t instanceof P.ZodEmail||t instanceof P.ZodUUID||t instanceof P.ZodBase64||t instanceof P.ZodCUID||t instanceof P.ZodCUID2||t instanceof P.ZodULID||t instanceof P.ZodJWT)return t.parse(e);if(t instanceof P.ZodBoolean)return t.parse(e).toString();if(t instanceof P.ZodDate)return t.parse(e).toISOString();if(t instanceof P.ZodNumber)return t.parse(Number(e)).toString();if(t instanceof P.ZodBigInt)return t.parse(BigInt(String(e))).toString();if(t instanceof P.ZodNaN)return t.parse(e).toString();if(t instanceof P.ZodLiteral){const n=t.parse(e);return n!=null?n.toString():String(n)}if(t instanceof P.ZodObject)return JSON.stringify(t.parse(e));if(t instanceof P.ZodEnum){const n=t.parse(e);return typeof n=="string"?n:String(n)}if(t instanceof P.ZodArray||t instanceof P.ZodTuple)return JSON.stringify(t.parse(e));if(t instanceof P.ZodUnion){const n=Array.from(t.def.options).sort(ct).map(r=>()=>Jt(e,r));return He(n)}if(t instanceof P.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ct).map(r=>()=>Jt(e,r));return He(n)}if(t instanceof P.ZodRecord)return JSON.stringify(t.parse(e));if(t instanceof P.ZodMap){const n=t.parse(e);return JSON.stringify(Array.from(n.entries()))}if(t instanceof P.ZodSet){const n=t.parse(e);return JSON.stringify(Array.from(n.values()))}if(t instanceof P.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof P.ZodPromise)throw new Error("Promise schemas are not supported");return JSON.stringify(t.parse(e))}function Kt(e){return typeof e=="object"&&e!==null&&"then"in e}function k(e,t){const n=e["~standard"].validate(t);if(Kt(n))throw new Error("Promise schemas are not supported");if(n.issues)throw new Error("Validation failed");return n.value}function Ko(e){return Oe(e)&&"type"in e&&typeof e.type=="string"&&"~standard"in e&&Oe(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="valibot"}function Gn(e){return Ko(e)}function qn(e){return{get:(t,{invalid:n})=>{try{return Yt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Qt(t,e)}catch{throw n()}}}}const Yo=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Pe(e,t){if(typeof t=="string"&&Yo.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function Ne(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ut(e,t){return e.type==="string"?1:t.type==="string"?-1:0}function Yt(e,t){if(t.type==="boolean")return k(t,!!e);if(t.type==="date")return k(t,new Date(e));if(t.type==="number")return k(t,Number(e));if(t.type==="literal")return Ne([()=>k(t,Number(e)),()=>k(t,!!e),()=>k(t,e)]);if(t.type==="object")return k(t,JSON.parse(e,Pe));if(t.type==="enum")return Ne([()=>k(t,Number(e)),()=>k(t,!!e),()=>k(t,e)]);if(t.type==="array"||t.type==="tuple")return k(t,JSON.parse(e,Pe));if(t.type==="union"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Yt(e,r));return Ne(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Yt(e,r));return Ne(n)}if(t.type==="record")return k(t,JSON.parse(e,Pe));if(t.type==="map")return k(t,new Map(JSON.parse(e,Pe)));if(t.type==="set")return k(t,new Set(JSON.parse(e,Pe)));if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return k(t,e)}function Qt(e,t){if(t.type==="string"||t.type==="boolean")return k(t,e).toString();if(t.type==="date")return k(t,e).toISOString();if(t.type==="number")return k(t,Number(e)).toString();if(t.type==="literal")return k(t,e).toString();if(t.type==="object")return JSON.stringify(k(t,e));if(t.type==="enum"||t.type==="nativeEnum")return k(t,e).toString();if(t.type==="array"||t.type==="tuple")return JSON.stringify(k(t,e));if(t.type==="union"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Qt(e,r));return Ne(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Qt(e,r));return Ne(n)}if(t.type==="record")return JSON.stringify(k(t,e));if(t.type==="map"){const n=k(t,e);return JSON.stringify(Array.from(n.entries()))}if(t.type==="set"){const n=k(t,e);return JSON.stringify(Array.from(n.values()))}if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return JSON.stringify(k(t,e))}function Xt(e){return{get:(t,{invalid:n})=>{if(`${e}`===t)return e;throw n(`Expected value to be ${e}, received ${JSON.stringify(t)}`)},set:(t,{invalid:n})=>{if(e!==t)throw n(`Expected value to be literal ${e}, received ${JSON.stringify(t)}`);return t.toString()}}}function Qo(e,t){return e[t]??String}function Fn(e){return{invalid:t=>{throw new qt({...e,message:t})}}}const Xo={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!="string")throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},zn={get:(e,{invalid:t})=>{if(e==="true")return!0;if(e==="false")return!1;throw t(`Expected boolean value, received ${JSON.stringify(e)}`)},set:(e,{invalid:t})=>{if(typeof e!="boolean")throw t(`Expected boolean value, received ${JSON.stringify(e)}`);return e.toString()}},Wn={get:(e,{invalid:t})=>{const n=Number(e);if(isNaN(n))throw t(`Expected number value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="number")throw t(`Expected number value, received ${JSON.stringify(e)}`);return e.toString()}},Jn={get:(e,{invalid:t})=>{const n=new Date(e);if(isNaN(n.getTime()))throw t(`Expected date value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="object"||!(e instanceof Date))throw t(`Expected date value, received ${JSON.stringify(e)}`);return e.toISOString()}},Kn={get:(e,{invalid:t})=>{try{return JSON.parse(e)}catch{throw t(`Expected JSON value, received "${e}"`)}},set:(e,{invalid:t})=>{try{return JSON.stringify(e)}catch{throw t(`Expected JSON value, received "${e}"`)}}};function he(e,{param:t=String,isOptional:n=!1}={}){const r=Fn({param:t,value:e,isGetter:!0});if(e===void 0||!te(e)){if(at(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return Xo.get(e,r);if(t===Boolean)return zn.get(e,r);if(t===Number)return Wn.get(e,r);if(t===Date)return Jn.get(e,r);if(t===JSON)return Kn.get(e,r);if(jo(t))return t(e,r);if(it(t))return t.get(e,r);if(t instanceof RegExp){if(t.test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}return Ft(t)?Xt(t).get(e,r):jn(t)?Zn(t).get(e,r):Gn(t)?qn(t).get(e,r):e}function en(e,t){try{return he(e,t)}catch(n){if(n instanceof qt)return;throw n}}function es(e,t){try{return ie(e,t)}catch(n){if(n instanceof qt)return;throw n}}function ie(e,{param:t=String,isOptional:n=!1}={}){const r=Fn({param:t,value:e,isSetter:!0});if(e===void 0){if(n)return"";throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===Boolean)return zn.set(e,r);if(t===Number)return Wn.set(e,r);if(t===Date)return Jn.set(e,r);if(t===JSON)return Kn.set(e,r);if(it(t))return t.set(e,r);if(Ft(t))return Xt(t).set(e,r);if(jn(t))return Zn(t).set(e,r);if(Gn(t))return qn(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}const ft=`\\${$e}\\??([\\w-_]+)\\*?\\${st}`,ts=`\\${$e}\\?([\\w-_]+)\\*?\\${st}`,ns=`\\${$e}\\??([\\w-_]+)\\*\\${st}`,rs="[^/]*",os=".*",ss="([^/]*)",is="(.*)";function tn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function as(e,t){const n=Array.from(e.matchAll(t));if(n.length===0)return[e];let r=0;const o=n.reduce((a,i)=>{const u=tn(e.slice(r,i.index));u.length&&a.push(u);const[f]=i;return a.push(f),r=i.index+f.length,a},[]),s=e.slice(r);return s&&o.push(s),o}function cs(e){const t=lt(e);return new RegExp(`^${t||".*"}$`,"i")}function Yn(e){const t=lt(e);return new RegExp(`^${t}$`,"i")}function us(e){const t=e.replace(/^#*/,""),n=lt(t);return new RegExp(`^#?${n||".*"}$`,"i")}function fs(e){const t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,n])=>!Xn(n)).map(([n,r])=>{const o=lt(r);return new RegExp(`${tn(n)}=${o}(&|$)`,"i")})}function lt(e){return as(e,new RegExp(ft,"g")).map(t=>t.startsWith($e)?Qn(t):tn(t)).join("")}function Qn(e){return e.replace(new RegExp(ft,"g"),t=>er(t)?os:rs)}function ls(e,t){const n=tr(t),{isGreedy:r=!1}=e.params[t]??{},o=r?is:ss;return e.value.replace(n,o)}function Xn(e){return new RegExp(ts,"g").test(e)}function er(e){return new RegExp(ns,"g").test(e)}function dt(e){const[t]=nr(e,new RegExp(ft,"g"));return t}function tr(e){return new RegExp(`\\${$e}\\??${e}\\*?\\${st}`,"g")}function nr(e,t){return Array.from(e.matchAll(t)).flatMap(([,...r])=>r.map(o=>te(o)?o:""))}function ds(e="",t={}){return te(e)?Array.from(e.matchAll(new RegExp(ft,"g"))).reduce((r,[o,s])=>{const a=dt(o);if(!a)return r;const i=Qo(t,a),u=Xn(o)||at(i),f=er(o);return Be([a],r),r[s]={param:i,isOptional:u,isGreedy:f},r},{}):{}}const rr=Symbol("UrlPartsWithParams");function or(e){return Oe(e)&&e[rr]===!0}function Q(e){return e===void 0?pt():or(e)?e:pt(e,{})}function pt(e,t){return{value:e??"",params:ds(e,t),[rr]:!0}}function ht(e){if(typeof e=="string"||typeof e>"u"||or(e))return Q(e);const t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(const[o,s]of t)if(Ft(s))n.push(`${o}=${s}`);else{const a=`[${o}]`,i=dt(a);i&&(r[i]=s),n.push(`${i}=${a}`)}return pt(n.join("&"),r)}function ps(e,t,n){const r=ls(t,n),o=Qn(r),[s]=nr(e,new RegExp(o,"g"));return s}function hs(e,t,n,r){const o=ie(r,t.params[n]);return e.replace(tr(n),o)}function sr(...e){const t=new URLSearchParams;for(const n of e){const r=new URLSearchParams(n);for(const[o,s]of r.entries())t.append(o,s)}return t}const Et="https://internal.invalid";function gt(e){const t=new URL(e.host??Et,Et);return t.pathname=e.path??"",t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??"",Mn(t.toString().replace(new RegExp(`^${Et}/*`),"/"))}function X(e){return!e.startsWith("http")?gs(e):Es(e)}function je(e,t){if(typeof e=="string"){const r=je(X(e),t);return gt(r)}const n=new URLSearchParams(t.query);return{host:te(t.host)?t.host:e.host,path:te(t.path)?t.path:e.path??"",query:sr(e.query,n),hash:te(t.hash)?t.hash:e.hash??""}}function Es(e){const{protocol:t,host:n,pathname:r,searchParams:o,hash:s}=new URL(e,e);return{host:`${t}//${n}`,path:r,query:o,hash:s}}function gs(e){const{pathname:t,searchParams:n,hash:r}=new URL(e,Et);return{path:t,query:n,hash:r}}function Ie(e){const t={host:Q(e.host),path:Q(e.path),query:ms(ht(e.query)),hash:_s(Q(e.hash))};Be(t.path.params,t.query.params,t.host.params,t.hash.params);const n={...t.host,regexp:cs(t.host.value),stringify(c={}){return nn(t.host,c)}},r={...t.path,regexp:{trailingSlashIgnored:Yn(t.path.value),trailingSlashRemoved:Yn(t.path.value.replace(/^(.+)\/$/,"$1"))},stringify(c={}){return nn(t.path,c)}},o={...t.query,regexp:fs(t.query.value),stringify(c={}){return ys(t.query,c).toString()}},s={...t.hash,regexp:us(t.hash.value),stringify(c={}){return nn(t.hash,c)}};function a(c={}){return gt({host:n.stringify(c),path:r.stringify(c),query:o.stringify(c),hash:s.stringify(c)})}function i(c,E={}){const l=X(c),p=E.removeTrailingSlashes??!0;if(!n.regexp.test(l.host??""))throw new Error("Host does not match");if(!(p?r.regexp.trailingSlashRemoved:r.regexp.trailingSlashIgnored).test(l.path))throw new Error("Path does not match");const _=l.query.toString();if(!o.regexp.every(h=>h.test(_)))throw new Error("Query does not match");if(!s.regexp.test(l.hash))throw new Error("Hash does not match")}function u(c,E={}){i(c,E);const l=X(c);return{...rn(n,l.host??""),...rn(r,l.path),...Rs(o,l.query.toString()),...rn(s,l.hash)}}function f(c,E={}){try{return{success:!0,params:u(c,E)}}catch(l){return{success:!1,params:{},error:new Error("Failed to parse url",{cause:l})}}}return{...{schema:{host:n,path:r,query:o,hash:s},params:{},[Zt]:!0},isRelative:!te(t.host.value),stringify:a,parse:u,tryParse:f}}function _s(e){return{...e,value:e.value.replace(/^#/,"")}}function ms(e){return{...e,value:e.value.replace(/^\?/,"")}}function nn(e,t){return Object.keys(e.params).reduce((n,r)=>hs(n,e,r,t[r]),e.value)}function ys(e,t){const n=new URLSearchParams(e.value);if(!e.value)return n;for(const[r,o]of Array.from(n.entries())){const s=dt(o);if(!s)continue;const i=ie(t[s],e.params[s]),u=t[s]===void 0&&i==="";e.params[s].isOptional&&u?n.delete(r,o):n.set(r,i)}return n}function rn(e,t){const n={},r=decodeURIComponent(t);for(const[o,s]of Object.entries(e.params)){const a=ps(r,e,o),i=he(a,s);n[o]=i}return n}function Rs(e,t){const n={},r=new URLSearchParams(e.value),o=new URLSearchParams(t);for(const[s,a]of Array.from(r.entries())){const i=dt(a);if(!i)continue;const f=o.get(s)??void 0,m=he(f,e.params[i]);n[i]=m}return n}class ir extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}}function ar(e){return"redirect"in e}function cr({getRoute:e}){return{redirectTo:(...[r,o])=>{const s=e();if(!ar(s))throw new ir(s.name);r.context.push(s),s.context.push(r),s.redirect(r,o)},redirectFrom:(r,o)=>{const s=e();if(!ar(r))throw new ir(r.name);s.context.push(r),r.context.push(s),r.redirect(s,o)}}}function on(e,t){Be(e.params,t.params);const n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function ur(e,t){Be(e.params,t.params);const n=[e.value,t.value].filter(te).join("&");return{...e,value:n,params:{...e.params,...t.params}}}function fr(e,t){return on(e,t)}function sn(e,t){if(!le(e))throw new Error("Parent is not a valid url");if(!Ss(t))return Ie({host:e.schema.host,path:on(e.schema.path,Q(t.path)),query:ur(e.schema.query,ht(t.query)),hash:fr(e.schema.hash,Q(t.hash))});if(!le(t))throw new Error("Child is not a valid url");return Ie({host:e.schema.host,path:on(e.schema.path,t.schema.path),query:ur(e.schema.query,t.schema.query),hash:fr(e.schema.hash,t.schema.hash)})}function Ss(e){return le(e)}function an(e){return"getTitle"in e}function Ts(e){let t;return{setTitle:o=>{t=o},getTitle:async o=>{const s=async()=>{if(e&&an(e))return e.getTitle(o)};return t?t(o,{from:o,getParentTitle:s}):s()}}}function Ee(e,t){const n=Gt(),r=$n(e.name),o=Q(e.path),s=ht(e.query),a=Q(e.hash),i=e.meta??{},u=e.state??{},f=e.context??[],{store:m,...c}=ot(),E=Ts(e.parent),l=R.markRaw({...e,id:n,meta:i,state:u,props:t,name:r}),p=cr({getRoute:()=>_}),S=Ie({path:o,query:s,hash:a}),_={id:n,matched:l,matches:[l],hooks:[m],name:r,meta:i,state:u,context:f,depth:1,prefetch:e.prefetch,...p,...S,...c,...E};if(xt(e)){const h=jt(e.parent,_),T=sn(e.parent,{path:o,query:s,hash:a});return{...h,...T}}return _}function lr(e){return R.defineComponent(()=>()=>R.h("h1",e),{name:e,props:[]})}function Os(e){const t=e.component??lr(e.type);return{type:e.type,component:t}}function ws(e){const t=Gt(),n=$n(e.name),r=Q(e.path),o=ht(e.query),s=Q(e.hash),a=e.meta??{},i=Q(e.host),u=e.context??[],{store:f,...m}=ot(),c=cr({getRoute:()=>p}),E=R.markRaw({id:t,meta:{},state:{},...e}),l=Ie({host:i,path:r,query:o,hash:s}),p={id:t,matched:E,matches:[E],hooks:[f],name:n,meta:a,depth:1,state:{},context:u,...m,...c,...l};if(xt(e)){const S=jt(e.parent,p),_=sn(e.parent,{path:r,query:o,hash:s});return{...S,..._}}return p}function Ze(){const e=new Map;return t=>{const n=e.get(t);if(!n){const r=Symbol();return e.set(t,r),r}return n}}const Ps=Ze();function dr(e){const t=Ps(e);return({increment:n=!1}={})=>{const r=R.inject(t,0);return n&&R.provide(t,r+1),r}}const Ge=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},qe=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},Fe=(e,t,n)=>e.matches.at(n)?.id===t?.matches.at(n)?.id;function Ns(e){switch(e){case"onBeforeRouteEnter":case"onAfterRouteEnter":return Ge;case"onBeforeRouteUpdate":case"onAfterRouteUpdate":return Fe;case"onBeforeRouteLeave":case"onAfterRouteLeave":return qe;default:throw new Error(`Switch is not exhaustive for lifecycle: ${e}`)}}function Is(e,t){const n=new pe;return fe(e).forEach((r,o)=>{if(r.redirects.forEach(s=>n.redirects.add(s)),Ge(e,t,o))return r.onBeforeRouteEnter.forEach(s=>n.onBeforeRouteEnter.add(s));if(Fe(e,t,o))return r.onBeforeRouteUpdate.forEach(s=>n.onBeforeRouteUpdate.add(s))}),fe(t).forEach((r,o)=>{if(qe(e,t,o))return r.onBeforeRouteLeave.forEach(s=>n.onBeforeRouteLeave.add(s))}),n}function As(e,t){const n=new pe;return fe(e).forEach((r,o)=>{if(Ge(e,t,o))return r.onAfterRouteEnter.forEach(s=>n.onAfterRouteEnter.add(s));if(Fe(e,t,o))return r.onAfterRouteUpdate.forEach(s=>n.onAfterRouteUpdate.add(s))}),fe(t).forEach((r,o)=>{if(qe(e,t,o))return r.onAfterRouteLeave.forEach(s=>n.onAfterRouteLeave.add(s))}),n}class _t extends Error{}class ae extends _t{response;constructor(t){super("Uncaught ContextPushError"),this.response={status:"PUSH",to:t}}}class ge extends _t{response;constructor(t){super("Uncaught ContextRejectionError"),this.response={status:"REJECT",type:t}}}class pr extends _t{response;constructor(){super("Uncaught ContextAbortError"),this.response={status:"ABORT"}}}function bs(e,t,n){const r=new pe;return e.matches.forEach((o,s)=>{Ge(e,t,s)&&n.onBeforeRouteEnter.forEach(a=>r.onBeforeRouteEnter.add(a)),Fe(e,t,s)&&n.onBeforeRouteUpdate.forEach(a=>r.onBeforeRouteUpdate.add(a))}),t?.matches.forEach((o,s)=>{qe(e,t,s)&&n.onBeforeRouteLeave.forEach(a=>r.onBeforeRouteLeave.add(a))}),r}function Cs(e,t,n){const r=new pe;return e.matches.forEach((o,s)=>{Ge(e,t,s)&&n.onAfterRouteEnter.forEach(a=>r.onAfterRouteEnter.add(a)),Fe(e,t,s)&&n.onAfterRouteUpdate.forEach(a=>r.onAfterRouteUpdate.add(a))}),t?.matches.forEach((o,s)=>{qe(e,t,s)&&n.onAfterRouteLeave.forEach(a=>r.onAfterRouteLeave.add(a))}),r}function hr(){let e=null;function t(r){e=r}function n(r){return e?e.runWithContext(r):r()}return{setVueApp:t,runWithContext:n}}function ze({to:e}){const t=a=>{throw new ge(a)},n=(...a)=>{throw new ae(a)};return{reject:t,push:n,replace:(a,i,u)=>{if(W(a)){const c=i??{};throw new ae([a,{...c,replace:!0}])}const f=i,m=u??{};throw new ae([a,f,{...m,replace:!0}])},update:(a,i,u)=>{if(typeof a=="object"){const m={...e.params,...a};return n(e.name,m,i)}const f={...e.params,[a]:i};return n(e.name,f,u)},abort:()=>{throw new pr}}}const Er=Ze();function ks(){const{setVueApp:e,runWithContext:t}=hr(),{store:n,...r}=ot(),o=new pe,s=async({to:m,from:c})=>{const{reject:E,push:l,replace:p,update:S,abort:_}=ze({to:m}),h=Is(m,c),T=bs(m,c,n),g=[...h.redirects,...T.onBeforeRouteEnter,...h.onBeforeRouteEnter,...T.onBeforeRouteUpdate,...h.onBeforeRouteUpdate,...o.onBeforeRouteUpdate,...T.onBeforeRouteLeave,...h.onBeforeRouteLeave,...o.onBeforeRouteLeave];try{const d=g.map(y=>t(()=>y(m,{from:c,reject:E,push:l,replace:p,update:S,abort:_})));await Promise.all(d)}catch(d){if(d instanceof ae||d instanceof ge||d instanceof pr)return d.response;try{i(d,{to:m,from:c,source:"hook"})}catch(y){if(y instanceof ae||y instanceof ge)return y.response;throw y}}return{status:"SUCCESS"}},a=async({to:m,from:c})=>{const{reject:E,push:l,replace:p,update:S}=ze({to:m}),_=As(m,c),h=Cs(m,c,n),T=[...o.onAfterRouteLeave,..._.onAfterRouteLeave,...h.onAfterRouteLeave,...o.onAfterRouteUpdate,..._.onAfterRouteUpdate,...h.onAfterRouteUpdate,...o.onAfterRouteEnter,..._.onAfterRouteEnter,...h.onAfterRouteEnter];try{const g=T.map(d=>t(()=>d(m,{from:c,reject:E,push:l,replace:p,update:S})));await Promise.all(g)}catch(g){if(g instanceof ae||g instanceof ge)return g.response;try{i(g,{to:m,from:c,source:"hook"})}catch(d){if(d instanceof ae||d instanceof ge)return d.response;throw d}}return{status:"SUCCESS"}},i=(m,{to:c,from:E,source:l})=>{const{reject:p,push:S,replace:_,update:h}=ze({to:c});for(const T of n.onError)try{T(m,{to:c,from:E,source:l,reject:p,push:S,replace:_,update:h});return}catch(g){if(g instanceof _t)throw g;if(g===m)continue;throw g}};return{runBeforeRouteHooks:s,runAfterRouteHooks:a,runErrorHooks:i,addComponentHook:({lifecycle:m,depth:c,hook:E})=>{const l=Ns(m),p=o[m],S=(_,h)=>{if(l(_,h.from,c))return E(_,h)};return p.add(S),()=>p.delete(S)},addGlobalRouteHooks:m=>{m.onBeforeRouteEnter.forEach(c=>r.onBeforeRouteEnter(c)),m.onBeforeRouteUpdate.forEach(c=>r.onBeforeRouteUpdate(c)),m.onBeforeRouteLeave.forEach(c=>r.onBeforeRouteLeave(c)),m.onAfterRouteEnter.forEach(c=>r.onAfterRouteEnter(c)),m.onAfterRouteUpdate.forEach(c=>r.onAfterRouteUpdate(c)),m.onAfterRouteLeave.forEach(c=>r.onAfterRouteLeave(c)),m.onError.forEach(c=>r.onError(c))},setVueApp:e,...r}}function Us(e){const t=Er(e);return()=>{const n=R.inject(t);if(!n)throw new de;return n}}function mt(e,t){const n=dr(e),r=Us(e);return o=>{const s=n(),i=r().addComponentHook({lifecycle:t,hook:o,depth:s-1});return R.onUnmounted(i),i}}function vs(e){const t=mt(e,"onBeforeRouteLeave"),n=mt(e,"onBeforeRouteUpdate"),r=mt(e,"onAfterRouteLeave"),o=mt(e,"onAfterRouteUpdate");return{onBeforeRouteLeave:t,onBeforeRouteUpdate:n,onAfterRouteLeave:r,onAfterRouteUpdate:o}}const gr=Ze();function Ls(e){const t=gr(e);return()=>{const n=R.inject(t);if(!n)throw new de;return n}}const _r=Ze();function mr(e){const t=_r(e);return()=>{const n=R.inject(t);if(!n)throw new de;return n}}function We(e){return()=>{const t=R.inject(e);if(!t)throw new de;return t}}const yr=Symbol("isRouterRouteSymbol");function Ds(e,t){return typeof t=="object"&&t!==null&&yr in t&&e in t}function Vs(e,t,n){function r(g){const d=gt({...X(t.href),query:void 0}),y=je(d,{query:g});n(y)}function o(g,d,y){if(qo(g))return o({[g]:d},y);const w=g,A=d,C={...t.params,...w};return n(t.name,C,A)}const s=(...g)=>{const d=new URLSearchParams(t.query);d.set(...g),r(d)},a=(...g)=>{const d=new URLSearchParams(t.query);d.append(...g),r(d)},i=(...g)=>{const d=new URLSearchParams(t.query);d.delete(...g),r(d)},{id:u,matched:f,matches:m,name:c,hash:E,href:l}=R.toRefs(t),p=new Proxy({},{get(g,d,y){return Reflect.get(t.params,d,y)},set(g,d,y){return o(d,y),!0},ownKeys(){return Reflect.ownKeys(t.params)},getOwnPropertyDescriptor(g,d){return Reflect.getOwnPropertyDescriptor(t.params,d)}}),S=R.computed({get(){return p},set(g){o(g)}}),_=R.computed({get(){return new Proxy(t.query,{get(g,d,y){switch(d){case"append":return a;case"set":return s;case"delete":return i;default:return Reflect.get(g,d,y)}}})},set(g){r(g)}}),h=R.computed({get(){return new Proxy(t.state,{set(g,d,y){return o({},{state:{...t.state,[d]:y}}),!0}})},set(g){o({},{state:g})}});return R.reactive({...t,id:u,matched:f,matches:m,state:h,query:_,hash:E,params:S,name:c,href:l,update:o,[yr]:!0,[e]:!0})}function cn(e){return(t,n,{exact:r}={})=>Ds(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(o=>o.name).includes(n):!1}function yt(e){const t=We(e),n=cn(e);return(r,o)=>{const s=t();function a(){if(!r)return;if(!n(s.route,r,o))throw new Bn(r,s.route.name)}return R.watch(s.route,a,{immediate:!0,deep:!0}),s.route}}function un(e){const t=yt(e),n=We(e),r=mr(e),o=dr(e),s=Ls(e);return R.defineComponent((a,i)=>{const u=t(),f=n(),m=r(),c=o({increment:!0});R.onServerPrefetch(async()=>{await f.start()});const{getRouteComponents:E}=s(),l=R.computed(()=>{if(!f.started.value)return null;if(m.value)return m.value.component;const p=u.matches.at(c);if(!p)return null;const S=E(p),_=a.name??"default";return S[_]});return()=>i.slots.default?i.slots.default({route:u,component:l.value,rejection:m.value}):l.value?R.h(l.value):null},{name:"RouterView",props:["name"]})}const Rr=Ze();function Sr(e){const t=Rr(e);return()=>{const n=R.inject(t);if(!n)throw new de;return n}}const xs="lazy",Ms={components:!0,props:!1};function Rt(e){return["eager","lazy","intent"].includes(e)}function Tr({routerPrefetch:e,routePrefetch:t,linkPrefetch:n},r){const o=fn(n,r),s=fn(t,r),a=fn(e,r),i=[o,s,a,Ms[r],xs].reduce((u,f)=>Rt(u)?u:u===!0&&Rt(f)?f:u===!0&&!Rt(f)?u:u===void 0?f:u,void 0);return Rt(i)?i:!1}function fn(e,t){return Oe(e)?e[t]:e}const Bs=R.defineAsyncComponent(()=>new Promise(e=>{e({default:{template:"foo"}})}));function Or(e){return e.name===Bs.name&&"__asyncLoader"in e}const wr=Symbol("visibilityObserver");function $s(e){const t=R.inject(wr);if(!t)throw new de;return R.watch(e,(r,o)=>{r&&t.observe(r),o&&t.unobserve(o)},{immediate:!0}),R.onUnmounted(()=>{e.value&&t.unobserve(e.value)}),{isElementVisible:R.computed(()=>e.value?t.isElementVisible(e.value):!1)}}function Pr(e,t,n){R.watch(e,(r,o)=>{r&&r.addEventListener(t,n),o&&o.removeEventListener(t,n)},{immediate:!0}),R.onUnmounted(()=>{e.value&&e.value.removeEventListener(t,n)})}function Hs(e){const t=Sr(e);return n=>{const r=new Map,o=R.ref(),{getPrefetchProps:s,setPrefetchProps:a}=t(),{isElementVisible:i}=$s(o),u=()=>{const c=Array.from(r.values()).reduce((E,l)=>(Object.assign(E,l),E),{});a(c)};R.watch(()=>R.toValue(n),({route:c,...E})=>{r.clear(),c&&m("eager",c,E)},{immediate:!0}),R.watch(i,c=>{const{route:E,...l}=R.toValue(n);!E||!c||m("lazy",E,l)},{immediate:!0}),Pr(o,"focusin",f),Pr(o,"mouseover",f);function f(){const{route:c,...E}=R.toValue(n);c&&m("intent",c,E)}function m(c,E,l){js(c,E,l),r.has(c)||r.set(c,s(c,E,l))}return{element:o,commit:u}}}function js(e,t,n){t.matches.forEach(r=>{Tr({...n,routePrefetch:r.prefetch},"components")===e&&(Mt(r)&&Or(r.component)&&r.component.__asyncLoader(),$t(r)&&Object.values(r.components).forEach(s=>{Or(s)&&s.__asyncLoader()}))})}function Nr(e){const t=We(e),n=Hs(e),r=cn(e);return(o,s={},a={})=>{const i=t(),u=R.computed(()=>{const d=R.toValue(o);return typeof d!="string"?d:W(d)?i.find(d,R.toValue(a)):i.resolve(d,R.toValue(s),R.toValue(a))}),f=R.computed(()=>{if(u.value)return u.value.href;const d=R.toValue(o);if(W(d))return d;console.error(new Error("Failed to resolve route in RouterLink."))}),m=R.computed(()=>r(i.route)&&i.route.matches.some(d=>d.id===u.value?.id)),c=R.computed(()=>i.route.id===u.value?.id),E=R.computed(()=>r(i.route)&&Go(u.value)&&i.route.href.startsWith(u.value.href)),l=R.computed(()=>i.route.href===u.value?.href),p=R.computed(()=>!!f.value&&i.isExternal(f.value)),S=R.computed(()=>{const d=R.toValue(o);return typeof d!="string"||W(d)?R.toValue(s):R.toValue(a)}),{element:_,commit:h}=n(()=>({route:u.value,routerPrefetch:i.prefetch,linkPrefetch:S.value.prefetch})),T=d=>{h();const y={replace:d?.replace??S.value.replace,query:sr(d?.query,S.value.query),hash:d?.hash??S.value.hash,state:{...S.value.state,...d?.state}},w=R.toValue(o);return W(w)||typeof w=="object"?i.push(w,y):i.push(w,R.toValue(s),y)};return{element:_,route:u,href:f,isMatch:m,isExactMatch:c,isActive:E,isExactActive:l,isExternal:p,push:T,replace:d=>T({...d,replace:!0})}}}function Ir(e){const t=We(e),n=Nr(e);return R.defineComponent((r,o)=>{const s=t(),a=R.computed(()=>h(r.to)),i=R.computed(()=>T(r.to)),u=R.computed(()=>{const{to:d,...y}=r;return y}),{element:f,isMatch:m,isExactMatch:c,isActive:E,isExactActive:l,isExternal:p,push:S}=n(()=>typeof r.to=="function"?r.to(s.resolve):r.to,u),_=R.computed(()=>({"router-link--match":m.value,"router-link--exact-match":c.value,"router-link--active":E.value,"router-link--exact-active":l.value}));function h(d){if(typeof d=="function"){const y=d(s.resolve);return h(y)}return W(d)?s.find(d):d}function T(d){if(typeof d=="function"){const y=d(s.resolve);return T(y)}return W(d)?d:d?.href}function g(d){d.preventDefault(),S()}return()=>R.h("a",{href:i.value,class:["router-link",_.value],ref:f,onClick:g},o.slots.default?.({route:a.value,isMatch:m.value,isExactMatch:c.value,isActive:E.value,isExactActive:l.value,isExternal:p.value}))},{name:"RouterLink",props:["to","prefetch","query","hash","replace","state"]})}function Zs(e){const t=yt(e);return(n,r=String)=>{const o=t(),s=R.computed({get(){const i=o.query.get(R.toValue(n));return i===null?at(r)?r.defaultValue:null:en(i,{param:r})},set(i){o.query.set(R.toValue(n),ie(i,{param:r}))}}),a=R.computed({get(){const i=o.query.getAll(R.toValue(n));return i.length===0&&at(r)?[r.defaultValue]:i.map(u=>en(u,{param:r})).filter(u=>u!==null)},set(i){const u=new URLSearchParams(o.query);u.delete(R.toValue(n)),i.forEach(f=>{u.append(R.toValue(n),ie(f,{param:r}))}),o.query=u}});return{value:s,values:a,remove:()=>{o.query.delete(R.toValue(n))}}}}function Ar(e){const t=typeof e=="object"?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s}=vs(t),a=cn(t),i=un(t),u=Ir(t),f=yt(t),m=We(t),c=Zs(t),E=Nr(t),l=mr(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s,isRoute:a,RouterView:i,RouterLink:u,useRoute:f,useRouter:m,useQueryValue:c,useLink:E,useRejection:l}}function Gs(e){const{store:t,...n}=ot();return{routes:e.routes??[],rejections:e.rejections??[],hooks:t,...n}}function br(e){return{get:(t,{invalid:n})=>{for(const r of e){const o=en(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)},set:(t,{invalid:n})=>{for(const r of e){const o=es(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)}}}const qs={separator:","};function Fs(e,t={}){const{separator:n}={...qs,...t},r=br(e);return{get:(o,s)=>o.split(n).map(a=>r.get(a,s)),set:(o,s)=>{if(!Array.isArray(o))throw s.invalid("Expected an array");return o.map(a=>r.set(a,s)).join(n)}}}const zs={separator:","};function Ws(e,t={}){const{separator:n}={...zs,...t};return{get:r=>{const o=r.split(n);return e.map((s,a)=>he(o.at(a),{param:s}))},set:(r,{invalid:o})=>{if(!Array.isArray(r))throw o("Expected a tuple");if(r.length!==e.length)throw o(`Expected tuple with ${e.length} values but received ${r.length} values`);return e.map((s,a)=>ie(r.at(a),{param:s})).join(n)}}}function Ae(){let e=[];return{get length(){return e.length},push(t){return e.push(t),()=>{e=e.filter(n=>n!==t)}},call(t){e.forEach(n=>n(t))}}}function St(){return Math.random().toString(36).slice(2,10)}function Cr(e,t,n){return Math.min(Math.max(e,t),n)}function Tt(e){e.preventDefault(),e.returnValue=""}function _e({pathname:e="/",search:t="",hash:n=""}){let r=e;return t&&t!=="?"&&(r+=t.startsWith("?")?t:"?"+t),n&&n!=="#"&&(r+=n.startsWith("#")?n:"#"+n),r}function Je(e){const t={};if(e){const n=e.indexOf("#");n>=0&&(t.hash=e.slice(n),e=e.slice(0,n));const r=e.indexOf("?");r>=0&&(t.search=e.slice(r),e=e.slice(0,r)),e&&(t.pathname=e)}return t}function be(e){return Object.freeze(e)}const Ot="beforeunload",kr="popstate",Js="hashchange";function Ur(e={}){const{window:t=document.defaultView}=e,n=t.history;function r(){const{pathname:d,search:y,hash:w}=t.location,A=n.state??{};return[A.idx,be({pathname:d,search:y,hash:w,state:A.usr??null,key:A.key??"default"})]}let o=null;function s(){if(o)m.call(o),o=null;else{const[y,w]=r();if(m.length){if(y!=null){const A=i??0-y;A&&(o={action:"POP",location:w,retry(){T(A*-1)}},T(A))}}else S("POP")}}t.addEventListener(kr,s);let a="POP",[i,u]=r();const f=Ae(),m=Ae();i==null&&(i=0,n.replaceState({...n.state,idx:i},"",c(u)));function c(d){return typeof d=="string"?d:_e(d)}function E(d,y=null){return be({pathname:u.pathname,hash:"",search:"",...typeof d=="string"?Je(d):d,state:y,key:St()})}function l(d,y){return[{usr:d.state,key:d.key,idx:y},c(d)]}function p(d,y,w){return m.length?(m.call({action:d,location:y,retry:w}),!1):!0}function S(d){a=d,[i,u]=r(),f.call({action:a,location:u})}function _(d,y){const w="PUSH",A=E(d,y);function C(){_(d,y)}if(p(w,A,C)){const[M,$]=l(A,(i??0)+1);try{n.pushState(M,"",$)}catch{t.location.assign($)}S(w)}}function h(d,y){const w="REPLACE",A=E(d,y);function C(){h(d,y)}if(p(w,A,C)){const[M,$]=l(A,i??0);n.replaceState(M,"",$),S(w)}}function T(d){n.go(d)}return{get action(){return a},get location(){return u},createHref:c,push:_,replace:h,go:T,back(){T(-1)},forward(){T(1)},listen(d){return f.push(d)},block(d){const y=m.push(d);return m.length===1&&t.addEventListener(Ot,Tt),()=>{y(),m.length||t.removeEventListener(Ot,Tt)}}}}function Ks(e={}){const{window:t=document.defaultView}=e,n=t.history;function r(){const{pathname:y="/",search:w="",hash:A=""}=Je(t.location.hash.slice(1)),C=n.state??{};return[C.idx,be({pathname:y,search:w,hash:A,state:C.usr??null,key:C.key??"default"})]}let o=null;function s(){if(o)m.call(o),o=null;else{const[w,A]=r();if(m.length){if(w!=null){const C=(i??0)-w;C&&(o={action:"POP",location:A,retry(){g(C*-1)}},g(C))}}else _("POP")}}t.addEventListener(kr,s),t.addEventListener(Js,()=>{const[,y]=r();_e(y)!==_e(u)&&s()});let a="POP",[i,u]=r();const f=Ae(),m=Ae();i==null&&(i=0,n.replaceState({...n.state,idx:i},""));function c(){const y=document.querySelector("base");let w="";if(y?.getAttribute("href")){const A=t.location.href,C=A.indexOf("#");w=C===-1?A:A.slice(0,C)}return w}function E(y){return c()+"#"+(typeof y=="string"?y:_e(y))}function l(y,w=null){return be({pathname:u.pathname,hash:"",search:"",...typeof y=="string"?Je(y):y,state:w,key:St()})}function p(y,w){return[{usr:y.state,key:y.key,idx:w},E(y)]}function S(y,w,A){return m.length?(m.call({action:y,location:w,retry:A}),!1):!0}function _(y){a=y,[i,u]=r(),f.call({action:a,location:u})}function h(y,w){const A="PUSH",C=l(y,w);function M(){h(y,w)}if(S(A,C,M)){const[$,K]=p(C,(i??0)+1);try{n.pushState($,"",K)}catch{t.location.assign(K)}_(A)}}function T(y,w){const A="REPLACE",C=l(y,w);function M(){T(y,w)}if(S(A,C,M)){const[$,K]=p(C,i??0);n.replaceState($,"",K),_(A)}}function g(y){n.go(y)}return{get action(){return a},get location(){return u},createHref:E,push:h,replace:T,go:g,back(){g(-1)},forward(){g(1)},listen(y){return f.push(y)},block(y){const w=m.push(y);return m.length===1&&t.addEventListener(Ot,Tt),()=>{w(),m.length||t.removeEventListener(Ot,Tt)}}}}function vr(e={}){const{initialEntries:t=["/"],initialIndex:n}=e,r=t.map(h=>be({pathname:"/",search:"",hash:"",state:null,key:St(),...typeof h=="string"?Je(h):h}));let o=Cr(n??r.length-1,0,r.length-1),s="POP",a=r[o];const i=Ae(),u=Ae();function f(h){return typeof h=="string"?h:_e(h)}function m(h,T=null){return be({pathname:a.pathname,search:"",hash:"",...typeof h=="string"?Je(h):h,state:T,key:St()})}function c(h,T,g){return u.length?(u.call({action:h,location:T,retry:g}),!1):!0}function E(h,T){s=h,a=T,i.call({action:s,location:a})}function l(h,T){const g="PUSH",d=m(h,T);function y(){l(h,T)}c(g,d,y)&&(o+=1,r.splice(o,r.length,d),E(g,d))}function p(h,T){const g="REPLACE",d=m(h,T);function y(){p(h,T)}c(g,d,y)&&(r[o]=d,E(g,d))}function S(h){const T=Cr(o+h,0,r.length-1),g="POP",d=r[T];function y(){S(h)}c(g,d,y)&&(o=T,E(g,d))}return{get index(){return o},get action(){return s},get location(){return a},createHref:f,push:l,replace:p,go:S,back(){S(-1)},forward(){S(1)},listen(h){return i.push(h)},block(h){return u.push(h)}}}function Ys(e,t,n){const r=R.reactive({...t}),o=i=>{Object.assign(r,{...i})},s=r,a=Vs(e,s,n);return{currentRoute:s,routerRoute:a,updateRoute:o}}function Qs(e){return t=>{const{host:n}=X(t);return!(n===void 0||n===e)}}function Lr(e){try{const t=e();return Kt(t)?t.catch(n=>n):t}catch(t){return t}}function Xs(){const{setVueApp:e,runWithContext:t}=hr(),n=R.reactive(new Map),r=(E,l,p)=>{const{push:S,replace:_,reject:h,update:T}=ze({to:l});return l.matches.filter(g=>Tr({...p,routePrefetch:g.prefetch},"props")===E).flatMap(g=>m(g)).reduce((g,{id:d,name:y,props:w})=>{if(!w)return g;const A=f(d,y,l),C=t(()=>Lr(()=>w(l,{push:S,replace:_,reject:h,update:T,parent:i(l,!0)})));return g[A]=C,g},{})},o=E=>{Object.entries(E).forEach(([l,p])=>{n.set(l,p)})},s=async E=>{const{push:l,replace:p,reject:S,update:_}=ze({to:E}),h=E.matches.flatMap(m),T=[],g=[];for(const{id:d,name:y,props:w}of h){if(!w)continue;const A=f(d,y,E);if(T.push(A),!n.has(A)){const C=t(()=>Lr(()=>w(E,{push:l,replace:p,reject:S,update:_,parent:i(E)})));n.set(A,C)}g.push((async()=>{const C=await n.get(A);if(C instanceof Error)throw C})())}c(T);try{return await Promise.all(g),{status:"SUCCESS"}}catch(d){if(d instanceof ae||d instanceof ge)return d.response;throw d}},a=(E,l,p)=>{const S=f(E,l,p);return n.get(S)};function i(E,l=!1){const p=E.matches.at(-2);if(p)return Bt(p)?{name:p.name??"",get props(){return u(p,"default",E,l)}}:Ht(p)?{name:p.name??"",props:new Proxy({},{get(S,_){return typeof _!="string"?Reflect.get(S,_):u(p,_,E,l)}})}:{name:p.name??"",props:void 0}}function u(E,l,p,S=!1){const _=a(E.id,l,p);if(S&&!_){const h=E.name??"unknown",T=p.name||"unknown";console.warn(`
2
- Unable to access parent props "${l}" from route "${h}" while prefetching props for route "${T}".
1
+ (function(N,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],S):(N=typeof globalThis<"u"?globalThis:N||self,S(N["@kitbag/router"]={},N.Vue))})(this,(function(N,S){"use strict";class Vn extends Error{constructor(t){super(`Child property on meta for ${t} conflicts with the parent meta.`)}}function jo(e,t){return Ho(e,t),{...e,...t}}function Ho(e,t){const n=Object.keys(e).find(r=>r in t&&typeof t[r]!=typeof e[r]);if(n)throw new Vn(n)}class xn extends Error{constructor(t){super(`Invalid Param "${t}": Router does not support multiple params by the same name. All param names must be unique.`)}}function Zo(e,t){return e.filter(n=>t===n).length}function Be(...e){const t=e.flatMap(n=>Array.isArray(n)?n:Object.keys(n));for(const n of t)if(Zo(t,n)>1)throw new xn(n)}function Go(e,t){return Be(e,t),{...e,...t}}const Mt=Symbol("IS_ROUTE_SYMBOL");function te(e){return typeof e=="object"&&e!==null&&Mt in e}const $o=["NotFound"],Mn=Symbol("IS_REJECTION_SYMBOL");function Bt(e){return typeof e=="object"&&e!==null&&Mn in e}function fe(e){return e&&(te(e)||Bt(e))?e.hooks:[]}function Bn(e,t){return[...fe(e),...fe(t)]}function jt(e){return"parent"in e&&!!e.parent}function Ht(e){return"component"in e&&!!e.component}function Zt(e){return"props"in e&&typeof e.props=="function"}function Gt(e){return"components"in e&&!!e.components}function $t(e){return"props"in e&&typeof e.props=="object"}function qt(e,t){if(!te(e)||!te(t))throw new Error("combineRoutes called with invalid route arguments");return{...t,meta:jo(e.meta,t.meta),state:Go(e.state,t.state),hooks:Bn(e,t),matches:[...e.matches,t.matched],context:[...e.context,...t.context],depth:e.depth+1}}function K(e){return typeof e!="string"?!1:/^(https?:\/\/|\/).*/g.test(e)}function jn(e){return K(e)?e:`/${e}`}class pe extends Error{constructor(){super("Router not installed")}}class Hn extends Error{constructor(t,n){super(`useRoute called with incorrect route. Given ${t}, expected ${n}`)}}function ot(){let e=0;return()=>(++e).toString()}const qo=ot()();function Fo(e){return e===qo}const Ft=ot();function Zn(e){return e===void 0?"":e}class ie{redirects=new Set;onBeforeRouteEnter=new Set;onBeforeRouteUpdate=new Set;onBeforeRouteLeave=new Set;onAfterRouteEnter=new Set;onAfterRouteUpdate=new Set;onAfterRouteLeave=new Set;onError=new Set;onRejection=new Set}class zo extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Router does not support multiple redirects to the same route. All redirects must be unique.`)}}function st(){const e=new ie;return{redirect:(g,p)=>{if(e.redirects.size>0)throw new zo(g.name);const u=(c,{replace:d})=>{d(g.name,p?.(c.params))};return e.redirects.add(u),()=>e.redirects.delete(u)},onBeforeRouteEnter:g=>(e.onBeforeRouteEnter.add(g),()=>e.onBeforeRouteEnter.delete(g)),onBeforeRouteUpdate:g=>(e.onBeforeRouteUpdate.add(g),()=>e.onBeforeRouteUpdate.delete(g)),onBeforeRouteLeave:g=>(e.onBeforeRouteLeave.add(g),()=>e.onBeforeRouteLeave.delete(g)),onAfterRouteEnter:g=>(e.onAfterRouteEnter.add(g),()=>e.onAfterRouteEnter.delete(g)),onAfterRouteUpdate:g=>(e.onAfterRouteUpdate.add(g),()=>e.onAfterRouteUpdate.delete(g)),onAfterRouteLeave:g=>(e.onAfterRouteLeave.add(g),()=>e.onAfterRouteLeave.delete(g)),onError:g=>(e.onError.add(g),()=>e.onError.delete(g)),onRejection:g=>(e.onRejection.add(g),()=>e.onRejection.delete(g)),store:e}}class zt extends Error{context;constructor(t={}){super(t.message??"Uncaught InvalidRouteParamValueError"),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...t}}}const je="[",it="]";function Wo(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function Ko(e){return typeof e=="function"&&Wo(e)}function at(e){return typeof e=="object"&&"get"in e&&typeof e.get=="function"&&"set"in e&&typeof e.set=="function"}function Wt(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Gn(e,t){return at(e)?{...e,defaultValue:t??e.defaultValue}:{get:n=>he(n,{param:e}),set:n=>ae(n,{param:e}),defaultValue:t}}function ct(e){return at(e)&&e.defaultValue!==void 0}function Jo(e,t){return Gn(e,t)}function Yo(e){return e!==void 0}function Te(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Qo(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"}function ne(e){return typeof e=="string"&&e.length>0}const $n=Symbol("IS_URL_SYMBOL");function Oe(e){return typeof e=="object"&&e!==null&&$n in e}let P=null;async function Xo(){const{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:i,ZodEmail:a,ZodUUID:f,ZodBase64:E,ZodCUID:g,ZodCUID2:p,ZodULID:u,ZodJWT:c,ZodBigInt:d,ZodNaN:m,ZodBoolean:R,ZodDate:h,ZodISODateTime:T,ZodISODate:y,ZodISOTime:l,ZodNumber:_,ZodLiteral:O,ZodObject:A,ZodEnum:k,ZodArray:j,ZodTuple:Z,ZodUnion:Y,ZodDiscriminatedUnion:Ve,ZodRecord:ue,ZodMap:ee,ZodSet:xe,ZodIntersection:z,ZodPromise:b}=await import("zod");return{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:i,ZodEmail:a,ZodUUID:f,ZodBase64:E,ZodCUID:g,ZodCUID2:p,ZodULID:u,ZodJWT:c,ZodBigInt:d,ZodNaN:m,ZodBoolean:R,ZodDate:h,ZodISODateTime:T,ZodISODate:y,ZodISOTime:l,ZodNumber:_,ZodLiteral:O,ZodObject:A,ZodEnum:k,ZodArray:j,ZodTuple:Z,ZodUnion:Y,ZodDiscriminatedUnion:Ve,ZodRecord:ue,ZodMap:ee,ZodSet:xe,ZodIntersection:z,ZodPromise:b}}function es(e){return Object.values(e).some(t=>Oe(t)?Object.values(t.schema.host.params).some(({param:n})=>Kt(n))||Object.values(t.schema.path.params).some(({param:n})=>Kt(n))||Object.values(t.schema.query.params).some(({param:n})=>Kt(n)):!1)}function Kt(e){return Te(e)&&"parse"in e&&typeof e.parse=="function"&&"~standard"in e&&Te(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="zod"}async function ts(){try{P=await Xo()}catch{throw new Error("Failed to initialize Zod")}}function qn(e){return P?e instanceof P.ZodType:!1}function Fn(e){return{get:(t,{invalid:n})=>{try{return Jt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Yt(t,e)}catch{throw n()}}}}const ns=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function we(e,t){if(typeof t=="string"&&ns.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function He(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ut(e,t){return P?.ZodString&&e instanceof P.ZodString?1:P?.ZodString&&t instanceof P.ZodString?-1:0}function Jt(e,t){if(!P)throw new Error("Zod is not initialized");if(t instanceof P.ZodString)return t.parse(e);if(t instanceof P.ZodBoolean)return t.parse(!!e);if(t instanceof P.ZodDate)return t.parse(new Date(e));if(t instanceof P.ZodNumber)return t.parse(Number(e));if(t instanceof P.ZodBigInt)return t.parse(BigInt(e));if(t instanceof P.ZodNaN)return t.parse(Number(e));if(t instanceof P.ZodLiteral)return He([()=>t.parse(Number(e)),()=>t.parse(!!e),()=>t.parse(e)]);if(t instanceof P.ZodObject)return t.parse(JSON.parse(e,we));if(t instanceof P.ZodEnum)return t.parse(e);if(t instanceof P.ZodArray||t instanceof P.ZodTuple)return t.parse(JSON.parse(e,we));if(t instanceof P.ZodUnion){const n=Array.from(t.def.options).sort(ut).map(r=>()=>Jt(e,r));return He(n)}if(t instanceof P.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ut).map(r=>()=>Jt(e,r));return He(n)}if(t instanceof P.ZodRecord)return t.parse(JSON.parse(e,we));if(t instanceof P.ZodMap)return t.parse(new Map(JSON.parse(e,we)));if(t instanceof P.ZodSet)return t.parse(new Set(JSON.parse(e,we)));if(t instanceof P.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof P.ZodPromise)throw new Error("Promise schemas are not supported");return t.parse(e)}function Yt(e,t){if(!P)throw new Error("Zod is not initialized");if(t instanceof P.ZodString||t instanceof P.ZodISODateTime||t instanceof P.ZodISODate||t instanceof P.ZodISOTime||t instanceof P.ZodIPv4||t instanceof P.ZodIPv6||t instanceof P.ZodCIDRv4||t instanceof P.ZodCIDRv6||t instanceof P.ZodURL||t instanceof P.ZodEmail||t instanceof P.ZodUUID||t instanceof P.ZodBase64||t instanceof P.ZodCUID||t instanceof P.ZodCUID2||t instanceof P.ZodULID||t instanceof P.ZodJWT)return t.parse(e);if(t instanceof P.ZodBoolean)return t.parse(e).toString();if(t instanceof P.ZodDate)return t.parse(e).toISOString();if(t instanceof P.ZodNumber)return t.parse(Number(e)).toString();if(t instanceof P.ZodBigInt)return t.parse(BigInt(String(e))).toString();if(t instanceof P.ZodNaN)return t.parse(e).toString();if(t instanceof P.ZodLiteral){const n=t.parse(e);return n!=null?n.toString():String(n)}if(t instanceof P.ZodObject)return JSON.stringify(t.parse(e));if(t instanceof P.ZodEnum){const n=t.parse(e);return typeof n=="string"?n:String(n)}if(t instanceof P.ZodArray||t instanceof P.ZodTuple)return JSON.stringify(t.parse(e));if(t instanceof P.ZodUnion){const n=Array.from(t.def.options).sort(ut).map(r=>()=>Yt(e,r));return He(n)}if(t instanceof P.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ut).map(r=>()=>Yt(e,r));return He(n)}if(t instanceof P.ZodRecord)return JSON.stringify(t.parse(e));if(t instanceof P.ZodMap){const n=t.parse(e);return JSON.stringify(Array.from(n.entries()))}if(t instanceof P.ZodSet){const n=t.parse(e);return JSON.stringify(Array.from(n.values()))}if(t instanceof P.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof P.ZodPromise)throw new Error("Promise schemas are not supported");return JSON.stringify(t.parse(e))}function Qt(e){return typeof e=="object"&&e!==null&&"then"in e}function C(e,t){const n=e["~standard"].validate(t);if(Qt(n))throw new Error("Promise schemas are not supported");if(n.issues)throw new Error("Validation failed");return n.value}function rs(e){return Te(e)&&"type"in e&&typeof e.type=="string"&&"~standard"in e&&Te(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="valibot"}function zn(e){return rs(e)}function Wn(e){return{get:(t,{invalid:n})=>{try{return Xt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return en(t,e)}catch{throw n()}}}}const os=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Pe(e,t){if(typeof t=="string"&&os.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function Ie(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ft(e,t){return e.type==="string"?1:t.type==="string"?-1:0}function Xt(e,t){if(t.type==="boolean")return C(t,!!e);if(t.type==="date")return C(t,new Date(e));if(t.type==="number")return C(t,Number(e));if(t.type==="literal")return Ie([()=>C(t,Number(e)),()=>C(t,!!e),()=>C(t,e)]);if(t.type==="object")return C(t,JSON.parse(e,Pe));if(t.type==="enum")return Ie([()=>C(t,Number(e)),()=>C(t,!!e),()=>C(t,e)]);if(t.type==="array"||t.type==="tuple")return C(t,JSON.parse(e,Pe));if(t.type==="union"&&"options"in t){const n=t.options.sort(ft).map(r=>()=>Xt(e,r));return Ie(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ft).map(r=>()=>Xt(e,r));return Ie(n)}if(t.type==="record")return C(t,JSON.parse(e,Pe));if(t.type==="map")return C(t,new Map(JSON.parse(e,Pe)));if(t.type==="set")return C(t,new Set(JSON.parse(e,Pe)));if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return C(t,e)}function en(e,t){if(t.type==="string"||t.type==="boolean")return C(t,e).toString();if(t.type==="date")return C(t,e).toISOString();if(t.type==="number")return C(t,Number(e)).toString();if(t.type==="literal")return C(t,e).toString();if(t.type==="object")return JSON.stringify(C(t,e));if(t.type==="enum"||t.type==="nativeEnum")return C(t,e).toString();if(t.type==="array"||t.type==="tuple")return JSON.stringify(C(t,e));if(t.type==="union"&&"options"in t){const n=t.options.sort(ft).map(r=>()=>en(e,r));return Ie(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ft).map(r=>()=>en(e,r));return Ie(n)}if(t.type==="record")return JSON.stringify(C(t,e));if(t.type==="map"){const n=C(t,e);return JSON.stringify(Array.from(n.entries()))}if(t.type==="set"){const n=C(t,e);return JSON.stringify(Array.from(n.values()))}if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return JSON.stringify(C(t,e))}function tn(e){return{get:(t,{invalid:n})=>{if(`${e}`===t)return e;throw n(`Expected value to be ${e}, received ${JSON.stringify(t)}`)},set:(t,{invalid:n})=>{if(e!==t)throw n(`Expected value to be literal ${e}, received ${JSON.stringify(t)}`);return t.toString()}}}function ss(e,t){return e[t]??String}function Kn(e){return{invalid:t=>{throw new zt({...e,message:t})}}}const is={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!="string")throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},Jn={get:(e,{invalid:t})=>{if(e==="true")return!0;if(e==="false")return!1;throw t(`Expected boolean value, received ${JSON.stringify(e)}`)},set:(e,{invalid:t})=>{if(typeof e!="boolean")throw t(`Expected boolean value, received ${JSON.stringify(e)}`);return e.toString()}},Yn={get:(e,{invalid:t})=>{const n=Number(e);if(isNaN(n))throw t(`Expected number value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="number")throw t(`Expected number value, received ${JSON.stringify(e)}`);return e.toString()}},Qn={get:(e,{invalid:t})=>{const n=new Date(e);if(isNaN(n.getTime()))throw t(`Expected date value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="object"||!(e instanceof Date))throw t(`Expected date value, received ${JSON.stringify(e)}`);return e.toISOString()}},Xn={get:(e,{invalid:t})=>{try{return JSON.parse(e)}catch{throw t(`Expected JSON value, received "${e}"`)}},set:(e,{invalid:t})=>{try{return JSON.stringify(e)}catch{throw t(`Expected JSON value, received "${e}"`)}}};function he(e,{param:t=String,isOptional:n=!1}={}){const r=Kn({param:t,value:e,isGetter:!0});if(e===void 0||!ne(e)){if(ct(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return is.get(e,r);if(t===Boolean)return Jn.get(e,r);if(t===Number)return Yn.get(e,r);if(t===Date)return Qn.get(e,r);if(t===JSON)return Xn.get(e,r);if(Ko(t))return t(e,r);if(at(t))return t.get(e,r);if(t instanceof RegExp){if(t.test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}return Wt(t)?tn(t).get(e,r):qn(t)?Fn(t).get(e,r):zn(t)?Wn(t).get(e,r):e}function nn(e,t){try{return he(e,t)}catch(n){if(n instanceof zt)return;throw n}}function as(e,t){try{return ae(e,t)}catch(n){if(n instanceof zt)return;throw n}}function ae(e,{param:t=String,isOptional:n=!1}={}){const r=Kn({param:t,value:e,isSetter:!0});if(e===void 0){if(n)return"";throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===Boolean)return Jn.set(e,r);if(t===Number)return Yn.set(e,r);if(t===Date)return Qn.set(e,r);if(t===JSON)return Xn.set(e,r);if(at(t))return t.set(e,r);if(Wt(t))return tn(t).set(e,r);if(qn(t))return Fn(t).set(e,r);if(zn(t))return Wn(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}const lt=`\\${je}\\??([\\w-_]+)\\*?\\${it}`,cs=`\\${je}\\?([\\w-_]+)\\*?\\${it}`,us=`\\${je}\\??([\\w-_]+)\\*\\${it}`,fs="[^/]*",ls=".*",ds="([^/]*)",ps="(.*)";function rn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hs(e,t){const n=Array.from(e.matchAll(t));if(n.length===0)return[e];let r=0;const o=n.reduce((i,a)=>{const f=rn(e.slice(r,a.index));f.length&&i.push(f);const[E]=a;return i.push(E),r=a.index+E.length,i},[]),s=e.slice(r);return s&&o.push(s),o}function Es(e){const t=dt(e);return new RegExp(`^${t||".*"}$`,"i")}function er(e){const t=dt(e);return new RegExp(`^${t}$`,"i")}function gs(e){const t=e.replace(/^#*/,""),n=dt(t);return new RegExp(`^#?${n||".*"}$`,"i")}function _s(e){const t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,n])=>!nr(n)).map(([n,r])=>{const o=dt(r);return new RegExp(`${rn(n)}=${o}(&|$)`,"i")})}function dt(e){return hs(e,new RegExp(lt,"g")).map(t=>t.startsWith(je)?tr(t):rn(t)).join("")}function tr(e){return e.replace(new RegExp(lt,"g"),t=>rr(t)?ls:fs)}function ms(e,t){const n=or(t),{isGreedy:r=!1}=e.params[t]??{},o=r?ps:ds;return e.value.replace(n,o)}function nr(e){return new RegExp(cs,"g").test(e)}function rr(e){return new RegExp(us,"g").test(e)}function pt(e){const[t]=sr(e,new RegExp(lt,"g"));return t}function or(e){return new RegExp(`\\${je}\\??${e}\\*?\\${it}`,"g")}function sr(e,t){return Array.from(e.matchAll(t)).flatMap(([,...r])=>r.map(o=>ne(o)?o:""))}function ys(e="",t={}){return ne(e)?Array.from(e.matchAll(new RegExp(lt,"g"))).reduce((r,[o,s])=>{const i=pt(o);if(!i)return r;const a=ss(t,i),f=nr(o)||ct(a),E=rr(o);return Be([i],r),r[s]={param:a,isOptional:f,isGreedy:E},r},{}):{}}const ir=Symbol("UrlPartsWithParams");function ar(e){return Te(e)&&e[ir]===!0}function Q(e){return e===void 0?ht():ar(e)?e:ht(e,{})}function ht(e,t){return{value:e??"",params:ys(e,t),[ir]:!0}}function Et(e){if(typeof e=="string"||typeof e>"u"||ar(e))return Q(e);const t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(const[o,s]of t)if(Wt(s))n.push(`${o}=${s}`);else{const i=`[${o}]`,a=pt(i);a&&(r[a]=s),n.push(`${a}=${i}`)}return ht(n.join("&"),r)}function Rs(e,t,n){const r=ms(t,n),o=tr(r),[s]=sr(e,new RegExp(o,"g"));return s}function Ss(e,t,n,r){const o=ae(r,t.params[n]);return e.replace(or(n),o)}function cr(...e){const t=new URLSearchParams;for(const n of e){const r=new URLSearchParams(n);for(const[o,s]of r.entries())t.append(o,s)}return t}const gt="https://internal.invalid";function _t(e){const t=new URL(e.host??gt,gt);return t.pathname=e.path??"",t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??"",jn(t.toString().replace(new RegExp(`^${gt}/*`),"/"))}function X(e){return!e.startsWith("http")?Os(e):Ts(e)}function Ze(e,t){if(typeof e=="string"){const r=Ze(X(e),t);return _t(r)}const n=new URLSearchParams(t.query);return{host:ne(t.host)?t.host:e.host,path:ne(t.path)?t.path:e.path??"",query:cr(e.query,n),hash:ne(t.hash)?t.hash:e.hash??""}}function Ts(e){const{protocol:t,host:n,pathname:r,searchParams:o,hash:s}=new URL(e,e);return{host:`${t}//${n}`,path:r,query:o,hash:s}}function Os(e){const{pathname:t,searchParams:n,hash:r}=new URL(e,gt);return{path:t,query:n,hash:r}}function Ne(e){const t={host:Q(e.host),path:Q(e.path),query:Ps(Et(e.query)),hash:ws(Q(e.hash))};Be(t.path.params,t.query.params,t.host.params,t.hash.params);const n={...t.host,regexp:Es(t.host.value),stringify(u={}){return on(t.host,u)}},r={...t.path,regexp:{trailingSlashIgnored:er(t.path.value),trailingSlashRemoved:er(t.path.value.replace(/^(.+)\/$/,"$1"))},stringify(u={}){return on(t.path,u)}},o={...t.query,regexp:_s(t.query.value),stringify(u={}){return Is(t.query,u).toString()}},s={...t.hash,regexp:gs(t.hash.value),stringify(u={}){return on(t.hash,u)}};function i(u={}){return _t({host:n.stringify(u),path:r.stringify(u),query:o.stringify(u),hash:s.stringify(u)})}function a(u,c={}){const d=X(u),m=c.removeTrailingSlashes??!0;if(!n.regexp.test(d.host??""))throw new Error("Host does not match");if(!(m?r.regexp.trailingSlashRemoved:r.regexp.trailingSlashIgnored).test(d.path))throw new Error("Path does not match");const h=d.query.toString();if(!o.regexp.every(T=>T.test(h)))throw new Error("Query does not match");if(!s.regexp.test(d.hash))throw new Error("Hash does not match")}function f(u,c={}){a(u,c);const d=X(u);return{...sn(n,d.host??""),...sn(r,d.path),...Ns(o,d.query.toString()),...sn(s,d.hash)}}function E(u,c={}){try{return{success:!0,params:f(u,c)}}catch(d){return{success:!1,params:{},error:new Error("Failed to parse url",{cause:d})}}}return{...{[$n]:!0,schema:{host:n,path:r,query:o,hash:s},params:{}},isRelative:!ne(t.host.value),stringify:i,parse:f,tryParse:E}}function ws(e){return{...e,value:e.value.replace(/^#/,"")}}function Ps(e){return{...e,value:e.value.replace(/^\?/,"")}}function on(e,t){return Object.keys(e.params).reduce((n,r)=>Ss(n,e,r,t[r]),e.value)}function Is(e,t){const n=new URLSearchParams(e.value);if(!e.value)return n;for(const[r,o]of Array.from(n.entries())){const s=pt(o);if(!s)continue;const a=ae(t[s],e.params[s]),f=t[s]===void 0&&a==="";e.params[s].isOptional&&f?n.delete(r,o):n.set(r,a)}return n}function sn(e,t){const n={},r=decodeURIComponent(t);for(const[o,s]of Object.entries(e.params)){const i=Rs(r,e,o),a=he(i,s);n[o]=a}return n}function Ns(e,t){const n={},r=new URLSearchParams(e.value),o=new URLSearchParams(t);for(const[s,i]of Array.from(r.entries())){const a=pt(i);if(!a)continue;const E=o.get(s)??void 0,g=he(E,e.params[a]);n[a]=g}return n}class ur extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}}function fr({getRoute:e}){return{redirectTo:(...[r,o])=>{const s=e();if(!te(s))throw new ur(s.name);r.context.push(s),s.context.push(r),s.redirect(r,o)},redirectFrom:(r,o)=>{const s=e();if(!te(r))throw new ur(r.name);s.context.push(r),r.context.push(s),r.redirect(s,o)}}}function an(e,t){Be(e.params,t.params);const n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function lr(e,t){Be(e.params,t.params);const n=[e.value,t.value].filter(ne).join("&");return{...e,value:n,params:{...e.params,...t.params}}}function dr(e,t){return an(e,t)}function cn(e,t){if(!Oe(e))throw new Error("Parent is not a valid url");if(!Oe(t))return Ne({host:e.schema.host,path:an(e.schema.path,Q(t.path)),query:lr(e.schema.query,Et(t.query)),hash:dr(e.schema.hash,Q(t.hash))});if(!Oe(t))throw new Error("Child is not a valid url");return Ne({host:e.schema.host,path:an(e.schema.path,t.schema.path),query:lr(e.schema.query,t.schema.query),hash:dr(e.schema.hash,t.schema.hash)})}function pr(e){let t;return{setTitle:o=>{t=o},getTitle:async o=>{const s=async()=>{if(e&&te(e))return e.getTitle(o)};return t?t(o,{from:o,getParentTitle:s}):s()}}}function Ee(e,t){const n=Ft(),r=Zn(e.name),o=Q(e.path),s=Et(e.query),i=Q(e.hash),a=e.meta??{},f=e.state??{},E=e.context??[],{store:g,redirect:p,...u}=st(),{setTitle:c,getTitle:d}=pr(e.parent),m=S.markRaw({...e,id:n,meta:a,state:f,props:t,name:r}),R=fr({getRoute:()=>y}),h=Ne({path:o,query:s,hash:i}),T={[Mt]:!0,depth:1,hooks:[g],getTitle:d,redirect:p},y={id:n,matched:m,matches:[m],name:r,meta:a,state:f,context:E,prefetch:e.prefetch,setTitle:c,...R,...h,...u,...T};if(jt(e)){const l=qt(e.parent,y),_=cn(e.parent,{path:o,query:s,hash:i});return{...l,..._}}return y}function As(){const e=new ie;return{onRejection:n=>(e.onRejection.add(n),()=>e.onRejection.delete(n)),store:e}}function bs(e){return S.defineComponent(()=>()=>S.h("h1",e),{name:e,props:[]})}function hr(e){const t=new URLSearchParams(e);return{get:(...n)=>t.get(...n),getAll:(...n)=>t.getAll(...n),set:(...n)=>{t.set(...n)},append:(...n)=>{t.append(...n)},delete:(...n)=>{t.delete(...n)},toString:(...n)=>t.toString(...n),forEach:(...n)=>{t.forEach(...n)},entries:(...n)=>t.entries(...n),keys:(...n)=>t.keys(...n),values:(...n)=>t.values(...n),has:(...n)=>t.has(...n),size:t.size,sort:()=>{t.sort()},[Symbol.iterator]:()=>t[Symbol.iterator]()}}function Er(e){const t=S.markRaw(e.component??bs(e.type)),n=ks(e.type,t),{store:r,...o}=As(),s={[Mn]:!0,route:n,hooks:[r]};return{type:e.type,component:t,...o,...s}}function ks(e,t){const n={id:Ft(),component:t,meta:{},state:{}};return{id:n.id,matched:n,matches:[n],name:e,query:hr(""),params:{},state:{},href:"/",hash:"",title:Promise.resolve(void 0)}}function Cs(e){const t=Ft(),n=Zn(e.name),r=Q(e.path),o=Et(e.query),s=Q(e.hash),i=e.meta??{},a=Q(e.host),f=e.context??[],{store:E,redirect:g,...p}=st(),{getTitle:u,setTitle:c}=pr(e.parent),d=fr({getRoute:()=>T}),m=S.markRaw({id:t,meta:{},state:{},...e}),R=Ne({host:a,path:r,query:o,hash:s}),h={[Mt]:!0,depth:1,hooks:[E],getTitle:u,redirect:g},T={id:t,matched:m,matches:[m],name:n,meta:i,state:{},context:f,setTitle:c,...p,...d,...R,...h};if(jt(e)){const y=qt(e.parent,T),l=cn(e.parent,{path:r,query:o,hash:s});return{...y,...l}}return T}function Ge(){const e=new Map;return t=>{const n=e.get(t);if(!n){const r=Symbol();return e.set(t,r),r}return n}}const Us=Ge();function gr(e){const t=Us(e);return({increment:n=!1}={})=>{const r=S.inject(t,0);return n&&S.provide(t,r+1),r}}const $e=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},qe=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},Fe=(e,t,n)=>e.matches.at(n)?.id===t?.matches.at(n)?.id;function vs(e){switch(e){case"onBeforeRouteEnter":case"onAfterRouteEnter":return $e;case"onBeforeRouteUpdate":case"onAfterRouteUpdate":return Fe;case"onBeforeRouteLeave":case"onAfterRouteLeave":return qe;default:throw new Error(`Switch is not exhaustive for lifecycle: ${e}`)}}class mt extends Error{}class ce extends mt{response;constructor(t){super("Uncaught ContextPushError"),this.response={status:"PUSH",to:t}}}class ge extends mt{response;constructor(t){super("Uncaught ContextRejectionError"),this.response={status:"REJECT",type:t}}}class _r extends mt{response;constructor(){super("Uncaught ContextAbortError"),this.response={status:"ABORT"}}}function Ls(e,t){const n=new ie;return fe(e).forEach((r,o)=>{if(r.redirects.forEach(s=>n.redirects.add(s)),$e(e,t,o))return r.onBeforeRouteEnter.forEach(s=>n.onBeforeRouteEnter.add(s));if(Fe(e,t,o))return r.onBeforeRouteUpdate.forEach(s=>n.onBeforeRouteUpdate.add(s))}),fe(t).forEach((r,o)=>{if(qe(e,t,o))return r.onBeforeRouteLeave.forEach(s=>n.onBeforeRouteLeave.add(s))}),n}function Ds(e,t){const n=new ie;return fe(e).forEach((r,o)=>{if($e(e,t,o))return r.onAfterRouteEnter.forEach(s=>n.onAfterRouteEnter.add(s));if(Fe(e,t,o))return r.onAfterRouteUpdate.forEach(s=>n.onAfterRouteUpdate.add(s))}),fe(t).forEach((r,o)=>{if(qe(e,t,o))return r.onAfterRouteLeave.forEach(s=>n.onAfterRouteLeave.add(s))}),n}function Vs(e,t,n){const r=new ie;return e.matches.forEach((o,s)=>{$e(e,t,s)&&n.onBeforeRouteEnter.forEach(i=>r.onBeforeRouteEnter.add(i)),Fe(e,t,s)&&n.onBeforeRouteUpdate.forEach(i=>r.onBeforeRouteUpdate.add(i))}),t?.matches.forEach((o,s)=>{qe(e,t,s)&&n.onBeforeRouteLeave.forEach(i=>r.onBeforeRouteLeave.add(i))}),r}function xs(e,t,n){const r=new ie;return e.matches.forEach((o,s)=>{$e(e,t,s)&&n.onAfterRouteEnter.forEach(i=>r.onAfterRouteEnter.add(i)),Fe(e,t,s)&&n.onAfterRouteUpdate.forEach(i=>r.onAfterRouteUpdate.add(i))}),t?.matches.forEach((o,s)=>{qe(e,t,s)&&n.onAfterRouteLeave.forEach(i=>r.onAfterRouteLeave.add(i))}),r}function Ms(e){const t=new ie;return fe(e).forEach(n=>{n.onRejection.forEach(r=>t.onRejection.add(r))}),t}function mr(){let e=null;function t(r){e=r}function n(r){return e?e.runWithContext(r):r()}return{setVueApp:t,runWithContext:n}}function ze({to:e}){const t=i=>{throw new ge(i)},n=(...i)=>{throw new ce(i)};return{reject:t,push:n,replace:(i,a,f)=>{if(K(i)){const p=a??{};throw new ce([i,{...p,replace:!0}])}const E=a,g=f??{};throw new ce([i,E,{...g,replace:!0}])},update:(i,a,f)=>{if(typeof i=="object"){const g={...e.params,...i};return n(e.name,g,a)}const E={...e.params,[i]:a};return n(e.name,E,f)},abort:()=>{throw new _r}}}const yr=Ge();function Bs(){const{setVueApp:e,runWithContext:t}=mr(),{store:n,...r}=st(),o=new ie,s=async({to:p,from:u})=>{const{reject:c,push:d,replace:m,update:R,abort:h}=ze({to:p}),T=Ls(p,u),y=Vs(p,u,n),l=[...T.redirects,...y.onBeforeRouteEnter,...T.onBeforeRouteEnter,...y.onBeforeRouteUpdate,...T.onBeforeRouteUpdate,...o.onBeforeRouteUpdate,...y.onBeforeRouteLeave,...T.onBeforeRouteLeave,...o.onBeforeRouteLeave];try{const _=l.map(O=>t(()=>O(p,{from:u,reject:c,push:d,replace:m,update:R,abort:h})));await Promise.all(_)}catch(_){if(_ instanceof ce||_ instanceof ge||_ instanceof _r)return _.response;try{a(_,{to:p,from:u,source:"hook"})}catch(O){if(O instanceof ce||O instanceof ge)return O.response;throw O}}return{status:"SUCCESS"}},i=async({to:p,from:u})=>{const{reject:c,push:d,replace:m,update:R}=ze({to:p}),h=Ds(p,u),T=xs(p,u,n),y=[...o.onAfterRouteLeave,...h.onAfterRouteLeave,...T.onAfterRouteLeave,...o.onAfterRouteUpdate,...h.onAfterRouteUpdate,...T.onAfterRouteUpdate,...o.onAfterRouteEnter,...h.onAfterRouteEnter,...T.onAfterRouteEnter];try{const l=y.map(_=>t(()=>_(p,{from:u,reject:c,push:d,replace:m,update:R})));await Promise.all(l)}catch(l){if(l instanceof ce||l instanceof ge)return l.response;try{a(l,{to:p,from:u,source:"hook"})}catch(_){if(_ instanceof ce||_ instanceof ge)return _.response;throw _}}return{status:"SUCCESS"}},a=(p,{to:u,from:c,source:d})=>{const{reject:m,push:R,replace:h,update:T}=ze({to:u});for(const y of n.onError)try{y(p,{to:u,from:c,source:d,reject:m,push:R,replace:h,update:T});return}catch(l){if(l instanceof mt)throw l;if(l===p)continue;throw l}};return{runBeforeRouteHooks:s,runAfterRouteHooks:i,runErrorHooks:a,runRejectionHooks:(p,{to:u,from:c})=>{const m=[...Ms(p).onRejection,...n.onRejection];for(const R of m)R(p.type,{to:u,from:c})},addComponentHook:({lifecycle:p,depth:u,hook:c})=>{const d=vs(p),m=o[p],R=(h,T)=>{if(d(h,T.from,u))return c(h,T)};return m.add(R),()=>m.delete(R)},addGlobalRouteHooks:p=>{p.onBeforeRouteEnter.forEach(u=>r.onBeforeRouteEnter(u)),p.onBeforeRouteUpdate.forEach(u=>r.onBeforeRouteUpdate(u)),p.onBeforeRouteLeave.forEach(u=>r.onBeforeRouteLeave(u)),p.onAfterRouteEnter.forEach(u=>r.onAfterRouteEnter(u)),p.onAfterRouteUpdate.forEach(u=>r.onAfterRouteUpdate(u)),p.onAfterRouteLeave.forEach(u=>r.onAfterRouteLeave(u)),p.onError.forEach(u=>r.onError(u))},setVueApp:e,...r}}function js(e){const t=yr(e);return()=>{const n=S.inject(t);if(!n)throw new pe;return n}}function yt(e,t){const n=gr(e),r=js(e);return o=>{const s=n(),a=r().addComponentHook({lifecycle:t,hook:o,depth:s-1});return S.onUnmounted(a),a}}function Hs(e){const t=yt(e,"onBeforeRouteLeave"),n=yt(e,"onBeforeRouteUpdate"),r=yt(e,"onAfterRouteLeave"),o=yt(e,"onAfterRouteUpdate");return{onBeforeRouteLeave:t,onBeforeRouteUpdate:n,onAfterRouteLeave:r,onAfterRouteUpdate:o}}const Rr=Ge();function Zs(e){const t=Rr(e);return()=>{const n=S.inject(t);if(!n)throw new pe;return n}}const Sr=Ge();function Tr(e){const t=Sr(e);return()=>{const n=S.inject(t);if(!n)throw new pe;return n}}function We(e){return()=>{const t=S.inject(e);if(!t)throw new pe;return t}}const Or=Symbol("isRouterRouteSymbol");function Gs(e,t){return typeof t=="object"&&t!==null&&Or in t&&e in t}function $s(e,t,n){function r(y){const l=_t({...X(t.href),query:void 0}),_=Ze(l,{query:y});n(_)}function o(y,l,_){if(Qo(y))return o({[y]:l},_);const O=y,A=l,k={...t.params,...O};return n(t.name,k,A)}const s=(...y)=>{const l=new URLSearchParams(t.query);l.set(...y),r(l)},i=(...y)=>{const l=new URLSearchParams(t.query);l.append(...y),r(l)},a=(...y)=>{const l=new URLSearchParams(t.query);l.delete(...y),r(l)},{id:f,matched:E,matches:g,name:p,hash:u,href:c}=S.toRefs(t),d=new Proxy({},{get(y,l,_){return Reflect.get(t.params,l,_)},set(y,l,_){return o(l,_),!0},ownKeys(){return Reflect.ownKeys(t.params)},getOwnPropertyDescriptor(y,l){return Reflect.getOwnPropertyDescriptor(t.params,l)}}),m=S.computed({get(){return d},set(y){o(y)}}),R=S.computed({get(){return new Proxy(t.query,{get(y,l,_){switch(l){case"append":return i;case"set":return s;case"delete":return a;default:return Reflect.get(y,l,_)}}})},set(y){r(y)}}),h=S.computed({get(){return new Proxy(t.state,{set(y,l,_){return o({},{state:{...t.state,[l]:_}}),!0}})},set(y){o({},{state:y})}});return S.reactive({...t,id:f,matched:E,matches:g,state:h,query:R,hash:u,params:m,name:p,href:c,update:o,[Or]:!0,[e]:!0})}function un(e){return(t,n,{exact:r}={})=>Gs(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(o=>o.name).includes(n):!1}function Rt(e){const t=We(e),n=un(e);return(r,o)=>{const s=t();function i(){if(!r)return;if(!n(s.route,r,o))throw new Hn(r,s.route.name)}return S.watch(s.route,i,{immediate:!0,deep:!0}),s.route}}function fn(e){const t=Rt(e),n=We(e),r=Tr(e),o=gr(e),s=Zs(e);return S.defineComponent((i,a)=>{const f=t(),E=n(),g=r(),p=o({increment:!0});S.onServerPrefetch(async()=>{await E.start()});const{getRouteComponents:u}=s(),c=S.computed(()=>{if(!E.started.value)return null;if(g.value)return g.value.component;const d=f.matches.at(p);if(!d)return null;const m=u(d),R=i.name??"default";return m[R]});return()=>a.slots.default?a.slots.default({route:f,component:c.value,rejection:g.value}):c.value?S.h(c.value):null},{name:"RouterView",props:["name"]})}const wr=Ge();function Pr(e){const t=wr(e);return()=>{const n=S.inject(t);if(!n)throw new pe;return n}}const qs="lazy",Fs={components:!0,props:!1};function St(e){return["eager","lazy","intent"].includes(e)}function Ir({routerPrefetch:e,routePrefetch:t,linkPrefetch:n},r){const o=ln(n,r),s=ln(t,r),i=ln(e,r),a=[o,s,i,Fs[r],qs].reduce((f,E)=>St(f)?f:f===!0&&St(E)?E:f===!0&&!St(E)?f:f===void 0?E:f,void 0);return St(a)?a:!1}function ln(e,t){return Te(e)?e[t]:e}const zs=S.defineAsyncComponent(()=>new Promise(e=>{e({default:{template:"foo"}})}));function Nr(e){return e.name===zs.name&&"__asyncLoader"in e}const Ar=Symbol("visibilityObserver");function Ws(e){const t=S.inject(Ar);if(!t)throw new pe;return S.watch(e,(r,o)=>{r&&t.observe(r),o&&t.unobserve(o)},{immediate:!0}),S.onUnmounted(()=>{e.value&&t.unobserve(e.value)}),{isElementVisible:S.computed(()=>e.value?t.isElementVisible(e.value):!1)}}function br(e,t,n){S.watch(e,(r,o)=>{r&&r.addEventListener(t,n),o&&o.removeEventListener(t,n)},{immediate:!0}),S.onUnmounted(()=>{e.value&&e.value.removeEventListener(t,n)})}function Ks(e){const t=Pr(e);return n=>{const r=new Map,o=S.ref(),{getPrefetchProps:s,setPrefetchProps:i}=t(),{isElementVisible:a}=Ws(o),f=()=>{const p=Array.from(r.values()).reduce((u,c)=>(Object.assign(u,c),u),{});i(p)};S.watch(()=>S.toValue(n),({route:p,...u})=>{r.clear(),p&&g("eager",p,u)},{immediate:!0}),S.watch(a,p=>{const{route:u,...c}=S.toValue(n);!u||!p||g("lazy",u,c)},{immediate:!0}),br(o,"focusin",E),br(o,"mouseover",E);function E(){const{route:p,...u}=S.toValue(n);p&&g("intent",p,u)}function g(p,u,c){Js(p,u,c),r.has(p)||r.set(p,s(p,u,c))}return{element:o,commit:f}}}function Js(e,t,n){t.matches.forEach(r=>{Ir({...n,routePrefetch:r.prefetch},"components")===e&&(Ht(r)&&Nr(r.component)&&r.component.__asyncLoader(),Gt(r)&&Object.values(r.components).forEach(s=>{Nr(s)&&s.__asyncLoader()}))})}function kr(e){const t=We(e),n=Ks(e),r=un(e);return(o,s={},i={})=>{const a=t(),f=S.computed(()=>{const l=S.toValue(o);return typeof l!="string"?l:K(l)?a.find(l,S.toValue(i)):a.resolve(l,S.toValue(s),S.toValue(i))}),E=S.computed(()=>{if(f.value)return f.value.href;const l=S.toValue(o);if(K(l))return l;console.error(new Error("Failed to resolve route in RouterLink."))}),g=S.computed(()=>r(a.route)&&a.route.matches.some(l=>l.id===f.value?.id)),p=S.computed(()=>a.route.id===f.value?.id),u=S.computed(()=>r(a.route)&&Yo(f.value)&&a.route.href.startsWith(f.value.href)),c=S.computed(()=>a.route.href===f.value?.href),d=S.computed(()=>!!E.value&&a.isExternal(E.value)),m=S.computed(()=>{const l=S.toValue(o);return typeof l!="string"||K(l)?S.toValue(s):S.toValue(i)}),{element:R,commit:h}=n(()=>({route:f.value,routerPrefetch:a.prefetch,linkPrefetch:m.value.prefetch})),T=l=>{h();const _={replace:l?.replace??m.value.replace,query:cr(l?.query,m.value.query),hash:l?.hash??m.value.hash,state:{...m.value.state,...l?.state}},O=S.toValue(o);return K(O)||typeof O=="object"?a.push(O,_):a.push(O,S.toValue(s),_)};return{element:R,route:f,href:E,isMatch:g,isExactMatch:p,isActive:u,isExactActive:c,isExternal:d,push:T,replace:l=>T({...l,replace:!0})}}}function Cr(e){const t=We(e),n=kr(e);return S.defineComponent((r,o)=>{const s=t(),i=S.computed(()=>h(r.to)),a=S.computed(()=>T(r.to)),f=S.computed(()=>{const{to:l,..._}=r;return _}),{element:E,isMatch:g,isExactMatch:p,isActive:u,isExactActive:c,isExternal:d,push:m}=n(()=>typeof r.to=="function"?r.to(s.resolve):r.to,f),R=S.computed(()=>({"router-link--match":g.value,"router-link--exact-match":p.value,"router-link--active":u.value,"router-link--exact-active":c.value}));function h(l){if(typeof l=="function"){const _=l(s.resolve);return h(_)}return K(l)?s.find(l):l}function T(l){if(typeof l=="function"){const _=l(s.resolve);return T(_)}return K(l)?l:l?.href}function y(l){Ys(l)||(l.preventDefault(),m())}return()=>S.h("a",{href:a.value,class:["router-link",R.value],ref:E,onClick:y},o.slots.default?.({route:i.value,isMatch:g.value,isExactMatch:p.value,isActive:u.value,isExactActive:c.value,isExternal:d.value}))},{name:"RouterLink",props:["to","prefetch","query","hash","replace","state"]})}function Ys(e){return e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey}function Qs(e){const t=Rt(e);return(n,r=String)=>{const o=t(),s=S.computed({get(){const a=o.query.get(S.toValue(n));return a===null?ct(r)?r.defaultValue:null:nn(a,{param:r})},set(a){o.query.set(S.toValue(n),ae(a,{param:r}))}}),i=S.computed({get(){const a=o.query.getAll(S.toValue(n));return a.length===0&&ct(r)?[r.defaultValue]:a.map(f=>nn(f,{param:r})).filter(f=>f!==null)},set(a){const f=new URLSearchParams(o.query);f.delete(S.toValue(n)),a.forEach(E=>{f.append(S.toValue(n),ae(E,{param:r}))}),o.query=f}});return{value:s,values:i,remove:()=>{o.query.delete(S.toValue(n))}}}}function Ur(e){const t=typeof e=="object"?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s}=Hs(t),i=un(t),a=fn(t),f=Cr(t),E=Rt(t),g=We(t),p=Qs(t),u=kr(t),c=Tr(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s,isRoute:i,RouterView:a,RouterLink:f,useRoute:E,useRouter:g,useQueryValue:p,useLink:u,useRejection:c}}const vr=Symbol("IS_ROUTER_PLUGIN_SYMBOL");function Xs(e){return typeof e=="object"&&e!==null&&vr in e}function ei(e){const{store:t,...n}=st(),r={[vr]:!0,hooks:t};return{routes:e.routes??[],rejections:e.rejections??[],...n,...r}}function Lr(e){return{get:(t,{invalid:n})=>{for(const r of e){const o=nn(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)},set:(t,{invalid:n})=>{for(const r of e){const o=as(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)}}}const ti={separator:","};function ni(e,t={}){const{separator:n}={...ti,...t},r=Lr(e);return{get:(o,s)=>o.split(n).map(i=>r.get(i,s)),set:(o,s)=>{if(!Array.isArray(o))throw s.invalid("Expected an array");return o.map(i=>r.set(i,s)).join(n)}}}const ri={separator:","};function oi(e,t={}){const{separator:n}={...ri,...t};return{get:r=>{const o=r.split(n);return e.map((s,i)=>he(o.at(i),{param:s}))},set:(r,{invalid:o})=>{if(!Array.isArray(r))throw o("Expected a tuple");if(r.length!==e.length)throw o(`Expected tuple with ${e.length} values but received ${r.length} values`);return e.map((s,i)=>ae(r.at(i),{param:s})).join(n)}}}function Ae(){let e=[];return{get length(){return e.length},push(t){return e.push(t),()=>{e=e.filter(n=>n!==t)}},call(t){e.forEach(n=>n(t))}}}function Tt(){return Math.random().toString(36).slice(2,10)}function Dr(e,t,n){return Math.min(Math.max(e,t),n)}function Ot(e){e.preventDefault(),e.returnValue=""}function _e({pathname:e="/",search:t="",hash:n=""}){let r=e;return t&&t!=="?"&&(r+=t.startsWith("?")?t:"?"+t),n&&n!=="#"&&(r+=n.startsWith("#")?n:"#"+n),r}function Ke(e){const t={};if(e){const n=e.indexOf("#");n>=0&&(t.hash=e.slice(n),e=e.slice(0,n));const r=e.indexOf("?");r>=0&&(t.search=e.slice(r),e=e.slice(0,r)),e&&(t.pathname=e)}return t}function be(e){return Object.freeze(e)}const wt="beforeunload",Vr="popstate",si="hashchange";function xr(e={}){const{window:t=document.defaultView}=e,n=t.history;function r(){const{pathname:l,search:_,hash:O}=t.location,A=n.state??{};return[A.idx,be({pathname:l,search:_,hash:O,state:A.usr??null,key:A.key??"default"})]}let o=null;function s(){if(o)g.call(o),o=null;else{const[_,O]=r();if(g.length){if(_!=null){const A=a??0-_;A&&(o={action:"POP",location:O,retry(){T(A*-1)}},T(A))}}else m("POP")}}t.addEventListener(Vr,s);let i="POP",[a,f]=r();const E=Ae(),g=Ae();a==null&&(a=0,n.replaceState({...n.state,idx:a},"",p(f)));function p(l){return typeof l=="string"?l:_e(l)}function u(l,_=null){return be({pathname:f.pathname,hash:"",search:"",...typeof l=="string"?Ke(l):l,state:_,key:Tt()})}function c(l,_){return[{usr:l.state,key:l.key,idx:_},p(l)]}function d(l,_,O){return g.length?(g.call({action:l,location:_,retry:O}),!1):!0}function m(l){i=l,[a,f]=r(),E.call({action:i,location:f})}function R(l,_){const O="PUSH",A=u(l,_);function k(){R(l,_)}if(d(O,A,k)){const[j,Z]=c(A,(a??0)+1);try{n.pushState(j,"",Z)}catch{t.location.assign(Z)}m(O)}}function h(l,_){const O="REPLACE",A=u(l,_);function k(){h(l,_)}if(d(O,A,k)){const[j,Z]=c(A,a??0);n.replaceState(j,"",Z),m(O)}}function T(l){n.go(l)}return{get action(){return i},get location(){return f},createHref:p,push:R,replace:h,go:T,back(){T(-1)},forward(){T(1)},listen(l){return E.push(l)},block(l){const _=g.push(l);return g.length===1&&t.addEventListener(wt,Ot),()=>{_(),g.length||t.removeEventListener(wt,Ot)}}}}function ii(e={}){const{window:t=document.defaultView}=e,n=t.history;function r(){const{pathname:_="/",search:O="",hash:A=""}=Ke(t.location.hash.slice(1)),k=n.state??{};return[k.idx,be({pathname:_,search:O,hash:A,state:k.usr??null,key:k.key??"default"})]}let o=null;function s(){if(o)g.call(o),o=null;else{const[O,A]=r();if(g.length){if(O!=null){const k=(a??0)-O;k&&(o={action:"POP",location:A,retry(){y(k*-1)}},y(k))}}else R("POP")}}t.addEventListener(Vr,s),t.addEventListener(si,()=>{const[,_]=r();_e(_)!==_e(f)&&s()});let i="POP",[a,f]=r();const E=Ae(),g=Ae();a==null&&(a=0,n.replaceState({...n.state,idx:a},""));function p(){const _=document.querySelector("base");let O="";if(_?.getAttribute("href")){const A=t.location.href,k=A.indexOf("#");O=k===-1?A:A.slice(0,k)}return O}function u(_){return p()+"#"+(typeof _=="string"?_:_e(_))}function c(_,O=null){return be({pathname:f.pathname,hash:"",search:"",...typeof _=="string"?Ke(_):_,state:O,key:Tt()})}function d(_,O){return[{usr:_.state,key:_.key,idx:O},u(_)]}function m(_,O,A){return g.length?(g.call({action:_,location:O,retry:A}),!1):!0}function R(_){i=_,[a,f]=r(),E.call({action:i,location:f})}function h(_,O){const A="PUSH",k=c(_,O);function j(){h(_,O)}if(m(A,k,j)){const[Z,Y]=d(k,(a??0)+1);try{n.pushState(Z,"",Y)}catch{t.location.assign(Y)}R(A)}}function T(_,O){const A="REPLACE",k=c(_,O);function j(){T(_,O)}if(m(A,k,j)){const[Z,Y]=d(k,a??0);n.replaceState(Z,"",Y),R(A)}}function y(_){n.go(_)}return{get action(){return i},get location(){return f},createHref:u,push:h,replace:T,go:y,back(){y(-1)},forward(){y(1)},listen(_){return E.push(_)},block(_){const O=g.push(_);return g.length===1&&t.addEventListener(wt,Ot),()=>{O(),g.length||t.removeEventListener(wt,Ot)}}}}function Mr(e={}){const{initialEntries:t=["/"],initialIndex:n}=e,r=t.map(h=>be({pathname:"/",search:"",hash:"",state:null,key:Tt(),...typeof h=="string"?Ke(h):h}));let o=Dr(n??r.length-1,0,r.length-1),s="POP",i=r[o];const a=Ae(),f=Ae();function E(h){return typeof h=="string"?h:_e(h)}function g(h,T=null){return be({pathname:i.pathname,search:"",hash:"",...typeof h=="string"?Ke(h):h,state:T,key:Tt()})}function p(h,T,y){return f.length?(f.call({action:h,location:T,retry:y}),!1):!0}function u(h,T){s=h,i=T,a.call({action:s,location:i})}function c(h,T){const y="PUSH",l=g(h,T);function _(){c(h,T)}p(y,l,_)&&(o+=1,r.splice(o,r.length,l),u(y,l))}function d(h,T){const y="REPLACE",l=g(h,T);function _(){d(h,T)}p(y,l,_)&&(r[o]=l,u(y,l))}function m(h){const T=Dr(o+h,0,r.length-1),y="POP",l=r[T];function _(){m(h)}p(y,l,_)&&(o=T,u(y,l))}return{get index(){return o},get action(){return s},get location(){return i},createHref:E,push:c,replace:d,go:m,back(){m(-1)},forward(){m(1)},listen(h){return a.push(h)},block(h){return f.push(h)}}}function ai(e,t,n){const r=S.reactive({...t}),o=a=>{Object.assign(r,{...a})},s=r,i=$s(e,s,n);return{currentRoute:s,routerRoute:i,updateRoute:o}}function ci(e){return t=>{const{host:n}=X(t);return!(n===void 0||n===e)}}function Br(e){try{const t=e();return Qt(t)?t.catch(n=>n):t}catch(t){return t}}function ui(){const{setVueApp:e,runWithContext:t}=mr(),n=S.reactive(new Map),r=(u,c,d)=>{const{push:m,replace:R,reject:h,update:T}=ze({to:c});return c.matches.filter(y=>Ir({...d,routePrefetch:y.prefetch},"props")===u).flatMap(y=>g(y)).reduce((y,{id:l,name:_,props:O})=>{if(!O)return y;const A=E(l,_,c),k=t(()=>Br(()=>O(c,{push:m,replace:R,reject:h,update:T,parent:a(c,!0)})));return y[A]=k,y},{})},o=u=>{Object.entries(u).forEach(([c,d])=>{n.set(c,d)})},s=async u=>{const{push:c,replace:d,reject:m,update:R}=ze({to:u}),h=u.matches.flatMap(g),T=[],y=[];for(const{id:l,name:_,props:O}of h){if(!O)continue;const A=E(l,_,u);if(T.push(A),!n.has(A)){const k=t(()=>Br(()=>O(u,{push:c,replace:d,reject:m,update:R,parent:a(u)})));n.set(A,k)}y.push((async()=>{const k=await n.get(A);if(k instanceof Error)throw k})())}p(T);try{return await Promise.all(y),{status:"SUCCESS"}}catch(l){if(l instanceof ce||l instanceof ge)return l.response;throw l}},i=(u,c,d)=>{const m=E(u,c,d);return n.get(m)};function a(u,c=!1){const d=u.matches.at(-2);if(d)return Zt(d)?{name:d.name??"",get props(){return f(d,"default",u,c)}}:$t(d)?{name:d.name??"",props:new Proxy({},{get(m,R){return typeof R!="string"?Reflect.get(m,R):f(d,R,u,c)}})}:{name:d.name??"",props:void 0}}function f(u,c,d,m=!1){const R=i(u.id,c,d);if(m&&!R){const h=u.name??"unknown",T=d.name||"unknown";console.warn(`
2
+ Unable to access parent props "${c}" from route "${h}" while prefetching props for route "${T}".
3
3
  This may occur if the parent route's props were not also prefetched.
4
- `)}return _}function f(E,l,p){return[E,l,p.id,JSON.stringify(p.params)].join("-")}function m(E){return Bt(E)?[{id:E.id,name:"default",props:E.props}]:Ht(E)?Object.entries(E.props).map(([l,p])=>({id:E.id,name:l,props:p})):[]}function c(E){for(const l of n.keys())E.includes(l)||n.delete(l)}return{getPrefetchProps:r,setPrefetchProps:o,getProps:a,setProps:s,setVueApp:e}}function Ke(){return typeof window<"u"&&typeof window.document<"u"}function ei({mode:e,listener:t}){const n=ti(e),r=(u,f)=>{if(f?.replace){n.replace(u,f.state);return}n.push(u,f?.state)},o=()=>{const u=_e(n.location);n.replace(u)};let s;return{...n,update:r,refresh:o,startListening:()=>{s?.(),s=n.listen(t)},stopListening:()=>{s?.()}}}function ti(e="auto"){switch(e){case"auto":return Ke()?Ur():vr();case"browser":return Ur();case"memory":return vr();case"hash":return Ks();default:const t=e;throw new Error(`Switch is not exhaustive for mode: ${t}`)}}function Dr(e){const t=new URLSearchParams(e);return{get:(...n)=>t.get(...n),getAll:(...n)=>t.getAll(...n),set:(...n)=>{t.set(...n)},append:(...n)=>{t.append(...n)},delete:(...n)=>{t.delete(...n)},toString:(...n)=>t.toString(...n),forEach:(...n)=>{t.forEach(...n)},entries:(...n)=>t.entries(...n),keys:(...n)=>t.keys(...n),values:(...n)=>t.values(...n),has:(...n)=>t.has(...n),size:t.size,sort:()=>{t.sort()},[Symbol.iterator]:()=>t[Symbol.iterator]()}}function ni(e){const t=s=>{const a=e.find(i=>i.type===s);return R.markRaw(a?.component??lr(s))},n=s=>{const a=R.markRaw(t(s)),i={id:Gt(),component:a,meta:{},state:{}};return{id:i.id,matched:i,matches:[i],hooks:[],name:s,query:Dr(""),params:{},state:{},href:"/",hash:"",getTitle:async()=>{}}},r=s=>{if(!s){o.value=null;return}const a=t(s);o.value={type:s,component:a}},o=R.ref(null);return{setRejection:r,rejection:o,getRejectionRoute:n}}class ri extends Error{constructor(){super("initialUrl must be set if window.location is unavailable")}}function oi(e){if(e)return e;if(Ke())return window.location.toString();throw new ri}function Vr(e){return!!e&&typeof e=="object"}const wt={isOptional:!0,isGreedy:!1};function si(e,t,n){if(Vr(e)&&t in e){const r=e[t];return typeof r=="string"?he(r,{param:n,...wt}):r}return he(void 0,{param:n,...wt})}function ii(e,t){const n={};for(const[r,o]of Object.entries(e)){const s=si(t,r,o);n[r]=s}return n}function ai(e,t,n){if(Vr(e)&&t in e){const r=e[t];return ie(r,{param:n,...wt})}return ie(void 0,{param:n,...wt})}const xr=(e,t)=>{const n={};for(const[r,o]of Object.entries(e)){const s=ai(t,r,o);n[r]=s}return n};function ci(){const e=R.reactive(new Map),t=Ke()?a():null,n=i=>{e.set(i,!1),t?.observe(i)},r=i=>{e.delete(i),t?.unobserve(i)},o=()=>{t?.disconnect()},s=i=>e.get(i)??!1;function a(){return new IntersectionObserver(i=>{i.forEach(u=>{e.set(u.target,u.isIntersecting)})})}return{observe:n,unobserve:r,disconnect:o,isElementVisible:s}}class ui extends Error{constructor(t){super(`Route not found: "${t}"`)}}function Mr(e,t={},n={}){const r=e.stringify(t),o=je(r,{query:new URLSearchParams(n.query),hash:n.hash}),{query:s,hash:a}=X(o),i=async f=>{if(an(e))return e.getTitle(f)};return{...e,query:Dr(s),state:ii(e.state,n.state),hash:a,params:t,href:o,getTitle:i}}class fi extends Error{constructor(t){super(`Invalid Name "${t}": Router does not support multiple routes with the same name. All name names must be unique.`)}}function Br(e){return"name"in e&&te(e.name)}function li(e,t){return te(t)?{...e,...sn(Ie({path:t}),e)}:e}function di(e,t=[],n){const r=new Map,o=[...e,...t.map(i=>i.routes)];function s(i){if(!Br(i))return;const u=r.get(i.name);if(u&&u.id!==i.id)throw new fi(i.name);if(!(u&&u.id===i.id)){r.set(i.name,li(i,n));for(const f of i.context)pi(f)&&s(f)}}function a(i){for(const u of i)s(u)}for(const i of o){if(hi(i)){a(i);continue}s(i)}return{routes:Array.from(r.values()).sort(Ei),getRouteByName:i=>r.get(i)}}function pi(e){return"id"in e}function hi(e){return Array.isArray(e)}function Ei(e,t){return t.depth-e.depth}function gi(e=[]){const t=new pe;return e.forEach(n=>{n.hooks.onBeforeRouteEnter.forEach(r=>t.onBeforeRouteEnter.add(r)),n.hooks.onBeforeRouteUpdate.forEach(r=>t.onBeforeRouteUpdate.add(r)),n.hooks.onBeforeRouteLeave.forEach(r=>t.onBeforeRouteLeave.add(r)),n.hooks.onAfterRouteEnter.forEach(r=>t.onAfterRouteEnter.add(r)),n.hooks.onAfterRouteUpdate.forEach(r=>t.onAfterRouteUpdate.add(r)),n.hooks.onAfterRouteLeave.forEach(r=>t.onAfterRouteLeave.add(r))}),t}function _i(e,{match:t,name:n,component:r}){const o=Sr(e),s=yt(e);return R.defineComponent({name:"PropsWrapper",expose:[],setup(){const a=R.getCurrentInstance(),i=o(),u=s();return()=>{const f=i.getProps(t.id,n,u);return f instanceof Error?"":Kt(f)?a?.suspense?R.h(yi,{component:r,props:f}):R.h(mi,{component:r,props:f}):R.h(r,f)}}})}const mi=R.defineComponent(e=>{const t=R.ref();return R.watch(()=>e.props,async n=>{t.value=await n},{immediate:!0,deep:!0}),()=>t.value instanceof Error?"":t.value?R.h(e.component,t.value):""},{props:["component","props"]}),yi=R.defineComponent(async e=>{const t=R.ref();return t.value=await e.props,R.watch(()=>t.value,async n=>{t.value=await n},{deep:!0}),()=>t.value instanceof Error?"":t.value?R.h(e.component,t.value):""},{props:["component","props"]});function Ri(e){const t=new Map;return{getRouteComponents:r=>{const o=t.get(r.id);if(o)return o;const s=Si(e,r);return t.set(r.id,s),s}}}function Si(e,t){const n=un(e);return $t(t)?$r(e,t,t.components):Mt(t)?$r(e,t,{default:t.component}):{default:n}}function $r(e,t,n){return Object.fromEntries(Object.entries(n).map(([r,o])=>[r,_i(e,{match:t,name:r,component:o})]))}const Hr=Symbol();var Ti=Object.create,jr=Object.defineProperty,Oi=Object.getOwnPropertyDescriptor,wi=Object.getOwnPropertyNames,Pi=Object.getPrototypeOf,Ni=Object.prototype.hasOwnProperty,Ii=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ai=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=wi(t),s=0,a=o.length,i;s<a;s++)i=o[s],!Ni.call(e,i)&&i!==n&&jr(e,i,{get:(u=>t[u]).bind(null,i),enumerable:!(r=Oi(t,i))||r.enumerable});return e},bi=(e,t,n)=>(n=e!=null?Ti(Pi(e)):{},Ai(jr(n,"default",{value:e,enumerable:!0}),e));const Zr=typeof navigator<"u",O=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof O.chrome<"u"&&O.chrome.devtools,Zr&&(O.self,O.top),typeof navigator<"u"&&navigator.userAgent?.toLowerCase().includes("electron");var Ci=Ii(((e,t)=>{t.exports=r;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function r(s){if(s=s||{},s.circles)return o(s);const a=new Map;if(a.set(Date,c=>new Date(c)),a.set(Map,(c,E)=>new Map(u(Array.from(c),E))),a.set(Set,(c,E)=>new Set(u(Array.from(c),E))),s.constructorHandlers)for(const c of s.constructorHandlers)a.set(c[0],c[1]);let i=null;return s.proto?m:f;function u(c,E){const l=Object.keys(c),p=new Array(l.length);for(let S=0;S<l.length;S++){const _=l[S],h=c[_];typeof h!="object"||h===null?p[_]=h:h.constructor!==Object&&(i=a.get(h.constructor))?p[_]=i(h,E):ArrayBuffer.isView(h)?p[_]=n(h):p[_]=E(h)}return p}function f(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,f);if(c.constructor!==Object&&(i=a.get(c.constructor)))return i(c,f);const E={};for(const l in c){if(Object.hasOwnProperty.call(c,l)===!1)continue;const p=c[l];typeof p!="object"||p===null?E[l]=p:p.constructor!==Object&&(i=a.get(p.constructor))?E[l]=i(p,f):ArrayBuffer.isView(p)?E[l]=n(p):E[l]=f(p)}return E}function m(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,m);if(c.constructor!==Object&&(i=a.get(c.constructor)))return i(c,m);const E={};for(const l in c){const p=c[l];typeof p!="object"||p===null?E[l]=p:p.constructor!==Object&&(i=a.get(p.constructor))?E[l]=i(p,m):ArrayBuffer.isView(p)?E[l]=n(p):E[l]=m(p)}return E}}function o(s){const a=[],i=[],u=new Map;if(u.set(Date,l=>new Date(l)),u.set(Map,(l,p)=>new Map(m(Array.from(l),p))),u.set(Set,(l,p)=>new Set(m(Array.from(l),p))),s.constructorHandlers)for(const l of s.constructorHandlers)u.set(l[0],l[1]);let f=null;return s.proto?E:c;function m(l,p){const S=Object.keys(l),_=new Array(S.length);for(let h=0;h<S.length;h++){const T=S[h],g=l[T];if(typeof g!="object"||g===null)_[T]=g;else if(g.constructor!==Object&&(f=u.get(g.constructor)))_[T]=f(g,p);else if(ArrayBuffer.isView(g))_[T]=n(g);else{const d=a.indexOf(g);d!==-1?_[T]=i[d]:_[T]=p(g)}}return _}function c(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return m(l,c);if(l.constructor!==Object&&(f=u.get(l.constructor)))return f(l,c);const p={};a.push(l),i.push(p);for(const S in l){if(Object.hasOwnProperty.call(l,S)===!1)continue;const _=l[S];if(typeof _!="object"||_===null)p[S]=_;else if(_.constructor!==Object&&(f=u.get(_.constructor)))p[S]=f(_,c);else if(ArrayBuffer.isView(_))p[S]=n(_);else{const h=a.indexOf(_);h!==-1?p[S]=i[h]:p[S]=c(_)}}return a.pop(),i.pop(),p}function E(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return m(l,E);if(l.constructor!==Object&&(f=u.get(l.constructor)))return f(l,E);const p={};a.push(l),i.push(p);for(const S in l){const _=l[S];if(typeof _!="object"||_===null)p[S]=_;else if(_.constructor!==Object&&(f=u.get(_.constructor)))p[S]=f(_,E);else if(ArrayBuffer.isView(_))p[S]=n(_);else{const h=a.indexOf(_);h!==-1?p[S]=i[h]:p[S]=E(_)}}return a.pop(),i.pop(),p}}})),ki=bi(Ci());const Ui=/(?:^|[-_/])(\w)/g;function vi(e,t){return t?t.toUpperCase():""}function Li(e){return e&&`${e}`.replace(Ui,vi)}function Di(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const s=o.lastIndexOf(t);return o.substring(0,s)}}const Gr=(0,ki.default)({circles:!0}),Vi={trailing:!0};function Ce(e,t=25,n={}){if(n={...Vi,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],a,i;const u=(c,E)=>(a=xi(e,c,E),a.finally(()=>{if(a=null,n.trailing&&i&&!o){const l=u(c,i);return i=null,l}}),a),f=function(...c){return n.trailing&&(i=c),a||new Promise(E=>{const l=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const p=n.leading?r:u(this,c);i=null;for(const S of s)S(p);s=[]},t),l?(r=u(this,c),E(r)):s.push(E)})},m=c=>{c&&(clearTimeout(c),o=null)};return f.isPending=()=>!!o,f.cancel=()=>{m(o),s=[],i=null},f.flush=()=>{if(m(o),!i||a)return;const c=i;return i=null,u(this,c)},f}async function xi(e,t,n){return await e.apply(t,n)}function ln(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?ln(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Mi={run:e=>e()},Bi=()=>Mi,qr=typeof console.createTask<"u"?console.createTask:Bi;function $i(e,t){const n=t.shift(),r=qr(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Hi(e,t){const n=t.shift(),r=qr(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function dn(e,t){for(const n of[...e])n(t)}class ji{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let a=s.message;a||(a=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ln(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=ln(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith($i,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Hi,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&dn(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&dn(this._after,o)}):(this._after&&o&&dn(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Fr(){return new ji}var Zi=Object.create,zr=Object.defineProperty,Gi=Object.getOwnPropertyDescriptor,qi=Object.getOwnPropertyNames,Fi=Object.getPrototypeOf,zi=Object.prototype.hasOwnProperty,Wr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=qi(t),s=0,a=o.length,i;s<a;s++)i=o[s],!zi.call(e,i)&&i!==n&&zr(e,i,{get:(u=>t[u]).bind(null,i),enumerable:!(r=Gi(t,i))||r.enumerable});return e},Ji=(e,t,n)=>(n=e!=null?Zi(Fi(e)):{},Wi(zr(n,"default",{value:e,enumerable:!0}),e));function Ki(e){if(typeof e=="function")return e.displayName||e.name||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||"";const t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t==="index"&&e.__file?.endsWith("index.vue")?"":t}function Yi(e){const t=e.__file;if(t)return Li(Di(t,".vue"))}function Jr(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function pn(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Kr(e){const t=e.subTree?.type,n=pn(e);return n?n?.types?.Fragment===t:!1}function Pt(e){const t=Ki(e?.type||{});if(t)return t;if(e?.root===e)return"Root";for(const r in e.parent?.type?.components)if(e.parent.type.components[r]===e?.type)return Jr(e,r);for(const r in e.appContext?.components)if(e.appContext.components[r]===e?.type)return Jr(e,r);const n=Yi(e?.type||{});return n||"Anonymous Component"}function Qi(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?"root":e.uid}`}function hn(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function Xi(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}let Nt;function ea(e){return Nt||(Nt=document.createRange()),Nt.selectNode(e),Nt.getBoundingClientRect()}function ta(e){const t=Xi();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let s;if(o.component)s=me(o.component);else if(o.el){const a=o.el;a.nodeType===1||a.getBoundingClientRect?s=a.getBoundingClientRect():a.nodeType===3&&a.data.trim()&&(s=ea(a))}s&&na(t,s)}return t}function na(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}const Yr={top:0,left:0,right:0,bottom:0,width:0,height:0};function me(e){const t=e.subTree.el;return typeof window>"u"?Yr:Kr(e)?ta(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?me(e.subTree.component):Yr}function En(e){return Kr(e)?ra(e.subTree):e.subTree?[e.subTree.el]:[]}function ra(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...En(n.component)):n?.el&&t.push(n.el)}),t}const Qr="__vue-devtools-component-inspector__",Xr="__vue-devtools-component-inspector__card__",eo="__vue-devtools-component-inspector__name__",to="__vue-devtools-component-inspector__indicator__",no={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},oa={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},sa={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function ke(){return document.getElementById(Qr)}function ia(){return document.getElementById(Xr)}function aa(){return document.getElementById(to)}function ca(){return document.getElementById(eo)}function gn(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function _n(e){const t=document.createElement("div");t.id=e.elementId??Qr,Object.assign(t.style,{...no,...gn(e.bounds),...e.style});const n=document.createElement("span");n.id=Xr,Object.assign(n.style,{...oa,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=eo,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const o=document.createElement("i");return o.id=to,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(o.style,sa),n.appendChild(r),n.appendChild(o),t.appendChild(n),document.body.appendChild(t),t}function mn(e){const t=ke(),n=ia(),r=ca(),o=aa();t&&(Object.assign(t.style,{...no,...gn(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function ua(e){const t=me(e);if(!t.width&&!t.height)return;const n=Pt(e);ke()?mn({bounds:t,name:n}):_n({bounds:t,name:n})}function ro(){const e=ke();e&&(e.style.display="none")}let yn=null;function Rn(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(yn=n,n.vnode.el)){const r=me(n),o=Pt(n);ke()?mn({bounds:r,name:o}):_n({bounds:r,name:o})}}}function fa(e,t){e.preventDefault(),e.stopPropagation(),yn&&t(Qi(yn))}let It=null;function la(){ro(),window.removeEventListener("mouseover",Rn),window.removeEventListener("click",It,!0),It=null}function da(){return window.addEventListener("mouseover",Rn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),fa(n,r=>{window.removeEventListener("click",t,!0),It=null,window.removeEventListener("mouseover",Rn);const o=ke();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}It=t,window.addEventListener("click",t,!0)})}function pa(e){const t=hn(H.value,e.id);if(t){const[n]=En(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=me(t),o=document.createElement("div"),s={...gn(r),position:"absolute"};Object.assign(o.style,s),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=me(t);if(r.width||r.height){const o=Pt(t),s=ke();s?mn({...e,name:o,bounds:r}):_n({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}O.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function ha(e){let t=0;const n=setInterval(()=>{O.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Ea(){const e=O.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function ga(){return new Promise(e=>{function t(){Ea(),e(O.__VUE_INSPECTOR__)}O.__VUE_INSPECTOR__?t():ha(()=>{t()})})}let At=(function(e){return e.SKIP="__v_skip",e.IS_REACTIVE="__v_isReactive",e.IS_READONLY="__v_isReadonly",e.IS_SHALLOW="__v_isShallow",e.RAW="__v_raw",e})({});function _a(e){return!!(e&&e[At.IS_READONLY])}function oo(e){return _a(e)?oo(e[At.RAW]):!!(e&&e[At.IS_REACTIVE])}function Sn(e){return!!(e&&e.__v_isRef===!0)}function Ye(e){const t=e&&e[At.RAW];return t?Ye(t):e}var ma=class{constructor(){this.refEditor=new ya}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const i=o.shift();e instanceof Map?e=e.get(i):e instanceof Set?e=Array.from(e.values())[i]:e=e[i],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const s=o[0],a=this.refEditor.get(e)[s];r?r(e,s,n):this.refEditor.isRef(a)?this.refEditor.set(a,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const s=r.shift();e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Ye(t)instanceof Map?t.delete(n):Ye(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):Ye(t)instanceof Map?t.set(e.newKey||n,r):Ye(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},ya=class{set(e,t){if(Sn(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(s=>{e.set(s,Reflect.get(t,s)),o.delete(s)}),o.forEach(s=>e.delete(s));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return Sn(e)?e.value:e}isRef(e){return Sn(e)||oo(e)}};const Ra="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Sa(){if(typeof window>"u"||!Zr||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=typeof localStorage.getItem<"u"?localStorage.getItem(Ra):null;return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];const Ta=new Proxy(O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Oa(e,t){D.timelineLayersState[t.id]=!1,Ta.push({...e,descriptorId:t.id,appRecord:pn(t.app)})}O.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];const Tn=new Proxy(O.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),so=Ce(()=>{ve.hooks.callHook(ye.SEND_INSPECTOR_TO_CLIENT,io())});function wa(e,t){Tn.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??"Search tree...",stateFilterPlaceholder:e.stateFilterPlaceholder??"Search state...",treeFilter:"",selectedNodeId:"",appRecord:pn(t.app)}),so()}function io(){return Tn.filter(e=>e.descriptor.app===H.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{const t=e.descriptor,n=e.options;return{id:n.id,label:n.label,logo:t.logo,icon:`custom-ic-baseline-${n?.icon?.replace(/_/g,"-")}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function bt(e,t){return Tn.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}let B=(function(e){return e.VISIT_COMPONENT_TREE="visitComponentTree",e.INSPECT_COMPONENT="inspectComponent",e.EDIT_COMPONENT_STATE="editComponentState",e.GET_INSPECTOR_TREE="getInspectorTree",e.GET_INSPECTOR_STATE="getInspectorState",e.EDIT_INSPECTOR_STATE="editInspectorState",e.INSPECT_TIMELINE_EVENT="inspectTimelineEvent",e.TIMELINE_CLEARED="timelineCleared",e.SET_PLUGIN_SETTINGS="setPluginSettings",e})({}),L=(function(e){return e.ADD_INSPECTOR="addInspector",e.SEND_INSPECTOR_TREE="sendInspectorTree",e.SEND_INSPECTOR_STATE="sendInspectorState",e.CUSTOM_INSPECTOR_SELECT_NODE="customInspectorSelectNode",e.TIMELINE_LAYER_ADDED="timelineLayerAdded",e.TIMELINE_EVENT_ADDED="timelineEventAdded",e.GET_COMPONENT_INSTANCES="getComponentInstances",e.GET_COMPONENT_BOUNDS="getComponentBounds",e.GET_COMPONENT_NAME="getComponentName",e.COMPONENT_HIGHLIGHT="componentHighlight",e.COMPONENT_UNHIGHLIGHT="componentUnhighlight",e})({}),ye=(function(e){return e.SEND_INSPECTOR_TREE_TO_CLIENT="sendInspectorTreeToClient",e.SEND_INSPECTOR_STATE_TO_CLIENT="sendInspectorStateToClient",e.SEND_TIMELINE_EVENT_TO_CLIENT="sendTimelineEventToClient",e.SEND_INSPECTOR_TO_CLIENT="sendInspectorToClient",e.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT="sendActiveAppUpdatedToClient",e.DEVTOOLS_STATE_UPDATED="devtoolsStateUpdated",e.DEVTOOLS_CONNECTED_UPDATED="devtoolsConnectedUpdated",e.ROUTER_INFO_UPDATED="routerInfoUpdated",e})({});function Pa(){const e=Fr();e.hook(L.ADD_INSPECTOR,({inspector:r,plugin:o})=>{wa(r,o.descriptor)});const t=Ce(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||D.highPerfModeEnabled)return;const s=bt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,filter:s?.treeFilter||"",rootNodes:[]};await new Promise(i=>{e.callHookWith(async u=>{await Promise.all(u.map(f=>f(a))),i()},B.GET_INSPECTOR_TREE)}),e.callHookWith(async i=>{await Promise.all(i.map(u=>u({inspectorId:r,rootNodes:a.rootNodes})))},ye.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(L.SEND_INSPECTOR_TREE,t);const n=Ce(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||D.highPerfModeEnabled)return;const s=bt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,nodeId:s?.selectedNodeId||"",state:null},i={currentTab:`custom-inspector:${r}`};a.nodeId&&await new Promise(u=>{e.callHookWith(async f=>{await Promise.all(f.map(m=>m(a,i))),u()},B.GET_INSPECTOR_STATE)}),e.callHookWith(async u=>{await Promise.all(u.map(f=>f({inspectorId:r,nodeId:a.nodeId,state:a.state})))},ye.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(L.SEND_INSPECTOR_STATE,n),e.hook(L.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:r,nodeId:o,plugin:s})=>{const a=bt(r,s.descriptor.app);a&&(a.selectedNodeId=o)}),e.hook(L.TIMELINE_LAYER_ADDED,({options:r,plugin:o})=>{Oa(r,o.descriptor)}),e.hook(L.TIMELINE_EVENT_ADDED,({options:r,plugin:o})=>{D.highPerfModeEnabled||!D.timelineLayersState?.[o.descriptor.id]&&!["performance","component-event","keyboard","mouse"].includes(r.layerId)||e.callHookWith(async s=>{await Promise.all(s.map(a=>a(r)))},ye.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(L.GET_COMPONENT_INSTANCES,async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const s=o.id.toString();return[...o.instanceMap].filter(([a])=>a.split(":")[0]===s).map(([,a])=>a)}),e.hook(L.GET_COMPONENT_BOUNDS,async({instance:r})=>me(r)),e.hook(L.GET_COMPONENT_NAME,({instance:r})=>Pt(r)),e.hook(L.COMPONENT_HIGHLIGHT,({uid:r})=>{const o=H.value.instanceMap.get(r);o&&ua(o)}),e.hook(L.COMPONENT_UNHIGHLIGHT,()=>{ro()}),e}O.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??="",O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];const Ue="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Na(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Sa()}}O[Ue]??=Na();const Ia=Ce(e=>{ve.hooks.callHook(ye.DEVTOOLS_STATE_UPDATED,{state:e})});Ce((e,t)=>{ve.hooks.callHook(ye.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});const Ct=new Proxy(O.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_APP_RECORDS__:O.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),H=new Proxy(O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function ao(){Ia({...O[Ue],appRecords:Ct.value,activeAppRecordId:H.id,tabs:O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Aa(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,ao()}function ba(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,ao()}const D=new Proxy(O[Ue],{get(e,t){return t==="appRecords"?Ct:t==="activeAppRecordId"?H.id:t==="tabs"?O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:O[Ue][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...O[Ue]},e[t]=n,O[Ue][t]=n,!0}});function Ca(e={}){const{file:t,host:n,baseUrl:r=window.location.origin,line:o=0,column:s=0}=e;if(t){if(n==="chrome-extension"){const a=t.replace(/\\/g,"\\\\"),i=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??"/";fetch(`${i}__open-in-editor?file=${encodeURI(t)}`).then(u=>{if(!u.ok){const f=`Opening component ${a} failed`;console.log(`%c${f}`,"color:red")}})}else if(D.vitePluginDetected){const a=O.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;O.__VUE_INSPECTOR__.openInEditor(a,t,o,s)}}}O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];const On=new Proxy(O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function wn(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Pn(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function ka(e){return(On.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function co(e,t){const n=Pn(e);if(n){const r=localStorage.getItem(n);if(r)return JSON.parse(r)}return wn(e?(On.find(r=>r[0].id===e)?.[0]??null)?.settings??{}:t)}function Ua(e,t){const n=Pn(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(wn(t)))}function va(e,t,n){const r=Pn(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),a={...s,[t]:n};localStorage.setItem(r,JSON.stringify(a)),ve.hooks.callHookWith(i=>{i.forEach(u=>u({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:a}))},B.SET_PLUGIN_SETTINGS)}let q=(function(e){return e.APP_INIT="app:init",e.APP_UNMOUNT="app:unmount",e.COMPONENT_UPDATED="component:updated",e.COMPONENT_ADDED="component:added",e.COMPONENT_REMOVED="component:removed",e.COMPONENT_EMIT="component:emit",e.PERFORMANCE_START="perf:start",e.PERFORMANCE_END="perf:end",e.ADD_ROUTE="router:add-route",e.REMOVE_ROUTE="router:remove-route",e.RENDER_TRACKED="render:tracked",e.RENDER_TRIGGERED="render:triggered",e.APP_CONNECTED="app:connected",e.SETUP_DEVTOOLS_PLUGIN="devtools-plugin:setup",e})({});const F=O.__VUE_DEVTOOLS_HOOK??=Fr(),uo={on:{vueAppInit(e){F.hook(q.APP_INIT,e)},vueAppUnmount(e){F.hook(q.APP_UNMOUNT,e)},vueAppConnected(e){F.hook(q.APP_CONNECTED,e)},componentAdded(e){return F.hook(q.COMPONENT_ADDED,e)},componentEmit(e){return F.hook(q.COMPONENT_EMIT,e)},componentUpdated(e){return F.hook(q.COMPONENT_UPDATED,e)},componentRemoved(e){return F.hook(q.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){F.hook(q.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return F.hook(q.PERFORMANCE_START,e)},perfEnd(e){return F.hook(q.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return F.callHook(q.SETUP_DEVTOOLS_PLUGIN,e,t)}};var La=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(B.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook(B.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook(B.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook(B.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook(B.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook(B.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook(B.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook(B.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook(B.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(D.highPerfModeEnabled)return;const t=io().find(n=>n.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){const n=[e.appContext.app,e.uid,e.parent?.uid,e];F.callHook(q.COMPONENT_UPDATED,...n)}else F.callHook(q.COMPONENT_UPDATED);this.hooks.callHook(L.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(L.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Ua(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){D.highPerfModeEnabled||this.hooks.callHook(L.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){D.highPerfModeEnabled||this.hooks.callHook(L.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(L.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(B.VISIT_COMPONENT_TREE,e)}now(){return D.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(L.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){D.highPerfModeEnabled||this.hooks.callHook(L.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return co(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(L.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(L.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(L.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(L.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(L.COMPONENT_UNHIGHLIGHT)}};const Da=La,Va="__vue_devtool_undefined__",xa="__vue_devtool_infinity__",Ma="__vue_devtool_negative_infinity__",Ba="__vue_devtool_nan__",$a={[Va]:"undefined",[Ba]:"NaN",[xa]:"Infinity",[Ma]:"-Infinity"};Object.entries($a).reduce((e,[t,n])=>(e[n]=t,e),{}),O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function Ha(e,t){return uo.setupDevToolsPlugin(e,t)}function ja(e,t){const[n,r]=e;if(n.app!==t)return;const o=new Da({plugin:{setupFn:r,descriptor:n},ctx:ve});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function fo(e,t){O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||D.highPerfModeEnabled&&!t?.inspectingComponent||(O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),On.forEach(n=>{ja(n,e)}))}const kt="__VUE_DEVTOOLS_ROUTER__",Qe="__VUE_DEVTOOLS_ROUTER_INFO__";O[Qe]??={currentRoute:null,routes:[]},O[kt]??={},new Proxy(O[Qe],{get(e,t){return O[Qe][t]}}),new Proxy(O[kt],{get(e,t){if(t==="value")return O[kt]}});function Za(e){const t=new Map;return(e?.getRoutes()||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Nn(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o?.length&&(o=Nn(o)),{path:n,name:r,children:o,meta:s}})}function Ga(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:a,params:i,query:u}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:i,query:u,matched:Nn(a)}}return e}function qa(e,t){function n(){const r=e.app?.config.globalProperties.$router,o=Ga(r?.currentRoute.value),s=Nn(Za(r)),a=console.warn;console.warn=()=>{},O[Qe]={currentRoute:o?Gr(o):{},routes:Gr(s)},O[kt]=r,console.warn=a}n(),uo.on.componentUpdated(Ce(()=>{t.value?.app===e.app&&(n(),!D.highPerfModeEnabled&&ve.hooks.callHook(ye.ROUTER_INFO_UPDATED,{state:O[Qe]}))},200))}function Fa(e){return{async getInspectorTree(t){const n={...t,app:H.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},B.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){const n={...t,app:H.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async s=>{await Promise.all(s.map(a=>a(n,r))),o()},B.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){const n=new ma,r={...t,app:H.value.app,set:(o,s=t.path,a=t.state.value,i)=>{n.set(o,s,a,i||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(s=>s(r))},B.EDIT_INSPECTOR_STATE)},sendInspectorState(t){const n=bt(t);e.callHook(L.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return da()},cancelInspectComponentInspector(){return la()},getComponentRenderCode(t){const n=hn(H.value,t);if(n)return typeof n?.type!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return pa({id:t})},openInEditor:Ca,getVueInspector:ga,toggleApp(t,n){const r=Ct.value.find(o=>o.id===t);r&&(ba(t),Aa(r),qa(r,H),so(),fo(r.app,n))},inspectDOM(t){const n=hn(H.value,t);if(n){const[r]=En(n);r&&(O.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){va(t,n,r)},getPluginSettings(t){return{options:ka(t),values:co(t)}}}}O.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};const lo=Pa();O.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:lo,get state(){return{...D,activeAppRecordId:H.id,activeAppRecord:H.value,appRecords:Ct.value}},api:Fa(lo)};const ve=O.__VUE_DEVTOOLS_KIT_CONTEXT__;var za=Wr(((e,t)=>{(function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},a={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},i={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},u=[";","?",":","@","&","=","+","$",",","/"].join(""),f=[";","?",":","@","&","=","+","$",","].join(""),m=[".","!","~","*","'","(",")"].join(""),c=function(_,h){var T="-",g="",d="",y=!0,w={},A,C,M,$,K,Ve,re,oe,xe,j,b,Re,Y,ue,ee="";if(typeof _!="string")return"";if(typeof h=="string"&&(T=h),re=i.en,oe=a.en,typeof h=="object"){A=h.maintainCase||!1,w=h.custom&&typeof h.custom=="object"?h.custom:w,M=+h.truncate>1&&h.truncate||!1,$=h.uric||!1,K=h.uricNoSlash||!1,Ve=h.mark||!1,y=!(h.symbols===!1||h.lang===!1),T=h.separator||T,$&&(ee+=u),K&&(ee+=f),Ve&&(ee+=m),re=h.lang&&i[h.lang]&&y?i[h.lang]:y?i.en:{},oe=h.lang&&a[h.lang]?a[h.lang]:h.lang===!1||h.lang===!0?{}:a.en,h.titleCase&&typeof h.titleCase.length=="number"&&Array.prototype.toString.call(h.titleCase)?(h.titleCase.forEach(function(z){w[z+""]=z+""}),C=!0):C=!!h.titleCase,h.custom&&typeof h.custom.length=="number"&&Array.prototype.toString.call(h.custom)&&h.custom.forEach(function(z){w[z+""]=z+""}),Object.keys(w).forEach(function(z){var Se;z.length>1?Se=new RegExp("\\b"+l(z)+"\\b","gi"):Se=new RegExp(l(z),"gi"),_=_.replace(Se,w[z])});for(b in w)ee+=b}for(ee+=T,ee=l(ee),_=_.replace(/(^\s+|\s+$)/g,""),Y=!1,ue=!1,j=0,Re=_.length;j<Re;j++)b=_[j],p(b,w)?Y=!1:oe[b]?(b=Y&&oe[b].match(/[A-Za-z0-9]/)?" "+oe[b]:oe[b],Y=!1):b in r?(j+1<Re&&o.indexOf(_[j+1])>=0?(d+=b,b=""):ue===!0?(b=s[d]+r[b],d=""):b=Y&&r[b].match(/[A-Za-z0-9]/)?" "+r[b]:r[b],Y=!1,ue=!1):b in s?(d+=b,b="",j===Re-1&&(b=s[d]),ue=!0):re[b]&&!($&&u.indexOf(b)!==-1)&&!(K&&f.indexOf(b)!==-1)?(b=Y||g.substr(-1).match(/[A-Za-z0-9]/)?T+re[b]:re[b],b+=_[j+1]!==void 0&&_[j+1].match(/[A-Za-z0-9]/)?T:"",Y=!0):(ue===!0?(b=s[d]+b,d="",ue=!1):Y&&(/[A-Za-z0-9]/.test(b)||g.substr(-1).match(/A-Za-z0-9]/))&&(b=" "+b),Y=!1),g+=b.replace(new RegExp("[^\\w\\s"+ee+"_-]","g"),T);return C&&(g=g.replace(/(\w)(\S*)/g,function(z,Se,Dt){var Te=Se.toUpperCase()+(Dt!==null?Dt:"");return Object.keys(w).indexOf(Te.toLowerCase())<0?Te:Te.toLowerCase()})),g=g.replace(/\s+/g,T).replace(new RegExp("\\"+T+"+","g"),T).replace(new RegExp("(^\\"+T+"+|\\"+T+"+$)","g"),""),M&&g.length>M&&(xe=g.charAt(M)===T,g=g.slice(0,M),xe||(g=g.slice(0,g.lastIndexOf(T)))),!A&&!C&&(g=g.toLowerCase()),g},E=function(_){return function(T){return c(T,_)}},l=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},p=function(S,_){for(var h in _)if(_[h]===S)return!0};if(typeof t<"u"&&t.exports)t.exports=c,t.exports.createSlug=E;else if(typeof define<"u"&&define.amd)define([],function(){return c});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=c,n.createSlug=E}catch{}})(e)})),Wa=Wr(((e,t)=>{t.exports=za()}));Wa(),O.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function Ja(e){D.highPerfModeEnabled=e??!D.highPerfModeEnabled,!e&&H.value&&fo(H.value.app)}function Ka(e){D.devtoolsClientDetected={...D.devtoolsClientDetected,...e},Ja(!Object.values(D.devtoolsClientDetected).some(Boolean))}O.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=Ka;var Ya=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},po=class{constructor(e){this.generateIdentifier=e,this.kv=new Ya}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Qa=class extends po{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Xa(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function ec(e,t){const n=Xa(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const s=r[o];if(t(s))return s}}function Le(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Ut(e,t){return e.indexOf(t)!==-1}function ho(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var tc=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return ec(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};const nc=e=>Object.prototype.toString.call(e).slice(8,-1),Eo=e=>typeof e>"u",rc=e=>e===null,Xe=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,In=e=>Xe(e)&&Object.keys(e).length===0,ce=e=>Array.isArray(e),oc=e=>typeof e=="string",sc=e=>typeof e=="number"&&!isNaN(e),ic=e=>typeof e=="boolean",ac=e=>e instanceof RegExp,et=e=>e instanceof Map,tt=e=>e instanceof Set,go=e=>nc(e)==="Symbol",cc=e=>e instanceof Date&&!isNaN(e.valueOf()),uc=e=>e instanceof Error,_o=e=>typeof e=="number"&&isNaN(e),fc=e=>ic(e)||rc(e)||Eo(e)||sc(e)||oc(e)||go(e),lc=e=>typeof e=="bigint",dc=e=>e===1/0||e===-1/0,pc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),hc=e=>e instanceof URL,mo=e=>e.replace(/\./g,"\\."),An=e=>e.map(String).map(mo).join("."),nt=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if(s==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(s==="."){t.push(n),n="";continue}n+=s}const r=n;return t.push(r),t};function ne(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const yo=[ne(Eo,"undefined",()=>null,()=>{}),ne(lc,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),ne(cc,"Date",e=>e.toISOString(),e=>new Date(e)),ne(uc,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),ne(ac,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),ne(tt,"set",e=>[...e.values()],e=>new Set(e)),ne(et,"map",e=>[...e.entries()],e=>new Map(e)),ne(e=>_o(e)||dc(e),"number",e=>_o(e)?"NaN":e>0?"Infinity":"-Infinity",Number),ne(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),ne(hc,"URL",e=>e.toString(),e=>new URL(e))];function vt(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const Ro=vt((e,t)=>go(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Ec=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),So=vt(pc,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Ec[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function To(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const Oo=vt(To,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),wo=vt((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),gc=[Oo,Ro,wo,So],Po=(e,t)=>{const n=ho(gc,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=ho(yo,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},No={};yo.forEach(e=>{No[e.annotation]=e});const _c=(e,t,n)=>{if(ce(t))switch(t[0]){case"symbol":return Ro.untransform(e,t,n);case"class":return Oo.untransform(e,t,n);case"custom":return wo.untransform(e,t,n);case"typed-array":return So.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=No[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},De=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Io(e){if(Ut(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Ut(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Ut(e,"constructor"))throw new Error("constructor is not allowed as a property")}const mc=(e,t)=>{Io(t);for(let n=0;n<t.length;n++){const r=t[n];if(tt(e))e=De(e,+r);else if(et(e)){const o=+r,s=+t[++n]==0?"key":"value",a=De(e,o);switch(s){case"key":e=a;break;case"value":e=e.get(a);break}}else e=e[r]}return e},bn=(e,t,n)=>{if(Io(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const a=t[s];if(ce(r)){const i=+a;r=r[i]}else if(Xe(r))r=r[a];else if(tt(r)){const i=+a;r=De(r,i)}else if(et(r)){if(s===t.length-2)break;const i=+a,u=+t[++s]==0?"key":"value",f=De(r,i);switch(u){case"key":r=f;break;case"value":r=r.get(f);break}}}const o=t[t.length-1];if(ce(r)?r[+o]=n(r[+o]):Xe(r)&&(r[o]=n(r[o])),tt(r)){const s=De(r,+o),a=n(s);s!==a&&(r.delete(s),r.add(a))}if(et(r)){const s=+t[t.length-2],a=De(r,s);switch(+o==0?"key":"value"){case"key":{const i=n(a);r.set(i,r.get(a)),i!==a&&r.delete(a);break}case"value":r.set(a,n(r.get(a)));break}}return e};function Cn(e,t,n=[]){if(!e)return;if(!ce(e)){Le(e,(s,a)=>Cn(s,t,[...n,...nt(a)]));return}const[r,o]=e;o&&Le(o,(s,a)=>{Cn(s,t,[...n,...nt(a)])}),t(r,n)}function yc(e,t,n){return Cn(t,(r,o)=>{e=bn(e,o,s=>_c(s,r,n))}),e}function Rc(e,t){function n(r,o){const s=mc(e,nt(o));r.map(nt).forEach(a=>{e=bn(e,a,()=>s)})}if(ce(t)){const[r,o]=t;r.forEach(s=>{e=bn(e,nt(s),()=>e)}),o&&Le(o,n)}else Le(t,n);return e}const Sc=(e,t)=>Xe(e)||ce(e)||et(e)||tt(e)||To(e,t);function Tc(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Oc(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(i=>i.map(String)).sort((i,u)=>i.length-u.length));const[s,...a]=o;s.length===0?r=a.map(An):n[An(s)]=a.map(An)}),r?In(n)?[r]:[r,n]:In(n)?void 0:n}const Ao=(e,t,n,r,o=[],s=[],a=new Map)=>{const i=fc(e);if(!i){Tc(e,o,t);const l=a.get(e);if(l)return r?{transformedValue:null}:l}if(!Sc(e,n)){const l=Po(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return i||a.set(e,p),p}if(Ut(s,e))return{transformedValue:null};const u=Po(e,n),f=u?.value??e,m=ce(f)?[]:{},c={};Le(f,(l,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);const S=Ao(l,t,n,r,[...o,p],[...s,e],a);m[p]=S.transformedValue,ce(S.annotations)?c[p]=S.annotations:Xe(S.annotations)&&Le(S.annotations,(_,h)=>{c[mo(p)+"."+h]=_})});const E=In(c)?{transformedValue:m,annotations:u?[u.type]:void 0}:{transformedValue:m,annotations:u?[u.type,c]:c};return i||a.set(e,E),E};function bo(e){return Object.prototype.toString.call(e).slice(8,-1)}function Co(e){return bo(e)==="Array"}function wc(e){if(bo(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Pc(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function kn(e,t={}){if(Co(e))return e.map(o=>kn(o,t));if(!wc(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(Co(t.props)&&!t.props.includes(s))return o;const a=e[s];return Pc(o,s,kn(a,t),e,t.nonenumerable),o},{})}var U=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Qa,this.symbolRegistry=new po(t=>t.description??""),this.customTransformerRegistry=new tc,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Ao(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=Oc(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=kn(t);return n?.values&&(r=yc(r,n.values,this)),n?.referentialEqualities&&(r=Rc(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};U.defaultInstance=new U,U.serialize=U.defaultInstance.serialize.bind(U.defaultInstance),U.deserialize=U.defaultInstance.deserialize.bind(U.defaultInstance),U.stringify=U.defaultInstance.stringify.bind(U.defaultInstance),U.parse=U.defaultInstance.parse.bind(U.defaultInstance),U.registerClass=U.defaultInstance.registerClass.bind(U.defaultInstance),U.registerSymbol=U.defaultInstance.registerSymbol.bind(U.defaultInstance),U.registerCustom=U.defaultInstance.registerCustom.bind(U.defaultInstance),U.allowErrorProps=U.defaultInstance.allowErrorProps.bind(U.defaultInstance),O.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],O.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,O.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,O.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,O.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,O.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;const Lt={template:"<div>This is component</div>"},Un=Ee({name:"parentA",path:"/parentA/[paramA]"}),ko=Ee({parent:Un,name:"parentA.childA",path:"/childA/[?paramB]"}),Nc=Ee({parent:Un,name:"parentA.childB",path:"/childB/[paramD]",component:Lt}),Ic=Ee({parent:ko,name:"parentA.childA.grandChildA",path:"/[paramC]",component:Lt});Ee({name:"parentB",path:"/parentB",component:Lt}),Ee({name:"parentC",path:"/",component:Lt});function Ac(e,t){return t!=="1"?`${e} ${t}`:e}const bc=({route:e})=>!!e.name,Cc=({route:e,payload:t})=>{if(!t.filter)return!0;if(!le(e))return!1;const n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},kc=e=>bc(e)&&Cc(e),Uc=rt(),vc=2282478,Lc=2278750,Dc=1483594;function Vc(e,t={match:!1,exactMatch:!1}){const n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:vc}),t.match&&n.push({label:"match",textColor:0,backgroundColor:Lc}),t.exactMatch&&n.push({label:"exact-match",textColor:0,backgroundColor:Dc}),{id:e.id,label:e.name,tags:n}}function xc(e,t){if(!t||!("id"in t)||!("matches"in t))return{match:!1,exactMatch:!1};const n=t.id===e.id;return{match:t.matches.some(o=>o.id===e.id),exactMatch:n}}function Mc(e){const t=[];return le(e)&&(t.push({editable:!1,key:"name",value:e.name}),t.push({editable:!1,key:"path",value:e.schema.path.value}),t.push({editable:!1,key:"query",value:e.schema.query.value}),t.push({editable:!1,key:"hash",value:e.schema.hash.value}),t.push({editable:!1,key:"meta",value:e.meta})),t}function Bc({router:e,app:t,routes:n}){if(!Ke()||e.hasDevtools)return;e.hasDevtools=!0;const r=Uc(),o=new Map(n.map(i=>[i.id,i])),s=`kitbag-router-routes.${r}`,a=`kitbag-router.${r}`;Ha({id:a,label:"Kitbag Router",packageName:"@kitbag/router",homepage:"https://router.kitbag.dev/",componentStateTypes:["Routing"],logo:"https://kitbag.dev/kitbag-logo-circle.svg",app:t},i=>{i.addInspector({id:s,label:Ac("Routes",r),treeFilterPlaceholder:"Search routes"}),i.on.getInspectorTree(u=>{u.app!==t||u.inspectorId!==s||(u.rootNodes=n.filter(f=>kc({route:f,payload:u})).map(f=>{const m=xc(f,e.route);return Vc(f,m)}))}),R.watch(()=>e.route,()=>{i.sendInspectorTree(s)},{deep:!0,immediate:!1}),i.on.getInspectorState(u=>{if(u.app!==t||u.inspectorId!==s)return;const f=o.get(u.nodeId);f&&(u.state={options:Mc(f)})}),i.sendInspectorTree(s),i.sendInspectorState(s)})}function $c(e,t){const n=new URLSearchParams(e),r=new URLSearchParams(t);for(const[o,s]of r.entries())n.delete(o,s);return n}function Hc(e,t,n={}){const{query:r,hash:o}=X(t);for(const s of e){if(!Br(s))continue;const{success:a,params:i}=s.tryParse(t,n);if(a){const u=s.stringify(i),{query:f}=X(u),m=$c(r,f);return Mr(s,i,{...n,query:m,hash:o})}}}const Uo=/^(\/.+?)\/+$/;function jc(e){const{path:t,...n}=X(e);return gt({...n,path:t.replace(Uo,"$1")})}function Zc(e){const{path:t}=X(e);return Uo.test(t)}let vo;function Gc(e){!an(e)||!Ke()||(vo??=document.title,e.getTitle(e).then(t=>{document.title=t??vo??""}))}function qc(e,t,n=[]){const o=t?.isGlobalRouter??!0?Hr:Symbol(),s=[...n.flatMap(N=>N.rejections),...t?.rejections??[]],a=t?.removeTrailingSlashes??!0,{routes:i,getRouteByName:u}=di(e,n,t?.base),f=ks();f.addGlobalRouteHooks(gi(n));const m=rt(),c=Xs(),E=Ri(o),l=ci(),p=ei({mode:t?.historyMode,listener:({location:N})=>{const v=_e(N);_(v,{state:N.state,replace:!0})}});function S(N,v={}){const G=!j(N),Z=i.filter(x=>x.isRelative===G);return Hc(Z,N,{...v,...{removeTrailingSlashes:a}})}async function _(N,v={}){if(Zc(N)&&a){const se=jc(N);if(W(se))return d(se,v)}const G=m();p.stopListening();const Z=S(N,v)??C("NotFound"),V=Se(G),x=await f.runBeforeRouteHooks({to:Z,from:V});switch(x.status){case"ABORT":return;case"PUSH":p.update(N,v),await g(...x.to);return;case"REJECT":p.update(N,v),w(x.type);break;case"SUCCESS":p.update(N,v),w(null);break;default:throw new Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(x)}`)}j(N)||h(G,Z,V);const Me=await f.runAfterRouteHooks({to:Z,from:V});switch(Me.status){case"PUSH":await g(...Me.to);break;case"REJECT":w(Me.type);break;case"SUCCESS":break;default:const se=Me;throw new Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(se)}`)}Gc(Z),p.startListening()}function h(N,v,G){const Z=N;c.setProps(v).then(V=>{if(Z===N)switch(V.status){case"SUCCESS":break;case"PUSH":g(...V.to);break;case"REJECT":w(V.type);break;default:const x=V;throw new Error(`Switch is not exhaustive for prop store response status: ${JSON.stringify(x)}`)}}).catch(V=>{try{f.runErrorHooks(V,{to:v,from:G,source:"props"})}catch(x){if(x instanceof ae){g(...x.response.to);return}if(x instanceof ge){w(x.response.type);return}throw x}}),Ve(v)}const T=(N,v={},G={})=>{const Z=u(N);if(!Z)throw new ui(N);return Mr(Z,v,G)},g=(N,v,G)=>{if(W(N)){const se={...v},Vt=je(N,{query:se.query,hash:se.hash});return _(Vt,se)}if(typeof N=="string"){const{replace:se,...Vt}={...G},ou={...v},vn=T(N,ou,Vt),su=xr({...vn.matched.state},{...vn.state,...Vt.state});return _(vn.href,{replace:se,state:su})}const{replace:Z,...V}={...v},x=xr({...N.matched.state},{...N.state,...V.state}),Me=je(N.href,{query:V.query,hash:V.hash});return _(Me,{replace:Z,state:x})},d=(N,v,G)=>{if(W(N)){const V={...v,replace:!0};return g(N,V)}if(typeof N=="string"){const V={...G,replace:!0},x={...v};return g(N,x,V)}const Z={...v,replace:!0};return g(N,Z)},y=N=>{w(N)},{setRejection:w,rejection:A,getRejectionRoute:C}=ni(s),M=C("NotFound"),{currentRoute:$,routerRoute:K,updateRoute:Ve}=Ys(o,M,g),re=oi(t?.initialUrl),oe=p.location.state,{host:xe}=X(re),j=Qs(xe);let b=!1;const Re=R.ref(!1),{promise:Y,resolve:ue}=Promise.withResolvers();async function ee(){if(b)return Y;b=!0,zo(i)&&await Wo(),await _(re,{replace:!0,state:oe}),p.startListening(),ue(),Re.value=!0}function z(){p.stopListening()}function Se(N){return Bo(N)?null:{...$}}function Dt(N){f.setVueApp(N),c.setVueApp(N);const v=un(o),G=Ir(o);N.component("RouterView",v),N.component("RouterLink",G),N.provide(_r(o),A),N.provide(Er(o),f),N.provide(Rr(o),c),N.provide(gr(o),E),N.provide(wr,l),N.provide(o,Te),Bc({router:Te,app:N,routes:i}),ee()}const Te={route:K,resolve:T,find:S,push:g,replace:d,reject:y,refresh:p.refresh,forward:p.forward,back:p.back,go:p.go,install:Dt,isExternal:j,onBeforeRouteEnter:f.onBeforeRouteEnter,onBeforeRouteUpdate:f.onBeforeRouteUpdate,onBeforeRouteLeave:f.onBeforeRouteLeave,onAfterRouteEnter:f.onAfterRouteEnter,onAfterRouteUpdate:f.onAfterRouteUpdate,onAfterRouteLeave:f.onAfterRouteLeave,onError:f.onError,prefetch:t?.prefetch,start:ee,started:Re,stop:z,key:o,hasDevtools:!1};return Te}const J=Ar(Hr),Fc=J.onBeforeRouteLeave,zc=J.onBeforeRouteUpdate,Wc=J.onAfterRouteLeave,Jc=J.onAfterRouteUpdate,Kc=J.isRoute,Yc=J.RouterView,Qc=J.RouterLink,Xc=J.useRoute,eu=J.useRouter,tu=J.useQueryValue,nu=J.useLink,ru=J.useRejection;I.DuplicateParamsError=Dn,I.IS_URL_SYMBOL=Zt,I.MetaPropertyConflict=Ln,I.RouterLink=Qc,I.RouterNotInstalledError=de,I.RouterView=Yc,I.UseRouteInvalidError=Bn,I.arrayOf=Fs,I.asUrlString=Mn,I.combineHooks=xn,I.combineRoutes=jt,I.createExternalRoute=ws,I.createParam=Hn,I.createRejection=Os,I.createRoute=Ee,I.createRouter=qc,I.createRouterAssets=Ar,I.createRouterPlugin=Gs,I.createUrl=Ie,I.getHooks=fe,I.isRoute=Kc,I.isUrlString=W,I.isUrlWithSchema=le,I.isWithComponent=Mt,I.isWithComponentProps=Bt,I.isWithComponentPropsRecord=Ht,I.isWithComponents=$t,I.isWithHooks=Vn,I.isWithParent=xt,I.literal=Xt,I.onAfterRouteLeave=Wc,I.onAfterRouteUpdate=Jc,I.onBeforeRouteLeave=Fc,I.onBeforeRouteUpdate=zc,I.tupleOf=Ws,I.unionOf=br,I.useLink=nu,I.useQueryValue=tu,I.useRejection=ru,I.useRoute=Xc,I.useRouter=eu,I.withDefault=Zo,I.withParams=pt,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
4
+ `)}return R}function E(u,c,d){return[u,c,d.id,JSON.stringify(d.params)].join("-")}function g(u){return Zt(u)?[{id:u.id,name:"default",props:u.props}]:$t(u)?Object.entries(u.props).map(([c,d])=>({id:u.id,name:c,props:d})):[]}function p(u){for(const c of n.keys())u.includes(c)||n.delete(c)}return{getPrefetchProps:r,setPrefetchProps:o,getProps:i,setProps:s,setVueApp:e}}function Je(){return typeof window<"u"&&typeof window.document<"u"}function fi({mode:e,listener:t}){const n=li(e),r=(f,E)=>{if(E?.replace){n.replace(f,E.state);return}n.push(f,E?.state)},o=()=>{const f=_e(n.location);n.replace(f)};let s;return{...n,update:r,refresh:o,startListening:()=>{s?.(),s=n.listen(t)},stopListening:()=>{s?.()}}}function li(e="auto"){switch(e){case"auto":return Je()?xr():Mr();case"browser":return xr();case"memory":return Mr();case"hash":return ii();default:const t=e;throw new Error(`Switch is not exhaustive for mode: ${t}`)}}class di extends Error{constructor(){super("initialUrl must be set if window.location is unavailable")}}function pi(e){if(e)return e;if(Je())return window.location.toString();throw new di}function jr(e){return!!e&&typeof e=="object"}const Pt={isOptional:!0,isGreedy:!1};function hi(e,t,n){if(jr(e)&&t in e){const r=e[t];return typeof r=="string"?he(r,{param:n,...Pt}):r}return he(void 0,{param:n,...Pt})}function Ei(e,t){const n={};for(const[r,o]of Object.entries(e)){const s=hi(t,r,o);n[r]=s}return n}function gi(e,t,n){if(jr(e)&&t in e){const r=e[t];return ae(r,{param:n,...Pt})}return ae(void 0,{param:n,...Pt})}const Hr=(e,t)=>{const n={};for(const[r,o]of Object.entries(e)){const s=gi(t,r,o);n[r]=s}return n};function _i(){const e=S.reactive(new Map),t=Je()?i():null,n=a=>{e.set(a,!1),t?.observe(a)},r=a=>{e.delete(a),t?.unobserve(a)},o=()=>{t?.disconnect()},s=a=>e.get(a)??!1;function i(){return new IntersectionObserver(a=>{a.forEach(f=>{e.set(f.target,f.isIntersecting)})})}return{observe:n,unobserve:r,disconnect:o,isElementVisible:s}}class mi extends Error{constructor(t){super(`Route not found: "${t}"`)}}function Zr(e,t={},n={}){const r=e.stringify(t),o=Ze(r,{query:new URLSearchParams(n.query),hash:n.hash}),{query:s,hash:i}=X(o),{promise:a,resolve:f}=Promise.withResolvers(),E={...e,query:hr(s),state:Ei(e.state,n.state),hash:i,params:t,href:o,title:a};return yi(E).then(f),E}async function yi(e){if(te(e))return e.getTitle(e)}class Ri extends Error{constructor(t){super(`Invalid Name "${t}": Router does not support multiple routes with the same name. All name names must be unique.`)}}function Gr(e){return"name"in e&&ne(e.name)}function Si(e,t){return ne(t)?{...e,...cn(Ne({path:t}),e)}:e}function Ti(e,t=[],n={}){const r=new Map,o=new Map,s=[...e,...t.map(c=>c.routes)],i=[...$o.map(c=>Er({type:c})),...n.rejections??[],...t.map(c=>c.rejections)];function a(c){if(!te(c)||!Gr(c))return;const d=r.get(c.name);if(d&&d.id!==c.id)throw new Ri(c.name);if(!(d&&d.id===c.id)){r.set(c.name,Si(c,n.base));for(const m of c.context)te(m)&&a(m),Bt(m)&&f(m)}}function f(c){Bt(c)&&o.set(c.type,c)}function E(c){for(const d of c)a(d)}function g(c){for(const d of c)f(d)}for(const c of s){if(Oi(c)){E(c);continue}a(c)}for(const c of i){if(wi(c)){g(c);continue}f(c)}function p(c){return r.get(c)}function u(c){return o.get(c)}return{routes:Array.from(r.values()).sort(Pi),rejections:Array.from(o.values()),getRouteByName:p,getRejectionByType:u}}function Oi(e){return Array.isArray(e)}function wi(e){return Array.isArray(e)}function Pi(e,t){return t.depth-e.depth}function Ii(e=[]){const t=new ie;return e.forEach(n=>{Xs(n)&&(n.hooks.onBeforeRouteEnter.forEach(r=>t.onBeforeRouteEnter.add(r)),n.hooks.onBeforeRouteUpdate.forEach(r=>t.onBeforeRouteUpdate.add(r)),n.hooks.onBeforeRouteLeave.forEach(r=>t.onBeforeRouteLeave.add(r)),n.hooks.onAfterRouteEnter.forEach(r=>t.onAfterRouteEnter.add(r)),n.hooks.onAfterRouteUpdate.forEach(r=>t.onAfterRouteUpdate.add(r)),n.hooks.onAfterRouteLeave.forEach(r=>t.onAfterRouteLeave.add(r)))}),t}function Ni(e,{match:t,name:n,component:r}){const o=Pr(e),s=Rt(e);return S.defineComponent({name:"PropsWrapper",expose:[],setup(){const i=S.getCurrentInstance(),a=o(),f=s();return()=>{const E=a.getProps(t.id,n,f);return E instanceof Error?"":Qt(E)?i?.suspense?S.h(bi,{component:r,props:E}):S.h(Ai,{component:r,props:E}):S.h(r,E)}}})}const Ai=S.defineComponent(e=>{const t=S.ref();return S.watch(()=>e.props,async n=>{t.value=await n},{immediate:!0,deep:!0}),()=>t.value instanceof Error?"":t.value?S.h(e.component,t.value):""},{props:["component","props"]}),bi=S.defineComponent(async e=>{const t=S.ref();return t.value=await e.props,S.watch(()=>t.value,async n=>{t.value=await n},{deep:!0}),()=>t.value instanceof Error?"":t.value?S.h(e.component,t.value):""},{props:["component","props"]});function ki(e){const t=new Map;return{getRouteComponents:r=>{const o=t.get(r.id);if(o)return o;const s=Ci(e,r);return t.set(r.id,s),s}}}function Ci(e,t){const n=fn(e);return Gt(t)?$r(e,t,t.components):Ht(t)?$r(e,t,{default:t.component}):{default:n}}function $r(e,t,n){return Object.fromEntries(Object.entries(n).map(([r,o])=>[r,Ni(e,{match:t,name:r,component:o})]))}const qr=Symbol();var Ui=Object.create,Fr=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,zr=Object.getOwnPropertyNames,Li=Object.getPrototypeOf,Di=Object.prototype.hasOwnProperty,Vi=(e,t)=>function(){return t||(0,e[zr(e)[0]])((t={exports:{}}).exports,t),t.exports},xi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=zr(t),s=0,i=o.length,a;s<i;s++)a=o[s],!Di.call(e,a)&&a!==n&&Fr(e,a,{get:(f=>t[f]).bind(null,a),enumerable:!(r=vi(t,a))||r.enumerable});return e},Mi=(e,t,n)=>(n=e!=null?Ui(Li(e)):{},xi(Fr(n,"default",{value:e,enumerable:!0}),e));const Wr=typeof navigator<"u",w=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof w.chrome<"u"&&w.chrome.devtools,Wr&&(w.self,w.top),typeof navigator<"u"&&navigator.userAgent?.toLowerCase().includes("electron");var Bi=Vi({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js":((e,t)=>{t.exports=r;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function r(s){if(s=s||{},s.circles)return o(s);const i=new Map;if(i.set(Date,p=>new Date(p)),i.set(Map,(p,u)=>new Map(f(Array.from(p),u))),i.set(Set,(p,u)=>new Set(f(Array.from(p),u))),s.constructorHandlers)for(const p of s.constructorHandlers)i.set(p[0],p[1]);let a=null;return s.proto?g:E;function f(p,u){const c=Object.keys(p),d=new Array(c.length);for(let m=0;m<c.length;m++){const R=c[m],h=p[R];typeof h!="object"||h===null?d[R]=h:h.constructor!==Object&&(a=i.get(h.constructor))?d[R]=a(h,u):ArrayBuffer.isView(h)?d[R]=n(h):d[R]=u(h)}return d}function E(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return f(p,E);if(p.constructor!==Object&&(a=i.get(p.constructor)))return a(p,E);const u={};for(const c in p){if(Object.hasOwnProperty.call(p,c)===!1)continue;const d=p[c];typeof d!="object"||d===null?u[c]=d:d.constructor!==Object&&(a=i.get(d.constructor))?u[c]=a(d,E):ArrayBuffer.isView(d)?u[c]=n(d):u[c]=E(d)}return u}function g(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return f(p,g);if(p.constructor!==Object&&(a=i.get(p.constructor)))return a(p,g);const u={};for(const c in p){const d=p[c];typeof d!="object"||d===null?u[c]=d:d.constructor!==Object&&(a=i.get(d.constructor))?u[c]=a(d,g):ArrayBuffer.isView(d)?u[c]=n(d):u[c]=g(d)}return u}}function o(s){const i=[],a=[],f=new Map;if(f.set(Date,c=>new Date(c)),f.set(Map,(c,d)=>new Map(g(Array.from(c),d))),f.set(Set,(c,d)=>new Set(g(Array.from(c),d))),s.constructorHandlers)for(const c of s.constructorHandlers)f.set(c[0],c[1]);let E=null;return s.proto?u:p;function g(c,d){const m=Object.keys(c),R=new Array(m.length);for(let h=0;h<m.length;h++){const T=m[h],y=c[T];if(typeof y!="object"||y===null)R[T]=y;else if(y.constructor!==Object&&(E=f.get(y.constructor)))R[T]=E(y,d);else if(ArrayBuffer.isView(y))R[T]=n(y);else{const l=i.indexOf(y);l!==-1?R[T]=a[l]:R[T]=d(y)}}return R}function p(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return g(c,p);if(c.constructor!==Object&&(E=f.get(c.constructor)))return E(c,p);const d={};i.push(c),a.push(d);for(const m in c){if(Object.hasOwnProperty.call(c,m)===!1)continue;const R=c[m];if(typeof R!="object"||R===null)d[m]=R;else if(R.constructor!==Object&&(E=f.get(R.constructor)))d[m]=E(R,p);else if(ArrayBuffer.isView(R))d[m]=n(R);else{const h=i.indexOf(R);h!==-1?d[m]=a[h]:d[m]=p(R)}}return i.pop(),a.pop(),d}function u(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return g(c,u);if(c.constructor!==Object&&(E=f.get(c.constructor)))return E(c,u);const d={};i.push(c),a.push(d);for(const m in c){const R=c[m];if(typeof R!="object"||R===null)d[m]=R;else if(R.constructor!==Object&&(E=f.get(R.constructor)))d[m]=E(R,u);else if(ArrayBuffer.isView(R))d[m]=n(R);else{const h=i.indexOf(R);h!==-1?d[m]=a[h]:d[m]=u(R)}}return i.pop(),a.pop(),d}}})}),ji=Mi(Bi());const Hi=/(?:^|[-_/])(\w)/g;function Zi(e,t){return t?t.toUpperCase():""}function Gi(e){return e&&`${e}`.replace(Hi,Zi)}function $i(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const s=o.lastIndexOf(t);return o.substring(0,s)}}const Kr=(0,ji.default)({circles:!0}),qi={trailing:!0};function ke(e,t=25,n={}){if(n={...qi,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],i,a;const f=(p,u)=>(i=Fi(e,p,u),i.finally(()=>{if(i=null,n.trailing&&a&&!o){const c=f(p,a);return a=null,c}}),i),E=function(...p){return n.trailing&&(a=p),i||new Promise(u=>{const c=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const d=n.leading?r:f(this,p);a=null;for(const m of s)m(d);s=[]},t),c?(r=f(this,p),u(r)):s.push(u)})},g=p=>{p&&(clearTimeout(p),o=null)};return E.isPending=()=>!!o,E.cancel=()=>{g(o),s=[],a=null},E.flush=()=>{if(g(o),!a||i)return;const p=a;return a=null,f(this,p)},E}async function Fi(e,t,n){return await e.apply(t,n)}function dn(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?dn(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const zi={run:e=>e()},Wi=()=>zi,Jr=typeof console.createTask<"u"?console.createTask:Wi;function Ki(e,t){const n=t.shift(),r=Jr(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Ji(e,t){const n=t.shift(),r=Jr(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function pn(e,t){for(const n of[...e])n(t)}class Yi{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=dn(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=dn(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Ki,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Ji,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&pn(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&pn(this._after,o)}):(this._after&&o&&pn(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Yr(){return new Yi}var Qi=Object.create,Qr=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Xr=Object.getOwnPropertyNames,ea=Object.getPrototypeOf,ta=Object.prototype.hasOwnProperty,eo=(e,t)=>function(){return t||(0,e[Xr(e)[0]])((t={exports:{}}).exports,t),t.exports},na=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Xr(t),s=0,i=o.length,a;s<i;s++)a=o[s],!ta.call(e,a)&&a!==n&&Qr(e,a,{get:(f=>t[f]).bind(null,a),enumerable:!(r=Xi(t,a))||r.enumerable});return e},ra=(e,t,n)=>(n=e!=null?Qi(ea(e)):{},na(Qr(n,"default",{value:e,enumerable:!0}),e));function oa(e){const t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t==="index"&&e.__file?.endsWith("index.vue")?"":t}function sa(e){const t=e.__file;if(t)return Gi($i(t,".vue"))}function to(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function hn(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function no(e){const t=e.subTree?.type,n=hn(e);return n?n?.types?.Fragment===t:!1}function It(e){const t=oa(e?.type||{});if(t)return t;if(e?.root===e)return"Root";for(const r in e.parent?.type?.components)if(e.parent.type.components[r]===e?.type)return to(e,r);for(const r in e.appContext?.components)if(e.appContext.components[r]===e?.type)return to(e,r);const n=sa(e?.type||{});return n||"Anonymous Component"}function ia(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?"root":e.uid}`}function En(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function aa(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}let Nt;function ca(e){return Nt||(Nt=document.createRange()),Nt.selectNode(e),Nt.getBoundingClientRect()}function ua(e){const t=aa();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let s;if(o.component)s=me(o.component);else if(o.el){const i=o.el;i.nodeType===1||i.getBoundingClientRect?s=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(s=ca(i))}s&&fa(t,s)}return t}function fa(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}const ro={top:0,left:0,right:0,bottom:0,width:0,height:0};function me(e){const t=e.subTree.el;return typeof window>"u"?ro:no(e)?ua(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?me(e.subTree.component):ro}function gn(e){return no(e)?la(e.subTree):e.subTree?[e.subTree.el]:[]}function la(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...gn(n.component)):n?.el&&t.push(n.el)}),t}const oo="__vue-devtools-component-inspector__",so="__vue-devtools-component-inspector__card__",io="__vue-devtools-component-inspector__name__",ao="__vue-devtools-component-inspector__indicator__",co={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},da={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},pa={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Ce(){return document.getElementById(oo)}function ha(){return document.getElementById(so)}function Ea(){return document.getElementById(ao)}function ga(){return document.getElementById(io)}function _n(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function mn(e){const t=document.createElement("div");t.id=e.elementId??oo,Object.assign(t.style,{...co,..._n(e.bounds),...e.style});const n=document.createElement("span");n.id=so,Object.assign(n.style,{...da,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=io,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const o=document.createElement("i");return o.id=ao,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(o.style,pa),n.appendChild(r),n.appendChild(o),t.appendChild(n),document.body.appendChild(t),t}function yn(e){const t=Ce(),n=ha(),r=ga(),o=Ea();t&&(Object.assign(t.style,{...co,..._n(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function _a(e){const t=me(e);if(!t.width&&!t.height)return;const n=It(e);Ce()?yn({bounds:t,name:n}):mn({bounds:t,name:n})}function uo(){const e=Ce();e&&(e.style.display="none")}let Rn=null;function Sn(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(Rn=n,n.vnode.el)){const r=me(n),o=It(n);Ce()?yn({bounds:r,name:o}):mn({bounds:r,name:o})}}}function ma(e,t){e.preventDefault(),e.stopPropagation(),Rn&&t(ia(Rn))}let At=null;function ya(){uo(),window.removeEventListener("mouseover",Sn),window.removeEventListener("click",At,!0),At=null}function Ra(){return window.addEventListener("mouseover",Sn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),ma(n,r=>{window.removeEventListener("click",t,!0),At=null,window.removeEventListener("mouseover",Sn);const o=Ce();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}At=t,window.addEventListener("click",t,!0)})}function Sa(e){const t=En(G.value,e.id);if(t){const[n]=gn(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=me(t),o=document.createElement("div"),s={..._n(r),position:"absolute"};Object.assign(o.style,s),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=me(t);if(r.width||r.height){const o=It(t),s=Ce();s?yn({...e,name:o,bounds:r}):mn({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}w.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function Ta(e){let t=0;const n=setInterval(()=>{w.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Oa(){const e=w.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function wa(){return new Promise(e=>{function t(){Oa(),e(w.__VUE_INSPECTOR__)}w.__VUE_INSPECTOR__?t():Ta(()=>{t()})})}let bt=(function(e){return e.SKIP="__v_skip",e.IS_REACTIVE="__v_isReactive",e.IS_READONLY="__v_isReadonly",e.IS_SHALLOW="__v_isShallow",e.RAW="__v_raw",e})({});function Pa(e){return!!(e&&e[bt.IS_READONLY])}function fo(e){return Pa(e)?fo(e[bt.RAW]):!!(e&&e[bt.IS_REACTIVE])}function Tn(e){return!!(e&&e.__v_isRef===!0)}function Ye(e){const t=e&&e[bt.RAW];return t?Ye(t):e}var Ia=class{constructor(){this.refEditor=new Na}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const a=o.shift();e instanceof Map?e=e.get(a):e instanceof Set?e=Array.from(e.values())[a]:e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const s=o[0],i=this.refEditor.get(e)[s];r?r(e,s,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const s=r.shift();e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Ye(t)instanceof Map?t.delete(n):Ye(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):Ye(t)instanceof Map?t.set(e.newKey||n,r):Ye(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Na=class{set(e,t){if(Tn(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(s=>{e.set(s,Reflect.get(t,s)),o.delete(s)}),o.forEach(s=>e.delete(s));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return Tn(e)?e.value:e}isRef(e){return Tn(e)||fo(e)}};const Aa="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function ba(){if(typeof window>"u"||!Wr||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=typeof localStorage.getItem<"u"?localStorage.getItem(Aa):null;return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}w.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];const ka=new Proxy(w.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Ca(e,t){x.timelineLayersState[t.id]=!1,ka.push({...e,descriptorId:t.id,appRecord:hn(t.app)})}w.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];const On=new Proxy(w.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),lo=ke(()=>{ve.hooks.callHook(ye.SEND_INSPECTOR_TO_CLIENT,po())});function Ua(e,t){On.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??"Search tree...",stateFilterPlaceholder:e.stateFilterPlaceholder??"Search state...",treeFilter:"",selectedNodeId:"",appRecord:hn(t.app)}),lo()}function po(){return On.filter(e=>e.descriptor.app===G.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{const t=e.descriptor,n=e.options;return{id:n.id,label:n.label,logo:t.logo,icon:`custom-ic-baseline-${n?.icon?.replace(/_/g,"-")}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function kt(e,t){return On.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}let H=(function(e){return e.VISIT_COMPONENT_TREE="visitComponentTree",e.INSPECT_COMPONENT="inspectComponent",e.EDIT_COMPONENT_STATE="editComponentState",e.GET_INSPECTOR_TREE="getInspectorTree",e.GET_INSPECTOR_STATE="getInspectorState",e.EDIT_INSPECTOR_STATE="editInspectorState",e.INSPECT_TIMELINE_EVENT="inspectTimelineEvent",e.TIMELINE_CLEARED="timelineCleared",e.SET_PLUGIN_SETTINGS="setPluginSettings",e})({}),L=(function(e){return e.ADD_INSPECTOR="addInspector",e.SEND_INSPECTOR_TREE="sendInspectorTree",e.SEND_INSPECTOR_STATE="sendInspectorState",e.CUSTOM_INSPECTOR_SELECT_NODE="customInspectorSelectNode",e.TIMELINE_LAYER_ADDED="timelineLayerAdded",e.TIMELINE_EVENT_ADDED="timelineEventAdded",e.GET_COMPONENT_INSTANCES="getComponentInstances",e.GET_COMPONENT_BOUNDS="getComponentBounds",e.GET_COMPONENT_NAME="getComponentName",e.COMPONENT_HIGHLIGHT="componentHighlight",e.COMPONENT_UNHIGHLIGHT="componentUnhighlight",e})({}),ye=(function(e){return e.SEND_INSPECTOR_TREE_TO_CLIENT="sendInspectorTreeToClient",e.SEND_INSPECTOR_STATE_TO_CLIENT="sendInspectorStateToClient",e.SEND_TIMELINE_EVENT_TO_CLIENT="sendTimelineEventToClient",e.SEND_INSPECTOR_TO_CLIENT="sendInspectorToClient",e.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT="sendActiveAppUpdatedToClient",e.DEVTOOLS_STATE_UPDATED="devtoolsStateUpdated",e.DEVTOOLS_CONNECTED_UPDATED="devtoolsConnectedUpdated",e.ROUTER_INFO_UPDATED="routerInfoUpdated",e})({});function va(){const e=Yr();e.hook(L.ADD_INSPECTOR,({inspector:r,plugin:o})=>{Ua(r,o.descriptor)});const t=ke(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||x.highPerfModeEnabled)return;const s=kt(r,o.descriptor.app),i={app:o.descriptor.app,inspectorId:r,filter:s?.treeFilter||"",rootNodes:[]};await new Promise(a=>{e.callHookWith(async f=>{await Promise.all(f.map(E=>E(i))),a()},H.GET_INSPECTOR_TREE)}),e.callHookWith(async a=>{await Promise.all(a.map(f=>f({inspectorId:r,rootNodes:i.rootNodes})))},ye.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(L.SEND_INSPECTOR_TREE,t);const n=ke(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||x.highPerfModeEnabled)return;const s=kt(r,o.descriptor.app),i={app:o.descriptor.app,inspectorId:r,nodeId:s?.selectedNodeId||"",state:null},a={currentTab:`custom-inspector:${r}`};i.nodeId&&await new Promise(f=>{e.callHookWith(async E=>{await Promise.all(E.map(g=>g(i,a))),f()},H.GET_INSPECTOR_STATE)}),e.callHookWith(async f=>{await Promise.all(f.map(E=>E({inspectorId:r,nodeId:i.nodeId,state:i.state})))},ye.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(L.SEND_INSPECTOR_STATE,n),e.hook(L.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:r,nodeId:o,plugin:s})=>{const i=kt(r,s.descriptor.app);i&&(i.selectedNodeId=o)}),e.hook(L.TIMELINE_LAYER_ADDED,({options:r,plugin:o})=>{Ca(r,o.descriptor)}),e.hook(L.TIMELINE_EVENT_ADDED,({options:r,plugin:o})=>{x.highPerfModeEnabled||!x.timelineLayersState?.[o.descriptor.id]&&!["performance","component-event","keyboard","mouse"].includes(r.layerId)||e.callHookWith(async s=>{await Promise.all(s.map(i=>i(r)))},ye.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(L.GET_COMPONENT_INSTANCES,async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const s=o.id.toString();return[...o.instanceMap].filter(([i])=>i.split(":")[0]===s).map(([,i])=>i)}),e.hook(L.GET_COMPONENT_BOUNDS,async({instance:r})=>me(r)),e.hook(L.GET_COMPONENT_NAME,({instance:r})=>It(r)),e.hook(L.COMPONENT_HIGHLIGHT,({uid:r})=>{const o=G.value.instanceMap.get(r);o&&_a(o)}),e.hook(L.COMPONENT_UNHIGHLIGHT,()=>{uo()}),e}w.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],w.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},w.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??="",w.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],w.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];const Ue="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function La(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:ba()}}w[Ue]??=La();const Da=ke(e=>{ve.hooks.callHook(ye.DEVTOOLS_STATE_UPDATED,{state:e})});ke((e,t)=>{ve.hooks.callHook(ye.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});const Ct=new Proxy(w.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?w.__VUE_DEVTOOLS_KIT_APP_RECORDS__:w.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),G=new Proxy(w.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?w.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?w.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:w.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function ho(){Da({...w[Ue],appRecords:Ct.value,activeAppRecordId:G.id,tabs:w.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:w.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Va(e){w.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,ho()}function xa(e){w.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,ho()}const x=new Proxy(w[Ue],{get(e,t){return t==="appRecords"?Ct:t==="activeAppRecordId"?G.id:t==="tabs"?w.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?w.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:w[Ue][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...w[Ue]},e[t]=n,w[Ue][t]=n,!0}});function Ma(e={}){const{file:t,host:n,baseUrl:r=window.location.origin,line:o=0,column:s=0}=e;if(t){if(n==="chrome-extension"){const i=t.replace(/\\/g,"\\\\"),a=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??"/";fetch(`${a}__open-in-editor?file=${encodeURI(t)}`).then(f=>{if(!f.ok){const E=`Opening component ${i} failed`;console.log(`%c${E}`,"color:red")}})}else if(x.vitePluginDetected){const i=w.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;w.__VUE_INSPECTOR__.openInEditor(i,t,o,s)}}}w.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];const wn=new Proxy(w.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Pn(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function In(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Ba(e){return(wn.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function Eo(e,t){const n=In(e);if(n){const r=localStorage.getItem(n);if(r)return JSON.parse(r)}return Pn(e?(wn.find(r=>r[0].id===e)?.[0]??null)?.settings??{}:t)}function ja(e,t){const n=In(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Pn(t)))}function Ha(e,t,n){const r=In(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),i={...s,[t]:n};localStorage.setItem(r,JSON.stringify(i)),ve.hooks.callHookWith(a=>{a.forEach(f=>f({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:i}))},H.SET_PLUGIN_SETTINGS)}let q=(function(e){return e.APP_INIT="app:init",e.APP_UNMOUNT="app:unmount",e.COMPONENT_UPDATED="component:updated",e.COMPONENT_ADDED="component:added",e.COMPONENT_REMOVED="component:removed",e.COMPONENT_EMIT="component:emit",e.PERFORMANCE_START="perf:start",e.PERFORMANCE_END="perf:end",e.ADD_ROUTE="router:add-route",e.REMOVE_ROUTE="router:remove-route",e.RENDER_TRACKED="render:tracked",e.RENDER_TRIGGERED="render:triggered",e.APP_CONNECTED="app:connected",e.SETUP_DEVTOOLS_PLUGIN="devtools-plugin:setup",e})({});const F=w.__VUE_DEVTOOLS_HOOK??=Yr(),go={on:{vueAppInit(e){F.hook(q.APP_INIT,e)},vueAppUnmount(e){F.hook(q.APP_UNMOUNT,e)},vueAppConnected(e){F.hook(q.APP_CONNECTED,e)},componentAdded(e){return F.hook(q.COMPONENT_ADDED,e)},componentEmit(e){return F.hook(q.COMPONENT_EMIT,e)},componentUpdated(e){return F.hook(q.COMPONENT_UPDATED,e)},componentRemoved(e){return F.hook(q.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){F.hook(q.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return F.hook(q.PERFORMANCE_START,e)},perfEnd(e){return F.hook(q.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return F.callHook(q.SETUP_DEVTOOLS_PLUGIN,e,t)}};var Za=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(H.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook(H.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook(H.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook(H.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook(H.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook(H.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook(H.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook(H.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook(H.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(x.highPerfModeEnabled)return;const t=po().find(n=>n.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){const n=[e.appContext.app,e.uid,e.parent?.uid,e];F.callHook(q.COMPONENT_UPDATED,...n)}else F.callHook(q.COMPONENT_UPDATED);this.hooks.callHook(L.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(L.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&ja(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){x.highPerfModeEnabled||this.hooks.callHook(L.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){x.highPerfModeEnabled||this.hooks.callHook(L.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(L.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(H.VISIT_COMPONENT_TREE,e)}now(){return x.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(L.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){x.highPerfModeEnabled||this.hooks.callHook(L.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return Eo(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(L.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(L.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(L.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(L.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(L.COMPONENT_UNHIGHLIGHT)}};const Ga=Za,$a="__vue_devtool_undefined__",qa="__vue_devtool_infinity__",Fa="__vue_devtool_negative_infinity__",za="__vue_devtool_nan__",Wa={[$a]:"undefined",[za]:"NaN",[qa]:"Infinity",[Fa]:"-Infinity"};Object.entries(Wa).reduce((e,[t,n])=>(e[n]=t,e),{}),w.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function Ka(e,t){return go.setupDevToolsPlugin(e,t)}function Ja(e,t){const[n,r]=e;if(n.app!==t)return;const o=new Ga({plugin:{setupFn:r,descriptor:n},ctx:ve});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function _o(e,t){w.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||x.highPerfModeEnabled&&!t?.inspectingComponent||(w.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),wn.forEach(n=>{Ja(n,e)}))}const Ut="__VUE_DEVTOOLS_ROUTER__",Qe="__VUE_DEVTOOLS_ROUTER_INFO__";w[Qe]??={currentRoute:null,routes:[]},w[Ut]??={},new Proxy(w[Qe],{get(e,t){return w[Qe][t]}}),new Proxy(w[Ut],{get(e,t){if(t==="value")return w[Ut]}});function Ya(e){const t=new Map;return(e?.getRoutes()||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Nn(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o?.length&&(o=Nn(o)),{path:n,name:r,children:o,meta:s}})}function Qa(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:i,params:a,query:f}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:a,query:f,matched:Nn(i)}}return e}function Xa(e,t){function n(){const r=e.app?.config.globalProperties.$router,o=Qa(r?.currentRoute.value),s=Nn(Ya(r)),i=console.warn;console.warn=()=>{},w[Qe]={currentRoute:o?Kr(o):{},routes:Kr(s)},w[Ut]=r,console.warn=i}n(),go.on.componentUpdated(ke(()=>{t.value?.app===e.app&&(n(),!x.highPerfModeEnabled&&ve.hooks.callHook(ye.ROUTER_INFO_UPDATED,{state:w[Qe]}))},200))}function ec(e){return{async getInspectorTree(t){const n={...t,app:G.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},H.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){const n={...t,app:G.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async s=>{await Promise.all(s.map(i=>i(n,r))),o()},H.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){const n=new Ia,r={...t,app:G.value.app,set:(o,s=t.path,i=t.state.value,a)=>{n.set(o,s,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(s=>s(r))},H.EDIT_INSPECTOR_STATE)},sendInspectorState(t){const n=kt(t);e.callHook(L.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Ra()},cancelInspectComponentInspector(){return ya()},getComponentRenderCode(t){const n=En(G.value,t);if(n)return typeof n?.type!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return Sa({id:t})},openInEditor:Ma,getVueInspector:wa,toggleApp(t,n){const r=Ct.value.find(o=>o.id===t);r&&(xa(t),Va(r),Xa(r,G),lo(),_o(r.app,n))},inspectDOM(t){const n=En(G.value,t);if(n){const[r]=gn(n);r&&(w.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){Ha(t,n,r)},getPluginSettings(t){return{options:Ba(t),values:Eo(t)}}}}w.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};const mo=va();w.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:mo,get state(){return{...x,activeAppRecordId:G.id,activeAppRecord:G.value,appRecords:Ct.value}},api:ec(mo)};const ve=w.__VUE_DEVTOOLS_KIT_CONTEXT__;var tc=eo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js":((e,t)=>{(function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},f=[";","?",":","@","&","=","+","$",",","/"].join(""),E=[";","?",":","@","&","=","+","$",","].join(""),g=[".","!","~","*","'","(",")"].join(""),p=function(R,h){var T="-",y="",l="",_=!0,O={},A,k,j,Z,Y,Ve,ue,ee,xe,z,b,Re,W,de,oe="";if(typeof R!="string")return"";if(typeof h=="string"&&(T=h),ue=a.en,ee=i.en,typeof h=="object"){A=h.maintainCase||!1,O=h.custom&&typeof h.custom=="object"?h.custom:O,j=+h.truncate>1&&h.truncate||!1,Z=h.uric||!1,Y=h.uricNoSlash||!1,Ve=h.mark||!1,_=!(h.symbols===!1||h.lang===!1),T=h.separator||T,Z&&(oe+=f),Y&&(oe+=E),Ve&&(oe+=g),ue=h.lang&&a[h.lang]&&_?a[h.lang]:_?a.en:{},ee=h.lang&&i[h.lang]?i[h.lang]:h.lang===!1||h.lang===!0?{}:i.en,h.titleCase&&typeof h.titleCase.length=="number"&&Array.prototype.toString.call(h.titleCase)?(h.titleCase.forEach(function($){O[$+""]=$+""}),k=!0):k=!!h.titleCase,h.custom&&typeof h.custom.length=="number"&&Array.prototype.toString.call(h.custom)&&h.custom.forEach(function($){O[$+""]=$+""}),Object.keys(O).forEach(function($){var Se;$.length>1?Se=new RegExp("\\b"+c($)+"\\b","gi"):Se=new RegExp(c($),"gi"),R=R.replace(Se,O[$])});for(b in O)oe+=b}for(oe+=T,oe=c(oe),R=R.replace(/(^\s+|\s+$)/g,""),W=!1,de=!1,z=0,Re=R.length;z<Re;z++)b=R[z],d(b,O)?W=!1:ee[b]?(b=W&&ee[b].match(/[A-Za-z0-9]/)?" "+ee[b]:ee[b],W=!1):b in r?(z+1<Re&&o.indexOf(R[z+1])>=0?(l+=b,b=""):de===!0?(b=s[l]+r[b],l=""):b=W&&r[b].match(/[A-Za-z0-9]/)?" "+r[b]:r[b],W=!1,de=!1):b in s?(l+=b,b="",z===Re-1&&(b=s[l]),de=!0):ue[b]&&!(Z&&f.indexOf(b)!==-1)&&!(Y&&E.indexOf(b)!==-1)?(b=W||y.substr(-1).match(/[A-Za-z0-9]/)?T+ue[b]:ue[b],b+=R[z+1]!==void 0&&R[z+1].match(/[A-Za-z0-9]/)?T:"",W=!0):(de===!0?(b=s[l]+b,l="",de=!1):W&&(/[A-Za-z0-9]/.test(b)||y.substr(-1).match(/A-Za-z0-9]/))&&(b=" "+b),W=!1),y+=b.replace(new RegExp("[^\\w\\s"+oe+"_-]","g"),T);return k&&(y=y.replace(/(\w)(\S*)/g,function($,Se,Vt){var rt=Se.toUpperCase()+(Vt!==null?Vt:"");return Object.keys(O).indexOf(rt.toLowerCase())<0?rt:rt.toLowerCase()})),y=y.replace(/\s+/g,T).replace(new RegExp("\\"+T+"+","g"),T).replace(new RegExp("(^\\"+T+"+|\\"+T+"+$)","g"),""),j&&y.length>j&&(xe=y.charAt(j)===T,y=y.slice(0,j),xe||(y=y.slice(0,y.lastIndexOf(T)))),!A&&!k&&(y=y.toLowerCase()),y},u=function(R){return function(T){return p(T,R)}},c=function(R){return R.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},d=function(m,R){for(var h in R)if(R[h]===m)return!0};if(typeof t<"u"&&t.exports)t.exports=p,t.exports.createSlug=u;else if(typeof define<"u"&&define.amd)define([],function(){return p});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=p,n.createSlug=u}catch{}})(e)})}),nc=eo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js":((e,t)=>{t.exports=tc()})});nc(),w.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function rc(e){x.highPerfModeEnabled=e??!x.highPerfModeEnabled,!e&&G.value&&_o(G.value.app)}function oc(e){x.devtoolsClientDetected={...x.devtoolsClientDetected,...e},rc(!Object.values(x.devtoolsClientDetected).some(Boolean))}w.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=oc;var sc=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},yo=class{constructor(e){this.generateIdentifier=e,this.kv=new sc}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},ic=class extends yo{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function ac(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function cc(e,t){const n=ac(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const s=r[o];if(t(s))return s}}function Le(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function vt(e,t){return e.indexOf(t)!==-1}function Ro(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var uc=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return cc(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};const fc=e=>Object.prototype.toString.call(e).slice(8,-1),So=e=>typeof e>"u",lc=e=>e===null,Xe=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,An=e=>Xe(e)&&Object.keys(e).length===0,le=e=>Array.isArray(e),dc=e=>typeof e=="string",pc=e=>typeof e=="number"&&!isNaN(e),hc=e=>typeof e=="boolean",Ec=e=>e instanceof RegExp,et=e=>e instanceof Map,tt=e=>e instanceof Set,To=e=>fc(e)==="Symbol",gc=e=>e instanceof Date&&!isNaN(e.valueOf()),_c=e=>e instanceof Error,Oo=e=>typeof e=="number"&&isNaN(e),mc=e=>hc(e)||lc(e)||So(e)||pc(e)||dc(e)||To(e),yc=e=>typeof e=="bigint",Rc=e=>e===1/0||e===-1/0,Sc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Tc=e=>e instanceof URL,wo=e=>e.replace(/\./g,"\\."),bn=e=>e.map(String).map(wo).join("."),nt=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if(s==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(s==="."){t.push(n),n="";continue}n+=s}const r=n;return t.push(r),t};function re(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const Po=[re(So,"undefined",()=>null,()=>{}),re(yc,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),re(gc,"Date",e=>e.toISOString(),e=>new Date(e)),re(_c,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),re(Ec,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),re(tt,"set",e=>[...e.values()],e=>new Set(e)),re(et,"map",e=>[...e.entries()],e=>new Map(e)),re(e=>Oo(e)||Rc(e),"number",e=>Oo(e)?"NaN":e>0?"Infinity":"-Infinity",Number),re(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),re(Tc,"URL",e=>e.toString(),e=>new URL(e))];function Lt(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const Io=Lt((e,t)=>To(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Oc=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),No=Lt(Sc,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Oc[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Ao(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const bo=Lt(Ao,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),ko=Lt((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),wc=[bo,Io,ko,No],Co=(e,t)=>{const n=Ro(wc,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Ro(Po,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Uo={};Po.forEach(e=>{Uo[e.annotation]=e});const Pc=(e,t,n)=>{if(le(t))switch(t[0]){case"symbol":return Io.untransform(e,t,n);case"class":return bo.untransform(e,t,n);case"custom":return ko.untransform(e,t,n);case"typed-array":return No.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=Uo[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},De=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function vo(e){if(vt(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(vt(e,"prototype"))throw new Error("prototype is not allowed as a property");if(vt(e,"constructor"))throw new Error("constructor is not allowed as a property")}const Ic=(e,t)=>{vo(t);for(let n=0;n<t.length;n++){const r=t[n];if(tt(e))e=De(e,+r);else if(et(e)){const o=+r,s=+t[++n]==0?"key":"value",i=De(e,o);switch(s){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[r]}return e},kn=(e,t,n)=>{if(vo(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const i=t[s];if(le(r)){const a=+i;r=r[a]}else if(Xe(r))r=r[i];else if(tt(r)){const a=+i;r=De(r,a)}else if(et(r)){if(s===t.length-2)break;const a=+i,f=+t[++s]==0?"key":"value",E=De(r,a);switch(f){case"key":r=E;break;case"value":r=r.get(E);break}}}const o=t[t.length-1];if(le(r)?r[+o]=n(r[+o]):Xe(r)&&(r[o]=n(r[o])),tt(r)){const s=De(r,+o),i=n(s);s!==i&&(r.delete(s),r.add(i))}if(et(r)){const s=+t[t.length-2],i=De(r,s);switch(+o==0?"key":"value"){case"key":{const a=n(i);r.set(a,r.get(i)),a!==i&&r.delete(i);break}case"value":r.set(i,n(r.get(i)));break}}return e};function Cn(e,t,n=[]){if(!e)return;if(!le(e)){Le(e,(s,i)=>Cn(s,t,[...n,...nt(i)]));return}const[r,o]=e;o&&Le(o,(s,i)=>{Cn(s,t,[...n,...nt(i)])}),t(r,n)}function Nc(e,t,n){return Cn(t,(r,o)=>{e=kn(e,o,s=>Pc(s,r,n))}),e}function Ac(e,t){function n(r,o){const s=Ic(e,nt(o));r.map(nt).forEach(i=>{e=kn(e,i,()=>s)})}if(le(t)){const[r,o]=t;r.forEach(s=>{e=kn(e,nt(s),()=>e)}),o&&Le(o,n)}else Le(t,n);return e}const bc=(e,t)=>Xe(e)||le(e)||et(e)||tt(e)||Ao(e,t);function kc(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Cc(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,f)=>a.length-f.length));const[s,...i]=o;s.length===0?r=i.map(bn):n[bn(s)]=i.map(bn)}),r?An(n)?[r]:[r,n]:An(n)?void 0:n}const Lo=(e,t,n,r,o=[],s=[],i=new Map)=>{const a=mc(e);if(!a){kc(e,o,t);const c=i.get(e);if(c)return r?{transformedValue:null}:c}if(!bc(e,n)){const c=Co(e,n),d=c?{transformedValue:c.value,annotations:[c.type]}:{transformedValue:e};return a||i.set(e,d),d}if(vt(s,e))return{transformedValue:null};const f=Co(e,n),E=f?.value??e,g=le(E)?[]:{},p={};Le(E,(c,d)=>{if(d==="__proto__"||d==="constructor"||d==="prototype")throw new Error(`Detected property ${d}. This is a prototype pollution risk, please remove it from your object.`);const m=Lo(c,t,n,r,[...o,d],[...s,e],i);g[d]=m.transformedValue,le(m.annotations)?p[d]=m.annotations:Xe(m.annotations)&&Le(m.annotations,(R,h)=>{p[wo(d)+"."+h]=R})});const u=An(p)?{transformedValue:g,annotations:f?[f.type]:void 0}:{transformedValue:g,annotations:f?[f.type,p]:p};return a||i.set(e,u),u};function Do(e){return Object.prototype.toString.call(e).slice(8,-1)}function Vo(e){return Do(e)==="Array"}function Uc(e){if(Do(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function vc(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function Un(e,t={}){if(Vo(e))return e.map(o=>Un(o,t));if(!Uc(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(Vo(t.props)&&!t.props.includes(s))return o;const i=e[s];return vc(o,s,Un(i,t),e,t.nonenumerable),o},{})}var v=class{constructor({dedupe:e=!1}={}){this.classRegistry=new ic,this.symbolRegistry=new yo(t=>t.description??""),this.customTransformerRegistry=new uc,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Lo(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=Cc(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=Un(t);return n?.values&&(r=Nc(r,n.values,this)),n?.referentialEqualities&&(r=Ac(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};v.defaultInstance=new v,v.serialize=v.defaultInstance.serialize.bind(v.defaultInstance),v.deserialize=v.defaultInstance.deserialize.bind(v.defaultInstance),v.stringify=v.defaultInstance.stringify.bind(v.defaultInstance),v.parse=v.defaultInstance.parse.bind(v.defaultInstance),v.registerClass=v.defaultInstance.registerClass.bind(v.defaultInstance),v.registerSymbol=v.defaultInstance.registerSymbol.bind(v.defaultInstance),v.registerCustom=v.defaultInstance.registerCustom.bind(v.defaultInstance),v.allowErrorProps=v.defaultInstance.allowErrorProps.bind(v.defaultInstance),w.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],w.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,w.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,w.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,w.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,w.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;const Dt={template:"<div>This is component</div>"},vn=Ee({name:"parentA",path:"/parentA/[paramA]"}),xo=Ee({parent:vn,name:"parentA.childA",path:"/childA/[?paramB]"}),Lc=Ee({parent:vn,name:"parentA.childB",path:"/childB/[paramD]",component:Dt}),Dc=Ee({parent:xo,name:"parentA.childA.grandChildA",path:"/[paramC]",component:Dt});Ee({name:"parentB",path:"/parentB",component:Dt}),Ee({name:"parentC",path:"/",component:Dt});function Vc(e,t){return t!=="1"?`${e} ${t}`:e}const xc=({route:e})=>!!e.name,Mc=({route:e,payload:t})=>{if(!t.filter)return!0;if(!Oe(e))return!1;const n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},Bc=e=>xc(e)&&Mc(e),jc=ot(),Hc=2282478,Zc=2278750,Gc=1483594;function $c(e,t={match:!1,exactMatch:!1}){const n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:Hc}),t.match&&n.push({label:"match",textColor:0,backgroundColor:Zc}),t.exactMatch&&n.push({label:"exact-match",textColor:0,backgroundColor:Gc}),{id:e.id,label:e.name,tags:n}}function qc(e,t){if(!t||!("id"in t)||!("matches"in t))return{match:!1,exactMatch:!1};const n=t.id===e.id;return{match:t.matches.some(o=>o.id===e.id),exactMatch:n}}function Fc(e){const t=[];return Oe(e)&&(t.push({editable:!1,key:"name",value:e.name}),t.push({editable:!1,key:"path",value:e.schema.path.value}),t.push({editable:!1,key:"query",value:e.schema.query.value}),t.push({editable:!1,key:"hash",value:e.schema.hash.value}),t.push({editable:!1,key:"meta",value:e.meta})),t}function zc({router:e,app:t,routes:n}){if(!Je()||e.hasDevtools)return;e.hasDevtools=!0;const r=jc(),o=new Map(n.map(a=>[a.id,a])),s=`kitbag-router-routes.${r}`,i=`kitbag-router.${r}`;Ka({id:i,label:"Kitbag Router",packageName:"@kitbag/router",homepage:"https://router.kitbag.dev/",componentStateTypes:["Routing"],logo:"https://kitbag.dev/kitbag-logo-circle.svg",app:t},a=>{a.addInspector({id:s,label:Vc("Routes",r),treeFilterPlaceholder:"Search routes"}),a.on.getInspectorTree(f=>{f.app!==t||f.inspectorId!==s||(f.rootNodes=n.filter(E=>Bc({route:E,payload:f})).map(E=>{const g=qc(E,e.route);return $c(E,g)}))}),S.watch(()=>e.route,()=>{a.sendInspectorTree(s)},{deep:!0,immediate:!1}),a.on.getInspectorState(f=>{if(f.app!==t||f.inspectorId!==s)return;const E=o.get(f.nodeId);E&&(f.state={options:Fc(E)})}),a.sendInspectorTree(s),a.sendInspectorState(s)})}function Wc(e,t){const n=new URLSearchParams(e),r=new URLSearchParams(t);for(const[o,s]of r.entries())n.delete(o,s);return n}function Kc(e,t,n={}){const{query:r,hash:o}=X(t);for(const s of e){if(!Gr(s))continue;const{success:i,params:a}=s.tryParse(t,n);if(i){const f=s.stringify(a),{query:E}=X(f),g=Wc(r,E);return Zr(s,a,{...n,query:g,hash:o})}}}const Mo=/^(\/.+?)\/+$/;function Jc(e){const{path:t,...n}=X(e);return _t({...n,path:t.replace(Mo,"$1")})}function Yc(e){const{path:t}=X(e);return Mo.test(t)}let Bo;function Qc(e){!te(e)||!Je()||(Bo??=document.title,e.title.then(t=>{document.title=t??Bo??""}))}function Xc(){const e=r=>{n.value=r},t=()=>{n.value=null},n=S.ref(null);return{currentRejection:n,updateRejection:e,clearRejection:t}}function eu(e,t,n=[]){const o=t?.isGlobalRouter??!0?qr:Symbol(),s=t?.removeTrailingSlashes??!0,{routes:i,getRouteByName:a,getRejectionByType:f}=Ti(e,n,t),E=f("NotFound"),g=Bs();g.addGlobalRouteHooks(Ii(n));const p=ot(),u=ui(),c=ki(o),d=_i(),m=fi({mode:t?.historyMode,listener:({location:I})=>{const U=_e(I);h(U,{state:I.state,replace:!0})}});function R(I,U={}){const M=!b(I),D=i.filter(B=>B.isRelative===M);return Kc(D,I,{...U,...{removeTrailingSlashes:s}})}async function h(I,U={}){if(Yc(I)&&s){const se=Jc(I);if(K(se))return _(se,U)}const M=p();m.stopListening();const D=R(I,U)??E.route,V=Vt(M),B=await g.runBeforeRouteHooks({to:D,from:V});switch(B.status){case"ABORT":return;case"PUSH":m.update(I,U),await l(...B.to);return;case"REJECT":m.update(I,U),O(B.type,D,V);break;case"SUCCESS":m.update(I,U),Z();break;default:throw new Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(B)}`)}b(I)||T(M,D,V);const Me=await g.runAfterRouteHooks({to:D,from:V});switch(Me.status){case"PUSH":await l(...Me.to);break;case"REJECT":O(Me.type,D,V);break;case"SUCCESS":break;default:const se=Me;throw new Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(se)}`)}Qc(D),m.startListening()}function T(I,U,M){const D=I;u.setProps(U).then(V=>{if(D===I)switch(V.status){case"SUCCESS":break;case"PUSH":l(...V.to);break;case"REJECT":O(V.type,U,M);break;default:const B=V;throw new Error(`Switch is not exhaustive for prop store response status: ${JSON.stringify(B)}`)}}).catch(V=>{try{g.runErrorHooks(V,{to:U,from:M,source:"props"})}catch(B){if(B instanceof ce){l(...B.response.to);return}if(B instanceof ge){O(B.response.type,U,M);return}throw B}}),ue(U)}const y=(I,U={},M={})=>{const D=a(I);if(!D)throw new mi(I);return Zr(D,U,M)},l=(I,U,M)=>{if(K(I)){const se={...U},xt=Ze(I,{query:se.query,hash:se.hash});return h(xt,se)}if(typeof I=="string"){const{replace:se,...xt}={...M},pu={...U},Dn=y(I,pu,xt),hu=Hr({...Dn.matched.state},{...Dn.state,...xt.state});return h(Dn.href,{replace:se,state:hu})}const{replace:D,...V}={...U},B=Hr({...I.matched.state},{...I.state,...V.state}),Me=Ze(I.href,{query:V.query,hash:V.hash});return h(Me,{replace:D,state:B})},_=(I,U,M)=>{if(K(I)){const V={...U,replace:!0};return l(I,V)}if(typeof I=="string"){const V={...M,replace:!0},B={...U};return l(I,B,V)}const D={...U,replace:!0};return l(I,D)};function O(I,U=null,M=null){const D=f(I);D&&(g.runRejectionHooks(D,{to:U,from:M}),j(D))}const A=I=>{O(I)},{currentRejection:k,updateRejection:j,clearRejection:Z}=Xc(),{currentRoute:Y,routerRoute:Ve,updateRoute:ue}=ai(o,E.route,l),ee=pi(t?.initialUrl),xe=m.location.state,{host:z}=X(ee),b=ci(z);let Re=!1;const W=S.ref(!1),{promise:de,resolve:oe}=Promise.withResolvers();async function $(){if(Re)return de;Re=!0,es(i)&&await ts(),await h(ee,{replace:!0,state:xe}),m.startListening(),oe(),W.value=!0}function Se(){m.stopListening()}function Vt(I){return Fo(I)?null:{...Y}}function rt(I){g.setVueApp(I),u.setVueApp(I);const U=fn(o),M=Cr(o);I.component("RouterView",U),I.component("RouterLink",M),I.provide(Sr(o),k),I.provide(yr(o),g),I.provide(wr(o),u),I.provide(Rr(o),c),I.provide(Ar,d),I.provide(o,Ln),zc({router:Ln,app:I,routes:i}),$()}const Ln={route:Ve,resolve:y,find:R,push:l,replace:_,reject:A,refresh:m.refresh,forward:m.forward,back:m.back,go:m.go,install:rt,isExternal:b,onBeforeRouteEnter:g.onBeforeRouteEnter,onBeforeRouteUpdate:g.onBeforeRouteUpdate,onBeforeRouteLeave:g.onBeforeRouteLeave,onAfterRouteEnter:g.onAfterRouteEnter,onAfterRouteUpdate:g.onAfterRouteUpdate,onAfterRouteLeave:g.onAfterRouteLeave,onError:g.onError,onRejection:g.onRejection,prefetch:t?.prefetch,start:$,started:W,stop:Se,key:o,hasDevtools:!1};return Ln}const J=Ur(qr),tu=J.onBeforeRouteLeave,nu=J.onBeforeRouteUpdate,ru=J.onAfterRouteLeave,ou=J.onAfterRouteUpdate,su=J.isRoute,iu=J.RouterView,au=J.RouterLink,cu=J.useRoute,uu=J.useRouter,fu=J.useQueryValue,lu=J.useLink,du=J.useRejection;N.DuplicateParamsError=xn,N.MetaPropertyConflict=Vn,N.RouterLink=au,N.RouterNotInstalledError=pe,N.RouterView=iu,N.UseRouteInvalidError=Hn,N.arrayOf=ni,N.asUrlString=jn,N.combineHooks=Bn,N.combineRoutes=qt,N.createExternalRoute=Cs,N.createParam=Gn,N.createRejection=Er,N.createRoute=Ee,N.createRouter=eu,N.createRouterAssets=Ur,N.createRouterPlugin=ei,N.createUrl=Ne,N.getHooks=fe,N.isRoute=su,N.isUrlString=K,N.isWithComponent=Ht,N.isWithComponentProps=Zt,N.isWithComponentPropsRecord=$t,N.isWithComponents=Gt,N.isWithParent=jt,N.literal=tn,N.onAfterRouteLeave=ru,N.onAfterRouteUpdate=ou,N.onBeforeRouteLeave=tu,N.onBeforeRouteUpdate=nu,N.tupleOf=oi,N.unionOf=Lr,N.useLink=lu,N.useQueryValue=fu,N.useRejection=du,N.useRoute=cu,N.useRouter=uu,N.withDefault=Jo,N.withParams=ht,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));