(()=>{var e,s,r=new Set,o=document.createElement("link"),y=o.relList&&o.relList.supports&&o.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype,h="instantAllowQueryString"in document.body.dataset,j="instantAllowExternalLinks"in document.body.dataset,m="instantWhitelist"in document.body.dataset,c="instantMousedownShortcut"in document.body.dataset,l=1111,d=65,u=!1,a=!1,i=!1;if("instantIntensity"in document.body.dataset){const e=document.body.dataset.instantIntensity;if(e.substr(0,"mousedown".length)=="mousedown")u=!0,e=="mousedown-only"&&(a=!0);else if(e.substr(0,"viewport".length)=="viewport")navigator.connection&&(navigator.connection.saveData||navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g"))||(e=="viewport"?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(i=!0):e=="viewport-all"&&(i=!0));else{const t=parseInt(e);isNaN(t)||(d=t)}}if(y){const e={capture:!0,passive:!0};if(a||document.addEventListener("touchstart",f,e),u?c||document.addEventListener("mousedown",g,e):document.addEventListener("mouseover",p,e),c&&document.addEventListener("mousedown",b,e),i){let e;window.requestIdleCallback?e=e=>{requestIdleCallback(e,{timeout:1500})}:e=e=>{e()},e(()=>{const e=new IntersectionObserver(n=>{n.forEach(n=>{if(n.isIntersecting){const s=n.target;e.unobserve(s),t(s.href)}})});document.querySelectorAll("a").forEach(t=>{n(t)&&e.observe(t)})})}}function f(e){s=performance.now();const o=e.target.closest("a");if(!n(o))return;t(o.href)}function p(o){if(performance.now()-s<l)return;if(!("closest"in o.target))return;const i=o.target.closest("a");if(!n(i))return;i.addEventListener("mouseout",v,{passive:!0}),e=setTimeout(()=>{t(i.href),e=void 0},d)}function g(e){const s=e.target.closest("a");if(!n(s))return;t(s.href)}function v(t){if(t.relatedTarget&&t.target.closest("a")==t.relatedTarget.closest("a"))return;e&&(clearTimeout(e),e=void 0)}function b(e){if(performance.now()-s<l)return;const t=e.target.closest("a");if(e.which>1||e.metaKey||e.ctrlKey)return;if(!t)return;t.addEventListener("click",function(e){if(e.detail==1337)return;e.preventDefault()},{capture:!0,passive:!1,once:!0});const n=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});t.dispatchEvent(n)}function n(e){if(!e||!e.href)return;if(m&&!("instant"in e.dataset))return;if(!j&&e.origin!=location.origin&&!("instant"in e.dataset))return;if(!["http:","https:"].includes(e.protocol))return;if(e.protocol=="http:"&&location.protocol=="https:")return;if(!h&&e.search&&!("instant"in e.dataset))return;if(e.hash&&e.pathname+e.search==location.pathname+location.search)return;if("noInstant"in e.dataset)return;return!0}function t(e){if(r.has(e))return;const t=document.createElement("link");t.rel="prefetch",t.href=e,document.head.appendChild(t),r.add(e)}})()