!function(){"use strict";const{enterprise:{selector:e,siteKey:t,src:n}}=pmcRecaptcha;(()=>{async function c(e){var n,c;if(e.preventDefault(),"undefined"==typeof grecaptcha||"function"!=typeof(null===(n=grecaptcha)||void 0===n||null===(c=n.enterprise)||void 0===c?void 0:c.execute))return void this.submit();const r=await grecaptcha.enterprise.execute(t,{action:"newsletter_signup"});if(r){const e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name","pmc-recaptcha-token"),e.setAttribute("value",r),this.appendChild(e),this.submit(),e.remove()}}const r=()=>{document.querySelectorAll(e+" input").forEach((e=>{e.removeEventListener("focus",r)}));const t=document.createElement("script");t.src=n,t.async=!0,document.body.appendChild(t)};document.querySelectorAll(e).forEach((e=>{e.querySelectorAll("input").forEach((e=>{e.addEventListener("focus",r)})),e.addEventListener("submit",c)}))})()}();