try{
try{
try{
try{
try{
try{

var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1<a});for(var a=[];e&&e!==document;e=e.parentNode)(!t||e.matches(t))&&a.push(e);return a},getParents=function(e,t){console.warn("getParents() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraGetParents() instead."),astraGetParents(e,t)},astraToggleClass=function(e,t){e.classList.contains(t)?e.classList.remove(t):e.classList.add(t)},toggleClass=function(e,t){console.warn("toggleClass() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraToggleClass() instead."),astraToggleClass(e,t)},astraTriggerEvent=((()=>{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)})(),function(e,t){t=new CustomEvent(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});e.dispatchEvent(t)});astraSmoothScroll=function(e,t){e.preventDefault(),window.scrollTo({top:t,left:0,behavior:"smooth"})},astScrollToTopHandler=function(e,t){var a=getComputedStyle(t).content,n=t.dataset.onDevices,a=a.replace(/[^0-9]/g,"");"both"==n||"desktop"==n&&"769"==a||"mobile"==n&&""==a?(n=window.pageYOffset||document.body.scrollTop,e&&e.length?n>e.offsetHeight+100?t.style.display="block":t.style.display="none":300<window.pageYOffset?t.style.display="block":t.style.display="none"):t.style.display="none"},(()=>{var r=document.querySelectorAll("#masthead .main-header-menu-toggle"),c=document.getElementById("masthead"),i={},d="",u=document.body,m="";function e(e){d=e.detail.type;var t=document.querySelectorAll(".menu-toggle");if("dropdown"===d&&(document.getElementById("ast-mobile-popup").classList.remove("active","show"),g("updateHeader")),"off-canvas"===d)for(var a=0;a<t.length;a++)void 0!==t[a]&&t[a].classList.contains("toggled")&&t[a].click();n(d)}function g(e){m=c.querySelector("#ast-mobile-header");if(null==m||"dropdown"!==m.dataset.type||"updateHeader"===e){(void 0!==e&&"updateHeader"!==e?e.closest(".ast-mobile-popup-inner"):document.querySelector("#ast-mobile-popup")).querySelectorAll(".menu-item-has-children").forEach(e=>{e.classList.remove("ast-submenu-expanded"),Array.from(e.querySelectorAll(".sub-menu")).forEach(e=>{e.hasAttribute("data-initial-display")||e.setAttribute("data-initial-display",window.getComputedStyle(e).display),"block"===e.getAttribute("data-initial-display")?e.style.display="block":e.style.display="none"})});var t=document.querySelectorAll(".menu-toggle");document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),document.documentElement.classList.remove("ast-off-canvas-active");for(var a=0;a<t.length;a++)t[a].classList.remove("toggled"),t[a].style.display="flex"}}function n(e){var t=document.querySelectorAll("#ast-mobile-header .menu-toggle"),a=document.querySelectorAll("#ast-desktop-header .menu-toggle");if(void 0===e&&null!==c)if(m=c.querySelector("#ast-mobile-header"))e=m.dataset.type;else{var n=c.querySelector("#ast-desktop-header");if(!n)return;e=n.dataset.toggleType}if("off-canvas"===e){var n=document.getElementById("menu-toggle-close"),o=document.querySelector(".ast-mobile-popup-inner");if(null==o)return;popupLinks=o.getElementsByTagName("a");for(var s=0;s<t.length;s++)t[s].removeEventListener("click",astraNavMenuToggle,!1),t[s].addEventListener("click",popupTriggerClick,!1),t[s].trigger_type="mobile";for(s=0;s<a.length;s++)a[s].removeEventListener("click",astraNavMenuToggle,!1),a[s].addEventListener("click",popupTriggerClick,!1),a[s].trigger_type="desktop";n.addEventListener("click",function(e){document.getElementById("ast-mobile-popup").classList.remove("active","show"),g(this)}),document.addEventListener("keyup",function(e){27===e.keyCode&&(e.preventDefault(),document.getElementById("ast-mobile-popup").classList.remove("active","show"),g())}),document.addEventListener("click",function(e){e.target===document.querySelector(".ast-mobile-popup-drawer.active .ast-mobile-popup-overlay")&&(document.getElementById("ast-mobile-popup").classList.remove("active","show"),g())});for(let e=0,t=popupLinks.length;e<t;e++)null!==popupLinks[e].getAttribute("href")&&(popupLinks[e].getAttribute("href").startsWith("#")||-1!==popupLinks[e].getAttribute("href").search("#"))&&(!popupLinks[e].parentElement.classList.contains("menu-item-has-children")||popupLinks[e].parentElement.classList.contains("menu-item-has-children")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-icon"))&&(popupLinks[e].addEventListener("click",p,!0),popupLinks[e].headerType="off-canvas");AstraToggleSetup()}else if("dropdown"===e){var r=document.querySelectorAll(".ast-mobile-header-content")||!1,o=document.querySelector(".ast-desktop-header-content")||!1;if(0<r.length)for(let e=0;e<r.length;e++){var l=r[e].getElementsByTagName("a");for(link=0,len=l.length;link<len;link++)null!==l[link].getAttribute("href")&&(l[link].getAttribute("href").startsWith("#")||-1!==l[link].getAttribute("href").search("#"))&&(!l[link].parentElement.classList.contains("menu-item-has-children")||l[link].parentElement.classList.contains("menu-item-has-children")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-icon"))&&(l[link].addEventListener("click",p,!0),l[link].headerType="dropdown")}if(o){var i=o.getElementsByTagName("a");for(link=0,len=i.length;link<len;link++)i[link].addEventListener("click",p,!0),i[link].headerType="dropdown"}for(s=0;s<t.length;s++)t[s].removeEventListener("click",popupTriggerClick,!1),t[s].addEventListener("click",astraNavMenuToggle,!1),t[s].trigger_type="mobile";for(s=0;s<a.length;s++)a[s].removeEventListener("click",popupTriggerClick,!1),a[s].addEventListener("click",astraNavMenuToggle,!1),a[s].trigger_type="desktop";AstraToggleSetup()}v()}function p(e){switch(e.currentTarget.headerType){case"dropdown":for(var t=document.querySelectorAll(".menu-toggle.toggled"),a=0;a<t.length;a++)t[a].click();break;case"off-canvas":document.getElementById("menu-toggle-close").click()}}""!==(m=null!=c?c.querySelector("#ast-mobile-header"):m)&&null!==m&&(d=m.dataset.type),document.addEventListener("astMobileHeaderTypeChange",e,!1),popupTriggerClick=function(e){var e=e.currentTarget.trigger_type,t=document.getElementById("ast-mobile-popup"),a=document.getElementById("menu-toggle-close");a&&a.focus(),u.classList.contains("ast-popup-nav-open")||u.classList.add("ast-popup-nav-open"),u.classList.contains("ast-main-header-nav-open")||"mobile"===e||u.classList.add("ast-main-header-nav-open"),document.documentElement.classList.contains("ast-off-canvas-active")||document.documentElement.classList.add("ast-off-canvas-active"),"desktop"===e&&(t.querySelector(".ast-mobile-popup-content").style.display="none",t.querySelector(".ast-desktop-popup-content").style.display="block"),"mobile"===e&&(t.querySelector(".ast-desktop-popup-content").style.display="none",t.querySelector(".ast-mobile-popup-content").style.display="block"),this.style.display="none",t.classList.add("active","show")},window.addEventListener("load",function(){n()}),document.addEventListener("astLayoutWidthChanged",function(){n()}),document.addEventListener("astPartialContentRendered",function(){r=document.querySelectorAll(".main-header-menu-toggle"),u.classList.remove("ast-main-header-nav-open"),document.addEventListener("astMobileHeaderTypeChange",e,!1),n(),v()});var o=null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualViewport.width:window.innerWidth;window.addEventListener("resize",function(){var e,t,a,n;"INPUT"!==document.activeElement.tagName&&(e=document.getElementById("menu-toggle-close"),t=document.querySelector(".menu-toggle.toggled"),a=document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content"),n=document.querySelector(".elementor-editor-active"),a&&(a.style.display="none"),(null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualViewport.width:window.innerWidth)!==o&&(t&&null===n&&t.click(),document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),e)&&null==n&&e.click(),h(),AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){if(AstraToggleSetup(),null!==(e=u.classList.contains("ast-header-break-point")?document.getElementById("ast-mobile-header"):document.getElementById("ast-desktop-header"))){var e,t=e.querySelector(".navigation-accessibility");if(t&&e){var a=e.getElementsByTagName("button")[0];if(void 0===a){if(!0===(a=e.getElementsByTagName("a")[0]).classList.contains("astra-search-icon"))return;if(void 0===a)return}var n=t.getElementsByTagName("ul")[0];if(void 0===n)a.style.display="none";else{if(-1===n.className.indexOf("nav-menu")&&(n.className+=" nav-menu"),document.addEventListener("DOMContentLoaded",function(){var e;"off-canvas"===d&&(e=document.getElementById("menu-toggle-close"))&&(e.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))})}),a.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))},!astra.is_header_footer_builder_active){for(var o=n.getElementsByTagName("a"),s=n.getElementsByTagName("ul"),r=0,l=s.length;r<l;r++)s[r].parentNode.setAttribute("aria-haspopup","true");for(r=0,l=o.length;r<l;r++)o[r].addEventListener("focus",E,!0),o[r].addEventListener("blur",E,!0),o[r].addEventListener("click",L,!0)}astra.is_header_footer_builder_active&&(()=>{let t=document.querySelectorAll("nav.site-navigation .menu-item-has-children > a .ast-header-navigation-arrow"),a=document.querySelectorAll("nav.site-navigation .sub-menu"),n=document.querySelectorAll("nav.site-navigation .menu-item-has-children"),o=document.querySelectorAll(".astra-full-megamenu-wrapper");t&&(t.forEach(e=>{e.addEventListener("keydown",function(a){"Enter"===a.key&&(a.target.closest("li").querySelector(".sub-menu").classList.contains("astra-megamenu")?setTimeout(()=>{var e=a.target.closest("li").querySelector(".sub-menu"),t=a.target.closest("li").querySelector(".astra-full-megamenu-wrapper");e&&e.classList.toggle("astra-megamenu-focus"),t&&t.classList.toggle("astra-megamenu-wrapper-focus"),a.target.closest("li").classList.toggle("ast-menu-hover"),"false"!==a.target.getAttribute("aria-expanded")&&a.target.getAttribute("aria-expanded")?a.target.setAttribute("aria-expanded","false"):a.target.setAttribute("aria-expanded","true")},10):setTimeout(()=>{a.target.closest("li").querySelector(".sub-menu").classList.toggle("toggled-on"),a.target.closest("li").classList.toggle("ast-menu-hover"),"false"!==a.target.getAttribute("aria-expanded")&&a.target.getAttribute("aria-expanded")?a.target.setAttribute("aria-expanded","false"):a.target.setAttribute("aria-expanded","true")},10))})}),(a||n)&&document.addEventListener("click",function(e){b(a,t,n,o)},!1),a||n)&&document.addEventListener("keydown",function(e){"Escape"===e.key&&b(a,t,n,o)},!1);var e=document.querySelectorAll("nav.site-navigation .ast-nav-menu > .menu-item-has-children > a .ast-header-navigation-arrow");e&&e.forEach(e=>{e.addEventListener("keydown",function(e){e.target.closest("li").classList.contains("ast-menu-hover")||"Enter"!==e.key||b(a,t,n,o)},!1)})})()}}}});for(var t,a,s,l,h=function(){var e=u.style.overflow,t=(u.style.overflow="hidden",document.documentElement.clientWidth);if(u.style.overflow=e,astra.break_point<t||0===t){if(0<r.length)for(var a=0;a<r.length;a++)null!==r[a]&&r[a].classList.remove("toggled");u.classList.remove("ast-header-break-point"),u.classList.add("ast-desktop"),astraTriggerEvent(u,"astra-header-responsive-enabled")}else u.classList.add("ast-header-break-point"),u.classList.remove("ast-desktop"),astraTriggerEvent(u,"astra-header-responsive-disabled")},v=function(){var e,a=document.querySelectorAll(".ast-account-action-login");if(a.length){let t=document.querySelector("#ast-hb-account-login-wrap");t&&(e=document.querySelector("#ast-hb-login-close"),a.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.classList.add("show")})}),e)&&e.addEventListener("click",function(e){e.preventDefault(),t.classList.remove("show")})}},f=(h(),AstraToggleSubMenu=function(e){e.preventDefault(),"false"!==e.target.getAttribute("aria-expanded")&&e.target.getAttribute("aria-expanded")?e.target.setAttribute("aria-expanded","false"):e.target.setAttribute("aria-expanded","true");for(var t=this.parentNode,a=(t.classList.contains("ast-submenu-expanded")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&(this.classList.contains("ast-menu-toggle")||""!==(e=t.querySelector("a").getAttribute("href"))&&"#"!==e&&(window.location=e)),t.querySelectorAll(".menu-item-has-children")),n=0;n<a.length;n++){a[n].classList.remove("ast-submenu-expanded");var o=a[n].querySelector(".sub-menu, .children");null!==o&&(o.style.display="none")}for(var s=t.parentNode.querySelectorAll(".menu-item-has-children"),n=0;n<s.length;n++)if(s[n]!=t){s[n].classList.remove("ast-submenu-expanded");for(var r=s[n].querySelectorAll(".sub-menu"),l=0;l<r.length;l++)r[l].style.display="none"}t.classList.contains("menu-item-has-children")&&(astraToggleClass(t,"ast-submenu-expanded"),t.classList.contains("ast-submenu-expanded")?t.querySelector(".sub-menu").style.display="block":t.querySelector(".sub-menu").style.display="none")},AstraToggleSetup=function(){if("undefined"!=typeof astraAddon&&"function"==typeof astraToggleSetupPro)astraToggleSetupPro(d,u,i);else{var e,t,a,n=!1;if(0<(e="off-canvas"===d||"full-width"===d?(t=document.querySelectorAll("#ast-mobile-popup, #ast-mobile-header"),(a=document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")).length):(t=document.querySelectorAll("#ast-mobile-header"),(n=!(0<(e=(a=document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")).length)))?1:e))||n)for(var o=0;o<e;o++)if(n||(a[o].setAttribute("data-index",o),i[o])||(i[o]=a[o],a[o].addEventListener("click",astraNavMenuToggle,!1)),void 0!==t[o])for(var s,r=0;r<t.length;r++)if(0<(s=document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")?t[r].querySelectorAll("ul.main-header-menu .menu-item-has-children > .menu-link, ul.main-header-menu .ast-menu-toggle"):t[r].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var l=0;l<s.length;l++)s[l].addEventListener("click",AstraToggleSubMenu,!1)}},astraNavMenuToggle=function(e){if("undefined"!=typeof astraAddon)astraNavMenuTogglePro(e,u,d,this);else{e.preventDefault();var e=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-bar-navigation"),t=(r=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),"0");if(null!==this.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),r=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),t="0"),void 0===e[t])return!1;for(var a=e[t].querySelectorAll(".menu-item-has-children"),n=0;n<a.length;n++){a[n].classList.remove("ast-submenu-expanded");for(var o=a[n].querySelectorAll(".sub-menu"),s=0;s<o.length;s++)o[s].style.display="none"}-1!==(this.getAttribute("class")||"").indexOf("main-header-menu-toggle")&&(astraToggleClass(e[t],"toggle-on"),astraToggleClass(r[t],"toggled"),e[t].classList.contains("toggle-on")?(e[t].style.display="block",u.classList.add("ast-main-header-nav-open")):(e[t].style.display="",u.classList.remove("ast-main-header-nav-open")))}},u.addEventListener("astra-header-responsive-enabled",function(){var e=document.querySelectorAll(".main-header-bar-navigation");if(0<e.length)for(var t=0;t<e.length;t++){null!=e[t]&&(e[t].classList.remove("toggle-on"),e[t].style.display="");for(var a=e[t].getElementsByClassName("sub-menu"),n=0;n<a.length;n++)a[n].style.display="";for(var o=e[t].getElementsByClassName("children"),s=0;s<o.length;s++)o[s].style.display="";for(var r=e[t].getElementsByClassName("ast-search-menu-icon"),l=0;l<r.length;l++)r[l].classList.remove("ast-dropdown-active"),r[l].style.display=""}},!1),w=navigator.userAgent,a=w.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(a[1])?t=/\brv[ :]+(\d+)/g.exec(w)||[]:"Chrome"===a[1]&&null!=(t=w.match(/\bOPR|Edge\/(\d+)/))||(a=a[2]?[a[1],a[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=w.match(/version\/(\d+)/i))&&a.splice(1,1,t[1]),"Safari"===a[0]&&a[1]<11&&document.body.classList.add("ast-safari-browser-less-than-11")),document.getElementsByClassName("astra-search-icon")),y=0;y<f.length;y++)f[y].onclick=function(e){var t;this.classList.contains("slide-search")&&(e.preventDefault(),(t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon")).classList.contains("ast-dropdown-active")?(""!==(t.querySelector(".search-field").value||"")&&t.querySelector(".search-form").submit(),t.classList.remove("ast-dropdown-active")):(t.classList.add("ast-dropdown-active"),t.querySelector(".search-field").setAttribute("autocomplete","off"),setTimeout(function(){t.querySelector(".search-field").focus()},200)))};function b(e,t,a,n){e&&e.forEach(e=>{e.classList.remove("astra-megamenu-focus"),e.classList.remove("toggled-on")}),a&&a.forEach(e=>{e.classList.remove("ast-menu-hover")}),n&&n.forEach(e=>{e.classList.remove("astra-megamenu-wrapper-focus")}),t&&t.forEach(e=>{e.setAttribute("aria-expanded","false")})}function L(){var e=this||"";if(e&&!e.classList.contains("astra-search-icon")&&null===e.closest(".ast-builder-menu")&&-1!==String(e).indexOf("#")){var t=e.parentNode;if(u.classList.contains("ast-header-break-point"))document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&t.classList.contains("menu-item-has-children")||(document.querySelector(".main-header-menu-toggle").classList.remove("toggled"),(t=document.querySelector(".main-header-bar-navigation")).classList.remove("toggle-on"),t.style.display="none",astraTriggerEvent(document.querySelector("body"),"astraMenuHashLinkClicked"));else for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("focus")&&(e.className=e.className.replace(" focus","")),e=e.parentElement}}function E(){for(var e=this;-1===e.className.indexOf("navigation-accessibility");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("focus"),e=e.parentElement}if(document.querySelectorAll(".search-field").forEach(e=>{e.addEventListener("focus",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&astraToggleClass(t,"ast-dropdown-active")}),e.addEventListener("blur",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&(t.classList.remove("ast-dropdown-active"),astraToggleClass(t,"ast-dropdown-active"))})}),u.onclick=function(e){if(void 0!==e.target.classList&&!e.target.classList.contains("ast-search-menu-icon")&&0===astraGetParents(e.target,".ast-search-menu-icon").length&&0===astraGetParents(e.target,".ast-search-icon").length)for(var t=document.getElementsByClassName("ast-search-menu-icon"),a=0;a<t.length;a++)t[a].classList.remove("ast-dropdown-active")},astra.is_header_footer_builder_active||"querySelector"in document&&"addEventListener"in window&&(u.addEventListener("mousedown",function(){u.classList.add("ast-mouse-clicked")}),u.addEventListener("keydown",function(){u.classList.remove("ast-mouse-clicked")})),astra.is_scroll_to_id){function S(e){let t=0;var a=document.querySelector(".site-header");a&&((a=a.querySelectorAll("div[data-stick-support]"))&&a.forEach(e=>{t+=e.clientHeight}),a=this.hash)&&(a=document.querySelector(a))&&(a=k(a)-t)&&astraSmoothScroll(e,a)}function k(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}let t=[];var w=document.querySelectorAll('a[href*="#"]:not([href="#"]):not([href="#0"]):not([href*="uagb-tab"]):not(.uagb-toc-link__trigger):not(.skip-link):not(.nav-links a):not([href*="tab-"])');if(w)for(let e of w)e.href.split("#")[0]!==location.href.split("#")[0]?t.push({hash:e.hash,url:e.href.split("#")[0]}):""!==e.hash&&e.addEventListener("click",S);window.addEventListener("DOMContentLoaded",e=>{for(var a of t)if(window.location.href.split("#")[0]===a.url){var n=document.querySelector(".site-header");let t=0;n=n.querySelectorAll("div[data-stick-support]"),n=(n&&n.forEach(e=>{t+=e.clientHeight}),document.querySelector(a.hash));n&&(a=k(n)-t)&&astraSmoothScroll(e,a)}})}astra.is_scroll_to_top&&(s=document.querySelector("#page header"),l=document.getElementById("ast-scroll-top"),astScrollToTopHandler(s,l),window.addEventListener("scroll",function(){astScrollToTopHandler(s,l)}),l.onclick=function(e){astraSmoothScroll(e,0)},l.addEventListener("keydown",function(e){"Enter"===e.key&&astraSmoothScroll(e,0)})),window.addEventListener("DOMContentLoaded",e=>{var t=document.querySelector(".ast-woocommerce-store-notice-hanged");let a=()=>{var e=document.querySelector('.woocommerce-store-notice[data-position="hang-over-top"]');document.body.style.marginTop=`${e?.clientHeight||0}px`};t&&(window.addEventListener("resize",a),setTimeout(()=>a(),0)),document.querySelector(".woocommerce-store-notice__dismiss-link")?.addEventListener("click",()=>{wp?.customize||(document.body.classList.remove("ast-woocommerce-store-notice-hanged"),window.removeEventListener("resize",a),document.body.style.marginTop=0)})})})(),document.addEventListener("DOMContentLoaded",function(){function t(e){var e=e.closest(".menu-link"),t=e.nextElementSibling.classList.contains("toggled-on");e.setAttribute("aria-expanded",t?"true":"false")}document.querySelectorAll(".menu-link .dropdown-menu-toggle").forEach(e=>{e.addEventListener("focus",function(){t(this)}),e.addEventListener("blur",function(){t(this)}),e.addEventListener("keydown",function(e){var t;"Enter"===e.key&&(e=(e=this).closest(".menu-link"),t=e.getAttribute("aria-expanded"),e.setAttribute("aria-expanded","true"===t?"false":"true"))})}),document.addEventListener("keydown",function(e){"Escape"===e.key&&document.querySelectorAll(".menu-link .dropdown-menu-toggle").forEach(function(e){t(e)})})}),document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".astra-shop-thumbnail-wrap").forEach(t=>{let a=t.querySelectorAll("a, span");a.forEach(e=>{e.addEventListener("focus",()=>{t.querySelectorAll(".ast-on-card-button, .ast-quick-view-trigger").forEach(e=>{e.style.opacity="1",e.style.visibility="visible",e.style.borderStyle="none"})}),e.addEventListener("blur",()=>{Array.from(a).some(e=>e===document.activeElement)||t.querySelectorAll(".ast-on-card-button, .ast-quick-view-trigger").forEach(e=>{e.style.opacity="",e.style.visibility=""})})})})});



}
catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://karilacosmetics.com/wp-content/themes/astra/assets/js/minified/frontend.min.js\n- Error message: "+ e.message);}

(()=>{var c=document.getElementById("astra-mobile-cart-drawer"),e=document.getElementById("masthead"),a=astra_cart.responsive_cart_click;if(e){var o,n="",r=e.querySelector("#ast-mobile-header"),d="",i=(void 0!==c&&""!==c&&null!==c&&(n=c.querySelector(".widget_shopping_cart.woocommerce"),d=c.querySelector(".widget_edd_cart_widget")),cartFlyoutOpen=function(e){"redirect"===a&&document.body.classList.contains("ast-header-break-point")||(e.preventDefault(),"woocommerce"===(e=e.currentTarget.cart_type)&&document.body.classList.contains("woocommerce-cart"))||(c.classList.remove("active"),c.classList.remove("woocommerce-active"),c.classList.remove("edd-active"),void 0!==c&&""!==c&&null!==c&&(c.classList.add("active"),document.documentElement.classList.add("ast-mobile-cart-active"),void 0!==d&&""!==d&&null!==d&&(d.style.display="block","woocommerce"===e)&&(d.style.display="none",c.classList.add("woocommerce-active")),void 0!==n)&&""!==n&&null!==n&&(n.style.display="block","edd"===e)&&(n.style.display="none",c.classList.add("edd-active")),document.dispatchEvent(new CustomEvent("astra_on_slide_In_cart_open",{detail:{}})))},cartFlyoutClose=function(e){e.preventDefault(),void 0!==c&&""!==c&&null!==c&&(c.classList.remove("active"),document.documentElement.classList.remove("ast-mobile-cart-active"))},document.querySelector(".ast-slidein-cart")&&document.querySelector(".ast-slidein-cart").addEventListener("click",e=>{document.querySelector("#astra-mobile-cart-drawer").classList.add("active"),document.querySelector("html").classList.add("ast-mobile-cart-active"),e.preventDefault()}),window.innerWidth);window.addEventListener("resize",function(){var e,t=document.querySelector(".astra-cart-drawer-close");void 0!==t&&""!==t&&null!==t&&"INPUT"!==document.activeElement.tagName&&c.classList.contains("active")&&(e=window.innerWidth)!==i&&(i=e,t.click())}),window.addEventListener("load",function(){s()}),document.addEventListener("astLayoutWidthChanged",function(){s()}),document.addEventListener("astPartialContentRendered",function(){s()});let t=window.innerWidth;function s(){var e,t,a;document.addEventListener("keyup",function(e){27===e.keyCode&&(e.preventDefault(),c.classList.remove("active"),document.documentElement.classList.remove("ast-mobile-cart-active"),updateTrigger())}),document.addEventListener("click",function(e){e.target===document.querySelector(".ast-mobile-cart-active .astra-mobile-cart-overlay")&&(c.classList.remove("active"),document.documentElement.classList.remove("ast-mobile-cart-active"))}),void 0!==r&&""!==r&&null!==r&&(e="flyout"==astra_cart.desktop_layout?document.querySelectorAll(".ast-mobile-header-wrap .ast-header-woo-cart, #ast-desktop-header .ast-desktop-cart-flyout"):document.querySelectorAll(".ast-mobile-header-wrap .ast-header-woo-cart"),t=document.querySelector(".ast-mobile-header-wrap .ast-header-edd-cart"),a=document.querySelector(".astra-cart-drawer-close"),0<e.length&&e.forEach(function(e){void 0!==e&&""!==e&&null!==e&&c&&(e.addEventListener("click",cartFlyoutOpen,!1),e.cart_type="woocommerce")}),void 0!==t&&""!==t&&null!==t&&c&&(t.addEventListener("click",cartFlyoutOpen,!1),t.cart_type="edd"),void 0!==a)&&""!==a&&null!==a&&a.addEventListener("click",cartFlyoutClose,!1)}window.addEventListener("resize",function(){let e=window.innerWidth;clearTimeout(o),o=setTimeout(function(){s(),t!==e&&document.dispatchEvent(new CustomEvent("astLayoutWidthChanged",{detail:{response:""}})),t=e},50)})}})();



}
catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://karilacosmetics.com/wp-content/themes/astra/assets/js/minified/mobile-cart.min.js\n- Error message: "+ e.message);}

!function(e){e((function(){var t="",c=window.location.href,n=void 0!==document.title?document.title:"",o={};function _(){localStorage.getItem("ht_ctc_storage")&&(o=localStorage.getItem("ht_ctc_storage"),o=JSON.parse(o))}function a(e){return!!o[e]&&o[e]}function r(e,t){_(),o[e]=t;var c=JSON.stringify(o);localStorage.setItem("ht_ctc_storage",c)}_();var i="";!function(){if("undefined"!=typeof ht_ctc_chat_var)i=ht_ctc_chat_var;else try{if(document.querySelector(".ht_ctc_chat_data")){var t=e(".ht_ctc_chat_data").attr("data-settings");i=JSON.parse(t)}}catch(e){i={}}}();var s,l,d,u={};function g(t){var c="",n=t+"_data";if(void 0!==window[t])c=window[t];else try{if(document.querySelector("."+n)){var o=e("."+n).attr("data-settings");c=JSON.parse(o)}}catch(e){c={}}return e("."+n).remove(),c}"undefined"!=typeof ht_ctc_variables?u=ht_ctc_variables:(u={},setTimeout((()=>{u="undefined"!=typeof ht_ctc_variables?ht_ctc_variables:{}}),2e3)),document.dispatchEvent(new CustomEvent("ht_ctc_pro_init",{detail:{ht_ctc_storage:o,ctc_setItem:r,ctc_getItem:a}})),s=e(".ht_ctc_multi_agent"),l=g("ht_ctc_multi_agent_main"),d="yes",s.each((function(t,c){var n=g(e(c).attr("data-key")),o=m().getDay();"0"==o&&(o=7);var _=[];for(t=o;t<=7;t++)_.push(t);if(7!==_.length){var a=7-_.length;for(t=1;t<=a;t++)_.push(t)}var r="yes";if(n.timings&&"always"==n.timings)r="yes";else if(n.timings&&"set"==n.timings)if(n.time_sets){r="no";var i=n.time_sets,s=y(),u=1;i.forEach((e=>{e.stm<=s&&s<=e.etm&&1==u&&(r="yes",u++)}))}else r="no",d="no";function f(t){var o=e(c);e(c).css({order:"1"}),o.find(".g_multi_box").css({opacity:"0.5"}),o.find(".ctc_g_agent_tags").css({color:"unset"}),"nochat"==t&&e(c).css({"pointer-events":"none"});var _=function(){var e="";if(n.time_sets){var t=y(),c=n.time_sets,o="",_=1;if(c.forEach((e=>{t<=e.stm&&1==_&&(o=e.stm,_++)})),""==o){var a=10080-t;next_week_start_minute=c[0].stm,r=a+next_week_start_minute}else var r=o-t;(e=r)<60?e=(e=Math.round(e))+" "+(e<2?l.ctc_minute:l.ctc_minutes):24>(e/=60)?e=(e=Math.round(e))+" "+(e<2?l.ctc_hour:l.ctc_hours):(e/=24,e=(e=Math.round(e))+" "+(e<2?l.ctc_day:l.ctc_days))}return e}();"no"!==d&&(o.find(".ctc_g_agent_tags .ctc_agent_next_time").append(_),o.find(".ctc_g_agent_tags .ctc_agent_next_time").css({display:"flex"}))}"no"==r&&l.agent_offline&&("chat"==l.agent_offline?f("chat"):"nochat"==l.agent_offline?f("nochat"):c.remove())})),g_hook_v=i.hook_v?i.hook_v:"",g_hook_url=i.hook_url?i.hook_url:"",document.addEventListener("ht_ctc_event_number",(function(e){if((i=e.detail.ctc).r_nums&&i.r_nums[0]){var t=i.r_nums;i.number=t[Math.floor(Math.random()*t.length)]}})),e(document).on("click",".ht_ctc_chat_greetings_for_forum_link",(function(t){e(".ht_ctc_chat_greetings_forum_link").trigger("click");var c=document.getElementById("ctc_pro_greetings_form");c&&!1===c.checkValidity()&&e("#ctc_pro_greetings_form [type=checkbox][required]:not(:checked)").closest("div").fadeOut("1").fadeIn("1")})),i.form_no_duplicates&&e(document).on("input",".ctc_pro_greetings_form",(function(e){r("form_data_change",(new Date).getTime())})),document.querySelector("#ctc_opt_g_form")&&(e("#ctc_opt_g_form").on("change",(function(t){e("#ctc_opt_g_form").is(":checked")&&(e(".ctc_opt_g_form").hide(500),r("g_optin","y"))})),a("g_optin")?(e("#ctc_opt_g_form").prop("checked",!0),e(".ctc_opt_g_form").hide()):e("#ctc_opt_g_form").prop("required",!0)),document.querySelector(".ht_ctc_g_form_field_hidden")&&e(".ht_ctc_g_form_field_hidden").each((function(t,c){var n=e(c).val();n=h(n),e(c).val(n)})),e(document).on("click",".ht_ctc_chat_greetings_box_link_multi",(function(t){function c(){var t=e(".ctc_g_content").attr("data-agentstyle");if("card-1"==t?e(".ctc_g_content").css({padding:"4px 0px","background-color":"#f8f8f8"}):"7_1"==t&&e(".ctc_g_content").css({padding:"4px 0px 8px 0px"}),e(".ctc_g_sentbutton").hide(),"card-1"==t){var c=e(".ctc_g_message_box");e(c).removeClass("ctc_g_message_box"),e(c).css({"background-color":"","text-align":"inherit",padding:"4px 0px"}),e(".ctc_g_heading_for_main_content").append(c)}else"7_1"==t&&e(".ctc_g_message_box").css({"background-color":"","text-align":"center",padding:"4px 0px"});e(".ctc_g_agents").slideToggle("slow",(function(){}))}t.preventDefault(),document.querySelector("#ctc_opt_multi")?e("#ctc_opt_multi").is(":checked")||a("g_optin")?c():e(".ctc_opt_in").show(400).fadeOut("1").fadeIn("1"):c(),document.querySelector("#ctc_opt_multi")&&e("#ctc_opt_multi").on("change",(function(t){e("#ctc_opt_multi").is(":checked")&&(e(".ctc_opt_in").hide(100),r("g_optin","y"),setTimeout((()=>{c()}),500))}))})),document.querySelector(".add_ctc_chat")&&((e("#ctc_opt_multi").is(":checked")||a("g_optin"))&&e(".add_ctc_chat").addClass("ctc_chat").removeClass("add_ctc_chat"),e(document).on("click",".add_ctc_chat",(function(t){e(".ctc_opt_in").show(400).fadeOut("1").fadeIn("1")})),e("#ctc_opt_multi").on("change",(function(t){e("#ctc_opt_multi").is(":checked")&&(e(".ctc_opt_in").hide(100),r("g_optin","y"),e(".add_ctc_chat").addClass("ctc_chat").removeClass("add_ctc_chat"))})));var f="no";function h(e){var t=i.chat_number&&""!==i.chat_number?i.chat_number:i.number;try{var o;(o=(e=(e=(e=e.replace("{number}",t)).replace("{title}",n)).replace("{url}",c)).match(/\[\[(.*?)\]\]/g))&&o.forEach((t=>{var c,n,o=t.replace("[[","").replace("]]","");e=e.replace(t,(c=o,2==(n=("; "+document.cookie).split("; "+c+"=")).length?n.pop().split(";").shift():""))})),(o=e.match(/\[(.*?)\]/g))&&o.forEach((t=>{var c=t.replace("[","").replace("]","");e=e.replace(t,function(e){var t=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var c=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return c&&c[2]?decodeURIComponent(c[2].replace(/\+/g," ")):""}(c))}))}catch(e){}return e}function m(){var e=new Date,t=e.getTime()+6e4*e.getTimezoneOffset(),c=parseFloat(i.tz);return new Date(t+36e5*c)}e(document).on("submit",".ctc_pro_greetings_form",(function(t){t.preventDefault();try{e(".ctc_g_its_checkbox").each((function(){e(this).is(":checked")&&e(this).siblings(['type="hidden"']).prop("disabled",!0)}))}catch(t){}var o=e(".ctc_pro_greetings_form").find(".ht_ctc_g_form_field").serializeArray();if(document.querySelector(".ctc_g_field_add_to_prefilled")){var _=i.pre_filled,s=i.pre_filled,l=e(".ctc_pro_greetings_form").find(".ctc_g_field_add_to_prefilled").serializeArray(),d="\n";for(var u of l.values()){var g=".ctc_pro_greetings_form [name='"+(I=u.name)+"']",h=I;e(g)[0].hasAttribute("data-name")&&(h=e(g).attr("data-name")),""!==(T=u.value)&&(d+=h+": "+T+"\n")}s+=d,i.pre_filled=s}e(".ht_ctc_chat_greetings_forum_link").addClass("ht_ctc_chat_greetings_box_link"),setTimeout((()=>{e(".ht_ctc_chat_greetings_box_link").trigger("click")}),20),setTimeout((()=>{e(".ht_ctc_chat_greetings_forum_link").removeClass("ht_ctc_chat_greetings_box_link"),i.pre_filled&&_&&(i.pre_filled=_)}),500);var p=e(".ctc_g_form_keys #ht_ctc_pro_greetings_nonce").val(),v="no";try{if(i.form_no_duplicates){var y=(new Date).getTime(),k=a("form_data_sent"),w=Number.isInteger(k)?Math.abs(y-k):60001,x=a("form_data_change");w<6e4?Number.isInteger(x)&&k>=x&&(v="y"):Number.isInteger(x)||r("form_data_change",y)}}catch(t){}if("y"==v||"y"==f);else if(f="y",setTimeout((()=>{f="n"}),1e3),i.ajaxurl&&i.g1_form_email&&e.ajax({url:i.ajaxurl,type:"POST",data:{action:"ctc_pro_greetings_form",form_data:o,nonce:p},success:function(e){r("form_data_sent",(new Date).getTime())},error:function(e){}}),i.g1_form_webhook){var S=i.g1_form_webhook,E={};for(var u of o.values()){var I=u.name,T=u.value;E[I]=T}decoded_url=b(c),E.ctc_page_url=decoded_url;var q=m();if(E.ctc_wp_date=q.toDateString(),E.ctc_wp_time=q.getHours()+":"+q.getMinutes()+":"+q.getSeconds(),E.ctc_page_title=n,i.webhook_format&&"json"==i.webhook_format)var D=E;else D=JSON.stringify(E);e.ajax({url:S,type:"POST",mode:"no-cors",data:D,success:function(e){r("form_data_sent",(new Date).getTime())},error:function(e){}})}try{e(".ctc_g_hidden_for_checkbox").each((function(){e(this).prop("disabled",!1)}))}catch(t){}0})),document.addEventListener("ht_ctc_event_hook",(function(e){i=e.detail.ctc,number=i.chat_number&&""!==i.chat_number?i.chat_number:e.detail.number;var t=m(),n=t.toDateString()+", "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds();if(i.hook_url){var o=i.hook_url?i.hook_url:"";if(decoded_url=b(c),o=h(o=(o=o.replace(/\{url}/gi,decoded_url)).replace(/\{time}/gi,n)),i.hook_v){hook_values=g_hook_v;var _={},a=1;hook_values.forEach((e=>{e=h(e=(e=e.replace(/\{url}/gi,decoded_url)).replace(/\{time}/gi,n)),_["value"+a]=e,a++})),i.hook_url=o,i.hook_v=_}}})),document.addEventListener("ht_ctc_event_display",(function(c){if(i=c.detail.ctc,online_content=c.detail.online_content,i.display_user_base&&(t=function(c){t="no";var n=(i=c.detail.ctc).display_user_base?i.display_user_base:"",o="logged_out";return document.querySelector("body").classList.contains("logged-in")&&(o="logged_in"),"logged_in"==n?"logged_in"==o?t="yes":i.ajaxurl&&e.ajax({url:i.ajaxurl,data:{action:"ctc_pro_is_user_logged_in"},success:function(e){"yes"==e.data&&(t="yes")}}):"logged_out"==n&&"logged_out"==o&&(t="yes"),t}(c)),"no"!==t)if(u.display_countries_list&&u.display_countries_list.length>0){document.dispatchEvent(new CustomEvent("ht_ctc_event_display_country_base",{detail:{ctc:i,ctc_setItem:r,ctc_getItem:a}}));var n=0,o=setInterval((()=>{n++,u.country_code&&(u.country_code.length>0&&(t=u.display_countries_list.includes(u.country_code)?"yes":"no"),clearInterval(o),_()),n>40&&(clearInterval(o),_())}),200)}else _();function _(){"no"!==t&&function(t){i=t.detail.ctc,display_chat=t.detail.display_chat,ht_ctc_chat=t.detail.ht_ctc_chat;var c="",n=i.bh,o=(p.getDay(),p.getHours()),_=p.getMinutes();if("always"==n)c="yes";else if("timebase"==n){var a=p.getDay();"0"==a&&(a=7);var r="d"+a;if(i[r]){var s=r+"_et";if(i[l=r+"_st"]&&i[s]){var l=i[l],d=(s=i[s],l.split(":")),u=s.split(":"),g=d[0],f=d[1],h=u[0],m=u[1];g<=o&&o<=h?(c="yes",g==o?f>_&&(c="no"):o==h&&_>m&&(c="no")):c="no"}else c="yes"}else c="no"}function v(){""!==i.timedelay||""!==i.scroll?(""!==i.timedelay&&setTimeout((()=>{display_chat(ht_ctc_chat)}),1e3*i.timedelay),""!==i.scroll&&window.addEventListener("scroll",(function e(){var t=document.documentElement,c=document.body,n="scrollTop",o="scrollHeight";(t[n]||c[n])/((t[o]||c[o])-t.clientHeight)*100>=i.scroll&&(display_chat(ht_ctc_chat),window.removeEventListener("scroll",e))}),!1)):display_chat(ht_ctc_chat)}function y(){if(document.querySelector(".ctc_woo_schedule")){var t=e(".ctc_woo_schedule").attr("data-dt");e(".ctc_woo_schedule").css("display",t)}}"yes"==c?(v(),y(),"undefined"!=typeof online_content&&online_content()):"no"==c&&(i.off_cta&&(e(".ht-ctc-chat .ctc_cta").text(i.off_cta),e(".ctc_chat.ctc_woo_schedule .ctc_cta").text(i.off_cta)),i.off_num&&(i.number=i.off_num,i.r_nums=""),i.off_hide||(v(),y()),e(".for_greetings_header_image_badge").length&&(i.offline_badge_color&&(e(".for_greetings_header_image_badge").addClass("g_header_badge_online"),e(".g_header_badge_online").css("background-color",i.offline_badge_color)),e(".for_greetings_header_image_badge").show()))}(c)}})),document.addEventListener("ht_ctc_event_after_chat_displayed",(function(e){if(i=e.detail.ctc,greetings_open=e.detail.greetings_open,greetings_close=e.detail.greetings_close,i.g_no_reopen&&"user_closed"==a("g_user_action"));else if(i.g_time_action&&setTimeout((()=>{greetings_open("time_action")}),1e3*i.g_time_action),i.g_scroll_action){window.addEventListener("scroll",(function e(){var t=document.documentElement,c=document.body,n="scrollTop",o="scrollHeight";(t[n]||c[n])/((t[o]||c[o])-t.clientHeight)*100>=i.g_scroll_action&&(greetings_open("scroll_action"),window.removeEventListener("scroll",e))}),!1)}if(document.querySelector(".ctc_greetings_now")&&"IntersectionObserver"in window){var t=window.innerHeight/4*-1;t=parseInt(t),rm=t+"px",rm=String(rm);var c=new IntersectionObserver((function(e){e.forEach((e=>{e.isIntersecting&&(greetings_open("now"),c.unobserve(e.target))}))}),{rootMargin:rm});document.querySelectorAll(".ctc_greetings_now").forEach((e=>{c.observe(e,{subtree:!0,childList:!0})}))}})),document.addEventListener("ht_ctc_event_apply_variables",(function(e){v=e.detail.v,v=h(v),window.apply_variables_value=v})),document.addEventListener("ht_ctc_event_analytics",(function(t){var o=i.chat_number&&""!==i.chat_number?i.chat_number:i.number;if(i.gads_conversation&&"undefined"!=typeof gtag){var _=i.gads_conversation,a={};a.send_to=_,u.g_ads_params&&u.g_ads_params.forEach((e=>{if(u[e]){var t=u[e],c=t.key,n=t.value;c=h(c),n=h(n),a[c]=n}})),gtag("event","conversion",a)}var r=i.nonce?i.nonce:"";i.fb_conversion&&e.ajax({url:i.ajaxurl,data:{action:"ctc_pro_capi",url:c,title:n,number:o,nonce:r},type:"POST",success:function(e){},error:function(e){}})})),document.querySelector(".ht_ctc_chat_greetings_box_layout")&&e(".ht_ctc_chat_greetings_box_layout").css("background-color","unset");var p=m();function y(){var e=m(),t=e.getDay();return"0"==t&&(t=7),60*(24*(t-1)+e.getHours())+e.getMinutes()}function b(e){new_value=e;try{new_value=decodeURI(e)}catch(e){}return new_value}y()}))}(jQuery);



}
catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://karilacosmetics.com/wp-content/plugins/click-to-chat-pro/public/assets/js/pro.js\n- Error message: "+ e.message);}

!function(t){t((function(){var e=window.location.href,c=void 0!==document.title?document.title:"",n="no";try{n=void 0!==navigator.userAgent&&navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i)?"yes":"no"}catch(t){}if("no"==n)n=void 0!==screen.width&&screen.width>1025?"no":"yes";var a="",_={};function o(){localStorage.getItem("ht_ctc_storage")&&(_=localStorage.getItem("ht_ctc_storage"),_=JSON.parse(_))}function i(t){return!!_[t]&&_[t]}function r(t,e){o(),_[t]=e;var c=JSON.stringify(_);localStorage.setItem("ht_ctc_storage",c)}o();var s="";!function(){if("undefined"!=typeof ht_ctc_chat_var)s=ht_ctc_chat_var;else try{if(document.querySelector(".ht_ctc_chat_data")){var e=t(".ht_ctc_chat_data").attr("data-settings");s=JSON.parse(e),window.ht_ctc_chat_var=s}}catch(t){s={}}}();var h,u={};function d(e="open"){f(),t(".ctc_cta_stick").remove(),"init"==e?t(".ht_ctc_chat_greetings_box").show(70):t(".ht_ctc_chat_greetings_box").show(400),t(".ht_ctc_chat_greetings_box").addClass("ctc_greetings_opened").removeClass("ctc_greetings_closed"),r("g_action",e),"user_opened"==e&&r("g_user_action",e)}function l(){setTimeout((()=>{g("chat_clicked")}),500)}function g(e="close"){"element"==e?t(".ht_ctc_chat_greetings_box").hide(70):t(".ht_ctc_chat_greetings_box").hide(400),t(".ht_ctc_chat_greetings_box").addClass("ctc_greetings_closed").removeClass("ctc_greetings_opened"),r("g_action",e),"user_closed"==e&&r("g_user_action",e)}function p(t){var e;"yes"==n?"show"==s.dis_m&&((e=document.querySelector(".ht_ctc_desktop_chat"))&&e.remove(),t.style.cssText=s.pos_m+s.css,m(t)):"show"==s.dis_d&&((e=document.querySelector(".ht_ctc_mobile_chat"))&&e.remove(),t.style.cssText=s.pos_d+s.css,m(t))}function m(e){try{t(e).show(parseInt(s.se))}catch(t){e.style.display="block"}!function(){if(t(".ht_ctc_chat_greetings_box").length){if(s.g_device){if("yes"!==n&&"mobile"==s.g_device)return void t(".ht_ctc_chat_greetings_box").remove();if("yes"==n&&"desktop"==s.g_device)return void t(".ht_ctc_chat_greetings_box").remove()}document.dispatchEvent(new CustomEvent("ht_ctc_event_after_chat_displayed",{detail:{ctc:s,greetings_open:d,greetings_close:g}})),s.g_init&&"user_closed"!==i("g_user_action")&&("default"==s.g_init?"yes"!==n&&d("init"):"open"==s.g_init&&d("init")),t(document).on("click",'.ctc_greetings, #ctc_greetings, .ctc_greetings_now, [href="#ctc_greetings"]',(function(t){t.preventDefault(),g("element"),d("element")}))}}(),function(){if(document.querySelector(".ht_ctc_notification")&&"stop"!==i("n_badge")){if(document.querySelector(".ctc_nb")){var e=t(".ht_ctc_badge").closest(".ht_ctc_style");t(".ht_ctc_badge").css({top:t(e).find(".ctc_nb").attr("data-nb_top"),right:t(e).find(".ctc_nb").attr("data-nb_right")})}var c=s.n_time?1e3*s.n_time:"150";setTimeout((()=>{t(".ht_ctc_notification").show(400)}),c)}}(),function(e){var c=t(e).hasClass("ht_ctc_entry_animation")?1200:120;setTimeout((function(){e.classList.add("ht_ctc_animation",s.ani)}),c),t(".ht-ctc-chat").hover((function(){t(".ht-ctc-chat .ht-ctc-cta-hover").show(120)}),(function(){t(".ht-ctc-chat .ht-ctc-cta-hover").hide(100)}))}(e)}function v(){t(".for_greetings_header_image_badge").length&&(t(".for_greetings_header_image_badge").addClass("g_header_badge_online"),t(".for_greetings_header_image_badge").show())}function f(){document.querySelector(".ht_ctc_notification")&&(r("n_badge","stop"),t(".ht_ctc_notification").remove())}function y(_){document.dispatchEvent(new CustomEvent("ht_ctc_event_number",{detail:{ctc:s}}));var o=s.number,i=s.pre_filled;_.hasAttribute("data-number")&&""!==_.getAttribute("data-number")&&(o=_.getAttribute("data-number")),_.hasAttribute("data-pre_filled")&&(i=_.getAttribute("data-pre_filled"));try{i=i.replaceAll("%","%25");var r=window.location.href;i=i.replace(/\[url]/gi,r),i=encodeURIComponent(decodeURI(i))}catch(t){}if(""!=o){var h="https://wa.me/"+o+"?text="+i,d=s.url_target_d?s.url_target_d:"_blank";"yes"==n?(s.url_structure_m&&(h="whatsapp://send?phone="+o+"&text="+i,d="_self"),s.custom_url_m&&""!==s.custom_url_m&&(h=s.custom_url_m)):(s.url_structure_d&&(h="https://web.whatsapp.com/send?phone="+o+"&text="+i),s.custom_url_d&&""!==s.custom_url_d&&(h=s.custom_url_d));var l="popup"==d?"scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=788,height=514,left=100,top=100":"noopener";window.open(h,d,l),s.chat_number=o,function(){if(s.analytics&&"session"==s.analytics){if(sessionStorage.getItem("ht_ctc_analytics"))return;sessionStorage.setItem("ht_ctc_analytics","done")}function t(t){var n=s.chat_number&&""!==s.chat_number?s.chat_number:s.number;try{document.dispatchEvent(new CustomEvent("ht_ctc_event_apply_variables",{detail:{v:t}})),t=(t=(t=(t=void 0!==window.apply_variables_value?window.apply_variables_value:t).replace("{number}",n)).replace("{title}",c)).replace("{url}",e)}catch(t){}return t}document.dispatchEvent(new CustomEvent("ht_ctc_event_analytics"));var n=s.chat_number&&""!==s.chat_number?s.chat_number:s.number,a={},_="Click to Chat for WhatsApp",o="chat: "+n,i=c+", "+e;if(s.ga){var r=s.g_an_event_name&&""!==s.g_an_event_name?s.g_an_event_name:"click to chat";r=t(r),u.g_an_params&&u.g_an_params.forEach((e=>{if(u[e]){var c=u[e],n=c.key,_=c.value;n=t(n),_=t(_),a[n]=_}}));var h=0,d="no";if("undefined"!=typeof dataLayer)try{"undefined"==typeof gtag&&(window.gtag=function(){dataLayer.push(arguments)},d="yes");var l=[];function g(t){t=t.toUpperCase(),l.includes(t)||(l.push(t),(t.startsWith("G-")||t.startsWith("GT-"))&&(a.send_to=t,gtag("event",r,a),h++))}if(window.google_tag_data&&window.google_tag_data.tidr&&window.google_tag_data.tidr.destination)for(var p in window.google_tag_data.tidr.destination)g(p);dataLayer.forEach((function(t){"config"==t[0]&&t[1]&&g(p=t[1])}))}catch(y){}0==h&&"no"==d&&("undefined"!=typeof gtag?gtag("event",r,a):"undefined"!=typeof ga&&void 0!==ga.getAll?ga.getAll()[0].send("event",_,o,i):"undefined"!=typeof __gaTracker&&__gaTracker("send","event",_,o,i))}if("undefined"!=typeof dataLayer&&dataLayer.push({event:"Click to Chat",type:"chat",number:n,title:c,url:e,event_category:_,event_label:i,event_action:o,ref:"dataLayer push"}),s.ads&&"undefined"!=typeof gtag_report_conversion&&gtag_report_conversion(),s.fb&&"undefined"!=typeof fbq){var m=s.pixel_event_name&&""!==s.pixel_event_name?s.pixel_event_name:"Click to Chat by HoliThemes",v=u.pixel_event_type&&""!==u.pixel_event_type?u.pixel_event_type:"trackCustom",f={};u.pixel_params&&u.pixel_params.forEach((e=>{if(u[e]){var c=u[e],n=c.key,a=c.value;n=t(n),a=t(a),f[n]=a}})),fbq(v,m,f)}}(),function(e){if(s.hook_url){var c={};if(s.hook_v){c=void 0!==b?b:s.hook_v;var n={},a=1;c.forEach((t=>{n["value"+a]=t,a++})),s.hook_v=n}document.dispatchEvent(new CustomEvent("ht_ctc_event_hook",{detail:{ctc:s,number:e}}));var _=s.hook_url;if(c=s.hook_v,s.webhook_format&&"json"==s.webhook_format)var o=c;else o=JSON.stringify(c);t.ajax({url:_,type:"POST",mode:"no-cors",data:o,success:function(t){}})}}(o),f()}else t(".ht-ctc-chat").html(a)}"undefined"!=typeof ht_ctc_variables?u=ht_ctc_variables:(u={g_an_event_name:"click to chat",pixel_event_name:"Click to Chat by HoliThemes",pixel_event_type:"trackCustom",g_an_params:["g_an_param_1","g_an_param_2","g_an_param_3"],g_an_param_1:{key:"number",value:"{number}"},g_an_param_2:{key:"title",value:"{title}"},g_an_param_3:{key:"url",value:"{url}"},pixel_params:["pixel_param_1","pixel_param_2","pixel_param_3","pixel_param_4"],pixel_param_1:{key:"Category",value:"Click to Chat for WhatsApp"},pixel_param_2:{key:"return_type",value:"chat"},pixel_param_3:{key:"ID",value:"{number}"},pixel_param_4:{key:"Title",value:"{title}"}},window.ht_ctc_variables=u),function(){var e=document.querySelector(".ht_ctc_chat_data");e&&(a=t(".ht_ctc_chat_data").attr("data-no_number"),e.remove())}(),document.dispatchEvent(new CustomEvent("ht_ctc_event_settings",{detail:{ctc:s}})),(h=document.querySelector(".ht-ctc-chat"))&&(document.dispatchEvent(new CustomEvent("ht_ctc_event_chat")),function(t){"yes"==s.schedule?document.dispatchEvent(new CustomEvent("ht_ctc_event_display",{detail:{ctc:s,display_chat:p,ht_ctc_chat:t,online_content:v}})):(p(t),v())}(h),h.addEventListener("click",(function(){t(".ht_ctc_chat_greetings_box").length||y(h)})),t(".ht_ctc_chat_greetings_box").length&&t(document).on("click",".ht_ctc_chat_style",(function(e){t(".ht_ctc_chat_greetings_box").hasClass("ctc_greetings_opened")?g("user_closed"):d("user_opened")})),t(document).on("click",".ctc_greetings_close_btn",(function(t){g("user_closed")})),t(document).on("click",".ht_ctc_chat_greetings_box_link",(function(e){e.preventDefault(),document.querySelector("#ctc_opt")?t("#ctc_opt").is(":checked")||i("g_optin")?(y(h),l()):t(".ctc_opt_in").show(400).fadeOut("1").fadeIn("1"):(y(h),l()),document.dispatchEvent(new CustomEvent("ht_ctc_event_greetings"))})),document.querySelector("#ctc_opt")&&t("#ctc_opt").on("change",(function(e){t("#ctc_opt").is(":checked")&&(t(".ctc_opt_in").hide(100),r("g_optin","y"),setTimeout((()=>{y(h),l()}),500))}))),t(document).on("click",".ht-ctc-sc-chat",(function(){y(this)})),t(document).on("click",".ctc_chat, #ctc_chat",(function(e){y(this),t(this).hasClass("ctc_woo_place")&&e.preventDefault()})),t(document).on("click",'[href="#ctc_chat"]',(function(t){t.preventDefault(),y(this)}));var b=s.hook_v?s.hook_v:""}))}(jQuery);



}
catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://karilacosmetics.com/wp-content/plugins/click-to-chat-for-whatsapp/new/inc/assets/js/app.js\n- Error message: "+ e.message);}

