(()=>{var e,i={994:()=>{function e(i){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(i)}!function(i){i(".view-asn-grantee-resources .form-item-year-posted").hide(),i(".view-asn-grantee-resources .form-item-field-document-type-tax-target-id select").on("change",(function(){("19631"==this.value||"19651"==this.value&&i("div").hasClass("block-views-blockasn-grantee-resources-block-1")||"19651"==this.value&&i("div").hasClass("block-views-blockasn-grantee-resources-block-10"))&&i(".view-asn-grantee-resources .form-item-year-posted").show(),"19631"==this.value&&"19651"==this.value||i(".view-asn-grantee-resources .form-item-year-posted").hide()})),i(document).ajaxComplete((function(){var e=i(".view-asn-grantee-resources .form-item-field-document-type-tax-target-id option:selected").val();"19631"==e||"19651"==e&&i("div").hasClass("block-views-blockasn-grantee-resources-block-1")||"19651"==e&&i("div").hasClass("block-views-blockasn-grantee-resources-block-10")?i(".view-asn-grantee-resources .form-item-year-posted").show():i(".view-asn-grantee-resources .form-item-year-posted").hide(),i(".view-asn-grantee-resources .form-item-field-document-type-tax-target-id select").on("change",(function(){"19631"==this.value||"19651"==this.value&&i("div").hasClass("block-views-blockasn-grantee-resources-block-1")||"19651"==this.value&&i("div").hasClass("block-views-blockasn-grantee-resources-block-10")?i(".view-asn-grantee-resources .form-item-year-posted").show():(i(".view-asn-grantee-resources .form-item-year-posted").hide(),i(".view-asn-grantee-resources .form-item-year-posted option:selected").removeAttr("selected"))}))}));var n={_debug:!1,_log:function(){n._debug&&1!=n._debug||console.log.apply(console,arguments)},_colours:["blue","red","grey","navy","crimson","green","yellow","purple","teal","white","lightgrey","lightblue"],_initiate:function(){for(var i in this._addDebugFlag(),this)if("_"!==i[0]&&"object"==e(this[i])&&this[i].init&&"function"==typeof this[i].init)try{this[i].init.call(this[i])}catch(e){console.log("AMC: [error] ",e)}},_addDebugFlag:function(){var e=i("body.user-logged-in");n._debug=e.length>0}};n.Utilities={getSavedScrollPosition:function(){var e=window.name;return e.length>0&&e.indexOf("y")>-1&&Number(e.split("y")[1])},saveCurrentScrollPosition:function(){window.name="y"+window.scrollY}},n.VideoPlayer={init:function(){i(".video-thumb").click((function(e){var t=i(this),a=i(t.attr("data-target")),o=t.find(".video-embed");if(o.length&&a.length){var r=a.find(".modal-embed"),s=o.attr("data-video-provider"),l=o.attr("data-video-url"),d=o.attr("data-video-height")/o.attr("data-video-width")*100;if(s.length&&"youtube"==s&&l.length){var c='<div style="position:relative;padding-bottom:'+d+'%;"><iframe width="100%" height="100%" frameborder="0" allowfullscreen="allowfullscreen" src="'+l+'?autoplay=0&start=0&rel=0"></iframe></div>';r.empty(),r.append(c),a.on("hidden.bs.modal",(function(e){r.empty(),n._log("AMC.VideoPlayer: [removing]",r)}))}}}))}},n.Animations={init:function(){AOS.init({disable:!1,startEvent:"DOMContentLoaded",initClassName:"aos-init",animatedClassName:"aos-animate",useClassNames:!1,disableMutationObserver:!1,debounceDelay:50,throttleDelay:99,offset:120,delay:0,duration:1200,easing:"ease",once:!0,mirror:!1,anchorPlacement:"top-bottom"}),this._animateHeaderBackgroundImage()},_animateHeaderBackgroundImage:function(){var e=i("#page-wrapper.landing-page");if(e.length){var t=e.find(".page-header"),a=t.attr("style").match(/(?:\(['|"]?)(.*?)(?:['|"]?\))/)[1];if(a&&a.length){var o=new Image;i(o).one("load",(function(){n._log("AMC.Animations: [header image loaded] ",o),t.addClass("img-loaded")})),o.src=a}}}},n.Links={init:function(){this._addCardLinkWrappers(),this._addBackLinks(),this._modifyDownloadFiles(),this._addExternalLinks(),this._addNextPreviousLinks(),this._addSmoothScroll()},_addBackLinks:function(){window.location.href.indexOf("service")>-1&&(0===document.referrer.indexOf(location.protocol+"//"+location.host)?i(".card-rounded.padded.lightblue").show():i(".card-rounded.padded.lightblue").hide());i("#main-wrapper #main-content").find("button.go-back, a.go-back").click((function(){return history.back(),!1}))},_addNextPreviousLinks:function(){i("#main-wrapper .block-next-article").find([".node-links .previous-link",".node-links .next-link"].join(", ")).click((function(e){e.stopPropagation();var n=i(this).find("a");n.length&&(window.location.href=n.attr("href"))}))},_addCardLinkWrappers:function(){var e=i("#main-wrapper").find([".double-card-callout .summary-block",".webinar-card",".view-type-updates .update-card",".blog-card",".view-type-stories .story-card",".view-schools-of-service .card-summary"].join(", "));n._log("AMC.Links: [card link wrappers found] ",e),e.click((function(e){e.stopPropagation();var n=i(this).find("a.btn-link, .title a, .link a");n.length&&(window.location.href=n.attr("href"))}))},_modifyDownloadFiles:function(){i("a[href*='.pdf'],a[href*='.doc'],a[href*='.xls'],a[href*='.zip'],a[href*='.pdf']").attr("target","_blank")},_addSmoothScroll:function(){var e=i('a[href^="#"]');n._log("AMC.Links: [anchor links found] ",e),e.click((function(e){e.preventDefault();var n=this.hash;i("html, body").animate({scrollTop:i(n).offset().top},800,(function(){window.location.hash=n}))}))},_addExternalLinks:function(){i.expr[":"].external=function(e){return!e.href.match(/^mailto\:/)&&!e.href.match(/^tel\:/)&&-1==e.href.indexOf("americorps.gov")&&-1==e.href.indexOf("nationalservice.gov")&&-1==e.href.indexOf("//my.americorps.gov")&&-1==e.href.indexOf("vistacampus.gov")&&-1==e.href.indexOf("//egrants.cns.gov/")&&e.hostname!==window.location.hostname};var e=i("a:external");n._log("AMC.Links: [external links found] ",e),e.click((function(e){var n=i(this),t=i("#externalLink");return t.find(".btn-solid-blue").attr("href",n.attr("href")),t.modal("show"),!1}));var t=e.filter(".btn");n._log("AMC.Links: [external buttons found] ",t),t.addClass("icon external")}},n.Paragraphs={init:function(){this._balanceHighlightPanes(),this._sniffDividerSiblings(),this._sniffProceedingColumnParas()},_sniffProceedingColumnParas:function(){var e=i("#main-wrapper #main-content").find(".paragraph-fullwidth.column-layout.boxed + .paragraph-fullwidth.column-layout.boxed");if(e.length){n._colours;for(var t=e.eq(0),a=!1,o=0;o<n._colours.length;o++)t.hasClass(n._colours[o])&&(a=n._colours[o]);if(a){var r=e.filter("."+a).slice(0,-1);if(r.length>1)n._log("AMC.Paragraphs: [proceeding paras found]: ",r),r.addClass("no-spacing"),t.prev(".column-layout.boxed."+a).addClass("no-spacing")}}},_sniffDividerSiblings:function(){i("#main-wrapper #main-content .divider.paragraph-fullwidth").each((function(){var e=i(this),n=e.prev(".paragraph-fullwidth");e.next(".paragraph-fullwidth");n.addClass("before-divider")}))},_balanceHighlightPanes:function(){var e=i("#main-wrapper #main-content .highlight-columns");e.length&&e.each((function(){var e=i(".highlight-block"),n=0;e.each((function(){var e=i(this).find(".footer").height();e>n&&(n=e)})),e.find(".footer").height(n)}))}},n.Navigation={init:function(){this._tweakLongMenuNames(),this._addMobileNavSearchToggle(),this._addMobileNavToggles(),this._expandMobileMenuToggle()},_expandMobileMenuToggle:function(){var e=i("#header .main-menu");e.find("#navbarSupportedContent").on("show.bs.collapse hide.bs.collapse",(function(){e.toggleClass("show-mobile-menu")}))},_tweakLongMenuNames:function(){i("#block-americorps-mainnavigation nav.main.navbar").find(".we-mega-menu-li > a:contains(' & ')").each((function(){for(var e=i.trim(i(this).text()).split(" "),n=0,t=e.length;n<t;n++)e[n]='<span class="word word-'+n+'">'+e[n]+"</span>";i(this).html(e.join(" ")),i(this).parent().addClass("long-name")}))},_addMobileNavSearchToggle:function(){var e=i("#block-americorps-search .search.navbar li.we-mega-menu-li span");e.click((function(){i(window).width()<1120&&(i(this).toggleClass("open"),i(window).resize((function(){i(this).width()>=1120&&(e.removeClass("open"),i(window).off("resize"))})))}))},_addMobileNavToggles:function(){var e=i("#block-americorps-mainnavigation nav.main.navbar").find("li.we-mega-menu-li.with-submenu > div.we-mega-menu-title,        li.we-mega-menu-li.with-submenu .nav-item:has(.menu) > a.nav-link");function t(e){e.toggleClass("touch-expanded"),e.siblings(".we-mega-menu-li-mobile, .we-mega-menu-submenu, .menu").slideToggle()}function a(e){screen.width>=1200?e.style.display="none":1==e.previousElementSibling.className.includes("touch-expanded")&&(e.style.display="initial")}n._log("AMC.Navigation: [menus found] ",e),e.each((function(){var e=i(this);e.append('<span class="touch-button"></span>').addClass("has-touch-expand"),e.parent().hasClass("active-trail")&&e.addClass("touch-expanded")})),e.children(".touch-button").click((function(){return t(i(this).parent()),!1})),i("div.we-mega-menu-title").click((function(){if(0==i(this).children(".we-mega-menu-title-link").length)return t(i(this)),!1})),window.addEventListener("resize",(function(){var e=document.getElementsByClassName("we-mega-menu-li-mobile");Array.from(e).forEach(a)}))}},n.Tables={init:function(){this._configureTables()},_configureTables:function(){i("#main-wrapper").find(".field table").each((function(){var e=i(this),n=i("<div />",{class:"scrollable",html:"<div />"}).insertBefore(e);e.data("scrollWrapper",n),e.appendTo(n.find("div")),e.outerWidth()>e.parent().outerWidth()&&e.data("scrollWrapper").addClass("has-scroll"),i(window).on("resize orientationchange",(function(){e.outerWidth()>e.parent().outerWidth()?e.data("scrollWrapper").addClass("has-scroll"):e.data("scrollWrapper").removeClass("has-scroll")}))}))}},n.Timeline={},n.Timeline.init=function(){if(this._$module=i(".timeline"),this._$module.length){this._bar=this._$module.find(".year-bar"),this._buttons=this._bar.find(".year"),this._wrapper=this._$module.find(".year-block"),this._items=this._$module.find(".year-block"),this._nextButton=this._$module.find(".next"),this._previousButton=this._$module.find(".prev"),this._buttons.click(this._yearButtonClick),this._previousButton.click(this.showPreviousYear),this._nextButton.click(this.showNextYear);var e=this._items.filter(".active");n.Timeline.showYear(e.attr("data-year"))}},n.Timeline._setHeight=function(){var e=0;n.Timeline._items.each((function(n,t){var a=i(t).height();a>e&&(e=a)})),n.Timeline._wrapper.height(e)},n.Timeline._yearButtonClick=function(e){var t=i(e.target).attr("data-year");t&&n.Timeline.showYear(t)},n.Timeline.showYear=function(e){var i="active",t="[data-year='"+e+"']",a=n.Timeline._items.filter(t),o=n.Timeline._buttons.filter(t);a&&(n.Timeline._items.removeClass(i),n.Timeline._buttons.parent().removeClass(i),a.addClass(i),a.hide().fadeIn(),o.parent().addClass(i))},n.Timeline.showNextYear=function(){var e=n.Timeline._items.filter(".active").next(".year-block");if(0==e.length&&(e=n.Timeline._items.eq(0)),e.length){var i=e.attr("data-year");n.Timeline.showYear(i)}},n.Timeline.showPreviousYear=function(){var e=n.Timeline._items.filter(".active").prev(".year-block");if(0==e.length&&(e=n.Timeline._items.filter(":last-of-type")),e.length){var i=e.attr("data-year");n.Timeline.showYear(i)}},n.ViewFilter={init:function(){this._addFilterPanelToggle(),this._checkForYPosition(),this._trackYPositionOnSubmit()},_checkForYPosition:function(){var e=n.Utilities.getSavedScrollPosition();e&&(n._log("AMC.ViewFilter: [restoring Y position]",e),0==i(".view-content.row").children().length?window.scroll(0,e*(2/3)):window.scroll(0,e),window.name="")},_trackYPositionOnSubmit:function(){var e=i("#main-wrapper .views-exposed-form .form-submit.btn-primary");e.length&&e.click((function(){n.Utilities.saveCurrentScrollPosition(),n._log("AMC.ViewFilter: [saving Y position]",n.Utilities.getSavedScrollPosition())}))},_addFilterPanelToggle:function(){i("#main-wrapper .views-exposed-form").find(".filter-button").click((function(e){var n=i(this).parents(".views-exposed-form");n.find(".filtering-panel").slideToggle(),n.find(".btn-open").toggleClass("spin")}))}},n.ClickDropdown={init:function(){this._addClickControls()},_addClickControls:function(){i("#main-wrapper select.click-dropdown").each((function(){var e=i(this);e.siblings(".click-dropdown-button").click((function(){var i=e.children("option:selected");if(i.length){var n=i.attr("value");n.length&&(window.location.href=n)}}))}))}},n.SideMenu={init:function(){this._addSideMenuToggleControls()},_addSideMenuToggleControls:function(){var e=i("#main-wrapper .region-tertiary-sidebar");n._log("AMC.SideMenu: [adding subnav] ",e);setTimeout((function(){e.each((function(){var e=i(this),t=e.find(".parent-link");t.after('<span aria-controls="tertiaryParentNav" aria-label="Expand Navigation" class="parent-link-btn open-icon" role="button" tabindex="0"></span>');var a=t.siblings(".parent-link-btn");function o(){n._log("AMC.SideMenu: [toggle sidemenu]"),a.siblings(".nav").slideToggle(),a.toggleClass(["open-icon","close-icon"]),1==a.hasClass("open-icon")?a.attr({"aria-expanded":!1,"aria-pressed":!1}):a.attr({"aria-expanded":!0,"aria-pressed":!0})}a.siblings(".nav").attr("id","tertiaryParentNav"),"none"==a.siblings(".nav").css("display")?a.attr({"aria-expanded":!1,"aria-pressed":!1}):a.attr({"aria-expanded":!0,"aria-pressed":!0}),a.click((function(){o()})),a.keydown((function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),o())}));var r=e.find(".child-link:has(ul.child-nav)"),s=0;r.each((function(){var e=i(this);e.addClass("open-icon"),e.children("a").after('<span aria-expanded="false" aria-label="Expand Navigation" aria-pressed="false" class="child-link-btn open-icon" role="button" tabindex="0"></span>');var n=e.find(".child-link-btn");s++,n.attr("aria-controls","tertiaryChildNav"+s);var t=n.siblings("ul.child-nav");function a(){t.slideToggle(),n.toggleClass(["open-icon","close-icon"]),1==n.hasClass("open-icon")?n.attr({"aria-expanded":!1,"aria-pressed":!1}):n.attr({"aria-expanded":!0,"aria-pressed":!0})}t.attr("id","tertiaryChildNav"+s),n.click((function(){a()})),n.keydown((function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),a())}));var o=!1;i(t).children().each((function(){i(this).text()==document.querySelector(".page-header h1").textContent&&(o=!0)})),1==e.text().startsWith(document.querySelector(".page-header h1").textContent)|0==document.title.indexOf(e.children("a").text())|1==o&&function e(i){1==i.hasClass("child-link")&&(i.children(".child-link-btn").trigger("click"),i.children(".child-link-btn").attr({"aria-expanded":!0,"aria-pressed":!0}),e(i.parents(".child-link")))}(e)}))}))}),1e3)}},window.AMC=n,i((function(){n._initiate()}))}(jQuery)},213:()=>{},674:()=>{},82:()=>{}},n={};function t(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={exports:{}};return i[e](o,o.exports,t),o.exports}t.m=i,e=[],t.O=(i,n,a,o)=>{if(!n){var r=1/0;for(c=0;c<e.length;c++){for(var[n,a,o]=e[c],s=!0,l=0;l<n.length;l++)(!1&o||r>=o)&&Object.keys(t.O).every((e=>t.O[e](n[l])))?n.splice(l--,1):(s=!1,o<r&&(r=o));if(s){e.splice(c--,1);var d=a();void 0!==d&&(i=d)}}return i}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,a,o]},t.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={31:0,938:0,107:0,127:0};t.O.j=i=>0===e[i];var i=(i,n)=>{var a,o,[r,s,l]=n,d=0;if(r.some((i=>0!==e[i]))){for(a in s)t.o(s,a)&&(t.m[a]=s[a]);if(l)var c=l(t)}for(i&&i(n);d<r.length;d++)o=r[d],t.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return t.O(c)},n=self.webpackChunkamericorps=self.webpackChunkamericorps||[];n.forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n))})(),t.O(void 0,[938,107,127],(()=>t(994))),t.O(void 0,[938,107,127],(()=>t(213))),t.O(void 0,[938,107,127],(()=>t(674)));var a=t.O(void 0,[938,107,127],(()=>t(82)));a=t.O(a)})();