Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(){var e=function(e){return e.replace(/^\s+|\s+$/g,"")},t=function(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")},n=function(e,t,n){for(var o=0;o{e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout(()=>{e.style.display=null,e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)},blogunSlideDown=(e,t=500)=>{e.style.removeProperty("display");let n=window.getComputedStyle(e).display;"none"===n&&(n="block"),e.style.display=n;let o=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=o+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)},blogunScrollTo=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 i(){var o=0u||0>l&&r{Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1{var e,t,n;document.body.classList.contains("blogun-is-mobile")||(n=window.innerWidth,document.querySelectorAll(".sub-menu").forEach(o=>{o.style.visibility="visible";const i=o.getBoundingClientRect();t=i.left+window.pageXOffset,e=t+i.width,o.removeAttribute("style"),e>n?o.closest("li").classList.add("opens-left"):0>t&&o.closest("li").classList.add("opens-right")}))},o=e=>{var t;return function(){var n=arguments;t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(function(){e.apply(this,n)})}},i=()=>{null!==e&&(450{if(blogun_vars["sticky-header"].enabled){var e=document.getElementById("blogun-header"),t=document.getElementById("blogun-header-inner"),n=document.getElementById("wpadminbar");if(document.body.classList.contains("blogun-header-layout-3")&&(e=document.querySelector("#blogun-header .blogun-nav-container"),t=document.querySelector("#blogun-header .blogun-nav-container .blogun-container")),window.outerWidth<=blogun_vars["responsive-breakpoint"])e=document.getElementById("blogun-header"),t=document.getElementById("blogun-header-inner");if(null!==e&&null!==t){var i,r,l=e.getBoundingClientRect().bottom,s=0>=l-i;i=null===n?0:600>=window.outerWidth?0:n.getBoundingClientRect().height;var c=function(){i=null===n?0:600>=window.outerWidth?0:n.getBoundingClientRect().height,l=e.getBoundingClientRect().bottom,s=0>=l-i,a()},a=function(){let n=blogun_vars["sticky-header"].hide_on;n.includes("desktop")&&992<=window.innerWidth&&(s=!1),n.includes("tablet")&&481<=window.innerWidth&&992>window.innerWidth&&(s=!1),n.includes("mobile")&&481>window.innerWidth&&(s=!1),s?document.body.classList.contains("blogun-sticky-header")||((r=document.createElement("div")).setAttribute("id","blogun-sticky-placeholder"),r.style.height=t.getBoundingClientRect().height+"px",e.appendChild(r),document.body.classList.add("blogun-sticky-header"),document.body.style.setProperty("--blogun-sticky-h-offset",e.offsetHeight+20+"px")):(document.body.classList.contains("blogun-sticky-header")&&(document.body.classList.remove("blogun-sticky-header"),document.getElementById("blogun-sticky-placeholder").remove()),document.body.style.removeProperty("--blogun-sticky-h-offset"))};"true"!==e.getAttribute("data-scroll-listener")&&(window.addEventListener("scroll",function(){o(c())}),e.setAttribute("data-scroll-listener","true")),"true"!==e.getAttribute("data-resize-listener")&&(window.addEventListener("resize",function(){o(c())}),e.setAttribute("data-resize-listener","true")),blogunTriggerEvent(window,"scroll")}}};function l(){for(var e=this;!e.classList.contains("blogun-nav");)"li"===e.tagName.toLowerCase()&&(e.classList.contains("hovered")?e.classList.remove("hovered"):e.classList.add("hovered")),e=e.parentElement}var s=()=>{document.body.style.setProperty("--blogun-screen-width",document.body.clientWidth+"px")},c=(e=0)=>{if(null!==document.getElementById("blogun-preloader")){var t=()=>{document.body.classList.contains("blogun-loaded")||(document.body.classList.add("blogun-loading"),setTimeout(function(){document.body.classList.replace("blogun-loading","blogun-loaded"),blogunTriggerEvent(document.body,"blogun-preloader-done")},250))};return 0{window.innerWidth<=blogun_vars["responsive-breakpoint"]?document.body.classList.add("blogun-is-mobile"):document.body.classList.contains("blogun-is-mobile")&&(document.body.classList.remove("blogun-is-mobile"),blogunTriggerEvent(document,"blogun-close-mobile-menu"))};document.addEventListener("DOMContentLoaded",function(){var e,o;c(5e3),document.body.classList.contains("blogun-menu-accessibility")&&document.querySelectorAll(".blogun-nav").forEach(e=>{e.querySelectorAll("ul").forEach(e=>{e.parentNode.setAttribute("aria-haspopup","true")}),e.querySelectorAll("a").forEach(e=>{e.addEventListener("focus",l,!0),e.addEventListener("blur",l,!0)})}),document.body.addEventListener("keydown",function(e){document.body.classList.add("using-keyboard")}),document.body.addEventListener("mousedown",function(e){document.body.classList.remove("using-keyboard")}),i(),(()=>{const e=new blogunScrollTo({tolerance:null===document.getElementById("wpadminbar")?0:document.getElementById("wpadminbar").getBoundingClientRect().height}),t=document.getElementsByClassName("blogun-smooth-scroll");for(var n=0;n{e.addEventListener("mouseenter",function(){document.querySelectorAll(".menu-item-has-children").forEach(e=>{e.classList.remove("hovered")})})}),document.querySelectorAll(".blogun-nav .menu-item-has-children").forEach(t=>{t.addEventListener("mouseleave",function(){t.classList.add("hovered"),null!==e&&(clearTimeout(e),e=null),e=setTimeout(()=>{t.classList.remove("hovered"),t.querySelectorAll(".menu-item-has-children").forEach(e=>{e.classList.remove("hovered")})},700)})}),(()=>{if(document.body.classList.contains("blogun-has-comments-toggle")&&null!=document.getElementById("blogun-comments-toggle")){var e=e=>{void 0!==e&&e.preventDefault(),document.body.classList.contains("comments-visible")?(document.body.classList.remove("comments-visible"),document.getElementById("blogun-comments-toggle").querySelector("span").innerHTML=blogun_vars.strings.comments_toggle_show):(document.body.classList.add("comments-visible"),document.getElementById("blogun-comments-toggle").querySelector("span").innerHTML=blogun_vars.strings.comments_toggle_hide)};null===document.getElementById("blogun-comments-toggle")||-1===location.href.indexOf("#comment")&&-1===location.href.indexOf("respond")||e(),document.getElementById("blogun-comments-toggle").addEventListener("click",e)}})(),(()=>{var e=document.querySelectorAll(".blogun-search");if(0!==e.length){e.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),e.classList.contains("blogun-active")?o(e):n(e)})}),document.querySelectorAll(".blogun-search-close").forEach(e=>e.addEventListener("click",function(t){t.preventDefault(),e.classList.contains("blogun-active")||(o(document.querySelector(".blogun-search")),document.querySelector(".blogun-search").focus())}));var n=function(e){document.querySelectorAll(".blogun-search-form").forEach(function(e){if(!e)return!1;document.addEventListener("keydown",function(t){var n,o,i,r,l;i=(o=e.querySelectorAll("input, a, button"))[o.length-1],n=o[0],r=9===t.keyCode,!(l=t.shiftKey)&&r&&i===document.activeElement&&(t.preventDefault(),n.focus()),l&&r&&n===document.activeElement&&(t.preventDefault(),i.focus())})}),document.body.classList.add("blogun-search-visible"),setTimeout(function(){e.classList.add("blogun-active"),null!==e.nextElementSibling&&null!==e.nextElementSibling.querySelector("input")&&(e.nextElementSibling.querySelector("input").focus(),e.nextElementSibling.querySelector("input").select())},100),document.addEventListener("keydown",i),t.addEventListener("click",r)},o=function(e){document.body.classList.remove("blogun-search-visible"),e.classList.remove("blogun-active"),document.removeEventListener("keydown",i),t.removeEventListener("click",r)},i=function(e){27==e.keyCode&&document.querySelectorAll(".blogun-search").forEach(e=>{o(e)})},r=function(e){null===e.target.closest(".blogun-search-container")&&null===e.target.closest(".blogun-search")&&document.querySelectorAll(".blogun-search").forEach(e=>{o(e)})}}})(),(()=>{var e=t,n=document.querySelector("#blogun-header-inner .blogun-nav");document.querySelectorAll(".blogun-mobile-nav > button").forEach(e=>{e.addEventListener("click",function(e){e.preventDefault(),document.body.parentNode.classList.contains("is-mobile-menu-active")?i():o()},!1)}),document.addEventListener("keydown",function(e){var t,n,o,i,r,l;n=document.querySelector(".blogun-mobile-nav"),l=document.querySelector(".blogun-hamburger-blogun-primary-nav"),i=(o=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))[o.length-1],t=l,e.keyCode,r=e.shiftKey;let s="Tab"===e.key||9===e.keyCode;if(document.body.parentNode.classList.contains("is-mobile-menu-active")){if(!s)return;r?document.activeElement===t&&(i.focus(),e.preventDefault()):document.activeElement===i&&(t.focus(),e.preventDefault())}});var o=function(t){var o=document.querySelectorAll(".site-header");document.body.classList.contains("blogun-is-mobile")&&o.forEach(function(e){if(!e)return!1}),document.body.parentNode.classList.add("is-mobile-menu-active"),document.addEventListener("keyup",l),null!==e&&e.addEventListener("click",r),document.querySelectorAll("#blogun-header .blogun-nav").forEach(e=>{e.addEventListener("click",s)}),blogunSlideDown(n,350)},i=function(t){document.body.parentNode.classList.remove("is-mobile-menu-active"),document.removeEventListener("keyup",l),null!==e&&e.removeEventListener("click",r),document.querySelectorAll("#blogun-header .blogun-nav > ul > .blogun-open").forEach(e=>{c(e)}),n.querySelectorAll(".hovered").forEach(e=>{e.classList.remove("hovered")}),document.body.classList.contains("blogun-is-mobile")?(document.querySelectorAll("#blogun-header .blogun-nav").forEach(e=>{e.removeEventListener("click",s)}),blogunSlideUp(n,250)):n.style.display=null},r=function(e){null===e.target.closest(".blogun-hamburger")&&null===e.target.closest(".site-navigation")&&i()},l=function(e){27==e.keyCode&&i()},s=function(e){e.target.parentElement.querySelectorAll(".sub-menu").length&&(e.preventDefault(),"button"===e.target.type&&c(e.target.parentElement))},c=e=>{e.classList.contains("blogun-open")?(e.classList.remove("blogun-open"),e.querySelectorAll(".sub-menu").forEach(e=>{blogunSlideUp(e,350)}),e.querySelectorAll("li").forEach(e=>{e.classList.remove("blogun-open"),e.querySelectorAll(".sub-menu").forEach(e=>{blogunSlideUp(e,350)})})):(e.querySelectorAll(".sub-menu").forEach(t=>{e===t.parentElement&&blogunSlideDown(t,350)}),e.classList.add("blogun-open"))};document.addEventListener("blogun-close-mobile-menu",i)})(),a(),n(),null!==(o=document.querySelector(".single .comments-link"))&&o.addEventListener("click",function(e){document.body.classList.contains("blogun-has-comments-toggle")&&!document.body.classList.contains("comments-visible")&&document.getElementById("blogun-comments-toggle").click()}),(()=>{var e=null;document.querySelectorAll(".blogun-header-widget__cart .blogun-widget-wrapper").forEach(e=>{e.addEventListener("mouseenter",function(){e.classList.remove("dropdown-visible")})}),document.querySelectorAll(".blogun-header-widget__cart .blogun-widget-wrapper").forEach(t=>{t.addEventListener("mouseleave",function(){t.classList.add("dropdown-visible"),null!==e&&(clearTimeout(e),e=null),e=setTimeout(()=>{t.classList.remove("dropdown-visible")},700)})})})(),r(),s()}),window.addEventListener("load",function(){c()}),window.addEventListener("scroll",function(){o(i())}),window.addEventListener("resize",function(){o(n()),o(a()),o(s())}),blogunTriggerEvent(document.body,"blogun-ready"),window.blogun=window.blogun||{},window.blogun.preloader=c,window.blogun.stickyHeader=r,window.App={},App.config={headroom:{enabled:!0,options:{classes:{initial:"headroom",pinned:"is-pinned",unpinned:"is-unpinned",top:"is-top",notTop:"is-not-top",bottom:"is-bottom",notBottom:"is-not-bottom",frozen:"is-frozen"}}},ajax:{enabled:!0},cursorFollower:{enabled:!0,disableBreakpoint:"992"}},App.html=document.querySelector("html"),App.body=document.querySelector("body"),window.onload=function(){App.config.cursorFollower.enabled&&u.init()};const u=function(){const e=document.querySelector(".blogun-js-cursor");let t,n,o,i,r,l,s,c,a;function u({target:t}){if(e.classList.add("is-active"),t.getAttribute("data-cursor-label")&&(App.body.classList.add("is-cursor-active"),e.classList.add("has-label"),n.innerHTML=t.getAttribute("data-cursor-label")),t.getAttribute("data-cursor-icon")){App.body.classList.add("is-cursor-active"),e.classList.add("has-icon");t.getAttribute("data-cursor-icon")}}function d({target:t}){App.body.classList.remove("is-cursor-active"),e.classList.remove("is-active"),e.classList.remove("has-label"),e.classList.remove("has-icon"),n.innerHTML="",o.innerHTML=""}function m(){e&&(c=document.querySelectorAll(["button","a","input","[data-cursor]","[data-cursor-label]","[data-cursor-icon]","textarea"])).forEach(e=>{e.addEventListener("mouseenter",u),e.addEventListener("mouseleave",d)})}function g(){e&&c.forEach(e=>{e.removeEventListener("mouseenter",u),e.removeEventListener("mouseleave",d)})}return{init:function(){if(!e)return;t=e.querySelector(".blogun-js-follower"),n=e.querySelector(".blogun-js-label"),o=e.querySelector(".blogun-js-icon"),i=-100,r=-100,l=e.offsetWidth/2,s=e.offsetHeight/2,a=!1,a=!0,e.classList.add("is-enabled"),document.addEventListener("mousedown",t=>{e.classList.add("is-mouse-down")}),document.addEventListener("mouseup",t=>{e.classList.remove("is-mouse-down")}),document.addEventListener("mousemove",e=>{i=e.clientX,r=e.clientY});const c=()=>{e.style.transform=`translate(${i-l}px, ${r-s}px)`,requestAnimationFrame(c)};requestAnimationFrame(c),m(),a&&App.config.cursorFollower.disableBreakpoint&&((0{let t=0(n=e).offsetTop+n.offsetHeight?(t.style.position="static",d.style.marginBottom="0"):(d.style.marginBottom=t.offsetHeight+"px",t.style.position="fixed")}g=document.getElementById("main"),(b=document.getElementById("colophon")).style.left="0",b.style.right="0",b.style.zIndex="-1",m(g,b),window.addEventListener("resize",function(){m(g,b)}),window.addEventListener("scroll",function(){m(g,b)})}var g,b;let y=document.querySelector(".blogun-darkmode"),p=localStorage.getItem("theme");p&&(document.documentElement.setAttribute("data-theme",p),"dark"===p&&null!=y&&(y.checked=!0)),null!=y?y.addEventListener("change",function(e){e.target.checked?(document.documentElement.setAttribute("data-theme","dark"),localStorage.setItem("theme","dark")):(document.documentElement.setAttribute("data-theme","light"),localStorage.setItem("theme","light"))},!1):localStorage.removeItem("theme")}(),function(e){e(document).ready(function(){let t=e(".ticker-slider-items"),n="left";if(e("body").hasClass("rtl")&&(hrtl=!0,n="right"),t.length){let o=t.find(".ticker-slider-wrap").marquee({duration:14e3,gap:0,delayBeforeStart:0,direction:n,duplicated:!0,startVisible:!0,pauseOnHover:!0});t.on("click",".ticker-slider-pause",function(){e(this).find("i").toggleClass("fa-pause fa-play"),o.marquee("toggle")})}e(".masonries").length&&setTimeout(()=>{e(".masonries").masonry({itemSelector:".masonries > *"})},500)})}(jQuery);