1var GRVE=GRVE||{};!function(e){"use strict";(GRVE={init:function(){this.headerSettings.init(),this.feature.init(),this.pageSettings.init()},onLoad:function(){GRVE.pageSettings.sectionColor.onResize(),GRVE.pageSettings.skinScrollEffect.onResize(),GRVE.pageSettings.skinScrollEffectElementor.onResize(),GRVE.pageSettings.sectionNav.onResize(),GRVE.pageSettings.parallaxBg.onResize(),GRVE.pageSettings.parallaxCol.onResize(),GRVE.pageSettings.listTitleGrid.relayout(),window.location.hash&&setTimeout(function(){var t=window.location.hash;if(e(t).length)if(e(t).hasClass("grve-tab-content")||e(t).hasClass("grve-accordion-content")){var i=e('.grve-tab-link[data-rel="'+t+'"]:visible');i.length&&i.click()}else e("html, body").scrollTop(e(t).offset().top)},0)},onResize:function(){this.headerSettings.onResize(),this.pageSettings.onResize(),this.feature.onResize()},onScroll:function(){this.headerSettings.onScroll(),this.pageSettings.onScroll(),this.feature.onScroll()},afterTransition:function(){this.pageSettings.basics.svgAnimation()}}).headerSettings={init:function(){this.mainHeader.init(),this.verticalMenu.init(),this.horizontalMenu.init(),this.offcanvasMenu.init(),this.slidingArea.init(),this.slidingFilters.init(),this.responsiveMenu.init(),this.safeButton.init(),this.anchorMenu.init(),this.anchorMenu.sticky(!1),this.languageDropdown(),this.miniCart(),this.ajaxSearchForm(),this.mainHeader.getHeaderHeight()},onScroll:function(){this.mainHeader.updateSticky()},onResize:function(){this.mainHeader.checkSticky()},mainHeader:{selectors:"#grve-main-header, #grve-main-responsive-header",init:function(){var t=this;if((c=t.getHeader()).length){g=c.data("sticky");var i=void 0!=e("#grve-header").offset().top?e("#grve-header").offset().top:0,r=c.outerHeight();t.headerOffset=r+i,t.checkSticky(),a.on("grve_safebutton_before_close",function(){var e=t.getHeader();"none"!==g&&t.disableSticky(e)}),a.on("grve_safebutton_close",function(){var e=t.getHeader();"none"!==g&&t.enableSticky(e,H)})}},getHeader:function(){return e(this.selectors).filter(":visible")},getHeaderHeight:function(){var t=this.getHeader(),i=t.data("sticky"),a=0;if(t&&"none"!==i&&void 0!==i)if("scrollup"===i||"shrink"===i){var r=parseInt(impeka_grve_main_data.header_sticky_shrink_spacing["padding-top"]),n=parseInt(impeka_grve_main_data.header_sticky_shrink_spacing["padding-bottom"]),s=parseInt(impeka_grve_main_data.header_sticky_shrink_logo_height),o=e("#grve-main-header .grve-header-row").height();a=(o=o>s?o:s)+r+n}else a=t.outerHeight();return a},checkSticky:function(){c=this.getHeader(),g=c.data("sticky"),c&&("none"!==g&&void 0!==g?(this.enableSticky(c,H),setTimeout(function(){c.addClass("grve-sticky-ready")},200)):this.disableSticky(c))},enableSticky:function(t,i){if("undefined"==typeof stick_in_parent&&!e().stick_in_parent)return console.log("Sticky Kit not Defined."),!0;void 0===i&&(i=0),t.stick_in_parent({parent:"body",sticky_class:"grve-fixed",offset_top:i}).on("sticky_kit:stick",function(e){S=!0,GRVE.headerSettings.mainHeader.updateSticky()}),t.trigger("sticky_kit:recalc"),R=!1},disableSticky:function(t){if("undefined"==typeof stick_in_parent&&!e().stick_in_parent)return console.log("Sticky Kit not Defined."),!0;t.trigger("sticky_kit:detach"),R=!0,t.removeClass("grve-sticky-header grve-scroll-down grve-scroll-up")},updateSticky:function(){function t(e){if(v.length){var t=parseInt(v.css("top"));"up"===e?v.css({transform:"translateY(-"+(t-i.getHeaderHeight())+"px)"}):"top"===e?v.css({transform:"translateY(-"+t+"px)"}):"bottom"===e?v.css({transform:"translateY(-"+(t-i.getHeaderHeight())+"px)"}):v.css({transform:"translateY(0)"})}}var i=this;if("none"!==g&&void 0!==g&&c.length&&!c.is("#grve-main-responsive-header")&&!R){var n=a.scrollTop(),o=GRVE.helpers.getScrollDirection(),d=function(e,t){var i={up:0,down:0};return GRVE.helpers.isMobile.any()&&(i={up:20,down:20}),Math.abs(e-w)>=i[t]}(n,o);if(n>i.headerOffset&&S&&!l.hasClass("grve-sticky-header")&&("main-header"!=c.data("sticky-mode")&&i.changeSkin("sticky"),setTimeout(function(){GRVE.headerSettings.anchorMenu.sticky(!0)},10)),n>i.headerOffset&&"down"===o&&S&&!l.hasClass("grve-sticky-header")?(l.addClass("grve-sticky-header"),t("up"),"main-header"!=c.data("sticky-mode")&&i.changeSkin("sticky")):n<=i.headerOffset&&"up"===o&&S&&l.hasClass("grve-sticky-header")&&(l.removeClass("grve-sticky-header"),t("down"),"main-header"!=c.data("sticky-mode")&&i.changeSkin()),"scrollup"===g&&("down"===o&&n>500+i.headerOffset&&!T&&d?(T=!0,c.addClass("grve-hide-header"),t("top")):"up"===o&&T&&d&&(T=!1,c.removeClass("grve-hide-header"),t("bottom"))),"main-header"==c.data("sticky-mode")&&!s.hasClass("grve-skin-effect")){var h=e(r.hasClass("elementor-page")?".elementor-section":".grve-section"),p=h.length;h.each(function(){var t=e(this),r=t.offset().top,n=r+t.outerHeight(),s=a.scrollTop(),o=GRVE.helpers.getTopBarHeight();(0===t.index()&&r-o>s||p-1===t.index()&&n-o<s)&&t.hasClass("current-section")?(t.removeClass("current-section"),i.changeSkin(c.data("header-color"))):r-o<=s&&n-o>s&&!t.hasClass("current-section")&&(t.addClass("current-section").siblings().removeClass("current-section"),i.changeSkin(t.data("header-color")))})}}},changeSkin:function(e){var t=l.data("header-skin"),i=void 0!==e?e:t;l.removeClass("grve-skin-dark grve-skin-light grve-skin-default grve-skin-sticky").addClass("grve-skin-"+i)}},horizontalMenu:{init:function(){this.mainMenu()},mainMenu:function(){var t=this,i=e("#grve-header .grve-horizontal-menu > ul.grve-menu");e(".grve-main-menu").find('a[href="#"]').on("click",function(e){e.preventDefault()}),i.superfish({popUpSelector:".grve-sub-menu, .grve-megamenu-sub-menu-column",delay:800,speed:300,cssArrows:!1,hoverClass:"grve-menu-hover",speedOut:100,animation:!1,animationOut:!1,disableHI:!0,onBeforeShow:function(){var t=e(this);if(t.length){var i=t.parent(),n=a.width(),s=t.width(),o=i.offset().left;if(i.hasClass("grve-menu-area-item")&&i.find(".grve-isotope").length&&GRVE.pageSettings.isotope.relayout(),i.removeClass("grve-invert"),i.hasClass("grve-menu-size-custom")&&s+o>n){var l=n-(s+o);t.css({left:l-30})}if(!i.hasClass("megamenu")&&i.hasClass("menu-item-has-children")){var c=i.children(".grve-classic-sub-menu");if(c.length){s+c.offset().left>n&&i.addClass("grve-invert")}}if(r.hasClass("grve-boxed")&&i.hasClass("grve-menu-size-custom")){var g=e("#grve-theme-wrapper").width(),d=e("#grve-theme-wrapper").offset().left,v=0;s+o>g+d&&(v=g+d-(s+o)),t.css({left:v})}t.find(".grve-vertical-menu").each(function(){GRVE.headerSettings.verticalMenu.reset(e(this))})}},onShow:function(){var i=e(this).parent();l.hasClass("grve-megamenu-change-header-skin")&&i.hasClass("megamenu")&&!i.hasClass("grve-menu-size-custom")&&t.removeTransparentHeader(!0)},onBeforeHide:function(){var i=e(this).parent();l.hasClass("grve-megamenu-change-header-skin")&&i.hasClass("grve-first-level")&&t.removeTransparentHeader(!1)}})},removeTransparentHeader:function(e){var t=l.data("header-skin"),i=l.data("megamenu-header-skin");e&&!l.hasClass("grve-skin-changed")?(l.removeClass("grve-skin-"+t),l.addClass("grve-skin-changed grve-skin-"+i)):!e&&l.hasClass("grve-skin-changed")&&(l.removeClass("grve-skin-changed grve-skin-"+i),l.addClass("grve-skin-"+t))}},verticalMenu:{init:function(){function t(t){var i=t.closest(".grve-vertical-menu"),n=i.data("menu-type"),s=void 0!==i.parents(".grve-hidden-area").data("items-animation")?i.parents(".grve-hidden-area").data("items-animation"):"bottom-to-top",o=t.parent().parent().children().not(e(".grve-link-wrapper")),l=t.parent().find(".grve-item").html(),c=i.data("current");r||(r=!0,"slide"==n?(function(e,t){var i=e.children(".grve-go-back-wrapper");i.find(".grve-label").html(t),i.removeClass("grve-active")}(o,l),function(e,t,i,n){function s(){r=!1,e.data("current",t)}var o=-100*t+"%",l=a.getItems(i),c=gsap.timeline();i.addClass("grve-current"),e.css({"min-height":i.height()}),"none"!=n?(c.to(e,{x:o,duration:.4,ease:"power1.out"}),c.fromTo(l,{opacity:0,y:20},{opacity:1,y:0,duration:.4,ease:"power1.out",stagger:.1,onComplete:s},"<0.4")):c.to(e,{x:o,duration:.4,ease:"power1.out",onComplete:s})}(i,++c,o,s)):"toggle"==n?function(t,i){var n=a.getItems(t),s=gsap.timeline();t.is(":visible")?(t.parent().find(".grve-arrow").removeClass("grve-open"),t.slideUp(200,function(){r=!1,e(this).removeClass("grve-current").find(".grve-current").removeClass("grve-current").hide()})):(t.parent().find(".grve-arrow").first().addClass("grve-open"),t.slideDown(200,function(){r=!1,e(this).addClass("grve-current"),"none"!=i&&s.from(n,{opacity:0,y:10,duration:.4,ease:"power1.out",stagger:.1})}))}(o,s):"accordion"==n&&function(t,i){var n=a.getItems(t),s=gsap.timeline({clear:!0});t.is(":visible")?(t.parent().find(".grve-arrow").removeClass("grve-open"),t.slideUp(200,function(){r=!1,e(this).removeClass("grve-current").find(".grve-current").removeClass("grve-current").hide()})):(t.parent().find(".grve-arrow").first().addClass("grve-open"),t.slideDown(200,function(){r=!1,e(this).addClass("grve-current"),"none"!=i&&s.from(n,{opacity:0,y:10,duration:.4,ease:"power1.out",stagger:.1})}).parent().siblings().find(".grve-current").slideUp(200,function(){e(this).parent().find(".grve-arrow").removeClass("grve-open"),e(this).removeClass("grve-current").find(".grve-current").removeClass("grve-current").hide()}))}
1(o,s))}var a=this,r=!1;a.setVerticalMenu(),d.each(function(){var t=e(this),i=t.data("menu-type"),a=t.find("li.menu-item-has-children").children().not(e(".grve-link-wrapper"));t.data("current",0),"slide"==i&&function(t){t.each(function(){var t=e(this),i=impeka_grve_main_data.string_back?impeka_grve_main_data.string_back:"Back",a=e('<li class="grve-go-back-wrapper"><a href="#" class="grve-go-back"><div class="grve-back-arrow"></div><span class="screen-reader-text">'+i+"</span></a></li>");t.hasClass("grve-sub-menu")&&(a=e('<div class="grve-go-back-wrapper"><a href="#" class="grve-go-back"><div class="grve-back-arrow"></div><span class="screen-reader-text">'+i+"</span></a></div>")),t.find(".grve-go-back-wrapper").length||a.prependTo(t)})}(a)}),i.on("click",".grve-vertical-menu .grve-link-wrapper a",function(i){"#"===e(this).attr("href")&&(i.preventDefault(),t(e(this)))}),i.on("click",".grve-vertical-menu .grve-arrow",function(){t(e(this))}),i.on("click",".grve-vertical-menu .grve-go-back-wrapper a",function(t){t.preventDefault();var i=e(this).closest(".grve-vertical-menu"),n=void 0!==i.parents(".grve-hidden-area").data("items-animation")?i.parents(".grve-hidden-area").data("items-animation"):"bottom-to-top",s=e(this).parent().parent(),o=i.data("current"),l=1===o?s.parent().parent():s.parent().parent().parent();r||(r=!0,function(e,t,i,n,s){function o(){r=!1,i.removeClass("grve-current"),e.css({"min-height":n.height()}),e.data("current",t)}var l=-100*t+"%",c=a.getItems(i),g=gsap.timeline({clear:!0});"none"!=s?(g.fromTo(c,{opacity:1,y:0},{opacity:0,y:20,duration:.4,ease:"power1.out",stagger:.1}),g.to(e,{x:l,duration:.4,ease:"power1.out",onComplete:o},"<0.4")):g.to(e,{x:l,duration:.4,ease:"power1.out",onComplete:o})}(i,--o,s,l,n))})},getItems:function(t){var i=[],a=t.find(".grve-go-back-wrapper");if(a.length&&i.push(a[0]),t.hasClass("grve-area-item-sub-menu")){r=t.children().not(".grve-go-back-wrapper");i.push(r)}else if(t.hasClass("grve-sub-menu")){(r=t.find(".sub-menu").first().children()).each(function(){i.push(e(this).find(".grve-link-wrapper").first())})}else{var r;(r=t.children("li").not(".grve-go-back-wrapper")).each(function(){i.push(e(this).find(".grve-link-wrapper").first())})}return i},reset:function(e){if("slide"==e.data("menu-type")){gsap.timeline({clear:!0}).to(e,{x:0,duration:0,ease:"power1.out"}),e.data("current",0),e.removeAttr("style"),e.find(".grve-current").removeClass("grve-current")}else e.children().find(".grve-current").removeClass("grve-current").hide(),e.find(".grve-arrow").removeClass("grve-open")},setVerticalMenu:function(){e(".grve-area-item-sub-menu").each(function(){var t=e(this).find(".grve-vertical-menu .grve-menu").find(".grve-first-level"),i=t.find(".grve-arrow"),a=t.children().not(".grve-link-wrapper");t.removeClass("menu-item-has-children"),i.remove(),a.remove()});d.find(".grve-hidden-menu-item").each(function(){var t=e(this),i=t.find(".sub-menu").first();i.length&&(i.children().insertAfter(t),t.remove())})}},toggleHiddenArea:{init:function(t,r,n){var s=this,o=e(t),l=void 0!=n?n:"hiddenarea";if(o.length){var c=!1,g=o.find(".grve-area-inner"),d=o.find(".grve-content"),v=o.find(".grve-hidden-area-overlay"),h=o.find(".grve-close-btn"),p=o.data("animation"),u=e.extend(s.getAnimationType(p),{duration:.4,ease:"power1.out"}),f=gsap.timeline({paused:!0,onStart:function(){o.css("display","block"),s.open(o,l)},onComplete:function(){function i(){a.trigger("grve_"+l+"_open")}var r=s.getItems(t);if(r.length){var n=o.data("items-animation"),c=e.extend(s.getAnimationType(n),{duration:.4,ease:"power1.out",stagger:.1}),g=gsap.timeline({onComplete:i});g.set(d,{visibility:"visible"}),g.from(r,c)}else i()},onReverseComplete:function(){s.close(o,l),o.css("display","none")}});v.length&&f.fromTo(v,{opacity:0},{opacity:1,duration:.4,ease:"power1.out"}),f.from(g,u),i.on("click",r,function(t){t.preventDefault(),c?c&&(c=!1,f.reverse(),a.trigger("grve_"+l+"_before_close")):(c=!0,f.play(),a.trigger("grve_"+l+"_before_open")),o.hasClass("grve-offcanvas-full-width")&&e(r).toggleClass("grve-close")}),h.on("click",function(t){t.preventDefault(),c&&(c=!1,f.reverse(),a.trigger("grve_"+l+"_before_close")),o.hasClass("grve-offcanvas-full-width")&&e(r).toggleClass("grve-close")})}},getItems:function(t){n=[];if("#grve-offcanvas-area"===t){var i=e(t).find(".grve-offcanvas-logo"),a=(r=e(t).find("#grve-main-menu.grve-vertical-menu > .grve-menu")).children();i.length&&n.push(i),a.each(function(){n.push(e(this).find("> .grve-link-wrapper"))})}else if("#grve-responsive-menu-area"===t)var r=e(t).find(".grve-vertical-menu"),a=r.find(".grve-first-level:not(.grve-menu-element-first-level) > .grve-link-wrapper"),n=e.makeArray(a);var s=e(t).find(".grve-area-bottom"),o=s.children(),l=e(t).find(".grve-area-right"),c=e(t).find("#grve-second-menu.grve-vertical-menu > .grve-menu").children(),g=l.children();return s.length&&(o.length?n.push(o):n.push(s)),l.length&&(g.length?g.each(function(){e(this).hasClass("grve-vertical-menu-wrapper")?c.each(function(){n.push(e(this).find("> .grve-link-wrapper"))}):n.push(e(this))}):n.push(l)),n},open:function(t,i){if(1==t.data("header-visibility")){var n=GRVE.headerSettings.mainHeader.getHeader();n.addClass("grve-header-visible");var s=n.offset().top+n.outerHeight()-a.scrollTop();t.find(".grve-area-scroller").css({"margin-top":s,height:"calc(100% - "+s+"px)"}),GRVE.headerSettings.mainHeader.changeSkin(t.data("header-skin")),GRVE.headerSettings.toggleHiddenArea.setHeaderSpace()}r.addClass("grve-"+i+"-open"),e("html").addClass("grve-stop-scrolling")},close:function(t,i){if(1==t.data("header-visibility")){var n=GRVE.headerSettings.mainHeader.getHeader();n.removeClass("grve-header-visible"),GRVE.headerSettings.mainHeader.changeSkin(n.data("header-skin")),GRVE.headerSettings.toggleHiddenArea.resetHeaderSpace()}var s=t.find(".grve-vertical-menu");t.find(".grve-content").css("visibility",""),GRVE.headerSettings.verticalMenu.reset(s),r.removeClass("grve-"+i+"-open"),e("html").removeClass("grve-stop-scrolling"),a.trigger("grve_"+i+"_close")},getAnimationType:function(e){var t={opacity:1,x:0,y:0};if(r.hasClass("rtl"))switch(e){case"fade-in":t.opacity=0;break;case"left-to-right":t.x="100%",t.opacity=0;break;case"right-to-left":t.x="-100%",t.opacity=0;break;case"top-to-bottom":t.y="-100%",t.opacity=0;break;case"bottom-to-top":t.y="100%",t.opacity=0}else switch(e){case"fade-in":t.opacity=0;break;case"left-to-right":t.x="-100%",t.opacity=0;break;case"right-to-left":t.x="100%",t.opacity=0;break;case"top-to-bottom":t.y="-100%",t.opacity=0;break;case"bottom-to-top":t.y="100%",t.opacity=0}return t}
1,setHeaderSpace:function(){var t=GRVE.headerSettings.mainHeader.getHeader(),i=t.is("#grve-main-responsive-header")?"grve-responsive-header-overlapping":"grve-header-overlapping";if(!t.hasClass("grve-fixed")&&!r.hasClass(i)){var a=t.outerHeight();e("#grve-header").css({"padding-bottom":a})}},resetHeaderSpace:function(){e("#grve-header").css({"padding-bottom":""})}},responsiveMenu:{init:function(){GRVE.headerSettings.toggleHiddenArea.init("#grve-responsive-menu-area",".grve-toggle-responsive-menu","responsivemenu")}},offcanvasMenu:{init:function(){GRVE.headerSettings.toggleHiddenArea.init("#grve-offcanvas-area",".grve-toggle-offcanvas","offcanvas")}},slidingArea:{init:function(){GRVE.headerSettings.toggleHiddenArea.init("#grve-side-area",".grve-toggle-side-area","side-area")}},slidingFilters:{init:function(){GRVE.headerSettings.toggleHiddenArea.init("#grve-filters-area",".grve-toggle-filters-area","filters-area")}},safeButton:{init:function(){var t=this,r=e(".grve-toggle-safebutton-area"),n=e("#grve-safebutton-area"),s=n.find(".grve-close-btn"),o=n.find(".grve-safebutton-wrapper"),l=!1;if(t.scrollTarget=null,t.scrollPosition=0,n.length){var c=e("#grve-safebutton-overlay"),g=gsap.timeline({paused:!0,onStart:function(){r.parent().addClass("grve-close")},onComplete:function(){t.open(n)},onReverseComplete:function(){t.close(n)}});g.set(c,{display:"block"}),g.from(c,{duration:.6,x:"-100%",ease:"power1.out",onComplete:t.toggleMainContent}),g.set(n,{display:"block",onComplete:t.setAreaScrollPosition,onReverseComplete:t.setPageScrollPosition}),g.to(c,{duration:.6,x:"100%",ease:"power1.out",onReverseComplete:t.toggleMainContent}),g.from(o,{duration:.6,opacity:0,ease:"power1.out"},"-=0.3")}r.on("click",function(i){i.preventDefault();var r=e(this);n.length&&!l?(l=!0,g.play(),t.scrollPosition=a.scrollTop()):n.length&&l&&(l=!1,g.reverse(),r.parent().removeClass("grve-close"))}),s.on("click",function(e){e.preventDefault(),l=!1,g.reverse()}),i.on("keyup",function(e){n.length&&27==e.keyCode&&l&&(l=!1,g.reverse())}),n.on("click",".grve-menu-element a",function(i){var a=e(this).attr("href").split("#").pop();e("#"+a).length&&(i.preventDefault(),t.scrollTarget=e("#"+a),s.trigger("click"))})},open:function(e){a.trigger("grve_safebutton_open"),r.addClass("grve-safebutton-open")},close:function(t){var i=this;a.trigger("grve_safebutton_close"),r.removeClass("grve-safebutton-open"),null!==i.scrollTarget&&(GRVE.helpers.smoothScrollTo(i.scrollTarget),i.scrollTarget=null);t.find(e('iframe[src*="youtube"]')).each(function(){i.stopYoutubeVideo(this)})},setAreaScrollPosition:function(){e("html, body").scrollTop(0),e("#grve-safebutton-area").find(".grve-isotope").length&&GRVE.pageSettings.isotope.relayout()},setPageScrollPosition:function(){var t=GRVE.headerSettings.safeButton;e("html, body").scrollTop(t.scrollPosition)},toggleMainContent:function(){r.toggleClass("grve-safebutton-ready"),e("html").toggleClass("grve-safebutton-ready"),e.each({topBar:"#grve-top-bar",header:"#grve-header",feature:"#grve-feature-section",content:"#grve-theme-content",footer:"#grve-footer"},function(){e(this).toggle()}),r.hasClass("grve-safebutton-open")&&a.trigger("grve_safebutton_before_close")},stopYoutubeVideo:function(t){return e(t).attr("src",e(t).attr("src")),!1}},anchorMenu:{init:function(t){e(".grve-anchor-dropdown").on("change",function(){var t=e(this).find("option:selected").val();e(".grve-anchor-menu .menu-item-"+t+" a")[0].click()})},sticky:function(e){if(v.length){var t=GRVE.headerSettings.mainHeader.getHeader();if(!e&&v.offset().top>t.outerHeight()&&("scrollup"===g||"shrink"===g))return;v.stick_in_parent({parent:"#grve-theme-content",bottoming:!1,inner_scrolling:!1,offset_top:GRVE.headerSettings.mainHeader.getHeaderHeight()})}}},languageDropdown:function(){e(".grve-language.grve-dropdown").superfish({popUpSelector:"ul",delay:800,speed:300,cssArrows:!1,hoverClass:"grve-hover",speedOut:100,animation:!1,animationOut:!1})},miniCart:function(){var t=e(".grve-toggle-minicart"),a=e("#grve-cart-area"),r=!1;if(a.length){var n=gsap.timeline({paused:!0,onComplete:function(){r=!0},onReverseComplete:function(){r=!1}});n.set(a,{display:"block"}),n.to(a,{opacity:1,duration:.5,ease:"power3.inOut"}),t.on("click",function(e){e.preventDefault(),0==n.progress()?n.play():n.reverse()})}i.on("click",function(t){!e(t.target).closest("#grve-cart-area").length&&r&&n.reverse()})},ajaxSearchForm:function(){e(".grve-ajax-search-form").each(function(){GRVE.headerSettings.ajaxSearch(e(this))})},ajaxSearch:function(t){function i(i){var n=i.find("input.grve-search-field").val(),s=0,o=t.find(".grve-search-results");if(i.find(".grve-product-cat-dropdown").length>0&&(s=i.find(".grve-product-cat-dropdown").val()),n.trim().length<2)i.removeClass("searching found-products found-no-product").addClass("invalid-length");else{i.removeClass("found-products found-no-product").addClass("searching");var l=r.attr("action")+"?"+r.serialize(),c={action:"impeka_grve_search_products",term:n,cat:s,limit:3,search_type:"product",_grve_nonce:impeka_grve_main_data.nonce_search};a=e.post(impeka_grve_main_data.ajaxurl,c,function(e){var t=e.data;i.removeClass("searching"),i.addClass("found-products"),o.html(t),i.removeClass("invalid-length"),o.find(".grve-view-more a").attr("href",l)}).fail(function(e,t,i){})}}t.on("change",".grve-product-cat-dropdown",function(){e(this).find("option:selected").text().trim()});var a=null,r=t.find("form");t.on("keyup",".grve-search-field",function(r){var n=!1;if(void 0===r.which?n=!0:"number"==typeof r.which&&r.which>0&&(n=!r.ctrlKey&&!r.metaKey&&!r.altKey),n){a&&a.abort(),t.find(".result-list-found, .result-list-not-found").html(""),t.find(".result-title").addClass("not-found");var s=e(this).closest(".grve-search-form");s.find("input.grve-search-field").val().length<2&&s.removeClass("searching searched actived found-products found-no-product invalid-length"),i(s)}}).on("change",".grve-product-cat-dropdown",function(){a&&a.abort(),t.find(".result-list-found").html(""),t.find(".result-title").addClass("not-found");i(e(this).closest(".grve-search-form"))}).on("focus",".grve-product-cat-dropdown",function(){a&&a.abort(),t.find(".grve-product-cat-label").addClass("border-color-dark")}).on("focusout",".grve-product-cat-dropdown",function(){a&&a.abort(),t.find(".grve-product-cat-label").removeClass("border-color-dark")}).on("focusout",".grve-search-field",function(){var t=e(this).closest(".grve-search-form");t.find("input.grve-search-field").val().length<2&&t.removeClass("searching searched actived found-products found-no-product invalid-length")}),t.on("click",".grve-close-search-results",function(e){e.preventDefault(),t.find(".grve-search-field").val(""),t.find(".grve-form-search").removeClass("searching searched actived found-products found-no-product invalid-length"),t.find(".result-title").addClass("not-found"),t.find(".result-list-found").html("")}),e(document).on("click",function(t){if(!e("#grve-search-modal").find(".grve-search-form").hasClass("actived")){var i=t.target;e(i).closest(".products-search").length<1&&r.removeClass("searching actived found-products found-no-product invalid-length")}})}},GRVE.feature={init:function(){this.settings.init(),this.classicSlider.init(),this.advancedSlider1.init(),this.advancedSlider2.init(),this.advancedSlider3.init(),this.advancedSlider4.init(),this.parallax.init()},onScroll:function(){this.parallax.onScroll()},onResize:function(){},settings:{selectors:"#grve-feature-section, .grve-title-section",init:function(){this.checkAnimation(),this.gotoFirstSection()},checkAnimation:function(){var t=this;e(t.selectors).each(function(){var i=e(this);i.find(".grve-content").each(function(){var t=e(this),i=t.data("animation"),a=t.find(".grve-title-content-wrapper"),r=a.children();"appear-up"===i||"appear-down"===i||"appear-left"===i||"appear-right"===i?function(t){var i=t.find(".grve-title-content-wrapper"),a='<div class="grve-appear-wrapper grve-animation-wrapper"><div class="grve-appear-content grve-title-animation-item"></div></div>',r=i.children();
1i.hasClass("grve-bg-none")?r.each(function(){var t=e(this);t.hasClass("grve-button-wrapper")?t.find(".grve-btn").each(function(){e(this).wrap(a)}):t.wrapInner(a)}):i.wrap(a)}(t):a.hasClass("grve-bg-none")?r.each(function(){e(this).addClass("grve-title-animation-item")}):a.addClass("grve-title-animation-item")}),a.on("grve_after_page_transition",function(){t.animation(i)})})},animation:function(t){if(!t.hasClass("grve-with-slider")){var i=t.find(".grve-content"),a=i.data("animation"),r=i.find(".grve-title-animation-item"),n=e.makeArray(r);if(n.length){t.find(".grve-content").addClass("show");var s=e.extend(GRVE.pageSettings.basicAnimations.getAnimParams(a,"normal"),{force3D:!0,ease:"easeOutCubic",stagger:.3}),o=gsap.timeline({delay:.3,onComplete:function(){e.each(n,function(){e(this).parent().css("overflow","visible")})}});"appear-up"===a||"appear-down"===a||"appear-left"===a||"appear-right"===a?o.set(n,{visibility:"visible"}).fromTo(n,s,{x:"0%",y:"0%",stagger:.3}):o.set(n,{visibility:"visible"}).fromTo(n,s,{opacity:1,x:0,y:0,scale:1,stagger:.3})}}},gotoFirstSection:function(){var t=e("#grve-feature-section .grve-goto-first-section"),i=e("#grve-content");t.on("click",function(){return e("html,body").animate({scrollTop:i.offset().top},1e3),!1})}},classicSlider:{init:function(){if(u.length){var t=u.parent().find(".grve-carousel-navigation"),i=u.find(".grve-slider-item").length,n=t.find(".grve-carousel-next"),s=t.find(".grve-carousel-prev"),o=t.find(".grve-slider-bar"),c=t.find(".grve-current-slide .grve-counter"),g=[".grve-page-nav",".grve-safebutton-icon-wrapper"],d="yes"==u.attr("data-slider-pause")||"",v=parseInt(u.attr("data-slider-speed"))?parseInt(u.attr("data-slider-speed")):6e3,h="fade"==u.data("slider-transition");u.flickity({cellAlign:"left",contain:!0,wrapAround:!0,fade:h,prevNextButtons:!1,pageDots:!1,autoPlay:v,pauseAutoPlayOnHover:d,on:{ready:function(){!function(){for(var e=i<9?"0"+i:i,a=t.find(".grve-total-slide"),r=0;r<i;++r){var n=r+1,s="<span>"+(n<=9?"0"+n:n)+"</span>";c.append(s)}a.text(e),m(0)}(),setTimeout(function(){p(0)},600),function(){var t=u.parent().find(".flickity-page-dots");if(t.length){for(var a=0;a<i;++a)e('<li class="dot"></li>').appendTo(t);t.on("click",".dot",function(){var t=e(this).index();u.flickity("selectCell",t),f(t)})}}()},change:function(e){p(e)}}});function p(i){var n=u.find(".grve-slider-item").eq(i),s=n.attr("data-header-color"),o=a.scrollTop(),c=parseInt(u.outerHeight()),d=parseInt(u.offset().top),v=d+c;GRVE.feature.settings.animation(n),f(i),m(i),!r.hasClass("grve-header-overlapping")||e("#grve-main-header").hasClass("grve-skin-sticky")||e("#grve-main-header").hasClass("grve-skin-changed")||(l.data("header-skin",s),GRVE.headerSettings.mainHeader.changeSkin(s)),e.each(g,function(){var t=e(this);if(t.length){var i=parseInt(t.outerHeight()),a=parseInt(t[0].getBoundingClientRect().top)+i/2;o>=d-a&&o<=v-a&&GRVE.pageSettings.sectionColor.changeSkin(t,s)}}),t.removeClass("grve-skin-light grve-skin-dark grve-skin-default").addClass("grve-skin-"+s)}function f(e){var t=u.parent().find(".flickity-page-dots");if(t.length){t.children().eq(e).addClass("is-selected").siblings().removeClass("is-selected")}}function m(e){var t=-e%10*30+"px",a=100*(e+1)/i;c.css({transform:"translateY("+t+")"}),o.css("width",a+"%")}n.on("click",function(){u.flickity("stopPlayer"),u.flickity("next")}),s.on("click",function(){u.flickity("stopPlayer"),u.flickity("previous")})}}},advancedSlider1:{init:function(){var t=e("#grve-feature-section.grve-advanced-slider.grve-style-1"),i="yes"==t.attr("data-slider-pause"),a=parseInt(t.attr("data-slider-speed"))?parseInt(t.attr("data-slider-speed")):3500,r="yes"==t.attr("data-slider-autoplay")&&a,n=t.find(".grve-slider");n.length&&n.flickity({cellAlign:"left",contain:!0,wrapAround:!0,prevNextButtons:!1,pageDots:!0,bgLazyLoad:!0,autoPlay:r,pauseAutoPlayOnHover:i,on:{ready:function(){t.css("visibility","visible")}}})}},advancedSlider2:{init:function(){function t(e){s.parent().find(".grve-item-content").eq(e).addClass("grve-current").siblings().removeClass("grve-current")}var i=e("#grve-feature-section.grve-advanced-slider.grve-style-2"),a="yes"==i.attr("data-sli
1der-pause"),r=parseInt(i.attr("data-slider-speed"))?parseInt(i.attr("data-slider-speed")):3500,n="yes"==i.attr("data-slider-autoplay")&&r,s=i.find(".grve-slider"),o=i.find(".grve-next-btn");s.find(".grve-feature-image");s.length&&s.flickity({cellAlign:"left",contain:!0,wrapAround:!0,prevNextButtons:!1,pageDots:!1,bgLazyLoad:1,autoPlay:n,pauseAutoPlayOnHover:a,on:{ready:function(){s.find(".grve-content").each(function(){var t=e(this).children().clone(),i=e('<div class="grve-item-content"></div>');i.appendTo(s.parent().find(".grve-slider-contents")),t.appendTo(i)}),setTimeout(function(){t(0)},600),i.css("visibility","visible")},change:function(e){t(e)}}}),o.on("click",function(){s.flickity("next")})}},advancedSlider3:{init:function(){function t(e){s.parent().find(".grve-item-content").eq(e).addClass("grve-current").siblings().removeClass("grve-current")}var i=e("#grve-feature-section.grve-advanced-slider.grve-style-3"),a="yes"==i.attr("data-slider-pause"),r=parseInt(i.attr("data-slider-speed"))?parseInt(i.attr("data-slider-speed")):3500,n="yes"==i.attr("data-slider-autoplay")&&r,s=i.find(".grve-slider"),o=i.find(".grve-next-btn"),l=i.find(".grve-prev-btn");s.length&&s.flickity({cellAlign:"center",contain:!0,wrapAround:!0,prevNextButtons:!1,pageDots:!0,bgLazyLoad:1,autoPlay:n,pauseAutoPlayOnHover:a,on:{ready:function(){s.find(".grve-content").each(function(){var t=e(this).children().clone(),i=e('<div class="grve-item-content"></div>');i.appendTo(s.parent().find(".grve-slider-contents")),t.appendTo(i)}),setTimeout(function(){t(0),i.css("visibility","visible")},600)},change:function(e){t(e)},dragStart:function(){e(this.element).parent().hasClass("grve-is-scroll")||e(this.element).parent().addClass("grve-is-scroll")},settle:function(){e(this.element).parent().removeClass("grve-is-scroll")}}}),o.on("click",function(){s.flickity("next"),e(this).parent().addClass("grve-is-scroll")}),l.on("click",function(){s.flickity("previous"),e(this).parent().addClass("grve-is-scroll")})}},advancedSlider4:{init:function(){function t(e){var t=100*(e+1)/c;l.css("width",t+"%")}function i(e){o.parent().find(".grve-item-content").eq(e).addClass("grve-current").siblings().removeClass("grve-current")}var a=e("#grve-feature-section.grve-advanced-slider.grve-style-4"),r="yes"==a.attr("data-slider-pause"),n=parseInt(a.attr("data-slider-speed"))?parseInt(a.attr("data-slider-speed")):3500,s="yes"==a.attr("data-slider-autoplay")&&n,o=a.find(".grve-slider"),l=a.find(".grve-slider-bar"),c=a.find(".grve-slider-item").length,g=c<9?"0"+c:c,d=a.find(".grve-current-slide .grve-counter"),v=a.find(".grve-total-slide"),h=a.find(".grve-next-btn");o.length&&o.flickity({cellAlign:"left",contain:!0,wrapAround:!0,prevNextButtons:!1,pageDots:!0,bgLazyLoad:1,autoPlay:s,pauseAutoPlayOnHover:r,on:{ready:function(){o.find(".grve-content").each(function(){var t=e(this).children().clone(),i=e('<div class="grve-item-content"></div>');i.appendTo(o.parent().find(".grve-slider-contents")),t.appendTo(i)}),setTimeout(function(){t(0),i(0),a.css("visibility","visible")},600)},change:function(e){i(e),t(e),function(e){var t=-e%10*30+"px";d.css({transform:"translateY("+t+")"})}(e)}}}),v.text(g),h.on("click",function(){o.flickity("next")});for(var p=0;p<g;++p){var u=p+1,f="<span>"+(u<=9?"0"+u:u)+"</span>";d.append(f)}}},parallax:{init:function(){if(p.length&&(p.hasClass("grve-bg-parallax")||p.hasClass("grve-bg-advanced-parallax")||p.hasClass("grve-bg-fixed-section"))){var e;e=p.hasClass("grve-bg-advanced-parallax")?"advanced":p.hasClass("grve-bg-fixed-section")?"fixed":"classic",p.data("paralax-type",e),p.children().wrapAll('<div class="grve-feature-inner"><div class="grve-parallax-wrapper"></div></div>'),this.updateParallax(p)}},updateParallax:function(t){var i=t.data("paralax-type"),a=t.find(".grve-parallax-wrapper"),r=e(window).scrollTop(),n=t.offset().top,s=t.outerWidth(),o=t.outerHeight(),l=.2*r,c=o+n;"advanced"!=i||GRVE.helpers.isMobile.any()?"fixed"==i?a.css({position:"fixed",top:n,height:c,width:s,visibility:"visible"}):a.css({position:"relative",height:c,width:s,transform:"translate3d( 0px, "+l+"px, 0px)",visibility:"visible"}):a.css({position:"fixed",top:n,height:c,width:s,transform:"translate3d( 0px, "+-l+"px, 0px)",visibility:"visible"}),E=!1},onScroll:function(){var e=this;
1p.length&&GRVE.helpers.inViewport(p)&&(p.hasClass("grve-bg-parallax")||p.hasClass("grve-bg-advanced-parallax")||p.hasClass("grve-bg-fixed-section"))&&(window.requestAnimationFrame?E||(E=!0,window.requestAnimationFrame(function(){e.updateParallax(p)})):E||(E=!0,e.updateParallax(p)))}}},GRVE.pageSettings={init:function(){this.parallaxBg.init(),this.skinScrollEffect.init(),this.skinScrollEffectElementor.init(),this.basicAnimations.init(),this.basics.init(),this.sectionNav.init(),this.sectionColor.init(),this.socialBar.init(),this.floatingNavBar.init(),this.minimalNavBar.init(),this.smallBlog.init(),this.videos.init(),this.listTitleGrid.init(),this.isotope.init(),this.hoverEffects.init(),this.carouselElements.init(),this.basics.lightGallery(),this.scrollingPage.init(),this.stickyElements.init(),this.onePage.init(),this.wooCommerce.init(),this.parallaxCol.init(),this.mouseMoveCol.init(),this.offcanvasMorphBtn.init()},onScroll:function(){this.parallaxBg.onScroll(),this.skinScrollEffect.onScroll(),this.skinScrollEffectElementor.onScroll(),this.sectionNav.onScroll(),this.sectionColor.onScroll(),this.socialBar.onScroll(),this.floatingNavBar.onScroll(),this.basics.backToTop(),this.onePage.onePageMenu(),this.parallaxCol.onScroll(),this.offcanvasMorphBtn.onScroll()},onResize:function(){this.parallaxBg.onResize(),this.skinScrollEffect.onResize(),this.skinScrollEffectElementor.onResize(),this.sectionNav.onResize(),this.sectionColor.onResize(),this.videos.resizeVideoBg(),this.isotope.relayout(),this.stickyElements.checkDevice(),this.floatingNavBar.onResize(),this.minimalNavBar.onResize(),this.smallBlog.onResize(),this.wooCommerce.onResize(),this.basics.alignFull(),this.parallaxCol.onResize()},parallaxCol:{init:function(){this.sections=e.makeArray(e('[data-parallax-effect="vertical-parallax"]')),this.onResize()},onScroll:function(){var t=this,i=a.scrollTop(),r=a.height();e.each(t.sections,function(a,n){var s=e(n).children(),o=t.properties[a].top,l=t.properties[a].sectionT,c=t.properties[a].sectionH,g=t.properties[a].scrolldis,d=o-l,v=(r+c)/g,h=parseInt((i+r-l)/v-d);t.checkDevice(n)&&gsap.to(s,{duration:0,y:h,force3D:!1})})},onResize:function(){var t=this;t.properties=[],e.each(t.sections,function(i,a){var r=e(a),n=r.children();n.css("transform","");var s=r.parents(".grve-section"),o=s.outerHeight(),l=parseInt(s.offset().top),c=n.outerHeight(),g=parseInt(n.offset().top),d=(parseInt(o+g),{sectionH:o,sectionT:l,sectionH:o,top:g,scrolldis:o-c});t.properties.push(d)}),t.onScroll()},checkDevice:function(t){var i=!0,r=a.width(),n=e(t);return r>I&&r<=G&&"none"===n.data("tablet-landscape-parallax-effect")?i=!1:r>D&&r<=I&&"none"===n.data("tablet-portrait-parallax-effect")?i=!1:r<=D&&"none"===n.data("mobile-parallax-effect")&&(i=!1),i}},mouseMoveCol:{init:function(){this.updateParams()},updateParams:function(t){var i=e('[data-parallax-effect="mouse-move"]');i.length&&a.on("mousemove",function(t){var r=t.clientX,n=t.clientY;if(a.width()<=G)return i.removeAttr("style"),!1;i.each(function(){var t=e(this),i=this.getBoundingClientRect(),a=i.left,s=i.top,o=t.outerHeight(),l=t.outerWidth(),c=.5*l,g=.5*o,d=Math.max(c,l-c),v=Math.max(g,o-g),h=(r-a-c)/d,p=(n-s-g)/v,u=t.data("mouse-move"),f="y"==u?0:h,m="x"==u?0:p,b=t.data("sensitive"),C=t.data("invert");f*=l*(b/100)*(C?-1:1),m*=o*(b/100)*(C?-1:1),gsap.to(this,{x:f,y:m,duration:1,ease:"power3.out"})})})}},parallaxBg:{init:function(){this.sections=e.makeArray(e(".grve-bg-parallax")),this.onResize(),this.onScroll()},onScroll:function(){var t=this,i=a.scrollTop(),r=a.height();e.each(t.sections,function(a,n){var s=e(n).find(".grve-background-wrapper").children(),o=t.properties[a].top-i-r,l=(r+t.properties[a].itemH)/t.properties[a].scrolldis,c=parseInt(o/l);i+r>t.properties[a].top-200&&i<t.properties[a].bottom+200&&("normal"===t.properties[a].type?gsap.to(s,{duration:.1,y:c,force3D:!1}):"left-right"===t.properties[a].type?gsap.to(s,{duration:.1,x:-(t.properties[a].scrolldis+c),force3D:!1}):gsap.to(s,{duration:.1,x:c,force3D:!1}))})},onResize:function(){var t=this;t.properties=[],e.each(t.sections,function(i,a){var r=e(a),n=r.find(".grve-background-wrapper"),s=n.children(),o=r.data("parallax-threshold"),l=n.outerWidth(),c=n.outerHeight(),g=parseInt(r.offset().top),d=parseInt(c+g),v=parseInt(c*o),h=r.hasClass("grve-horizontal-parallax-lr")?"left-right":r.hasClass("grve-horizontal-parallax-rl")?"right-left":"normal",p={itemH:c,top:g,bottom:d,scrolldis:v,type:h};t.properties.push(p),"normal"===h?s.css({height:c+v}):s.css({width:l+v})}),t.onScroll()}},offcanvasMorphBtn:{btn:".grve-offcanvas-icon-wrapper.grve-fixed",smallBtn:!1,hasScroll:!1,init:function(){var t=this;e(t.btn).length&&a.on("mousemove",function(i){var a=e(this).width()-e(this).width()/3;r.hasClass("grve-offcanvas-open")||(i.pageX>a&&t.smallBtn&&t.hasScroll?(e(t.btn).removeClass("grve-small"),t.smallBtn=!1):i.pageX<=a&&!t.smallBtn&&t.hasScroll&&(e(t.btn).addClass("grve-small"),t.smallBtn=!0))})},onScroll:function(){if(e(this.btn).length){var t=a.scrollTop();t>100&&!this.hasScroll?(this.smallBtn=!0,this.hasScroll=!0,e(this.btn).addClass("grve-small")):t<=100&&this.hasScroll&&(this.smallBtn=!1,this.hasScroll=!1,e(this.btn).removeClass("grve-small"))}}},basics:{init:function(){this.pageIntro(),this.sectionSidebar(),this.alignFull(
1),this.changeOrder(),this.grveModal(),this.lightBox(),this.quickView(),this.socialShareLinks(),this.stickySidebar(),this.textInputEffect(),this.goToTop(),this.animatedBg(),this.fixedFooter(),this.splitTitle(),this.svgCustom()},pageIntro:function(){var t=e("#grve-intro");if(t.length){var i=impeka_grve_main_data.intro_reset_duration?impeka_grve_main_data.intro_reset_duration:"";if("once"==(impeka_grve_main_data.intro_appearance?impeka_grve_main_data.intro_appearance:"always")&&("0"!=i||""!=i)){var r=new Date,n=new Date(r.getTime()+24*i*60*60*1e3);document.cookie.indexOf("grve-intro")<0&&(document.cookie="grve-intro=true; SameSite=Lax; Path=/; Expires="+n.toGMTString()+";")}e("#grve-loader-overflow").length&&e("#grve-loader-overflow").addClass("grve-hide");var s=t.find(".grve-intro-graphic"),o=t.find(".grve-first-title"),l=t.find(".grve-second-title"),c=t.find(".grve-intro-content"),g=gsap.timeline({onComplete:function(){e("html").removeClass("grve-stop-scrolling"),a.trigger("grve_after_page_transition"),t.remove()}});if(e("html").addClass("grve-stop-scrolling"),s.length&&g.to(s,{duration:.8,force3D:!0,y:0,opacity:1,ease:"power1.out"}),o.length){d=o.text();o.data("text",d);var d=(d=d.trim()).split(" ");o[0].innerHTML="";for(var v=0;v<d.length;v++)o[0].innerHTML+='<span class="grve-word"><span>'+d[v]+"</span></span> ";var h=e.makeArray(o.find(".grve-word > span"));g.set(o,{visibility:"visible"}),g.to(h,{duration:.6,force3D:!0,y:0,ease:"power1.out",stagger:.1})}l.length&&(g.set({},{},"+=1"),s.length&&g.to(s,{duration:.8,force3D:!0,opacity:0,ease:"power1.out"}),o.length&&g.to(o,{duration:.8,force3D:!0,opacity:0,ease:"power1.out"},"<0.1"),g.to(l,{duration:1,force3D:!0,opacity:1,ease:"power1.out"})),g.to(c,{duration:.5,force3D:!0,y:"-220%",opacity:0,delay:1.5,ease:"power1.out"}),g.to(t,{duration:.7,force3D:!0,y:"-100%",ease:"power1.out"},"<0.3")}else GRVE.pageSettings.basics.bodyLoader()},bodyLoader:function(){var t=e("#grve-loader-overflow"),i=e(".grve-spinner");e("a");if(t.length){if(-1!=navigator.userAgent.indexOf("Safari")||-1!=navigator.userAgent.indexOf("Chrome")||navigator.userAgent.match(/(iPod|iPhone|iPad)/)?window.onpageshow=function(e){e.persisted&&(t.removeClass("grve-visible grve-hide"),window.location.reload())}:-1!=navigator.userAgent.indexOf("Firefox")&&(window.onunload=function(){}),t.hasClass("grve-page-transition")){var n=new RegExp(location.host);e("a:not("+[".grve-no-transition",".grve-toggle-modal"]+")").on("click",function(e){if(n.test(this.href)&&this.href.split(/\?|#/)[0]!=location.href.split(/\?|#/)[0]&&"_blank"!=this.target&&"#"!=this.href[0]&&-1==this.href.indexOf("#")&&-1==this.href.indexOf("webp")&&-1==this.href.indexOf("jpg")&&-1==this.href.indexOf("jpeg")&&-1==this.href.indexOf("png")&&-1==this.href.indexOf("gif")&&-1==this.href.indexOf("bmp")&&-1==this.href.indexOf("pdf")&&-1==this.href.indexOf("zip")&&-1==this.href.indexOf("add-to-cart=")){e.preventDefault();var i=this.href;t.addClass("grve-visible").removeClass("grve-hide"),r.addClass("grve-page-loading"),setTimeout(function(){window.location=i},600)}})}setTimeout(function(){t.hasClass("grve-page-transition")?(t.removeClass("grve-visible").addClass("grve-hide"),setTimeout(function(){a.trigger("grve_after_page_transition")},1200)):(i.fadeOut(500),t.delay(500).fadeOut(700,function(){a.trigger("grve_after_page_transition")}))},600)}else a.trigger("grve_after_page_transition")},sectionSidebar:function(){if(e("#grve-sidebar").length){var t=a.width(),i=e("#grve-theme-wrapper").width(),n=e(".grve-content-wrapper").width(),s=e("#grve-main-content").width(),o=(e("#grve-sidebar").outerWidth(),(i-n)/2),l=o+n-s;e("#grve-content .grve-section").each(function(){var i=e(this);i.hasClass("grve-fullwidth-background")&&function(i){t+k>=I?e(".grve-right-sidebar").length?i.css({visibility:"visible","padding-left":o,"padding-right":l,"margin-left":-o,"margin-right":-l}):i.css({visibility:"visible","padding-left":l,"padding-right":o,"margin-left":-l,"margin-right":-o}):i.css({visibility:"visible","padding-left":"","padding-right":"","margin-left":"","margin-right":""})}(i),i.hasClass("grve-fullwidth")&&function(i){r.hasClass("rtl")?t+k>=I?e(".grve-right-sidebar").length?i.css({visibility:"visible","padding-right":0,"padding-left":l,"margin-right":-o,"margin-left":-l}):i.css({visibility:"visible","padding-right":l,"padding-left":0,"margin-right":-l,"margin-left":-o}):i.css({visibility:"visible","padding-right":"","padding-left":"","margin-right":-o,"margin-left":-o}):t+k>=I?e(".grve-right-sidebar").length?i.css({visibility:"visible","padding-left":0,"padding-right":l,"margin-left":-o,"margin-right":-l}):i.css({visibility:"visible","padding-left":l,"padding-right":0,"margin-left":-l,"margin-right":-o}):i.css({visibility:"visible","padding-left":"","padding-right":"","margin-left":-o,"margin-right":-o})}(i)})}},alignFull:function(){var t=e(".alignfull"),i=a.width(),r=e("#grve-content"),n=r.find(".grve-content-wrapper").width(),s=((i-n)/2).toFixed();r.hasClass("grve-with-sidebar")&&t.each(function(){var t=e(this);i+k>=I?r.hasClass("grve-left-sidebar")?t.css({"margin-left":0,"margin-right":-s,"max-width":"none"}):t.css({"margin-left":-s,"margin-right":0,"max-width":"none"}):t.css({"margin-left":-s,"margin-right":-s,"max-width":"none"})})},changeOrder:function(){e(".grve-change-order").parent().each(function(){var t=e(this).children(),i=t.length,a=e.makeArray(t.not(".grve-change-order")),r=e.makeArray(t.not(".grve-change-order")),n=e.makeArray(t.not(".grve-change-order"));t.each(function(t,s){var o=e(s);if(o.hasClass("grve-change-order")){var l=void 0!==o.data("tablet-order")&&o.data("tablet-order")<=i?o.data("tablet-order")-1:o.index(),c=void 0!==o.data("tablet-sm-order")&&o.data("tablet-sm-order")<=i?o.data("tablet-sm-order")-1:o.index(),g=void 0!==o.data("mobile-order")&&o.data("mobile-order")<=i?o.data("mobile-order")-1:o.index();a.splice(l,0,s),r.splice(c,0,s),n.splice(g,0,s)}}),e.each(a,function(t,i){t<=6?e(this).addClass("grve-tablet-order-"+(t+1)):e(this).addClass("grve-tablet-order-7")}),e.each(r,function(t,i){t<=6?e(this).addClass("grve-tablet-sm-order-"+(t+1)):e(this).addClass("grve-tablet-sm-order-7")}),e.each(n,function(t,i){t<=6?e(this).addClass("grve-mobile-order-"+(t+1)):e(this).addClass("grve-mobile-order-7")})})},grveModal:function(){var t=e("#grve-sliding-area"),n=e(".grve-toggle-modal"),s=t.find(".grve-close-btn"),o=gsap.timeline({paused:!0}),c=(t.data("modal-header-skin"),l.data("header-skin"),!1);t.length&&(o.set(t,{display:"flex"}),o.to(t,{duration:.3,opacity:1,x:0,y:0,ease:"power1.out",onComplete:function(){if(a.off("scroll.grve_window_scroll"),e(".grve-sliding-item.grve-active").is("#grve-search-modal")){var t=e("#grve-search-modal").find(".grve-search-textfield");t.on("focus",function(){e(this).parent().addClass("grve-input-filled")}),t.on("blur",function(){""===this.value.trim()&&e(this).parent().removeClass("grve-input-filled")})}},onReverseComplete:function(){if(a.on("scroll.grve_window_scroll",function(){GRVE.onScroll()}),e(".grve-sliding-item.grve-active").is("#grve-search-modal")){var t=e("#grve-search-modal").find(".grve-search-textfield");t.val(""),t.parent().removeClass("grve-input-filled")}e(".grve-sliding-item").removeClass("grve-active"),r.removeClass("grve-modal-open"),c=!1}})),n.on("click",function(t){if(t.preventDefault(),!c){c=!0;var i=e(this).attr("href");e(i).addClass("grve-active"),e("html").addClass("grve-stop-scrolling"),r.addClass("grve-modal-open"),o.play()}}),i.on("keyup",function(t){c&&27==t.keyCode&&(o.reverse(),e("html").removeClass("grve-stop-scrolling"))}),s.on("click",function(t){t.preventDefault(),c&&(o.reverse(),e("html").removeClass("grve-stop-scrolling"))})},lightBox:function(){function t(){a.trigger("grve_modal_open")}function n(){e("html").removeClass("grve-stop-scrolling"),r.removeClass("grve-modal-open"),e("#grve-modal-area").css("display","none"),e("#grve-modal-area .grve-modal-element.grve-active").css("display","none").removeClass("grve-active"),a.trigger("grve_modal_close")}var s=[],o=[];i.find('a[href^="#"]:not( [href="#"] )').each(function(){var t=e(e(this).attr("href")),i=e(this);t.length&&t.hasClass("grve-modal-element")&&(s.push(this),i.hasClass("grve-modal-trigger")&&o.push(this))}),e.each(s,function(){e(this).on("click",function(i){i.preventDefault();var n=e(e(this).attr("href")),s=e("#grve-modal-area"),o=s.find(".grve-modal-overlay"),l=s.find(".grve-close-button-wrapper"),c=gsap.timeline();!function(t,i){e("html").addClass("grve-stop-scrolling"),r.addClass("grve-modal-open"),t.css("display","block"),i.css("display","block").addClass("grve-active"),i.find(".grve-isotope").length&&GRVE.pageSettings.isotope.relayout(),a.trigger("resize")}(s,n),c.fromTo(o,{opacity:0}
1,{opacity:1,duration:.6,ease:"power3.out",onComplete:t},"<"),c.fromTo(n,{opacity:0,y:60},{opacity:1,y:0,duration:.6,ease:"power3.out"},"<0.3"),c.fromTo(l,{opacity:0,scale:0},{opacity:1,scale:1,duration:.6,ease:"power3.out"})})}),e.each(o,function(){var t=e(this),i=e(e(this).attr("href")),a=i.attr("data-trigger-delay")?i.attr("data-trigger-delay"):"",r=i.attr("data-reset")?parseInt(i.attr("data-reset")):1,n=i.attr("id"),s=new Date,o=new Date(s.getTime()+24*r*60*60*1e3),l="grve-modal-"+n.trim();0!=r?document.cookie.indexOf(l)<0&&window.setTimeout(function(){document.cookie=l+"=true; SameSite=Lax; Path=/; Expires="+o.toGMTString()+";",t.trigger("click")},a):window.setTimeout(function(){t.trigger("click")},a)}),i.on("click","#grve-modal-area .grve-close-btn",function(t){t.preventDefault();var i=e("#grve-modal-area"),a=gsap.timeline();i.find(e('iframe[src*="youtube"]')).each(function(){e(this).attr("src",e(this).attr("src"))});i.find(e("video")).each(function(){e(this)[0].pause()}),a.to("#grve-modal-area .grve-modal-element.grve-active",{duration:.5,opacity:0,ease:"power1.out"}),a.to("#grve-modal-area .grve-close-button-wrapper",{duration:.5,opacity:0,ease:"power1.out"},"<.3"),a.to("#grve-modal-area .grve-modal-overlay",{duration:.5,opacity:0,ease:"power1.out",onComplete:n})}),i.on("keyup",function(t){e("#grve-modal-area").length&&27==t.keyCode&&r.hasClass("grve-modal-open")&&e("#grve-modal-area .grve-close-btn").trigger("click")})},lightGallery:function(){e(".grve-woo-light-gallery-popup").lightGallery({selector:"a",getCaptionFromTitleOrAlt:!1,thumbnail:!1,hash:!1}),e(".grve-gallery-popup").lightGallery({selector:".grve-item-url",getCaptionFromTitleOrAlt:!1,thumbnail:!1,hash:!1}),e(".grve-multi-popup").lightGallery({selector:".grve-multi-url",getCaptionFromTitleOrAlt:!1,thumbnail:!1,hash:!1}),e(".grve-light-gallery").lightGallery({selector:".grve-item-url",getCaptionFromTitleOrAlt:!1,thumbnail:!1,hash:!1}),e(".grve-image-popup").lightGallery({selector:"this"}),e(".grve-body").hasClass("grve-privacy-video-embeds-disabled")?e(".grve-video-popup").each(function(){e(this).attr({target:"_blank"})}):e(".grve-video-popup").lightGallery({selector:"this"}),1==impeka_grve_main_data.wp_gallery_popup&&(e(".gallery").lightGallery({selector:".gallery-item a",getCaptionFromTitleOrAlt:!1,thumbnail:!1,hash:!1}),e(".blocks-gallery-grid").lightGallery({selector:".blocks-gallery-item a",getCaptionFromTitleOrAlt:!1,thumbnail:!1,hash:!1})),e(".grve-post-gallery-popup").lightGallery({selector:"a",getCaptionFromTitleOrAlt:!1,thumbnail:!1,hash:!1})},quickView:function(){e(".grve-quick-view-link").on("click",function(t){t.preventDefault();var i={action:"impeka_grve_quick_view_callback",grve_view_id:e(this).data("post-id"),_grve_nonce:impeka_grve_main_data.nonce_quick_view};return e("body").append('<div id="grve-quick-view-wrapper"></div>'),gsap.to(e("#grve-quick-view-wrapper"),{x:0,duration:.6,ease:"power3.out"}),gsap.to(e("#grve-theme-content"),{x:-300,duration:.6,ease:"power3.out"}),e.post(impeka_grve_main_data.ajaxurl,i,function(t){if("-1"!=t){e("#grve-quick-view-wrapper").append(t);var i=e(".grve-quick-view-modal"),a=i.find(".grve-quick-view-description"),r=i.find(".grve-mask"),n=i.find(".grve-close-btn"),s=gsap.timeline();s.fromTo(r,{opacity:1},{opacity:0,duration:.9,ease:"power3.out"}),s.from(a.children(),{y:60,opacity:0,duration:.6,ease:"power3.out",stagger:.3}),n.on("click",function(t){t.preventDefault(),gsap.set(e("#grve-theme-content"),{x:0}),gsap.to(e("#grve-quick-view-wrapper"),{opacity:0,duration:.6,ease:"power3.out",onComplete:o})});function o(){e("#grve-quick-view-wrapper").remove()}}}).fail(function(e,t,i){}),!1})},socialShareLinks:function(){e(".grve-social-share-facebook").on("click",function(t){return t.preventDefault(),window.open("https://www.facebook.com/sharer/sharer.php?u="+e(this).attr("href"),"facebookWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),e(".grve-social-share-twitter").on("click",function(t){return t.preventDefault(),window.open("http://twitter.com/intent/tweet?text="+encodeURIComponent(e(this).attr("title"))+" "+e(this).attr("href"),"twitterWindow","height=450,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),e(".grve-social-share-linkedin").on("click",function(t){return t.preventDefault(),window.open("http://www.linkedin.com/shareArticle?mini=true&url="+e(this).attr("href")+"&title="+encodeURIComponent(e(this).attr("title")),"linkedinWindow","height=500,width=820,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),e(".grve-social-share-googleplus").on("click",function(t){return t.preventDefault(),window.open("https://plus.google.com/share?url="+e(this).attr("href"),"googleplusWindow","height=600,width=600,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),e(".grve-social-share-pinterest").on("click",function(t){return t.preventDefault(),window.open("http://pinterest.com/pin/create/button/?url="+e(this).attr("href")+"&media="+e(this).data("pin-img")+"&description="+encodeURIComponent(e(this).attr("title")),"pinterestWindow","height=600,width=600,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),e(".grve-social-share-reddit").on("click",function(t){return t.preventDefault(),window.open("//www.reddit.com/submit?url="+e(this).attr("href"),"redditWindow","height=600,width=820,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=1"),!1}),e(".grve-social-share-tumblr").on("click",function(t){return t.preventDefault(),window.open("//www.tumblr.com/share/link?url="+e(this).attr("href")+"&name="+encodeURIComponent(e(this).attr("title")),"tumblrWindow","height=600,width=600,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0"),!1}),e(".grve-like-counter-link").on("click",function(t){t.preventDefault();var i=e(this),a=i.data("post-id"),r=i.parent().find(".grve-like-counter"),n=i.find("i"),s={action:"impeka_grve_likes_callback",grve_likes_id:a,_grve_nonce:impeka_grve_main_data.nonce_likes};return e.post(impeka_grve_main_data.ajaxurl,s,function(e){"-1"!=e&&("active"==e.status?(i.addClass("active"),n.addClass("grve-heading-color")):(i.removeClass("active"),n.removeClass("grve-heading-color")),r.html(e.likes))}).fail(function(e,t,i){}),!1})},animatedBg:function(){m.each(function(){var t=e(this);
1t.hasClass("grve-bg-animated")?function(e){e.mouseenter(function(){e.addClass("zoom")}),e.mouseleave(function(){e.removeClass("zoom")})}(t):t.hasClass("grve-bg-horizontal")&&function(e){var t=0;setInterval(function(){t++,e.find(".grve-bg-image").css({"background-position":t+"px center","background-repeat":"repeat"})},75)}(t)})},stickySidebar:function(){function e(e,t){e.stick_in_parent({parent:"#grve-content",sticky_class:"grve-sidebar-fixed",offset_top:t})}if(f.length&&f.hasClass("grve-fixed-sidebar"))e(f,0);else if(f.length&&b.length){b.nextAll().addBack().wrapAll('<div class="grve-sticky-widget-wrapper"></div>');e(b.parent(),60)}},textInputEffect:function(){var t=e("#grve-comment-form").find(".grve-form-input-item");t.each(function(){""!==this.value.trim()&&e(this).parent().addClass("grve-input-filled")}),t.on("focus",function(){e(this).parent().addClass("grve-input-filled")}),t.on("blur",function(){""===this.value.trim()&&e(this).parent().removeClass("grve-input-filled")})},goToTop:function(){e.each({topBtn:".grve-back-top",dividerBtn:".grve-divider-backtotop",topLink:'a[href="#grve-goto-header"]'},function(t,i){e(i).on("click",function(t){t.preventDefault();var i=Math.abs(a.scrollTop())/2,r=i<1e3?1e3:i;void 0!=e(this).data("speed")&&"height-based"!=e(this).data("speed")&&(r=e(this).data("speed")),e("html, body").animate({scrollTop:0},r,"easeInOutCubic"),e("html, body").on("scroll mousedown DOMMouseScroll mousewheel keyup",function(){e("html, body").stop()})})}),V.length&&(a.on("grve_safebutton_open",function(){V.hide()}),a.on("grve_safebutton_close",function(){V.show()}))},backToTop:function(){if(V.length){a.scrollTop()>600?V.addClass("show"):V.removeClass("show")}},fixedFooter:function(){function t(){var e=a.width(),t=a.height(),r=i.outerHeight(),n=r+s;e+k<=G||r>t?i.removeClass("grve-fixed-footer").prev().css("margin-bottom",""):i.addClass("grve-fixed-footer").prev().css("margin-bottom",n)}var i=e("#grve-footer"),r=i.data("sticky-footer"),n=i.prev(),s=parseInt(n.css("margin-bottom"));!i.length||"yes"!=r||GRVE.helpers.isMobile.any()||e("body").hasClass("elementor-editor-active")||(e(window).on("scroll",function(){t()}),e(window).on("resize",function(){t()}),t())},splitTitle:function(){e(".grve-split-title").each(function(){var t=e(this);GRVE.helpers.splitText(t,"text",0)})},svgAnimation:function(){e(".grve-animated-svg-icon").each(function(){var t,i=e(this),a=i.data("duration"),r=i.attr("id"),n=i.data("file"),s=0;i.parents(".grve-element").hasClass("grve-animated-item")&&(s=i.parents(".grve-element").data("delay")),i.appear(function(){setTimeout(function(){t=new Vivus(r,{duration:a,file:n,type:"async",start:"inViewport"})},s)},{accX:0,accY:0})})},svgCustom:function(){e(".grve-custom-svg-icon").each(function(){var t=e(this),i=t.attr("id"),a=t.data("file");new Vivus(i,{duration:1,file:a,type:"async",start:"autostart"})})}},sectionColor:{init:function(){e("#grve-content").hasClass("grve-skin-effect")||(this.sections=this.getSections(),this.items=this.getItems(),this.onResize(),this.onScroll())},onResize:function(){e("#grve-content").hasClass("grve-skin-effect")||(this.prop=this.getSectionProp(),this.itemsProp=this.getItemsProp())},onScroll:function(){var t=this;if(!e("#grve-content").hasClass("grve-skin-effect")){var i=a.scrollTop();if(A)return;e.each(t.items,function(a,r){var n=e(t.items[a].item),s=(t.itemsProp[a].bottom,t.itemsProp[a].middle),o=t.items[a].initColor;e.each(t.sections,function(a,r){e(t.sections[a].section);var l=t.prop[a].top,c=t.prop[a].bottom,g=t.sections[a].color;i<t.prop[0].top-s?n.hasClass("grve-skin-"+o)||t.changeSkin(n,o):i>=l-s&&i<=c-s?n.hasClass("grve-skin-"+g)||t.changeSkin(n,g):i>t.prop[t.lastIndex].bottom-s&&(n.hasClass("grve-skin-"+t.footerColor)||t.changeSkin(n,t.footerColor))})})}},changeSkin:function(e,t){e.removeClass("grve-skin-default grve-skin-dark grve-skin-light").addClass("grve-skin-"+t)},getSections:function(){var t=e("#grve-content [data-header-color]:visible"),i=e("#grve-footer:not(.grve-fixed-footer) [data-header-color]:visible"),a=[];if(t.length)t.each(function(){var t=e(this),i=void 0!==t.data("header-color")?t.data("header-color"):"default";a.push({section:t[0],color:i})});else if(e("#grve-content").length){e("#grve-content");a.push({section:"#grve-content",color:"default"})}
1e.each([".grve-navigation-bar","#grve-about-author-section","#grve-comments-section","#grve-related-section"],function(){var t=e(this);if(t.length){var i=void 0!==t.data("header-color")?t.data("header-color"):"default";a.push({section:t[0],color:i})}}),i.each(function(){var t=e(this),i=void 0!==t.data("header-color")?t.data("header-color"):"default";a.push({section:t[0],color:i})}),this.lastIndex=a.length-1;var r=e("#grve-footer.grve-fixed-footer");if(r.length){var n=r.find("[data-header-color]:visible")[0];this.footerColor=e(n).length?e(n).data("header-color"):"default"}return a},getItems:function(){var t=[];return e(".grve-skin-scroll").each(function(){var i=e(this),a=i.data("skin");t.push({item:i[0],initColor:a})}),t},getSectionProp:function(){var t=[];return e.each(this.sections,function(i,a){var r=e(a.section),n=parseInt(r.outerHeight()),s=parseInt(r.offset().top),o=s+n;t.push({height:n,top:s,bottom:o})}),t},getItemsProp:function(){var t=[];return e.each(this.items,function(i,a){var r=e(a.item),n=parseInt(r.outerHeight()),s=parseInt(a.item.getBoundingClientRect().top),o=s+n/2,l=s+n;t.push({height:n,top:s,bottom:l,middle:o})}),t}},skinScrollEffect:{init:function(){if(!r.hasClass("elementor-page")&&e("#grve-content").hasClass("grve-skin-effect")){if(e('<div id="grve-helper-bg-wrapper"></div>').appendTo(e("#grve-theme-content")),this.current=0,this.sections=this.getSections(),!this.sections.length)return;this.addHelpers(),this.changeSkin(0),this.onResize(),this.onScroll(),this.timeout}},onResize:function(){!r.hasClass("elementor-page")&&e("#grve-content").hasClass("grve-skin-effect")&&(this.prop=this.getSectionProp())},onScroll:function(){var t=this;if(!r.hasClass("elementor-page")&&e("#grve-content").hasClass("grve-skin-effect")){var i=a.scrollTop(),n=a.height()-a.height()/3;e.each(t.sections,function(a,r){e(t.sections[a].section);var s=t.prop[a].top,o=t.prop[a].bottom;i>=s-n&&i<=o-n&&a!=t.current&&(t.current=a,t.setActiveHelper(a),t.changeSkin(a))})}},setActiveHelper:function(t){e("#grve-helper-bg-wrapper").find(".active").removeClass("active").addClass("previous").siblings().removeClass("previous"),e(".grve-helper-bg").eq(t).addClass("active"),window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){e("#grve-helper-bg-wrapper").find(".previous, .show").removeClass("previous, show")},1e3)},changeSkin:function(t){var i=this,a=i.sections[t].headerSkin,r=i.sections[t].textColor,n=i.sections[t].headingColor,s=i.sections[t].linkColor,o=i.sections[t].linkHoverColor;e(".grve-skin-scroll").removeClass("grve-skin-default grve-skin-dark grve-skin-light").addClass("grve-skin-"+a),e.each(i.sections,function(t,a){var l=a.section;e(l);l.style.cssText=r,l.classList.remove(i.getElClass(l,"grve-headings"),i.getElClass(l,"grve-link"),i.getElClass(l,"grve-link-hover")),l.classList.add(n,s,o)}),"main-header"==e("#grve-main-header").data("sticky-mode")&&GRVE.headerSettings.mainHeader.changeSkin(a)},getSections:function(){var t=this,i=[];return e("#grve-theme-content .grve-section:visible").each(function(){var a=e(this),r=void 0!==a.data("header-color")?a.data("header-color"):"default",n=t.getElClass(this,"grve-headings"),s=t.getElClass(this,"grve-link"),o=t.getElClass(this,"grve-link-hover"),l=t.getBgColors(this),c=t.getTextColor(this),g=parseInt(a.outerHeight()),d=parseInt(a.offset().top),v=d+g;i.push({section:a[0],headerSkin:r,headingColor:n,linkColor:s,linkHoverColor:o,bgColor:l,textColor:c,height:g,top:d,bottom:v})}),i},getSectionProp:function(){var t=[];return e.each(this.sections,function(i,a){var r=e(a.section),n=parseInt(r.outerHeight()),s=parseInt(r.offset().top),o=s+n;t.push({height:n,top:s,bottom:o})}),t},getElClass:function(e,t){var i=new RegExp(t+"-[^\\s]+\\b","g");return null!=e.className.match(i)?e.className.match(i)[0]:t+"-default"},getBgColors:function(e){return""!=e.style.backgroundImage?"background-image:"+e.style.backgroundImage:""!=e.style.backgroundColor?"background-color:"+e.style.backgroundColor:"background-color: inherit"},getTextColor:function(e){return""!=e.style.color?"color:"+e.style.color:"color: inherit"},addHelpers:function(){var t=e("#grve-helper-bg-wrapper");e.each(this.sections,function(i,a){var r=a.section,n=e(r),s=e('<div class="grve-helper-bg" style="'+a.bgColor+';"></div>');if(t.append(s),r.style.backgroundColor="",r.style.backgroundImage="",r.style.color="",r.classList.remove([a.headingColor],[a.linkColor],[a.linkHoverColor]),0===i&&s.addClass("show"),n.children(".grve-background-wrapper").length){var o=n.children(".grve-background-wrapper");
1n.addClass("grve-remove-bg-image"),o.clone().appendTo(s)}})}},skinScrollEffectElementor:{init:function(){if(r.hasClass("elementor-page")&&!e("body").hasClass("elementor-editor-active")&&e("#grve-content").hasClass("grve-skin-effect")){if(e('<div id="grve-helper-bg-wrapper"></div>').appendTo(e("#grve-theme-content")),this.current=0,this.sections=this.getSections(),!this.sections.length)return;this.addHelpers(),this.changeSkin(0),this.onResize(),this.onScroll(),this.timeout}},onResize:function(){r.hasClass("elementor-page")&&!e("body").hasClass("elementor-editor-active")&&e("#grve-content").hasClass("grve-skin-effect")&&(this.prop=this.getSectionProp())},onScroll:function(){var t=this;if(r.hasClass("elementor-page")&&!e("body").hasClass("elementor-editor-active")&&e("#grve-content").hasClass("grve-skin-effect")){var i=a.scrollTop(),n=a.height()-a.height()/3;e.each(t.sections,function(a,r){e(t.sections[a].section);var s=t.prop[a].top,o=t.prop[a].bottom;i>=s-n&&i<=o-n&&a!=t.current&&(t.current=a,t.setActiveHelper(a),t.changeSkin(a))})}},setActiveHelper:function(t){e("#grve-helper-bg-wrapper").find(".active").removeClass("active").addClass("previous").siblings().removeClass("previous"),e(".grve-helper-bg").eq(t).addClass("active"),window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){e("#grve-helper-bg-wrapper").find(".previous, .show").removeClass("previous, show")},1e3)},changeSkin:function(t){var i=this.sections[t].headerSkin,a=this.sections[t].textColor,r=this.sections[t].headingColor;this.sections[t].linkColor,this.sections[t].linkHoverColor;e(".grve-skin-scroll").removeClass("grve-skin-default grve-skin-dark grve-skin-light").addClass("grve-skin-"+i),e.each(this.sections,function(t,i){var n=i.section,s=e(n),o=s.find(".elementor-widget-text-editor"),l=s.find("h1,h2,h2,h3,h4,h5,h6");s.css("color",a),e.each(l,function(){var t=e(this);t.hasClass("grve-disable-color-change")||t.parents(".grve-disable-color-change").length||t.css("color",r)}),e.each(o,function(){var t=e(this);t.hasClass("grve-disable-color-change")||t.parents(".grve-disable-color-change").length||t.css("color",a)})}),"main-header"==e("#grve-main-header").data("sticky-mode")&&GRVE.headerSettings.mainHeader.changeSkin(i)},getSections:function(){var t=this,i=[];return e(e("#grve-theme-content .elementor-section-wrap > .elementor-section:visible").length?"#grve-theme-content .elementor-section-wrap > .elementor-section:visible":"#grve-theme-content .elementor > .elementor-section:visible").each(function(){var a=e(this),r=void 0!==a.data("header-color")?a.data("header-color"):"default",n=t.getHeadingColor(this),s=a.data("settings"),o=void 0!==s?s.background_background:"",l=t.getTextColor(this),c=parseInt(a.outerHeight()),g=parseInt(a.offset().top),d=g+c;i.push({section:a[0],headerSkin:r,headingColor:n,linkColor:"",linkHoverColor:"",textColor:l,height:c,top:g,bottom:d,bgType:o})}),i},getSectionProp:function(){var t=[];return e.each(this.sections,function(i,a){var r=e(a.section),n=parseInt(r.outerHeight()),s=parseInt(r.offset().top),o=s+n;t.push({height:n,top:s,bottom:o})}),t},getHeadingColor:function(t){var i=e(t);return void 0!==i.data("heading-color")?i.data("heading-color"):"#000000"},getTextColor:function(t){var i=e(t);return void 0!==i.data("text-color")?i.data("text-color"):"inherit"},addHelpers:function(){var t=e("#grve-helper-bg-wrapper");e.each(this.sections,function(i,a){var r=a.section,n=e(r),s=a.bgType,o=n.children(".elementor-background-overlay"),l="",c="",g="";if("classic"==s){if(g=n.css("background-image").replace(/^url\(['"]?/,"").replace(/['"]?\)$/,""),c=""!=n.css("background-color")?n.css("background-color"):"transparent",l=e('<div class="grve-helper-bg" style="background-color: '+c+';"></div>'),t.append(l),"none"!==g){e('<div class="grve-background-wrapper">
1<div class="grve-bg-image grve-bg-center-center" style="background-image: url('+g+');"></div></div>').appendTo(l)}}else"gradient"==s?(c=""!=n.css("background-image")?n.css("background-image"):"none",l=e('<div class="grve-helper-bg" style="background-image: '+c+';"></div>'),t.append(l)):(l=e('<div class="grve-helper-bg" style="background-color: '+(c="#ffffff")+';"></div>'),t.append(l));if(o.length){var d=o.css("background"),v=o.css("opacity");o.clone().css({background:d,opacity:v}).appendTo(l),o.remove()}n.css({background:"none"}),0===i&&l.addClass("show")})}},onePage:{init:function(){e('a[href*="#"]:not( [href="#"] )').on("click",function(t){var i=e(this.hash),a=this.hash;if(i.length&&(i.hasClass("grve-section")||i.hasClass("grve-inner-section")||i.hasClass("grve-bookmark"))&&(GRVE.helpers.smoothScrollTo(i),setTimeout(function(){e("body").hasClass("grve-responsivemenu-open")&&e(".grve-toggle-responsive-menu").trigger("click"),e("body").hasClass("grve-offcanvas-open")&&e(".grve-toggle-offcanvas").trigger("click")},1e3)),i.length&&(i.hasClass("grve-tab-content")||i.hasClass("grve-accordion-content"))){var n=e('.grve-tab-link[data-rel="'+a+'"]:visible');return n.length&&(n.click(),setTimeout(function(){GRVE.helpers.linkGoToTop(n)},500)),!1}r.hasClass("elementor-page")&&i.length&&(i.hasClass("elementor-section")||i.hasClass("elementor-element"))&&setTimeout(function(){e("body").hasClass("grve-responsivemenu-open")&&e(".grve-toggle-responsive-menu").trigger("click"),e("body").hasClass("grve-offcanvas-open")&&e(".grve-toggle-offcanvas").trigger("click")},1e3)})},onePageMenu:function(){var t=e("#grve-main-content .grve-section[id]");if(t.length){var i=!!l.hasClass("grve-header-side"),r=("none"==o.attr("data-sticky-header")||i?0:l.outerHeight())+(e(".grve-anchor-menu").length?e(".grve-anchor-menu").outerHeight():0)+M,n=a.scrollTop();t.each(function(){var t=e(this),i=t.attr("id"),a=t.offset().top-r;a<=n&&a+t.outerHeight()>n?e('a[href*="#'+i+'"]').parent().addClass("active"):e('a[href*="#'+i+'"]').parent().removeClass("active")})}}},sectionNav:{init:function(){if(e("#grve-content").hasClass("grve-section-nav")&&e("[data-anchor-tooltip]").length>0){var t=this;t.activeIndex=0,t.currentIndex=1,t.sections=t.getSections(),t.onResize(),e('<div id="grve-section-nav" class="grve-link-text"><div class="grve-section-nav-inner"><div class="grve-section-slider"></div></div><div class="grve-line grve-skin-scroll"><div class="grve-line-inner"></div></div></div>').appendTo(n),e.each(t.sections,function(i,a){var r=t.sections[i].title,n=t.sections[i].target;e('<a href="'+n+'"><span class="grve-skin-scroll" data-skin="default">'+r+"</span></a>").appendTo(e("#grve-section-nav .grve-section-slider"))}),i.on("click","#grve-section-nav a",function(t){t.preventDefault();var i=e(this),a=i.attr("href"),n=e(r.hasClass("elementor-page")?"[data-id="+a+"]":"[data-anchor="+a+"]");n.length&&GRVE.helpers.smoothScrollTo(n),i.addClass("active").siblings().removeClass("active")}),i.on("click","#grve-section-nav .grve-line",function(){var i=t.activeIndex+1<t.sections.length?t.activeIndex+1:0,a=e(t.sections[i].section);a.length&&GRVE.helpers.smoothScrollTo(a,function(){0===i&&e("#grve-section-nav a").removeClass("grve-hide")})}),t.itemProp=t.getNavItemsProp(),e("#grve-section-nav .grve-section-slider").children().length>1&&(t.moveTo(1),t.setActiveItem(0)),t.onScroll(),a.on("grve_safebutton_open",function(){e("#grve-section-nav a").removeClass("grve-hide"),t.moveTo(1),t.setActiveItem(0)})}},moveTo:function(t){var i=this,a=e("#grve-section-nav").find(".grve-section-slider"),r=i.itemProp[t].bottom;if(A=!0,t>=1){if(t>i.currentIndex)for(var n=t-3;n>=0;n--)e(a.children()[n]).addClass("grve-hide");else e(a.children()[t-2]).removeClass("grve-hide");e(a.children()[t-3]).addClass("grve-hide"),gsap.to(a,{y:-r,duration:.6,ease:"expo.out",onComplete:function(){A=!1,i.currentIndex=t,GRVE.pageSettings.sectionColor.onResize(),GRVE.pageSettings.sectionColor.onScroll()}})}},onResize:function(){if(e("#grve-content").hasClass("grve-section-nav")&&e("[data-anchor-tooltip]").length>0){this.prop=this.getSectionProp(),this.itemProp=this.getNavItemsPro
1p()}},onScroll:function(){if(e("#grve-content").hasClass("grve-section-nav")&&e("[data-anchor-tooltip]").length>0){var t=this,i=a.scrollTop();e.each(t.sections,function(r,n){e(t.sections[r].section);var s=t.prop[r].top,o=t.prop[r].bottom;i>=s-a.height()+60&&i<=o-a.height()+60&&t.activeIndex!==r&&(t.activeIndex=r,t.moveTo(r),t.setActiveItem(r),t.updateLine(r))})}},updateLine:function(t){var i=e("#grve-section-nav .grve-line");t>=this.sections.length-1?i.addClass("grve-go-to-first"):i.removeClass("grve-go-to-first")},setActiveItem:function(t){var i=e("#grve-section-nav .grve-section-slider").children()[t];e(i).addClass("active").siblings().removeClass("active")},getSections:function(){var t=[];return e("[data-anchor-tooltip]").each(function(){var i=e(this),a=void 0!==i.data("header-color")?i.data("header-color"):"default",n=i.data("anchor-tooltip"),s=r.hasClass("elementor-page")?i.data("id"):i.data("anchor");t.push({section:i[0],title:n,target:s,color:a})}),t},getSectionProp:function(){var t=[];return e.each(this.sections,function(i,a){var r=e(a.section),n=parseInt(r.outerHeight()),s=parseInt(r.offset().top),o=s+n;t.push({height:n,top:s,bottom:o})}),t},getNavItemsProp:function(){var t=e("#grve-section-nav .grve-section-slider").children(),i=[];return e.each(t,function(){var t=e(this),a=t.outerHeight(),r=t.position().top+a;i.push({bottom:r})}),i}},floatingNavBar:{selector:".grve-navigation-bar.grve-layout-2",init:function(){var t=e(this.selector);if(this.show=!1,t.length){var i=this.getItems(t);this.timeline=gsap.timeline({paused:!0}),this.timeline.set(t,{visibility:"visible"}),this.timeline.from(i,{duration:.3,opacity:0,y:30,stagger:.1}),this.updateParams(t)}},updateParams:function(t){var i=e("#grve-theme-content .grve-single-wrapper").offset().top,r=i+e("#grve-theme-content .grve-single-wrapper").outerHeight()-a.height(),n=t.find(".grve-nav-item");this.params={start:i,end:r},a.width()+k>I?(n.on("mousemove.grve_navbar_mousemove",function(t){var i=e(this).find(".grve-media .grve-inner");if(i.length){var a=this.getBoundingClientRect().left,r=this.getBoundingClientRect().top,n=t.clientX,s=t.clientY-r,o=n-a-this.offsetWidth/2,l=s-this.offsetHeight/2;gsap.to(i,{x:o,y:l,scale:1,opacity:1,duration:.6,ease:"power3.out"})}}),n.on("mouseleave.grve_navbar_mouseleave",function(t){var i=e(this).find(".grve-media .grve-inner");i.length&&gsap.to(i,{x:0,y:0,scale:.9,opacity:0,duration:.6,ease:"power3.out"})}),this.canScroll=!0,this.toggleNav(!1)):(n.off("mousemove.grve_navbar_mousemove mouseleave.grve_navbar_mouseleave"),this.canScroll=!1,this.toggleNav(!0)),this.resizing=!1},toggleNav:function(e){e?(this.scrolling=!0,this.timeline.play()):(this.scrolling=!1,this.timeline.reverse())},getItems:function(t){var i=e.makeArray(t.find(".grve-nav-item")),a=t.find(".grve-backlink");return a.length&&i.push(a[0]),i},onScroll:function(){var t=e(this.selector),i=a.scrollTop();t.length&&this.canScroll&&(i>=this.params.start&&i<=this.params.end&&!this.scrolling?this.toggleNav(!0):(i<this.params.start||i>this.params.end)&&this.scrolling&&this.toggleNav(!1))},onResize:function(){var t=e(this.selector);t.length&&!this.resizing&&(this.resizing=!0,this.updateParams(t))}},minimalNavBar:{selector:".grve-navigation-bar.grve-layout-3",init:function(){var t=e(this.selector);t.length&&this.updateParams(t)},updateParams:function(t){var i=t.find(".grve-nav-item");a.width()+k>I?(i.on("mousemove.grve_navbar_mousemove",function(){var t=e(this).data("item");e(this).parent().removeClass("grve-hover-item-next grve-hover-item-prev"),e(this).parent().addClass("grve-hover grve-hover-item-"+t)}),i.on("mousemove.grve_navbar_mousemove",function(t){var i=e(this).find(".grve-media .grve-inner");if(i.length){var a=this.getBoundingClientRect().left,r=this.getBoundingClientRect().top,n=t.clientX,s=t.clientY-r,o=n-a-this.offsetWidth/2,l=s-this.offsetHeight/2;gsap.to(i,{x:o,y:l,scale:1,opacity:1,duration:.6,ease:"power3.out"})}}),i.on("mouseleave.grve_navbar_mouseleave",function(t){var i=e(this).find(".grve-media .grve-inner");i.length&&gsap.to(i,{x:0,y:0,scale:.9,opacity:0,duration:.6,ease:"power3.out"}),e(this).parent().removeClass("grve-hover")})):i.off("mousemove.grve_navbar_mousemove mouseleave.grve_navbar_mouseleave"),this.resizing=!1},onResize:function(){var t=e(this.selector);t.length&&!this.resizing&&(this.resizing=!0,this.updateParams(t))}},smallBlog:{init:function(){e(".grve-post-item.grve-small-style-2").length&&this.updateParams()},updateParams:function(){var t=e(".grve-post-item.grve-small-style-2");a.width()+k>I?(i.on("mousemove.grve_navbar_mousemove",".grve-post-item.grve-small-style-2",function(t){var i=e(this).find(".grve-media-inner");if(i.length){var a=this.getBoundingClientRect().left,r=this.getBoundingClientRect().top,n=t.clientX,s=t.clientY-r,o=n-a-this.offsetWidth/2,l=s-this.offsetHeight/2;
1gsap.to(i,{x:.3*o,y:.3*l,scale:1,opacity:1,duration:.6,ease:"power3.out"})}}),i.on("mouseleave.grve_navbar_mouseleave",".grve-post-item.grve-small-style-2",function(t){var i=e(this).find(".grve-media-inner");i.length&&gsap.to(i,{x:0,y:0,scale:.9,opacity:0,duration:.6,ease:"power3.out"})})):t.off("mousemove.grve_navbar_mousemove mouseleave.grve_navbar_mouseleave"),this.resizing=!1},onResize:function(){e(".grve-post-item.grve-small-style-2").length&&!this.resizing&&(this.resizing=!0,this.updateParams())}},socialBar:{selector:".grve-social-bar.grve-layout-1",init:function(){this.show=!0,this.onScroll()},onScroll:function(){var t=e(this.selector);if(t.length){var i=a.scrollTop(),r=e("#grve-theme-content"),n=r.outerHeight()+r.offset().top,s=a.height();i>n-s&&this.show?(this.show=!1,t.addClass("grve-hide")):i<=n-s&&!this.show&&(this.show=!0,t.removeClass("grve-hide"))}}},videos:{init:function(){this.fitVid(),this.removeVideoBg(),this.addVideoBg()},fitVid:function(){e(".grve-video, .grve-media").fitVids();var t=e('iframe[src*="youtube"]'),i=e('iframe[src*="vimeo"]');t.each(function(){e(this).parents().is(".wp-block-embed")||e(this).parent().fitVids()}),i.each(function(){e(this).parents().is(".wp-block-embed")||e(this).parent().fitVids()})},addVideoBg:function(){function t(e,a,r){if("undefined"==typeof YT||void 0===YT.Player)return 100<(r=void 0===r?0:r)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){t(e,a,r++)},100);var n=void 0!==e.data("video-start")?parseInt(e.data("video-start")):0,s=void 0!==e.data("video-end")?parseInt(e.data("video-end")):0,o=e.prepend('<div class="grve-bg
1-youtube-video"><div class="inner"></div></div>').find(".inner"),l=new YT.Player(o[0],{width:"100%",height:"100%",videoId:a,playerVars:{playlist:a,modestbranding:1,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent",playsinline:1,start:n,end:s},events:{onReady:function(e){e.target.mute().setLoop(!0)},onStateChange:function(e){0===n&&0===s||e.data===YT.PlayerState.ENDED&&l.loadVideoById({videoId:a,startSeconds:n,endSeconds:s})}}});i.resizeVideoBgElement(e)}var i=this;e(".grve-yt-bg-video").each(function(){var i=e(this),a=i.data("video-bg-url").match(/[\\?&]v=([^&#]*)/)[1];""!==a&&t(i,a)}),e(".grve-vimeo-bg-video").each(function(){var t=e(this);if("undefined"!=typeof Vimeo){new Vimeo.Player(t.attr("id")).on("loaded",function(){GRVE.pageSettings.videos.resizeVideoBgElement(t)})}})},resizeVideoBg:function(){var t=this;C.each(function(){t.resizeVideoBgElement(e(this))})},resizeVideoBgElement:function(e){var t,i,a,r,n,s=e.innerWidth(),o=e.innerHeight();s/o<16/9?(i=o*(16/9),a=o,r=-Math.round((i-s)/2)+"px",n=-Math.round((a-o)/2)+"px",i+="px",a+="px"):(i=s,a=s*(9/16),n=-Math.round((a-o)/2)+"px",r=-Math.round((i-s)/2)+"px",i+="px",a+="px"),(e.hasClass("grve-yt-bg-video")||e.hasClass("grve-vimeo-bg-video"))&&(t="iframe"),e.find(t).css({maxWidth:"1000%",marginLeft:r,marginTop:n,width:"iframe"==t?i:"",height:a})},removeVideoBg:function(){e(".grve-background-wrapper").each(function(){var t=e(this),i=t.find(".grve-bg-image"),a=t.find(".grve-bg-video"),r=t.find(".grve-html5-bg-video"),n=t.find(".grve-vimeo-bg-video"),s=t.find(".grve-yt-bg-video"),o=t.find(".grve-bg-video-button-device"),l=void 0!==a.data("video-device")?a.data("video-device"):"no";if(GRVE.helpers.isMobile.any()&&"no"===l)a.remove();else{if(r.length){var c=t.find(".grve-bg-video video"),g=!1;t.find(".grve-bg-video source").each(function(){c.get(0).canPlayType(e(this).attr("type"))&&(g=!0)}),g?i.remove():a.remove()}(s.length||n.length)&&i.remove(),o.length&&o.remove()}})}},basicAnimations:{init:function(){var e=this;e.setAnimatedText(),e.setClippingWrappers(),e.setAppearWrappers(),a.on("grve_after_page_transition grve_safebutton_open grve_modal_open",function(){e.animAppear()})},setAnimatedText:function(){var t=e(".grve-animated-text");GRVE.helpers.isMobile.any()&&!z||t.each(function(){var t=e(this),i=t.find(".grve-line"),a=t.data("style");if(i.each(function(){var t=e(this),i=t.text();if(t.data("text",i),"style-2"===a||"style-3"===a){i=(i=i.trim()).split(" ");t[0].innerHTML="";for(var r=0;r<i.length;r++)t[0].innerHTML+="style-2"===a?'<span class="grve-word"><span>'+i[r]+"</span></span> ":'<span class="grve-word">'+i[r]+"</span> "}else t.wrapInner("<span></span>")}),"style-3"===a){t.find(".grve-word").each(function(){var t=e(this),i=(i=(i=t.text()).trim()).split("");t[0].innerHTML="";for(var a=0;a<i.length;a++)t[0].innerHTML+='<span class="grve-character">'+i[a]+"</span>"})}})},setClippingWrappers:function(){var t=e(".grve-clipping-animation"),i=[];GRVE.helpers.isMobile.any()&&!z?t.removeClass("grve-clipping-animation"):(t.each(function(){var t=e(this);0===t.parents("#grve-header").length?i.push(t):t.removeClass("grve-clipping-animation")}),e.each(i,function(){var t=e(this);t.wrapInner('<div class="grve-clipping-wrapper grve-animation-wrapper"><div class="grve-clipping-content"></div></div>');var i=t.find(".grve-clipping-wrapper");if(t.hasClass("grve-colored-clipping")){var a=t.data("clipping-color");e('<div class="grve-clipping-overlay grve-bg-'+a+'"></div>').appendTo(i)}}))},setAppearWrappers:function(){var t=e(".grve-appear-animation"),i=[];GRVE.helpers.isMobile.any()&&!z?t.removeClass("grve-appear-animation"):(t.each(function(){var t=e(this);0===t.parents("#grve-header").length?i.push(t):t.removeClass("grve-appear-animation")}),e.each(i,function(){e(this).wrapInner('<div class="grve-appear-wrapper grve-animation-wrapper"><div class="grve-appear-content"></div></div>')}))},animAppear:function(){var t=this,i=e(".grve-animated-item"),a=[];r.hasClass("page-template-template-full-page")||(GRVE.helpers.isMobile.any()&&!z?i.removeClass("grve-animated-item"):(i.each(function(){var t=e(this);0===t.parents("#grve-header").length?a.push(t):t.removeClass("grve-animated-item")}),e.each(a,function(){var i=e(this);i.is(":visible")&&!i.hasClass("grve-animating")&&i.appear(function(){t.elementAnimation(i)},{accX:0,accY:-150})})),e(".grve-underline").each(function(){var t=e(this),i=t.parents(".grve-element");
1t.is(":visible")&&!i.hasClass("grve-animated-item")&&t.appear(function(){t.addClass("grve-active")},{accX:0,accY:-150})}))},elementAnimation:function(e){var t=e.data("animation"),i=parseInt(e.data("delay"))/1e3,a=e.data("duration");e.parents(".grve-animated-item").length||(e.hasClass("grve-clipping-animation")?e.hasClass("grve-colored-clipping")?this.clippingColoredAnimation(e,t,i,a):this.clippingAnimation(e,t,i,a):e.hasClass("grve-appear-animation")?this.appearAnimation(e,t,i,a):e.hasClass("grve-animated-text")?this.animatedText(e,i,a):this.classicAnimation(e,t,i,a))},classicAnimation:function(t,i,a,r){var n=e.extend(this.getAnimParams(i,r),{force3D:!0,ease:"easeOutCubic",stagger:.3});(i=gsap.timeline({delay:a,onComplete:function(){e.each(t,function(){e(this).addClass("grve-animating").parent().css("overflow","visible");var t=e(this).find(".grve-underline");t.length&&t.addClass("grve-active")})}})).set(t,{visibility:"visible"}).fromTo(t,n,{x:"0%",y:"0%",duration:n.duration,opacity:1,scale:1})},animatedText:function(t,i,a){var r=[],n=.1;"style-1"===t.data("style")?(r=e.makeArray(t.find(".grve-line > span")),n=.5):"style-2"===t.data("style")?(r=e.makeArray(t.find(".grve-word > span")),n=.2):(r=e.makeArray(t.find(".grve-character")),n=.2);var s=this.getAnimParams("",a);gsap.timeline({delay:i,onComplete:function(){t.removeClass("grve-animated-item"),t.find(".grve-line").each(function(){var t=e(this),i=t.data("text");t.parent().html(i).css("overflow","visible")})}}).set(r,{visibility:"visible"}).from(r,{y:"100%",force3D:!0,duration:s.duration,ease:"easeOutCubic",stagger:s.duration*n})},clippingAnimation:function(t,i,a,r){var n,s=t.find(".grve-clipping-wrapper"),o=t.find(".grve-clipping-content");switch(i){case"clipping-left":n="clipping-right";break;case"clipping-right":n="clipping-left";break;case"clipping-up":n="clipping-down";break;case"clipping-down":n="clipping-up";break;default:n="clipping-right"}var l=e.extend(this.getAnimParams(i,r),{force3D:!0,ease:"easeOutCubic"}),c=e.extend(this.getAnimParams(n,r),{force3D:!0,ease:"easeOutCubic"});(i=gsap.timeline({delay:a,onComplete:function(){t.addClass("grve-animating")}})).set(t,{visibility:"visible"}).from(s,l).from(o,c,"<")},clippingColoredAnimation:function(t,i,a,r){var n=t.find(".grve-clipping-overlay"),s=t.find(".grve-clipping-content"),o=i+"-in",l=i+"-out",c=e.extend(this.getAnimParams(o,r),{force3D:!0,ease:"easeOutCubic"}),g=e.extend(this.getAnimParams(l,r),{force3D:!0,ease:"easeOutCubic"});(i=gsap.timeline({delay:a,onComplete:function(){t.addClass("grve-animating")}})).set(t,{visibility:"visible"}).from(n,c).set(s,{visibility:"visible"}).to(n,g)},appearAnimation:function(t,i,a,r){var n=t.find(".grve-appear-content"),s=e.extend(this.getAnimParams(i,r),{force3D:!0,ease:"easeOutCubic"});(i=gsap.timeline({delay:a,onComplete:function(){t.addClass("grve-animating")}})).set(t,{visibility:"visible"}).fromTo(n,s,{x:"0%",y:"0%"})},getAnimParams:function(e,t){var i={};switch(t){case"very-fast":i.duration=.2;break;case"fast":i.duration=.4;break;case"normal":i.duration=.6;break;case"slow":i.duration=1.2;break;case"very-slow":i.duration=1.5;break;default:i.duration=.6}switch(e){case"fade-in":i.opacity=0;break;case"fade-in-up":i.y=100,i.opacity=0;break;case"fade-in-up-big":i.y=300,i.opacity=0;break;case"fade-in-down":i.y="-100",i.opacity=0;break;case"fade-in-down-big":i.y="-300",i.opacity=0;break;case"fade-in-left":i.x="-100",i.opacity=0;break;case"fade-in-left-big":i.x="-300",i.opacity=0;break;case"fade-in-right":i.x="100px",i.opacity=0;break;case"fade-in-right-big":i.x="300px",i.opacity=0;break;case"zoom-in":i.scale=0;break;case"zoom-out":i.scale=2;break;case"clipping-left":case"appear-left":i.x="-101%";break;case"clipping-right":case"appear-right":i.x="101%";break;case"clipping-up":case"appear-up":i.y="-101%";break;case"clipping-down":case"appear-down":i.y="101%";break;case"colored-clipping-left-in":i.x="-101%";break;case"colored-clipping-left-out":case"colored-clipping-right-in":i.x="101%";break;case"colored-clipping-right-out":i.x="-101%";break;case"colored-clipping-up-in":i.y="-101%";break;case"colored-clipping-up-out":case"colored-clipping-down-in":i.y="101%";break;case"colored-clipping-down-out":i.y="-101%"}return i}},hoverEffects:{init:function(){this.deviceHover(),this.tiltEffect(),this.thumbMouseMove(),this.bgImageMouseMove(),this.indicator(),this.hoverSplitText(),this.imageDominant(),this.magnetism()},deviceHover:function(){var t=e(".grve-hover-item");if(GRVE.helpers.isMobile.any()&&0==impeka_grve_main_data.device_hover_single_tap){var a="touchend mouseenter";t.parent().parent().hasClass("grve-carousel-item")&&(a="touchstart"),i.on(a,".grve-hover-item",function(i){var a=e(this);a.hasClass("hover")||(a.addClass("hover"),t.not(this).removeClass("hover"),i.preventDefault())}),i.on("touchstart touchend",function(e){t.is(e.target)||0!==t.has(e.target).length||t.removeClass("hover")})}else i.on("mouseenter",".grve-hover-item",function(){e(this).addClass("hover")}).on("mouseleave mouseup",".grve-hover-item",function(){e(this).removeClass("hover")})},tiltEffect:function(){i.on("mousemove.grve_tilt_mousemove",".grve-tilt-effect",function(t){var i=e(this),a=i.find(".grve-tilt-inner"),r=t.pageX,n=t.pageY,s=i.width()/2-(r-i.offset().left),o=(i.height()/2-(n-i.offset().top))/i.height()*10,l=s/i.width()*10;gsap.to(a,{duration:.6,rotationY:l,rotationX:o,scale:1.1,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})}),i.on("mouseleave.grve_tilt_mousemove",".grve-tilt-effect",function(t){var i=e(this).find(".grve-tilt-inner");gsap.to(i,{duration:.6,rotationY:0,rotationX:0,scale:1,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})})},thumbMouseMove:function(){i.on("mousemove.grve_thumb_mousemove",".grve-thumb-mouse-move",function(t){var i=e(this),a=i.find("img"),r=t.pageX,n=t.pageY,s=i.width(),o=i.height(),l=s/2-(r-i.offset().left),c=(o/2-(n-i.offset().top))/o*60,g=l/s*60,d=((s+60+5)/s).toFixed(2),v=((o+60+5)/o).toFixed(2),h=Math.max(d,v);a.length&&gsap.to(a,{duration:.6,y:c,x:g,scale:h,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})}),i.on("mouseleave.grve_thumb_mousemove",".grve-thumb-mouse-move",function(t){var i=e(this).find("img");i.length&&gsap.to(i,{duration:.6,y:0,x:0,scale:1,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})})},bgImageMouseMove:function(){i.on("mousemove.grve_thumb_mousemove",".grve-bg-mouse-move",function(t){var i=e(this),a=i.find(".grve-bg-image"),r=t.pageX,n=t.pageY,s=i.width(),o=i.outerHeight(),l=s/2-(r-i.offset().left),c=(o/2-(n-i.offset().top))/o*60,g=l/s*60,d=((s+60+5)/s).toFixed(2),v=((o+60+5)/o).toFixed(2),h=Math.max(d,v);a.length&&gsap.to(a,{duration:.6,y:c,x:g,scale:h,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})}),i.on("mouseleave.grve_thumb_mousemove",".grve-bg-mouse-move",function(t){var i=e(this).find(".grve-bg-image");i.length&&gsap.to(i,{duration:.6,y:0,x:0,scale:1,ease:Power1.easeOut,transformPerspective:900,transformOrigin:"center",force3D:!0})})},indicator:function(){var t=e("#grve-indicator"),a=(t.find(".grve-inner"),t.find(".grve-default"));GRVE.helpers.isMobile.any()||(t.length&&r.hasClass("grve-theme-indicator")?(i.on("mousemove.grve_indicator_mousemove",function(e){var i=void 0!=r.offset().left?r.offset().left:0,a=e.clientX-i+H,n=e.clientY;gsap.to(t,{duration:.3,x:a,y:n,display:"block",force3D:!0})}),i.on("mouseenter.grve_indicator_mouseenter","[data-indicator]",function(i){var r=e(this).data("indicator"),n=e(this).data("indicator-color"),s=t.find(".grve-ind-"+r);if(t.removeClass("grve-blend"),t.addClass("grve-item-hover"),s.addClass("grve-active"),"content"===r){var o=e(this).find(".grve-indicator-content").html();s.html(o),a.addClass("grve-indicator-hide")}else a.addClass("grve-indicator-expand");if("text"===r){var l=e(this).data("indicator-text");s.children().html(l)}
1"none"!==r&&(void 0!==n&&"content"!==r?(a.addClass("grve-bg-"+n),"white"===n?s.addClass("grve-text-black grve-svg-black"):s.addClass("grve-text-white grve-svg-white")):void 0===n&&"content"!==r&&(s.addClass("grve-text-white grve-svg-white"),a.addClass("grve-bg-primary-1")))}),i.on("mouseleave.grve_indicator_mouseleave","[data-indicator]",function(i){var r=e(this).data("indicator"),n=t.find(".grve-ind-"+r),s=e(this).data("indicator-color");void 0!==s&&"content"!==r?(a.removeClass("grve-bg-"+s),"white"===s?n.removeClass("grve-text-black grve-svg-black"):n.removeClass("grve-text-white grve-svg-white")):void 0===s&&"content"!==r&&(n.removeClass("grve-text-white grve-svg-white"),a.removeClass("grve-bg-primary-1")),a.removeClass("grve-indicator-expand grve-indicator-hide"),n.removeClass("grve-active"),t.addClass("grve-blend"),t.removeClass("grve-item-hover")}),i.on("mouseenter.grve_indicator_mouseenter","a",function(t){if(e(this).parents(".grve-hide-indicator").length||e(this).hasClass("grve-hide-indicator"))a.addClass("grve-indicator-hide");else if(e(this).parents(".grve-header-menu").length||e(this).parents(".grve-menu-element").length||e(this).parents(".grve-widget").length)a.addClass("grve-indicator-small");else{if(e(this).parents("div[data-indicator]").length)return;a.addClass("grve-indicator-expand")}}),i.on("mouseleave.grve_indicator_mouseleave","a",function(e){a.removeClass("grve-indicator-expand grve-indicator-small grve-indicator-hide")})):t.length&&!r.hasClass("grve-theme-indicator")&&(i.on("mousemove.grve_indicator_mousemove","[data-indicator]",function(i){var n=e(this).data("indicator"),s=e(this).data("indicator-color"),o=t.find(".grve-ind-"+n),l=void 0!=r.offset().left?r.offset().left:0,c=i.clientX-l,g=i.clientY;if(gsap.to(t,{duration:.3,opacity:1,scale:1,x:c,y:g,display:"block",force3D:!0}),t.removeClass("grve-blend"),o.addClass("grve-active"),t.addClass("grve-item-hover"),"content"===n){var d=e(this).find(".grve-indicator-content").html();o.html(d),a.addClass("grve-indicator-hide")}else a.addClass("grve-indicator-expand").removeClass("grve-indicator-hide");if("text"===n){var v=e(this).data("indicator-text");o.children().html(v)}"none"!==n&&(void 0!==s&&"content"!==n?(a.addClass("grve-bg-"+s),"white"===s?o.addClass("grve-text-black grve-svg-black"):o.addClass("grve-text-white grve-svg-white")):void 0===s&&"content"!==n&&(o.addClass("grve-text-white grve-svg-white"),a.addClass("grve-bg-primary-1")))}),i.on("mouseleave.grve_indicator_mouseleave","[data-indicator]",function(i){var r=e(this).data("indicator"),n=e(this).data("indicator-color");t.find(".grve-ind-"+r).removeClass("grve-active grve-text-black grve-svg-black"),t.removeClass("grve-item-hover"),a.removeClass("grve-bg-"+n),gsap.to(t,{duration:.3,opacity:0,scale:0,display:"none"})})))},hoverSplitText:function(){e(".grve-with-split-text").each(function(){var t=e(this),i=t.find(".grve-title");t.find(".grve-description");i.length&&GRVE.helpers.splitText(i,"text",20)})},imageDominant:function(){e(".grve-bg-dominant").each(function(){var t=e(this),i=t.parent().find("img");if(i.length){var a=new ColorThief,r=new Image;r.src=function(e){return e.replace(/"/g,"").replace(/url\(|\)$/gi,"")}(i.attr("src")),r.onload=function(){var e=a.getColor(r),i=e[0],n=e[1],s=e[1];t.css({"background-color":"rgb("+i+","+n+","+s+")"})}}})},magnetismElements:function(){return[{el:".grve-team.grve-layout-3.grve-mouse-move",item:".grve-team-person"},{el:".grve-team.grve-layout-4.grve-mouse-move",item:".grve-team-person"},{el:".grve-btn-text.grve-with-svg-icon-arrow-1",item:".grve-btn-svg-icon",movement:10},{el:".grve-safebutton-icon-wrapper",item:".grve-safe-button",movement:20},{el:".grve-close-button-wrapper",item:".grve-close-btn",movement:20},{el:".grve-column.grve-magnetism",item:".grve-column-wrapper",movement:20},{el:".grve-column-inner.grve-magnetism",item:".grve-column-wrapper-inner",movement:20},{el:".grve-backlink",item:"a",movement:20}]},magnetism:function(){var t=this.magnetismElements();e.each(t,function(t,a){var r=void 0!=a.movement?a.movement:20;i.on("mouseenter",a.el,function(){var t=e(this).find(a.item);gsap.to(t,{duration:.3,scale:1.1})}),i.on("mouseleave click",a.el,function(){var t=e(this).find(a.item);gsap.to(t,{duration:.3,scale:1,x:0,y:0})}),i.on("mousemove",a.el,function(t){!function(t,i,a,r){var n=i.getBoundingClientRect(),s=t.pageX-e(i).offset().left,o=t.pageY-e(i).offset().top,l=n.width,c=n.height;gsap.to(a,{duration:.3,x:(s-l/2)/l*r,y:(o-c/2)/c*r,ease:Power2.easeOut})}(t,this,e(this).find(a.item),r)})})}},listTitleGrid:{init:function(){var t=this;e(".grve-list-title-grid").each(function(){var i=e(this),a=i.data("display-style"),n=i.find(".grve-list-grid"),s=!0;r.hasClass("rtl")&&(s=!1),t.filtersCounter(i);var o=[],l=i.find(".grve-filter"),c=l.find("li"),g=i.find(".grve-filters-select");c.each(function(){var t=e(this).data("filter");-1===o.indexOf(t)&&o.push(t)}),l.on("click","li",function(){var t=e(this).data("filter"),i=e(this).html(),r=e(this).parent().find(".grve-current-category"),s="yes"==e(this).parents(".grve-filter").attr("data-gototop");r.length>
10&&r.find("span").html(i),n.isotope({filter:t}),s&&"infinite-scroll"!==a&&"load-more"!==a&&GRVE.helpers.linkGoToTop(e(this).parent(),300,30),e(this).addClass("selected").siblings().removeClass("selected")}),g.on("change",function(){var e=this.value;n.isotope({filter:e})}),n.isotope({itemSelector:".grve-list-item",layoutMode:"fitRows",originLeft:s}).isotope("layout"),t.toggleImage(i),i.css("visibility","visible")})},toggleImage:function(t){var i=e.makeArray(t.find(".grve-list-image"));t.find(".grve-list-item");GRVE.helpers.isMobile.any()?(t.find(".grve-bg-image").each(function(){var t=e(this);t.data("cached")||t.data({cached:!0,bg:t.css("background-image"),bgset:t.attr("data-bgset"),srcset:t.attr("data-srcset"),sizes:t.attr("sizes")}),t.removeAttr("data-bgset data-srcset sizes").removeClass("lazyload lazyloaded lazyautosizes ls-is-cached").css("background-image","none").find("picture").remove()}),t.on("touchstart",".grve-list-item",function(a){var r=e(this),n=r.index(),s=e(i[n]),o=s.find(".grve-bg-image");r.hasClass("grve-active")||a.preventDefault(),r.addClass("grve-active").removeClass("grve-hide").siblings().addClass("grve-hide").removeClass("grve-active"),s.addClass("grve-active").siblings().removeClass("grve-active"),t.find(".grve-bg-image").removeAttr("data-bgset data-srcset sizes").removeClass("lazyload lazyloaded lazyautosizes ls-is-cached").css("background-image","none").find("picture").remove(),o.data("bgset")||o.data("srcset")?(o.attr({"data-bgset":o.data("bgset"),"data-srcset":o.data("srcset"),sizes:o.data("sizes")}).addClass("lazyload"),window.lazySizes&&lazySizes.loader.unveil(o[0])):o.css("background-image",o.data("bg"))})):(t.on("mouseenter",".grve-list-item",function(){var t=e(this),a=t.index(),r=e(i[a]);t.addClass("grve-active").siblings().addClass("grve-hide"),r.addClass("grve-active").siblings().removeClass("grve-active")}),t.on("mouseleave",".grve-list-item",function(){var t=e(this),a=t.index(),r=e(i[a]);t.removeClass("grve-active").siblings().removeClass("grve-hide"),r.removeClass("grve-active")}))},filtersCounter:function(t){var i=t.find(".grve-filter.grve-filter-style-count"),a=[];if(i.length){var r=i.find("li");r.each(function(){var t=e(this),i=t.data("filter");-1===a.indexOf(i)&&a.push(i),t.find(".grve-count").length||e('<div class="grve-count"><span></span></div>').appendTo(t)}),e(r[0]).find(".grve-count span").text(t.find(".grve-list-item").length),e.each(a,function(i,a){if("*"!==a){var n=t.find(a).length;e(r[i]).find(".grve-count span").text(n)}})}},relayout:function(){e(".grve-list-title-grid").each(function(){e(this).find(".grve-list-grid").isotope().isotope("layout")})}},isotope:{init:function(){var t=this;e(".grve-isotope").each(function(){var i=e(this),a=i.find(".grve-isotope-container"),n=e.makeArray(a.find(".grve-entry-item")),s=i.data("layout"),o=i.find(".grve-infinite-pagination"),l=i.data("display-style"),c=!0;r.hasClass("rtl")&&(c=!1),t.updateSettings(i),t.filtersCounter(i),a.isotope({itemSelector:".grve-entry-item",layoutMode:s,originLeft:c,masonry:{columnWidth:".grve-grid-sizer"}}).css("visibility","visible"),t.itemsAnimation(i,n),GRVE.pageSettings.skinScrollEffect.onResize(),GRVE.pageSettings.skinScrollEffectElementor.onResize();var g=[],d=i.find(".grve-filter"),v=d.find("li"),h=i.find(".grve-filters-select");if(v.each(function(){var t=e(this).data("filter");-1===g.indexOf(t)&&g.push(t)}),d.on("click","li",function(){var t=e(this).data("filter"),i=e(this).html(),r=e(this).parent().find(".grve-current-category"),n="yes"==e(this).parents(".grve-filter").attr("data-gototop");r.length>0&&r.find("span").html(i),a.isotope({filter:t}),n&&"infinite-scroll"!==l&&"load-more"!==l&&GRVE.helpers.linkGoToTop(e(this).parent(),300,30),e(this).addClass("selected").siblings().removeClass("selected")}),h.on("change",function(){var e=this.value;a.isotope({filter:e})}),o.length){var p=!0;"load-more"==l&&(p=!1);var u="#"+i.attr("id"),f=u+" .grve-infinite-pagination .next",m=u+" .grve-infinite-page-load",b=u+" .grve-infinite-button";a.infiniteScroll({path:f,history:!1,button:b,status:m,scrollThreshold:p}),e(b).on("click",function(t){t.preventDefault(),e(this).addClass("grve-is-loading")}),a.on("load.infiniteScroll",function(r,n,s){var o=e(n).find(u+" .grve-entry-item"),l=e(n).find(u+" .grve-filter ul li"),c=i.find(".grve-filter ul");if("*"!==i.find(".grve-filter .selected").data("filter")){i.find('.grve-filter ul li[data-filter="*"]').trigger("click")}a.append(o),t.relayout(),a.isotope("insert",o),e(b).removeClass("grve-is-loading"),GRVE.pageSettings.hoverEffects.hoverSplitText(),GRVE.pageSettings.hoverEffects.imageDominant(),t.itemsAnimation(i,o,!0),l.each(function(){var t=e(this),i=t.data("filter");-1===g.indexOf(i)&&(g.push(i),t.appendTo(c),h.append(e("<option>",{value:i,text:t.text()})))}),t.filtersCounter(i)})}})},updateSettings:function(t){var i=t.find(".grve-isotope-container"),a=e.makeArray(i.find(".grve-entry-item"));this.isotopeColumns=this.getColumns(t),this.containerSize(t),this.itemSize(t,a)},relayout:function(){var t=this;e(".grve-isotope").each(function(){var i=e(this),a=i.find(".grve-isotope-container");t.updateSettings(i),a.isotope({transitionDuration:0}).isotope("layout")}),GRVE.pageSettings.sectionColor.onResize()},filtersCounter:function(t){var i=t.find(".grve-filter.grve-filter-style-count"),a=[];if(i.length){var r=i.find("li");r.each(function(){var t=e(this),i=t.data("filter");-1===a.indexOf(i)&&a.push(i),t.find(".grve-count").length||e('<div class="grve-count"><span></span></div>').appendTo(t)}),e(r[0]).find(".grve-count span").text(t.find(".grve-entry-item").length),e.each(a,function(i,a){if("*"!==a){var n=t.find(a).length;e(r[i]).find(".grve-count span").text(n)}})}},itemSize:function(t,i){var a=isNaN(t.data("gutter-size"))?0:Math.abs(t.data("gutter-size")),r=this.isotopeColumns,n=t.find(".grve-grid-sizer"),s=t.innerWidth(),o=t.parents(".grve-section").hasClass("grve-fullwidth")?-a:a,l=(l=(s+o)/r)%1!=0?Math.ceil(l):l;n.css({width:l}),e.each(i,function(t,i){var n=e(i),s=n.children(),o=n.find(".grve-thumbnail");s.hasClass("grve-image-landscape")?(1!=r?n.css({width:2*l}):n.css({width:l}),o.removeAttr("style"),o.css("height",l-a)):s.hasClass("grve-image-portrait")?(n.css({width:l}),o.removeAttr("style"),o.css("height",2*l-a)):(s.hasClass("grve-double-size")||s.hasClass("grve-image-large-square"))&&1!=r?n.css({width:2*l}):n.css({width:l}),n.css({padding:a/2})}),this.equalColumns(t,i)},containerSize:function(e){var t=e.find(".grve-isotope-container"),i=e.innerWidth(),a=isNaN(e.data("gutter-size"))?0:Math.abs(e.data("gutter-size")),r=this.isotopeColumns,n=(i+(e.parents(".grve-section").hasClass("grve-fullwidth")?-a:a))/r,s=(n=n%1!=0?Math.ceil(n):n)*r;t.parents(".grve-section").hasClass("grve-fullwidth")?t.css({"padding-left":a/2,"padding-right":a/2,width:s+a}):t.css({margin:-a/2,width:s})},getColumns:function(t){var i=e(window).width(),a={largeS:t.data("columns-large-screen"),desktop:t.data("columns"),tabletL:t.data("columns-tablet-landscape"),tabletP:t.data("columns-tablet-portrait"),mobile:t.data("columns-mobile")};return a=i>P?a.largeS:i>G&&i<=P?a.desktop:i>I&&i<=G?a.tabletL:i>D&&i<=I?a.tabletP:a.mobile},getRows:function(t,i){if(i.length){var a=this.isotopeColumns,r=[],n=[];e.each(i,function(t,a){e(i[t]).children().hasClass("grve-double-size")&&r.push(""),r.push(a)});for(var s=0;s<r.length;s+=a){var o=r.slice(s,s+a);o=e.grep(o,function(e){return e}),n.push(o)}return n}},itemsAnimation:function(t,i,a){var r=t.data("animation");if(i.length&&"none"!==r){var n=this.getRows(t,i),s=e.extend(GRVE.pageSettings.basicAnimations.getAnimParams(r),{force3D:!0,ease:"power1.out"});if(a){i=n.shift();gsap.timeline().set(e(i).children(),{visibility:"visible"}).fromTo(e(i).children(),s,{x:"0%",y:"0%",opacity:1,scale:1,stagger:.3})}e.each(n,function(t,i){e(i[0]).appear(function(){gsap.timeline().set(e(i).children(),{visibility:"visible"}).fromTo(e(i).children(),s,{x:"0%",y:"0%",opacity:1,scale:1,stagger:.3})})})}},equalColumns:function(t,i){if(t.hasClass("grve-blog-grid")&&"equal"==t.data("items-height")){a=this.getRows(t,i);e.each(a,function(t,i){e(this).imagesLoaded(function(){var t=GRVE.helpers.getMaxHeights(i,".grve-post-item-inner");e.each(i,function(i,a){e(this).find(".grve-post-item-inner").css("height",t)})})})}if(t.hasClass("grve-testimonial-grid")){var a=this.getRows(t,i);e.each(a,function(t,i){e(this).imagesLoaded(function(){var t=GRVE.helpers.getMaxHeights(i,".grve-testimonial-inner");e.each(i,function(i,a){e(this).find(".grve-testimonial-inner").css("height",t)})})})}}},carouselElements:{init:function(){this.carousel(),this.carouselFlickity(),this.flexibleCarouselAdvanced(),this.slider()},carousel:function(){e(".grve-classic-carousel").each(function(){var t=e(this),i=t.parent().find(".grve-carousel-next"),a=t.parent().find(".grve-carousel-prev"),n=parseInt(t.attr("data-sli
1der-speed"))?parseInt(t.attr("data-slider-speed")):3e3,s="no"!=t.attr("data-pagination"),o=void 0!==t.attr("data-pagination-color")?"grve-carousel-pagination grve-dots-"+t.attr("data-pagination-color"):"grve-carousel-pagination",l=parseInt(t.attr("data-pagination-speed"))?parseInt(t.attr("data-pagination-speed")):400,c="yes"==t.attr("data-slider-autoheight"),g="no"!=t.attr("data-slider-autoplay"),d="yes"==t.attr("data-slider-pause"),v="no"!=t.attr("data-slider-loop"),h=parseInt(t.attr("data-items")),p=t.attr("data-items-tablet-landscape")?parseInt(t.attr("data-items-tablet-landscape")):3,u=t.attr("data-items-tablet-portrait")?parseInt(t.attr("data-items-tablet-portrait")):3,f=t.attr("data-items-mobile")?parseInt(t.attr("data-items-mobile")):1,m=t.hasClass("grve-with-gap")&&!isNaN(t.data("gutter-size"))?Math.abs(t.data("gutter-size")):0,b=parseInt(t.attr("data-stage-padding"))>0?parseInt(t.attr("data-stage-padding")):0,C=!!t.parent().find(".grve-thumb-pagination").length&&t.parent().find(".grve-thumb-pagination")[0],y=!1;1==t.find(".grve-carousel-item").length&&(v=!1),r.hasClass("rtl")&&(y=!0),t.owlCarousel({loop:v,autoplay:g,autoplayTimeout:n,autoplayHoverPause:d,smartSpeed:500,dots:s,dotsClass:o,autoHeight:c,navContainer:"grve-carousel-navigation",stageOuterClass:"grve-carousel-stage-outer",stageClass:"grve-carousel-stage",autoHeightClass:"grve-auto-height",grabClass:"grve-grab",dotClass:"grve-dot",dotsContainer:C,navSpeed:l,dotsSpeed:l,rtl:y,responsive:{0:{items:f},768:{items:u},1024:{items:p},1200:{items:h}},margin:m,stagePadding:b,itemClass:"grve-carousel-item-wrapper"}),t.css("visibility","visible"),t.find(".grve-custom-svg-icon").length&&setTimeout(function(){t.trigger("refresh.owl.carousel")},300),i.on("click",function(){t.trigger("next.owl.carousel")}),a.on("click",function(){t.trigger("prev.owl.carousel")}),t.on("drag.owl.carousel",function(){e(this).addClass("grve-disable-link")}),t.on("dragged.owl.carousel",function(){e(this).removeClass("grve-disable-link")})})},carouselFlickity:function(){e(".grve-flickity-carousel").each(function(){var t=e(this),i=t.parents(".grve-carousel").find(".grve-carousel-next"),a=t.parents(".grve-carousel").find(".grve-carousel-prev"),n="no"!=t.attr("data-pagination"),s="no"!=t.attr("data-slider-autoplay"),o="no"!=t.attr("data-slider-loop"),l="no"!=t.attr("data-slider-loop")?"center":"left",c=!1;r.hasClass("rtl")&&(c=!0,l="no"!=t.attr("data-slider-loop")?"center":"right"),t.on("ready.flickity",function(){var t=e(this);if(t.hasClass("grve-blog-carousel")){var i=t.find(".grve-post-item"),a=e.makeArray(i),r=GRVE.helpers.getMaxHeights(a,".grve-post-item-inner");t.find(".grve-post-item-inner").css("height",r)}if(t.hasClass("grve-testimonial")){var i=t.find(".grve-testimonial-item"),a=e.makeArray(i),r=GRVE.helpers.getMaxHeights(a,".grve-testimonial-inner");t.find(".grve-testimonial-inner").css("height",r)}}),t.flickity({cellAlign:l,contain:o,wrapAround:o,groupCells:!0,pageDots:n,autoPlay:s,prevNextButtons:!1,adaptiveHeight:!1,cellSelector:".grve-carousel-item",rightToLeft:c}),t.css("visibility","visible"),i.on("click",function(){t.flickity("next")}),a.on("click",function(){t.flickity("previous")}),t.on("dragStart.flickity",function(){e(this).addClass("grve-disable-link")}),t.on("dragEnd.flickity",function(){e(this).removeClass("grve-disable-link")})})},flexibleCarouselAdvanced:function(){e(".grve-flexible-advanced-carousel").each(function(){var t=e(this),i=t.parents(".grve-carousel-wrapper").find(".grve-carousel-next"),a=t.parents(".grve-carousel-wrapper").find(".grve-carousel-prev"),n="no"!=t.attr("data-pagination"),s="no"!=t.attr("data-slider-autoplay"),o="no"!=t.attr("data-slider-loop"),l="no"!=t.attr("data-slider-loop")?"center":"left",c=!1;r.hasClass("rtl")&&(c=!0,l="no"!=t.attr("data-slider-loop")?"center":"right"),t.flickity({cellAlign:l,contain:o,wrapAround:o,groupCells:!0,pageDots:n,autoPlay:s,prevNextButtons:!1,adaptiveHeight:!1,rightToLeft:c}),t.css("visibility","visible"),i.on("click",function(){t.flickity("next")}),a.on("click",function(){t.flickity("previous")}),t.on("dragStart.flickity",function(){e(this).addClass("grve-disable-link")}),t.on("dragEnd.flickity",function(){e(this).removeClass("grve-disable-link")})})},slider:function(){e("#grve-main-content .grve-slider-element, #grve-single-media .grve-slider-element, #grve-modal-area .grve-slider-element").each(function(){var t=e(this),i=t.parents(".grve-slider").find(".grve-carousel-next"),a=t.parents(".grve-slider").find(".grve-carousel-prev"),r=parseInt(t.attr("data-sli
1der-speed"))?parseInt(t.attr("data-slider-speed")):3e3,n="yes"==t.attr("data-slider-pause"),s=t.attr("data-slider-transition"),o="no"!=t.attr("data-slider-loop"),l="no"!=t.attr("data-slider-autoplay"),c=void 0!==t.attr("data-pagination-color")?"grve-carousel-pagination grve-dots-"+t.attr("data-pagination-color"):"grve-carousel-pagination",g="no"!=t.attr("data-pagination"),d=!1,v=!1;(t.parents(".grve-slider").hasClass("grve-layout-2")||"fade"==s)&&(d="carousel-fade-out",v="carousel-fade-in"),1==t.find(".grve-slider-item").length&&(o=!1),t.owlCarousel({items:1,loop:o,autoplay:l,autoplayTimeout:r,autoplayHoverPause:n,smartSpeed:500,dots:g,animateOut:d,animateIn:v,dotsClass:c,itemClass:"grve-slider-item-wrapper",navContainer:"grve-carousel-navigation",stageOuterClass:"grve-carousel-stage-outer",stageClass:"grve-carousel-stage",grabClass:"grve-grab",dotClass:"grve-dot"}),t.css("visibility","visible"),i.on("click",function(){t.trigger("next.owl.carousel")}),a.on("click",function(){t.trigger("prev.owl.carousel")})})}},scrollingPage:{init:function(){this.fullPage()},fullPage:function(){var t=this,i=e("#grve-fullpage");if(i.length){var a=i.find(".grve-row-section"),r=!0,n=!0,s=!0,o=!0,l=i.data("scroll-speed"),c="yes"==i.data("device-scrolling"),g="yes"==i.data("lock-anchors"),d=i.data("scroll-loop"),v=!1,h=!1,p=GRVE.pageSettings.sectionColor.items;"both"!=d&&"top"!=d||(v=!0),"both"!=d&&"bottom"!=d||(h=!0),GRVE.helpers.isMobile.any()&&!c&&(r=!1,n=!1,s=!1,o=!1),i.fullpage({navigation:r,navigationPosition:"right",sectionSelector:a,css3:!0,scrollingSpeed:l,autoScrolling:n,fitToSection:o,lockAnchors:g,loopTop:v,loopBottom:h,scrollOverflow:s,afterLoad:function(i,r){var n=e(a[r-1]).attr("data-header-color");a.find(".fp-tableCell").css("visibility","visible"),GRVE.headerSettings.mainHeader.changeSkin(n),p.push({item:e("#fp-nav")[0],initColor:n}),e.each(p,function(t,i){var a=e(p[t].item);GRVE.pageSettings.sectionColor.changeSkin(a,n)}),t.addAnim(a,r),e("body").hasClass("grve-responsivemenu-open")&&e(".grve-toggle-responsive-menu").trigger("click"),e("body").hasClass("grve-offcanvas-open")&&e(".grve-toggle-offcanvas").trigger("click"),e("body").hasClass("grve-safebutton-open")&&e(".grve-toggle-safebutton-area").trigger("click")},afterRender:function(){}})}},addAnim:function(t,i){e(t[i-1]).find(".grve-animated-item:not(.grve-animating)").each(function(){GRVE.pageSettings.basicAnimations.elementAnimation(e(this))})}},stickyElements:{init:function(){this.checkDevice()},checkDevice:function(){a.width()+k>I?this.initStickyElement():y.trigger("sticky_kit:detach")},initStickyElement:function(){y.each(function(){var t=e(this),i=t.css("padding-top"),r=t.css("padding-left"),n=t.css("padding-bottom"),s=t.css("padding-right"),o=i+" "+s+" "+n+" "+r,l=void 0!==t.data("sticky-offset")?t.data("sticky-offset"):0;t.stick_in_parent({bottoming:!0,inner_scrolling:!1,offset_top:l}).on("sticky_kit:stick",function(t){e(this).css({"padding-top":i,"z-index":9999}),this.style.setProperty("padding",o,"important")}).on("sticky_kit:unstick",function(e){this.style.setProperty("padding","")}),a.on("grve_safebutton_before_close",function(){t.trigger("sticky_kit:recalc")})})}},wooCommerce:{init:function(){this.ajaxProductFilters(),this.toggleActiveFilters(),this.toggleFilters(),this.productsColumnsSwitcher()},onResize:function(){this.checkCarousel()},wooThumbCarousel:function(){var t=this,i=e(".grve-woo-theme-gallery"),a=e(".woocommerce-product-gallery__image"),r=e(".grve-woo-gallery-zoom.grve-woo-light-gallery-popup"),n=0;if(r.length&&(r.prepend('<a href="#" class="woocommerce-product-gallery__trigger">ÄÂÂÂ</a>'),r.on("click",".woocommerce-product-gallery__trigger",function(){a.length>1?r.find(".flex-active-slide a").trigger("click"):r.find(".woocommerce-product-gallery__image a").trigger("click")})),i.length){for(var s=i.find(".flex-control-nav"),o=s.children(),l=e('<div class="grve-woo-thumbs-nav-btn grve-woo-thumbs-nav-prev grve-hide-nav"><span></span></div>'),c=e('<div class="grve-woo-thumbs-nav-btn grve-woo-thumbs-nav-next"><span></span></div>'),g=0;g<o.length;g+=4)o.slice(g,g+4).wrapAll('<div class="grve-woo-carousel-item"></div>');s.children().wrapAll('<div class="grve-woo-carousel-inner"></div>'),s.wrap('<div class="grve-woo-carousel"></div>'),i.addClass("grve-woo-thumbs-carousel"),t.checkCarousel();var d=e(".grve-woo-carousel-item").length;d>1&&(l.insertBefore(s),c.insertAfter(s)),c.on("click",function(){n<d-1&&t.moveCarousel(++n,d)}),l.on("click",function(){n>0&&t.moveCarousel(--n,d)})}},checkCarousel:function(){var t=e(".grve-woo-carousel"),i=t.find(".flex-control-nav"),a=t.find(".grve-woo-carousel-item"),r=0;t.length&&(a.css("height",""),i.css("height",""),e(window).width()+k>G&&(a.each(function(){e(this).height()>r&&(r=e(this).height())}),a.css("height",r),i.css("height",r)))},moveCarousel:function(t,i){var a=e(".grve-woo-carousel"),r=a.find(".grve-woo-carousel-inner"),n=(a.find(".flex-control-nav"),-100*t/i+"%");gsap.to(r,{y:n}),t>0?e(".grve-woo-thumbs-nav-prev").removeClass("grve-hide-nav"):e(".grve-woo-thumbs-nav-prev").addClass("grve-hide-nav"),t==i-1?e(".grve-woo-thumbs-nav-next").addClass("grve-hide-nav"):e(".grve-woo-thumbs-nav-next").removeClass("grve-hide-nav")},ajaxProductFilters:function(){i.on("click",".grve-product-filter .grve-product-filter-item",function(t){t.preventDefault();var i=e(this),a=i.data("value"),r=i.parents(".grve-product-filter-options"),n=i.parents(".grve-product-filter-control"),s=i.parents(".grve-product-filter"),o=i.parents(".grve-product-filters-search");if(i.parent().parent().hasClass("grve-product-filter-ranges")){var l=a.min,c=a.max,g=n.find("input[type=hidden][name=min_price]"),d=n.find("input[type=hidden][name=max_price]");i.hasClass("selected")?(i.removeClass("selected"),g.val("").prop("disabled",!0),d.val("").prop("disabled",!0)):(n.find(".selected").removeClass("selected"),i.addClass("selected"),g.val(l).prop("disabled",!1),d.val(c),""!=c?d.prop("disabled",!1):d.prop("disabled",!0))}else{var v=n.find("input[type=hidden]"),h=v.val(),p=-1;if(s.hasClass("multiple")){if(v=r.next("input[type=hidden]"),h=h?h.split(","):[],p=h.indexOf(a),-1!==(p=-1!==p?p:h.indexOf(a.toString()))?h=_.without(h,a):h.push(a),v.val(h.join(",")),i.toggleClass("selected"),v.prop("disabled",h.length<=0),s.hasClass("attribute")){var u=v.next("input[name^=query_type_]");u.length&&u.prop("disabled",h.length<=1)}}else i.hasClass("selected")?(i.removeClass("selected"),v.val("").prop("disabled",!0)):(n.find(".selected").removeClass("selected"),i.addClass("selected"),v.val(a).prop("disabled",!1))}"click"==o.data("mode")&&GRVE.pageSettings.wooCommerce.sendAjaxProductFilters(o)}),i.on("change",".grve-product-filter .grve-product-filter-control select",function(){var t=e(this).parents(".grve-product-filters-search");"click"==t.data("mode")&&GRVE.pageSettings.wooCommerce.sendAjaxProductFilters(t)}),i.on("click",".grve-product-filters-search .grve-filter-show-button",function(t){t.preventDefault();var i=e(this).parents(".grve-product-filters-search");GRVE.pageSettings.wooCommerce.sendAjaxProductFilters(i)}),i.on("click",".grve-product-filters-search .grve-filter-clear-button",function(t){t.preventDefault();var i=e(this).parents(".grve-product-filters-search");GRVE.pageSettings.wooCommerce.resetAjaxProductFilters(i)}),i.on("click",".grve-product-activated-filters .grve-clear-filters",function(t){t.preventDefault();var i=e(".grve-product-filters-search");GRVE.pageSettings.wooCommerce.resetAjaxProductFilters(i)}),i.on("click",".grve-product-activated-filters .grve-product-filter-remove",function(t){t.preventDefault();var i=e(this),a=e(".grve-product-filters-search"),r=a.find(".grve-product-filters"),n=i.data("name"),s=i.data("value"),o=r.find(".grve-product-filter."+n);if(i.remove(),o.length){var l=o.find(":input[name="+n+"]"),c=l.val();"price"==n?(o.find(":input[name=min_price]").val("").prop("disabled",!0),o.find(":input[name=max_price]").val("").prop("disabled",!0),o.find(".grve-product-filter-item").removeClass("selected")):l.is("select")?(l.prop("selectedIndex",0),l.trigger("change")):(c=(c=(c=c.replace(s+",","")).replace(","+s,"")).replace(s,""),l.val(c),o.find("[data-value="+s+"]").removeClass("selected"),""==c&&l.prop("disabled",!0)),GRVE.pageSettings.wooCommerce.sendAjaxProductFilters(a)}})},sendAjaxProductFilters:function(t){if(e(".grve-product-wrapper").addClass("grve-loading"),e(".grve-product-filter-item").addClass("grve-loading"),r.hasClass("grve-filters-area-open")){e("#grve-filters-area").find(".grve-close-btn").trigger("click")}var i=t.prop("action")+"?"+t.serialize();e.ajax({type:"POST",url:i,cache:!1}).done(function(t){var r=e(".grve-product-wrapper"),n=e(".woocommerce-result-count"),s=e(t).find(".grve-product-wrapper"),o=e(t).find(".woocommerce-result-count");r.replaceWith(s),n.replaceWith(o),window.history.pushState("","",i),a.trigger("grve_after_ajax_products"),GRVE.pageSettings.wooCommerce.toggleActiveFilters();var l=GRVE.pageSettings.wooCommerce.getActiveColumns();GRVE.pageSettings.wooCommerce.changeProductsColumns(l),e(".grve-product-wrapper").removeClass("grve-loading"),e(".grve-product-filter-item").removeClass("grve-loading")})},resetAjaxProductFilters:function(e){e.get(0).reset(),e.find(".selected").removeClass("selected"),e.find(":input").not('[type="button"], [type="submit"], [type="reset"], [name^=query_type_]').val("").trigger("change").filter('[type="hidden"],[name="min_price"],[name="max_price"]').prop("disabled",!0),e.find("input[name^=query_type_]").prop("disabled",!0),a.trigger("grve_product_filters_cleared"),window.history.pushState("","",""),GRVE.pageSettings.wooCommerce.sendAjaxProductFilters(e)},toggleActiveFilters:function(){var t=e(".grve-product-activated-filters");t.find(".grve-product-activated-filters-inner").children().length>1?t.addClass("grve-show"):t.removeClass("grve-show")},toggleFilters:function(){i.on("click",".grve-filters-btn.grve-toggle-filters",function(t){t.preventDefault(),e(this).toggleClass("grve-hide-filters"),e("#grve-products-filter-wrapper").toggleClass("grve-hide-filters")})},productsColumnsSwitcher:function(){e("#grve-products-columns-switcher").on("click","a",function(t){t.preventDefault();
1var i=e(this),a=i.data("columns");i.addClass("grve-selected grve-bg-primary-1").siblings().removeClass("grve-selected grve-bg-primary-1"),GRVE.pageSettings.wooCommerce.changeProductsColumns(a)})},changeProductsColumns:function(t){var i=e(".grve-products");i.length&&i.removeClass("grve-column-2 grve-column-3 grve-column-4 grve-column-5").addClass("grve-column-"+t)},getActiveColumns:function(){var t=e("#grve-products-columns-switcher"),i=4;return t.length&&(i=t.find("a.grve-selected").data("columns")),i}}},GRVE.helpers={getTopBarHeight:function(){var e=0;return h.length&&(e=h.outerHeight()),e},getMaxHeights:function(t,i){var a=[];return e.each(t,function(t,r){var n=e(r).find(i).css("height","auto").outerHeight();a.push(n)}),Math.max.apply(Math,a)+2},inViewport:function(e){var t=a.scrollTop(),i=t+a.height(),r=e.offset().top,n=r+e.outerHeight();return i>=r&&t<=n},getScrollDirection:function(){var e=a.scrollTop(),t="down";return e>w&&"up"===t?t="down":e<w&&"down"===t&&(t="up"),w=e,t},smoothScrollTo:function(t,i){var a=v.length?v.outerHeight():0;x=!0,e("html,body").animate({scrollTop:t.offset().top-GRVE.headerSettings.mainHeader.getHeaderHeight()-a+1},{complete:function(e,t,a){i&&"function"==typeof i&&i()}},1e3,function(){x=!1})},linkGoToTop:function(t,i,a){var r=t.offset().top,n=!(!o.length||!l.is(":visible")),s=!(!e("#grve-responsive-header").length||!e("#grve-responsive-header").is(":visible")),c=n&&"none"!=o.data("sticky")?l.outerHeight():0,g=s&&"yes"==o.data("devices-sticky")?e("#grve-responsive-header").outerHeight():0,d=GRVE.helpers.getTopBarHeight(),v=e(".grve-anchor-menu").length?e(".grve-anchor-menu").outerHeight():0,h=void 0!==i?i:300,p=d+M+c+g+v+(void 0!==a?a:0);if(r>0)return e("html, body").delay(h).animate({scrollTop:r-p},900,"easeInOutCubic"),e("html, body").on("scroll mousedown DOMMouseScroll mousewheel keyup",function(){e("html, body").stop()}),!1},getScrollBarWidth:function(){var t,i,a;return void 0===a&&(a=(i=(t=e('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body")).children()).innerWidth()-i.height(99).innerWidth(),t.remove()),a},splitText:function(t,i,a){var r=e(t),n=void 0!=a?a:20;if(r.length){var s="word"==i?r.text().split(" "):r.text().split("");r.empty();for(var o in s){var l=e('<span class="grve-char"><span>'+s[o]+"</span></span>");r.append(l),"word"==i?r.append('<span class="grve-char grve-break-space"><span> </span></span>'):" "==s[o]&&l.addClass("grve-break-space"),0!==n&&l.children().css("transition-delay",o*n+"ms")}r.addClass("grve-split-text")}},isMobile:{Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return this.Android()||this.BlackBerry()||this.iOS()||this.Opera()||this.Windows()}}};var t,i=e(document),a=e(window),r=e("body"),n=e("#grve-theme-content"),s=e("#grve-content"),o=(e(".grve-single-wrapper"),e("#grve-header")),l=e("#grve-main-header"),c=e("#grve-main-header"),g="none",d=(l.data("header-skin"),e(".grve-vertical-menu")),v=(e("#grve-offcanvas-area"),e("#grve-main-responsive-header"),e("#grve-responsive-menu-area"),e(".grve-anchor-menu")),h=e("#grve-top-bar"),p=e("#grve-feature-section"),u=e("#grve-feature-slider"),f=(e("#grve-feature-advanced-slider"),e(".grve-title-section"),e("#grve-sidebar")),m=e(".grve-section"),b=e(".grve-sticky-widget"),C=e(".grve-bg-video"),y=e(".grve-sticky-element"),k=GRVE.helpers.getScrollBarWidth(),w=0,x=!1,S=!1,T=!1,R=!1,E=!1,A=!1,H=e("#grve-frames").find(".grve-frame.grve-top").length?e("#grve-frames").find(".grve-frame.grve-top").height():0,V=e(".grve-back-top"),z=1==impeka_grve_main_data.device_animations,P=2048,G=1200,I=1023,D=767,M=e(".grve-body").hasClass("admin-bar")?32:0;e(function(){GRVE.init(),a.on("scroll.grve_window_scroll",function(){GRVE.onScroll()})}),a.on("load",function(){GRVE.onLoad()}),a.on("grve_after_page_transition",function(){GRVE.afterTransition()}),a.on("resize.grve_window_resize",function(){window.clearTimeout(t),t=window.setTimeout(function(){GRVE.onResize()},150)}),e(".grve-woo-theme-gallery").on("wc-product-gallery-after-init",function(e,t,i){window.setTimeout(function(){GRVE.pageSettings.wooCommerce.wooThumbCarousel()},300)})}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.