$(function(){$.fn.setup_navigation=function(t){t=jQuery.extend({menuHoverClass:"show_dropdown"},t),$(this).find("> li > a").next("ul").find("a").attr("tabIndex",-1),$(this).find("> li > a").on("hover",function(){$(this).closest("ul").find("."+t.menuHoverClass).removeClass(t.menuHoverClass).find("a").attr("tabIndex",-1)}),$(this).find("> li > a").on("focus",function(){$(this).closest("ul").find("."+t.menuHoverClass).removeClass(t.menuHoverClass).find("a").attr("tabIndex",-1),$(this).next("ul").addClass(t.menuHoverClass).find("a").attr("tabIndex",0)}),$(this).find("a").last().on("keydown",function(e){"Tab"==e.key&&$("."+t.menuHoverClass).removeClass(t.menuHoverClass).find("a").attr("tabIndex",-1)}),$(document).on("click",function(){$("."+t.menuHoverClass).removeClass(t.menuHoverClass).find("a").attr("tabIndex",-1)}),$(this).on("click",function(e){e.stopPropagation()})},$("#nav-primary").setup_navigation()});var searchBarTop=function(){return $("#nav-primary").is(":visible")?365:60},adjustSearchBarAffix=function(){var e=$("#careers-search-bar");e.length&&(e.data("bs.affix").options.offset.top=searchBarTop())},annotations=($(function(){var e=$("#careers-search-bar"),e=(e.length&&e.affix({offset:{top:searchBarTop()}}),$("#nav-primary").affix({offset:{top:function(){return this.top=$("#nav-primary").offset().top-$(".t1_nav").height()}}}),$("#article"));(0===e.length||$("#t4_nav.sticky").height()+20<e.height())&&$("#t4_nav.sticky").affix({offset:{top:function(){return this.top=$("#t4_nav").offset().top-($("#nav-primary").outerHeight()+$(".t1_nav").outerHeight())},bottom:function(){return this.bottom=480}}}).on("affix-bottom.bs.affix",function(){$(this).css("bottom","auto")}),$(window).on("resize",function(){adjustSearchBarAffix(),$("#t4_nav.sticky").height()<$("#article").height()&&($("#t4_nav.sticky").css("top",""),$("#t4_nav.sticky").affix("checkPosition")),$("#nav-primary").css("top",""),$("#nav-primary").affix("checkPosition")})}),{annotationTriggers:document.querySelectorAll(".annotation-trigger"),annotationTriggersArray:[],init:function(){for(let e=0;e<this.annotationTriggers.length;e++)this.annotationTriggersArray.push(this.annotationTriggers[e]);this.annotationTriggersArray.forEach(function(e){e.addEventListener("focus",function(){e.querySelector(".annotation-popup").classList.add("show")}),e.addEventListener("blur",function(){setTimeout(function(){e.querySelector(".annotation-popup").classList.remove("show")},100)}),e.addEventListener("mouseover",function(){e.focus()})})}}),exitHandler=(!function(e){e(function(){e("#back-top").hide(),e(window).on("scroll",function(){100<e(this).scrollTop()?e("#back-top").fadeIn():e("#back-top").fadeOut()}),e("#back-top").on("click",function(){return e("body,html").animate({scrollTop:0},800),!1})})}(jQuery),$(function(){$('a[data-toggle="collapse"]').on("click",function(e){e.preventDefault();var t,a,e=$(e.delegateTarget),n=$(e.children(".expandText")),n=(n&&(t=e.data("textswitch"),a=n.text(),n.text(t),e.data("textswitch",a)),e);e.hasClass("icon")||(n=e.children(".icon")),e.hasClass("collapsed")?n.removeClass("icon-plus").addClass("icon-minus"):n.addClass("icon-plus").removeClass("icon-minus")})}),!function(e,d){var n,t=e.jQuery||e.Cowboy||(e.Cowboy={});t.throttle=n=function(o,i,s,r){var l,c=0;function e(){var e=this,t=+new Date-c,a=arguments;function n(){c=+new Date,s.apply(e,a)}r&&!l&&n(),l&&clearTimeout(l),r===d&&o<t?n():!0!==i&&(l=setTimeout(r?function(){l=d}:n,r===d?o-t:o))}return"boolean"!=typeof i&&(r=s,s=i,i=d),t.guid&&(e.guid=s.guid=s.guid||t.guid++),e},t.debounce=function(e,t,a){return a===d?n(e,t,!1):n(e,a,!1!==t)}}(this),$(function(){$(".navbar-text__social").on("focusin",function(e){$(this).addClass("opened")}).on("focusout",function(e){var t=$(this);setTimeout(function(){0<t.find(":focus").length||t.removeClass("opened")},10)}),$(".nav-primary .dropdown").on("keydown",function(e){if(-1!=[27,37,38,39,40].indexOf(e.keyCode)){var t,a=$(this),n=a.find("a").first(),o=a.find(".dropdown-menu");switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case 37:(a.hasClass("opened")?n.is(":focus")?(a.prev().addClass("opened"),a.prev().find("ul").last().find("a").first()):0<(t=$(e.target).parent().parent().prev().find("a")).length?t.first():n:a.prev().find("a").first()).focus();break;case 38:a.hasClass("opened")&&(n.is(":focus")?(a.prev().addClass("opened"),a.prev().find("ul a").last()):0<(t=$(e.target).parent().prevAll().find("a")).length?t.last():0<$(e.target).parent().parent().prev().find("a").length?(t=$(e.target).parent().parent().prev().find("a"))[t.length-1]:n).focus();break;case 39:a.hasClass("opened")?n.is(":focus")?a.find("ul a").first().focus():0<(t=$(e.target).parent().parent().next().find("a")).length?t.first().focus():0<a.next().length&&(a.next().addClass("opened"),a.next().find("a").first().focus()):a.next().find("a").first().focus();break;case 40:a.hasClass("opened")?n.is(":focus")?a.find("ul a").first().focus():0<(t=$(e.target).parent().nextAll().find("a")).length?t.first().focus():0<$(e.target).parent().parent().next().find("a").length?$(e.target).parent().parent().next().find("a").first().focus():0<a.next().length&&(a.next().addClass("opened"),a.next().find("a").first().focus()):(a.addClass("opened"),o.find("a").filter(":visible").first().focus());break;case 27:a.hasClass("opened")&&a.removeClass("opened")}}}).on("focusout",function(e){var t=$(this);setTimeout(function(){0<t.find(":focus").length||t.removeClass("opened")},10)})}),{exitWarning:function(e){$(".ekko-lightbox, .modal-backdrop").remove();var t="<p>You are now exiting the Board of Governors of the Federal Reserve System (Board) website ";this.showExitModal("Leaving www.federalreserve.gov",(t+="and entering the site: "+e)+"</p>"+"<p>We have provided a link to this site because it has information that may be of interest to our viewers.</p>"+"<p>The Board does not necessarily endorse the views expressed or the facts presented on this site.</p>"+"<p>The Board does not endorse any commercial products that may be advertised or on this site.</p>"+"<p>The Board's privacy policy does not apply on this site. Please check the site for its privacy notice.</p>"+"<p>To easily return, please bookmark https://www.federalreserve.gov</p>",e)},exitComment:function(e){this.showExitModal("Notice to Those Submitting Comments","<p>Please note that all public comments on proposals, however they are submitted (via this web site, by e-mail, or in paper form), will be made available publicly (on this web site, and elsewhere in paper form).</p><p>Comments are not edited for public viewing but are reproduced exactly as submitted, except when alteration is necessary for technical reasons.</p><p>The names and addresses of commenters are included with all comments made available for public viewing.</p>",e)},exitWebex:function(e){var t="<p>You are now exiting the Board of Governors of the Federal Reserve System (Board) website ";this.showExitModal("Leaving www.federalreserve.gov and agreeing to terms",t+("and entering the site: "+e)+"</p>"+'<p>By [joining the WebEx or clicking "continue"] I acknowledge and agree to the following release ("Release"): <a href="https://www.federalreserve.gov/release.htm">https://www.federalreserve.gov/release.htm</a></p>'+"<p>We have provided a link to this site because it has information that may be of interest to our viewers.</p>"+"<p>The Board does not necessarily endorse the views expressed or the facts presented on this site.</p>"+"<p>The Board does not endorse any commercial products that may be advertised or on this site.</p>"+"<p>The Board's privacy policy does not apply on this site. Please check the site for its privacy notice.</p>"+"<p>To easily return, please bookmark https://www.federalreserve.gov</p>",e)},showExitModal:function(e,t,a){var n=this,o=$('<div id="modal" class="modal" tabindex="-1"><div class="modal__content watermark-frb-logo"><div class="modal__header"><span class="icon icon__xxl icon-frb-logo-gray"></span><h2 class="modal__title"></h2></div><div class="modal__body"></div><div class="modal__footer"><a id="btn-modal-cancel" href="#" class="btn btn-default">Cancel <span class="icon icon__sm icon--right icon-x"></span></a><a id="btn-modal-continue" href="#" class="btn btn-default">Continue <span class="icon icon__sm icon--right icon-more"></span></a></div></div></div>');$(".modal__title",o).text(e),$(".modal__body",o).html(t),$("body").append(o),setTimeout(function(){o.addClass("on modal--exit"),o.focus()},200),$(document).on("keydown",function(e){"Escape"!==e.key&&"Esc"!==e.key||n.closeExitModal(o)}),$(document).one("click","#btn-modal-cancel",function(e){e.preventDefault(),n.closeExitModal(o)}),$(document).one("click","#btn-modal-continue",function(e){e.preventDefault(),document.location=a})},closeExitModal:function(e){e.removeClass("on"),setTimeout(function(){e.remove()},500)}});function linkClickHandler(e){var t,a,n=$(this),o=$(this).attr("href")||$(this).attr("xlink:href");n.hasClass("no-jump")?e.preventDefault():"commentSubmit"===this.className?(e.preventDefault(),exitHandler.exitComment(o)):/^#.+/.test(o)?(e.preventDefault(),n=jqIdEscape(o),0===$(n).length&&(n="a[name='"+(n=n.replace("#",""))+"']",0===$(n).length)||(t="globalskip"===this.className,a=$(n).get(0).tabIndex,scrollToItem(n,t||!(0<a)))):/https?:\/\/((?:[\w\d]+\.)+[\w\d]{2,})/gi.test(o)&&!/^(https?:\/\/)?(\w*\.)*(gov|org|edu)(\/.*)?/.test(o)&&(/^(https?:\/\/)?(\w*\.)*(frbog.webex.com)(\/.*)?/.test(o)?(e.stopPropagation(),e.preventDefault(),exitHandler.exitWebex(o)):(e.stopPropagation(),e.preventDefault(),exitHandler.exitWarning(o)))}function scrollToItem(e,t){var a,n,o,i=$("#modal.on"),s=i.find(e),r=0<s.length;r?(elem=s.get(0),a=s.first()):(a=(a=$(e)).first(),elem=a.get(0)),t&&a.attr("tabindex",-1).on("blur focusout",function(){$(this).removeAttr("tabindex")}).focus(),r?(o=elem.getBoundingClientRect().top-$(".modal__header").outerHeight(),s=$(".modal__body .sticky-table thead"),e=$(".modal__body").get(0),s.length&&(o-=s.height()),e.scrollTop+=o):(i.length&&(i.remove(),$("body").removeClass("modal-open")),n=0,$(".t1_nav,#nav-primary,.t4_nav--horizontal,.t2__offcanvas").each(function(){var e=$(this);e.is(":visible")&&(n+=e.height())}),0<a.length&&(o=a.offset().top-n-5,window.scrollTo(0,o)))}function jqIdEscape(e){return e.replace(/(;|:|\.|\[|\]|,|=|@)/g,"\\$1")}function rightRail(){var e=$("#floatRightRail");Modernizr.mq("(min-width: 992px)")?e.hasClass("moved")&&$("#article").prepend(e.removeClass("moved")):$("#article").append(e.addClass("moved"))}function toggleNavigation(){$("#nav-primary-mobile").hasClass("off-canvas-show")?($("#nav-primary-mobile").removeClass("off-canvas-show"),$("html, body").css({overflow:"auto",height:"auto"})):($("#nav-primary-mobile").addClass("off-canvas-show"),$("html, body").css({overflow:"hidden",height:"100%"}))}function ValidateEmail(e){return new RegExp("^[\\w-_.]*[\\w-_.]@[\\w].+[\\w]+[\\w]$").test(e)}function PassEmailToGovDelivery(e){ValidateEmail(e)?exitHandler.exitWarning("https://public.govdelivery.com/accounts/USFRB/subscribers/qualify?&email="+e):alert("Please enter a valid email address.")}$(document).ready(function(){$("body").on("click","a",linkClickHandler),window.location.hash&&function(e){if("string"==typeof e){try{$(e)}catch(e){return}return 1}}(window.location.hash)&&setTimeout(function(){scrollToItem(window.location.hash)},200)}),$(".submit").click(function(e){e.preventDefault();e=$(".checkbox input:checked");console.log(e.length),0<$(e).length?($("[data-type]").each(function(){$(this).hide()}),$(e).each(function(e){$("[data-type="+$(this).val()+"]").each(function(){$(this).show()})})):$("[data-type]").each(function(){$(this).show()})}),$(window).resize(rightRail),rightRail(),Number.MAX_SAFE_INTEGER=9007199254740991,Number.MIN_SAFE_INTEGER=-9007199254740991,function(e){"use strict";var t=e(".t1_toplinks").clone().removeClass().addClass("nav"),a=e(".navbar-text__social",t).remove();e(".navbar-link",a).remove(),t.append(a),e(".t1__dropdown").append(t)}(jQuery),function(o){"use strict";var e=o("#nav-primary .nav").clone().removeClass("navbar-nav").addClass("navmenu-nav");o(".dropdown > a",e).each(function(e,t){var a=o("<span/>").addClass("icon icon__sm icon-plus").html("<span class='sr-only'>Expand sub-menu</span>"),n=o("<a/>").attr("href",o(t).attr("href")).html(o(t).html());n.find("br").replaceWith(" "),o(t).removeAttr("id"),o(t).html(a).attr("data-toggle","dropdown"),o(t).after(n)}),o("#nav-primary-mobile").on("show.bs.dropdown",function(e){o(e.relatedTarget).find(".icon").removeClass("icon-plus").addClass("icon-minus").html("<span class='sr-only'>Collapse sub-menu</span>")}),o("#nav-primary-mobile").on("hide.bs.dropdown",function(e){o(e.relatedTarget).find(".icon").removeClass("icon-minus").addClass("icon-plus").html("<span class='sr-only'>Expand sub-menu</span>")}),o("#nav-primary-mobile").append(e)}(jQuery),$(document).ready(function(){$(".tabcontent:first").show(),$(".tabs li a:first").addClass("tab-active"),$(".tabs li:first").addClass("selected"),$("ul.tabs li a").on("click",function(){var e=$(".tabs li a").index(this);return $("ul.tabs li a").removeClass("tab-active"),$(".tabcontent:visible").hide(),$(".tabcontent:eq("+e+")").show(),$(this).addClass("tab-active"),!1})}),$(function(){$(".offcanvas__toggle").click(function(){toggleNavigation()}),$(".container__main").click(function(){$("#nav-primary-mobile").hasClass("off-canvas-show")&&($("#nav-primary-mobile").removeClass("off-canvas-show"),$("html, body").css({overflow:"auto",height:"auto"}))})});