!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.ctEvents,r=e.n(t),o=window.ctFrontend;var n=function(e,t){let r=function(e){var t=jQuery();return[...e.querySelectorAll("input")].map(function(e){t=t.add(e)}),t}(t);if("object"==typeof grecaptcha)grecaptcha.ready(function(){grecaptcha.execute(WFLSVars.recaptchasitekey,{action:"login"}).then(function(t){var o=jQuery("#wfls-captcha-token");o.length?o.val(t):r.length&&((o=jQuery('')).val(t),r.parent().append(o)),"function"==typeof e&&e(!0)})});else{var o=jQuery("#wfls-captcha-token");o.length?o.val("grecaptcha-missing"):r.length&&((o=jQuery('')).val("grecaptcha-missing"),r.parent().append(o)),"function"==typeof e&&e(!0)}};const c=function(e,t){return!(!window.WPDEF||window.turnstile)&&(function(e,t){"v3_recaptcha"!=WPDEF.options.version?"v2_checkbox"!=WPDEF.options.version&&"v2_invisible"!=WPDEF.options.version||[...t.querySelectorAll('div[id^="wpdef_recaptcha_"]')].forEach(function(t){if(""!==t.innerHTML.trim())return;const r={sitekey:WPDEF.options.sitekey,theme:WPDEF.options.theme,size:WPDEF.options.size,callback:function(){"function"==typeof e&&e(!0)}};grecaptcha.render(t.id,r)}):grecaptcha.ready(function(){grecaptcha.execute(WPDEF.options.siteKey,{action:"WPDEF_reCaptcha"}).then(function(t){document.querySelectorAll(".g-recaptcha-response").forEach(function(e){e.value=t}),"function"==typeof e&&e(!0)})})}(function(){return e()},t),!0)},a=function(e){[...e.querySelectorAll(".g-recaptcha, .anr_captcha_field")].map(function(e){e.classList.contains("anr_captcha_field")?grecaptcha.reset(parseFloat(e.firstElementChild.id.replace("anr_captcha_field_",""))-1):grecaptcha.reset(e.gID)})},i=function(e){return new Promise(function(t){(function(e,t){return!(!window.WFLSVars||!parseInt(WFLSVars.useCAPTCHA)||(n(function(){return e()},t),0))})(t,e)||c(t,e)||t()})};var s=window.jQuery,l=e.n(s);const u=function(e){const t=function(){var t=e.closest("form");!function(e,t){var r=l()(e).find(".woocommerce-password-strength");""===l()(t).val()?(r.hide(),l()(document.body).trigger("wc-password-strength-hide")):0===r.length?(l()(t.nextElementSibling).after('
'),l()(document.body).trigger("wc-password-strength-added")):(r.show(),l()(document.body).trigger("wc-password-strength-show"))}(t,e);let r=function(e,t){let r=l()(e).find(".woocommerce-password-strength"),o=l()(e).find(".woocommerce-password-hint"),n=''+wc_password_strength_meter_params.i18n_password_hint+"",c=wp.passwordStrength.meter(l()(t).val(),wp.passwordStrength.userInputDisallowedList()),a="";if(r.removeClass("short bad good strong"),o.remove(),r.is(":hidden"))return c;switch(c0&&r${t}`),requestAnimationFrame(function(){e.closest(".ct-account-modal").classList.add("ct-error")}))};const g=function(e,t){let r=(new DOMParser).parseFromString(t,"text/html"),o=r.querySelector("#login_error"),n="";return o&&(n=o.innerHTML),h(e,n),{hasError:!!o,doc:r}},w=function(e,t){let r=e.querySelector(".ct-form-notification");r&&r.remove(),e.closest(".ct-account-modal").classList.remove("ct-error"),t&&e.insertAdjacentHTML("afterbegin",`
${t}
`)},v=function(e,t){let r=(new DOMParser).parseFromString(t,"text/html"),o=r.querySelector(".message"),n="";return o&&(n=o.innerHTML),w(e,n),{doc:r}},y=function(e){if(!e)return;if(e.hasListeners)return;e.hasListeners=!0,function(e){let t=e.querySelector('[name="loginform"]');t&&t.addEventListener("submit",function(e){if(e.preventDefault(),window.ct_customizer_localizations)return;f(t);let r=new FormData(t);r.append("redirect_to",location.href),t.querySelector('[name="username"]')&&r.append("log",t.querySelector('[name="username"]').value);let o=`${ct_localizations.ajax_url}?action=blc_implement_user_login`;if(window.WFLSVars&&!t.loginProceed)return r.append("action","wordfence_ls_authenticate"),o=WFLSVars.ajaxurl,void i(t).then(function(){fetch(o,{method:t.method,body:r}).then(function(e){return e.json()}).then(function(e){m(t);let r=!!e.error;const o=t.closest(".ct-login-form"),n=t.closest(".ct-login-form").querySelector("form");if(r&&h(o,e.error),e.message&&w(n,e.message),e.login){if(e.two_factor_required){if(!t.querySelector("#wfls-prompt-overlay")){var c=l()('
'),i=l()('
'),s=l()('