1document.addEventListener("DOMContentLoaded",function(){function t(){var e;document.querySelector("script[data-recaptcha-loaded]")||((e=document.createElement("script")).type="text/javascript",e.src="https://www.google.com/recaptcha/api.js?render=6Lf5WHYpAAAAAKvLsP4Dkxft4E0AX8ujE7SbdiRi",e.setAttribute("data-recaptcha-loaded","true"),document.head.appendChild(e)),["user_login","iu_reg_email","username","password"].forEach(e=>{e=document.getElementById(e);e&&e.removeEventListener("focus",t)})}function r(e){var t=e.querySelector('button[type="submit"], input[type="submit"]');t&&"function"==typeof t.click?t.click():HTMLFormElement.prototype.submit.call(e)}function i(e,t,o){e&&(e.classList.toggle("is-loading",t),o||(e.disabled=t))}["user_login","iu_reg_email","username","password"].forEach(e=>{e=document.getElementById(e);e&&e.addEventListener("focus",t)}),document.querySelectorAll("form.woocommerce-form-login, form.woocommerce-form-register, form.woocommerce-checkout").forEach(o=>{o.addEventListener("submit",function(e){"1"!==o.dataset.recaptchaPassed&&(e.preventDefault(),"undefined"==typeof grecaptcha?(o.dataset.recaptchaPassed="1",r(o)):grecaptcha.ready(function(){grecaptcha.execute("6Lf5WHYpAAAAAKvLsP4Dkxft4E0AX8ujE7SbdiRi",{action:"focus"}).then(function(e){var t=new URLSearchParams;t.append("action","check_captcha"),t.append("token",e),fetch(localizedData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}).then(e=>e.json()).then(e=>{if(!0!==e.success)return console.error("Captcha failed"),!1;o.dataset.recaptchaPassed="1",r(o)}).catch(e=>{console.error("Captcha AJAX error:",e)})})}))})});var e=document.querySelector(".iu-register-form");e&&e.addEventListener("submit",function(o){o.preventDefault(),o.stopImmediatePropagation();{let c=document.querySelector(".iu-register-form"),n=document.querySelector(".iu-verification-form"),l=c?c.querySelector('button[type="submit"]'):null,e=document.querySelector("#iu_reg_email"),t=document.querySelector("#iu_verification_email");e&&t&&(t.value=e.value);var o=document.querySelector('input[name="agree"]'),r=document.querySelector('input[name="agree_terms"]');i(l,!0),fetch(localizedData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:new URLSearchParams({action:"check_user_for_registration",nonce:localizedData.nonce,checkout_nonce:localizedData.checkout_nonce||"",mail:e?e.value:"",agree:o&&o.checked?"1":"",agree_terms:!r||r.checked?"1":""})}).then(e=>e.json()).then(e=>{var t,o,r,a;if(!1===e.success&&(t=e.data,(o=c.parentNode.querySelector(".iu-register-form__error"))&&o.remove(),(o=document.createElement("p")).className="iu-register-form__error",o.style.color="red",o.style.textAlign="center",(r=document.querySelector('[data-iu-login-panel="login"]')&&t.match(/^(.*?)\blog in\b\.(.*)$/i))?((a=document.createElement("button")).type="button",a.className="iu-register-form__error-link",a.setAttribute("data-iu-login-panel-open","login"),a.textContent="log in.",o.append(r[1],a,r[2])):o.textContent=t,c.insertAdjacentElement("beforebegin",o)),!0===e.success){if(e.data&&e.data.registered)return void(window.location.href=e.data.redirect);c.style.display="none",n.style.display="block"}i(l,!1)}).catch(e=>{console.error("AJAX error:",e),i(l,!1)})}},!0),document.querySelectorAll("form.woocommerce-form-login").forEach(function(e){e.addEventListener("submit",function(){i(e.querySelector('button[type="submit"]'),!0,!0)})}),window.addEventListener("pageshow",function(e){e.persisted&&document.querySelectorAll('.woocommerce-form-login button[type="submit"], .iu-verification-form button[type="submit"]').forEach(function(e){i(e,!1)})});e=document.querySelector(".iu-verification-form");function o(){let e,t,o,r=!1;var a=document.querySelector("select.limit"),c=document.querySelector("select.period");if(a&&c){e=a.value,t=c.value,o=list[e];for(var[n,l]of Object.entries(o))l["billing-period"]===t&&(o=n,l.price>current_price?(r=!0,document.querySelectorAll(".price_alert").forEach(e=>e.style.display="none")):(r=!1,document.querySelectorAll(".price_alert").forEach(e
1=>e.style.display="block")));o===current&&!1===r?(document.querySelectorAll(".switch_btn").forEach(e=>{e.disabled=!0,e.classList.add("disabled-btn")}),document.querySelectorAll(".over_button_text").forEach(e=>e.style.display="block"),document.querySelectorAll(".plan_h2_old").forEach(e=>e.style.display="block"),document.querySelectorAll(".plan_h2_new").forEach(e=>e.style.display="none")):(document.querySelectorAll(".plan_h2_old").forEach(e=>e.style.display="none"),document.querySelectorAll(".plan_h2_new").forEach(e=>e.style.display="block"),document.querySelectorAll(".switch_btn").forEach(e=>{e.disabled=!1,e.classList.remove("disabled-btn")}),document.querySelectorAll(".over_button_text").forEach(e=>e.style.display="none")),document.querySelectorAll(".variation_id").forEach(e=>e.value=o),document.querySelectorAll(".price__plan").forEach(e=>e.style.display="none"),document.querySelectorAll(".id"+o).forEach(e=>e.style.display="block"),document.querySelectorAll(".new_credit_count").forEach(e=>e.style.display="none"),document.querySelectorAll(".id"+e).forEach(e=>e.style.display="block")}}if(e&&e.addEventListener("submit",function(e){e.preventDefault(),e.stopImmediatePropagation();{let r=document.querySelector(".iu-verification-form"),a=r?r.querySelector('button[type="submit"]'):null,e=document.querySelector("#iu_verification_email"),t=document.querySelector("#iu_verification_code");i(a,!0),fetch(localizedData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:new URLSearchParams({action:"check_verification_code",nonce:localizedData.nonce,verification_email:e?e.value:"",verification_code:t?t.value:""})}).then(e=>e.json()).then(e=>{var t,o;!1===e.success&&(o=e.data,(t=document.createElement("p")).style.color="red",t.style.textAlign="center",t.textContent=o,r.insertAdjacentElement("beforebegin",t),i(a,!1)),!0===e.success&&(o=document.querySelector("#iu_register_redirect"),window.location.href=o&&o.value?o.value:e.data)}).catch(e=>{console.error("AJAX error:",e),i(a,!1)})}},!0),document.addEventListener("click",function(e){if(e.target.closest("#my_reason"))document.querySelectorAll(".my_reason_value").forEach(e=>{var t=window.getComputedStyle(e);e.style.display="none"===t.display?"block":"none"});else{e.target.closest(".cancel_anyway")&&((t=new URLSearchParams).append("action","cancelation_flow"),t.append("data[user_id]",user_id),t.append("data[sub_id]",sub_id),t.append("data[step]","cancel_anyway"),fetch(localizedData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}).then(e=>e.json()).then(e=>{closePopup("cancel_popup"),showPopup("reason")}).catch(e=>{console.error("AJAX Error:",e)}));var t=e.target.closest(".cancel_confirm");if(t){let e=t.getAttribute("data-cancel-url");var t=document.querySelector('input[name="reason"]:checked')?.value||"",o=document.querySelector("#my_reason_value")?.value||"",r=new URLSearchParams;r.append("action","cancelation_flow"),r.append("data[user_id]",user_id),r.append("data[sub_id]",sub_id),r.append("data[step]","cancel_confirm"),r.append("data[reason]",t),r.append("data[reasontext]",o),void fetch(localizedData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r.toString()}).then(e=>e.json()).then(()=>{window.location.href=e}).catch(e=>console.error("AJAX Error:",e))}else if(e.target.closest(".apply_discount"))(t=new URLSearchParams).append("action","cancelation_flow"),t.append("data[user_id]",user_id),t.append("data[sub_id]",sub_id),t.append("data[step]","apply_discount"),fetch(localizedData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}).then(e=>e.json()).then(e=>{!1===e.success?alert("This subscription already discounted!"):(closePopup("cancel_popup"),showPopup("thanks_discount"))}).catch(e=>console.error("AJAX Error:",e));else{o=e.target.closest(".cancel_subscription");if(o){e.preventDefault();try{var a=new URLSearchParams;a.append("action","cancelation_flow"),a.append("data[user_id]",user_id),a.append("data[sub_id]",sub_id),a.append("data[step]","cancel_subscription"),fetch(localizedData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a.toString()}).then(e=>e.json()).then(()=>{showPopup("cancel_popup")}
1).catch(e=>console.error("AJAX Error:",e))}catch(e){window.location.href=o.getAttribute("href")}}}}}),document.addEventListener("change",function(e){e.target.closest(".round")&&o()}),document.querySelector(".change_plan")){e=localStorage.getItem("switch_to");if(o(),e)for(var[a,c]of Object.entries(list));}window.jQuery&&window.jQuery(document.body).on("updated_checkout",function(){var e=document.querySelector(".iu-order-summary__row--total span:last-child"),t=document.querySelector(".iu-checkout__summary-toggle-total");e&&t&&(t.innerHTML=e.innerHTML)});let n=document.querySelector(".agree_terms");function l(){var e=document.querySelector(".woocommerce-form-register__submit");e&&(n.checked?(e.disabled=!1,e.classList.remove("disabled-btn")):(e.disabled=!0,e.classList.add("disabled-btn")))}n&&(l(),n.addEventListener("change",l))});
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.