"use strict";!function(e){e.extend(e.easing,{def:"easeOutQuad",swing:function(t,i,n,a,s){return e.easing[e.easing.def](t,i,n,a,s)},easeOutQuad:function(e,t,i,n,a){return-n*(t/=a)*(t-2)+i},easeInOutQuart:function(e,t,i,n,a){return(t/=a/2)<1?n/2*t*t*t*t+i:-n/2*((t-=2)*t*t*t-2)+i},easeOutQuint:function(e,t,i,n,a){return n*((t=t/a-1)*t*t*t*t+1)+i}}),theme.defaults.popup={fixedContentPos:!0,closeOnBgClick:!1,removalDelay:350,callbacks:{beforeOpen:function(){if(this.fixedContentPos){var t=window.innerWidth-document.body.clientWidth;e(".sticky-content.fixed").css("padding-right",t),e(".mfp-wrap").css("overflow","hidden auto")}},close:function(){this.fixedContentPos&&(e(".mfp-wrap").css("overflow",""),e(".sticky-content.fixed").css("padding-right",""))}}},theme.defaults.isotope={itemSelector:".grid-item",layoutMode:"masonry",percentPosition:!0,masonry:{columnWidth:".grid-space"},getSortData:{order:"[data-creative-order] parseInt",order_xxl:"[data-creative-order-xxl] parseInt",order_xlg:"[data-creative-order-xlg] parseInt",order_xl:"[data-creative-order-xl] parseInt",order_lg:"[data-creative-order-lg] parseInt",order_md:"[data-creative-order-md] parseInt",order_sm:"[data-creative-order-sm] parseInt"}},theme.defaults.popupPresets={login:{type:"ajax",mainClass:"mfp-login mfp-fade",tLoading:'
',preloader:!0,items:{src:alpus_vars.ajax_url},ajax:{settings:{method:"post",data:{action:"alpus_account_form",nonce:alpus_vars.nonce}},cursor:"mfp-ajax-cur"}},video:{type:"iframe",mainClass:"mfp-fade",preloader:!1,closeBtnInside:!1},firstpopup:{type:"inline",mainClass:"mfp-popup-template mfp-newsletter-popup mfp-flip-popup",callbacks:{beforeClose:function(){e('.mfp-alpus .popup .hide-popup input[type="checkbox"]').prop("checked")&&theme.setCookie("hideNewsletterPopup",!0,7)}}},popup_template:{type:"ajax",mainClass:"mfp-popup-template mfp-flip-popup",tLoading:'',preloader:!0,items:{src:alpus_vars.ajax_url},ajax:{settings:{method:"post"},cursor:"mfp-ajax-cur"}}},theme.defaults.slider={a11y:!1,containerModifierClass:"slider-container-",slideClass:"slider-slide",wrapperClass:"slider-wrapper",slideActiveClass:"slider-slide-active",slideDuplicateClass:"slider-slide-duplicate"},theme.defaults.sliderPresets={"compare-slider":{spaceBetween:10,slidesPerView:2,breakpoints:{992:{spaceBetween:30,slidesPerView:4},768:{spaceBetween:20,slidesPerView:3}}},"products-flipbook":{onInitialized:function(){function t(t){e(t.target).closest(".product-single-carousel, .product-gallery-carousel, .product-thumbs").length&&t.stopPropagation()}this.wrapperEl.addEventListener("mousedown",t),"ontouchstart"in document&&this.wrapperEl.addEventListener("touchstart",t,{passive:!0})}}},theme.preventDefault=function(e){e.preventDefault()},theme.initTemplate=function(e){theme.lazyload(e),theme.slider(e.find(".slider-wrapper")),theme.isotopes(e.find(".grid")),theme.woocommerce.initProducts(e),"function"==typeof theme.countdown&&theme.countdown(e.find(".countdown")),theme.call((function(){theme.$window.trigger("alpus_loadmore")}),300),theme.$body.trigger("alpus_init_tab_template")},theme.loadTemplate=function(t){var i="",n=alpus_vars.resource_split_tasks;alpus_vars.resource_split_tasks=0,t.children(".load-template").each((function(){i+=this.text})),i&&(t.html(i),theme.skeleton?theme.skeleton(e(".skeleton-body"),(function(){theme.initTemplate(t)})):theme.initTemplate(t)),alpus_vars.resource_split_tasks=n},theme.windowResized=function(e){return e==theme.resizeTimeStamp||(theme.resizeChanged=theme.canvasWidth!=window.innerWidth,theme.canvasWidth=window.innerWidth,theme.resizeTimeStamp=e),theme.resizeChanged},theme.setCookie=function(e,t,i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3),document.cookie=e+"="+t+";expires="+n.toUTCString()+";path=/"},theme.getCookie=function(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n600&&o.length&&(s-=o.parent().outerHeight()),e(".sticky-content.fix-top.fixed").each((function(){s-=this.offsetHeight}))}}e("html,body").stop().animate({scrollTop:s},n)},theme.scrollToFixedContent=function(t,i){var n=0,a=window.innerWidth>600&&e("#wp-toolbar").parent().length?e("#wp-toolbar").parent().outerHeight():0;e(".sticky-content.fix-top").each((function(){if(e(this).hasClass("toolbox-top")){var t=e(this).css("padding-top").slice();t.length>2&&(n-=Number(t.slice(0,-2)))}else{var i=e(this).hasClass("fixed");n+=e(this).addClass("fixed").outerHeight(),i||e(this).removeClass("fixed")}})),theme.scrollTo(t-n-a,i)},theme.getUrlParam=function(e,t){var i,n=document.createElement("a");n.href=decodeURIComponent(decodeURI(e)),(i=n.search).startsWith("?")&&(i=i.substr(1));var a={};return i.split("&").forEach((function(e){var t=e.indexOf("=");t>=0&&(a[e.substr(0,t)]=e.substr(t+1))})),a[t]?a[t]:""},theme.addUrlParam=function(e,t,i){var n,a,s=document.createElement("a");return e=decodeURIComponent(decodeURI(e)),s.href=e,0<=(n=s.search).indexOf(t+"=")?a=n.replace(new RegExp(t+"=[^&]*"),t+"="+i):((a=n.length&&0<=n.indexOf("?")?n:"?").endsWith("?")||(a+="&"),a+=t+"="+i),encodeURI(e.replace(n,"")+a.replace(/&+/,"&"))},theme.removeUrlParam=function(e,t){var i,n,a=document.createElement("a");return e=decodeURIComponent(decodeURI(e)),a.href=e,0<=(i=a.search).indexOf(t+"=")?((n=i.replace(new RegExp(t+"=[^&]*"),"").replace(/&+/,"&").replace("?&","?")).endsWith("&")&&(n=n.substr(0,n.length-1)),n.endsWith("?")&&(n=n.substr(0,n.length-1)),n=n.replace("&&","&")):n=i,encodeURI(e.replace(i,"")+n)},theme.showMore=function(e){theme.$(e).after('
'),theme.$window.trigger("scroll.loadingPosition")},theme.hideMore=function(e){theme.$(e).children(".d-loading-stick, .d-loading").remove()},theme.countTo=function(t,i=!1){e.fn.countTo&&theme.$(t).each((function(){var t=e(this);function n(){setTimeout((function(){var e={onComplete:function(){t.addClass("complete")}};t.data("duration")&&(e.speed=t.data("duration")),t.data("from-value")&&(e.from=t.data("from-value")),t.data("to-value")&&(e.to=t.data("to-value")),e.decimals=e.to&&"string"==typeof e.to&&e.to.indexOf(".")>=0?e.to.length-e.to.indexOf(".")-1:0,t.countTo(e)}),300)}i?n():theme.appear(this,n)}))},theme.parallax=function(){function t(e,t){return this.init(e,t)}t.prototype.init=function(e,t){return e.data("__parallax")||(this.$el=e,this.setData().setOptions(t).build()),this},t.prototype.setData=function(){return this.$el.data("__parallax",this),this},t.prototype.setOptions=function(i){return this.options=e.extend(!0,{},t.defaults,i,{wrapper:this.$el}),this},t.prototype.build=function(){var t,i=this;t=e('
');var n=i.options.wrapper.attr("data-parallax-image")?"url("+i.options.wrapper.attr("data-parallax-image")+")":i.options.wrapper.css("background-image");t.css({"background-image":n,"background-size":"cover","background-position":"50% 0%",position:"absolute",width:"100%",height:100*i.options.speed+"%"}),i.options.wrapper.prepend(t),i.options.wrapper.css({position:"relative",overflow:"hidden"}),"left"!=i.options.direction&&"right"!=i.options.direction||t.css({"background-position":"0% 50%",width:100*i.options.speed+"%",height:"100%"});var a=function(){var e=-(100*i.options.speed-100);"up"==i.options.direction?t.attr("data-bottom-top","bottom: "+e+"%;").attr("data-top-bottom","bottom: 0%;"):"down"==i.options.direction?t.attr("data-bottom-top","top: "+e+"%;").attr("data-top-bottom","top: 0%;"):"left"==i.options.direction?t.attr("data-bottom-top","right: "+e+"%;").attr("data-top-bottom","right: 0%;"):t.attr("data-bottom-top","left: "+e+"%;").attr("data-top-bottom","left: 0%;")};return theme.isMobile?1==i.options.enableOnMobile?a():i.options.wrapper.addClass("parallax-disabled"):a(),this},e.fn.themeParallax=function(i){if(!theme.isMobile){if("undefined"==typeof skrollr)return this;var n=this.map((function(){var n=e(this);return n.data("__parallax")?n.data("__parallax"):new t(n,i)}));return theme.parallaxSkrollr&&skrollr.get()?theme.parallaxSkrollr.refresh():theme.isMobile||(theme.parallaxSkrollr=skrollr.init({forceHeight:!1,smoothScrolling:!0}),theme.parallaxSkrollr.refresh()),n}}}();var t=e.fn.block;e.fn.block=function(e){return"complete"==theme.status&&(this.append('
'),t.call(this,e)),this};var i=e.fn.unblock;e.fn.unblock=function(e){return"complete"==theme.status&&(i.call(this,e),this.hasClass("processing")||this.parents(".processing").length||this.children(".d-loading").remove(),theme.woocommerce&&"function"==typeof theme.woocommerce.initAlertAction&&theme.woocommerce.initAlertAction()),this},theme.stickyContent=function(){function t(e,t){return this.init(e,t)}function i(){theme.$window.trigger("sticky_refresh.alpus",{index:0,offsetTop:window.innerWidth>600&&e("#wp-toolbar").length&&e("#wp-toolbar").parent().is(":visible")?e("#wp-toolbar").parent().outerHeight():0})}function n(e){e&&!theme.windowResized(e.timeStamp)||(theme.$window.trigger("sticky_refresh_size.alpus"),theme.requestFrame(i))}return t.prototype.init=function(t,i){this.$el=t,this.options=e.extend(!0,{},theme.defaults.sticky,i,theme.parseOptions(t.attr("data-sticky-options"))),this.scrollPos=window.pageYOffset,this.originalHeight=this.$el.outerHeight(),theme.$window.on("sticky_refresh.alpus",this.refresh.bind(this)).on("sticky_refresh_size.alpus",this.refreshSize.bind(this))},t.prototype.refreshSize=function(e){var t=window.innerWidth>=this.options.minWidth&&window.innerWidth<=this.options.maxWidth;void 0===this.top&&(this.top=this.options.top),window.innerWidth>=768&&this.getTop?this.top=this.getTop():this.options.top||(this.top=this.isWrap?this.$el.parent().offset().top:this.$el.offset().top+this.$el[0].offsetHeight,this.$el.find(".toggle-menu.show-home").length&&(this.top+=this.$el.find(".toggle-menu .dropdown-box")[0].offsetHeight)),this.isWrap?t||this.unwrap():t&&this.wrap(),e&&theme.requestTimeout(this.refreshSize.bind(this),50)},t.prototype.wrap=function(){this.$el.wrap('
'),this.$el.closest(".toolbox-horizontal").addClass("horizontal-fixed"),this.isWrap=!0},t.prototype.unwrap=function(){this.$el.unwrap(".sticky-content-wrapper"),this.$el.closest(".toolbox-horizontal").removeClass("horizontal-fixed"),this.isWrap=!1},t.prototype.refresh=function(t,i){var n=window.pageYOffset,a=this.$el;this.refreshSize(),e(".fixed.fix-top").each((function(){n+=e(this).outerHeight()})),n>=this.top+this.originalHeight&&this.isWrap?(this.height=a[0].offsetHeight,a.hasClass("fixed")||a.parent().css("height",this.height+"px"),this.options.scrollMode?(this.scrollPos>=window.pageYOffset&&a.hasClass("fix-top")||this.scrollPos<=window.pageYOffset&&a.hasClass("fix-bottom")?(a.addClass("fixed"),this.onFixed&&this.onFixed()):(a.removeClass("fixed").css({"margin-top":"","margin-bottom":"","z-index":""}),this.onUnfixed&&this.onUnfixed()),this.scrollPos=window.pageYOffset):(a.addClass("fixed"),this.onFixed&&this.onFixed()),a.hasClass("fixed")&&a.hasClass("fix-top")?(this.zIndex=this.options.max_index-e(".fix-top").index(a),a.css({"margin-top":i.offsetTop+"px","z-index":this.zIndex})):a.hasClass("fixed")&&a.hasClass("fix-bottom")?(this.zIndex=this.options.max_index-i.index,a.css({"margin-bottom":i.offsetBottom+"px","z-index":this.zIndex})):a.css({transition:"opacity .5s"}),a.hasClass("fixed")&&(a.hasClass("fix-top")?i.offsetTop+=a[0].offsetHeight:a.hasClass("fix-bottom")&&(i.offsetBottom+=a[0].offsetHeight))):(a.parent().css("height",""),a.removeClass("fixed").css({"margin-top":"","margin-bottom":"","z-index":""}),this.onUnfixed&&this.onUnfixed()),theme.$window.trigger("alpus_finish_sticky")},theme.$window.on("alpus_complete",(function(){window.addEventListener("scroll",i,{passive:!0}),theme.$window.on("resize",n),setTimeout((function(){n()}),1e3)})),function(i,n){theme.$(i).each((function(){var i=e(this);i.data("sticky-content")||i.data("sticky-content",new t(i,n))}))}}(),theme.alert=function(t){theme.$body.on("click",t+" .btn-close",(function(i){i.preventDefault(),e(this).closest(".elementor-widget-"+alpus_vars.theme+"_widget_alert").length&&(t=".elementor-widget-"+alpus_vars.theme+"_widget_alert"),e(this).closest(t).fadeOut((function(){e(this).remove()}))}))},theme.isotopes=function(){function t(t,i){var n=i||e(".grid");n.length&&n.each((function(t){var i=e(this);if(i.attr("data-creative-breaks")&&!i.hasClass("float-grid")){i.children(".grid-item").css({"animation-fill-mode":"none","-webkit-animation-fill-mode":"none"});var n=window.innerWidth,a=JSON.parse(i.attr("data-creative-breaks")),s=i.attr("data-current-break");if(n>=a.xlg?n="":n>=a.xlg&&n=a.xl&&n=a.lg&&n=a.md&&n=a.sm&&n=o.xlg?s="":s>=o.xlg&&s=o.xl&&s=o.lg&&s=o.md&&s=o.sm&&s0?theme.isIE?i(s.find(".expanded"),(function(){i(a)})):(i(s.find(".expanded")),i(a)):i(a))))}));var i=function(e,i){var n=e.closest(".card"),a=n.find(t);e.hasClass("expanded")?(a.removeClass("collapse").addClass("expand"),n.removeClass("collapse").addClass("expand"),e.addClass("collapsing").slideUp(300,(function(){e.removeClass("expanded collapsing").addClass("collapsed"),i&&i()}))):e.hasClass("collapsed")&&(a.removeClass("expand").addClass("collapse"),n.removeClass("expand").addClass("collapse"),e.addClass("expanding").slideDown(300,(function(){e.removeClass("collapsed expanding").addClass("expanded"),i&&i()})))}},theme.tab=function(t){if(""!=t){var i=function(i,n){var a=e(i);if(!a.closest(t).hasClass("loading")){var s,o="SPAN"==i.tagName?a.data("href"):a.attr("href");if(s="#"==o?a.closest(".nav").siblings(".tab-content").children(".tab-pane").eq(a.parent().index()):e(("#"==o.substring(0,1)?"":"#")+o),e(".elementor-element[data-id="+o+"]").length&&(s=e(".elementor-element[data-id="+o+"]")),s.length){n.preventDefault();var r=s.parent().children(".active");!a.hasClass("active")&&o&&(a.parent().parent().find(".active").removeClass("active"),a.addClass("active"),theme.loadTemplate(s),theme.slider(s.find(".slider-wrapper")),r.removeClass("in active"),s.addClass("active in"),theme.refreshLayouts())}}};"object"==typeof t?t.find(".nav-link").on("click",(function(e){i(this,e)})):theme.$body.on("click",t+" .nav-link",(function(e){i(this,e)}))}},theme.playableVideo=function(t){e(t+" .video-play").on("click",(function(i){var n=e(this).closest(t);n.hasClass("playing")?n.removeClass("playing").addClass("paused").find("video")[0].pause():n.removeClass("paused").addClass("playing").find("video")[0].play(),i.preventDefault()})),e(t+" video").on("ended",(function(){e(this).closest(".post-video").removeClass("playing")}))},theme.appearAnimate=function(e){var t="string"==typeof e&&e.indexOf("elementor-invisible")>0?"elementor-invisible":"appear-animate";theme.$(e).each((function(){var e=this;theme.appear(e,(function(){if(e.classList.contains(t)&&!e.classList.contains("appear-animation-visible")){var i=theme.parseOptions(e.getAttribute("data-settings")),n=1e3;e.classList.contains("animated-slow")?n=2e3:e.classList.contains("animated-fast")&&(n=750),theme.call((function(){e.style["animation-duration"]=n+"ms",e.style["animation-delay"]=i._animation_delay+"ms",e.style["transition-property"]="visibility, opacity",e.style["transition-duration"]="0s",e.style["transition-delay"]=i._animation_delay+"ms";var t=i.animation||i._animation||i._animation_name;t&&e.classList.add(t),e.classList.add("appear-animation-visible"),setTimeout((function(){e.style["transition-property"]="",e.style["transition-duration"]="",e.style["transition-delay"]="",e.classList.add("animating"),setTimeout((function(){e.classList.add("animated-done")}),n)}),i._animation_delay?i._animation_delay+500:500)}))}}))})),"object"==typeof elementorFrontend&&theme.$window.trigger("resize.waypoints")};var n,a,s,o,r,l;theme.initPopups=function(){function t(t){var i=e(t.target);i.closest(".mfp-gallery").length||i.closest(".mfp-content").length&&!i.hasClass("mfp-content")||e.fn.magnificPopup&&e.magnificPopup.instance.close()}theme.$body.on("click",".btn-video-iframe",(function(t){t.preventDefault(),theme.popup({items:{src:'