"use strict";function gtm4wp_make_sure_is_float(e){return"string"==typeof e?(e=parseFloat(e),isNaN(e)&&(e=0)):"number"!=typeof e&&(e=0),e=e.toFixed(2)}function gtm4wp_push_ecommerce(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]&&arguments[3],a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:2e3,r=r||{},t=(r.items=t,gtm4wp_clear_ecommerce&&window[gtm4wp_datalayer_name].push({ecommerce:null}),{event:e,ecommerce:r});n&&(t.eventCallback=n,t.eventTimeout=a),window[gtm4wp_datalayer_name].push(t)}function gtm4wp_read_from_json(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["productlink","internal_id"];try{var r=JSON.parse(e);if(r){if(r.price&&(r.price=gtm4wp_make_sure_is_float(r.price)),t&&0<t.length)for(var n=0;n<t.length;n++)delete r[t[n]];return r}}catch(e){console&&console.error&&console.error(e.message)}return!1}function gtm4wp_read_json_from_node(e,t){return!!(e&&e.dataset&&e.dataset[t])&&gtm4wp_read_from_json(e.dataset[t],2<arguments.length&&void 0!==arguments[2]?arguments[2]:["productlink","internal_id"])}function gtm4wp_update_json_in_node(e,t,r,n){if(e&&e.dataset&&e.dataset[t])try{var a=JSON.parse(e.dataset[t]);if(a)return a.price&&(a.price=gtm4wp_make_sure_is_float(a.price)),a[r]=n,e.dataset[t]=JSON.stringify(a),!0}catch(e){console&&console.error&&console.error(e.message)}return!1};



}
catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://karilacosmetics.com/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-ecommerce-generic.js\n- Error message: "+ e.message);}

