@kitbag/router 0.28.0 → 0.29.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.
Files changed (44) hide show
  1. package/dist/kitbag-router.js +1692 -1561
  2. package/dist/kitbag-router.umd.cjs +2 -2
  3. package/dist/main.d.ts +15 -0
  4. package/dist/models/hooks.d.ts +9 -7
  5. package/dist/services/addLoader.d.ts +6 -3
  6. package/dist/services/addRedirect.d.ts +3 -0
  7. package/dist/services/addView.d.ts +7 -4
  8. package/dist/services/combineContext.d.ts +2 -0
  9. package/dist/services/createHook.d.ts +7 -0
  10. package/dist/services/createHook.spec-d.d.ts +1 -0
  11. package/dist/services/createHook.spec.d.ts +1 -0
  12. package/dist/services/createLoader.d.ts +7 -0
  13. package/dist/services/createLoader.spec-d.d.ts +1 -0
  14. package/dist/services/createLoader.spec.d.ts +1 -0
  15. package/dist/services/createRouterAssets.d.ts +15 -0
  16. package/dist/services/createRouterAssets.spec-d.d.ts +1 -0
  17. package/dist/services/createRouterHooks.d.ts +4 -2
  18. package/dist/services/createView.d.ts +10 -0
  19. package/dist/services/createView.spec-d.d.ts +1 -0
  20. package/dist/services/createView.spec.d.ts +1 -0
  21. package/dist/services/getRouteContext.d.ts +6 -0
  22. package/dist/services/getRoutesForRouter.d.ts +6 -1
  23. package/dist/services/registerHookContext.spec.d.ts +1 -0
  24. package/dist/services/toHook.d.ts +3 -0
  25. package/dist/services/urlParser.d.ts +1 -1
  26. package/dist/services/withRouteMethods.d.ts +2 -3
  27. package/dist/types/addLoader.d.ts +7 -4
  28. package/dist/types/addView.d.ts +8 -3
  29. package/dist/types/createRouteOptions.d.ts +3 -7
  30. package/dist/types/hook.d.ts +43 -0
  31. package/dist/types/hooks.d.ts +17 -11
  32. package/dist/types/loader.d.ts +59 -0
  33. package/dist/types/register.d.ts +2 -2
  34. package/dist/types/resolved.d.ts +4 -0
  35. package/dist/types/routeContext.d.ts +8 -0
  36. package/dist/types/routeWithParams.d.ts +1 -1
  37. package/dist/types/router.d.ts +5 -4
  38. package/dist/types/routerPlugin.d.ts +7 -5
  39. package/dist/types/url.d.ts +1 -0
  40. package/dist/types/view.d.ts +58 -0
  41. package/dist/utilities/testHelpers.d.ts +4 -4
  42. package/package.json +1 -1
  43. package/dist/services/createRouteRedirects.d.ts +0 -10
  44. /package/dist/services/{createRouteRedirects.spec.d.ts → addRedirect.spec.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@kitbag/router`]={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Symbol(`IS_RESOLVED_ROUTE_SYMBOL`);function r(e){return typeof e==`object`&&!!e&&n in e}function i(e){return typeof e==`string`&&/^(https?:\/\/|\/).*/g.test(e)}function a(e){return i(e)?e:`/${e}`}function o(e){return e.viewTransition!==void 0}var s=class extends Error{constructor(e){super(`Invalid Param "${e}": Router does not support multiple params by the same name. All param names must be unique.`)}},c=class extends Error{constructor(e){super(`Loader "${e}" read the data of the route it belongs to, which cannot resolve while the loader is still running. Read a parent's data with context.parent.data, or move the shared work into a function both loaders call.`)}},l=class extends Error{constructor(e){super(`Loader "${e}" conflicts with a loader of the same name on an ancestor route.`)}},u=class extends Error{constructor(e){super(`Child property on meta for ${e} conflicts with the parent meta.`)}},d=class extends Error{constructor(){super(`Discarded before it was computed because navigation moved elsewhere.`)}},f=class extends Error{constructor(e,t,n,r){super(`Unable to ${e} the payload value for ${t} "${n}"`,{cause:r})}},p=class extends Error{constructor(){super(`Router not installed`)}},m=class extends Error{constructor(e,t){super(`useRoute called with incorrect route. Given ${e}, expected ${t}`)}},h=class extends Error{constructor(){super(`Calling render requires the router to be created for server rendering: createRouter(routes, { ssr: true })`)}},g=class extends Error{constructor(e,t){super(`Invalid Path "${t}" for route "${e}": Url pathnames always start with "/", so this route can never match a url. Make sure the combined path of the route and its parents starts with "/".`)}};function _(){let e=0;return()=>(++e).toString()}var v=_();function y(e,t){return b(e,t),{...e,...t}}function b(e,t){let n=Object.keys(e).find(n=>n in t&&typeof t[n]!=typeof e[n]);if(n)throw new u(n)}function ee(e,t){return e.filter(e=>t===e).length}function x(...e){let t=e.flatMap(e=>Array.isArray(e)?e:Object.keys(e));for(let e of t)if(ee(t,e)>1)throw new s(e)}function S(e,t){return x(e,t),{...e,...t}}var C=Symbol(`IS_ROUTE_SYMBOL`);function w(e){return typeof e==`object`&&!!e&&C in e}var T={NotFound:404},E=`NotFound`,D=Symbol(`IS_REJECTION_SYMBOL`);function O(e){return typeof e==`object`&&!!e&&D in e}function k(e){return e&&(w(e)||r(e)||O(e))?e.hooks:[]}function A(e,t){return[...k(e),...k(t)]}var te=class extends Error{context;constructor(e={}){super(e.message??`Uncaught InvalidRouteParamValueError`),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...e}}};function ne(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function re(e){return typeof e==`function`&&ne(e)}function ie(e){return typeof e==`object`&&`get`in e&&typeof e.get==`function`&&`set`in e&&typeof e.set==`function`}function ae(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`}function oe(e,t){return ie(e)?{...e,defaultValue:t??e.defaultValue}:{get:t=>Ke(t,{param:e}),set:t=>I(t,{param:e}),defaultValue:t}}function se(e){return ie(e)&&e.defaultValue!==void 0}function ce(e,t){return oe(e,t)}function j(e){return!e.global&&!e.sticky?e:new RegExp(e.source,e.flags)}function le(e){return e!==void 0}function M(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ue(e){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`}function N(e){return typeof e==`string`&&e.length>0}var de=class extends Error{constructor(e){super(`Unsupported schema vendor: ${e[`~standard`].vendor}`)}};function fe(e){return typeof e==`object`&&!!e&&`then`in e}function pe(e){return e.aborted?Promise.resolve():new Promise(t=>{e.addEventListener(`abort`,()=>{t()})})}function me(e){return M(e)&&`parse`in e&&typeof e.parse==`function`&&`def`in e&&M(e.def)&&typeof e.def.type==`string`&&`~standard`in e&&M(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`zod`}function he(e){return M(e)&&`type`in e&&typeof e.type==`string`&&`~standard`in e&&M(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`valibot`}function ge(e){return typeof e==`function`&&`extends`in e&&typeof e.extends==`function`&&`branches`in e&&Array.isArray(e.branches)&&`~standard`in e&&M(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`arktype`}function _e(e){return me(e)||he(e)||ge(e)}function P(e){return{get:(t,{invalid:n})=>{try{return Ie(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Le(t,e)}catch{throw n()}}}}function F(e,t){let n=e[`~standard`].validate(t);if(fe(n))throw Error(`Promise schemas are not supported`);if(n.issues)throw Error(`Validation failed`);return n.value}function ve(e){if(me(e))return ye(e);if(he(e))return xe(e);if(ge(e))return Se(e);throw new de(e)}function ye(e){return e.def.type}var be={picklist:`enum`,variant:`union`,intersect:`intersection`};function xe(e){return be[e.type]??e.type}function Se(e){return e.extends(`Date`)?`date`:e.extends(`Map`)?`map`:e.extends(`Set`)?`set`:e.extends(`Array`)?`array`:e.extends(`string`)?`string`:e.extends(`number`)?`number`:e.extends(`bigint`)?`bigint`:e.extends(`boolean`)?`boolean`:e.branches.length>1?`union`:e.extends(`object`)?`object`:`unknown`}function Ce(e){if(me(e))return we(e);if(he(e))return Te(e);if(ge(e))return Ee(e);throw new de(e)}function we(e){return`options`in e.def?e.def.options:void 0}function Te(e){return`options`in e?e.options:void 0}function Ee(e){return e.branches.length>1?e.branches:void 0}var De=[`optional`,`nullable`,`default`,`prefault`,`nonoptional`,`catch`,`readonly`],Oe=[`optional`,`nullable`,`nullish`,`exact_optional`,`undefinedable`];function ke(e){return me(e)&&De.includes(e.def.type)&&`innerType`in e.def?ke(e.def.innerType):he(e)&&Oe.includes(e.type)&&`wrapped`in e?ke(e.wrapped):e}var Ae=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function je(e,t){if(typeof t==`string`&&Ae.test(t)){let e=new Date(t);return isNaN(e.getTime())?t:e}return t}function Me(e){return e===`true`||e!==`false`&&e}function Ne(e){for(let t of e)try{return t()}catch{continue}throw Error(`All functions failed`)}function Pe(e,t){return ve(ke(e))===`string`?1:ve(ke(t))===`string`?-1:0}function Fe(e,t,n=e=>e){return Ne([()=>F(t,n(JSON.parse(e))),()=>F(t,n(JSON.parse(e,je)))])}function Ie(e,t){let n=ke(t);if(n!==t)return e===`null`?Ne([()=>F(t,Ie(e,n)),()=>F(t,null)]):F(t,Ie(e,n));let r=ve(t);if(r===`string`)return F(t,e);if(r===`boolean`)return F(t,Me(e));if(r===`date`)return F(t,new Date(e));if(r===`number`)return F(t,Number(e));if(r===`bigint`)return F(t,BigInt(e));if(r===`nan`)return F(t,Number(e));if(r===`literal`||r===`enum`)return Ne([()=>F(t,Number(e)),()=>F(t,Me(e)),()=>F(t,e)]);if(r===`object`||r===`array`||r===`tuple`||r===`record`)return Fe(e,t);if(r===`union`){let n=Ce(t);if(n)return Ne(Array.from(n).sort(Pe).map(t=>()=>Ie(e,t)))}if(r===`map`)return Fe(e,t,e=>new Map(e));if(r===`set`)return Fe(e,t,e=>new Set(e));if(r===`intersection`)throw Error(`Intersection schemas are not supported`);if(r===`promise`)throw Error(`Promise schemas are not supported`);if(r===`function`)throw Error(`Function schemas are not supported`);return F(t,e)}function Le(e,t){let n=ke(t);if(n!==t)return e===null?String(F(t,null)):Le(e,n);let r=ve(t);if(r===`string`||r===`boolean`||r===`nan`||r===`literal`||r===`enum`)return String(F(t,e));if(r===`date`)return F(t,e).toISOString();if(r===`number`)return String(F(t,Number(e)));if(r===`bigint`)return String(F(t,BigInt(String(e))));if(r===`object`||r===`array`||r===`tuple`||r===`record`)return JSON.stringify(F(t,e));if(r===`union`){let n=Ce(t);if(n)return Ne(Array.from(n).sort(Pe).map(t=>()=>Le(e,t)))}if(r===`map`)return JSON.stringify(Array.from(F(t,e).entries()));if(r===`set`)return JSON.stringify(Array.from(F(t,e).values()));if(r===`intersection`)throw Error(`Intersection schemas are not supported`);if(r===`promise`)throw Error(`Promise schemas are not supported`);if(r===`function`)throw Error(`Function schemas are not supported`);return JSON.stringify(F(t,e))}function Re(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 ze(e,t){return e[t]??String}function Be(e){return{invalid:t=>{throw new te({...e,message:t})}}}var Ve={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!=`string`)throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},He={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()}},Ue={get:(e,{invalid:t})=>{let 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()}},We={get:(e,{invalid:t})=>{let 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()}},Ge={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 Ke(e,{param:t=String,isOptional:n=!1}={}){let r=Be({param:t,value:e,isGetter:!0});if(e===void 0||!N(e)){if(se(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return Ve.get(e,r);if(t===Boolean)return He.get(e,r);if(t===Number)return Ue.get(e,r);if(t===Date)return We.get(e,r);if(t===JSON)return Ge.get(e,r);if(_e(t))return P(t).get(e,r);if(re(t))return t(e,r);if(ie(t))return t.get(e,r);if(t instanceof RegExp){if(j(t).test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}return ae(t)?Re(t).get(e,r):e}function qe(e,t){try{return Ke(e,t)}catch(e){if(e instanceof te)return;throw e}}function Je(e,t){try{return I(e,t)}catch(e){if(e instanceof te)return;throw e}}function I(e,{param:t=String,isOptional:n=!1}={}){let r=Be({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 He.set(e,r);if(t===Number)return Ue.set(e,r);if(t===Date)return We.set(e,r);if(t===JSON)return Ge.set(e,r);if(_e(t))return P(t).set(e,r);if(ie(t))return t.set(e,r);if(ae(t))return Re(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}var Ye=`\\[\\??([\\w-_]+)\\*?\\]`,Xe=`\\[\\?([\\w-_]+)\\*?\\]`,Ze=`\\[\\??([\\w-_]+)\\*\\]`,Qe=`[^/]*`,$e=`([^/]*)`,et=`(.*)`;function tt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function nt(e,t){let n=Array.from(e.matchAll(t));if(n.length===0)return[e];let r=0,i=n.reduce((t,n)=>{let i=e.slice(r,n.index);i.length&&t.push(i);let[a]=n;return t.push(a),r=n.index+a.length,t},[]),a=e.slice(r);return a&&i.push(a),i}function rt(e){let t=st(e);return RegExp(`^${t||`.*`}$`,`i`)}function it(e){let t=st(e);return RegExp(`^${t}$`,`i`)}function at(e){let t=st(e.replace(/^#*/,``));return RegExp(`^#?${t||`.*`}$`,`i`)}function ot(e){let t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,e])=>!ut(e)).map(([e,t])=>{let n=st(t);return RegExp(`(^|&)${tt(e)}=${n}(&|$)`,`i`)})}function st(e){return nt(e,new RegExp(Ye,`g`)).map(e=>e.startsWith(`[`)?ct(e):tt(e)).join(``)}function ct(e){return e.replace(new RegExp(Ye,`g`),e=>dt(e)?`.*`:Qe)}function lt(e,t){let{isGreedy:n}=e.params[t]??{},r=n?et:$e;return nt(e.value,new RegExp(Ye,`g`)).map(e=>ft(e)===t?r:st(e)).join(``)}function ut(e){return new RegExp(Xe,`g`).test(e)}function dt(e){return new RegExp(Ze,`g`).test(e)}function ft(e){let[t]=mt(e,new RegExp(Ye,`g`));return t}function pt(e){return RegExp(`\\[\\??${e}\\*?\\]`,`g`)}function mt(e,t){return Array.from(e.matchAll(t)).flatMap(([,...e])=>e.map(e=>N(e)?e:``))}function ht(e=``,t={}){return N(e)?Array.from(e.matchAll(new RegExp(Ye,`g`))).reduce((e,[n,r])=>{let i=ft(n);if(!i)return e;let a=ze(t,i),o=ut(n)||se(a),s=dt(n);return x([i],e),e[r]={param:a,isOptional:o,isGreedy:s},e},{}):{}}var gt=Symbol(`UrlPartsWithParams`);function _t(e){return M(e)&&e[gt]===!0}function L(e){return e===void 0?vt():_t(e)?e:vt(e,{})}function vt(e,t){return{value:e??``,params:ht(e,t),[gt]:!0}}function yt(e){if(typeof e==`string`||e===void 0||_t(e))return L(e);let t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(let[e,i]of t)if(ae(i))n.push(`${e}=${i}`);else{let t=`[${e}]`,a=ft(t);a&&(r[a]=i),n.push(`${a}=${t}`)}return vt(n.join(`&`),r)}function bt(e){return e.replace(/[%[\]]/g,encodeURIComponent)}function xt(e){if(e!==void 0)try{return decodeURIComponent(e)}catch{return e}}function St(e,t,n){let r=lt(t,n),[i]=mt(e,new RegExp(r,`g`));return i}function Ct(e,t,n,r){let i=bt(I(r,t.params[n]));return e.replace(pt(n),()=>i)}function wt(...e){let t=new URLSearchParams;for(let n of e){let e=new URLSearchParams(n);for(let[n,r]of e.entries())t.append(n,r)}return t}var Tt=`https://internal.invalid`;function Et(e){let t=new URL(e.host??Tt,Tt);return t.pathname=e.path??``,t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??``,a(t.toString().replace(RegExp(`^${Tt}/*`),`/`))}function R(e){return e.startsWith(`http`)?Ot(e):kt(e)}function Dt(e,t){if(typeof e==`string`)return Et(Dt(R(e),t));let n=new URLSearchParams(t.query);return{host:N(t.host)?t.host:e.host,path:N(t.path)?t.path:e.path??``,query:wt(e.query,n),hash:N(t.hash)?t.hash:e.hash??``}}function Ot(e){let{protocol:t,host:n,pathname:r,searchParams:i,hash:a}=new URL(e,e);return{host:`${t}//${n}`,path:r,query:i,hash:a}}function kt(e){let{pathname:t,searchParams:n,hash:r}=new URL(e,Tt);return{path:t,query:n,hash:r}}var At=Symbol(`IS_URL_SYMBOL`);function z(e){return typeof e==`object`&&!!e&&At in e}function jt(e){let t={host:L(e.host),path:L(e.path),query:Nt(yt(e.query)),hash:Mt(L(e.hash))};x(t.path.params,t.query.params,t.host.params,t.hash.params);let n={...t.host,regexp:rt(t.host.value),stringify(e={}){return Pt(t.host,e)}},r={...t.path,regexp:{trailingSlashIgnored:it(t.path.value),trailingSlashRemoved:it(t.path.value.replace(/^(.+)\/$/,`$1`))},stringify(e={}){return Pt(t.path,e)}},i={...t.query,regexp:ot(t.query.value),stringify(e={}){return Ft(t.query,e).toString()}},a={...t.hash,regexp:at(t.hash.value),stringify(e={}){return Pt(t.hash,e)}};function o(e={}){return Et({host:n.stringify(e),path:r.stringify(e),query:i.stringify(e),hash:a.stringify(e)})}function s(e,t={}){let o=R(e),s=t.removeTrailingSlashes??!0;if(!n.regexp.test(o.host??``))throw Error(`Host does not match`);if(!(s?r.regexp.trailingSlashRemoved:r.regexp.trailingSlashIgnored).test(o.path))throw Error(`Path does not match`);let c=o.query.toString();if(!i.regexp.every(e=>e.test(c)))throw Error(`Query does not match`);if(!a.regexp.test(o.hash))throw Error(`Hash does not match`)}function c(e,t={}){s(e,t);let o=R(e);return{...It(n,o.host??``),...It(r,o.path),...Lt(i,o.query.toString()),...It(a,o.hash)}}function l(e,t={}){try{return{success:!0,params:c(e,t)}}catch(e){return{success:!1,params:{},error:Error(`Failed to parse url`,{cause:e})}}}return{[At]:!0,schema:{host:n,path:r,query:i,hash:a},params:{},isRelative:!N(t.host.value),stringify:o,parse:c,tryParse:l}}function Mt(e){return{...e,value:e.value.replace(/^#/,``)}}function Nt(e){return{...e,value:e.value.replace(/^\?/,``)}}function Pt(e,t){return Object.keys(e.params).reduce((n,r)=>Ct(n,e,r,t[r]),e.value)}function Ft(e,t){let n=new URLSearchParams(e.value);if(!e.value)return n;for(let[r,i]of Array.from(n.entries())){let a=ft(i);if(!a)continue;let o=I(t[a],e.params[a]),s=t[a]===void 0&&o===``;e.params[a].isOptional&&s?n.delete(r,i):n.set(r,o)}return n}function It(e,t){let n={};for(let[r,i]of Object.entries(e.params))n[r]=Ke(xt(St(t,e,r)),i);return n}function Lt(e,t){let n={},r=new URLSearchParams(e.value),i=new URLSearchParams(t);for(let[t,a]of Array.from(r.entries())){let r=ft(a);r&&(n[r]=Ke(i.get(t)??void 0,e.params[r]))}return n}function Rt(e,t){x(e.params,t.params);let n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function zt(e,t){x(e.params,t.params);let n=[e.value,t.value].filter(N).join(`&`);return{...e,value:n,params:{...e.params,...t.params}}}function Bt(e,t){return Rt(e,t)}function Vt(e,t){if(!z(e))throw Error(`Parent is not a valid url`);if(!z(t))return jt({host:e.schema.host,path:Rt(e.schema.path,L(t.path)),query:zt(e.schema.query,yt(t.query)),hash:Bt(e.schema.hash,L(t.hash))});if(!z(t))throw Error(`Child is not a valid url`);return jt({host:e.schema.host,path:Rt(e.schema.path,t.schema.path),query:zt(e.schema.query,t.schema.query),hash:Bt(e.schema.hash,t.schema.hash)})}function Ht(e,t){let n=t.matches.at(-1);return!n||!w(e)?[]:qt(e.aliases,Wt(n))}function Ut(e,t,n){let r=Kt(e),i=Gt(t,n);return r?qt(Jt(r),i):[{url:jt(i),transform:Yt(i)}]}function Wt(e){return{path:L(e.path),query:yt(e.query),hash:L(e.hash),transform:void 0}}function Gt(e,t){return{path:L(e.path),query:yt(e.query),hash:L(e.hash),transform:t}}function Kt(e){if(!(e.hoist||!w(e.parent)))return e.parent}function qt(e,t){let n=Yt(t);return e.map(e=>({url:Vt(e.url,t),transform:(t,r)=>({...e.transform(t,r),...n(t,r)})}))}function Jt(e){return[{url:e,transform:Zt(Xt(e))},...w(e)?e.aliases:[]]}function Yt(e){let t=Zt([e.path,e.query,e.hash].flatMap(e=>Object.keys(e.params))),{transform:n}=e;return n?(e,r)=>n({url:e,params:t(e,r)}):t}function Xt(e){return z(e)?Object.values(e.schema).flatMap(e=>Object.keys(e.params)):[]}function Zt(e){return(t,n)=>{let r={};for(let t of e)t in n&&(r[t]=n[t]);return r}}function Qt(e){return`parent`in e&&!!e.parent}function $t(e,t,n=!1){if(!w(e)||!w(t))throw Error(`combineRoutes called with invalid route arguments`);let r={...t,meta:y(e.meta,t.meta),state:S(e.state,t.state),hooks:A(e,t),matches:[...e.matches,...t.matches],context:[...e.context,...t.context],depth:e.depth+1};return n?r:{...r,...Vt(e,t),aliases:Ht(e,t)}}function en(e){return e===void 0?``:e}var B=class{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},tn=class extends Error{},nn=class extends tn{response;constructor(e){super(`Uncaught ContextRedirectError`),this.response={status:`REDIRECT`,to:e}}},rn=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Router does not support multiple redirects to the same route. All redirects must be unique.`)}};function an(){let e=new B;return{redirect:(t,n,r)=>{if(e.redirects.size>0)throw new rn(t.name);let i=(e,{redirectStatus:i})=>{throw new nn([t.name,n?.(e.params),{replace:!0,redirectStatus:r?.status??i}])};return e.redirects.add(i),()=>e.redirects.delete(i)},onBeforeRouteEnter:t=>(e.onBeforeRouteEnter.add(t),()=>e.onBeforeRouteEnter.delete(t)),onBeforeRouteUpdate:t=>(e.onBeforeRouteUpdate.add(t),()=>e.onBeforeRouteUpdate.delete(t)),onBeforeRouteLeave:t=>(e.onBeforeRouteLeave.add(t),()=>e.onBeforeRouteLeave.delete(t)),onAfterRouteEnter:t=>(e.onAfterRouteEnter.add(t),()=>e.onAfterRouteEnter.delete(t)),onAfterRouteUpdate:t=>(e.onAfterRouteUpdate.add(t),()=>e.onAfterRouteUpdate.delete(t)),onAfterRouteLeave:t=>(e.onAfterRouteLeave.add(t),()=>e.onAfterRouteLeave.delete(t)),onError:t=>(e.onError.add(t),()=>e.onError.delete(t)),onRejection:t=>(e.onRejection.add(t),()=>e.onRejection.delete(t)),store:e}}var on=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}};function sn({getRoute:e}){return{redirectTo:(...[t,n,r])=>{let i=e();if(!w(i))throw new on(i.name);t.context.push(i),i.context.push(t),i.redirect(t,n,r)},redirectFrom:(t,n,r)=>{let i=e();if(!w(t))throw new on(t.name);i.context.push(t),t.context.push(i),t.redirect(i,n,r)}}}function cn(e){let t;return{setTitle:e=>{t=e},getTitle:async n=>{let r=async()=>{if(e&&w(e))return e.getTitle(n)};return t?t(n,{from:n,getParentTitle:r}):r()}}}var ln=`default`;function un(e,t){return{name:t?.name??`default`,load:e,prefetch:t?.prefetch,transformer:t?.transformer}}function dn(e,{name:n,load:r,prefetch:i,transformer:a}){return(0,t.markRaw)({...e,loaders:{...e.loaders,[n]:{load:r,prefetch:i,transformer:a}}})}function fn(e,t){if(e.some(e=>t in e.loaders))throw new l(t)}var pn=`default`;function mn(e){return Object.keys(e).filter(t=>e[t].props)}function hn(e,t){return{name:t?.name??`default`,component:e,props:t?.props,prefetch:t?.prefetch,transformer:t?.transformer}}function gn(e,{name:n,component:r,props:i,prefetch:a,transformer:o}){return(0,t.markRaw)({...e,views:{...e.views,[n]:{component:r,props:i,prefetch:a,transformer:o}}})}function _n(e){function t(t){let n=e.matches.at(-1);return _n(n?{...e,matches:[...e.matches.slice(0,-1),t(n)]}:e)}let n=(e,n)=>{let r=hn(e,n);return t(e=>gn(e,r))},r=(n,r)=>{let i=un(n,r);return fn(e.matches.slice(0,-1),i.name),t(e=>dn(e,i))},i=(t,n)=>{let r=e.matches.at(-1);if(!r||!w(e))return _n(e);let i=Ut(r,t,n);return _n({...e,aliases:[...e.aliases,...i]})};return{...e,addView:n,addLoader:r,addAlias:i}}function V(e){let n=v(),r=en(e.name),i=L(e.path),a=yt(e.query),o=L(e.hash),s=e.meta??{},c=e.state??{},l=e.context??[],{store:u,redirect:d,...f}=an(),{setTitle:p,getTitle:m}=cn(e.parent),h=(0,t.markRaw)({...e,id:n,meta:s,state:c,name:r,views:{},loaders:{}}),g=sn({getRoute:()=>b}),_=jt({path:i,query:a,hash:o}),y={[C]:!0,depth:1,hooks:[u],getTitle:m,redirect:d,aliases:[]},b={id:n,matches:[h],name:r,meta:s,state:c,context:l,prefetch:e.prefetch,setTitle:p,...g,..._,...f,...y};return Qt(e)?_n($t(e.parent,b,e.hoist)):_n(b)}function vn(){let e=new B;return{onRejection:t=>(e.onRejection.add(t),()=>e.onRejection.delete(t)),store:e}}function yn(e){return(0,t.defineComponent)(()=>()=>(0,t.h)(`h1`,e),{name:e,props:[]})}function bn(e,t){let{route:n,params:r,alias:i}=t;if(!z(n))throw Error(`createCanonicalUrl called with an invalid url`);let a=n.stringify(r);if(!i)return e;let o=R(e),s=R(a),c=new URLSearchParams(n.schema.query.value);for(let[e,t]of o.query)c.has(e)||s.query.append(e,t);return n.schema.hash.value||(s.hash=o.hash),Et(s)}function xn(e){let t=new URLSearchParams(e);return{get:(...e)=>t.get(...e),getAll:(...e)=>t.getAll(...e),set:(...e)=>{t.set(...e)},append:(...e)=>{t.append(...e)},delete:(...e)=>{t.delete(...e)},toString:(...e)=>t.toString(...e),forEach:(...e)=>{t.forEach(...e)},entries:(...e)=>t.entries(...e),keys:(...e)=>t.keys(...e),values:(...e)=>t.values(...e),has:(...e)=>t.has(...e),size:t.size,sort:()=>{t.sort()},[Symbol.iterator]:()=>t[Symbol.iterator]()}}function Sn(e){return!!e&&typeof e==`object`}var Cn={isOptional:!0,isGreedy:!1};function wn(e,t,n){if(Sn(e)&&t in e){let r=e[t];return typeof r==`string`?Ke(r,{param:n,...Cn}):r}return Ke(void 0,{param:n,...Cn})}function Tn(e,t){let n={};for(let[r,i]of Object.entries(e))n[r]=wn(t,r,i);return n}function En(e,t,n){if(Sn(e)&&t in e){let r=e[t];return I(r,{param:n,...Cn})}return I(void 0,{param:n,...Cn})}var Dn=(e,t)=>{let n={};for(let[r,i]of Object.entries(e))n[r]=En(t,r,i);return n};function On(e,t,n){let r=e.stringify(t);return n?{canonical:r,href:n.url.stringify(n.params)}:{canonical:r,href:r}}function kn(e,t,n){let r=On(e,t,n.alias),i={query:new URLSearchParams(n.query),hash:n.hash},a=Dt(r.href,i),o=bn(a,{route:e,params:t,alias:n.alias}),{query:s,hash:c}=R(a);return{canonical:o,href:a,query:s,hash:c}}function An(e,t={},r={}){let{canonical:i,href:a,query:o,hash:s}=kn(e,t,r),c=e.matches.at(-1);if(!c)throw Error(`createResolvedRoute called with a route that has no matches`);async function l(t){if(w(e))return e.getTitle(t)}let u={[n]:!0,id:e.id,name:e.name,matches:e.matches,hooks:k(e),getRouteTitle:l,matched:c,query:xn(o),state:Tn(e.state,r.state),hash:s,params:t,href:a,canonical:i,getTitle:()=>l(u)};return u}function jn({type:e,component:n,status:r}){let{store:i,...a}=vn(),o=V({name:e}).addView((0,t.markRaw)(n??yn(e))),{setTitle:s}=o,c=()=>An(o).getTitle(),l={[D]:!0,route:o,hooks:[i]};return{type:e,status:r,setTitle:s,getTitle:c,...a,...l}}function Mn(e){let n=v(),r=en(e.name),i=L(e.path),a=yt(e.query),o=L(e.hash),s=e.meta??{},c=L(e.host),l=e.context??[],{store:u,redirect:d,...f}=an(),{getTitle:p,setTitle:m}=cn(e.parent),h=sn({getRoute:()=>b}),g=(0,t.markRaw)({id:n,meta:{},state:{},...e,views:{},loaders:{}}),_=jt({host:c,path:i,query:a,hash:o}),y={[C]:!0,depth:1,hooks:[u],getTitle:p,redirect:d,aliases:[]},b={id:n,matches:[g],name:r,meta:s,state:{},context:l,setTitle:m,...f,...h,..._,...y};return Qt(e)?$t(e.parent,b,e.hoist):b}var Nn=Symbol(),Pn=(0,t.defineComponent)((e,{attrs:n,slots:r})=>{let i=(0,t.inject)(Nn,void 0),a=(0,t.computed)(()=>i?.value===!1?`none`:e.name);return()=>(0,t.h)(e.as??`span`,{...n,style:[n.style,{viewTransitionName:a.value}]},r.default?.())},{name:`ViewTransition`,inheritAttrs:!1,props:[`name`,`as`]});function Fn(){let e=new Map;return t=>{let n=e.get(t);if(!n){let n=Symbol();return e.set(t,n),n}return n}}var In=Fn();function Ln(e){let n=In(e);return({increment:e=!1}={})=>{let r=(0,t.inject)(n,0);return e&&(0,t.provide)(n,r+1),r}}var Rn=(e,t,n)=>{let r=e?.matches??[],i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},zn=(e,t,n)=>{let r=e?.matches??[],i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},Bn=(e,t,n)=>e?.matches.at(n)?.id===t?.matches.at(n)?.id;function Vn(e){switch(e){case`onBeforeRouteEnter`:case`onAfterRouteEnter`:return Rn;case`onBeforeRouteUpdate`:case`onAfterRouteUpdate`:return Bn;case`onBeforeRouteLeave`:case`onAfterRouteLeave`:return zn;default:throw Error(`Switch is not exhaustive for lifecycle: ${e}`)}}var H=class extends tn{response;constructor(e){super(`Uncaught ContextPushError`),this.response={status:`PUSH`,to:e}}},Hn=class extends tn{response;constructor(e){super(`Uncaught ContextRejectionError`),this.response={status:`REJECT`,type:e}}},Un=class extends tn{response;constructor(){super(`Uncaught ContextAbortError`),this.response={status:`ABORT`}}};function Wn(e,t){let n=new B;return k(e).forEach((r,i,a)=>{if(i===a.length-1&&r.redirects.forEach(e=>n.redirects.add(e)),Rn(e,t,i))return r.onBeforeRouteEnter.forEach(e=>n.onBeforeRouteEnter.add(e));if(Bn(e,t,i))return r.onBeforeRouteUpdate.forEach(e=>n.onBeforeRouteUpdate.add(e))}),k(t).forEach((r,i)=>{if(zn(e,t,i))return r.onBeforeRouteLeave.forEach(e=>n.onBeforeRouteLeave.add(e))}),n}function Gn(e,t){let n=new B;return k(e).forEach((r,i)=>{if(Rn(e,t,i))return r.onAfterRouteEnter.forEach(e=>n.onAfterRouteEnter.add(e));if(Bn(e,t,i))return r.onAfterRouteUpdate.forEach(e=>n.onAfterRouteUpdate.add(e))}),k(t).forEach((r,i)=>{if(zn(e,t,i))return r.onAfterRouteLeave.forEach(e=>n.onAfterRouteLeave.add(e))}),n}function Kn(e,t,n){let r=new B;return e?.matches.forEach((i,a)=>{Rn(e,t,a)&&n.onBeforeRouteEnter.forEach(e=>r.onBeforeRouteEnter.add(e)),Bn(e,t,a)&&n.onBeforeRouteUpdate.forEach(e=>r.onBeforeRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{zn(e,t,a)&&n.onBeforeRouteLeave.forEach(e=>r.onBeforeRouteLeave.add(e))}),r}function qn(e,t,n){let r=new B;return e?.matches.forEach((i,a)=>{Rn(e,t,a)&&n.onAfterRouteEnter.forEach(e=>r.onAfterRouteEnter.add(e)),Bn(e,t,a)&&n.onAfterRouteUpdate.forEach(e=>r.onAfterRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{zn(e,t,a)&&n.onAfterRouteLeave.forEach(e=>r.onAfterRouteLeave.add(e))}),r}function Jn(e){let t=new B;return k(e).forEach(e=>{e.onRejection.forEach(e=>t.onRejection.add(e))}),t}function Yn(){let e=null;function t(t){e=t}function n(t){return e?e.runWithContext(t):t()}return{setVueApp:t,runWithContext:n}}var Xn=class extends Error{constructor(){super(`update called without a route to update`)}};function Zn({to:e}){let t=e=>{throw new Hn(e)},n=(...e)=>{throw new H(e)};return{reject:t,push:n,replace:(e,t,n)=>{throw i(e)?new H([e,{...t??{},replace:!0}]):new H([e,t,{...n??{},replace:!0}])},update:(t,r,i)=>{if(!e)throw new Xn;if(typeof t==`object`){let i={...e.params,...t};return n(e.name,i,r)}let a={...e.params,[t]:r};return n(e.name,a,i)},abort:()=>{throw new Un}}}var Qn=Fn();function $n({redirectStatus:e}){let{setVueApp:t,runWithContext:n}=Yn(),{store:r,...i}=an(),a=new B,o=async({to:t,from:i,signal:o,progress:s})=>{let{reject:l,push:u,replace:d,update:f,abort:p}=Zn({to:t}),m=Wn(t,i),h=Kn(t,i,r),g=[...m.redirects,...h.onBeforeRouteEnter,...m.onBeforeRouteEnter,...h.onBeforeRouteUpdate,...m.onBeforeRouteUpdate,...a.onBeforeRouteUpdate,...h.onBeforeRouteLeave,...m.onBeforeRouteLeave,...a.onBeforeRouteLeave];try{let r=[];for(let a of g){s?.expect(1);let c=Promise.resolve(n(()=>a(t,{from:i,reject:l,push:u,replace:d,update:f,abort:p,signal:o,redirectStatus:e})));s?.track(c),r.push(c)}await Promise.all(r)}catch(e){if(e instanceof H||e instanceof nn||e instanceof Hn||e instanceof Un)return e.response;try{c(e,{to:t,from:i,source:`hook`})}catch(e){if(e instanceof H||e instanceof Hn)return e.response;throw e}}return{status:`SUCCESS`}},s=async({to:e,from:t,signal:i})=>{let{reject:o,push:s,replace:l,update:u}=Zn({to:e}),d=Gn(e,t),f=qn(e,t,r),p=[...a.onAfterRouteLeave,...d.onAfterRouteLeave,...f.onAfterRouteLeave,...a.onAfterRouteUpdate,...d.onAfterRouteUpdate,...f.onAfterRouteUpdate,...a.onAfterRouteEnter,...d.onAfterRouteEnter,...f.onAfterRouteEnter];try{let r=p.map(r=>Promise.resolve(n(()=>r(e,{from:t,reject:o,push:s,replace:l,update:u,signal:i}))));await Promise.all(r)}catch(n){if(n instanceof H||n instanceof Hn)return n.response;try{c(n,{to:e,from:t,source:`hook`})}catch(e){if(e instanceof H||e instanceof Hn)return e.response;throw e}}return{status:`SUCCESS`}},c=(e,{to:t,from:n,source:i})=>{let{reject:a,push:o,replace:s}=Zn({to:t});for(let c of r.onError)try{c(e,{to:t,from:n,source:i,reject:a,push:o,replace:s});return}catch(t){if(t instanceof tn)throw t;if(t===e)continue;throw t}};return{runBeforeRouteHooks:o,runAfterRouteHooks:s,runErrorHooks:c,runRejectionHooks:(e,{to:t,from:n})=>{let i=[...Jn(e).onRejection,...r.onRejection];for(let r of i)r(e.type,{to:t,from:n})},addComponentHook:({lifecycle:e,depth:t,hook:n})=>{let r=Vn(e),i=a[e],o=(e,i)=>{if(r(e,i.from,t))return n(e,i)};return i.add(o),()=>i.delete(o)},addGlobalRouteHooks:e=>{e.onBeforeRouteEnter.forEach(e=>i.onBeforeRouteEnter(e)),e.onBeforeRouteUpdate.forEach(e=>i.onBeforeRouteUpdate(e)),e.onBeforeRouteLeave.forEach(e=>i.onBeforeRouteLeave(e)),e.onAfterRouteEnter.forEach(e=>i.onAfterRouteEnter(e)),e.onAfterRouteUpdate.forEach(e=>i.onAfterRouteUpdate(e)),e.onAfterRouteLeave.forEach(e=>i.onAfterRouteLeave(e)),e.onError.forEach(e=>i.onError(e))},setVueApp:t,...i}}function er(e){let n=Qn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}function tr(e,n){let r=Ln(e),i=er(e);return e=>{let a=r(),o=i().addComponentHook({lifecycle:n,hook:e,depth:a-1});return(0,t.onUnmounted)(o),o}}function nr(e){return{onBeforeRouteLeave:tr(e,`onBeforeRouteLeave`),onBeforeRouteUpdate:tr(e,`onBeforeRouteUpdate`),onAfterRouteLeave:tr(e,`onAfterRouteLeave`),onAfterRouteUpdate:tr(e,`onAfterRouteUpdate`)}}var rr=Fn();function ir(e){let n=rr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}var ar=Fn();function or(e){let n=ar(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}function sr(e){return()=>{let n=(0,t.inject)(e);if(!n)throw new p;return n}}var cr=Symbol(`isRouterRouteSymbol`);function lr(e,t){return typeof t==`object`&&!!t&&cr in t&&e in t}function ur(e,n,r){function i(e){r(Dt(Et({...R(n.href),query:void 0}),{query:e}))}function a(e,t,i){if(ue(e))return a({[e]:t},i);let o=e,s=t,c={...n.params,...o};return r(n.name,c,s)}let o=(...e)=>{let t=new URLSearchParams(n.query);t.set(...e),i(t)},s=(...e)=>{let t=new URLSearchParams(n.query);t.append(...e),i(t)},c=(...e)=>{let t=new URLSearchParams(n.query);t.delete(...e),i(t)},{id:l,matched:u,matches:d,name:f,hash:p,href:m,canonical:h,data:g,getTitle:_}=(0,t.toRefs)(n),v=new Proxy({},{get(e,t,r){return Reflect.get(n.params,t,r)},set(e,t,n){return a(t,n),!0},ownKeys(){return Reflect.ownKeys(n.params)},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(n.params,t)}}),y=(0,t.computed)({get(){return v},set(e){a(e)}}),b=(0,t.computed)({get(){return new Proxy(n.query,{get(e,t,n){switch(t){case`append`:return s;case`set`:return o;case`delete`:return c;default:return Reflect.get(e,t,n)}}})},set(e){i(e)}}),ee=(0,t.computed)({get(){return new Proxy(n.state,{set(e,t,r){return a({},{state:{...n.state,[t]:r}}),!0}})},set(e){a({},{state:e})}});return(0,t.reactive)({...n,id:l,matched:u,matches:d,state:ee,query:b,hash:p,params:y,name:f,href:m,canonical:h,data:g,getTitle:_,update:a,[cr]:!0,[e]:!0})}function dr(e){return(t,n,{exact:r}={})=>lr(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(e=>e.name).includes(n):!1}function fr(e){let n=sr(e),r=dr(e);return(e,i)=>{let a=n();function o(){if(e&&!r(a.route,e,i))throw new m(e,a.route.name)}return(0,t.watch)(a.route,o,{immediate:!0,deep:!0}),a.route}}function pr(e){let n=fr(e),r=sr(e),i=or(e),a=Ln(e),o=ir(e);return(0,t.defineComponent)((e,s)=>{let c=n(),l=r(),u=i(),d=a({increment:!0});(0,t.onServerPrefetch)(async()=>{await l.start()});let{getRouteComponents:f}=o(),p=(0,t.computed)(()=>{if(!l.started.value)return null;if(O(u.value))return u.value.route.matches.at(0)?.views.default.component??null;let t=c.matches.at(d);if(!t)return null;let n=e.name??`default`;return f(t.id,t.views)[n]});return()=>s.slots.default?s.slots.default({route:c,component:p.value,rejection:u.value}):p.value?(0,t.h)(p.value):null},{name:`RouterView`,props:[`name`]})}var mr=Fn();function hr(e){let n=mr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}var gr=`lazy`,_r={components:!0,props:!1,loaders:!1};function vr(e){return[`eager`,`lazy`,`intent`].includes(e)}function yr({routerPrefetch:e,routePrefetch:t,viewPrefetch:n,linkPrefetch:r},i){let a=[br(r,i),br(n,i),br(t,i),br(e,i),_r[i],gr].reduce((e,t)=>vr(e)?e:e===!0&&vr(t)?t:e===!0&&!vr(t)?e:e===void 0?t:e,void 0);return vr(a)?a:!1}function br(e,t){return M(e)?e[t]:e}var xr=(0,t.defineAsyncComponent)(()=>new Promise(e=>{e({default:{template:`foo`}})}));function Sr(e){return e.name===xr.name&&`__asyncLoader`in e}function Cr(e,t=()=>!0){return e.matches.flatMap(e=>Object.values(e.views).flatMap(n=>Sr(n.component)&&t(e,n)?[n.component]:[]))}function wr(e,t=()=>!0){return Cr(e,t).map(e=>e.__asyncLoader())}var Tr=Symbol(`visibilityObserver`);function Er(e){let n=(0,t.inject)(Tr);if(!n)throw new p;return(0,t.watch)(e,(e,t)=>{e&&n.observe(e),t&&n.unobserve(t)},{immediate:!0}),(0,t.onUnmounted)(()=>{e.value&&n.unobserve(e.value)}),{isElementVisible:(0,t.computed)(()=>e.value?n.isElementVisible(e.value):!1)}}function Dr(e,n,r){(0,t.watch)(e,(e,t)=>{e&&e.addEventListener(n,r),t&&t.removeEventListener(n,r)},{immediate:!0}),(0,t.onUnmounted)(()=>{e.value&&e.value.removeEventListener(n,r)})}function Or(e){let n=hr(e);return e=>{let r=(0,t.ref)(),{createDetachedStore:i}=n(),a=i(),{isElementVisible:o}=Er(r),s=()=>{a.stage()};(0,t.onScopeDispose)(()=>a.dispose()),(0,t.watch)(()=>(0,t.toValue)(e),({route:e,...t})=>{a.reset(),e&&l(`eager`,e,t)},{immediate:!0}),(0,t.watch)(o,n=>{let{route:r,...i}=(0,t.toValue)(e);!r||!n||l(`lazy`,r,i)},{immediate:!0}),Dr(r,`focusin`,c),Dr(r,`mouseover`,c);function c(){let{route:n,...r}=(0,t.toValue)(e);n&&l(`intent`,n,r)}function l(e,t,n){Ar(e,t,n),a.compute(t,kr(e,n))}return{element:r,commit:s}}}function kr(e,t){return n=>yr({...t,routePrefetch:n.routePrefetch,viewPrefetch:n.prefetch},n.kind===`loader`?`loaders`:`props`)===e}function Ar(e,t,n){wr(t,(t,r)=>yr({...n,routePrefetch:t.prefetch,viewPrefetch:r.prefetch},`components`)===e)}var jr=Fn();function Mr(e){let n=jr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}function Nr(e,t){if(!r(e))throw Error(`updateResolvedRoute called with a value that is not a resolved route`);let n=Dt(e.href,{query:t.query,hash:t.hash}),{query:i,hash:a}=R(n),o={...e,href:n,query:xn(i),hash:a,state:{...e.state,...t.state},getTitle:()=>e.getRouteTitle(o)};return o}function Pr(e){let n=sr(e),r=Mr(e),a=Or(e),o=dr(e);return(e,s={},c={})=>{let l=n(),u=r(),d=(0,t.computed)(()=>{let n=(0,t.toValue)(e);return typeof n!=`string`||i(n)?(0,t.toValue)(s):(0,t.toValue)(c)}),f=(0,t.computed)(()=>{let n=(0,t.toValue)(e);if(i(n)){let e=l.find(n);return e&&Nr(e,d.value)}return typeof n==`string`?l.resolve(n,(0,t.toValue)(s),(0,t.toValue)(c)):Nr(n,d.value)}),p=(0,t.computed)(()=>{if(f.value)return f.value.href;let n=(0,t.toValue)(e);if(i(n))return n;console.error(Error(`Failed to resolve route in RouterLink.`))}),m=(0,t.computed)(()=>o(l.route)&&l.route.matches.some(e=>e.id===f.value?.id)),h=(0,t.computed)(()=>l.route.id===f.value?.id),g=(0,t.computed)(()=>o(l.route)&&le(f.value)&&l.route.href.startsWith(f.value.href)),_=(0,t.computed)(()=>l.route.href===f.value?.href),v=(0,t.computed)(()=>!!p.value&&l.isExternal(p.value)),y=(0,t.computed)(()=>u.isTransitioning&&u.to?.href===p.value),{element:b,commit:ee}=a(()=>({route:f.value,routerPrefetch:l.prefetch,linkPrefetch:d.value.prefetch})),x=n=>{ee();let r={replace:n?.replace??d.value.replace,navigation:n?.navigation??d.value.navigation,query:wt(n?.query,d.value.query),hash:n?.hash??d.value.hash,state:{...d.value.state,...n?.state},viewTransition:n?.viewTransition??d.value.viewTransition},a=(0,t.toValue)(e);return i(a)||typeof a==`object`?l.push(a,r):l.push(a,(0,t.toValue)(s),r)};return{element:b,route:f,href:p,isMatch:m,isExactMatch:h,isActive:g,isExactActive:_,isExternal:v,isTransitioning:y,push:x,replace:e=>x({...e,replace:!0})}}}function Fr(e){let n=sr(e),r=Pr(e);return(0,t.defineComponent)((e,i)=>{let a=n(),o=(0,t.computed)(()=>!e.target||e.target===`_self`),s=(0,t.computed)(()=>{let{to:t,...n}=e;return n}),{element:c,route:l,href:u,isMatch:d,isExactMatch:f,isActive:p,isExactActive:m,isExternal:h,isTransitioning:g,push:_}=r(()=>typeof e.to==`function`?e.to(a.resolve):e.to,s);(0,t.provide)(Nn,g);let v=(0,t.computed)(()=>({"router-link--match":d.value,"router-link--exact-match":f.value,"router-link--active":p.value,"router-link--exact-active":m.value}));function y(e){return e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||!o.value}function b(e){y(e)||(e.preventDefault(),_())}return()=>(0,t.h)(`a`,{href:u.value,target:e.target,class:[`router-link`,v.value],ref:c,onClick:b},i.slots.default?.({route:l.value,isMatch:d.value,isExactMatch:f.value,isActive:p.value,isExactActive:m.value,isTransitioning:g.value,isExternal:h.value}))},{name:`RouterLink`,props:[`to`,`prefetch`,`query`,`hash`,`replace`,`state`,`target`,`viewTransition`,`navigation`]})}var Ir=Fn();function Lr(e){let n=Ir(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;let{pending:r,to:i,from:a,settled:o,total:s,progress:c}=e;return{pending:r,to:i,from:a,settled:o,total:s,progress:c}}}var Rr=150,zr=.08,Br=400,Vr=200,Hr=.05,Ur=(0,t.defineComponent)(e=>{let{pending:n,settled:r,total:i,progress:a}=e.navigation,o=(0,t.ref)(!1),s=(0,t.ref)(0),c,l,u=(0,t.computed)(()=>i.value===0?1:Math.min(1,(r.value+1)/i.value)),d=(0,t.computed)(()=>!n.value&&i.value>0&&r.value===i.value),f=(0,t.computed)(()=>n.value?Math.max(a.value+s.value,Hr):+!!d.value),p=(0,t.computed)(()=>o.value&&(n.value||d.value));return(0,t.onMounted)(()=>{c=setTimeout(()=>{o.value=n.value},e.delay)}),(0,t.watch)(n,e=>{clearInterval(l),e&&(l=setInterval(()=>{s.value+=(u.value-a.value-s.value)*zr},Rr))},{immediate:!0}),(0,t.watch)(r,()=>{s.value=0}),(0,t.onBeforeUnmount)(()=>{clearTimeout(c),clearInterval(l)}),()=>{if(!p.value)return null;let r=Math.round(f.value*100);return(0,t.h)(`div`,{class:`router-progress`,role:`progressbar`,"aria-label":e.label,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r,style:{position:`fixed`,top:0,left:0,right:0,height:`var(--router-progress-height, 3px)`,zIndex:9999,pointerEvents:`none`,opacity:+!!n.value,transition:`opacity ${Vr}ms ease-out ${Br}ms`}},(0,t.h)(`div`,{class:`router-progress__bar`,style:{height:`100%`,width:`${r}%`,background:e.color??`var(--router-progress-color, #29d)`,transition:`width ${Br}ms ease-out`}}))}},{name:`RouterProgressBar`,props:[`navigation`,`delay`,`color`,`label`]});function Wr(e){let n=Lr(e);return(0,t.defineComponent)(e=>{let r=n(),{pending:i,to:a}=r,o=(0,t.ref)(0);return(0,t.watch)([i,a],([e])=>{e&&(o.value+=1)}),()=>(0,t.h)(Ur,{key:o.value,navigation:r,delay:e.delay??150,color:e.color,label:e.label??`Loading page`})},{name:`RouterProgress`,props:[`delay`,`color`,`label`]})}function Gr(e){let n=fr(e);return(e,r=String)=>{let i=n();return{value:(0,t.computed)({get(){let n=i.query.get((0,t.toValue)(e));return n===null?se(r)?r.defaultValue:null:qe(n,{param:r})},set(n){i.query.set((0,t.toValue)(e),I(n,{param:r}))}}),values:(0,t.computed)({get(){let n=i.query.getAll((0,t.toValue)(e));return n.length===0&&se(r)?[r.defaultValue]:n.map(e=>qe(e,{param:r})).filter(e=>e!==null)},set(n){let a=new URLSearchParams(i.query);a.delete((0,t.toValue)(e)),n.forEach(n=>{a.append((0,t.toValue)(e),I(n,{param:r}))}),i.query=a}}),remove:()=>{i.query.delete((0,t.toValue)(e))}}}}function Kr(e){let t=typeof e==`object`?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a}=nr(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a,isRoute:dr(t),RouterView:pr(t),RouterLink:Fr(t),ViewTransition:Pn,RouterProgress:Wr(t),useRoute:fr(t),useRouter:sr(t),useQueryValue:Gr(t),useLink:Pr(t),useRejection:or(t),useViewTransition:Mr(t),useNavigation:Lr(t)}}var qr=Symbol(`IS_ROUTER_PLUGIN_SYMBOL`);function Jr(e){return typeof e==`object`&&!!e&&qr in e}function Yr(e){let{store:t,...n}=an(),r={[qr]:!0,hooks:t};return{routes:e.routes??[],rejections:e.rejections??[],...n,...r}}function Xr(e){return{get:(t,{invalid:n})=>{for(let n of e){let e=qe(t,{param:n,isOptional:!1,isGreedy:!1});if(e!==void 0)return e}throw n(`Value "${t}" does not satisfy any of the possible values`)},set:(t,{invalid:n})=>{for(let n of e){let e=Je(t,{param:n,isOptional:!1,isGreedy:!1});if(e!==void 0)return e}throw n(`Value "${t}" does not satisfy any of the possible values`)}}}var Zr={separator:`,`};function Qr(e,t={}){let{separator:n}={...Zr,...t},r=Xr(e);return{get:(e,t)=>e.split(n).map(e=>r.get(e,t)),set:(e,t)=>{if(!Array.isArray(e))throw t.invalid(`Expected an array`);return e.map(e=>r.set(e,t)).join(n)}}}var $r={separator:`,`};function ei(e,t={}){let{separator:n}={...$r,...t};return{get:t=>{let r=t.split(n);return e.map((e,t)=>Ke(r.at(t),{param:e}))},set:(t,{invalid:r})=>{if(!Array.isArray(t))throw r(`Expected a tuple`);if(t.length!==e.length)throw r(`Expected tuple with ${e.length} values but received ${t.length} values`);return e.map((e,n)=>I(t.at(n),{param:e})).join(n)}}}function ti(){let e=[];return{get length(){return e.length},push(t){return e.push(t),()=>{e=e.filter(e=>e!==t)}},call(t){e.forEach(e=>e(t))}}}function ni(){return Math.random().toString(36).slice(2,10)}function ri(e,t,n){return Math.min(Math.max(e,t),n)}function ii(e){e.preventDefault(),e.returnValue=``}function ai({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 oi(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.slice(n),e=e.slice(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.slice(r),e=e.slice(0,r)),e&&(t.pathname=e)}return t}function si(e){return Object.freeze(e)}var ci=`beforeunload`,li=`popstate`,ui=`hashchange`;function di(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e,search:r,hash:i}=t.location,a=n.state??{};return[a.idx??null,si({pathname:e,search:r,hash:i,state:a.usr??null,key:a.key??`default`})]}let i=null;function a(){if(i)u.call(i),i=null;else{let[e,t]=r();if(u.length){if(e!=null){let n=s??0-e;n&&(i={action:`POP`,location:t,retry(){v(n*-1)}},v(n))}}else h(`POP`)}}t.addEventListener(li,a);let o=`POP`,[s,c]=r(),l=ti(),u=ti();s??(s=0,n.replaceState({...n.state,idx:s},``,d(c)));function d(e){return typeof e==`string`?e:ai(e)}function f(e,t=null){return si({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?oi(e):e,state:t,key:ni()})}function p(e,t){return[{usr:e.state,key:e.key,idx:t},d(e)]}function m(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function h(e){o=e,[s,c]=r(),l.call({action:o,location:c})}function g(e,r){let i=`PUSH`,a=f(e,r);function o(){g(e,r)}if(m(i,a,o)){let[e,r]=p(a,(s??0)+1);try{n.pushState(e,``,r)}catch{t.location.assign(r)}h(i)}}function _(e,t){let r=`REPLACE`,i=f(e,t);function a(){_(e,t)}if(m(r,i,a)){let[e,t]=p(i,s??0);n.replaceState(e,``,t),h(r)}}function v(e){n.go(e)}return{get index(){return s},get action(){return o},get location(){return c},createHref:d,push:g,replace:_,go:v,back(){v(-1)},forward(){v(1)},listen(e){return l.push(e)},block(e){let n=u.push(e);return u.length===1&&t.addEventListener(ci,ii),()=>{n(),u.length||t.removeEventListener(ci,ii)}}}}function fi(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e=`/`,search:r=``,hash:i=``}=oi(t.location.hash.slice(1)),a=n.state??{};return[a.idx??null,si({pathname:e,search:r,hash:i,state:a.usr??null,key:a.key??`default`})]}let i=null;function a(){if(i)u.call(i),i=null;else{let[e,t]=r();if(u.length){if(e!=null){let n=(s??0)-e;n&&(i={action:`POP`,location:t,retry(){y(n*-1)}},y(n))}}else g(`POP`)}}t.addEventListener(li,a),t.addEventListener(ui,()=>{let[,e]=r();ai(e)!==ai(c)&&a()});let o=`POP`,[s,c]=r(),l=ti(),u=ti();s??(s=0,n.replaceState({...n.state,idx:s},``));function d(){let e=document.querySelector(`base`),n=``;if(e?.getAttribute(`href`)){let e=t.location.href,r=e.indexOf(`#`);n=r===-1?e:e.slice(0,r)}return n}function f(e){return d()+`#`+(typeof e==`string`?e:ai(e))}function p(e,t=null){return si({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?oi(e):e,state:t,key:ni()})}function m(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function h(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function g(e){o=e,[s,c]=r(),l.call({action:o,location:c})}function _(e,r){let i=`PUSH`,a=p(e,r);function o(){_(e,r)}if(h(i,a,o)){let[e,r]=m(a,(s??0)+1);try{n.pushState(e,``,r)}catch{t.location.assign(r)}g(i)}}function v(e,t){let r=`REPLACE`,i=p(e,t);function a(){v(e,t)}if(h(r,i,a)){let[e,t]=m(i,s??0);n.replaceState(e,``,t),g(r)}}function y(e){n.go(e)}return{get index(){return s},get action(){return o},get location(){return c},createHref:f,push:_,replace:v,go:y,back(){y(-1)},forward(){y(1)},listen(e){return l.push(e)},block(e){let n=u.push(e);return u.length===1&&t.addEventListener(ci,ii),()=>{n(),u.length||t.removeEventListener(ci,ii)}}}}function pi(e={}){let{initialEntries:t=[`/`],initialIndex:n}=e,r=t.map(e=>si({pathname:`/`,search:``,hash:``,state:null,key:ni(),...typeof e==`string`?oi(e):e})),i=ri(n??r.length-1,0,r.length-1),a=`POP`,o=r[i],s=ti(),c=ti();function l(e){return typeof e==`string`?e:ai(e)}function u(e,t=null){return si({pathname:o.pathname,search:``,hash:``,...typeof e==`string`?oi(e):e,state:t,key:ni()})}function d(e,t,n){return!c.length||(c.call({action:e,location:t,retry:n}),!1)}function f(e,t){a=e,o=t,s.call({action:a,location:o})}function p(e,t){let n=`PUSH`,a=u(e,t);function o(){p(e,t)}d(n,a,o)&&(i+=1,r.splice(i,r.length,a),f(n,a))}function m(e,t){let n=`REPLACE`,a=u(e,t);function o(){m(e,t)}d(n,a,o)&&(r[i]=a,f(n,a))}function h(e){let t=ri(i+e,0,r.length-1),n=r[t];function a(){h(e)}d(`POP`,n,a)&&(i=t,f(`POP`,n))}return{get index(){return i},get action(){return a},get location(){return o},createHref:l,push:p,replace:m,go:h,back(){h(-1)},forward(){h(1)},listen(e){return s.push(e)},block(e){return c.push(e)}}}function mi({routerKey:e,fallbackRoute:n,push:r,getData:i}){let a=(0,t.reactive)(s(n)),o=e=>{Object.assign(a,s(e))};function s(e){return{...e,data:i(e)}}let c=a;return{currentRoute:c,routerRoute:ur(e,c,r),updateRoute:o}}function hi(e){return t=>{let{host:n}=R(t);return n!==void 0&&n!==e}}function gi(){let e=new Set,t=(...t)=>{t.forEach(t=>{e.add(t),t.catch(()=>void 0).finally(()=>e.delete(t))})};return{add:t,wrap:e=>(...n)=>{let r=e(...n);return t(r),r},idle:async()=>{for(;e.size>0;)await Promise.allSettled([...e])}}}var _i={kind:`pending`},vi={kind:`running`},yi={kind:`missing`};function bi(){let e=(0,t.reactive)(new Map),n=new AbortController;function r(){let{promise:e,resolve:n,reject:r}=Promise.withResolvers();return e.catch(()=>{}),(0,t.markRaw)({promise:e,resolve:n,reject:r,state:(0,t.shallowRef)(_i)})}function i(t){let n=e.get(t);if(n)return n;let i=r();return e.set(t,i),i}function a(e,t){let n=e.state.value;n.kind!==`value`&&n.kind!==`error`&&(e.state.value=t,t.kind===`value`?e.resolve(t.value):e.reject(t.error))}return{subscribe:e=>i(e).promise,set:(e,t)=>{let n=i(e);if(n.state.value.kind===`pending`){n.state.value=vi;try{let e=t();if(fe(e)){e.then(e=>a(n,{kind:`value`,value:e}),e=>a(n,{kind:`error`,error:e}));return}a(n,{kind:`value`,value:e})}catch(e){a(n,{kind:`error`,error:e})}}},get:t=>e.get(t)?.state.value??yi,signal:n.signal,dispose:t=>{n.abort(t);for(let[n,r]of e)e.delete(n),a(r,{kind:`error`,error:t})}}}function xi(){let e={current:bi()};return{current:()=>e.current,stage:t=>{e.staged?.dispose(new d),e.staged=t},staged:()=>(e.staged??=bi(),e.staged),promote:()=>{let t=e.current;return e.current=e.staged??bi(),e.staged=void 0,t}}}function Si(e,t,n,r){return[e,t,n,r.id,r.href].join(`-`)}function Ci(e){return e.matches.flatMap((t,n)=>[...Ti(t).map(r=>wi(r,t,n,e,t.views[r.name].props,t.views[r.name])),...Ei(t).map(r=>wi(r,t,n,e,t.loaders[r.name].load,t.loaders[r.name]))])}function wi(e,t,n,r,i,{prefetch:a,transformer:o}){return{...e,depth:n,key:Si(e.kind,e.id,e.name,r),run:i,routePrefetch:t.prefetch,prefetch:a,transformer:o}}function Ti(e){return mn(e.views).map(t=>({kind:`props`,id:e.id,name:t}))}function Ei(e){return Object.keys(e.loaders).map(t=>({kind:`loader`,id:e.id,name:t}))}function Di(e){return t=>t.kind===e}function Oi(){let{setVueApp:e,runWithContext:n}=Yn(),r=xi(),i=()=>{let e={store:bi()},t=()=>{e.store.dispose(new d)},n=()=>{t(),e.store=bi()},i=()=>{r.stage(e.store),e.store=bi()};return{...s(()=>e.store),stage:i,reset:n,dispose:t}},a=()=>s(()=>r.staged()),o=e=>(r.promote().dispose(new d),s(()=>r.current()).compute(e));function s(e){return{compute:(t,n=()=>!0)=>{let r=e(),i=Ci(t).filter(n),a=u(r,t,i.filter(Di(`loader`))),o=u(r,t,i.filter(Di(`props`)));return a.catch(()=>{}),o.catch(()=>{}),{props:o,loaders:a,values:i.map(({key:e})=>r.subscribe(e))}},fill:(t,n)=>{let r=e(),i=Ci(t);for(let{kind:e,depth:t,name:a,value:o}of n){let n=i.find(n=>n.kind===e&&n.depth===t&&n.name===a);n&&r.set(n.key,()=>o)}}}}let l=e=>{let t=r.current();return Ci(e).flatMap(({kind:e,depth:n,name:r,key:i})=>{let a=t.get(i);return a.kind===`value`?[{kind:e,depth:n,name:r,value:a.value}]:[]})};async function u(e,t,n){n.forEach(n=>{e.set(n.key,()=>m(n,t,e))});try{return await Promise.all(n.map(({key:t})=>e.subscribe(t))),{status:`SUCCESS`}}catch(e){if(e instanceof d)return{status:`ABANDONED`};if(e instanceof H||e instanceof Hn)return e.response;throw e}}let f=(e,t,n)=>{let i=Si(`props`,e,t,n),a=r.current().get(i);switch(a.kind){case`missing`:return Ai;case`pending`:case`running`:return ji(r.current().subscribe(i));case`value`:case`error`:return a;default:return a}};function p(e,t){return _(Ci(e).filter(Di(`loader`)),ln,e,t)}function m(e,t,r){let{push:i,replace:a,reject:o,update:s}=Zn({to:t});return n(()=>e.run(h(e,t,r),{push:i,replace:a,reject:o,update:s,signal:r.signal,parent:g(t,e.depth,r)}))}function h({kind:e,name:t},n,r){return new Proxy(n,{get(i,a,o){if(a!==`data`)return Reflect.get(i,a,o);if(e===`loader`)throw new c(t);return p(n,r)}})}function g(e,t,n){if(t===0)return;let r=e.matches[t-1],{name:i=``}=r;return{name:i,get props(){return _(Ti(r),pn,e,n)},get data(){return _(Ei(r),ln,e,n)}}}function _(e,n,r,i){if(e.length===0)return;let[a]=e;if(e.length===1&&a.name===n)return v(a,r,i);let o=t=>e.find(({name:e})=>e===t);return(0,t.markRaw)(new Proxy({},{get(e,t){let n=o(t);return n?v(n,r,i):Reflect.get(e,t)},has(e,t){return!!o(t)||Reflect.has(e,t)},ownKeys(){return e.map(({name:e})=>e)},getOwnPropertyDescriptor(e,t){let n=o(t);return n?{configurable:!0,enumerable:!0,value:v(n,r,i)}:Reflect.getOwnPropertyDescriptor(e,t)}}))}function v(e,t,n){let i=Si(e.kind,e.id,e.name,t),a=r.current();if(!n||n===a)return a.subscribe(i);n.get(i).kind===`missing`&&a.get(i).kind===`missing`&&Mi(e,t);let o=ki([n.subscribe(i),r.current().subscribe(i)]);return o.catch(()=>{}),o}return{createDetachedStore:i,staged:a,commit:o,getValues:l,getProps:f,getData:p,setVueApp:e}}async function ki(e){try{return await Promise.any(e)}catch(e){throw e instanceof AggregateError?e.errors.find(e=>!(e instanceof d))??e.errors[0]:e}}var Ai={kind:`value`,value:void 0};async function ji(e){try{return{kind:`value`,value:await e}}catch(e){return e instanceof d?Ai:{kind:`error`,error:e}}}function Mi({kind:e,name:t},n){let r=n.name||`unknown`,i=e===`props`?`props "${t}"`:`loader data "${t}"`;console.warn(`
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@kitbag/router`]={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Symbol(`IS_RESOLVED_ROUTE_SYMBOL`);function r(e){return typeof e==`object`&&!!e&&n in e}function i(e){return typeof e==`string`&&/^(https?:\/\/|\/).*/g.test(e)}function a(e){return i(e)?e:`/${e}`}function o(e){return e.viewTransition!==void 0}var s=class extends Error{constructor(e){super(`Invalid Param "${e}": Router does not support multiple params by the same name. All param names must be unique.`)}},c=class extends Error{constructor(e){super(`Loader "${e}" read the data of the route it belongs to, which cannot resolve while the loader is still running. Read a parent's data with context.parent.data, or move the shared work into a function both loaders call.`)}},l=class extends Error{constructor(e){super(`Loader "${e}" conflicts with a loader of the same name on an ancestor route.`)}},u=class extends Error{constructor(e){super(`Child property on meta for ${e} conflicts with the parent meta.`)}},d=class extends Error{constructor(){super(`Discarded before it was computed because navigation moved elsewhere.`)}},f=class extends Error{constructor(e,t,n,r){super(`Unable to ${e} the payload value for ${t} "${n}"`,{cause:r})}},p=class extends Error{constructor(){super(`Router not installed`)}},m=class extends Error{constructor(e,t){super(`useRoute called with incorrect route. Given ${e}, expected ${t}`)}},h=class extends Error{constructor(){super(`Calling render requires the router to be created for server rendering: createRouter(routes, { ssr: true })`)}},g=class extends Error{constructor(e,t){super(`Invalid Path "${t}" for route "${e}": Url pathnames always start with "/", so this route can never match a url. Make sure the combined path of the route and its parents starts with "/".`)}};function _(){let e=0;return()=>(++e).toString()}var v=_();function y(e,t){return b(e,t),{...e,...t}}function b(e,t){let n=Object.keys(e).find(n=>n in t&&typeof t[n]!=typeof e[n]);if(n)throw new u(n)}function x(e,t){return e.filter(e=>t===e).length}function S(...e){let t=e.flatMap(e=>Array.isArray(e)?e:Object.keys(e));for(let e of t)if(x(t,e)>1)throw new s(e)}function ee(e,t){return S(e,t),{...e,...t}}function C(e=[],t=[]){return[...new Set([...e,...t])]}var w=Symbol(`IS_ROUTE_SYMBOL`);function T(e){return typeof e==`object`&&!!e&&w in e}var E={NotFound:404},te=`NotFound`,D=Symbol(`IS_REJECTION_SYMBOL`);function O(e){return typeof e==`object`&&!!e&&D in e}function k(e){return e&&(T(e)||r(e)||O(e))?e.hooks:[]}function ne(e,t){return[...k(e),...k(t)]}var re=class extends Error{context;constructor(e={}){super(e.message??`Uncaught InvalidRouteParamValueError`),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...e}}};function ie(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function ae(e){return typeof e==`function`&&ie(e)}function oe(e){return typeof e==`object`&&`get`in e&&typeof e.get==`function`&&`set`in e&&typeof e.set==`function`}function se(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`}function ce(e,t){return oe(e)?{...e,defaultValue:t??e.defaultValue}:{get:t=>Ke(t,{param:e}),set:t=>L(t,{param:e}),defaultValue:t}}function le(e){return oe(e)&&e.defaultValue!==void 0}function ue(e,t){return ce(e,t)}function de(e){return!e.global&&!e.sticky?e:new RegExp(e.source,e.flags)}function A(e){return e!==void 0}function j(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function M(e){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`}function N(e){return typeof e==`string`&&e.length>0}var fe=class extends Error{constructor(e){super(`Unsupported schema vendor: ${e[`~standard`].vendor}`)}};function pe(e){return typeof e==`object`&&!!e&&`then`in e}function me(e){return e.aborted?Promise.resolve():new Promise(t=>{e.addEventListener(`abort`,()=>{t()})})}function P(e){return j(e)&&`parse`in e&&typeof e.parse==`function`&&`def`in e&&j(e.def)&&typeof e.def.type==`string`&&`~standard`in e&&j(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`zod`}function he(e){return j(e)&&`type`in e&&typeof e.type==`string`&&`~standard`in e&&j(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`valibot`}function ge(e){return typeof e==`function`&&`extends`in e&&typeof e.extends==`function`&&`branches`in e&&Array.isArray(e.branches)&&`~standard`in e&&j(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`arktype`}function _e(e){return P(e)||he(e)||ge(e)}function ve(e){return{get:(t,{invalid:n})=>{try{return Ie(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Le(t,e)}catch{throw n()}}}}function F(e,t){let n=e[`~standard`].validate(t);if(pe(n))throw Error(`Promise schemas are not supported`);if(n.issues)throw Error(`Validation failed`);return n.value}function ye(e){if(P(e))return be(e);if(he(e))return Se(e);if(ge(e))return Ce(e);throw new fe(e)}function be(e){return e.def.type}var xe={picklist:`enum`,variant:`union`,intersect:`intersection`};function Se(e){return xe[e.type]??e.type}function Ce(e){return e.extends(`Date`)?`date`:e.extends(`Map`)?`map`:e.extends(`Set`)?`set`:e.extends(`Array`)?`array`:e.extends(`string`)?`string`:e.extends(`number`)?`number`:e.extends(`bigint`)?`bigint`:e.extends(`boolean`)?`boolean`:e.branches.length>1?`union`:e.extends(`object`)?`object`:`unknown`}function we(e){if(P(e))return Te(e);if(he(e))return Ee(e);if(ge(e))return De(e);throw new fe(e)}function Te(e){return`options`in e.def?e.def.options:void 0}function Ee(e){return`options`in e?e.options:void 0}function De(e){return e.branches.length>1?e.branches:void 0}var Oe=[`optional`,`nullable`,`default`,`prefault`,`nonoptional`,`catch`,`readonly`],ke=[`optional`,`nullable`,`nullish`,`exact_optional`,`undefinedable`];function I(e){return P(e)&&Oe.includes(e.def.type)&&`innerType`in e.def?I(e.def.innerType):he(e)&&ke.includes(e.type)&&`wrapped`in e?I(e.wrapped):e}var Ae=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function je(e,t){if(typeof t==`string`&&Ae.test(t)){let e=new Date(t);return isNaN(e.getTime())?t:e}return t}function Me(e){return e===`true`||e!==`false`&&e}function Ne(e){for(let t of e)try{return t()}catch{continue}throw Error(`All functions failed`)}function Pe(e,t){return ye(I(e))===`string`?1:ye(I(t))===`string`?-1:0}function Fe(e,t,n=e=>e){return Ne([()=>F(t,n(JSON.parse(e))),()=>F(t,n(JSON.parse(e,je)))])}function Ie(e,t){let n=I(t);if(n!==t)return e===`null`?Ne([()=>F(t,Ie(e,n)),()=>F(t,null)]):F(t,Ie(e,n));let r=ye(t);if(r===`string`)return F(t,e);if(r===`boolean`)return F(t,Me(e));if(r===`date`)return F(t,new Date(e));if(r===`number`)return F(t,Number(e));if(r===`bigint`)return F(t,BigInt(e));if(r===`nan`)return F(t,Number(e));if(r===`literal`||r===`enum`)return Ne([()=>F(t,Number(e)),()=>F(t,Me(e)),()=>F(t,e)]);if(r===`object`||r===`array`||r===`tuple`||r===`record`)return Fe(e,t);if(r===`union`){let n=we(t);if(n)return Ne(Array.from(n).sort(Pe).map(t=>()=>Ie(e,t)))}if(r===`map`)return Fe(e,t,e=>new Map(e));if(r===`set`)return Fe(e,t,e=>new Set(e));if(r===`intersection`)throw Error(`Intersection schemas are not supported`);if(r===`promise`)throw Error(`Promise schemas are not supported`);if(r===`function`)throw Error(`Function schemas are not supported`);return F(t,e)}function Le(e,t){let n=I(t);if(n!==t)return e===null?String(F(t,null)):Le(e,n);let r=ye(t);if(r===`string`||r===`boolean`||r===`nan`||r===`literal`||r===`enum`)return String(F(t,e));if(r===`date`)return F(t,e).toISOString();if(r===`number`)return String(F(t,Number(e)));if(r===`bigint`)return String(F(t,BigInt(String(e))));if(r===`object`||r===`array`||r===`tuple`||r===`record`)return JSON.stringify(F(t,e));if(r===`union`){let n=we(t);if(n)return Ne(Array.from(n).sort(Pe).map(t=>()=>Le(e,t)))}if(r===`map`)return JSON.stringify(Array.from(F(t,e).entries()));if(r===`set`)return JSON.stringify(Array.from(F(t,e).values()));if(r===`intersection`)throw Error(`Intersection schemas are not supported`);if(r===`promise`)throw Error(`Promise schemas are not supported`);if(r===`function`)throw Error(`Function schemas are not supported`);return JSON.stringify(F(t,e))}function Re(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 ze(e,t){return e[t]??String}function Be(e){return{invalid:t=>{throw new re({...e,message:t})}}}var Ve={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!=`string`)throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},He={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()}},Ue={get:(e,{invalid:t})=>{let 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()}},We={get:(e,{invalid:t})=>{let 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()}},Ge={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 Ke(e,{param:t=String,isOptional:n=!1}={}){let r=Be({param:t,value:e,isGetter:!0});if(e===void 0||!N(e)){if(le(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return Ve.get(e,r);if(t===Boolean)return He.get(e,r);if(t===Number)return Ue.get(e,r);if(t===Date)return We.get(e,r);if(t===JSON)return Ge.get(e,r);if(_e(t))return ve(t).get(e,r);if(ae(t))return t(e,r);if(oe(t))return t.get(e,r);if(t instanceof RegExp){if(de(t).test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}return se(t)?Re(t).get(e,r):e}function qe(e,t){try{return Ke(e,t)}catch(e){if(e instanceof re)return;throw e}}function Je(e,t){try{return L(e,t)}catch(e){if(e instanceof re)return;throw e}}function L(e,{param:t=String,isOptional:n=!1}={}){let r=Be({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 He.set(e,r);if(t===Number)return Ue.set(e,r);if(t===Date)return We.set(e,r);if(t===JSON)return Ge.set(e,r);if(_e(t))return ve(t).set(e,r);if(oe(t))return t.set(e,r);if(se(t))return Re(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}var Ye=`\\[\\??([\\w-_]+)\\*?\\]`,Xe=`\\[\\?([\\w-_]+)\\*?\\]`,Ze=`\\[\\??([\\w-_]+)\\*\\]`,Qe=`[^/]*`,$e=`([^/]*)`,et=`(.*)`;function tt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function nt(e,t){let n=Array.from(e.matchAll(t));if(n.length===0)return[e];let r=0,i=n.reduce((t,n)=>{let i=e.slice(r,n.index);i.length&&t.push(i);let[a]=n;return t.push(a),r=n.index+a.length,t},[]),a=e.slice(r);return a&&i.push(a),i}function rt(e){let t=st(e);return RegExp(`^${t||`.*`}$`,`i`)}function it(e){let t=st(e);return RegExp(`^${t}$`,`i`)}function at(e){let t=st(e.replace(/^#*/,``));return RegExp(`^#?${t||`.*`}$`,`i`)}function ot(e){let t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,e])=>!ut(e)).map(([e,t])=>{let n=st(t);return RegExp(`(^|&)${tt(e)}=${n}(&|$)`,`i`)})}function st(e){return nt(e,new RegExp(Ye,`g`)).map(e=>e.startsWith(`[`)?ct(e):tt(e)).join(``)}function ct(e){return e.replace(new RegExp(Ye,`g`),e=>dt(e)?`.*`:Qe)}function lt(e,t){let{isGreedy:n}=e.params[t]??{},r=n?et:$e;return nt(e.value,new RegExp(Ye,`g`)).map(e=>ft(e)===t?r:st(e)).join(``)}function ut(e){return new RegExp(Xe,`g`).test(e)}function dt(e){return new RegExp(Ze,`g`).test(e)}function ft(e){let[t]=mt(e,new RegExp(Ye,`g`));return t}function pt(e){return RegExp(`\\[\\??${e}\\*?\\]`,`g`)}function mt(e,t){return Array.from(e.matchAll(t)).flatMap(([,...e])=>e.map(e=>N(e)?e:``))}function ht(e=``,t={}){return N(e)?Array.from(e.matchAll(new RegExp(Ye,`g`))).reduce((e,[n,r])=>{let i=ft(n);if(!i)return e;let a=ze(t,i),o=ut(n)||le(a),s=dt(n);return S([i],e),e[r]={param:a,isOptional:o,isGreedy:s},e},{}):{}}var gt=Symbol(`UrlPartsWithParams`);function _t(e){return j(e)&&e[gt]===!0}function R(e){return e===void 0?vt():_t(e)?e:vt(e,{})}function vt(e,t){return{value:e??``,params:ht(e,t),[gt]:!0}}function yt(e){if(typeof e==`string`||e===void 0||_t(e))return R(e);let t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(let[e,i]of t)if(se(i))n.push(`${e}=${i}`);else{let t=`[${e}]`,a=ft(t);a&&(r[a]=i),n.push(`${a}=${t}`)}return vt(n.join(`&`),r)}function bt(e){return e.replace(/[%[\]]/g,encodeURIComponent)}function xt(e){if(e!==void 0)try{return decodeURIComponent(e)}catch{return e}}function St(e,t,n){let r=lt(t,n),[i]=mt(e,new RegExp(r,`g`));return i}function Ct(e,t,n,r){let i=bt(L(r,t.params[n]));return e.replace(pt(n),()=>i)}function wt(...e){let t=new URLSearchParams;for(let n of e){let e=new URLSearchParams(n);for(let[n,r]of e.entries())t.append(n,r)}return t}var Tt=`https://internal.invalid`;function Et(e){let t=new URL(e.host??Tt,Tt);return t.pathname=e.path??``,t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??``,a(t.toString().replace(RegExp(`^${Tt}/*`),`/`))}function z(e){return e.startsWith(`http`)?Ot(e):kt(e)}function Dt(e,t){if(typeof e==`string`)return Et(Dt(z(e),t));let n=new URLSearchParams(t.query);return{host:N(t.host)?t.host:e.host,path:N(t.path)?t.path:e.path??``,query:wt(e.query,n),hash:N(t.hash)?t.hash:e.hash??``}}function Ot(e){let{protocol:t,host:n,pathname:r,searchParams:i,hash:a}=new URL(e,e);return{host:`${t}//${n}`,path:r,query:i,hash:a}}function kt(e){let{pathname:t,searchParams:n,hash:r}=new URL(e,Tt);return{path:t,query:n,hash:r}}var At=Symbol(`IS_URL_SYMBOL`);function B(e){return typeof e==`object`&&!!e&&At in e}function jt(e){let t={host:R(e.host),path:R(e.path),query:Nt(yt(e.query)),hash:Mt(R(e.hash))};S(t.path.params,t.query.params,t.host.params,t.hash.params);let n={...t.host,regexp:rt(t.host.value),stringify(e={}){return Pt(t.host,e)}},r={...t.path,regexp:{trailingSlashIgnored:it(t.path.value),trailingSlashRemoved:it(t.path.value.replace(/^(.+)\/$/,`$1`))},stringify(e={}){return Pt(t.path,e)}},i={...t.query,regexp:ot(t.query.value),stringify(e={}){return Ft(t.query,e).toString()}},a={...t.hash,regexp:at(t.hash.value),stringify(e={}){return Pt(t.hash,e)}};function o(e={}){return Et({host:n.stringify(e),path:r.stringify(e),query:i.stringify(e),hash:a.stringify(e)})}function s(e){return n.regexp.test(e.host??``)}function c(e,t){return(t.removeTrailingSlashes??!0?r.regexp.trailingSlashRemoved:r.regexp.trailingSlashIgnored).test(e.path)}function l(e){let t=e.query.toString();return i.regexp.every(e=>e.test(t))}function u(e){return a.regexp.test(e.hash)}function d(e,t={}){let n=z(e);return s(n)&&c(n,t)&&l(n)&&u(n)}function f(e,t){if(!s(e))throw Error(`Host does not match`);if(!c(e,t))throw Error(`Path does not match`);if(!l(e))throw Error(`Query does not match`);if(!u(e))throw Error(`Hash does not match`)}function p(e,t={}){let o=z(e);return f(o,t),{...It(n,o.host??``),...It(r,o.path),...Lt(i,o.query.toString()),...It(a,o.hash)}}function m(e,t={}){try{return{success:!0,params:p(e,t)}}catch(e){return{success:!1,params:{},error:Error(`Failed to parse url`,{cause:e})}}}return{[At]:!0,schema:{host:n,path:r,query:i,hash:a},params:{},isMatch:d,isRelative:!N(t.host.value),stringify:o,parse:p,tryParse:m}}function Mt(e){return{...e,value:e.value.replace(/^#/,``)}}function Nt(e){return{...e,value:e.value.replace(/^\?/,``)}}function Pt(e,t){return Object.keys(e.params).reduce((n,r)=>Ct(n,e,r,t[r]),e.value)}function Ft(e,t){let n=new URLSearchParams(e.value);if(!e.value)return n;for(let[r,i]of Array.from(n.entries())){let a=ft(i);if(!a)continue;let o=L(t[a],e.params[a]),s=t[a]===void 0&&o===``;e.params[a].isOptional&&s?n.delete(r,i):n.set(r,o)}return n}function It(e,t){let n={};for(let[r,i]of Object.entries(e.params))n[r]=Ke(xt(St(t,e,r)),i);return n}function Lt(e,t){let n={},r=new URLSearchParams(e.value),i=new URLSearchParams(t);for(let[t,a]of Array.from(r.entries())){let r=ft(a);r&&(n[r]=Ke(i.get(t)??void 0,e.params[r]))}return n}function Rt(e,t){S(e.params,t.params);let n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function zt(e,t){S(e.params,t.params);let n=[e.value,t.value].filter(N).join(`&`);return{...e,value:n,params:{...e.params,...t.params}}}function Bt(e,t){return Rt(e,t)}function Vt(e,t){if(!B(e))throw Error(`Parent is not a valid url`);if(!B(t))return jt({host:e.schema.host,path:Rt(e.schema.path,R(t.path)),query:zt(e.schema.query,yt(t.query)),hash:Bt(e.schema.hash,R(t.hash))});if(!B(t))throw Error(`Child is not a valid url`);return jt({host:e.schema.host,path:Rt(e.schema.path,t.schema.path),query:zt(e.schema.query,t.schema.query),hash:Bt(e.schema.hash,t.schema.hash)})}function Ht(e,t){let n=t.matches.at(-1);return!n||!T(e)?[]:qt(e.aliases,Wt(n))}function Ut(e,t,n){let r=Kt(e),i=Gt(t,n);return r?qt(Jt(r),i):[{url:jt(i),transform:Yt(i)}]}function Wt(e){return{path:R(e.path),query:yt(e.query),hash:R(e.hash),transform:void 0}}function Gt(e,t){return{path:R(e.path),query:yt(e.query),hash:R(e.hash),transform:t}}function Kt(e){if(!(e.hoist||!T(e.parent)))return e.parent}function qt(e,t){let n=Yt(t);return e.map(e=>({url:Vt(e.url,t),transform:(t,r)=>({...e.transform(t,r),...n(t,r)})}))}function Jt(e){return[{url:e,transform:Zt(Xt(e))},...T(e)?e.aliases:[]]}function Yt(e){let t=Zt([e.path,e.query,e.hash].flatMap(e=>Object.keys(e.params))),{transform:n}=e;return n?(e,r)=>n({url:e,params:t(e,r)}):t}function Xt(e){return B(e)?Object.values(e.schema).flatMap(e=>Object.keys(e.params)):[]}function Zt(e){return(t,n)=>{let r={};for(let t of e)t in n&&(r[t]=n[t]);return r}}function Qt(e){return`parent`in e&&!!e.parent}function $t(e,t,n=!1){if(!T(e)||!T(t))throw Error(`combineRoutes called with invalid route arguments`);let r={...t,meta:y(e.meta,t.meta),state:ee(e.state,t.state),hooks:ne(e,t),matches:[...e.matches,...t.matches],context:C(e.context,t.context),depth:e.depth+1};return n?r:{...r,...Vt(e,t),aliases:Ht(e,t)}}function en(e){return e===void 0?``:e}var V=class{onHookAdded=new Set;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},tn=class extends Error{},nn=class extends tn{response;constructor(e){super(`Uncaught ContextRedirectError`),this.response={status:`REDIRECT`,to:e}}},rn=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Router does not support multiple redirects to the same route. All redirects must be unique.`)}};function an(){let e=new V,t=(t,n,r)=>{if(e.redirects.size>0)throw new rn(t.name);let i=(e,{redirectStatus:i})=>{throw new nn([t.name,n?.(e.params),{replace:!0,redirectStatus:r?.status??i}])};return e.redirects.add(i),()=>e.redirects.delete(i)};function n(t,n){for(let t of e.onHookAdded)t(n);return t.add(n),()=>t.delete(n)}return{redirect:t,onBeforeRouteEnter:t=>n(e.onBeforeRouteEnter,t),onBeforeRouteUpdate:t=>n(e.onBeforeRouteUpdate,t),onBeforeRouteLeave:t=>n(e.onBeforeRouteLeave,t),onAfterRouteEnter:t=>n(e.onAfterRouteEnter,t),onAfterRouteUpdate:t=>n(e.onAfterRouteUpdate,t),onAfterRouteLeave:t=>n(e.onAfterRouteLeave,t),onError:t=>(e.onError.add(t),()=>e.onError.delete(t)),onRejection:t=>(e.onRejection.add(t),()=>e.onRejection.delete(t)),store:e}}function on(e){let t;return{setTitle:e=>{t=e},getTitle:async n=>{let r=async()=>{if(e&&T(e))return e.getTitle(n)};return t?t(n,{from:n,getParentTitle:r}):r()}}}var sn=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Route does not support redirects.`)}};function cn(e,t,n,r){if(!T(e))throw new sn(e.name);t.context.push(e),e.context.push(t),e.redirect(t,n,r)}var ln=Symbol(`IS_LOADER_SYMBOL`);function un(e){return typeof e==`object`&&!!e&&ln in e}var dn=`default`;function fn(e,t){if(typeof e==`function`)return{name:t?.name??`default`,load:e,prefetch:t?.prefetch,transformer:t?.transformer};if(!un(e))throw TypeError(`Expected a loader created by createLoader`);return{...e,name:t?.name??`default`,prefetch:t?.prefetch??e.prefetch,transformer:t?.transformer??e.transformer}}function pn(e,n){return(0,t.markRaw)({...e,context:C(e.context,n.context),loaders:{...e.loaders,[n.name]:n}})}function mn(e,t){if(e.some(e=>t in e.loaders))throw new l(t)}var hn=`default`;function gn(e){return Object.keys(e).filter(t=>e[t].props)}var _n=Symbol(`IS_VIEW_SYMBOL`);function vn(e){return typeof e==`object`&&!!e&&_n in e}function yn(e,t){return vn(e)?{...e,name:t?.name??`default`,prefetch:t?.prefetch??e.prefetch,transformer:t?.transformer??e.transformer}:{name:t?.name??`default`,component:e,props:t?.props,prefetch:t?.prefetch,transformer:t?.transformer}}function bn(e,n){return(0,t.markRaw)({...e,context:C(e.context,n.context),views:{...e.views,[n.name]:n}})}function xn(e){function t(t){let n=e.matches.at(-1);if(!n)return xn(e);let r=t(n);return xn({...e,context:C(e.context,r.context),matches:[...e.matches.slice(0,-1),r]})}let n=(e,n)=>{let r=yn(e,n);return t(e=>bn(e,r))},r=(n,r)=>{let i=fn(n,r);return mn(e.matches.slice(0,-1),i.name),t(e=>pn(e,i))},i=(t,n)=>{let r=e.matches.at(-1);if(!r||!T(e))return xn(e);let i=Ut(r,t,n);return xn({...e,aliases:[...e.aliases,...i]})},a=(...[t,n,r])=>{cn(e,t,n,r)},o=(t,n,r)=>{cn(t,e,n,r)};return{...e,addView:n,addLoader:r,addAlias:i,redirectTo:a,redirectFrom:o}}function Sn(e){let n=v(),r=en(e.name),i=R(e.path),a=yt(e.query),o=R(e.hash),s=e.meta??{},c=e.state??{},l=e.context??[],{store:u,redirect:d,...f}=an(),{setTitle:p,getTitle:m}=on(e.parent),h=(0,t.markRaw)({...e,id:n,meta:s,state:c,name:r,views:{},loaders:{}}),g=jt({path:i,query:a,hash:o}),_={[w]:!0,depth:1,hooks:[u],getTitle:m,redirect:d,aliases:[]},y={id:n,matches:[h],name:r,meta:s,state:c,context:l,prefetch:e.prefetch,setTitle:p,...g,...f,..._};return Qt(e)?xn($t(e.parent,y,e.hoist)):xn(y)}function Cn(){let e=new V;return{onRejection:t=>(e.onRejection.add(t),()=>e.onRejection.delete(t)),store:e}}function wn(e){return(0,t.defineComponent)(()=>()=>(0,t.h)(`h1`,e),{name:e,props:[]})}function Tn(e,t){let{route:n,params:r,alias:i}=t;if(!B(n))throw Error(`createCanonicalUrl called with an invalid url`);let a=n.stringify(r);if(!i)return e;let o=z(e),s=z(a),c=new URLSearchParams(n.schema.query.value);for(let[e,t]of o.query)c.has(e)||s.query.append(e,t);return n.schema.hash.value||(s.hash=o.hash),Et(s)}function En(e){let t=new URLSearchParams(e);return{get:(...e)=>t.get(...e),getAll:(...e)=>t.getAll(...e),set:(...e)=>{t.set(...e)},append:(...e)=>{t.append(...e)},delete:(...e)=>{t.delete(...e)},toString:(...e)=>t.toString(...e),forEach:(...e)=>{t.forEach(...e)},entries:(...e)=>t.entries(...e),keys:(...e)=>t.keys(...e),values:(...e)=>t.values(...e),has:(...e)=>t.has(...e),size:t.size,sort:()=>{t.sort()},[Symbol.iterator]:()=>t[Symbol.iterator]()}}function Dn(e){return!!e&&typeof e==`object`}var On={isOptional:!0,isGreedy:!1};function kn(e,t,n){if(Dn(e)&&t in e){let r=e[t];return typeof r==`string`?Ke(r,{param:n,...On}):r}return Ke(void 0,{param:n,...On})}function An(e,t){let n={};for(let[r,i]of Object.entries(e))n[r]=kn(t,r,i);return n}function jn(e,t,n){if(Dn(e)&&t in e){let r=e[t];return L(r,{param:n,...On})}return L(void 0,{param:n,...On})}var Mn=(e,t)=>{let n={};for(let[r,i]of Object.entries(e))n[r]=jn(t,r,i);return n};function Nn(e,t,n){let r=e.stringify(t);return n?{canonical:r,href:n.url.stringify(n.params)}:{canonical:r,href:r}}function Pn(e,t,n){let r=Nn(e,t,n.alias),i={query:new URLSearchParams(n.query),hash:n.hash},a=Dt(r.href,i),o=Tn(a,{route:e,params:t,alias:n.alias}),{query:s,hash:c}=z(a);return{canonical:o,href:a,query:s,hash:c}}function Fn(e,t={},r={}){let{canonical:i,href:a,query:o,hash:s}=Pn(e,t,r),c=e.matches.at(-1);if(!c)throw Error(`createResolvedRoute called with a route that has no matches`);async function l(t){if(T(e))return e.getTitle(t)}let u={[n]:!0,id:e.id,name:e.name,matches:e.matches,hooks:k(e),getRouteTitle:l,matched:c,query:En(o),state:An(e.state,r.state),hash:s,params:t,href:a,canonical:i,getTitle:()=>l(u)};return u}function In({type:e,component:n,status:r}){let{store:i,...a}=Cn(),o=Sn({name:e}).addView((0,t.markRaw)(n??wn(e))),{setTitle:s}=o,c=()=>Fn(o).getTitle(),l={[D]:!0,route:o,hooks:[i]};return{type:e,status:r,setTitle:s,getTitle:c,...a,...l}}function Ln(e){let n=v(),r=en(e.name),i=R(e.path),a=yt(e.query),o=R(e.hash),s=e.meta??{},c=R(e.host),l=e.context??[],{store:u,redirect:d,...f}=an(),{getTitle:p,setTitle:m}=on(e.parent),h=(0,t.markRaw)({id:n,meta:{},state:{},...e,views:{},loaders:{}}),g=jt({host:c,path:i,query:a,hash:o}),_={[w]:!0,depth:1,hooks:[u],getTitle:p,redirect:d,aliases:[]},y=(...[e,t,n])=>{cn(x,e,t,n)},b=(e,t,n)=>{cn(e,x,t,n)},x={id:n,matches:[h],name:r,meta:s,state:{},context:l,setTitle:m,...f,redirectTo:y,redirectFrom:b,...g,..._};return Qt(e)?$t(e.parent,x,e.hoist):x}var Rn=Symbol(`IS_HOOK_SYMBOL`);function zn(e){return typeof e==`object`&&!!e&&Rn in e}function Bn(e){let t=e.hook;function n(e,n){return e?t(e,n):t(e,{...n,update:void 0})}let r=[...e.context??[]],i={[Rn]:!0};return{...e,...i,hook:n,context:r}}function Vn(e){let t=[...e.context??[]],n={[_n]:!0};return{...e,...n,context:t}}function Hn(e){let t=[...e.context??[]],n={[ln]:!0};return{...e,...n,context:t}}var Un=Symbol(),Wn=(0,t.defineComponent)((e,{attrs:n,slots:r})=>{let i=(0,t.inject)(Un,void 0),a=(0,t.computed)(()=>i?.value===!1?`none`:e.name);return()=>(0,t.h)(e.as??`span`,{...n,style:[n.style,{viewTransitionName:a.value}]},r.default?.())},{name:`ViewTransition`,inheritAttrs:!1,props:[`name`,`as`]});function Gn(){let e=new Map;return t=>{let n=e.get(t);if(!n){let n=Symbol();return e.set(t,n),n}return n}}var Kn=Gn();function qn(e){let n=Kn(e);return({increment:e=!1}={})=>{let r=(0,t.inject)(n,0);return e&&(0,t.provide)(n,r+1),r}}function Jn(e){if(typeof e==`function`)return e;if(!zn(e))throw TypeError(`Expected a hook created by createHook`);return e.hook}var Yn=(e,t,n)=>{let r=e?.matches??[],i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},Xn=(e,t,n)=>{let r=e?.matches??[],i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},Zn=(e,t,n)=>e?.matches.at(n)?.id===t?.matches.at(n)?.id;function Qn(e){switch(e){case`onBeforeRouteEnter`:case`onAfterRouteEnter`:return Yn;case`onBeforeRouteUpdate`:case`onAfterRouteUpdate`:return Zn;case`onBeforeRouteLeave`:case`onAfterRouteLeave`:return Xn;default:throw Error(`Switch is not exhaustive for lifecycle: ${e}`)}}var H=class extends tn{response;constructor(e){super(`Uncaught ContextPushError`),this.response={status:`PUSH`,to:e}}},$n=class extends tn{response;constructor(e){super(`Uncaught ContextRejectionError`),this.response={status:`REJECT`,type:e}}},er=class extends tn{response;constructor(){super(`Uncaught ContextAbortError`),this.response={status:`ABORT`}}};function tr(e,t){let n=new V;return k(e).forEach((r,i,a)=>{if(i===a.length-1&&r.redirects.forEach(e=>n.redirects.add(e)),Yn(e,t,i))return r.onBeforeRouteEnter.forEach(e=>n.onBeforeRouteEnter.add(e));if(Zn(e,t,i))return r.onBeforeRouteUpdate.forEach(e=>n.onBeforeRouteUpdate.add(e))}),k(t).forEach((r,i)=>{if(Xn(e,t,i))return r.onBeforeRouteLeave.forEach(e=>n.onBeforeRouteLeave.add(e))}),n}function nr(e,t){let n=new V;return k(e).forEach((r,i)=>{if(Yn(e,t,i))return r.onAfterRouteEnter.forEach(e=>n.onAfterRouteEnter.add(e));if(Zn(e,t,i))return r.onAfterRouteUpdate.forEach(e=>n.onAfterRouteUpdate.add(e))}),k(t).forEach((r,i)=>{if(Xn(e,t,i))return r.onAfterRouteLeave.forEach(e=>n.onAfterRouteLeave.add(e))}),n}function rr(e,t,n){let r=new V;return e?.matches.forEach((i,a)=>{Yn(e,t,a)&&n.onBeforeRouteEnter.forEach(e=>r.onBeforeRouteEnter.add(e)),Zn(e,t,a)&&n.onBeforeRouteUpdate.forEach(e=>r.onBeforeRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{Xn(e,t,a)&&n.onBeforeRouteLeave.forEach(e=>r.onBeforeRouteLeave.add(e))}),r}function ir(e,t,n){let r=new V;return e?.matches.forEach((i,a)=>{Yn(e,t,a)&&n.onAfterRouteEnter.forEach(e=>r.onAfterRouteEnter.add(e)),Zn(e,t,a)&&n.onAfterRouteUpdate.forEach(e=>r.onAfterRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{Xn(e,t,a)&&n.onAfterRouteLeave.forEach(e=>r.onAfterRouteLeave.add(e))}),r}function ar(e){let t=new V;return k(e).forEach(e=>{e.onRejection.forEach(e=>t.onRejection.add(e))}),t}function or(){let e=null;function t(t){e=t}function n(t){return e?e.runWithContext(t):t()}return{setVueApp:t,runWithContext:n}}var sr=class extends Error{constructor(){super(`update called without a route to update`)}};function cr({to:e}){let t=e=>{throw new $n(e)},n=(...e)=>{throw new H(e)};return{reject:t,push:n,replace:(e,t,n)=>{throw i(e)?new H([e,{...t??{},replace:!0}]):new H([e,t,{...n??{},replace:!0}])},update:(t,r,i)=>{if(!e)throw new sr;if(typeof t==`object`){let i={...e.params,...t};return n(e.name,i,r)}let a={...e.params,[t]:r};return n(e.name,a,i)},abort:()=>{throw new er}}}var lr=Gn();function ur({redirectStatus:e,onHookAdded:t}){let{setVueApp:n,runWithContext:r}=or(),{store:i,...a}=an();t&&i.onHookAdded.add(t);let o=new V,s=async({to:t,from:n,signal:a,progress:s})=>{let{reject:c,push:u,replace:d,update:f,abort:p}=cr({to:t}),m=tr(t,n),h=rr(t,n,i),g=[...m.redirects,...h.onBeforeRouteEnter,...m.onBeforeRouteEnter,...h.onBeforeRouteUpdate,...m.onBeforeRouteUpdate,...o.onBeforeRouteUpdate,...h.onBeforeRouteLeave,...m.onBeforeRouteLeave,...o.onBeforeRouteLeave];try{let i=[];for(let o of g){let l=Jn(o);s?.expect(1);let m=Promise.resolve(r(()=>l(t,{lifecycle:`before`,from:n,reject:c,push:u,replace:d,update:f,abort:p,signal:a,redirectStatus:e})));s?.track(m),i.push(m)}await Promise.all(i)}catch(e){if(e instanceof H||e instanceof nn||e instanceof $n||e instanceof er)return e.response;try{l(e,{to:t,from:n,source:`hook`})}catch(e){if(e instanceof H||e instanceof $n)return e.response;throw e}}return{status:`SUCCESS`}},c=async({to:e,from:t,signal:n})=>{let{reject:a,push:s,replace:c,update:u}=cr({to:e}),d=nr(e,t),f=ir(e,t,i),p=[...o.onAfterRouteLeave,...d.onAfterRouteLeave,...f.onAfterRouteLeave,...o.onAfterRouteUpdate,...d.onAfterRouteUpdate,...f.onAfterRouteUpdate,...o.onAfterRouteEnter,...d.onAfterRouteEnter,...f.onAfterRouteEnter];try{let i=p.map(i=>{let o=Jn(i);return Promise.resolve(r(()=>o(e,{lifecycle:`after`,from:t,reject:a,push:s,replace:c,update:u,signal:n})))});await Promise.all(i)}catch(n){if(n instanceof H||n instanceof $n)return n.response;try{l(n,{to:e,from:t,source:`hook`})}catch(e){if(e instanceof H||e instanceof $n)return e.response;throw e}}return{status:`SUCCESS`}},l=(e,{to:t,from:n,source:r})=>{let{reject:a,push:o,replace:s}=cr({to:t});for(let c of i.onError)try{c(e,{to:t,from:n,source:r,reject:a,push:o,replace:s});return}catch(t){if(t instanceof tn)throw t;if(t===e)continue;throw t}};return{runBeforeRouteHooks:s,runAfterRouteHooks:c,runErrorHooks:l,runRejectionHooks:(e,{to:t,from:n})=>{let r=[...ar(e).onRejection,...i.onRejection];for(let i of r)i(e.type,{to:t,from:n})},addComponentHook:({lifecycle:e,depth:n,hook:r})=>{t?.(r);let i=Qn(e),a=o[e],s=(e,t)=>{if(i(e,t.from,n))return Jn(r)(e,t)};return a.add(s),()=>a.delete(s)},addGlobalRouteHooks:e=>{e.onBeforeRouteEnter.forEach(e=>a.onBeforeRouteEnter(e)),e.onBeforeRouteUpdate.forEach(e=>a.onBeforeRouteUpdate(e)),e.onBeforeRouteLeave.forEach(e=>a.onBeforeRouteLeave(e)),e.onAfterRouteEnter.forEach(e=>a.onAfterRouteEnter(e)),e.onAfterRouteUpdate.forEach(e=>a.onAfterRouteUpdate(e)),e.onAfterRouteLeave.forEach(e=>a.onAfterRouteLeave(e)),e.onError.forEach(e=>a.onError(e))},setVueApp:n,...a}}function dr(e){let n=lr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}function fr(e,n){let r=qn(e),i=dr(e);return e=>{let a=r(),o=i().addComponentHook({lifecycle:n,hook:e,depth:a-1});return(0,t.onUnmounted)(o),o}}function pr(e){return{onBeforeRouteLeave:fr(e,`onBeforeRouteLeave`),onBeforeRouteUpdate:fr(e,`onBeforeRouteUpdate`),onAfterRouteLeave:fr(e,`onAfterRouteLeave`),onAfterRouteUpdate:fr(e,`onAfterRouteUpdate`)}}var mr=Gn();function hr(e){let n=mr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}var gr=Gn();function _r(e){let n=gr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}function vr(e){return()=>{let n=(0,t.inject)(e);if(!n)throw new p;return n}}var yr=Symbol(`isRouterRouteSymbol`);function br(e,t){return typeof t==`object`&&!!t&&yr in t&&e in t}function xr(e,n,r){function i(e){r(Dt(Et({...z(n.href),query:void 0}),{query:e}))}function a(e,t,i){if(M(e))return a({[e]:t},i);let o=e,s=t,c={...n.params,...o};return r(n.name,c,s)}let o=(...e)=>{let t=new URLSearchParams(n.query);t.set(...e),i(t)},s=(...e)=>{let t=new URLSearchParams(n.query);t.append(...e),i(t)},c=(...e)=>{let t=new URLSearchParams(n.query);t.delete(...e),i(t)},{id:l,matched:u,matches:d,name:f,hash:p,href:m,canonical:h,data:g,getTitle:_}=(0,t.toRefs)(n),v=new Proxy({},{get(e,t,r){return Reflect.get(n.params,t,r)},set(e,t,n){return a(t,n),!0},ownKeys(){return Reflect.ownKeys(n.params)},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(n.params,t)}}),y=(0,t.computed)({get(){return v},set(e){a(e)}}),b=(0,t.computed)({get(){return new Proxy(n.query,{get(e,t,n){switch(t){case`append`:return s;case`set`:return o;case`delete`:return c;default:return Reflect.get(e,t,n)}}})},set(e){i(e)}}),x=(0,t.computed)({get(){return new Proxy(n.state,{set(e,t,r){return a({},{state:{...n.state,[t]:r}}),!0}})},set(e){a({},{state:e})}});return(0,t.reactive)({...n,id:l,matched:u,matches:d,state:x,query:b,hash:p,params:y,name:f,href:m,canonical:h,data:g,getTitle:_,update:a,[yr]:!0,[e]:!0})}function Sr(e){return(t,n,{exact:r}={})=>br(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(e=>e.name).includes(n):!1}function Cr(e){let n=vr(e),r=Sr(e);return(e,i)=>{let a=n();function o(){if(e&&!r(a.route,e,i))throw new m(e,a.route.name)}return(0,t.watch)(a.route,o,{immediate:!0,deep:!0}),a.route}}function wr(e){let n=Cr(e),r=vr(e),i=_r(e),a=qn(e),o=hr(e);return(0,t.defineComponent)((e,s)=>{let c=n(),l=r(),u=i(),d=a({increment:!0});(0,t.onServerPrefetch)(async()=>{await l.start()});let{getRouteComponents:f}=o(),p=(0,t.computed)(()=>{if(!l.started.value)return null;if(O(u.value))return u.value.route.matches.at(0)?.views.default.component??null;let t=c.matches.at(d);if(!t)return null;let n=e.name??`default`;return f(t.id,t.views)[n]});return()=>s.slots.default?s.slots.default({route:c,component:p.value,rejection:u.value}):p.value?(0,t.h)(p.value):null},{name:`RouterView`,props:[`name`]})}var Tr=Gn();function Er(e){let n=Tr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}var Dr=`lazy`,Or={components:!0,props:!1,loaders:!1};function kr(e){return[`eager`,`lazy`,`intent`].includes(e)}function Ar({routerPrefetch:e,routePrefetch:t,viewPrefetch:n,linkPrefetch:r},i){let a=[jr(r,i),jr(n,i),jr(t,i),jr(e,i),Or[i],Dr].reduce((e,t)=>kr(e)?e:e===!0&&kr(t)?t:e===!0&&!kr(t)?e:e===void 0?t:e,void 0);return kr(a)?a:!1}function jr(e,t){return j(e)?e[t]:e}var Mr=(0,t.defineAsyncComponent)(()=>new Promise(e=>{e({default:{template:`foo`}})}));function Nr(e){return e.name===Mr.name&&`__asyncLoader`in e}function Pr(e,t=()=>!0){return e.matches.flatMap(e=>Object.values(e.views).flatMap(n=>Nr(n.component)&&t(e,n)?[n.component]:[]))}function Fr(e,t=()=>!0){return Pr(e,t).map(e=>e.__asyncLoader())}var Ir=Symbol(`visibilityObserver`);function Lr(e){let n=(0,t.inject)(Ir);if(!n)throw new p;return(0,t.watch)(e,(e,t)=>{e&&n.observe(e),t&&n.unobserve(t)},{immediate:!0}),(0,t.onUnmounted)(()=>{e.value&&n.unobserve(e.value)}),{isElementVisible:(0,t.computed)(()=>e.value?n.isElementVisible(e.value):!1)}}function Rr(e,n,r){(0,t.watch)(e,(e,t)=>{e&&e.addEventListener(n,r),t&&t.removeEventListener(n,r)},{immediate:!0}),(0,t.onUnmounted)(()=>{e.value&&e.value.removeEventListener(n,r)})}function zr(e){let n=Er(e);return e=>{let r=(0,t.ref)(),{createDetachedStore:i}=n(),a=i(),{isElementVisible:o}=Lr(r),s=()=>{a.stage()};(0,t.onScopeDispose)(()=>a.dispose()),(0,t.watch)(()=>(0,t.toValue)(e),({route:e,...t})=>{a.reset(),e&&l(`eager`,e,t)},{immediate:!0}),(0,t.watch)(o,n=>{let{route:r,...i}=(0,t.toValue)(e);!r||!n||l(`lazy`,r,i)},{immediate:!0}),Rr(r,`focusin`,c),Rr(r,`mouseover`,c);function c(){let{route:n,...r}=(0,t.toValue)(e);n&&l(`intent`,n,r)}function l(e,t,n){Vr(e,t,n),a.compute(t,Br(e,n))}return{element:r,commit:s}}}function Br(e,t){return n=>Ar({...t,routePrefetch:n.routePrefetch,viewPrefetch:n.prefetch},n.kind===`loader`?`loaders`:`props`)===e}function Vr(e,t,n){Fr(t,(t,r)=>Ar({...n,routePrefetch:t.prefetch,viewPrefetch:r.prefetch},`components`)===e)}var Hr=Gn();function Ur(e){let n=Hr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;return e}}function Wr(e,t){if(!r(e))throw Error(`updateResolvedRoute called with a value that is not a resolved route`);let n=Dt(e.href,{query:t.query,hash:t.hash}),{query:i,hash:a}=z(n),o={...e,href:n,query:En(i),hash:a,state:{...e.state,...t.state},getTitle:()=>e.getRouteTitle(o)};return o}function Gr(e){let n=vr(e),r=Ur(e),a=zr(e),o=Sr(e);return(e,s={},c={})=>{let l=n(),u=r(),d=(0,t.computed)(()=>{let n=(0,t.toValue)(e);return typeof n!=`string`||i(n)?(0,t.toValue)(s):(0,t.toValue)(c)}),f=(0,t.computed)(()=>{let n=(0,t.toValue)(e);if(i(n)){let e=l.find(n);return e&&Wr(e,d.value)}return typeof n==`string`?l.resolve(n,(0,t.toValue)(s),(0,t.toValue)(c)):Wr(n,d.value)}),p=(0,t.computed)(()=>{if(f.value)return f.value.href;let n=(0,t.toValue)(e);if(i(n))return n;console.error(Error(`Failed to resolve route in RouterLink.`))}),m=(0,t.computed)(()=>o(l.route)&&l.route.matches.some(e=>e.id===f.value?.id)),h=(0,t.computed)(()=>l.route.id===f.value?.id),g=(0,t.computed)(()=>o(l.route)&&A(f.value)&&l.route.href.startsWith(f.value.href)),_=(0,t.computed)(()=>l.route.href===f.value?.href),v=(0,t.computed)(()=>!!p.value&&l.isExternal(p.value)),y=(0,t.computed)(()=>u.isTransitioning&&u.to?.href===p.value),{element:b,commit:x}=a(()=>({route:f.value,routerPrefetch:l.prefetch,linkPrefetch:d.value.prefetch})),S=n=>{x();let r={replace:n?.replace??d.value.replace,navigation:n?.navigation??d.value.navigation,query:wt(n?.query,d.value.query),hash:n?.hash??d.value.hash,state:{...d.value.state,...n?.state},viewTransition:n?.viewTransition??d.value.viewTransition},a=(0,t.toValue)(e);return i(a)||typeof a==`object`?l.push(a,r):l.push(a,(0,t.toValue)(s),r)};return{element:b,route:f,href:p,isMatch:m,isExactMatch:h,isActive:g,isExactActive:_,isExternal:v,isTransitioning:y,push:S,replace:e=>S({...e,replace:!0})}}}function Kr(e){let n=vr(e),r=Gr(e);return(0,t.defineComponent)((e,i)=>{let a=n(),o=(0,t.computed)(()=>!e.target||e.target===`_self`),s=(0,t.computed)(()=>{let{to:t,...n}=e;return n}),{element:c,route:l,href:u,isMatch:d,isExactMatch:f,isActive:p,isExactActive:m,isExternal:h,isTransitioning:g,push:_}=r(()=>typeof e.to==`function`?e.to(a.resolve):e.to,s);(0,t.provide)(Un,g);let v=(0,t.computed)(()=>({"router-link--match":d.value,"router-link--exact-match":f.value,"router-link--active":p.value,"router-link--exact-active":m.value}));function y(e){return e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||!o.value}function b(e){y(e)||(e.preventDefault(),_())}return()=>(0,t.h)(`a`,{href:u.value,target:e.target,class:[`router-link`,v.value],ref:c,onClick:b},i.slots.default?.({route:l.value,isMatch:d.value,isExactMatch:f.value,isActive:p.value,isExactActive:m.value,isTransitioning:g.value,isExternal:h.value}))},{name:`RouterLink`,props:[`to`,`prefetch`,`query`,`hash`,`replace`,`state`,`target`,`viewTransition`,`navigation`]})}var qr=Gn();function Jr(e){let n=qr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new p;let{pending:r,to:i,from:a,settled:o,total:s,progress:c}=e;return{pending:r,to:i,from:a,settled:o,total:s,progress:c}}}var Yr=150,Xr=.08,Zr=400,Qr=200,$r=.05,ei=(0,t.defineComponent)(e=>{let{pending:n,settled:r,total:i,progress:a}=e.navigation,o=(0,t.ref)(!1),s=(0,t.ref)(0),c,l,u=(0,t.computed)(()=>i.value===0?1:Math.min(1,(r.value+1)/i.value)),d=(0,t.computed)(()=>!n.value&&i.value>0&&r.value===i.value),f=(0,t.computed)(()=>n.value?Math.max(a.value+s.value,$r):+!!d.value),p=(0,t.computed)(()=>o.value&&(n.value||d.value));return(0,t.onMounted)(()=>{c=setTimeout(()=>{o.value=n.value},e.delay)}),(0,t.watch)(n,e=>{clearInterval(l),e&&(l=setInterval(()=>{s.value+=(u.value-a.value-s.value)*Xr},Yr))},{immediate:!0}),(0,t.watch)(r,()=>{s.value=0}),(0,t.onBeforeUnmount)(()=>{clearTimeout(c),clearInterval(l)}),()=>{if(!p.value)return null;let r=Math.round(f.value*100);return(0,t.h)(`div`,{class:`router-progress`,role:`progressbar`,"aria-label":e.label,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r,style:{position:`fixed`,top:0,left:0,right:0,height:`var(--router-progress-height, 3px)`,zIndex:9999,pointerEvents:`none`,opacity:+!!n.value,transition:`opacity ${Qr}ms ease-out ${Zr}ms`}},(0,t.h)(`div`,{class:`router-progress__bar`,style:{height:`100%`,width:`${r}%`,background:e.color??`var(--router-progress-color, #29d)`,transition:`width ${Zr}ms ease-out`}}))}},{name:`RouterProgressBar`,props:[`navigation`,`delay`,`color`,`label`]});function ti(e){let n=Jr(e);return(0,t.defineComponent)(e=>{let r=n(),{pending:i,to:a}=r,o=(0,t.ref)(0);return(0,t.watch)([i,a],([e])=>{e&&(o.value+=1)}),()=>(0,t.h)(ei,{key:o.value,navigation:r,delay:e.delay??150,color:e.color,label:e.label??`Loading page`})},{name:`RouterProgress`,props:[`delay`,`color`,`label`]})}function ni(e){let n=Cr(e);return(e,r=String)=>{let i=n();return{value:(0,t.computed)({get(){let n=i.query.get((0,t.toValue)(e));return n===null?le(r)?r.defaultValue:null:qe(n,{param:r})},set(n){i.query.set((0,t.toValue)(e),L(n,{param:r}))}}),values:(0,t.computed)({get(){let n=i.query.getAll((0,t.toValue)(e));return n.length===0&&le(r)?[r.defaultValue]:n.map(e=>qe(e,{param:r})).filter(e=>e!==null)},set(n){let a=new URLSearchParams(i.query);a.delete((0,t.toValue)(e)),n.forEach(n=>{a.append((0,t.toValue)(e),L(n,{param:r}))}),i.query=a}}),remove:()=>{i.query.delete((0,t.toValue)(e))}}}}function ri(e){let t=typeof e==`object`?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a}=pr(t);return{createHook:Bn,createView:Vn,createLoader:Hn,onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a,isRoute:Sr(t),RouterView:wr(t),RouterLink:Kr(t),ViewTransition:Wn,RouterProgress:ti(t),useRoute:Cr(t),useRouter:vr(t),useQueryValue:ni(t),useLink:Gr(t),useRejection:_r(t),useViewTransition:Ur(t),useNavigation:Jr(t)}}var ii=Symbol(`IS_ROUTER_PLUGIN_SYMBOL`);function ai(e){return typeof e==`object`&&!!e&&ii in e}function oi(e){let{store:t,...n}=an(),r={[ii]:!0,hooks:t};return{routes:e.routes??[],rejections:e.rejections??[],...n,...r}}function si(e){return{get:(t,{invalid:n})=>{for(let n of e){let e=qe(t,{param:n,isOptional:!1,isGreedy:!1});if(e!==void 0)return e}throw n(`Value "${t}" does not satisfy any of the possible values`)},set:(t,{invalid:n})=>{for(let n of e){let e=Je(t,{param:n,isOptional:!1,isGreedy:!1});if(e!==void 0)return e}throw n(`Value "${t}" does not satisfy any of the possible values`)}}}var ci={separator:`,`};function li(e,t={}){let{separator:n}={...ci,...t},r=si(e);return{get:(e,t)=>e.split(n).map(e=>r.get(e,t)),set:(e,t)=>{if(!Array.isArray(e))throw t.invalid(`Expected an array`);return e.map(e=>r.set(e,t)).join(n)}}}var ui={separator:`,`};function di(e,t={}){let{separator:n}={...ui,...t};return{get:t=>{let r=t.split(n);return e.map((e,t)=>Ke(r.at(t),{param:e}))},set:(t,{invalid:r})=>{if(!Array.isArray(t))throw r(`Expected a tuple`);if(t.length!==e.length)throw r(`Expected tuple with ${e.length} values but received ${t.length} values`);return e.map((e,n)=>L(t.at(n),{param:e})).join(n)}}}function fi(){let e=[];return{get length(){return e.length},push(t){return e.push(t),()=>{e=e.filter(e=>e!==t)}},call(t){e.forEach(e=>e(t))}}}function pi(){return Math.random().toString(36).slice(2,10)}function mi(e,t,n){return Math.min(Math.max(e,t),n)}function hi(e){e.preventDefault(),e.returnValue=``}function gi({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 _i(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.slice(n),e=e.slice(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.slice(r),e=e.slice(0,r)),e&&(t.pathname=e)}return t}function vi(e){return Object.freeze(e)}var yi=`beforeunload`,bi=`popstate`,xi=`hashchange`;function Si(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e,search:r,hash:i}=t.location,a=n.state??{};return[a.idx??null,vi({pathname:e,search:r,hash:i,state:a.usr??null,key:a.key??`default`})]}let i=null;function a(){if(i)u.call(i),i=null;else{let[e,t]=r();if(u.length){if(e!=null){let n=s??0-e;n&&(i={action:`POP`,location:t,retry(){v(n*-1)}},v(n))}}else h(`POP`)}}t.addEventListener(bi,a);let o=`POP`,[s,c]=r(),l=fi(),u=fi();s??(s=0,n.replaceState({...n.state,idx:s},``,d(c)));function d(e){return typeof e==`string`?e:gi(e)}function f(e,t=null){return vi({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?_i(e):e,state:t,key:pi()})}function p(e,t){return[{usr:e.state,key:e.key,idx:t},d(e)]}function m(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function h(e){o=e,[s,c]=r(),l.call({action:o,location:c})}function g(e,r){let i=`PUSH`,a=f(e,r);function o(){g(e,r)}if(m(i,a,o)){let[e,r]=p(a,(s??0)+1);try{n.pushState(e,``,r)}catch{t.location.assign(r)}h(i)}}function _(e,t){let r=`REPLACE`,i=f(e,t);function a(){_(e,t)}if(m(r,i,a)){let[e,t]=p(i,s??0);n.replaceState(e,``,t),h(r)}}function v(e){n.go(e)}return{get index(){return s},get action(){return o},get location(){return c},createHref:d,push:g,replace:_,go:v,back(){v(-1)},forward(){v(1)},listen(e){return l.push(e)},block(e){let n=u.push(e);return u.length===1&&t.addEventListener(yi,hi),()=>{n(),u.length||t.removeEventListener(yi,hi)}}}}function Ci(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e=`/`,search:r=``,hash:i=``}=_i(t.location.hash.slice(1)),a=n.state??{};return[a.idx??null,vi({pathname:e,search:r,hash:i,state:a.usr??null,key:a.key??`default`})]}let i=null;function a(){if(i)u.call(i),i=null;else{let[e,t]=r();if(u.length){if(e!=null){let n=(s??0)-e;n&&(i={action:`POP`,location:t,retry(){y(n*-1)}},y(n))}}else g(`POP`)}}t.addEventListener(bi,a),t.addEventListener(xi,()=>{let[,e]=r();gi(e)!==gi(c)&&a()});let o=`POP`,[s,c]=r(),l=fi(),u=fi();s??(s=0,n.replaceState({...n.state,idx:s},``));function d(){let e=document.querySelector(`base`),n=``;if(e?.getAttribute(`href`)){let e=t.location.href,r=e.indexOf(`#`);n=r===-1?e:e.slice(0,r)}return n}function f(e){return d()+`#`+(typeof e==`string`?e:gi(e))}function p(e,t=null){return vi({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?_i(e):e,state:t,key:pi()})}function m(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function h(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function g(e){o=e,[s,c]=r(),l.call({action:o,location:c})}function _(e,r){let i=`PUSH`,a=p(e,r);function o(){_(e,r)}if(h(i,a,o)){let[e,r]=m(a,(s??0)+1);try{n.pushState(e,``,r)}catch{t.location.assign(r)}g(i)}}function v(e,t){let r=`REPLACE`,i=p(e,t);function a(){v(e,t)}if(h(r,i,a)){let[e,t]=m(i,s??0);n.replaceState(e,``,t),g(r)}}function y(e){n.go(e)}return{get index(){return s},get action(){return o},get location(){return c},createHref:f,push:_,replace:v,go:y,back(){y(-1)},forward(){y(1)},listen(e){return l.push(e)},block(e){let n=u.push(e);return u.length===1&&t.addEventListener(yi,hi),()=>{n(),u.length||t.removeEventListener(yi,hi)}}}}function wi(e={}){let{initialEntries:t=[`/`],initialIndex:n}=e,r=t.map(e=>vi({pathname:`/`,search:``,hash:``,state:null,key:pi(),...typeof e==`string`?_i(e):e})),i=mi(n??r.length-1,0,r.length-1),a=`POP`,o=r[i],s=fi(),c=fi();function l(e){return typeof e==`string`?e:gi(e)}function u(e,t=null){return vi({pathname:o.pathname,search:``,hash:``,...typeof e==`string`?_i(e):e,state:t,key:pi()})}function d(e,t,n){return!c.length||(c.call({action:e,location:t,retry:n}),!1)}function f(e,t){a=e,o=t,s.call({action:a,location:o})}function p(e,t){let n=`PUSH`,a=u(e,t);function o(){p(e,t)}d(n,a,o)&&(i+=1,r.splice(i,r.length,a),f(n,a))}function m(e,t){let n=`REPLACE`,a=u(e,t);function o(){m(e,t)}d(n,a,o)&&(r[i]=a,f(n,a))}function h(e){let t=mi(i+e,0,r.length-1),n=r[t];function a(){h(e)}d(`POP`,n,a)&&(i=t,f(`POP`,n))}return{get index(){return i},get action(){return a},get location(){return o},createHref:l,push:p,replace:m,go:h,back(){h(-1)},forward(){h(1)},listen(e){return s.push(e)},block(e){return c.push(e)}}}function Ti({routerKey:e,fallbackRoute:n,push:r,getData:i}){let a=(0,t.reactive)(s(n)),o=e=>{Object.assign(a,s(e))};function s(e){return{...e,data:i(e)}}let c=a;return{currentRoute:c,routerRoute:xr(e,c,r),updateRoute:o}}function Ei(e){return t=>{let{host:n}=z(t);return n!==void 0&&n!==e}}function Di(){let e=new Set,t=(...t)=>{t.forEach(t=>{e.add(t),t.catch(()=>void 0).finally(()=>e.delete(t))})};return{add:t,wrap:e=>(...n)=>{let r=e(...n);return t(r),r},idle:async()=>{for(;e.size>0;)await Promise.allSettled([...e])}}}var Oi={kind:`pending`},ki={kind:`running`},Ai={kind:`missing`};function ji(){let e=(0,t.reactive)(new Map),n=new AbortController;function r(){let{promise:e,resolve:n,reject:r}=Promise.withResolvers();return e.catch(()=>{}),(0,t.markRaw)({promise:e,resolve:n,reject:r,state:(0,t.shallowRef)(Oi)})}function i(t){let n=e.get(t);if(n)return n;let i=r();return e.set(t,i),i}function a(e,t){let n=e.state.value;n.kind!==`value`&&n.kind!==`error`&&(e.state.value=t,t.kind===`value`?e.resolve(t.value):e.reject(t.error))}return{subscribe:e=>i(e).promise,set:(e,t)=>{let n=i(e);if(n.state.value.kind===`pending`){n.state.value=ki;try{let e=t();if(pe(e)){e.then(e=>a(n,{kind:`value`,value:e}),e=>a(n,{kind:`error`,error:e}));return}a(n,{kind:`value`,value:e})}catch(e){a(n,{kind:`error`,error:e})}}},get:t=>e.get(t)?.state.value??Ai,signal:n.signal,dispose:t=>{n.abort(t);for(let[n,r]of e)e.delete(n),a(r,{kind:`error`,error:t})}}}function Mi(){let e={current:ji()};return{current:()=>e.current,stage:t=>{e.staged?.dispose(new d),e.staged=t},staged:()=>(e.staged??=ji(),e.staged),promote:()=>{let t=e.current;return e.current=e.staged??ji(),e.staged=void 0,t}}}function Ni(e,t,n,r){return[e,t,n,r.id,r.href].join(`-`)}function Pi(e){return e.matches.flatMap((t,n)=>[...Ii(t).map(r=>Fi(r,t,n,e,t.views[r.name].props,t.views[r.name])),...Li(t).map(r=>Fi(r,t,n,e,t.loaders[r.name].load,t.loaders[r.name]))])}function Fi(e,t,n,r,i,{prefetch:a,transformer:o}){return{...e,depth:n,key:Ni(e.kind,e.id,e.name,r),run:i,routePrefetch:t.prefetch,prefetch:a,transformer:o}}function Ii(e){return gn(e.views).map(t=>({kind:`props`,id:e.id,name:t}))}function Li(e){return Object.keys(e.loaders).map(t=>({kind:`loader`,id:e.id,name:t}))}function Ri(e){return t=>t.kind===e}function zi(){let{setVueApp:e,runWithContext:n}=or(),r=Mi(),i=()=>{let e={store:ji()},t=()=>{e.store.dispose(new d)},n=()=>{t(),e.store=ji()},i=()=>{r.stage(e.store),e.store=ji()};return{...s(()=>e.store),stage:i,reset:n,dispose:t}},a=()=>s(()=>r.staged()),o=e=>(r.promote().dispose(new d),s(()=>r.current()).compute(e));function s(e){return{compute:(t,n=()=>!0)=>{let r=e(),i=Pi(t).filter(n),a=u(r,t,i.filter(Ri(`loader`))),o=u(r,t,i.filter(Ri(`props`)));return a.catch(()=>{}),o.catch(()=>{}),{props:o,loaders:a,values:i.map(({key:e})=>r.subscribe(e))}},fill:(t,n)=>{let r=e(),i=Pi(t);for(let{kind:e,depth:t,name:a,value:o}of n){let n=i.find(n=>n.kind===e&&n.depth===t&&n.name===a);n&&r.set(n.key,()=>o)}}}}let l=e=>{let t=r.current();return Pi(e).flatMap(({kind:e,depth:n,name:r,key:i})=>{let a=t.get(i);return a.kind===`value`?[{kind:e,depth:n,name:r,value:a.value}]:[]})};async function u(e,t,n){n.forEach(n=>{e.set(n.key,()=>m(n,t,e))});try{return await Promise.all(n.map(({key:t})=>e.subscribe(t))),{status:`SUCCESS`}}catch(e){if(e instanceof d)return{status:`ABANDONED`};if(e instanceof H||e instanceof $n)return e.response;throw e}}let f=(e,t,n)=>{let i=Ni(`props`,e,t,n),a=r.current().get(i);switch(a.kind){case`missing`:return Vi;case`pending`:case`running`:return Hi(r.current().subscribe(i));case`value`:case`error`:return a;default:return a}};function p(e,t){return _(Pi(e).filter(Ri(`loader`)),dn,e,t)}function m(e,t,r){let{push:i,replace:a,reject:o,update:s}=cr({to:t});return n(()=>e.run(h(e,t,r),{push:i,replace:a,reject:o,update:s,signal:r.signal,parent:g(t,e.depth,r)}))}function h({kind:e,name:t},n,r){return new Proxy(n,{get(i,a,o){if(a!==`data`)return Reflect.get(i,a,o);if(e===`loader`)throw new c(t);return p(n,r)}})}function g(e,t,n){if(t===0)return;let r=e.matches[t-1],{name:i=``}=r;return{name:i,get props(){return _(Ii(r),hn,e,n)},get data(){return _(Li(r),dn,e,n)}}}function _(e,n,r,i){if(e.length===0)return;let[a]=e;if(e.length===1&&a.name===n)return v(a,r,i);let o=t=>e.find(({name:e})=>e===t);return(0,t.markRaw)(new Proxy({},{get(e,t){let n=o(t);return n?v(n,r,i):Reflect.get(e,t)},has(e,t){return!!o(t)||Reflect.has(e,t)},ownKeys(){return e.map(({name:e})=>e)},getOwnPropertyDescriptor(e,t){let n=o(t);return n?{configurable:!0,enumerable:!0,value:v(n,r,i)}:Reflect.getOwnPropertyDescriptor(e,t)}}))}function v(e,t,n){let i=Ni(e.kind,e.id,e.name,t),a=r.current();if(!n||n===a)return a.subscribe(i);n.get(i).kind===`missing`&&a.get(i).kind===`missing`&&Ui(e,t);let o=Bi([n.subscribe(i),r.current().subscribe(i)]);return o.catch(()=>{}),o}return{createDetachedStore:i,staged:a,commit:o,getValues:l,getProps:f,getData:p,setVueApp:e}}async function Bi(e){try{return await Promise.any(e)}catch(e){throw e instanceof AggregateError?e.errors.find(e=>!(e instanceof d))??e.errors[0]:e}}var Vi={kind:`value`,value:void 0};async function Hi(e){try{return{kind:`value`,value:await e}}catch(e){return e instanceof d?Vi:{kind:`error`,error:e}}}function Ui({kind:e,name:t},n){let r=n.name||`unknown`,i=e===`props`?`props "${t}"`:`loader data "${t}"`;console.warn(`
2
2
  Waiting on ${i} for route "${r}" before anything is computing it.
3
3
  It cannot resolve until it is computed — by its own prefetch strategy, or by navigating. When
4
4
  prefetching, prefetch it with the same strategy to avoid stalling here.
5
- `)}function Ni(){let e=(0,t.ref)(!1),n=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.shallowRef)(null),a=(0,t.shallowRef)(null),o;return{begin:t=>{let s=!1,c=()=>o===f;function l(){o=void 0,e.value=!1,i.value=null,a.value=null}function u(){s&&n.value>=r.value&&l()}function d(){c()&&(n.value+=1,u())}let f={expect:e=>{c()&&(r.value+=e)},track:(...e)=>{if(c())for(let t of e)t.then(d,d)},close:()=>{c()&&(s=!0,u())},abort:()=>{c()&&(n.value=0,r.value=0,l())}};return t.inert||(o=f,e.value=!0,n.value=0,r.value=t.expected,i.value=t.to,a.value=t.from),f},stop:()=>{o?.abort()},pending:(0,t.computed)(()=>e.value),to:(0,t.computed)(()=>i.value),from:(0,t.computed)(()=>a.value),settled:(0,t.computed)(()=>n.value),total:(0,t.computed)(()=>r.value),progress:(0,t.computed)(()=>!e.value||r.value===0?0:n.value/r.value)}}function Pi(){return typeof window<`u`&&window.document!==void 0}function Fi({mode:e,listener:t}){let n=Ii(e),r=!1,i={key:n.location.key,index:n.index},a;function o(){i={key:n.location.key,index:n.index}}let s=(e,t)=>{a=void 0,r=!0;try{if(t?.replace){n.replace(e,t.state);return}n.push(e,t?.state)}finally{o(),r=!1}},c=()=>{let e=ai(n.location);n.replace(e)},l,u=()=>{l?.(),l=n.listen(e=>{if(r)return;if(e.action===`POP`&&e.location.key===a){a=void 0;return}if(a=void 0,e.action!==`POP`){t(e);return}let s={commit:o,restore:()=>{if(i.index===null||n.index===null)return;let e=i.index-n.index;e!==0&&(a=i.key,n.go(e))}};t({...e,traversal:s})})},d=()=>{a=void 0,l?.()};return{...n,get index(){return n.index},get action(){return n.action},get location(){return n.location},update:s,refresh:c,startListening:u,stopListening:d}}function Ii(e=`auto`){switch(e){case`auto`:return Pi()?di():pi();case`browser`:return di();case`memory`:return pi();case`hash`:return fi();default:throw Error(`Switch is not exhaustive for mode: ${e}`)}}function Li(){let e;return{setServerRedirect:(t,n)=>{e??={kind:`redirect`,status:t,location:n}},getServerRedirect:()=>e}}var Ri=class extends Error{constructor(){super(`initialUrl must be set if window.location is unavailable`)}};function zi(e,t){if(e)return e;if(Pi())return t===`hash`?window.location.hash.slice(1)||`/`:window.location.toString();throw new Ri}var Bi=`kitbag-payload`,Vi=`\u2028`,Hi=`\u2029`;function Ui(e){return`<script type="application/json" id="${Bi}">${JSON.stringify(e).replace(/</g,`\\u003C`).replace(new RegExp(Vi,`g`),`\\u2028`).replace(new RegExp(Hi,`g`),`\\u2029`)}<\/script>`}var Wi={stringify:JSON.stringify,parse:JSON.parse};function Gi(e){return e===`props`||e===`loader`}function Ki(e){return M(e)&&Gi(e.kind)&&typeof e.depth==`number`&&typeof e.name==`string`&&typeof e.encoded==`string`}function qi(e){return!M(e)||typeof e.url!=`string`?!1:e.kind===`success`?Array.isArray(e.values)&&e.values.every(Ki):e.kind===`reject`&&typeof e.rejection==`string`}function Ji(){if(!Pi())return;let e=document.getElementById(Bi)?.textContent;if(e)try{let t=JSON.parse(e);return qi(t)?t:void 0}catch{return}}function Yi(e,t,n=Wi){let r=Ci(e),i=[],a=[];for(let{kind:e,depth:o,name:s,value:c}of t){let t=Zi(r,{kind:e,depth:o,name:s})??n;try{let n=t.stringify(c);if(typeof n!=`string`)throw Error(`stringify returned ${typeof n}`);i.push({kind:e,depth:o,name:s,encoded:n})}catch(t){let n=new f(`stringify`,e,s,t);console.warn(`${n.message}. The value was left out of the payload, so the client computes it again.`),a.push(n)}}return{values:i,failures:a}}function Xi(e,t,n=Wi){let r=Ci(e);for(let{kind:e,depth:n,name:i}of r)t.some(t=>t.kind===e&&t.depth===n&&t.name===i)||console.warn(`The payload has no value for ${e} "${i}". Its getter runs again, which can cause a hydration mismatch.`);return t.flatMap(({kind:e,depth:t,name:i,encoded:a})=>{let o=Zi(r,{kind:e,depth:t,name:i})??n;try{return[{kind:e,depth:t,name:i,value:o.parse(a)}]}catch(t){let n=new f(`parse`,e,i,t);return console.warn(`${n.message}. The value was left out, so its getter runs again, which can cause a hydration mismatch.`),[]}})}function Zi(e,{kind:t,depth:n,name:r}){return e.find(e=>e.kind===t&&e.depth===n&&e.name===r)?.transformer}function Qi(){let e,t=!1;return{begin:()=>(e?.abort(),e=new AbortController,t&&e.abort(),e),stop:()=>{t=!0,e?.abort()}}}function $i(){let e=(0,t.reactive)(new Map),n=Pi()?s():null,r=t=>{e.set(t,!1),n?.observe(t)},i=t=>{e.delete(t),n?.unobserve(t)},a=()=>{n?.disconnect()},o=t=>e.get(t)??!1;function s(){return new IntersectionObserver(t=>{t.forEach(t=>{e.set(t.target,t.isIntersecting)})})}return{observe:r,unobserve:i,disconnect:a,isElementVisible:o}}var ea=class extends Error{constructor(e){super(`Route not found: "${e}"`)}},ta=class extends Error{constructor(e){super(`Invalid Name "${e}": Router does not support multiple routes with the same name. All name names must be unique.`)}};function na(e){return`name`in e&&N(e.name)}function ra(e,t){if(!w(e))throw Error(`insertBaseRoute called with an invalid route`);if(!N(t))return e;let n=jt({path:t}),r=e.aliases.map(e=>({...e,url:Vt(n,e.url)}));return{...e,...Vt(n,e),aliases:r}}function ia(e,t=[],n={}){let r=new Map,i=new Map,a=[...e,...t.map(e=>e.routes)],o=[...Object.entries(T).map(([e,t])=>jn({type:e,status:t})),...n.rejections??[],...t.map(e=>e.rejections)];function s(e){if(!w(e)||!na(e))return;let t=r.get(e.name);if(t&&t.id!==e.id)throw new ta(e.name);if(t?.id===e.id)return;let i=ra(e,n.base);if(la(i))throw new g(e.name,ca(i));r.set(e.name,i);for(let t of e.context)w(t)&&s(t),O(t)&&c(t)}function c(e){O(e)&&i.set(e.type,e)}function l(e){for(let t of e)s(t)}function u(e){for(let t of e)c(t)}for(let e of a){if(aa(e)){l(e);continue}s(e)}for(let e of o){if(oa(e)){u(e);continue}c(e)}function d(e){return r.get(e)}function f(e){return i.get(e)}return{routes:Array.from(r.values()).sort(sa),rejections:Array.from(i.values()),getRouteByName:d,getRejectionByType:f}}function aa(e){return Array.isArray(e)}function oa(e){return Array.isArray(e)}function sa(e,t){return t.depth-e.depth}function ca(e){return z(e)?e.schema.path.value:``}function la(e){return e.isRelative&&!ca(e).startsWith(`/`)}function ua(e=[]){let t=new B;return e.forEach(e=>{Jr(e)&&(e.hooks.onBeforeRouteEnter.forEach(e=>t.onBeforeRouteEnter.add(e)),e.hooks.onBeforeRouteUpdate.forEach(e=>t.onBeforeRouteUpdate.add(e)),e.hooks.onBeforeRouteLeave.forEach(e=>t.onBeforeRouteLeave.add(e)),e.hooks.onAfterRouteEnter.forEach(e=>t.onAfterRouteEnter.add(e)),e.hooks.onAfterRouteUpdate.forEach(e=>t.onAfterRouteUpdate.add(e)),e.hooks.onAfterRouteLeave.forEach(e=>t.onAfterRouteLeave.add(e)))}),t}var da=t.ssrContextKey;function fa(){return(0,t.inject)(da,null)!==null}function pa(){return!!(0,t.getCurrentInstance)()?.suspense}function ma(e,{id:n,name:r,component:i}){let a=hr(e),o=fr(e);return(0,t.defineComponent)({name:`PropsWrapper`,expose:[],setup(){let e=a(),s=o(),c=fa(),l=pa();return()=>{let a=e.getProps(n,r,s);return fe(a)?c||l?(0,t.h)(ga,{component:i,props:a}):(0,t.h)(ha,{component:i,props:a}):a.kind===`error`?``:(0,t.h)(i,a.value)}}})}var ha=(0,t.defineComponent)(e=>{let n=(0,t.ref)();return(0,t.watch)(()=>e.props,async e=>{n.value=await e},{immediate:!0,deep:!0}),()=>_a(e.component,n.value)},{props:[`component`,`props`]}),ga=(0,t.defineComponent)(async e=>{let n=(0,t.ref)();return n.value=await e.props,(0,t.watch)(()=>e.props,async e=>{n.value=await e},{deep:!0}),()=>_a(e.component,n.value)},{props:[`component`,`props`]});function _a(e,n){return n===void 0||n.kind===`error`?``:(0,t.h)(e,n.value)}function va(e){let t=new Map;return{getRouteComponents:(n,r)=>{let i=t.get(n);if(i)return i;let a=ya(e,n,r);return t.set(n,a),a}}}function ya(e,t,n){let r=Object.entries(n);return r.length===0?{default:pr(e)}:Object.fromEntries(r.map(([n,{component:r}])=>[n,ma(e,{id:t,name:n,component:r})]))}var ba=Symbol(),xa=Object.create,Sa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,wa=Object.getOwnPropertyNames,Ta=Object.getPrototypeOf,Ea=Object.prototype.hasOwnProperty,Da=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Oa=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=wa(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ea.call(e,s)&&s!==n&&Sa(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ca(t,s))||r.enumerable});return e},ka=(e,t,n)=>(n=e==null?{}:xa(Ta(e)),Oa(t||!e||!e.__esModule?Sa(n,`default`,{value:e,enumerable:!0}):n,e)),Aa=typeof navigator<`u`,U=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};U.chrome!==void 0&&U.chrome.devtools,Aa&&(U.self,U.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__;var ja=ka(Da(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];o[c]=typeof l!=`object`||!l?l:l.constructor!==Object&&(r=t.get(l.constructor))?r(l,i):ArrayBuffer.isView(l)?n(l):i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];i[a]=typeof s!=`object`||!s?s:s.constructor!==Object&&(r=t.get(s.constructor))?r(s,o):ArrayBuffer.isView(s)?n(s):o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];i[a]=typeof o!=`object`||!o?o:o.constructor!==Object&&(r=t.get(o.constructor))?r(o,s):ArrayBuffer.isView(o)?n(o):s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);c[u]=e===-1?o(d):r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);c[o]=e===-1?s(l):r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);s[o]=e===-1?c(l):r[e]}}return t.pop(),r.pop(),s}}}))(),1),Ma=/(?:^|[-_/])(\w)/g;function Na(e,t){return t?t.toUpperCase():``}function Pa(e){return e&&`${e}`.replace(Ma,Na)}function Fa(e,t){let n=e.replace(/^[a-z]:/i,``).replace(/\\/g,`/`);n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));let r=n.lastIndexOf(`/`),i=n.substring(r+1);if(t){let e=i.lastIndexOf(t);return i.substring(0,e)}return``}var Ia=(0,ja.default)({circles:!0}),La={trailing:!0};function Ra(e,t=25,n={}){if(n={...La,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,c=(t,r)=>(o=za(e,t,r),o.finally(()=>{if(o=null,n.trailing&&s&&!i){let e=c(t,s);return s=null,e}}),o),l=function(...e){return n.trailing&&(s=e),o||new Promise(o=>{let l=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;let t=n.leading?r:c(this,e);s=null;for(let e of a)e(t);a=[]},t),l?(r=c(this,e),o(r)):a.push(o)})},u=e=>{e&&(clearTimeout(e),i=null)};return l.isPending=()=>!!i,l.cancel=()=>{u(i),a=[],s=null},l.flush=()=>{if(u(i),!s||o)return;let e=s;return s=null,c(this,e)},l}async function za(e,t,n){return await e.apply(t,n)}function Ba(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Ba(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var Va={run:e=>e()},Ha=console.createTask===void 0?()=>Va:console.createTask;function Ua(e,t){let n=Ha(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function Wa(e,t){let n=Ha(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function Ga(e,t){for(let n of[...e])n(t)}var Ka=class{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(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Ba(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=Ba(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Ua,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Wa,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Ga(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&Ga(this._after,r)}):(this._after&&r&&Ga(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function qa(){return new Ka}var Ja=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);function Ya(e){if(typeof e==`function`)return e.displayName||e.name||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||``;let t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t===`index`&&e.__file?.endsWith(`index.vue`)?``:t}function Xa(e){let t=e.__file;if(t)return Pa(Fa(t,`.vue`))}function Za(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Qa(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 $a(e){let t=e.subTree?.type,n=Qa(e);return n?n?.types?.Fragment===t:!1}function eo(e){let t=Ya(e?.type||{});if(t)return t;if(e?.root===e)return`Root`;for(let t in e.parent?.type?.components)if(e.parent.type.components[t]===e?.type)return Za(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return Za(e,t);return Xa(e?.type||{})||`Anonymous Component`}function to(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function no(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function ro(){let 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}var io;function ao(e){return io||=document.createRange(),io.selectNode(e),io.getBoundingClientRect()}function oo(e){let t=ro();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],i;if(r.component)i=lo(r.component);else if(r.el){let e=r.el;e.nodeType===1||e.getBoundingClientRect?i=e.getBoundingClientRect():e.nodeType===3&&e.data.trim()&&(i=ao(e))}i&&so(t,i)}return t}function so(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}var co={top:0,left:0,right:0,bottom:0,width:0,height:0};function lo(e){let t=e.subTree.el;return typeof window>`u`?co:$a(e)?oo(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?lo(e.subTree.component):co}function uo(e){return $a(e)?fo(e.subTree):e.subTree?[e.subTree.el]:[]}function fo(e){if(!e.children)return[];let t=[];return e.children.forEach(e=>{e.component?t.push(...uo(e.component)):e?.el&&t.push(e.el)}),t}var po=`__vue-devtools-component-inspector__`,mo=`__vue-devtools-component-inspector__card__`,ho=`__vue-devtools-component-inspector__name__`,go=`__vue-devtools-component-inspector__indicator__`,_o={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},vo={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)`},yo={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function bo(){return document.getElementById(po)}function xo(){return document.getElementById(mo)}function So(){return document.getElementById(go)}function Co(){return document.getElementById(ho)}function wo(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 To(e){let t=document.createElement(`div`);t.id=e.elementId??po,Object.assign(t.style,{..._o,...wo(e.bounds),...e.style});let n=document.createElement(`span`);n.id=mo,Object.assign(n.style,{...vo,top:e.bounds.top<35?0:`-35px`});let r=document.createElement(`span`);r.id=ho,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;let i=document.createElement(`i`);return i.id=go,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,yo),n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body.appendChild(t),t}function Eo(e){let t=bo(),n=xo(),r=Co(),i=So();t&&(Object.assign(t.style,{..._o,...wo(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:`-35px`}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function Do(e){let t=lo(e);if(!t.width&&!t.height)return;let n=eo(e);bo()?Eo({bounds:t,name:n}):To({bounds:t,name:n})}function Oo(){let e=bo();e&&(e.style.display=`none`)}var ko=null;function Ao(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(ko=e,e.vnode.el)){let t=lo(e),n=eo(e);bo()?Eo({bounds:t,name:n}):To({bounds:t,name:n})}}}function jo(e,t){e.preventDefault(),e.stopPropagation(),ko&&t(to(ko))}var Mo=null;function No(){Oo(),window.removeEventListener(`mouseover`,Ao),window.removeEventListener(`click`,Mo,!0),Mo=null}function Po(){return window.addEventListener(`mouseover`,Ao),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),jo(n,n=>{window.removeEventListener(`click`,t,!0),Mo=null,window.removeEventListener(`mouseover`,Ao);let r=bo();r&&(r.style.display=`none`),e(JSON.stringify({id:n}))})}Mo=t,window.addEventListener(`click`,t,!0)})}function Fo(e){let t=no(K.value,e.id);if(t){let[n]=uo(t);if(typeof n.scrollIntoView==`function`)n.scrollIntoView({behavior:`smooth`});else{let e=lo(t),n=document.createElement(`div`),r={...wo(e),position:`absolute`};Object.assign(n.style,r),document.body.appendChild(n),n.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{document.body.removeChild(n)},2e3)}setTimeout(()=>{let n=lo(t);if(n.width||n.height){let r=eo(t),i=bo();i?Eo({...e,name:r,bounds:n}):To({...e,name:r,bounds:n}),setTimeout(()=>{i&&(i.style.display=`none`)},1500)}},1200)}}U.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function Io(e){let t=0,n=setInterval(()=>{U.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Lo(){let e=U.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Ro(){return new Promise(e=>{function t(){Lo(),e(U.__VUE_INSPECTOR__)}U.__VUE_INSPECTOR__?t():Io(()=>{t()})})}var zo=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 Bo(e){return!!(e&&e[zo.IS_READONLY])}function Vo(e){return Bo(e)?Vo(e[zo.RAW]):!!(e&&e[zo.IS_REACTIVE])}function Ho(e){return!!(e&&e.__v_isRef===!0)}function Uo(e){let t=e&&e[zo.RAW];return t?Uo(t):e}var Wo=class{constructor(){this.refEditor=new Go}set(e,t,n,r){let i=Array.isArray(t)?t:t.split(`.`);for(;i.length>1;){let t=i.shift();e=e instanceof Map?e.get(t):e instanceof Set?Array.from(e.values())[t]:e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}let a=i[0],o=this.refEditor.get(e)[a];r?r(e,a,n):this.refEditor.isRef(o)?this.refEditor.set(o,n):e[a]=n}get(e,t){let n=Array.isArray(t)?t:t.split(`.`);for(let t=0;t<n.length;t++)if(e=e instanceof Map?e.get(n[t]):e[n[t]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(e===void 0)return!1;let r=Array.isArray(t)?t.slice():t.split(`.`),i=n?2:1;for(;e&&r.length>i;){let t=r.shift();e=e[t],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):Uo(t)instanceof Map?t.delete(n):Uo(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){let i=t[e.newKey||n];this.refEditor.isRef(i)?this.refEditor.set(i,r):Uo(t)instanceof Map?t.set(e.newKey||n,r):Uo(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Go=class{set(e,t){if(Ho(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(t=>e.add(t));return}let n=Object.keys(t);if(e instanceof Map){let r=new Set(e.keys());n.forEach(n=>{e.set(n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>e.delete(t));return}let r=new Set(Object.keys(e));n.forEach(n=>{Reflect.set(e,n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>Reflect.deleteProperty(e,t))}}get(e){return Ho(e)?e.value:e}isRef(e){return Ho(e)||Vo(e)}};new Wo;var Ko=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function qo(){if(typeof window>`u`||!Aa||typeof localStorage>`u`||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``};let e=localStorage.getItem===void 0?null:localStorage.getItem(Ko);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}U.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];var Jo=new Proxy(U.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Yo(e,t){q.timelineLayersState[t.id]=!1,Jo.push({...e,descriptorId:t.id,appRecord:Qa(t.app)})}U.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];var Xo=new Proxy(U.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Zo=Ra(()=>{Fs.hooks.callHook(ts.SEND_INSPECTOR_TO_CLIENT,$o())});function Qo(e,t){Xo.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:Qa(t.app)}),Zo()}function $o(){return Xo.filter(e=>e.descriptor.app===K.value.app).filter(e=>e.descriptor.id!==`components`).map(e=>{let 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 es(e,t){return Xo.find(n=>n.options.id===e&&(!t||n.descriptor.app===t))}var W=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}({}),G=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}({}),ts=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 ns(){let e=qa();e.hook(G.ADD_INSPECTOR,({inspector:e,plugin:t})=>{Qo(e,t.descriptor)});let t=Ra(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=es(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,filter:r?.treeFilter||``,rootNodes:[]};await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i))),t()},W.GET_INSPECTOR_TREE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:i.rootNodes})))},ts.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(G.SEND_INSPECTOR_TREE,t);let n=Ra(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=es(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,nodeId:r?.selectedNodeId||``,state:null},a={currentTab:`custom-inspector:${t}`};i.nodeId&&await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i,a))),t()},W.GET_INSPECTOR_STATE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:i.nodeId,state:i.state})))},ts.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(G.SEND_INSPECTOR_STATE,n),e.hook(G.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:e,nodeId:t,plugin:n})=>{let r=es(e,n.descriptor.app);r&&(r.selectedNodeId=t)}),e.hook(G.TIMELINE_LAYER_ADDED,({options:e,plugin:t})=>{Yo(e,t.descriptor)}),e.hook(G.TIMELINE_EVENT_ADDED,({options:t,plugin:n})=>{q.highPerfModeEnabled||!q.timelineLayersState?.[n.descriptor.id]&&![`performance`,`component-event`,`keyboard`,`mouse`].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},ts.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(G.GET_COMPONENT_INSTANCES,async({app:e})=>{let t=e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!t)return null;let n=t.id.toString();return[...t.instanceMap].filter(([e])=>e.split(`:`)[0]===n).map(([,e])=>e)}),e.hook(G.GET_COMPONENT_BOUNDS,async({instance:e})=>lo(e)),e.hook(G.GET_COMPONENT_NAME,({instance:e})=>eo(e)),e.hook(G.COMPONENT_HIGHLIGHT,({uid:e})=>{let t=K.value.instanceMap.get(e);t&&Do(t)}),e.hook(G.COMPONENT_UNHIGHLIGHT,()=>{Oo()}),e}U.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??=``,U.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],U.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];var rs=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function is(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:qo()}}U[rs]??=is();var as=Ra(e=>{Fs.hooks.callHook(ts.DEVTOOLS_STATE_UPDATED,{state:e})});Ra((e,t)=>{Fs.hooks.callHook(ts.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});var os=new Proxy(U.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t===`value`?U.__VUE_DEVTOOLS_KIT_APP_RECORDS__:U.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),K=new Proxy(U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t===`value`?U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t===`id`?U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function ss(){as({...U[rs],appRecords:os.value,activeAppRecordId:K.id,tabs:U.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:U.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function cs(e){U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,ss()}function ls(e){U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,ss()}var q=new Proxy(U[rs],{get(e,t){return t===`appRecords`?os:t===`activeAppRecordId`?K.id:t===`tabs`?U.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?U.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:U[rs][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return e[t]=n,U[rs][t]=n,!0}});function us(e={}){let{file:t,host:n,baseUrl:r=window.location.origin,line:i=0,column:a=0}=e;if(t){if(n===`chrome-extension`){let e=t.replace(/\\/g,`\\\\`),n=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??`/`;fetch(`${n}__open-in-editor?file=${encodeURI(t)}`).then(t=>{if(!t.ok){let t=`Opening component ${e} failed`;console.log(`%c${t}`,`color:red`)}})}else if(q.vitePluginDetected){let e=U.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;U.__VUE_INSPECTOR__.openInEditor(e,t,i,a)}}}U.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];var ds=new Proxy(U.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function fs(e){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function ps(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function ms(e){return(ds.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function hs(e,t){let n=ps(e);if(n){let e=localStorage.getItem(n);if(e)return JSON.parse(e)}return fs(e?(ds.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function gs(e,t){let n=ps(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(fs(t)))}function _s(e,t,n){let r=ps(e),i=localStorage.getItem(r),a=JSON.parse(i||`{}`),o={...a,[t]:n};localStorage.setItem(r,JSON.stringify(o)),Fs.hooks.callHookWith(r=>{r.forEach(r=>r({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:o}))},W.SET_PLUGIN_SETTINGS)}var J=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}({}),Y=U.__VUE_DEVTOOLS_HOOK??=qa(),vs={on:{vueAppInit(e){Y.hook(J.APP_INIT,e)},vueAppUnmount(e){Y.hook(J.APP_UNMOUNT,e)},vueAppConnected(e){Y.hook(J.APP_CONNECTED,e)},componentAdded(e){return Y.hook(J.COMPONENT_ADDED,e)},componentEmit(e){return Y.hook(J.COMPONENT_EMIT,e)},componentUpdated(e){return Y.hook(J.COMPONENT_UPDATED,e)},componentRemoved(e){return Y.hook(J.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){Y.hook(J.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return Y.hook(J.PERFORMANCE_START,e)},perfEnd(e){return Y.hook(J.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return Y.callHook(J.SETUP_DEVTOOLS_PLUGIN,e,t)}},ys=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(W.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook(W.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook(W.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook(W.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook(W.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook(W.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook(W.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook(W.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook(W.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(q.highPerfModeEnabled)return;let t=$o().find(e=>e.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){let t=[e.appContext.app,e.uid,e.parent?.uid,e];Y.callHook(J.COMPONENT_UPDATED,...t)}else Y.callHook(J.COMPONENT_UPDATED);this.hooks.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(G.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&gs(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){q.highPerfModeEnabled||this.hooks.callHook(G.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){q.highPerfModeEnabled||this.hooks.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(G.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(W.VISIT_COMPONENT_TREE,e)}now(){return q.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(G.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){q.highPerfModeEnabled||this.hooks.callHook(G.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return hs(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(G.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(G.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(G.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){let t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(G.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(G.COMPONENT_UNHIGHLIGHT)}},bs=`__vue_devtool_undefined__`,xs=`__vue_devtool_infinity__`,Ss=`__vue_devtool_negative_infinity__`,Cs=`__vue_devtool_nan__`;Object.entries({[bs]:`undefined`,[Cs]:`NaN`,[xs]:`Infinity`,[Ss]:`-Infinity`}).reduce((e,[t,n])=>(e[n]=t,e),{}),U.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function ws(e,t){return vs.setupDevToolsPlugin(e,t)}function Ts(e,t){let[n,r]=e;if(n.app!==t)return;let i=new ys({plugin:{setupFn:r,descriptor:n},ctx:Fs});n.packageName===`vuex`&&i.on.editInspectorState(e=>{i.sendInspectorState(e.inspectorId)}),r(i)}function Es(e,t){U.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||q.highPerfModeEnabled&&!t?.inspectingComponent||(U.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),ds.forEach(t=>{Ts(t,e)}))}var Ds=`__VUE_DEVTOOLS_ROUTER__`,Os=`__VUE_DEVTOOLS_ROUTER_INFO__`;U[Os]??={currentRoute:null,routes:[]},U[Ds]??={},new Proxy(U[Os],{get(e,t){return U[Os][t]}}),new Proxy(U[Ds],{get(e,t){if(t===`value`)return U[Ds]}});function ks(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function As(e){return e.map(e=>{let{path:t,name:n,children:r,meta:i}=e;return r?.length&&(r=As(r)),{path:t,name:n,children:r,meta:i}})}function js(e){if(e){let{fullPath:t,hash:n,href:r,path:i,name:a,matched:o,params:s,query:c}=e;return{fullPath:t,hash:n,href:r,path:i,name:a,params:s,query:c,matched:As(o)}}return e}function Ms(e,t){function n(){let t=e.app?.config.globalProperties.$router,n=js(t?.currentRoute.value),r=As(ks(t)),i=console.warn;console.warn=()=>{},U[Os]={currentRoute:n?Ia(n):{},routes:Ia(r)},U[Ds]=t,console.warn=i}n(),vs.on.componentUpdated(Ra(()=>{t.value?.app===e.app&&(n(),!q.highPerfModeEnabled&&Fs.hooks.callHook(ts.ROUTER_INFO_UPDATED,{state:U[Os]}))},200))}function Ns(e){return{async getInspectorTree(t){let n={...t,app:K.value.app,rootNodes:[]};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n))),t()},W.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){let n={...t,app:K.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n,r))),t()},W.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){let n=new Wo,r={...t,app:K.value.app,set:(e,r=t.path,i=t.state.value,a)=>{n.set(e,r,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(e=>{e.forEach(e=>e(r))},W.EDIT_INSPECTOR_STATE)},sendInspectorState(t){let n=es(t);e.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Po()},cancelInspectComponentInspector(){return No()},getComponentRenderCode(e){let t=no(K.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return Fo({id:e})},openInEditor:us,getVueInspector:Ro,toggleApp(e,t){let n=os.value.find(t=>t.id===e);n&&(ls(e),cs(n),Ms(n,K),Zo(),Es(n.app,t))},inspectDOM(e){let t=no(K.value,e);if(t){let[e]=uo(t);e&&(U.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){_s(e,t,n)},getPluginSettings(e){return{options:ms(e),values:hs(e)}}}}U.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};var Ps=ns();U.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:Ps,get state(){return{...q,activeAppRecordId:K.id,activeAppRecord:K.value,appRecords:os.value}},api:Ns(Ps)};var Fs=U.__VUE_DEVTOOLS_KIT_CONTEXT__,Is=Ja(((e,t)=>{(function(e){"use strict";var n={À:`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`},r=[`်`,`ް`],i={"ာ":`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`}},o={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`}},s=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`,`/`].join(``),c=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`].join(``),l=[`.`,`!`,`~`,`*`,`'`,`(`,`)`].join(``),u=function(e,t){var u=`-`,d=``,m=``,h=!0,g={},_,v,y,b,ee,x,S,C,w,T,E,D,O,k,A=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(u=t),S=o.en,C=a.en,typeof t==`object`)for(E in _=t.maintainCase||!1,g=t.custom&&typeof t.custom==`object`?t.custom:g,y=+t.truncate>1&&t.truncate||!1,b=t.uric||!1,ee=t.uricNoSlash||!1,x=t.mark||!1,h=t.symbols!==!1&&t.lang!==!1,u=t.separator||u,b&&(A+=s),ee&&(A+=c),x&&(A+=l),S=t.lang&&o[t.lang]&&h?o[t.lang]:h?o.en:{},C=t.lang&&a[t.lang]?a[t.lang]:t.lang===!1||t.lang===!0?{}:a.en,t.titleCase&&typeof t.titleCase.length==`number`&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){g[e+``]=e+``}),v=!0):v=!!t.titleCase,t.custom&&typeof t.custom.length==`number`&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){g[e+``]=e+``}),Object.keys(g).forEach(function(t){var n=t.length>1?RegExp(`\\b`+f(t)+`\\b`,`gi`):new RegExp(f(t),`gi`);e=e.replace(n,g[t])}),g)A+=E;for(A+=u,A=f(A),e=e.replace(/(^\s+|\s+$)/g,``),O=!1,k=!1,T=0,D=e.length;T<D;T++)E=e[T],p(E,g)?O=!1:C[E]?(E=O&&C[E].match(/[A-Za-z0-9]/)?` `+C[E]:C[E],O=!1):E in n?(T+1<D&&r.indexOf(e[T+1])>=0?(m+=E,E=``):k===!0?(E=i[m]+n[E],m=``):E=O&&n[E].match(/[A-Za-z0-9]/)?` `+n[E]:n[E],O=!1,k=!1):E in i?(m+=E,E=``,T===D-1&&(E=i[m]),k=!0):S[E]&&!(b&&s.indexOf(E)!==-1)&&!(ee&&c.indexOf(E)!==-1)?(E=O||d.substr(-1).match(/[A-Za-z0-9]/)?u+S[E]:S[E],E+=e[T+1]!==void 0&&e[T+1].match(/[A-Za-z0-9]/)?u:``,O=!0):(k===!0?(E=i[m]+E,m=``,k=!1):O&&(/[A-Za-z0-9]/.test(E)||d.substr(-1).match(/A-Za-z0-9]/))&&(E=` `+E),O=!1),d+=E.replace(RegExp(`[^\\w\\s`+A+`_-]`,`g`),u);return v&&(d=d.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(n===null?``:n);return Object.keys(g).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),d=d.replace(/\s+/g,u).replace(RegExp(`\\`+u+`+`,`g`),u).replace(RegExp(`(^\\`+u+`+|\\`+u+`+$)`,`g`),``),y&&d.length>y&&(w=d.charAt(y)===u,d=d.slice(0,y),w||(d=d.slice(0,d.lastIndexOf(u)))),!_&&!v&&(d=d.toLowerCase()),d},d=function(e){return function(t){return u(t,e)}},f=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,`\\$&`)},p=function(e,t){for(var n in t)if(t[n]===e)return!0};if(t!==void 0&&t.exports)t.exports=u,t.exports.createSlug=d;else if(typeof define<`u`&&define.amd)define([],function(){return u});else try{if(e.getSlug||e.createSlug)throw`speakingurl: globals exists /(getSlug|createSlug)/`;e.getSlug=u,e.createSlug=d}catch{}})(e)}));Ja(((e,t)=>{t.exports=Is()}))(),U.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function Ls(e){q.highPerfModeEnabled=e??!q.highPerfModeEnabled,!e&&K.value&&Es(K.value.app)}function Rs(e){q.devtoolsClientDetected={...q.devtoolsClientDetected,...e},Ls(!Object.values(q.devtoolsClientDetected).some(Boolean))}U.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=Rs;var zs=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()}},Bs=class{constructor(e){this.generateIdentifier=e,this.kv=new zs}register(e,t){this.kv.getByValue(e)||(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)}},Vs=class extends Bs{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 Hs(e){if(`values`in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Us(e,t){let n=Hs(e);if(`find`in n)return n.find(t);let r=n;for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}function Ws(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function Gs(e,t){return e.indexOf(t)!==-1}function Ks(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var qs=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Us(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Js=e=>Object.prototype.toString.call(e).slice(8,-1),Ys=e=>e===void 0,Xs=e=>e===null,Zs=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype,Qs=e=>Zs(e)&&Object.keys(e).length===0,X=e=>Array.isArray(e),$s=e=>typeof e==`string`,ec=e=>typeof e==`number`&&!isNaN(e),tc=e=>typeof e==`boolean`,nc=e=>e instanceof RegExp,rc=e=>e instanceof Map,ic=e=>e instanceof Set,ac=e=>Js(e)===`Symbol`,oc=e=>e instanceof Date&&!isNaN(e.valueOf()),sc=e=>e instanceof Error,cc=e=>typeof e==`number`&&isNaN(e),lc=e=>tc(e)||Xs(e)||Ys(e)||ec(e)||$s(e)||ac(e),uc=e=>typeof e==`bigint`,dc=e=>e===1/0||e===-1/0,fc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),pc=e=>e instanceof URL,mc=e=>e.replace(/\./g,`\\.`),hc=e=>e.map(String).map(mc).join(`.`),gc=e=>{let t=[],n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`\\`&&e.charAt(r+1)===`.`){n+=`.`,r++;continue}if(i===`.`){t.push(n),n=``;continue}n+=i}let r=n;return t.push(r),t};function Z(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var _c=[Z(Ys,`undefined`,()=>null,()=>void 0),Z(uc,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),Z(oc,`Date`,e=>e.toISOString(),e=>new Date(e)),Z(sc,`Error`,(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{let n=Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Z(nc,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),Z(ic,`set`,e=>[...e.values()],e=>new Set(e)),Z(rc,`map`,e=>[...e.entries()],e=>new Map(e)),Z(e=>cc(e)||dc(e),`number`,e=>cc(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),Z(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),Z(pc,`URL`,e=>e.toString(),e=>new URL(e))];function vc(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var yc=vc((e,t)=>ac(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown symbol`);return r}),bc=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),xc=vc(fc,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=bc[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function Sc(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Cc=vc(Sc,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw 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)}),wc=vc((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)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error(`Trying to deserialize unknown custom value`);return r.deserialize(e)}),Tc=[Cc,yc,wc,xc],Ec=(e,t)=>{let n=Ks(Tc,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=Ks(_c,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Dc={};_c.forEach(e=>{Dc[e.annotation]=e});var Oc=(e,t,n)=>{if(X(t))switch(t[0]){case`symbol`:return yc.untransform(e,t,n);case`class`:return Cc.untransform(e,t,n);case`custom`:return wc.untransform(e,t,n);case`typed-array`:return xc.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=Dc[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}},kc=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Ac(e){if(Gs(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(Gs(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(Gs(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var jc=(e,t)=>{Ac(t);for(let n=0;n<t.length;n++){let r=t[n];if(ic(e))e=kc(e,+r);else if(rc(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=kc(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o)}}else e=e[r]}return e},Mc=(e,t,n)=>{if(Ac(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(X(r)){let e=+n;r=r[e]}else if(Zs(r))r=r[n];else if(ic(r)){let e=+n;r=kc(r,e)}else if(rc(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=kc(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o)}}}let i=t[t.length-1];if(X(r)?r[+i]=n(r[+i]):Zs(r)&&(r[i]=n(r[i])),ic(r)){let e=kc(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(rc(r)){let e=+t[t.length-2],a=kc(r,e);switch(+i==0?`key`:`value`){case`key`:{let e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case`value`:r.set(a,n(r.get(a)))}}return e};function Nc(e,t,n=[]){if(!e)return;if(!X(e)){Ws(e,(e,r)=>Nc(e,t,[...n,...gc(r)]));return}let[r,i]=e;i&&Ws(i,(e,r)=>{Nc(e,t,[...n,...gc(r)])}),t(r,n)}function Pc(e,t,n){return Nc(t,(t,r)=>{e=Mc(e,r,e=>Oc(e,t,n))}),e}function Fc(e,t){function n(t,n){let r=jc(e,gc(n));t.map(gc).forEach(t=>{e=Mc(e,t,()=>r)})}if(X(t)){let[r,i]=t;r.forEach(t=>{e=Mc(e,gc(t),()=>e)}),i&&Ws(i,n)}else Ws(t,n);return e}var Ic=(e,t)=>Zs(e)||X(e)||rc(e)||ic(e)||Sc(e,t);function Lc(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function Rc(e,t){let n={},r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;i.length===0?r=a.map(hc):n[hc(i)]=a.map(hc)}),r?Qs(n)?[r]:[r,n]:Qs(n)?void 0:n}var zc=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=lc(e);if(!s){Lc(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!Ic(e,n)){let t=Ec(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(Gs(a,e))return{transformedValue:null};let c=Ec(e,n),l=c?.value??e,u=X(l)?[]:{},d={};Ws(l,(s,c)=>{if(c===`__proto__`||c===`constructor`||c===`prototype`)throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);let l=zc(s,t,n,r,[...i,c],[...a,e],o);u[c]=l.transformedValue,X(l.annotations)?d[c]=l.annotations:Zs(l.annotations)&&Ws(l.annotations,(e,t)=>{d[mc(c)+`.`+t]=e})});let f=Qs(d)?{transformedValue:u,annotations:c?[c.type]:void 0}:{transformedValue:u,annotations:c?[c.type,d]:d};return s||o.set(e,f),f};function Bc(e){return Object.prototype.toString.call(e).slice(8,-1)}function Vc(e){return Bc(e)===`Array`}function Hc(e){if(Bc(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Uc(e,t,n,r,i){let a={}.propertyIsEnumerable.call(r,t)?`enumerable`:`nonenumerable`;a===`enumerable`&&(e[t]=n),i&&a===`nonenumerable`&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function Wc(e,t={}){if(Vc(e))return e.map(e=>Wc(e,t));if(!Hc(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(Vc(t.props)&&!t.props.includes(r))return n;let i=e[r];return Uc(n,r,Wc(i,t),e,t.nonenumerable),n},{})}var Q=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Vs,this.symbolRegistry=new Bs(e=>e.description??``),this.customTransformerRegistry=new qs,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=zc(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=Rc(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){let{json:t,meta:n}=e,r=Wc(t);return n?.values&&(r=Pc(r,n.values,this)),n?.referentialEqualities&&(r=Fc(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)}};Q.defaultInstance=new Q,Q.serialize=Q.defaultInstance.serialize.bind(Q.defaultInstance),Q.deserialize=Q.defaultInstance.deserialize.bind(Q.defaultInstance),Q.stringify=Q.defaultInstance.stringify.bind(Q.defaultInstance),Q.parse=Q.defaultInstance.parse.bind(Q.defaultInstance),Q.registerClass=Q.defaultInstance.registerClass.bind(Q.defaultInstance),Q.registerSymbol=Q.defaultInstance.registerSymbol.bind(Q.defaultInstance),Q.registerCustom=Q.defaultInstance.registerCustom.bind(Q.defaultInstance),Q.allowErrorProps=Q.defaultInstance.allowErrorProps.bind(Q.defaultInstance),Q.serialize,Q.deserialize,Q.stringify,Q.parse,Q.registerClass,Q.registerCustom,Q.registerSymbol,Q.allowErrorProps,U.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],U.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,U.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,U.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,U.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,U.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;var Gc={template:`<div>This is component</div>`},Kc=V({name:`parentA`,path:`/parentA/[paramA]`}),qc=V({parent:Kc,name:`parentA.childA`,path:`/childA/[?paramB]`});V({parent:Kc,name:`parentA.childB`,path:`/childB/[paramD]`}).addView(Gc),V({parent:qc,name:`parentA.childA.grandChildA`,path:`/[paramC]`}).addView(Gc),V({name:`parentB`,path:`/parentB`}).addView(Gc),V({name:`parentC`,path:`/`}).addView(Gc);function Jc(e,t){return t===`1`?e:`${e} ${t}`}var Yc=({route:e})=>!!e.name,Xc=({route:e,payload:t})=>{if(!t.filter)return!0;if(!z(e))return!1;let n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},Zc=e=>Yc(e)&&Xc(e),Qc=_(),$c=2282478,el=2278750,tl=1483594;function nl(e,t={match:!1,exactMatch:!1}){let n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:$c}),t.match&&n.push({label:`match`,textColor:0,backgroundColor:el}),t.exactMatch&&n.push({label:`exact-match`,textColor:0,backgroundColor:tl}),{id:e.id,label:e.name,tags:n}}function rl(e,t){if(!t||!(`id`in t)||!(`matches`in t))return{match:!1,exactMatch:!1};let n=t.id===e.id;return{match:t.matches.some(t=>t.id===e.id),exactMatch:n}}function il(e){let t=[];return z(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):t}function al({router:e,app:n,routes:r}){if(!Pi()||e.hasDevtools)return;e.hasDevtools=!0;let i=Qc(),a=new Map(r.map(e=>[e.id,e])),o=`kitbag-router-routes.${i}`;ws({id:`kitbag-router.${i}`,label:`Kitbag Router`,packageName:`@kitbag/router`,homepage:`https://router.kitbag.dev/`,componentStateTypes:[`Routing`],logo:`https://kitbag.dev/kitbag-logo-circle.svg`,app:n},s=>{s.addInspector({id:o,label:Jc(`Routes`,i),treeFilterPlaceholder:`Search routes`}),s.on.getInspectorTree(t=>{t.app===n&&t.inspectorId===o&&(t.rootNodes=r.filter(e=>Zc({route:e,payload:t})).map(t=>nl(t,rl(t,e.route))))}),(0,t.watch)(()=>e.route,()=>{s.sendInspectorTree(o)},{deep:!0,immediate:!1}),s.on.getInspectorState(e=>{if(e.app!==n||e.inspectorId!==o)return;let t=a.get(e.nodeId);t&&(e.state={options:il(t)})}),s.sendInspectorTree(o),s.sendInspectorState(o)})}function ol(e,t){let n=new URLSearchParams(e),r=new URLSearchParams(t);for(let[e,t]of r.entries())n.delete(e,t);return n}function sl(e,t,n={}){let r=e.filter(na);for(let e of r){let{success:r,params:i}=e.tryParse(t,n);if(r)return An(e,i,{...n,...ul(t,e.stringify(i))})}for(let e of r)if(w(e))for(let r of e.aliases){let i=cl(e,r,t,n);if(i)return i}}function cl(e,t,n,r){let i=t.url.tryParse(n,r);if(!i.success)return;let a=ll(e,t.transform(n,i.params));if(a===void 0)return;let{success:o,params:s}=e.tryParse(a,r);if(!o)return;let c=ul(n,t.url.stringify(i.params));return An(e,s,{...r,...c,alias:{url:t.url,params:i.params}})}function ll(e,t){try{return e.stringify(t)}catch{return}}function ul(e,t){let{query:n,hash:r}=R(e),{query:i}=R(t);return{query:ol(n,i),hash:r}}var dl=/^(\/.+?)\/+$/;function fl(e){let{path:t,...n}=R(e);return Et({...n,path:t.replace(dl,`$1`)})}function pl(e){let{path:t}=R(e);return dl.test(t)}function ml(e){e===void 0||!Pi()||(document.title=e)}function hl(){let e=e=>{r.value=e},n=()=>{r.value=null},r=(0,t.ref)(null);return{currentRejection:r,updateRejection:e,clearRejection:n}}function gl({routerViewTransition:e,routeViewTransition:t,navigationViewTransition:n,...r}){let i=[e,t,n].filter(le),a=i.at(-1);if(a===void 0||a===!1)return!1;let o=[];for(let e of i){let t=_l(e,r);if(t===!1)return!1;o.push(...t)}return o}function _l(e,t){return typeof e==`boolean`?[]:Array.isArray(e)?e:typeof e.types==`function`?e.types(t):e.types??[]}function vl(){return typeof document<`u`&&typeof document.startViewTransition==`function`}function yl(){return typeof ViewTransition<`u`&&`types`in ViewTransition.prototype}function bl(){let e=(0,t.shallowReactive)(xl()),n,r=0,i=t=>{r++,Object.assign(e,{isTransitioning:!0,...t,transition:void 0})},a=()=>{r++,Object.assign(e,xl())},o=t=>{e.to===t.to&&a()},s=r=>{if(n){if(n.update=r,n.transition&&yl()){n.transition.types.clear();for(let t of e.types)n.transition.types.add(t)}return c(n),n.committed.promise}let i={update:r,committed:Promise.withResolvers()};return n=i,i.transition=Sl(async()=>{n=void 0;try{await i.update(),await(0,t.nextTick)(),i.committed.resolve()}catch(e){throw i.committed.reject(e),e}},e.types),i.transition.ready.catch(()=>{}),i.transition.updateCallbackDone.catch(()=>{}),c(i),i.committed.promise};function c({transition:t}){if(!t)return;let n=r;Object.assign(e,{transition:t});let i=()=>{r===n&&a()};t.finished.then(i,i)}return{viewTransition:e,prepare:i,cancel:o,reset:a,start:s}}function xl(){return{isTransitioning:!1,to:void 0,from:void 0,types:[],transition:void 0}}function Sl(e,t){return yl()?document.startViewTransition({update:e,types:t}):document.startViewTransition(e)}function Cl(e){return e?.matches.findLast(e=>e.navigation!==void 0)?.navigation}function wl(e){let t=e.navigation??e.routeNavigation??e.routerNavigation??`progressive`;return{navigation:t,isBlockingNavigation:t===`blocking`,isProgressiveNavigation:t===`progressive`}}function Tl(e,n,r=[]){let a=n?.isGlobalRouter??!0?ba:Symbol(),s=n?.removeTrailingSlashes??!0,c=n?.redirectStatus??302,l=n?.rejectStatus??200,u=n?.ssr??!1,d=n?.navigation,f=n?.viewTransition,p=gi(),m=Ni(),{routes:g,getRouteByName:_,getRejectionByType:v}=ia(e,r,n),y=v(`NotFound`),b=Oi(),ee=An(y.route),x=$n({redirectStatus:c});x.addGlobalRouteHooks(ua(r));let S=Qi(),C=bl(),w=va(a),T=$i(),D=Fi({mode:n?.historyMode,listener:({location:e,traversal:t})=>{let n=ai(e);te(n,{state:e.state,replace:!0,traversal:t})}});function O(e,t={}){let n=!ye(e),r=g.filter(e=>e.isRelative===n),i={removeTrailingSlashes:s};return sl(r,e,{...t,...i})}async function k({controller:e,to:t,from:n,url:r,options:i,progress:a}){let o=await x.runBeforeRouteHooks({to:t,from:n,signal:e.signal,progress:a});if(e.signal.aborted)return!1;switch(o.status){case`ABORT`:return i.traversal?.restore(),a.abort(),!1;case`PUSH`:case`REDIRECT`:return await j(...o.to),!1;case`REJECT`:return i.traversal?i.traversal.commit():D.update(r,i),M(o.type,{to:t,from:n}),a.abort(),!1;case`SUCCESS`:return i.traversal?i.traversal.commit():D.update(r,i),!0;default:throw Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(o)}`)}}async function A({controller:e,to:t,from:n,enabled:r}){if(!r)return;let i=await x.runAfterRouteHooks({to:t,from:n,signal:e.signal});if(!e.signal.aborted)switch(i.status){case`PUSH`:await j(...i.to);break;case`REJECT`:e.abort(),M(i.type,{to:t,from:n});break;case`SUCCESS`:break;default:throw Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(i)}`)}}let te=p.wrap(async(e,t={})=>{if(pl(e)&&s){let n=fl(e);if(i(n))return le(n,{...t,redirectStatus:c})}let n=S.begin();if(n.signal.aborted)return;let r=O(e,t)??null,a=Ae(),o=m.begin({to:r,from:a,expected:ie(e,r),inert:u||t.hydrating});function l(){if(!r){M(E,{to:r,from:a}),o.abort();return}de(),ye(e)||ae(r,a,o,n.signal),o.close(),Ce.value=!0,t.hydrating||_e(n.signal)}if(!t.hydrating&&!await k({controller:n,to:r,from:a,url:e,options:t,progress:o})){n.abort();return}let f=ne({route:r,signal:n.signal,update:l}),p=re({to:r,from:a,options:t,enabled:!u&&!ye(e)}),{isBlockingNavigation:h}=wl({routerNavigation:d,routeNavigation:Cl(r),navigation:t.navigation}),g=p||h;if(p?C.prepare(p):C.reset(),!t.hydrating&&g){let e=await f.prepare();if(!e&&p&&C.cancel(p),!e)return}if(p){await C.start(f.commit),await A({controller:n,to:r,from:a,enabled:!u});return}await Promise.all([f.commit(),A({controller:n,to:r,from:a,enabled:!u})])});function ne({route:e,signal:n,update:r}){let i=()=>n.aborted;return{prepare:async()=>{if(i())return!1;if(!e)return!0;let t=b.staged().compute(e),r=Promise.allSettled([t.props,t.loaders,...wr(e)]);return await Promise.race([r,pe(n)]),!i()},commit:()=>n.aborted?Promise.resolve(!1):(r(),(0,t.nextTick)().then(()=>!n.aborted))}}function re({to:e,from:t,options:n,enabled:r}){if(!r||!e||!t||!vl())return!1;let i=gl({routerViewTransition:f,routeViewTransition:e.matches.findLast(o)?.viewTransition,navigationViewTransition:n.viewTransition,to:e,from:t});return i!==!1&&{to:e,from:t,types:i}}function ie(e,t){return!t||ye(e)?0:Ci(t).length+Cr(t).length}function ae(e,t,n,r){let{props:i,loaders:a,values:o}=b.commit(e);p.add(oe(i,`props`,e,t,r),oe(a,`loader`,e,t,r)),n.track(...o,...wr(e)),he(e)}function oe(e,t,n,r,i){return e.then(e=>{if(!i.aborted)switch(e.status){case`SUCCESS`:case`ABANDONED`:break;case`PUSH`:j(...e.to);break;case`REJECT`:M(e.type,{to:n,from:r});break;default:throw Error(`Switch is not exhaustive for route data response status: ${JSON.stringify(e)}`)}}).catch(e=>{if(!i.aborted)try{x.runErrorHooks(e,{to:n,from:r,source:t})}catch(e){if(e instanceof H){j(...e.response.to);return}if(e instanceof Hn){M(e.response.type,{to:n,from:r});return}throw e}})}let se=(e,t={},n={})=>{let r=_(e);if(!r)throw new ea(e);return An(r,t,n)};function ce(e,t,n){if(i(e)){let{redirectStatus:n,...r}={...t};return{url:Dt(e,{query:r.query,hash:r.hash}),options:r,redirectStatus:n}}if(typeof e==`string`){let{replace:r,navigation:i,viewTransition:a,redirectStatus:o,...s}={...n},c={...t},l=se(e,c,s),u=Dn({...l.matched.state},{...l.state,...s.state});return{url:l.href,options:{replace:r,state:u,navigation:i,viewTransition:a},redirectStatus:o}}let{replace:r,navigation:a,viewTransition:o,redirectStatus:s,...c}={...t},l=Dn({...e.matched.state},{...e.state,...c.state});return{url:Dt(e.href,{query:c.query,hash:c.hash}),options:{replace:r,state:l,navigation:a,viewTransition:o},redirectStatus:s}}let j=async(e,t,n)=>{let{url:r,options:i,redirectStatus:a}=ce(e,t,n);if(u){xe(a??302,r);return}return te(r,i)},le=(e,t,n)=>{if(i(e)){let n={...t,replace:!0};return j(e,n)}if(typeof e==`string`){let r={...n,replace:!0},i={...t};return j(e,i,r)}let r={...t,replace:!0};return j(e,r)},M=(e,{to:t=null,from:n=null}={})=>{let r=v(e);if(!r)return;let i=S.begin();x.runRejectionHooks(r,{to:t,from:n}),N(r),Ce.value=!0,_e(i.signal)},{currentRejection:ue,updateRejection:N,clearRejection:de}=hl(),{currentRoute:fe,routerRoute:me,updateRoute:he}=mi({routerKey:a,fallbackRoute:ee,push:j,getData:b.getData});async function ge(){return await ue.value?.getTitle()??fe.getTitle()}async function _e(e){let t=await ge();e.aborted||ml(t)}let P=zi(n?.initialUrl,n?.historyMode),F=D.location.state,{host:ve}=R(P),ye=hi(ve),be=!1,{setServerRedirect:xe,getServerRedirect:Se}=Li(),Ce=(0,t.ref)(!1),{promise:we,resolve:Te}=Promise.withResolvers();async function Ee(e){let t=O(P)??null;if(!t){M(E,{to:t,from:null});return}switch(e.kind){case`reject`:M(e.rejection,{to:t,from:null});return;case`success`:{let r=Xi(t,e.values,n?.transformer),i=b.createDetachedStore();i.fill(t,r),i.stage(),await te(P,{replace:!0,state:F,hydrating:!0});return}default:throw Error(`Switch is not exhaustive for payload kind: ${JSON.stringify(e)}`)}}async function De(){if(be)return we;be=!0;let e=Ji();e?await Ee(e):await te(P,{replace:!0,state:F}),D.startListening(),Te(),Ce.value=!0}async function Oe(){if(!u)throw new h;await De(),await p.idle();let e=Se();if(e)return e;let t=ue.value;if(t){let e=await ge();return{kind:`reject`,status:t.status??l,rejection:t.type,title:e,payload:Ui({kind:`reject`,url:P,rejection:t.type})}}let r=await ge(),{values:i,failures:a}=Yi(fe,b.getValues(fe),n?.transformer);return{kind:`success`,status:200,title:r,failures:a,payload:Ui({kind:`success`,url:P,values:i})}}function ke(){S.stop(),m.stop(),D.stopListening()}function Ae(){return Ce.value?{...fe}:null}function je(e){x.setVueApp(e),b.setVueApp(e);let t=pr(a),n=Fr(a),r=Wr(a);e.component(`RouterView`,t),e.component(`RouterLink`,n),e.component(`RouterProgress`,r),e.component(`ViewTransition`,Pn),e.provide(jr(a),C.viewTransition),e.provide(ar(a),ue),e.provide(Qn(a),x),e.provide(mr(a),b),e.provide(rr(a),w),e.provide(Ir(a),m),e.provide(Tr,T),e.provide(a,Me),al({router:Me,app:e,routes:g}),De()}let Me={route:me,resolve:se,find:O,push:j,replace:le,reject:M,refresh:D.refresh,forward:D.forward,back:D.back,go:D.go,install:je,isExternal:ye,onBeforeRouteEnter:x.onBeforeRouteEnter,onBeforeRouteUpdate:x.onBeforeRouteUpdate,onBeforeRouteLeave:x.onBeforeRouteLeave,onAfterRouteEnter:x.onAfterRouteEnter,onAfterRouteUpdate:x.onAfterRouteUpdate,onAfterRouteLeave:x.onAfterRouteLeave,onError:x.onError,onRejection:x.onRejection,prefetch:n?.prefetch,start:De,started:Ce,render:Oe,stop:ke,key:a,hasDevtools:!1};return Me}var $=Kr(ba),El=$.onBeforeRouteLeave,Dl=$.onBeforeRouteUpdate,Ol=$.onAfterRouteLeave,kl=$.onAfterRouteUpdate,Al=$.isRoute,jl=$.RouterView,Ml=$.RouterLink,Nl=$.ViewTransition,Pl=$.RouterProgress,Fl=$.useRoute,Il=$.useRouter,Ll=$.useQueryValue,Rl=$.useLink,zl=$.useRejection,Bl=$.useViewTransition,Vl=$.useNavigation;e.DuplicateParamsError=s,e.LoaderDataAccessError=c,e.LoaderNameConflict=l,e.MetaPropertyConflict=u,e.NavigationAbandonedError=d,e.PayloadValueError=f,e.RouterLink=Ml,e.RouterNotInstalledError=p,e.RouterProgress=Pl,e.RouterView=jl,e.SsrOptionRequiredError=h,e.UnreachableRouteError=g,e.UseRouteInvalidError=m,e.ViewTransition=Nl,e.arrayOf=Qr,e.asUrlString=a,e.createExternalRoute=Mn,e.createParam=oe,e.createRejection=jn,e.createRoute=V,e.createRouter=Tl,e.createRouterAssets=Kr,e.createRouterPlugin=Yr,e.createUrl=jt,e.hasViewTransition=o,e.isResolvedRoute=r,e.isRoute=Al,e.isUrlString=i,e.literal=Re,e.onAfterRouteLeave=Ol,e.onAfterRouteUpdate=kl,e.onBeforeRouteLeave=El,e.onBeforeRouteUpdate=Dl,e.tupleOf=ei,e.unionOf=Xr,e.useLink=Rl,e.useNavigation=Vl,e.useQueryValue=Ll,e.useRejection=zl,e.useRoute=Fl,e.useRouter=Il,e.useViewTransition=Bl,e.withDefault=ce,e.withParams=vt});
5
+ `)}function Wi(){let e=(0,t.ref)(!1),n=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.shallowRef)(null),a=(0,t.shallowRef)(null),o;return{begin:t=>{let s=!1,c=()=>o===f;function l(){o=void 0,e.value=!1,i.value=null,a.value=null}function u(){s&&n.value>=r.value&&l()}function d(){c()&&(n.value+=1,u())}let f={expect:e=>{c()&&(r.value+=e)},track:(...e)=>{if(c())for(let t of e)t.then(d,d)},close:()=>{c()&&(s=!0,u())},abort:()=>{c()&&(n.value=0,r.value=0,l())}};return t.inert||(o=f,e.value=!0,n.value=0,r.value=t.expected,i.value=t.to,a.value=t.from),f},stop:()=>{o?.abort()},pending:(0,t.computed)(()=>e.value),to:(0,t.computed)(()=>i.value),from:(0,t.computed)(()=>a.value),settled:(0,t.computed)(()=>n.value),total:(0,t.computed)(()=>r.value),progress:(0,t.computed)(()=>!e.value||r.value===0?0:n.value/r.value)}}function Gi(){return typeof window<`u`&&window.document!==void 0}function Ki({mode:e,listener:t}){let n=qi(e),r=!1,i={key:n.location.key,index:n.index},a;function o(){i={key:n.location.key,index:n.index}}let s=(e,t)=>{a=void 0,r=!0;try{if(t?.replace){n.replace(e,t.state);return}n.push(e,t?.state)}finally{o(),r=!1}},c=()=>{let e=gi(n.location);n.replace(e)},l,u=()=>{l?.(),l=n.listen(e=>{if(r)return;if(e.action===`POP`&&e.location.key===a){a=void 0;return}if(a=void 0,e.action!==`POP`){t(e);return}let s={commit:o,restore:()=>{if(i.index===null||n.index===null)return;let e=i.index-n.index;e!==0&&(a=i.key,n.go(e))}};t({...e,traversal:s})})},d=()=>{a=void 0,l?.()};return{...n,get index(){return n.index},get action(){return n.action},get location(){return n.location},update:s,refresh:c,startListening:u,stopListening:d}}function qi(e=`auto`){switch(e){case`auto`:return Gi()?Si():wi();case`browser`:return Si();case`memory`:return wi();case`hash`:return Ci();default:throw Error(`Switch is not exhaustive for mode: ${e}`)}}function Ji(){let e;return{setServerRedirect:(t,n)=>{e??={kind:`redirect`,status:t,location:n}},getServerRedirect:()=>e}}var Yi=class extends Error{constructor(){super(`initialUrl must be set if window.location is unavailable`)}};function Xi(e,t){if(e)return e;if(Gi())return t===`hash`?window.location.hash.slice(1)||`/`:window.location.toString();throw new Yi}var Zi=`kitbag-payload`,Qi=`\u2028`,$i=`\u2029`;function ea(e){return`<script type="application/json" id="${Zi}">${JSON.stringify(e).replace(/</g,`\\u003C`).replace(new RegExp(Qi,`g`),`\\u2028`).replace(new RegExp($i,`g`),`\\u2029`)}<\/script>`}var ta={stringify:JSON.stringify,parse:JSON.parse};function na(e){return e===`props`||e===`loader`}function ra(e){return j(e)&&na(e.kind)&&typeof e.depth==`number`&&typeof e.name==`string`&&typeof e.encoded==`string`}function ia(e){return!j(e)||typeof e.url!=`string`?!1:e.kind===`success`?Array.isArray(e.values)&&e.values.every(ra):e.kind===`reject`&&typeof e.rejection==`string`}function aa(){if(!Gi())return;let e=document.getElementById(Zi)?.textContent;if(e)try{let t=JSON.parse(e);return ia(t)?t:void 0}catch{return}}function oa(e,t,n=ta){let r=Pi(e),i=[],a=[];for(let{kind:e,depth:o,name:s,value:c}of t){let t=ca(r,{kind:e,depth:o,name:s})??n;try{let n=t.stringify(c);if(typeof n!=`string`)throw Error(`stringify returned ${typeof n}`);i.push({kind:e,depth:o,name:s,encoded:n})}catch(t){let n=new f(`stringify`,e,s,t);console.warn(`${n.message}. The value was left out of the payload, so the client computes it again.`),a.push(n)}}return{values:i,failures:a}}function sa(e,t,n=ta){let r=Pi(e);for(let{kind:e,depth:n,name:i}of r)t.some(t=>t.kind===e&&t.depth===n&&t.name===i)||console.warn(`The payload has no value for ${e} "${i}". Its getter runs again, which can cause a hydration mismatch.`);return t.flatMap(({kind:e,depth:t,name:i,encoded:a})=>{let o=ca(r,{kind:e,depth:t,name:i})??n;try{return[{kind:e,depth:t,name:i,value:o.parse(a)}]}catch(t){let n=new f(`parse`,e,i,t);return console.warn(`${n.message}. The value was left out, so its getter runs again, which can cause a hydration mismatch.`),[]}})}function ca(e,{kind:t,depth:n,name:r}){return e.find(e=>e.kind===t&&e.depth===n&&e.name===r)?.transformer}function la(){let e,t=!1;return{begin:()=>(e?.abort(),e=new AbortController,t&&e.abort(),e),stop:()=>{t=!0,e?.abort()}}}function ua(){let e=(0,t.reactive)(new Map),n=Gi()?s():null,r=t=>{e.set(t,!1),n?.observe(t)},i=t=>{e.delete(t),n?.unobserve(t)},a=()=>{n?.disconnect()},o=t=>e.get(t)??!1;function s(){return new IntersectionObserver(t=>{t.forEach(t=>{e.set(t.target,t.isIntersecting)})})}return{observe:r,unobserve:i,disconnect:a,isElementVisible:o}}var da=class extends Error{constructor(e){super(`Route not found: "${e}"`)}};function fa(e){let t=k(e).flatMap(e=>[...e.onBeforeRouteEnter,...e.onBeforeRouteUpdate,...e.onBeforeRouteLeave,...e.onAfterRouteEnter,...e.onAfterRouteUpdate,...e.onAfterRouteLeave]);return[...e.context,...t.filter(zn).flatMap(e=>e.context)]}var pa=class extends Error{constructor(e){super(`Invalid Name "${e}": Router does not support multiple routes with the same name. All name names must be unique.`)}};function ma(e){return`name`in e&&N(e.name)}function ha(e,t){if(!T(e))throw Error(`insertBaseRoute called with an invalid route`);if(!N(t))return e;let n=jt({path:t}),r=e.aliases.map(e=>({...e,url:Vt(n,e.url)}));return{...e,...Vt(n,e),aliases:r}}function ga(e,t=[],n={}){let r=new Map,i=new Map,a=[...e,...t.map(e=>e.routes)],o=[...Object.entries(E).map(([e,t])=>In({type:e,status:t})),...n.rejections??[],...t.map(e=>e.rejections)],s=[],c=[],l=new Set,u=!1;function d(e){u||!zn(e)||f(e.context)}function f(e){let t=new Map,a=new Map;function o(e){if(!T(e)||!ma(e))return;let i=t.get(e.name)??r.get(e.name);if(i&&i.id!==e.id)throw new pa(e.name);if(i)return;let a=ha(e,n.base);if(ya(a))throw new g(e.name,va(a));t.set(e.name,a),u(fa(e))}function u(e){for(let t of e)T(t)&&o(t),O(t)&&a.set(t.type,t)}u(e);for(let[e,n]of t){r.set(e,n),s.push(n);for(let e of k(n))l.has(e)||(l.add(e),e.onHookAdded.add(d))}for(let[e,t]of a)i.set(e,t);s.sort(_a),c.splice(0,c.length,...i.values())}f([...a.flat(),...o.flat()]);function p(e){return r.get(e)}function m(e){return i.get(e)}function h(){u=!0;for(let e of l)e.onHookAdded.delete(d);l.clear()}return{routes:s,rejections:c,addHookContext:d,stop:h,getRouteByName:p,getRejectionByType:m}}function _a(e,t){return t.depth-e.depth}function va(e){return B(e)?e.schema.path.value:``}function ya(e){return e.isRelative&&!va(e).startsWith(`/`)}function ba(e=[]){let t=new V;return e.forEach(e=>{ai(e)&&(e.hooks.onBeforeRouteEnter.forEach(e=>t.onBeforeRouteEnter.add(e)),e.hooks.onBeforeRouteUpdate.forEach(e=>t.onBeforeRouteUpdate.add(e)),e.hooks.onBeforeRouteLeave.forEach(e=>t.onBeforeRouteLeave.add(e)),e.hooks.onAfterRouteEnter.forEach(e=>t.onAfterRouteEnter.add(e)),e.hooks.onAfterRouteUpdate.forEach(e=>t.onAfterRouteUpdate.add(e)),e.hooks.onAfterRouteLeave.forEach(e=>t.onAfterRouteLeave.add(e)))}),t}var xa=t.ssrContextKey;function Sa(){return(0,t.inject)(xa,null)!==null}function Ca(){return!!(0,t.getCurrentInstance)()?.suspense}function wa(e,{id:n,name:r,component:i}){let a=Er(e),o=Cr(e);return(0,t.defineComponent)({name:`PropsWrapper`,expose:[],setup(){let e=a(),s=o(),c=Sa(),l=Ca();return()=>{let a=e.getProps(n,r,s);return pe(a)?c||l?(0,t.h)(Ea,{component:i,props:a}):(0,t.h)(Ta,{component:i,props:a}):a.kind===`error`?``:(0,t.h)(i,a.value)}}})}var Ta=(0,t.defineComponent)(e=>{let n=(0,t.ref)();return(0,t.watch)(()=>e.props,async e=>{n.value=await e},{immediate:!0,deep:!0}),()=>Da(e.component,n.value)},{props:[`component`,`props`]}),Ea=(0,t.defineComponent)(async e=>{let n=(0,t.ref)();return n.value=await e.props,(0,t.watch)(()=>e.props,async e=>{n.value=await e},{deep:!0}),()=>Da(e.component,n.value)},{props:[`component`,`props`]});function Da(e,n){return n===void 0||n.kind===`error`?``:(0,t.h)(e,n.value)}function Oa(e){let t=new Map;return{getRouteComponents:(n,r)=>{let i=t.get(n);if(i)return i;let a=ka(e,n,r);return t.set(n,a),a}}}function ka(e,t,n){let r=Object.entries(n);return r.length===0?{default:wr(e)}:Object.fromEntries(r.map(([n,{component:r}])=>[n,wa(e,{id:t,name:n,component:r})]))}var Aa=Symbol(),ja=Object.create,Ma=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,Pa=Object.getOwnPropertyNames,Fa=Object.getPrototypeOf,Ia=Object.prototype.hasOwnProperty,La=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ra=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Pa(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ia.call(e,s)&&s!==n&&Ma(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Na(t,s))||r.enumerable});return e},za=(e,t,n)=>(n=e==null?{}:ja(Fa(e)),Ra(t||!e||!e.__esModule?Ma(n,`default`,{value:e,enumerable:!0}):n,e)),Ba=typeof navigator<`u`,U=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};U.chrome!==void 0&&U.chrome.devtools,Ba&&(U.self,U.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__;var Va=za(La(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];o[c]=typeof l!=`object`||!l?l:l.constructor!==Object&&(r=t.get(l.constructor))?r(l,i):ArrayBuffer.isView(l)?n(l):i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];i[a]=typeof s!=`object`||!s?s:s.constructor!==Object&&(r=t.get(s.constructor))?r(s,o):ArrayBuffer.isView(s)?n(s):o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];i[a]=typeof o!=`object`||!o?o:o.constructor!==Object&&(r=t.get(o.constructor))?r(o,s):ArrayBuffer.isView(o)?n(o):s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);c[u]=e===-1?o(d):r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);c[o]=e===-1?s(l):r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);s[o]=e===-1?c(l):r[e]}}return t.pop(),r.pop(),s}}}))(),1),Ha=/(?:^|[-_/])(\w)/g;function Ua(e,t){return t?t.toUpperCase():``}function Wa(e){return e&&`${e}`.replace(Ha,Ua)}function Ga(e,t){let n=e.replace(/^[a-z]:/i,``).replace(/\\/g,`/`);n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));let r=n.lastIndexOf(`/`),i=n.substring(r+1);if(t){let e=i.lastIndexOf(t);return i.substring(0,e)}return``}var Ka=(0,Va.default)({circles:!0}),qa={trailing:!0};function Ja(e,t=25,n={}){if(n={...qa,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,c=(t,r)=>(o=Ya(e,t,r),o.finally(()=>{if(o=null,n.trailing&&s&&!i){let e=c(t,s);return s=null,e}}),o),l=function(...e){return n.trailing&&(s=e),o||new Promise(o=>{let l=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;let t=n.leading?r:c(this,e);s=null;for(let e of a)e(t);a=[]},t),l?(r=c(this,e),o(r)):a.push(o)})},u=e=>{e&&(clearTimeout(e),i=null)};return l.isPending=()=>!!i,l.cancel=()=>{u(i),a=[],s=null},l.flush=()=>{if(u(i),!s||o)return;let e=s;return s=null,c(this,e)},l}async function Ya(e,t,n){return await e.apply(t,n)}function Xa(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Xa(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var Za={run:e=>e()},Qa=console.createTask===void 0?()=>Za:console.createTask;function $a(e,t){let n=Qa(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function eo(e,t){let n=Qa(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function to(e,t){for(let n of[...e])n(t)}var no=class{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(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Xa(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=Xa(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith($a,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(eo,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&to(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&to(this._after,r)}):(this._after&&r&&to(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function ro(){return new no}var io=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);function ao(e){if(typeof e==`function`)return e.displayName||e.name||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||``;let t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t===`index`&&e.__file?.endsWith(`index.vue`)?``:t}function oo(e){let t=e.__file;if(t)return Wa(Ga(t,`.vue`))}function so(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function co(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 lo(e){let t=e.subTree?.type,n=co(e);return n?n?.types?.Fragment===t:!1}function uo(e){let t=ao(e?.type||{});if(t)return t;if(e?.root===e)return`Root`;for(let t in e.parent?.type?.components)if(e.parent.type.components[t]===e?.type)return so(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return so(e,t);return oo(e?.type||{})||`Anonymous Component`}function fo(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function po(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function mo(){let 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}var ho;function go(e){return ho||=document.createRange(),ho.selectNode(e),ho.getBoundingClientRect()}function _o(e){let t=mo();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],i;if(r.component)i=bo(r.component);else if(r.el){let e=r.el;e.nodeType===1||e.getBoundingClientRect?i=e.getBoundingClientRect():e.nodeType===3&&e.data.trim()&&(i=go(e))}i&&vo(t,i)}return t}function vo(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}var yo={top:0,left:0,right:0,bottom:0,width:0,height:0};function bo(e){let t=e.subTree.el;return typeof window>`u`?yo:lo(e)?_o(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?bo(e.subTree.component):yo}function xo(e){return lo(e)?So(e.subTree):e.subTree?[e.subTree.el]:[]}function So(e){if(!e.children)return[];let t=[];return e.children.forEach(e=>{e.component?t.push(...xo(e.component)):e?.el&&t.push(e.el)}),t}var Co=`__vue-devtools-component-inspector__`,wo=`__vue-devtools-component-inspector__card__`,To=`__vue-devtools-component-inspector__name__`,Eo=`__vue-devtools-component-inspector__indicator__`,Do={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},Oo={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)`},ko={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function Ao(){return document.getElementById(Co)}function jo(){return document.getElementById(wo)}function Mo(){return document.getElementById(Eo)}function No(){return document.getElementById(To)}function Po(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 Fo(e){let t=document.createElement(`div`);t.id=e.elementId??Co,Object.assign(t.style,{...Do,...Po(e.bounds),...e.style});let n=document.createElement(`span`);n.id=wo,Object.assign(n.style,{...Oo,top:e.bounds.top<35?0:`-35px`});let r=document.createElement(`span`);r.id=To,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;let i=document.createElement(`i`);return i.id=Eo,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,ko),n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body.appendChild(t),t}function Io(e){let t=Ao(),n=jo(),r=No(),i=Mo();t&&(Object.assign(t.style,{...Do,...Po(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:`-35px`}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function Lo(e){let t=bo(e);if(!t.width&&!t.height)return;let n=uo(e);Ao()?Io({bounds:t,name:n}):Fo({bounds:t,name:n})}function Ro(){let e=Ao();e&&(e.style.display=`none`)}var zo=null;function Bo(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(zo=e,e.vnode.el)){let t=bo(e),n=uo(e);Ao()?Io({bounds:t,name:n}):Fo({bounds:t,name:n})}}}function Vo(e,t){e.preventDefault(),e.stopPropagation(),zo&&t(fo(zo))}var Ho=null;function Uo(){Ro(),window.removeEventListener(`mouseover`,Bo),window.removeEventListener(`click`,Ho,!0),Ho=null}function Wo(){return window.addEventListener(`mouseover`,Bo),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Vo(n,n=>{window.removeEventListener(`click`,t,!0),Ho=null,window.removeEventListener(`mouseover`,Bo);let r=Ao();r&&(r.style.display=`none`),e(JSON.stringify({id:n}))})}Ho=t,window.addEventListener(`click`,t,!0)})}function Go(e){let t=po(K.value,e.id);if(t){let[n]=xo(t);if(typeof n.scrollIntoView==`function`)n.scrollIntoView({behavior:`smooth`});else{let e=bo(t),n=document.createElement(`div`),r={...Po(e),position:`absolute`};Object.assign(n.style,r),document.body.appendChild(n),n.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{document.body.removeChild(n)},2e3)}setTimeout(()=>{let n=bo(t);if(n.width||n.height){let r=uo(t),i=Ao();i?Io({...e,name:r,bounds:n}):Fo({...e,name:r,bounds:n}),setTimeout(()=>{i&&(i.style.display=`none`)},1500)}},1200)}}U.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function Ko(e){let t=0,n=setInterval(()=>{U.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function qo(){let e=U.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Jo(){return new Promise(e=>{function t(){qo(),e(U.__VUE_INSPECTOR__)}U.__VUE_INSPECTOR__?t():Ko(()=>{t()})})}var Yo=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 Xo(e){return!!(e&&e[Yo.IS_READONLY])}function Zo(e){return Xo(e)?Zo(e[Yo.RAW]):!!(e&&e[Yo.IS_REACTIVE])}function Qo(e){return!!(e&&e.__v_isRef===!0)}function $o(e){let t=e&&e[Yo.RAW];return t?$o(t):e}var es=class{constructor(){this.refEditor=new ts}set(e,t,n,r){let i=Array.isArray(t)?t:t.split(`.`);for(;i.length>1;){let t=i.shift();e=e instanceof Map?e.get(t):e instanceof Set?Array.from(e.values())[t]:e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}let a=i[0],o=this.refEditor.get(e)[a];r?r(e,a,n):this.refEditor.isRef(o)?this.refEditor.set(o,n):e[a]=n}get(e,t){let n=Array.isArray(t)?t:t.split(`.`);for(let t=0;t<n.length;t++)if(e=e instanceof Map?e.get(n[t]):e[n[t]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(e===void 0)return!1;let r=Array.isArray(t)?t.slice():t.split(`.`),i=n?2:1;for(;e&&r.length>i;){let t=r.shift();e=e[t],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):$o(t)instanceof Map?t.delete(n):$o(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){let i=t[e.newKey||n];this.refEditor.isRef(i)?this.refEditor.set(i,r):$o(t)instanceof Map?t.set(e.newKey||n,r):$o(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},ts=class{set(e,t){if(Qo(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(t=>e.add(t));return}let n=Object.keys(t);if(e instanceof Map){let r=new Set(e.keys());n.forEach(n=>{e.set(n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>e.delete(t));return}let r=new Set(Object.keys(e));n.forEach(n=>{Reflect.set(e,n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>Reflect.deleteProperty(e,t))}}get(e){return Qo(e)?e.value:e}isRef(e){return Qo(e)||Zo(e)}};new es;var ns=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function rs(){if(typeof window>`u`||!Ba||typeof localStorage>`u`||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``};let e=localStorage.getItem===void 0?null:localStorage.getItem(ns);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}U.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];var is=new Proxy(U.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function as(e,t){q.timelineLayersState[t.id]=!1,is.push({...e,descriptorId:t.id,appRecord:co(t.app)})}U.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];var os=new Proxy(U.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),ss=Ja(()=>{Gs.hooks.callHook(ds.SEND_INSPECTOR_TO_CLIENT,ls())});function cs(e,t){os.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:co(t.app)}),ss()}function ls(){return os.filter(e=>e.descriptor.app===K.value.app).filter(e=>e.descriptor.id!==`components`).map(e=>{let 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 us(e,t){return os.find(n=>n.options.id===e&&(!t||n.descriptor.app===t))}var W=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}({}),G=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}({}),ds=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 fs(){let e=ro();e.hook(G.ADD_INSPECTOR,({inspector:e,plugin:t})=>{cs(e,t.descriptor)});let t=Ja(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=us(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,filter:r?.treeFilter||``,rootNodes:[]};await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i))),t()},W.GET_INSPECTOR_TREE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:i.rootNodes})))},ds.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(G.SEND_INSPECTOR_TREE,t);let n=Ja(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=us(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,nodeId:r?.selectedNodeId||``,state:null},a={currentTab:`custom-inspector:${t}`};i.nodeId&&await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i,a))),t()},W.GET_INSPECTOR_STATE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:i.nodeId,state:i.state})))},ds.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(G.SEND_INSPECTOR_STATE,n),e.hook(G.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:e,nodeId:t,plugin:n})=>{let r=us(e,n.descriptor.app);r&&(r.selectedNodeId=t)}),e.hook(G.TIMELINE_LAYER_ADDED,({options:e,plugin:t})=>{as(e,t.descriptor)}),e.hook(G.TIMELINE_EVENT_ADDED,({options:t,plugin:n})=>{q.highPerfModeEnabled||!q.timelineLayersState?.[n.descriptor.id]&&![`performance`,`component-event`,`keyboard`,`mouse`].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},ds.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(G.GET_COMPONENT_INSTANCES,async({app:e})=>{let t=e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!t)return null;let n=t.id.toString();return[...t.instanceMap].filter(([e])=>e.split(`:`)[0]===n).map(([,e])=>e)}),e.hook(G.GET_COMPONENT_BOUNDS,async({instance:e})=>bo(e)),e.hook(G.GET_COMPONENT_NAME,({instance:e})=>uo(e)),e.hook(G.COMPONENT_HIGHLIGHT,({uid:e})=>{let t=K.value.instanceMap.get(e);t&&Lo(t)}),e.hook(G.COMPONENT_UNHIGHLIGHT,()=>{Ro()}),e}U.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??=``,U.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],U.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];var ps=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function ms(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:rs()}}U[ps]??=ms();var hs=Ja(e=>{Gs.hooks.callHook(ds.DEVTOOLS_STATE_UPDATED,{state:e})});Ja((e,t)=>{Gs.hooks.callHook(ds.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});var gs=new Proxy(U.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t===`value`?U.__VUE_DEVTOOLS_KIT_APP_RECORDS__:U.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),K=new Proxy(U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t===`value`?U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t===`id`?U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function _s(){hs({...U[ps],appRecords:gs.value,activeAppRecordId:K.id,tabs:U.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:U.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function vs(e){U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,_s()}function ys(e){U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,_s()}var q=new Proxy(U[ps],{get(e,t){return t===`appRecords`?gs:t===`activeAppRecordId`?K.id:t===`tabs`?U.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?U.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:U[ps][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return e[t]=n,U[ps][t]=n,!0}});function bs(e={}){let{file:t,host:n,baseUrl:r=window.location.origin,line:i=0,column:a=0}=e;if(t){if(n===`chrome-extension`){let e=t.replace(/\\/g,`\\\\`),n=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??`/`;fetch(`${n}__open-in-editor?file=${encodeURI(t)}`).then(t=>{if(!t.ok){let t=`Opening component ${e} failed`;console.log(`%c${t}`,`color:red`)}})}else if(q.vitePluginDetected){let e=U.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;U.__VUE_INSPECTOR__.openInEditor(e,t,i,a)}}}U.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];var xs=new Proxy(U.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Ss(e){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Cs(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function ws(e){return(xs.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function Ts(e,t){let n=Cs(e);if(n){let e=localStorage.getItem(n);if(e)return JSON.parse(e)}return Ss(e?(xs.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function Es(e,t){let n=Cs(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Ss(t)))}function Ds(e,t,n){let r=Cs(e),i=localStorage.getItem(r),a=JSON.parse(i||`{}`),o={...a,[t]:n};localStorage.setItem(r,JSON.stringify(o)),Gs.hooks.callHookWith(r=>{r.forEach(r=>r({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:o}))},W.SET_PLUGIN_SETTINGS)}var J=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}({}),Y=U.__VUE_DEVTOOLS_HOOK??=ro(),Os={on:{vueAppInit(e){Y.hook(J.APP_INIT,e)},vueAppUnmount(e){Y.hook(J.APP_UNMOUNT,e)},vueAppConnected(e){Y.hook(J.APP_CONNECTED,e)},componentAdded(e){return Y.hook(J.COMPONENT_ADDED,e)},componentEmit(e){return Y.hook(J.COMPONENT_EMIT,e)},componentUpdated(e){return Y.hook(J.COMPONENT_UPDATED,e)},componentRemoved(e){return Y.hook(J.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){Y.hook(J.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return Y.hook(J.PERFORMANCE_START,e)},perfEnd(e){return Y.hook(J.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return Y.callHook(J.SETUP_DEVTOOLS_PLUGIN,e,t)}},ks=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(W.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook(W.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook(W.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook(W.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook(W.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook(W.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook(W.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook(W.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook(W.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(q.highPerfModeEnabled)return;let t=ls().find(e=>e.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){let t=[e.appContext.app,e.uid,e.parent?.uid,e];Y.callHook(J.COMPONENT_UPDATED,...t)}else Y.callHook(J.COMPONENT_UPDATED);this.hooks.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(G.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Es(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){q.highPerfModeEnabled||this.hooks.callHook(G.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){q.highPerfModeEnabled||this.hooks.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(G.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(W.VISIT_COMPONENT_TREE,e)}now(){return q.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(G.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){q.highPerfModeEnabled||this.hooks.callHook(G.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return Ts(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(G.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(G.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(G.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){let t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(G.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(G.COMPONENT_UNHIGHLIGHT)}},As=`__vue_devtool_undefined__`,js=`__vue_devtool_infinity__`,Ms=`__vue_devtool_negative_infinity__`,Ns=`__vue_devtool_nan__`;Object.entries({[As]:`undefined`,[Ns]:`NaN`,[js]:`Infinity`,[Ms]:`-Infinity`}).reduce((e,[t,n])=>(e[n]=t,e),{}),U.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function Ps(e,t){return Os.setupDevToolsPlugin(e,t)}function Fs(e,t){let[n,r]=e;if(n.app!==t)return;let i=new ks({plugin:{setupFn:r,descriptor:n},ctx:Gs});n.packageName===`vuex`&&i.on.editInspectorState(e=>{i.sendInspectorState(e.inspectorId)}),r(i)}function Is(e,t){U.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||q.highPerfModeEnabled&&!t?.inspectingComponent||(U.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),xs.forEach(t=>{Fs(t,e)}))}var Ls=`__VUE_DEVTOOLS_ROUTER__`,Rs=`__VUE_DEVTOOLS_ROUTER_INFO__`;U[Rs]??={currentRoute:null,routes:[]},U[Ls]??={},new Proxy(U[Rs],{get(e,t){return U[Rs][t]}}),new Proxy(U[Ls],{get(e,t){if(t===`value`)return U[Ls]}});function zs(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function Bs(e){return e.map(e=>{let{path:t,name:n,children:r,meta:i}=e;return r?.length&&(r=Bs(r)),{path:t,name:n,children:r,meta:i}})}function Vs(e){if(e){let{fullPath:t,hash:n,href:r,path:i,name:a,matched:o,params:s,query:c}=e;return{fullPath:t,hash:n,href:r,path:i,name:a,params:s,query:c,matched:Bs(o)}}return e}function Hs(e,t){function n(){let t=e.app?.config.globalProperties.$router,n=Vs(t?.currentRoute.value),r=Bs(zs(t)),i=console.warn;console.warn=()=>{},U[Rs]={currentRoute:n?Ka(n):{},routes:Ka(r)},U[Ls]=t,console.warn=i}n(),Os.on.componentUpdated(Ja(()=>{t.value?.app===e.app&&(n(),!q.highPerfModeEnabled&&Gs.hooks.callHook(ds.ROUTER_INFO_UPDATED,{state:U[Rs]}))},200))}function Us(e){return{async getInspectorTree(t){let n={...t,app:K.value.app,rootNodes:[]};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n))),t()},W.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){let n={...t,app:K.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n,r))),t()},W.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){let n=new es,r={...t,app:K.value.app,set:(e,r=t.path,i=t.state.value,a)=>{n.set(e,r,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(e=>{e.forEach(e=>e(r))},W.EDIT_INSPECTOR_STATE)},sendInspectorState(t){let n=us(t);e.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Wo()},cancelInspectComponentInspector(){return Uo()},getComponentRenderCode(e){let t=po(K.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return Go({id:e})},openInEditor:bs,getVueInspector:Jo,toggleApp(e,t){let n=gs.value.find(t=>t.id===e);n&&(ys(e),vs(n),Hs(n,K),ss(),Is(n.app,t))},inspectDOM(e){let t=po(K.value,e);if(t){let[e]=xo(t);e&&(U.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){Ds(e,t,n)},getPluginSettings(e){return{options:ws(e),values:Ts(e)}}}}U.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};var Ws=fs();U.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:Ws,get state(){return{...q,activeAppRecordId:K.id,activeAppRecord:K.value,appRecords:gs.value}},api:Us(Ws)};var Gs=U.__VUE_DEVTOOLS_KIT_CONTEXT__,Ks=io(((e,t)=>{(function(e){"use strict";var n={À:`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`},r=[`်`,`ް`],i={"ာ":`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`}},o={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`}},s=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`,`/`].join(``),c=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`].join(``),l=[`.`,`!`,`~`,`*`,`'`,`(`,`)`].join(``),u=function(e,t){var u=`-`,d=``,m=``,h=!0,g={},_,v,y,b,x,S,ee,C,w,T,E,te,D,O,k=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(u=t),ee=o.en,C=a.en,typeof t==`object`)for(E in _=t.maintainCase||!1,g=t.custom&&typeof t.custom==`object`?t.custom:g,y=+t.truncate>1&&t.truncate||!1,b=t.uric||!1,x=t.uricNoSlash||!1,S=t.mark||!1,h=t.symbols!==!1&&t.lang!==!1,u=t.separator||u,b&&(k+=s),x&&(k+=c),S&&(k+=l),ee=t.lang&&o[t.lang]&&h?o[t.lang]:h?o.en:{},C=t.lang&&a[t.lang]?a[t.lang]:t.lang===!1||t.lang===!0?{}:a.en,t.titleCase&&typeof t.titleCase.length==`number`&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){g[e+``]=e+``}),v=!0):v=!!t.titleCase,t.custom&&typeof t.custom.length==`number`&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){g[e+``]=e+``}),Object.keys(g).forEach(function(t){var n=t.length>1?RegExp(`\\b`+f(t)+`\\b`,`gi`):new RegExp(f(t),`gi`);e=e.replace(n,g[t])}),g)k+=E;for(k+=u,k=f(k),e=e.replace(/(^\s+|\s+$)/g,``),D=!1,O=!1,T=0,te=e.length;T<te;T++)E=e[T],p(E,g)?D=!1:C[E]?(E=D&&C[E].match(/[A-Za-z0-9]/)?` `+C[E]:C[E],D=!1):E in n?(T+1<te&&r.indexOf(e[T+1])>=0?(m+=E,E=``):O===!0?(E=i[m]+n[E],m=``):E=D&&n[E].match(/[A-Za-z0-9]/)?` `+n[E]:n[E],D=!1,O=!1):E in i?(m+=E,E=``,T===te-1&&(E=i[m]),O=!0):ee[E]&&!(b&&s.indexOf(E)!==-1)&&!(x&&c.indexOf(E)!==-1)?(E=D||d.substr(-1).match(/[A-Za-z0-9]/)?u+ee[E]:ee[E],E+=e[T+1]!==void 0&&e[T+1].match(/[A-Za-z0-9]/)?u:``,D=!0):(O===!0?(E=i[m]+E,m=``,O=!1):D&&(/[A-Za-z0-9]/.test(E)||d.substr(-1).match(/A-Za-z0-9]/))&&(E=` `+E),D=!1),d+=E.replace(RegExp(`[^\\w\\s`+k+`_-]`,`g`),u);return v&&(d=d.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(n===null?``:n);return Object.keys(g).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),d=d.replace(/\s+/g,u).replace(RegExp(`\\`+u+`+`,`g`),u).replace(RegExp(`(^\\`+u+`+|\\`+u+`+$)`,`g`),``),y&&d.length>y&&(w=d.charAt(y)===u,d=d.slice(0,y),w||(d=d.slice(0,d.lastIndexOf(u)))),!_&&!v&&(d=d.toLowerCase()),d},d=function(e){return function(t){return u(t,e)}},f=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,`\\$&`)},p=function(e,t){for(var n in t)if(t[n]===e)return!0};if(t!==void 0&&t.exports)t.exports=u,t.exports.createSlug=d;else if(typeof define<`u`&&define.amd)define([],function(){return u});else try{if(e.getSlug||e.createSlug)throw`speakingurl: globals exists /(getSlug|createSlug)/`;e.getSlug=u,e.createSlug=d}catch{}})(e)}));io(((e,t)=>{t.exports=Ks()}))(),U.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function qs(e){q.highPerfModeEnabled=e??!q.highPerfModeEnabled,!e&&K.value&&Is(K.value.app)}function Js(e){q.devtoolsClientDetected={...q.devtoolsClientDetected,...e},qs(!Object.values(q.devtoolsClientDetected).some(Boolean))}U.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=Js;var Ys=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()}},Xs=class{constructor(e){this.generateIdentifier=e,this.kv=new Ys}register(e,t){this.kv.getByValue(e)||(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)}},Zs=class extends Xs{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 Qs(e){if(`values`in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function $s(e,t){let n=Qs(e);if(`find`in n)return n.find(t);let r=n;for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}function ec(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function tc(e,t){return e.indexOf(t)!==-1}function nc(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var rc=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return $s(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},ic=e=>Object.prototype.toString.call(e).slice(8,-1),ac=e=>e===void 0,oc=e=>e===null,sc=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype,cc=e=>sc(e)&&Object.keys(e).length===0,X=e=>Array.isArray(e),lc=e=>typeof e==`string`,uc=e=>typeof e==`number`&&!isNaN(e),dc=e=>typeof e==`boolean`,fc=e=>e instanceof RegExp,pc=e=>e instanceof Map,mc=e=>e instanceof Set,hc=e=>ic(e)===`Symbol`,gc=e=>e instanceof Date&&!isNaN(e.valueOf()),_c=e=>e instanceof Error,vc=e=>typeof e==`number`&&isNaN(e),yc=e=>dc(e)||oc(e)||ac(e)||uc(e)||lc(e)||hc(e),bc=e=>typeof e==`bigint`,xc=e=>e===1/0||e===-1/0,Sc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Cc=e=>e instanceof URL,wc=e=>e.replace(/\./g,`\\.`),Tc=e=>e.map(String).map(wc).join(`.`),Ec=e=>{let t=[],n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`\\`&&e.charAt(r+1)===`.`){n+=`.`,r++;continue}if(i===`.`){t.push(n),n=``;continue}n+=i}let r=n;return t.push(r),t};function Z(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Dc=[Z(ac,`undefined`,()=>null,()=>void 0),Z(bc,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),Z(gc,`Date`,e=>e.toISOString(),e=>new Date(e)),Z(_c,`Error`,(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{let n=Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Z(fc,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),Z(mc,`set`,e=>[...e.values()],e=>new Set(e)),Z(pc,`map`,e=>[...e.entries()],e=>new Map(e)),Z(e=>vc(e)||xc(e),`number`,e=>vc(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),Z(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),Z(Cc,`URL`,e=>e.toString(),e=>new URL(e))];function Oc(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var kc=Oc((e,t)=>hc(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown symbol`);return r}),Ac=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),jc=Oc(Sc,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=Ac[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function Mc(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Nc=Oc(Mc,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw 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)}),Pc=Oc((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)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error(`Trying to deserialize unknown custom value`);return r.deserialize(e)}),Fc=[Nc,kc,Pc,jc],Ic=(e,t)=>{let n=nc(Fc,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=nc(Dc,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Lc={};Dc.forEach(e=>{Lc[e.annotation]=e});var Rc=(e,t,n)=>{if(X(t))switch(t[0]){case`symbol`:return kc.untransform(e,t,n);case`class`:return Nc.untransform(e,t,n);case`custom`:return Pc.untransform(e,t,n);case`typed-array`:return jc.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=Lc[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}},zc=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Bc(e){if(tc(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(tc(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(tc(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var Vc=(e,t)=>{Bc(t);for(let n=0;n<t.length;n++){let r=t[n];if(mc(e))e=zc(e,+r);else if(pc(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=zc(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o)}}else e=e[r]}return e},Hc=(e,t,n)=>{if(Bc(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(X(r)){let e=+n;r=r[e]}else if(sc(r))r=r[n];else if(mc(r)){let e=+n;r=zc(r,e)}else if(pc(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=zc(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o)}}}let i=t[t.length-1];if(X(r)?r[+i]=n(r[+i]):sc(r)&&(r[i]=n(r[i])),mc(r)){let e=zc(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(pc(r)){let e=+t[t.length-2],a=zc(r,e);switch(+i==0?`key`:`value`){case`key`:{let e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case`value`:r.set(a,n(r.get(a)))}}return e};function Uc(e,t,n=[]){if(!e)return;if(!X(e)){ec(e,(e,r)=>Uc(e,t,[...n,...Ec(r)]));return}let[r,i]=e;i&&ec(i,(e,r)=>{Uc(e,t,[...n,...Ec(r)])}),t(r,n)}function Wc(e,t,n){return Uc(t,(t,r)=>{e=Hc(e,r,e=>Rc(e,t,n))}),e}function Gc(e,t){function n(t,n){let r=Vc(e,Ec(n));t.map(Ec).forEach(t=>{e=Hc(e,t,()=>r)})}if(X(t)){let[r,i]=t;r.forEach(t=>{e=Hc(e,Ec(t),()=>e)}),i&&ec(i,n)}else ec(t,n);return e}var Kc=(e,t)=>sc(e)||X(e)||pc(e)||mc(e)||Mc(e,t);function qc(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function Jc(e,t){let n={},r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;i.length===0?r=a.map(Tc):n[Tc(i)]=a.map(Tc)}),r?cc(n)?[r]:[r,n]:cc(n)?void 0:n}var Yc=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=yc(e);if(!s){qc(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!Kc(e,n)){let t=Ic(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(tc(a,e))return{transformedValue:null};let c=Ic(e,n),l=c?.value??e,u=X(l)?[]:{},d={};ec(l,(s,c)=>{if(c===`__proto__`||c===`constructor`||c===`prototype`)throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);let l=Yc(s,t,n,r,[...i,c],[...a,e],o);u[c]=l.transformedValue,X(l.annotations)?d[c]=l.annotations:sc(l.annotations)&&ec(l.annotations,(e,t)=>{d[wc(c)+`.`+t]=e})});let f=cc(d)?{transformedValue:u,annotations:c?[c.type]:void 0}:{transformedValue:u,annotations:c?[c.type,d]:d};return s||o.set(e,f),f};function Xc(e){return Object.prototype.toString.call(e).slice(8,-1)}function Zc(e){return Xc(e)===`Array`}function Qc(e){if(Xc(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function $c(e,t,n,r,i){let a={}.propertyIsEnumerable.call(r,t)?`enumerable`:`nonenumerable`;a===`enumerable`&&(e[t]=n),i&&a===`nonenumerable`&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function el(e,t={}){if(Zc(e))return e.map(e=>el(e,t));if(!Qc(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(Zc(t.props)&&!t.props.includes(r))return n;let i=e[r];return $c(n,r,el(i,t),e,t.nonenumerable),n},{})}var Q=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Zs,this.symbolRegistry=new Xs(e=>e.description??``),this.customTransformerRegistry=new rc,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=Yc(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=Jc(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){let{json:t,meta:n}=e,r=el(t);return n?.values&&(r=Wc(r,n.values,this)),n?.referentialEqualities&&(r=Gc(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)}};Q.defaultInstance=new Q,Q.serialize=Q.defaultInstance.serialize.bind(Q.defaultInstance),Q.deserialize=Q.defaultInstance.deserialize.bind(Q.defaultInstance),Q.stringify=Q.defaultInstance.stringify.bind(Q.defaultInstance),Q.parse=Q.defaultInstance.parse.bind(Q.defaultInstance),Q.registerClass=Q.defaultInstance.registerClass.bind(Q.defaultInstance),Q.registerSymbol=Q.defaultInstance.registerSymbol.bind(Q.defaultInstance),Q.registerCustom=Q.defaultInstance.registerCustom.bind(Q.defaultInstance),Q.allowErrorProps=Q.defaultInstance.allowErrorProps.bind(Q.defaultInstance),Q.serialize,Q.deserialize,Q.stringify,Q.parse,Q.registerClass,Q.registerCustom,Q.registerSymbol,Q.allowErrorProps,U.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],U.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,U.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,U.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,U.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,U.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;var tl={template:`<div>This is component</div>`},nl=Sn({name:`parentA`,path:`/parentA/[paramA]`}),rl=Sn({parent:nl,name:`parentA.childA`,path:`/childA/[?paramB]`});Sn({parent:nl,name:`parentA.childB`,path:`/childB/[paramD]`}).addView(tl),Sn({parent:rl,name:`parentA.childA.grandChildA`,path:`/[paramC]`}).addView(tl),Sn({name:`parentB`,path:`/parentB`}).addView(tl),Sn({name:`parentC`,path:`/`}).addView(tl);function il(e,t){return t===`1`?e:`${e} ${t}`}var al=({route:e})=>!!e.name,ol=({route:e,payload:t})=>{if(!t.filter)return!0;if(!B(e))return!1;let n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},sl=e=>al(e)&&ol(e),cl=_(),ll=2282478,ul=2278750,dl=1483594;function fl(e,t={match:!1,exactMatch:!1}){let n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:ll}),t.match&&n.push({label:`match`,textColor:0,backgroundColor:ul}),t.exactMatch&&n.push({label:`exact-match`,textColor:0,backgroundColor:dl}),{id:e.id,label:e.name,tags:n}}function pl(e,t){if(!t||!(`id`in t)||!(`matches`in t))return{match:!1,exactMatch:!1};let n=t.id===e.id;return{match:t.matches.some(t=>t.id===e.id),exactMatch:n}}function ml(e){let t=[];return B(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):t}function hl({router:e,app:n,routes:r}){if(!Gi()||e.hasDevtools)return;e.hasDevtools=!0;let i=cl(),a=new Map(r.map(e=>[e.id,e])),o=`kitbag-router-routes.${i}`;Ps({id:`kitbag-router.${i}`,label:`Kitbag Router`,packageName:`@kitbag/router`,homepage:`https://router.kitbag.dev/`,componentStateTypes:[`Routing`],logo:`https://kitbag.dev/kitbag-logo-circle.svg`,app:n},s=>{s.addInspector({id:o,label:il(`Routes`,i),treeFilterPlaceholder:`Search routes`}),s.on.getInspectorTree(t=>{t.app===n&&t.inspectorId===o&&(t.rootNodes=r.filter(e=>sl({route:e,payload:t})).map(t=>fl(t,pl(t,e.route))))}),(0,t.watch)(()=>e.route,()=>{s.sendInspectorTree(o)},{deep:!0,immediate:!1}),s.on.getInspectorState(e=>{if(e.app!==n||e.inspectorId!==o)return;let t=a.get(e.nodeId);t&&(e.state={options:ml(t)})}),s.sendInspectorTree(o),s.sendInspectorState(o)})}function gl(e,t){let n=new URLSearchParams(e),r=new URLSearchParams(t);for(let[e,t]of r.entries())n.delete(e,t);return n}function _l(e,t,n={}){let r=e.filter(ma);for(let e of r){if(!yl(e,t,n))continue;let{success:r,params:i}=e.tryParse(t,n);if(r)return Fn(e,i,{...n,...xl(t,e.stringify(i))})}for(let e of r)if(T(e))for(let r of e.aliases){let i=vl(e,r,t,n);if(i)return i}}function vl(e,t,n,r){if(!yl(t.url,n,r))return;let i=t.url.tryParse(n,r);if(!i.success)return;let a=bl(e,t.transform(n,i.params));if(a===void 0)return;let{success:o,params:s}=e.tryParse(a,r);if(!o)return;let c=xl(n,t.url.stringify(i.params));return Fn(e,s,{...r,...c,alias:{url:t.url,params:i.params}})}function yl(e,t,n){return!B(e)||e.isMatch(t,n)}function bl(e,t){try{return e.stringify(t)}catch{return}}function xl(e,t){let{query:n,hash:r}=z(e),{query:i}=z(t);return{query:gl(n,i),hash:r}}var Sl=/^(\/.+?)\/+$/;function Cl(e){let{path:t,...n}=z(e);return Et({...n,path:t.replace(Sl,`$1`)})}function wl(e){let{path:t}=z(e);return Sl.test(t)}function Tl(e){e===void 0||!Gi()||(document.title=e)}function El(){let e=e=>{r.value=e},n=()=>{r.value=null},r=(0,t.ref)(null);return{currentRejection:r,updateRejection:e,clearRejection:n}}function Dl({routerViewTransition:e,routeViewTransition:t,navigationViewTransition:n,...r}){let i=[e,t,n].filter(A),a=i.at(-1);if(a===void 0||a===!1)return!1;let o=[];for(let e of i){let t=Ol(e,r);if(t===!1)return!1;o.push(...t)}return o}function Ol(e,t){return typeof e==`boolean`?[]:Array.isArray(e)?e:typeof e.types==`function`?e.types(t):e.types??[]}function kl(){return typeof document<`u`&&typeof document.startViewTransition==`function`}function Al(){return typeof ViewTransition<`u`&&`types`in ViewTransition.prototype}function jl(){let e=(0,t.shallowReactive)(Ml()),n,r=0,i=t=>{r++,Object.assign(e,{isTransitioning:!0,...t,transition:void 0})},a=()=>{r++,Object.assign(e,Ml())},o=t=>{e.to===t.to&&a()},s=r=>{if(n){if(n.update=r,n.transition&&Al()){n.transition.types.clear();for(let t of e.types)n.transition.types.add(t)}return c(n),n.committed.promise}let i={update:r,committed:Promise.withResolvers()};return n=i,i.transition=Nl(async()=>{n=void 0;try{await i.update(),await(0,t.nextTick)(),i.committed.resolve()}catch(e){throw i.committed.reject(e),e}},e.types),i.transition.ready.catch(()=>{}),i.transition.updateCallbackDone.catch(()=>{}),c(i),i.committed.promise};function c({transition:t}){if(!t)return;let n=r;Object.assign(e,{transition:t});let i=()=>{r===n&&a()};t.finished.then(i,i)}return{viewTransition:e,prepare:i,cancel:o,reset:a,start:s}}function Ml(){return{isTransitioning:!1,to:void 0,from:void 0,types:[],transition:void 0}}function Nl(e,t){return Al()?document.startViewTransition({update:e,types:t}):document.startViewTransition(e)}function Pl(e){return e?.matches.findLast(e=>e.navigation!==void 0)?.navigation}function Fl(e){let t=e.navigation??e.routeNavigation??e.routerNavigation??`progressive`;return{navigation:t,isBlockingNavigation:t===`blocking`,isProgressiveNavigation:t===`progressive`}}function Il(e,n,r=[]){let a=n?.isGlobalRouter??!0?Aa:Symbol(),s=n?.removeTrailingSlashes??!0,c=n?.redirectStatus??302,l=n?.rejectStatus??200,u=n?.ssr??!1,d=n?.navigation,f=n?.viewTransition,p=Di(),m=Wi(),{routes:g,getRouteByName:_,getRejectionByType:v,addHookContext:y,stop:b}=ga(e,r,n),x=v(`NotFound`),S=zi(),ee=Fn(x.route),C=ur({redirectStatus:c,onHookAdded:y});C.addGlobalRouteHooks(ba(r));let w=la(),T=jl(),E=Oa(a),D=ua(),O=Ki({mode:n?.historyMode,listener:({location:e,traversal:t})=>{let n=gi(e);ie(n,{state:e.state,replace:!0,traversal:t})}});function k(e,t={}){let n=!xe(e),r=g.filter(e=>e.isRelative===n),i={removeTrailingSlashes:s};return _l(r,e,{...t,...i})}async function ne({controller:e,to:t,from:n,url:r,options:i,progress:a}){let o=await C.runBeforeRouteHooks({to:t,from:n,signal:e.signal,progress:a});if(e.signal.aborted)return!1;switch(o.status){case`ABORT`:return i.traversal?.restore(),a.abort(),!1;case`PUSH`:case`REDIRECT`:return await A(...o.to),!1;case`REJECT`:return i.traversal?i.traversal.commit():O.update(r,i),M(o.type,{to:t,from:n}),a.abort(),!1;case`SUCCESS`:return i.traversal?i.traversal.commit():O.update(r,i),!0;default:throw Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(o)}`)}}async function re({controller:e,to:t,from:n,enabled:r}){if(!r)return;let i=await C.runAfterRouteHooks({to:t,from:n,signal:e.signal});if(!e.signal.aborted)switch(i.status){case`PUSH`:await A(...i.to);break;case`REJECT`:e.abort(),M(i.type,{to:t,from:n});break;case`SUCCESS`:break;default:throw Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(i)}`)}}let ie=p.wrap(async(e,t={})=>{if(wl(e)&&s){let n=Cl(e);if(i(n))return j(n,{...t,redirectStatus:c})}let n=w.begin();if(n.signal.aborted)return;let r=k(e,t)??null,a=Me(),o=m.begin({to:r,from:a,expected:se(e,r),inert:u||t.hydrating});function l(){if(!r){M(te,{to:r,from:a}),o.abort();return}pe(),xe(e)||ce(r,a,o,n.signal),o.close(),Ee.value=!0,t.hydrating||ve(n.signal)}if(!t.hydrating&&!await ne({controller:n,to:r,from:a,url:e,options:t,progress:o})){n.abort();return}let f=ae({route:r,signal:n.signal,update:l}),p=oe({to:r,from:a,options:t,enabled:!u&&!xe(e)}),{isBlockingNavigation:h}=Fl({routerNavigation:d,routeNavigation:Pl(r),navigation:t.navigation}),g=p||h;if(p?T.prepare(p):T.reset(),!t.hydrating&&g){let e=await f.prepare();if(!e&&p&&T.cancel(p),!e)return}if(p){await T.start(f.commit),await re({controller:n,to:r,from:a,enabled:!u});return}await Promise.all([f.commit(),re({controller:n,to:r,from:a,enabled:!u})])});function ae({route:e,signal:n,update:r}){let i=()=>n.aborted;return{prepare:async()=>{if(i())return!1;if(!e)return!0;let t=S.staged().compute(e),r=Promise.allSettled([t.props,t.loaders,...Fr(e)]);return await Promise.race([r,me(n)]),!i()},commit:()=>n.aborted?Promise.resolve(!1):(r(),(0,t.nextTick)().then(()=>!n.aborted))}}function oe({to:e,from:t,options:n,enabled:r}){if(!r||!e||!t||!kl())return!1;let i=Dl({routerViewTransition:f,routeViewTransition:e.matches.findLast(o)?.viewTransition,navigationViewTransition:n.viewTransition,to:e,from:t});return i!==!1&&{to:e,from:t,types:i}}function se(e,t){return!t||xe(e)?0:Pi(t).length+Pr(t).length}function ce(e,t,n,r){let{props:i,loaders:a,values:o}=S.commit(e);p.add(le(i,`props`,e,t,r),le(a,`loader`,e,t,r)),n.track(...o,...Fr(e)),ge(e)}function le(e,t,n,r,i){return e.then(e=>{if(!i.aborted)switch(e.status){case`SUCCESS`:case`ABANDONED`:break;case`PUSH`:A(...e.to);break;case`REJECT`:M(e.type,{to:n,from:r});break;default:throw Error(`Switch is not exhaustive for route data response status: ${JSON.stringify(e)}`)}}).catch(e=>{if(!i.aborted)try{C.runErrorHooks(e,{to:n,from:r,source:t})}catch(e){if(e instanceof H){A(...e.response.to);return}if(e instanceof $n){M(e.response.type,{to:n,from:r});return}throw e}})}let ue=(e,t={},n={})=>{let r=_(e);if(!r)throw new da(e);return Fn(r,t,n)};function de(e,t,n){if(i(e)){let{redirectStatus:n,...r}={...t};return{url:Dt(e,{query:r.query,hash:r.hash}),options:r,redirectStatus:n}}if(typeof e==`string`){let{replace:r,navigation:i,viewTransition:a,redirectStatus:o,...s}={...n},c={...t},l=ue(e,c,s),u=Mn({...l.matched.state},{...l.state,...s.state});return{url:l.href,options:{replace:r,state:u,navigation:i,viewTransition:a},redirectStatus:o}}let{replace:r,navigation:a,viewTransition:o,redirectStatus:s,...c}={...t},l=Mn({...e.matched.state},{...e.state,...c.state});return{url:Dt(e.href,{query:c.query,hash:c.hash}),options:{replace:r,state:l,navigation:a,viewTransition:o},redirectStatus:s}}let A=async(e,t,n)=>{let{url:r,options:i,redirectStatus:a}=de(e,t,n);if(u){we(a??302,r);return}return ie(r,i)},j=(e,t,n)=>{if(i(e)){let n={...t,replace:!0};return A(e,n)}if(typeof e==`string`){let r={...n,replace:!0},i={...t};return A(e,i,r)}let r={...t,replace:!0};return A(e,r)},M=(e,{to:t=null,from:n=null}={})=>{let r=v(e);if(!r)return;let i=w.begin();C.runRejectionHooks(r,{to:t,from:n}),fe(r),Ee.value=!0,ve(i.signal)},{currentRejection:N,updateRejection:fe,clearRejection:pe}=El(),{currentRoute:P,routerRoute:he,updateRoute:ge}=Ti({routerKey:a,fallbackRoute:ee,push:A,getData:S.getData});async function _e(){return await N.value?.getTitle()??P.getTitle()}async function ve(e){let t=await _e();e.aborted||Tl(t)}let F=Xi(n?.initialUrl,n?.historyMode),ye=O.location.state,{host:be}=z(F),xe=Ei(be),Se=!1,Ce=!1,{setServerRedirect:we,getServerRedirect:Te}=Ji(),Ee=(0,t.ref)(!1),{promise:De,resolve:Oe}=Promise.withResolvers();async function ke(e){let t=k(F)??null;if(!t){M(te,{to:t,from:null});return}switch(e.kind){case`reject`:M(e.rejection,{to:t,from:null});return;case`success`:{let r=sa(t,e.values,n?.transformer),i=S.createDetachedStore();i.fill(t,r),i.stage(),await ie(F,{replace:!0,state:ye,hydrating:!0});return}default:throw Error(`Switch is not exhaustive for payload kind: ${JSON.stringify(e)}`)}}async function I(){if(Ce)return;if(Se)return De;Se=!0;let e=aa();if(e?await ke(e):await ie(F,{replace:!0,state:ye}),Ce){Oe();return}O.startListening(),Oe(),Ee.value=!0}async function Ae(){if(!u)throw new h;await I(),await p.idle();let e=Te();if(e)return e;let t=N.value;if(t){let e=await _e();return{kind:`reject`,status:t.status??l,rejection:t.type,title:e,payload:ea({kind:`reject`,url:F,rejection:t.type})}}let r=await _e(),{values:i,failures:a}=oa(P,S.getValues(P),n?.transformer);return{kind:`success`,status:200,title:r,failures:a,payload:ea({kind:`success`,url:F,values:i})}}function je(){Ce=!0,b(),w.stop(),m.stop(),O.stopListening()}function Me(){return Ee.value?{...P}:null}function Ne(e){e.onUnmount(je),C.setVueApp(e),S.setVueApp(e);let t=wr(a),n=Kr(a),r=ti(a);e.component(`RouterView`,t),e.component(`RouterLink`,n),e.component(`RouterProgress`,r),e.component(`ViewTransition`,Wn),e.provide(Hr(a),T.viewTransition),e.provide(gr(a),N),e.provide(lr(a),C),e.provide(Tr(a),S),e.provide(mr(a),E),e.provide(qr(a),m),e.provide(Ir,D),e.provide(a,Pe),hl({router:Pe,app:e,routes:g}),I()}let Pe={route:he,resolve:ue,find:k,push:A,replace:j,reject:M,refresh:O.refresh,forward:O.forward,back:O.back,go:O.go,install:Ne,isExternal:xe,onBeforeRouteEnter:C.onBeforeRouteEnter,onBeforeRouteUpdate:C.onBeforeRouteUpdate,onBeforeRouteLeave:C.onBeforeRouteLeave,onAfterRouteEnter:C.onAfterRouteEnter,onAfterRouteUpdate:C.onAfterRouteUpdate,onAfterRouteLeave:C.onAfterRouteLeave,onError:C.onError,onRejection:C.onRejection,prefetch:n?.prefetch,start:I,started:Ee,render:Ae,stop:je,key:a,hasDevtools:!1};return Pe}var $=ri(Aa),Ll=$.createHook,Rl=$.createView,zl=$.createLoader,Bl=$.onBeforeRouteLeave,Vl=$.onBeforeRouteUpdate,Hl=$.onAfterRouteLeave,Ul=$.onAfterRouteUpdate,Wl=$.isRoute,Gl=$.RouterView,Kl=$.RouterLink,ql=$.ViewTransition,Jl=$.RouterProgress,Yl=$.useRoute,Xl=$.useRouter,Zl=$.useQueryValue,Ql=$.useLink,$l=$.useRejection,eu=$.useViewTransition,tu=$.useNavigation;e.DuplicateParamsError=s,e.LoaderDataAccessError=c,e.LoaderNameConflict=l,e.MetaPropertyConflict=u,e.NavigationAbandonedError=d,e.PayloadValueError=f,e.RouterLink=Kl,e.RouterNotInstalledError=p,e.RouterProgress=Jl,e.RouterView=Gl,e.SsrOptionRequiredError=h,e.UnreachableRouteError=g,e.UseRouteInvalidError=m,e.ViewTransition=ql,e.arrayOf=li,e.asUrlString=a,e.createExternalRoute=Ln,e.createHook=Ll,e.createLoader=zl,e.createParam=ce,e.createRejection=In,e.createRoute=Sn,e.createRouter=Il,e.createRouterAssets=ri,e.createRouterPlugin=oi,e.createUrl=jt,e.createView=Rl,e.hasViewTransition=o,e.isResolvedRoute=r,e.isRoute=Wl,e.isUrlString=i,e.literal=Re,e.onAfterRouteLeave=Hl,e.onAfterRouteUpdate=Ul,e.onBeforeRouteLeave=Bl,e.onBeforeRouteUpdate=Vl,e.tupleOf=di,e.unionOf=si,e.useLink=Ql,e.useNavigation=tu,e.useQueryValue=Zl,e.useRejection=$l,e.useRoute=Yl,e.useRouter=Xl,e.useViewTransition=eu,e.withDefault=ue,e.withParams=vt});