(()=>{var e={958:()=>{!function(e){"use strict";function t(){const t=e(".site-header"),n=e(".site-header__wrapper"),o=e(".header-top-offset"),i=e("#wpadminbar")||0;let a=n.outerHeight();const s=o.data("offset-top-gap")||0;i.length&&(a+=i.outerHeight()),s&&(a+=s),t.css("padding-top",n.outerHeight()),o.css("top",a)}e(".main-navigation ul li.menu-item-has-children").each(function(){e(this).find(".submenu-toggle").length||e(this).find("> a").after('')}),e(document).on("click",".submenu-toggle",function(t){t.preventDefault(),t.stopPropagation(),e(this).toggleClass("is-active"),e(this).parent().toggleClass("is-active"),e(this).parent().children(".sub-menu").slideToggle()}),e(document).on("click",function(t){e(t.target).closest(".main-navigation").length||(e(".main-navigation li.menu-item-has-children").removeClass("is-active"),e(".submenu-toggle").removeClass("is-active"))}),e(document).on("keydown",".submenu-toggle",function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e(this).click())}),function(){const t=e(".site-header"),n=e(".header-top-ad"),o=e("#wpadminbar");let i=!1;function a(){const a=e(window).scrollTop(),s=function(){let e=0;return o.length&&(e+=o.outerHeight()),n.length&&n.is(":visible")&&(e+=n.outerHeight()),e}();a>s&&!i?(i=!0,t.addClass("is-fixed"),e("body").addClass("header-fixed")):a<=s&&i&&(i=!1,t.removeClass("is-fixed"),e("body").removeClass("header-fixed"))}let s=!1;e(window).on("scroll",function(){s||(requestAnimationFrame(function(){a(),s=!1}),s=!0)}),e(window).on("resize",function(){a()}),a()}(),t(),function(){function t(){const t=e(".site-header"),n=e("#wpadminbar");let o=0;return n.length&&(o+=n.outerHeight()),t.length&&(o+=t.outerHeight()),o}function n(t,n){const o=e(window).scrollTop(),i=Math.abs(t-n-o),a=Math.max(500,Math.min(2500,1.2*i));return Math.round(a)}if(window.location.hash){const o=window.location.hash;history.replaceState(null,null,window.location.pathname+window.location.search),e("html, body").scrollTop(0),history.replaceState(null,null,o);const i=o.substring(1),a=e("#"+i);if(a.length){const o=t(),i=a.offset().top,s=n(i,o);e("html, body").animate({scrollTop:i-o-20},s)}}e(document).on("click",'a[href*="#"]',function(o){const i=e(this).attr("href").split("#"),a=i[0],s=i[1];if(!s)return;const r=e("#"+s);if(r.length&&(""===a||a===window.location.pathname||a===window.location.pathname+"/"||a===window.location.pathname.replace(/\/$/,"")||a===window.location.pathname.replace(/\/$/,"")+"/")){o.preventDefault();const i=t(),a=r.offset().top,l=n(a,i);e("html, body").animate({scrollTop:a-i-20},l),history.pushState(null,null,"#"+s)}}),e(window).on("popstate",function(){if(window.location.hash){const o=window.location.hash.substring(1),i=e("#"+o);if(i.length){const o=t(),a=i.offset().top,s=n(a,o);e("html, body").animate({scrollTop:a-o-20},s)}}})}(),e(window).on("resize",function(){t()}),e(document).on("click",".site-header__user-menu-toggle",function(t){t.preventDefault(),e(this).parent().toggleClass("is-active"),e(".site-header__search-toggle").removeClass("is-active"),e(".site-header__search-wrap").removeClass("is-active")}),e(document).on("click",function(t){const n=e(".site-header__user-menu-toggle").parent();e(t.target).closest(".site-header__user-menu-toggle, .site-header__user-menu").length||n.removeClass("is-active")}),e(document).on("click",".site-header__nav-toggle",function(){e(".site-header__mobile").addClass("is-active"),e("html").addClass("off-scroll"),e(".site-header__search-wrap").removeClass("is-active")}),e(document).on("click",".mobile-menu-close",function(){e(".site-header__mobile").removeClass("is-active"),e("html").removeClass("off-scroll")}),e(document).on("click",".site-header__search-toggle",function(){e(this).toggleClass("is-active"),e(".site-header__search-wrap").toggleClass("is-active"),e(".site-header__user-menu-toggle").parent().removeClass("is-active")}),e(document).on("click",".site-header__search-close",function(){e(".site-header__search-wrap").removeClass("is-active")})}(jQuery)},5584:()=>{!function(e){"use strict";let t,n=!1;window.onloadCallback=function(){document.querySelectorAll(".g-recaptcha").forEach(e=>{let t="";t=e.dataset.sitekey?e.dataset.sitekey:siteConfig.google_captcha_sitekey,e.dataset.rendered||(grecaptcha.render(e,{sitekey:t}),e.dataset.rendered=!0)})},document.addEventListener("DOMContentLoaded",function(e){if(n)return;n=!0;const t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit",t.defer=!0,t.async=!0,document.head.appendChild(t)}),e(document).on("click","#open-bigidcmp",function(e){e.preventDefault(),bigidcmp.showWidget()}),document.addEventListener("DOMContentLoaded",()=>{const e=new URL(window.location.href),t=new URLSearchParams(e.search);t.has("clear_cache")&&(t.delete("clear_cache"),e.search=t.toString(),window.history.replaceState({},"",e.toString()))}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".g-recaptcha").forEach(function(e,n){"newsletter-signup"===e.dataset.widgetId&&(t=n)})});const o=e(".global-signup-modal"),i="global-signup-form-submitted",a="global-signup-modal-dismissed",s="global-signup-modal-denied",r="global-signup-modal-permanent";function l(){o.addClass("active")}e(document).ready(function(){e(".footer-top__widget .widget-title").append(''),e(document).on("click",".footer-top__widget .widget-title",function(){e(window).outerWidth()<=767&&(e(this).toggleClass("is-active"),e(this).next('[class*="menu-"]').slideToggle())})}),e(document).on("click",".global-signup-form-button.join-today-btn",function(){const t=e(this).parents(".global-signup-form").find('input[name="newsletterProviderId[]"]:checked').map(function(){return e(this).val()}).get(),n=e(this).parents(".global-signup-form");if(0===t.length)return n.find(".global-signup-form-error").remove(),void n.prepend('Please select at least one newsletter provider
');n.find(".global-signup-form-container.step-1").addClass("hidden"),n.find(".global-signup-form-error").remove(),n.find(".global-signup-form-container.step-2").removeClass("hidden"),n.find(".global-signup-form-container.step-3").addClass("hidden")}),e(document).on("click",".global-signup-form-button.no-thanks-btn",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-modal");t.removeClass("active"),t.find(".global-signup-form").find("input").val(""),localStorage.setItem(s,Date.now())}),e(document).on("click",".global-signup-modal-close-btn, .signup-form-widget-close",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-modal");t.removeClass("active"),t.find(".global-signup-form").find("input").val(""),localStorage.setItem(a,Date.now())}),e(document).on("click",".global-signup-form-button.back-btn",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-form");t.find(".global-signup-form-container.step-2").addClass("hidden"),t.find(".global-signup-form-container.step-1").removeClass("hidden"),t.find(".global-signup-form-container.step-3").addClass("hidden"),t.find(".global-signup-form-error").remove()}),e(document).on("submit",".global-signup-form",function(n){e(this).find(".global-signup-form-error").remove(),n.preventDefault();const o=e(this),a=o.find('input[name="email"]').val(),s=o.find('input[name="zip"]').val(),l=o.find('input[name="first-name"]').val(),c=o.find('input[name="last-name"]').val(),d=o.find('input[name="newsletterProviderId[]"]:checked').map(function(){return e(this).val()}).get(),u=e(window).outerWidth()<=767?"Pop Up-Mobile":"Pop Up",g=o.find('input[name="category"]').val(),p=grecaptcha.getResponse(t);if(!(a&&s&&l&&c))return o.find(".global-signup-form-error").remove(),void o.prepend('Please fill in all fields
');if(""===a.replace(/\s/g,"")||""===s.replace(/\s/g,"")||""===l.replace(/\s/g,"")||""===c.replace(/\s/g,""))return o.find(".global-signup-form-error").remove(),void o.prepend('Please fill in all fields
');if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a))return o.find(".global-signup-form-error").remove(),void o.prepend('Please enter a valid email address
');if(!p)return o.find(".global-signup-form-error").remove(),void o.prepend('Please complete the reCAPTCHA verification.
');const m={};d.forEach(function(e){m[e]=1});const f=(new Date).getTime(),h={postal_code:`${s}`,first_name:l,last_name:c,full_name:l+" "+c,product_level:"Subscriber",account_created:`${f}`,source_description:`${g}`,source_primary:"Website-Local",source_sub:u};Sailthru.integration("userSignUp",{email:a,lists:m,vars:h,source:`Website-Local|${u}|${g}`,onSuccess:function(e){o.find(".global-signup-form-container.step-2").addClass("hidden"),o.find(".global-signup-form-container.step-3").removeClass("hidden"),o.find(".global-signup-form-error").remove(),localStorage.setItem(i,"true"),localStorage.setItem("global-signup-form-submitted-time",f),localStorage.setItem(r,Date.now())},onError:function(e){o.find(".global-signup-form-error").remove(),o.prepend('Something went wrong. Please try again.
')}})}),jQuery(document).ready(function(){(function(){if(localStorage.getItem(i))return!1;const e=Date.now(),t=localStorage.getItem(a);if(t&&e-parseInt(t,10)<6048e5)return!1;const n=localStorage.getItem(s);if(n&&e-parseInt(n,10)<2592e6)return!1;const o=localStorage.getItem(r);return!(o&&e-parseInt(o,10)<7776e7)})()&&setTimeout(l,5e3)})}(jQuery)}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(958),n(5584)})()})();;
(()=>{"use strict";class e{constructor(e={}){this.options={selector:".wp-block-image img, .article-content img",closeOnOverlay:!0,closeOnEscape:!0,enableNavigation:!1,enableKeyboardNav:!1,enableSwipe:!1,enableHoverZoom:!1,showCaption:!0,showCredit:!0,showAltText:!1,galleryMode:!1,...e},this.lightboxElement=null,this.currentIndex=0,this.images=[],this.isOpen=!1,this.touchStartX=0,this.touchStartY=0,this.init()}init(){this.createLightboxHTML(),this.bindEvents(),this.detectImages()}createLightboxHTML(){document.body.insertAdjacentHTML("beforeend",'\n \n
\n
\n
\n
\n
![]()
\n
\n
\n
\n
\n
\n
\n '),this.lightboxElement=document.getElementById("vmg-lightbox")}detectImages(){const e=document.querySelectorAll(this.options.selector);this.images=[],e.forEach((e,t)=>{const i=()=>{const t=e.naturalWidth||e.width,i=e.naturalHeight||e.height;if(t>0&&t<100||i>0&&i<100)return void console.error("VMG Lightbox: Skipping small image",e.src,`${t}x${i}`);const n=this.extractImageData(e);if(n){const t=this.images.length;this.images.push(n),e.style.cursor="zoom-in",e.addEventListener("click",e=>{e.preventDefault(),this.open(t)}),e.setAttribute("data-lightbox-index",t),this.options.enableHoverZoom&&e.classList.add("vmg-lightbox-hover-zoom")}};e.complete&&e.naturalWidth>0?i():(e.addEventListener("load",i,{once:!0}),setTimeout(i,100))})}extractImageData(e){const t=e.closest("figure"),i=e.closest(".wp-block-image");let n="";if(this.options.attribute&&e.hasAttribute(this.options.attribute))n=e.getAttribute(this.options.attribute);else{n=e.src;const t=e.getAttribute("srcset");if(t){const e=t.split(",").map(e=>e.trim());let i=null,o=0;e.forEach(e=>{const t=e.split(" "),n=t[0],s=t[1];if(s&&s.endsWith("w")){const e=parseInt(s.slice(0,-1));e>o&&(o=e,i=n)}}),i?n=i:e.length>0&&(n=e[e.length-1].split(" ")[0])}if(n.includes("-")&&n.match(/-\d+x\d+\./)){const e=n.replace(/-\d+x\d+\./,".");n=e}}let o="",s="",a=e.getAttribute("alt")||"";if(t||i){const e=(t||i).querySelector("figcaption");if(e){const t=e.cloneNode(!0),i=t.querySelector(".vmg-image-credit");i&&i.remove(),o=t.textContent.trim()}}if(t||i){const e=(t||i).querySelector(".wp-element-caption .vmg-image-credit");e&&(s=e.textContent.trim())}return!o&&a&&(o=a),{src:n,title:o,credit:s,altText:a,element:e}}bindEvents(){this.lightboxElement.querySelector(".vmg-lightbox__close").addEventListener("click",()=>{this.close()}),this.options.closeOnOverlay&&this.lightboxElement.addEventListener("click",e=>{e.target===this.lightboxElement&&this.close()}),document.addEventListener("keydown",e=>{if(this.isOpen)switch(e.key){case"Escape":this.options.closeOnEscape&&this.close();break;case"ArrowLeft":this.options.enableKeyboardNav&&this.options.enableNavigation&&this.prev();break;case"ArrowRight":this.options.enableKeyboardNav&&this.options.enableNavigation&&this.next()}}),this.options.enableNavigation&&(this.lightboxElement.querySelector(".vmg-lightbox__nav--prev").addEventListener("click",()=>{this.prev()}),this.lightboxElement.querySelector(".vmg-lightbox__nav--next").addEventListener("click",()=>{this.next()})),this.options.enableSwipe&&this.bindTouchEvents(),window.addEventListener("resize",()=>{this.isOpen&&this.updateLayout()})}bindTouchEvents(){let e=0,t=0;this.lightboxElement.addEventListener("touchstart",i=>{e=i.touches[0].clientX,t=i.touches[0].clientY},{passive:!0}),this.lightboxElement.addEventListener("touchend",i=>{if(!e||!t)return;const n=i.changedTouches[0].clientX,o=i.changedTouches[0].clientY,s=e-n,a=t-o;Math.abs(s)>Math.abs(a)&&Math.abs(s)>50&&(s>0?this.next():this.prev()),e=0,t=0},{passive:!0})}open(e=0){0!==this.images.length&&(this.currentIndex=Math.max(0,Math.min(e,this.images.length-1)),this.isOpen=!0,document.body.classList.add("vmg-lightbox-open"),this.lightboxElement.classList.add("vmg-lightbox--open"),this.loadImage(this.currentIndex),this.updateNavigation(),this.lightboxElement.focus(),this.emit("open",{index:this.currentIndex,image:this.images[this.currentIndex]}))}close(){if(!this.isOpen)return;this.isOpen=!1,this.lightboxElement.classList.remove("vmg-lightbox--open"),document.body.classList.remove("vmg-lightbox-open");const e=this.images[this.currentIndex]?.element;e&&e.focus(),this.emit("close",{index:this.currentIndex})}loadImage(e){const t=this.images[e];if(!t)return;const i=this.lightboxElement.querySelector(".vmg-lightbox__image"),n=this.lightboxElement.querySelector(".vmg-lightbox__loading");this.lightboxElement.querySelector(".vmg-lightbox__caption"),n.style.display="block",i.style.opacity="0";const o=new Image;o.onload=()=>{i.src=o.src,i.alt=t.title||"Lightbox image",n.style.display="none",i.style.opacity="1",this.updateCaption(t)},o.onerror=()=>{n.style.display="none",console.error("Failed to load image:",t.src)},o.src=t.src}updateCaption(e){const t=this.lightboxElement.querySelector(".vmg-lightbox__caption");t.innerHTML="";let i=!1,n={};if(this.options.showCaption&&e.title){const o=document.createElement("div");o.className="vmg-lightbox__caption__title";const s=document.createElement("span");if(s.innerHTML=e.title,o.appendChild(s),this.options.showCredit&&e.credit){const t=document.createElement("em");t.className="vmg-lightbox__caption__credit",t.textContent=e.credit,o.appendChild(t)}t.appendChild(o),n.title=o,i=!0}if(this.options.showAltText&&e.altText&&!e.title){const o=document.createElement("div");o.className="vmg-lightbox__caption__alt",o.textContent=e.altText,t.appendChild(o),n.altText=o,i=!0}t.style.display=i?"block":"none"}updateNavigation(){const e=this.lightboxElement.querySelector(".vmg-lightbox__nav--prev"),t=this.lightboxElement.querySelector(".vmg-lightbox__nav--next");this.options.enableNavigation&&(this.options.galleryMode||this.images.length>1)?(e.style.display="flex",t.style.display="flex"):(e.style.display="none",t.style.display="none")}prev(){!this.options.enableNavigation||this.images.length<=1||(this.currentIndex=this.currentIndex>0?this.currentIndex-1:this.images.length-1,this.loadImage(this.currentIndex),this.emit("change",{index:this.currentIndex,direction:"prev"}))}next(){!this.options.enableNavigation||this.images.length<=1||(this.currentIndex=this.currentIndex{const s=new e({...i,selector:`${t} img`});o.push(s)}),1===o.length?o[0]:o}}window.VMGLightboxConfigs={single:{enableNavigation:!1,enableKeyboardNav:!1,enableSwipe:!1,enableHoverZoom:!1,galleryMode:!1},gallery:{enableNavigation:!0,enableKeyboardNav:!0,enableSwipe:!0,enableHoverZoom:!0,galleryMode:!0},minimal:{enableNavigation:!1,enableKeyboardNav:!1,enableSwipe:!1,enableHoverZoom:!1},mobile:{enableNavigation:!0,enableKeyboardNav:!1,enableSwipe:!0,enableHoverZoom:!1}};const t=e;document.addEventListener("DOMContentLoaded",()=>{new t({selector:".event-gallery img, .event-gallery-thumbnails img",enableNavigation:!0,enableKeyboardNav:!0,enableSwipe:!0,galleryMode:!0,showCaption:!1,attribute:"data-lightbox-image"})})})();;