var wpex={};$.fn.wpexEqualHeights=function(t){var e=this,i=$(window),s=$.extend({children:"",mobileBreakPoint:"",reset:!1},t);function o(t,o){var n=0;s.children&&((t=t.find(s.children).not(".vc_row.vc_inner .vc_column-inner")).each(function(){var t=$(this);if(o&&t.css("height",""),$height=t.outerHeight(!0),0!=t.children().length){$height=0;for(var e=t.children(),i=0;in&&(n=$height),window.wpexAnimsition.equal_height||t.css("height",$height+"px")}),window.wpexAnimsition.equal_height&&t.css("height",n+"px"))}$(s.children).length&&(e.each(function(){var t=$(this);t.is(window.wpexAnimsition.container_block)?o(t,!1):t.imagesLoaded(function(){o(t,!1)})}),i.resize(function(){e.each(function(){o($(this),!0)})}))},function(k){"use strict";(wpex={init:function(){this.config(),this.bindEvents()},config:function(){this.config={$window:k(window),$document:k(document),$head:k("head"),windowWidth:k(window).width(),windowHeight:k(window).height(),windowTop:k(window).scrollTop(),$body:k("body"),viewportWidth:"",$wpAdminBar:null,isRetina:!1,heightChanged:!1,widthChanged:!1,isRTL:!1,iLightboxSettings:{},vcActive:!1,isMobile:!1,mobileMenuStyle:null,mobileMenuToggleStyle:null,mobileMenuBreakpoint:960,$siteWrap:null,$siteMain:null,$siteHeader:null,siteHeaderStyle:null,siteHeaderHeight:0,siteHeaderTop:0,siteHeaderBottom:0,verticalHeaderActive:!1,hasHeaderOverlay:!1,hasStickyHeader:!1,stickyHeaderStyle:null,hasStickyMobileHeader:!1,hasStickyNavbar:!1,$siteLogo:null,siteLogoHeight:0,siteLogoSrc:null,$siteNavWrap:null,$siteNav:null,$siteNavDropdowns:null,$localScrollTargets:"li.local-scroll a, a.local-scroll, .local-scroll-link, .local-scroll-link > a",localScrollOffset:0,localScrollSpeed:600,localScrollEasing:"easeInOutCubic",localScrollSections:[],hasTopBar:!1,hasStickyTopBar:!1,$stickyTopBar:null,hasStickyTopBarMobile:!1,hasFixedFooter:!1}},bindEvents:function(){var t=this;t.config.$document.ready(function(){t.initUpdateConfig(),t.responsiveText(),t.superfish(),t.mobileMenu(),t.navNoClick(),t.hideEditLink(),t.menuWidgetAccordion(),t.inlineHeaderLogo(),t.menuSearch(),t.headerCart(),t.backTopLink(),t.smoothCommentScroll(),t.tipsyTooltips(),t.customHovers(),t.toggleBar(),t.localScrollLinks(),t.customSelects(),t.wpexOwlCarousel(),t.autoLightbox(),t.iLightbox(),t.overlayHovers(),t.skillbar(),t.milestone(),t.countdown(),t.typedText(),t.equalHeights(),t.archiveMasonryGrids(),t.isotopeGrids(),t.responsiveCSS(),t.vcexFilterNav(),t.ctf7Preloader(),t.vcAccessability(),t.vcPageEditable(),t.wooGallery(),t.twentytwenty()}),t.config.$window.on("load",function(){t.config.$body.addClass("wpex-window-loaded"),t.windowLoadUpdateConfig(),t.megaMenusWidth(),t.megaMenusTop(),t.flushDropdownsTop(),t.fadeIn(),t.parallax(),t.cartDropdownRelocate(),t.sliderPro(),t.stickyTopBar(),t.vcTabsTogglesJS(),t.headerOverlayOffset(),t.config.hasStickyHeader&&(t.stickyHeaderStyle=wpexLocalize.stickyHeaderStyle,"standard"!=t.stickyHeaderStyle&&"shrink"!=t.stickyHeaderStyle&&"shrink_animated"!=t.stickyHeaderStyle||t.stickyHeader()),t.stickyHeaderMenu(),t.stickyVcexNavbar(),t.footerReveal(),t.fixedFooter(),t.titleBreadcrumbsFix(),void 0!==k.fn.infinitescroll&&k("div.infinite-scroll-nav").length&&t.infiniteScrollInit(),t.loadMore(),wpexLocalize.scrollToHash&&window.setTimeout(function(){t.scrollToHash(t)},parseInt(wpexLocalize.scrollToHashTimeout))}),t.config.$window.resize(function(){t.config.widthChanged=!1,t.config.heightChanged=!1,t.config.$window.width()!=t.config.windowWidth&&(t.config.widthChanged=!0,t.widthResizeUpdateConfig()),t.config.$window.height()!=t.config.windowHeight&&(t.config.windowHeight=t.config.$window.height(),t.config.heightChanged=!0)}),t.config.$window.scroll(function(){t.config.$hasScrolled=!1,t.config.$window.scrollTop()!=t.config.windowTop&&(t.config.$hasScrolled=!0,t.config.windowTop=t.config.$window.scrollTop(),t.localScrollHighlight())}),t.config.$window.on("orientationchange",function(){t.widthResizeUpdateConfig(),t.isotopeGrids(),t.vcexFilterNav(),t.archiveMasonryGrids()})},initUpdateConfig:function(){var t=this,e=(t.config.$body.addClass("wpex-docready"),t.config.vcActive=this.config.$body.hasClass("wpb-js-composer"),t.config.viewportWidth=t.viewportWidth(),t.config.isRetina=t.retinaCheck(),t.config.isRetina&&t.config.$body.addClass("wpex-is-retina"),t.mobileCheck()&&(t.config.isMobile=!0,t.config.$body.addClass("wpex-is-mobile-device")),k("#wpadminbar")),e=(e.length&&(t.config.$wpAdminBar=e),k("#wrap")),e=(e&&(t.config.$siteWrap=e),k("#main"));e&&(t.config.$siteMain=e);k("#site-header").length&&(t.config.siteHeaderStyle=wpexLocalize.siteHeaderStyle,t.config.$siteHeader=k("#site-header"));var i,e=k("#site-logo img.logo-img"),e=(e.length&&(t.config.$siteLogo=e,t.config.siteLogoSrc=t.config.$siteLogo.attr("src")),k("#site-navigation-wrap")),e=(e.length&&(t.config.$siteNavWrap=e,(i=k("#site-navigation",e)).length&&(t.config.$siteNav=i),wpexLocalize.hasStickyNavbar&&(t.config.hasStickyNavbar=!0),i=k(".dropdown-menu > .menu-item-has-children > ul",e),e.length&&(t.config.$siteNavDropdowns=i)),wpexLocalize.hasMobileMenu&&(t.config.mobileMenuStyle=wpexLocalize.mobileMenuStyle,t.config.mobileMenuToggleStyle=wpexLocalize.mobileMenuToggleStyle,t.config.mobileMenuBreakpoint=wpexLocalize.mobileMenuBreakpoint),t.config.$body.hasClass("wpex-has-fixed-footer")&&(t.config.hasFixedFooter=!0),t.config.$footerReveal=k(".footer-reveal-visible"),t.config.$footerReveal.length&&t.config.$siteWrap&&t.config.$siteMain&&(t.config.$hasFooterReveal=!0),t.config.$siteHeader&&t.config.$body.hasClass("has-overlay-header")&&(t.config.hasHeaderOverlay=!0),k("#top-bar-wrap"));e.length&&(t.config.hasTopBar=!0,e.hasClass("wpex-top-bar-sticky")&&(t.config.$stickyTopBar=e,t.config.$stickyTopBar.length&&(t.config.hasStickyTopBar=!0,t.config.hasStickyTopBarMobile=wpexLocalize.hasStickyTopBarMobile))),t.config.hasStickyMobileHeader=wpexLocalize.hasStickyMobileHeader,t.config.$siteHeader&&wpexLocalize.hasStickyHeader&&(t.config.hasStickyHeader=!0),this.config.$body.hasClass("wpex-has-vertical-header")&&(t.config.verticalHeaderActive=!0),wpexLocalize.localScrollSpeed&&(t.config.localScrollSpeed=parseInt(wpexLocalize.localScrollSpeed)),wpexLocalize.localScrollEasing&&(t.config.localScrollEasing=wpexLocalize.localScrollEasing,"false"==t.config.localScrollEasing&&(t.config.localScrollEasing="swing")),t.config.localScrollSections=t.localScrollSections()},windowLoadUpdateConfig:function(){var t;this.config.$siteHeader&&(t=this.config.$siteHeader.offset().top,this.config.windowHeight=this.config.$window.height(),this.config.siteHeaderHeight=this.config.$siteHeader.outerHeight(),this.config.siteHeaderBottom=t+this.config.siteHeaderHeight,this.config.siteHeaderTop=t,this.config.$siteLogo&&(this.config.siteLogoHeight=this.config.$siteLogo.height())),this.config.localScrollOffset=this.parseLocalScrollOffset("init")},widthResizeUpdateConfig:function(){this.config.windowHeight=this.config.$window.height(),this.config.windowWidth=this.config.$window.width(),this.config.windowTop=this.config.$window.scrollTop(),this.config.viewportWidth=this.viewportWidth(),this.config.$siteHeader&&(this.config.siteHeaderHeight=this.config.$siteHeader.outerHeight()),this.config.$siteLogo&&(this.config.siteLogoHeight=this.config.$siteLogo.height()),this.config.windowWidth<960?this.config.verticalHeaderActive=!1:this.config.$body.hasClass("wpex-has-vertical-header")&&(this.config.verticalHeaderActive=!0),this.config.localScrollOffset=this.parseLocalScrollOffset("resize"),this.megaMenusWidth(),this.inlineHeaderLogo(),this.cartDropdownRelocate(),this.overlayHovers(),this.responsiveText()},retinaCheck:function(){return 1 ul",this.config.$siteNavWrap)).length&&(i=(e=this.config.$siteHeader.find(".container").outerWidth())-this.config.$siteNavWrap.outerWidth()-(i="auto"==(i=parseInt(this.config.$siteNavWrap.css("right")))?0:i),t.css({width:e,"margin-left":-i})))},megaMenusTop:function(){var i,o=this;function t(){var t,e;o.config.$siteNavWrap.is(":visible")&&(t=o.config.$siteHeader.outerHeight(),e=o.config.$siteNavWrap.outerHeight(),i.css({top:(t-e)/2+e}))}!o.config.$siteNavDropdowns||"one"!=o.config.siteHeaderStyle||(i=k(".megamenu > ul",o.config.$siteNavWrap)).length&&(t(),this.config.$window.scroll(function(){t()}),this.config.$window.resize(function(){t()}),k(".megamenu > a",o.config.$siteNav).hover(function(){t()}))},flushDropdownsTop:function(){var i=this;function t(){var t,e;i.config.$siteNavWrap.is(":visible")&&(t=i.config.$siteHeader.outerHeight(),e=i.config.$siteNavWrap.outerHeight(),i.config.$siteNavDropdowns.css("top",(t-e)/2+e))}i.config.$siteNavDropdowns&&i.config.$siteNavWrap.hasClass("wpex-flush-dropdowns")&&(t(),this.config.$window.scroll(function(){t()}),this.config.$window.resize(function(){t()}),k(".wpex-flush-dropdowns li.menu-item-has-children > a").hover(function(){t()}))},mobileMenu:function(){"sidr"==this.config.mobileMenuStyle&&void 0!==wpexLocalize.sidrSource?this.mobileMenuSidr():"toggle"==this.config.mobileMenuStyle?this.mobileMenuToggle():"full_screen"==this.config.mobileMenuStyle&&this.mobileMenuFullScreen()},mobileMenuSidr:function(){var e=this,t=k("a.mobile-menu-toggle, li.mobile-menu-toggle > a"),i=(e.config.$body.append('
'),k(".wpex-sidr-overlay")),o=(t.click(function(){k(this).toggleClass("wpex-active")}),t.sidr({name:"sidr-main",source:wpexLocalize.sidrSource,side:wpexLocalize.sidrSide,displace:wpexLocalize.sidrDisplace,speed:parseInt(wpexLocalize.sidrSpeed),renaming:!0,bind:"click",onOpen:function(){k("#sidr-main").addClass("wpex-mobile-menu"),wpexLocalize.sidrBodyNoScroll&&e.config.$body.addClass("wpex-noscroll"),i.fadeIn(wpexLocalize.sidrSpeed,function(){i.addClass("wpex-custom-cursor")}),k(".wpex-sidr-overlay").on("click",function(t){return k.sidr("close","sidr-main"),!1})},onClose:function(){t.removeClass("wpex-active"),wpexLocalize.sidrBodyNoScroll&&e.config.$body.removeClass("wpex-noscroll"),i.removeClass("wpex-custom-cursor").fadeOut(wpexLocalize.sidrSpeed)},onCloseEnd:function(){k(".sidr-class-menu-item-has-children.active").removeClass("active").find("ul").hide(),void 0!==k.fn.vc_rowBehaviour&&vc_rowBehaviour()}}),k("#sidr-main")),n=k(".sidr-class-dropdown-menu",o),s=k(".sidr-class-menu-item-has-children > a",n);k(".sidr-class-menu-item-has-children",n).children("a").append(''),s.on("click",function(t){var e,i=k(this).parent("li");return i.hasClass("active")?(i.removeClass("active"),i.find("li").removeClass("active"),i.find("ul").stop(!0,!0).slideUp("fast")):(e=i.parents("li"),k(".sidr-class-menu-item-has-children",n).not(e).removeClass("active").children("ul").stop(!0,!0).slideUp("fast"),i.addClass("active").children("ul").stop(!0,!0).slideDown("fast")),!1}),k("li.sidr-class-menu-item-has-children > a",n).each(function(){var t,e,i=k(this);i&&i.attr("href")&&"#"!=i.attr("href")&&(e=(t=i.parent("li")).clone(),i.removeAttr("data-ls_linkto"),t.removeClass("sidr-class-local-scroll"),e.removeClass("sidr-class-menu-item-has-children sidr-class-dropdown"),e.find("a").removeClass(),e.find("ul, .sidr-class-dropdown-toggle").remove().end().prependTo(i.next("ul")))}),k("[class*='sidr-class-fa']",o).attr("class",function(t,e){return e=(e=e.replace("sidr-class-fa","fa")).replace("sidr-class-fa-","fa-")}),k(".sidr-class-wpex-close > a",o).on("click",function(t){t.preventDefault(),k.sidr("close","sidr-main")}),e.config.$window.resize(function(){e.config.viewportWidth>=e.config.mobileMenuBreakpoint&&k.sidr("close","sidr-main")}),k("li.sidr-class-local-scroll > a",o).click(function(){var t=this.hash;if(-1 a"),r=("fixed_top"==t.config.mobileMenuToggleStyle?(s=k("#wpex-mobile-menu-fixed-top")).length&&s.append(''):"absolute"==e?"navbar"==t.config.mobileMenuToggleStyle?(s=k("#wpex-mobile-menu-navbar")).length&&s.append(''):s&&s.append(''):("afterself"==e&&(s=k("#wpex-mobile-menu-navbar")),k('').insertAfter(s)),k(".mobile-toggle-nav"));k("#mobile-menu-alternative").length?(o=k("#mobile-menu-alternative .dropdown-menu").html(),k("#mobile-menu-alternative").remove()):o=k(".dropdown-menu",t.config.$siteNav).html(),r.html('
    '+o+"
"),k(".mobile-toggle-nav-ul, .mobile-toggle-nav-ul *").children().each(function(){k(this).removeAttr("style")}),k(".mobile-toggle-nav-ul").addClass("container");r.find("li.menu-item-has-children > a").each(function(){var t,e,i=k(this);i&&i.attr("href")&&"#"!=i.attr("href")&&(e=(t=i.parent("li")).clone(),t.removeClass("local-scroll"),i.removeAttr("data-ls_linkto"),e.removeClass("menu-item-has-children"),e.find("ul, .wpex-open-submenu").remove().end().prependTo(i.next("ul")))});r.find(".menu-item-has-children").children("a").append('');e=k(".menu-item-has-children > a",r);function l(t){(wpexLocalize.animateMobileToggle?r.stop(!0,!0).slideUp("fast"):r).removeClass("visible"),r.find("li.active > ul").stop(!0,!0).slideUp("fast"),r.find(".active").removeClass("active"),t.removeClass("wpex-active")}e.on("click",function(t){var e,i=k(this).parent("li");return i.hasClass("active")?(i.removeClass("active"),i.find("li").removeClass("active"),i.find("ul").stop(!0,!0).slideUp("fast")):(e=i.parents("li"),k(".menu-item-has-children",r).not(e).removeClass("active").children("ul").stop(!0,!0).slideUp("fast"),i.addClass("active").children("ul").stop(!0,!0).slideDown("fast")),!1}),a.on("click",function(t){var e;return r.hasClass("visible")?l(k(this)):(e=k(this),(wpexLocalize.animateMobileToggle?r.stop(!0,!0).slideDown("fast"):r).addClass("visible"),e.addClass("wpex-active")),!1}),t.config.$window.resize(function(){t.config.viewportWidth>=t.config.mobileMenuBreakpoint&&r.hasClass("visible")&&l(a)}),n.length&&(r.append(''),k(".mobile-toggle-nav-search").append(n))},mobileMenuFullScreen:function(){var e=this,t=wpexLocalize.fullScreenMobileMenuStyle||!1,i=k("#mobile-menu-search"),o="",t=(e.config.$body.append('
×
'),k(".full-screen-overlay-nav-ul")),n=(k("#mobile-menu-alternative").length?(o=k("#mobile-menu-alternative .dropdown-menu").html(),k("#mobile-menu-alternative").remove()):o=k("#site-navigation .dropdown-menu").html(),t.html(o),k(".full-screen-overlay-nav"));k(".full-screen-overlay-nav, .full-screen-overlay-nav *").children().each(function(){k(this).removeAttr("style")});n.find("li.menu-item-has-children > a").each(function(){var t,e,i=k(this);i&&i.attr("href")&&"#"!=i.attr("href")&&(e=(t=i.parent("li")).clone(),t.removeClass("local-scroll"),i.removeAttr("data-ls_linkto"),e.removeClass("menu-item-has-children"),e.find("ul").remove().end().prependTo(i.next("ul")))}),n.find("li.menu-item-has-children > a").on("click",function(t){var e,i=k(this).parent("li");return i.hasClass("wpex-active")?(i.removeClass("wpex-active"),i.find("li").removeClass("wpex-active"),i.find("ul").stop(!0,!0).slideUp("fast")):(e=i.parents("li"),n.find(".menu-item-has-children").not(e).removeClass("wpex-active").children("ul").stop(!0,!0).slideUp("fast"),i.addClass("wpex-active").children("ul").stop(!0,!0).slideDown({duration:"normal",easing:"easeInQuad"})),!1}),k(".mobile-menu-toggle").on("click",function(){return n.addClass("visible"),e.config.$body.addClass("wpex-noscroll"),!1}),k(".local-scroll > a",n).click(function(){var t=this.hash;if(-1 ul").stop(!0,!0).slideUp("fast"),n.find(".wpex-active").removeClass("wpex-active"),e.config.$body.removeClass("wpex-noscroll"),!1}),i.length&&(t.append(i),k("#mobile-menu-search").wrap(''))},navNoClick:function(){k("li.nav-no-click > a, li.sidr-class-nav-no-click > a").on("click",function(){return!1})},menuSearch:function(){var i,o,n,e="",t=k(".header-searchform-wrap");t.length&&(t.data("placeholder")&&t.find('input[type="search"]').attr("placeholder",t.data("placeholder")),t.data("disable-autocomplete")&&t.find('input[type="search"]').attr("autocomplete","off")),"drop_down"==wpexLocalize.menuSearchStyle?(e=k("a.search-dropdown-toggle, a.mobile-menu-search"),i=k("#searchform-dropdown"),e.click(function(t){i.toggleClass("show"),k(this).parent("li").toggleClass("active");var e=i.css("transition-duration");return(e=1e3*e.replace("s",""))&&setTimeout(function(){i.find('input[type="search"]').focus()},e),k("div#current-shop-items-dropdown").removeClass("show"),k("li.wcmenucart-toggle-dropdown").removeClass("active"),!1}),this.config.$document.on("click",function(t){k(t.target).closest("#searchform-dropdown.show").length||(e.parent("li").removeClass("active"),i.removeClass("show"))})):"overlay"==wpexLocalize.menuSearchStyle?(e=k("a.search-overlay-toggle, a.mobile-menu-search, li.search-overlay-toggle > a"),t=(o=k("#wpex-searchform-overlay")).find(".wpex-inner"),e.on("click",function(t){var e;return o.toggleClass("active"),o.find('input[type="search"]').val(""),o.hasClass("active")&&(e=1e3*(e=o.css("transition-duration")).replace("s",""),setTimeout(function(){o.find('input[type="search"]').focus()},e)),!1}),t.click(function(t){t.stopPropagation()}),o.click(function(){o.removeClass("active")})):"header_replace"==wpexLocalize.menuSearchStyle&&(e=k("a.search-header-replace-toggle, a.mobile-menu-search"),n=k("#searchform-header-replace"),e.click(function(t){n.toggleClass("show");var e=n.css("transition-duration");return(e=1e3*e.replace("s",""))&&setTimeout(function(){n.find('input[type="search"]').focus()},e),!1}),k("#searchform-header-replace-close").click(function(){return n.removeClass("show"),!1}),this.config.$document.on("click",function(t){k(t.target).closest(k("#searchform-header-replace.show")).length||n.removeClass("show")}))},headerCart:function(){var t,e,i,o;k("a.wcmenucart").hasClass("go-to-shop")||(t=k(".toggle-cart-widget, li.toggle-header-cart > a")).length&&("drop_down"==wpexLocalize.wooCartStyle?(e=k("div#current-shop-items-dropdown")).length&&(t.click(function(){return k("#searchform-dropdown").removeClass("show"),k("a.search-dropdown-toggle").parent("li").removeClass("active"),e.toggleClass("show"),k(this).toggleClass("active"),!1}),e.click(function(t){t.stopPropagation()}),this.config.$document.click(function(){e.removeClass("show"),t.removeClass("active")})):"overlay"==wpexLocalize.wooCartStyle&&(o=(i=k("#wpex-cart-overlay")).find(".wpex-inner"),t.on("click",function(t){return i.toggleClass("active"),!1}),o.click(function(t){t.stopPropagation()}),i.click(function(){i.removeClass("active")})))},headerOverlayOffset:function(){var t,e,i,o=k(".add-overlay-header-offset");o.length&&(e=(t=this).config.siteHeaderHeight)&&(i=k('
'),o.prepend(i),t.config.$window.resize(function(){i.css("height",t.config.siteHeaderHeight)}))},cartDropdownRelocate:function(){var t,e,i,o;this.config.hasHeaderOverlay||!this.config.$siteHeader||!this.config.$siteHeader.hasClass("wpex-reposition-cart-search-drops")||(t=k(".dropdown-menu > li:nth-last-child(1)",this.config.$siteNav)).length&&(e=k("#current-shop-items-dropdown"),i=t.position(),o="",e.length&&(o=wpexLocalize.isRTL?i.left:i.left-e.outerWidth()+t.width(),e.css({right:"auto",left:o})))},hideEditLink:function(){k("a.hide-post-edit",k("#content")).click(function(){return k("div.post-edit").hide(),!1})},menuWidgetAccordion:function(){wpexLocalize.menuWidgetAccordion&&(k("#sidebar .widget_nav_menu .current-menu-ancestor, .widget_nav_menu_accordion .widget_nav_menu .current-menu-ancestor",this.config.$siteMain).addClass("active").children("ul").show(),k("#sidebar .widget_nav_menu, .widget_nav_menu_accordion .widget_nav_menu",this.config.$siteMain).each(function(){var o=k(this).find(".menu-item-has-children");o.each(function(){k(this).addClass("parent"),k(this).children("a").on("click",function(t){var e=k(this).parent("li"),i=e.parents("li");return e.hasClass("active")?e.removeClass("active").children(".sub-menu").stop(!0,!0).slideUp("fast"):(o.not(i).removeClass("active").children(".sub-menu").slideUp("fast"),e.addClass("active").children(".sub-menu").stop(!0,!0).slideDown("fast")),!1})})}))},inlineHeaderLogo:function(){var t,e,i,o;"five"==this.config.siteHeaderStyle&&(t=k("#site-header-inner > .header-five-logo",this.config.$siteHeader),i=(e=k(".navbar-style-five",this.config.$siteHeader)).children("#site-navigation").children("ul").children("li").size(),i=Math.round(i/2)-parseInt(wpexLocalize.headerFiveSplitOffset),o=k(".menu-item-logo .header-five-logo"),this.config.viewportWidth>this.config.mobileMenuBreakpoint&&t.length&&e.length&&(k('').insertAfter(e.find("#site-navigation > ul > li:nth( "+i+" )")),t.appendTo(e.find(".menu-item-logo"))),this.config.viewportWidtht?o.addClass("show"):o.removeClass("show")}),o.on("click",function(t){return k("html, body").stop(!0,!0).animate({scrollTop:0},e,i.config.localScrollEasing),!1}))},smoothCommentScroll:function(){var o=this;k(".single li.comment-scroll a").click(function(t){var e=k("#comments"),i=e.offset().top-o.config.localScrollOffset-20;return o.scrollTo(e,i),!1})},tipsyTooltips:function(){k("a.tooltip-left").tipsy({fade:!0,gravity:"e"}),k("a.tooltip-right").tipsy({fade:!0,gravity:"w"}),k("a.tooltip-up").tipsy({fade:!0,gravity:"s"}),k("a.tooltip-down").tipsy({fade:!0,gravity:"n"})},responsiveText:function(){var s=this;k(".wpex-responsive-txt").each(function(){var t=k(this),e=t.width(),i=t.data(),o=s.parseData(i.minFontSize,13),n=s.parseData(i.maxFontSize,40),e=e/s.parseData(i.responsiveTextRatio,10);t.css("font-size",(n a"),o=k("#toggle-bar-wrap");i.length&&o.length&&(i.on("click",function(t){var e=k(".toggle-bar-btn").find(".fa");return e.length&&(e.toggleClass(i.data("icon")),e.toggleClass(i.data("icon-hover"))),o.toggleClass("active-bar"),!1}),this.config.$document.on("click",function(t){k(t.target).closest("#toggle-bar-wrap.active-bar").length||(o.removeClass("active-bar"),(t=i.children(".fa")).length&&t.removeClass(i.data("icon-hover")).addClass(i.data("icon")))}))},skillbar:function(t){void 0!==k.fn.appear&&k(".vcex-skillbar",t).each(function(){var t=k(this);t.appear(function(){t.find(".vcex-skillbar-bar").animate({width:k(this).attr("data-percent")},800)})},{accX:0,accY:0})},milestone:function(r){"function"==typeof CountUp&&void 0!==k.fn.appear&&k(".vcex-countup",r).each(function(){var t=k(this),e=t.data("options"),i=e.startVal,o=e.endVal,n=e.decimals,s=e.duration,e={useEasing:!0,useGrouping:!0,separator:e.separator,decimal:e.decimal,prefix:"",suffix:""},a=new CountUp(this,i,o,n,s,e);r?a.start():t.appear(function(){a.start()})})},twentytwenty:function(t){void 0!==k.fn.twentytwenty&&void 0!==k.fn.imagesLoaded&&k(".vcex-image-ba",t).each(function(){var t=k(this);t.imagesLoaded(function(){t.twentytwenty(t.data("options"))})})},countdown:function(t){void 0!==k.fn.countdown&&k(".vcex-countdown",t).each(function(){var e=k(this),t=e.data("countdown"),i=e.data("days"),o=e.data("hours"),n=e.data("minutes"),s=e.data("seconds"),a=e.data("timezone");(t=a&&void 0!==moment.tz&&k.isFunction(moment.tz)?moment.tz(t,a).toDate():t)&&e.countdown(t,function(t){e.html(t.strftime('
%-D '+i+'
%-H '+o+'
%-M '+n+'
%-S '+s+"
"))})})},typedText:function(t){"function"==typeof Typed&&void 0!==k.fn.appear&&k(".vcex-typed-text",t).each(function(){var t=k(this),e=t.data("settings");t.appear(function(){e.typeSpeed=parseInt(e.typeSpeed),e.backDelay=parseInt(e.backDelay),e.backSpeed=parseInt(e.backSpeed),e.startDelay=parseInt(e.startDelay),e.strings=t.data("strings");new Typed(this,e)})})},parallax:function(t){k(".wpex-parallax-bg",t).each(function(){var t=k(this);t.scrolly2().trigger("scroll"),t.css({opacity:1})})},parseLocalScrollOffset:function(t){var e=this,i=0;if(wpexLocalize.localScrollOffset)return wpexLocalize.localScrollOffset;wpexLocalize.localScrollExtraOffset&&(i+=parseInt(wpexLocalize.localScrollExtraOffset)),k("#wpadminbar").is(":visible")&&(i=parseInt(i)+parseInt(k("#wpadminbar").outerHeight())),"fixed_top"==e.config.mobileMenuToggleStyle&&(o=k("#wpex-mobile-menu-fixed-top")).length&&o.is(":visible")&&(i=parseInt(i)+parseInt(o.outerHeight())),e.config.hasStickyTopBar&&(i=parseInt(i)+parseInt(e.config.$stickyTopBar.outerHeight())),e.config.hasStickyHeader&&(!e.config.hasStickyMobileHeader&&e.config.windowWidth<=wpexLocalize.stickyHeaderBreakPoint?i=parseInt(i)+0:e.config.$siteHeader.hasClass("shrink-sticky-header")?"init"!=t&&!e.config.$siteHeader.is(":visible")||(i=parseInt(i)+parseInt(wpexLocalize.shrinkHeaderHeight)):i=parseInt(i)+parseInt(e.config.siteHeaderHeight)),e.config.hasStickyNavbar&&e.config.viewportWidth>=wpexLocalize.stickyNavbarBreakPoint&&(i=parseInt(i)+parseInt(e.config.$siteNavWrap.outerHeight()));var o=k(".vcex-navbar-sticky");return i=(i=o.length?parseInt(i)+parseInt(o.outerHeight()):i)?i-1:0},scrollTo:function(t,e,i){var o,n,s,a,r,l,c;t&&(o=null,n=k("html, body"),s=!1,(l=k('[data-ls_id="'+t+'"]')).length?(o=l,s=!0):o="string"==typeof t?k(t):t,o.length&&(a=this.config.localScrollSpeed?parseInt(this.config.localScrollSpeed):1e3,r=this.config.localScrollOffset,l=this.config.localScrollEasing,e=e||o.offset().top-r,t&&s&&wpexLocalize.localScrollUpdateHash&&(window.location.hash=t),(c=k(".mobile-toggle-nav")).hasClass("visible")?(k("a.mobile-menu-toggle, li.mobile-menu-toggle > a").removeClass("wpex-active"),wpexLocalize.animateMobileToggle?c.slideUp("fast",function(){c.removeClass("visible"),n.stop(!0,!0).animate({scrollTop:o.offset().top-r},a)}):(c.hide().removeClass("visible"),n.stop(!0,!0).animate({scrollTop:o.offset().top-r},a))):n.stop(!0,!0).animate({scrollTop:e},a,l)))},scrollToHash:function(t){var e=location.hash,i="",o="";e&&("#view_comments"==e||"#comments_reply"==e?(o=(i=k("#comments")).offset().top-t.config.localScrollOffset-20,i.length&&t.scrollTo(i,o)):t.config.hasStickyHeader&&-1!=e.indexOf("comment-")?(o=(i=k(e)).offset().top-t.config.localScrollOffset-20,t.scrollTo(i,o)):-1!=e.indexOf("localscroll-")?t.scrollTo(e.replace("localscroll-","")):k('[data-ls_id="'+e+'"]').length&&t.scrollTo(e))},localScrollSections:function(){this.config.$siteNav&&(t=k("a",this.config.$siteNav),e=location,i=e.href,i=e.hash?i.substr(0,i.indexOf("#")):i,t.each(function(){var t=k(this),e=t.attr("href");e&&-1!=e.indexOf("localscroll-")&&(t.parent("li").addClass("local-scroll"),e.substr(0,e.indexOf("#"))==i&&(e=e.substring(e.indexOf("#")+1).replace("localscroll-",""),t.attr("data-ls_linkto","#"+e)))}));for(var t,e,i,o=[],n=k(this.config.$localScrollTargets),s=0;s=o.width()?e.hasClass("position-absolute")&&(e.removeClass("position-absolute"),e.addClass("position-under-title")):(e.removeClass("position-under-title"),e.addClass("position-absolute"))}this.config.$body.hasClass("has-breadcrumbs")&&(t=k(".page-header"),(e=k(".site-breadcrumbs.position-absolute",t)).length&&e.hasClass("has-js-fix")&&((i=k(".breadcrumb-trail",e)).length&&(o=k(".page-header-inner",t)).length&&(n=k(".page-header-title > span",o)).length&&(s(),this.config.$window.resize(function(){s()}))))},customSelects:function(t){k(wpexLocalize.customSelects,t).each(function(){var t,e=k(this),i=e.attr("id"),i=i?" wpex-"+i:"";e.is(":visible")&&((t=k("
")).insertBefore(e),t.append(e),e.attr("multiple")?t.attr("class","wpex-multiselect-wrap"+i):t.attr("class","wpex-select-wrap"+i))}),k(".wpex-select-wrap",t).append(''),void 0!==k.fn.select2&&k("#calc_shipping_country").select2()},fadeIn:function(){k(".fade-in-image, .wpex-show-on-load").addClass("no-opacity")},wpexOwlCarousel:function(t){void 0!==k.fn.wpexOwlCarousel&&void 0!==k.fn.imagesLoaded&&k(".wpex-carousel",t).each(function(){var t=k(this),e=t.data();t.imagesLoaded(function(){t.wpexOwlCarousel({animateIn:!1,animateOut:!1,lazyLoad:!1,smartSpeed:e.smartSpeed||wpexLocalize.carouselSpeed,rtl:!!wpexLocalize.isRTL,dots:e.dots,nav:e.nav,items:e.items,slideBy:e.slideby,center:e.center,loop:e.loop,margin:e.margin,autoplay:e.autoplay,autoplayTimeout:e.autoplayTimeout,autoHeight:e.autoHeight,autoWidth:e.autoWidth,autoplayHoverPause:!0,navText:['',''],responsive:{0:{items:e.itemsMobilePortrait},480:{items:e.itemsMobileLandscape},768:{items:e.itemsTablet},960:{items:e.items}}})})})},sliderPro:function(t){var l=this;void 0!==k.fn.sliderPro&&(k(".wpex-slider",t).each(function(){var e=k(this),t=e.data(),i=e.find(".sp-slide"),o=(e.find(".wpex-slider-slide, .wpex-slider-thumbnails.sp-thumbnails").css({opacity:1,display:"block"}),l.parseData(t.autoHeight,!0)),n=e.prev(".wpex-slider-preloaderimg"),n=n.length&&o?n.outerHeight():null,s=l.parseData(t.heightAnimationDuration,600),a=l.parseData(t.loop,!1),r=l.parseData(t.autoPlay,!0);!o&&i.length&&(n=l.getTallestEl(i).height()),e.sliderPro({aspectRatio:-1,width:"100%",height:n,responsive:!0,fade:l.parseData(t.fade,600),touchSwipe:l.parseData(t.touchSwipe,!0),fadeDuration:l.parseData(t.animationSpeed,600),slideAnimationDuration:l.parseData(t.animationSpeed,600),autoHeight:o,heightAnimationDuration:parseInt(s),arrows:l.parseData(t.arrows,!0),fadeArrows:l.parseData(t.fadeArrows,!0),autoplay:r,autoplayDelay:l.parseData(t.autoPlayDelay,5e3),buttons:l.parseData(t.buttons,!0),shuffle:l.parseData(t.shuffle,!1),orientation:l.parseData(t.direction,"horizontal"),loop:a,keyboard:!1,fullScreen:l.parseData(t.fullscreen,!1),slideDistance:l.parseData(t.slideDistance,0),thumbnailsPosition:"bottom",thumbnailHeight:l.parseData(t.thumbnailHeight,70),thumbnailWidth:l.parseData(t.thumbnailWidth,70),thumbnailPointer:l.parseData(t.thumbnailPointer,!1),updateHash:l.parseData(t.updateHash,!1),thumbnailArrows:!1,fadeThumbnailArrows:!1,thumbnailTouchSwipe:!0,fadeCaption:l.parseData(t.fadeCaption,!0),captionFadeDuration:600,waitForLayers:!0,autoScaleLayers:!0,forceSize:"none",reachVideoAction:l.parseData(t.reachVideoAction,"playVideo"),leaveVideoAction:l.parseData(t.leaveVideoAction,"pauseVideo"),endVideoAction:l.parseData(t.leaveVideoAction,"nextSlide"),fadeOutPreviousSlide:!0,autoplayOnHover:l.parseData(t.autoplayOnHover,"pause"),init:function(t){e.prev(".wpex-slider-preloaderimg").remove()},gotoSlide:function(t){!a&&r&&t.index===e.find(".sp-slide").length-1&&e.data("sliderPro").stopAutoplay()}})}),k(".woo-product-entry-slider").click(function(){return!1}),void 0!==k.fn.imagesLoaded&&k(".wpex-slider-thumbnails.sp-nc-thumbnails",t).each(function(){var t=k(this);t.imagesLoaded(function(){t.css({opacity:1,display:"block"})})}))},isotopeGrids:function(t){var e,r,l=this;function d(i){var t=window.wpexAnimsition.filter_attr,o=i.attr(t),e=t.split(",");return 1!=e.length?(o=[],t="",e.forEach(function(t){var e=i.attr(t);null!=e&&(window.wpexAnimsition.use_attr_filter?"all"==e?o.push("["+t+"]"):o.push("["+t+("s"==t[t.length-1]?"*":"")+'="'+e+'"]'):o.push(e))}),o=window.wpexAnimsition.use_attr_filter?o.join("],["):o.join(",")):window.wpexAnimsition.use_attr_filter&&(o="all"==o?"["+t+"]":"["+t+("s"==t[t.length-1]?"*":"")+'="'+o+'"]'),o=null!=i.data("count_limit")?o+":nth-child(-n+"+i.data("count_limit")+")":o}void 0!==k.fn.imagesLoaded&&void 0!==k.fn.isotope&&(e=k(window.wpexAnimsition.linkElement).parents(window.wpexAnimsition.container_block),r=window.wpexAnimsition.container_block.split(","),null==window.already_changes&&(window.already_changes=r.map(function(){return!1})),k(e).each(function(t,e){var i,o,n,s,a,h=k(e);null!=r[t]&&(0!=k(r[t]).parents(window.wpexAnimsition.need_fix_containers).length?(window.already_changes[t]||(n=h.parent().find(window.wpexAnimsition.filter_bar),s=n.find(window.wpexAnimsition.filter_option),i=[],s.each(function(t,l){var e=d(k(l)),c=k("
");e.split(",").forEach(function(t){var e,i,o,n="",s=!1,a=-1,r=("["==t[0]?(-1!=t.search("=")?((e=(e=t.slice(1,-1).split("=")).map(function(t){return t.match(/[^"^']+/)[0]}))[0]=e[0].replace("*",""),c.attr(e[0],e[1])):(s=!0,e=[t.split(/\[|\]/)[1],"All"],k(l).attr(e[0],e[1]),c.attr(e[0],e[1]),(i=t.match(/:nth-child\(-n\+(\d+)\)/))&&2==i.length&&(a=i[1])),n=e[0]):"."==t[0]?(c.attr("class",t.slice(1)),n="class"):"#"==t[0]&&(c.attr("id",t.slice(1)),n="id"),h.parent().find(window.wpexAnimsition.linkElement).filter(t));0!=r.length&&(i=(i=window.wpexAnimsition.linkElement.split(/>| /).slice(0,-1).filter(function(t){return""!=t})).reverse(),o=null,i.forEach(function(t){o=(null==o?r:o).parents(t)}),c.append(o.eq(0).prop("outerHTML")),s?-1!=a&&(k(l).removeAttr("data-count_limit"),k(l).removeData("count_limit"),c.find(window.wpexAnimsition.linkElement).not(":lt("+a+")").remove(),c.find(window.wpexAnimsition.linkElement).removeAttr(n)):(c.find(window.wpexAnimsition.linkElement).remove(),r.removeAttr(n),r.appendTo(c.find("*").eq(-1))))}),i.push(c.prop("outerHTML"))}),k(e).before(i.join("")),a=window.wpexAnimsition.container_block.split(",").map(function(t){t=t.split(/>| /);return t.length<=1?"*":t[0]}).join(","),o=k(e).parents(a),k(e).remove(),(n=o.find(window.wpexAnimsition.filter_bar)).length&&(0!=(s=n.find(window.wpexAnimsition.filter_option)).length&&(a=d(s.eq(0)),s.each(function(){var t=d(k(this)),t=o.find(t).not(window.wpexAnimsition.filter_option);t.css("display","none"),t.find("> *").addClass("hidden_item"),t.find("> *").removeClass("active")}),(e=o.find(a).not(window.wpexAnimsition.filter_option)).css("display",""),e.find("> *").removeClass("hidden_item"),e.find("> *").eq(0).addClass("active"),e.find("> *").eq(0).css("display",""),e.find(window.wpexAnimsition.linkElement).css("display","")),s.click(function(){var t=d(k(this)),t=(s.each(function(){var t=d(k(this)),t=o.find(t).not(window.wpexAnimsition.filter_option);t.css("display","none"),t.find("> *").addClass("hidden_item"),t.find("> *").removeClass("active")}),o.find(t).not(window.wpexAnimsition.filter_option));return t.css("display",""),t.find("> *").removeClass("hidden_item"),t.find("> *").eq(0).addClass("active"),t.find("> *").eq(0).css("display",""),t.find(window.wpexAnimsition.linkElement).css("display",""),t.find(window.wpexAnimsition.children_text_block).css("height",""),!1}))),window.already_changes[t]=!0):h.imagesLoaded(function(){var t,e=h.parent().find(window.wpexAnimsition.filter_bar),i=(e.length&&(t="",0!=(e=e.find(window.wpexAnimsition.filter_option)).length&&(t=d(e.eq(0))),e.click(function(){var t=d(k(this));return i.isotope({filter:t}),l.equalHeights(),!1})),h.isotope({itemSelector:window.wpexAnimsition.linkElement,transformsEnabled:!0,isOriginLeft:!wpexLocalize.isRTL,transitionDuration:h.data("transition-duration")?h.data("transition-duration")+"s":"0.4s",layoutMode:h.data("layout-mode")?h.data("layout-mode"):"masonry",filter:t}))}))}))},customHovers:function(){var i="",a={};k(".wpex-hover-data").remove(),k("[data-wpex-hover]").each(function(t,e){var i=k(this),o=i.data("wpex-hover"),t="wpex-dhover-"+t,n="",s="",s=o.parent?(i.parents(o.parent).addClass(t+"-p"),i.addClass(t),"."+t+"-p:hover ."+t):(i.addClass(t),"."+t+":hover");k.each(o,function(t,e){if("target"==t)return!0;n+=t+":"+e+"!important;"}),n&&(n in a?a[n]=a[n]+","+s:a[n]=s)}),a&&k.each(a,function(t,e){i+=e+"{"+t+"}"}),i&&this.config.$head.append('")},responsiveCSS:function(){var i="",s={},a={};k(".wpex-vc-rcss").remove(),a.d="",a=k.extend(a,wpexLocalize.responsiveDataBreakpoints),k.each(a,function(t){s[t]=""}),k("[data-wpex-rcss]").each(function(t,e){var i=k(this),n="wpex-rcss-"+t,t=i.data("wpex-rcss");i.addClass(n),k.each(t,function(t,e){var i=e,o=t;k.each(a,function(t){i[t]&&(s[t]+="."+n+"{"+o+":"+i[t]+"!important;}")})})}),k.each(s,function(t,e){"d"==t?i+=e:e&&(i+="@media (max-width: "+a[t]+") { "+e+" }")}),i&&(i='",this.config.$head.append(i))},vcexFilterNav:function(t){void 0!==k.fn.imagesLoaded&&void 0!==k.fn.isotope&&k(".vcex-filter-nav",t).each(function(){var i,o=k(this),n=k("#"+o.data("filter-grid"));(n=n.hasClass("wpex-row")?n:n.find(".wpex-row")).length&&(n.removeClass("vcex-isotope-grid"),n.imagesLoaded(function(){i=n.hasClass("vcex-navbar-filter-grid")?n.isotope():(n.addClass("vcex-navbar-filter-grid"),(t=o.data("filter"))&&!o.find('[data-filter="'+t+'"]').length&&(t=""),n.isotope({itemSelector:".col",transformsEnabled:!0,isOriginLeft:!wpexLocalize.isRTL,transitionDuration:o.data("transition-duration")?o.data("transition-duration")+"s":"0.4s",layoutMode:o.data("layout-mode")?o.data("layout-mode"):"masonry",filter:t}));var t,e=o.find("a");e.click(function(){var t=k(this);return i.isotope({filter:k(this).attr("data-filter")}),e.removeClass("active"),t.addClass("active"),!1})}))})},archiveMasonryGrids:function(){var i;void 0!==k.fn.imagesLoaded&&void 0!==k.fn.isotope&&(i=this,k(".blog-masonry-grid,div.wpex-row.portfolio-masonry,div.wpex-row.portfolio-no-margins,div.wpex-row.staff-masonry,div.wpex-row.staff-no-margins").each(function(){var t=k(this),e=t.data();t.imagesLoaded(function(){t.isotope({itemSelector:".isotope-entry",transformsEnabled:!0,isOriginLeft:!wpexLocalize.isRTL,transitionDuration:i.parseData(e.transitionDuration,"0.0")+"s",layoutMode:i.parseData(e.layoutMode,"masonry")})})}))},autoLightbox:function(){var o,n;wpexLocalize.iLightbox.auto&&(o=this,n=["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe"],k(".wpb_text_column a:has(img), body.no-composer .entry a:has(img)").each(function(){var t=k(this),e=t.attr("href"),i=o.getUrlExtension(e);e&&-1!==n.indexOf(i)&&!t.parents(".woocommerce-product-gallery").length&&t.addClass("wpex-lightbox")}))},iLightbox:function(t){var n=this;n.iLightboxSettings=wpexLocalize.iLightbox,n.iLightboxSettings.show.speed=parseInt(n.iLightboxSettings.show.speed),n.iLightboxSettings.hide.speed=parseInt(n.iLightboxSettings.hide.speed),n.iLightboxSettings.effects.repositionSpeed=parseInt(n.iLightboxSettings.effects.repositionSpeed),n.iLightboxSettings.effects.switchSpeed=parseInt(n.iLightboxSettings.effects.switchSpeed),n.iLightboxSettings.effects.loadedFadeSpeed=parseInt(n.iLightboxSettings.effects.loadedFadeSpeed),n.iLightboxSettings.effects.fadeSpeed=parseInt(n.iLightboxSettings.effects.fadeSpeed),k(".lightbox-group, .wpex-lightbox-group",t).each(function(){var t=k(this),e=t.find(".wpex-lightbox-group-item"),i=t.data("ilightbox"),i=(i&&i.destroy(),e.removeClass("wpex-lightbox"),e.is("a")||(e=e.find("a")).removeClass("wpex-lightbox"),e.iLightBox(k.extend(!0,{},n.iLightboxSettings,{skin:n.parseData(t.data("skin"),wpexLocalize.iLightbox.skin),path:n.parseData(t.data("path"),wpexLocalize.iLightbox.path),infinite:n.parseData(t.data("infinite"),wpexLocalize.iLightbox.infinite),show:{title:n.parseData(t.data("show_title"),wpexLocalize.iLightbox.show.title)},controls:{arrows:n.parseData(t.data("arrows"),wpexLocalize.iLightbox.controls.arrows),thumbnail:n.parseData(t.data("thumbnails"),wpexLocalize.iLightbox.controls.thumbnail)}})));t.data("ilightbox",i)}),k(".wpex-lightbox",t).each(function(){var t,e=k(this);(e=e.is("a")?e:e.find("a")).hasClass("wpex-lightbox-group-item")||(t=e.iLightBox(k.extend(!0,{},n.iLightboxSettings,{skin:n.parseData(e.data("skin"),wpexLocalize.iLightbox.skin),show:{title:n.parseData(e.data("show_title"),wpexLocalize.iLightbox.show.title)},controls:{arrows:!1,thumbnail:!1,mousewheel:!1}})),e.data("ilightbox",t))}),k(".wpex-lightbox-gallery",t).on("click",function(t){var e=k(this),i=e.data("gallery"),o="";if(i)return o="string"==typeof i||i instanceof String?i.split(","):i,k.iLightBox(o,k.extend(!0,{},n.iLightboxSettings,{skin:n.parseData(e.data("skin"),wpexLocalize.iLightbox.skin),path:n.parseData(e.data("path"),wpexLocalize.iLightbox.path),infinite:n.parseData(e.data("skin"),wpexLocalize.iLightbox.infinite),controls:{arrows:n.parseData(e.data("arrows"),wpexLocalize.iLightbox.controls.arrows),thumbnail:n.parseData(e.data("thumbnails"),wpexLocalize.iLightbox.controls.thumbnail)}})),!1}),k(".wpex-lightbox-video, .wpb_single_image.video-lightbox a, .wpex-lightbox-autodetect, .wpex-lightbox-autodetect a",t).each(function(){var t=k(this),e=t.data();t.iLightBox({smartRecognition:!0,skin:n.parseData(e.skin,wpexLocalize.iLightbox.skin),path:"horizontal",controls:{fullscreen:wpexLocalize.iLightbox.controls.fullscreen},show:{title:n.parseData(e.show_title,wpexLocalize.iLightbox.show.title),speed:parseInt(wpexLocalize.iLightbox.show.speed)},hide:{speed:parseInt(wpexLocalize.iLightbox.hide.speed)},effects:{reposition:!0,repositionSpeed:200,switchSpeed:300,loadedFadeSpeed:wpexLocalize.iLightbox.effects.loadedFadeSpeed,fadeSpeed:wpexLocalize.iLightbox.effects.fadeSpeed},overlay:wpexLocalize.iLightbox.overlay,social:wpexLocalize.iLightbox.social})}),k(".wpex-carousel",t).on("click",".wpex-carousel-lightbox-item",function(t){t.preventDefault();var t=k(this),e=t.parents(".wpex-carousel"),e=(t.parents(".owl-item"),e.find(".owl-item")),i=t.data(),o=[];e.each(function(){var t;k(this).hasClass("cloned")||0<(t=k(this).find(".wpex-carousel-lightbox-item")).length&&o.push({URL:t.attr("href"),title:t.attr("data-title"),caption:t.attr("data-caption")})}),0 a").on("touchstart",function(t){var e=k(this),e=e.hasClass("overlay-parent")?e:e.parent(".overlay-parent");return!!e.hasClass("wpex-touched")||(e.addClass("wpex-touched"),k(".overlay-parent").not(e).removeClass("wpex-touched"),t.preventDefault(),!1)}),this.config.$document.on("touchstart",function(t){k(t.target).closest(".wpex-touched").length||k(".wpex-touched").removeClass("wpex-touched")})),k(".overlay-parent-title-push-up").each(function(){var t=k(this),e=t.find(".overlay-title-push-up"),i=t.find("a"),o=i.find("img"),n=e.outerHeight();t.imagesLoaded(function(){e.css({bottom:-n}),i.css({height:o.outerHeight()}),o.css({position:"absolute",top:"0",left:"0",width:"auto",height:"auto"}),t.hover(function(){o.css({top:-20}),e.css({bottom:0})},function(){o.css({top:"0"}),e.css({bottom:-n})})})})},stickyTopBar:function(){var e,t,i,o,n,s,a,r,l=this;function c(){return t=0,l.config.$wpAdminBar&&(t+=l.config.$wpAdminBar.outerHeight()),a.is(":visible")&&(t+=a.outerHeight()),t}function h(){e||(r.css("height",o.outerHeight()).removeClass("not-sticky").addClass("is-sticky"),o.css({top:c(),width:r.width()}),e=!0)}function d(){e&&(r.css("height","").removeClass("is-sticky").addClass("not-sticky"),o.css({width:"",top:""}),e=!1)}function p(){!n&&l.config.viewportWidtht&&h())}function f(){var t;!n&&l.config.viewportWidth=t?h:d)()))}l.config.hasStickyTopBar&&l.config.$stickyTopBar&&(e=!1,t=0,i=l.config.$window,o=l.config.$stickyTopBar,n=l.config.hasStickyTopBarMobile,s=wpexLocalize.stickyTopBarBreakPoint,a=k("#wpex-mobile-menu-fixed-top"),r=k('
'),o.wrapAll(r),r=k("#top-bar-wrap-sticky-wrapper"),p(),i.scroll(function(){f()}),i.resize(function(){!n&&l.config.viewportWidth=wpexLocalize.stickyTopBarBreakPoint)&&(t+=i.outerHeight()),e.is(":visible")&&(t+=e.outerHeight()),this.config.$wpAdminBar&&this.config.$wpAdminBar.is(":visible")&&(t+=this.config.$wpAdminBar.outerHeight()),wpexLocalize.addStickyHeaderOffset&&(t+=wpexLocalize.addStickyHeaderOffset),t},stickyHeaderCustomStartPoint:function(){var t=wpexLocalize.stickyHeaderStartPosition;return t=k.isNumeric(t)?t:k(t).length?k(t).offset().top:0},stickyHeader:function(){var e,t,i,o,n,s,a,r,l,c,h,d,p=this,f=!1,u=!1,g=!1;function m(){return p.config.viewportWidthi}function y(){return(r||o.offset().top)-p.stickyOffset()}function w(){d&&l&&(g=g?(l.attr("src",c),p.config.siteLogoHeight=p.config.$siteLogo.height(),!1):(l.attr("src",d),p.config.siteLogoHeight=p.config.$siteLogo.height(),!0))}function x(){var t=h;(t=m()?!(!a||"icon_buttons"!=p.config.mobileMenuToggleStyle&&"fixed_top"!=p.config.mobileMenuToggleStyle):t)&&v()?!u&&f&&(e.addClass("sticky-header-shrunk"),u=!0):(e.removeClass("sticky-header-shrunk"),u=!1)}function b(){f||(w(),o.css("height",t).removeClass("not-sticky").addClass("is-sticky"),e.removeClass("dyn-styles").css({top:p.stickyOffset(),width:o.width()}),e.hasClass("transform-prepare")&&e.addClass("transform-go"),f=!0)}function L(){f&&(r?(e.removeClass("transform-go"),u&&(e.removeClass("sticky-header-shrunk"),u=!1)):e.removeClass("transform-prepare"),w(),o.removeClass("is-sticky").addClass("not-sticky"),e.hasClass("shrink-sticky-header")||o.css("height",""),e.addClass("dyn-styles").css({width:"",top:""}).removeClass("transform-go"),f=!1,e.removeClass("sticky-header-shrunk"),u=!1)}function S(){!a&&m()||(p.config.windowTop>y()&&0!==p.config.windowTop&&b(),h&&x())}function C(){!a&&m()||(r&&(f&&e.addClass("transform-go"),0!==p.config.windowTop&&v()?e.addClass("transform-prepare"):e.removeClass("transform-prepare")),0===p.config.windowTop?L():((p.config.windowTop>=y()?b:L)(),h&&x()))}p.config.hasStickyHeader&&(e=p.config.$siteHeader,t=p.config.siteHeaderHeight,i=e.offset().top+e.outerHeight(),o=k('
'),e.wrapAll(o),o=k("#site-header-sticky-wrapper"),n=p.config.$window,s=wpexLocalize.stickyHeaderBreakPoint,a=p.config.hasStickyMobileHeader,r=p.stickyHeaderCustomStartPoint(),l=p.config.$siteLogo,c=p.config.siteLogoSrc,h="shrink"==p.stickyHeaderStyle||"shrink_animated"==p.stickyHeaderStyle,(d=(d=wpexLocalize.stickyheaderCustomLogo)&&wpexLocalize.stickyheaderCustomLogoRetina&&p.config.isRetina?wpexLocalize.stickyheaderCustomLogoRetina:d)&&k('').appendTo("body").css("display","none"),S(),n.scroll(function(){p.config.$hasScrolled&&C()}),n.resize(function(){(p.config.widthChanged||p.config.heightChanged)&&(!a&&m()?(L(),e.removeClass("transform-prepare")):f?(e.hasClass("shrink-sticky-header")||o.css("height",p.config.siteHeaderHeight),e.css({top:p.stickyOffset(),width:o.width()})):S(),h&&x())}),n.on("orientationchange",function(){L(),S()}))},stickyHeaderMenu:function(){var t,e,i,o,n,s=this;function a(){e||(o.css("height",s.config.$siteNavWrap.outerHeight()).removeClass("not-sticky").addClass("is-sticky"),t.css({top:s.stickyOffset(),width:o.width()}),s.config.$siteHeader.removeClass("dyn-styles"),e=!0)}function r(){e&&(o.css("height","").removeClass("is-sticky").addClass("not-sticky"),t.css({width:"",top:""}),s.config.$siteHeader.addClass("dyn-styles"),e=!1)}function l(){s.config.viewportWidth<=wpexLocalize.stickyNavbarBreakPoint||(s.config.windowTop>=n&&0!==s.config.windowTop?a:r)()}s.config.hasStickyNavbar&&(t=s.config.$siteNavWrap,e=!1,i=s.config.$window,k(t).index(),o=k(''),t.wrapAll(o),n=(o=k("#site-navigation-sticky-wrapper")).offset().top-s.stickyOffset(),l(),i.scroll(function(){!s.config.$hasScrolled||s.config.viewportWidth<=wpexLocalize.stickyNavbarBreakPoint||(0===s.config.windowTop?e&&r():(s.config.windowTop>=n?a:r)())}),i.resize(function(){s.config.viewportWidth<=wpexLocalize.stickyNavbarBreakPoint&&r(),e?t.css("width",o.width()):l()}),i.on("orientationchange",function(){r(),l()}))},stickyVcexNavbar:function(){var l=this,t=k(".vcex-navbar-sticky");t.length&&t.each(function(){var i=k(this),o=!1,t=l.config.$window,n=i.data("sticky-endpoint")?k(i.data("sticky-endpoint")):"",s=k('
');function a(){var t=0,e=k("#top-bar-wrap-sticky-wrapper"),i=k("#site-header-sticky-wrapper"),o=k("#site-navigation-sticky-wrapper"),n=k("#wpex-mobile-menu-fixed-top");return e.is(":visible")&&(l.config.hasStickyTopBarMobile||l.config.viewportWidth>=wpexLocalize.stickyTopBarBreakPoint)&&(t+=e.outerHeight()),i.is(":visible")&&(l.config.hasStickyMobileHeader||l.config.viewportWidth>=wpexLocalize.stickyHeaderBreakPoint)&&(l.config.$siteHeader.hasClass("shrink-sticky-header")?t+=parseInt(wpexLocalize.shrinkHeaderHeight):t+=i.outerHeight()),l.config.hasStickyNavbar&&o.is(":visible")&&(l.config.hasStickyMobileHeader||l.config.viewportWidth>=wpexLocalize.stickyNavbarBreakPoint)&&(t+=o.outerHeight()),n.is(":visible")&&(t+=n.outerHeight()),l.config.$wpAdminBar&&l.config.$wpAdminBar.is(":visible")&&(t+=l.config.$wpAdminBar.outerHeight()),t}function r(){o&&(s.css("height","").removeClass("is-sticky").addClass("not-sticky"),i.css({width:"",top:""}),o=!1)}function e(){var t=a(),e=s.offset().top;l.config.windowTop>e-t&&0!==l.config.windowTop?(e=t,!o&&i.is(":visible")&&(s.css("height",i.outerHeight()).removeClass("not-sticky").addClass("is-sticky"),i.css({top:e,width:s.width()}),o=!0),n.length&&n.is(":visible")&&(l.config.windowTop>n.offset().top-t-i.outerHeight()?s.addClass("sticky-hidden"):s.removeClass("sticky-hidden"))):r()}i.wrapAll(s),s=i.parent(".vcex-navbar-sticky-wrapper"),e(),t.scroll(function(){l.config.$hasScrolled&&e()}),t.resize(function(){e(),o?(i.is(":visible")||r(),s.css("height",i.outerHeight()),i.css({top:a(),width:s.width()})):e()}),t.on("orientationchange",function(t){r(),e()})})},infiniteScrollInit:function(){var i=this,o=k("#blog-entries");o.infinitescroll(wpexInfiniteScroll,function(t){var e=k(t).css("opacity",0);e.imagesLoaded(function(){o.hasClass("blog-masonry-grid")&&(o.isotope("appended",e),e.css("opacity",0)),"undefined"!=typeof retinajs&&k.isFunction(retinajs)&&retinajs(),e.animate({opacity:1}),o.trigger("wpexinfiniteScrollLoaded",[e]),i.sliderPro(e),i.iLightbox(e),void 0!==k.fn.wpexEqualHeights&&k(".blog-equal-heights").wpexEqualHeights({children:".blog-entry-inner"}),void 0!==k.fn.mediaelementplayer&&e.find("audio, video").mediaelementplayer()})})},loadMore:function(){var p=this,t=k(".wpex-load-more");t.length&&t.each(function(){var i=k(this),o=i.find(".theme-button-inner"),n=!1,s=wpexLocalize.loadMore.text,e=wpexLocalize.ajaxurl,a=wpexLocalize.loadMore.loadingText,r=wpexLocalize.loadMore.failedText,l=i.data("loadmore"),c=k(l.grid),h=2,d=(1!=l.maxPages&&i.addClass("wpex-visible"),l);i.on("click",function(){var t;n||(n=!0,i.addClass("loading"),o.text(a),t={action:"wpex_ajax_load_more",nonce:l.nonce,page:h,loadmore:d},k.post(e,t,function(t){var e;t.success?(h+=1,(e=k(t.data)).css("opacity",0),e.each(function(){var t=k(this);t.hasClass("sticky")&&t.addClass("wpex-duplicate")}),c.append(e).imagesLoaded(function(){void 0!==k.fn.wpexEqualHeights&&k(".blog-equal-heights").wpexEqualHeights({children:".blog-entry-inner"}),c.hasClass("blog-masonry-grid")&&c.isotope("appended",e),p.iLightbox(e),p.overlayHovers(e),c.trigger("wpexLoadMoreAddedHidden",[e]),e.css("opacity",1),"undefined"!=typeof retinajs&&k.isFunction(retinajs)&&retinajs(),p.sliderPro(e),void 0!==k.fn.mediaelementplayer&&e.find("audio, video").mediaelementplayer(),c.trigger("wpexLoadMoreAddedVisible",[e]),i.removeClass("loading"),o.text(s),h-1==l.maxPages&&i.hide(),n=!1})):(o.text(r),console.log(t))}).fail(function(t,e,i){console.log(t.responseText)}))})})},ctf7Preloader:function(){wpexLocalize.altercf7Prealoader&&k("form.wpcf7-form").each(function(){var t,e=k(this),i=e.find(".wpcf7-submit");i.length&&(e.find(".ajax-loader").remove(),t=k(''),i.after(t),i.on("click",function(){t.addClass("visible")}),k("div.wpcf7").on("wpcf7:invalid wpcf7:spam wpcf7:mailsent wpcf7:mailfailed",function(){t.removeClass("visible")}))})},vcTabsTogglesJS:function(){var i=this;function t(){var t=k(this);t.find(".wpex-slider").each(function(){k(this).sliderPro("update")}),t.find(".vcex-isotope-grid").each(function(){k(this).isotope("layout")}),t.find(".vcex-milestone").each(function(){i.milestone(k(this))})}this.config.$body.hasClass("wpb-js-composer")&&(k(".vc_tta-tabs").on("show.vc.tab",t),k(".vc_tta-accordion").on("show.vc.accordion",t),i.config.$document.on("click.vc.tabs.data-api","[data-vc-tabs]",function(t){var e;i.config.$body.hasClass("vc_editor")||(e=k(k(this).attr("href"))).length&&(e.find(".wpex-slider").each(function(){k(this).sliderPro("update")}),e.find(".vcex-isotope-grid").each(function(){k(this).isotope("layout")}))}))},vcAccessability:function(){var t,l;this.config.vcActive&&(k(".vc_toggle .vc_toggle_title").each(function(t){var e=k(this);e.attr("tabindex",0),e.on("keydown",function(t){13==t.which&&e.trigger("click")})}),t=k(".vc_tta-container"),l=function(t,e,i,o){e.attr("tabindex",-1),t.attr("tabindex",0).focus().click()},t.each(function(){var t=k(this),r=t.find(".vc_tta-tab > a");t.find(".vc_tta-panels");r.each(function(t){var e=k(this);0==t?e.attr("tabindex",0):e.attr("tabindex",-1),e.on("keydown",function(t){var e=k(this),i=t.which,o=!!e.parent().next().is("li.vc_tta-tab")&&e.parent().next().find("a"),n=!!e.parent().prev().is("li.vc_tta-tab")&&e.parent().prev().find("a"),s=e.parent().parent().find("li.vc_tta-tab:first").find("a"),a=e.parent().parent().find("li.vc_tta-tab:last").find("a");switch(i){case 37:case 38:t.preventDefault(),t.stopPropagation(),l(n||a,r);break;case 39:case 40:t.preventDefault(),t.stopPropagation(),l(o||s,r);break;case 36:t.preventDefault(),t.stopPropagation(),l(s,r);break;case 35:t.preventDefault(),t.stopPropagation(),l(a,r);break;case 13:case 32:t.preventDefault(),t.stopPropagation()}})})}))},vcexRemoveiFrameDups:function(t){var e,t=t.children(":first");t.length&&(e=t.find("> .wpex-bg-overlay-wrap"),t.hasClass("wpex-has-overlay")?e.not(":first").remove():e.length&&e.remove(),e=t.find("> .wpex-video-bg-wrap"),t.hasClass("wpex-has-video-bg")?e.not(":first").remove():e.length&&e.remove(),e=t.find("> .wpex-parallax-bg"),t.hasClass("wpex-parallax-bg-wrap")?e.not(":first").remove():e.length&&e.remove(),(e=t.find("> .wpex-video-bg-overlay")).length&&e.not(":first").remove())},vcPageEditable:function(){var e=this,i="";e.config.$body.hasClass("compose-mode")&&(parent.vc.events.on("shortcodes:add shortcodes:update shortcodes:clone",function(t){i=t.id}),e.config.$window.on("vc_reload",function(){var t;e.equalHeights(),e.sliderPro(),e.wpexOwlCarousel(),e.vcexFilterNav(),e.customHovers(),e.responsiveCSS(),i?(t=k("[data-model-id="+i+"]"),e.isotopeGrids(t),e.vcPageEditableFuncs(t),e.vcexRemoveiFrameDups(t)):e.isotopeGrids()}))},vcPageEditableFuncs:function(t){this.parallax(t),this.responsiveText(t),this.overlayHovers(t),this.iLightbox(t),t.hasClass("vc_vcex_skillbar")?this.skillbar(t):t.hasClass("vc_vc_wp_custommenu")?this.menuWidgetAccordion(t):t.hasClass("vc_vcex_form_shortcode")?this.customSelects(t):t.hasClass("vc_vcex_milestone")?this.milestone(t):t.hasClass("vc_vcex_image_ba")?this.twentytwenty(t):t.hasClass("vc_vcex_animated_text")?this.typedText(t):t.hasClass("vc_vcex_countdown")&&this.countdown(t)},wooGallery:function(){var t,e;function i(){e.each(function(){var t=k(this),e=k(this).find(".flex-direction-nav"),i=k(this).find(".flex-control-thumbs");e.length&&i.length&&((i=-(i.outerHeight()+e.find("a").outerHeight())/2)&&t.find(".flex-direction-nav a").css("margin-top",i))})}"undefined"!=typeof wc_single_product_params&&wc_single_product_params.flexslider.directionNav&&(t=this,(e=k(".woocommerce-product-gallery--with-images")).length&&(t.config.$window.on("load",function(){i()}),t.config.$window.resize(function(){(t.config.widthChanged||t.config.heightChanged)&&i()})))},parseData:function(t,e){return void 0!==t?t:e},getUrlExtension:function(t){var t=t.split(".").pop().toLowerCase(),e=-1!==t.indexOf("?")?t.split("?").pop():"";return(t=t.replace(e,"")).replace("?","")},scrolledToBottom:function(t){return this.config.windowTop>=t.offset().top+t.outerHeight()-window.innerHeight},isElementInWindowView:function(t){var e=this.config.$window.scrollTop(),i=e+this.config.windowHeight,o=k(t).offset().top;return o+k(t).height()<=i&&e<=o},getTallestEl:function(t){var e,i=1;return t.each(function(){var t=k(this);1==i?(e=t,i=0):e.height()