(function(){const a=document.createElement("link"),b=navigator?.connection?.saveData||"2g"==navigator?.connection?.effectiveType,c=a?.relList?.supports("prefetch");if(b||!c)return;const d=new Set,e=a=>{if(!d.has(a)&&!a.includes("?")&&a.startsWith(window.location.origin)&&window.location.href!=a){const b=document.createElement("link");b.rel="prefetch",b.href=a,document.head.appendChild(b),d.add(a)}};let f;const g=a=>{const b=a.target.closest("a");b&&b.href&&clearTimeout(f)},h={capture:!0,passive:!0};document.addEventListener("mouseover",a=>{const b=a.target.closest("a");b&&b.href&&(f=setTimeout(()=>e(b.href),50))},h),document.addEventListener("touchstart",a=>{const b=a.target.closest("a");b&&b.href&&e(b.href)},h),document.addEventListener("mouseout",g,h)})();