1/**handles:bap-theme-builder-child-script**/ 2jQuery(document).ready(function(o){function n(e,t,n){e.hasClass("hidden")?(e.removeClass("hidden"),t&&BAPThemeBuilder.lockBody()):setTimeout(function(){e.addClass("hidden"),t&&BAPThemeBuilder.unlockBody()},300),setTimeout(function(){e.toggleClass("toggled")},1)}function i(e){return e.hasClass("toggled")}function e(){o("#site-overlay").fadeIn(300,"swing"),o("body").addClass("overlay-visible"),BAPThemeBuilder.lockBody()}function t(){o("#site-overlay").fadeOut(300,"swing"),o("body").removeClass("overlay-visible"),BAPThemeBuilder.unlockBody()}o("[data-toggle]").on("click",function(){n(o("#"+o(this).data("toggle")),!0)}),o(function(){let t=1024<=o(window).width()?110:100;window.location.hash&&(o(window).scrollTop(0),setTimeout(function(){o("html, body").animate({scrollTop:o(window.location.hash).offset().top-t},600,"swing")},10)),o('a[href^="#"]:not([href="#"])').on("click",function(e){e.preventDefault(),o("html, body").animate({scrollTop:o(o(this).attr("href")).offset().top-t},600,"swing")})}),o(".animate").each(function(e,t){gsap.timeline({scrollTrigger:{trigger:t,start:"top 90%",end:99999,once:!0,onEnter:()=>{o(t).addClass("animate-in"),setTimeout(function(){o(t).addClass("animate-end")},2e3)}}})}),o(function(){gsap.timeline({scrollTrigger:{start:150,end:99999,onToggle:()=>{n(o("#site-scrollbar"))}}})}),o(function(){let n;o("#site-header .site-nav ul.menu > li.menu-item.menu-item-has-children, #site-scrollbar .site-nav ul.menu > li.menu-item.menu-item-has-children").each(function(){let e=o(this),t=e.children("ul.sub-menu");e.hover(function(){clearTimeout(n),o(".menu-item-has-children.toggled").not(e).removeClass("toggled").children("ul.sub-menu").hide(),e.hasClass("advanced-sub-menu")&&(t.css("left",(o(window).width()-t.outerWidth(!0))/2-e[0].getBoundingClientRect().left),setTimeout(function(){BAPThemeBuilder.lazyLoad(t.find(".img-container.lazy img"))},100)),e.addClass("toggled"),t.show()},function(){n=setTimeout(function(){t.hide(),e.removeClass("toggled")},250)})})}),o(function(){let n=o("#site-mobile-nav"),i=n.find(".site-mobile-nav__inner__secondary__main ul.mobile-sub-menu");n.find('li.menu-item.menu-item-has-children > a, li.menu-item.menu-item-has-children > span.sub-menu-parent, [data-action="open-mobile-sub-menu"]').on("click",function(e){e.preventDefault();var e=o(this).closest("li.menu-item"),t=e.children("a, span.sub-menu-parent").contents().filter(function(){return 3===this.nodeType}).text();n.find('.site-mobile-nav__inner__secondary__header button[data-action="close-mobile-sub-menu"] span').text(t),i.html(e.find("ul.sub-menu").html()),n.find(".site-mobile-nav__inner").addClass("toggled")}),n.find('[data-action="close-mobile-sub-menu"]').on("click",function(){n.find(".site-mobile-nav__inner").removeClass("toggled")})}),o(".site-lang .fselect select").fSelect({showSearch:!1}).on("change",function(){var e=o(this).find("option:selected").data("label");o(this).siblings(".fs-label-wrap").find(".fs-label").text(e),window.location.href=o(this).val()}),o(function(){let e=".posts--blog.owl-carousel,.posts--news.owl-carousel, .posts--stories.owl-carousel";o(e).owlCarousel({loop:!0,dots:!1,nav:!0,autoWidth:!0,smartSpeed:300,margin:25}).on("changed.owl.carousel",function(e){BAPThemeBuilder.lazyLoad(o(e.target).find(".img-container.lazy img"))}),document.addEventListener("vw:updated",function(){requestAnimationFrame(function(){o(e).trigger("refresh.owl.carousel")})})}),o(function(){let t=o(".block-sdg-element-anchor-links__scroll-button");t.length&&(gsap.timeline({scrollTrigger:{trigger:o(".block-sdg-element-anchor-links")[0],start:"bottom top",end:99999,onToggle:function(e){e.isActive?i(t)||n(t):i(t)&&n(t)}}}),gsap.timeline({scrollTrigger:{trigger:o(".main-content")[0],start:"bottom bottom",end:99999,onToggle:function(e){e.isActive?i(t)&&n(t):ScrollTrigger.isInViewport(o(".block-sdg-element-anchor-links")[0])||i(t)||n(t)}}}))}),o(".block-image-slider .image-slider__slider .owl-carousel").on("changed.owl.carousel",function(e){BAPThemeBuilder.lazyLoad(o(e.target).find(".vid-container.lazy video"))}),o(".block-image-slider .image-slider__slider .owl-carousel .owl-item__video__overlay").on("click",function(){BAPThemeBuilder.playVideo(o(this).siblings(".vid-container, .iframe-container"))}),o(window).on("resize",function(){o(".block-facts-tiles .facts-tiles").each(function(){var e=o(this).find(".facts-tile-item");e.css("height","auto");let t=0;e.each(function(){var e=o(this).outerHeight();e>t&&(t=e)}),e.css("height",t+"px")})}).resize(),o(".filter-wrapper .facetwp-facet+.fselect select").each(function(){o(this).fSelect({showSearch:!1});var n="";o(this).on("change",function(){var e=o(this).val()!=n?o(this).val():"",t;e!=(null!=FWP.facets[o(this).data("facet-control")][0]?FWP.facets[o(this).data("facet-control")][0]:"")&&(FWP.facets[o(this).data("facet-control")]=""!=e?[e]:"",FWP.fetchData(),FWP.setHash()),n=e})}),o(document).on("facetwp-loaded",function(){o(function(){var e=o(".filter-wrapper .facetwp-facet+.fselect select"),t;e.length&&(t=null!=FWP.facets[e.data("facet-control")][0]?FWP.facets[e.data("facet-control")][0]:"",e.val()!=t)&&(e.val(t),e.fSelect("reload"))}),BAPThemeBuilder.lazyLoad(o(".facetwp-template .post-item .img-container.lazy img"))}),o(document).on("click",'a[href*="/forms/"]',function(e){e.preventDefault(),o.featherlight({iframe:o(this).attr("href")})}),o.extend(o.featherlight.defaults,{openSpeed:300,closeSpeed:300,closeIcon:"",persist:!0,beforeOpen:function(){BAPThemeBuilder.lockBody()},beforeClose:function(){BAPThemeBuilder.unlockBody()},afterOpen:function(){var e;let t=this.$instance.find("iframe");t.length&&(t.on("load",function(){"function"==typeof iFrameResize&&iFrameResize({minHeight:100,checkOrigin:!1},t[0])}),t.length)&&t[0].contentWindow&&t.trigger("load")}})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.