!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){!function(e,n,t,i,o){var r=document.createElement("link"),a=(null==(e=navigator)||null==(n=e.connection)?void 0:n.saveData)||"2g"===(null==(t=navigator)||null==(i=t.connection)?void 0:i.effectiveType),c=null==r||null==(o=r.relList)?void 0:o.supports("prefetch");if(!a&&c){var u,l,d,f=new Set,s=new Set,h=null,v=null,m=function(e){if(!f.has(e)&&!e.includes("?")&&window.location.href!==e&&e.startsWith(window.location.origin)){var n=document.createElement("link");n.rel="prefetch",n.href=e,document.head.appendChild(n),f.add(e)}},p=function(e){var n=e.href,t=setTimeout(function(){return function(e){if(!s.has(e)&&!e.includes("?")&&window.location.href!==e&&e.startsWith(window.location.origin)){var n=document.createElement("link");n.rel="prerender",n.href=e,document.head.appendChild(n),s.add(e)}}(n)},200);e.addEventListener("mouseleave",function(){return clearTimeout(t)},{once:!0})};/Mobi|Android|iPhone|iPad/i.test(navigator.userAgent)?(d=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(m(e.target.href),d.unobserve(e.target))})},{rootMargin:"50px 20px",threshold:.5}),document.querySelectorAll("a[href]").forEach(function(e){d.observe(e),e.addEventListener("touchstart",function(){return p(e)},{passive:!0})})):(l=function(e){cancelAnimationFrame(u),u=requestAnimationFrame(function(){return function(e){var n=e.clientX,t=e.clientY;null!==h&&null!==v&&Math.hypot(n-h,t-v)<100||(h=n,v=t,document.querySelectorAll("a[href]").forEach(function(e){var i=e.href,o=e.getBoundingClientRect(),r=o.right,a=o.top,c=o.bottom,u=Math.min(Math.abs(n-o.left),Math.abs(n-r)),l=Math.min(Math.abs(t-a),Math.abs(t-c));Math.hypot(u,l)<200&&m(i),e.addEventListener("mouseenter",function(){return p(e)},{once:!0})}))}(e)})},document.addEventListener("mousemove",l,{capture:!0,passive:!0}))}}()});
