1import{e as T,H as _,bp as A,f as j,bq as B,br as N,m as E,a8 as U,bs as H,ah as I,bt as L,al as P,bu as D,bv as k,bw as F,x as p,n as V,bx as z,by as M,bz as O,bA as W,bB as $,bC as G}from"./BtKmgYla.js";const Q=(...t)=>t.find(s=>s!==void 0);function J(t){const s=t.componentName||"NuxtLink";function b(e){return typeof e=="string"&&e.startsWith("#")}function C(e,n,h){const a=h??t.trailingSlash;if(!e||a!=="append"&&a!=="remove")return e;if(typeof e=="string")return R(e,a);const i="path"in e&&e.path!==void 0?e.path:n(e).path;return{...e,name:void 0,path:R(i,a)}}function q(e){const n=_(),h=M(),a=p(()=>!!e.target&&e.target!=="_self"),i=p(()=>{const f=e.to||e.href||"";return typeof f=="string"&&O(f,{acceptRelative:!0})}),x=P("RouterLink"),g=x&&typeof x!="string"?x.useLink:void 0,d=p(()=>{if(e.external)return!0;const f=e.to||e.href||"";return typeof f=="object"?!1:f===""||i.value}),l=p(()=>{const f=e.to||e.href||"";return d.value?f:C(f,n.resolve,e.trailingSlash)}),c=d.value||g==null?void 0:g({...e,to:l}),y=p(()=>{var S;const f=e.trailingSlash??t.trailingSlash;if(!l.value||i.value||b(l.value))return l.value;if(d.value){const m=typeof l.value=="object"&&"path"in l.value?k(l.value):l.value,r=typeof m=="object"?n.resolve(m).href:m;return R(r,f)}return typeof l.value=="object"?((S=n.resolve(l.value))==null?void 0:S.href)??null:R(z(h.app.baseURL,l.value),f)});return{to:l,hasTarget:a,isAbsoluteUrl:i,isExternal:d,href:y,isActive:(c==null?void 0:c.isActive)??p(()=>l.value===n.currentRoute.value.path),isExactActive:(c==null?void 0:c.isExactActive)??p(()=>l.value===n.currentRoute.value.path),route:(c==null?void 0:c.route)??p(()=>n.resolve(l.value)),async navigate(f){await V(y.value,{replace:e.replace,external:d.value||a.value})}}}return T({name:s,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:q,setup(e,{slots:n}){const h=_(),{to:a,href:i,navigate:x,isExternal:g,hasTarget:d,isAbsoluteUrl:l}=q(e),c=I(!1),y=E(null),f=r=>{var o;y.value=e.custom?(o=r==null?void 0:r.$el)==null?void 0:o.nextElementSibling:r==null?void 0:r.$el};function S(r){var o,u;return!c.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===r:((o=e.prefetchOn)==null?void 0:o[r])??((u=t.prefetchOn)==null?void 0:u[r]))&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!Y()}async function m(r=A()){if(c.value)return;c.value=!0;const o=typeof a.value=="string"?a.value:g.value?k(a.value):h.resolve(a.value).fullPath,u=g.value?new URL(o,window.location.href).href:o;await Promise.all([r.hooks.callHook("link:prefetch",u).catch(()=>{}),!g.value&&!d.value&&F(a.value,h).catch(()=>{})])}if(S("visibility")){const r=A();let o,u=null;j(()=>{const v=K();B(()=>{o=N(()=>{var w;(w=y==null?void 0:y.value)!=null&&w.tagName&&(u=v.observe(y.value,async()=>{u==null||u(),u=null,await m(r)}))})})}),U(()=>{o&&H(o),u==null||u(),u=null})}return()=>{var u;if(!g.value&&!d.value&&!b(a.value)){const v={ref:f,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};
1return e.custom||(S("interaction")&&(v.onPointerenter=m.bind(null,void 0),v.onFocus=m.bind(null,void 0)),c.value&&(v.class=e.prefetchedClass||t.prefetchedClass),v.rel=e.rel||void 0),L(P("RouterLink"),v,n.default)}const r=e.target||null,o=Q(e.noRel?"":e.rel,t.externalRelAttribute,l.value||d.value?"noopener noreferrer":"")||null;return e.custom?n.default?n.default({href:i.value,navigate:x,prefetch:m,get route(){if(!i.value)return;const v=new URL(i.value,window.location.href);return{path:v.pathname,fullPath:v.pathname,get query(){return D(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:i.value}},rel:o,target:r,isExternal:g.value||d.value,isActive:!1,isExactActive:!1}):null:L("a",{ref:y,href:i.value||null,rel:o,target:r,onClick:v=>{if(!(g.value||d.value))return v.preventDefault(),e.replace?h.replace(i.value):h.push(i.value)}},(u=n.default)==null?void 0:u.call(n))}}})}const ee=J(G);function R(t,s){const b=s==="append"?W:$;return O(t)&&!t.startsWith("http")?t:b(t,!0)}function K(){const t=A();if(t._observer)return t._observer;let s=null;const b=new Map,C=(e,n)=>(s||(s=new IntersectionObserver(h=>{for(const a of h){const i=b.get(a.target);(a.isIntersecting||a.intersectionRatio>0)&&i&&i()}})),b.set(e,n),s.observe(e),()=>{b.delete(e),s==null||s.unobserve(e),b.size===0&&(s==null||s.disconnect(),s=null)});return t._observer={observe:C}}const X=/2g/;function Y(){const t=navigator.connection;return!!(t&&(t.saveData||X.test(t.effectiveType)))}export{ee as _};
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.