function awbScrollToTarget(e,t){var n,o,s,i,a,r,l,u,c,h,f,d,p=jQuery("html").hasClass("ua-edge")||jQuery("html").hasClass("ua-safari-12")||jQuery("html").hasClass("ua-safari-11")||jQuery("html").hasClass("ua-safari-10")?"body":"html",g=jQuery(".fusion-tb-header").length,y=!1,m=!1;if(t=void 0!==t?t:0,e.length){if(e.parents(".fusion-scroll-section").hasClass("awb-swiper-full-sections"))return;if((e.parents(".hundred-percent-height-scrolling").length||e.find(".hundred-percent-height-scrolling").length)&&(0!=fusionScrollToAnchorVars.container_hundred_percent_height_mobile||!Modernizr.mq("only screen and (max-width: "+fusionScrollToAnchorVars.content_break_point+"px)"))){if((d=e.hasClass("fusion-scroll-section-element")?e:e.parents(".fusion-scroll-section-element")).hasClass("active")&&d.offset().top>=jQuery(window).scrollTop()&&d.offset().toph&&(i=h),void r.animate({scrollTop:i},{duration:400})):(n=fusion.getAdminbarHeight(),s=jQuery(document).scrollTop(),g?(jQuery("body").addClass("fusion-scrolling-active"),(y=fusionGetStickyOffset())||(y=n),i=e.offset().top-y-t):(o="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():0,i=e.offset().top-n-o-t),a=Math.abs(s-i)/2,f=s>i?s-a:s+a,jQuery(p).animate({scrollTop:f},{duration:400,easing:"easeInExpo",complete:function(){n=fusion.getAdminbarHeight(),g?((y=fusionGetStickyOffset())||(y=n),i=Math.ceil(e.offset().top)-y-t):(o="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():0,i=Math.ceil(e.offset().top)-n-o-t),jQuery(p).animate({scrollTop:i},450,"easeOutExpo",function(){location.hash&&"#_"===location.hash.substring(0,2)&&"history"in window&&"replaceState"in history&&history.replaceState("",window.location.href.replace("#_","#"),window.location.href.replace("#_","#")),g&&((m=fusionGetStickyOffset())||(m=n),y!==m&&(i=Math.ceil(e.offset().top)-m-t,jQuery(p).animate({scrollTop:i},450)),jQuery("body").removeClass("fusion-scrolling-active"))})}}),(e.hasClass("tab-pane")||e.hasClass("tab-link"))&&"function"==typeof jQuery.fn.fusionSwitchTabOnLinkClick&&setTimeout(function(){e.parents(".fusion-tabs").fusionSwitchTabOnLinkClick()},100),!1)}}!function(e){"use strict";e.fn.fusion_scroll_to_anchor_target=function(t){var n=void 0!==e(this).attr("href")?e(this).attr("href"):e(this).data("link"),o=n.substr(n.indexOf("#")).slice(1),s=e("#"+o);""!==o&&awbScrollToTarget(s,t)}}(jQuery),jQuery(document).ready(function(){jQuery("body").on("click",'.fusion-menu a:not([href="#"], .fusion-megamenu-widgets-container a, .search-link), .fusion-widget-menu a, .fusion-secondary-menu a, .fusion-mobile-nav-item a:not([href="#"], .search-link), .fusion-button:not([href="#"], input, button), .fusion-one-page-text-link:not([href="#"]), .fusion-content-boxes .fusion-read-more:not([href="#"]), .fusion-imageframe > .fusion-no-lightbox, .content-box-wrapper:not(.link-area-box) .heading-link, a.woocommerce-review-link, .awb-toc-el .awb-toc-el__item-anchor',function(e){var t,n,o,s,i,a,r,l,u=jQuery("body").hasClass("fusion-builder-live");if(jQuery(this).hasClass("avada-noscroll")||jQuery(this).parent().hasClass("avada-noscroll")||jQuery(this).is(".fusion-content-box-button, .fusion-tagline-button")&&jQuery(this).parents(".avada-noscroll").length)return!0;if(this.hash){if(r=jQuery(this).attr("target")?jQuery(this).attr("target"):"_self",s=(o=void 0!==(n=(t=jQuery(this).attr("href")).split("#"))[1]?n[1]:"").substring(0,1),a=(i=n[0]).substring(i.length-1,i.length),window.location.host!==this.host)return;if("#hubspot-open-chat"===t)return;if("#previousStep"===t||"#nextStep"===t)return;if(void 0!==(l=o.split("-"))[0]&&"tab"===l[0]&&jQuery(this).parents(".awb-menu__mega-wrap").length)return;if("/"!==a&&(i+="/"),"!"===s||"/"===s)return;e.preventDefault(),location.pathname.replace(/^\//,"")!=this.pathname.replace(/^\//,"")&&"#"!==t.charAt(0)||""!==location.search&&-1===location.search.indexOf("lang=")&&-1===location.search.indexOf("builder=")&&!jQuery(this).hasClass("tfs-scroll-down-indicator")&&!jQuery(this).hasClass("fusion-same-page-scroll")?u||t.includes("-oc__")||("/"===i&&""!==location.search&&(i=location.href.replace(location.search,"")),window.open(i+"#_"+o,r)):(jQuery(this).fusion_scroll_to_anchor_target(),"history"in window&&"replaceState"in history&&!u&&history.replaceState("",t,t),jQuery(this).closest(".awb-menu.flyout-submenu-expanded").length?jQuery(this).closest(".awb-menu.flyout-submenu-expanded").find(".awb-menu__flyout-close").trigger("click"):jQuery(this).closest(".fusion-flyout-menu").length?jQuery(".fusion-flyout-menu-toggle").trigger("click"):jQuery(this).closest(".fusion-megamenu-menu, .awb-menu__sub-ul").length&&jQuery(this).blur(),jQuery(this).closest(".awb-menu .awb-menu__mega-wrap").length&&jQuery(this).blur())}})}),location.hash&&"#_"===location.hash.substring(0,2)&&(jQuery(".fusion-page-load-link").attr("href",decodeURIComponent("#"+location.hash.substring(2))),jQuery(window).on("load",function(){jQuery(".fusion-blog-shortcode").length?setTimeout(function(){jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()},300):jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()}));