!function(){function e(e){return e&&e.__esModule?e.default:e}function t(e){return void 0===window.air_light_screenReaderText||void 0===window.air_light_screenReaderText[e]?(console.error(`Missing translation for ${e}`),""):window.air_light_screenReaderText[e]}function n(e){let t=[...e.children];if(0===t.length)return"";let n=t.filter(e=>"img"===e.tagName.toLowerCase());if(t.length!==n.length)return"";let o=n.filter(e=>e.alt&&""!==e.alt).map(e=>e.alt);return o.length?o.join(", "):""}"use strict";var o={};o=function(){var e={tolerance:0,duration:800,easing:"easeOutQuart",container:window,callback:function(){}};function t(e,t,n,o){return e/=o,-n*(--e*e*e*e-1)+t}function n(e,t){var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function o(e){return e instanceof HTMLElement?e.scrollTop:e.pageYOffset}function r(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=n(e,o),this.easeFunctions=n({easeOutQuart:t},r)}return r.prototype.registerTrigger=function(e,t){var o=this;if(e){var r,i,a,l=e.getAttribute("href")||e.getAttribute("data-target"),s=l&&"#"!==l?document.getElementById(l.substring(1)):document.body,d=n(this.options,(r=e,i=this.options,a={},Object.keys(i).forEach(function(e){var t=r.getAttribute("data-mt-".concat(e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})));t&&(a[e]=isNaN(t)?t:parseInt(t,10))}),a));"function"==typeof t&&(d.callback=t);var c=function(e){e.preventDefault(),o.move(s,d)};return e.addEventListener("click",c,!1),function(){return e.removeEventListener("click",c,!1)}}},r.prototype.move=function(e){var t,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===e||e){i=n(this.options,i);var a="number"==typeof e?e:e.getBoundingClientRect().top,l=o(i.container),s=null;a-=i.tolerance,window.requestAnimationFrame(function n(d){var c=o(r.options.container);s||(s=d-1);var u=d-s;if(t&&(a>0&&t>c||a<0&&te.addEventListener(t,n))},i=function(){if(!document.getElementById("nav-toggle")||!document.querySelector(".site-header")||!document.getElementById("menu-items-wrapper"))return void console.log("Warning: No nav-toggle or site-header found.");let e=document.documentElement.clientWidth||document.body.clientWidth,t=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--width-max-mobile"),10),n=document.querySelector(".site-header").offsetHeight;if(e<=t){if(document.getElementById("menu-items-wrapper").style.top=`${n}px`,document.getElementById("menu-items-wrapper").style.height=`calc(100vh - ${n}px)`,document.querySelector(".air-notification")){let e=document.querySelectorAll(".air-notification"),t=0;e.forEach(e=>{t=e.offsetHeight+t}),document.getElementById("menu-items-wrapper").style.height=`calc(100vh - ${n+t}px)`,document.getElementById("menu-items-wrapper").style.top=`${n+t}px`,e.forEach(e=>{let o=e.querySelector("button"),r=e.offsetHeight;o&&o.addEventListener("click",()=>{t-=r,document.getElementById("menu-items-wrapper").style.height=`calc(100vh - ${n+t}px)`,document.getElementById("menu-items-wrapper").style.top=`${n+t}px`})})}}else document.getElementById("menu-items-wrapper").style.top="0",document.getElementById("menu-items-wrapper").style.height="auto"},a=function(e){let t=[],n=document.getElementById("nav"),o=document.getElementById("nav-toggle"),r=getComputedStyle(document.documentElement).getPropertyValue("--width-max-mobile"),i=window.matchMedia(`(max-width: ${r})`).matches;if(!n||!o||!i)return;let a=(t=[...n.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled")).filter(e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)))[0],l=t[t.length-1];a===e.target&&"Tab"===e.code&&e.shiftKey&&(e.preventDefault(),l.focus()),l!==e.target||"Tab"!==e.code||e.shiftKey||(e.preventDefault(),a.focus())},l=function(){document.querySelectorAll(".dropdown-toggle")?document.querySelectorAll(".dropdown-toggle").forEach(e=>{let t=e.previousElementSibling;if(t){let n=t.offsetHeight;e.style.height=`${n}px`}}):console.log("Warning: No dropdown-toggles found.")},s=function(e){let t=e.getBoundingClientRect(),n={};return n.top=t.top<0,n.left=t.left<0,n.bottom=t.bottom>=(document.documentElement.clientHeight||document.body.clientHeight),n.right=t.right>=(document.documentElement.clientWidth||document.body.clientWidth),n.any=n.top||n.left||n.bottom||n.right,n},d=function(e){e?e.forEach(e=>{let t=e.querySelectorAll(".sub-menu");t.forEach(e=>{void 0!==t&&s(e).right&&e.classList.add("is-out-of-viewport")})}):console.log("Warning: No items for sub-menus found.")},c=function(e){e.forEach(e=>{e.addEventListener("mouseover",function(){let t=getComputedStyle(document.documentElement).getPropertyValue("--width-max-mobile"),n=window.matchMedia(`(max-width: ${t})`).matches;e.classList.contains("removing-hover")||n||(this.classList.add("hover-intent"),this.classList.add("hovering"),this.parentNode.classList.add("hover-intent"),this.parentNode.classList.add("hovering"),setTimeout(()=>{this.classList.remove("hovering"),this.parentNode.classList.remove("hovering")},500),document.addEventListener("keydown",t=>{!this.classList.contains("removing-hover")&&this.classList.contains("hovering")&&this.parentNode.classList.contains("hovering")&&"Escape"===t.key&&(e.classList.remove("hover-intent"),e.parentNode.classList.remove("hover-intent"),e.parentNode.parentNode.classList.remove("hover-intent"),e.classList.add("removing-hover"),e.parentNode.classList.add("removing-hover"),setTimeout(()=>{this.classList.remove("removing-hover"),this.parentNode.classList.remove("removing-hover")},500))}),setTimeout(()=>{this.classList.remove("removing-hover"),this.parentNode.classList.remove("removing-hover")},500))}),e.addEventListener("mouseleave",function(){setTimeout(()=>{this.classList.remove("hover-intent"),this.parentNode.classList.remove("hover-intent"),this.querySelectorAll(".dropdown-toggle").forEach(e=>{if(e.setAttribute("aria-expanded","false"),e.parentNode.querySelector(".dropdown")){let t=e.parentNode.querySelector(".dropdown").textContent;e.setAttribute("aria-label",`${air_light_screenReaderText.expand_for} ${t}`)}})},0),setTimeout(()=>{this.classList.remove("removing-hover"),this.parentNode.classList.remove("removing-hover")},500)})})},u=function(e){e.forEach(e=>{if(!e.querySelector(".dropdown"))return;let t=e.querySelector(".dropdown-toggle"),n=e.querySelector(".dropdown").innerText;t.setAttribute("aria-label",`${air_light_screenReaderText.expand_for} ${n}`)})},g=function(e,t){t.forEach(e=>{e.addEventListener("keyup",e=>{let t=e.target;if(("main-menu"===t.parentNode.parentNode.id||t.classList.contains("button-nav")&&"main-menu"===t.parentNode.parentNode.id)&&t.parentNode.previousElementSibling){let e=t.parentNode.previousElementSibling;if(e.classList.remove("toggled-on"),e.classList.remove("hover-intent"),e.querySelector(".sub-menu")){let t=e.querySelector(".sub-menu");t.classList.remove("toggled-on"),t.classList.remove("hover-intent"),e.querySelector(".dropdown-toggle").setAttribute("aria-label",`${air_light_screenReaderText.expand_for} ${e.querySelector(".dropdown-item").innerText}`),e.querySelector(".dropdown-toggle").setAttribute("aria-expanded","false"),e.querySelector(".dropdown-toggle").classList.remove("toggled-on")}}}),r(e,["click","keydown","keypress"],e=>{let t=e.target,n=t.parentNode,o=t.parentNode.parentNode.parentNode.querySelector(".sub-menu"),r=t.nextElementSibling,i=t.parentNode.parentNode.parentNode.querySelector(".dropdown-toggle");if(t.classList.remove("removing-hover"),n.parentNode.classList.remove("removing-hover"),"Enter"===e.key||"click"===e.type){if("A"===t.tagName||!t.parentNode.querySelector(".dropdown-item"))return;let e=t.parentNode.querySelector(".dropdown-item").innerText;t.classList.toggle("toggled-on"),"false"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded","true"),t.setAttribute("aria-label",`${air_light_screenReaderText.collapse_for} ${e}`)):(t.setAttribute("aria-expanded","false"),t.setAttribute("aria-label",`${air_light_screenReaderText.expand_for} ${e}`)),r&&!r.classList.contains("toggled-on")?(n.classList.add("hover-intent"),r.classList.add("toggled-on")):(n&&n.classList.remove("hover-intent"),r&&r.classList.remove("toggled-on"))}if("Escape"===e.key){if("main-menu"!==t.parentNode.parentNode.id||t.parentNode.classList.contains("toggled-on")||(document.body.classList.remove("js-nav-active"),document.getElementById("nav-toggle").focus()),"main-menu"===t.parentNode.parentNode.id&&!t.parentNode.classList.contains("hover-intent"))return;o.classList.remove("toggled-on"),n.classList.remove("hover-intent"),n.parentNode.parentNode.classList.remove("hover-intent"),i.setAttribute("aria-expanded","false"),i.classList.remove("toggled-on");let e=t.parentNode.querySelector(".dropdown-item").innerText;i.setAttribute("aria-label",`${air_light_screenReaderText.expand_for} ${e}`),t.classList.contains("dropdown-toggle")&&(t.setAttribute("aria-expanded","false"),t.setAttribute("aria-label",`${air_light_screenReaderText.expand_for} ${e}`)),"main-menu"!==t.parentNode.parentNode.id&&setTimeout(()=>{i.focus()},100)}if("ArrowUp"===e.key||"ArrowDown"===e.key||"ArrowLeft"===e.key||"ArrowRight"===e.key)switch(e.code){case"ArrowUp":if(e.stopPropagation(),e.preventDefault(),t.parentNode.parentNode.previousElementSibling&&t.parentNode.parentNode.previousElementSibling.classList.contains("dropdown-toggle")&&t.parentNode.parentNode.previousElementSibling.focus(),t.classList.contains("dropdown-toggle")&&"true"===t.getAttribute("aria-expanded")){n.classList.remove("hover-intent"),r.classList.remove("toggled-on"),t.setAttribute("aria-expanded","false");let e=t.parentNode.querySelector(".dropdown-item").innerText;t.setAttribute("aria-label",`${air_light_screenReaderText.expand_for} ${e}`),i.focus()}if("A"===t.tagName||"BUTTON"===t.tagName){if(!t.parentNode.previousElementSibling)return;let e=t.parentNode.previousElementSibling.querySelector("a"),n=t.parentNode.previousElementSibling.querySelector(".dropdown-toggle");n&&!t.querySelector(".dropdown-toggle")?n.focus():e.focus()}break;case"ArrowDown":if(e.stopPropagation(),e.preventDefault(),t.parentNode.parentNode.nextElementSibling&&t.parentNode.parentNode.nextElementSibling.classList.contains("dropdown-toggle")&&t.parentNode.parentNode.nextElementSibling.focus(),t.classList.contains("dropdown-toggle")&&"true"===t.getAttribute("aria-expanded")&&t.parentNode.querySelector(".sub-menu").querySelector("li:first-child").querySelector("a").focus(),t.classList.contains("dropdown-toggle")&&"false"===t.getAttribute("aria-expanded")&&!t.parentNode.parentNode.classList.contains("sub-menu")){t.click(),t.parentNode.querySelector(".sub-menu").querySelector("li:first-child").querySelector("a").focus();return}if(t.parentNode.parentNode.classList.contains("sub-menu")&&t.parentNode.nextElementSibling.querySelector("a").focus(),("A"===t.tagName||"BUTTON"===t.tagName)&&!t.classList.contains("dropdown-toggle")){if(!t.parentNode.nextElementSibling)return;let e=t.parentNode.nextElementSibling.querySelector("a"),n=t.parentNode.nextElementSibling.querySelector(".dropdown-toggle");t.classList.contains("dropdown-item")&&t.nextElementSibling&&(n=t.nextElementSibling)&&n.focus(),n&&!t.querySelector(".dropdown-toggle")?n.focus():e.focus()}break;case"ArrowLeft":if(e.stopPropagation(),e.preventDefault(),null===t.parentNode.previousElementSibling&&"main-menu"!==t.parentNode.parentNode.id){t.parentNode.parentNode.parentNode.querySelector(".dropdown-toggle").focus(),t.parentNode.parentNode.parentNode.querySelector(".dropdown-toggle").click();return}if(t.parentNode.previousElementSibling&&t.classList.contains("dropdown-toggle")&&"true"===t.getAttribute("aria-expanded")&&"main-menu"!==t.parentNode.parentNode.id&&t.parentNode.previousElementSibling.querySelector("a").focus(),t.classList.contains("dropdown-toggle")&&"false"===t.getAttribute("aria-expanded")&&"main-menu"!==t.parentNode.parentNode.id){n.classList.remove("hover-intent"),r.classList.remove("toggled-on"),t.setAttribute("aria-expanded","false");let e=t.parentNode.querySelector(".dropdown-item").innerText;t.setAttribute("aria-label",`${air_light_screenReaderText.expand_for} ${e}`),i.focus()}if("A"===t.tagName||"BUTTON"===t.tagName){if(t.previousElementSibling&&t.classList.contains("dropdown-toggle")&&"false"===t.getAttribute("aria-expanded"))return void t.previousElementSibling.focus();if(!t.parentNode.previousElementSibling)return;let e=t.parentNode.previousElementSibling.querySelector("a"),n=t.parentNode.previousElementSibling.querySelector(".dropdown-toggle");n?n.focus():e.focus()}break;case"ArrowRight":if(e.stopPropagation(),e.preventDefault(),t.classList.contains("dropdown-toggle")&&"true"===t.getAttribute("aria-expanded")&&"main-menu"!==t.parentNode.parentNode.id&&t.parentNode.querySelector(".sub-menu").querySelector("li:first-child").querySelector("a").focus(),t.nextElementSibling&&(t.nextElementSibling.focus(),t.classList.contains("dropdown-item")))return;if(t.classList.contains("dropdown-toggle")&&"false"===t.getAttribute("aria-expanded")&&"main-menu"!==t.parentNode.parentNode.id)return void t.click();if(t.classList.contains("dropdown-toggle")&&"true"===t.getAttribute("aria-expanded")&&"main-menu"!==t.parentNode.parentNode.id)return void t.parentNode.querySelector(".sub-menu").querySelector("li:first-child").querySelector("a").focus();if("A"===t.tagName||"BUTTON"===t.tagName){if(!t.parentNode.nextElementSibling)return;let e=t.parentNode.nextElementSibling.querySelector("a"),n=t.parentNode.nextElementSibling.querySelector(".dropdown-toggle");n?n.focus():e.focus()}}})})};window.addEventListener("resize",()=>{i(),l(),d(document.querySelectorAll(".menu-item"))}),document.body.classList.remove("no-js"),document.body.classList.add("js"),document.addEventListener("DOMContentLoaded",()=>{let s,m,p,f,h;s=new(e(o))({ease:"easeInQuad"},{easeInQuad:(e,t,n,o)=>n*(e/=o)*e+t,easeOutQuad:(e,t,n,o)=>-n*(e/=o)*(e-2)+t}),Array.from(document.querySelectorAll('a[href*="#"]:not([href="#"]):not(#top)')).forEach(e=>{s.registerTrigger(e);let t=e.hash.substring(1),n=document.getElementById(t);e.addEventListener("click",t=>{if(t.preventDefault(),e.classList.contains("nav-link")||e.classList.contains("dropdown-item")){document.body.classList.remove("js-nav-active");let e=document.documentElement,t=document.getElementById("main-navigation-wrapper"),n=t?.querySelector("ul"),o=document.getElementById("nav-toggle");e&&e.classList.remove("disable-scroll"),t&&t.classList.remove("is-active"),o&&(o.classList.remove("is-active"),o.setAttribute("aria-expanded","false")),n&&n.setAttribute("aria-expanded","false")}n?(s.move(n),window.history.pushState("","",e.hash),setTimeout(()=>{n.setAttribute("tabindex","-1"),n.focus()},500)):window.location.href=e.href})});let v=new(e(o))({duration:300,easing:"easeOutQuart"}),b=document.getElementById("top"),y=document.querySelectorAll('button, a, input, select, textarea, [tabindex]:not([tabindex="-1"])');function w(e){window.matchMedia("(prefers-reduced-motion: reduce)").matches?y[0].focus({focusVisible:e}):(v.move(y[0]),y[0].focus({preventScroll:!0,focusVisible:e}))}if(b&&(b.addEventListener("click",e=>{e.preventDefault(),w(!1)}),b.addEventListener("keydown",e=>{e.preventDefault(),w(!0)})),window.addEventListener("scroll",function(){let e=window.pageYOffset,t=document.documentElement.clientHeight;e>t&&b.classList.add("is-visible"),e(function(e,t){let n;if(!e.length||["#","tel:","mailto:","/"].some(t=>RegExp(`^${t}`,"g").test(e)))return!1;try{n=new URL(e)}catch(t){return console.log(`Invalid URL: ${e}`),!1}return!t.some(e=>n.host===e)})(e.href,m)).forEach(e=>{if(1===e.childElementCount&&"img"===e.children[0].tagName.toLowerCase())return!1;if(!e.classList.contains("no-external-link-label")){let o=e.textContent.trim().length?e.textContent.trim():n(e);if(o&&!e.getAttribute("aria-label")){let n="_blank"===e.target?`${o}: ${t("external_link")}, ${t("target_blank")}`:`${o}: ${t("external_link")}`;e.setAttribute("aria-label",n)}}["no-external-link-indicator","global-link","button"].some(t=>e.classList.contains(t))||(e.insertAdjacentHTML("beforeend",''),e.classList.add("is-external-link"))}),[...document.querySelectorAll("a")].forEach(e=>{if(""!==e.textContent.trim()||e.ariaLabel)return;let t=n(e);""!==t&&(e.ariaLabel=t)}),p=document.querySelectorAll("h1, h2, h3, h4, h5, h6")[0],f=document.querySelectorAll(".skip-link")[0],h=new(e(o)),f&&f.addEventListener("click",()=>{p.setAttribute("tabindex","-1"),p.focus(),h.move(p)}),new URLSearchParams(window.location.search).has("s")){let e=document.querySelector('main input[name="s"]');e&&e.focus({preventScroll:!0})}(()=>{let e=document.querySelector(".nav-primary");if(!e)return;let t=e.querySelectorAll(".menu-item"),n=document.querySelectorAll(".menu-item a, .dropdown button, .button-nav");document.getElementById("main-menu")&&(u(t),g(t,n),c(t),d(t))})(),document.getElementById("nav-toggle")?(r(document.getElementById("nav-toggle"),["click","keydown","keypress"],function(e){("click"===e.type||13===e.keyCode)&&(document.body.classList.toggle("js-nav-active"),window.scrollTo(0,0),"false"===document.getElementById("nav-toggle").getAttribute("aria-expanded")?document.getElementById("nav-toggle").setAttribute("aria-expanded","true"):document.getElementById("nav-toggle").setAttribute("aria-expanded","false"),document.getElementById("nav-toggle").getAttribute("aria-label")===air_light_screenReaderText.expand_toggle?document.getElementById("nav-toggle").setAttribute("aria-label",air_light_screenReaderText.collapse_toggle):document.getElementById("nav-toggle").setAttribute("aria-label",air_light_screenReaderText.expand_toggle),l(),[...document.getElementById("nav").querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled")).filter(e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)).forEach(e=>{e.addEventListener("keydown",a)}))}),document.querySelectorAll(".dropdown-toggle").forEach(e=>{r(e,["click","keydown","keypress"],l)}),i()):console.log("Warning: No nav-toggle found."),function(e,t){var n,o,r="string"==typeof e?document.querySelectorAll(e):e,i="js-reframe";"length"in r||(r=[r]);for(var a=0;a-1)return;var s=l.getAttribute("height")||l.offsetHeight,d=l.getAttribute("width")||l.offsetWidth,c=("string"==typeof s?parseInt(s):s)/("string"==typeof d?parseInt(d):d)*100,u=document.createElement("div");u.className=i;var g=u.style;g.position="relative",g.width="100%",g.paddingTop="".concat(c,"%");var m=l.style;m.position="absolute",m.width="100%",m.height="100%",m.left="0",m.top="0",null==(n=l.parentNode)||n.insertBefore(u,l),null==(o=l.parentNode)||o.removeChild(l),u.appendChild(l)}}(".wp-has-aspect-ratio iframe")})}(); //# sourceMappingURL=front-end.js.map