((n,i)=>{n.minimog=n.minimog||{};var t=!0;try{t="sessionStorage"in n&&null!==n.sessionStorage,n.sessionStorage.setItem("mg","test"),n.sessionStorage.removeItem("mg"),n.localStorage.setItem("mg","test"),n.localStorage.removeItem("mg")}catch(e){t=!1}minimog.Storage={isSupported:t,set:function(e,t){var n=JSON.parse(localStorage.getItem("minimog"));(n=n||{})[e]=t,localStorage.setItem("minimog",JSON.stringify(n))},get:function(e,t=""){var n=JSON.parse(localStorage.getItem("minimog"));return n&&n.hasOwnProperty(e)?n[e]:t}},minimog.Helpers={getAjaxUrl:e=>$minimog.minimog_ajax_url.toString().replace("%%endpoint%%",e),isEmptyObject:e=>{for(var t in e)return!1;return!0},isValidSelector:e=>!!e.match(/^([.#])(.+)/),isHandheld:()=>{let e=!1;var t;return t=navigator.userAgent||navigator.vendor||n.opera,e=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))?!0:e},randomInteger:(e,t)=>Math.floor(Math.random()*(t-e+1))+e,addUrlParam(e,t,n){var i,o;return t=encodeURI(t),""!==(n=encodeURI(n))?(i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?",e.match(i)?e=e.replace(i,"$1"+t+"="+n+"$2"):e+=o+t+"="+n):this.removeUrlParam(e,t),e},removeUrlParam(e,t){return new URLSearchParams(e).delete(t),e},getUrlParamsAsObject:e=>{var t={};if(-1!==e.indexOf("?")){e=e.substring(e.indexOf("?")+1);for(var n=/([^&=]+)=?([^&]*)/g,i=/\+/g,o=function(e){return decodeURIComponent(e.replace(i," "))};r=n.exec(e);){var a=o(r[1]),r=o(r[2]);"[]"===a.substring(a.length-2)?(t[a=a.substring(0,a.length-2)]||(t[a]=[])).push(r):t[a]=r}for(var s in t){var l=s.split("[");if(1<l.length){for(var d=[],c=(l.forEach(function(e,t){e=e.replace(/[?[\]\\ ]/g,"");d.push(e)}),g=h=p=l=m=c=void 0,t),m=d,l=t[s],p=m.length-1,h=0;h<p;++h){var g=m[h];g in c||(c[g]={}),c=c[g]}c[m[p]]=l,delete t[s]}}}return t},getScrollbarWidth:()=>{var e,t;return n.innerWidth<=document.documentElement.clientWidth?0:((e=document.createElement("div")).style.visibility="hidden",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e),t=document.createElement("div"),e.appendChild(t),t=e.offsetWidth-t.offsetWidth,e.parentNode.removeChild(e),t)},setBodyOverflow(){i("body").css({overflow:"hidden",paddingRight:this.getScrollbarWidth()+"px"})},unsetBodyOverflow:()=>{i("body").css({overflow:"visible",paddingRight:0})},setBodyHandling:()=>{i("body").removeClass("completed").addClass("handling")},setBodyCompleted:()=>{i("body").removeClass("handling").addClass("completed")},setElementHandling:e=>{e.addClass("updating-icon")},unsetElementHandling:e=>{e.removeClass("updating-icon")},getStyle:(e,t)=>n.getComputedStyle?t?document.defaultView.getComputedStyle(e,null).getPropertyValue(t):document.defaultView.getComputedStyle(e,null):e.currentStyle?t?e.currentStyle[t.replace(/-\w/g,e=>e.toUpperCase().replace("-",""))]:e.currentStyle:void 0,setCookie:(e,t,n)=>{var i=new Date,n=(i.setTime(i.getTime()+24*n*60*60*1e3),"expires="+i.toUTCString());document.cookie=e+"="+t+"; "+n+"; path=/"},getCookie:e=>{for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""},copyToClipboard:t=>{if(n.clipboardData&&n.clipboardData.setData)return n.clipboardData.setData("Text",t);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var e=document.createElement("textarea");e.textContent=t,e.style.position="fixed",document.body.appendChild(e),e.select();try{return document.execCommand ("copy")}catch(e){return console.warn("Copy to clipboard failed.",e),prompt("Copy to clipboard: Ctrl+C, Enter",t)}finally{document.body.removeChild(e)}}},setContentHTML:(e,t)=>{void 0===e.attr("data-o_content")&&e.attr("data-o_content",e.html()),e.html(t)},resetContentHTML:e=>{void 0!==e.attr("data-o_content")&&e.html(e.attr("data-o_content"))},onImagesLoaded(e,n){e.find("img").each(function(e,t){t.complete&&n(),t.addEventListener("load",()=>n()),t.addEventListener("error",()=>n())})},imagesLoaded(e){var t=this,n=[],e=e.find("img");return e&&e.each(function(){n.push(t.getImgLoadPromise(i(this)))}),n},getImgLoadPromise:n=>new Promise((e,t)=>{if(n.prop("complete"))return e();n.on("load",()=>e()),n.on("error",()=>e())})}})(window,jQuery),(M=>{var T=M(window),O=M("body"),z=M("#page-top-bar"),H=M("#page-header"),D=H.find("#page-header-inner"),t=window.innerWidth,e=window.innerHeight,L=window.minimog.Helpers;function P(e){O.removeClass("page-mobile-menu-opened"),L.unsetBodyOverflow(),M(document).trigger("mobileMenuClose"),e.attr("aria-hidden","true").prop("hidden",!0)}function n(){var e=parseInt($minimog.mobile_menu_breakpoint);t<=e?O.removeClass("primary-nav-rendering").removeClass("desktop-menu").addClass("mobile-menu"):O.removeClass("primary-nav-rendering").addClass("desktop-menu").removeClass("mobile-menu")}function c(e,t=""){var n={};if(e.hasClass("polylang")?n={toggle:".current-lang"}:e.hasClass("translate-press")?n={toggle:".trp-language-switcher",children:".trp-ls-shortcode-language"}:e.hasClass("wpml")&&(n={toggle:".wpml-ls-current-language"}),n.hasOwnProperty("toggle")){switch(t){case"header":p(e,n);break;case"topbar":i(e,n)}L.isHandheld()&&e.on("click touch",n.toggle+" > a",function(e){e.preventDefault()})}}function m(e,t=""){var n={};if(e.hasClass("curcy")||e.hasClass("wc-pay")?n={toggle:".menu-item-has-children"}:e.hasClass("wcml")?n={toggle:".wcml-cs-active-currency"}:e.hasClass("aelia")&&(n={toggle:".dropdown_selector",children:".dropdown"}),n.hasOwnProperty("toggle")){switch(t){case"header":p(e,n);break;case"topbar":i(e,n)}L.isHandheld()&&e.on("click touch",n.toggle+" > a",function(e){e.preventDefault()})}}function p(e,t={}){let n=M.extend(!0,{},{children:"ul",offset:10,appendClass:"hover-back"},t);e.on("mouseenter",n.toggle,function(){var e=M(this),t=M(document).width();e.children(n.children).each(function(){var e=M(this);e.removeClass(n.appendClass),e.offset().left+e.outerWidth()+n.offset>=t&&e.addClass(n.appendClass)})})}function i(e,t={}){let i=M(document).width(),o=M.extend(!0,{},{children:"ul"},t);var a=e.find(o.toggle);function n(){var e=a.children(o.children),t=a.offset(),n=t.top+a.outerHeight();e.css({top:n}),t.left+e.outerWidth()>=i?e.css({left:"auto",right:i-(t.left+a.outerWidth())}):e.css({left:t.left,right:"auto"})}a.length<=0||(n(),e.on("click touch mouseenter",o.toggle,function(){n()}))}window.minimog.LightGallery={selector:".zoom",mode:"lg-fade",thumbnail:"1"===$minimog.light_gallery_thumbnail,download:"1"===$minimog.light_gallery_download,autoplay:"1"===$minimog.light_gallery_auto_play,zoom:"1"===$minimog.light_gallery_zoom,share:"1"===$minimog.light_gallery_share,fullScreen:"1"===$minimog.light_gallery_full_screen,hash:!1,animateThumb:!1,showThumbByDefault:!1,getCaptionFromTitleOrAlt:!1},n(),T.on("resize",function(){t!==window.innerWidth&&T.trigger("hresize"),e!==window.innerHeight&&T.trigger("vresize"),t=window.innerWidth,e=window.innerHeight}),T.on("hresize",function(){n()}),T.on("load",function(){function t(){l=setTimeout(function(){s?(s=!1,H.removeClass(a),n(0)):(s=!0,H.addClass(a),H.css("--logo-sticky-height",H.find(".branding__logo").height()+"px"),n(D.outerHeight()))},200)}function n(e){document.body.style.setProperty("--header-sticky-height",e+"px")}O.addClass("loaded"),setTimeout(function(){var e=M("#page-preloader");0<e.length&&e.remove()},2e3),1!=$minimog.header_sticky_enable||H.length<=0||"1"!=D.data("sticky")||(i=H.children(".page-header-place-holder"),o=D.offset().top,e=D.outerHeight(),s=!(a="header-pinned"),l=null,o<(r=0)&&(o=0),o+=e,H.hasClass("header-layout-fixed")||(i.height(e),D.addClass("held"),T.on("hresize",function(){var e=D.outerHeight();i.height(e)})),T.on("scroll",function(){var e=M(this).scrollTop();if(clearTimeout(l),e<=o)s=!1,H.removeClass(a),n(0);else switch($minimog.header_sticky_type){case"up":e<r?s||t():s&&t();break;case"both":s||t()}r=e}));var i,o,a,r,s,l,e=z.find(".switcher-language-wrapper"),d=(0<e.length&&c(e,"topbar"),0<(e=H.find(".switcher-language-wrapper")).length&&c(e,"header"),z.find(".currency-switcher-menu-wrap"));0<d.length&&m(d,"topbar"),0<(d=H.find(".currency-switcher-menu-wrap")).length&&m(d,"header"),0<(d=z.find(".menu")).length&&d.on("mouseenter",".menu-item-has-children",function(){p(M(this))})}),M(document).ready(function(){M(".tm-slider").each(function(){var e,t;M(this).hasClass("minimog-swiper-linked-yes")?(e=M(this).children(".minimog-main-swiper").MinimogSwiper(),t=M(this).children(".minimog-thumbs-swiper").MinimogSwiper(),(e.controller.control=t).controller.control=e):M(this).MinimogSwiper()});var e,t,r,s,l,d,c,m,p,h,n,i,o,a,g=$minimog.search,u=parseInt(g.delay),g=!g.hasOwnProperty("ajax_disable")||"1"!=g.ajax_disable,f=(u=isNaN(u)?1e3:u,M("#popup-search")),v=f.find(".search-form"),w=M("#btn-view-all-search-results"),b=v.find(".search-select"),y=(M.fn.selectWoo&&b.selectWoo({dropdownAutoWidth:!0,dropdownCssClass:"select2-dropdown-search-cat"}),w.on("click",function(){v.trigger("submit")}),M(document.body).on("click",".page-open-popup-search",function(e){e.preventDefault(),C()}),g&&(H.on("mousedown","#placeholder_cat_dropdown",function(e){e.preventDefault(),C("cat")}),H.on("focus",".search-field",function(e){e.preventDefault(),C()}),H.on("click",".search-submit",function(e){e.preventDefault(),C()})),v.on("change",".search-select",function(e){e.preventDefault();e=M(this).children("option").filter(":selected").text();H.find(".search-select").children("option").html(e),C()}),M("#search-popup-close").on("click",function(e){e.preventDefault(),k()}),f.on("click",function(e){e.target===this&&k()}),null);function C(e=""){L.setBodyOverflow(),f.addClass("open").attr("aria-hidden","false").prop("hidden",!1),setTimeout(function(){"cat"===e?f.find(".search-select").select2("open"):f.find(".search-field").trigger("focus")},300),M.fn.perfectScrollbar&&!L.isHandheld()&&f.children(".inner").perfectScrollbar()}function k(){L.unsetBodyOverflow(),f.removeClass("open").attr("aria-hidden","true").prop("hidden",!0)}v.on("focus",".search-field",function(){v.addClass("search-field-focused")}),v.on("blur",".search-field",function(){v.removeClass("search-field-focused")}),g&&v.on("keyup",".search-field",function(){var t=M(this);clearTimeout(y),y=setTimeout(function(){var e,i;!(2<t.val().length)||(e=v.serializeArray(),i="",e.forEach(function(e,t,n){if("s"===e.name)return i=e.value,!1}),""===i)?(f.find(".popup-search-results").hide(),f.find(".row-popular-search-keywords").show()):M.ajax({url:L.getAjaxUrl("minimog_search_products"),type:"GET",data:M.param(e),dataType:"json",cache:!0,success:function(e){f.find(".row-popular-search-keywords").hide(),f.find(".popup-search-results").show(),f.find(".popup-search-current").text(i),f.find(".minimog-grid").html(e.data.template),""!==e.data.template?w.show():w.hide()},beforeSend:function(){f.removeClass("loaded").addClass("loading")},complete:function(){f.removeClass("loading").addClass("loaded")}})},u)}),z.length<=0||(e="expanded",31<(t=z.find(".top-bar-section")).outerHeight()&&z.addClass("top-bar-has-collapsible-toggle"),z.on("click","#top-bar-collapsible-toggle",function(){z.hasClass(e)?(z.removeClass(e),z.find(".top-bar-wrap").css({height:"26px"})):(z.addClass(e),z.find(".top-bar-wrap").css({height:t.outerHeight()+"px"}))}),T.on("hresize",function(){z.hasClass(e)&&z.find(".top-bar-wrap").css({height:t.outerHeight()+"px"})})),"function"==typeof M.fn.smartmenus&&((b=H.find(".sm.sm-simple")).smartmenus({showTimeout:0,hideTimeout:150}),b.on({"show.smapi":function(e,t){t=M(t);t.removeClass("hide-animation").addClass("show-animation"),t.hasClass("menu-loaded")||(t.find(".tm-swiper").each(function(){M(this).children(".swiper-inner").children(".swiper")[0].swiper.update()}),M.fn.MinimogGridLayout&&t.find(".minimog-grid-wrapper").MinimogGridLayout("updateLayout"),t.addClass("menu-loaded"))},"hide.smapi":function(e,t){M(t).removeClass("show-animation").addClass("hide-animation")}}).on("animationend webkitAnimationEnd oanimationend MSAnimationEnd","ul",function(e){M(this).removeClass("show-animation hide-animation"),e.stopPropagation()})),D.length<=0||1!==D.data("centered-logo")||(r=D.find("#page-navigation"),s=r.find("#menu-primary > li"),l=D.find(".branding__logo img.logo"),d=s.length,c=O.hasClass("rtl"),m=parseInt(d/2+.5*c-.5),p=s.eq(m),h=c?"marginLeft":"marginRight",(n=function(){var e=l.outerWidth(),t=l.closest(".branding__logo").height(),n=0,i=0;l.closest(".header-content-inner").css("min-height",t+"px");for(var o=d-1;0<=o;o--){var a=s.eq(o).outerWidth();m<o?i+=a:n+=a}t=n-i;c?i<n?r.find("#menu-primary > li:first-child").css("marginRight",-t):r.find("#menu-primary > li:last-child").css("marginLeft",t):i<n?r.find("#menu-primary > li:last-child").css("marginRight",t):r.find("#menu-primary > li:first-child").css("marginLeft",-t),p.css(h,e+66)})(),l.on("loaded",function(){setTimeout(function(){n(),r.addClass("menu-calculated")},100)}),T.on("hresize",n));var g=M("#page-open-mobile-menu"),x=(0<g.length&&(b=g.data("menu-settings"),_=b.animation||"slide",b=b.direction||"left",O.addClass("mobile-menu-"+_+"-to-"+b)),M("#page-mobile-main-menu")),S=M(".mobile-menu-nav-menus"),_=x.find(".menu__container");M.fn.perfectScrollbar&&!L.isHandheld()&&x.find(".page-mobile-menu-content").perfectScrollbar(),g.on("click",function(e){e.preventDefault(),e.stopPropagation(),e=x,O.addClass("page-mobile-menu-opened"),L.setBodyOverflow(),M(document).trigger("mobileMenuOpen"),e.attr("aria-hidden","false").prop("hidden",!1)}),x.on("click",".tm-button",function(){P(x)}),x.on("click","#page-close-mobile-menu",function(e){e.preventDefault(),e.stopPropagation(),P(x)}),x.on("click",function(e){e.target===this&&P(x)}),x.on("click",".mobile-nav-tabs li",function(e){var t=M(this);t.hasClass("active")||(t.siblings().removeClass("active").attr("aria-selected","false").attr("tabindex","-1"),t.addClass("active").attr("aria-selected","true").attr("tabindex","0"),(t=S.children("#"+t.attr("aria-controls"))).siblings().attr("aria-expanded",!1).prop("hidden",!0),t.attr("aria-expanded",!0).prop("hidden",!1))}),_.on("click",".toggle-sub-menu",function(e){var t,n=M(this).parents("li").first(),e=(e.preventDefault(),e.stopPropagation(),n.siblings(".opened"));e.removeClass("opened"),e.find(".opened").removeClass("opened"),e.find(".sub-menu").stop().slideUp(300),n.hasClass("opened")?(n.removeClass("opened"),n.find(".opened").removeClass("opened"),n.find(".sub-menu").stop().slideUp(300)):(n.addClass("opened"),(t=n.children(".sub-menu")).stop().slideDown(300,function(){t.hasClass("menu-loaded")||(t.find(".tm-swiper").each(function(){M(this).children(".swiper-inner").children(".swiper")[0].swiper.update()}),M.fn.MinimogGridLayout&&t.find(".minimog-grid-wrapper").MinimogGridLayout("updateLayout"),t.addClass("menu-loaded"))}))}),"undefined"!=typeof Storage&&"yes"===localStorage.getItem("minimog_cookie_accepted")||(i=M("#cookie-notice-popup")).length<=0||(i.removeClass("close").addClass("show"),i.on("click","#btn-accept-cookie",function(){i.removeClass("show").addClass("close");var e=M.param({action:"minimog_cookie_accepted"});M.ajax({url:$minimog.ajaxurl,type:"POST",data:e,dataType:"json",success:function(e){"undefined"!=typeof Storage&&localStorage.setItem("minimog_cookie_accepted","yes")}})})),M.fn.lightGallery&&M(".minimog-light-gallery").each(function(){M(this).lightGallery(window.minimog.LightGallery)}),M.fn.lightGallery&&(o={selector:"a",fullScreen:!1,zoom:!1,getCaptionFromTitleOrAlt:!1,counter:!1},M(".tm-popup-video").each(function(){M(this).lightGallery(o)})),M.fn.MinimogAccordion&&M(".minimog-accordion").MinimogAccordion(),M.fn.MinimogNiceSelect&&M(".minimog-nice-select").MinimogNiceSelect(),M.fn.MinimogModal&&O.on("click",'[data-minimog-toggle="modal"]',function(e){var t=M(M(this).data("minimog-target"));0<t.length&&(e.preventDefault(),"1"===M(this).attr("data-minimog-dismiss")?t.MinimogModal("close"):t.MinimogModal("open"))}),(a=M("#header-categories-nav")).length<=0||a.on("mouseenter",function(){a.removeClass("hide-animation").addClass("show-animation")}).on("mouseleave",function(){a.hasClass("categories-nav-fixed")&&!H.hasClass("header-pinned")?a.removeClass("show-animation hide-animation"):a.removeClass("show-animation").addClass("hide-animation")}).on("animationend webkitAnimationEnd oanimationend MSAnimationEnd","nav",function(e){e.stopPropagation(),a.removeClass("hide-animation")})})})(jQuery);