@kitbag/router 0.26.0 → 0.27.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 (61) hide show
  1. package/dist/components/routerLink.d.ts +4 -4
  2. package/dist/components/routerProgress.d.ts +18 -0
  3. package/dist/components/routerProgressBar.d.ts +12 -0
  4. package/dist/compositions/useLink.d.ts +2 -2
  5. package/dist/compositions/useLink.spec-d.d.ts +1 -0
  6. package/dist/compositions/useNavigation.browser.spec.d.ts +1 -0
  7. package/dist/compositions/useNavigation.d.ts +5 -0
  8. package/dist/errors/contextRedirectError.d.ts +1 -2
  9. package/dist/errors/unreachableRouteError.d.ts +7 -0
  10. package/dist/kitbag-router.js +2100 -1711
  11. package/dist/kitbag-router.umd.cjs +2 -2
  12. package/dist/main.d.ts +25 -1
  13. package/dist/main.spec-d.d.ts +1 -0
  14. package/dist/services/addAlias.d.ts +19 -0
  15. package/dist/services/addAlias.spec-d.d.ts +1 -0
  16. package/dist/services/addAlias.spec.d.ts +1 -0
  17. package/dist/services/createCanonicalUrl.d.ts +14 -0
  18. package/dist/services/createCanonicalUrl.spec.d.ts +1 -0
  19. package/dist/services/createDataStore.d.ts +4 -0
  20. package/dist/services/createNavigationProgress.d.ts +49 -0
  21. package/dist/services/createNavigationProgress.spec.d.ts +1 -0
  22. package/dist/services/createNavigationSignals.d.ts +17 -0
  23. package/dist/services/createNavigationSignals.spec.d.ts +1 -0
  24. package/dist/services/createResolvedRoute.d.ts +10 -1
  25. package/dist/services/createRouteValueStore.d.ts +4 -0
  26. package/dist/services/createRouterAssets.d.ts +19 -0
  27. package/dist/services/createRouterHooks.d.ts +7 -2
  28. package/dist/services/createUniqueIdSequence.d.ts +0 -1
  29. package/dist/services/getInitialUrl.d.ts +2 -1
  30. package/dist/services/getMatchesForUrl.d.ts +4 -0
  31. package/dist/services/getRoutesForRouter.d.ts +3 -2
  32. package/dist/services/routeRegex.d.ts +6 -1
  33. package/dist/services/updateResolvedRoute.d.ts +7 -0
  34. package/dist/services/updateResolvedRoute.spec.d.ts +1 -0
  35. package/dist/services/withRouteMethods.d.ts +3 -3
  36. package/dist/tests/loaderPrefetch.browser.spec.d.ts +1 -0
  37. package/dist/tests/navigationProgress.spec.d.ts +1 -0
  38. package/dist/types/addAlias.d.ts +79 -0
  39. package/dist/types/callbackContext.d.ts +0 -5
  40. package/dist/types/createRouteOptions.d.ts +6 -2
  41. package/dist/types/hooks.d.ts +9 -5
  42. package/dist/types/navigation.d.ts +36 -0
  43. package/dist/types/prefetch.d.ts +6 -1
  44. package/dist/types/props.d.ts +1 -0
  45. package/dist/types/redirects.d.ts +4 -0
  46. package/dist/types/resolved.d.ts +22 -2
  47. package/dist/types/route.d.ts +2 -0
  48. package/dist/types/routeAlias.d.ts +41 -0
  49. package/dist/types/routeCallbackContext.d.ts +1 -0
  50. package/dist/types/routeWithMethods.d.ts +3 -2
  51. package/dist/types/routerLink.d.ts +1 -1
  52. package/dist/types/routerNavigationInternal.d.ts +29 -0
  53. package/dist/types/routerRoute.d.ts +5 -1
  54. package/dist/utilities/components.d.ts +6 -2
  55. package/dist/utilities/getRegexMatcher.d.ts +1 -0
  56. package/dist/utilities/getRegexMatcher.spec.d.ts +1 -0
  57. package/dist/utilities/percentEncoding.d.ts +10 -0
  58. package/dist/utilities/percentEncoding.spec.d.ts +1 -0
  59. package/package.json +6 -6
  60. package/dist/services/createNavigationIds.d.ts +0 -6
  61. /package/dist/{services/createNavigationIds.spec.d.ts → components/routerProgress.browser.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`});function n(e){return typeof e==`string`&&/^(https?:\/\/|\/).*/g.test(e)}function r(e){return n(e)?e:`/${e}`}var i=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.`)}},a=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.`)}},o=class extends Error{constructor(e){super(`Loader "${e}" conflicts with a loader of the same name on an ancestor route.`)}},s=class extends Error{constructor(e){super(`Child property on meta for ${e} conflicts with the parent meta.`)}},c=class extends Error{constructor(){super(`Discarded before it was computed because navigation moved elsewhere.`)}},l=class extends Error{constructor(e,t,n,r){super(`Unable to ${e} the payload value for ${t} "${n}"`,{cause:r})}},u=class extends Error{constructor(){super(`Router not installed`)}},d=class extends Error{constructor(e,t){super(`useRoute called with incorrect route. Given ${e}, expected ${t}`)}},f=class extends Error{constructor(){super(`Calling render requires the router to be created for server rendering: createRouter(routes, { ssr: true })`)}};function p(){let e=0;return()=>(++e).toString()}var m=p()();function h(e){return e===m}var g=p();function _(e,t){return v(e,t),{...e,...t}}function v(e,t){let n=Object.keys(e).find(n=>n in t&&typeof t[n]!=typeof e[n]);if(n)throw new s(n)}function y(e,t){return e.filter(e=>t===e).length}function b(...e){let t=e.flatMap(e=>Array.isArray(e)?e:Object.keys(e));for(let e of t)if(y(t,e)>1)throw new i(e)}function x(e,t){return b(e,t),{...e,...t}}var ee=Symbol(`IS_ROUTE_SYMBOL`);function S(e){return typeof e==`object`&&!!e&&ee in e}var C={NotFound:404},te=`NotFound`,w=Symbol(`IS_REJECTION_SYMBOL`);function T(e){return typeof e==`object`&&!!e&&w in e}function E(e){return e&&(S(e)||T(e))?e.hooks:[]}function D(e,t){return[...E(e),...E(t)]}function O(e){return`parent`in e&&!!e.parent}function k(e){return`component`in e&&!!e.component}function ne(e){return`components`in e&&!!e.components}function re(e,t){if(!S(e)||!S(t))throw Error(`combineRoutes called with invalid route arguments`);return{...t,meta:_(e.meta,t.meta),state:x(e.state,t.state),hooks:D(e,t),matches:[...e.matches,...t.matches],context:[...e.context,...t.context],depth:e.depth+1}}function ie(e){return e===void 0?``:e}var A=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},ae=class extends Error{},j=class extends ae{response;constructor(e,t){super(`Uncaught ContextRedirectError`),this.response={status:`REDIRECT`,to:e,redirectStatus:t}}},oe=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 se(){let e=new A;return{redirect:(t,n,r)=>{if(e.redirects.size>0)throw new oe(t.name);let i=e=>{throw new j([t.name,n?.(e.params),{replace:!0}],r?.status)};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 ce=class extends Error{context;constructor(e={}){super(e.message??`Uncaught InvalidRouteParamValueError`),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...e}}};function le(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function ue(e){return typeof e==`function`&&le(e)}function de(e){return typeof e==`object`&&`get`in e&&typeof e.get==`function`&&`set`in e&&typeof e.set==`function`}function fe(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`}function pe(e,t){return de(e)?{...e,defaultValue:t??e.defaultValue}:{get:t=>Ke(t,{param:e}),set:t=>L(t,{param:e}),defaultValue:t}}function M(e){return de(e)&&e.defaultValue!==void 0}function me(e,t){return pe(e,t)}function he(e){return e!==void 0}function N(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ge(e){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`}function P(e){return typeof e==`string`&&e.length>0}var _e=class extends Error{constructor(e){super(`Unsupported schema vendor: ${e[`~standard`].vendor}`)}};function F(e){return typeof e==`object`&&!!e&&`then`in e}function ve(e){return N(e)&&`parse`in e&&typeof e.parse==`function`&&`def`in e&&N(e.def)&&typeof e.def.type==`string`&&`~standard`in e&&N(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`zod`}function ye(e){return N(e)&&`type`in e&&typeof e.type==`string`&&`~standard`in e&&N(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`valibot`}function be(e){return typeof e==`function`&&`extends`in e&&typeof e.extends==`function`&&`branches`in e&&Array.isArray(e.branches)&&`~standard`in e&&N(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`arktype`}function xe(e){return ve(e)||ye(e)||be(e)}function Se(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 I(e,t){let n=e[`~standard`].validate(t);if(F(n))throw Error(`Promise schemas are not supported`);if(n.issues)throw Error(`Validation failed`);return n.value}function Ce(e){if(ve(e))return we(e);if(ye(e))return Ee(e);if(be(e))return De(e);throw new _e(e)}function we(e){return e.def.type}var Te={picklist:`enum`,variant:`union`,intersect:`intersection`};function Ee(e){return Te[e.type]??e.type}function De(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 Oe(e){if(ve(e))return ke(e);if(ye(e))return Ae(e);if(be(e))return je(e);throw new _e(e)}function ke(e){return`options`in e.def?e.def.options:void 0}function Ae(e){return`options`in e?e.options:void 0}function je(e){return e.branches.length>1?e.branches:void 0}var Me=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Ne(e,t){if(typeof t==`string`&&Me.test(t)){let e=new Date(t);return isNaN(e.getTime())?t:e}return t}function Pe(e){for(let t of e)try{return t()}catch{continue}throw Error(`All functions failed`)}function Fe(e,t){return Ce(e)===`string`?1:Ce(t)===`string`?-1:0}function Ie(e,t){let n=Ce(t);if(n===`string`)return I(t,e);if(n===`boolean`)return I(t,!!e);if(n===`date`)return I(t,new Date(e));if(n===`number`)return I(t,Number(e));if(n===`bigint`)return I(t,BigInt(e));if(n===`nan`)return I(t,Number(e));if(n===`literal`||n===`enum`)return Pe([()=>I(t,Number(e)),()=>I(t,!!e),()=>I(t,e)]);if(n===`object`||n===`array`||n===`tuple`||n===`record`)return I(t,JSON.parse(e,Ne));if(n===`union`){let n=Oe(t);if(n)return Pe(Array.from(n).sort(Fe).map(t=>()=>Ie(e,t)))}if(n===`map`)return I(t,new Map(JSON.parse(e,Ne)));if(n===`set`)return I(t,new Set(JSON.parse(e,Ne)));if(n===`intersection`)throw Error(`Intersection schemas are not supported`);if(n===`promise`)throw Error(`Promise schemas are not supported`);if(n===`function`)throw Error(`Function schemas are not supported`);return I(t,e)}function Le(e,t){let n=Ce(t);if(n===`string`||n===`boolean`||n===`nan`||n===`literal`||n===`enum`)return String(I(t,e));if(n===`date`)return I(t,e).toISOString();if(n===`number`)return String(I(t,Number(e)));if(n===`bigint`)return String(I(t,BigInt(String(e))));if(n===`object`||n===`array`||n===`tuple`||n===`record`)return JSON.stringify(I(t,e));if(n===`union`){let n=Oe(t);if(n)return Pe(Array.from(n).sort(Fe).map(t=>()=>Le(e,t)))}if(n===`map`)return JSON.stringify(Array.from(I(t,e).entries()));if(n===`set`)return JSON.stringify(Array.from(I(t,e).values()));if(n===`intersection`)throw Error(`Intersection schemas are not supported`);if(n===`promise`)throw Error(`Promise schemas are not supported`);if(n===`function`)throw Error(`Function schemas are not supported`);return JSON.stringify(I(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 ce({...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||!P(e)){if(M(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(xe(t))return Se(t).get(e,r);if(ue(t))return t(e,r);if(de(t))return t.get(e,r);if(t instanceof RegExp){if(t.test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}return fe(t)?Re(t).get(e,r):e}function qe(e,t){try{return Ke(e,t)}catch(e){if(e instanceof ce)return;throw e}}function Je(e,t){try{return L(e,t)}catch(e){if(e instanceof ce)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(xe(t))return Se(t).set(e,r);if(de(t))return t.set(e,r);if(fe(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=tt(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 n=pt(t),{isGreedy:r}=e.params[t]??{},i=r?et:$e;return e.value.replace(n,i)}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=>P(e)?e:``))}function ht(e=``,t={}){return P(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)||M(a),s=dt(n);return b([i],e),e[r]={param:a,isOptional:o,isGreedy:s},e},{}):{}}var gt=Symbol(`UrlPartsWithParams`);function _t(e){return N(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(fe(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,t,n){let r=ct(lt(t,n)),[i]=mt(e,new RegExp(r,`g`));return i}function xt(e,t,n,r){let i=L(r,t.params[n]);return e.replace(pt(n),i)}function St(...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 Ct=`https://internal.invalid`;function wt(e){let t=new URL(e.host??Ct,Ct);return t.pathname=e.path??``,t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??``,r(t.toString().replace(RegExp(`^${Ct}/*`),`/`))}function z(e){return e.startsWith(`http`)?Et(e):Dt(e)}function Tt(e,t){if(typeof e==`string`)return wt(Tt(z(e),t));let n=new URLSearchParams(t.query);return{host:P(t.host)?t.host:e.host,path:P(t.path)?t.path:e.path??``,query:St(e.query,n),hash:P(t.hash)?t.hash:e.hash??``}}function Et(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 Dt(e){let{pathname:t,searchParams:n,hash:r}=new URL(e,Ct);return{path:t,query:n,hash:r}}var Ot=Symbol(`IS_URL_SYMBOL`);function kt(e){return typeof e==`object`&&!!e&&Ot in e}function At(e){let t={host:R(e.host),path:R(e.path),query:Mt(yt(e.query)),hash:jt(R(e.hash))};b(t.path.params,t.query.params,t.host.params,t.hash.params);let n={...t.host,regexp:rt(t.host.value),stringify(e={}){return Nt(t.host,e)}},r={...t.path,regexp:{trailingSlashIgnored:it(t.path.value),trailingSlashRemoved:it(t.path.value.replace(/^(.+)\/$/,`$1`))},stringify(e={}){return Nt(t.path,e)}},i={...t.query,regexp:ot(t.query.value),stringify(e={}){return Pt(t.query,e).toString()}},a={...t.hash,regexp:at(t.hash.value),stringify(e={}){return Nt(t.hash,e)}};function o(e={}){return wt({host:n.stringify(e),path:r.stringify(e),query:i.stringify(e),hash:a.stringify(e)})}function s(e,t={}){let o=z(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=z(e);return{...Ft(n,o.host??``),...Ft(r,o.path),...It(i,o.query.toString()),...Ft(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{[Ot]:!0,schema:{host:n,path:r,query:i,hash:a},params:{},isRelative:!P(t.host.value),stringify:o,parse:c,tryParse:l}}function jt(e){return{...e,value:e.value.replace(/^#/,``)}}function Mt(e){return{...e,value:e.value.replace(/^\?/,``)}}function Nt(e,t){return Object.keys(e.params).reduce((n,r)=>xt(n,e,r,t[r]),e.value)}function Pt(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 Ft(e,t){let n={},r=decodeURIComponent(t);for(let[t,i]of Object.entries(e.params))n[t]=Ke(bt(r,e,t),i);return n}function It(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}var Lt=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}};function Rt({getRoute:e}){return{redirectTo:(...[t,n,r])=>{let i=e();if(!S(i))throw new Lt(i.name);t.context.push(i),i.context.push(t),i.redirect(t,n,r)},redirectFrom:(t,n,r)=>{let i=e();if(!S(t))throw new Lt(t.name);i.context.push(t),t.context.push(i),t.redirect(i,n,r)}}}function zt(e,t){b(e.params,t.params);let n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function Bt(e,t){b(e.params,t.params);let n=[e.value,t.value].filter(P).join(`&`);return{...e,value:n,params:{...e.params,...t.params}}}function Vt(e,t){return zt(e,t)}function Ht(e,t){if(!kt(e))throw Error(`Parent is not a valid url`);if(!kt(t))return At({host:e.schema.host,path:zt(e.schema.path,R(t.path)),query:Bt(e.schema.query,yt(t.query)),hash:Vt(e.schema.hash,R(t.hash))});if(!kt(t))throw Error(`Child is not a valid url`);return At({host:e.schema.host,path:zt(e.schema.path,t.schema.path),query:Bt(e.schema.query,t.schema.query),hash:Vt(e.schema.hash,t.schema.hash)})}function Ut(e){let t;return{setTitle:e=>{t=e},getTitle:async n=>{let r=async()=>{if(e&&S(e))return e.getTitle(n)};return t?t(n,{from:n,getParentTitle:r}):r()}}}var Wt=`default`;function Gt(e,t){let n={};return ne(e)?Object.entries(e.components).forEach(([e,t])=>{n[e]={component:t}}):k(e)&&(n[Wt]={component:e.component}),typeof t==`function`?n[Wt]={...n[Wt],props:t}:Object.entries(t??{}).forEach(([e,t])=>{n[e]={...n[e],props:t}}),n}function Kt(e){return Object.keys(e).filter(t=>e[t].props)}var qt=`default`;function Jt(e,t){return{name:t?.name??`default`,load:e,prefetch:t?.prefetch,transformer:t?.transformer}}function Yt(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 Xt(e,t){if(e.some(e=>t in e.loaders))throw new o(t)}function Zt(e,t){return{name:t?.name??`default`,component:e,props:t?.props,prefetch:t?.prefetch,transformer:t?.transformer}}function Qt(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 $t(e){function t(t){let n=e.matches.at(-1);return $t(n?{...e,matches:[...e.matches.slice(0,-1),t(n)]}:e)}let n=(e,n)=>{let r=Zt(e,n);return t(e=>Qt(e,r))},r=(n,r)=>{let i=Jt(n,r);return Xt(e.matches.slice(0,-1),i.name),t(e=>Yt(e,i))};return{...e,addView:n,addLoader:r}}function B(e,n){let r=g(),i=ie(e.name),a=R(e.path),o=yt(e.query),s=R(e.hash),c=e.meta??{},l=e.state??{},u=e.context??[],{store:d,redirect:f,...p}=se(),{setTitle:m,getTitle:h}=Ut(e.parent),_=Gt(e,n),v=(0,t.markRaw)({...e,id:r,meta:c,state:l,name:i,views:_,loaders:{}}),y=Rt({getRoute:()=>S}),b=At({path:a,query:o,hash:s}),x={[ee]:!0,depth:1,hooks:[d],getTitle:h,redirect:f},S={id:r,matches:[v],name:i,meta:c,state:l,context:u,prefetch:e.prefetch,setTitle:m,...y,...b,...p,...x};if(O(e)){let t=re(e.parent,S);if(e.hoist)return $t(t);let n=Ht(e.parent,{path:a,query:o,hash:s});return $t({...t,...n})}return $t(S)}function en(){let e=new A;return{onRejection:t=>(e.onRejection.add(t),()=>e.onRejection.delete(t)),store:e}}function tn(e){return(0,t.defineComponent)(()=>()=>(0,t.h)(`h1`,e),{name:e,props:[]})}function nn(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 rn(e){return!!e&&typeof e==`object`}var an={isOptional:!0,isGreedy:!1};function on(e,t,n){if(rn(e)&&t in e){let r=e[t];return typeof r==`string`?Ke(r,{param:n,...an}):r}return Ke(void 0,{param:n,...an})}function sn(e,t){let n={};for(let[r,i]of Object.entries(e))n[r]=on(t,r,i);return n}function cn(e,t,n){if(rn(e)&&t in e){let r=e[t];return L(r,{param:n,...an})}return L(void 0,{param:n,...an})}var ln=(e,t)=>{let n={};for(let[r,i]of Object.entries(e))n[r]=cn(t,r,i);return n};function un(e,t={},n={}){let r=Tt(e.stringify(t),{query:new URLSearchParams(n.query),hash:n.hash}),{query:i,hash:a}=z(r),o=e.matches.at(-1);if(!o)throw Error(`createResolvedRoute called with a route that has no matches`);async function s(){if(S(e))return e.getTitle(c)}let c={...e,matched:o,query:nn(i),state:sn(e.state,n.state),hash:a,params:t,href:r,getTitle:s};return c}function dn({type:e,component:n,status:r}){let{store:i,...a}=en(),o=B({name:e,component:(0,t.markRaw)(n??tn(e))}),{setTitle:s}=o,c=()=>un(o).getTitle(),l={[w]:!0,route:o,hooks:[i]};return{type:e,status:r,setTitle:s,getTitle:c,...a,...l}}function fn(e){let n=g(),r=ie(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}=se(),{getTitle:p,setTitle:m}=Ut(e.parent),h=Rt({getRoute:()=>b}),_=(0,t.markRaw)({id:n,meta:{},state:{},...e,views:{},loaders:{}}),v=At({host:c,path:i,query:a,hash:o}),y={[ee]:!0,depth:1,hooks:[u],getTitle:p,redirect:d},b={id:n,matches:[_],name:r,meta:s,state:{},context:l,setTitle:m,...f,...h,...v,...y};if(O(e)){let t=re(e.parent,b),n=Ht(e.parent,{path:i,query:a,hash:o});return{...t,...n}}return b}function pn(){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 mn=pn();function hn(e){let n=mn(e);return({increment:e=!1}={})=>{let r=(0,t.inject)(n,0);return e&&(0,t.provide)(n,r+1),r}}var gn=(e,t,n)=>{let r=e?.matches??[],i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},_n=(e,t,n)=>{let r=e?.matches??[],i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},vn=(e,t,n)=>e?.matches.at(n)?.id===t?.matches.at(n)?.id;function yn(e){switch(e){case`onBeforeRouteEnter`:case`onAfterRouteEnter`:return gn;case`onBeforeRouteUpdate`:case`onAfterRouteUpdate`:return vn;case`onBeforeRouteLeave`:case`onAfterRouteLeave`:return _n;default:throw Error(`Switch is not exhaustive for lifecycle: ${e}`)}}var V=class extends ae{response;constructor(e){super(`Uncaught ContextPushError`),this.response={status:`PUSH`,to:e}}},H=class extends ae{response;constructor(e){super(`Uncaught ContextRejectionError`),this.response={status:`REJECT`,type:e}}},bn=class extends ae{response;constructor(){super(`Uncaught ContextAbortError`),this.response={status:`ABORT`}}};function xn(e,t){let n=new A;return E(e).forEach((r,i)=>{if(r.redirects.forEach(e=>n.redirects.add(e)),gn(e,t,i))return r.onBeforeRouteEnter.forEach(e=>n.onBeforeRouteEnter.add(e));if(vn(e,t,i))return r.onBeforeRouteUpdate.forEach(e=>n.onBeforeRouteUpdate.add(e))}),E(t).forEach((r,i)=>{if(_n(e,t,i))return r.onBeforeRouteLeave.forEach(e=>n.onBeforeRouteLeave.add(e))}),n}function Sn(e,t){let n=new A;return E(e).forEach((r,i)=>{if(gn(e,t,i))return r.onAfterRouteEnter.forEach(e=>n.onAfterRouteEnter.add(e));if(vn(e,t,i))return r.onAfterRouteUpdate.forEach(e=>n.onAfterRouteUpdate.add(e))}),E(t).forEach((r,i)=>{if(_n(e,t,i))return r.onAfterRouteLeave.forEach(e=>n.onAfterRouteLeave.add(e))}),n}function Cn(e,t,n){let r=new A;return e?.matches.forEach((i,a)=>{gn(e,t,a)&&n.onBeforeRouteEnter.forEach(e=>r.onBeforeRouteEnter.add(e)),vn(e,t,a)&&n.onBeforeRouteUpdate.forEach(e=>r.onBeforeRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{_n(e,t,a)&&n.onBeforeRouteLeave.forEach(e=>r.onBeforeRouteLeave.add(e))}),r}function wn(e,t,n){let r=new A;return e?.matches.forEach((i,a)=>{gn(e,t,a)&&n.onAfterRouteEnter.forEach(e=>r.onAfterRouteEnter.add(e)),vn(e,t,a)&&n.onAfterRouteUpdate.forEach(e=>r.onAfterRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{_n(e,t,a)&&n.onAfterRouteLeave.forEach(e=>r.onAfterRouteLeave.add(e))}),r}function Tn(e){let t=new A;return E(e).forEach(e=>{e.onRejection.forEach(e=>t.onRejection.add(e))}),t}function En(){let e=null;function t(t){e=t}function n(t){return e?e.runWithContext(t):t()}return{setVueApp:t,runWithContext:n}}var Dn=class extends Error{constructor(){super(`update called without a route to update`)}};function On({to:e}){let t=e=>{throw new H(e)},r=(...e)=>{throw new V(e)};return{reject:t,push:r,replace:(e,t,r)=>{throw n(e)?new V([e,{...t??{},replace:!0}]):new V([e,t,{...r??{},replace:!0}])},update:(t,n,i)=>{if(!e)throw new Dn;if(typeof t==`object`){let i={...e.params,...t};return r(e.name,i,n)}let a={...e.params,[t]:n};return r(e.name,a,i)},abort:()=>{throw new bn}}}var kn=pn();function An(){let{setVueApp:e,runWithContext:t}=En(),{store:n,...r}=se(),i=new A,a=async({to:e,from:r})=>{let{reject:a,push:o,replace:c,update:l,abort:u}=On({to:e}),d=xn(e,r),f=Cn(e,r,n),p=[...d.redirects,...f.onBeforeRouteEnter,...d.onBeforeRouteEnter,...f.onBeforeRouteUpdate,...d.onBeforeRouteUpdate,...i.onBeforeRouteUpdate,...f.onBeforeRouteLeave,...d.onBeforeRouteLeave,...i.onBeforeRouteLeave];try{let n=p.map(n=>Promise.resolve(t(()=>n(e,{from:r,reject:a,push:o,replace:c,update:l,abort:u}))));await Promise.all(n)}catch(t){if(t instanceof V||t instanceof j||t instanceof H||t instanceof bn)return t.response;try{s(t,{to:e,from:r,source:`hook`})}catch(e){if(e instanceof V||e instanceof H)return e.response;throw e}}return{status:`SUCCESS`}},o=async({to:e,from:r})=>{let{reject:a,push:o,replace:c,update:l}=On({to:e}),u=Sn(e,r),d=wn(e,r,n),f=[...i.onAfterRouteLeave,...u.onAfterRouteLeave,...d.onAfterRouteLeave,...i.onAfterRouteUpdate,...u.onAfterRouteUpdate,...d.onAfterRouteUpdate,...i.onAfterRouteEnter,...u.onAfterRouteEnter,...d.onAfterRouteEnter];try{let n=f.map(n=>Promise.resolve(t(()=>n(e,{from:r,reject:a,push:o,replace:c,update:l}))));await Promise.all(n)}catch(t){if(t instanceof V||t instanceof H)return t.response;try{s(t,{to:e,from:r,source:`hook`})}catch(e){if(e instanceof V||e instanceof H)return e.response;throw e}}return{status:`SUCCESS`}},s=(e,{to:t,from:r,source:i})=>{let{reject:a,push:o,replace:s}=On({to:t});for(let c of n.onError)try{c(e,{to:t,from:r,source:i,reject:a,push:o,replace:s});return}catch(t){if(t instanceof ae)throw t;if(t===e)continue;throw t}};return{runBeforeRouteHooks:a,runAfterRouteHooks:o,runErrorHooks:s,runRejectionHooks:(e,{to:t,from:r})=>{let i=[...Tn(e).onRejection,...n.onRejection];for(let n of i)n(e.type,{to:t,from:r})},addComponentHook:({lifecycle:e,depth:t,hook:n})=>{let r=yn(e),a=i[e],o=(e,i)=>{if(r(e,i.from,t))return n(e,i)};return a.add(o),()=>a.delete(o)},addGlobalRouteHooks:e=>{e.onBeforeRouteEnter.forEach(e=>r.onBeforeRouteEnter(e)),e.onBeforeRouteUpdate.forEach(e=>r.onBeforeRouteUpdate(e)),e.onBeforeRouteLeave.forEach(e=>r.onBeforeRouteLeave(e)),e.onAfterRouteEnter.forEach(e=>r.onAfterRouteEnter(e)),e.onAfterRouteUpdate.forEach(e=>r.onAfterRouteUpdate(e)),e.onAfterRouteLeave.forEach(e=>r.onAfterRouteLeave(e)),e.onError.forEach(e=>r.onError(e))},setVueApp:e,...r}}function jn(e){let n=kn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new u;return e}}function Mn(e,n){let r=hn(e),i=jn(e);return e=>{let a=r(),o=i().addComponentHook({lifecycle:n,hook:e,depth:a-1});return(0,t.onUnmounted)(o),o}}function Nn(e){return{onBeforeRouteLeave:Mn(e,`onBeforeRouteLeave`),onBeforeRouteUpdate:Mn(e,`onBeforeRouteUpdate`),onAfterRouteLeave:Mn(e,`onAfterRouteLeave`),onAfterRouteUpdate:Mn(e,`onAfterRouteUpdate`)}}var Pn=pn();function Fn(e){let n=Pn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new u;return e}}var In=pn();function Ln(e){let n=In(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new u;return e}}function Rn(e){return()=>{let n=(0,t.inject)(e);if(!n)throw new u;return n}}var zn=Symbol(`isRouterRouteSymbol`);function Bn(e,t){return typeof t==`object`&&!!t&&zn in t&&e in t}function Vn(e,n,r){function i(e){r(Tt(wt({...z(n.href),query:void 0}),{query:e}))}function a(e,t,i){if(ge(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,data:h,getTitle:g}=(0,t.toRefs)(n),_=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)}}),v=(0,t.computed)({get(){return _},set(e){a(e)}}),y=(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)}}),b=(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:b,query:y,hash:p,params:v,name:f,href:m,data:h,getTitle:g,update:a,[zn]:!0,[e]:!0})}function Hn(e){return(t,n,{exact:r}={})=>Bn(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(e=>e.name).includes(n):!1}function Un(e){let n=Rn(e),r=Hn(e);return(e,i)=>{let a=n();function o(){if(e&&!r(a.route,e,i))throw new d(e,a.route.name)}return(0,t.watch)(a.route,o,{immediate:!0,deep:!0}),a.route}}function Wn(e){let n=Un(e),r=Rn(e),i=Ln(e),a=hn(e),o=Fn(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(T(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 Gn=pn();function Kn(e){let n=Gn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new u;return e}}var qn=`lazy`,Jn={components:!0,props:!1};function Yn(e){return[`eager`,`lazy`,`intent`].includes(e)}function Xn({routerPrefetch:e,routePrefetch:t,viewPrefetch:n,linkPrefetch:r},i){let a=[Zn(r,i),Zn(n,i),Zn(t,i),Zn(e,i),Jn[i],qn].reduce((e,t)=>Yn(e)?e:e===!0&&Yn(t)?t:e===!0&&!Yn(t)?e:e===void 0?t:e,void 0);return Yn(a)?a:!1}function Zn(e,t){return N(e)?e[t]:e}var Qn=(0,t.defineAsyncComponent)(()=>new Promise(e=>{e({default:{template:`foo`}})}));function $n(e){return e.name===Qn.name&&`__asyncLoader`in e}function er(e,t=()=>!0){let n=e.matches.flatMap(e=>Object.values(e.views).flatMap(n=>n.component&&$n(n.component)&&t(e,n)?[n.component.__asyncLoader()]:[]));return Promise.all(n)}var tr=Symbol(`visibilityObserver`);function nr(e){let n=(0,t.inject)(tr);if(!n)throw new u;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 ir(e){let n=Kn(e);return e=>{let r=(0,t.ref)(),{createDetachedStore:i}=n(),a=i(),{isElementVisible:o}=nr(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){or(e,t,n),a.compute(t,ar(e,n))}return{element:r,commit:s}}}function ar(e,t){return n=>n.kind===`props`&&Xn({...t,routePrefetch:n.routePrefetch,viewPrefetch:n.prefetch},`props`)===e}function or(e,t,n){er(t,(t,r)=>Xn({...n,routePrefetch:t.prefetch,viewPrefetch:r.prefetch},`components`)===e)}function sr(e){let r=Rn(e),i=ir(e),a=Hn(e);return(e,o={},s={})=>{let c=r(),l=(0,t.computed)(()=>{let r=(0,t.toValue)(e);return typeof r==`string`?n(r)?c.find(r,(0,t.toValue)(s)):c.resolve(r,(0,t.toValue)(o),(0,t.toValue)(s)):r}),u=(0,t.computed)(()=>{if(l.value)return l.value.href;let r=(0,t.toValue)(e);if(n(r))return r;console.error(Error(`Failed to resolve route in RouterLink.`))}),d=(0,t.computed)(()=>a(c.route)&&c.route.matches.some(e=>e.id===l.value?.id)),f=(0,t.computed)(()=>c.route.id===l.value?.id),p=(0,t.computed)(()=>a(c.route)&&he(l.value)&&c.route.href.startsWith(l.value.href)),m=(0,t.computed)(()=>c.route.href===l.value?.href),h=(0,t.computed)(()=>!!u.value&&c.isExternal(u.value)),g=(0,t.computed)(()=>{let r=(0,t.toValue)(e);return typeof r!=`string`||n(r)?(0,t.toValue)(o):(0,t.toValue)(s)}),{element:_,commit:v}=i(()=>({route:l.value,routerPrefetch:c.prefetch,linkPrefetch:g.value.prefetch})),y=r=>{v();let i={replace:r?.replace??g.value.replace,query:St(r?.query,g.value.query),hash:r?.hash??g.value.hash,state:{...g.value.state,...r?.state}},a=(0,t.toValue)(e);return n(a)||typeof a==`object`?c.push(a,i):c.push(a,(0,t.toValue)(o),i)};return{element:_,route:l,href:u,isMatch:d,isExactMatch:f,isActive:p,isExactActive:m,isExternal:h,push:y,replace:e=>y({...e,replace:!0})}}}function cr(e){let r=Rn(e),i=sr(e);return(0,t.defineComponent)((e,a)=>{let o=r(),s=(0,t.computed)(()=>y(e.to)),c=(0,t.computed)(()=>b(e.to)),l=(0,t.computed)(()=>!e.target||e.target===`_self`),u=(0,t.computed)(()=>{let{to:t,...n}=e;return n}),{element:d,isMatch:f,isExactMatch:p,isActive:m,isExactActive:h,isExternal:g,push:_}=i(()=>typeof e.to==`function`?e.to(o.resolve):e.to,u),v=(0,t.computed)(()=>({"router-link--match":f.value,"router-link--exact-match":p.value,"router-link--active":m.value,"router-link--exact-active":h.value}));function y(e){return typeof e==`function`?y(e(o.resolve)):n(e)?o.find(e):e}function b(e){return typeof e==`function`?b(e(o.resolve)):n(e)?e:e?.href}function x(e){return e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||!l.value}function ee(e){x(e)||(e.preventDefault(),_())}return()=>(0,t.h)(`a`,{href:c.value,target:e.target,class:[`router-link`,v.value],ref:d,onClick:ee},a.slots.default?.({route:s.value,isMatch:f.value,isExactMatch:p.value,isActive:m.value,isExactActive:h.value,isExternal:g.value}))},{name:`RouterLink`,props:[`to`,`prefetch`,`query`,`hash`,`replace`,`state`,`target`]})}function lr(e){let n=Un(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?M(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&&M(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 ur(e){let t=typeof e==`object`?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a}=Nn(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a,isRoute:Hn(t),RouterView:Wn(t),RouterLink:cr(t),useRoute:Un(t),useRouter:Rn(t),useQueryValue:lr(t),useLink:sr(t),useRejection:Ln(t)}}var dr=Symbol(`IS_ROUTER_PLUGIN_SYMBOL`);function fr(e){return typeof e==`object`&&!!e&&dr in e}function pr(e){let{store:t,...n}=se(),r={[dr]:!0,hooks:t};return{routes:e.routes??[],rejections:e.rejections??[],...n,...r}}function mr(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 hr={separator:`,`};function gr(e,t={}){let{separator:n}={...hr,...t},r=mr(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 vr(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)=>L(t.at(n),{param:e})).join(n)}}}function yr(){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 br(){return Math.random().toString(36).slice(2,10)}function xr(e,t,n){return Math.min(Math.max(e,t),n)}function Sr(e){e.preventDefault(),e.returnValue=``}function Cr({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 wr(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 Tr(e){return Object.freeze(e)}var Er=`beforeunload`,Dr=`popstate`,Or=`hashchange`;function kr(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,Tr({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(Dr,a);let o=`POP`,[s,c]=r(),l=yr(),u=yr();s??(s=0,n.replaceState({...n.state,idx:s},``,d(c)));function d(e){return typeof e==`string`?e:Cr(e)}function f(e,t=null){return Tr({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?wr(e):e,state:t,key:br()})}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 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(Er,Sr),()=>{n(),u.length||t.removeEventListener(Er,Sr)}}}}function Ar(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e=`/`,search:r=``,hash:i=``}=wr(t.location.hash.slice(1)),a=n.state??{};return[a.idx,Tr({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(Dr,a),t.addEventListener(Or,()=>{let[,e]=r();Cr(e)!==Cr(c)&&a()});let o=`POP`,[s,c]=r(),l=yr(),u=yr();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:Cr(e))}function p(e,t=null){return Tr({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?wr(e):e,state:t,key:br()})}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 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(Er,Sr),()=>{n(),u.length||t.removeEventListener(Er,Sr)}}}}function jr(e={}){let{initialEntries:t=[`/`],initialIndex:n}=e,r=t.map(e=>Tr({pathname:`/`,search:``,hash:``,state:null,key:br(),...typeof e==`string`?wr(e):e})),i=xr(n??r.length-1,0,r.length-1),a=`POP`,o=r[i],s=yr(),c=yr();function l(e){return typeof e==`string`?e:Cr(e)}function u(e,t=null){return Tr({pathname:o.pathname,search:``,hash:``,...typeof e==`string`?wr(e):e,state:t,key:br()})}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=xr(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 Mr({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:Vn(e,c,r),updateRoute:o}}function Nr(e){return t=>{let{host:n}=z(t);return n!==void 0&&n!==e}}function Pr(){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 Fr={kind:`pending`},Ir={kind:`running`},Lr={kind:`missing`};function Rr(){let e=(0,t.reactive)(new Map);function n(){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)(Fr)})}function r(t){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function i(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=>r(e).promise,set:(e,t)=>{let n=r(e);if(n.state.value.kind===`pending`){n.state.value=Ir;try{let e=t();if(F(e)){e.then(e=>i(n,{kind:`value`,value:e}),e=>i(n,{kind:`error`,error:e}));return}i(n,{kind:`value`,value:e})}catch(e){i(n,{kind:`error`,error:e})}}},get:t=>e.get(t)?.state.value??Lr,dispose:t=>{for(let[n,r]of e)e.delete(n),i(r,{kind:`error`,error:t})}}}function zr(){let e={current:Rr()};return{current:()=>e.current,stage:t=>{e.staged?.dispose(new c),e.staged=t},staged:()=>(e.staged??=Rr(),e.staged),promote:()=>{let t=e.current;return e.current=e.staged??Rr(),e.staged=void 0,t}}}function Br(e,t,n,r){return[e,t,n,r.id,JSON.stringify(r.params)].join(`-`)}function Vr(e){return e.matches.flatMap((t,n)=>[...Ur(t).map(r=>Hr(r,t,n,e,t.views[r.name].props,t.views[r.name])),...Wr(t).map(r=>Hr(r,t,n,e,t.loaders[r.name].load,t.loaders[r.name]))])}function Hr(e,t,n,r,i,{prefetch:a,transformer:o}){return{...e,depth:n,key:Br(e.kind,e.id,e.name,r),run:i,routePrefetch:t.prefetch,prefetch:a,transformer:o}}function Ur(e){return Kt(e.views).map(t=>({kind:`props`,id:e.id,name:t}))}function Wr(e){return Object.keys(e.loaders).map(t=>({kind:`loader`,id:e.id,name:t}))}function Gr(e){return t=>t.kind===e}function Kr(){let{setVueApp:e,runWithContext:n}=En(),r=zr(),i=()=>{let e={store:Rr()},t=()=>{e.store.dispose(new c)},n=()=>{t(),e.store=Rr()},i=()=>{r.stage(e.store),e.store=Rr()};return{...l(()=>e.store),stage:i,reset:n,dispose:t}},o=()=>l(()=>r.staged()),s=e=>(r.promote().dispose(new c),l(()=>r.current()).compute(e));function l(e){return{compute:(t,n=()=>!0)=>{let r=e(),i=Vr(t).filter(n),a=d(r,t,i.filter(Gr(`loader`))),o=d(r,t,i.filter(Gr(`props`)));return a.catch(()=>{}),o.catch(()=>{}),{props:o,loaders:a}},fill:(t,n)=>{let r=e(),i=Vr(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 u=e=>{let t=r.current();return Vr(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 d(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 c)return{status:`ABANDONED`};if(e instanceof V||e instanceof H)return e.response;throw e}}let f=(e,t,n)=>{let i=Br(`props`,e,t,n),a=r.current().get(i);switch(a.kind){case`missing`:return Jr;case`pending`:case`running`:return Yr(r.current().subscribe(i));case`value`:case`error`:return a;default:return a}};function p(e,t){return _(Vr(e).filter(Gr(`loader`)),qt,e,t)}function m(e,t,r){let{push:i,replace:a,reject:o,update:s}=On({to:t});return n(()=>e.run(h(e,t,r),{push:i,replace:a,reject:o,update:s,parent:g(t,e.depth,r)}))}function h({kind:e,name:t},n,r){return new Proxy(n,{get(i,o,s){if(o!==`data`)return Reflect.get(i,o,s);if(e===`loader`)throw new a(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 _(Ur(r),Wt,e,n)},get data(){return _(Wr(r),qt,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=Br(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`&&Xr(e,t);let o=qr([n.subscribe(i),r.current().subscribe(i)]);return o.catch(()=>{}),o}return{createDetachedStore:i,staged:o,commit:s,getValues:u,getProps:f,getData:p,setVueApp:e}}async function qr(e){try{return await Promise.any(e)}catch(e){throw e instanceof AggregateError?e.errors.find(e=>!(e instanceof c))??e.errors[0]:e}}var Jr={kind:`value`,value:void 0};async function Yr(e){try{return{kind:`value`,value:await e}}catch(e){return e instanceof c?Jr:{kind:`error`,error:e}}}function Xr({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}`}var o=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.`)}},s=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.`)}},c=class extends Error{constructor(e){super(`Loader "${e}" conflicts with a loader of the same name on an ancestor route.`)}},l=class extends Error{constructor(e){super(`Child property on meta for ${e} conflicts with the parent meta.`)}},u=class extends Error{constructor(){super(`Discarded before it was computed because navigation moved elsewhere.`)}},d=class extends Error{constructor(e,t,n,r){super(`Unable to ${e} the payload value for ${t} "${n}"`,{cause:r})}},f=class extends Error{constructor(){super(`Router not installed`)}},p=class extends Error{constructor(e,t){super(`useRoute called with incorrect route. Given ${e}, expected ${t}`)}},m=class extends Error{constructor(){super(`Calling render requires the router to be created for server rendering: createRouter(routes, { ssr: true })`)}},h=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 g(){let e=0;return()=>(++e).toString()}var _=g();function v(e,t){return y(e,t),{...e,...t}}function y(e,t){let n=Object.keys(e).find(n=>n in t&&typeof t[n]!=typeof e[n]);if(n)throw new l(n)}function b(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(b(t,e)>1)throw new o(e)}function ee(e,t){return x(e,t),{...e,...t}}var S=Symbol(`IS_ROUTE_SYMBOL`);function C(e){return typeof e==`object`&&!!e&&S in e}var te={NotFound:404},w=`NotFound`,T=Symbol(`IS_REJECTION_SYMBOL`);function E(e){return typeof e==`object`&&!!e&&T in e}function D(e){return e&&(C(e)||r(e)||E(e))?e.hooks:[]}function O(e,t){return[...D(e),...D(t)]}var k=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 A(e){return typeof e==`object`&&`get`in e&&typeof e.get==`function`&&`set`in e&&typeof e.set==`function`}function ie(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`}function j(e,t){return A(e)?{...e,defaultValue:t??e.defaultValue}:{get:t=>Ue(t,{param:e}),set:t=>L(t,{param:e}),defaultValue:t}}function ae(e){return A(e)&&e.defaultValue!==void 0}function oe(e,t){return j(e,t)}function se(e){return!e.global&&!e.sticky?e:new RegExp(e.source,e.flags)}function ce(e){return e!==void 0}function M(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function le(e){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`}function N(e){return typeof e==`string`&&e.length>0}var ue=class extends Error{constructor(e){super(`Unsupported schema vendor: ${e[`~standard`].vendor}`)}};function P(e){return typeof e==`object`&&!!e&&`then`in e}function de(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 fe(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 pe(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 me(e){return de(e)||fe(e)||pe(e)}function he(e){return{get:(t,{invalid:n})=>{try{return Ne(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Pe(t,e)}catch{throw n()}}}}function F(e,t){let n=e[`~standard`].validate(t);if(P(n))throw Error(`Promise schemas are not supported`);if(n.issues)throw Error(`Validation failed`);return n.value}function I(e){if(de(e))return ge(e);if(fe(e))return ve(e);if(pe(e))return ye(e);throw new ue(e)}function ge(e){return e.def.type}var _e={picklist:`enum`,variant:`union`,intersect:`intersection`};function ve(e){return _e[e.type]??e.type}function ye(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 be(e){if(de(e))return xe(e);if(fe(e))return Se(e);if(pe(e))return Ce(e);throw new ue(e)}function xe(e){return`options`in e.def?e.def.options:void 0}function Se(e){return`options`in e?e.options:void 0}function Ce(e){return e.branches.length>1?e.branches:void 0}var we=[`optional`,`nullable`,`default`,`prefault`,`nonoptional`,`catch`,`readonly`],Te=[`optional`,`nullable`,`nullish`,`exact_optional`,`undefinedable`];function Ee(e){return de(e)&&we.includes(e.def.type)&&`innerType`in e.def?Ee(e.def.innerType):fe(e)&&Te.includes(e.type)&&`wrapped`in e?Ee(e.wrapped):e}var De=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Oe(e,t){if(typeof t==`string`&&De.test(t)){let e=new Date(t);return isNaN(e.getTime())?t:e}return t}function ke(e){return e===`true`||e!==`false`&&e}function Ae(e){for(let t of e)try{return t()}catch{continue}throw Error(`All functions failed`)}function je(e,t){return I(Ee(e))===`string`?1:I(Ee(t))===`string`?-1:0}function Me(e,t,n=e=>e){return Ae([()=>F(t,n(JSON.parse(e))),()=>F(t,n(JSON.parse(e,Oe)))])}function Ne(e,t){let n=Ee(t);if(n!==t)return e===`null`?Ae([()=>F(t,Ne(e,n)),()=>F(t,null)]):F(t,Ne(e,n));let r=I(t);if(r===`string`)return F(t,e);if(r===`boolean`)return F(t,ke(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 Ae([()=>F(t,Number(e)),()=>F(t,ke(e)),()=>F(t,e)]);if(r===`object`||r===`array`||r===`tuple`||r===`record`)return Me(e,t);if(r===`union`){let n=be(t);if(n)return Ae(Array.from(n).sort(je).map(t=>()=>Ne(e,t)))}if(r===`map`)return Me(e,t,e=>new Map(e));if(r===`set`)return Me(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 Pe(e,t){let n=Ee(t);if(n!==t)return e===null?String(F(t,null)):Pe(e,n);let r=I(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=be(t);if(n)return Ae(Array.from(n).sort(je).map(t=>()=>Pe(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 Fe(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 Ie(e,t){return e[t]??String}function Le(e){return{invalid:t=>{throw new k({...e,message:t})}}}var Re={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!=`string`)throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},ze={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()}},Be={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()}},Ve={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()}},He={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 Ue(e,{param:t=String,isOptional:n=!1}={}){let r=Le({param:t,value:e,isGetter:!0});if(e===void 0||!N(e)){if(ae(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return Re.get(e,r);if(t===Boolean)return ze.get(e,r);if(t===Number)return Be.get(e,r);if(t===Date)return Ve.get(e,r);if(t===JSON)return He.get(e,r);if(me(t))return he(t).get(e,r);if(re(t))return t(e,r);if(A(t))return t.get(e,r);if(t instanceof RegExp){if(se(t).test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}return ie(t)?Fe(t).get(e,r):e}function We(e,t){try{return Ue(e,t)}catch(e){if(e instanceof k)return;throw e}}function Ge(e,t){try{return L(e,t)}catch(e){if(e instanceof k)return;throw e}}function L(e,{param:t=String,isOptional:n=!1}={}){let r=Le({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 ze.set(e,r);if(t===Number)return Be.set(e,r);if(t===Date)return Ve.set(e,r);if(t===JSON)return He.set(e,r);if(me(t))return he(t).set(e,r);if(A(t))return t.set(e,r);if(ie(t))return Fe(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}var Ke=`\\[\\??([\\w-_]+)\\*?\\]`,qe=`\\[\\?([\\w-_]+)\\*?\\]`,Je=`\\[\\??([\\w-_]+)\\*\\]`,Ye=`[^/]*`,Xe=`([^/]*)`,Ze=`(.*)`;function Qe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function $e(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 et(e){let t=it(e);return RegExp(`^${t||`.*`}$`,`i`)}function tt(e){let t=it(e);return RegExp(`^${t}$`,`i`)}function nt(e){let t=it(e.replace(/^#*/,``));return RegExp(`^#?${t||`.*`}$`,`i`)}function rt(e){let t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,e])=>!st(e)).map(([e,t])=>{let n=it(t);return RegExp(`(^|&)${Qe(e)}=${n}(&|$)`,`i`)})}function it(e){return $e(e,new RegExp(Ke,`g`)).map(e=>e.startsWith(`[`)?at(e):Qe(e)).join(``)}function at(e){return e.replace(new RegExp(Ke,`g`),e=>ct(e)?`.*`:Ye)}function ot(e,t){let{isGreedy:n}=e.params[t]??{},r=n?Ze:Xe;return $e(e.value,new RegExp(Ke,`g`)).map(e=>lt(e)===t?r:it(e)).join(``)}function st(e){return new RegExp(qe,`g`).test(e)}function ct(e){return new RegExp(Je,`g`).test(e)}function lt(e){let[t]=dt(e,new RegExp(Ke,`g`));return t}function ut(e){return RegExp(`\\[\\??${e}\\*?\\]`,`g`)}function dt(e,t){return Array.from(e.matchAll(t)).flatMap(([,...e])=>e.map(e=>N(e)?e:``))}function ft(e=``,t={}){return N(e)?Array.from(e.matchAll(new RegExp(Ke,`g`))).reduce((e,[n,r])=>{let i=lt(n);if(!i)return e;let a=Ie(t,i),o=st(n)||ae(a),s=ct(n);return x([i],e),e[r]={param:a,isOptional:o,isGreedy:s},e},{}):{}}var pt=Symbol(`UrlPartsWithParams`);function mt(e){return M(e)&&e[pt]===!0}function R(e){return e===void 0?ht():mt(e)?e:ht(e,{})}function ht(e,t){return{value:e??``,params:ft(e,t),[pt]:!0}}function gt(e){if(typeof e==`string`||e===void 0||mt(e))return R(e);let t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(let[e,i]of t)if(ie(i))n.push(`${e}=${i}`);else{let t=`[${e}]`,a=lt(t);a&&(r[a]=i),n.push(`${a}=${t}`)}return ht(n.join(`&`),r)}function _t(e){return e.replace(/[%[\]]/g,encodeURIComponent)}function vt(e){if(e!==void 0)try{return decodeURIComponent(e)}catch{return e}}function yt(e,t,n){let r=ot(t,n),[i]=dt(e,new RegExp(r,`g`));return i}function bt(e,t,n,r){let i=_t(L(r,t.params[n]));return e.replace(ut(n),()=>i)}function xt(...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 St=`https://internal.invalid`;function Ct(e){let t=new URL(e.host??St,St);return t.pathname=e.path??``,t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??``,a(t.toString().replace(RegExp(`^${St}/*`),`/`))}function z(e){return e.startsWith(`http`)?Tt(e):Et(e)}function wt(e,t){if(typeof e==`string`)return Ct(wt(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:xt(e.query,n),hash:N(t.hash)?t.hash:e.hash??``}}function Tt(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 Et(e){let{pathname:t,searchParams:n,hash:r}=new URL(e,St);return{path:t,query:n,hash:r}}var Dt=Symbol(`IS_URL_SYMBOL`);function B(e){return typeof e==`object`&&!!e&&Dt in e}function Ot(e){let t={host:R(e.host),path:R(e.path),query:At(gt(e.query)),hash:kt(R(e.hash))};x(t.path.params,t.query.params,t.host.params,t.hash.params);let n={...t.host,regexp:et(t.host.value),stringify(e={}){return jt(t.host,e)}},r={...t.path,regexp:{trailingSlashIgnored:tt(t.path.value),trailingSlashRemoved:tt(t.path.value.replace(/^(.+)\/$/,`$1`))},stringify(e={}){return jt(t.path,e)}},i={...t.query,regexp:rt(t.query.value),stringify(e={}){return Mt(t.query,e).toString()}},a={...t.hash,regexp:nt(t.hash.value),stringify(e={}){return jt(t.hash,e)}};function o(e={}){return Ct({host:n.stringify(e),path:r.stringify(e),query:i.stringify(e),hash:a.stringify(e)})}function s(e,t={}){let o=z(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=z(e);return{...Nt(n,o.host??``),...Nt(r,o.path),...Pt(i,o.query.toString()),...Nt(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{[Dt]:!0,schema:{host:n,path:r,query:i,hash:a},params:{},isRelative:!N(t.host.value),stringify:o,parse:c,tryParse:l}}function kt(e){return{...e,value:e.value.replace(/^#/,``)}}function At(e){return{...e,value:e.value.replace(/^\?/,``)}}function jt(e,t){return Object.keys(e.params).reduce((n,r)=>bt(n,e,r,t[r]),e.value)}function Mt(e,t){let n=new URLSearchParams(e.value);if(!e.value)return n;for(let[r,i]of Array.from(n.entries())){let a=lt(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 Nt(e,t){let n={};for(let[r,i]of Object.entries(e.params))n[r]=Ue(vt(yt(t,e,r)),i);return n}function Pt(e,t){let n={},r=new URLSearchParams(e.value),i=new URLSearchParams(t);for(let[t,a]of Array.from(r.entries())){let r=lt(a);r&&(n[r]=Ue(i.get(t)??void 0,e.params[r]))}return n}function Ft(e,t){x(e.params,t.params);let n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function It(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 Lt(e,t){return Ft(e,t)}function Rt(e,t){if(!B(e))throw Error(`Parent is not a valid url`);if(!B(t))return Ot({host:e.schema.host,path:Ft(e.schema.path,R(t.path)),query:It(e.schema.query,gt(t.query)),hash:Lt(e.schema.hash,R(t.hash))});if(!B(t))throw Error(`Child is not a valid url`);return Ot({host:e.schema.host,path:Ft(e.schema.path,t.schema.path),query:It(e.schema.query,t.schema.query),hash:Lt(e.schema.hash,t.schema.hash)})}function zt(e,t){let n=t.matches.at(-1);return!n||!C(e)?[]:Wt(e.aliases,Vt(n))}function Bt(e,t,n){let r=Ut(e),i=Ht(t,n);return r?Wt(Gt(r),i):[{url:Ot(i),transform:Kt(i)}]}function Vt(e){return{path:R(e.path),query:gt(e.query),hash:R(e.hash),transform:void 0}}function Ht(e,t){return{path:R(e.path),query:gt(e.query),hash:R(e.hash),transform:t}}function Ut(e){if(!(e.hoist||!C(e.parent)))return e.parent}function Wt(e,t){let n=Kt(t);return e.map(e=>({url:Rt(e.url,t),transform:(t,r)=>({...e.transform(t,r),...n(t,r)})}))}function Gt(e){return[{url:e,transform:Jt(qt(e))},...C(e)?e.aliases:[]]}function Kt(e){let t=Jt([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 qt(e){return B(e)?Object.values(e.schema).flatMap(e=>Object.keys(e.params)):[]}function Jt(e){return(t,n)=>{let r={};for(let t of e)t in n&&(r[t]=n[t]);return r}}function Yt(e){return`parent`in e&&!!e.parent}function Xt(e){return`component`in e&&!!e.component}function Zt(e){return`components`in e&&!!e.components}function Qt(e,t,n=!1){if(!C(e)||!C(t))throw Error(`combineRoutes called with invalid route arguments`);let r={...t,meta:v(e.meta,t.meta),state:ee(e.state,t.state),hooks:O(e,t),matches:[...e.matches,...t.matches],context:[...e.context,...t.context],depth:e.depth+1};return n?r:{...r,...Rt(e,t),aliases:zt(e,t)}}function $t(e){return e===void 0?``:e}var V=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},en=class extends Error{},tn=class extends en{response;constructor(e){super(`Uncaught ContextRedirectError`),this.response={status:`REDIRECT`,to:e}}},nn=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 rn(){let e=new V;return{redirect:(t,n,r)=>{if(e.redirects.size>0)throw new nn(t.name);let i=(e,{redirectStatus:i})=>{throw new tn([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 an=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}};function on({getRoute:e}){return{redirectTo:(...[t,n,r])=>{let i=e();if(!C(i))throw new an(i.name);t.context.push(i),i.context.push(t),i.redirect(t,n,r)},redirectFrom:(t,n,r)=>{let i=e();if(!C(t))throw new an(t.name);i.context.push(t),t.context.push(i),t.redirect(i,n,r)}}}function sn(e){let t;return{setTitle:e=>{t=e},getTitle:async n=>{let r=async()=>{if(e&&C(e))return e.getTitle(n)};return t?t(n,{from:n,getParentTitle:r}):r()}}}var cn=`default`;function ln(e,t){let n={};return Zt(e)?Object.entries(e.components).forEach(([e,t])=>{n[e]={component:t}}):Xt(e)&&(n[cn]={component:e.component}),typeof t==`function`?n[cn]={...n[cn],props:t}:Object.entries(t??{}).forEach(([e,t])=>{n[e]={...n[e],props:t}}),n}function un(e){return Object.keys(e).filter(t=>e[t].props)}var dn=`default`;function fn(e,t){return{name:t?.name??`default`,load:e,prefetch:t?.prefetch,transformer:t?.transformer}}function pn(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 mn(e,t){if(e.some(e=>t in e.loaders))throw new c(t)}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=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||!C(e))return _n(e);let i=Bt(r,t,n);return _n({...e,aliases:[...e.aliases,...i]})};return{...e,addView:n,addLoader:r,addAlias:i}}function H(e,n){let r=_(),i=$t(e.name),a=R(e.path),o=gt(e.query),s=R(e.hash),c=e.meta??{},l=e.state??{},u=e.context??[],{store:d,redirect:f,...p}=rn(),{setTitle:m,getTitle:h}=sn(e.parent),g=ln(e,n),v=(0,t.markRaw)({...e,id:r,meta:c,state:l,name:i,views:g,loaders:{}}),y=on({getRoute:()=>ee}),b=Ot({path:a,query:o,hash:s}),x={[S]:!0,depth:1,hooks:[d],getTitle:h,redirect:f,aliases:[]},ee={id:r,matches:[v],name:i,meta:c,state:l,context:u,prefetch:e.prefetch,setTitle:m,...y,...b,...p,...x};return Yt(e)?_n(Qt(e.parent,ee,e.hoist)):_n(ee)}function vn(){let e=new V;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(!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),Ct(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`?Ue(r,{param:n,...Cn}):r}return Ue(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 L(r,{param:n,...Cn})}return L(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=wt(r.href,i),o=bn(a,{route:e,params:t,alias:n.alias}),{query:s,hash:c}=z(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(C(e))return e.getTitle(t)}let u={[n]:!0,id:e.id,name:e.name,matches:e.matches,hooks:D(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=H({name:e,component:(0,t.markRaw)(n??yn(e))}),{setTitle:s}=o,c=()=>An(o).getTitle(),l={[T]:!0,route:o,hooks:[i]};return{type:e,status:r,setTitle:s,getTitle:c,...a,...l}}function Mn(e){let n=_(),r=$t(e.name),i=R(e.path),a=gt(e.query),o=R(e.hash),s=e.meta??{},c=R(e.host),l=e.context??[],{store:u,redirect:d,...f}=rn(),{getTitle:p,setTitle:m}=sn(e.parent),h=on({getRoute:()=>b}),g=(0,t.markRaw)({id:n,meta:{},state:{},...e,views:{},loaders:{}}),v=Ot({host:c,path:i,query:a,hash:o}),y={[S]:!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,...v,...y};return Yt(e)?Qt(e.parent,b,e.hoist):b}function Nn(){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 Pn=Nn();function Fn(e){let n=Pn(e);return({increment:e=!1}={})=>{let r=(0,t.inject)(n,0);return e&&(0,t.provide)(n,r+1),r}}var In=(e,t,n)=>{let r=e?.matches??[],i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},Ln=(e,t,n)=>{let r=e?.matches??[],i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},Rn=(e,t,n)=>e?.matches.at(n)?.id===t?.matches.at(n)?.id;function zn(e){switch(e){case`onBeforeRouteEnter`:case`onAfterRouteEnter`:return In;case`onBeforeRouteUpdate`:case`onAfterRouteUpdate`:return Rn;case`onBeforeRouteLeave`:case`onAfterRouteLeave`:return Ln;default:throw Error(`Switch is not exhaustive for lifecycle: ${e}`)}}var U=class extends en{response;constructor(e){super(`Uncaught ContextPushError`),this.response={status:`PUSH`,to:e}}},Bn=class extends en{response;constructor(e){super(`Uncaught ContextRejectionError`),this.response={status:`REJECT`,type:e}}},Vn=class extends en{response;constructor(){super(`Uncaught ContextAbortError`),this.response={status:`ABORT`}}};function Hn(e,t){let n=new V;return D(e).forEach((r,i,a)=>{if(i===a.length-1&&r.redirects.forEach(e=>n.redirects.add(e)),In(e,t,i))return r.onBeforeRouteEnter.forEach(e=>n.onBeforeRouteEnter.add(e));if(Rn(e,t,i))return r.onBeforeRouteUpdate.forEach(e=>n.onBeforeRouteUpdate.add(e))}),D(t).forEach((r,i)=>{if(Ln(e,t,i))return r.onBeforeRouteLeave.forEach(e=>n.onBeforeRouteLeave.add(e))}),n}function Un(e,t){let n=new V;return D(e).forEach((r,i)=>{if(In(e,t,i))return r.onAfterRouteEnter.forEach(e=>n.onAfterRouteEnter.add(e));if(Rn(e,t,i))return r.onAfterRouteUpdate.forEach(e=>n.onAfterRouteUpdate.add(e))}),D(t).forEach((r,i)=>{if(Ln(e,t,i))return r.onAfterRouteLeave.forEach(e=>n.onAfterRouteLeave.add(e))}),n}function Wn(e,t,n){let r=new V;return e?.matches.forEach((i,a)=>{In(e,t,a)&&n.onBeforeRouteEnter.forEach(e=>r.onBeforeRouteEnter.add(e)),Rn(e,t,a)&&n.onBeforeRouteUpdate.forEach(e=>r.onBeforeRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{Ln(e,t,a)&&n.onBeforeRouteLeave.forEach(e=>r.onBeforeRouteLeave.add(e))}),r}function Gn(e,t,n){let r=new V;return e?.matches.forEach((i,a)=>{In(e,t,a)&&n.onAfterRouteEnter.forEach(e=>r.onAfterRouteEnter.add(e)),Rn(e,t,a)&&n.onAfterRouteUpdate.forEach(e=>r.onAfterRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{Ln(e,t,a)&&n.onAfterRouteLeave.forEach(e=>r.onAfterRouteLeave.add(e))}),r}function Kn(e){let t=new V;return D(e).forEach(e=>{e.onRejection.forEach(e=>t.onRejection.add(e))}),t}function qn(){let e=null;function t(t){e=t}function n(t){return e?e.runWithContext(t):t()}return{setVueApp:t,runWithContext:n}}var Jn=class extends Error{constructor(){super(`update called without a route to update`)}};function Yn({to:e}){let t=e=>{throw new Bn(e)},n=(...e)=>{throw new U(e)};return{reject:t,push:n,replace:(e,t,n)=>{throw i(e)?new U([e,{...t??{},replace:!0}]):new U([e,t,{...n??{},replace:!0}])},update:(t,r,i)=>{if(!e)throw new Jn;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 Vn}}}var Xn=Nn();function Zn({redirectStatus:e}){let{setVueApp:t,runWithContext:n}=qn(),{store:r,...i}=rn(),a=new V,o=async({to:t,from:i,signal:o,progress:s})=>{let{reject:l,push:u,replace:d,update:f,abort:p}=Yn({to:t}),m=Hn(t,i),h=Wn(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 U||e instanceof tn||e instanceof Bn||e instanceof Vn)return e.response;try{c(e,{to:t,from:i,source:`hook`})}catch(e){if(e instanceof U||e instanceof Bn)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}=Yn({to:e}),d=Un(e,t),f=Gn(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 U||n instanceof Bn)return n.response;try{c(n,{to:e,from:t,source:`hook`})}catch(e){if(e instanceof U||e instanceof Bn)return e.response;throw e}}return{status:`SUCCESS`}},c=(e,{to:t,from:n,source:i})=>{let{reject:a,push:o,replace:s}=Yn({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 en)throw t;if(t===e)continue;throw t}};return{runBeforeRouteHooks:o,runAfterRouteHooks:s,runErrorHooks:c,runRejectionHooks:(e,{to:t,from:n})=>{let i=[...Kn(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=zn(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 Qn(e){let n=Xn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new f;return e}}function $n(e,n){let r=Fn(e),i=Qn(e);return e=>{let a=r(),o=i().addComponentHook({lifecycle:n,hook:e,depth:a-1});return(0,t.onUnmounted)(o),o}}function er(e){return{onBeforeRouteLeave:$n(e,`onBeforeRouteLeave`),onBeforeRouteUpdate:$n(e,`onBeforeRouteUpdate`),onAfterRouteLeave:$n(e,`onAfterRouteLeave`),onAfterRouteUpdate:$n(e,`onAfterRouteUpdate`)}}var tr=Nn();function nr(e){let n=tr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new f;return e}}var rr=Nn();function ir(e){let n=rr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new f;return e}}function ar(e){return()=>{let n=(0,t.inject)(e);if(!n)throw new f;return n}}var or=Symbol(`isRouterRouteSymbol`);function sr(e,t){return typeof t==`object`&&!!t&&or in t&&e in t}function cr(e,n,r){function i(e){r(wt(Ct({...z(n.href),query:void 0}),{query:e}))}function a(e,t,i){if(le(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,[or]:!0,[e]:!0})}function lr(e){return(t,n,{exact:r}={})=>sr(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(e=>e.name).includes(n):!1}function ur(e){let n=ar(e),r=lr(e);return(e,i)=>{let a=n();function o(){if(e&&!r(a.route,e,i))throw new p(e,a.route.name)}return(0,t.watch)(a.route,o,{immediate:!0,deep:!0}),a.route}}function dr(e){let n=ur(e),r=ar(e),i=ir(e),a=Fn(e),o=nr(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(E(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 fr=Nn();function pr(e){let n=fr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new f;return e}}var mr=`lazy`,hr={components:!0,props:!1,loaders:!1};function gr(e){return[`eager`,`lazy`,`intent`].includes(e)}function _r({routerPrefetch:e,routePrefetch:t,viewPrefetch:n,linkPrefetch:r},i){let a=[vr(r,i),vr(n,i),vr(t,i),vr(e,i),hr[i],mr].reduce((e,t)=>gr(e)?e:e===!0&&gr(t)?t:e===!0&&!gr(t)?e:e===void 0?t:e,void 0);return gr(a)?a:!1}function vr(e,t){return M(e)?e[t]:e}var yr=(0,t.defineAsyncComponent)(()=>new Promise(e=>{e({default:{template:`foo`}})}));function br(e){return e.name===yr.name&&`__asyncLoader`in e}function xr(e,t=()=>!0){return e.matches.flatMap(e=>Object.values(e.views).flatMap(n=>n.component&&br(n.component)&&t(e,n)?[n.component]:[]))}function Sr(e,t=()=>!0){return xr(e,t).map(e=>e.__asyncLoader())}var Cr=Symbol(`visibilityObserver`);function wr(e){let n=(0,t.inject)(Cr);if(!n)throw new f;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 Tr(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 Er(e){let n=pr(e);return e=>{let r=(0,t.ref)(),{createDetachedStore:i}=n(),a=i(),{isElementVisible:o}=wr(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}),Tr(r,`focusin`,c),Tr(r,`mouseover`,c);function c(){let{route:n,...r}=(0,t.toValue)(e);n&&l(`intent`,n,r)}function l(e,t,n){Or(e,t,n),a.compute(t,Dr(e,n))}return{element:r,commit:s}}}function Dr(e,t){return n=>_r({...t,routePrefetch:n.routePrefetch,viewPrefetch:n.prefetch},n.kind===`loader`?`loaders`:`props`)===e}function Or(e,t,n){Sr(t,(t,r)=>_r({...n,routePrefetch:t.prefetch,viewPrefetch:r.prefetch},`components`)===e)}function kr(e,t){if(!r(e))throw Error(`updateResolvedRoute called with a value that is not a resolved route`);let n=wt(e.href,{query:t.query,hash:t.hash}),{query:i,hash:a}=z(n),o={...e,href:n,query:xn(i),hash:a,state:{...e.state,...t.state},getTitle:()=>e.getRouteTitle(o)};return o}function Ar(e){let n=ar(e),r=Er(e),a=lr(e);return(e,o={},s={})=>{let c=n(),l=(0,t.computed)(()=>{let n=(0,t.toValue)(e);return typeof n!=`string`||i(n)?(0,t.toValue)(o):(0,t.toValue)(s)}),u=(0,t.computed)(()=>{let n=(0,t.toValue)(e);if(i(n)){let e=c.find(n);return e&&kr(e,l.value)}return typeof n==`string`?c.resolve(n,(0,t.toValue)(o),(0,t.toValue)(s)):kr(n,l.value)}),d=(0,t.computed)(()=>{if(u.value)return u.value.href;let n=(0,t.toValue)(e);if(i(n))return n;console.error(Error(`Failed to resolve route in RouterLink.`))}),f=(0,t.computed)(()=>a(c.route)&&c.route.matches.some(e=>e.id===u.value?.id)),p=(0,t.computed)(()=>c.route.id===u.value?.id),m=(0,t.computed)(()=>a(c.route)&&ce(u.value)&&c.route.href.startsWith(u.value.href)),h=(0,t.computed)(()=>c.route.href===u.value?.href),g=(0,t.computed)(()=>!!d.value&&c.isExternal(d.value)),{element:_,commit:v}=r(()=>({route:u.value,routerPrefetch:c.prefetch,linkPrefetch:l.value.prefetch})),y=n=>{v();let r={replace:n?.replace??l.value.replace,query:xt(n?.query,l.value.query),hash:n?.hash??l.value.hash,state:{...l.value.state,...n?.state}},a=(0,t.toValue)(e);return i(a)||typeof a==`object`?c.push(a,r):c.push(a,(0,t.toValue)(o),r)};return{element:_,route:u,href:d,isMatch:f,isExactMatch:p,isActive:m,isExactActive:h,isExternal:g,push:y,replace:e=>y({...e,replace:!0})}}}function jr(e){let n=ar(e),r=Ar(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,push:g}=r(()=>typeof e.to==`function`?e.to(a.resolve):e.to,s),_=(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 v(e){return e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||!o.value}function y(e){v(e)||(e.preventDefault(),g())}return()=>(0,t.h)(`a`,{href:u.value,target:e.target,class:[`router-link`,_.value],ref:c,onClick:y},i.slots.default?.({route:l.value,isMatch:d.value,isExactMatch:f.value,isActive:p.value,isExactActive:m.value,isExternal:h.value}))},{name:`RouterLink`,props:[`to`,`prefetch`,`query`,`hash`,`replace`,`state`,`target`]})}var Mr=Nn();function Nr(e){let n=Mr(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new f;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 Pr=150,Fr=.08,Ir=400,Lr=200,Rr=.05,zr=(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,Rr):+!!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)*Fr},Pr))},{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 ${Lr}ms ease-out ${Ir}ms`}},(0,t.h)(`div`,{class:`router-progress__bar`,style:{height:`100%`,width:`${r}%`,background:e.color??`var(--router-progress-color, #29d)`,transition:`width ${Ir}ms ease-out`}}))}},{name:`RouterProgressBar`,props:[`navigation`,`delay`,`color`,`label`]});function Br(e){let n=Nr(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)(zr,{key:o.value,navigation:r,delay:e.delay??150,color:e.color,label:e.label??`Loading page`})},{name:`RouterProgress`,props:[`delay`,`color`,`label`]})}function Vr(e){let n=ur(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?ae(r)?r.defaultValue:null:We(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&&ae(r)?[r.defaultValue]:n.map(e=>We(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 Hr(e){let t=typeof e==`object`?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a}=er(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a,isRoute:lr(t),RouterView:dr(t),RouterLink:jr(t),RouterProgress:Br(t),useRoute:ur(t),useRouter:ar(t),useQueryValue:Vr(t),useLink:Ar(t),useRejection:ir(t),useNavigation:Nr(t)}}var Ur=Symbol(`IS_ROUTER_PLUGIN_SYMBOL`);function Wr(e){return typeof e==`object`&&!!e&&Ur in e}function Gr(e){let{store:t,...n}=rn(),r={[Ur]:!0,hooks:t};return{routes:e.routes??[],rejections:e.rejections??[],...n,...r}}function Kr(e){return{get:(t,{invalid:n})=>{for(let n of e){let e=We(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=Ge(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 qr={separator:`,`};function Jr(e,t={}){let{separator:n}={...qr,...t},r=Kr(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 Yr={separator:`,`};function Xr(e,t={}){let{separator:n}={...Yr,...t};return{get:t=>{let r=t.split(n);return e.map((e,t)=>Ue(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 Zr(){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 Qr(){return Math.random().toString(36).slice(2,10)}function $r(e,t,n){return Math.min(Math.max(e,t),n)}function ei(e){e.preventDefault(),e.returnValue=``}function ti({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 ni(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 ri(e){return Object.freeze(e)}var ii=`beforeunload`,ai=`popstate`,oi=`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,ri({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(ai,a);let o=`POP`,[s,c]=r(),l=Zr(),u=Zr();s??(s=0,n.replaceState({...n.state,idx:s},``,d(c)));function d(e){return typeof e==`string`?e:ti(e)}function f(e,t=null){return ri({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?ni(e):e,state:t,key:Qr()})}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 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(ii,ei),()=>{n(),u.length||t.removeEventListener(ii,ei)}}}}function ci(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e=`/`,search:r=``,hash:i=``}=ni(t.location.hash.slice(1)),a=n.state??{};return[a.idx,ri({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(ai,a),t.addEventListener(oi,()=>{let[,e]=r();ti(e)!==ti(c)&&a()});let o=`POP`,[s,c]=r(),l=Zr(),u=Zr();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:ti(e))}function p(e,t=null){return ri({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?ni(e):e,state:t,key:Qr()})}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 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(ii,ei),()=>{n(),u.length||t.removeEventListener(ii,ei)}}}}function li(e={}){let{initialEntries:t=[`/`],initialIndex:n}=e,r=t.map(e=>ri({pathname:`/`,search:``,hash:``,state:null,key:Qr(),...typeof e==`string`?ni(e):e})),i=$r(n??r.length-1,0,r.length-1),a=`POP`,o=r[i],s=Zr(),c=Zr();function l(e){return typeof e==`string`?e:ti(e)}function u(e,t=null){return ri({pathname:o.pathname,search:``,hash:``,...typeof e==`string`?ni(e):e,state:t,key:Qr()})}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=$r(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 ui({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:cr(e,c,r),updateRoute:o}}function di(e){return t=>{let{host:n}=z(t);return n!==void 0&&n!==e}}function fi(){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 pi={kind:`pending`},mi={kind:`running`},hi={kind:`missing`};function gi(){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)(pi)})}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=mi;try{let e=t();if(P(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??hi,signal:n.signal,dispose:t=>{n.abort(t);for(let[n,r]of e)e.delete(n),a(r,{kind:`error`,error:t})}}}function _i(){let e={current:gi()};return{current:()=>e.current,stage:t=>{e.staged?.dispose(new u),e.staged=t},staged:()=>(e.staged??=gi(),e.staged),promote:()=>{let t=e.current;return e.current=e.staged??gi(),e.staged=void 0,t}}}function vi(e,t,n,r){return[e,t,n,r.id,r.href].join(`-`)}function yi(e){return e.matches.flatMap((t,n)=>[...xi(t).map(r=>bi(r,t,n,e,t.views[r.name].props,t.views[r.name])),...Si(t).map(r=>bi(r,t,n,e,t.loaders[r.name].load,t.loaders[r.name]))])}function bi(e,t,n,r,i,{prefetch:a,transformer:o}){return{...e,depth:n,key:vi(e.kind,e.id,e.name,r),run:i,routePrefetch:t.prefetch,prefetch:a,transformer:o}}function xi(e){return un(e.views).map(t=>({kind:`props`,id:e.id,name:t}))}function Si(e){return Object.keys(e.loaders).map(t=>({kind:`loader`,id:e.id,name:t}))}function Ci(e){return t=>t.kind===e}function wi(){let{setVueApp:e,runWithContext:n}=qn(),r=_i(),i=()=>{let e={store:gi()},t=()=>{e.store.dispose(new u)},n=()=>{t(),e.store=gi()},i=()=>{r.stage(e.store),e.store=gi()};return{...c(()=>e.store),stage:i,reset:n,dispose:t}},a=()=>c(()=>r.staged()),o=e=>(r.promote().dispose(new u),c(()=>r.current()).compute(e));function c(e){return{compute:(t,n=()=>!0)=>{let r=e(),i=yi(t).filter(n),a=d(r,t,i.filter(Ci(`loader`))),o=d(r,t,i.filter(Ci(`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=yi(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 yi(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 d(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 u)return{status:`ABANDONED`};if(e instanceof U||e instanceof Bn)return e.response;throw e}}let f=(e,t,n)=>{let i=vi(`props`,e,t,n),a=r.current().get(i);switch(a.kind){case`missing`:return Ei;case`pending`:case`running`:return Di(r.current().subscribe(i));case`value`:case`error`:return a;default:return a}};function p(e,t){return _(yi(e).filter(Ci(`loader`)),dn,e,t)}function m(e,t,r){let{push:i,replace:a,reject:o,update:s}=Yn({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 s(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 _(xi(r),cn,e,n)},get data(){return _(Si(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=vi(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`&&Oi(e,t);let o=Ti([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 Ti(e){try{return await Promise.any(e)}catch(e){throw e instanceof AggregateError?e.errors.find(e=>!(e instanceof u))??e.errors[0]:e}}var Ei={kind:`value`,value:void 0};async function Di(e){try{return{kind:`value`,value:await e}}catch(e){return e instanceof u?Ei:{kind:`error`,error:e}}}function Oi({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 Zr(){return typeof window<`u`&&window.document!==void 0}function Qr({mode:e,listener:t}){let n=$r(e),r=!1,i=(e,t)=>{r=!0;try{if(t?.replace){n.replace(e,t.state);return}n.push(e,t?.state)}finally{r=!1}},a=()=>{let e=Cr(n.location);n.replace(e)},o,s=()=>{o?.(),o=n.listen(e=>{r||t(e)})},c=()=>{o?.()};return{...n,update:i,refresh:a,startListening:s,stopListening:c}}function $r(e=`auto`){switch(e){case`auto`:return Zr()?kr():jr();case`browser`:return kr();case`memory`:return jr();case`hash`:return Ar();default:throw Error(`Switch is not exhaustive for mode: ${e}`)}}function ei(){let e;return{setServerRedirect:(t,n)=>{e??={kind:`redirect`,status:t,location:n}},getServerRedirect:()=>e}}var ti=class extends Error{constructor(){super(`initialUrl must be set if window.location is unavailable`)}};function ni(e){if(e)return e;if(Zr())return window.location.toString();throw new ti}var ri=`kitbag-payload`,ii=`\u2028`,ai=`\u2029`;function oi(e){return`<script type="application/json" id="${ri}">${JSON.stringify(e).replace(/</g,`\\u003C`).replace(new RegExp(ii,`g`),`\\u2028`).replace(new RegExp(ai,`g`),`\\u2029`)}<\/script>`}var si={stringify:JSON.stringify,parse:JSON.parse};function ci(e){return e===`props`||e===`loader`}function li(e){return N(e)&&ci(e.kind)&&typeof e.depth==`number`&&typeof e.name==`string`&&typeof e.encoded==`string`}function ui(e){return!N(e)||typeof e.url!=`string`?!1:e.kind===`success`?Array.isArray(e.values)&&e.values.every(li):e.kind===`reject`&&typeof e.rejection==`string`}function di(){if(!Zr())return;let e=document.getElementById(ri)?.textContent;if(e)try{let t=JSON.parse(e);return ui(t)?t:void 0}catch{return}}function fi(e,t,n=si){let r=Vr(e),i=[],a=[];for(let{kind:e,depth:o,name:s,value:c}of t){let t=mi(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 l(`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 pi(e,t,n=si){let r=Vr(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=mi(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 l(`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 mi(e,{kind:t,depth:n,name:r}){return e.find(e=>e.kind===t&&e.depth===n&&e.name===r)?.transformer}function hi(){let e=p(),t,n=!1;return{getNavigationId:()=>(t=e(),t),isCurrentNavigationId:e=>!n&&e===t,stopNavigationIds:()=>{n=!0}}}function gi(){let e=(0,t.reactive)(new Map),n=Zr()?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 _i=class extends Error{constructor(e){super(`Route not found: "${e}"`)}},vi=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 yi(e){return`name`in e&&P(e.name)}function bi(e,t){return P(t)?{...e,...Ht(At({path:t}),e)}:e}function xi(e,t=[],n={}){let r=new Map,i=new Map,a=[...e,...t.map(e=>e.routes)],o=[...Object.entries(C).map(([e,t])=>dn({type:e,status:t})),...n.rejections??[],...t.map(e=>e.rejections)];function s(e){if(!S(e)||!yi(e))return;let t=r.get(e.name);if(t&&t.id!==e.id)throw new vi(e.name);if(t?.id!==e.id){r.set(e.name,bi(e,n.base));for(let t of e.context)S(t)&&s(t),T(t)&&c(t)}}function c(e){T(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(Si(e)){l(e);continue}s(e)}for(let e of o){if(Ci(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(wi),rejections:Array.from(i.values()),getRouteByName:d,getRejectionByType:f}}function Si(e){return Array.isArray(e)}function Ci(e){return Array.isArray(e)}function wi(e,t){return t.depth-e.depth}function Ti(e=[]){let t=new A;return e.forEach(e=>{fr(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 Ei=t.ssrContextKey;function Di(){return(0,t.inject)(Ei,null)!==null}function Oi(){return!!(0,t.getCurrentInstance)()?.suspense}function ki(e,{id:n,name:r,component:i}){let a=Kn(e),o=Un(e);return(0,t.defineComponent)({name:`PropsWrapper`,expose:[],setup(){let e=a(),s=o(),c=Di(),l=Oi();return()=>{let a=e.getProps(n,r,s);return F(a)?c||l?(0,t.h)(ji,{component:i,props:a}):(0,t.h)(Ai,{component:i,props:a}):a.kind===`error`?``:(0,t.h)(i,a.value)}}})}var Ai=(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}),()=>Mi(e.component,n.value)},{props:[`component`,`props`]}),ji=(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}),()=>Mi(e.component,n.value)},{props:[`component`,`props`]});function Mi(e,n){return n===void 0||n.kind===`error`?``:(0,t.h)(e,n.value)}function Ni(e){let t=new Map;return{getRouteComponents:(n,r)=>{let i=t.get(n);if(i)return i;let a=Pi(e,n,r);return t.set(n,a),a}}}function Pi(e,t,n){let r=Wn(e),i=Object.entries(n).reduce((e,[t,n])=>(n.component&&e.push([t,n.component]),e),[]);return i.length===0?{default:r}:Object.fromEntries(i.map(([n,r])=>[n,ki(e,{id:t,name:n,component:r})]))}var Fi=Symbol(),Ii=Object.create,Li=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,zi=Object.getOwnPropertyNames,Bi=Object.getPrototypeOf,Vi=Object.prototype.hasOwnProperty,Hi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ui=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=zi(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Vi.call(e,s)&&s!==n&&Li(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ri(t,s))||r.enumerable});return e},Wi=(e,t,n)=>(n=e==null?{}:Ii(Bi(e)),Ui(t||!e||!e.__esModule?Li(n,`default`,{value:e,enumerable:!0}):n,e)),Gi=typeof navigator<`u`,U=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};U.chrome!==void 0&&U.chrome.devtools,Gi&&(U.self,U.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__;var Ki=Wi(Hi(((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),qi=/(?:^|[-_/])(\w)/g;function Ji(e,t){return t?t.toUpperCase():``}function Yi(e){return e&&`${e}`.replace(qi,Ji)}function Xi(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 Zi=(0,Ki.default)({circles:!0}),Qi={trailing:!0};function $i(e,t=25,n={}){if(n={...Qi,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,c=(t,r)=>(o=ea(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 ea(e,t,n){return await e.apply(t,n)}function ta(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?ta(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var na={run:e=>e()},ra=console.createTask===void 0?()=>na:console.createTask;function ia(e,t){let n=ra(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function aa(e,t){let n=ra(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function oa(e,t){for(let n of[...e])n(t)}var sa=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=ta(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=ta(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(ia,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(aa,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&oa(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&oa(this._after,r)}):(this._after&&r&&oa(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 ca(){return new sa}var la=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);function ua(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 da(e){let t=e.__file;if(t)return Yi(Xi(t,`.vue`))}function fa(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function pa(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 ma(e){let t=e.subTree?.type,n=pa(e);return n?n?.types?.Fragment===t:!1}function ha(e){let t=ua(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 fa(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return fa(e,t);return da(e?.type||{})||`Anonymous Component`}function ga(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function _a(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function va(){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 ya;function ba(e){return ya||=document.createRange(),ya.selectNode(e),ya.getBoundingClientRect()}function xa(e){let t=va();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=wa(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=ba(e))}i&&Sa(t,i)}return t}function Sa(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 Ca={top:0,left:0,right:0,bottom:0,width:0,height:0};function wa(e){let t=e.subTree.el;return typeof window>`u`?Ca:ma(e)?xa(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?wa(e.subTree.component):Ca}function Ta(e){return ma(e)?Ea(e.subTree):e.subTree?[e.subTree.el]:[]}function Ea(e){if(!e.children)return[];let t=[];return e.children.forEach(e=>{e.component?t.push(...Ta(e.component)):e?.el&&t.push(e.el)}),t}var Da=`__vue-devtools-component-inspector__`,Oa=`__vue-devtools-component-inspector__card__`,ka=`__vue-devtools-component-inspector__name__`,Aa=`__vue-devtools-component-inspector__indicator__`,ja={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},Ma={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)`},Na={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function Pa(){return document.getElementById(Da)}function Fa(){return document.getElementById(Oa)}function Ia(){return document.getElementById(Aa)}function La(){return document.getElementById(ka)}function Ra(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 za(e){let t=document.createElement(`div`);t.id=e.elementId??Da,Object.assign(t.style,{...ja,...Ra(e.bounds),...e.style});let n=document.createElement(`span`);n.id=Oa,Object.assign(n.style,{...Ma,top:e.bounds.top<35?0:`-35px`});let r=document.createElement(`span`);r.id=ka,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;let i=document.createElement(`i`);return i.id=Aa,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,Na),n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body.appendChild(t),t}function Ba(e){let t=Pa(),n=Fa(),r=La(),i=Ia();t&&(Object.assign(t.style,{...ja,...Ra(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 Va(e){let t=wa(e);if(!t.width&&!t.height)return;let n=ha(e);Pa()?Ba({bounds:t,name:n}):za({bounds:t,name:n})}function Ha(){let e=Pa();e&&(e.style.display=`none`)}var Ua=null;function Wa(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(Ua=e,e.vnode.el)){let t=wa(e),n=ha(e);Pa()?Ba({bounds:t,name:n}):za({bounds:t,name:n})}}}function Ga(e,t){e.preventDefault(),e.stopPropagation(),Ua&&t(ga(Ua))}var Ka=null;function qa(){Ha(),window.removeEventListener(`mouseover`,Wa),window.removeEventListener(`click`,Ka,!0),Ka=null}function Ja(){return window.addEventListener(`mouseover`,Wa),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Ga(n,n=>{window.removeEventListener(`click`,t,!0),Ka=null,window.removeEventListener(`mouseover`,Wa);let r=Pa();r&&(r.style.display=`none`),e(JSON.stringify({id:n}))})}Ka=t,window.addEventListener(`click`,t,!0)})}function Ya(e){let t=_a(K.value,e.id);if(t){let[n]=Ta(t);if(typeof n.scrollIntoView==`function`)n.scrollIntoView({behavior:`smooth`});else{let e=wa(t),n=document.createElement(`div`),r={...Ra(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=wa(t);if(n.width||n.height){let r=ha(t),i=Pa();i?Ba({...e,name:r,bounds:n}):za({...e,name:r,bounds:n}),setTimeout(()=>{i&&(i.style.display=`none`)},1500)}},1200)}}U.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function Xa(e){let t=0,n=setInterval(()=>{U.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Za(){let e=U.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Qa(){return new Promise(e=>{function t(){Za(),e(U.__VUE_INSPECTOR__)}U.__VUE_INSPECTOR__?t():Xa(()=>{t()})})}var $a=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 eo(e){return!!(e&&e[$a.IS_READONLY])}function to(e){return eo(e)?to(e[$a.RAW]):!!(e&&e[$a.IS_REACTIVE])}function no(e){return!!(e&&e.__v_isRef===!0)}function ro(e){let t=e&&e[$a.RAW];return t?ro(t):e}var io=class{constructor(){this.refEditor=new ao}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):ro(t)instanceof Map?t.delete(n):ro(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):ro(t)instanceof Map?t.set(e.newKey||n,r):ro(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},ao=class{set(e,t){if(no(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 no(e)?e.value:e}isRef(e){return no(e)||to(e)}};new io;var oo=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function so(){if(typeof window>`u`||!Gi||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(oo);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}U.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];var co=new Proxy(U.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function lo(e,t){q.timelineLayersState[t.id]=!1,co.push({...e,descriptorId:t.id,appRecord:pa(t.app)})}U.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];var uo=new Proxy(U.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),fo=$i(()=>{Xo.hooks.callHook(go.SEND_INSPECTOR_TO_CLIENT,mo())});function po(e,t){uo.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:pa(t.app)}),fo()}function mo(){return uo.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 ho(e,t){return uo.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}({}),go=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 _o(){let e=ca();e.hook(G.ADD_INSPECTOR,({inspector:e,plugin:t})=>{po(e,t.descriptor)});let t=$i(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=ho(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})))},go.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(G.SEND_INSPECTOR_TREE,t);let n=$i(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=ho(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})))},go.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=ho(e,n.descriptor.app);r&&(r.selectedNodeId=t)}),e.hook(G.TIMELINE_LAYER_ADDED,({options:e,plugin:t})=>{lo(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)))},go.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})=>wa(e)),e.hook(G.GET_COMPONENT_NAME,({instance:e})=>ha(e)),e.hook(G.COMPONENT_HIGHLIGHT,({uid:e})=>{let t=K.value.instanceMap.get(e);t&&Va(t)}),e.hook(G.COMPONENT_UNHIGHLIGHT,()=>{Ha()}),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 vo=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function yo(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:so()}}U[vo]??=yo();var bo=$i(e=>{Xo.hooks.callHook(go.DEVTOOLS_STATE_UPDATED,{state:e})});$i((e,t)=>{Xo.hooks.callHook(go.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});var xo=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 So(){bo({...U[vo],appRecords:xo.value,activeAppRecordId:K.id,tabs:U.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:U.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Co(e){U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,So()}function wo(e){U.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,So()}var q=new Proxy(U[vo],{get(e,t){return t===`appRecords`?xo:t===`activeAppRecordId`?K.id:t===`tabs`?U.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?U.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:U[vo][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return e[t]=n,U[vo][t]=n,!0}});function To(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 Eo=new Proxy(U.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Do(e){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Oo(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function ko(e){return(Eo.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function Ao(e,t){let n=Oo(e);if(n){let e=localStorage.getItem(n);if(e)return JSON.parse(e)}return Do(e?(Eo.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function jo(e,t){let n=Oo(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Do(t)))}function Mo(e,t,n){let r=Oo(e),i=localStorage.getItem(r),a=JSON.parse(i||`{}`),o={...a,[t]:n};localStorage.setItem(r,JSON.stringify(o)),Xo.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??=ca(),No={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)}},Po=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=mo().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&&jo(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 Ao(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)}},Fo=`__vue_devtool_undefined__`,Io=`__vue_devtool_infinity__`,Lo=`__vue_devtool_negative_infinity__`,Ro=`__vue_devtool_nan__`;Object.entries({[Fo]:`undefined`,[Ro]:`NaN`,[Io]:`Infinity`,[Lo]:`-Infinity`}).reduce((e,[t,n])=>(e[n]=t,e),{}),U.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function zo(e,t){return No.setupDevToolsPlugin(e,t)}function Bo(e,t){let[n,r]=e;if(n.app!==t)return;let i=new Po({plugin:{setupFn:r,descriptor:n},ctx:Xo});n.packageName===`vuex`&&i.on.editInspectorState(e=>{i.sendInspectorState(e.inspectorId)}),r(i)}function Vo(e,t){U.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||q.highPerfModeEnabled&&!t?.inspectingComponent||(U.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Eo.forEach(t=>{Bo(t,e)}))}var Ho=`__VUE_DEVTOOLS_ROUTER__`,Uo=`__VUE_DEVTOOLS_ROUTER_INFO__`;U[Uo]??={currentRoute:null,routes:[]},U[Ho]??={},new Proxy(U[Uo],{get(e,t){return U[Uo][t]}}),new Proxy(U[Ho],{get(e,t){if(t===`value`)return U[Ho]}});function Wo(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function Go(e){return e.map(e=>{let{path:t,name:n,children:r,meta:i}=e;return r?.length&&(r=Go(r)),{path:t,name:n,children:r,meta:i}})}function Ko(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:Go(o)}}return e}function qo(e,t){function n(){let t=e.app?.config.globalProperties.$router,n=Ko(t?.currentRoute.value),r=Go(Wo(t)),i=console.warn;console.warn=()=>{},U[Uo]={currentRoute:n?Zi(n):{},routes:Zi(r)},U[Ho]=t,console.warn=i}n(),No.on.componentUpdated($i(()=>{t.value?.app===e.app&&(n(),!q.highPerfModeEnabled&&Xo.hooks.callHook(go.ROUTER_INFO_UPDATED,{state:U[Uo]}))},200))}function Jo(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 io,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=ho(t);e.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Ja()},cancelInspectComponentInspector(){return qa()},getComponentRenderCode(e){let t=_a(K.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return Ya({id:e})},openInEditor:To,getVueInspector:Qa,toggleApp(e,t){let n=xo.value.find(t=>t.id===e);n&&(wo(e),Co(n),qo(n,K),fo(),Vo(n.app,t))},inspectDOM(e){let t=_a(K.value,e);if(t){let[e]=Ta(t);e&&(U.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){Mo(e,t,n)},getPluginSettings(e){return{options:ko(e),values:Ao(e)}}}}U.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};var Yo=_o();U.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:Yo,get state(){return{...q,activeAppRecordId:K.id,activeAppRecord:K.value,appRecords:xo.value}},api:Jo(Yo)};var Xo=U.__VUE_DEVTOOLS_KIT_CONTEXT__,Zo=la(((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,ee,S,C,te,w,T,E,D,O,k=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(u=t),S=o.en,C=a.en,typeof t==`object`)for(T 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,ee=t.mark||!1,h=t.symbols!==!1&&t.lang!==!1,u=t.separator||u,b&&(k+=s),x&&(k+=c),ee&&(k+=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)k+=T;for(k+=u,k=f(k),e=e.replace(/(^\s+|\s+$)/g,``),D=!1,O=!1,w=0,E=e.length;w<E;w++)T=e[w],p(T,g)?D=!1:C[T]?(T=D&&C[T].match(/[A-Za-z0-9]/)?` `+C[T]:C[T],D=!1):T in n?(w+1<E&&r.indexOf(e[w+1])>=0?(m+=T,T=``):O===!0?(T=i[m]+n[T],m=``):T=D&&n[T].match(/[A-Za-z0-9]/)?` `+n[T]:n[T],D=!1,O=!1):T in i?(m+=T,T=``,w===E-1&&(T=i[m]),O=!0):S[T]&&!(b&&s.indexOf(T)!==-1)&&!(x&&c.indexOf(T)!==-1)?(T=D||d.substr(-1).match(/[A-Za-z0-9]/)?u+S[T]:S[T],T+=e[w+1]!==void 0&&e[w+1].match(/[A-Za-z0-9]/)?u:``,D=!0):(O===!0?(T=i[m]+T,m=``,O=!1):D&&(/[A-Za-z0-9]/.test(T)||d.substr(-1).match(/A-Za-z0-9]/))&&(T=` `+T),D=!1),d+=T.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&&(te=d.charAt(y)===u,d=d.slice(0,y),te||(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)}));la(((e,t)=>{t.exports=Zo()}))(),U.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function Qo(e){q.highPerfModeEnabled=e??!q.highPerfModeEnabled,!e&&K.value&&Vo(K.value.app)}function $o(e){q.devtoolsClientDetected={...q.devtoolsClientDetected,...e},Qo(!Object.values(q.devtoolsClientDetected).some(Boolean))}U.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=$o;var es=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()}},ts=class{constructor(e){this.generateIdentifier=e,this.kv=new es}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)}},ns=class extends ts{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 rs(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 is(e,t){let n=rs(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 as(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function os(e,t){return e.indexOf(t)!==-1}function ss(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var cs=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return is(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},ls=e=>Object.prototype.toString.call(e).slice(8,-1),us=e=>e===void 0,ds=e=>e===null,fs=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype,ps=e=>fs(e)&&Object.keys(e).length===0,X=e=>Array.isArray(e),ms=e=>typeof e==`string`,hs=e=>typeof e==`number`&&!isNaN(e),gs=e=>typeof e==`boolean`,_s=e=>e instanceof RegExp,vs=e=>e instanceof Map,ys=e=>e instanceof Set,bs=e=>ls(e)===`Symbol`,xs=e=>e instanceof Date&&!isNaN(e.valueOf()),Ss=e=>e instanceof Error,Cs=e=>typeof e==`number`&&isNaN(e),ws=e=>gs(e)||ds(e)||us(e)||hs(e)||ms(e)||bs(e),Ts=e=>typeof e==`bigint`,Es=e=>e===1/0||e===-1/0,Ds=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Os=e=>e instanceof URL,ks=e=>e.replace(/\./g,`\\.`),As=e=>e.map(String).map(ks).join(`.`),js=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 Ms=[Z(us,`undefined`,()=>null,()=>void 0),Z(Ts,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),Z(xs,`Date`,e=>e.toISOString(),e=>new Date(e)),Z(Ss,`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(_s,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),Z(ys,`set`,e=>[...e.values()],e=>new Set(e)),Z(vs,`map`,e=>[...e.entries()],e=>new Map(e)),Z(e=>Cs(e)||Es(e),`number`,e=>Cs(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),Z(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),Z(Os,`URL`,e=>e.toString(),e=>new URL(e))];function Ns(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Ps=Ns((e,t)=>bs(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}),Fs=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Is=Ns(Ds,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=Fs[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function Ls(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Rs=Ns(Ls,(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)}),zs=Ns((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)}),Bs=[Rs,Ps,zs,Is],Vs=(e,t)=>{let n=ss(Bs,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=ss(Ms,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Hs={};Ms.forEach(e=>{Hs[e.annotation]=e});var Us=(e,t,n)=>{if(X(t))switch(t[0]){case`symbol`:return Ps.untransform(e,t,n);case`class`:return Rs.untransform(e,t,n);case`custom`:return zs.untransform(e,t,n);case`typed-array`:return Is.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=Hs[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}},Ws=(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 Gs(e){if(os(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(os(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(os(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var Ks=(e,t)=>{Gs(t);for(let n=0;n<t.length;n++){let r=t[n];if(ys(e))e=Ws(e,+r);else if(vs(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=Ws(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o)}}else e=e[r]}return e},qs=(e,t,n)=>{if(Gs(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(fs(r))r=r[n];else if(ys(r)){let e=+n;r=Ws(r,e)}else if(vs(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=Ws(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]):fs(r)&&(r[i]=n(r[i])),ys(r)){let e=Ws(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(vs(r)){let e=+t[t.length-2],a=Ws(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 Js(e,t,n=[]){if(!e)return;if(!X(e)){as(e,(e,r)=>Js(e,t,[...n,...js(r)]));return}let[r,i]=e;i&&as(i,(e,r)=>{Js(e,t,[...n,...js(r)])}),t(r,n)}function Ys(e,t,n){return Js(t,(t,r)=>{e=qs(e,r,e=>Us(e,t,n))}),e}function Xs(e,t){function n(t,n){let r=Ks(e,js(n));t.map(js).forEach(t=>{e=qs(e,t,()=>r)})}if(X(t)){let[r,i]=t;r.forEach(t=>{e=qs(e,js(t),()=>e)}),i&&as(i,n)}else as(t,n);return e}var Zs=(e,t)=>fs(e)||X(e)||vs(e)||ys(e)||Ls(e,t);function Qs(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function $s(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(As):n[As(i)]=a.map(As)}),r?ps(n)?[r]:[r,n]:ps(n)?void 0:n}var ec=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=ws(e);if(!s){Qs(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!Zs(e,n)){let t=Vs(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(os(a,e))return{transformedValue:null};let c=Vs(e,n),l=c?.value??e,u=X(l)?[]:{},d={};as(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=ec(s,t,n,r,[...i,c],[...a,e],o);u[c]=l.transformedValue,X(l.annotations)?d[c]=l.annotations:fs(l.annotations)&&as(l.annotations,(e,t)=>{d[ks(c)+`.`+t]=e})});let f=ps(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 tc(e){return Object.prototype.toString.call(e).slice(8,-1)}function nc(e){return tc(e)===`Array`}function rc(e){if(tc(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function ic(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 ac(e,t={}){if(nc(e))return e.map(e=>ac(e,t));if(!rc(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(nc(t.props)&&!t.props.includes(r))return n;let i=e[r];return ic(n,r,ac(i,t),e,t.nonenumerable),n},{})}var Q=class{constructor({dedupe:e=!1}={}){this.classRegistry=new ns,this.symbolRegistry=new ts(e=>e.description??``),this.customTransformerRegistry=new cs,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=ec(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=$s(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){let{json:t,meta:n}=e,r=ac(t);return n?.values&&(r=Ys(r,n.values,this)),n?.referentialEqualities&&(r=Xs(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 oc={template:`<div>This is component</div>`},sc=B({name:`parentA`,path:`/parentA/[paramA]`}),cc=B({parent:sc,name:`parentA.childA`,path:`/childA/[?paramB]`});B({parent:sc,name:`parentA.childB`,path:`/childB/[paramD]`,component:oc}),B({parent:cc,name:`parentA.childA.grandChildA`,path:`/[paramC]`,component:oc}),B({name:`parentB`,path:`/parentB`,component:oc}),B({name:`parentC`,path:`/`,component:oc});function lc(e,t){return t===`1`?e:`${e} ${t}`}var uc=({route:e})=>!!e.name,dc=({route:e,payload:t})=>{if(!t.filter)return!0;if(!kt(e))return!1;let n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},fc=e=>uc(e)&&dc(e),pc=p(),mc=2282478,hc=2278750,gc=1483594;function _c(e,t={match:!1,exactMatch:!1}){let n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:mc}),t.match&&n.push({label:`match`,textColor:0,backgroundColor:hc}),t.exactMatch&&n.push({label:`exact-match`,textColor:0,backgroundColor:gc}),{id:e.id,label:e.name,tags:n}}function vc(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 yc(e){let t=[];return kt(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 bc({router:e,app:n,routes:r}){if(!Zr()||e.hasDevtools)return;e.hasDevtools=!0;let i=pc(),a=new Map(r.map(e=>[e.id,e])),o=`kitbag-router-routes.${i}`;zo({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:lc(`Routes`,i),treeFilterPlaceholder:`Search routes`}),s.on.getInspectorTree(t=>{t.app===n&&t.inspectorId===o&&(t.rootNodes=r.filter(e=>fc({route:e,payload:t})).map(t=>_c(t,vc(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:yc(t)})}),s.sendInspectorTree(o),s.sendInspectorState(o)})}function xc(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 Sc(e,t,n={}){let{query:r,hash:i}=z(t);for(let a of e){if(!yi(a))continue;let{success:e,params:o}=a.tryParse(t,n);if(e){let{query:e}=z(a.stringify(o)),t=xc(r,e);return un(a,o,{...n,query:t,hash:i})}}}var Cc=/^(\/.+?)\/+$/;function wc(e){let{path:t,...n}=z(e);return wt({...n,path:t.replace(Cc,`$1`)})}function Tc(e){let{path:t}=z(e);return Cc.test(t)}function Ec(e){e===void 0||!Zr()||(document.title=e)}function Dc(){let e=e=>{r.value=e},n=()=>{r.value=null},r=(0,t.ref)(null);return{currentRejection:r,updateRejection:e,clearRejection:n}}function Oc(e,r,i=[]){let a=r?.isGlobalRouter??!0?Fi:Symbol(),o=r?.removeTrailingSlashes??!0,s=r?.redirectStatus??302,c=r?.rejectStatus??200,l=r?.ssr??!1,u=Pr(),{routes:d,getRouteByName:p,getRejectionByType:m}=xi(e,i,r),g=m(`NotFound`),_=Kr(),v=un(g.route),y=An();y.addGlobalRouteHooks(Ti(i));let{getNavigationId:b,isCurrentNavigationId:x,stopNavigationIds:ee}=hi(),S=Ni(a),C=gi(),w=Qr({mode:r?.historyMode,listener:({location:e})=>{let t=Cr(e);O(t,{state:e.state,replace:!0})}});function T(e,t={}){let n=!N(e),r=d.filter(e=>e.isRelative===n),i={removeTrailingSlashes:o};return Sc(r,e,{...t,...i})}async function E(e,t,n,r,i){let a=await y.runBeforeRouteHooks({to:t,from:n});if(!x(e))return!1;switch(a.status){case`ABORT`:return!1;case`PUSH`:if(l){let e=ie(...a.to);return P(302,e.url),!1}return await A(...a.to),!1;case`REDIRECT`:if(l){let e=a.redirectStatus??s,t=ie(...a.to);return P(e,t.url),!1}return await A(...a.to),!1;case`REJECT`:return w.update(r,i),j(a.type,{to:t,from:n}),!1;case`SUCCESS`:return w.update(r,i),!0;default:throw Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(a)}`)}}async function D({navigationId:e,to:t,from:n}){let r=await y.runAfterRouteHooks({to:t,from:n});if(x(e))switch(r.status){case`PUSH`:await A(...r.to);break;case`REJECT`:j(r.type,{to:t,from:n});break;case`SUCCESS`:break;default:throw Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(r)}`)}}let O=u.wrap(async(e,t={})=>{if(Tc(e)&&o){let r=wc(e);if(n(r)){if(l){P(s,r);return}return ae(r,t)}}let r=b(),i=T(e,t)??null,a=Ce(r);function c(){if(!i){j(te,{to:i,from:a});return}ce(),N(e)||k(i,a),t.hydrating||pe()}!t.hydrating&&!await E(r,i,a,e,t)||(c(),l||await D({navigationId:r,to:i,from:a}))});function k(e,t){let{props:n,loaders:r}=_.commit(e);u.add(ne(n,`props`,e,t),ne(r,`loader`,e,t)),de(e)}function ne(e,t,n,r){return e.then(e=>{switch(e.status){case`SUCCESS`:case`ABANDONED`:break;case`PUSH`:if(l){let t=ie(...e.to);P(302,t.url);break}A(...e.to);break;case`REJECT`:j(e.type,{to:n,from:r});break;default:throw Error(`Switch is not exhaustive for route data response status: ${JSON.stringify(e)}`)}}).catch(e=>{try{y.runErrorHooks(e,{to:n,from:r,source:t})}catch(e){if(e instanceof V){A(...e.response.to);return}if(e instanceof H){j(e.response.type,{to:n,from:r});return}throw e}})}let re=(e,t={},n={})=>{let r=p(e);if(!r)throw new _i(e);return un(r,t,n)};function ie(e,t,r){if(n(e)){let n={...t};return{url:Tt(e,{query:n.query,hash:n.hash}),options:n}}if(typeof e==`string`){let{replace:n,...i}={...r},a={...t},o=re(e,a,i),s=ln({...o.matched.state},{...o.state,...i.state});return{url:o.href,options:{replace:n,state:s}}}let{replace:i,...a}={...t},o=ln({...e.matched.state},{...e.state,...a.state});return{url:Tt(e.href,{query:a.query,hash:a.hash}),options:{replace:i,state:o}}}let A=(e,t,n)=>{let{url:r,options:i}=ie(e,t,n);return O(r,i)},ae=(e,t,r)=>{if(n(e)){let n={...t,replace:!0};return A(e,n)}if(typeof e==`string`){let n={...r,replace:!0},i={...t};return A(e,i,n)}let i={...t,replace:!0};return A(e,i)},j=(e,{to:t=null,from:n=null}={})=>{let r=m(e);r&&(y.runRejectionHooks(r,{to:t,from:n}),se(r),pe())},{currentRejection:oe,updateRejection:se,clearRejection:ce}=Dc(),{currentRoute:le,routerRoute:ue,updateRoute:de}=Mr({routerKey:a,fallbackRoute:v,push:A,getData:_.getData});async function fe(){return await oe.value?.getTitle()??le.getTitle()}async function pe(){Ec(await fe())}let M=ni(r?.initialUrl),me=w.location.state,{host:he}=z(M),N=Nr(he),ge=!1,{setServerRedirect:P,getServerRedirect:_e}=ei(),F=(0,t.ref)(!1),{promise:ve,resolve:ye}=Promise.withResolvers();async function be(e){let t=T(M)??null;if(!t){j(te,{to:t,from:null}),F.value=!0;return}switch(e.kind){case`reject`:j(e.rejection,{to:t,from:null}),F.value=!0;return;case`success`:{let n=pi(t,e.values,r?.transformer),i=_.createDetachedStore();i.fill(t,n),i.stage();let a=O(M,{replace:!0,state:me,hydrating:!0});F.value=!0,await a;return}default:throw Error(`Switch is not exhaustive for payload kind: ${JSON.stringify(e)}`)}}async function xe(){if(ge)return ve;ge=!0;let e=di();e?await be(e):await O(M,{replace:!0,state:me}),w.startListening(),ye(),F.value=!0}async function Se(){if(!l)throw new f;await xe(),await u.idle();let e=_e();if(e)return e;let t=oe.value;if(t){let e=await fe();return{kind:`reject`,status:t.status??c,rejection:t.type,title:e,payload:oi({kind:`reject`,url:M,rejection:t.type})}}let n=await fe(),{values:i,failures:a}=fi(le,_.getValues(le),r?.transformer);return{kind:`success`,status:200,title:n,failures:a,payload:oi({kind:`success`,url:M,values:i})}}function I(){ee(),w.stopListening()}function Ce(e){return h(e)?null:{...le}}function we(e){y.setVueApp(e),_.setVueApp(e);let t=Wn(a),n=cr(a);e.component(`RouterView`,t),e.component(`RouterLink`,n),e.provide(In(a),oe),e.provide(kn(a),y),e.provide(Gn(a),_),e.provide(Pn(a),S),e.provide(tr,C),e.provide(a,Te),bc({router:Te,app:e,routes:d}),xe()}let Te={route:ue,resolve:re,find:T,push:A,replace:ae,reject:j,refresh:w.refresh,forward:w.forward,back:w.back,go:w.go,install:we,isExternal:N,onBeforeRouteEnter:y.onBeforeRouteEnter,onBeforeRouteUpdate:y.onBeforeRouteUpdate,onBeforeRouteLeave:y.onBeforeRouteLeave,onAfterRouteEnter:y.onAfterRouteEnter,onAfterRouteUpdate:y.onAfterRouteUpdate,onAfterRouteLeave:y.onAfterRouteLeave,onError:y.onError,onRejection:y.onRejection,prefetch:r?.prefetch,start:xe,started:F,render:Se,stop:I,key:a,hasDevtools:!1};return Te}var $=ur(Fi),kc=$.onBeforeRouteLeave,Ac=$.onBeforeRouteUpdate,jc=$.onAfterRouteLeave,Mc=$.onAfterRouteUpdate,Nc=$.isRoute,Pc=$.RouterView,Fc=$.RouterLink,Ic=$.useRoute,Lc=$.useRouter,Rc=$.useQueryValue,zc=$.useLink,Bc=$.useRejection;e.DuplicateParamsError=i,e.LoaderDataAccessError=a,e.LoaderNameConflict=o,e.MetaPropertyConflict=s,e.NavigationAbandonedError=c,e.PayloadValueError=l,e.RouterLink=Fc,e.RouterNotInstalledError=u,e.RouterView=Pc,e.SsrOptionRequiredError=f,e.UseRouteInvalidError=d,e.arrayOf=gr,e.asUrlString=r,e.createExternalRoute=fn,e.createParam=pe,e.createRejection=dn,e.createRoute=B,e.createRouter=Oc,e.createRouterAssets=ur,e.createRouterPlugin=pr,e.createUrl=At,e.isRoute=Nc,e.isUrlString=n,e.literal=Re,e.onAfterRouteLeave=jc,e.onAfterRouteUpdate=Mc,e.onBeforeRouteLeave=kc,e.onBeforeRouteUpdate=Ac,e.tupleOf=vr,e.unionOf=mr,e.useLink=zc,e.useQueryValue=Rc,e.useRejection=Bc,e.useRoute=Ic,e.useRouter=Lc,e.withDefault=me,e.withParams=vt});
5
+ `)}function ki(){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 Ai(){return typeof window<`u`&&window.document!==void 0}function ji({mode:e,listener:t}){let n=Mi(e),r=!1,i=(e,t)=>{r=!0;try{if(t?.replace){n.replace(e,t.state);return}n.push(e,t?.state)}finally{r=!1}},a=()=>{let e=ti(n.location);n.replace(e)},o,s=()=>{o?.(),o=n.listen(e=>{r||t(e)})},c=()=>{o?.()};return{...n,update:i,refresh:a,startListening:s,stopListening:c}}function Mi(e=`auto`){switch(e){case`auto`:return Ai()?si():li();case`browser`:return si();case`memory`:return li();case`hash`:return ci();default:throw Error(`Switch is not exhaustive for mode: ${e}`)}}function Ni(){let e;return{setServerRedirect:(t,n)=>{e??={kind:`redirect`,status:t,location:n}},getServerRedirect:()=>e}}var Pi=class extends Error{constructor(){super(`initialUrl must be set if window.location is unavailable`)}};function Fi(e,t){if(e)return e;if(Ai())return t===`hash`?window.location.hash.slice(1)||`/`:window.location.toString();throw new Pi}var Ii=`kitbag-payload`,Li=`\u2028`,Ri=`\u2029`;function zi(e){return`<script type="application/json" id="${Ii}">${JSON.stringify(e).replace(/</g,`\\u003C`).replace(new RegExp(Li,`g`),`\\u2028`).replace(new RegExp(Ri,`g`),`\\u2029`)}<\/script>`}var Bi={stringify:JSON.stringify,parse:JSON.parse};function Vi(e){return e===`props`||e===`loader`}function Hi(e){return M(e)&&Vi(e.kind)&&typeof e.depth==`number`&&typeof e.name==`string`&&typeof e.encoded==`string`}function Ui(e){return!M(e)||typeof e.url!=`string`?!1:e.kind===`success`?Array.isArray(e.values)&&e.values.every(Hi):e.kind===`reject`&&typeof e.rejection==`string`}function Wi(){if(!Ai())return;let e=document.getElementById(Ii)?.textContent;if(e)try{let t=JSON.parse(e);return Ui(t)?t:void 0}catch{return}}function Gi(e,t,n=Bi){let r=yi(e),i=[],a=[];for(let{kind:e,depth:o,name:s,value:c}of t){let t=qi(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 d(`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 Ki(e,t,n=Bi){let r=yi(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=qi(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 d(`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 qi(e,{kind:t,depth:n,name:r}){return e.find(e=>e.kind===t&&e.depth===n&&e.name===r)?.transformer}function Ji(){let e,t=!1;return{begin:()=>(e?.abort(),e=new AbortController,t&&e.abort(),e),stop:()=>{t=!0,e?.abort()}}}function Yi(){let e=(0,t.reactive)(new Map),n=Ai()?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 Xi=class extends Error{constructor(e){super(`Route not found: "${e}"`)}},Zi=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 Qi(e){return`name`in e&&N(e.name)}function $i(e,t){if(!C(e))throw Error(`insertBaseRoute called with an invalid route`);if(!N(t))return e;let n=Ot({path:t}),r=e.aliases.map(e=>({...e,url:Rt(n,e.url)}));return{...e,...Rt(n,e),aliases:r}}function ea(e,t=[],n={}){let r=new Map,i=new Map,a=[...e,...t.map(e=>e.routes)],o=[...Object.entries(te).map(([e,t])=>jn({type:e,status:t})),...n.rejections??[],...t.map(e=>e.rejections)];function s(e){if(!C(e)||!Qi(e))return;let t=r.get(e.name);if(t&&t.id!==e.id)throw new Zi(e.name);if(t?.id===e.id)return;let i=$i(e,n.base);if(aa(i))throw new h(e.name,ia(i));r.set(e.name,i);for(let t of e.context)C(t)&&s(t),E(t)&&c(t)}function c(e){E(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(ta(e)){l(e);continue}s(e)}for(let e of o){if(na(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(ra),rejections:Array.from(i.values()),getRouteByName:d,getRejectionByType:f}}function ta(e){return Array.isArray(e)}function na(e){return Array.isArray(e)}function ra(e,t){return t.depth-e.depth}function ia(e){return B(e)?e.schema.path.value:``}function aa(e){return e.isRelative&&!ia(e).startsWith(`/`)}function oa(e=[]){let t=new V;return e.forEach(e=>{Wr(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 sa=t.ssrContextKey;function ca(){return(0,t.inject)(sa,null)!==null}function la(){return!!(0,t.getCurrentInstance)()?.suspense}function ua(e,{id:n,name:r,component:i}){let a=pr(e),o=ur(e);return(0,t.defineComponent)({name:`PropsWrapper`,expose:[],setup(){let e=a(),s=o(),c=ca(),l=la();return()=>{let a=e.getProps(n,r,s);return P(a)?c||l?(0,t.h)(fa,{component:i,props:a}):(0,t.h)(da,{component:i,props:a}):a.kind===`error`?``:(0,t.h)(i,a.value)}}})}var da=(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}),()=>pa(e.component,n.value)},{props:[`component`,`props`]}),fa=(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}),()=>pa(e.component,n.value)},{props:[`component`,`props`]});function pa(e,n){return n===void 0||n.kind===`error`?``:(0,t.h)(e,n.value)}function ma(e){let t=new Map;return{getRouteComponents:(n,r)=>{let i=t.get(n);if(i)return i;let a=ha(e,n,r);return t.set(n,a),a}}}function ha(e,t,n){let r=dr(e),i=Object.entries(n).reduce((e,[t,n])=>(n.component&&e.push([t,n.component]),e),[]);return i.length===0?{default:r}:Object.fromEntries(i.map(([n,r])=>[n,ua(e,{id:t,name:n,component:r})]))}var ga=Symbol(),_a=Object.create,va=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,ba=Object.getOwnPropertyNames,xa=Object.getPrototypeOf,Sa=Object.prototype.hasOwnProperty,Ca=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wa=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=ba(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Sa.call(e,s)&&s!==n&&va(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ya(t,s))||r.enumerable});return e},Ta=(e,t,n)=>(n=e==null?{}:_a(xa(e)),wa(t||!e||!e.__esModule?va(n,`default`,{value:e,enumerable:!0}):n,e)),Ea=typeof navigator<`u`,W=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};W.chrome!==void 0&&W.chrome.devtools,Ea&&(W.self,W.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__;var Da=Ta(Ca(((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),Oa=/(?:^|[-_/])(\w)/g;function ka(e,t){return t?t.toUpperCase():``}function Aa(e){return e&&`${e}`.replace(Oa,ka)}function ja(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 Ma=(0,Da.default)({circles:!0}),Na={trailing:!0};function Pa(e,t=25,n={}){if(n={...Na,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,c=(t,r)=>(o=Fa(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 Fa(e,t,n){return await e.apply(t,n)}function Ia(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?Ia(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var La={run:e=>e()},Ra=console.createTask===void 0?()=>La:console.createTask;function za(e,t){let n=Ra(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function Ba(e,t){let n=Ra(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function Va(e,t){for(let n of[...e])n(t)}var Ha=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=Ia(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=Ia(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(za,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Ba,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Va(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&Va(this._after,r)}):(this._after&&r&&Va(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 Ua(){return new Ha}var Wa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);function Ga(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 Ka(e){let t=e.__file;if(t)return Aa(ja(t,`.vue`))}function qa(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Ja(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 Ya(e){let t=e.subTree?.type,n=Ja(e);return n?n?.types?.Fragment===t:!1}function Xa(e){let t=Ga(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 qa(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return qa(e,t);return Ka(e?.type||{})||`Anonymous Component`}function Za(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function Qa(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function $a(){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 eo;function to(e){return eo||=document.createRange(),eo.selectNode(e),eo.getBoundingClientRect()}function no(e){let t=$a();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=ao(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=to(e))}i&&ro(t,i)}return t}function ro(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 io={top:0,left:0,right:0,bottom:0,width:0,height:0};function ao(e){let t=e.subTree.el;return typeof window>`u`?io:Ya(e)?no(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?ao(e.subTree.component):io}function oo(e){return Ya(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(...oo(e.component)):e?.el&&t.push(e.el)}),t}var co=`__vue-devtools-component-inspector__`,lo=`__vue-devtools-component-inspector__card__`,uo=`__vue-devtools-component-inspector__name__`,fo=`__vue-devtools-component-inspector__indicator__`,po={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},mo={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)`},ho={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function go(){return document.getElementById(co)}function _o(){return document.getElementById(lo)}function vo(){return document.getElementById(fo)}function yo(){return document.getElementById(uo)}function bo(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 xo(e){let t=document.createElement(`div`);t.id=e.elementId??co,Object.assign(t.style,{...po,...bo(e.bounds),...e.style});let n=document.createElement(`span`);n.id=lo,Object.assign(n.style,{...mo,top:e.bounds.top<35?0:`-35px`});let r=document.createElement(`span`);r.id=uo,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;let i=document.createElement(`i`);return i.id=fo,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,ho),n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body.appendChild(t),t}function So(e){let t=go(),n=_o(),r=yo(),i=vo();t&&(Object.assign(t.style,{...po,...bo(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 Co(e){let t=ao(e);if(!t.width&&!t.height)return;let n=Xa(e);go()?So({bounds:t,name:n}):xo({bounds:t,name:n})}function wo(){let e=go();e&&(e.style.display=`none`)}var To=null;function Eo(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(To=e,e.vnode.el)){let t=ao(e),n=Xa(e);go()?So({bounds:t,name:n}):xo({bounds:t,name:n})}}}function Do(e,t){e.preventDefault(),e.stopPropagation(),To&&t(Za(To))}var Oo=null;function ko(){wo(),window.removeEventListener(`mouseover`,Eo),window.removeEventListener(`click`,Oo,!0),Oo=null}function Ao(){return window.addEventListener(`mouseover`,Eo),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Do(n,n=>{window.removeEventListener(`click`,t,!0),Oo=null,window.removeEventListener(`mouseover`,Eo);let r=go();r&&(r.style.display=`none`),e(JSON.stringify({id:n}))})}Oo=t,window.addEventListener(`click`,t,!0)})}function jo(e){let t=Qa(q.value,e.id);if(t){let[n]=oo(t);if(typeof n.scrollIntoView==`function`)n.scrollIntoView({behavior:`smooth`});else{let e=ao(t),n=document.createElement(`div`),r={...bo(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=ao(t);if(n.width||n.height){let r=Xa(t),i=go();i?So({...e,name:r,bounds:n}):xo({...e,name:r,bounds:n}),setTimeout(()=>{i&&(i.style.display=`none`)},1500)}},1200)}}W.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function Mo(e){let t=0,n=setInterval(()=>{W.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function No(){let e=W.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Po(){return new Promise(e=>{function t(){No(),e(W.__VUE_INSPECTOR__)}W.__VUE_INSPECTOR__?t():Mo(()=>{t()})})}var Fo=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 Io(e){return!!(e&&e[Fo.IS_READONLY])}function Lo(e){return Io(e)?Lo(e[Fo.RAW]):!!(e&&e[Fo.IS_REACTIVE])}function Ro(e){return!!(e&&e.__v_isRef===!0)}function zo(e){let t=e&&e[Fo.RAW];return t?zo(t):e}var Bo=class{constructor(){this.refEditor=new Vo}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):zo(t)instanceof Map?t.delete(n):zo(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):zo(t)instanceof Map?t.set(e.newKey||n,r):zo(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Vo=class{set(e,t){if(Ro(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 Ro(e)?e.value:e}isRef(e){return Ro(e)||Lo(e)}};new Bo;var Ho=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function Uo(){if(typeof window>`u`||!Ea||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(Ho);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}W.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];var Wo=new Proxy(W.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Go(e,t){J.timelineLayersState[t.id]=!1,Wo.push({...e,descriptorId:t.id,appRecord:Ja(t.app)})}W.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];var Ko=new Proxy(W.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),qo=Pa(()=>{js.hooks.callHook(Zo.SEND_INSPECTOR_TO_CLIENT,Yo())});function Jo(e,t){Ko.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:Ja(t.app)}),qo()}function Yo(){return Ko.filter(e=>e.descriptor.app===q.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 Xo(e,t){return Ko.find(n=>n.options.id===e&&(!t||n.descriptor.app===t))}var G=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}({}),K=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}({}),Zo=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 Qo(){let e=Ua();e.hook(K.ADD_INSPECTOR,({inspector:e,plugin:t})=>{Jo(e,t.descriptor)});let t=Pa(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||J.highPerfModeEnabled)return;let r=Xo(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()},G.GET_INSPECTOR_TREE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:i.rootNodes})))},Zo.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(K.SEND_INSPECTOR_TREE,t);let n=Pa(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||J.highPerfModeEnabled)return;let r=Xo(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()},G.GET_INSPECTOR_STATE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:i.nodeId,state:i.state})))},Zo.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(K.SEND_INSPECTOR_STATE,n),e.hook(K.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:e,nodeId:t,plugin:n})=>{let r=Xo(e,n.descriptor.app);r&&(r.selectedNodeId=t)}),e.hook(K.TIMELINE_LAYER_ADDED,({options:e,plugin:t})=>{Go(e,t.descriptor)}),e.hook(K.TIMELINE_EVENT_ADDED,({options:t,plugin:n})=>{J.highPerfModeEnabled||!J.timelineLayersState?.[n.descriptor.id]&&![`performance`,`component-event`,`keyboard`,`mouse`].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},Zo.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(K.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(K.GET_COMPONENT_BOUNDS,async({instance:e})=>ao(e)),e.hook(K.GET_COMPONENT_NAME,({instance:e})=>Xa(e)),e.hook(K.COMPONENT_HIGHLIGHT,({uid:e})=>{let t=q.value.instanceMap.get(e);t&&Co(t)}),e.hook(K.COMPONENT_UNHIGHLIGHT,()=>{wo()}),e}W.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],W.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},W.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??=``,W.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],W.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];var $o=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function es(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Uo()}}W[$o]??=es();var ts=Pa(e=>{js.hooks.callHook(Zo.DEVTOOLS_STATE_UPDATED,{state:e})});Pa((e,t)=>{js.hooks.callHook(Zo.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});var ns=new Proxy(W.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t===`value`?W.__VUE_DEVTOOLS_KIT_APP_RECORDS__:W.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),q=new Proxy(W.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t===`value`?W.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t===`id`?W.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:W.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function rs(){ts({...W[$o],appRecords:ns.value,activeAppRecordId:q.id,tabs:W.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:W.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function is(e){W.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,rs()}function as(e){W.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,rs()}var J=new Proxy(W[$o],{get(e,t){return t===`appRecords`?ns:t===`activeAppRecordId`?q.id:t===`tabs`?W.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?W.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:W[$o][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return e[t]=n,W[$o][t]=n,!0}});function os(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(J.vitePluginDetected){let e=W.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;W.__VUE_INSPECTOR__.openInEditor(e,t,i,a)}}}W.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];var ss=new Proxy(W.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function cs(e){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function ls(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function us(e){return(ss.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function ds(e,t){let n=ls(e);if(n){let e=localStorage.getItem(n);if(e)return JSON.parse(e)}return cs(e?(ss.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function fs(e,t){let n=ls(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(cs(t)))}function ps(e,t,n){let r=ls(e),i=localStorage.getItem(r),a=JSON.parse(i||`{}`),o={...a,[t]:n};localStorage.setItem(r,JSON.stringify(o)),js.hooks.callHookWith(r=>{r.forEach(r=>r({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:o}))},G.SET_PLUGIN_SETTINGS)}var Y=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}({}),X=W.__VUE_DEVTOOLS_HOOK??=Ua(),ms={on:{vueAppInit(e){X.hook(Y.APP_INIT,e)},vueAppUnmount(e){X.hook(Y.APP_UNMOUNT,e)},vueAppConnected(e){X.hook(Y.APP_CONNECTED,e)},componentAdded(e){return X.hook(Y.COMPONENT_ADDED,e)},componentEmit(e){return X.hook(Y.COMPONENT_EMIT,e)},componentUpdated(e){return X.hook(Y.COMPONENT_UPDATED,e)},componentRemoved(e){return X.hook(Y.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){X.hook(Y.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return X.hook(Y.PERFORMANCE_START,e)},perfEnd(e){return X.hook(Y.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return X.callHook(Y.SETUP_DEVTOOLS_PLUGIN,e,t)}},hs=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(G.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook(G.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook(G.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook(G.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook(G.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook(G.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook(G.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook(G.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook(G.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(J.highPerfModeEnabled)return;let t=Yo().find(e=>e.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){let t=[e.appContext.app,e.uid,e.parent?.uid,e];X.callHook(Y.COMPONENT_UPDATED,...t)}else X.callHook(Y.COMPONENT_UPDATED);this.hooks.callHook(K.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(K.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&fs(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){J.highPerfModeEnabled||this.hooks.callHook(K.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){J.highPerfModeEnabled||this.hooks.callHook(K.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(K.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(G.VISIT_COMPONENT_TREE,e)}now(){return J.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(K.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){J.highPerfModeEnabled||this.hooks.callHook(K.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return ds(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(K.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(K.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(K.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){let t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(K.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(K.COMPONENT_UNHIGHLIGHT)}},gs=`__vue_devtool_undefined__`,_s=`__vue_devtool_infinity__`,vs=`__vue_devtool_negative_infinity__`,ys=`__vue_devtool_nan__`;Object.entries({[gs]:`undefined`,[ys]:`NaN`,[_s]:`Infinity`,[vs]:`-Infinity`}).reduce((e,[t,n])=>(e[n]=t,e),{}),W.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function bs(e,t){return ms.setupDevToolsPlugin(e,t)}function xs(e,t){let[n,r]=e;if(n.app!==t)return;let i=new hs({plugin:{setupFn:r,descriptor:n},ctx:js});n.packageName===`vuex`&&i.on.editInspectorState(e=>{i.sendInspectorState(e.inspectorId)}),r(i)}function Ss(e,t){W.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||J.highPerfModeEnabled&&!t?.inspectingComponent||(W.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),ss.forEach(t=>{xs(t,e)}))}var Cs=`__VUE_DEVTOOLS_ROUTER__`,ws=`__VUE_DEVTOOLS_ROUTER_INFO__`;W[ws]??={currentRoute:null,routes:[]},W[Cs]??={},new Proxy(W[ws],{get(e,t){return W[ws][t]}}),new Proxy(W[Cs],{get(e,t){if(t===`value`)return W[Cs]}});function Ts(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function Es(e){return e.map(e=>{let{path:t,name:n,children:r,meta:i}=e;return r?.length&&(r=Es(r)),{path:t,name:n,children:r,meta:i}})}function Ds(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:Es(o)}}return e}function Os(e,t){function n(){let t=e.app?.config.globalProperties.$router,n=Ds(t?.currentRoute.value),r=Es(Ts(t)),i=console.warn;console.warn=()=>{},W[ws]={currentRoute:n?Ma(n):{},routes:Ma(r)},W[Cs]=t,console.warn=i}n(),ms.on.componentUpdated(Pa(()=>{t.value?.app===e.app&&(n(),!J.highPerfModeEnabled&&js.hooks.callHook(Zo.ROUTER_INFO_UPDATED,{state:W[ws]}))},200))}function ks(e){return{async getInspectorTree(t){let n={...t,app:q.value.app,rootNodes:[]};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n))),t()},G.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){let n={...t,app:q.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()},G.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){let n=new Bo,r={...t,app:q.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))},G.EDIT_INSPECTOR_STATE)},sendInspectorState(t){let n=Xo(t);e.callHook(K.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Ao()},cancelInspectComponentInspector(){return ko()},getComponentRenderCode(e){let t=Qa(q.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return jo({id:e})},openInEditor:os,getVueInspector:Po,toggleApp(e,t){let n=ns.value.find(t=>t.id===e);n&&(as(e),is(n),Os(n,q),qo(),Ss(n.app,t))},inspectDOM(e){let t=Qa(q.value,e);if(t){let[e]=oo(t);e&&(W.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){ps(e,t,n)},getPluginSettings(e){return{options:us(e),values:ds(e)}}}}W.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};var As=Qo();W.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:As,get state(){return{...J,activeAppRecordId:q.id,activeAppRecord:q.value,appRecords:ns.value}},api:ks(As)};var js=W.__VUE_DEVTOOLS_KIT_CONTEXT__,Ms=Wa(((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,ee,S,C,te,w,T,E,D,O,k=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(u=t),S=o.en,C=a.en,typeof t==`object`)for(T 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,ee=t.mark||!1,h=t.symbols!==!1&&t.lang!==!1,u=t.separator||u,b&&(k+=s),x&&(k+=c),ee&&(k+=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)k+=T;for(k+=u,k=f(k),e=e.replace(/(^\s+|\s+$)/g,``),D=!1,O=!1,w=0,E=e.length;w<E;w++)T=e[w],p(T,g)?D=!1:C[T]?(T=D&&C[T].match(/[A-Za-z0-9]/)?` `+C[T]:C[T],D=!1):T in n?(w+1<E&&r.indexOf(e[w+1])>=0?(m+=T,T=``):O===!0?(T=i[m]+n[T],m=``):T=D&&n[T].match(/[A-Za-z0-9]/)?` `+n[T]:n[T],D=!1,O=!1):T in i?(m+=T,T=``,w===E-1&&(T=i[m]),O=!0):S[T]&&!(b&&s.indexOf(T)!==-1)&&!(x&&c.indexOf(T)!==-1)?(T=D||d.substr(-1).match(/[A-Za-z0-9]/)?u+S[T]:S[T],T+=e[w+1]!==void 0&&e[w+1].match(/[A-Za-z0-9]/)?u:``,D=!0):(O===!0?(T=i[m]+T,m=``,O=!1):D&&(/[A-Za-z0-9]/.test(T)||d.substr(-1).match(/A-Za-z0-9]/))&&(T=` `+T),D=!1),d+=T.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&&(te=d.charAt(y)===u,d=d.slice(0,y),te||(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)}));Wa(((e,t)=>{t.exports=Ms()}))(),W.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function Ns(e){J.highPerfModeEnabled=e??!J.highPerfModeEnabled,!e&&q.value&&Ss(q.value.app)}function Ps(e){J.devtoolsClientDetected={...J.devtoolsClientDetected,...e},Ns(!Object.values(J.devtoolsClientDetected).some(Boolean))}W.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=Ps;var Fs=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()}},Is=class{constructor(e){this.generateIdentifier=e,this.kv=new Fs}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)}},Ls=class extends Is{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 Rs(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 zs(e,t){let n=Rs(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 Bs(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function Vs(e,t){return e.indexOf(t)!==-1}function Hs(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var Us=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return zs(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},Ws=e=>Object.prototype.toString.call(e).slice(8,-1),Gs=e=>e===void 0,Ks=e=>e===null,qs=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype,Js=e=>qs(e)&&Object.keys(e).length===0,Ys=e=>Array.isArray(e),Xs=e=>typeof e==`string`,Zs=e=>typeof e==`number`&&!isNaN(e),Qs=e=>typeof e==`boolean`,$s=e=>e instanceof RegExp,ec=e=>e instanceof Map,tc=e=>e instanceof Set,nc=e=>Ws(e)===`Symbol`,rc=e=>e instanceof Date&&!isNaN(e.valueOf()),ic=e=>e instanceof Error,ac=e=>typeof e==`number`&&isNaN(e),oc=e=>Qs(e)||Ks(e)||Gs(e)||Zs(e)||Xs(e)||nc(e),sc=e=>typeof e==`bigint`,cc=e=>e===1/0||e===-1/0,lc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),uc=e=>e instanceof URL,dc=e=>e.replace(/\./g,`\\.`),fc=e=>e.map(String).map(dc).join(`.`),pc=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 mc=[Z(Gs,`undefined`,()=>null,()=>void 0),Z(sc,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),Z(rc,`Date`,e=>e.toISOString(),e=>new Date(e)),Z(ic,`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($s,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),Z(tc,`set`,e=>[...e.values()],e=>new Set(e)),Z(ec,`map`,e=>[...e.entries()],e=>new Map(e)),Z(e=>ac(e)||cc(e),`number`,e=>ac(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),Z(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),Z(uc,`URL`,e=>e.toString(),e=>new URL(e))];function hc(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var gc=hc((e,t)=>nc(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}),_c=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),vc=hc(lc,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=_c[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function yc(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var bc=hc(yc,(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)}),xc=hc((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)}),Sc=[bc,gc,xc,vc],Cc=(e,t)=>{let n=Hs(Sc,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=Hs(mc,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},wc={};mc.forEach(e=>{wc[e.annotation]=e});var Tc=(e,t,n)=>{if(Ys(t))switch(t[0]){case`symbol`:return gc.untransform(e,t,n);case`class`:return bc.untransform(e,t,n);case`custom`:return xc.untransform(e,t,n);case`typed-array`:return vc.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=wc[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}},Ec=(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 Dc(e){if(Vs(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(Vs(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(Vs(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var Oc=(e,t)=>{Dc(t);for(let n=0;n<t.length;n++){let r=t[n];if(tc(e))e=Ec(e,+r);else if(ec(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=Ec(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o)}}else e=e[r]}return e},kc=(e,t,n)=>{if(Dc(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(Ys(r)){let e=+n;r=r[e]}else if(qs(r))r=r[n];else if(tc(r)){let e=+n;r=Ec(r,e)}else if(ec(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=Ec(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o)}}}let i=t[t.length-1];if(Ys(r)?r[+i]=n(r[+i]):qs(r)&&(r[i]=n(r[i])),tc(r)){let e=Ec(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(ec(r)){let e=+t[t.length-2],a=Ec(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 Ac(e,t,n=[]){if(!e)return;if(!Ys(e)){Bs(e,(e,r)=>Ac(e,t,[...n,...pc(r)]));return}let[r,i]=e;i&&Bs(i,(e,r)=>{Ac(e,t,[...n,...pc(r)])}),t(r,n)}function jc(e,t,n){return Ac(t,(t,r)=>{e=kc(e,r,e=>Tc(e,t,n))}),e}function Mc(e,t){function n(t,n){let r=Oc(e,pc(n));t.map(pc).forEach(t=>{e=kc(e,t,()=>r)})}if(Ys(t)){let[r,i]=t;r.forEach(t=>{e=kc(e,pc(t),()=>e)}),i&&Bs(i,n)}else Bs(t,n);return e}var Nc=(e,t)=>qs(e)||Ys(e)||ec(e)||tc(e)||yc(e,t);function Pc(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function Fc(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(fc):n[fc(i)]=a.map(fc)}),r?Js(n)?[r]:[r,n]:Js(n)?void 0:n}var Ic=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=oc(e);if(!s){Pc(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!Nc(e,n)){let t=Cc(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(Vs(a,e))return{transformedValue:null};let c=Cc(e,n),l=c?.value??e,u=Ys(l)?[]:{},d={};Bs(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=Ic(s,t,n,r,[...i,c],[...a,e],o);u[c]=l.transformedValue,Ys(l.annotations)?d[c]=l.annotations:qs(l.annotations)&&Bs(l.annotations,(e,t)=>{d[dc(c)+`.`+t]=e})});let f=Js(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 Lc(e){return Object.prototype.toString.call(e).slice(8,-1)}function Rc(e){return Lc(e)===`Array`}function zc(e){if(Lc(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Bc(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 Vc(e,t={}){if(Rc(e))return e.map(e=>Vc(e,t));if(!zc(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(Rc(t.props)&&!t.props.includes(r))return n;let i=e[r];return Bc(n,r,Vc(i,t),e,t.nonenumerable),n},{})}var Q=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Ls,this.symbolRegistry=new Is(e=>e.description??``),this.customTransformerRegistry=new Us,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=Ic(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=Fc(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){let{json:t,meta:n}=e,r=Vc(t);return n?.values&&(r=jc(r,n.values,this)),n?.referentialEqualities&&(r=Mc(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,W.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],W.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,W.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,W.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,W.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,W.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;var Hc={template:`<div>This is component</div>`},Uc=H({name:`parentA`,path:`/parentA/[paramA]`}),Wc=H({parent:Uc,name:`parentA.childA`,path:`/childA/[?paramB]`});H({parent:Uc,name:`parentA.childB`,path:`/childB/[paramD]`,component:Hc}),H({parent:Wc,name:`parentA.childA.grandChildA`,path:`/[paramC]`,component:Hc}),H({name:`parentB`,path:`/parentB`,component:Hc}),H({name:`parentC`,path:`/`,component:Hc});function Gc(e,t){return t===`1`?e:`${e} ${t}`}var Kc=({route:e})=>!!e.name,qc=({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))},Jc=e=>Kc(e)&&qc(e),Yc=g(),Xc=2282478,Zc=2278750,Qc=1483594;function $c(e,t={match:!1,exactMatch:!1}){let n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:Xc}),t.match&&n.push({label:`match`,textColor:0,backgroundColor:Zc}),t.exactMatch&&n.push({label:`exact-match`,textColor:0,backgroundColor:Qc}),{id:e.id,label:e.name,tags:n}}function el(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 tl(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 nl({router:e,app:n,routes:r}){if(!Ai()||e.hasDevtools)return;e.hasDevtools=!0;let i=Yc(),a=new Map(r.map(e=>[e.id,e])),o=`kitbag-router-routes.${i}`;bs({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:Gc(`Routes`,i),treeFilterPlaceholder:`Search routes`}),s.on.getInspectorTree(t=>{t.app===n&&t.inspectorId===o&&(t.rootNodes=r.filter(e=>Jc({route:e,payload:t})).map(t=>$c(t,el(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:tl(t)})}),s.sendInspectorTree(o),s.sendInspectorState(o)})}function rl(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 il(e,t,n={}){let r=e.filter(Qi);for(let e of r){let{success:r,params:i}=e.tryParse(t,n);if(r)return An(e,i,{...n,...sl(t,e.stringify(i))})}for(let e of r)if(C(e))for(let r of e.aliases){let i=al(e,r,t,n);if(i)return i}}function al(e,t,n,r){let i=t.url.tryParse(n,r);if(!i.success)return;let a=ol(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=sl(n,t.url.stringify(i.params));return An(e,s,{...r,...c,alias:{url:t.url,params:i.params}})}function ol(e,t){try{return e.stringify(t)}catch{return}}function sl(e,t){let{query:n,hash:r}=z(e),{query:i}=z(t);return{query:rl(n,i),hash:r}}var cl=/^(\/.+?)\/+$/;function ll(e){let{path:t,...n}=z(e);return Ct({...n,path:t.replace(cl,`$1`)})}function ul(e){let{path:t}=z(e);return cl.test(t)}function dl(e){e===void 0||!Ai()||(document.title=e)}function fl(){let e=e=>{r.value=e},n=()=>{r.value=null},r=(0,t.ref)(null);return{currentRejection:r,updateRejection:e,clearRejection:n}}function pl(e,n,r=[]){let a=n?.isGlobalRouter??!0?ga:Symbol(),o=n?.removeTrailingSlashes??!0,s=n?.redirectStatus??302,c=n?.rejectStatus??200,l=n?.ssr??!1,u=fi(),d=ki(),{routes:f,getRouteByName:p,getRejectionByType:h}=ea(e,r,n),g=h(`NotFound`),_=wi(),v=An(g.route),y=Zn({redirectStatus:s});y.addGlobalRouteHooks(oa(r));let b=Ji(),x=ma(a),ee=Yi(),S=ji({mode:n?.historyMode,listener:({location:e})=>{let t=ti(e);E(t,{state:e.state,replace:!0})}});function C(e,t={}){let n=!pe(e),r=f.filter(e=>e.isRelative===n),i={removeTrailingSlashes:o};return il(r,e,{...t,...i})}async function te({controller:e,to:t,from:n,url:r,options:i,progress:a}){let o=await y.runBeforeRouteHooks({to:t,from:n,signal:e.signal,progress:a});if(e.signal.aborted)return!1;switch(o.status){case`ABORT`:return a.abort(),!1;case`PUSH`:case`REDIRECT`:return await A(...o.to),!1;case`REJECT`:return S.update(r,i),j(o.type,{to:t,from:n}),a.abort(),!1;case`SUCCESS`:return S.update(r,i),!0;default:throw Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(o)}`)}}async function T({controller:e,to:t,from:n}){let r=await y.runAfterRouteHooks({to:t,from:n,signal:e.signal});if(!e.signal.aborted)switch(r.status){case`PUSH`:await A(...r.to);break;case`REJECT`:e.abort(),j(r.type,{to:t,from:n});break;case`SUCCESS`:break;default:throw Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(r)}`)}}let E=u.wrap(async(e,t={})=>{if(ul(e)&&o){let n=ll(e);if(i(n))return ie(n,{...t,redirectStatus:s})}let n=b.begin();if(n.signal.aborted)return;let r=C(e,t)??null,a=Se(),c=d.begin({to:r,from:a,expected:D(e,r),inert:l||t.hydrating});function u(){if(!r){j(w,{to:r,from:a}),c.abort();return}se(),pe(e)||O(r,a,c),c.close(),I.value=!0,t.hydrating||ue(n.signal)}if(!t.hydrating&&!await te({controller:n,to:r,from:a,url:e,options:t,progress:c})){n.abort();return}u(),l||await T({controller:n,to:r,from:a})});function D(e,t){return!t||pe(e)?0:yi(t).length+xr(t).length}function O(e,t,n){let{props:r,loaders:i,values:a}=_.commit(e);u.add(k(r,`props`,e,t),k(i,`loader`,e,t)),n.track(...a,...Sr(e)),le(e)}function k(e,t,n,r){return e.then(e=>{switch(e.status){case`SUCCESS`:case`ABANDONED`:break;case`PUSH`:A(...e.to);break;case`REJECT`:j(e.type,{to:n,from:r});break;default:throw Error(`Switch is not exhaustive for route data response status: ${JSON.stringify(e)}`)}}).catch(e=>{try{y.runErrorHooks(e,{to:n,from:r,source:t})}catch(e){if(e instanceof U){A(...e.response.to);return}if(e instanceof Bn){j(e.response.type,{to:n,from:r});return}throw e}})}let ne=(e,t={},n={})=>{let r=p(e);if(!r)throw new Xi(e);return An(r,t,n)};function re(e,t,n){if(i(e)){let{redirectStatus:n,...r}={...t};return{url:wt(e,{query:r.query,hash:r.hash}),options:r,redirectStatus:n}}if(typeof e==`string`){let{replace:r,redirectStatus:i,...a}={...n},o={...t},s=ne(e,o,a),c=Dn({...s.matched.state},{...s.state,...a.state});return{url:s.href,options:{replace:r,state:c},redirectStatus:i}}let{replace:r,redirectStatus:a,...o}={...t},s=Dn({...e.matched.state},{...e.state,...o.state});return{url:wt(e.href,{query:o.query,hash:o.hash}),options:{replace:r,state:s},redirectStatus:a}}let A=async(e,t,n)=>{let{url:r,options:i,redirectStatus:a}=re(e,t,n);if(l){he(a??302,r);return}return E(r,i)},ie=(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)},j=(e,{to:t=null,from:n=null}={})=>{let r=h(e);if(!r)return;let i=b.begin();y.runRejectionHooks(r,{to:t,from:n}),oe(r),I.value=!0,ue(i.signal)},{currentRejection:ae,updateRejection:oe,clearRejection:se}=fl(),{currentRoute:ce,routerRoute:M,updateRoute:le}=ui({routerKey:a,fallbackRoute:v,push:A,getData:_.getData});async function N(){return await ae.value?.getTitle()??ce.getTitle()}async function ue(e){let t=await N();e.aborted||dl(t)}let P=Fi(n?.initialUrl,n?.historyMode),de=S.location.state,{host:fe}=z(P),pe=di(fe),me=!1,{setServerRedirect:he,getServerRedirect:F}=Ni(),I=(0,t.ref)(!1),{promise:ge,resolve:_e}=Promise.withResolvers();async function ve(e){let t=C(P)??null;if(!t){j(w,{to:t,from:null});return}switch(e.kind){case`reject`:j(e.rejection,{to:t,from:null});return;case`success`:{let r=Ki(t,e.values,n?.transformer),i=_.createDetachedStore();i.fill(t,r),i.stage(),await E(P,{replace:!0,state:de,hydrating:!0});return}default:throw Error(`Switch is not exhaustive for payload kind: ${JSON.stringify(e)}`)}}async function ye(){if(me)return ge;me=!0;let e=Wi();e?await ve(e):await E(P,{replace:!0,state:de}),S.startListening(),_e(),I.value=!0}async function be(){if(!l)throw new m;await ye(),await u.idle();let e=F();if(e)return e;let t=ae.value;if(t){let e=await N();return{kind:`reject`,status:t.status??c,rejection:t.type,title:e,payload:zi({kind:`reject`,url:P,rejection:t.type})}}let r=await N(),{values:i,failures:a}=Gi(ce,_.getValues(ce),n?.transformer);return{kind:`success`,status:200,title:r,failures:a,payload:zi({kind:`success`,url:P,values:i})}}function xe(){b.stop(),d.stop(),S.stopListening()}function Se(){return I.value?{...ce}:null}function Ce(e){y.setVueApp(e),_.setVueApp(e);let t=dr(a),n=jr(a),r=Br(a);e.component(`RouterView`,t),e.component(`RouterLink`,n),e.component(`RouterProgress`,r),e.provide(rr(a),ae),e.provide(Xn(a),y),e.provide(fr(a),_),e.provide(tr(a),x),e.provide(Mr(a),d),e.provide(Cr,ee),e.provide(a,we),nl({router:we,app:e,routes:f}),ye()}let we={route:M,resolve:ne,find:C,push:A,replace:ie,reject:j,refresh:S.refresh,forward:S.forward,back:S.back,go:S.go,install:Ce,isExternal:pe,onBeforeRouteEnter:y.onBeforeRouteEnter,onBeforeRouteUpdate:y.onBeforeRouteUpdate,onBeforeRouteLeave:y.onBeforeRouteLeave,onAfterRouteEnter:y.onAfterRouteEnter,onAfterRouteUpdate:y.onAfterRouteUpdate,onAfterRouteLeave:y.onAfterRouteLeave,onError:y.onError,onRejection:y.onRejection,prefetch:n?.prefetch,start:ye,started:I,render:be,stop:xe,key:a,hasDevtools:!1};return we}var $=Hr(ga),ml=$.onBeforeRouteLeave,hl=$.onBeforeRouteUpdate,gl=$.onAfterRouteLeave,_l=$.onAfterRouteUpdate,vl=$.isRoute,yl=$.RouterView,bl=$.RouterLink,xl=$.RouterProgress,Sl=$.useRoute,Cl=$.useRouter,wl=$.useQueryValue,Tl=$.useLink,El=$.useRejection,Dl=$.useNavigation;e.DuplicateParamsError=o,e.LoaderDataAccessError=s,e.LoaderNameConflict=c,e.MetaPropertyConflict=l,e.NavigationAbandonedError=u,e.PayloadValueError=d,e.RouterLink=bl,e.RouterNotInstalledError=f,e.RouterProgress=xl,e.RouterView=yl,e.SsrOptionRequiredError=m,e.UnreachableRouteError=h,e.UseRouteInvalidError=p,e.arrayOf=Jr,e.asUrlString=a,e.createExternalRoute=Mn,e.createParam=j,e.createRejection=jn,e.createRoute=H,e.createRouter=pl,e.createRouterAssets=Hr,e.createRouterPlugin=Gr,e.createUrl=Ot,e.isResolvedRoute=r,e.isRoute=vl,e.isUrlString=i,e.literal=Fe,e.onAfterRouteLeave=gl,e.onAfterRouteUpdate=_l,e.onBeforeRouteLeave=ml,e.onBeforeRouteUpdate=hl,e.tupleOf=Xr,e.unionOf=Kr,e.useLink=Tl,e.useNavigation=Dl,e.useQueryValue=wl,e.useRejection=El,e.useRoute=Sl,e.useRouter=Cl,e.withDefault=oe,e.withParams=ht});