1 line
109 KiB
JavaScript
1 line
109 KiB
JavaScript
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;i<e.length;i++)$height+=e.eq(i).outerHeight(!0)}$height>n&&(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<window.devicePixelRatio||!(!window.matchMedia||!window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches)},mobileCheck:function(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))return!0},viewportWidth:function(){var t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),t[e+"Width"]},superfish:function(){this.config.$siteNav&&void 0!==k.fn.superfish&&k("ul.sf-menu",this.config.$siteNav).superfish({delay:wpexLocalize.superfishDelay,speed:wpexLocalize.superfishSpeed,speedOut:wpexLocalize.superfishSpeedOut,cssArrows:!1,disableHI:!1,animation:{opacity:"show"},animationOut:{opacity:"hide"}})},megaMenusWidth:function(){var t,e,i;wpexLocalize.megaMenuJS&&"one"==this.config.siteHeaderStyle&&this.config.$siteNavDropdowns&&this.config.$siteNavWrap.is(":visible")&&(t=k(".megamenu > 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('<div class="wpex-sidr-overlay wpex-hidden"></div>'),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('<span class="sidr-class-dropdown-toggle"></span>'),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<k.inArray(t,e.config.localScrollSections))return k.sidr("close","sidr-main"),e.scrollTo(t),!1}),k("#mobile-menu-alternative").length&&k("#mobile-menu-alternative").remove()},mobileMenuToggle:function(){var t=this,e=wpexLocalize.mobileToggleMenuPosition,i="mobile-toggle-nav wpex-mobile-menu wpex-clr wpex-togglep-"+e,o="",n=k("#mobile-menu-search"),s=t.config.$siteHeader,a=k("a.mobile-menu-toggle, li.mobile-menu-toggle > a"),r=("fixed_top"==t.config.mobileMenuToggleStyle?(s=k("#wpex-mobile-menu-fixed-top")).length&&s.append('<nav class="'+i+'" aria-label="Mobile menu"></nav>'):"absolute"==e?"navbar"==t.config.mobileMenuToggleStyle?(s=k("#wpex-mobile-menu-navbar")).length&&s.append('<nav class="'+i+'" aria-label="Mobile menu"></nav>'):s&&s.append('<nav class="'+i+'" aria-label="Mobile menu"></nav>'):("afterself"==e&&(s=k("#wpex-mobile-menu-navbar")),k('<nav class="'+i+'" aria-label="Mobile menu"></nav>').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('<ul class="mobile-toggle-nav-ul">'+o+"</ul>"),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('<span class="wpex-open-submenu" aria-haspopup="true"></span>');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('<div class="mobile-toggle-nav-search container"></div>'),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('<div class="full-screen-overlay-nav wpex-mobile-menu wpex-clr '+t+'"><span class="full-screen-overlay-nav-close">×</span><nav class="full-screen-overlay-nav-ul-wrapper"><ul class="full-screen-overlay-nav-ul"></ul></nav></div>'),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<k.inArray(t,e.config.localScrollSections))return n.removeClass("visible"),e.config.$body.removeClass("wpex-noscroll"),!1}),k(".full-screen-overlay-nav-close").on("click",function(){return n.removeClass("visible"),n.find("li.wpex-active > 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('<li class="wpex-search"></li>'))},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('<div class="overlay-header-offset-div" style="height:'+e+'px"></div>'),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('<li class="menu-item-logo"></li>').insertAfter(e.find("#site-navigation > ul > li:nth( "+i+" )")),t.appendTo(e.find(".menu-item-logo"))),this.config.viewportWidth<this.config.mobileMenuBreakpoint&&o.length&&(o.prependTo(k("#site-header-inner")),k(".menu-item-logo").remove()),t.addClass("display"))},backTopLink:function(){var e,t,i=this,o=k("a#site-scroll-top");o.length&&(e=wpexLocalize.scrollTopSpeed?parseInt(wpexLocalize.scrollTopSpeed):1e3,t=wpexLocalize.scrollTopOffset?parseInt(wpexLocalize.scrollTopOffset):100,i.config.$window.scroll(function(){k(this).scrollTop()>t?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<e?n:e<o?o:e)+"px")})},toggleBar:function(){var i=k("a.toggle-bar-btn, a.togglebar-toggle, .togglebar-toggle > 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('<div class="wpex-days"><span>%-D</span> <small>'+i+'</small></div> <div class="wpex-hours"><span>%-H</span> <small>'+o+'</small></div class="wpex-months"> <div class="wpex-minutes"><span>%-M</span> <small>'+n+'</small></div> <div class="wpex-seconds"><span>%-S</span> <small>'+s+"</small></div>"))})})},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<n.length;s++){var a=n[s],r=k(a),a=k(a).attr("href"),a=a?"#"+a.replace(/^.*?(#|$)/,""):null;a&&"#"!=a&&(r.attr("data-ls_linkto")||r.attr("data-ls_linkto",a),k('[data-ls_id="'+a+'"]').length?-1==k.inArray(a,o)&&o.push(a):k(a).length&&-1==k.inArray(a,o)&&o.push(a))}return o},localScrollLinks:function(){var i=this;k(i.config.$localScrollTargets).on("click",function(){var t=k(this),e=t.attr("data-ls_linkto")||this.hash;if(-1<k.inArray(e,i.config.localScrollSections))return t.parent().removeClass("sfHover"),i.scrollTo(e),!1}),k("a.wpex-scroll-top, .wpex-scroll-top a").on("click",function(){return i.scrollTo("#site_top"),!1}),k("a.woocommerce-review-link",k("body.single div.entry-summary")).click(function(){var t,e=k(".woocommerce-tabs");return e.length&&(k(".reviews_tab a").click(),t=e.offset().top-i.config.localScrollOffset,i.scrollTo(e,t)),!1})},localScrollHighlight:function(){if(wpexLocalize.localScrollHighlight){var t=this.config.localScrollSections;if(t.length)for(var e=this.config.$window.scrollTop(),i=0;i<t.length;i++){var o,n,s,a=t[i];k('[data-ls_id="'+a+'"]').length?(o=(n=k('[data-ls_id="'+a+'"]')).offset().top-this.config.localScrollOffset-1,n=n.outerHeight(),s=k('[data-ls_linkto="'+a+'"]')):k(a).length&&(o=k(a).offset().top-this.config.localScrollOffset-1,n=k(a).outerHeight(),s=k('[data-ls_linkto="'+a+'"]')),o<=e&&e<o+n?(k(".local-scroll.menu-item").removeClass("current-menu-item"),s.addClass("active"),s.parent("li").addClass("current-menu-item")):(s.removeClass("active"),s.parent("li").removeClass("current-menu-item"))}}},equalHeights:function(t){var e;void 0!==k.fn.wpexEqualHeights&&(e=k(window.wpexAnimsition.linkElement).parents(window.wpexAnimsition.container_block),k(e,t).wpexEqualHeights({children:window.wpexAnimsition.children_text_block}))},footerReveal:function(){var n,s=this;function t(){var t,e,i,o;s.config.viewportWidth<960?n.hasClass("footer-reveal")&&(n.toggleClass("footer-reveal footer-reveal-visible"),s.config.$siteWrap.css("margin-bottom","")):(t=!1,e=n.outerHeight(),i=s.config.windowHeight,o=0,o=n.hasClass("footer-reveal")?s.config.$siteWrap.outerHeight()+s.config.localScrollOffset:s.config.$siteWrap.outerHeight()+s.config.localScrollOffset-e,(t=e<i&&i<o?!0:t)&&n.hasClass("footer-reveal-visible")&&(s.config.$siteWrap.css({"margin-bottom":e}),n.removeClass("footer-reveal-visible"),n.addClass("footer-reveal")),!t&&n.hasClass("footer-reveal")&&(s.config.$siteWrap.css("margin-bottom",""),n.removeClass("footer-reveal"),n.removeClass("wpex-visible"),n.addClass("footer-reveal-visible")))}s.config.$hasFooterReveal&&(n=s.config.$footerReveal,t(),s.config.$window.scroll(function(){n.hasClass("footer-reveal")&&(s.scrolledToBottom(s.config.$siteMain)?n.addClass("wpex-visible"):n.removeClass("wpex-visible"))}),s.config.$window.resize(function(){(s.config.widthChanged||s.config.heightChanged)&&t()}))},fixedFooter:function(){var i=this;function t(){var t=i.config.$siteMain.outerHeight(),e=k("html").height(),t=t+(i.config.$window.height()-e);i.config.$siteMain.css("min-height",t)}i.config.$siteMain&&i.config.hasFixedFooter&&(t(),i.config.$window.resize(function(){(i.config.widthChanged||i.config.heightChanged)&&t()}))},titleBreadcrumbsFix:function(){var t,e,i,o,n;function s(){n.width()+i.width()+20>=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("<div></div>")).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('<span class="fa fa-angle-down" aria-hidden="true"></span>'),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:['<span class="fa fa-chevron-left"><span>','<span class="fa fa-chevron-right"></span>'],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.parents(window.wpexAnimsition.parent_block).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("<div></div>");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.parents(window.wpexAnimsition.parent_block).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.parents(window.wpexAnimsition.parent_block).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('<style class="wpex-hover-data">/** CUSTOM HOVERS **/'+i+"</style>")},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='<style class="wpex-vc-rcss">/** RESPONSIVE VC PARAMS **/'+i+"</style>",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<o.length&&(e=(e=t.data("count")-1)||0,k.iLightBox(o,k.extend(!0,{},n.iLightboxSettings,{startFrom:parseInt(e),skin:n.parseData(i.skin,wpexLocalize.iLightbox.skin),path:n.parseData(i.path,wpexLocalize.iLightbox.path),infinite:n.parseData(i.skin,wpexLocalize.iLightbox.infinite),show:{title:n.parseData(i.show_title,wpexLocalize.iLightbox.show.title)},controls:{arrows:n.parseData(i.arrows,wpexLocalize.iLightbox.controls.arrows),thumbnail:n.parseData(i.thumbnails,wpexLocalize.iLightbox.controls.thumbnail)}})))})},overlayHovers:function(){this.config.isMobile&&(k(".overlay-parent.overlay-hh").each(function(){k(this).hasClass("overlay-ms")||k(this).find(".theme-overlay").remove()}),k("a.overlay-parent.overlay-ms.overlay-h, .overlay-parent.overlay-ms.overlay-h > 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.viewportWidth<s||(t=r.offset().top-c(),l.config.windowTop>t&&h())}function f(){var t;!n&&l.config.viewportWidth<s||(0===l.config.windowTop?e&&d():(t=r.offset().top-c(),(l.config.windowTop>=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('<div id="top-bar-wrap-sticky-wrapper" class="wpex-sticky-top-bar-holder not-sticky"></div>'),o.wrapAll(r),r=k("#top-bar-wrap-sticky-wrapper"),p(),i.scroll(function(){f()}),i.resize(function(){!n&&l.config.viewportWidth<s?d():e?(r.css("height",o.outerHeight()),o.css({top:c(),width:r.width()})):f()}),i.on("orientationchange",function(t){d(),p()}))},stickyOffset:function(){var t=0,e=k("#wpex-mobile-menu-fixed-top"),i=this.config.$stickyTopBar;return i&&i.is(":visible")&&(this.config.hasStickyTopBarMobile||this.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.viewportWidth<s}function v(){p.config.hasHeaderOverlay||(o.offset().top,o.outerHeight());return p.config.windowTop>i}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('<div id="site-header-sticky-wrapper" class="wpex-sticky-header-holder not-sticky"></div>'),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('<img src="'+d+'">').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('<div id="site-navigation-sticky-wrapper" class="wpex-sticky-navigation-holder not-sticky"></div>'),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('<div class="vcex-navbar-sticky-wrapper not-sticky"></div>');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('<span class="fa fa-refresh fa-spin wpex-wpcf7-loader"></span>'),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()<t.height()&&(e=t)}),e}}).init()}(jQuery),function(t){var c=Array.prototype.slice;function e(){}function i(r){var l;if(r)return l="undefined"==typeof console?e:function(t){console.error(t)},r.bridget=function(t,e){var i,s,a;(i=e).prototype.option||(i.prototype.option=function(t){r.isPlainObject(t)&&(this.options=r.extend(!0,this.options,t))}),s=t,a=e,r.fn[s]=function(e){if("string"!=typeof e)return this.each(function(){var t=r.data(this,s);t?(t.option(e),t._init()):(t=new a(this,e),r.data(this,s,t))});for(var t=c.call(arguments,1),i=0,o=this.length;i<o;i++){var n=this[i],n=r.data(n,s);if(n)if(r.isFunction(n[e])&&"_"!==e.charAt(0)){n=n[e].apply(n,t);if(void 0!==n)return n}else l("no such method '"+e+"' for "+s+" instance");else l("cannot call methods on "+s+" prior to initialization; attempted to call '"+e+"'")}return this}},r.bridget}"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):"object"==typeof exports?i(require("jquery")):i(t.jQuery)}(window),function(i){var t=document.documentElement,e=function(){};function o(t){var e=i.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,i){t.addEventListener(e,i,!1)}:t.attachEvent&&(e=function(e,t,i){e[t+i]=i.handleEvent?function(){var t=o(e);i.handleEvent.call(i,t)}:function(){var t=o(e);i.call(e,t)},e.attachEvent("on"+t,e[t+i])});var n=function(){},t=(t.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:t.detachEvent&&(n=function(e,i,o){e.detachEvent("on"+i,e[i+o]);try{delete e[i+o]}catch(t){e[i+o]=void 0}}),{bind:e,unbind:n});"function"==typeof define&&define.amd?define("eventie/eventie",t):"object"==typeof exports?module.exports=t:i.eventie=t}(window),function(){"use strict";function t(){}var e=t.prototype,i=this,o=i.EventEmitter;function s(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}e.getListeners=function(t){var e,i,o=this._getEvents();if(t instanceof RegExp)for(i in e={},o)o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i]);else e=o[t]||(o[t]=[]);return e},e.flattenListeners=function(t){for(var e=[],i=0;i<t.length;i+=1)e.push(t[i].listener);return e},e.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},e.addListener=function(t,e){var i,o=this.getListenersAsObject(t),n="object"==typeof e;for(i in o)o.hasOwnProperty(i)&&-1===s(o[i],e)&&o[i].push(n?e:{listener:e,once:!1});return this},e.on=n("addListener"),e.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},e.once=n("addOnceListener"),e.defineEvent=function(t){return this.getListeners(t),this},e.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},e.removeListener=function(t,e){var i,o,n=this.getListenersAsObject(t);for(o in n)n.hasOwnProperty(o)&&-1!==(i=s(n[o],e))&&n[o].splice(i,1);return this},e.off=n("removeListener"),e.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},e.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},e.manipulateListeners=function(t,e,i){var o,n,s=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(o=i.length;o--;)s.call(this,e,i[o]);else for(o in e)e.hasOwnProperty(o)&&(n=e[o])&&("function"==typeof n?s:a).call(this,o,n);return this},e.removeEvent=function(t){var e,i=typeof t,o=this._getEvents();if("string"==i)delete o[t];else if(t instanceof RegExp)for(e in o)o.hasOwnProperty(e)&&t.test(e)&&delete o[e];else delete this._events;return this},e.removeAllListeners=n("removeEvent"),e.emitEvent=function(t,e){var i,o,n,s=this.getListenersAsObject(t);for(n in s)if(s.hasOwnProperty(n))for(o=s[n].length;o--;)!0===(i=s[n][o]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},e.trigger=n("emitEvent"),e.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},e.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},e._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},e._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=o,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:i.EventEmitter=t}.call(this),function(t){var n="Webkit Moz ms Ms O".split(" "),s=document.documentElement.style;function e(t){if(t){if("string"==typeof s[t])return t;var e;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i=0,o=n.length;i<o;i++)if(e=n[i]+t,"string"==typeof s[e])return e}}"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(E){function $(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}var M="undefined"==typeof console?function(){}:function(t){console.error(t)},O=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function t(_){var z,T,H,I=!1;return function(t){var e,i;if(!I&&(I=!0,e=E.getComputedStyle,i=e?function(t){return e(t,null)}:function(t){return t.currentStyle},z=function(t){t=i(t);return t||M("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t},T=_("boxSizing"))&&((w=document.createElement("div")).style.width="200px",w.style.padding="1px 2px 3px 4px",w.style.borderStyle="solid",w.style.borderWidth="1px 2px 3px 4px",w.style[T]="border-box",(y=document.body||document.documentElement).appendChild(w),p=z(w),H=200===$(p.width),y.removeChild(w)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var o=z(t);if("none"===o.display){for(var n={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},s=0,a=O.length;s<a;s++)n[O[s]]=0;return n}for(var r,l,c,h,d={},p=(d.width=t.offsetWidth,d.height=t.offsetHeight,d.isBorderBox=!(!T||!o[T]||"border-box"!==o[T])),f=0,u=O.length;f<u;f++){var g=O[f],m=o[g],v=(v=t,m=m,h=c=l=r=void 0,E.getComputedStyle||-1===m.indexOf("%")||(r=v.style,l=r.left,c=v.runtimeStyle,(h=c&&c.left)&&(c.left=v.currentStyle.left),r.left=m,m=r.pixelLeft,r.left=l,h&&(c.left=h)),parseFloat(m));d[g]=isNaN(v)?0:v}var y=d.paddingLeft+d.paddingRight,w=d.paddingTop+d.paddingBottom,x=d.marginLeft+d.marginRight,b=d.marginTop+d.marginBottom,L=d.borderLeftWidth+d.borderRightWidth,S=d.borderTopWidth+d.borderBottomWidth,C=p&&H,k=$(o.width),k=(!1!==k&&(d.width=k+(C?0:y+L)),$(o.height));return!1!==k&&(d.height=k+(C?0:w+S)),d.innerWidth=d.width-(y+L),d.innerHeight=d.height-(w+S),d.outerWidth=d.width+x,d.outerHeight=d.height+b,d}}}"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],t):"object"==typeof exports?module.exports=t(require("desandro-get-style-property")):E.getSize=t(E.getStyleProperty)}(window),function(e){var i=e.document,o=[];function n(t){"function"==typeof t&&(n.isReady?t():o.push(t))}function s(t){t="readystatechange"===t.type&&"complete"!==i.readyState;n.isReady||t||a()}function a(){n.isReady=!0;for(var t=0,e=o.length;t<e;t++)(0,o[t])()}function t(t){return"complete"===i.readyState?a():(t.bind(i,"DOMContentLoaded",s),t.bind(i,"readystatechange",s),t.bind(e,"load",s)),n}n.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],t):"object"==typeof exports?module.exports=t(require("eventie")):e.docReady=t(e.eventie)}(window),function(n){"use strict";var t,i=function(){if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],e=0,i=t.length;e<i;e++){var o=t[e]+"MatchesSelector";if(n[o])return o}}();function o(t,e){return t[i](e)}function s(t){t.parentNode||document.createDocumentFragment().appendChild(t)}t=i?o(document.createElement("div"),"div")?o:function(t,e){return s(t),o(t,e)}:function(t,e){s(t);for(var i=t.parentNode.querySelectorAll(e),o=0,n=i.length;o<n;o++)if(i[o]===t)return!0;return!1},"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t}(Element.prototype),function(i,o){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(t,e){return o(i,t,e)}):"object"==typeof exports?module.exports=o(i,require("doc-ready"),require("desandro-matches-selector")):i.fizzyUIUtils=o(i,i.docReady,i.matchesSelector)}(window,function(d,t,c){var i,p={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Object.prototype.toString,f=(p.isArray=function(t){return"[object Array]"==e.call(t)},p.makeArray=function(t){var e=[];if(p.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,o=t.length;i<o;i++)e.push(t[i]);else e.push(t);return e},p.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;i<o;i++)if(t[i]===e)return i;return-1},p.removeFrom=function(t,e){e=p.indexOf(t,e);-1!=e&&t.splice(e,1)},p.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},p.setText=function(t,e){t[i=i||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=e},p.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,c(t,e))return t},p.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},p.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},p.filterFindElements=function(t,e){for(var i=[],o=0,n=(t=p.makeArray(t)).length;o<n;o++){var s=t[o];if(p.isElement(s))if(e){c(s,e)&&i.push(s);for(var a=s.querySelectorAll(e),r=0,l=a.length;r<l;r++)i.push(a[r])}else i.push(s)}return i},p.debounceMethod=function(t,e,o){var n=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s],e=(t&&clearTimeout(t),arguments),i=this;this[s]=setTimeout(function(){n.apply(i,e),delete i[s]},o||100)}},p.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},d.console);return p.htmlInit=function(c,h){t(function(){for(var t=p.toDashed(h),e=document.querySelectorAll(".js-"+t),i="data-"+t+"-options",o=0,n=e.length;o<n;o++){var s,a=e[o],r=a.getAttribute(i);try{s=r&&JSON.parse(r)}catch(t){f&&f.error("Error parsing "+i+" on "+a.nodeName.toLowerCase()+(a.id?"#"+a.id:"")+": "+t);continue}var r=new c(a,s),l=d.jQuery;l&&l.data(a,h,r)}})},p}),function(n,s){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(t,e,i,o){return s(n,t,e,i,o)}):"object"==typeof exports?module.exports=s(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=s(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(t,e,i,s,o){"use strict";var n=t.getComputedStyle,a=n?function(t){return n(t,null)}:function(t){return t.currentStyle};var r=s("transition"),t=s("transform"),t=r&&t,l=!!s("perspective"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[r],h=["transform","transition","transitionDuration","transitionProperty"],d=function(){for(var t={},e=0,i=h.length;e<i;e++){var o=h[e],n=s(o);n&&n!==o&&(t[o]=n)}return t}();function p(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}o.extend(p.prototype,e.prototype),p.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};var t=$(this.element);!t.hasClass("row")&&0!=t.filter("[class*='col-md']").length||t.css("width","100%"),this.css({position:"absolute"})},p.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},p.prototype.getSize=function(){this.size=i(this.element)},p.prototype.css=function(t){var e,i=this.element.style;for(e in t)i[d[e]||e]=t[e]},p.prototype.getPosition=function(){var t=a(this.element),e=this.layout.options,i=e.isOriginLeft,e=e.isOriginTop,o=t[i?"left":"right"],t=t[e?"top":"bottom"],n=this.layout.size,o=-1!=o.indexOf("%")?parseFloat(o)/100*n.width:parseInt(o,10),t=-1!=t.indexOf("%")?parseFloat(t)/100*n.height:parseInt(t,10),o=isNaN(o)?0:o,t=isNaN(t)?0:t;o-=i?n.paddingLeft:n.paddingRight,t-=e?n.paddingTop:n.paddingBottom,this.position.x=o,this.position.y=t},p.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},o=e.isOriginLeft?"paddingLeft":"paddingRight",n=e.isOriginLeft?"left":"right",s=e.isOriginLeft?"right":"left",o=this.position.x+t[o],n=(i[n]=this.getXValue(o),i[s]="",e.isOriginTop?"paddingTop":"paddingBottom"),o=e.isOriginTop?"top":"bottom",s=e.isOriginTop?"bottom":"top",e=this.position.y+t[n];i[o]=this.getYValue(e),i[s]="",this.css(i),this.emitEvent("layout",[this])},p.prototype.getXValue=function(t){var e=this.layout.options;return e.percentPosition&&!e.isHorizontal?t/this.layout.size.width*100+"%":t+"px"},p.prototype.getYValue=function(t){var e=this.layout.options;return e.percentPosition&&e.isHorizontal?t/this.layout.size.height*100+"%":t+"px"},p.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=parseInt(t,10),s=parseInt(e,10),n=n===this.position.x&&s===this.position.y;this.setPosition(t,e),n&&!this.isTransitioning?this.layoutPosition():((s={}).transform=this.getTranslate(t-i,e-o),this.transition({to:s,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},p.prototype.getTranslate=function(t,e){var i=this.layout.options;return t=i.isOriginLeft?t:-t,e=i.isOriginTop?e:-e,l?"translate3d("+t+"px, "+e+"px, 0)":"translate("+t+"px, "+e+"px)"},p.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},p.prototype.moveTo=t?p.prototype._transitionTo:p.prototype.goTo,p.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},p.prototype._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},p.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var f="opacity,"+(d.transform||"transform").replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()}),u=(p.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:f,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(c,this,!1))},p.prototype.transition=p.prototype[r?"_transition":"_nonTransition"],p.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},p.prototype.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"}),g=(p.prototype.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=u[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},p.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(c,this,!1),this.isTransitioning=!1},p.prototype._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:""});return p.prototype.removeTransitionStyles=function(){this.css(g)},p.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},p.prototype.remove=function(){var t;r&&parseFloat(this.layout.options.transitionDuration)?((t=this).once("transitionEnd",function(){t.removeElem()}),this.hide()):this.removeElem()},p.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},p.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},p.prototype.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},p.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},p.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},p.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},p}),function(s,a){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,o,n){return a(s,t,e,i,o,n)}):"object"==typeof exports?module.exports=a(s,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):s.Outlayer=a(s,s.eventie,s.EventEmitter,s.getSize,s.fizzyUIUtils,s.Outlayer.Item)}(window,function(t,e,i,n,s,o){"use strict";function a(){}var r=t.console,l=t.jQuery,c=0,h={};function d(t,e){var i=s.getQueryElement(t);i?(this.element=i,l&&(this.$element=l(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(e),e=++c,this.element.outlayerGUID=e,(h[e]=this)._create(),this.options.isInitLayout&&this.layout()):r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return d.namespace="outlayer",d.Item=o,d.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},s.extend(d.prototype,i.prototype),d.prototype.option=function(t){s.extend(this.options,t)},d.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},d.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},d.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0,s=e.length;n<s;n++){var a=new i(e[n],this);o.push(a)}return o},d.prototype._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},d.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;e<i;e++)t.push(this.items[e].element);return t},d.prototype._init=d.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d.prototype._resetLayout=function(){this.getSize()},d.prototype.getSize=function(){this.size=n(this.element)},d.prototype._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):s.isElement(o)&&(i=o),this[t]=i?n(i)[e]:o):this[t]=0},d.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d.prototype._getItemsForLayout=function(t){for(var e=[],i=0,o=t.length;i<o;i++){var n=t[i];n.isIgnored||e.push(n)}return e},d.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],o=0,n=t.length;o<n;o++){var s=t[o],a=this._getItemLayoutPosition(s);a.item=s,a.isInstant=e||s.isLayoutInstant,i.push(a)}this._processLayoutQueue(i)}},d.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},d.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;e<i;e++){var o=t[e];this._positionItem(o.item,o.x,o.y,o.isInstant)}},d.prototype._positionItem=function(t,e,i,o){o?t.goTo(e,i):t.moveTo(e,i)},d.prototype._postLayout=function(){this.resizeContainer()},d.prototype.resizeContainer=function(){var t;this.options.isResizingContainer&&(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d.prototype._getContainerSize=a,d.prototype._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d.prototype._emitCompleteOnItems=function(t,e){var i=this;function o(){i.dispatchEvent(t+"Complete",null,[e])}var n=e.length;if(e&&n)for(var s=0,a=0,r=e.length;a<r;a++)e[a].once(t,l);else o();function l(){++s===n&&o()}},d.prototype.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;this.emitEvent(t,o),l&&(this.$element=this.$element||l(this.element),e?((o=l.Event(e)).type=t,this.$element.trigger(o,i)):this.$element.trigger(t,i))},d.prototype.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.prototype.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;e<i;e++){var o=t[e];this.ignore(o)}}},d.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;e<i;e++){var o=t[e];s.removeFrom(this.stamps,o),this.unignore(o)}},d.prototype._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=s.makeArray(t)},d.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;t<e;t++){var i=this.stamps[t];this._manageStamp(i)}}},d.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d.prototype._manageStamp=a,d.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=n(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},d.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},d.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout(function(){t.resize(),delete t.resizeTimeout},100)},d.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.prototype.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.prototype.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.prototype.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prototype.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},d.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].reveal()},d.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].hide()},d.prototype.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.prototype.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.prototype.getItem=function(t){for(var e=0,i=this.items.length;e<i;e++){var o=this.items[e];if(o.element===t)return o}},d.prototype.getItems=function(t){for(var e=[],i=0,o=(t=s.makeArray(t)).length;i<o;i++){var n=t[i],n=this.getItem(n);n&&e.push(n)}return e},d.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,o=e.length;i<o;i++){var n=e[i];n.remove(),s.removeFrom(this.items,n)}},d.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;e<i;e++)this.items[e].destroy();this.unbindResize();t=this.element.outlayerGUID;delete h[t],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},d.data=function(t){t=(t=s.getQueryElement(t))&&t.outlayerGUID;return t&&h[t]},d.create=function(t,e){function i(){d.apply(this,arguments)}return Object.create?i.prototype=Object.create(d.prototype):s.extend(i.prototype,d.prototype),(i.prototype.constructor=i).defaults=s.extend({},d.defaults),s.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=d.data,(i.Item=function(){o.apply(this,arguments)}).prototype=new o,s.htmlInit(i,t),l&&l.bridget&&l.bridget(t,i),i},d.Item=o,d}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}(e.prototype=new t.Item)._create=function(){this.id=this.layout.itemGUID++,t.Item.prototype._create.call(this),this.sortData={}},e.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var o=i[t];this.sortData[t]=o(this.element,this)}}};var i=e.prototype.destroy;return e.prototype.destroy=function(){i.apply(this,arguments),this.css({display:""})},e}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(e,i){"use strict";function o(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}for(var t=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,s=t.length;n<s;n++){var a=t[n];o.prototype[a]=function(t){return function(){return i.prototype[t].apply(this.isotope,arguments)}}(a)}return o.prototype.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},o.prototype.getSegmentSize=function(t,e){var i,t=t+e,o="outer"+e;this._getMeasurement(t,o),this[t]||(i=this.getFirstItemSize(),this[t]=i&&i[o]||this.isotope.size["inner"+e])},o.prototype.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},o.modes={},o.create=function(t,e){function i(){o.apply(this,arguments)}return i.prototype=new o,e&&(i.options=e),o.modes[i.prototype.namespace=t]=i},o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,function(t,r,l){t=t.create("masonry");return t.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},t.prototype.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&r(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,t=r(t);this.containerWidth=t&&t.innerWidth},t.prototype._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),e=this._getColGroup(e),i=Math.min.apply(Math,e),o=l.indexOf(e,i),n={x:this.columnWidth*o,y:i},s=i+t.size.outerHeight,a=this.cols+1-e.length,r=0;r<a;r++)this.colYs[o+r]=s;return n},t.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++){var n=this.colYs.slice(o,o+t);e[o]=Math.max.apply(Math,n)}return e},t.prototype._manageStamp=function(t){for(var e=r(t),t=this._getElementOffset(t),i=this.options.isOriginLeft?t.left:t.right,o=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),n=Math.floor(o/this.columnWidth),s=(n-=o%this.columnWidth?0:1,n=Math.min(this.cols-1,n),(this.options.isOriginTop?t.top:t.bottom)+e.outerHeight),a=i;a<=n;a++)this.colYs[a]=Math.max(s,this.colYs[a])},t.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},t.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i,t=t.create("masonry"),o=t.prototype._getElementOffset,n=t.prototype.layout,s=t.prototype._getMeasurement,a=t.prototype,r=e.prototype;for(i in r)a[i]=r[i];t.prototype._getElementOffset=o,t.prototype.layout=n,t.prototype._getMeasurement=s;var l=t.prototype.measureColumns,c=(t.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,l.call(this)},t.prototype._manageStamp);return t.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,c.apply(this,arguments)},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";t=t.create("fitRows");return t.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,i=(0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},t.prototype._getContainerSize=function(){return{height:this.maxY}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";t=t.create("vertical",{horizontalAlignment:0});return t.prototype._resetLayout=function(){this.y=0},t.prototype._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},t.prototype._getContainerSize=function(){return{height:this.y}},t}),function(a,r){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(t,e,i,o,n,s){return r(a,t,0,i,o,n,s)}):"object"==typeof exports?module.exports=r(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=r(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(t,o,e,i,s,n,a){var r=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},c=document.documentElement.textContent?function(t){return t.textContent}:function(t){return t.innerText},h=o.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),d=(h.Item=n,h.LayoutMode=a,h.prototype._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),o.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],a.modes)this._initLayoutMode(t)},h.prototype.reloadItems=function(){this.itemGUID=0,o.prototype.reloadItems.call(this)},h.prototype._itemize=function(){for(var t=o.prototype._itemize.apply(this,arguments),e=0,i=t.length;e<i;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},h.prototype._initLayoutMode=function(t){var e=a.modes[t],i=this.options[t]||{};this.options[t]=e.options?s.extend(e.options,i):i,this.modes[t]=new e(this)},h.prototype.layout=function(){!this._isLayoutInited&&this.options.isInitLayout?this.arrange():this._layout()},h.prototype._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},h.prototype.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items),i=(this.filteredItems=e.matches,this);function o(){i.reveal(e.needReveal),i.hide(e.needHide)}this._bindArrangeComplete(),this._isInstant?this._noTransition(o):o(),this._sort(),this._layout()},h.prototype._init=h.prototype.arrange,h.prototype._getIsInstant=function(){var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=t},h.prototype._bindArrangeComplete=function(){var t,e,i,o=this;function n(){t&&e&&i&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}this.once("layoutComplete",function(){t=!0,n()}),this.once("hideComplete",function(){e=!0,n()}),this.once("revealComplete",function(){i=!0,n()})},h.prototype._filter=function(t){for(var e=this.options.filter,i=[],o=[],n=[],s=this._getFilterTest(e||"*"),a=0,r=t.length;a<r;a++){var l,c=t[a];c.isIgnored||((l=s(c))&&i.push(c),l&&c.isHidden?o.push(c):l||c.isHidden||n.push(c))}return{matches:i,needReveal:o,needHide:n}},h.prototype._getFilterTest=function(e){return r&&this.options.isJQueryFiltering?function(t){return r(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return i(t.element,e)}},h.prototype.updateSortData=function(t){t=t?(t=s.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},h.prototype._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=d(i)}},h.prototype._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()},function(t){var e,i,o,n,s;return"string"==typeof t&&(o=(i=(e=l(t).split(" "))[0]).match(/^\[(.+)\]$/),n=function(e,i){var t;t=e?function(t){return t.getAttribute(e)}:function(t){t=t.querySelector(i);return t&&c(t)};return t}(o&&o[1],i),t=(s=h.sortDataParsers[e[1]])?function(t){return t&&s(n(t))}:function(t){return t&&n(t)}),t});h.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},h.prototype._sort=function(){var t,r,l,e=this.options.sortBy;e&&(t=[].concat.apply(e,this.sortHistory),r=t,l=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0,o=r.length;i<o;i++){var n=r[i],s=t.sortData[n],a=e.sortData[n];if(a<s||s<a)return(a<s?1:-1)*((void 0!==l[n]?l[n]:l)?1:-1)}return 0}),e!=this.sortHistory[0])&&this.sortHistory.unshift(e)},h.prototype._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(e)return e.options=this.options[t],e;throw new Error("No layout mode: "+t)},h.prototype._resetLayout=function(){o.prototype._resetLayout.call(this),this._mode()._resetLayout()},h.prototype._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},h.prototype._manageStamp=function(t){this._mode()._manageStamp(t)},h.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},h.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},h.prototype.appended=function(t){var t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},h.prototype.prepended=function(t){var e,t=this._itemize(t);t.length&&(this._resetLayout(),this._manageStamps(),e=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=e.concat(this.filteredItems),this.items=t.concat(this.items))},h.prototype._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},h.prototype.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,o=e.length,n=0;n<o;n++)i=e[n],this.element.appendChild(i.element);t=this._filter(e).matches;for(n=0;n<o;n++)e[n].isLayoutInstant=!0;for(this.arrange(),n=0;n<o;n++)delete e[n].isLayoutInstant;this.reveal(t)}};var p=h.prototype.remove;return h.prototype.remove=function(t){t=s.makeArray(t);var e=this.getItems(t),i=(p.call(this,t),e&&e.length);if(i)for(var o=0;o<i;o++){var n=e[o];s.removeFrom(this.filteredItems,n)}},h.prototype.shuffle=function(){for(var t=0,e=this.items.length;t<e;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},h.prototype._noTransition=function(t){var e=this.options.transitionDuration,t=(this.options.transitionDuration=0,t.call(this));return this.options.transitionDuration=e,t},h.prototype.getFilteredItemElements=function(){for(var t=[],e=0,i=this.filteredItems.length;e<i;e++)t.push(this.filteredItems[e].element);return t},h}),function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;return t&&e&&((i=(i=this._events=this._events||{})[t]=i[t]||[]).includes(e)||i.push(e)),this},e.once=function(t,e){var i;return t&&e&&(this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0),this},e.off=function(t,e){t=this._events&&this._events[t];return t&&t.length&&-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];var o,n=this._onceEvents&&this._onceEvents[t];for(o of i)n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){let s=e.jQuery,a=e.console;function r(t,e,i){if(!(this instanceof r))return new r(t,e,i);let o=t;var n;(o="string"==typeof t?document.querySelectorAll(t):o)?(this.elements=(n=o,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?[...n]:[n]),this.options={},"function"==typeof e?i=e:Object.assign(this.options,e),i&&this.on("always",i),this.getImages(),s&&(this.jqDeferred=new s.Deferred),setTimeout(this.check.bind(this))):a.error("Bad element for imagesLoaded "+(o||t))}(r.prototype=Object.create(t.prototype)).getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const n=[1,9,11],l=(r.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e,i,o=t["nodeType"];if(o&&n.includes(o)){for(e of t.querySelectorAll("img"))this.addImage(e);if("string"==typeof this.options.background)for(i of t.querySelectorAll(this.options.background))this.addElementBackgroundImages(i)}},/url\((['"])?(.*?)\1\)/gi);function i(t){this.img=t}function o(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(e){var i=getComputedStyle(e);if(i){let t=l.exec(i.backgroundImage);for(;null!==t;){var o=t&&t[2];o&&this.addBackground(o,e),t=l.exec(i.backgroundImage)}}},r.prototype.addImage=function(t){t=new i(t);this.images.push(t)},r.prototype.addBackground=function(t,e){t=new o(t,e);this.images.push(t)},r.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,this.images.length){let e=(t,e,i)=>{setTimeout(()=>{this.progress(t,e,i)})};this.images.forEach(function(t){t.once("progress",e),t.check()})}else this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t;t=this.img.parentNode,t="PICTURE"===t.nodeName?t:this.img;this.emitEvent("progress",[this,t,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(o.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((s=t).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(s(this))})})(),r}),function(a){function o(t){!t.attr("title")&&"string"==typeof t.attr("original-title")||t.attr("original-title",t.attr("title")||"").removeAttr("title")}function s(t,e){this.$element=a(t),this.options=e,this.enabled=!0,o(this.$element)}s.prototype={show:function(){var t=this.getTitle();if(t&&this.enabled){var e,i=this.tip(),o=(i.find(".tipsy-inner")[this.options.html?"html":"text"](t),i[0].className="tipsy",i.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body),a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})),n=i[0].offsetWidth,s=i[0].offsetHeight,t="function"==typeof this.options.gravity?this.options.gravity.call(this.$element[0]):this.options.gravity;switch(t.charAt(0)){case"n":e={top:o.top+o.height+this.options.offset,left:o.left+o.width/2-n/2};break;case"s":e={top:o.top-s-this.options.offset,left:o.left+o.width/2-n/2};break;case"e":e={top:o.top+o.height/2-s/2,left:o.left-n-this.options.offset};break;case"w":e={top:o.top+o.height/2-s/2,left:o.left+o.width+this.options.offset}}2==t.length&&("w"==t.charAt(1)?e.left=o.left+o.width/2-15:e.left=o.left+o.width/2-n+15),i.css(e).addClass("tipsy-"+t),this.options.fade?i.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):i.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){a(this).remove()}):this.tip().remove()},getTitle:function(){var t,e=this.$element,i=this.options;return o(e),"string"==typeof(i=this.options).title?t=e.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(t=i.title.call(e[0])),(t=(""+t).replace(/(^\s*|\s*$)/,""))||i.fallback},tip:function(){return this.$tip||(this.$tip=a('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"/></div>')),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},a.fn.tipsy=function(i){var t,e,o;return!0===i?this.data("tipsy"):"string"==typeof i?this.data("tipsy")[i]():((i=a.extend({},a.fn.tipsy.defaults,i)).live||this.each(function(){n(this)}),"manual"!=i.trigger&&(t=i.live?"live":"bind",e="hover"==i.trigger?"mouseenter":"focus",o="hover"==i.trigger?"mouseleave":"blur",this[t](e,function(){var t=n(this);t.hoverState="in",0==i.delayIn?t.show():setTimeout(function(){"in"==t.hoverState&&t.show()},i.delayIn)})[t](o,function(){var t=n(this);t.hoverState="out",0==i.delayOut?t.hide():setTimeout(function(){"out"==t.hoverState&&t.hide()},i.delayOut)})),this);function n(t){var e=a.data(t,"tipsy");return e||(e=new s(t,a.fn.tipsy.elementOptions(t,i)),a.data(t,"tipsy",e)),e}},a.fn.tipsy.defaults={delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},a.fn.tipsy.elementOptions=function(t,e){return a.metadata?a.extend({},e,a(t).metadata()):e},a.fn.tipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?"s":"n"},a.fn.tipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"}}(jQuery); |