1(()=>{"use strict";var e,t,n,o={521:(e,t,n)=>{n.d(t,{Mw:()=>c,N_:()=>s,Q7:()=>d,Ri:()=>a,_1:()=>u,ic:()=>r.i,nm:()=>p,p8:()=>o.p8,r$:()=>l});var o=n(358),r=n(92),i=n(829);o.p8.registerPlugin(r.i);const a=e=>{e&&e.on("scroll",r.i.update)},s=function(e){let{imageSelector:t="img",start:n="top 84%",clipDuration:r=1.5,scaleDuration:i=2.5,startScale:a=1.5,ease:s="power2.out"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((e=>{const l=e.querySelector(t);l&&(o.p8.set(e,{clipPath:"inset(0 0 100% 0)"}),o.p8.set(l,{scale:a,transformOrigin:"center center"}),o.p8.timeline({scrollTrigger:{trigger:e,start:n,once:!0}}).to(e,{clipPath:"inset(0 0 0% 0)",duration:r,ease:s},0).to(l,{scale:1,duration:i,ease:s},0))}))},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelectorAll(".scroll-parallax"),{start:t="top bottom",end:n="bottom top",from:r=-20,to:i=20,mobileBreakpoint:a=768,mobileMultiplier:s=.7}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((e=>{if("true"===e.dataset.scrollParallaxInit)return;const l=e.matches("img")?e:e.querySelector("img"),c=e.matches("img")&&e.parentElement||e;if(!l||!c)return;e.dataset.scrollParallaxInit="true";const d=Number(e.dataset.parallaxFrom??r),u=Number(e.dataset.parallaxTo??i),m=e=>window.innerWidth<a?e*s:e;o.p8.fromTo(l,{yPercent:()=>m(d),ease:"none"},{yPercent:()=>m(u),ease:"none",scrollTrigger:{trigger:c,start:t,end:n,scrub:!0,invalidateOnRefresh:!0}})}))},c=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelectorAll(".template-service-card-right__wrapper, .template-service-card-left__wrapper")).forEach((e=>{if(e.closest(".advisory-card-left")&&window.matchMedia("(max-width: 768px)").matches)return;if("true"===e.dataset.cardStackInit)return;const t=e.querySelectorAll(".template-service-card-right__block, .template-service-card-left__block");if(!t.length)return;e.dataset.cardStackInit="true";const n=window.matchMedia("(max-width: 768px)").matches,r=e.closest(".services-page-services")&&n?"24rem":"96rem";t.forEach(((e,i)=>{const a={opacity:1,scale:1,transformOrigin:"center center"};if(n&&(a.position="sticky",a.top=r,a.zIndex=i+1,a.force3D=!0),n||(a.filter="grayscale(0) brightness(1)"),o.p8.set(e,a),i===t.length-1)return;const s={opacity:0,scale:.6,ease:"none"};n||(s.filter="grayscale(1) brightness(0.35)");const l={trigger:e,start:`top ${r}`,end:`bottom ${r}`,scrub:!0,invalidateOnRefresh:!0};n||(l.pin=!0,l.pinSpacing=!1),o.p8.timeline({scrollTrigger:l}).to(e,s,.01)}))}))},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelectorAll(".template-service-cards__wrapper"),{cardSelector:t=".template-service-card",start:n="top 82%",duration:r=1,stagger:i=.14,y:a=48,ease:s="power3.out"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((e=>{if("true"===e.dataset.serviceCardsRevealInit)return;const l=e.querySelectorAll(t);l.length&&(e.dataset.serviceCardsRevealInit="true",o.p8.set(l,{opacity:0,y:a,willChange:"opacity, transform"}),o.p8.to(l,{opacity:1,y:0,duration:r,ease:s,stagger:i,clearProps:"willChange",scrollTrigger:{trigger:e,start:n,once:!0}}))}))},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelectorAll(".text-animation-position"),{duration:t=1.35,stagger:n=.12,ease:r="power3.out",waitForFonts:a=!0,initialDelay:s=0,readyTime:l=performance.now()+1e3*s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a&&document.fonts?.ready&&"loaded"!==document.fonts.status?document.fonts.ready.then((()=>{u(e,{duration:t,stagger:n,ease:r,waitForFonts:!1,initialDelay:s,readyTime:l})})):e.forEach((e=>{try{if("true"===e.dataset.animationTextPositionInit)return;e.dataset.animationTextPositionInit="true";const a=new i.Z(e,{types:"lines",lineClass:"text-animation-position__line",tagName:"span"}).lines||[];if(!a.length)return;const s=a.map((e=>((e,t)=>{const n=Array.from(e.children).find((e=>e.classList.contains(t)));if(n)return n;const o=document.createElement("span");for(o.className=t;e.firstChild;)o.append(e.firstChild);return e.append(o),o})(e,"text-animation-position__line-inner")));e.classList.add("is-text-animation-position-ready"),o.p8.set(s,{yPercent:-100}),((e,t)=>{if(!("IntersectionObserver"in window))return void t();const n=new IntersectionObserver((o=>{o.forEach((o=>{o.isIntersecting&&(t(),n.unobserve(e))}))}),{rootMargin:"0px 0px -16% 0px",threshold:0});n.observe(e)})(e,(()=>{const e=Math.max(0,(l-performance.now())/1e3);o.p8.to(s,{yPercent:0,duration:t,delay:e,ease:r,stagger:n})}))}catch(t){e.dataset.animationTextPositionInit="failed",console.warn("Text position animation failed:",t)}}))}
1,m=(e,t,n)=>{const o=document.createDocumentFragment();e.textContent.trim().split(/\s+/).filter(Boolean).forEach((e=>{o.append(((e,t,n)=>{const o=document.createElement("span");return o.className=t,Array.from(e).forEach((e=>{const t=document.createElement("span");t.className=n,t.textContent=e,o.append(t)})),o})(e,t,n))})),e.replaceWith(o)},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelectorAll(".scroll-letter-fill"),{fromColor:t="#464646",toColor:n="#ffffff",start:r="top 82%",end:i="bottom 48%",mobileStart:a="top 62%",mobileEnd:s="bottom 34%",mobileQuery:l="(max-width: 768px)",charDuration:c=.18,charStagger:d=.045}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=window.matchMedia(l);e.forEach((e=>{if("true"===e.dataset.scrollLetterFillInit)return;e.dataset.scrollLetterFillInit="true",function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"scroll-letter-fill__word";const o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=[];for(;o.nextNode();)r.push(o.currentNode);r.forEach((e=>m(e,n,t)))}(e,"scroll-letter-fill__char");const l=e.querySelectorAll(".scroll-letter-fill__char");l.length&&o.p8.fromTo(l,{color:t},{color:n,duration:c,ease:"none",stagger:{each:d,from:"start"},scrollTrigger:{trigger:e,start:()=>u.matches?a:r,end:()=>u.matches?s:i,invalidateOnRefresh:!0,scrub:!0}})}))}},357:(e,t,n)=>{n.d(t,{y:()=>r});var o=n(521);function r(e){let{target:t=window,moveEventName:n="mousemove",offsetX:r=20,offsetY:i=15,lerp:a=.05,onMove:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;let l=0,c=0,d=0,u=0,m=0,p=0,h=0;const f=function(t){let{immediate:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m=t.clientX,p=t.clientY,l=t.clientX+r,c=t.clientY+i,n&&(d=l,u=c,o.p8.set(e,{x:d,y:u})),s?.({x:l,y:c,clientX:m,clientY:p})},g=()=>{d+=(l-d)*a,u+=(c-u)*a,o.p8.set(e,{x:d,y:u}),h=requestAnimationFrame(g)};return t.addEventListener(n,f),h=requestAnimationFrame(g),{setPosition:f,getClientPosition:()=>({x:m,y:p}),getTargetPosition:()=>({x:l,y:c}),destroy:()=>{t.removeEventListener(n,f),h&&cancelAnimationFrame(h)}}}},381:(e,t,n)=>{var o=n(243),r=n.n(o);const i="Route Suisse 47, 1196 Gland, Switzerland",a={lat:46.4196271,lng:6.28415};let s,l;function c(e){l?.remove(),e.innerHTML='\n <div\n class="contacts__map-canvas contacts__map-canvas--fallback"\n aria-label="Klausen location"\n ></div>\n ';const t=e.querySelector(".contacts__map-canvas");if(!t)return;l=r().map(t,{center:a,zoom:16,zoomControl:!1,attributionControl:!0,scrollWheelZoom:!1}),l.attributionControl.setPrefix(!1),r().tileLayer("https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",{subdomains:"abcd",maxZoom:20,attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/attributions">CARTO</a>'}).addTo(l);const n=r().divIcon({className:"contacts__map-marker",html:'<span class="contacts__map-marker-pin" aria-hidden="true"></span>',iconSize:[30,38],iconAnchor:[15,38]});r().marker(a,{icon:n,keyboard:!1,title:i}).addTo(l)}var d=n(358);function u(e,t){const n=document.createElement("span");return n.className=t,Array.from(e).forEach(((e,t)=>{const o=document.createElement("span");o.className="letter-hover-link__char",o.style.setProperty("--letter-index",t),o.textContent=" "===e?"Â ":e,n.append(o)})),n}function m(e){return(e.split("/").filter(Boolean).pop()||"index").replace(/\.html$/,"")}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Set(["showroom","showroom-private","single-car"]).has(e)?"showroom":"index"===e&&"#services"===t?"services":["racing","services","team","media","contacts"].includes(e)?e:null}function h(e){const t=m(window.location.pathname),n=p(t,window.location.hash),o=window.location.hash;n&&e.querySelectorAll("a").forEach((e=>{const r=new URL(e.getAttribute("href"),window.location.href),i=m(r.pathname),a=p(i,r.hash),s=i===t,l=(r.hash||"")===o,c=s&&l;a===n&&(e.classList.add("is-active"),c&&(e.classList.add("is-current"),e.setAttribute("aria-current",r.hash?"location":"page"),e.setAttribute("aria-disabled","true"),e.setAttribute("tabindex","-1"),e.dataset.href=e.getAttribute("href"),e.removeAttribute("href")))}))}var f=n(521);function g(){const e=document.querySelector("[data-collection-sli
1der]");if(!e)return;const t=e.querySelector("[data-collection-main-image]"),n=e.querySelector("[data-collection-main-title]"),o=e.querySelector("[data-collection-main-subtitle]"),r=e.querySelector("[data-collection-main-year]"),i=[...e.querySelectorAll("[data-collection-slide]")],a=e.querySelector("[data-collection-prev]"),s=e.querySelector("[data-collection-next]"),l=e.querySelector("[data-collection-pagination]");if(!(t&&n&&o&&r&&i.length&&a&&s&&l))return;let c=i.findIndex((e=>e.classList.contains("is-active")));function d(e){const d=Math.max(0,Math.min(e,i.length-1)),u=i[d];u&&(c=d,i.forEach(((e,t)=>{e.classList.toggle("is-active",t===c)})),l.querySelectorAll(".collection-slider__page").forEach(((e,t)=>{e.classList.toggle("is-active",t===c)})),a.disabled=0===c,s.disabled=c===i.length-1,t.classList.add("is-changing"),window.setTimeout((()=>{t.src=u.dataset.image,t.alt=u.dataset.alt||u.dataset.title||"",n.textContent=u.dataset.title||"",o.textContent=u.dataset.subtitle||"",r.textContent=`/ ${u.dataset.year||""}`}),160),window.setTimeout((()=>{t.classList.remove("is-changing")}),330))}c<0&&(c=0),i.forEach(((e,t)=>{e.addEventListener("click",(()=>d(t)));const n=document.createElement("button");n.className="collection-slider__page",n.type="button",n.textContent=function(e){return String(e+1).padStart(2,"0")}(t),n.setAttribute("aria-label",`Show collection car ${t+1}`),n.addEventListener("click",(()=>d(t))),l.append(n)})),a.addEventListener("click",(()=>d(c-1))),s.addEventListener("click",(()=>d(c+1))),d(c)}function y(){let{lenis:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=document.querySelector(".services-preview__list");if(!t)return;const n=[...t.querySelectorAll(".services-preview__item")];if(!n.length)return;const o=window.matchMedia("(min-width: 768px)"),r=n.find((e=>e.classList.contains("is-default")))||n[0];let i=null;function a(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&function(e){const o=n.find((e=>e.classList.contains("is-active"))),r=new Set([o,e].filter(Boolean));r.size&&o!==e&&(window.clearTimeout(i),n.forEach((e=>e.classList.remove("is-switching"))),t.offsetHeight,r.forEach((e=>e.classList.add("is-switching"))),i=window.setTimeout((()=>{n.forEach((e=>e.classList.remove("is-switching")))}),1100))}(e),n.forEach((t=>{t.classList.toggle("is-active",t===e)}))}function s(){const t=e?.options?.wrapper;return t&&t!==window?t:null}function l(t){const o=s(),r=o?o.getBoundingClientRect().top:0,i=function(){if("number"==typeof e?.animatedScroll)return e.animatedScroll;if("number"==typeof e?.scroll)return e.scroll;const t=s();return t?t.scrollTop:window.scrollY}(),a=t.getBoundingClientRect().top-r+i,l=n.map((e=>e.getBoundingClientRect().height)),c=Math.min(...l),d=n.indexOf(t),u=l.slice(0,d).reduce(((e,t)=>e+c-t),0);return Math.max(0,a+u-function(){const e=document.querySelector(".header");return e?Math.ceil(e.getBoundingClientRect().height+8):0}())}function c(t){const n=l(t);a(t,!0),function(t){if(e&&"function"==typeof e.scrollTo)return"function"==typeof e.resize&&e.resize(),void e.scrollTo(t,{offset:0,duration:1.2,easing:e=>1-Math.pow(1-e,4),force:!0,lock:!0});const n=s();n?n.scrollTo({top:t,behavior:"smooth"}):window.scrollTo({top:t,behavior:"smooth"})}(n)}a(r),n.forEach((e=>{e.addEventListener("click",(t=>{o.matches&&(t.target.closest("a, button")||c(e))})),e.addEventListener("keydown",(t=>{o.matches&&("Enter"!==t.key&&" "!==t.key||(t.preventDefault(),c(e)))}))}))}var v=n(357);let w=[];const E=2,x=400,_=20,P=620,b=400,S=1100,L=.15,q=.8;let A=E,C=null,T=null,k=-1,M=!1,Z=!1,I=!1,O=null,N=!1,R=null;const D={};let W=0,H=!1,B=!1,z=null,F=null,Y=-1,X=null,$=null,j=null,V=()=>{},K=()=>{},G=!1;const U={},Q=function(){let{isCompactMedia:e,isLightboxActive:t,onMove:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=0,r=0,i=0,a=0,s=null,l="SCROLL / CLICK";function c(){return{cursorEl:document.getElementById("media-cursor"),scrollEl:document.getElementById("media-cursor-scroll"),closeEl:document.getElementById("media-cursor-close")}}return{getClientPosition:()=>({x:i,y:a}),getTargetPosition:()=>({x:o,y:r}),hide:function(){if(t?.())return;const{cursorEl:e}=c();e&&d.ZP.to(e,{opacity:0,duration:.25,ease:"power2.in"})},init:function(){const{cursorEl:e}=c();e&&(0,v.y)(e,{target:window,offsetX:20,offsetY:15,lerp:.05,onMove:e=>{o=e.x,r=e.y,i=e.clientX,a=e.clientY,n?.(e)}})},isPointerInsideElement:function(e){if(!e)return!1;const t=e.getBoundingClientRect();return i>=t.left&&i<=t.right&&a>=t.top&&a<=t.bottom},resetToScroll:function(){const{scrollEl:e,closeEl:t}=c();e&&t&&(s=null,l="SCROLL / CLICK",d.ZP.killTweensOf([e,t]),e.textContent="SCROLL / CLICK",t.textContent="CLOSE",d.ZP.to(e,{yPercent:0,duration:.8,ease:"power2.out"}),d.ZP.to(t,{yPercent:0,duration:.8,ease:"power2.out"}))}
1,setLightboxLabel:function(t){if(e?.())return;const{cursorEl:n,scrollEl:o,closeEl:r}=c();if(n&&o&&r)if(s=null,d.ZP.killTweensOf([o,r]),t){if(d.ZP.to(n,{opacity:1,duration:.2,ease:"power2.out"}),"close"===t)return d.ZP.to(o,{yPercent:-100,duration:.25,ease:"power2.out"}),void d.ZP.to(r,{yPercent:-100,duration:.25,ease:"power2.out"});o.textContent=t,d.ZP.to(o,{yPercent:0,duration:.25,ease:"power2.out"}),d.ZP.to(r,{yPercent:0,duration:.25,ease:"power2.out"})}else d.ZP.to(n,{opacity:0,duration:.2,ease:"power2.out"})},setMode:function(e){const{scrollEl:t,closeEl:n}=c();if(!t||!n)return;const o=function(e){return"close"===e?"CLOSE":"view"===e?"CLICK TO VIEW GALLERY":"video"===e?"PLAY WITH SOUND":"SCROLL / CLICK"}(e);if(s===e&&l===o)return;const r=s;if(s=e,l=o,d.ZP.killTweensOf([t,n]),"close"!==e)return"close"===r?(t.textContent=o,n.textContent="CLOSE",d.ZP.to(t,{yPercent:0,duration:.25,ease:"power2.out"}),void d.ZP.to(n,{yPercent:0,duration:.25,ease:"power2.out"})):void function(e,t,n){if(e.textContent.trim()===n)return d.ZP.to(e,{yPercent:0,duration:.25,ease:"power2.out"}),void d.ZP.to(t,{yPercent:0,duration:.25,ease:"power2.out"});t.textContent=n,d.ZP.set([e,t],{yPercent:0}),d.ZP.to([e,t],{yPercent:-100,duration:.25,ease:"power2.out",onComplete:()=>{e.textContent=n,t.textContent="CLOSE",d.ZP.set([e,t],{yPercent:0})}})}(t,n,o);n.textContent="CLOSE",d.ZP.to(t,{yPercent:-100,duration:.25,ease:"power2.out"}),d.ZP.to(n,{yPercent:-100,duration:.25,ease:"power2.out"})},show:function(){const{cursorEl:e}=c();e&&d.ZP.to(e,{opacity:1,duration:.3,ease:"power2.out"})}}}({isCompactMedia:ee,isLightboxActive:()=>H,onMove:e=>{ge(e.clientX,e.clientY)}}),J=function(e){let{defaultVolume:t,getTrack:n,onCursorRefresh:o}=e,r=null,i=null;function a(e){e.preventDefault(),e.stopPropagation()}function s(e){e&&(e.muted=!0,e.volume=t,e.loop=!0,e.play().catch((()=>{})))}function l(e,t){if(!e||!t)return;const n=t.querySelector("[data-lightbox-video-toggle]"),r=t.querySelector("[data-lightbox-video-volume]");n&&(n.textContent=e.paused?"PLAY":"PAUSE"),r&&(r.value=String(e.muted?0:e.volume)),o?.()}function c(e,o){if(e&&o){n()?.querySelectorAll("video").forEach((n=>{n!==e&&(n.muted=!0,n.volume=t,n.play().catch((()=>{})))})),i?.classList.remove("is-active"),r=e,i=o;try{e.currentTime=0}catch{}e.muted=!1,e.volume=e.volume||t,e.play().catch((()=>{})),o.classList.add("is-active"),l(e,o)}}function d(e,t){e&&t&&(r===e?(e.paused?e.play().catch((()=>{})):e.pause(),l(e,t)):c(e,t))}return{activate:c,createControls:function(e){const n=document.createElement("div");n.className="media-lightbox-video-controls";const o=document.createElement("button");o.type="button",o.textContent="PLAY",o.setAttribute("data-lightbox-video-toggle","");const s=document.createElement("label");s.className="media-lightbox-video-controls__volume";const c=document.createElement("span");c.textContent="VOL";const u=document.createElement("input");return u.type="range",u.min="0",u.max="1",u.step="0.01",u.value=String(t),u.setAttribute("data-lightbox-video-volume",""),s.append(c,u),n.append(o,s),["click","wheel"].forEach((e=>{n.addEventListener(e,a,{passive:!1})})),["pointerdown","pointerup","touchstart","touchmove","touchend"].forEach((e=>{n.addEventListener(e,(e=>e.stopPropagation()),{passive:!0})})),o.addEventListener("click",(t=>{a(t),d(e,n)})),u.addEventListener("input",(t=>{t.stopPropagation();const o=Number(u.value);e.volume=Math.max(0,Math.min(1,o)),e.muted=e.volume<=0,!e.muted&&e.paused&&e.play().catch((()=>{})),n.classList.add("is-active"),r=e,i=n,l(e,n)})),e.addEventListener("play",(()=>l(e,n))),e.addEventListener("pause",(()=>l(e,n))),n},getActiveVideo:function(){return r},getActionLabel:function(e){return r!==e||e.muted||e.paused?"PLAY":"PAUSE"},pauseActive:function(){r&&!r.paused&&(r.pause(),l(r,i))},resetAll:function(){n()?.querySelectorAll("video").forEach(s),i?.classList.remove("is-active"),r=null,i=null},toggle:d}}({defaultVolume:L,getTrack:()=>$,onCursorRefresh:function(){if(!H||ee())return;const{x:e,y:t}=Q.getClientPosition();De(e,t)}});function ee(){return window.matchMedia(`(max-width: ${S-1}px)`).matches}function te(e){return ee()?window.innerWidth<=600?Math.round(d.ZP.utils.clamp(300,390,.44*window.innerHeight)):Math.round(d.ZP.utils.clamp(420,560,.54*window.innerHeight)):e>=0&&k===e?P:b}function ne(){return ee()?W:Math.round(2*W)}function oe(){return ee()?W:Math.round((W*w.length-ne())/(w.length-1))}function re(){const e=document.getElementById("media-stage");if(!e)return W;const t=document.createElement("div");t.className="media__item",t.style.cssText="\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n transform: none;\n ",e.appendChild(t);const n=t.offsetWidth;return t.remove(),n||W}function ie(e){const t=document.querySelector(".header"),{normal:n,next:o}={normal:[...document.querySelectorAll(".header__menu a .letter-hover-link__layer:not(.letter-hover-link__layer--next) .letter-hover-link__char")],next:[...document.querySelectorAll(".header__menu a .letter-hover-link__layer--next .letter-hover-link__char")]},r=document.querySelector(".header__burger-text");if(!t||N===e)return;N=e,t.classList.toggle("is-media-gallery-open",e),document.documentElement.classList.toggle("is-media-gallery-open",e);const i=[...n,...o],a=r?[...i,r]:i;if(a.length){if(d.ZP.killTweensOf(a),d.ZP.set(i,{transition:"none"}),e)return d.ZP.set(o,{yPercent:-115}),void d.ZP.to(r?[...n,r]:n,{yPercent:-115,duration:.45,ease:"power2.inOut",overwrite:"auto"});d.ZP.set(o,{yPercent:-115}),d.ZP.to(r?[...n,r]:n,{yPercent:0,duration:.45,ease:"power2.out",overwrite:"auto",onComplete:()=>{d.ZP.set(a,{clearProps:"transform,transition"})}})}}function ae(e,t){return D[e]?.[t]??x}function se(e){const t=document.querySelectorAll(".media__item")[e];return t?[...t.querySelectorAll(".media__item-photo")]:[]}function le(e){return se(e).map((e=>{const t=e.querySelector("img, video");return t?.currentSrc||t?.src||""}
1)).filter(Boolean)}function ce(e,t){let n=0;for(let o=0;o<t;o++)n+=ae(e,o)+_;return n}function de(e){const t=document.querySelectorAll(".media__item")[e];if(!t)return;[...t.querySelectorAll(".media__item-photo")].forEach(((t,n)=>{t.style.height=`${ae(e,n)}px`}))}function ue(e){if(!W)return;const t=document.querySelectorAll(".media__item")[e];if(!t)return;const n=ne(),o=[...t.querySelectorAll(".media__item-photo-inner img, .media__item-photo-inner video")];D[e]=o.map((e=>{const t="VIDEO"===e.tagName?e.videoWidth:e.naturalWidth,o="VIDEO"===e.tagName?e.videoHeight:e.naturalHeight;if(!t||!o)return x;const r=t/o;return r>=.9?x:Math.min(Math.round(n/r),700)})),de(e)}function me(){w.forEach(((e,t)=>ue(t)))}function pe(){Q.show()}function he(){Q.hide()}function fe(e){Q.setMode(e)}function ge(e,t){ee()||!M||Z||H||fe(function(e,t){if(!M||Z||H)return null;const n=document.elementFromPoint(e,t),o=n?.closest?.(".media__item-photo");return o?.closest(".media__item.is-hovered")?o.querySelector("video"):null}(e,t)?"video":"scroll")}function ye(e,t){const n=document.getElementById(e);if(n){n.innerHTML="";for(let e=0;e<t;e++){const e=document.createElement("div");e.className="slot-digit";const t=document.createElement("div");t.className="slot-digit-inner";for(let e=0;e<=9;e++){const n=document.createElement("span");n.textContent=e,t.appendChild(n)}e.appendChild(t),n.appendChild(e)}}}function ve(e,t){const n=document.getElementById(e);if(!n)return;const o=n.querySelectorAll(".slot-digit-inner");String(Math.max(0,Math.round(t))).padStart(o.length,"0").split("").forEach(((e,t)=>{d.ZP.to(o[t],{yPercent:-10*parseInt(e,10),duration:.8,ease:"power2.out",overwrite:"auto"})}))}function we(e,t){ve("counter-current",e),ve("counter-total",t)}function Ee(e){return se(e).length||w[e]?.photoTotal||0}function xe(){we(A+1,w.length)}function _e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ee()?xe():we(t+1,Ee(e))}const Pe=[6,-4,0,3,-5,4],be=20,Se=[{x:10,y:-98},{x:-8,y:-84},{x:0,y:-80},{x:6,y:-74},{x:-4,y:-82},{x:8,y:-96}];function Le(e,t){const n=t.getBoundingClientRect(),o=n.left+n.width/2,r=n.top+n.height/2,i=parseFloat(window.getComputedStyle(document.documentElement).fontSize)||1,a=ee()?0:be*i;return e.map(((t,n)=>{const i=t.getBoundingClientRect(),s=i.left+i.width/2,l=i.top+i.height/2,c=Se[n]??{x:0,y:-80};return{x:o-s+c.x,y:r-l+c.y+a,rotation:Pe[n]??0,zIndex:ee()&&n===A?e.length+1:n}}))}function qe(){if(!M||H)return;if(Z)return void(I=!0);const e=[...document.querySelectorAll(".media__item")],t=[...document.querySelectorAll(".media__item-info")],n=[...document.querySelectorAll(".media__item-viewport")],o=document.getElementById("media-stage"),r=document.querySelector(".media__stage-wrap"),i=document.getElementById("media-gallery-close");if(!e.length||!o||!r)return;Z=!0,M=!1,I=!1,d.ZP.killTweensOf(t),R?.kill(),R=null,ie(!1),document.querySelector(".media")?.classList.remove("is-compact-card-open"),ee()&&(W=re()),he(),ze(),O||(O=Le(e,r)),k=-1,e.forEach(((e,t)=>de(t))),Ke(A),xe();const a=document.getElementById("media-bottom-label");a&&(d.ZP.killTweensOf(a),a.textContent=w[A].label,d.ZP.set(a,{yPercent:0})),Object.values(U).forEach((e=>{cancelAnimationFrame(e.rafId),e.y=0,e.velocity=0})),e.forEach(((e,t)=>{e.classList.remove("is-hovered");const n=e.querySelector(".media__item-track"),o=e.querySelectorAll(".media__item-photo"),r=e.querySelectorAll(".media__item-photo-inner");d.ZP.killTweensOf([e,n,...o,...r]),n&&d.ZP.set(n,{y:0}),o.forEach((e=>d.ZP.set(e,{clearProps:"y,clipPath,scale"}))),r.forEach((e=>{e.style.transform=""})),e.style.zIndex=O[t]?.zIndex??t}));const s=d.ZP.timeline({onComplete(){var e;d.ZP.set(t,{opacity:0}),Z=!1,fe("view"),e=document.querySelector(".media"),Q.isPointerInsideElement(e)&&pe(),T?.start()}});s.set(o,{pointerEvents:"none"}),s.to(i,{opacity:0,pointerEvents:"none",duration:.15,ease:"power2.out"}),s.to(".media__nav, .media__bottom",{opacity:0,pointerEvents:"none",duration:.45,ease:"power2.out"},0),s.to(t,{opacity:0,duration:.35,ease:"power2.out"},0),s.to(n,{height:te(-1),duration:.8,ease:"power3.out"},0),s.to(o,{x:0,duration:1.1,ease:"expo.inOut"},0),s.to(e,{width:W,x:e=>O[e]?.x??0,y:e=>O[e]?.y??0,rotation:e=>O[e]?.rotation??0,scale:ee()?.92:.72,opacity:1,duration:1.25,stagger:{amount:.16,from:"center"},ease:"expo.inOut"}
1,.05),s.fromTo(".media__intro-line-inner",{yPercent:105},{yPercent:0,duration:.9,stagger:.12,ease:"power4.out"},.45)}function Ae(e){if(e===A)return;C=A;const t=document.querySelectorAll(".media__item"),n=document.querySelectorAll(".media__nav-dot");t[A]?.classList.remove("is-active"),n[A]?.classList.remove("is-active"),A=e,t[A]?.classList.add("is-active"),n[A]?.classList.add("is-active"),Ze(),Ie(w[A].label),xe(),ee()&&M&&V(A)}function Ce(){const e=document.getElementById("media-stage"),t=document.querySelectorAll(".media__item")[A],n=document.querySelector(".media__stage-wrap");return e&&t&&n?-(t.offsetLeft-(n.offsetWidth-t.offsetWidth)/2):null}function Te(e){if(ee()||k<0)return e;const t=document.getElementById("media-stage"),n=document.querySelector(".media__stage-wrap"),o=document.querySelectorAll(".media__item")[k];if(!t||!n||!o)return e;const r=window.getComputedStyle(t),i=parseFloat(r.paddingLeft)||0,a=parseFloat(r.paddingRight)||0,s=i-o.offsetLeft,l=n.offsetWidth-a-(o.offsetLeft+o.offsetWidth),c=s>l?-(o.offsetLeft-(n.offsetWidth-o.offsetWidth)/2):d.ZP.utils.clamp(s,l,e),{x:u}=Q.getClientPosition(),m=u-n.getBoundingClientRect().left,p=o.offsetLeft,h=p+o.offsetWidth;if(!Number.isFinite(m)||m>=p+c&&m<=h+c)return c;const f=Math.max(-p,m-h+1),g=Math.min(n.offsetWidth-h,m-p-1);return f>g?c:d.ZP.utils.clamp(f,g,e)}function ke(){const e=document.getElementById("media-stage"),t=Ce();e&&null!==t&&d.ZP.set(e,{x:Te(t)})}function Me(e){R?.kill();R=d.ZP.to({value:0},{value:1,duration:e,ease:"none",onUpdate:ke,onComplete:()=>{ke(),R=null}})}function Ze(){const e=document.getElementById("media-stage"),t=Ce();e&&null!==t&&d.ZP.to(e,{x:t,duration:ee()?.42:.9,ease:ee()?"power3.out":"expo.inOut"})}function Ie(e){const t=document.getElementById("media-bottom-label");t&&d.ZP.to(t,{yPercent:-110,duration:.3,ease:"power2.out",onComplete:()=>{t.textContent=e,d.ZP.fromTo(t,{yPercent:110},{yPercent:0,duration:.45,ease:"power2.out"})}})}function Oe(e){document.getElementById("media-gallery-close")?.classList.toggle("is-lightbox-close-hidden",e)}function Ne(e,t,n){const o=function(e){if(!e)return null;const t=e.getBoundingClientRect(),n=e.videoWidth||e.naturalWidth||t.width,o=e.videoHeight||e.naturalHeight||t.height;if(!(t.width&&t.height&&n&&o))return t;const r=t.width/t.height,i=n/o;let a=t.width,s=t.height;return i>r?s=t.width/i:a=t.height*i,{left:t.left+(t.width-a)/2,right:t.left+(t.width+a)/2,top:t.top+(t.height-s)/2,bottom:t.top+(t.height+s)/2}}(e);return!!o&&(t>=o.left&&t<=o.right&&n>=o.top&&n<=o.bottom)}function Re(e){Q.setLightboxLabel(e)}function De(e,t){const n=function(e,t){return $?[...$.querySelectorAll("video")].find((n=>Ne(n,e,t))):null}(e,t);Re(n?J.getActionLabel(n):"close")}function We(e,t,n){if(!e)return n;const o=function(e){const t="VIDEO"===e.tagName?e.videoWidth:e.naturalWidth,n="VIDEO"===e.tagName?e.videoHeight:e.naturalHeight;return t&&n?t/n:1}(e);return o?Math.max(1,Math.min(n,Math.round(t/o))):n}function He(e){if(H||B)return;const t=e.querySelector("img, video");if(!t)return;const n=e.closest(".media__item"),o=n?Number(n.dataset.index):k,r=Number.isFinite(o)?o:k,i=n?[...n.querySelectorAll(".media__item-photo")]:[],a=Math.max(0,i.indexOf(e)),s="VIDEO"===t.tagName;H=!0,B=!1,Y=r,X=e,document.querySelector(".media")?.classList.add("is-lightbox-open"),Oe(!0);const l=window.innerWidth,c=window.innerHeight;let u,m,p,h;if(ee())u=l,m=c,p=0,h=0;else{u=.9*l,m=.88*c,p=(l-u)/2,h=(c-m)/2}d.ZP.set(e,{transformOrigin:"center center"}),d.ZP.to(e,{scale:1.1,duration:1,ease:"power3.out"}),d.ZP.fromTo(e,{clipPath:"inset(0% 0% 0% 0%)"},{clipPath:"inset(100% 0% 0% 0%)",duration:1,ease:"power3.out"}),z=document.createElement("div"),z.className="media-lightbox-bg",document.body.appendChild(z),d.ZP.to(z,{opacity:1,duration:.5,delay:.2,ease:"power2.out"}),z.addEventListener("click",Be),z.addEventListener("mousemove",(()=>{Re("close")}));const f=document.createElement("div");f.style.cssText=`\n position: fixed;\n left: ${p}px;\n top: ${h}px;\n width: ${u}px;\n height: ${m}px;\n overflow: hidden;\n overscroll-behavior: contain;\n touch-action: none;\n z-index: 1201;\n `,F=document.createElement("div"),F.className="media-lightbox-box",F.style.cssText="\n width: 100%;\n height: 100%;\n transform-origin: center center;\n ";const g=le(r);g.length||g.push(t.currentSrc||t.src);const y=i.map((e=>e.querySelector("img, video"))),v=g.map(((e,t)=>ee()?We(y[t],u,m):m));
1j={y:0,velocity:0,rafId:null,heights:v,viewportHeight:m,gap:20,userInteracted:!1},$=document.createElement("div"),$.className="media-lightbox-track",$.style.cssText="\n display: flex;\n flex-direction: column;\n gap: 20px;\n width: 100%;\n will-change: transform;\n ";let w=null,E=null;g.forEach(((e,t)=>{const n=/\.(mp4|webm|ogg|mov)$/i.test(e),o=document.createElement("div");o.className="media-lightbox-photo",o.style.cssText=`\n position: relative;\n flex: 0 0 auto;\n width: 100%;\n height: ${v[t]}px;\n overflow: hidden;\n `;const r=document.createElement("div");r.className="media-lightbox-photo-inner",r.style.cssText="\n position: absolute;\n inset: 0;\n will-change: transform;\n ";const i=document.createElement(n?"video":"img");if(i.src=e,n?(i.autoplay=!0,i.muted=!0,i.loop=!0,i.playsInline=!0,i.controls=!1,i.volume=L):(i.alt="",i.loading=ee()?"eager":"lazy"),i.style.cssText=`\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n pointer-events: ${n?"auto":"none"};\n user-select: none;\n -webkit-user-drag: none;\n `,n&&(i.style.backfaceVisibility="hidden",i.style.webkitBackfaceVisibility="hidden",i.style.transform="translateZ(0)",i.style.touchAction="none"),n){const e=J.createControls(i);o.classList.add("media-lightbox-photo--video"),o.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),Ne(i,t.clientX,t.clientY)?J.toggle(i,e):Be()})),i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),Ne(i,t.clientX,t.clientY)?J.toggle(i,e):Be()})),s&&t===a&&(w=i,E=e),r.appendChild(e)}if(ee()){const e=()=>{if(!j||!o.isConnected)return;const e=We(i,u,m);Math.abs(j.heights[t]-e)<1||(j.heights[t]=e,o.style.height=`${e}px`,j.userInteracted||$e(Xe(a)))};i.addEventListener(n?"loadedmetadata":"load",e,{once:!0})}r.appendChild(i),o.appendChild(r),$.appendChild(o)})),F.appendChild($),f.appendChild(F),f.style.visibility="hidden",d.ZP.set(f,{clipPath:"inset(0% 0% 100% 0%)"}),d.ZP.set(F,{scale:ee()?1:1.2}),document.body.appendChild(f),$e(Xe(a)),f.getBoundingClientRect(),f.style.visibility="",w&&E&&J.activate(w,E);let x=!1;f.addEventListener("click",(e=>{if(x)return e.preventDefault(),e.stopPropagation(),void(x=!1);Be()})),f.addEventListener("mousemove",(e=>{De(e.clientX,e.clientY)})),f.addEventListener("mouseleave",(()=>{Re(null)})),f.addEventListener("wheel",(e=>{e.preventDefault(),e.stopPropagation(),Ve(e.deltaY)}),{passive:!1});let _=0,P=0,b=!1;f.addEventListener("touchstart",(e=>{_=e.touches?.[0]?.clientY??0,P=_,b=!1}),{passive:!0}),f.addEventListener("touchmove",(e=>{const t=e.touches?.[0]?.clientY??P,n=P-t;P=t,Math.abs(t-_)>8&&(x=!0,b=!0),e.preventDefault(),e.stopPropagation(),Ve(n,{direct:ee()})}),{passive:!1}),f.addEventListener("touchend",(()=>{b&&je(.88),window.setTimeout((()=>{x=!1}),350)}),{passive:!0}),z._wrapper=f,d.ZP.to(f,{clipPath:"inset(0% 0% 0% 0%)",duration:1,ease:"power2.out",delay:.35}),ee()||d.ZP.to(F,{scale:1,duration:1,ease:"power2.out",delay:.35}),Re("close")}function Be(){if(!H||B||!F||!z)return;const e=X,t=z,n=F,o=t._wrapper;B=!0,j?.rafId&&cancelAnimationFrame(j.rafId),J.resetAll(),d.ZP.to(n,{scale:1.2,duration:.7,ease:"power2.out"}),d.ZP.to(o,{clipPath:"inset(100% 0% 0% 0%)",duration:1,ease:"power2.out"}),d.ZP.to(t,{opacity:0,duration:.7,delay:.3,ease:"power2.out",onComplete:()=>{o?.remove(),t?.remove(),H=!1,B=!1,F=null,z=null,$=null,j=null,document.querySelector(".media")?.classList.remove("is-lightbox-open"),Oe(!1);const e=Y;if(Y=-1,X=null,ee())return;const n=document.querySelectorAll(".media__item")[e];if(n){const t=n.getBoundingClientRect(),{x:o,y:r}=Q.getTargetPosition();o>=t.left&&o<=t.right&&r>=t.top&&r<=t.bottom||K(e)}}}),e&&d.ZP.fromTo(e,{clipPath:"inset(0% 0% 100% 0%)",scale:1.1},{clipPath:"inset(0% 0% 0% 0%)",scale:1,duration:1,ease:"power2.out",delay:.3,onComplete:()=>d.ZP.set(e,{clearProps:"clipPath,scale,transform"})}),Q.resetToScroll()}function ze(){document.querySelectorAll(".media__item video").forEach((e=>e.pause())),Object.values(U).forEach((e=>{e&&(e.visiblePhotoIndex=-1)}))}function Fe(e,t){const n=U[e];if(n?.visiblePhotoIndex===t)return;n&&(n.visiblePhotoIndex=t);const o=document.querySelectorAll(".media__item")[e];if(!o)return;
1[...o.querySelectorAll(".media__item-photo")].forEach(((e,n)=>{const o=e.querySelector("video");o&&(n===t?o.paused&&o.play().catch((()=>{})):o.paused||o.pause())}))}function Ye(e){if(!j)return 0;let t=0;for(let n=0;n<e;n++)t+=j.heights[n]+j.gap;return t}function Xe(e){if(!j)return 0;const t=j.heights[e]||0;return j.viewportHeight/2-(Ye(e)+t/2)}function $e(e){if(!$||!j)return;const t=function(){if(!j)return{min:0,max:0};const e=j.heights.reduce(((e,t)=>e+t),0)+j.gap*(j.heights.length-1);if(!ee())return{min:Math.min(0,j.viewportHeight-e),max:0};const t=j.heights.length-1,n=j.heights[0]||0,o=j.heights[t]||0;return{min:j.viewportHeight/2-(Ye(t)+o/2),max:(j.viewportHeight-n)/2}}(),n=Math.max(t.min,Math.min(t.max,e));j.y=n,d.ZP.set($,{y:n}),function(){if(!$||!j)return;const e=J.getActiveVideo(),t=e?.closest(".media-lightbox-photo");if(!e||!t)return;const n=[...$.children].indexOf(t);if(n<0)return;const o=j.heights[n],r=Ye(n)+j.y,i=r+o,a=j.viewportHeight/2;r<a&&i>a||J.pauseActive()}()}function je(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.86;j&&(cancelAnimationFrame(j.rafId),j.rafId=requestAnimationFrame((function t(){!j||Math.abs(j.velocity)<.05?j&&(j.velocity=0):($e(j.y+j.velocity),j.velocity*=e,j.rafId=requestAnimationFrame(t))})))}function Ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if($&&j){if(j.userInteracted=!0,d.ZP.killTweensOf($),j.y=+d.ZP.getProperty($,"y")||0,t.direct)return $e(j.y-e),j.velocity=d.ZP.utils.clamp(-20,20,.72*-e),void cancelAnimationFrame(j.rafId);j.velocity+=.12*-e,j.velocity=d.ZP.utils.clamp(-22,22,j.velocity),je()}}function Ke(e){document.querySelectorAll(".media__nav-dot").forEach(((t,n)=>{t.classList.toggle("is-active",n===e)}))}function Ge(e){return document.querySelectorAll(".media__item")[e]?.querySelector(".media__item-track")}function Ue(e){const t=te(e);return Math.min(0,t-function(e){const t=Ee(e),n=D[e];return n&&n.length===t?n.reduce(((e,t)=>e+t),0)+(t-1)*_:t*x+(t-1)*_}(e))}function Qe(e,t){const n=Ge(e);if(!n)return;const o=function(e,t){return Math.max(Ue(e),Math.min(0,t))}(e,t);U[e].y=o,d.ZP.set(n,{y:o});const r=[...n.querySelectorAll(".media__item-photo-inner")],i=te(e);r.forEach(((t,n)=>{const r=ae(e,n),a=(ce(e,n)+r+o)/(i+r),s=d.ZP.utils.clamp(-60,60,d.ZP.utils.mapRange(0,1,60,-60,a));t.style.transform=`translateY(${s}px)`}));const a=Math.abs(o-Ue(e))<2;let s=0;const l=Ee(e);if(a)s=Math.max(0,l-1);else{const t=Math.abs(o)+i/2;let n=1/0;for(let o=0;o<l;o++){const r=ce(e,o)+ae(e,o)/2,i=Math.abs(r-t);i<n&&(n=i,s=o)}}e===k&&(_e(e,s),Fe(e,s))}function Je(e,t){const n=U[e],o=Ge(e);o&&(d.ZP.killTweensOf(o),n.y=+d.ZP.getProperty(o,"y")||0);const r=ee()?.82:0,i=ee()?.22:.1,a=ee()?30:18,s=ee()?.84:.86;r&&Qe(e,n.y-t*r),n.velocity+=-t*i,n.velocity=d.ZP.utils.clamp(-a,a,n.velocity),cancelAnimationFrame(n.rafId),n.rafId=requestAnimationFrame((function t(){Math.abs(n.velocity)<.05?n.velocity=0:(Qe(e,n.y+n.velocity),n.velocity*=s,n.rafId=requestAnimationFrame(t))}))}const et=[{text:"RUN IT.",yStart:-115},{text:"HARD",yStart:115}],tt="klausen-loader-seen",nt=new Set([" ","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"]),ot=e=>new Promise((t=>{window.setTimeout(t,1e3*e)})),rt=(e,t)=>Promise.race([e,ot(t)]).then((()=>{})).catch((()=>{})),it=()=>{const e=document.querySelector("main");window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0,e&&"function"==typeof e.scrollTo&&e.scrollTo(0,0)},at=e=>new Promise((t=>{let n=0;if(!e)return void t();if(e.readyState>=3)return void t();const o=()=>{n&&window.clearTimeout(n),e.removeEventListener("canplaythrough",o),e.removeEventListener("canplay",o),e.removeEventListener("loadeddata",o),e.removeEventListener("error",o),t()};n=window.setTimeout(o,4e3),e.addEventListener("canplaythrough",o,{once:!0}),e.addEventListener("canplay",o,{once:!0}),e.addEventListener("loadeddata",o,{once:!0}),e.addEventListener("error",o,{once:!0})}));const st=38,lt=.42,ct=.11,dt=.62,ut=1.08,mt=535/750,pt=.67,ht="DRAG / SWIPE";let ft=null,gt=null;function yt(e){const t=ft||(ft=document.createElement("div"),ft.className="template-slider-cursor",ft.textContent=ht,document.body.append(ft),gt=(0,v.y)(ft,{target:window,moveEventName:"mousemove",offsetX:20,offsetY:15,lerp:.05}),ft);gt?.setPosition(e,{immediate:!0}),f.p8.to(t,{autoAlpha:1,duration:.3,ease:"power2.out"})}function vt(e){const t=e.querySelector("[data-template-parallax-slider-viewport]")||e,n=[...e.querySelectorAll("[data-template-parallax-slider-slide]")];if(!t||!n.length)return;const o=n.map((e=>e.querySelector("[data-template-parallax-slider-image]")||e.querySelector("img"))),r={progress:Number(e.dataset.initialSlide||0),activeWidth:1,activeHeight:1,inactiveWidth:1,inactiveHeight:1,sideDistance:1,parallaxDistance:0};let i=null,a=0,s=0,l=r.progress,c=r.progress,d=0,u=0,m=0,p=!1,h=!1;function g(t){f.p8.killTweensOf(n),f.p8.to(n,{scale:t?Number(e.dataset.pressScale||.9):1,duration:t?.58:.9,ease:t?"power2.out":"power3.out",overwrite:"auto"})}function y(){const n=Number.parseFloat(getComputedStyle(e).getPropertyValue("--template-image-slider-gap"))||0,o=function(){const e=document.createElement("div");e.className="template-image-slider__slide",e.style.visibility="hidden",e.style.pointerEvents="none",t.append(e);const n=e.getBoundingClientRect();return e.remove(),n}(),i=o.width||t.clientWidth,a=o.height||i*(500/750);r.activeWidth=i,r.activeHeight=a,r.inactiveWidth=i*mt,r.inactiveHeight=a*pt,r.sideDistance=Math.max(1,(r.activeWidth+r.inactiveWidth)/2+n),r.parallaxDistance=i*Number(e.dataset.parallaxStrength||.16)}function v(){const e=(t=Math.round(r.progress),i=n.length,(t%i+i)%i);var t,i;
1n.forEach(((t,i)=>{const a=function(e,t,n){return((e-t+n/2)%n+n)%n-n/2}(i,r.progress,n.length),s=Math.abs(a),l=Math.min(s,1),c=Math.max(0,s-1),d=a*r.sideDistance,u=r.activeWidth-(r.activeWidth-r.inactiveWidth)*l,m=r.activeHeight-(r.activeHeight-r.inactiveHeight)*l,p=s>1.6?0:1-.65*c,h=Math.min(.72,.62*l+.2*c);t.classList.toggle("is-active",i===e),t.style.setProperty("--template-image-slider-shade",h.toFixed(3)),f.p8.set(t,{xPercent:-50,yPercent:-50,x:d,width:u,height:m,autoAlpha:p,zIndex:Math.round(100-10*s),force3D:!0}),o[i]&&f.p8.set(o[i],{x:f.p8.utils.clamp(-r.parallaxDistance,r.parallaxDistance,-a*r.parallaxDistance),force3D:!0})}))}function w(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.classList.remove("is-dragging"),g(!1);const o=Math.round(l);let a=Math.round(c);n&&Math.abs(m)>lt?a=o+(m<0?1:-1):Math.abs(e)>st&&(a=o+(e<0?1:-1)),p=!1,h=!1,i=null,function(e){const t=Math.abs(e-r.progress);f.p8.killTweensOf(r),f.p8.to(r,{progress:e,duration:f.p8.utils.clamp(dt,ut,.58+.28*t),ease:"expo.out",onUpdate:v,onComplete:v})}(a)}t.addEventListener("pointerdown",(e=>{"mouse"===e.pointerType&&0!==e.button||(y(),f.p8.killTweensOf(r),i=e.pointerId,a=e.clientX,s=e.clientY,l=r.progress,c=r.progress,d=e.clientX,u=performance.now(),m=0,p=!0,h=!1,t.classList.add("is-dragging"),g(!0),t.setPointerCapture(i))})),t.addEventListener("pointermove",(e=>{if(!p||e.pointerId!==i)return;const t=e.clientX-a,n=e.clientY-s,o=Math.abs(t),g=Math.abs(n),y=performance.now(),E=Math.max(1,y-u);m=(e.clientX-d)/E,d=e.clientX,u=y,!h&&g>o&&g>12?w(0,!1):(o>4&&(h=!0),h&&e.cancelable&&e.preventDefault(),c=l-t/r.sideDistance,f.p8.to(r,{progress:c,duration:ct,ease:"power3.out",overwrite:"auto",onUpdate:v}))})),t.addEventListener("pointerup",(e=>{p&&e.pointerId===i&&w(e.clientX-a)})),t.addEventListener("pointercancel",(()=>{p&&w(0,!1)})),e.addEventListener("dragstart",(e=>{e.preventDefault()})),t.addEventListener("mouseenter",(e=>{yt(e)})),t.addEventListener("mouseleave",(()=>{ft&&f.p8.to(ft,{autoAlpha:0,duration:.25,ease:"power2.in"})})),window.addEventListener("resize",(()=>{y(),v()})),y(),v()}const wt=(()=>{const e=document.querySelector("[data-team-slider-members]");if(e)try{const t=JSON.parse(e.textContent||"[]").filter((e=>e&&e.image&&e.name));if(t.length)return t}catch(e){console.warn("Team slider data parse failed:",e)}return [{image:"/wp-content/themes/klausen/assets/assets/img/team/slider1.jpg",name:"Lodovico Chiari Gaggia",role:"Director",text:"A lifelong automotive enthusiast, Lodovico combines a deep passion for cars with a background in hospitality from EHL. He joined Klausen in early 2025, bringing together performance, precision, and a client-centric mindset to drive the next chapter of the company."},{image:"/wp-content/themes/klausen/assets/assets/img/team/slider2.jpg",name:"Arthur de Vilmorin",role:"Sales",text:"Arthur focuses on collector relationships and the showroom experience. He works closely with clients to source remarkable cars and shape each interaction around trust, clarity, and a deep understanding of automotive culture."},{image:"/wp-content/themes/klausen/assets/assets/img/team/slider3.jpg",name:"Louis Rousset",role:"Operations",text:"Louis supports the operational side of Klausen, helping coordinate projects, vehicles, and logistics with a calm, detail-driven approach. His role helps keep every client journey precise, fluid, and discreet."},{image:"/wp-content/themes/klausen/assets/assets/img/team/slider1.jpg",name:"Adrien Keller",role:"Client Services",text:"Adrien works across client services and day-to-day follow-through, making sure requests are handled with precision and consistency. He helps translate the Klausen standard into a smooth experience from first contact to delivery."},{image:"/wp-content/themes/klausen/assets/assets/img/team/slider2.jpg",name:"Matteo Bianchi",role:"Acquisitions",text:"Matteo supports sourcing and acquisitions, focusing on the quality, history, and fit of each car entering the Klausen universe. His approach balances instinct, research, and close attention to provenance."},{image:"/wp-content/themes/klausen/assets/assets/img/team/slider3.jpg",name:"Nicolas Rey",role:"Workshop Liaison",text:"Nicolas bridges the showroom and technical side of the business, helping clients navigate servicing, preparation, and project planning. He brings structure and calm communication to every stage of the process."}]})(),Et=7,xt=600;function _t(e,t){return(e%t+t)%t}var Pt=n(172);const bt="[data-showroom-3d]",St=window.matchMedia("(max-width: 1099px)"),Lt=document.querySelector("main"),qt=document.querySelector("body > .footer"),At=qt?document.createComment("footer original position"):null,Ct=Boolean(Lt&&St.matches);qt&&At&&qt.parentNode.insertBefore(At,qt);let Tt=null;!function(){if(document.documentElement.classList.toggle("is-main-scroller",Ct),Ct)return qt&&Lt&&qt.parentNode!==Lt&&Lt.append(qt),f.ic.config({ignoreMobileResize:!0}),void f.ic.defaults({scroller:Lt});qt&&At?.parentNode&&qt.parentNode!==At.parentNode&&At.parentNode.insertBefore(qt,At.nextSibling)}(),function(){if(!Ct||!Lt)return;let e=0;Lt.addEventListener("touchstart",(t=>{e=t.touches?.[0]?.clientY??0}),{passive:!0}),Lt.addEventListener("touchmove",(t=>{if(t.target.closest(".media"))return;const n=(t.touches?.[0]?.clientY??e)-e,o=Lt.scrollTop<=0,r=Lt.scrollTop+Lt.clientHeight>=Lt.scrollHeight-1;t.cancelable&&(o&&n>0||r&&n<0)&&t.preventDefault()}),{passive:!1})}(),function(){const e=window.location.pathname.split("/").filter(
1Boolean).pop();if(!e||"index.html"===e)return;if(document.querySelector("[data-back-home-link]"))return;const t=document.createElement("a");t.className="back-home-link",t.href="/",t.dataset.backHomeLink="true",t.setAttribute("aria-label","Back to homepage"),t.innerHTML='\n <span class="back-home-link__text" data-letter-hover>BACK TO HOMEPAGE</span>\n <span class="back-home-link__icon">\n <svg xmlns="http://www.w3.org/2000/svg" width="18" height="14" viewBox="0 0 18 14" fill="none" aria-hidden="true">\n <path d="M0.707 5.354L0.353 5.708L0 5.354L0.353 5L0.707 5.354ZM17.207 13.354C17.207 13.4866 17.1543 13.6138 17.0606 13.7076C16.9668 13.8013 16.8396 13.854 16.707 13.854C16.5744 13.854 16.4472 13.8013 16.3534 13.7076C16.2597 13.6138 16.207 13.4866 16.207 13.354H17.207ZM5.353 10.708L0.353 5.708L1.061 5L6.061 10L5.353 10.708ZM0.353 5L5.353 0L6.061 0.708L1.061 5.708L0.353 5ZM0.707 4.854H10.707V5.854H0.707V4.854ZM17.207 11.354V13.354H16.207V11.354H17.207ZM10.707 4.854C12.4309 4.854 14.0842 5.53882 15.3032 6.75781C16.5222 7.97679 17.207 9.63009 17.207 11.354H16.207C16.207 9.89531 15.6275 8.49636 14.5961 7.46491C13.5646 6.43346 12.1657 5.854 10.707 5.854V4.854Z" fill="currentColor"/>\n </svg>\n</span>\n ',document.body.append(t)}(),function(){const e=document.querySelector(".header"),t=e?.querySelector(".header__burger"),n=e?.querySelector(".header__menu");if(document.querySelectorAll(".header__menu a, .footer__nav a, .footer__credits-link, .back-home-link, .showroom-private__item-title-name h2, .home-page .services-preview__summary h2").forEach((e=>{if("true"===e.dataset.letterHoverInit)return;const t=e.querySelector("[data-letter-hover]")||e,n=t.textContent.trim();if(!n)return;e.dataset.letterHoverInit="true",e.hasAttribute("aria-label")||e.setAttribute("aria-label",n);const o=document.createElement("span");if(o.className="letter-hover-link",o.setAttribute("aria-hidden","true"),o.append(u(n,"letter-hover-link__layer"),u(n,"letter-hover-link__layer letter-hover-link__layer--next")),t===e)return e.textContent="",void e.append(o);t.replaceWith(o)})),!e||!t||!n)return;h(n),document.querySelectorAll(".footer__nav").forEach((e=>{h(e)}));const o=t.querySelector(".header__burger-text"),r=t.querySelectorAll(".header__burger-close-line"),i=n.querySelectorAll(".header__menu a .letter-hover-link");if(!o||!r.length||!i.length)return;const a=window.matchMedia("(max-width: 768px)");let s=!1,l=!1;function c(){d.p8.killTweensOf(n),d.p8.killTweensOf(i),d.p8.killTweensOf(o),d.p8.killTweensOf(r)}function m(){if(!s||l)return;c(),l=!0;d.p8.timeline({defaults:{duration:.9,ease:"power2.out"},onComplete:()=>{n.style.pointerEvents="none",t.setAttribute("aria-expanded","false"),s=!1,l=!1}}).to(i,{yPercent:-115,stagger:{each:.05,from:"end"}},0).to(n,{opacity:0,duration:.3},.18).to(r[1],{clipPath:"inset(0 0 0 100%)"},0).to(r[0],{clipPath:"inset(0 100% 0 0)"},.18).to(o,{yPercent:0},.18)}function p(){s=!1,l=!1,t.setAttribute("aria-expanded","false"),c(),d.p8.set(n,{clearProps:"opacity,pointerEvents"}),d.p8.set(i,{clearProps:"transform"}),d.p8.set(o,{clearProps:"transform"}),d.p8.set(r,{clearProps:"clipPath"})}function f(){s||(l=!1,c(),d.p8.set(n,{opacity:0,pointerEvents:"none"}),d.p8.set(i,{yPercent:-115}),d.p8.set(o,{yPercent:0}),d.p8.set(r[0],{clipPath:"inset(0 100% 0 0)"}),d.p8.set(r[1],{clipPath:"inset(0 0 0 100%)"}))}t.addEventListener("click",(function(){a.matches&&(s?m():function(){if(s||l)return;c(),l=!0,n.style.pointerEvents="auto",t.setAttribute("aria-expanded","true"),d.p8.timeline({defaults:{duration:.9,ease:"power2.out"},onComplete:()=>{s=!0,l=!1}}).to(o,{yPercent:125},0).to(r[0],{clipPath:"inset(0 0% 0 0)"},.08).to(r[1],{clipPath:"inset(0 0 0 0%)"},.3).to(n,{opacity:1,duration:.3},0).to(i,{yPercent:0,stagger:.05},.1)}())})),n.querySelectorAll("a").forEach((e=>{e.addEventListener("click",(()=>{a.matches&&m()}))})),a.addEventListener("change",(e=>{e.matches?f():p()})),a.matches?f():p()}(),function(){const e=document.getElementById("contacts-map");if(!e)return;const t=e.dataset.googleMapsApiKey||window.KLAUSEN_GOOGLE_MAPS_API_KEY||"",n=e.dataset.googleMapsMapI
1d||window.KLAUSEN_GOOGLE_MAPS_MAP_ID||"";t?function(e){return s||(s=new Promise(((t,n)=>{if(window.google?.maps)return void t(window.google.maps);window.__initKlausenGoogleMaps=()=>{t(window.google.maps),delete window.__initKlausenGoogleMaps};const o=document.createElement("script");o.async=!0,o.src=`https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(e)}&loading=async&callback=__initKlausenGoogleMaps`,o.onerror=()=>n(new Error("Failed to load Google Maps")),document.head.appendChild(o)})),s)}(t).then((()=>function(e,t){e.innerHTML='<div class="contacts__map-canvas"></div>';const n=e.querySelector(".contacts__map-canvas");if(!n)return;const o=new google.maps.Map(n,{center:a,zoom:16.8,mapTypeId:"hybrid",heading:0,tilt:0,mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1,zoomControl:!1,gestureHandling:"cooperative",...t?{mapId:t}:{}});new google.maps.Marker({position:a,map:o,title:i})}(e,n))).catch((()=>{c(e)})):c(e)}(),function(){const e=document.querySelector(bt);e&&(e.addEventListener("showroom-3d:ready",Zt,{once:!0}),(Tt||(Tt=Promise.all([n.e("vendors"),n.e("src_app_showroom-3d_showroom-3d_js")]).then(n.bind(n,493)).then((e=>{let{initShowroom3d:t}=e;t()})).catch((e=>{const t=document.querySelector(bt),n=t?.querySelector("[data-showroom-3d-status]");t?.classList.add("is-showroom-3d-error"),n&&(n.textContent="Showroom unavailable"),t?.dispatchEvent(new CustomEvent("showroom-3d:ready")),console.warn("Showroom 3D failed to initialize:",e)})),Tt)).then(Zt))}(),function(){const e=document.querySelector("[data-showroom-private-grid]"),t=document.querySelector("[data-showroom-private-more]"),n=document.querySelector("[data-showroom-private-more-count]"),o=document.querySelector("[data-showroom-private-more-wrap]");if(!(e&&t&&n&&o))return;const r=[...e.querySelectorAll(".showroom-private__item")],i=Number(e.dataset.initialVisible||r.length);if(!r.length)return void(o.hidden=!0);let a=i;r.forEach(((e,t)=>{e.hidden=t>=a})),function(e){let{items:t,button:n,countEl:o,wrap:r,visibleCount:i}=e;const a=Math.max(t.length-i,0);a?(r.hidden=!1,o.textContent=String(a),n.setAttribute("aria-label",`Show ${a} more cars`)):r.hidden=!0}({items:r,button:t,countEl:n,wrap:o,visibleCount:a}),t.addEventListener("click",(()=>{const e=r.slice(a);e.forEach(((e,t)=>{e.hidden=!1,e.classList.add("is-reveal-enter"),e.style.transitionDelay=90*t+"ms"})),requestAnimationFrame((()=>{requestAnimationFrame((()=>{e.forEach((e=>{e.classList.add("is-reveal-visible")}))}))})),a=r.length,o.hidden=!0}))}(),(()=>{const e=(()=>{const e=document.querySelector("[data-tire-loader]");if(e)return e;const t=document.createElement("div");t.className="tire-loader",t.setAttribute("data-tire-loader",""),t.setAttribute("aria-label","Klausen loader");const n=document.querySelector(".header");return n&&n.parentNode?n.parentNode.insertBefore(t,n.nextSibling):document.body.prepend(t),t})();if(!e)return;if((()=>{try{return"true"===window.sessionStorage.getItem(tt)}catch(e){return!1}})()&&!(()=>{const e=("function"==typeof performance.getEntriesByType?performance.getEntriesByType("navigation"):[])[0];return e?"reload"===e.type:!!performance.navigation&&1===performance.navigation.type})())return e.hidden=!0,e.classList.remove("is-active"),void(e.style.display="none");(()=>{try{window.sessionStorage.setItem(tt,"true")}catch(e){}})();const{wordRotateGroup:t,words:n,wordRotators:o,wordMasks:r,lines:i,logo:a}=(e=>{e.innerHTML="";const t=document.createElement("div");t.className="tire-loader__stage",t.setAttribute("data-tire-loader-stage","");const n=document.createElement("div");n.className="tire-loader__word-group";const o=document.createElement("div");o.className="tire-loader__word-rotate-group";const r=document.createElement("div");r.className="tire-loader__lines",r.innerHTML='\n <span class="tire-loader__line tire-loader__line--top"></span>\n <span class="tire-loader__line tire-loader__line--bottom"></span>\n ';const i=document.createElement("img");i.className="tire-loader__logo",i.src="/wp-content/themes/klausen/assets/assets/img/logo.png",i.alt="Klausen";for(const e of et){const t=document.createElement("div");t.className="tire-loader__word-mask";const n=document.createElement("span");n.className="tire-loader__word-mover";const r=document.createElement("span");r.className="tire-loader__word-rotator";const i=document.createElement("span");i.className="tire-loader__word",i.textContent=e.text,r.append(i),n.append(r),t.append(n),o.append(t)}return n.append(o),t.append(r),t.append(i),t.append(n),e.append(t),{stage:t,wordRotateGroup:o,words:[...n.querySelectorAll(".tire-loader__word-mover")],wordRotators:[...n.querySelectorAll(".tire-loader__word-rotator")],wordMasks:[...n.querySelectorAll(".tire-loader__word-mask")],lines:[...r.querySelectorAll(".tire-loader__line")],logo:i}})(e),s=document.querySelector("main"),l=s?s.querySelector("section")||s:null,c=l?l.querySelector("video"):null,u=(e=>{if(!e)return null;const t=e.closest("[data-tire-loader-video-scale]");if(t)return t;const n=document.createElement("div");return n.className="tire-loader-video-scale",n.setAttribute("data-tire-loader-video-scale",""),e.parentNode.insertBefore(n,e),n.append(e),n})(c),m=(e=>{if(!e||"true"===e.dataset.loaderHeroReveal)return[];const t=[...e.querySelectorAll(":scope > span")];return t.length?(e.dataset.loaderHeroReveal="true",t.forEach((e=>{e.textContent=e.textContent.trim()})),t):[]})(l?l.querySelector("h1"):null),p=document.querySelector(".header__logo"),h=[...document.querySelectorAll(".header__menu li")],f=window.matchMedia("(max-width: 767px)").matches?{initialWordX:["-33px","33px"],finalWordY:["-33px","33px"],exitWordX:["-340px","340px"],rotateMaskSize:"344px",wordWidth:"326px",wordHeight:"70px",wordExitDuration:1.9,wordExitStagger:.08,lineRevealDelay:.45,lineRevealDuration:2.3,logoRevealDelay:1.5,logoRevealDuration:1.6}:{initialWordX:["-72rem","72rem"],finalWordY:["-72rem","72rem"],exitWordX:["-820rem","820rem"],rotateMaskSize:"760rem",wordWidth:"720rem",wordHeight:"155rem",wordExitDuration:1.9,wordExitStagger:.08,lineRevealDelay:.3,lineRevealDuration:2.3,logoRevealDelay:1.45,logoRevealDuration:1.6},g=rt(Promise.all([...[...document.querySelectorAll("video")].map(at),new Promise((e=>{const t=document.querySelector("[data-showroom-3d]"),n="function"==typeof window.matchMedia&&window.matchMedia("(max-width: 767px)").matches?2.2:8;let o=0,r=!1;const i=()=>{r||(r=!0,o&&window.clearTimeout(o),t?.removeEventListener("showroom-3d:ready",i),e())};t?t.classList.contains("is-showroom-3d-loaded")||t.classList.contains("is-showroom-3d-error")?i():(t.addEventListener("showroom-3d:ready",i,{once:!0}),o=window.setTimeout(i,1e3*n)):i()}
1)),rt(document.fonts?document.fonts.ready:Promise.resolve(),3)]),8);it(),document.documentElement.classList.add("is-tire-loader-active");const y=(()=>{let e=!0;const t=t=>{e&&(t.preventDefault(),t.stopPropagation(),it())},n=n=>{e&&nt.has(n.key)&&t(n)},o=()=>{e&&it()};return window.addEventListener("wheel",t,{passive:!1,capture:!0}),window.addEventListener("touchmove",t,{passive:!1,capture:!0}),window.addEventListener("keydown",n,{passive:!1,capture:!0}),window.addEventListener("scroll",o,!0),()=>{e=!1,window.removeEventListener("wheel",t,!0),window.removeEventListener("touchmove",t,!0),window.removeEventListener("keydown",n,!0),window.removeEventListener("scroll",o,!0)}})();var v;u&&d.p8.set(u,{scale:2,transformOrigin:"center center"}),p&&d.p8.set(p,{autoAlpha:0}),(v=m).length&&d.p8.set(v,{yPercent:115}),d.p8.set(h,{yPercent:-120,autoAlpha:0}),e.hidden=!1,e.classList.add("is-active"),d.p8.set(e,{yPercent:0,autoAlpha:1}),d.p8.set(n,{yPercent:e=>et[e].yStart,autoAlpha:0}),d.p8.set(r,{xPercent:-50,yPercent:-50,x:e=>f.initialWordX[e],y:0}),d.p8.set(t,{rotationZ:0,transformOrigin:"center center"}),d.p8.set(o,{xPercent:-50,yPercent:-50,rotationZ:-90,scale:1}),d.p8.set(i,{scaleX:0,x:0,xPercent:0}),d.p8.set(a,{autoAlpha:0,scale:.92});const w=()=>{const t=d.p8.timeline({defaults:{ease:"power4.inOut"}});t.add("sectionReveal"),t.to(i,{scaleX:0,transformOrigin:e=>0===e?"right center":"left center",duration:1.2},"sectionReveal"),t.to(a,{autoAlpha:0,scale:.96,duration:.75,ease:"power2.inOut"},"sectionReveal"),t.add("loaderExit","sectionReveal+=0.45"),t.call((()=>{(e=>{if(!e)return;try{e.currentTime=0}catch(e){}const t=e.play();t&&"function"==typeof t.catch&&t.catch((()=>{}))})(c)}),null,"loaderExit"),u&&t.set(u,{scale:2,transformOrigin:"center center"},"loaderExit"),t.to(e,{yPercent:-100,duration:1.2},"loaderExit"),t.call((()=>{document.documentElement.classList.remove("is-tire-loader-active"),d.p8.set(e,{pointerEvents:"none"}),it(),y()}),null,"loaderExit+=1.2"),t.add("heroInterfaceReveal","loaderExit+=0.5"),m.length&&t.fromTo(m,{yPercent:115},{yPercent:0,duration:1.5,stagger:.05,ease:"power4.out"},"heroInterfaceReveal"),p&&t.to(p,{autoAlpha:1,duration:.9,ease:"power2.out"},"heroInterfaceReveal"),t.to(h,{yPercent:0,autoAlpha:1,duration:1,stagger:.08,ease:"power4.out"},"heroInterfaceReveal"),t.set(e,{display:"none"}),u&&(t.to(u,{scale:1,duration:2.4,ease:"power3.out"},"loaderExit"),t.set(u,{clearProps:"scale,transformOrigin"})),p&&t.set(p,{clearProps:"autoAlpha"}),t.set(h,{clearProps:"yPercent,autoAlpha"})};d.p8.timeline({defaults:{ease:"power4.inOut"}}).to(n,{yPercent:0,autoAlpha:1,duration:2.1,stagger:.08,delay:.9}).add("wordsRotate","+=0.15").set(r,{width:f.rotateMaskSize,height:f.rotateMaskSize},"wordsRotate").to(t,{rotationZ:90,duration:1.5,ease:"expo.inOut"},"wordsRotate").set(t,{rotationZ:0},"wordsRotate+=1.5").set(o,{rotationZ:0},"wordsRotate+=1.5").set(r,{x:0,y:e=>f.finalWordY[e],width:f.wordWidth,height:f.wordHeight},"wordsRotate+=1.5").add("wordsExit","+=0.12").to(r,{x:e=>f.exitWordX[e],duration:f.wordExitDuration,stagger:f.wordExitStagger,ease:"expo.inOut"},"wordsExit").to(i,{scaleX:1,duration:f.lineRevealDuration},`wordsExit+=${f.lineRevealDelay}`).to(a,{autoAlpha:1,scale:1,duration:f.logoRevealDuration,ease:"power2.out",onComplete:()=>{g.then(w)}},`wordsExit+=${f.logoRevealDelay}`)})(),function(){const e=document.querySelector("[data-single-gallery]");if(!e)return;const t=e.querySelector(".single-car__main"),n=e.querySelector("[data-single-gallery-main]"),o=[...e.querySelectorAll("[data-single-gallery-thumb]")];if(!t||!n||!o.length)return;let r=o.findIndex((e=>e.classList.contains("is-active"))),i=0,a=0,s=!1,l=0;function c(e){const i=o[e];if(!i||e===r)return;const a=i.dataset.image,s=i.dataset.alt||"";if(!a)return;o.forEach(((t,n)=>{t.classList.toggle("is-active",n===e)})),r=e,l+=1;const c=l;t.classList.remove("is-gallery-changing"),t.querySelectorAll(".single-car__main-next").forEach((e=>e.remove()));const d=new Image;d.className="single-car__main-next",d.alt=s,d.decoding="async",d.src=a;(d.decode?d.decode().catch((()=>{})):Promise.resolve()).then((()=>
1{if(c!==l)return;t.append(d),d.offsetHeight;let e=!1,o=null;const r=()=>{e||c!==l||(e=!0,window.clearTimeout(o),d.removeEventListener("transitionend",i),n.style.transition="none",n.src=a,n.alt=s,t.classList.remove("is-gallery-changing"),requestAnimationFrame((()=>{requestAnimationFrame((()=>{c===l&&(d.remove(),n.style.transition="")}))})))},i=e=>{e.target===d&&"clip-path"===e.propertyName&&r()};d.addEventListener("transitionend",i),o=window.setTimeout(r,1830),requestAnimationFrame((()=>{c===l&&(t.classList.add("is-gallery-changing"),d.classList.add("is-visible"))}))})),i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}r<0&&(r=0),o.forEach((e=>{e.addEventListener("click",(()=>{c(o.indexOf(e))}))})),t.addEventListener("touchstart",(e=>{if(window.innerWidth>768||1!==e.touches.length)return;const t=e.touches[0];i=t.clientX,a=t.clientY,s=!0}),{passive:!0}),t.addEventListener("touchmove",(e=>{if(!s||window.innerWidth>768)return;const t=e.touches[0],n=t.clientX-i,o=t.clientY-a;Math.abs(o)>Math.abs(n)&&(s=!1)}),{passive:!0}),t.addEventListener("touchend",(e=>{if(!s||window.innerWidth>768)return void(s=!1);const t=e.changedTouches[0].clientX-i;s=!1,Math.abs(t)<35||c(t<0?(r+1)%o.length:(r-1+o.length)%o.length)}),{passive:!0})}(),function(){const e=document.querySelector("[data-single-recommendations]");if(!e)return;const t=e.querySelector(".single-recommendations__viewport"),n=e.querySelector("[data-single-recommendations-track]"),o=e.querySelector("[data-single-recommendations-prev]"),r=e.querySelector("[data-single-recommendations-next]"),i=e.querySelector("[data-single-recommendations-pagination]"),a=[...e.querySelectorAll(".single-recommendations__item")];if(!(t&&n&&o&&r&&i&&a.length))return;let s=0,l=[],c=0,d=0,u=0,m=0,p=!1,h=!1;function f(){return Math.max(0,n.scrollWidth-t.clientWidth)}function g(){const e=window.matchMedia("(max-width: 700px)").matches?1:2,t=Math.max(1,Math.ceil(a.length/e));l=Array.from({length:t},((t,n)=>n*e)),s=Math.min(s,l.length-1),i.innerHTML="",l.forEach(((e,t)=>{const n=document.createElement("button");n.className="single-recommendations__page",n.type="button",n.textContent=function(e){return String(e+1).padStart(2,"0")}(t),n.setAttribute("aria-label",`Show recommended cars page ${t+1}`),n.addEventListener("click",(()=>y(t))),i.append(n)}))}function y(e){s=Math.max(0,Math.min(e,l.length-1)),function(e){const t=f();m=Math.max(-t,Math.min(0,e)),n.style.transform=`translateX(${m}px)`}(-function(e){const t=a[l[e]];return t?t.offsetLeft:0}(s)),o.disabled=0===s,r.disabled=s===l.length-1,i.querySelectorAll(".single-recommendations__page").forEach(((e,t)=>{e.classList.toggle("is-active",t===s)}))}function v(){g(),y(s)}function w(e){t.classList.remove("is-dragging"),n.classList.remove("is-dragging"),window.requestAnimationFrame((()=>{y(e)}))}o.addEventListener("click",(()=>y(s-1))),r.addEventListener("click",(()=>y(s+1))),t.addEventListener("pointerdown",(e=>{"mouse"===e.pointerType&&0!==e.button||(c=e.clientX,d=e.clientY,u=m,p=!0,h=!1,t.classList.add("is-dragging"),n.classList.add("is-dragging"),t.setPointerCapture(e.pointerId))})),t.addEventListener("pointermove",(e=>{if(!p)return;const t=e.clientX-c,o=e.clientY-d;if(Math.abs(o)>Math.abs(t)&&Math.abs(o)>12)return p=!1,void w(s);Math.abs(t)>4&&(h=!0),function(e){const t=f();let o=e;o>0&&(o*=.28),o<-t&&(o=.28*(o+t)-t),m=o,n.style.transform=`translateX(${m}px)`}(u+t)})),t.addEventListener("pointerup",(e=>{if(!p)return;const t=e.clientX-c,n=e.clientY-d;p=!1,Math.abs(n)>Math.abs(t)||Math.abs(t)<45?w(s):w(s+(t<0?1:-1))})),t.addEventListener("pointercancel",(()=>{p=!1,w(s)})),a.forEach((e=>{e.addEventListener("click",(e=>{h&&(e.preventDefault(),h=!1)}))})),window.addEventListener("resize",v),v()}(),document.querySelectorAll("[data-template-parallax-slider]").forEach(vt),function(){const e=document.querySelector("[data-team-slider]");if(!e)return;const t=e.querySelector("[data-team-slider-stage]"),n=e.querySelector("[data-team-slider-content]"),o=e.querySelector("[data-team-slider-name]"),r=e.querySelector("[data-team-slider-role]"),i=e.querySelector("[data-team-slider-text]"),a=[...e.querySelectorAll("[data-team-slider-nav]")],s=[...e.querySelectorAll("[data-team-slider-tile]")];if(!(t&&n&&o&&r&&i))return;for(;t.querySelectorAll("[data-team-slider-tile]").length<15;){const e=document.createElement("div");e.className="team-slider__tile",e.setAttribute("data-team-slider-tile",""),e.innerHTML='<img src="" alt="" />',t.appendChild(e)}const l=[...t.querySelectorAll("[data-team-slider-tile]")].slice(0,15);
1s.slice(15).forEach((e=>e.remove()));let c=0,d=!1,u=0,m=0,p=!1;const h=l.map(((e,t)=>({tile:e,slot:t,memberIndex:_t(c+t-Et,wt.length)})));function f(e){a.forEach((t=>{t.classList.toggle("is-active",Number(t.dataset.teamSliderNav)===e)}))}function g(e){const t=wt[e];if(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return o.textContent=t.name,r.textContent=t.role,void(i.textContent=t.text);n.classList.add("is-hidden"),window.setTimeout((()=>{o.textContent=t.name,r.textContent=t.role,i.textContent=t.text,n.classList.remove("is-hidden")}),260)}}function y(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=wt[_t(e.memberIndex,wt.length)],r=e.tile.querySelector("img"),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=e-Et;if(window.innerWidth<=xt){const e=160,o=50,r=18,i=o+r+e+r+o,a=Math.max((t-i)/2,0),s=a+o+r,l=s+e+r,c=o/e;return-1===n?{x:a,y:96,scale:c,opacity:.82,grayscale:1,z:2,unit:"px"}:0===n?{x:s,y:54,scale:1,opacity:1,grayscale:0,z:5,unit:"px"}:1===n?{x:l,y:136,scale:c,opacity:.82,grayscale:1,z:2,unit:"px"}:n<-1?{x:a-(o+18+28*Math.abs(n+1)),y:96,scale:c,opacity:0,grayscale:1,z:0,unit:"px"}:{x:l+o+18+28*(n-1),y:136,scale:c,opacity:0,grayscale:1,z:0,unit:"px"}}const o=130/340;return-2===n?{x:770,y:160,scale:o,opacity:.28,grayscale:1,z:1}:-1===n?{x:600,y:270,scale:o,opacity:.82,grayscale:0,z:2}:0===n?{x:600,y:450,scale:1,opacity:1,grayscale:0,z:5}:1===n?{x:600,y:830,scale:o,opacity:.82,grayscale:0,z:2}:2===n?{x:770,y:920,scale:o,opacity:.28,grayscale:1,z:1}:n<-2?{x:830,y:150*(n+3)-220,scale:o,opacity:0,grayscale:1,z:0}:{x:830,y:1220+150*(n-3),scale:o,opacity:0,grayscale:1,z:0}}(e.slot,t.clientWidth);n&&(e.tile.style.transition="none"),e.tile.classList.toggle("is-active",e.slot===Et),e.tile.style.setProperty("--tile-x","px"===i.unit?`${i.x}px`:`${i.x}rem`),e.tile.style.setProperty("--tile-y","px"===i.unit?`${i.y}px`:`${i.y}rem`),e.tile.style.setProperty("--tile-scale",String(i.scale)),e.tile.style.setProperty("--tile-opacity",String(i.opacity)),e.tile.style.setProperty("--tile-grayscale",String(i.grayscale)),e.tile.style.zIndex=String(i.z),r&&(r.src=o.image,r.alt=o.name),n&&(e.tile.getBoundingClientRect(),e.tile.style.transition="")}function v(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];h.forEach((t=>y(t,e)))}async function w(e){if(d||e===c)return;d=!0,g(e),f(e);const t=e-c;requestAnimationFrame((()=>{h.forEach((e=>{e.slot-=t})),v()})),await new Promise((e=>{window.setTimeout(e,1150)})),c=e,function(e,t){if(!e.length)return;const n=_t(t,e.length);if(0===n)return;const o=e.splice(0,n);e.push(...o)}(h,_t(t,h.length)),h.forEach(((e,t)=>{e.slot=t,e.memberIndex=_t(c+t-Et,wt.length)})),v(!0),d=!1}v(!0),g(c,!0),f(c),a.forEach((e=>{e.addEventListener("click",(()=>{w(Number(e.dataset.teamSliderNav))}))})),l.forEach((e=>{e.addEventListener("click",(()=>{if(window.innerWidth<=xt||d)return;const t=h.find((t=>t.tile===e));t&&t.slot!==Et&&w(_t(t.memberIndex,wt.length))}))})),t.addEventListener("touchstart",(e=>{if(window.innerWidth>xt||1!==e.touches.length)return;const t=e.touches[0];u=t.clientX,m=t.clientY,p=!0}),{passive:!0}),t.addEventListener("touchmove",(e=>{if(!p||window.innerWidth>xt)return;const t=e.touches[0],n=t.clientX-u,o=t.clientY-m;Math.abs(o)>Math.abs(n)&&(p=!1)}),{passive:!0}),t.addEventListener("touchend",(e=>{if(!p||window.innerWidth>xt||d)return void(p=!1);const t=e.changedTouches[0].clientX-u;p=!1,Math.abs(t)<35||w(_t(t<0?c+1:c-1,wt.length))}),{passive:!0}),window.addEventListener("resize",(function(){v(!0)}))}();const kt={smooth:!0,smoothTouch:!1};Ct&&(kt.wrapper=Lt,kt.content=Lt,kt.eventsTarget=Lt);const Mt=new Pt.Z(kt);function Zt(){"function"==typeof Mt.scrollTo&&Mt.scrollTo(Ct&&Lt?Lt.scrollTop:window.scrollY,{immediate:!0}),"function"==typeof Mt.resize&&Mt.resize(),f.ic.refresh(!0)}requestAnimationFrame((function e(t){Mt.raf(t),requestAnimationFrame(e)})),(0,f.Ri)(Mt),function(){let{lenis:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=document.querySelector(".home-page");if(!t)return;(0,f.Ri)(e),g(),y({lenis:e});const n=t.querySelector(".hero"),o=t.querySelector(".hero video"),r=t.querySelector(".hero h1"),i=r?r.querySelectorAll(":scope > span"):[],a=t.querySelector(".mission"),s=t.querySelector(".vision"),l=t.querySelectorAll(".vision-number span"),c=t.querySelectorAll(".reveal-image"),d=window.matchMedia("(max-width: 1099px)").matches;if(n&&o&&r&&i.length)if(i.forEach((e=>{e.textContent=e.textContent.trim()})),f.p8.set(n,{"--hero-overlay-opacity":.28}),d?f.p8.set(o,{clearProps:"transform"}):f.p8.set(o,{scale:1,transformOrigin:"center center"}),f.p8.set(r,{xPercent:0,yPercent:-50,scale:1,transformOrigin:"center center",autoAlpha:1}),f.p8.set(i,{clearProps:"transform"}),d)a&&f.p8.set(a,{clearProps:"transform"});else{a&&f.p8.set(a,{scale:.8,transformOrigin:"center top"});const e=f.p8.timeline({scrollTrigger:{trigger:n,start:"top top",end:"+=165%",scrub:1,pin:!0,pinSpacing:!0,anticipatePin:1,invalidateOnRefresh:!0}});e.to(r,{scale:.72,opacity:0,ease:"none",duration:.28},0),a&&e.to(a,{scale:1,ease:"power1.inOut",duration:.32},.12),e.to(o,{scale:1.45,ease:"power1.inOut",duration:.45},0),e.to(n,{"--hero-overlay-opacity":.74,ease:"none",duration:.5},.12)}!function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll(".mission-img p, .mission-description p:last-child, .vision-content__description").forEach((e=>{e.classList.remove("is-home-line-visible"),f.ic.create({trigger:e,start:"top 75%",once:!0,onEnter:()=>e.classList.add("is-home-line-visible")})}))}(t),function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelector(".moments__wrapper"),t=e?.querySelector(".moments-cards"),n=e?.querySelector(".moments-cards__origin"),o=e?[...e.querySelectorAll(".moments-cards__item")]:[];if(!(e&&t&&n&&o.length))return;const r=[-5,3,8],i=[-18,0,18],a=f.p8.matchMedia();a.add("(min-width: 1101px)",(()=>{const t=f.p8.timeline({scrollTrigger:{trigger:e,start:"top 52%",once:!0}});return o.forEach(((e,o)=>{t.fromTo(e,{x:()=>n.offsetLeft-e.offsetLeft+i[o],y:()=>n.offsetTop-e.offsetTop+.45*i[o],rotation:r[o],scale:()=>n.offsetWidth/e.offsetWidth,transformOrigin:"center center"},{x:0,y:0,rotation:0,scale:1,duration:1.6,ease:"power3.inOut"},.24*o)})),()=>{t.scrollTrigger?.kill(),t.kill()}})),a.add("(max-width: 600px)",(()=>{const n=[-5,3,8],r=[-10,0,10],i=f.p8.timeline({scrollTrigger:{trigger:e,start:"top 70%",once:!0}});return o.forEach(((e,o)=>{i.fromTo(e,{x:()=>.68*t.clientWidth-e.offsetLeft-e.offsetWidth/2+r[o],y:()=>.65*t.offsetHeight+.4*r[o],rotation:n[o],transformOrigin:"center center"},{x:0,y:0,rotation:0,duration:1.4,ease:"power3.inOut"},.24*o)})),()=>{i.scrollTrigger?.kill(),i.kill(),f.p8.set(o,{clearProps:"transform"})}}))}(t),(0,f.N_)(c),s&&l.length&&f.p8.fromTo(l,{yPercent:-120},{yPercent:0,duration:2,ease:"power3.out",stagger:.15,scrollTrigger:{trigger:s,start:"top 45%",once:!0}})}({lenis:Mt}),function(){let{lenis:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
1document.querySelector(".media-page")&&(T=e??null,A=ee()?0:E,C=A,function(){const e=document.getElementById("media-stage"),t=document.getElementById("media-dots");if(!e||!t)return;t.innerHTML="";const n=[...e.querySelectorAll(".media__item")];if(!n.length)return void(w=[]);A>=n.length&&(A=0);C=A,w=n.map(((e,n)=>{U[n]={y:0,velocity:0,rafId:null,visiblePhotoIndex:-1},e.dataset.index=n,e.classList.toggle("is-active",n===A),e.querySelectorAll(".media__item-photo-inner img").forEach((e=>{e.complete||e.addEventListener("load",(()=>ue(n)),{once:!0})})),e.querySelectorAll(".media__item-photo-inner video").forEach((e=>{e.videoWidth||e.addEventListener("loadedmetadata",(()=>ue(n)),{once:!0})}));const o=document.createElement("button");return o.className="media__nav-dot"+(n===A?" is-active":""),o.type="button",o.textContent=String(n+1).padStart(2,"0"),o.addEventListener("click",(()=>Ae(n))),t.appendChild(o),function(e,t){const n=e.querySelector(".media__item-label")?.textContent.trim()||"",o=e.querySelector(".media__item-date")?.textContent.trim()||"",r=le(t);return{label:n,date:o,sources:r,photoTotal:r.length}}(e,n)}))}(),ye("counter-current",2),ye("counter-total",2),xe(),Q.init(),requestAnimationFrame((()=>requestAnimationFrame((()=>{!function(){const e=[...document.querySelectorAll(".media__item")],t=[...document.querySelectorAll(".media__item-info")],n=document.getElementById("media-stage"),o=document.querySelector(".media__stage-wrap"),r=document.getElementById("media-gallery-close");if(!o||!e.length)return;O=Le(e,o),d.ZP.set(".media__intro-line-inner",{yPercent:0}),d.ZP.set(".media__nav, .media__bottom",{opacity:0,pointerEvents:"none"}),d.ZP.set(r,{opacity:0,pointerEvents:"none"}),d.ZP.set(t,{opacity:0}),d.ZP.set(n,{pointerEvents:"none"}),d.ZP.set(e,{x:e=>O[e]?.x??0,y:e=>O[e]?.y??0,rotation:e=>O[e]?.rotation??0,scale:ee()?.92:.72,opacity:1,zIndex:e=>O[e]?.zIndex??e})}(),function(){const e=document.querySelector(".media"),t=document.getElementById("media-gallery-close");if(!e)return;const n=e=>{e.preventDefault(),e.stopPropagation(),H||B?Be():qe()};e.addEventListener("mouseenter",(()=>{ee()||M||Z||(fe("view"),pe())})),e.addEventListener("mouseleave",(()=>{ee()||M||Z||he()})),e.addEventListener("click",(e=>{M||Z||e.target.closest(".media__close")||function(){const e=document.querySelector(".media");if(!e||M||Z)return;I=!1,Z=!0,fe("scroll"),he();const t=()=>{ee()||T?.stop(),function(){const e=[...document.querySelectorAll(".media__item")],t=[...document.querySelectorAll(".media__item-info")],n=[...document.querySelectorAll(".media__item-viewport")],o=document.getElementById("media-stage"),r=document.querySelector(".media"),i=document.getElementById("media-gallery-close");if(!e.length||!o)return;M=!0,ie(!0),ee()&&(k=A,r?.classList.add("is-compact-card-open"),e.forEach(((e,t)=>{e.classList.toggle("is-hovered",t===A)})),me());const a=d.ZP.timeline({onComplete(){if(Z=!1,d.ZP.set(o,{pointerEvents:"auto"}),I)return I=!1,void qe();ee()?V(A):Ze()}});a.to(".media__intro-line-inner",{yPercent:-105,duration:.8,stagger:{amount:.1,from:"start"},ease:"power4.in"}),a.to(e,{x:0,y:0,rotation:0,scale:1,duration:1.4,stagger:{amount:.22,from:"center"},ease:"expo.inOut",clearProps:"rotation,zIndex,transform"},"-=0.35"),ee()&&a.to(n,{height:e=>te(e),duration:1.2,ease:"expo.inOut"},"<");a.to(t,{opacity:1,duration:1.2,stagger:{amount:.5,from:"start"},ease:"power2.out"},"-=0.75"),a.to(".media__nav, .media__bottom",{opacity:1,pointerEvents:"auto",duration:.7,ease:"power2.out"},"-=0.5"),a.to(i,{opacity:1,pointerEvents:"auto",duration:.4,ease:"power2.out"},"-=0.7")}()};if(T&&"function"==typeof T.scrollTo)return T.scrollTo(e,{offset:0,duration:1.1,easing:e=>1-Math.pow(1-e,4)}),void window.setTimeout(t,1150);window.scrollTo({top:window.scrollY+e.getBoundingClientRect().top,behavior:"smooth"}),window.setTimeout(t,650)}()})),t?.addEventListener("click",(e=>{n(e)})),t?.addEventListener("touchstart",(e=>{n(e)}),{passive:!1,capture:!0}),t?.addEventListener("pointerdown",(e=>{ee()&&n(e)})),t?.addEventListener("touchend",(e=>{n(e)}),{passive:!1}),t?.addEventListener("pointerup",(e=>{ee()&&n(e)})),e.addEventListener("touchmove",(e=>{ee()&&M&&!H&&e.cancelable&&e.preventDefault()}),{passive:!1}),window.addEventListener("wheel",(e=>{M&&!H&&(e.target.closest(".media__item")||e.preventDefault())}),{passive:!1})}(),document.getElementById("media-prev")?.addEventListener("click",(()=>{Ae((A-1+w.length)%w.length)})),document.getElementById("media-next")?.addEventListener("click",(()=>{Ae((A+1)%w.length)})),function(){const e=[...document.querySelectorAll(".media__item")],t=[...document.querySelectorAll(".media__item-info")],n=e.map((e=>e.querySelector(".media__item-viewport")));K=e=>l(e),V=e=>{ee()?s(e):a(e)},W=re()||e[0]?.offsetWidth||0,me();let o=null,r=null;function i(e,t){const n=Ge(e);if(!n)return void t?.();const o=U[e];cancelAnimationFrame(o.rafId),d.ZP.killTweensOf(n);const r=[...n.querySelectorAll(".media__item-photo")],i=[...n.querySelectorAll(".media__item-photo-inner")],a=r.slice(1);if(!a.length)return void t?.();const s=+d.ZP.getProperty(n,"y")||0;o.y=s,o.velocity=0,Math.abs(s)<2?d.ZP.to(n,{y:0,duration:1.2,ease:"power2.out",onUpdate:()=>{o.y=+d.ZP.getProperty(n,"y")||0,Qe(e,o.y)},onComplete:()=>
1{o.y=0,i.forEach((e=>{e.style.transform=""})),t?.()}}):(a.forEach(((e,t)=>{const n=t+1;d.ZP.killTweensOf(e),d.ZP.fromTo(e,{y:0},{y:18*-n,duration:.28,delay:.035*t,ease:"power2.out"})})),d.ZP.to(n,{y:0,duration:1.3,ease:"power2.out",delay:.08,onUpdate:()=>{o.y=+d.ZP.getProperty(n,"y")||0,Qe(e,o.y)},onComplete:()=>{o.y=0,d.ZP.to(a,{y:0,duration:.35,ease:"power2.out",stagger:{each:.025,from:"end"},onComplete:()=>{r.forEach((e=>d.ZP.set(e,{clearProps:"y"}))),i.forEach((e=>{e.style.transform=""})),t?.()}})}}))}function a(r){if(!M||Z)return;if(k===r)return;ee()&&A!==r&&Ae(r);const a=k;k=r,e.forEach(((e,t)=>de(t))),-1!==a&&i(a,(()=>{e[a]?.classList.remove("is-hovered")})),clearTimeout(o),T?.stop(),fe("scroll"),ee()||pe(),document.querySelector(".media")?.classList.toggle("is-compact-card-open",ee()),ee()&&(W=re()),e[r].classList.add("is-hovered");const s=ne(),l=oe(),c=document.getElementById("media-stage");ee()||d.ZP.killTweensOf(c),e.forEach(((e,t)=>{d.ZP.killTweensOf(e),t!==r?d.ZP.to(e,{width:l,scale:ee()?1:q,opacity:ee()?1:.1,duration:1,ease:"power3.out"}):d.ZP.to(e,{width:s,scale:1,opacity:1,duration:1,ease:"power3.out"})}
1)),ee()||Me(1),n.forEach(((e,t)=>{d.ZP.killTweensOf(e),d.ZP.to(e,{height:te(t),duration:1,ease:"power3.out"})})),t.forEach((e=>{d.ZP.killTweensOf(e),d.ZP.to(e,{opacity:ee()?1:0,duration:.3,ease:"power2.out"})})),Qe(r,0),Ke(r),_e(r),Ie(w[r].label);const u=document.getElementById("media-nav");u&&(d.ZP.killTweensOf(u),d.ZP.to(u,{opacity:ee()?1:0,duration:.3,ease:"power2.out"}))}function s(o){if(!M||Z||!ee())return;document.querySelector(".media")?.classList.add("is-compact-card-open"),k=o,e.forEach(((e,t)=>{e.classList.toggle("is-hovered",t===o)})),n.forEach(((e,t)=>{d.ZP.killTweensOf(e),d.ZP.set(e,{height:te(t)})})),t.forEach((e=>{d.ZP.killTweensOf(e),d.ZP.set(e,{opacity:1})}));const r=U[o]?.y??0;if(Math.abs(r)<1){const e=Ge(o);e&&(U[o].y=0,d.ZP.set(e,{y:0}),e.querySelectorAll(".media__item-photo-inner").forEach((e=>{e.style.transform=""})))}else Qe(o,r);Math.abs(r)<1&&Fe(o,0),Ke(o),xe(),Ie(w[o].label)}function l(o){if(!M||Z||H)return;k=-1,e.forEach(((e,t)=>de(t))),M||T?.start(),he(),document.querySelector(".media")?.classList.remove("is-compact-card-open"),ee()&&(W=re());const r=document.getElementById("media-nav"),a=document.getElementById("media-stage");ee()||d.ZP.killTweensOf(a),r&&(d.ZP.killTweensOf(r),d.ZP.to(r,{opacity:1,duration:.5,delay:.2,ease:"power2.out"})),e.forEach(((e,t)=>{t!==o&&e.classList.remove("is-hovered"),d.ZP.killTweensOf(e),d.ZP.to(e,{width:W,scale:1,opacity:1,duration:.8,ease:"power3.out"})})),ee()||Me(.8),n.forEach((e=>{d.ZP.killTweensOf(e),d.ZP.to(e,{height:te(-1),duration:.8,ease:"power3.out"})})),t.forEach((e=>{d.ZP.killTweensOf(e),d.ZP.to(e,{opacity:1,duration:.45,delay:1,ease:"power2.out"})})),ze(),Ke(A),xe(),Ie(w[A].label),-1!==o&&i(o,(()=>{e[o]?.classList.remove("is-hovered")}))}e.forEach(((e,t)=>{e.addEventListener("mouseenter",(()=>{if(ee())return;a(t);const{x:e,y:n}=Q.getClientPosition();ge(e,n)})),e.addEventListener("mouseleave",(()=>{if(ee())return;const e=t;o=setTimeout((()=>{k===e&&l(e)}),40)})),e.addEventListener("wheel",(e=>{M&&!Z&&(e.preventDefault(),e.stopPropagation(),Je(t,e.deltaY))}),{passive:!1}),e.addEventListener("click",(e=>{if(!M||Z)return;if(G)return e.preventDefault(),void(G=!1);const n=e.target.closest(".media__item-photo");return n?ee()&&k!==t?(e.preventDefault(),a(t),void He(n)):void(-1!==k&&He(n)):void 0}))})),function(e){const t=document.querySelector(".media__stage-wrap");if(!t)return;let n=0,o=0,r=0,i=-1,a=!1;t.addEventListener("touchstart",(t=>{if(!ee()||!M||Z)return;const s=t.touches[0],l=t.target.closest(".media__item");n=s.clientX,o=s.clientY,r=s.clientY,i=l?e.indexOf(l):-1,a=!1}),{passive:!0}),t.addEventListener("touchmove",(e=>{if(!ee()||!M||Z)return;const t=e.touches[0],s=t.clientX-n,l=t.clientY-o;i>=0&&i===k&&Math.abs(l)>Math.abs(s)&&Math.abs(l)>8&&(a=!0,e.preventDefault(),Je(i,r-t.clientY)),r=t.clientY}),{passive:!1}),t.addEventListener("touchend",(e=>{if(!ee()||!M||Z)return;const t=e.changedTouches[0],r=t.clientX-n,i=t.clientY-o,s=Math.abs(r)>48&&Math.abs(r)>Math.abs(i);!a&&s&&(e.preventDefault(),Ae(r<0?(A+1)%w.length:(A-1+w.length)%w.length)),(a||s)&&(G=!0,window.setTimeout((()=>{G=!1}),250))}),{passive:!1})}(e),window.addEventListener("resize",(()=>{window.clearTimeout(r),r=window.setTimeout((()=>{if(W=re(),me(),M&&!Z){if(-1!==k){const t=ne(),o=oe();e.forEach(((e,n)=>{d.ZP.set(e,{width:n===k?t:o,scale:n===k||ee()?1:q,opacity:n===k||ee()?1:.1})})),n.forEach(((e,t)=>{d.ZP.set(e,{height:te(t)})}))}else n.forEach(((e,t)=>{d.ZP.set(e,{height:te(t)})}));Ze()}}),120)}))}()})))))}({lenis:Mt}),(0,f.r$)(),(0,f.Q7)(),(0,f.Mw)(),(0,f._1)(void 0,{initialDelay:.6}),(0,f.nm)(),requestAnimationFrame((()=>{Zt(),window.setTimeout(Zt,120)})),window.addEventListener("load",Zt,{once:!0}),window.addEventListener("pageshow",Zt),document.fonts?.ready&&document.fonts.ready.then(Zt)}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,e=[],i.O=(t,n,o,r)=>{if(!n){var a=1/0;for(d=0;d<e.length;d++){n=e[d][0],o=e[d][1],r=e[d][2];for(var s=!0,l=0;l<n.length;l++)(!1&r||a>=r)&&Object.keys(i.O).every((e=>i.O[e](n[l])))?n.splice(l--,1):(s=!1,r<a&&(a=r));if(s){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,o,r]},i.n=e=>
1{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"assets/js/"+e+".js",i.miniCssF=e=>{},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="webpacktemplate:",i.l=(e,o,r,a)=>{if(t[e])t[e].push(o);else{var s,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==n+r){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",n+r),s.src=e),t[e]=[o];var m=(n,o)=>{s.onerror=s.onload=null,clearTimeout(p);var r=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((e=>e(o))),n)return n(o)},p=setTimeout(m.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=m.bind(null,s.onerror),s.onload=m.bind(null,s.onload),l&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/wp-content/themes/klausen/assets/",(()=>{var e={app:0};i.f.j=(t,n)=>{var o=i.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var r=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=r);var a=i.p+i.u(t),s=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",s.name="ChunkLoadError",s.type=r,s.request=a,o[1](s)}}),"chunk-"+t,t)}},i.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,a=n[0],s=n[1],l=n[2],c=0;if(a.some((t=>0!==e[t]))){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(l)var d=l(i)}for(t&&t(n);c<a.length;c++)r=a[c],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return i.O(d)},n=self.webpackChunkwebpacktemplate=self.webpackChunkwebpacktemplate||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=i.O(void 0,["vendors"],(()=>i(381)));a=i.O(a)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.