1(()=>{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('<span class="submenu-toggle"></span>')}),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)}},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=>
1{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);const e=window.wp.apiFetch;var t=n.n(e);!function(e){let n,o=!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(o)return;o=!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-clymcmp",function(e){e.preventDefault(),Clym.showWidget("/widget/privacy","",event)}),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,t){"newsletter-signup"===e.dataset.widgetId&&(n=t)})});const i=e(".global-signup-modal"),a="global-signup-form-submitted",s="global-signup-modal-dismissed",r="global-signup-modal-denied",l="global-signup-modal-permanent";e(document).ready(function(){e(".footer-top__widget .widget-title").append('<i class="widget-toggle"></i>'),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('<p class="global-signup-form-error">Please select at least one newsletter provider</p>');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(r,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(s,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(o){e(this).find(".global-signup-form-error").remove(),o.preventDefault();const i=e(this),s=i.find('input[name="email"]').val(),r=i.find('input[name="zip"]').val(),c=i.find('input[name="first-name"]').val(),d=i.find('input[name="last-name"]').val(),u=i.find('input[name="newsletterProviderId[]"]:checked').map(function(){return e(this).val()}).get(),g=e(window).outerWidth()<=767?"Pop Up-Mobile":"Pop Up",p=i.find('input[name="category"]').val(),m=grecaptcha.getResponse(n);if(!(s&&r&&c&&d))return i.find(".global-signup-form-error").remove(),void i.prepend('<p class="global-signup-form-error">Please fill in all fields</p>');if(""===s.replace(/\s/g,"")||""===r.replace(/\s/g,"")||""===c.replace(/\s/g,"")||""===d.replace(/\s/g,""))return i.find(".global-signup-form-error").remove(),void i.prepend('<p class="global-signup-form-error">Please fill in all fields</p>');if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s))return i.find(".global-signup-form-error").remove(),void i.prepend('<p class="global-signup-form-error">Please enter a valid email address</p>');if(!m)return i.find(".global-signup-form-error").remove(),void i.prepend('<p class="global-signup-form-error">Please complete the reCAPTCHA verification.</p>');const f={};u.forEach(function(e){f[e]=1});const h=(new Date).getTime(),v={postal_code:`${r}`,first_name:c,last_name:d,full_name:c+" "+d,product_level:"Subscriber",account_created:`${h}`,source_description:`${p}`,source_primary:"Website-Local",source_sub:g};t()({path:"/vmg/v1/newsletter-signup",method:"POST",data:{email:s,lists:f,vars:v,sub:g,category:p}}).then(e=>{i.find(".global-signup-form-container.step-2").addClass("hidden"),i.find(".global-signup-form-container.step-3").removeClass("hidden"),i.find(".global-signup-form-error").remove(),localStorage.setItem(a,"true"),localStorage.setItem("global-signup-form-submitted-time",h),localStorage.setItem(l,Date.now())}).catch(e=>{i.find(".global-signup-form-error").remove(),i.prepend('<p class="global-signup-form-error">Something went wrong. Please try again.</p>')})}),jQuery(document).ready(function(){if(function(){if(localStorage.getItem(a))return!1;const e=Date.now(),t=localStorage.getItem(s);if(t&&e-parseInt(t,10)<6048e5)return!1;const n=localStorage.getItem(r);if(n&&e-parseInt(n,10)<2592e6)return!1;const o=localStorage.getItem(l);return!(o&&e-parseInt(o,10)<7776e7)}()){async function e(){let e=!1;const t=setTimeout(()=>{e||(e=!0,n.disconnect(),i.addClass("active"))},1e4),n=new MutationObserver((n,o)=>{document.getElementById("sailthru-overlay-container")&&(e=!0,clearTimeout(t),o.disconnect())});n.observe(document.body,{childList:!0})}e()}})}(jQuery)})()})();; 2(()=>{"use strict";class t{constructor(t={}){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,...t},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 <div class="vmg-lightbox" id="vmg-lightbox" role="dialog" aria-modal="true" aria-label="Image lightbox">\n <button class="vmg-lightbox__close" aria-label="Close lightbox"></button>\n <div class="vmg-lightbox__container">\n <div class="vmg-lightbox__image-wrapper">\n <div class="vmg-lightbox__loading"></div>\n <img class="vmg-lightbox__image" alt="" />\n </div>\n </div>\n <div class="vmg-lightbox__caption" style="display: none;"></div>\n <button class="vmg-lightbox__nav vmg-lightbox__nav--prev" aria-label="Previous image"></button>\n <button class="vmg-lightbox__nav vmg-lightbox__nav--next" aria-label="Next image"></button>\n </div>\n '),this.lightboxElement=document.getElementById("vmg-lightbox")}detectImages(){const t=document.querySelectorAll(this.options.selector);this.images=[],t.forEach((t,e)=>{const i=()=>
2{const e=t.naturalWidth||t.width,i=t.naturalHeight||t.height;if(e>0&&e<100||i>0&&i<100)return void console.error("VMG Lightbox: Skipping small image",t.src,`${e}x${i}`);const n=this.extractImageData(t);if(n){const e=this.images.length;this.images.push(n),t.style.cursor="zoom-in",t.addEventListener("click",t=>{t.preventDefault(),this.open(e)}),t.setAttribute("data-lightbox-index",e),this.options.enableHoverZoom&&t.classList.add("vmg-lightbox-hover-zoom")}};t.complete&&t.naturalWidth>0?i():(t.addEventListener("load",i,{once:!0}),setTimeout(i,100))})}extractImageData(t){const e=t.closest("figure"),i=t.closest(".wp-block-image");let n="";if(this.options.attribute&&t.hasAttribute(this.options.attribute))n=t.getAttribute(this.options.attribute);else{n=t.src;const e=t.getAttribute("srcset");if(e){const t=e.split(",").map(t=>t.trim());let i=null,o=0;t.forEach(t=>{const e=t.split(" "),n=e[0],s=e[1];if(s&&s.endsWith("w")){const t=parseInt(s.slice(0,-1));t>o&&(o=t,i=n)}}),i?n=i:t.length>0&&(n=t[t.length-1].split(" ")[0])}if(n.includes("-")&&n.match(/-\d+x\d+\./)){const t=n.replace(/-\d+x\d+\./,".");n=t}}let o="",s="",a=t.getAttribute("alt")||"";if(e||i){const t=(e||i).querySelector("figcaption");if(t){const e=t.cloneNode(!0),i=e.querySelector(".vmg-image-credit");i&&i.remove(),o=e.textContent.trim()}}if(e||i){const t=(e||i).querySelector(".wp-element-caption .vmg-image-credit");t&&(s=t.textContent.trim())}return!o&&a&&(o=a),{src:n,title:o,credit:s,altText:a,element:t}}bindEvents(){this.lightboxElement.querySelector(".vmg-lightbox__close").addEventListener("click",()=>{this.close()}),this.options.closeOnOverlay&&this.lightboxElement.addEventListener("click",t=>{t.target===this.lightboxElement&&this.close()}),document.addEventListener("keydown",t=>{if(this.isOpen)switch(t.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 t=0,e=0;this.lightboxElement.addEventListener("touchstart",i=>{t=i.touches[0].clientX,e=i.touches[0].clientY},{passive:!0}),this.lightboxElement.addEventListener("touchend",i=>{if(!t||!e)return;const n=i.changedTouches[0].clientX,o=i.changedTouches[0].clientY,s=t-n,a=e-o;Math.abs(s)>Math.abs(a)&&Math.abs(s)>50&&(s>0?this.next():this.prev()),t=0,e=0},{passive:!0})}open(t=0){0!==this.images.length&&(this.currentIndex=Math.max(0,Math.min(t,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 t=this.images[this.currentIndex]?.element;t&&t.focus(),this.emit("close",{index:this.currentIndex})}loadImage(t){const e=this.images[t];if(!e)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=e.title||"Lightbox image",n.style.display="none",i.style.opacity="1",this.updateCaption(e)},o.onerror=()=>{n.style.display="none",console.error("Failed to load image:",e.src)},o.src=e.src}updateCaption(t){const e=this.lightboxElement.querySelector(".vmg-lightbox__caption");e.innerHTML="";let i=!1,n={};if(this.options.showCaption&&t.title){const o=document.createElement("div");o.className="vmg-lightbox__caption__title";const s=document.createElement("span");if(s.innerHTML=t.title,o.appendChild(s),this.options.showCredit&&t.credit){const e=document.createElement("em");e.className="vmg-lightbox__caption__credit",e.textContent=t.credit,o.appendChild(e)}e.appendChild(o),n.title=o,i=!0}if(this.options.showAltText&&t.altText&&!t.title){const o=document.createElement("div");o.className="vmg-lightbox__caption__alt",o.textContent=t.altText,e.appendChild(o),n.altText=o,i=!0}e.style.display=i?"block":"none"}updateNavigation(){const t=this.lightboxElement.querySelector(".vmg-lightbox__nav--prev"),e=this.lightboxElement.querySelector(".vmg-lightbox__nav--next");this.options.enableNavigation&&(this.options.galleryMode||this.images.length>1)?(t.style.display="flex",e.style.display="flex"):(t.style.display="none",e.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
2("change",{index:this.currentIndex,direction:"prev"}))}next(){!this.options.enableNavigation||this.images.length<=1||(this.currentIndex=this.currentIndex<this.images.length-1?this.currentIndex+1:0,this.loadImage(this.currentIndex),this.emit("change",{index:this.currentIndex,direction:"next"}))}updateLayout(){}emit(t,e){const i=new CustomEvent(`vmg-lightbox:${t}`,{detail:e});document.dispatchEvent(i)}refresh(){this.detectImages()}destroy(){this.lightboxElement&&this.lightboxElement.remove(),document.body.classList.remove("vmg-lightbox-open")}static init(e,i={}){const n=document.querySelectorAll(e),o=[];return n.forEach(n=>{const s=new t({...i,selector:`${e} 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 e=t;function i(t){return"monthly"===t?" /month":"yearly"===t?" /year":""}function n(t,e,i){try{const n=new URL(t,window.location.href);return n.searchParams.set("installmentPeriod",e),n.searchParams.set("amount",String(Math.round(Number(i)))),n.toString()}catch(e){return t}}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("[data-vmg-support-form]").forEach(t=>{!function(t){const e=t.getAttribute("data-base-url");if(!e)return;const o=function(t){try{const e=JSON.parse(t);if(e&&"object"==typeof e)return e}catch(t){}return{once:[120,180,365],monthly:[7,15,35],yearly:[80,150,300]}}(t.getAttribute("data-presets")||"{}"),s=t.querySelectorAll(".article-author-box-support-bubble-frequency-btn"),a=t.querySelectorAll(".article-author-box-support-bubble-amt"),l=t.querySelector(".article-author-box-support-bubble-custom-input"),r=t.querySelector(".js-vmg-support-amount-suffix"),c=t.querySelector(".article-author-box-support-bubble-submit");if(!c||!l)return;let h="monthly",g=1,d=!1;function m(t){const e=o[t];return Array.isArray(e)&&e.length>=3?e:[0,0,0]}function u(){const t=m(h);a.forEach((e,n)=>{const o=t[n];e.textContent=function(t,e){return`$${Number(e)} USD${i(t)}`}(h,o)}),r&&(r.textContent=i(h))}function b(t){d=!1,g=t,l.value="",a.forEach((e,i)=>{const n=i===t;e.classList.toggle("is-active",n),e.setAttribute("aria-pressed",n?"true":"false")});const i=m(h)[t];c.setAttribute("href",n(e,h,i))}function p(){const t=l.value.trim(),i=parseInt(t,10);!t||Number.isNaN(i)||i<1?c.setAttribute("href","#"):c.setAttribute("href",n(e,h,i))}s.forEach(t=>{t.addEventListener("click",()=>{const e=t.getAttribute("data-installment-period");e&&(function(t){h=t,s.forEach(e=>{const i=e.getAttribute("data-installment-period")===t;e.classList.toggle("is-active",i),e.setAttribute("aria-selected",i?"true":"false")}),u(),g=1,d=!1,l.value="",b(1)}(e),b(g))})}),a.forEach((t,e)=>{t.addEventListener("click",()=>{b(e)})}),l.addEventListener("focus",()=>{d=!0,a.forEach(t=>{t.classList.remove("is-active"),t.setAttribute("aria-pressed","false")}),p()}),l.addEventListener("input",()=>{d=!0,p()}),c.addEventListener("click",t=>{if(d){const e=l.value.trim(),i=parseInt(e,10);(!e||Number.isNaN(i)||i<1)&&(t.preventDefault(),l.focus())}}),u(),b(1)}(t)});try{const t=document.querySelector(".article-content"),i=document.querySelectorAll(".article-content img, .wp-block-image img").length>0;if(t||i){const t={selector:".article-content .wp-block-image img",closeOnOverlay:!0,closeOnEscape:!0,enableNavigation:!1,enableKeyboardNav:!1,enableSwipe:!1,enableHoverZoom:!1,galleryMode:!1,showCaption:!0,showAltText:!0};window.vmgLightbox=new e(t),setTimeout(()=>{window.vmgLightbox&&window.vmgLightbox.refresh()},1e3)}else console.error("VMG Lightbox: No article content or images found, skipping initialization")}catch(t){console.error("VMG Lightbox initialization error:",t)}}),jQuery(document).ready(function(t){let e=!1,i=!1;function n(n,o){const s=t(o).parents("article").attr("id").replace("post-","");e&&i||t.ajax({url:vmgAjax.restUrl+"vmg/v1/"+n+"/"+s,type:"GET",success:function(s){t(o).html(s.html),"latest-posts"===n?e=!0:"trending-posts"===n&&(i=!0)}})}const o=new IntersectionObserver(t=>{e&&i||t.forEach(t=>{if(t.isIntersecting){const e=t.target;"vmg-latest-posts"===e.id&&n("latest-posts","#vmg-latest-posts"),"vmg-trending-posts"===e.id&&n("trending-posts","#vmg-trending-posts"),o.unobserve(e)}})},{threshold:0});o.observe(document.querySelector("#vmg-latest-posts")),o.observe(document.querySelector("#vmg-trending-posts"));const s=document.querySelector("#vmg-latest-posts"),a=document.querySelector("#vmg-trending-posts");s&&o.observe(s),a&&o.observe(a),t(window).on("scroll",function(){let o=t(window).scrollTop();!e&&o>300&&(n("latest-posts","#vmg-latest-posts"),e=!0),!i&&o>300&&(n("trending-posts","#vmg-trending-posts"),i=!0)})})})();; 3(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.apiFetch;var n=e.n(t);jQuery(document).ready(function(e){e(".vmg-newsletter-form").each(function(){const t=e(this),r=t.find(".vmg-newsletter-form__step1"),s=t.find(".vmg-newsletter-form__step2"),a=t.find(".vmg-newsletter-form__success"),i=t.find(".vmg-newsletter-form__submit"),d=t.find("#sailthru-email");e(document).on("submit",".vmg-newsletter-form__step1 form",function(e){e.preventDefault();const o=d.val(),l=t.find('input[name="newsletters"]').val(),m=t.find('input[name="category"]').val(),c=grecaptcha.getResponse();if(!o||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o))return r.find('input[name="sailthru-email"]').removeClass("error"),r.find('input[name="sailthru-email"]').next(".error-message").remove(),r.find('input[name="sailthru-email"]').addClass("error"),void r.find('input[name="sailthru-email"]').after('<p class="error-message">Please enter a valid email address.</p>');if(r.find('input[name="sailthru-email"]').removeClass("error"),r.find('input[name="sailthru-email"]').next(".error-message").remove(),!c)return void alert("Please complete the reCAPTCHA verification.");
3i.prop("disabled",!0).text("SIGNING UP...");const p={[l]:1};n()({path:"/vmg/v1/newsletter-signup",method:"POST",data:{email:o,lists:p,vars:{source_description:m,source_primary:"Website-Local",source_sub:"In-Article Sign Up",product_level:"Subscriber",account_created:`${(new Date).getTime()}`,source:"Website-Local|In-Article Sign Up|"+m},category:m}}).then(e=>{s.length>0?(s.removeClass("hidden"),a.addClass("hidden"),r.addClass("hidden"),s.find('input[name="newsletterEmail"]').val(o)):(a.removeClass("hidden"),r.addClass("hidden")),i.prop("disabled",!1).text("SIGN UP"),grecaptcha.reset()}).catch(e=>{i.prop("disabled",!1).text("SIGN UP"),r.find('input[name="sailthru-email"]').removeClass("error"),r.find(".error-message").remove(),t.find(".vmg-newsletter-form__container").append('<p class="error-message">'+response.error+"</p>")})}),e(document).on("change",'.vmg-newsletter-form__step2 input[name="additional_newsletter"]',function(){e(this).is(":checked")?s.find("#vmg-subscribe-additional").prop("disabled",!1):s.find("#vmg-subscribe-additional").prop("disabled",!0)}),e(document).on("submit",".vmg-newsletter-form__step2 form",function(e){e.preventDefault();const i=s.find('input[name="additional_newsletter"]').val(),d=s.find('input[name="newsletterEmail"]').val();n()({path:"/vmg/v1/newsletter-signup",method:"POST",data:{email:d,newsletterList:i,vars:{}}}).then(e=>{s.addClass("hidden"),a.removeClass("hidden"),r.addClass("hidden"),s.find("#vmg-subscribe-additional").prop("disabled",!1).text("SUBSCRIBE")}).catch(e=>{s.find("#vmg-subscribe-additional").prop("disabled",!1).text("SUBSCRIBE"),t.find(".vmg-newsletter-form__container").append('<p class="error-message">'+response.error+"</p>")})}),e(document).on("click",".vmg-newsletter-form__no-thanks",function(){s.addClass("hidden"),a.removeClass("hidden"),r.addClass("hidden"),s.find("#vmg-subscribe-additional").prop("disabled",!0).text("SUBSCRIBE"),t.find(".error-message").remove()}),e(document).on("click",".vmg-newsletter-form__close-btn",function(){t.fadeOut(1e3)})})})})();;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.