document.addEventListener("DOMContentLoaded",(function(){"use strict";function e(e){const t=document.createElement("input");t.type="hidden",t.name="f-form--submitted",t.value="true",e.appendChild(t),e.submit()}function t(e){e.classList.add("closing"),setTimeout((()=>{e.classList.remove("active","closing")}),400)}document.querySelectorAll(".js-form").forEach((function(o){o.addEventListener("submit",(function(n){n.preventDefault(),function(e){return new Promise(((t,o)=>{const n=e.querySelector(".js-recaptcha"),s=e.querySelector(".js-recaptcha__k"),r=e.querySelector(".js-recaptcha__debug");n&&s&&"undefined"!=typeof grecaptcha?(r&&(console.log(s.value),console.log(n.value),console.log("grecaptcha exists:","undefined"!=typeof grecaptcha)),grecaptcha.ready((()=>{grecaptcha.execute(s.value,{action:"form"}).then((e=>{e?(n.value=e,r&&console.log("reCAPTCHA token regenerated!"),t(e)):(console.warn("reCAPTCHA token is not available, continuing anyway."),t(null))})).catch((e=>{console.error("reCAPTCHA error:",e),t(null)}))}))):t(null)}))}(o).then((()=>{!function(o){const n=o.getAttribute("data-ajax");if(!n)return console.warn("No 'data-ajax' attribute set on the '