window.addEventListener("load",()=>{const l=e=>{e.classList.add("active"),document.querySelector("body").classList.add("no-scroll","menu-opened"),jQuery(".menu-wrapper").addClass("opened").slideDown(500,"easeInOutCubic")},s=e=>{e.classList.remove("active"),jQuery(".menu-wrapper").removeClass("opened").slideUp(500,"easeInOutCubic",function(){document.querySelector("body").classList.remove("no-scroll","menu-opened")})},i=()=>{jQuery(".modal-wrapper.show").fadeOut(500,"easeInOutCirc"),document.querySelector("body").classList.remove("no-scroll")};var e=()=>{var e;e=.01*window.innerHeight,document.documentElement.style.setProperty("--vh",e+"px"),window.addEventListener("resize",function(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",e+"px")});{const o=document.querySelector(".menu-btn"),t=(o?.addEventListener("click",e=>{e.stopPropagation(),(o.classList.contains("active")?s:l)(o)}),document.querySelector(".menu-wrapper .close-arrow"));t?.removeEventListener("click",null),t?.addEventListener("click",()=>s(o))}{const n=document.querySelectorAll(".modal-close"),r=document.querySelectorAll(".modal-wrapper .overlay");n.forEach(e=>e.addEventListener("click",i,!0)),r.forEach(e=>e.addEventListener("click",i,!0))}{const c=document.querySelectorAll(".goDown");c?.forEach(o=>{o.addEventListener("click",()=>{var e=o.closest("section").nextElementSibling;e&&jQuery("html,body").animate({scrollTop:jQuery(e).offset().top},750,"easeInOutCubic")})})}{const a=document.querySelector(".goUp");a?.addEventListener("click",()=>{jQuery("html,body").animate({scrollTop:0},750,"easeInOutCubic")})}{const d=document.querySelectorAll(".typeformButton");return void d.forEach(e=>{var o=e.dataset.id;const t=window.tf.createSlider(o)["toggle"];e.onclick=()=>{t()}})}};e(),window.addEventListener("change-page",e,!0)}),function(r){let c=0;function o(e){var o=r("header.header-theme").height();2*o<=e?(r("body").addClass("header-fixed"),r("main.theme-main").css("margin-top",o)):(r("body").removeClass("header-fixed"),r("main.theme-main").css("margin-top",0))}function t(e,o){var t=window.scrollY;const n=r("html");0!==t&&t
").map(t=>""===t?" ":t),a=(t.remove(),i(this).data("speed")?i(this).data("speed"):50),s=i(this).data("delay")?i(this).data("delay"):250;new TypeIt(this,{strings:e,speed:a,nextStringDelay:400,startDelay:s,waitUntilVisible:!0,afterComplete:async t=>{t=t.getElement();i(t).addClass("type-effect-finished")}}).go()})})}(jQuery); //# sourceMappingURL=scripts-type-effect.min.js.map window.addEventListener("load",()=>{var e={root:document,rootMargin:"-50px 0px",threshold:.2};const n=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.target.classList.add("hasEnteredScreen")})},e);e=()=>{const e=document.querySelectorAll(".animateOnScreen");e?.forEach(e=>{n?.observe(e)})};e(),document.addEventListener("change-page",e,!0)}); //# sourceMappingURL=scripts-observer.min.js.map window.addEventListener("load",()=>{const t=t=>{"undefined"!==t&&0{var e,n,o,l=window.scrollY,a=(d=(d=t).getBoundingClientRect(),e=document.body,o=document.documentElement,n=window.pageYOffset||o.scrollTop||e.scrollTop,r=window.pageXOffset||o.scrollLeft||e.scrollLeft,a=o.clientTop||e.clientTop||0,o=o.clientLeft||e.clientLeft||0,e=d.top+n-a,n=d.left+r-o,{top:Math.round(e),left:Math.round(n)}),d=.2*t.getBoundingClientRect().height,r=l-a.top+d;0<=r&&(o=(t=>{let e=t.dataset.parallaxMult||.15;return window.innerWidth<=534&&(e/=3),e})(t),t.classList.contains("xAxis")?t.style.transform="translate3d(-"+o*r+"px, 0 ,0)":t.style.transform="translate3d(0, -"+o*r+"px ,0)")})};let e;var n=()=>{e=document.querySelectorAll(".parallax")};n(),document.addEventListener("change-page",n,!0),t(e),window.onscroll=()=>{t(e)},window.onresize=()=>{t(e)}}); //# sourceMappingURL=scripts-parallax.min.js.map window.addEventListener("load",()=>{const n=async e=>{try{const o=await fetch(e);var t=await o.text();const i=new DOMParser;return i.parseFromString(t,"text/html")}catch(e){console.log("Error:",e)}},s=new CustomEvent("change-page",{detail:"Called when page changed via JS"}),a=document.createElement("div"),o=(a.setAttribute("id","overlay-no-refresh"),a.style.cssText=` position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: calc(var(--vh, 1vh)*100); z-index: 5000; overflow: hidden; opacity: 0; visibility: hidden; -moz-transition: opacity .3s ease-in-out,visibility .3s ease-in-out; -o-transition: opacity .3s ease-in-out,visibility .3s ease-in-out; -webkit-transition: opacity .3s ease-in-out,visibility .3s ease-in-out; transition: opacity .3s ease-in-out,visibility .3s ease-in-out; `,document.querySelector("html").prepend(a),async(e,t=!0)=>{var o=localStorage.getItem("theme");console.log("currentTheme",o),a.style.backgroundColor="light"===o?"rgba(255,255,255,1)":"rgba(0,0,0,1)",setTimeout(()=>{a.style.opacity="1",a.style.visibility="visible"},200),jQuery(".menu-wrapper").removeClass("opened").slideUp(500,"easeInOutCubic",function(){document.querySelector(".menu-btn").classList.remove("active"),document.querySelector("body").classList.remove("menu-opened")});const i=await n(e);t&&window.history.pushState({},"",e),document.head.innerHTML=i.querySelector("head").innerHTML,document.body.style.display="none",document.body.innerHTML=i.querySelector("body").innerHTML,document.body.classList=i.querySelector("body").classList,jQuery("html,body").animate({scrollTop:0},0),setTimeout(()=>{document.body.style.display="",a.style.opacity="0",a.style.visibility="hidden",document.querySelector("body").classList.remove("no-scroll","header-fixed"),document.dispatchEvent(s)},750)}),t=()=>{const e=document.querySelectorAll("a.no-refresh");e?.forEach(t=>{t.addEventListener("click",e=>{e.preventDefault();e=t.getAttribute("href");o(e)})})};t(),document.addEventListener("change-page",function(e){t()}),window.addEventListener("popstate",e=>{console.log(`location: ${document.location}, state: `+JSON.stringify(e.state)),o(document.location,!1)})}); //# sourceMappingURL=scripts-no-refresh.min.js.map window.addEventListener("load",()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");var e=localStorage.getItem("theme");"dark"===e?document.documentElement.classList.toggle("dark-theme"):"light"===e&&document.documentElement.classList.toggle("light-theme");const n=()=>{let e="";e=t.matches?(document.documentElement.classList.toggle("light-theme"),document.documentElement.classList.contains("light-theme")?"light":"dark"):(document.documentElement.classList.toggle("dark-theme"),document.documentElement.classList.contains("dark-theme")?"dark":"light"),localStorage.setItem("theme",e)};e=()=>{const e=document.querySelector(".site-theme");e.addEventListener("click",n)};e(),document.addEventListener("change-page",e,!0)}); //# sourceMappingURL=scripts-site-theme.min.js.map