text: /*! vilva 1.1.3 2021-06-14 1:02:55 PM */
  
  var vilva=vilva||{};function vilvaDomReady(e){if("function"==typeof e)return"interactive"===document.readyState||"complete"===document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function vilvaToggleAttribute(e,t,o,n){void 0===o&&(o=!0),void 0===n&&(n=!1),e.getAttribute(t)!==o?e.setAttribute(t,o):e.setAttribute(t,n)}function vilvaFindParents(e,o){var n=[];return function e(t){t=t.parentNode;t instanceof HTMLElement&&(t.matches(o)&&n.push(t),e(t))}(e),n}vilva.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!1),t},vilva.coverModals={init:function(){document.querySelector(".cover-modal")&&(this.onToggle(),this.closeOnEscape(),this.hideAndShowModals(),this.keepFocusInModal())},onToggle:function(){document.querySelectorAll(".cover-modal").forEach(function(e){e.addEventListener("toggled",function(e){var e=e.target,t=document.body;e.classList.contains("active")?t.classList.add("showing-modal"):(t.classList.remove("showing-modal"),t.classList.add("hiding-modal"),setTimeout(function(){t.classList.remove("hiding-modal")},500))})})},closeOnEscape:function(){document.addEventListener("keydown",function(e){27===e.keyCode&&(e.preventDefault(),document.querySelectorAll(".cover-modal.active").forEach(function(e){this.untoggleModal(e)}.bind(this)))}.bind(this))},hideAndShowModals:function(){var i=document,c=window,e=i.querySelectorAll(".cover-modal"),r=i.documentElement.style,s=i.querySelector("#wpadminbar");function d(e){var t,o=c.pageYOffset;return s?(t=o+s.getBoundingClientRect().height,e?-t:t):0===o?0:-o}function u(){return{"overflow-y":c.innerHeight>i.documentElement.getBoundingClientRect().height?"hidden":"scroll",position:"fixed",width:"100%",top:d(!0)+"px",left:0}}e.forEach(function(l){l.addEventListener("toggle-target-before-inactive",function(e){var t=u(),o=c.pageYOffset,n=Math.abs(d())-o+"px",a=c.matchMedia("(max-width: 600px)");e.target===l&&(Object.keys(t).forEach(function(e){r.setProperty(e,t[e])}),c.vilva.scrolled=parseInt(t.top,10),s&&(i.body.style.setProperty("padding-top",n),a.matches&&(o>=d()?l.style.setProperty("top",0):l.style.setProperty("top",d()-o+"px"))),l.classList.add("show-modal"))}),l.addEventListener("toggle-target-after-inactive",function(e){e.target===l&&setTimeout(function(){var e=vilva.toggles.clickedEl;l.classList.remove("show-modal"),Object.keys(u()).forEach(function(e){r.removeProperty(e)}),s&&(i.body.style.removeProperty("padding-top"),l.style.removeProperty("top")),!1!==e&&(e.focus(),e=!1),c.scrollTo(0,Math.abs(c.vilva.scrolled+d())),c.vilva.scrolled=0},500)})})},untoggleModal:function(e){var t,o=!1;e.dataset.modalTargetString&&(t=e.dataset.modalTargetString,o=document.querySelector('*[data-toggle-target="'+t+'"]')),o?o.click():e.classList.remove("active")},keepFocusInModal:function(){var r=document;r.addEventListener("keydown",function(e){var t,o,n,a,l,i,c=vilva.toggles.clickedEl;c&&r.body.classList.contains("showing-modal")&&(n=c.dataset.toggleTarget,i="input, a, button",a=r.querySelector(n),t=a.querySelectorAll(i),t=Array.prototype.slice.call(t),".menu-modal"===n&&(o=(o=window.matchMedia("(min-width: 9999px)").matches)?".expanded-menu":".mobile-menu",(t=t.filter(function(e){return null!==e.closest(o)&&null!==e.offsetParent})).unshift(r.querySelector(".close-nav-toggle")),(l=r.querySelector(".menu-bottom > nav"))&&l.querySelectorAll(i).forEach(function(e){t.push(e)})),".main-menu-modal"===n&&(o=(o=window.matchMedia("(min-width: 1025px)").matches)?".expanded-menu":".mobile-menu",(t=t.filter(function(e){return null!==e.closest(o)&&null!==e.offsetParent})).unshift(r.querySelector(".close-main-nav-toggle")),(l=r.querySelector(".menu-bottom > nav"))&&l.querySelectorAll(i).forEach(function(e){t.push(e)})),c=t[t.length-1],a=t[0],n=r.activeElement,l=9===e.keyCode,!(i=e.shiftKey)&&l&&c===n&&(e.preventDefault(),a.focus()),i&&l&&a===n&&(e.preventDefault(),c.focus()))})}},vilva.modalMenu={init:function(){this.expandLevel()},expandLevel:function(){document.querySelectorAll(".modal-menu").forEach(function(e){e=e.querySelector(".current-menu-item");e&&vilvaFindParents(e,"li").forEach(function(e){e=e.querySelector(".submenu-toggle");e&&vilva.toggles.performToggle(e,!0)})})}},vilva.toggles={clickedEl:!1,init:function(){this.toggle()},performToggle:function(e,n){var a,l,i=this,c=document,r=e,s=r.dataset.toggleTarget,d="active";c.querySelectorAll(".show-modal").length||(i.clickedEl=c.activeElement),(a="next"===s?r.nextSibling:c.querySelector(s)).classList.contains(d)?a.dispatchEvent(vilva.createEvent("toggle-target-before-active")):a.dispatchEvent(vilva.createEvent("toggle-target-before-inactive")),l=r.dataset.classToToggle||d,e=0,a.classList.contains("cover-modal")&&(e=10),setTimeout(function(){var e,t=a.classList.contains("sub-menu")?r.closest(".menu-item").querySelector(".sub-menu"):a,o=r.dataset.toggleDuration;"slidetoggle"!==r.dataset.toggleType||n||"0"===o?t.classList.toggle(l):vilvaMenuToggle(t,o),("next"===s||a.classList.contains("sub-menu")?r:c.querySelector('*[data-toggle-target="'+s+'"]')).classList.toggle(d),vilvaToggleAttribute(r,"aria-expanded","true","false"),i.clickedEl&&-1!==r.getAttribute("class").indexOf("close-")&&vilvaToggleAttribute(i.clickedEl,"aria-expanded","true","false"),r.dataset.toggleBodyClass&&c.body.classList.toggle(r.dataset.toggleBodyClass),r.dataset.setFocus&&(e=c.querySelector(r.dataset.setFocus))&&(a.classList.contains(d)?e.focus():e.blur()),a.dispatchEvent(vilva.createEvent("toggled")),a.classList.contains(d)?a.dispatchEvent(vilva.createEvent("toggle-target-after-active")):a.dispatchEvent(vilva.createEvent("toggle-target-after-inactive"))},e)},toggle:function(){var o=this;document.querySelectorAll("*[data-toggle-target]").forEach(function(t){t.addEventListener("click",function(e){e.preventDefault(),o.performToggle(t)})})}},vilvaDomReady(function(){vilva.toggles.init(),vilva.coverModals.init()});