function toggleSwiperScrollingSections(){const e=jQuery("#content").find(".fusion-scroll-section");e.length&&(e.hasClass("swiper-initialized")||e.hasClass("fusion-full-scroll-disabled"))&&0==fusionContainerVars.container_hundred_percent_height_mobile&&(Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")?e.hasClass("fusion-full-scroll-disabled")||(e.addClass("fusion-full-scroll-disabled"),void 0!==e[0].swiper&&e[0].swiper.destroy()):e.hasClass("fusion-full-scroll-disabled")&&(e.removeClass("fusion-full-scroll-disabled"),initSwiperScrollingSection(e)))}function fusionInitStickyContainers(){"function"==typeof jQuery.fn.stick_in_parent&&jQuery(".fusion-sticky-container").each((function(){fusionInitSticky(jQuery(this))}))}function fusionInitSticky(e){var t=void 0===e.attr("data-transition-offset")?0:parseFloat(e.attr("data-transition-offset")),i=void 0===e.attr("data-sticky-offset")?0:e.attr("data-sticky-offset"),n=void 0!==e.attr("data-scroll-offset")&&parseFloat(e.attr("data-scroll-offset")),o={sticky_class:"fusion-container-stuck",bottoming:!0,offset_top:i,transition_offset:t,clone:!1},s="data-sticky-medium-visibility";jQuery("body").hasClass("fusion-disable-sticky")?e.data("sticky_kit")&&e.trigger("sticky_kit:detach"):"object"!=typeof fusion||"function"!=typeof fusion.isLarge||(fusion.isLarge()?s="data-sticky-large-visibility":fusion.isSmall()&&(s="data-sticky-small-visibility"),void 0!==e.attr(s)&&e.attr(s))?e.data("sticky_kit")||(n&&(o.scroll_transition=n),e.closest(".fusion-tb-header").length||e.closest(".fusion-tb-page-title-bar").length?(o.parent="#wrapper",o.bottoming=!1):e.closest(".fusion-content-tb").length?o.parent=".fusion-content-tb":e.closest(".fusion-builder-live-editor").length?o.parent="#fusion_builder_container":e.parent().parent(".post-content").length?o.parent=".post-content":e.hasClass("awb-sticky-content")&&(o.parent="#wrapper"),"string"==typeof e.attr("data-sticky-parent")&&(o.parent=e.attr("data-sticky-parent")),"string"==typeof e.attr("data-sticky-bottoming")&&(o.bottoming=e.attr("data-sticky-bottoming")),jQuery("body").hasClass("fusion-builder-live")||void 0===e.attr("data-sticky-height-transition")||(o.clone=!0),e.stick_in_parent(o)):e.data("sticky_kit")&&e.trigger("sticky_kit:detach")}function fusionGetStickyOffset(){var e=0,t=jQuery(".fusion-container-stuck:not( .side-header-wrapper )");return t.length?(t.each((function(){var t=jQuery(this),i=t.position().top+t.outerHeight(!0);fusionIsWholeElementInViewport(t[0])&&(t.closest("#side-header").length||t.closest(".off-canvas-content").length||i>e&&(e=i))})),e):e}function fusionIsWholeElementInViewport(e){const t=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return!(100>Math.floor(100-(0<=t.top?0:t.top)/+-t.height*100)||100>Math.floor(100-(t.bottom-i)/t.height*100))}function initSwiperScrollingSection(e){if(!e.length)return;const t={slide:{prev:{translate:[0,"-100%",0],opacity:0},next:{translate:[0,"100%",0],opacity:0}},"slide-right":{prev:{translate:["100%",0,0],opacity:0},next:{translate:["-100%",0,0],opacity:0}},"slide-left":{prev:{translate:["-100%",0,0],opacity:0},next:{translate:["100%",0,0],opacity:0}},stack:{prev:{translate:[0,"60px","-30px"],scale:.7,opacity:0},next:{translate:[0,"100%",0]}},zoom:{prev:{scale:1.3,opacity:0},next:{scale:.7,opacity:0}},"slide-zoom-out":{prev:{translate:[0,"-100%",0],scale:1.5,opacity:0},next:{translate:[0,"100%",0],scale:1.5,opacity:0}},"slide-zoom-in":{prev:{translate:[0,"-100%",0],scale:.8,opacity:0},next:{translate:[0,"100%",0],scale:.8,opacity:0}}};let i={speed:e.data("speed"),observer:!0,observeParents:!0,mousewheel:{releaseOnEdges:!0},allowTouchMove:!1,touchReleaseOnEdges:!0,on:{afterInit:function(t){if(e.find(".fusion-scroll-section-nav ul li:first-child a").addClass("active"),e.addClass("swiper-ready"),window.location.hash.length&&e.find(window.location.hash).length){const i=e.find(window.location.hash+".swiper-slide").length?e.find(window.location.hash+".swiper-slide"):e.find(window.location.hash).closest(".swiper-slide");i.length&&setTimeout(()=>{t.slideTo(i.index(),0),e[0].scrollIntoView()},100)}},activeIndexChange:function(t){e.find(".fusion-scroll-section-nav ul li a").removeClass("active"),e.find(".fusion-scroll-section-nav ul li").eq(t.activeIndex).find("a").addClass("active"),setTimeout(()=>{s()},100)},slideChange:function(t){e[0].scrollIntoView({behavior:"smooth"}),setTimeout((function(){t.params.mousewheel.releaseOnEdges=!1}),500)},reachEnd:function(e){setTimeout((function(){e.params.mousewheel.releaseOnEdges=!0}),750)},reachBeginning:function(e){setTimeout((function(){e.params.mousewheel.releaseOnEdges=!0}),750)}}},n={};-1!==e.data("animation").indexOf("scroll-")?(n={direction:"horizontal",effect:"slide"},-1!==e.data("animation").indexOf("-free")&&(n.freeMode={enabled:!0}),-1!==e.data("animation").indexOf("-left")&&(n.controller={inverse:!0})):n={direction:"vertical",effect:"creative",creativeEffect:t[e.data("animation")]},jQuery.extend(i,n),("ontouchstart"in window||0l?jQuery(window).scrollTop(i.sectionTop+i.viewportHeight*c-1):jQuery(window).scrollTop(i.sectionTop+i.viewportHeight*(c-1)+1))}))),jQuery(".hundred-percent-height").length&&(setCorrectResizeValuesForScrollSections(),jQuery(window).on("resize",(function(){setCorrectResizeValuesForScrollSections()}))))}function setCorrectResizeValuesForScrollSections(){var e=jQuery("#content").find(".fusion-scroll-section"),t=e.parent().hasClass("fusion-content-tb")?e.parent():jQuery("#content"),i=0,n=0,o=fusion.getAdminbarHeight();e.length&&(jQuery(".fusion-scroll-section.active").find(".fusion-scroll-section-element").css({left:t.offset().left}),jQuery(".fusion-scroll-section").find(".fusion-scroll-section-element").css({width:t.width()}),0==fusionContainerVars.container_hundred_percent_height_mobile&&(Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")?(jQuery(".fusion-scroll-section").removeClass("active").addClass("fusion-scroll-section-mobile-disabled"),jQuery(".fusion-scroll-section").attr("style",""),jQuery(".fusion-scroll-section").find(".fusion-scroll-section-element").attr("style",""),jQuery(".fusion-scroll-section").find(".hundred-percent-height-scrolling").css("height","auto"),jQuery(".fusion-scroll-section").find(".fusion-fullwidth-center-content").css("height","auto")):jQuery(".fusion-scroll-section").hasClass("fusion-scroll-section-mobile-disabled")&&(jQuery(".fusion-scroll-section").find(".fusion-fullwidth-center-content").css("height",""),Number(fusionContainerVars.is_sticky_header_transparent)||"function"!=typeof getStickyHeaderHeight||(i=getStickyHeaderHeight(!0)),n=i+o,e.each((function(){1=i?(t.addClass("active"),jQuery(l).animate({scrollTop:n-50},{duration:50,easing:"easeInExpo",complete:function(){jQuery(l).animate({scrollTop:n},{duration:50,easing:"easeOutExpo",complete:function(){Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")||jQuery(".fusion-scroll-section").removeClass("fusion-scroll-section-mobile-disabled")}})}})):Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")||jQuery(".fusion-scroll-section").removeClass("fusion-scroll-section-mobile-disabled")}))}function getScrollSectionPositionValues(e){var t={},i=jQuery(".fusion-scroll-section").parent().hasClass("fusion-content-tb")?jQuery(".fusion-scroll-section").parent():jQuery("#content");return t.sectionTop=Math.ceil(e.offset().top),t.sectionHeight=Math.ceil(e.outerHeight()),t.sectionBottom=Math.floor(t.sectionTop+t.sectionHeight),t.viewportTop=Math.ceil(jQuery(window).scrollTop()),t.viewportHeight=jQuery(window).height(),t.viewportBottom=Math.floor(t.viewportTop+t.viewportHeight),t.sectionWidth=i.width(),t.sectionTopOffset=fusion.getAdminbarHeight(),t.sectionLeftOffset=i.offset().left,t.sectionTopOffset+=Number(fusionContainerVars.is_sticky_header_transparent)||"function"!=typeof getStickyHeaderHeight?0:getStickyHeaderHeight(!0),t.viewportTop+=t.sectionTopOffset,t}jQuery(window).on("load fusion-element-render-fusion_builder_container resize",(function(e,t){var i=void 0!==t?jQuery('div[data-cid="'+t+'"]').find(".fullwidth-faded"):jQuery(".fullwidth-faded"),n=void 0!==t?jQuery('div[data-cid="'+t+'"]').find(".hundred-percent-height"):jQuery(".hundred-percent-height"),o=Number(fusionContainerVars.is_sticky_header_transparent)||"function"!=typeof getStickyHeaderHeight?0:getStickyHeaderHeight(!0),s=fusion.getAdminbarHeight(),l=jQuery("body").hasClass("fusion-builder-live")&&!jQuery("body").hasClass("fusion-builder-preview-mode"),c=o+s;i.fusionScroller({type:"fading_blur"}),n.css("min-height","").css("height",""),n.find(".fusion-fullwidth-center-content").css("min-height",""),0==fusionContainerVars.container_hundred_percent_height_mobile?(Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")?(n.css("height","auto"),l&&(n.css("min-height","0"),n.find(".fusion-fullwidth-center-content").css("min-height","0"))):(n.css("height","calc(100vh - "+c+"px)"),l&&(n.css("min-height","calc(100vh - "+c+"px)"),n.find(".fusion-fullwidth-center-content").css("min-height","calc(100vh - "+c+"px)"))),toggleSwiperScrollingSections()):(n.css("height","calc(100vh - "+c+"px)"),l&&(n.css("min-height","calc(100vh - "+c+"px)"),n.find(".fusion-fullwidth-center-content").css("min-height","calc(100vh - "+c+"px)")))})),jQuery(document).ready((function(){var e;initScrollingSections(),fusionInitStickyContainers(),!jQuery("body").hasClass("fusion-builder-live")&&"object"==typeof cssua&&"string"==typeof cssua.ua.safari&&16>parseInt(cssua.ua.safari)&&(e=jQuery(".awb-sticky, .mobile-sticky-tabs, .sticky-tabs")).length&&(jQuery("#boxed-wrapper").addClass("safari-overflow"),e.each((function(){jQuery(this).parents(".fusion-fullwidth").addClass("has-sticky")}))),Modernizr.mq("only screen and (max-width: "+fusionContainerVars.content_break_point+"px)")&&jQuery(".fullwidth-faded").each((function(){var e=jQuery(this).css("background-image"),t=jQuery(this).css("background-color");jQuery(this).parent().css("--awb-background-image",e),jQuery(this).parent().css("--awb-background-color",t),jQuery(this).remove()}))})),jQuery(window).on("load",(function(){jQuery("#content").find(".fusion-scroll-section").length&&"#"===jQuery(".fusion-page-load-link").attr("href")&&setTimeout((function(){jQuery("#content").find(".fusion-scroll-section").hasClass("awb-swiper-full-sections")||scrollToCurrentScrollSection()}),400)})),jQuery(window).on("fusion-reinit-sticky",(function(e,t){var i=void 0!==t&&jQuery('div[data-cid="'+t+'"] .fusion-fullwidth');i&&i.length&&(i.trigger("sticky_kit:detach"),fusionInitSticky(i))})),jQuery(window).on("fusion-sticky-header-reinit fusion-resize-horizontal",(function(){fusionInitStickyContainers()})),jQuery("body").on("avada-studio-preview-done",(function(){initScrollingSections(!0)})),function(e){"use strict";var t="down";function i(){var e=window.pageYOffset||document.documentElement.scrollTop,t=window.pageXOffset||document.documentElement.scrollLeft;window.onscroll=function(){window.scrollTo(t,e)},window.scrollDisabled=!0}function n(){window.onscroll=function(){},window.scrollDisabled=!1}e.fn.fusionPositionScrollSectionElements=function(o,s,l){var c=e(this),r=c.find(".fusion-scroll-section-element").length,a=0,d=getScrollSectionPositionValues(c);(s=s||!1)||(d.sectionTop<=d.viewportTop&&d.sectionBottom>=d.viewportBottom?c.addClass("active"):c.removeClass("active")),lr?r:a:1,d.sectionTop<=d.viewportTop&&d.sectionTop+d.viewportHeight>d.viewportTop?(c.find(".fusion-scroll-section-element").removeClass("active"),c.children(":nth-child(1)").addClass("active"),c.find(".fusion-scroll-section-nav a").removeClass("active"),c.find('.fusion-scroll-section-nav a[data-element="'+c.children(":nth-child(1)").data("element")+'"] ').addClass("active"),c.find(".fusion-scroll-section-element").css({position:"fixed",top:d.sectionTopOffset,left:d.sectionLeftOffset,padding:"0",width:d.sectionWidth}),c.children(":nth-child(1)").css("display","block"),window.scrollDisabled=!0,e(window).scrollTop(d.sectionTop+d.viewportHeight-1),i(),setTimeout((function(){n()}),fusionContainerVars.hundred_percent_scroll_sensitivity)):d.sectionBottom<=d.viewportBottom&&"absolute"!==c.find(".fusion-scroll-section-element").last().css("position")?(c.find(".fusion-scroll-section-element").removeClass("active"),c.find(".fusion-scroll-section-element").last().addClass("active"),c.find(".fusion-scroll-section-element").css("position","absolute"),c.find(".fusion-scroll-section-element").last().css({top:"auto",left:"0",bottom:"0",padding:""}),c.find(".fusion-scroll-section-nav a").removeClass("active"),c.find(".fusion-scroll-section-nav a").last().addClass("active")):1o&&(c.data("clicked")?(a=c.data("clicked"),c.removeData("clicked"),c.removeAttr("data-clicked")):a=(a=c.find(".fusion-scroll-section-element.active")).length?1>(a=a.data("element")-1)?1:a:0,d.sectionBottom>=d.viewportBottom&&"absolute"===c.find(".fusion-scroll-section-element").last().css("position")?(c.find(".fusion-scroll-section-element").removeClass("active"),c.find(".fusion-scroll-section-element").last().addClass("active"),c.find(".fusion-scroll-section-nav a").removeClass("active"),c.find('.fusion-scroll-section-nav a[data-element="'+c.find(".fusion-scroll-section-element").last().data("element")+'"] ').addClass("active"),c.find(".fusion-scroll-section-element").css({position:"fixed",top:d.sectionTopOffset,left:d.sectionLeftOffset,padding:"0",width:d.sectionWidth}),c.find(".fusion-scroll-section-element").last().css("display","block"),window.scrollDisabled=!0,e(window).scrollTop(d.sectionTop+d.viewportHeight*(r-1)),i(),setTimeout((function(){n()}),fusionContainerVars.hundred_percent_scroll_sensitivity)):(d.sectionTop>=d.viewportTop||0===e(window).scrollTop()&&c.find(".fusion-scroll-section-element").first().hasClass("active"))&&""!==c.find(".fusion-scroll-section-element").first().css("position")?(c.find(".fusion-scroll-section-element").removeClass("active"),c.find(".fusion-scroll-section-element").first().addClass("active"),c.find(".fusion-scroll-section-element").css("position",""),c.find(".fusion-scroll-section-element").first().css("padding",""),c.find(".fusion-scroll-section-nav a").removeClass("active"),c.find(".fusion-scroll-section-nav a").first().addClass("active")):0