1import{a as e,i as t}from"./Dj1jN_hI.js";import{C as n,E as r,H as i,Tt as a,Y as o,_t as s,bt as c,d as l,z as u}from"./CVFO16Vr.js";import{s as d}from"./BAUEsIQV.js";import"./rxhDcyfF.js";import{d as f,f as p,m,u as h}from"./CrI0ZWOa.js";import{_ as g,b as _,d as v,i as y,l as b,s as x}from"./XhL5XHNR.js";import{a as S,r as C}from"./q72i-NjH.js";var w={scrollBehavior(e,n,r){let i=t(),a=m(),o=a.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===n.path.replace(/\/$/,``)?n.hash&&!e.hash?r??{left:0,top:0}:e.hash?{el:e.hash,top:T(e.hash),behavior:o}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,n):e.meta.scrollToTop)===!1?!1:n===S?E(e,n,r,o):new Promise(t=>{let s=()=>{requestAnimationFrame(()=>{if(a.currentRoute.value.fullPath!==e.fullPath){t(!1);return}t(E(e,n,r,o))})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function T(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function E(e,t,n,r){return n||(e.hash?{el:e.hash,top:T(e.hash),behavior:C(e,t)?r:`instant`}:{left:0,top:0})}var D=typeof window<`u`&&window.innerWidth<976?70:0,O={scrollBehavior(e,n,r){let i=t();return r?e.name!=n.name&&n.name!=null?new Promise(e=>{i.hook(`page:finish`,()=>{e(r)})}):r:e.path===n.path&&!e.hash?{top:0,left:0,behavior:`smooth`}:e.hash?e.path===n.path?{el:e.hash,top:D,left:0,behavior:`smooth`}:new Promise(t=>{i.hook(`page:finish`,()=>{t({el:e.hash,top:D,left:0,behavior:`smooth`})})}):new Promise(e=>{i.hook(`page:finish`,()=>{e({top:0,left:0})})})}},k={hashMode:!1,scrollBehaviorType:`auto`},A=O.hashMode??!1,j={...k,...w,...O},M=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),N=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),P=e=>{let n=t();n.isHydrating?n.hooks.hookOnce(`app:suspense:resolve`,()=>{M(()=>e())}):M(()=>e())};function F(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function I(e,t=m()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>I(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n),1));i.push(n)}await Promise.all(i)}var L=(...e)=>e.find(e=>e!==void 0);function R(e){let t=e.replace(/[\u0000-\u001F\s]+/g,``);for(;t.toLowerCase().startsWith(`view-source:`);)t=t.slice(12);let n=t.indexOf(`:`);return n>0&&x(t.slice(0,n+1))?null:e}function z(d){let g=d.componentName||`NuxtLink`;function _(e){return!A&&typeof e==`string`&&e.startsWith(`#`)}function x(e,t,n){let r=n??d.trailingSlash;if(!e||r!==`append`&&r!==`remove`)return e;if(typeof e==`string`)return V(e,r);let i=`path`in e&&e.path!==void 0?e.path:t(e).path;return{...e,name:void 0,path:V(i,r)}}function S(t){let n=m(),r=e(),i=l(()=>!!a(t.target)&&a(t.target)!==`_self`),s=l(()=>{let e=a(t.to)||a(t.href)||``;return typeof e==`string`&&y(e,{acceptRelative:!0})}),c=o(`RouterLink`),u=c&&typeof c!=`string`?c.useLink:void 0,h=l(()=>{if(a(t.external))return!0;let e=a(t.to)||a(t.href)||``;return typeof e==`object`?!1:e===``||s.value}),g=l(()=>{let e=a(t.to)||a(t.href)||``;return h.value?e:x(e,n.resolve,a(t.trailingSlash))}),v=h.value?void 0:u?.({...t,to:g,viewTransition:a(t.viewTransition)}),S=l(()=>{let e=a(t.trailingSlash)??d.trailingSlash;if(!g.value||s.value||_(g.value)){let e=g.value;return typeof e==`string`?R(e):e}if(h.value){let t=typeof g.value==`object`&&`path`in g.value?p(g.value):g.value,r=typeof t==`object`?n.resolve(t).href:t,i=typeof r==`string`?R(r):r;return i===null?null:V(i,e)}return typeof g.value==`object`?n.resolve(g.value)?.href??null:V(b(r.app.baseURL,g.value),e)});return{to:g,hasTarget:i,isAbsoluteUrl:s,isExternal:h,href:S,isActive:v?.isActive??l(()=>g.value===n.currentRoute.value.path),isExactActive:v?.isExactActive??l(()=>g.value===n.currentRoute.value.path),route:v?.route??l(()=>n.resolve(g.value)),async navigate(e){S.value!==null&&await f(S.value,{replace:a(t.replace),external:h.value||i.value})}}}return n({name:g,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:S,setup(e,{slots:n}){let a=m(),{to:l,href:f,navigate:g,isExternal:y,hasTarget:b,isAbsoluteUrl:x}=S(e),C=c(!1),w=s(null),T=t=>{w.value=e.custom?t?.$el?.nextElementSibling:t?.$el};function E(t){return!!(!C.value&&(typeof e.prefetchOn==`string`?e.prefetchOn===t:e.prefetchOn?.[t]??d.prefetchOn?.[t])&&(e.prefetch??d.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!==`_blank`&&!W())}async function D(e=t()){if(C.value||f.value===null)return;C.value=!0;let n=typeof l.value==`string`?l.value:y.value?p(l.value):a.resolve(l.value).fullPath,r=y.value?new URL(n,window.location.href).href:n;await Promise.all([e.hooks.callHook(`link:prefetch`,r)?.catch(()=>{}),!y.value&&!b.value&&I(l.value,a).catch(()=>{})])}if(!e.custom&&E(`visibility`)){let e=t(),n,r=null;i(()=>{let t=H();P(()=>{n=M(()=>{w?.value?.tagName&&(r=t.observe(w.value,async()=>{r?.(),r=null,await D(e)}))})})}),u(()=>{n&&N(n),r?.(),r=null})}return()=>{let t=e.target||null,i=L(e.noRel?``:e.rel,d.externalRelAttribute,x.value||b.value?`noopener noreferrer`:``)||null,s=e=>({href:f.value,navigate:g,get route(){if(!f.value)return;let e=new URL(f.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return v(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f.value}},rel:i,target:t,isExternal:y.value||b.value,isActive:!1,isExactActive:!1,...e,prefetch:D,prefetched:C.value,shouldPrefetch:E});if(!y.value&&!b.value&&!_(l.value)){let t={ref:T,to:l.value,activeClass:e.activeClass||d.activeClass,exactActiveClass:e.exactActiveClass||d.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};
1return e.custom||(E(`interaction`)&&(t.onPointerenter=D.bind(null,void 0),t.onFocus=D.bind(null,void 0)),C.value&&(t.class=e.prefetchedClass||d.prefetchedClass),t.rel=e.rel||void 0),r(o(`RouterLink`),t,e.custom&&n.default?{default:e=>n.default(s(e))}:n.default)}return e.custom?n.default?n.default(s()):null:r(`a`,{ref:w,href:f.value||null,rel:i,target:t,onClick:async t=>{if(!(y.value||b.value)){t.preventDefault();try{let t=h(f.value??``);return await(e.replace?a.replace(t):a.push(t))}finally{if(_(l.value)){let e=l.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},n.default?.())}}})}var B=z(d);function V(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?g:_;return y(e)&&!e.startsWith(`http`)?e:n(e,!0)}function H(){let e=t();if(e._observer)return e._observer;let n=null,r=new Map;return e._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}var U=/2g/;function W(){let e=navigator.connection;return!!(e&&(e.saveData||U.test(e.effectiveType)))}export{I as a,j as c,F as i,W as n,P as o,H as r,A as s,B as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.