!function(){"use strict";var e=window.VAMTAM=window.VAMTAM||{},o=(e.debounce=function(a,n,i){var r;return function(){var t=this,e=arguments,o=i&&!r;clearTimeout(r),r=setTimeout(function(){r=null,i||a.apply(t,e)},n),o&&a.apply(t,e)}},e.offset=function(t){var t=t.getBoundingClientRect(),e=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+o,left:t.left+e}},e.scroll_handlers=[],e.latestKnownScrollY=0,!1);e.addScrollHandler=function(t){requestAnimationFrame(function(){t.init(),e.scroll_handlers.push(t),t.measure(e.latestKnownScrollY),t.mutate(e.latestKnownScrollY)})},e.onScroll=function(){e.latestKnownScrollY=window.pageYOffset,o||(o=!0,requestAnimationFrame(function(){for(var t=0;twindow.innerWidth-document.documentElement.clientWidth);e.waitForLoad=function(t){a?t():window.addEventListener("load",t)},window.addEventListener("load",function(){a=!0})}(),function(n,i){"use strict";function r(){clearTimeout(t),t=setTimeout(o,200)}function s(o,t,a){requestAnimationFrame(function(){var t=o.offset().top,e=(i.blockStickyHeaderAnimation=!0,d.height()||0),t=t-i.adminBarHeight-e;c=a,window.addEventListener("scroll",r,{passive:!0}),window.scroll({left:0,top:t,behavior:"smooth"}),o.attr("id")&&(history.pushState?history.pushState(null,null,"#"+o.attr("id")):window.location.hash=o.attr("id")),l&&l.classList.remove("mega-menu-open"),m&&m.classList.remove("mega-menu-open")})}var t,c,e,d=n("header.main-header").find(".header-contents"),l=document.getElementById("vamtam-fallback-main-menu-toggle"),m=document.querySelector("#main-menu > .mega-menu-wrap > .mega-menu-toggle"),o=function(){window.removeEventListener("scroll",r,{passive:!0}),i.blockStickyHeaderAnimation=!1,c&&c()};n(document.body).on("click",".vamtam-animated-page-scroll[href], .vamtam-animated-page-scroll [href], .vamtam-animated-page-scroll [data-href]",function(t){var e=n(this).prop("href")||n(this).data("href"),o=n("#"+e.split("#")[1]),a=document.createElement("a");a.href=e,o.length&&a.pathname===window.location.pathname&&(l&&l.classList.remove("mega-menu-open"),m&&m.classList.remove("mega-menu-open"),s(o),t.preventDefault())}),""!==window.location.hash&&(n('.vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||n('.vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||n('.vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length)&&(0<(e=n(window.location.hash)).length&&n(window).add("html, body, #page").scrollTop(0),setTimeout(function(){s(e)},400))}(jQuery,window.VAMTAM),function(r){"use strict";window.VAMTAM=window.VAMTAM||{},r(function(){var t,e;window.VAMTAM.adminBarHeight=document.body.classList.contains("admin-bar")?32:0,/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&requestAnimationFrame(function(){document.documentElement.classList.add("ios-safari")}),navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&requestAnimationFrame(function(){document.documentElement.classList.add("safari")}),e=document.body,window.addEventListener("scroll",function(){clearTimeout(t),requestAnimationFrame(function(){e.classList.add("disable-hover"),t=setTimeout(function(){e.classList.remove("disable-hover")},300)})},{passive:!0}),document.addEventListener("click",function(t){t.target.closest(".vamtam-trigger-print")&&(window.print(),t.preventDefault())}),window.VAMTAM.resizeElements=function(){r("#page .media-inner,\t\t\t\t.wp-block-embed-vimeo:not(.wp-has-aspect-ratio),\t\t\t\t:not(.wp-block-embed__wrapper) > .vamtam-video-frame").find("iframe, object, embed, video").each(function(){setTimeout(function(){requestAnimationFrame(function(){var t=this.offsetWidth;this.style.width="100%","0"===this.width&&"0"===this.height?this.style.height=9*t/16+"px":this.style.height=this.height*t/this.width+"px",r(this).trigger("vamtam-video-resized")}.bind(this))}.bind(this),50)}),setTimeout(function(){requestAnimationFrame(function(){r(".mejs-time-rail").css("width","-=1px")})},100)},window.addEventListener("resize",window.VAMTAM.debounce(window.VAMTAM.resizeElements,100),!1),window.VAMTAM.resizeElements(),r(document).ajaxSuccess(function(t,e,o){"wishlist_remove"===o.data.split("&").map(t=>t.split("=")).reduce((t,e)=>(t[e[0]]=e[1],t),{}).action&&1===(o=JSON.parse(e.responseText)).status&&0===o.count&&(r(".vamtam-empty-wishlist-notice").show(),r("table.woosw-items").hide())})});function t(){function t(){var t=window.VAMTAM.isBelowMaxDeviceWidth();n!==t&&(a.forEach(function(t){t.isActive&&t.closeTrigger.click()}),n=t)}function o(t){var e=t.currentTarget;if(r(e).hasClass("elementor-menu-toggle")){var t=r(e).closest(".elementor-row");if((t=t.length?t:r(e).closest(".elementor-container")).hasClass("vamtam-menu-nav-overlay-inside")||(t.addClass("vamtam-menu-nav-overlay-inside"),r(t).find(".vamtam-overlay-element").css("top",r(t)[0].getBoundingClientRect().top+r(t).height()+"px")),t.hasClass("vamtam-overlay-trigger--overlay"))return;t.addClass("vamtam-overlay-trigger--overlay"),a.forEach(function(t){t.overlayTarget!==e&&t.closeTrigger!==e||(t.isActive=!0)})}r("html, body").addClass("vamtam-disable-scroll"),r("#scroll-to-top").addClass("hidden"),r(t=e).hasClass("elementor-menu-toggle")&&(t.removeEventListener("click",i),t.addEventListener("click",i))}var e=document.querySelectorAll(".vamtam-overlay-trigger"),a=[],n=window.VAMTAM.isBelowMaxDeviceWidth(),i=function(t){var e=t.currentTarget;r(e).hasClass("elementor-menu-toggle")&&(t=(t=r(e).closest(".elementor-row")).length?t:r(e).closest(".elementor-container")).hasClass("vamtam-overlay-trigger--overlay")&&(t.removeClass("vamtam-overlay-trigger--overlay"),e.removeEventListener("click",i),a.forEach(function(t){t.overlayTarget!==e&&t.closeTrigger!==e||(t.isActive=!1)})),r(".vamtam-overlay-trigger--overlay .vamtam-overlay-element:visible").length<2&&(r("html, body").removeClass("vamtam-disable-scroll"),r("#scroll-to-top").removeClass("hidden"))};e.forEach(function(t){var e;r(t).hasClass("elementor-widget-nav-menu")&&((e=r(t).find(".elementor-menu-toggle")[0]).removeEventListener("click",o),e.addEventListener("click",o),a.push({overlayTarget:t,closeTrigger:e,isActive:!1}),(e=r(t).closest(".elementor-row")).length||(e=r(t).closest(".elementor-container")),r('').appendTo(e))}),e.length&&(document.addEventListener("click",function(e){a.forEach(function(t){!t.isActive||e.target===t.overlayTarget||t.overlayTarget.contains(e.target)||t.closeTrigger.click()})},!0),window.addEventListener("resize",window.VAMTAM.debounce(t,200),!1))}document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.load_script(VAMTAM_FRONT.jspath+"low-priority.js"),t(),jQuery("html").css("--vamtam-scrollbar-width",window.VAMTAM.getScrollbarWidth()+"px")},{passive:!0})}(jQuery),function(T){"use strict";window.Cookies=window.Cookies||{get:function(t){t=("; "+document.cookie).split("; "+t+"=");if(2===t.length)return t.pop().split(";").shift()}},T(function(){var c=T(".fixed-header-box .cart-dropdown"),t=T(".vamtam-cart-dropdown-link"),d=T(".products",t),l=T(".elementor-widget-woocommerce-menu-cart"),b=l.length,m=b&&T(l).find(".vamtam-elementor-menu-cart__header .item-count"),e="wc_add_to_cart_params"in window&&window.wc_add_to_cart_params.is_cart;function u(){e&&document.querySelectorAll(".woocommerce-cart-form__contents").forEach(function(t){T(t).hasClass("shop_table")||T(t).parent().hasClass("vamtam-cart-main")||T(t).removeClass("woocommerce-cart-form__contents")})}function A(){var t=T("#elementor-menu-cart__toggle_button:visible");T.each(t,function(t,e){e.click()})}function o(o){var t=T(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__toggle_button");let a=!1;if(T.each(t,function(t,e){if(T(e).is(o.target)||T(e).has(o.target).length)return!(a=!0)}),a)return o.preventDefault(),e?(o.stopImmediatePropagation(),!1):window.VAMTAM.isMobileBrowser?(o.stopImmediatePropagation(),window.location=window.wc_add_to_cart_params.cart_url,!1):(T("body").addClass("vamtam-disable-scroll"),T("#scroll-to-top").addClass("hidden"),void T(o.target).closest(".elementor-top-section").css("z-index","1000"))}function h(t,e){(T(t.target).hasClass("elementor-menu-cart__container")||T(t.target).hasClass("vamtam-close-cart")||"no-target"===t&&e)&&(T("body").removeClass("vamtam-disable-scroll"),T("#scroll-to-top").removeClass("hidden"),T(t.target).closest("section.elementor-element").css("z-index",""))}function w(){const t=document.querySelectorAll(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__toggle_wrapper"),e=(t.forEach(function(t){t.removeEventListener("click",o),t.addEventListener("click",o,!0)}),document.querySelectorAll(".elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__container .elementor-menu-cart__close-button, .elementor-widget-woocommerce-menu-cart.vamtam-has-theme-widget-styles .elementor-menu-cart__container"));e.forEach(function(t){t.removeEventListener("click",h),t.addEventListener("click",h)})}function f(t){var e=T("#scroll-to-top.vamtam-scroll-to-top");e.length&&(t?e.css("bottom","10px"):e.css("bottom","95px"))}w();t=b?"vamtam_elementor_menu_cart_fragments wc_fragments_loaded":"added_to_cart removed_from_cart wc_fragments_refreshed wc_fragments_loaded";function M(t){var e;t&&(T(".woocommerce-notices-wrapper").empty().append(t),(e=T(".woocommerce-notices-wrapper").find(".vamtam-close-notice-btn")).length&&(e[0].addEventListener("click",function(){var t=T(this).closest(".woocommerce-message");t.fadeOut("fast"),f(!0),setTimeout(function(){t.remove()},2e3)}),setTimeout(function(){var t=e.closest(".woocommerce-message");t.fadeOut("fast"),setTimeout(function(){t.remove(),f(!0)},2e3)},1e4)))}T(document.body).on(t,function(){var t=parseInt(Cookies.get("woocommerce_items_in_cart")||0,10);if(0{A()},500):window.VAMTAM.isMobileBrowser||setTimeout(()=>{A()},500):M(t.fragments.notice),T(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,e]))}}),!1}}}),T(document).on("click",".woocommerce-mini-cart .woocommerce-cart-form__cart-item .product-remove > a",function(){const t=T(this).parents(".woocommerce-cart-form__cart-item");t.css({"pointer-events":"none",transition:"opacity .3s ease",opacity:"0.5"})}),window.wc_add_to_cart_params&&T(document).on("click",".mini_cart_item a.remove, .woocommerce-mini-cart .woocommerce-cart-form__cart-item .product-remove > a:not([class])",function(t){t.preventDefault();var e=T(this),t=T(this).attr("data-product_id"),o=T(this).attr("data-cart_item_key"),a=T(this).parents(".mini_cart_item, .woocommerce-cart-form__cart-item");T.ajax({type:"post",dataType:"json",url:window.wc_add_to_cart_params.ajax_url,data:{action:"product_remove",product_id:t,cart_item_key:o},beforeSend:function(){a.css("pointer-events","none").css("opacity","0.5"),T("body").css("cursor","wait")},complete:function(){T("body").css("cursor","default")},success:function(t){t&&t.fragments?T(document.body).trigger("removed_from_cart",[t.fragments,t.cart_hash,e]):window.location=e.attr("href")},error:function(){window.location=e.attr("href")}})}),T(document).on("change",".woocommerce-cart-form__cart-item .vamtam-quantity > select",function(t){t.preventDefault();var t=T(".woocommerce-cart").length,e=T(this).val(),o=T(this).attr("data-product_id"),a=T(this).attr("data-cart_item_key"),n=T(this).parents(".mini_cart_item, .woocommerce-cart-form__cart-item");if(t)return(t=T('input[type="submit"][name="update_cart"]')).prop("disabled",!1),void t.trigger("click");window.wc_add_to_cart_params&&T.ajax({type:"post",dataType:"json",url:window.wc_add_to_cart_params.ajax_url,data:{action:"update_item_from_cart",product_id:o,cart_item_key:a,product_quantity:e},beforeSend:function(){n.css("pointer-events","none").css("opacity","0.5"),T("body").css("cursor","wait")},complete:function(){n.css("pointer-events","auto").css("opacity","1"),T("body").css("cursor","default")},success:function(t){t&&t.fragments&&T(document.body).trigger("wc_fragment_refresh")},error:function(){}})})),window.addEventListener("load",function(){{const t=T(document.body).hasClass("woocommerce-checkout"),e=t&&T("form.checkout"),o=t&&T(".woocommerce > .woocommerce-notices-wrapper").first();t&&e.length&&o.length&&T(document.body).on("checkout_error",function(){var t=e.find(".woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout");o.append(t)})}b&&(w(),u())}),b&&T(document).ajaxComplete((t,e,o)=>{e=e.responseJSON,e=e&&e.fragments,o=o.data&&-1!==o.data.indexOf("action=elementor_menu_cart_fragments");e&&o&&T(document.body).trigger("vamtam_elementor_menu_cart_fragments")})}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".woosw-btn").forEach(e=>{fetch(VAMTAM_FRONT.ajaxurl,{method:"POST",body:new window.URLSearchParams({action:"vamtam_get_woosw_button",id:e.dataset.id})}).then(t=>t.text()).then(t=>{e.outerHTML=t})})})}(jQuery,window.VAMTAM),function(w){"use strict";document.addEventListener("DOMContentLoaded",function(){{let c=document.querySelector(".woocommerce-product-gallery");if(c){let t=new MutationObserver(t=>{for(var e of t)"attributes"===e.type&&"class"===e.attributeName&&e.target.matches("img.flex-active")&&e.target.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})}),e=new MutationObserver(t=>{for(var e of t)if("childList"===e.type&&"addedNodes"in e)for(var o of e.addedNodes)o.matches(".flex-control-thumbs")&&w.waitForLoad(a)}),n,i,r,s;const m=getComputedStyle(c).getPropertyValue("--vamtam-single-product-vertical-thumbs")||4,u=document.createElement("div"),h=(u.classList.add("vamtam-product-gallery-thumbs-prev"),u.addEventListener("click",()=>{var t=n.scrollTop-r;d(t),n.scrollTo({top:t,behavior:"smooth"})}),document.createElement("div"));function d(t){u.classList.toggle("hidden",t<=0),h.classList.toggle("hidden",t+r>=s)}function l(){requestAnimationFrame(()=>{d(i=n.scrollTop)})}function a(){requestAnimationFrame(()=>{n=c.querySelector(".flex-control-thumbs"),i=n.scrollTop,r=n.offsetHeight,s=n.scrollHeight,n.childElementCount<=m&&(u.style.display="none",h.style.display="none"),n.classList.add("vamtam-thumbs-loaded"),d(i),n.addEventListener("scroll",w.debounce(l,100),{passive:!0}),c.append(u,h),n.addEventListener("touchstart",t=>{t.stopPropagation()});let e=!1;const o=t=>{e&&(t.preventDefault(),t.stopPropagation(),e=!1)};n.querySelectorAll("img, a").forEach(t=>{t.addEventListener("click",o),t.addEventListener("touchend",o),t.addEventListener("keyup",o)});let a=function(t){t.stopPropagation(),t.preventDefault(),n.removeEventListener("touchend",a)};n.addEventListener("touchmove",t=>{t.stopPropagation(),e=!0,n.addEventListener("touchend",a)})})}h.classList.add("vamtam-product-gallery-thumbs-next"),h.addEventListener("click",()=>{var t=n.scrollTop+r;d(t),n.scrollTo({top:t,behavior:"smooth"})}),t.observe(c,{attributes:!0,subtree:!0}),e.observe(c,{childList:!0,subtree:!0})}return}})}((jQuery,window.VAMTAM)),function(w){"use strict";window.VAMTAM=window.VAMTAM||{},window.VAMTAM.CUSTOM_ANIMATIONS={},window.VAMTAM.CUSTOM_ANIMATIONS={init:function(){},onDomReady:function(){this.VamtamCustomAnimations.init(),this.VamtamCustomAnimations.scrollBasedAnims()},VamtamCustomAnimations:{init:function(){this.registerAnimations(),this.utils.watchScrollDirection()},registerAnimations:function(){var e=this;["stickyHeader"].forEach(function(t){e[t].apply(e)})},stickyHeader:function(){var a=w(".vamtam-sticky-header"),n=this;if(a.length){function i(){w(a).removeClass("vamtam-sticky-header--fixed-shown"),w(a).hasClass("vamtam-sticky-header--fixed-hidden")||w(a).addClass("vamtam-sticky-header--fixed-hidden"),c="fixedHiddenState"}function r(){w(a).removeClass("vamtam-sticky-header--fixed-hidden"),w(a).hasClass("vamtam-sticky-header--fixed-shown")||w(a).addClass("vamtam-sticky-header--fixed-shown"),c="fixedShownState"}function s(){w(a).removeClass("vamtam-sticky-header--fixed-shown"),w(a).removeClass("vamtam-sticky-header--fixed-hidden"),c="noAnimState"}1l&&e<20||("up"===t?10<=window.pageYOffset?"fixedShownState"!==c&&r():"noAnimState"!==c&&s():"down"===t&&(10<=window.pageYOffset||d)&&(e=!w(a).find(".elementor-menu-cart--shown").length,"fixedHiddenState"!==c&&e&&i()))))},25);window.VAMTAM.isMaxDeviceWidth()?requestAnimationFrame(t):"noAnimState"!==c&&s()},{passive:!0})}},scrollBasedAnims:function(){var t=document.querySelectorAll(['[data-settings*="growFromLeftScroll"]','[data-settings*="growFromRightScroll"]'].join(", "));if(t.length){var a,c={},d=this,n=function(t){t.forEach(function(t){function e(){window.requestAnimationFrame(function(){s.style.setProperty("--vamtam-scroll-ratio",i+"%")})}var o=t.boundingClientRect.y,a=t.isIntersecting,n=t.target,i=Math.abs(parseFloat((100*t.intersectionRatio).toFixed(2))),t=c[n.dataset.vamtam_anim_id].lastScrollPercentage,r=c[n.dataset.vamtam_anim_id].lastScrollY,s=c[n.dataset.vamtam_anim_id].animateEl;a&&r!==o&&("down"!==d.utils.getScrollDirection()||t'),o=w(t).prev(".vamtam-scroll-anim-wrap"),w(o).append(t),e=o[0]),c[t.dataset.id]={lastScrollY:"",lastScrollPercentage:"",observeEl:e,animateEl:t},a.observe(e)})}},utils:{getAdminBarHeight:function(){return window.VAMTAM.adminBarHeight},watchScrollDirection:function(){var t=function(){return this.lastScrollTop=0,this.utils=this,{init:function(){},measure:function(t){this.direction=t>this.lastScrollTop?"down":"up"}.bind(this),mutate:function(t){this.utils.getScrollDirection=function(){return this.direction},this.lastScrollTop=t<=0?0:t}.bind(this)}}.bind(this);window.VAMTAM.addScrollHandler(t())},isTouchDevice:function(){const t=" -webkit- -moz- -o- -ms- ".split(" ");if("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)return!0;var e=["(",t.join("touch-enabled),("),"heartz",")"].join("");return window.matchMedia(e).matches}}}},window.VAMTAM.CUSTOM_ANIMATIONS.init(),document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.CUSTOM_ANIMATIONS.onDomReady()},!0)}(jQuery);