/*! instant.page v5.2.0 - (C) 2019-2023 Alexandre Dieulot - https://instant.page/license */let t,e,n,o,i,a=null,s=65,c=new Set;const r=1111;function d(e){o=performance.now();const t=e.target.closest("a");m(t)&&p(t.href,"high")}function u(e){if(performance.now()-o{p(t.href,"high"),i=void 0},s))}function l(e){const t=e.target.closest("a");m(t)&&p(t.href,"high")}function f(e){e.relatedTarget&&e.target.closest("a")==e.relatedTarget.closest("a")||i&&(clearTimeout(i),i=void 0)}function h(e){if(performance.now()-o1||e.metaKey||e.ctrlKey)return;if(!t)return;t.addEventListener("click",function(e){1337!=e.detail&&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 m(s){if(s&&s.href&&(!n||"instant"in s.dataset)){if(s.origin!=location.origin&&(!(e||"instant"in s.dataset)||!a))return;if(["http:","https:"].includes(s.protocol)&&("http:"!=s.protocol||"https:"!=location.protocol)&&(t||!s.search||"instant"in s.dataset)&&!(s.hash&&s.pathname+s.search==location.pathname+location.search||"noInstant"in s.dataset))return!0}}function p(e,t="auto"){if(c.has(e))return;const n=document.createElement("link");n.rel="prefetch",n.href=e,n.fetchPriority=t,n.as="document",document.head.appendChild(n),c.add(e)}!function(){if(!document.createElement("link").relList.supports("prefetch"))return;const v="instantVaryAccept"in document.body.dataset||"Shopify"in window,r=navigator.userAgent.indexOf("Chrome/");if(r>-1&&(a=parseInt(navigator.userAgent.substring(r+"Chrome/".length))),v&&a&&a<110)return;const c="instantMousedownShortcut"in document.body.dataset;t="instantAllowQueryString"in document.body.dataset,e="instantAllowExternalLinks"in document.body.dataset,n="instantWhitelist"in document.body.dataset;const o={capture:!0,passive:!0};let f=!1,g=!1,i=!1;if("instantIntensity"in document.body.dataset){const e=document.body.dataset.instantIntensity;if(e.startsWith("mousedown"))f=!0,"mousedown-only"==e&&(g=!0);else if(e.startsWith("viewport")){const t=navigator.connection&&navigator.connection.saveData,n=navigator.connection&&navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g");t||n||("viewport"==e?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(i=!0):"viewport-all"==e&&(i=!0))}else{const t=parseInt(e);isNaN(t)||(s=t)}}if(g||document.addEventListener("touchstart",d,o),f?c||document.addEventListener("mousedown",l,o):document.addEventListener("mouseover",u,o),c&&document.addEventListener("mousedown",h,o),i){let e=window.requestIdleCallback;e||(e=e=>{e()}),e(function(){const e=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){const n=t.target;e.unobserve(n),p(n.href)}})});document.querySelectorAll("a").forEach(t=>{m(t)&&e.observe(t)})},{timeout:1500})}}()