"use strict";var gtm4wp_last_selected_product_variation;function gtm4wp_woocommerce_handle_cart_qty_change(){document.querySelectorAll(".product-quantity input.qty").forEach(function(t){var e=t.defaultValue,o=parseInt(t.value);if(e!=(o=isNaN(o)?e:o)){var t=t.closest(".cart_item"),t=t&&t.querySelector(".remove");if(t)return!(t=gtm4wp_read_json_from_node(t,"gtm4wp_product_data"))||void(e<o?(t.quantity=o-e,t.price=t.price,gtm4wp_push_ecommerce("add_to_cart",[t],{currency:gtm4wp_currency,value:t.price*t.quantity})):(t.quantity=e-o,t.price=t.price,gtm4wp_push_ecommerce("remove_from_cart",[t],{currency:gtm4wp_currency,value:t.price*t.quantity})))}})}function gtm4wp_woocommerce_handle_payment_method_change(){var t,e;-1<gtm4wp_checkout_step_fired.indexOf("payment_method")||"complete"==document.readyState&&(t="(payment type not found)",(e=(e=document.querySelector(".payment_methods input:checked"))||document.querySelector("input[name^=payment_method]"))&&(t=e.value),gtm4wp_push_ecommerce("add_payment_info",window.gtm4wp_checkout_products,{currency:gtm4wp_currency,payment_type:t,value:window.gtm4wp_checkout_value}),gtm4wp_checkout_step_fired.push("payment_method"))}function gtm4wp_woocommerce_handle_shipping_method_change(){var t,e;-1<gtm4wp_checkout_step_fired.indexOf("shipping_method")||"complete"==document.readyState&&(t="(shipping tier not found)",(e=(e=document.querySelector("input[name^=shipping_method]:checked"))||document.querySelector("input[name^=shipping_method]"))&&(t=e.value),gtm4wp_push_ecommerce("add_shipping_info",window.gtm4wp_checkout_products,{currency:gtm4wp_currency,shipping_tier:t,value:window.gtm4wp_checkout_value}),gtm4wp_checkout_step_fired.push("shipping_method"))}function gtm4wp_woocommerce_process_pages(){var n={"wp-block-handpicked-products":{displayname:"Handpicked Products",counter:1},"wp-block-product-best-sellers":{displayname:"Best Selling Products",counter:1},"wp-block-product-category":{displayname:"Product Category List",counter:1},"wp-block-product-new":{displayname:"New Products",counter:1},"wp-block-product-on-sale":{displayname:"Sale Products",counter:1},"wp-block-products-by-attribute":{displayname:"Products By Attribute",counter:1},"wp-block-product-tag":{displayname:"Products By Tag",counter:1},"wp-block-product-top-rated":{displayname:"Top Rated Products",counter:1}};if(document.querySelectorAll(".wc-block-grid .wc-block-grid__product").forEach(function(t){var e=t.closest(".wc-block-grid"),o=t.querySelector(".gtm4wp_productdata");if(e&&o){var r=e.classList;if(r)for(var c in n)r.contains(c)&&(gtm4wp_update_json_in_node(o,"gtm4wp_product_data","item_list_name",n[c].displayname),gtm4wp_update_json_in_node(o,"gtm4wp_product_data","index",n[c].counter),n[c].counter++)}}),0<document.querySelectorAll(".gtm4wp_productdata,.widget-product-item").length){var t,e=[];if(document.querySelectorAll(".gtm4wp_productdata,.widget-product-item").forEach(function(t){t=gtm4wp_read_json_from_node(t,"gtm4wp_product_data");if(!t)return!0;e.push(t)}),0<gtm4wp_product_per_impression)for(;e.length;)t=e.splice(0,gtm4wp_product_per_impression),gtm4wp_push_ecommerce("view_item_list",t,{currency:gtm4wp_currency});else gtm4wp_push_ecommerce("view_item_list",e,{currency:gtm4wp_currency})}document.addEventListener("click",function(t){var e=t.target;if(!e)return!0;if(e.closest(".add_to_cart_button:not(.product_type_variable, .product_type_grouped, .single_add_to_cart_button)")){var o=e.closest(".product,.wc-block-grid__product"),o=o&&o.querySelector(".gtm4wp_productdata");if(!o)return!0;o=gtm4wp_read_json_from_node(o,"gtm4wp_product_data");if(!o)return!0;if("variable"===o.product_type||"grouped"===o.product_type)return!0;o.productlink&&delete o.productlink,delete o.product_type,o.quantity=1,gtm4wp_push_ecommerce("add_to_cart",[o],{currency:gtm4wp_currency,value:o.price})}if(e.closest(".single_add_to_cart_button:not(.disabled)")){o=e.closest("form.cart");if(!o)return!0;var r=o.querySelectorAll("[name=variation_id]"),c=o.classList&&o.classList.contains("grouped_form");if(0<r.length)gtm4wp_last_selected_product_variation&&(r=o.querySelector("[name=quantity]"),gtm4wp_last_selected_product_variation.quantity=r&&r.value||1,gtm4wp_push_ecommerce("add_to_cart",[gtm4wp_last_selected_product_variation],{currency:gtm4wp_currency,value:(gtm4wp_last_selected_product_variation.price*gtm4wp_last_selected_product_variation.quantity).toFixed(2)}));else if(c){var r=document.querySelectorAll(".grouped_form .gtm4wp_productdata"),n=[],a=0;if(r.forEach(function(t){var e,t=gtm4wp_read_json_from_node(t,"gtm4wp_product_data",["productlink"]);return!(t&&0<(e=document.querySelectorAll("input[name=quantity\\["+t.internal_id+"\\]]")).length&&0!=(product_qty=e[0]&&e[0].value||1))||(t.quantity=product_qty,delete t.internal_id,n.push(t),void(a+=t.price*t.quantity))}),0==n.length)return!0;gtm4wp_push_ecommerce("add_to_cart",n,{currency:gtm4wp_currency,value:a.toFixed(2)})}else{c=o.querySelector("[name=gtm4wp_product_data]");if(!c)return!0;r=gtm4wp_read_from_json(c.value);r.quantity=o.querySelector("[name=quantity]")&&o.querySelector("[name=quantity]").value,isNaN(r.quantity)&&(r.quantity=1),gtm4wp_push_ecommerce("add_to_cart",[r],{currency:gtm4wp_currency,value:r.price*r.quantity})}}if(e.closest(".mini_cart_item a.remove,.product-remove a.remove")){c=e&&e.closest(".mini_cart_item a.remove,.product-remove a.remove");if(!c)return!0;o=gtm4wp_read_json_from_node(c,"gtm4wp_product_data");if(!o)return!0;var r=0,_=c.closest(".cart_item"),_=_&&_.querySelectorAll(".product-quantity input.qty");if(_&&0!==_.length?r=_[0].value:(_=(c=c.closest(".mini_cart_item"))&&c.querySelectorAll(".quantity"))&&0<_.length&&(r=parseInt(_[0].textContent),Number.isNaN(r))&&(r=0),0===r)return!0;o.quantity=r,gtm4wp_push_ecommerce("remove_from_cart",[o],{currency:gtm4wp_currency,value:o.price*o.quantity})}if(e.closest(".products li:not(.product-category) a:not(.add_to_cart_button):not(.quick-view-button),.wc-block-grid__products li:not(.product-category) a:not(.add_to_cart_button):not(.quick-view-button),.products>div:not(.product-category) a:not(.add_to_cart_button):not(.quick-view-button),.widget-product-item,.woocommerce-grouped-product-list-item__label a")){if("undefined"==typeof google_tag_manager)return!0;c=t.target,_=c.closest(".products li:not(.product-category) a:not(.add_to_cart_button):not(.quick-view-button),.wc-block-grid__products li:not(.product-category) a:not(.add_to_cart_button):not(.quick-view-button),.products>div:not(.product-category) a:not(.add_to_cart_button):not(.quick-view-button),.widget-product-item,.woocommerce-grouped-product-list-item__label a");if(!_)return!0;var i,r=c.closest(".product,.wc-block-grid__product"),o=(r=(r=r||((r=c.closest(".products li"))||c.closest(".products>div")))||c.closest(".woocommerce-grouped-product-list-item__label"))?r.querySelector(".gtm4wp_productdata"):c,e=gtm4wp_read_json_from_node(o,"gtm4wp_product_data",["internal_id"]);if(!e)return!0;if(e.productlink!=_.getAttribute("href"))return!0;for(i in window.google_tag_manager)if("gtm-"==i.substring(0,4).toLowerCase()){window.gtm4wp_first_container_id=i;break}if(""===window.gtm4wp_first_container_id)return!0;var d=t.ctrlKey||t.metaKey,u="_blank"===_.target,p=t.defaultPrevented,m=(p||t.preventDefault(),(d||u)&&(window.productpage_window=window.open("about:blank","_blank")),e.productlink);delete e.productlink,gtm4wp_push_ecommerce("select_item",[e],{currency:gtm4wp_currency},function(t){if(void 0!==t&&window.gtm4wp_first_container_id!=t)return!0;p||((u||d)&&productpage_window?productpage_window.location.href=m:document.location.href=m)})}}),jQuery(document).on("found_variation",function(t,e){if(void 0!==e&&("interactive"!==document.readyState||!gtm4wp_view_item_fired_during_pageload)){t=t.target;if(!t)return!0;var o,t=t.querySelector("[name=gtm4wp_product_data]");if(!t)return!0;try{o=JSON.parse(t.value)}catch(t){return console&&console.error&&console.error(t.message),!0}o.price=gtm4wp_make_sure_is_float(o.price),o.id=e.variation_id,o.item_id=e.variation_id,o.sku=e.sku,gtm4wp_use_sku_instead&&e.sku&&""!==e.sku&&(o.id=e.sku,o.item_id=e.sku),o.price=gtm4wp_make_sure_is_float(e.display_price);var r,c=[];for(r in e.attributes)c.push(e.attributes[r]);o.variant=c.join(","),gtm4wp_last_selected_product_variation=o,gtm4wp_push_ecommerce("view_item",[o],{currency:gtm4wp_currency,value:o.price}),"interactive"===document.readyState&&(gtm4wp_view_item_fired_during_pageload=!0)}}),jQuery(".variations select").trigger("change"),jQuery(document).ajaxSuccess(function(t,e,o){void 0!==o&&-1<o.url.indexOf("wc-api=WC_Quick_View")&&setTimeout(function(){var t=document.querySelector("#gtm4wp_quickview_data");if(t&&t.dataset&&t.dataset.gtm4wp_datalayer)try{var e=JSON.parse(t.dataset.gtm4wp_datalayer);e&&window.dataLayer&&window.dataLayer.push(e)}catch(t){console&&console.error&&console.error(t.message)}},500)});var o=!1,r=!1,c=document.querySelector("body");c&&(o=c.classList&&c.classList.contains("woocommerce-cart"),r=c.classList&&c.classList.contains("woocommerce-checkout")),o&&(document.addEventListener("click",function(t){t=t.target;return!t||!t.closest("[name=update_cart]")||void gtm4wp_woocommerce_handle_cart_qty_change()}),document.addEventListener("keypress",function(t){t=t.target;return!t||!t.closest(".woocommerce-cart-form input[type=number]")||void gtm4wp_woocommerce_handle_cart_qty_change()})),r&&(window.gtm4wp_checkout_value=window.gtm4wp_checkout_value||0,window.gtm4wp_checkout_products=window.gtm4wp_checkout_products||[],window.gtm4wp_checkout_products_ga4=window.gtm4wp_checkout_products_ga4||[],document.addEventListener("change",function(t){t=t.target;return!t||!t.closest("input[name^=shipping_method]")||void gtm4wp_woocommerce_handle_shipping_method_change()}),document.addEventListener("change",function(t){t=t.target;return!t||!t.closest("input[name=payment_method]")||void gtm4wp_woocommerce_handle_payment_method_change()}),jQuery("form.checkout").on("checkout_place_order",function(){-1==gtm4wp_checkout_step_fired.indexOf("shipping_method")&&gtm4wp_woocommerce_handle_shipping_method_change(),-1==gtm4wp_checkout_step_fired.indexOf("payment_method")&&gtm4wp_woocommerce_handle_payment_method_change()}))}function gtm4wp_woocommerce_page_loading_completed(){document.removeEventListener("DOMContentLoaded",gtm4wp_woocommerce_page_loading_completed),window.removeEventListener("load",gtm4wp_woocommerce_page_loading_completed),gtm4wp_woocommerce_process_pages()}window.gtm4wp_view_item_fired_during_pageload=!1,window.gtm4wp_checkout_step_fired=[],window.gtm4wp_first_container_id="","loading"!==document.readyState?window.setTimeout(gtm4wp_woocommerce_process_pages):(document.addEventListener("DOMContentLoaded",gtm4wp_woocommerce_page_loading_completed),window.addEventListener("load",gtm4wp_woocommerce_page_loading_completed));



}
catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://karilacosmetics.com/wp-content/plugins/duracelltomi-google-tag-manager/dist/js/gtm4wp-woocommerce.js\n- Error message: "+ e.message);}
