(function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}if("function"==typeof window.CustomEvent)return!1;t.prototype=window.Event.prototype,window.CustomEvent=t})();const overlayContent=function(){var t={},e="",n="",i="overlay-panel",o="inner-panel",c="overlay-close",s="enabled";return t.add=function(s){if(!document.querySelector("."+i)){e=document.createElement("div"),e.className=i,n=document.createElement("div"),n.className=o,e.appendChild(n);var a=document.createElement("div");a.className=c,a.innerHTML="<span></span><span></span>",e.appendChild(a),a.addEventListener("click",function(e){t.hide()},!1),null!=document.body&&document.body.appendChild(e),document.addEventListener("keydown",function(t){var e=window.event?window.event:t;switch(e.keyCode){case 27:var n=document.querySelector("."+c);n&&n.click()}})}},t.show=function(i){t.add(),n.innerHTML=i,e.classList.add(s)},t.hide=function(){n.innerHTML="",e.classList.remove(s)},t}();(function(){const t=document.getElementById("menu-toggle"),e=document.getElementById("nav-panel"),n=document.getElementById("identity"),i=function(){e.classList.contains("active")?(t.classList.remove("active"),e.classList.remove("active"),n.classList.remove("white-tint"),setTimeout(function(){e.classList.add("hidden"),t.classList.remove("active"),n.classList.remove("white-tint")},700),c()):(o(),t.classList.add("active"),e.classList.add("active"),n.classList.add("white-tint"),e.classList.remove("hidden"))},o=function(){document.documentElement;var t=window.pageYOffset||document.documentElement.scrollTop;document.body.classList.add("no-scroll"),document.body.style.top=-t+"px",document.body.addEventListener("touchmove",s,{passive:!1})},c=function(){document.body.classList.remove("no-scroll"),document.body.style.top="",document.body.removeEventListener("touchmove",s,!1)},s=function(t){t.preventDefault()};try{t.addEventListener("click",function(t){i()},!1)}catch(t){}})();class Swipe{constructor(t){this.xDown=null,this.yDown=null,this.element="string"==typeof t?document.querySelector(t):t,this.element.addEventListener("touchstart",function(t){this.xDown=t.touches[0].clientX,this.yDown=t.touches[0].clientY}.bind(this),!1)}onLeft(t){return this.onLeft=t,this}onRight(t){return this.onRight=t,this}onUp(t){return this.onUp=t,this}onDown(t){return this.onDown=t,this}handleTouchMove(t){if(this.xDown&&this.yDown){var e=t.touches[0].clientX,n=t.touches[0].clientY;if(this.xDiff=this.xDown-e,this.yDiff=this.yDown-n,Math.abs(this.xDiff)>Math.abs(this.yDiff))this.xDiff>0?this.onLeft():this.onRight();else if(this.yDiff>0)try{this.onUp()}catch(t){}else try{this.onDown()}catch(t){}this.xDown=null,this.yDown=null}}kill(){this.element.removeEventListener("touchmove",function(t){},!1)}run(){this.element.addEventListener("touchmove",function(t){this.handleTouchMove(t)}.bind(this),!1)}}class EventNode{constructor(){var t=document.createTextNode(null);this.addEventListener=t.addEventListener.bind(t),this.removeEventListener=t.removeEventListener.bind(t),this.dispatchEvent=t.dispatchEvent.bind(t)}}class Utilities{constructor(){}static domready(t){if("function"==typeof t)return"interactive"===document.readyState||"complete"===document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}static debounce(t,e,n){var i;return function(){var o=this,c=arguments,s=function(){i=null,n||t.apply(o,c)},a=n&&!i;clearTimeout(i),i=setTimeout(s,e),a&&t.apply(o,c)}}static throttle(t,e){let n;return function(){const i=arguments,o=this;n||(t.apply(o,i),n=!0,setTimeout(()=>n=!1,e))}}static merge_objects(){var t={},e=!1,n=0;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],n++);for(var i=function(n){for(var i in n)n.hasOwnProperty(i)&&(e&&"[object Object]"===Object.prototype.toString.call(n[i])?t[i]=extend(t[i],n[i]):t[i]=n[i])};n<arguments.length;n++){var o=arguments[n];i(o)}return t}static get_document_height(){let t=document.body,e=document.documentElement,n=Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);return n}static get_viewport_width(){let t=window.innerWidth||document.documentElement.clientWidth;return t}static get_viewport_height(){let t=window.innerHeight||document.documentElement.clientHeight;return t}static is_in_viewport(t){let e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}static get_query_string(t,e){let n=e||window.location.href,i=new RegExp("[?&]"+t+"=([^&#]*)","i"),o=i.exec(n);return o?o[1]:null}static get_cookie(t){let e="; "+document.cookie,n=e.split("; "+t+"=");if(2==n.length)return n.pop().split(";").shift()}static add_listener(t,e,n,i){"function"==typeof e&&(i=n,n=e,e=window),i=!!i,e="string"==typeof e?document.querySelector(e):e,e&&e.addEventListener(t,n,i)}static remove_listener(t,e,n,i){"function"==typeof e&&(i=n,n=e,e=window),i=!!i,e="string"==typeof e?document.querySelector(e):e,e&&e.removeEventListener(t,n,i)}static onClickTap(t,e){if(!e||"function"!=typeof e)return;let n,i,o,c,s,a=function(t){n=!0,i=t.changedTouches[0].pageX,o=t.changedTouches[0].pageY};const d=function(t){c=t.changedTouches[0].pageX-i,s=t.changedTouches[0].pageY-o,Math.abs(c)>=7||Math.abs(s)>=10||e(t)},r=function(t){n?n=!1:e(t)};t.addEventListener("touchstart",a,!1),t.addEventListener("touchend",d,!1),t.addEventListener("click",r,!1)}static getTransitionType(){let t,e=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in n)if(void 0!==e.style[t])return n[t]}static getAnimationType(){let t,e=document.createElement("fakeelement"),n={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"};for(t in n)if(void 0!==e.style[t])return n[t]}}