import{p as v,b as m,a as g,g as k,s as A,l as D}from"./q-DZlJcqMj.js";import{u as O,f as R,g as p,h as L,i as w,q as l,c as x,_ as I,S as q,e as f}from"./q-DElv2fU_.js";import{_}from"./q-DoNi8vyY.js";const C=(r,e)=>{const t=new URL(e.href);v(t.pathname,1)},E=Object.freeze(Object.defineProperty({__proto__:null,_hW:f,s_QdiyI5iU6Ak:C},Symbol.toStringTag,{value:"Module"})),K=async(r,e)=>{const[t,o,c,s]=O();r.defaultPrevented&&(e.hasAttribute("q:nbs")?await t(location.href,{type:"popstate"}):e.href&&(e.setAttribute("aria-pressed","true"),await t(e.href,{forceReload:o,replaceState:c,scroll:s}),e.removeAttribute("aria-pressed")))},M=Object.freeze(Object.defineProperty({__proto__:null,_hW:f,s_RXA026h4ojM:K},Symbol.toStringTag,{value:"Module"})),U=r=>{const e=m(),t=g(),o=R(),{onClick$:c,prefetch:s,reload:u,replaceState:P,scroll:y,...n}=r,a=p(k,{...n,reload:u},t);n.href=a||r.href;const h=!!a&&s!==!1&&s!=="js"||void 0,d=h||!!a&&s!==!1&&p(A,a,t)?l(()=>_(()=>Promise.resolve().then(()=>$),void 0),"s_8DIxz7F15ew"):void 0,S=a?L((i,F)=>{i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||i.preventDefault()},"(event,target)=>{if(!(event.metaKey||event.ctrlKey||event.shiftKey||event.altKey)){event.preventDefault();}}"):void 0,b=a?l(()=>_(()=>Promise.resolve().then(()=>M),void 0),"s_RXA026h4ojM",[e,u,P,y]):void 0,j=l(()=>_(()=>Promise.resolve().then(()=>E),void 0),"s_QdiyI5iU6Ak");return w(l(()=>_(()=>import("./q-CgprR4qc.js"),[]),"s_JDGL8SQ1dS8",[o,d,n,t])),x("a",{ref:o,"q:link":!!a,...n,"data-prefetch":h,children:I(q,null,3,"0j_5"),onClick$:[S,j,c,b],onMouseOver$:[n.onMouseOver$,d],onFocus$:[n.onFocus$,d],onQVisible$:[]},null,0,"0j_6")},T=(r,e)=>{var t;if(!((t=navigator.connection)!=null&&t.saveData)&&e&&e.href){const o=new URL(e.href);v(o.pathname),e.hasAttribute("data-prefetch")&&D(o,e,{preloadRouteBundles:!1,isPrefetch:!0})}},$=Object.freeze(Object.defineProperty({__proto__:null,_hW:f,s_8DIxz7F15ew:T},Symbol.toStringTag,{value:"Module"}));export{f as _hW,T as s_8DIxz7F15ew,C as s_QdiyI5iU6Ak,K as s_RXA026h4ojM,U as s_mZCXoF640Os};