PageSourceSearch

https://www.aamc.org/sites/default/files/js/js_A0NuOLiRUo1pL3Qryi_…ylOn9EPr1bTv3kyDsEHQAc0Bzv6Z9YcpT9PPL7-vZMc

js aamc.org collected 2026-09-24 08:29:50 UTC 170,119 bytes, 36 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2document.addEventListener("DOMContentLoaded",function(){});;
3var nonSupportedBrowsers=[{name:"IE",version:11}],supportWarningCtr=document.getElementById("non_supported_browser"),getBrowser=function(){var r=navigator.userAgent,e=function(e){return e.test(r);},o=function(e){return r.match(e)?r.match(e)[2]:null;};switch(!0){case e(/ucbrowser/i):return {name:"UCBrowser",version:o(/(ucbrowser)\/([\d\.]+)/i)};case e(/edg/i):return {name:"Edge",version:o(/(edge|edga|edgios|edg)\/([\d\.]+)/i)};case e(/googlebot/i):return {name:"GoogleBot",version:o(/(googlebot)\/([\d\.]+)/i)};case e(/chromium/i):return {name:"Chromium",version:o(/(chromium)\/([\d\.]+)/i)};case e(/firefox|fxios/i)&&!e(/seamonkey/i):return {name:"Firefox",version:o(/(firefox|fxios)\/([\d\.]+)/i)};case e(/chrome|crios/i)&&!e(/opr|opera|chromium|edg|ucbrowser|googlebot/i):return {name:"Chrome",version:o(/(chrome|crios)\/([\d\.]+)/i)};case e(/safari/i)&&!e(/chromium|edg|ucbrowser|chrome|crios|opr|opera|fxios|firefox/i):return {name:"Safari",version:o(/(version)\/([\d\.]+)/i)};case e(/opr|opera/i):return {name:"Opera",version:o(/(opera|opr)\/([\d\.]+)/i)};case e(/; msie|trident/i)&&!e(/ucbrowser/i):var n=o(/(trident)\/([\d\.]+)/i);return n?{name:"IE",version:parseFloat(n)+4}:{name:"IE",version:7};default:return {name:"Unknown",version:"0"};}},currentBrowser=getBrowser(),isNonSupportedBrowser=nonSupportedBrowsers.some(function(r){return r.name===currentBrowser.name&&parseInt(r.version)>=parseInt(currentBrowser.version);});isNonSupportedBrowser?supportWarningCtr.className="alert--items":supportWarningCtr.remove();;
4function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return "Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0;}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e);}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e);}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o;}document.documentElement.classList.replace("noscript","js");var MOBILE_MIN=375,MOBILE_MAX=767,IPAD_MIN=768,DESKTOP_MIN=1024,LARGE_MIN=1400,TAB_KEY=new Array("Tab",9),RETURN_KEY=new Array("Enter",13),ESC_KEY=new Array("Escape","UIKeyInputEscape",27),SPACE_KEY=new Array(" ",32),PAGE_UP_KEY=new Array("PageUp","UIKeyInputPageUp",33),PAGE_DOWN_KEY=new Array("PageDown","UIKeyInputPageDown",34),END_KEY=new Array("End",35),HOME_KEY=new Array("Home",36),LEFT_ARROW_KEY=new Array("ArrowLeft","UIKeyInputLeftArrow",37),UP_ARROW_KEY=new Array("ArrowUp","UIKeyInputUpArrow",38),RIGHT_ARROW_KEY=new Array("ArrowRight","UIKeyInputRightArrow",39),DOWN_ARROW_KEY=new Array("ArrowDown","UIKeyInputDownArrow",40),keyCheck=function(e){return e.some(function(e){return e===event.key||e===event.which;});},getClosest=function(e,t){for(;e&&e!==document;e=e.parentNode)if(e.nodeName===t)return e;return null;},getClosestByClass=function(e,t){for(;e&&e!==document;e=e.parentNode)if(e.classList.contains(t))return e;return null;},fnMultiListener=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.split(" ").forEach(function(t){return e.addEventListener(t,n,o);});},focusAfterTransition=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=function(e){"function"==typeof t?t():t.focus(),e.target.removeEventListener("transitionend",n);};e.addEventListener("transitionend",n);},focusByPrintableChars=function(){var e="",t="",n=[],o="";return function(r){e+=event.key;var i=!1;if(function(e){return 1===e.length&&e.match(/\S/);}){t!==e&&(n=[]),clearTimeout(o),o=setTimeout(function(){e="",o=null;},300);var a=[];_toConsumableArray(r).forEach(function(t){var n=t.innerText;n&&0===n.toLowerCase().indexOf(e)&&a.push(t);}
4),a.some(function(o){if(n.every(function(e){return e!==o;})&&document.activeElement!==o)return event.stopPropagation(),o.focus(),i=o,n.push(o),t=e,!0;}),t===e&&n.length>=a.length&&n.shift();}return i;};}(),basicKeyDownListTraversalFn=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(o){o.addEventListener("keydown",function(r){switch(!0){case keyCheck(RIGHT_ARROW_KEY)||keyCheck(DOWN_ARROW_KEY)||keyCheck(HOME_KEY):var i=o.nextElementSibling;if(null===i||keyCheck(HOME_KEY))if(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||n){if(keyCheck(DOWN_ARROW_KEY)||keyCheck(HOME_KEY)){var a=e[0].firstElementChild;null!==a&&(r.preventDefault(),r.stopPropagation(),a.focus());}}else{if(!t&&(keyCheck(RIGHT_ARROW_KEY)||keyCheck(HOME_KEY))){var c=e[0].firstElementChild;null!==c&&(r.preventDefault(),c.focus());}}else window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||n?keyCheck(DOWN_ARROW_KEY)&&(r.preventDefault(),r.stopPropagation(),i.firstElementChild.focus()):t||keyCheck(RIGHT_ARROW_KEY)&&(r.preventDefault(),i.firstElementChild.focus());break;case keyCheck(LEFT_ARROW_KEY)||keyCheck(UP_ARROW_KEY)||keyCheck(END_KEY):var l=o.previousElementSibling;if(null===l||keyCheck(END_KEY))if(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||n){if(keyCheck(UP_ARROW_KEY)||keyCheck(END_KEY)){var u=e[e.length-1].firstElementChild;null!==u&&(r.preventDefault(),r.stopPropagation(),u.focus());}}else{if(!t&&(keyCheck(LEFT_ARROW_KEY)||keyCheck(END_KEY))){var s=e[e.length-1].firstElementChild;null!==s&&(r.preventDefault(),s.focus());}}else window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||n?keyCheck(UP_ARROW_KEY)&&(r.preventDefault(),r.stopPropagation(),l.firstElementChild.focus()):t||keyCheck(LEFT_ARROW_KEY)&&(r.preventDefault(),l.firstElementChild.focus());}});});},toBeHiddenInVO=function(e,t){var n=document.querySelector("footer");e.forEach(function(e){var n=document.querySelector(e);null!==n&&(t?(n.setAttribute("tabindex","-1"),n.setAttribute("aria-hidden",!0)):(n.removeAttribute("tabindex"),n.removeAttribute("aria-hidden")));}),null!==n&&(t?n.setAttribute("hidden","hidden"):n.removeAttribute("hidden","hidden"));},anchorScroll=function(){if(window.innerWidth<768)window.addEventListener("hashchange",function(){var e=window.location.hash.slice(1);document.getElementById(e)&&(window.scrollBy(0,-60),window.history.replaceState(null,null,window.location.pathname));});},offset=function(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,o=t.top,r=t.bottom;if(o>=0&&r<=n)return !0;},onscrollanimate=function(e,t){Array.prototype.slice.call(document.querySelectorAll("."+e)).forEach(function(e){window.addEventListener("scroll",function(n){1==offset(e)?e.classList.add(t):e.classList.remove(t);});});},scrollToElement=function(e){var t=Array.prototype.slice.call(document.querySelectorAll("."+e)),n=function(e,t,o){if(!(o<=0)){var r=(t-e.scrollTop)/o*10;setTimeout(function(){e.scrollTop=e.scrollTop+r,e.scrollTop!==t&&n(e,t,o-10);},10);}};t&&t.forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();var o=e.getAttribute("href"),r=document.querySelector(o).offsetTop-30,i="";i=document.documentElement&&document.documentElement.scrollTop?document.documentElement:document.body,n(i,r,800);});});},svgIconLinkButton=function(){var e=document.querySelectorAll(".button-icon-caret-right"),t=document.querySelectorAll(".button-icon-download"),n=document.querySelector("div .caretsolid"),o=(document.querySelector("div .envelope"),document.querySelector("div .download"));function r(e,t){var n=e.innerHTML;if(t.length>0)for(var o=0;o<t.length;o++)t[o].innerHTML.match(/(<svg)([^<]*|[^>]*)/g)||(t[o].innerHTML+=n);}null!==n&&r(n,e),null!==o&&r(o,t);},alertOffsetActions=function(){var e=document.querySelector("header .utility-nav");if(null!==e){var t=document.getElementById("non_supported_browser"),n=document.querySelector(".block-aamc-utility-alert-block .alert-items");if(window.outerWidth>=DESKTOP_MIN){var o=0;null!==n?o=offSet.top(n)+outerHeight(n):null!==t&&(o=offSet.top(t)+outerHeight(t));var r=offSet.top(document.querySelector("header"));e.style.top="".concat(o-r,"px");}else e.removeAttribute("style"),e.classList.remove("utility_onscroll");}},alertbox=function(){var e=document.querySelector("header .utility-nav");if(null!==e){var t,n=document.getElementById("non_supported_browser"),o=document.querySelector(".block-aamc-utility-alert-block .alert-items"),r=0;window.onload=alertOffsetActions(),window.addEventListener("resize",function(){clearTimeout(t),t=setTimeout(alertOffsetActions,500);}),window.addEventListener("scroll",function(){var t=window.pageYOffset||document.documentElement.scrollTop,i=!1;null!==o?i=outerHeight(o)>t:null!==n&&(i=outerHeight(n)>t),t>r||i||0===t?e.classList.remove("utility_onscroll"):window.outerWidth>=DESKTOP_MIN&&e.classList.add("utility_onscroll"),r=t<=0?0:t;},!1);}},triggerEvent=function(e,t){var n;document.createEvent?(n=document.createEvent("MouseEvent")).initMouseEvent(t,!0,!0,window,0,0,0,0,0,!1,!1,
4!1,!1,0,null):n=new MouseEvent(t,{bubbles:!0,cancelable:!0}),e.dispatchEvent(n);},setFocus=function(e,t){setTimeout(function(){e.focus();},t);},normalizeString=function(e){return e.replace(/[-\s]+/g,"-").toLowerCase();};function clearQueryParam(e){if(e){var t=new URL(window.location.href);"hash"===e?t.hash&&(t.hash="",window.history.replaceState({},"",t)):t.searchParams.has(e)&&(t.searchParams.delete(e),window.history.replaceState({},"",t));}}function addQueryParam(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&null!=t){var o=new URL(window.location.href);"hash"===e?o.hash=t:o.searchParams.set(e,t);var r=n?"pushState":"replaceState";window.history[r]({},"",o.toString());}}var removeQueryParam=function(e,t){var n=new URL(e);n.hash&&(n=processHash(n));var o=new URLSearchParams(n.search);return o.delete(t),n.search=o.toString(),n.toString();},hasQueryParam=function(e,t){var n=new URL(e);return n.hash&&(n=processHash(n)),new URLSearchParams(n.search).has(t);},processHash=function(e){var t=e.hash.split("?");return e.hash="",e.search=t[1],e;};function aamc_debounce(e,t,n){var o;return function(){var r=this,i=arguments,a=n&&!o;clearTimeout(o),o=setTimeout(function(){o=null,n||e.apply(r,i);},t),a&&e.apply(r,i);};}var alterCanvasPosition=aamc_debounce(function(){Array.prototype.slice.call(document.querySelectorAll('div[aria-describedby="drupal-off-canvas"]')||document.querySelectorAll('div[aria-describedby="drupal-off-canvas-wrapper"]')).forEach(function(e,t){0===e.classList.length&&(e.style.left="0px");});},350),globalCustomWindowEvents=function(){window.addEventListener("resize",function(e){alterCanvasPosition();});},onclickCkeditor=function(){document.querySelector("body").addEventListener("click",function(e){var t=e.target;if(t.classList.contains("cke_button__maximize")||t.classList.contains("cke_button__maximize_icon")){var n=document.getElementById("drupal-off-canvas")||document.getElementById("drupal-off-canvas-wrapper"),o=n.getBoundingClientRect(),r=window.innerHeight-o.top;n.style.height=r+"px",n.style["background-color"]="#444";}});},iframeResize=function(){window.addEventListener("message",function(e){var t=document.getElementById("newsletter-iframe");t&&e.data.iframeHeight&&(t.style.height=e.data.iframeHeight+"px");});},offSet={top:function(e){var t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return t.top+n;},left:function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft;return t.left+n;}},outerHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseInt(n.marginTop)+parseInt(n.marginBottom);},setSerachFocus=function(e){document.getElementsByClassName("adminimal-admin-toolbar").length||setTimeout(function(){for(var t=0;t<e.length;t++)"search"!==e[t].getAttribute("type")&&"text"!==e[t].getAttribute("type")||e[t].focus();},500);},aamcScrollTop=function(e,t){var n=document.getElementsByClassName("main_container"),o=document.getElementsByClassName(e);if(o.length){var r=o[0].getElementsByTagName("input");if(window.outerWidth>=DESKTOP_MIN)return o[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),setSerachFocus(r),!0;var i=0;if(null!==t){var a=document.getElementsByClassName(t);a.length&&window.outerWidth<=MOBILE_MAX&&(i=outerHeight(a[0])+20);}var c=o[0].offsetTop-(outerHeight(o[0])-i);return window.scrollTo({top:c,left:0,behavior:"smooth"}),setSerachFocus(r),!0;}return n.length&&n[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),!0;},skipLink=function(e){keyCheck(SPACE_KEY)&&(e.stopPropagation(),e.preventDefault(),window.location.hash="#main-content");},permissionIconDemo=function(){for(var e=[].slice.call(document.querySelectorAll(".kss-modifier__example [data-public-role]")),t=0;t<e.length;t++){var n="",o="";null!==(o=e[t].classList.contains("flexible-permission-icon")?e[t]:e[t].querySelector(".permissions-icon"))&&"undefined"!==o&&(n=t%2==0?'<svg class="icon icon--unlock" aria-hidden="true" focusable="false"><use xlink:href="#unlock"></use></svg>':'<svg class="icon icon--lock" aria-hidden="true" focusable="false"><use xlink:href="#lock"></use></svg>',o.innerHTML=n);}};function isWindows(){return navigator.userAgent.toLowerCase().indexOf("windows")>-1;}function customFontWeightBehavior(){isWindows()&&document.querySelectorAll("b, strong").forEach(function(e){window.getComputedStyle(e).fontFamily.toLowerCase().includes("robotobold")&&(e.style.fontWeight="500");});}permissionIconDemo();var setAttributes=function(e,t){for(var n in t)e.setAttribute(n,t[n]);},removeAttributes=function(e,t){t.forEach(function(t){return e.removeAttribute(t);});};!function(e,t,n,o){t.behaviors.alertBox={attach:function(e,t){o("alertBox","body").forEach(alertbox);}},t.behaviors.svgIconLinkButton={attach:function(t,n){e(o("svgIconLinkButton",t===document?"html":t)).each(function(){e(document).on("ajaxComplete ready",svgIconLinkButton());});}},t.behaviors.clickCkeditor={attach:function(t,n){e(o("clickCkeditor",t===document?"html":t)).each(function(){onclickCkeditor();});}},t.behaviors.anchorlinks={attach:function(t,n){e(o("anchorlinks",t===document?"html":t)).each(function(){anchorScroll();var e=document.querySelector(".skip-link");e&&e.addEventListener("keydown",skipLink);});}},t.behaviors.customViewFilterSubmit={attach:function(t,n){e(o("customViewFilterSubmit",t===document?"html":t)).each(function(){if(e(".embedded-form").length){var t=e("#landing-search"),n=e(t).find("select");e(n).each(function(){e(this).on("change",function(){this.closest("form").reportValidity()&&e(this).closest("form").find(":submit").click();});});}});}},t.behaviors.searchApiAutocompleter={attach:function(t,n){e(o("search-api-autocompleter",".ui-autocomplete-input[data-search-api-autocomplete-search]",t)).each(function(){var t=e(this).data("ui-autocomplete");if(t){var n=e(this),o=n.parent(),r=n.parents().eq(2),i=e(t.menu.element[0]),a=i.attr("id");o.attr({role:"combobox","aria-owns":a,"aria-haspopup":"listbox","aria-expanded":!1}),n.attr({"aria-autocomplete":"list","aria-controls":a}),i.attr({role:"listbox"}),t._resizeMenu=function(){var t=this.menu.element,o=n.offset().left-r.offset().left;t.outerWidth(r.outerWidth()).find(".search-api-autocomplete-suggestion").each(function(){e(this).css("padding-left",o);});},t.options.close=function(e){n.removeAttr("aria-activedescendant"),o.attr({"aria-expanded":!1}),!0===keyCheck(ESC_KEY)&&e.stopImmediatePropagation();},t.options.focus=function(e,t){i.find("[aria-selected]").removeAttr("aria-selected");var o=i.find(".ui-state-active");return o.parent().attr({"aria-selected":"true"}),n.attr({"aria-activedescendant":o.parent().attr("id")}),!1;},t.options.open=function(t){o.attr({"aria-expanded":!0}),i.find("li").each(function(){var t=e(this);t.attr({id:"".concat(t.find(".ui-menu-item-wrapper").attr("id"),"-wrap"),role:"option"});});},t.options.position={my:"left top+".concat(15),at:"left bottom",of:r,collision:"none"},t.options.messages={results:function(e){return e+" results are available.";}};}});}},t.behaviors.iframeResize={attach:function(t,n){e(o("iframeResize",t===document?"html":t)).each(function(){iframeResize();});}},t.behaviors.customFontWeightBehavior={attach:function(t,n){e(o("customFontWeightBehavior",t===document?"html":t)).each(function(){customFontWeightBehavior();});}};}(jQuery,Drupal,drupalSettings,once);;
5function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return "Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0;}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e);}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e);}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a;}var megaMenuInit=function(e){if(null!==e){var t=e.querySelector(".mega-menu__bar"),n=e.querySelectorAll(".mega-menu__bar__item"),a=e.querySelectorAll(".mega-menu__panel"),i=e.querySelectorAll(".mega-menu__panel__column__block__list"),o=document.querySelector(".header__menu-btn"),c=document.querySelector(".universal-navigation__signin"),r=document.querySelector(".minimal-header"),s=document.querySelector(".content_area__wrapper"),_=[".skip-link",".universal-navigation",".universal-navigation__signin .universal-navigation__menu-item__link",".header__logo-link",".header__search-btn"],l=function(){var e=document.body.classList.contains("header-search--is-open"),t=document.body.classList.contains("mega-menu--is-open"),n=null!==document.querySelector(".timeline");t&&n||e&&n?document.body.classList.add("timeline-z-index"):document.body.classList.remove("timeline-z-index");};null===c&&document.body.classList.add("no-signin"),null!==t&&t.addEventListener("keydown",function(){window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r?focusByPrintableChars(t.querySelectorAll(".mega-menu__bar__item__link")):focusByPrintableChars(t.querySelectorAll(".mega-menu__bar__item:not(.mega-menu__bar__item--uni-nav) .mega-menu__bar__item__link"));}
5),null!==n&&(basicKeyDownListTraversalFn(n),n.forEach(function(e){e.firstElementChild.addEventListener("keydown",function(){(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r)&&(event.shiftKey&&keyCheck(TAB_KEY)?null!==e.previousElementSibling||e.classList.contains("mega-menu__bar__item--open")||(event.preventDefault(),o.focus()):keyCheck(ESC_KEY)&&(m(!1),o.focus()));});}));var m=function(e){e?(document.body.classList.add("mega-menu--is-open"),o.querySelector("span").textContent="CLOSE",o.setAttribute("aria-expanded","true"),o.classList.add("header__menu-btn--close"),window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r&&null!==s&&s.classList.add("content_area__wrapper--overlay-active"),window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r?(null!==n&&n.forEach(function(e){e.firstElementChild.setAttribute("tabindex",0);}),toBeHiddenInVO(_,e)):d()):(d(),document.body.classList.remove("mega-menu--is-open"),o.querySelector("span").textContent="MENU",o.setAttribute("aria-expanded","false"),o.classList.remove("header__menu-btn--close"),window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r&&s.classList.remove("content_area__wrapper--overlay-active"),(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r)&&(null!==n&&n.forEach(function(e){e.firstElementChild.setAttribute("tabindex",-1);}),window.scrollTo({top:0,behavior:"smooth"})),toBeHiddenInVO(_,e)),setTimeout(l,100);};fnMultiListener(o,"click keydown keyup",function(){("click"===event.type||"ke
5ydown"===event.type&&keyCheck(RETURN_KEY)||"keyup"===event.type&&keyCheck(SPACE_KEY))&&(event.preventDefault(),document.body.classList.contains("mega-menu--is-open")?m(!1):(m(!0),n[0].querySelector(".mega-menu__bar__item__link").focus()));});var u=function(e,t){t?e.classList.add("mega-menu__panel__column__block__list--open"):e.classList.remove("mega-menu__panel__column__block__list--open"),e.firstElementChild.setAttribute("aria-expanded",t);},d=function(){var t=e.querySelectorAll(".mega-menu__bar__item--open");null!==t&&t.forEach(function(e){var t=e.querySelectorAll(".mega-menu__panel__column__block__list--open");e.classList.remove("mega-menu__bar__item--open"),e.firstElementChild.setAttribute("aria-expanded","false"),null!==t&&t.forEach(function(e){u(e,!1);});});},h=function(e,t){if(t)m(!0),e.classList.add("mega-menu__bar__item--open"),e.firstElementChild.setAttribute("aria-expanded","true");else{var n=e.querySelectorAll(".mega-menu__panel__column__block__list--open");e.classList.remove("mega-menu__bar__item--open"),e.firstElementChild.setAttribute("aria-expanded","false"),null!==n&&n.forEach(function(e){u(e,!1);}),window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&!r&&m(!1);}},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=function(){t&&n.forEach(function(e){var t=e.firstElementChild;window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r?document.body.classList.contains("mega-menu--is-open")&&e.classList.contains("mega-menu__bar__item")?t.setAttribute("tabindex",0):e.classList.contains("mega-menu__bar__item")?t.setAttribute("tabindex",-1):t.setAttribute("tabindex",0):t.removeAttribute("tabindex");}),e.forEach(function(e){var n=e.firstElementChild,a=e.lastElementChild;if(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r){var i=e.classList[0];n.setAttribute("role","button"),n.setAttribute("aria-controls",a.getAttribute("id")),n.setAttribute("aria-haspopup",!0),t||n.setAttribute("tabindex",0),e.classList.contains("".concat(i,"--open"))?n.setAttribute("aria-expanded",!0):n.setAttribute("aria-expanded",!1);}else n.removeAttribute("role"),n.removeAttribute("aria-controls"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),t||n.removeAttribute("tabindex");});};a(),window.addEventListener("resize",function(){a();});};null!==a&&(y(_toConsumableArray(a).map(function(e){return getClosestByClass(e,"mega-menu__bar__item");}),!0),a.forEach(function(e){var t=getClosestByClass(e,"mega-menu__bar__item"),n=t.firstElementChild;e.querySelectorAll(".mega-menu__panel__column__block").forEach(function(e){basicKeyDownListTraversalFn(e.querySelectorAll(".mega-menu__panel__column__block__list"),!0),e.addEventListener("keydown",function(){(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r)&&focusByPrintableChars(e.querySelectorAll(".mega-menu__panel__column__block__list__title"));});}),n.addEventListener("click",function(){event.preventDefault(),event.stopPropagation(),t.classList.contains("mega-menu__bar__item--open")?h(t,!1):h(t,!0);}),n.addEventListener("keydown",function(){keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY)||keyCheck(DOWN_ARROW_KEY)?window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&!r?(keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY)||keyCheck(DOWN_ARROW_KEY))&&(event.preventDefault(),t.classList.contains("mega-menu__bar__item--open")&&!keyCheck(DOWN_ARROW_KEY)?h(t,!1):(keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY)||keyCheck(DOWN_ARROW_KEY))&&(h(t,!0),e.firstElementChild.firstElementChild.focus())):(keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY))&&(event.preventDefault(),t.classList.contains("mega-menu__bar__item--open")?h(t,!1):(keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY))&&h(t,!0)):keyCheck(ESC_KEY)&&window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&!r&&t.classList.contains("mega-menu__bar__item--open")&&(event.stopPropagation(),h(t,!1));}),e.addEventListener("keydown",function(){if(window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&!r){var a=e.querySelectorAll("A");keyCheck(DOWN_ARROW_KEY)||keyCheck(UP_ARROW_KEY)||keyCheck(RIGHT_ARROW_KEY)||keyCheck(LEFT_ARROW_KEY)||keyCheck(TAB_KEY)?null!==a&&_toConsumableArray(a).some(function(e,i){if(event.target===e)if(keyCheck(UP_ARROW_KEY)||keyCheck(LEFT_ARROW_KEY)||event.shiftKey&&keyCheck(TAB_KEY)){var o=a[i-1];void 0!==o?(event.preventDefault(),event.stopPropagation(),o.focus()):event.shiftKey&&keyCheck(TAB_KEY)||keyCheck(UP_ARROW_KEY)?(event.preventDefault(),h(t,!1),n.focus()):keyCheck(LEFT_ARROW_KEY)&&h(t,!1);}else{if(keyCheck(DOWN_ARROW_KEY)||keyCheck(RIGHT_ARROW_KEY)||keyCheck(TAB_KEY)){var c=a[i+1];void 0!==c?(event.preventDefault(),event.stopPropagation(),c.focus()):(keyCheck(TAB_KEY)||keyCheck(RIGHT_ARROW_KEY))&&h(t,!1);}}}):keyCheck(ESC_KEY)?(h(t,!1),n.focus()):focusByPrintableChars(a);}else keyCheck(ESC_KEY)&&(event.stopPropagation(),h(t,!1),n.focus());});}
5)),null!==i&&(y(i),i.forEach(function(e){var t=e.firstElementChild,n=e.lastElementChild;fnMultiListener(t,"click keydown",function(){(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r)&&("click"===event.type||keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY))&&(event.preventDefault(),e.classList.contains("mega-menu__panel__column__block__list--open")?u(e,!1):u(e,!0));}),n.addEventListener("keydown",function(){(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r)&&keyCheck(ESC_KEY)&&(event.stopPropagation(),u(e,!1),t.focus());});})),fnMultiListener(document,"click focusin",function(){if(document.body.classList.contains("mega-menu--is-open")){var e=getClosestByClass(event.target,"mega-menu__bar__item");if("click"===event.type){if(null===e)null===getClosestByClass(event.target,"header__menu-btn")&&m(!1);}else window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&!r&&(null===e||null!==e&&!e.classList.contains("mega-menu__bar__item--open"))&&m(!1);}setTimeout(l,100);},!0),p=!0,(E=function(){window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches&&document.body.classList.contains("mega-menu--is-open")||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&r&&document.body.classList.contains("mega-menu--is-open")?(toBeHiddenInVO(_,!0),p=!1):p||(toBeHiddenInVO(_,!1),m(!1),p=!0);})(),window.addEventListener("resize",function(){E();});}var p,E;};!function(e,t){e.behaviors.megaMenu={attach:function(e,n){t("megaMenu",".mega-menu",e).forEach(function(e){megaMenuInit(e);});}};}(Drupal,once);;
6function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var o={}.toString.call(e).slice(8,-1);return "Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0;}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e);}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e);}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r;}var footerMenuAccordionSetAttribute=function(e,t){var o=e.parentNode.querySelector(".footer-menu-columns__block__menu");window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches?(e.setAttribute("aria-expanded",t),e.setAttribute("role","button"),e.setAttribute("tabindex",0),o.setAttribute("role","region")):(e.removeAttribute("aria-expanded"),e.removeAttribute("role"),e.removeAttribute("tabindex"),o.setAttribute("role","list"));},footerMenuAccordionClose=function(e){var t=e.parentNode.querySelector(".footer-menu-columns__block__menu");t.classList.contains("activelist")&&t.classList.remove("activelist");},footerMenuAccordionHeadingEvents=function(e){var t=_toConsumableArray(document.querySelectorAll(".footer-menu-columns .footer-menu-columns__block__title")),o=Array.prototype.slice.call(document.querySelectorAll(".footer-menu-columns .footer-menu-columns__block__title"));window.addEventListener("resize",function(){window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches&&e.classList.contains("footer-menu-columns__block__title--active")?footerMenuAccordionSetAttribute(e,!0):footerMenuAccordionSetAttribute(e,!1);});var r=function(){e.classList.contains("footer-menu-columns__block__title--active")?(e.classList.remove("footer-menu-columns__block__title--active"),footerMenuAccordionSetAttribute(e,!1),footerMenuAccordionClose(e)):(t.forEach(function(e){e.classList.contains("footer-menu-columns__block__title--active")&&(e.classList.remove("footer-menu-columns__block__title--active"),footerMenuAccordionSetAttribute(e,!1)),footerMenuAccordionClose(e);}),e.classList.add("footer-menu-columns__block__title--active"),footerMenuAccordionSetAttribute(e,!0),e.parentNode.querySelector(".footer-menu-columns__block__menu").classList.add("activelist"));};e.addEventListener("click",r),e.addEventListener("keydown",function(e){var t=e.target,n=e.ctrlKey&&(keyCheck(PAGE_UP_KEY)||keyCheck(PAGE_DOWN_KEY));if(t.classList.contains("footer-menu-columns__block__title"))if(n||keyCheck(UP_ARROW_KEY)||keyCheck(DOWN_ARROW_KEY)){e.preventDefault();var c=o.indexOf(t),i=keyCheck(PAGE_DOWN_KEY)||keyCheck(DOWN_ARROW_KEY)?1:-1,a=o.length;o[(c+a+i)%a].focus();}else{if(keyCheck(END_KEY)||keyCheck(HOME_KEY))switch(!0){case keyCheck(HOME_KEY):e.preventDefault(),o[0].focus();break;case keyCheck(END_KEY):e.preventDefault(),o[o.length-1].focus();}}
6else n&&panels.forEach(function(r,n){r.contains(t)&&(e.preventDefault(),o[n].focus());});(keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY))&&(e.preventDefault(),r());});};!function(e,t,o,r){t.behaviors.footerMenuAccordionLinks={attach:function(t,o){e(r("footerMenuAccordionLinks",".footer-menu-columns .footer-menu-columns__block__title",t)).each(function(){var t=e(this)[0];footerMenuAccordionHeadingEvents(t),footerMenuAccordionSetAttribute(t,!1);});}};}(jQuery,Drupal,drupalSettings,once);;
7function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t;}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t;},_typeof(t);}function _createForOfIteratorHelper(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return {s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]};},e:function(t){throw t;},f:o};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var s,r=!0,a=!1;return {s:function(){n=n.call(t);},n:function(){var t=n.next();return r=t.done,t;},e:function(t){a=!0,s=t;},f:function(){try{r||null==n.return||n.return();}finally{if(a)throw s;}}};}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n={}.toString.call(t).slice(8,-1);return "Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0;}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i;}var peoplecarousel=function(t,e){var n={touchstartX:0,touchendX:0},i=-1;n.init=function(){if(this.options=e,this.disableEvent=!1,this.index=0,this.autoplayDelay=this.options.delay+this.options.speed,this.transitionDuration=n.isWebkit("transitionDuration"),this.transform=n.isWebkit("transform"),this.timer,this.container=t,this.wrapper=this.container.querySelector(".".concat(this.options.class.wrapper)),this.navigationbuttons=this.container.querySelectorAll(".".concat(this.options.class.navigationbuttons)),this.buttons=this.container.querySelectorAll(".".concat(this.options.class.buttons)),this.slides=this.container.querySelectorAll(".".concat(this.options.class.slide)),this.pagination=this.container.querySelector(".".concat(this.options.class.pagination)),this.infoSection=this.container.querySelector(".".concat(this.options.class.infoSection)),this.blockWrapper=document.querySelector(".".concat(this.options.class.blockWrapper)),this.slides.length>1)n.setWidth(),n.moveWrapper(),this.pagination&&n.createPagination(),this.options.autoplay&&n.autoplay(),2==this.buttons.length&&(n.prevBtn(),n.nextBtn()),this.wrapper&&(n.mobiletouchStart(),n.mobiletouchEnd()),n.resize(),n.tabOrderNavigation();else{var i,o=_createForOfIteratorHelper(this.navigationbuttons);try{for(o.s();!(i=o.n()).done;)i.value.classList.add("people-carousel__btn-hidden");}catch(t){o.e(t);}finally{o.f();}}},n.resize=function(){window.addEventListener("resize",function(){n.setWidth(),n.moveWrapper(),n.setTransition(0,!1);});},n.createPagination=function(){for(var t,e=document.createDocumentFragment(),o=0;o<this.slides.length;o++){var s=o+1;(t=document.createElement("button")).tabIndex=0,t.role="none",t.innerHTML=t.innerHTML+'<sp
7an class="people-carousel__btn-hidden">Button dots</span>',t.classList.add(this.options.class.paginationItem),t.setAttribute("aria-label","Item "+s+" of "+this.slides.length),0==o&&(t.classList.add("active"),t.setAttribute("aria-label","Current Item "+(this.index+1)+" of "+this.slides.length),i=this.index+1),e.appendChild(t);}this.pagination.appendChild(e),n.bullets();},n.bullets=function(){for(var t=this,e=this.pagination.querySelectorAll(".".concat(this.options.class.paginationItem)),i=function(i){e[i].addEventListener("click",function(){t.disableEvent||(t.index=i-1),n.buttonsAction();});},o=0;o<e.length;o++)i(o);},n.highlightBullet=function(){var t=this.pagination.querySelector(".active");t.classList.remove("active"),t.setAttribute("aria-label","Item "+i+" of "+this.slides.length);var e=this.pagination.querySelectorAll(".".concat(this.options.class.paginationItem)),o=n.updateIndex(this.index);e[o].classList.add("active"),i=o+1,e[o].setAttribute("aria-label","Current Item "+(o+1)+" of "+e.length);},n.prevBtn=function(){var t=this;this.buttons[0].addEventListener("click",function(){n.buttonsAction("left");}),this.buttons[0].addEventListener("keydown",function(e){if(keyCheck(LEFT_ARROW_KEY))n.buttonsAction("left");else{if(!e.shiftKey&&keyCheck(TAB_KEY)){var i=t.slides[t.index].querySelector(".".concat(t.options.class.information)),o=t.slides[t.index].querySelector(".".concat(t.options.class.ctaLink));null!=i?(e.preventDefault(),i.focus()):null!=o&&(e.preventDefault(),o.focus());}}});},n.nextBtn=function(){var t=this;this.buttons[1].addEventListener("click",function(){n.buttonsAction();}),this.buttons[1].addEventListener("keydown",function(e){if(keyCheck(RIGHT_ARROW_KEY))n.buttonsAction();else{if(e.shiftKey&&keyCheck(TAB_KEY)){var i=t.slides[t.index].querySelector(".".concat(t.options.class.information)),o=t.slides[t.index].querySelector(".".concat(t.options.class.ctaLink));null!=o?(e.preventDefault(),o.focus()):null!=i&&(e.preventDefault(),i.focus());}}});},n.tabOrderNavigation=function(){var t,e=this,n=_createForOfIteratorHelper(this.slides);try{var i=function(){var n=t.value;if(void 0!==n){var i=n.querySelector(".".concat(e.options.class.information)),o=n.querySelector(".".concat(e.options.class.ctaLink));null!=i&&i.addEventListener("keydown",function(t){t.shiftKey&&keyCheck(TAB_KEY)?(t.preventDefault(),e.buttons[0].focus()):keyCheck(TAB_KEY)&&(null!=o?(t.preventDefault(),o.focus()):(t.preventDefault(),e.buttons[1].focus()));}),null!=o&&o.addEventListener("keydown",function(t){t.shiftKey&&keyCheck(TAB_KEY)?null!=i?(t.preventDefault(),i.focus()):(t.preventDefault(),e.buttons[0].focus()):keyCheck(TAB_KEY)&&(t.preventDefault(),e.buttons[1].focus());});}};for(n.s();!(t=n.n()).done;)i();}catch(t){n.e(t);}finally{n.f();}},n.buttonsAction=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right";this.disableEvent||(n.moveSlider(t),this.options.autoplay&&(n.resetAutoplay(),n.autoplay()));},n.moveSlider=function(){"right"==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right")&&this.index<this.slides.length?this.index++:this.index--,this.pagination&&n.highlightBullet(),this.index=n.updateIndex(this.index),n.setTransition(this.options.speed),n.moveWrapper();},n.setTransition=function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.wrapper.style[this.transitionDuration]=t+"ms",n&&Drupal.announce("Current item "+(this.index+1)+" of "+this.slides.length);var i=this.slides[this.index];if(void 0!==i){var o=i.querySelector(".".concat(this.options.class.information));focusAfterTransition(this.wrapper,function(){setTimeout(function(){o.focus(),e.infoSection.scrollLeft=0;},1e3);});}},n.moveWrapper=function(){for(var t=0,e=this.slides,n=this.container.querySelector(".".concat(this.options.class.activeClass)),i=e[this.index],o=1;o<=this.index;o++)void 0!==e[o]&&null!==_typeof(e[o])&&(t+=e[o].offsetWidth);"undefined"!==n&&null!==n&&n.classList.remove(this.options.class.activeClass),this.wrapper.style[this.transform]="translate3d(-".concat(t,"px, 0, 0)"),"undefined"!==i&&null!==i&&i.classList.add(this.options.class.activeClass);}
7,n.setWidth=function(){for(var t=0,e=this.slides,n=0;n<e.length;n++)e[n].style.width=this.container.offsetWidth+"px",t+=e[n].offsetWidth;this.wrapper.style.width=t+"px";},n.createClones=function(){var t=this.wrapper.firstElementChild.cloneNode(!0),e=this.wrapper.lastElementChild.cloneNode(!0),n=this.slides.length;this.wrapper.appendChild(t),this.wrapper.insertBefore(e,this.slides[n]);},n.updateIndex=function(t){return t>=this.slides.length&&(t=0),t<0&&(t=this.slides.length-1),t;},n.isWebkit=function(t){return "string"==typeof document.documentElement.style[t]?t:(t=n.capitalizeFirstLetter(t),t="webkit".concat(t));},n.extendDefaults=function(t,e){var n,i;if(null!=e&&"undefined"!=e)for(n in e)if("object"===_typeof(e[n]))for(i in e[n])t[n][i]=e[n][i];else t[n]=e[n];return t;},n.handleGesture=function(){var t=Math.abs(n.touchstartX-n.touchendX);n.touchstartX>=n.touchendX&&t>150&&n.buttonsAction("right"),n.touchstartX<=n.touchendX&&t>150&&n.buttonsAction("left");},n.mobiletouchStart=function(){this.wrapper.addEventListener("touchstart",function(t){n.touchstartX=t.changedTouches[0].screenX;},{passive:!0});},n.mobiletouchEnd=function(){this.wrapper.addEventListener("touchend",function(t){n.touchendX=t.changedTouches[0].screenX,n.handleGesture();},!1);},n.init();};!function(t,e,n,i){e.behaviors.peopleCarousel={attach:function(e,n){t(i("peopleCarousel","html")).each(function(){var t,e={speed:600,delay:6e3,autoplay:!1,class:{wrapper:"people-carousel__content-wrapper",slide:"people-carousel__author-details",activeClass:"people-carousel__active-slide",information:"people-carousel__author-information",buttons:"people-carousel__btn",navigationbuttons:"people-carousel__navigation-buttons",pagination:"people-carousel__dots-navigation",paginationItem:"people-carousel__dots-navigation__dots",infoSection:"people-carousel__profile-info",blockWrapper:"block-inline-blockcarousel-block",ctaLink:"people-carousel__read-more__url"}},n=_createForOfIteratorHelper(document.querySelectorAll(".people-carousel-container"));try{for(n.s();!(t=n.n()).done;){var i=t.value;peoplecarousel(i,e);}}catch(t){n.e(t);}finally{n.f();}});}};}(jQuery,Drupal,drupalSettings,once);;
8function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return {s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]};},e:function(e){throw e;},f:r};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var i,c=!0,a=!1;return {s:function(){n=n.call(e);},n:function(){var e=n.next();return c=e.done,e;},e:function(e){a=!0,i=e;},f:function(){try{c||null==n.return||n.return();}finally{if(a)throw i;}}};}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return "Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0;}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o;}var accordionOnWindowEvents=function(){var e=Array.prototype.slice.call(document.querySelectorAll(".js-accordion-item .accordion__item-heading"));window.addEventListener("keydown",function(t){var n=t.target,o=t.ctrlKey&&(keyCheck(PAGE_UP_KEY)||keyCheck(PAGE_DOWN_KEY));if(n.classList.contains("accordion__item-heading"))if(o||keyCheck(UP_ARROW_KEY)||keyCheck(DOWN_ARROW_KEY)){t.preventDefault();var r=e.indexOf(n),i=keyCheck(PAGE_DOWN_KEY)||keyCheck(DOWN_ARROW_KEY)?1:-1,c=e.length;e[(r+c+i)%c].focus();}else{if(keyCheck(END_KEY)||keyCheck(HOME_KEY))switch(!0){case keyCheck(HOME_KEY):t.preventDefault(),e[0].focus();break;case keyCheck(END_KEY):t.preventDefault(),e[e.length-1].focus();}}else o&&panels.forEach(function(o,r){o.contains(n)&&(t.preventDefault(),e[r].focus());});});},isMobileDevice=function(){return window.innerWidth<=1023;},accordionHeadingClickEvents=function(e,t){fnMultiListener(e,"click keydown",function(t){if("click"===t.type||"ke
8ydown"===t.type&&(keyCheck(SPACE_KEY)||keyCheck(RETURN_KEY))){t.preventDefault(),accPanelActivate(e);var n=e.parentNode.getAttribute("data-accordion-image-url"),o=e.parentNode.getAttribute("data-accordion-image-alt"),r=document.querySelector(".accordion-item-image"),i=document.querySelector(".extra-image-container"),c=document.querySelectorAll(".js-accordion-item-image.accordion__item--open");if(i)if(n&&r&&c.length>0){r.style.opacity=0;var a=new Image();a.onload=function(){r.src=n,r.alt=o,r.style.display="block",r.style.opacity=1,i.style.display="none";},a.src=n;}else i.style.display="block",r.style.display="none";}});},closeOtherAccordion=function(e){e.parentNode.classList.contains("js-accordion-item-image")&&document.querySelectorAll(".js-accordion-item-image").forEach(function(t){t!==e.parentNode&&(t.classList.remove("accordion__item--open"),t.setAttribute("aria-expanded","false"),sessionStorage.removeItem("firstAccordionClicked"));});};document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".js-accordion-item-image");if(e&&e.length>0){var t=e[0];t.querySelector("h3").click(),sessionStorage.getItem("firstAccordionClicked")||t.classList.add("remove-transition");t.addEventListener("click",function(){t.classList.contains("remove-transition")?(t.classList.remove("remove-transition"),sessionStorage.setItem("firstAccordionClicked",!0)):sessionStorage.removeItem("firstAccordionClicked");});var n=document.querySelector(".extra-image-container"),o=function(){if(n){var e=document.querySelectorAll(".js-accordion-item-image.accordion__item--open");isMobileDevice()&&0===e.length?n.style.display="none":n.style.display="block";}};o();var r=function(){var t;n&&(!function(){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;)if(t.value.classList.contains("accordion__item--open"))return !1;}catch(e){n.e(e);}finally{n.f();}return !0;}()&&isMobileDevice?n.style.display="none":(n.style.display="block",(t=document.querySelector(".accordion-item-image")).style.display=t&&!n?"block":"none",o()));};e.forEach(function(e){e.addEventListener("click",r);}),r();}});var accPanelActivate=function(e){closeOtherAccordion(e),e.parentNode.classList.contains("accordion__item--open")?(e.parentNode.classList.remove("accordion__item--open"),e.parentNode.querySelector(".accordion__item-heading").setAttribute("aria-expanded","false")):(e.parentNode.classList.add("accordion__item--open"),e.parentNode.querySelector(".accordion__item-heading").setAttribute("aria-expanded","true"));};!function(e,t){e.behaviors.accordionHeading={attach:function(e,n){t("accordionHeading",".js-accordion-item .accordion__item-heading",e).forEach(function(e){accordionHeadingClickEvents(e);});}},e.behaviors.accordionWindowEvents={attach:function(e,n){t("accordionWindowEvents","body").forEach(accordionOnWindowEvents);}};}(Drupal,once);;
9function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,e){if(r){if("string"==typeof r)return _arrayLikeToArray(r,e);var t={}.toString.call(r).slice(8,-1);return "Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,o=Array(e);t<e;t++)o[t]=r[t];return o;}var id,setCookies=function(r,e,t){var o=new Date();o.setTime(o.getTime()+24*t*60*60*1e3),document.cookie=r+" = "+escape(e)+";expires = "+o.toGMTString()+"; path=/";},getCookies=function(r){var e=[];e=document.cookie.split(";");for(var t=0;t<e.length;t++){var o=e[t].trim();if(0===o.indexOf(r))return o.split("=")[1];}},closeAlert=function(r){var e=document.getElementById(r),t=e.value;getCookies(r)!=t&&setCookies(r,t,30),getClosestByClass(e,"alert").remove();},showAlert=function(){var r=_toConsumableArray(document.getElementsByName("cookies_id[]"));if(r.length>0)for(var e=0;e<r.length;e++){var t=r[e].id;getCookies(t)===r[e].value&&closeAlert(t);}};;
10var landingFilterDropdown=function(){var t=document.querySelector(".filter-button");t&&t.addEventListener("click",function(e){var n="landing-search__filter--show",r="filter-button--is-open",a=document.querySelector(".filter-button__text-col"),i=document.querySelector(".landing-search__filter");e.preventDefault(),t.classList.contains(r)&&null!==i&&i.classList.contains(n)?(a.textContent="Show Filters",t.classList.remove(r),i.classList.remove(n)):(a.textContent="Hide Filters",t.classList.add(r),null!==i&&i.classList.add(n)),t.setAttribute("aria-label",a.textContent);});};!function(t,e,n){e.behaviors.landingSearch={attach:function(e,r){t(n("landingSearch",e===document?"html":e)).each(function(){landingFilterDropdown(),t(".ajax-progress").remove();});}};}(jQuery,Drupal,once);;
11var initPagerSearchLink=function(e){var n=document.querySelector(".search-filter"),a=document.querySelector(".global-search-results"),i=document.querySelector(".landing-search");e.preventDefault(),n&&"none"!==n.style.display?aamcScrollTop("search-filter",null):a&&"none"!==a.style.display?aamcScrollTop("global-search-results",null):i&&"none"!==i.style.display&&aamcScrollTop("landing-search",null);};!function(e,n,a,i){n.behaviors.paginationRefine={attach:function(n,l){var c=!1;void 0!==a.check_views&&(c=a.check_views.is_ajax_enabled),e(i("paginationRefine",".pagination__refine-search-link",n)).on("click",function(e){e.stopImmediatePropagation(),initPagerSearchLink(e);}
11),e(i("paginationNumbers",".pagination__link",n)).on("click",function(e){c&&initPagerSearchLink(e);});}};}(jQuery,Drupal,drupalSettings,once);;
12var dataReportSearch,filterButton,selectFiltersWrap,filterButtonText,selectedOptionValue,dataReportFilterLink,selectboxElement=".selectbox-wrap__selected-option",selectOpen="selectbox-wrap--is-open",subSelectboxElement=".selectbox-wrap__option--subdropdown > .selectbox-wrap__dropdown-label",subSelectOpen="selectbox-wrap__option--is-open",selectHideClassName="datareport-search__select-container--is-open",filterButtonOpenClass="filter-button--is-open",windowWidth=document.body.clientWidth,ATTR_EXPANDED="aria-expanded",closeSelectbox=function(e,t){for(var s=0;s<e.length;s++){var n=e[s];n!==event.target&&!n.contains(event.target)&&n.classList.contains(t)&&n.classList.remove(t);}},selectboxComponent=function(){if(null!==(dataReportSearch=document.querySelector(".datareport-search"))){filterButton=dataReportSearch.querySelector(".filter-button"),filterButtonText=dataReportSearch.querySelector(".filter-button__text-col"),selectFiltersWrap=dataReportSearch.getElementsByClassName("datareport-search__select-container")[0],dataReportFilterLink=dataReportSearch.querySelectorAll(".search-link-list");var e=function(){filterButton.classList.contains(filterButtonOpenClass)&&selectFiltersWrap.classList.contains(selectHideClassName)?(filterButtonText.textContent="Show Filters",filterButton.classList.remove(filterButtonOpenClass),selectFiltersWrap.classList.remove(selectHideClassName)):(filterButtonText.textContent="Hide Filters",filterButton.classList.add(filterButtonOpenClass),selectFiltersWrap.classList.add(selectHideClassName));};null!==filterButton&&(filterButton.addEventListener("click",function(t){e(),t.preventDefault();}),filterButton.addEventListener("keydown",function(t){keyCheck(RETURN_KEY)&&e();var s=selectFiltersWrap.querySelector(selectboxElement),n=dataReportSearch.querySelector(".button-secondary");keyCheck(TAB_KEY)&&(null!==s&&selectFiltersWrap.classList.contains(selectHideClassName)?setFocus(s,100):setFocus(dataReportFilterLink[1].getElementsByTagName("a").item(0),100)),t.shiftKey&&keyCheck(TAB_KEY)&&setFocus(n,100),t.preventDefault();})),Array.prototype.slice.call(document.querySelectorAll(subSelectboxElement)).forEach(function(e,t){var s=function(){e.parentNode.querySelectorAll(".selectbox-wrap__sub-selected-option").forEach(function(t){t.textContent=e.textContent;});};e.addEventListener("click",function(){s();}),e.addEventListener("keydown",function(e){s(),e.preventDefault();});}),window.addEventListener("resize",function(){(windowWidth=document.body.clientWidth)>767&&null!==filterButtonText&&null!==filterButton&&null!==selectFiltersWrap&&(filterButtonText.textContent="Show Filters",filterButton.classList.remove(filterButtonOpenClass),selectFiltersWrap.classList.remove(selectHideClassName),displaySelectedDropdownVal());});}},displaySelectedDropdownVal=function(e){Array.prototype.slice.call(document.querySelectorAll(".datareport-search .selectbox-wrap")).forEach(function(t,s){if(t.classList.contains(selectOpen)){var n=document.querySelector(".selectbox-wrap--is-open .selectbox-wrap__text-col");if(!e.classList.contains("selectbox-wrap__dropdown-label--sub-selected-wrap")&&void 0!==selectedOptionValue){n.textContent=selectedOptionValue;var l=getClosestByClass(t,"selectbox-wrap").getAttribute("data-select-type"),o=document.querySelector("#edit-field-site-section-target-id"),a=document.querySelector("#edit-field-topic-target-id"),c=document.querySelector("#edit-field-subject-target-id");"section"===l&&null!==o&&(o.value=e.getAttribute("value"),triggerEvent(o,"click"),triggerEvent(o,"change")),"topic"===l&&null!==a&&(a.value=e.getAttribute("value"),triggerEvent(a,"click"),triggerEvent(a,"change")),"subject"===l&&null!==c&&(c.value=e.getAttribute("value"),triggerEvent(c,"click"),triggerEvent(c,"change"));}t.classList.remove(selectOpen),setFocus(t.getElementsByTagName("button").item(0),100);}}),Array.prototype.slice.call(document.querySelectorAll(".selectbox-wrap__option--subdropdown")).forEac
12h(function(e,t){e.classList.contains(subSelectOpen)&&e.classList.remove(subSelectOpen);});},selectboxBindEvent=function(e){var t=function(){e.parentNode.classList.contains(selectOpen)?(e.parentNode.classList.remove(selectOpen),e.setAttribute(ATTR_EXPANDED,!1)):(e.parentNode.classList.add(selectOpen),e.setAttribute(ATTR_EXPANDED,!0),setFocus(e.nextElementSibling.getElementsByTagName("span").item(0),100));};e.addEventListener("click",function(e){t(),e.preventDefault();}),e.addEventListener("keydown",function(s){keyCheck(RETURN_KEY)&&(t(),s.preventDefault()),keyCheck(DOWN_ARROW_KEY)&&e.parentNode.classList.contains(selectOpen)&&setFocus(e.nextElementSibling.getElementsByTagName("span").item(0),100);});var s=Array.prototype.slice.call(e.parentNode.querySelectorAll(".selectbox-wrap__dropdown-label"));s.forEach(function(e,t){e.addEventListener("click",function(t){e.parentNode.classList.contains("selectbox-wrap__option--subdropdown")?e.parentNode.classList.contains(subSelectOpen)?(s.forEach(function(e){e.parentNode.classList.contains(subSelectOpen)&&e.parentNode.classList.remove(subSelectOpen);}),e.parentNode.classList.remove(subSelectOpen)):(s.forEach(function(e){e.parentNode.classList.contains(subSelectOpen)&&e.parentNode.classList.remove(subSelectOpen);}),e.parentNode.classList.add(subSelectOpen),setFocus(e.nextElementSibling.getElementsByTagName("span").item(0),100)):(e.classList.contains("selectbox-wrap__dropdown-label--sub-selected-wrap")||(selectedOptionValue=e.textContent),displaySelectedDropdownVal(e)),t.stopPropagation();}),e.addEventListener("keydown",function(t){if(keyCheck(RETURN_KEY)&&(e.parentNode.classList.contains("selectbox-wrap__option--subdropdown")?(s.forEach(function(e){e.parentNode.classList.contains(subSelectOpen)&&e.parentNode.classList.remove(subSelectOpen);}),e.parentNode.classList.contains(subSelectOpen)?e.parentNode.classList.remove(subSelectOpen):(e.parentNode.classList.add(subSelectOpen),setFocus(e.nextElementSibling.getElementsByTagName("span").item(0),100))):(e.classList.contains("selectbox-wrap__dropdown-label--sub-selected-wrap")||(selectedOptionValue=e.textContent),displaySelectedDropdownVal(e))),keyCheck(RIGHT_ARROW_KEY)&&e.parentNode.classList.contains("selectbox-wrap__option--subdropdown")){var n;document.createEvent?(n=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null):n=new MouseEvent("click",{bubbles:!0,cancelable:!0});e.parentNode.getElementsByTagName("span").item(0).dispatchEvent(n);}var l=e.parentNode.previousElementSibling,o=e.parentNode.nextElementSibling,a=e.parentNode.parentNode,c=a.getElementsByTagName("div").item(0),r=a.lastElementChild.getElementsByTagName("span").item(0);if((keyCheck(TAB_KEY)||keyCheck(DOWN_ARROW_KEY))&&(a.parentNode.classList.contains("selectbox-wrap__option--subdropdown")?null!==o?setFocus(o.getElementsByTagName("span").item(0),100):null!==c&&(windowWidth<767?setFocus(c,100):null!==a&&setFocus(a.getElementsByTagName("span").item(0),100)):null!==o&&setFocus(o.getElementsByTagName("span").item(0),100),t.preventDefault()),(t.shiftKey&&keyCheck(TAB_KEY)||keyCheck(UP_ARROW_KEY))&&(a.parentNode.classList.contains("selectbox-wrap__option--subdropdown")?null!==l?windowWidth<767?!0===l.classList.contains("js-select-dropdown-close")?setFocus(c,100):setFocus(l.getElementsByTagName("span").item(0),100):!0===l.classList.contains("js-select-dropdown-close")?setFocus(r,100):setFocus(l.getElementsByTagName("span").item(0),100):setFocus(r,100):null!==l&&setFocus(l.getElementsByTagName("span").item(0),100),t.preventDefault()),keyCheck(LEFT_ARROW_KEY)){if(!e.parentNode.classList.contains("selectbox-wrap__option--subdropdown")){var i=e.parentNode.parentNode.parentNode;if(!i.classList.contains("selectbox-wrap")){var p=i.getElementsByTagName("span").item(0);triggerEvent(p,"click"),setFocus(p,100);}}t.preventDefault();}if(keyCheck(ESC_KEY)){var d=document.getElementsByClassName(selectOpen)[0],u=d.getElementsByClassName(subSelectOpen)[0];null!==d&&d.classList.remove(selectOpen),null!=u&&u.classList.remove(subSelectOpen),setFocus(d.getElementsByTagName("button").item(0),100),t.preventDefault();}});});};!function(e,t,s){t.behaviors.closeDropdown={attach:function(t,n){e(s("closeDropdown","html")).each(function(){document.addEventListener("click",function(){var e=document.getElementsByClassName(selectOpen),t=document.getElementsByClassName(subSelectOpen);closeSelectbox(e,selectOpen),closeSelectbox(t,subSelectOpen);});});}},t.behaviors.dataReportSearch={attach:function(e,t){s("dataReportSearch",".datareport-search .selectbox-wrap__selected-option",e).forEach(function(e){selectboxBindEvent(e);});}},t.behaviors.selectBoxWindowEvent={attach:function(e,t){s("selectBoxWindowEvent","body").forEach(selectboxComponent);}};}(jQuery,Drupal,once);;
13var tabsPanel=function(e){if(void 0!==e&&e){var t=Array.prototype.slice.call(e.querySelectorAll(".tab")),a=e.querySelector(".panels"),c=e.querySelector(".tab.tab--active");t.length>0&&(t.indexOf(c)>-1?t[t.indexOf(c)].removeAttribute("tabindex"):(t[0].removeAttribute("tabindex"),t[0].setAttribute("non-active",!0)),t.forEach(function(c){fnMultiListener(c,"click keydown focus",function(i){if("click"===i.t
13ype)setFocus(c,0),c.classList.contains("tab--active")||tabActivate(c,e,a);else if("keydown"===i.type)switch(i.preventDefault(),!0){case keyCheck(END_KEY):tabActivate(t[t.length-1],e,a);break;case keyCheck(HOME_KEY):tabActivate(t[0],e,a);break;case keyCheck(LEFT_ARROW_KEY):tabActivate(c.previousElementSibling,e,a);break;case keyCheck(RIGHT_ARROW_KEY):tabActivate(c.nextElementSibling,e,a);}else c.hasAttribute("non-active")&&(t[0].removeAttribute("non-active"),tabActivate(c,e,a));});}));}};function tabActivate(e,t,a){if(null!=e){var c=Array.prototype.slice.call(t.querySelectorAll(".tab")),i=t.querySelector(".tab.tab--active");if(c.indexOf(i)>-1&&(i.setAttribute("tabindex","-1"),i.setAttribute("aria-selected","false"),i.classList.remove("tab--active"),null!=a)){var r=a.querySelector(".panel.panel--active");null!=r&&r.classList.remove("panel--active");}if(e.classList.add("tab--active"),e.removeAttribute("tabindex"),e.setAttribute("aria-selected","true"),null!=a){i=t.querySelector(".tab.tab--active");var l=a.querySelectorAll(".panel")[c.indexOf(i)];null!=l&&l.classList.add("panel--active");}setFocus(e,0);}}!function(e,t){e.behaviors.tabsTabPanel={attach:function(e,a){t("reportOccurrencesTabPanel",".report-occurrence",e).forEach(function(e){tabsPanel(e);});}};}(Drupal,once);;
14!function(e,t,n){t.behaviors.responsiveTableCards={attach:function(e,t){function a(e){var t=[];[].slice.call(e.querySelectorAll("tr th")).forEach(function(n){n.hasAttribute("rowspan")||n.hasAttribute("colspan")?e.classList.add("simple-responsive-table-no-style"):t.push(function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.textContent||t.innerText||"";return (n.includes("<")||n.includes("&lt;"))&&(t.innerHTML=n,n=t.textContent||t.innerText||""),n.replace(/<[^>]*>?/gm,"").trim();}(n.innerHTML));}),[].slice.call(e.querySelectorAll("tr")).forEach(function(n){"TBODY"===n.parentNode.tagName&&"TH"===n.firstElementChild.tagName?e.classList.add("simple-responsive-table-no-style"):[].slice.call(n.querySelectorAll("td")).forEach(function(n,a){if(!n.hasAttribute("rowspan")&&!n.hasAttribute("colspan")&&!e.classList.contains("simple-responsive-table-no-style")){if(!n.querySelector(".td__wrap")){var r=n.innerHTML,i=document.createElement("span");i.innerHTML=r,i.classList.add("td__wrap"),n.innerHTML="",n.appendChild(i);}void 0!==t[a]&&n.setAttribute("data-title",t[a]),""===n.innerHTML.trim()&&(n.innerHTML='<div class="simple-responsive-table-empty-row-data"></div>');}});});}n("table-to-card-processed","table.table-to-card",e).forEach(function(e){a(e);});}};}(jQuery,Drupal,once);;
15var reportNavigation=function(e){var t=".report-navigation__button",n="report-navigation__occurrence--active",i="report-navigation__occurrence--button-active",r=Array.prototype.slice.call(e.querySelectorAll(t)),a=Array.prototype.slice.call(e.querySelectorAll(".report-navigation__occurrence")),c=Array.prototype.slice.call(e.querySelectorAll(".report-navigation__link"));a.forEach(function(e){e.addEventListener("keydown",function(){var t=focusByPrintableChars(c);t&&e.classList.contains(n)&&f(t);});}),r.forEach(function(e,t){fnMultiListener(e,"click keydown",function(t){var i=e.nextElementSibling.firstElementChild,r=i.firstElementChild;"click"===t.type?(d(e),setFocus(r,0),f(i)):"keydown"===t.type&&(keyCheck(TAB_KEY)&&e.parentNode.classList.contains("report-navigation__occurrence--active")?f(i):keyCheck(RETURN_KEY)||keyCheck(DOWN_ARROW_KEY)||keyCheck(SPACE_KEY)?(t.preventDefault(),setFocus(r,0),f(i),e.parentNode.classList.contains(n)||d(e)):keyCheck(UP_ARROW_KEY)&&(t.preventDefault(),e.parentNode.classList.contains(n)&&u(e)));});}),document.addEventListener("keydown",function(e){keyCheck(ESC_KEY)&&s();}),fnMultiListener(document,"click",function(t){var n=t.target;do{if(n===e)return;n=n.parentNode;}while(n);l();}),c.forEach(function(e,t){fnMultiListener(e,"keydown",function(t){var n=e.parentNode.previousElementSibling,i=e.parentNode.nextElementSibling,r=e.parentNode,a=e.closest(".report-navigation__list"),c=a.firstElementChild,o=a.lastElementChild,s="Tab"===t.key;if(!s||t.shiftKey||r!==o)if(s&&t.shiftKey&&r===c)l();else{if("keydown"===t.type)if(keyCheck(UP_ARROW_KEY)||t.shiftKey&&keyCheck(TAB_KEY))t.preventDefault(),null!==n&&(setFocus(n.children[0],0),f(e,n));else if(keyCheck(DOWN_ARROW_KEY)||keyCheck(TAB_KEY))t.preventDefault(),null!==i&&(setFocus(i.children[0],0),f(e,i));else if(keyCheck(HOME_KEY)||keyCheck(END_KEY)){t.preventDefault();var u=getClosestByClass(e,"report-navigation__list");switch(!0){case keyCheck(HOME_KEY):u.firstElementChild.children[0].focus(),f(e,u.firstElementChild);break;case keyCheck(END_KEY):u.lastElementChild.children[0].focus(),f(e,u.lastElementChild);}}else{if(keyCheck(ESC_KEY))getClosestByClass(e,"report-navigation__occurrence").querySelector(".report-navigation__button").focus();}}else l();});});var o=function(e,t){e.setAttribute("aria-expanded",t);},s=function(){a.forEach(function(e,r){e.classList.contains(n)&&(e.classList.remove(n),e.querySelector(t).setAttribute("aria-expanded",!1));e.classList.contains(i)&&e.classList.remove(i);});},l=function(){a.forEach(function(e,i){e.classList.contains(n)&&(e.classList.remove(n),e.querySelector(t).setAttribute("aria-expanded",!1));});},u=function(e){e.parentNode.classList.remove(n),e.parentNode.classList.contains(i)&&e.parentNode.classList.remove(i),o(e,!1);},d=function(e){e.parentNode.classList.contains(n)?u(e):(s(),function(e){e.parentNode.classList.add(n),o(e,!0);var t=e.nextElementSibling,i=t.querySelector('[aria-selected="true"]'),r=t.firstElementChild;null!==i?t.setAttribute("aria-activedescendant",i.id):t.hasAttribute("aria-activedescendant")||f(r.firstElementChild,r.firstElementChild);}(e));},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=getClosestByClass(e,"report-navigation__list").querySelector('[aria-selected="true"]'),i=getClosestByClass(e,"report-navigation__list");null!==n&&n.removeAttribute("aria-selected"),t.setAttribute("aria-selected",!0),i.setAttribute("aria-activedescendant",t.getAttribute("id"));};};!function(e,t){e.behaviors.reportOccurrenceNavigation={attach:function(e,n){t("reportOccurrenceNavigation",".report-navigation__occurrence-wrap",e).forEach(function(e){reportNavigation(e);});}};}(Drupal,once);;
16function _createForOfIteratorHelper(r,t){var n="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];
16if(!n){if(Array.isArray(r)||(n=_unsupportedIterableToArray(r))||t&&r&&"number"==typeof r.length){n&&(r=n);var e=0,o=function(){};return {s:o,n:function(){return e>=r.length?{done:!0}:{done:!1,value:r[e++]};},e:function(r){throw r;},f:o};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var a,i=!0,u=!1;return {s:function(){n=n.call(r);},n:function(){var r=n.next();return i=r.done,r;},e:function(r){u=!0,a=r;},f:function(){try{i||null==n.return||n.return();}finally{if(u)throw a;}}};}function _unsupportedIterableToArray(r,t){if(r){if("string"==typeof r)return _arrayLikeToArray(r,t);var n={}.toString.call(r).slice(8,-1);return "Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(r,t):void 0;}}function _arrayLikeToArray(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=Array(t);n<t;n++)e[n]=r[n];return e;}var restrictedContent=function(r){if(null!==r.children){var t=r.getElementsByTagName("*");blurContentChildern(t);}},blurContentChildern=function(r){var t,n=_createForOfIteratorHelper(r);try{for(n.s();!(t=n.n()).done;){var e=t.value;e.localName.match(/br|b|strong/g)||e.setAttribute("tabindex","-1");}}catch(r){n.e(r);}finally{n.f();}};!function(r,t){r.behaviors.contentBlur={attach:function(r,n){t("contentBlur",".content-blur",r).forEach(function(r){restrictedContent(r);});}};}(Drupal,once);;
17function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,l=function(){};return {s:l,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]};},e:function(e){throw e;},f:l};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,c=!0,s=!1;return {s:function(){n=n.call(e);},n:function(){var e=n.next();return c=e.done,e;},e:function(e){s=!0,o=e;},f:function(){try{c||null==n.return||n.return();}finally{if(s)throw o;}}};}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return "Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0;}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r;}var selectedDdValues=[],scrollToElem=function(e,t){if(e.scrollHeight>e.clientHeight){var n=e.clientHeight+e.scrollTop,r=t.offsetTop+outerHeight(t);r>n?e.scrollTop=r-e.clientHeight:t.offsetTop<e.scrollTop&&(e.scrollTop=t.offsetTop);}},customSelectBox=function(){var e="custom-select-box--is-open",t=Array.prototype.slice.call(document.querySelectorAll(".custom-select-box__selected-option")),n=Array.prototype.slice.call(document.querySelectorAll(".custom-select-box")),r=Array.prototype.slice.call(document.querySelectorAll(".custom-select-box__option")),l=Array.prototype.slice.call(document.querySelectorAll('[type="reset"]')),o=document.querySelectorAll(".custom-select-box__dropdown");n.forEach(function(t){t.addEventListener("keydown",function(){var n=focusByPrintableChars(r);n&&t.classList.contains(e)&&d(n);});}),t.forEach(function(t){fnMultiListener(t,"click keydown",function(n){var r=t.nextElementSibling;r.firstElementChild;"click"===n.type?t.parentNode.classList.contains(e)||(u(t),r.focus()):"keydown"===n.type&&(keyCheck(RETURN_KEY)||keyCheck(DOWN_ARROW_KEY)||keyCheck(SPACE_KEY)?(n.preventDefault(),setFocus(r,0),t.parentNode.classList.contains(e)||u(t)):keyCheck(ESC_KEY)&&(n.preventDefault(),t.parentNode.classList.contains(e)&&i(t)));});}),fnMultiListener(document,"click",function(t){var r,l=_createForOfIteratorHelper(n);try{for(l.s();!(r=l.n()).done;){var o=r.value;
17o!==t.target&&!o.contains(t.target)&&o.classList.contains(e)&&a();}}catch(e){l.e(e);}finally{l.f();}}),o.forEach(function(t){fnMultiListener(t,"click keydown",function(r){var l="",o=t.getAttribute("aria-activedescendant"),s=document.getElementById(o),i=s.previousElementSibling,u=s.nextElementSibling;if("click"===r.type)l=document.getElementById(r.target.getAttribute("id")),c(l),d(t,l);else{if("keydown"===r.type)if(keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY))r.preventDefault(),c(s);else if(keyCheck(UP_ARROW_KEY)||r.shiftKey&&keyCheck(TAB_KEY))r.preventDefault(),null!==i?d(t,i):a(t);else if(keyCheck(DOWN_ARROW_KEY)||keyCheck(TAB_KEY))r.preventDefault(),null!==u?d(t,u):a(t);else if(keyCheck(ESC_KEY))n.forEach(function(t,n){t.classList.contains(e)&&t.children[0].focus();}),a();else{if(keyCheck(HOME_KEY)||keyCheck(END_KEY))switch(r.preventDefault(),!0){case keyCheck(HOME_KEY):d(t,t.firstElementChild);break;case keyCheck(END_KEY):d(t,t.lastElementChild);}}}});}),null!=l&&l.forEach(function(e){return e.addEventListener("click",function(){var t,n=getClosestByClass(e,"form-scope"),r=getClosest(e,"FORM"),l="undefined"!==n&&null!==n?n:null,o="undefined"!==r&&null!==r?r:null;if(null!==(t=null!==l?l:null!==o?o:null)){var s=t.querySelectorAll(".custom-select-box__dropdown");null!=s&&s.forEach(function(e){var t=e.firstElementChild;c(t),d(e,t),e.previousElementSibling.selectedIndex=0;});}});});var c=function(t){var r=t.textContent,l=t.getAttribute("value"),o=getClosestByClass(t,"custom-select-box").querySelector(".custom-select-box__default-option"),c=t.parentElement.querySelector("[data-selected]");null!==c&&(c.removeAttribute("data-selected"),t.setAttribute("data-selected","")),n.forEac
17h(function(t,n){if(o.textContent=r,t.classList.contains(e)){t.children[0].focus();var c={};c.dropdownId=n,c.dropdownValue=r,selectedDdValues.push(c);var s=t.previousElementSibling;s.value=l,triggerEvent(s,"click"),triggerEvent(s,"change");}}),a();},s=function(e,t){e.setAttribute("aria-expanded",t);},a=function(){n.forEach(function(t,n){f(t,!1),t.classList.contains(e)&&t.classList.remove(e);}),t.forEach(function(e,t){s(e,!1);});},i=function(t){f(t,!1),t.parentNode.classList.remove(e),s(t,!1);},u=function(t){t.parentNode.classList.contains(e)?i(t):(a(),d(t.parentElement.querySelector("[data-selected]")),function(t){f(t,!0),t.parentNode.classList.add(e),s(t,!0);var n=t.nextElementSibling,r=n.querySelector('[aria-selected="true"]'),l=n.firstElementChild;null!==r?n.setAttribute("aria-activedescendant",r.id):n.hasAttribute("aria-activedescendant")||d(l);}(t));},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=getClosestByClass(e,"custom-select-box__dropdown").querySelector('[aria-selected="true"]'),r=getClosestByClass(e,"custom-select-box__dropdown");null!==n&&n.removeAttribute("aria-selected"),t.setAttribute("aria-selected",!0),r.setAttribute("aria-activedescendant",t.getAttribute("id")),scrollToElem(r,t);},f=function(e,t){var n=getClosestByClass(e,"selectbox-wrap");null!==n&&(t?n.classList.add("selectbox-wrap--isopen"):n.classList.remove("selectbox-wrap--isopen"));};},facetsCustomSelectBox=function(e){var t="facet-select-box--is-open",n=e.querySelector(".facet-select-box__selected-option"),r=e.querySelector(".facet-select-box__dropdown");e.addEventListener("keydown",function(){var n=focusByPrintableChars(e.querySelectorAll(".facet-select-box__option"));n&&e.classList.contains(t)&&i(n);}),e.querySelector(".facet-select-box__default-option").textContent=e.querySelector("[selected]").textContent,fnMultiListener(n,"click keydown",function(e){var r=n.parentNode.querySelector(".facet-select-box__dropdown"),l=r.querySelector("[aria-selected]"),o=l.previousElementSibling,c=l.nextElementSibling;"click"===e.type?(a(n),r.focus()):"keydown"===e.type&&(keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY)||keyCheck(UP_ARROW_KEY)||keyCheck(DOWN_ARROW_KEY)?(e.preventDefault(),keyCheck(UP_ARROW_KEY)||keyCheck(DOWN_ARROW_KEY)?(setFocus(r,0),a(n),keyCheck(UP_ARROW_KEY)?null!==o?i(l,o):i(l):keyCheck(DOWN_ARROW_KEY)&&(null!==c?i(l,c):i(l))):(setFocus(r,0),a(n))):keyCheck(ESC_KEY)&&(e.preventDefault(),n.parentNode.classList.contains(t)&&s(n)));}),fnMultiListener(document,"click",function(n){e!==n.target&&!e.contains(n.target)&&e.classList.contains(t)&&c();}),fnMultiListener(r,"click keydown",function(n){var o="",s=r.querySelector("[aria-selected]"),a=r.getAttribute("aria-activedescendant"),u=document.getElementById(a),d=u.previousElementSibling,f=u.nextElementSibling;if("click"===n.type)o=document.getElementById(n.target.getAttribute("id")),l(o);else{if("keydown"===n.type)if(keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY))n.preventDefault(),l(u);else if(keyCheck(UP_ARROW_KEY)||n.shiftKey&&keyCheck(TAB_KEY))n.preventDefault(),null!==d?i(s,d):c();else if(keyCheck(DOWN_ARROW_KEY)||keyCheck(TAB_KEY))n.preventDefault(),null!==f?i(s,f):c();else if(keyCheck(ESC_KEY)){if(e.classList.contains(t))e.children[0].focus();c();}else{if(keyCheck(HOME_KEY)||keyCheck(END_KEY))switch(n.preventDefault(),!0){case keyCheck(HOME_KEY):i(s,r.firstElementChild);break;case keyCheck(END_KEY):i(s,r.lastElementChild);}}}});var l=function(n){var r=getClosestByClass(n,"facets-widget-datepicker");if(null!==r&&(r.querySelector(".custom-date-range-wrapper").style.display="none","custom-date-range"===n.getAttribute("id")&&(r.querySelector(".custom-date-range-wrapper").style.display="block")),!n.hasAttribute("selected")){var l=n.parentElement.querySelector("[data-selected]");"custom-date-range"!==n.getAttribute("id")&&jQuery(n.parentElement).trigger("facets_filter",[n.getAttribute("value")]),i(n),null!==l&&(l.removeAttribute("data-selected"),n.setAttribute("data-selected",""));}if(e.classList.contains(t)){var o=e.children[0];o.querySelector(".facet-select-box__default-option").textContent=n.textContent,o.focus();}c();},o=function(e,t){e.setAttribute("aria-expanded",t);},c=function(){u(e,!1),e.classList.contains(t)&&e.classList.remove(t),o(n,!1);},s=function(e){u(e,!1),e.parentNode.classList.remove(t),o(e,!1);},a=function(e){e.parentNode.classList.contains(t)?s(e):(c(),i(e.parentElement.querySelector("[data-selected]")),function(e){u(e,!0),e.parentNode.classList.add(t),o(e,!0);var n=e.parentNode.querySelector(".facet-select-box__dropdown"),r=n.querySelector('[aria-selected="true"]'),l=n.firstElementChild;null!==r?n.setAttribute("aria-activedescendant",r.id):n.hasAttribute("aria-activedescendant")||i(l);}(e));},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=e.parentElement,r=n.querySelector("[aria-selected]");null!==r&&r.removeAttribute("aria-selected"),t.setAttribute("aria-selected",!0),n.setAttribute("aria-activedescendant",t.getAttribute("id")),scrollToElem(n,t);},u=function(e,t){var n=getClosestByClass(e,"selectbox-wrap");null!==n&&(t?n.classList.add("selectbox-wrap--isopen"):n.classList.remove("selectbox-wrap--isopen"));};},facetFilterGrp=function(){var e=document.querySelector(".facet-button");null!==e&&e.addEventListener("click",function(){var t="facet-search__filter--show",n="facet-button--is-open",r=e.querySelector(".facet-button__text-col"),l=document.querySelector(".facet-search__filter");event.preventDefault(),e.classList.contains(n)&&null!==l?(r.textContent="Show Filters",e.classList.remove(n),l.classList.remove(t)):(r.textContent="Hide Filters",e.classList.add(n),null!==l&&l.classList.add(t)),e.setAttribute("aria-label",r.textContent);}),document.querySelector("main").classList.contains("kss-main")&&customSelectBox();};!function(e,t,n){t.behaviors.customSelect={attach:function(t,r){var l="";selectedDdValues.length>
170&&(selectedDdValues.forEach(function(e,t){if(e.hasOwnProperty("dropdownId")&&e.hasOwnProperty("dropdownValue")){var n=Array.prototype.slice.call(document.querySelectorAll(".custom-select-box"));n.forEach(function(t,r){var l=new URLSearchParams(window.location.search);l.has("sort_by")?n[r].querySelectorAll(".custom-select-box__dropdown li").forEach(function(e){l.get("sort_by")==e.getAttribute("value")&&(n[r].querySelectorAll(".custom-select-box__selected-option .custom-select-box__default-option")[0].innerHTML=e.innerHTML);}):r===e.dropdownId&&(n[r].querySelectorAll(".custom-select-box__selected-option .custom-select-box__default-option")[0].innerHTML=e.dropdownValue);});}}),e(".ajax-progress").remove()),0==e(t).find(".affinity-filter").length?0==(l=e(n("customSelect",".views-exposed-form",t))).length&&(l=e(n("customSelect","form.views-exposed-form",document))):l=e(t),l.each(function(){customSelectBox();});}},facetFilterGrp();}(jQuery,Drupal,once);;
18var uniNav=function(e){if(null!==e){var n=e.querySelectorAll(".universal-navigation__button"),t=e.querySelectorAll(".universal-navigation__dropdown-list .universal-navigation__dropdown-item"),i=function(e,n,t){t?(n.classList.add("universal-navigation__menu--open"),e.setAttribute("aria-expanded","true")):(n.classList.remove("universal-navigation__menu--open"),e.setAttribute("aria-expanded","false"));};if(null!==n)for(var a=function(){var t=n[l],a=n[l].parentNode;t.addEventListener("click",function(n){n.preventDefault(),n.stopPropagation();var l=e.querySelectorAll(".universal-navigation__menu--open");if(a.classList.contains("universal-navigation__menu--open")?i(t,a,!1):i(t,a,!0),null!==l)for(var r=0;r<l.length;r++){var o=l[r].querySelector(".universal-navigation__button");i(o,l[r],!1);}}),t.addEventListener("keydown",function(e){keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY)||keyCheck(UP_ARROW_KEY)||keyCheck(DOWN_ARROW_KEY)?(e.preventDefault(),e.stopPropagation(),!a.classList.contains("universal-navigation__menu--open")||keyCheck(UP_ARROW_KEY)||keyCheck(DOWN_ARROW_KEY)?keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY)||keyCheck(DOWN_ARROW_KEY)?(i(t,a,!0),t.nextElementSibling.firstElementChild.firstElementChild.focus()):keyCheck(UP_ARROW_KEY)&&(i(t,a,!0),t.nextElementSibling.lastElementChild.firstElementChild.focus()):(e.preventDefault(),i(t,a,!1))):(keyCheck(TAB_KEY)||keyCheck(ESC_KEY))&&a.classList.contains("universal-navigation__menu--open")&&i(t,a,!1);});},l=0;l<n.length;l++)a();if(null!==t)for(var r=function(){var e=t[o],n=t[o].parentNode.parentNode,a=n.querySelector(".universal-navigation__button");e.addEventListener("keydown",function(t){if(keyCheck(UP_ARROW_KEY)||t.shiftKey&&keyCheck(TAB_KEY)){var l=t.target.parentNode.previousElementSibling;if(null!==l){if(!keyCheck(TAB_KEY)){var r=l.firstElementChild;null!==r&&r.focus();}}else if(keyCheck(TAB_KEY))i(a,n,!1);else{if(keyCheck(UP_ARROW_KEY))t.preventDefault(),t.target.parentNode.parentNode.lastElementChild.firstElementChild.focus();}}else if(keyCheck(DOWN_ARROW_KEY)||keyCheck(TAB_KEY)){var o=t.target.parentNode.nextElementSibling;if(null!==o){t.preventDefault();var s=o.firstElementChild;null!==s&&s.focus();}else if(keyCheck(TAB_KEY))i(a,n,!1);else{if(keyCheck(DOWN_ARROW_KEY))t.preventDefault(),t.target.parentNode.parentNode.firstElementChild.firstElementChild.focus();}}else{if(keyCheck(ESC_KEY)){var u=e.parentNode.parentNode;i(u.firstElementChild,u,!1),u.firstElementChild.focus();}}});},o=0;o<t.length;o++)r();e.addEventListener("focusout",function(n){var t=e.querySelectorAll(".universal-navigation__menu--open");if(null!==t)for(var a=0;a<t.length;a++)if(t[a]!==getClosestByClass(n.target,"universal-navigation__menu--open")){var l=t[a].querySelector(".universal-navigation__button");i(l,t[a],!1);}}),document.addEventListener("click",function(e){var t=getClosestByClass(e.target,"universal-navigation__dropdown-list"),a=e.target.classList.contains("universal-navigation__dropdown-link");if(null===t||a)for(var l=0;l<n.length;l++){var r=n[l].parentNode;r.classList.contains("universal-navigation__menu--open")&&i(n[l],r,!1);}});}};uniNav(document.querySelector(".kss-modifier__example .universal-navigation"));;
19function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0,n=function(){};return {s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]};},e:function(e){throw e;},f:n};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,i=!0,c=!1;return {s:function(){r=r.call(e);},n:function(){var e=r.next();return i=e.done,e;},e:function(e){c=!0,o=e;},f:function(){try{i||null==r.return||r.return();}finally{if(c)throw o;}}};}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return "Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0;}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a;}var toggleButton=function(e,t){e?t.classList.add("header-search__form__close-btn--s
19how"):t.classList.remove("header-search__form__close-btn--show");},headerSearchEvents=function(e){if(null!==e){var t=document.querySelector(".content_area__wrapper"),r=document.querySelector(".header__search-btn"),a=(e.querySelector(".header-search__form__close-btn"),e.querySelector(".header-search__form__input-field")),n=(e.querySelector(".header-search__form__error"),document.querySelector(".minimal-header")),o=e.querySelector("[type=submit]"),i=document.querySelector(".mega-menu"),c=document.querySelector(".minimal-header .search-sidebar-form");null!==c&&(c.style.display="none");var s=function(n){var o=document.body.classList,s=[".skip-link",".universal-navigation",".universal-navigation__signin .universal-navigation__menu-item__link",".header__logo-link",".header__menu-btn",".content_area__wrapper",".people-carousel"];n?(e.removeAttribute("aria-hidden"),e.classList.add("header-search--open"),r.classList.add("header__search-btn--open"),r.setAttribute("aria-label","Close Search"),r.setAttribute("aria-expanded",n),toBeHiddenInVO(s,n),a.focus(),o.add("header-search--is-open"),null!==i&&i.setAttribute("hidden","hidden"),null!==t&&t.classList.add("content_area__wrapper--overlay-active"),null!==c&&(c.style.display="block")):(e.setAttribute("aria-hidden",!0),e.classList.remove("header-search--open"),r.classList.remove("header__search-btn--open"),r.setAttribute("aria-label","Search"),r.setAttribute("aria-expanded",n),toBeHiddenInVO(s,n),o.remove("header-search--is-open"),null!==i&&i.removeAttribute("hidden","hidden"),null!==t&&t.classList.remove("content_area__wrapper--overlay-active"),null!==c&&(c.style.display="none"));};null!==r&&(fnMultiListener(r,"click keydown keyup",function(){"click"===event.type||"ke
19ydown"===event.type&&keyCheck(RETURN_KEY)||"keyup"===event.type&&keyCheck(SPACE_KEY)?(event.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}),e.classList.contains("header-search--open")?s(!1):s(!0)):"keydown"===event.type&&event.shiftKey&&keyCheck(TAB_KEY)&&e.classList.contains("header-search--open")&&null!==o&&(event.preventDefault(),o.focus());}),null!==o&&o.addEventListener("keydown",function(){(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&n)&&!event.shiftKey&&keyCheck(TAB_KEY)&&(event.preventDefault(),r.focus());})),e.addEventListener("keydown",function(){keyCheck(ESC_KEY)&&(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&n)&&(s(!1),r.focus());}),document.addEventListener("click",function(){if(window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches||window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&n){var t=getClosestByClass(event.target,"header__search-btn"),r=getClosestByClass(event.target,"header-search");null===t&&null===r&&e.classList.contains("header-search--open")&&s(!1);}},!0),window.addEventListener("resize",function(){window.matchMedia("(min-width: ".concat(DESKTOP_MIN,"px)")).matches&&!n?(e.classList.contains("header-search--open")&&s(!1),e.removeAttribute("aria-hidden")):/(android)/i.test(navigator.userAgent)||e.setAttribute("aria-hidden",!0);});}},headerSearchCommon=function(e,t){if(null!==e){var r=e.querySelector(".header-search__form__input-field"),a=e.querySelector(".header-search__form__error"),n=e.querySelector(".header-search__form__close-btn");if(!r)return;""!==r.value&&toggleButton(!0,n),fnMultiListener(r,"focus keyup",function(){""===r.value?toggleButton(!1,n):toggleButton(!0,n);}),r.addEventListener("invalid",function(){event.preventDefault(),a.classList.remove("hidden"),a.innerHTML=r.validationMessage,r.focus();}),r.addEventListener("input",function(e){r.validity.valid&&(a.innerHTML="",a.classList.add("hidden"));}),fnMultiListener(n,"click keydown",function(){if(("click"===event.type||"ke
19ydown"===event.type&&keyCheck(RETURN_KEY))&&""!==r.value&&n.classList.contains("header-search__form__close-btn--show")&&(event.preventDefault(),r.value="",toggleButton(!1,n),r.focus(),hasQueryParam(window.location.href,"keys"))){var e=removeQueryParam(window.location.href,"keys"),t=document.querySelector(".section-custom-on-page-search-block .section-heading__title ");if(t&&t.id)e=e+"#"+t.id;document.querySelector('form[data-drupal-selector="views-exposed-form-directory-biography-listing-view-solr-cod-full-bio-with-image"] .header-search__form__close-btn')&&(e=removeQueryParam(e,"sort_by")),window.location.href=e;}}),document.addEventListener("click",function(){a.classList.add("hidden");},!0),t(document).ajaxComplete(function(e,t,a){r.setAttribute("data-bef-auto-submit-exclude","");});}},accessibilityImprovement=function(){if(document.getElementsByClassName("accessibility-search").length>0){var e=document.querySelectorAll(".listing_plage_block__title.acc-search-heading")&&document.querySelectorAll(".listing_plage_block__title.acc-search-heading").length>0?document.querySelectorAll(".listing_plage_block__title.acc-search-heading"):document.querySelectorAll(".acc-search-heading");e.length>0&&e.forEach(function(e,t){var r=e.innerText,a=document.querySelectorAll(".accessibility-search .js-form-submit")[t],n=document.querySelectorAll(".accessibility-search .header-search__form__input-field")[t],o="Search ".concat(r);a&&a.setAttribute("aria-label",o),n&&n.setAttribute("aria-label",o);});}};!function(e,t,r){t.behaviors.headerSearch={attach:function(t,a){r("headerSearch","header .header-search",t).forEach(function(t){headerSearchEvents(t),headerSearchCommon(t,e);}),r("mainHeaderSearch","main .header-search",t).forEach(function(t){headerSearchCommon(t,e);}),accessibilityImprovement();var n=document.getElementsByClassName("header-search__form__input-field");if(n&&n.length>0){var o,i=_createForOfIteratorHelper(n);try{var c=function(){var e=o.value;e.addEventListener("focus",function(){e.removeAttribute("placeholder");}),e.addEventListener("blur",function(){e.setAttribute("placeholder","Search");});};for(i.s();!(o=i.n()).done;)c();}catch(e){i.e(e);}finally{i.f();}}}};}(jQuery,Drupal,once);;
20var leftNavInit=function(e){if(null!==e){addAttribute();var t=e.querySelectorAll(".left-nav__columns__menu__item__panel"),n=function(t,n){var l,i=t.firstElementChild,a=t.classList;null!==(l=e.querySelectorAll(".left-nav__columns__menu__item--open"))&&l.forEach(function(e){e.classList.remove("left-nav__columns__menu__item--open"),e.firstElementChild.setAttribute("aria-expanded","false");}),n&&(a.add("left-nav__columns__menu__item--open"),i.setAttribute("aria-expanded","true"));};null!==t&&(basicKeyDownListTraversalFn(e.querySelectorAll(".left-nav__columns__menu__item"),!1,!0),t.forEach(function(e){var t=e.parentElement,l=t.querySelector(".left-nav-expand-child-menu"),i=e.querySelector(".left-nav__columns__menu__item__panel__list__link--active");fnMultiListener(l,"click keydown",function(){("click"===event.type||keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY))&&(event.preventDefault(),t.classList.contains("left-nav__columns__menu__item--open")?n(t,!1):n(t,!0));}),i&&n(t,!0);}));}},addAttribute=function(){document.querySelectorAll("svg").forEach(function(e){(e.classList.contains("icon--chevron-down")||e.classList.contains("icon--inner-chevron-down"))&&(e.setAttribute("tabindex",0),e.setAttribute("role","button"),e.setAttribute("aria-expanded","true"));});};!function(e,t){e.behaviors.leftNav={attach:function(e,n){t("leftNav",".left-nav",e).forEach(function(e){leftNavInit(e);});}};}(Drupal,once);;
21var customLeftNavMobileInit=function(e){if(null!==e){var t=e.querySelectorAll(".custom-left-nav__select .custom-left-nav__columns__menu__item__panel"),n=e.querySelectorAll(".custom-left-nav__select .custom-left-inner-nav__columns__menu__item__panel"),l=e.querySelector(".custom-left-nav__select .custom-left-nav__columns__title"),_=function(t,n){var l,_=t.firstElementChild,c=t.classList;null!==(l=e.querySelectorAll(".custom-left-nav__select .custom-left-nav__columns__menu__item--open"))&&l.forEach(function(e){e.classList.remove("custom-left-nav__columns__menu__item--open"),e.firstElementChild.setAttribute("aria-expanded","fal
21se");}),n&&(c.add("custom-left-nav__columns__menu__item--open"),_.setAttribute("aria-expanded","true"));},c=function(t,n){var l,_=t.firstElementChild,c=t.classList;null!==(l=e.querySelectorAll(".custom-left-nav__select .custom-left-inner-nav__columns__menu__item--open"))&&l.forEach(function(e){e.classList.remove("custom-left-inner-nav__columns__menu__item--open"),e.firstElementChild.setAttribute("aria-expanded","false");}),n&&(c.add("custom-left-inner-nav__columns__menu__item--open"),_.setAttribute("aria-expanded","true"));};null!==t&&(basicKeyDownListTraversalFn(e.querySelectorAll(".custom-left-nav__select .custom-left-nav__columns__menu__item"),!1,!0),t.forEach(function(e){var t=e.parentElement,n=t.querySelector(".custom-left-nav__select .custom-left-nav-expand-child-menu"),l=t.querySelector(".custom-left-nav__select .custom-left-inner-nav__columns__menu__item__panel__list__link--active");n&&fnMultiListener(n,"click keydown",function(){("click"===event.type||keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY))&&(event.preventDefault(),t.classList.contains("custom-left-nav__columns__menu__item--open")?_(t,!1):_(t,!0));}),l&&_(t,!0);})),null!==n&&(basicKeyDownListTraversalFn(e.querySelectorAll(".custom-left-nav__select .custom-left-inner-nav__columns__menu__item"),!1,!0),n.forEac
21h(function(e){var t=e.parentElement,n=t.querySelector(".custom-left-nav__select .custom-left-inner-nav-expand-child-menu"),l=e.querySelector(".custom-left-nav__select .custom-left-inner-nav__columns__menu__item__panel__list__link--active"),_=t.querySelector(".custom-left-nav__select .custom-left-inner-nav__columns__menu__item__panel__list__link--active");n&&fnMultiListener(n,"click keydown",function(){("click"===event.type||keyCheck(RETURN_KEY)||keyCheck(SPACE_KEY))&&(event.preventDefault(),t.classList.contains("custom-left-inner-nav__columns__menu__item--open")?c(t,!1):c(t,!0));}),l&&c(t,!0),_&&c(t,!0);})),l.addEventListener("click",function(){var t=e.querySelector(".custom-left-nav__select .custom-left-nav__columns__title .icon"),n=e.querySelector(".custom-left-nav__select .custom-left-nav__columns__menu"),l=e.querySelector(".custom-left-nav__select .custom-left-nav__columns__title");n&&n.classList.contains("mobile--hide")?(n.classList.remove("mobile--hide"),t.classList.add("icon--chevron-down-open"),l.classList.add("dd-expand"),l.style.borderBottom="none"):(n.classList.add("mobile--hide"),t.classList.remove("icon--chevron-down-open"),l.classList.remove("dd-expand"),l.style.borderBottom="");}),l.addEventListener("keypress",function(t){if("Enter"===t.key){var n=e.querySelector(".custom-left-nav__select .custom-left-nav__columns__title .icon"),l=e.querySelector(".custom-left-nav__select .custom-left-nav__columns__menu"),_=e.querySelector(".custom-left-nav__select .custom-left-nav__columns__title");l&&l.classList.contains("mobile--hide")?(l.classList.remove("mobile--hide"),n.classList.add("icon--chevron-down-open"),_.classList.add("dd-expand"),_.style.borderBottom="none"):(l.classList.add("mobile--hide"),n.classList.remove("icon--chevron-down-open"),_.classList.remove("dd-expand"),_.style.borderBottom="");}});(s=e.querySelector(".custom-left-nav__select .js-active .active__span"))&&(e.querySelector(".custom-left-nav__select .custom-left-nav__columns__title .custom-left-nav__columns__title__span").innerHTML=s.innerHTML);}var s;};!function(e,t,n){t.behaviors.customLeftNavMobile={attach:function(e,t){n("customLeftNavMobile",".custom-left-nav__select",e).forEach(function(e){customLeftNavMobileInit(e);});}};}(jQuery,Drupal,once);;
22var facetsFilterToggle=function(e){var t=e.querySelector(".facet-block__filter-btn"),a=e.querySelectorAll(".facet-block__title__btn"),n=e.querySelector(".js-facet-block__title");e.querySelector(".kss-main .facets-widget-datepicker .base_select");null!==t&&fnMultiListener(t,"click keydown keyup",function(){if(("click"===event.type||"ke
22ydown"===event.type&&keyCheck(RETURN_KEY)||"keyup"===event.type&&keyCheck(SPACE_KEY))&&window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches){if(event.preventDefault(),null!==n){var a=n.parentElement.parentElement.classList.contains("initially-open"),c=n.parentElement.parentElement;a?c.classList.add("facet-block--lastname--open"):c.classList.remove("initially-open");}e.classList.contains("facet-block__wrap--open")?(e.classList.remove("facet-block__wrap--open"),t.setAttribute("aria-expanded",!1)):(e.classList.add("facet-block__wrap--open"),t.setAttribute("aria-expanded",!0));}}),null!==a&&a.forEach(function(e){fnMultiListener(e,"click keydown keyup",function(){if(("click"===event.type||"keydown"===event.type&&keyCheck(RETURN_KEY)||"keyup"===event.type&&keyCheck(SPACE_KEY))&&window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches){var t=getClosestByClass(e,"facet-block--checkbox");event.preventDefault(),t&&(t.classList.contains("facet-block--checkbox--open")?(t.classList.remove("facet-block--checkbox--open"),e.setAttribute("aria-expanded",!1)):(t.classList.add("facet-block--checkbox--open"),e.setAttribute("aria-expanded",!0)));}});}),null!==n&&fnMultiListener(n,"click keydown keyup",function(){if(("click"===event.type||"ke
22ydown"===event.type&&keyCheck(RETURN_KEY)||"keyup"===event.type&&keyCheck(SPACE_KEY))&&window.matchMedia("(max-width: ".concat(DESKTOP_MIN-1,"px)")).matches){var e=getClosestByClass(n,"facet-block--lastname");event.preventDefault(),n&&(e.classList.contains("facet-block--lastname--open")?(e.classList.remove("facet-block--lastname--open"),n.setAttribute("aria-expanded",!1)):(e.classList.add("facet-block--lastname--open"),n.setAttribute("aria-expanded",!0)));}});},searchHighlight=function(e){var t=e.querySelector(".facet-item__value"),a=event.target.value,n=t.innerHTML.replace(/(<strong class="highlight">|<\/strong>)/gim,"");if(a.length>=3){var c=new RegExp(a.replace(/([.+*?:\[\](){}|\\])/g,"\\$1"),"gim");t.innerHTML=n.replace(c,'<strong class="highlight">'.concat(n.match(c),"</strong>"));}else null!==t.querySelector(".highlight")&&(t.innerHTML=n);},facetCBoxToggle=function(e){null!==e&&fnMultiListener(e,"click keydown keyup",function(){if("click"===event.type||"keydown"===event.type&&keyCheck(RETURN_KEY)||"keyup"===event.type&&keyCheck(SPACE_KEY)){var t=e.parentElement;event.preventDefault(),t.classList.contains("facet-item--open")?(t.classList.remove("facet-item--open"),e.setAttribute("aria-expanded",!1)):(t.classList.add("facet-item--open"),e.setAttribute("aria-expanded",!0));}else "keydown"===event.type&&keyCheck(SPACE_KEY)&&event.preventDefault();});},parentCheckBoxToggle=function(e){null!==e&&e.forEach(function(e){var t=e.parentElement.querySelectorAll(".facet-item--expanded .facet-item input[type=checkbox]");fnMultiListener(e,"change",function(){e.checked?t.forEach(function(e){e.checked=!0;}):t.forEach(function(e){e.checked=!1;});}),t.forEach(function(a){fnMultiListener(a,"change",function(){var n=a.parentElement.parentElement.querySelectorAll(":checked").length;t.length===n?(e.indeterminate=!1,e.checked=!0):0===n?(e.indeterminate=!1,e.checked=!1):t.length>n&&(e.indeterminate=!0);});});});},checkBoxLabels=document.querySelectorAll(".kss-modifier__example .facet-item--expanded > label"),parentCheckBoxes=document.querySelectorAll(".kss-modifier__example .facet-item--expanded > input[type=checkbox]");
22null!==checkBoxLabels&&checkBoxLabels.forEach(function(e){facetCBoxToggle(e);});var indeterminateCBoxInit=function(e){e.forEach(function(t){var a=t.parentElement.parentElement.querySelectorAll(":checked").length,n=getClosestByClass(t,"facet-item--expanded").querySelector("input[type=checkbox]");e.length===a?(n.indeterminate=!1,n.checked=!0):0===a?(n.indeterminate=!1,n.checked=!1):e.length>a&&(n.indeterminate=!0);});};indeterminateCBoxInit(document.querySelectorAll(".kss-modifier__example .facet-item--expanded .facet-item input[type=checkbox]")),parentCheckBoxToggle(parentCheckBoxes),function(e,t){e.behaviors.facetsFilterToggle={attach:function(e){t("facetsFilter",".facet-block__wrap",e).forEach(function(e){facetsFilterToggle(e);});}};}(Drupal,once),function(e,t,a,n){"use strict";var c="parent-item-matched",i="search-custom-show";function l(e,t,a,n){t.find("ul").eq(0).children().each(function(){s(e(this).children(":nth-child(3)").find(".facet-item__value").text(),a)&&!e(this).children(":nth-child(1)").prop("disabled")?(e(this).show(),e(this).find(".facet-item").show(),e(this).find("input:disabled").parent().hide(),searchHighlight(e(this)[0]),e.each(n,function(e,t){t.show(),t.addClass(c),t.hasClass("facet-item--expanded")&&t.addClass("facet-item--open");}),n=[]):(e(this).hide(),e(this).removeClass("facet-item--open"+c),e(this).hasClass("facet-item--expanded")&&(function(e,t,a){var n=!1;return t.find(".facet-item__value").each(function(){if(s(e(this).text(),a))return n=!0,!1;}),n;}(e,e(this),a)&&n.push(e(this)),l(e,e(this),a,n)));});}function s(e,t){return e.search(new RegExp(t.replace(/([.+*?:\[\](){}|\\])/g,"\\$1"),"gim"))>=0;}function r(e,t,a,n,l){a.children("."+c).length>n?(l.text(t.attr("data-drupal-view-more")).removeClass("open").attr("aria-expanded","false"),a.children("."+c+":gt("+(n-1)+")").addClass(i),a.css("max-height","200px")):(a.children("."+c).removeClass(i),t.hasClass("search-valid")?l.hide():l.show(),l.hasClass("open")?l.text(t.attr("data-drupal-view-less")).attr("aria-expanded","true"):l.text(t.attr("data-drupal-view-more")).attr("aria-expanded","false"));}t.behaviors.facetsSearchTerm={attach:function(t){e(n("searchTermFacet",".input-facet-search-term")).on("input",function(){var t=e(this).attr("data-drupal-soft-limit"),a=e(this).closest(".facets-widget-checkbox").find(".facets-soft-limit-link"),n=e(this).attr("data-drupal-facet-id"),o=e(this).val().trim(),d=e("."+n+"-facet-items .facet-item"),h=e("."+n+"-facet-items").find(".no-terms-found"),f=e("."+n+"-facet-items>ul");o&&o.length>=3?(e(this).addClass("search-valid"),function(e,t,a){t.each(function(){var t=[],n=e(this);s(n.children(":nth-child(3)").find(".facet-item__value").text(),a)&&!n.children(":nth-child(1)").prop("disabled")?(n.show(),n.addClass(c),n.find(".facet-item").show(),n.find("input:disabled").parent().hide(),searchHighlight(n[0])):(n.hide(),n.removeClass("facet-item--open "+c),n.hasClass("facet-item--expanded")&&(t.push(n),l(e,n,a,t)));});}(e,f.children(),o),r(e,e(this),f,t,a)):(e(this).removeClass("search-valid"),d.show(),f.children().removeClass(c+" "+i+" facet-item--open"),r(e,e(this),f,t,a),e("ul.topic-facet-list li.facet-item--expanded.facet-item--active-trail").addClass("facet-item--open"),f.hasClass("topic-facet-list")&&f.children().hasClass("facet-item--active-trail")&&(a.addClass("open").text(e(this).attr("data-drupal-view-less")).attr("aria-expanded","true"),f.css("max-height","none"),f.children("li:gt("+(t-1)+")").removeClass("custom-show search-custom-show")),d.each(function(){searchHighlight(e(this)[0]);})),d.length===d.not(":visible").length?h.removeClass(i):h.addClass(i);});}},t.behaviors.lastnamefilter={attach:function(e,t){var a=document.querySelectorAll(".alpha-key-wrapper .facets-checkbox");a.forEach(function(e){e.addEventListener("click",function(){a.forEach(function(t){t!==e&&(t.checked=!1,t.parentNode.classList.remove("active"));}),e.parentNode.classList.toggle("active",e.checked);}),e.addEventListener("keypress",function(t){"Enter"===t.key&&e.click();});var t=e.parentNode;if(t){t.addEventListener("keypress",function(t){"Enter"===t.key&&(t.preventDefault(),e.click());});var n=t.getElementsByTagName("label")[0],c=t.getElementsByClassName("facet-item__value")[0].innerHTML;setAttributes(n,{"aria-label":"filter by last name starting with letter ".concat(c),role:"button"});}});}},t.behaviors.directoryStateAndSpecialtyFacet={attach:function(t,a){e(n("hide-
22disabled-facets","body")).length&&e(document).ajaxStop(function(e,t,a){document.querySelectorAll(".block-inline-blockdirectory-biography-list-block .facet-block--checkbox").forEach(function(e){var t=0,a=0;if(e.querySelectorAll(".facet-block--checkbox .facets-checkbox").forEach(function(e){e.disabled&&(e.parentNode.style.display="none",a++),t++;}),t-a<5){var n=e.querySelector(".facets-soft-limit-link");n&&(n.style.display="none");}t==a&&(e.style.display="none");});});}};}(jQuery,Drupal,drupalSettings,once);;
23function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r={}.toString.call(t).slice(8,-1);return "Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0;}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t);}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t);}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o;}!function(t,e){function r(t){if(t){var e=document.querySelector(".publication-toc"),r=(null==e?void 0:e.offsetHeight)||75,o=getComputedStyle(document.documentElement).getPropertyValue("--drupal-displace-offset-top").trim(),a=(o?parseInt(o,10):0)+(o?25:0);o||(a=50);var n=-(r+a),i=window.matchMedia("(prefers-reduced-motion: reduce)").matches;requestAnimationFrame(function(){var e=t.getBoundingClientRect().top+window.pageYOffset+n;window.scrollTo({top:e,behavior:i?"auto":"smooth"}),t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0});});}}e.behaviors.footnoteAction={attach:function(t,e){var o=_toConsumableArray(document.getElementsByClassName("see-footnote")),a=_toConsumableArray(document.getElementsByClassName("back-to-top"));o.length>0&&o.forEach(function(t){var e="onTouchstart" in window||navigator.msMaxTouchPoints;t.addEventListener(e?"touchstart":"click",function(o){e&&o.preventDefault();var a=t.id,n=t.getAttribute("href"),i=document.querySelector(".footnote".concat(n));if(i){var u=i.querySelector("a");u&&(u.setAttribute("href","#".concat(a)),i.setAttribute("tabindex","0"),u.setAttribute("aria-live","polite"),u.setAttribute("aria-atomic","true"),r(i));}});}),a.length>0&&a.forEach(function(t){t.addEventListener("click",function(e){e.preventDefault();var o=t.getAttribute("href");if(o&&o.startsWith("#")){var a=o.slice(1),n=document.getElementById(a);n&&r(n);}});});}};}(jQuery,Drupal);;
24let CODAccordionHeadingClickEvents=(item)=>{setAccessibility(item);CODhandleResize(item);fnMultiListener(item,"click keydown",function(event){if(event.type==="click"||(event.type==="keydown"&&(keyCheck(SPACE_KEY)||keyCheck(RETURN_KEY)))){event.preventDefault();item.parentNode.classList.toggle('cod-full-bio-with-image__detailswrapper--expanded');setAccessibility(item);}});};((Drupal,once)=>{Drupal.behaviors.CODaccordionHeading={attach:function(context,settings){once('CODaccordionHeading','.cod-full-bio-with-image__detailAccordian',context).forEach((element)=>{CODAccordionHeadingClickEvents(element);});}};})(Drupal,once);const setAccessibility=(item)=>{const parentClassList=item.parentNode.classList;if(isMobileAndExpanded(parentClassList)){setAttributes(item.nextElementSibling,{'aria-expanded':true,'tabindex':0});item.setAttribute('aria-expanded',true);}else if(window.matchMedia(`(max-width: ${DESKTOP_MIN-1}px)`).matches){setAttributes(item.nextElementSibling,{'aria-expanded':false,'tabindex':-1});setAttributes(item,{'aria-expanded':false,'tabindex':0});}else{removeAttributes(item.nextElementSibling,['tabindex','aria-expanded']);removeAttributes(item,['tabindex','aria-expanded']);}};function isMobileAndExpanded(parentClassList){return (parentClassList.contains('cod-full-bio-with-image__detailswrapper--expanded')&&window.matchMedia(`(max-width: ${DESKTOP_MIN-1}px)`).matches);}function CODhandleResize(item){window.addEventListener('resize',()=>{setAccessibility(item);});};
25function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t;}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t;},_typeof(t);}function _createForOfIteratorHelper(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
25if(!n){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return {s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]};},e:function(t){throw t;},f:o};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var r,s=!0,a=!1;return {s:function(){n=n.call(t);},n:function(){var t=n.next();return s=t.done,t;},e:function(t){a=!0,r=t;},f:function(){try{s||null==n.return||n.return();}finally{if(a)throw r;}}};}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n={}.toString.call(t).slice(8,-1);return "Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0;}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i;}var carousel=function(t,e){var n={touchstartX:0,touchendX:0},i=-1;n.init=function(){if(this.options=e,this.disableEvent=!1,this.index=0,this.autoplayDelay=this.options.delay+this.options.speed,this.transitionDuration=n.isWebkit("transitionDuration"),this.transform=n.isWebkit("transform"),this.timer,this.container=t,this.wrapper=this.container.querySelector(".".concat(this.options.class.wrapper)),this.navigationbuttons=this.container.querySelectorAll(".".concat(this.options.class.navigationbuttons)),this.buttons=this.container.querySelectorAll(".".concat(this.options.class.buttons)),this.slides=this.container.querySelectorAll(".".concat(this.options.class.slide)),this.pagination=this.container.querySelector(".".concat(this.options.class.pagination)),this.infoSection=this.container.querySelector(".".concat(this.options.class.infoSection)),this.blockWrapper=document.querySelector(".".concat(this.options.class.blockWrapper)),this.slides.length>1)n.setWidth(),n.moveWrapper(this.slides),this.pagination&&n.createPagination(),this.options.autoplay&&n.autoplay(),2==this.buttons.length&&(n.prevBtn(),n.nextBtn()),this.wrapper&&(n.mobiletouchStart(),n.mobiletouchEnd()),n.resize(),n.tabOrderNavigation();else{var i,o=_createForOfIteratorHelper(this.navigationbuttons);try{for(o.s();!(i=o.n()).done;)i.value.classList.add("carousel__btn-hidden");}catch(t){o.e(t);}finally{o.f();}}},n.resize=function(){var t=this;window.addEventListener("resize",function(){n.setWidth(),n.moveWrapper(t.slides),n.setTransition(0,!1),initializeCarousel();});},n.createPagination=function(){for(var t,e=document.createDocumentFragment(),o=0;o<this.slides.length;o++){var r=o+1;(t=document.createElement("button")).tabIndex=0,t.role="none",t.innerHTML=t.innerHTML+'<sp
25an class="carousel__btn-hidden">Button dots</span>',t.classList.add(this.options.class.paginationItem),t.setAttribute("aria-label","Item "+r+" of "+this.slides.length),0==o&&(t.classList.add("active"),t.setAttribute("aria-label","Current Item "+(this.index+1)+" of "+this.slides.length),i=this.index+1),e.appendChild(t);}this.pagination.appendChild(e),n.bullets();},n.bullets=function(){for(var t=this,e=this.pagination.querySelectorAll(".".concat(this.options.class.paginationItem)),i=function(i){e[i].addEventListener("click",function(){t.disableEvent||(t.index=i-1),n.buttonsAction();});},o=0;o<e.length;o++)i(o);},n.highlightBullet=function(){var t=this.pagination.querySelector(".active");t.classList.remove("active"),t.setAttribute("aria-label","Item "+i+" of "+this.slides.length);var e=this.pagination.querySelectorAll(".".concat(this.options.class.paginationItem)),o=n.updateIndex(this.index);e[o].classList.add("active"),i=o+1,e[o].setAttribute("aria-label","Current Item "+(o+1)+" of "+e.length);},n.prevBtn=function(){var t=this;this.buttons[0].addEventListener("click",function(){n.buttonsAction("left");}),this.buttons[0].addEventListener("keydown",function(e){if(keyCheck(LEFT_ARROW_KEY))n.buttonsAction("left");else{if(!e.shiftKey&&keyCheck(TAB_KEY)){var i=t.slides[t.index].querySelector(".".concat(t.options.class.information)),o=t.slides[t.index].querySelector(".".concat(t.options.class.ctaLink));null!=i?(e.preventDefault(),i.focus()):null!=o&&(e.preventDefault(),o.focus());}}});},n.nextBtn=function(){var t=this;this.buttons[1].addEventListener("click",function(){n.buttonsAction();}),this.buttons[1].addEventListener("keydown",function(e){if(keyCheck(RIGHT_ARROW_KEY))n.buttonsAction();else{if(e.shiftKey&&keyCheck(TAB_KEY)){var i=t.slides[t.index].querySelector(".".concat(t.options.class.information)),o=t.slides[t.index].querySelector(".".concat(t.options.class.ctaLink));null!=o?(e.preventDefault(),o.focus()):null!=i&&(e.preventDefault(),i.focus());}}});},n.tabOrderNavigation=function(){var t,e=this,n=_createForOfIteratorHelper(this.slides);try{var i=function(){var n=t.value;if(void 0!==n){var i=n.querySelector(".".concat(e.options.class.information)),o=n.querySelector(".".concat(e.options.class.ctaLink));null!=i&&i.addEventListener("keydown",function(t){t.shiftKey&&keyCheck(TAB_KEY)?(t.preventDefault(),e.buttons[0].focus()):keyCheck(TAB_KEY)&&(null!=o?(t.preventDefault(),o.focus()):(t.preventDefault(),e.buttons[1].focus()));}),null!=o&&o.addEventListener("keydown",function(t){t.shiftKey&&keyCheck(TAB_KEY)?null!=i?(t.preventDefault(),i.focus()):(t.preventDefault(),e.buttons[0].focus()):keyCheck(TAB_KEY)&&(t.preventDefault(),e.buttons[1].focus());});}};for(n.s();!(t=n.n()).done;)i();}catch(t){n.e(t);}finally{n.f();}},n.buttonsAction=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right";this.disableEvent||(n.moveSlider(t),this.options.autoplay&&(n.resetAutoplay(),n.autoplay()));},n.moveSlider=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right";"right"==t&&this.index<this.slides.length?this.index++:this.index--,this.pagination&&n.highlightBullet(),this.index=n.updateIndex(this.index),n.setTransition(this.options.speed),n.moveWrapper(this.slides,n.index,t);},n.setTransition=function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.wrapper.style[this.transitionDuration]=t+"ms",n&&Drupal.announce("Current item "+(this.index+1)+" of "+this.slides.length);var i=this.slides[this.index];if(void 0!==i){var o=i.querySelector(".".concat(this.options.class.information));focusAfterTransition(this.wrapper,function(){setTimeout(function(){o.focus(),e.infoSection.scrollLeft=0;},1e3);});}},n.moveWrapper=function(t,e,n){var i=t.length,o=e||0;t.forEach(function(t){t.parentNode.classList.remove("prev"),t.parentNode.classList.remove("active"),t.parentNode.classList.remove("left"),t.parentNode.classList.remove("right"),t.parentNode.classList.remove("undefined");}),t.forEach(function(t,e){e==o-1?(t.parentNode.classList.add("prev"),t.parentNode.classList.add(n)):e==o?(t.parentNode.classList.add("active"),t.parentNode.classList.add(n)):0==o&&e==i-1&&(t.parentNode.classList.add("prev"),t.parentNode.classList.add(n));});}
25,n.setWidth=function(){for(var t=0,e=this.slides,n=0;n<e.length;n++)e[n].style.width=this.container.offsetWidth+"px",t+=e[n].offsetWidth;this.wrapper.style.width=t+"px";},n.createClones=function(){var t=this.wrapper.firstElementChild.cloneNode(!0),e=this.wrapper.lastElementChild.cloneNode(!0),n=this.slides.length;this.wrapper.appendChild(t),this.wrapper.insertBefore(e,this.slides[n]);},n.updateIndex=function(t){return t>=this.slides.length&&(t=0),t<0&&(t=this.slides.length-1),t;},n.isWebkit=function(t){return "string"==typeof document.documentElement.style[t]?t:(t=n.capitalizeFirstLetter(t),t="webkit".concat(t));},n.extendDefaults=function(t,e){var n,i;if(null!=e&&"undefined"!=e)for(n in e)if("object"===_typeof(e[n]))for(i in e[n])t[n][i]=e[n][i];else t[n]=e[n];return t;},n.handleGesture=function(){var t=Math.abs(n.touchstartX-n.touchendX);n.touchstartX>=n.touchendX&&t>150&&n.buttonsAction("right"),n.touchstartX<=n.touchendX&&t>150&&n.buttonsAction("left");},n.mobiletouchStart=function(){this.wrapper.addEventListener("touchstart",function(t){n.touchstartX=t.changedTouches[0].screenX;},{passive:!0});},n.mobiletouchEnd=function(){this.wrapper.addEventListener("touchend",function(t){n.touchendX=t.changedTouches[0].screenX,n.handleGesture();},!1);},n.init();},wrapperEL=document.querySelectorAll(".carousel__content-wrapper"),initializeCarousel=function(){wrapperEL.forEach(function(t){var e=t.querySelectorAll(".carousel__card-container");if(e&&!(e.length<1)){var n,i=[];e.forEach(function(t){i.push(t.offsetHeight);}),n=Math.max.apply(Math,i);var o,r=_createForOfIteratorHelper(t.children);try{for(r.s();!(o=r.n()).done;)o.value.style.height="".concat(n,"px");}catch(t){r.e(t);}finally{r.f();}t.style.minHeight="".concat(n,"px");}});};document.addEventListener("DOMContentLoaded",function(){setTimeout(function(){initializeCarousel();},2e3);}),function(t,e,n,i){e.behaviors.Carousel={attach:function(e,n){t(i("Carousel","html")).each(function(){var t,e={speed:600,delay:6e3,autoplay:!1,class:{wrapper:"carousel__content-wrapper",slide:"carousel__card-details",activeClass:"carousel__active-slide",information:"carousel__card-information",buttons:"carousel__btn",navigationbuttons:"carousel__navigation-buttons",pagination:"carousel__dots-navigation",paginationItem:"carousel__dots-navigation__dots",infoSection:"carousel__profile-info",blockWrapper:"block-inline-blockcarousel-block",ctaLink:"carousel__read-more__url"}},n=_createForOfIteratorHelper(document.querySelectorAll(".carousel-container"));try{for(n.s();!(t=n.n()).done;){var i=t.value;carousel(i,e);}}catch(t){n.e(t);}finally{n.f();}});}};}(jQuery,Drupal,drupalSettings,once);;
26var allHeroWrapper=document.querySelectorAll(".feature-hero-wrapper");allHeroWrapper&&allHeroWrapper.length>0&&allHeroWrapper.forEach(function(e){document.addEventListener("DOMContentLoaded",function(){loadFeatureHeroBlock(e);});});var loadFeatureHeroBlock=function(e){var l=e.querySelector("#media-video"),t=e.querySelector("#media-image"),o=e.querySelector("#controls"),r=e.querySelector("#playBtn"),a=e.querySelector("#pauseBtn"),n=window.innerWidth<=767||/iPad|Android/.test(navigator.userAgent)&&!/Mobile/.test(navigator.userAgent);if(l){var s=l.querySelectorAll("source"),i=!1;s.forEach(function(e){e.getAttribute("src")&&(i=!0);}),i?(l.classList.remove("no-valid-source"),n||(l.muted=!0,l.setAttribute("autoplay","true"),l.setAttribute("playsinline","true"),l.play().catch(function(e){console.error("Autoplay failed:",e);}),l.style.background="none",l.style.opacity="1",l.style.display="block"),t&&!n?t.style.display="none":(t.style.display="block",l.style.display="none"),o&&!n&&(o.style.display="flex"),r&&a&&(r.addEventListener("click",function(){l.play(),r.style.display="none",a.style.display="flex",a.focus();}),a.addEventListener("click",function(){l.pause(),r.style.display="flex",a.style.display="none",r.focus();}),r.style.display="none",a.style.display="flex",a.blur())):(l.classList.add("no-valid-source"),t&&(t.style.display="block"),o&&(o.style.display="none"));}e&&null===t&&null===l&&(e.style.backgroundColor="#404145");};;
27var truncateDescription=function(e,t){if(e.length>t){var n=e.substring(0,t-3),i=n.lastIndexOf(" ");i>0&&(n=n.substring(0,i));return '<div class="truncate-container" aria-live="assertive"><span class="truncated">'.concat(n+"..."," ").concat('<a href="#" class="more-link" aria-label="show more text">More</a>','</span><span class="full-description" style="display:none;">').concat(e," ").concat('<a href="#" class="less-link" aria-label="show less text">Less</a>',"</span></div>");}return e;},handleDescriptionClick=function(e){e.preventDefault();var t=e.target;if(t.classList.contains("more-link")){var n=t.closest(".description-container"),i=n.querySelector(".truncated"),s=n.querySelector(".full-description"),r=s.querySelector(".less-link");s&&i&&(i.style.display="none",s.style.display="inline",i.setAttribute("tabindex","-1"),s.setAttribute("tabindex","0"),setTimeout(function(){r.setAttribute("tabindex","0"),r.style.display="inline",r.focu
27s();},100));}else{if(t.classList.contains("less-link")){var a=t.closest(".description-container"),l=a.querySelector(".truncated"),c=a.querySelector(".full-description"),o=l.querySelector(".more-link");c&&l&&(l.style.display="inline",c.style.display="none",c.setAttribute("tabindex","-1"),l.setAttribute("tabindex","0"),setTimeout(function(){o.setAttribute("tabindex","0"),o.style.display="inline",o.focus();},100));}}},descriptionContainers=function(e){var t=e.textContent.trim(),n=truncateDescription(t,250);e.innerHTML=n,e.addEventListener("click",handleDescriptionClick);};!function(e,t,n){t.behaviors.facetedFilterEventDescription={attach:function(e,t){n("EventDescriptionContainer",".flexible-display .description-container",e).forEach(function(e){descriptionContainers(e);});}};}(jQuery,Drupal,once);;
28(function($,Drupal,once){'use strict';Drupal.behaviors.improved_multi_select={detach:function(context,settings,trigger){const options=settings.improved_multi_select;remoteListeners(context);options.selectors.forEach(function(selector){$(once('improvedselect',selector,context)).each(function(){let $select=$(this);let imsSelectId=$select.attr('id');$('#improvedselect-'+imsSelectId).remove();$('#'+imsSelectId+'-cloned').remove();});});},attach:function(context,settings){$(document).ready(function(){let searchBox=$('input.improvedselect_filter');if(searchBox&&settings.improved_multi_select&&settings.improved_multi_select.placeholder_text)searchBox.attr("placeholder",settings.improved_multi_select.placeholder_text);});if(!settings.improved_multi_select||!settings.improved_multi_select.selectors){$.event.trigger('improvedMultiSelectAttached');return;}const options=settings.improved_multi_select;options.selectors.forEach(function(selector){improvedselectAttach(selector,options,context);});remoteListeners(context);$('.improvedselect_filter',context).bind('input',function(){improvedselectFilter($(this).attr('sid'),options,context);});$('.improvedselect .add',context).click(function(){let sid=$(this).attr('sid');$('#improvedselect-'+sid+' .improvedselect_all .selected',context).each(function(){let $opt=$(this);$opt.removeClass('selected');improvedselectUpdateGroupVisibility($opt,1);$('#improvedselect-'+sid+' .improvedselect_sel',context).append($opt);});improvedselectUpdate(sid,context);});$('.improvedselect .del',context).click(function(){let sid=$(this).attr('sid');$('#improvedselect-'+sid+' .improvedselect_sel .selected',context).each(function(){let $opt=$(this);$opt.removeClass('selected');$('#improvedselect-'+sid+' .improvedselect_all',context).append($opt);improvedselectUpdateGroupVisibility($opt,0);});$('#improvedselect-'+sid+' .improvedselect_filter',context).attr('prev','');improvedselectFilter(sid,options,context);improvedselectUpdate(sid,context);});$('.improvedselect .add_all',context).click(function(){let sid=$(this).attr('sid');$('#improvedselect-'+sid+' .improvedselect_all li[isgroup!=isgroup]',context).each(function(){let $opt=$(this);if($opt.css('display')!=='none'){$opt.removeClass('selected');improvedselectUpdateGroupVisibility($opt,1);$('#improvedselect-'+sid+' .improvedselect_sel',context).append($opt);}});improvedselectUpdate(sid,context);});$('.improvedselect .del_all',context).click(function(){let sid=$(this).attr('sid');$('#improvedselect-'+sid+' .improvedselect_sel li',context).each(function(){let $opt=$(this);$opt.removeClass('selected');$('#improvedselect-'+sid+' .improvedselect_all',context).append($opt);improvedselectUpdateGroupVisibility($opt,0);});$('#improvedselect-'+sid+' .improvedselect_filter',context).attr('prev','');improvedselectFilter(sid,options,context);improvedselectUpdate(sid,context);});$('.improvedselect .move_up',context).click(function(){let sid=$(this).attr('sid');$('#improvedselect-'+sid+' .improvedselect_sel .selected',context).each(function(){let $selected=$(this);$selected.prev(':not(.selected)').before($selected);});improvedselectUpdate(sid,context);});$('.improvedselect .move_down',context).click(function(){let sid=$(this).attr('sid');$($('#improvedselect-'+sid+' .improvedselect_sel .selected',context).get().reverse()).each(function(){let $selected=$(this);$selected.next(':not(.selected)').after($selected);});improvedselectUpdate(sid,context);});$.event.trigger('improvedMultiSelectInitialized',[$(this)]);$.event.trigger('improvedMultiSelectAttached');}};function remoteListeners(context){$('.improvedselect_filter',context).off('input');$('.improvedselect .add',context).off('click');$('.improvedselect .del',context).off('click');$('.improvedselect .add_all',context).off('click');$('.improvedselect .del_all',context).off('click');$('.improvedselect .move_up',context).off('click');$('.improvedselect .move_down',context).off('click');}function improvedselectFilter(sid,options,context){let $filter=$('#improvedselect-'+sid+' .improvedselect_filter',context);let $selectedGroup=$('#improvedselect-'+sid+' .improvedselect_tabs li.selected:not(.all) a',context);let text=$filter.val();let pattern;let regex;let words;if(text.length&&text!==$filter.attr('prev')){$filter.attr('prev',text);if(!options.js_regex)text=text.replace(/[[\]^$.\\()|?*+]/g,"\\$&").replace(/{([0-9]+,?[0-9]*)}/g,'\\{$1\\}');switch(options.filtertype){case 'partial':default:pattern=text;break;case 'exact':pattern='^'+text+'$';break;case 'anywords':{words=text.split(' ');pattern='';for(let i=0;i<words.length;i++)if(words[i])pattern+=(pattern)?'|\\b'+words[i]+'\\b':'\\b'+words[i]+'\\b';break;}case 'anywords_partial':{words=text.split(' ');pattern='';for(let i=0;i<words.length;i++)if(words[i])pattern+=(pattern)?'|'+words[i]+'':words[i];break;}case 'allwords':{words=text.split(' ');pattern='^';for(let i=0;i<words.length;i++)if(words[i])pattern+='(?=.*?\\b'+words[i]+'\\b)';break;}case 'allwords_partial':{words=text.split(' ');pattern='^';for(let i=0;i<words.length;i++)if(words[i])pattern+='(?=.*?'+words[i]+')';break;}}try{regex=new RegExp(pattern,'i');}catch(e){return;}$('#improvedselect-'+sid+' .improvedselect_all li',context).each(function(){let $opt=$(this);if($opt.attr('isgroup')!=='isgroup'){let str=$opt.text();if(str.match(regex)&&(!$selectedGroup.length||$selectedGroup.text()===$opt.attr('group'))){$opt.show();if($opt.attr('group'))if(!$selectedGroup.length)$opt.siblings('li[isgroup="isgroup"][so="---'+$opt.attr('group')+'---"]').show();else $opt.siblings('li[isgroup="isgroup"][so="---'+$opt.attr('group')+'---"]').hide();}else{$opt.hide();if($opt.attr('group'))if($opt.siblings('li[isgroup!="isgroup"][group="'+$opt.attr('group')+'"]:visible').length===0)$opt.siblings('li[isgroup="isgroup"][so="---'+$opt.attr('group')+'---"]').hide();}}});}else{if(!text.length)$filter.attr('prev','');$('#improvedselect-'+sid+' .improvedselect_all li',context).each(function(){let $opt=$(this);if($opt.attr('isgroup')!=='isgroup'){if(!$selectedGroup.length||$selectedGroup.text()===$opt.attr('group'))$opt.show();else $opt.hide();improvedselectUpdateGroupVisibility($opt,0);}}
28);}}function improvedselectAttach(selector,options,context){$(once('improvedselect',selector,context)).each(function(){let $select=$(this);let moveButtons='';let imsSelectId=$select.attr('id');let imsSelectClass=$select.attr('class');let $cloned_select=null;let regex=new RegExp('.+-cloned$','i');if(imsSelectId.match(regex))return;if(options.remove_required_attr)$select.removeAttr('required');if(options.orderable){$cloned_select=$select.clone();$cloned_select.attr('id',imsSelectId+'-cloned');$cloned_select.attr('name','cloned-'+$select.attr('name'));$cloned_select.appendTo($select.parent()).hide();moveButtons='<span class="move_up" sid="'+imsSelectId+'">'+Drupal.checkPlain(options.buttontext_moveup)+'</span>'+'<span class="move_down" sid="'+imsSelectId+'">'+Drupal.checkPlain(options.buttontext_movedown)+'</span>';}$select.parent().append('<div class="improvedselect" sid="'+imsSelectId+'" id="improvedselect-'+imsSelectId+'">'+'<div class="improvedselect-text-wrapper">'+'<input type="text" class="improvedselect_filter" sid="'+imsSelectId+'" prev="" />'+'</div><ul class="improvedselect_sel"></ul><ul class="improvedselect_all"></ul><div class="improvedselect_control">'+'<span class="add" sid="'+imsSelectId+'">'+Drupal.checkPlain(options.buttontext_add)+'</span>'+'<span class="del" sid="'+imsSelectId+'">'+Drupal.checkPlain(options.buttontext_del)+'</span>'+'<span class="add_all" sid="'+imsSelectId+'">'+Drupal.checkPlain(options.buttontext_addall)+'</span>'+'<span class="del_all" sid="'+imsSelectId+'">'+Drupal.checkPlain(options.buttontext_delall)+'</span>'+moveButtons+'</div><div class="clear"></div></div>');if(imsSelectClass.search("error")>0)$select.parent().find('.improvedselect').addClass('error');if($select.find('optgroup').has('option').length>0){$select.parent().find('.improvedselect').addClass('has_group');$('#improvedselect-'+imsSelectId+' .improvedselect-text-wrapper',context).after('<div class="improvedselect_tabs-wrapper" sid="'+imsSelectId+'"><ul class="improvedselect_tabs"></ul></div>');$select.find('optgroup').has('option').each(function(){$('#improvedselect-'+imsSelectId+' .improvedselect_tabs',context).append('<li><a href="">'+$(this).attr('label')+'</a></li>');});$('#improvedselect-'+imsSelectId+' .improvedselect_tabs',context).prepend('<li class="all"><a href="">'+Drupal.t('All')+'</a></li>');$('#improvedselect-'+imsSelectId+' .improvedselect_tabs li a',context).click(function(e){let $group=$(this);let sid=$group.parent().parent().parent().attr('sid');$('#improvedselect-'+imsSelectId+' .improvedselect_tabs li.selected',context).removeClass('selected').find('a').unwrap();$group.wrap('<div>').parents('li').first().addClass('selected');if(!$group.hasClass('all'))$('#improvedselect-'+imsSelectId+' .improvedselect_all li.selected[group!="'+$group.text()+'"]',context).removeClass('selected');if(options.groupresetfilter)$('#improvedselect-'+imsSelectId+' .improvedselect_filter',context).val('');$('#improvedselect-'+imsSelectId+' .improvedselect_filter',context).attr('prev','');improvedselectFilter(sid,options,context);e.preventDefault();});$('#improvedselect-'+imsSelectId+' .improvedselect_tabs li.all a',context).click();}$select.find('option, optgroup').each(function(){let $opt=$(this);let group='';if($opt[0].tagName==='OPTGROUP'){if($opt.has('option').length)$('#improvedselect-'+imsSelectId+' .improvedselect_all',context).append('<li isgroup="isgroup" so="---'+$opt.attr('label')+'---">--- '+$opt.attr('label')+' ---</li>');}else{group=$opt.parent('optgroup').attr('label');if(group)group=' group="'+group+'"';else group='';if($opt.attr('value')!=='_none')if($opt.attr('selected'))$('#improvedselect-'+imsSelectId+' .improvedselect_sel',context).append('<li so="'+$opt.attr('value')+'"'+group+'>'+$opt.html()+'</li>');else $('#improvedselect-'+imsSelectId+' .improvedselect_all',context).append('<li so="'+$opt.attr('value')+'"'+group+'>'+$opt.html()+'</li>');}});$('#improvedselect-'+imsSelectId+' .improvedselect_sel li, #improvedselect-'+imsSelectId+' .improvedselect_all li[isgroup!="isgroup"]',context).click(function(){$(this).toggleClass('selected');});$select.hide();$('#improvedselect-'+imsSelectId+' .improvedselect_sel li, #improvedselect-'+imsSelectId+' .improvedselect_all li[isgroup!="isgroup"]',context).dblclick(function(){let selected=$(this).parent().find('li.selected');let current_class=$(this).parent().attr('class');if(current_class==='improvedselect_all'){$(this).parent().find('li.selected').removeClass('selected');$(this).addClass('selected');$(this).parent().parent().find('.add').click();}else{$(this).parent().find('li.selected').removeClass('selected');$(this).addClass('selected');$(this).parent().parent().find('.del').click();}if(selected.length){for(let k=0;k<selected.length;k++)if($(selected[k]).parent().attr('class')===current_class)$(selected[k]).addClass('selected');}});$('.improvedselect_sel, .improvedselect_all').each(function(){if($(this).parent().height()>0)$(this).height($(this).parent().height()-35);});});}function improvedselectUpdateGroupVisibility($opt,numItems){let $selectedGroup=$opt.parents('.improvedselect').first().find('.improvedselect_tabs li.selected:not(.all) a');if($opt.parent().children('li[isgroup!="isgroup"][group="'+$opt.attr('group')+'"]:visible').length<=numItems||$selectedGroup.length)$opt.siblings('li[isgroup="isgroup"][so="---'+$opt.attr('group')+'---"]').hide();else $opt.siblings('li[isgroup="isgroup"][so="---'+$opt.attr('group')+'---"]').show();}function improvedselectUpdate(sid,context){let $select=$('#'+sid);
28let $cloned_select=$('#'+sid+'-cloned');if($cloned_select.length){$select.find('option, optgroup').remove();$cloned_select.find('option:selected').prop('selected',false);$('#improvedselect-'+sid+' .improvedselect_sel li',context).each(function(){let $li=$(this);$select.append($('<option></option>').attr('value',$li.attr('so')).prop('selected',true).text($li.text()));$('#'+sid+'-cloned [value="'+$(this).attr('so')+'"]',context).prop('selected',true);});}else{$select.find('option:selected').prop('selected',false);$('#improvedselect-'+sid+' .improvedselect_sel li',context).each(function(){$('#'+sid+' [value="'+$(this).attr('so')+'"]',context).prop('selected',true);});}$select.find('option, optgroup').each(function(){let $opt=$(this);if($opt[0].tagName==='OPTGROUP'){if($opt.has('option').length)$('#improvedselect-'+sid+' .improvedselect_all',context).append($('#improvedselect-'+sid+' .improvedselect_all [so="---'+$opt.attr('label')+'---"]',context));}else if($opt.attr('selected'))$('#improvedselect-'+sid+' .improvedselect_sel',context).append($('#improvedselect-'+sid+' .improvedselect_sel [so="'+$opt.attr('value')+'"]',context));else $('#improvedselect-'+sid+' .improvedselect_all',context).append($('#improvedselect-'+sid+' .improvedselect_all [so="'+$opt.attr('value')+'"]',context));});$('#'+sid,context).trigger('change');}})(jQuery,Drupal,once);;
29var maxWidth=drupalSettings.simpleResponsiveTable.maxWidth;var table=[].slice.call(document.querySelectorAll('table.table-to-card'));if(table!==null)table.forEach(function(element){var headers=[];var trth=[].slice.call(element.querySelectorAll('tr th'));trth.forEach(function(trthElement){var header=trthElement.innerHTML;header=header.replace(Drupal.t('Sort descending'),'');header=header.replace(Drupal.t('Sort ascending'),'');header=header.replace(/(<p[^>]+?>|<p>|<\/p>)/img,'');headers.push(header.trim());});var tr=[].slice.call(element.querySelectorAll('tr'));var td=[].slice.call(element.querySelectorAll('td'));tr.forEach(function(trElement){td.forEach(function(item,key){if(headers[key]){var temp=headers[key].replace(/(<p[^>]+?>|<p>|<\/p>)/img,'');item.setAttribute('data-title',temp);if(item.innerHTML.trim()==''&&item.innerHTML.trim()=='')item.innerHTML='<div class="simple-responsive-table-empty-row-data"></div>';}});});});var applyResponsiveTable=function applyResponsiveTable(){if(table!==null)if(window.innerWidth<=maxWidth)table.forEach(function(tableElement){var tableHeader=[];var tableTrTh=[].slice.call(tableElement.querySelectorAll('tr th'));tableTrTh.forEach(function(trthElement){var trthHeader=trthElement.innerHTML;tableHeader.push(trthHeader.trim());});if(tableHeader.length<=0)tableElement.classList.add("simple-responsive-table-without-th");tableElement.classList.add("simple-responsive-table");tableElement.classList.remove("sticky-enabled");});else table.forEach(function(tableElement){if(tableElement.getAttribute('class')=='simple-responsive-table'||tableElement.getAttribute('class')=='simple-responsive-table-without-th')tableElement.removeAttribute('class');else{tableElement.classList.remove('simple-responsive-table');tableElement.classList.remove('simple-responsive-table-without-th');}});};if(table!==null)table.forEach(function(){applyResponsiveTable();});document.addEventListener("DOMContentLoaded",applyResponsiveTable);window.addEventListener("resize",function(){applyResponsiveTable();});if(table!==null)table.forEach(function(incSizeElement){var incSizeHeaders=[];var incSizetrth=[].slice.call(incSizeElement.querySelectorAll('tr th'));incSizetrth.forEach(function(incSizetrthElement){var incSizeTemp=incSizetrthElement.innerHTML;incSizeHeaders.push(incSizeTemp.trim());});if(incSizeElement.clientWidth>=incSizeElement.parentElement.clientWidth){incSizeElement.classList.add("simple-responsive-table");if(incSizeHeaders.length<=0)incSizeElement.classList.add("simple-responsive-table-without-th");}else{incSizeElement.classList.remove("simple-responsive-table");if(incSizeHeaders.length<=0)incSizeElement.classList.add("simple-responsive-table-without-th");}});window.addEventListener("orientationchange",function(){var orientation=window.orientation;switch(orientation){case 0:case 90:case -90:window.location.reload();break;}});;
30/* @license GPL-2.0-or-later https://raw.githubusercontent.com/jquery-form/form/master/LICENSE */
31(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof module==='object'&&module.exports)module.exports=function(root,jQuery){if(typeof jQuery==='undefined')if(typeof window!=='undefined')jQuery=require('jquery');else jQuery=require('jquery')(root);factory(jQuery);return jQuery;};else factory(jQuery);}(function($){'use strict';var rCRLF=/\r?\n/g;var feature={};feature.fileapi=$('<input type="file">').get(0).files!==undefined;feature.formdata=(typeof window.FormData!=='undefined');var hasProp=!!$.fn.prop;$.fn.attr2=function(){if(!hasProp)return this.attr.apply(this,arguments);var val=this.prop.apply(this,arguments);if((val&&val.jquery)||typeof val==='string')return val;return this.attr.apply(this,arguments);};$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){if(!this.length){log('ajaxSubmit: ski
31pping submit process - no element selected');return this;}var method,action,url,isMsie,iframeSrc,$form=this;if(typeof options==='function')options={success:options};else if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}else{if(typeof options==='undefined')options={};}method=options.method||options.type||this.attr2('method');action=options.url||this.attr2('action');url=(typeof action==='string')?action.trim():'';url=url||window.location.href||'';if(url)url=(url.match(/^([^#]+)/)||[])[1];isMsie=/(MSIE|Trident)/.test(navigator.userAgent||'');iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank';options=$.extend(true,{url,success:$.ajaxSettings.success,type:method||$.ajaxSettings.type,iframeSrc},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}var traditional=options.traditional;if(typeof traditional==='undefined')traditional=$.ajaxSettings.traditional;var elements=[];var qx,a=this.formToArray(options.semantic,elements,options.filtering);if(options.data){var optionsData=typeof (options.data)==="function"?options.data(a):options.data;options.extraData=optionsData;qx=$.param(optionsData,traditional);}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}var q=$.param(a,traditional);if(qx)q=(q?(q+'&'+qx):qx);if(options.type.toUpperCase()==='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}else options.data=q;var callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm();});if(options.clearForm)callbacks.push(function(){$form.clearForm(options.includeHidden);});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,textStatus,jqXHR){var successArguments=arguments,fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(function(){oldSuccess.apply(this,successArguments);});});}else{if(options.success)if(Array.isArray(options.success))callbacks=callbacks.concat(options.success);else callbacks.push(options.success);}options.success=function(data,status,xhr){var context=options.context||this;for(var i=0,max=callbacks.length;i<max;i++)callbacks[i].apply(context,[data,status,xhr||$form,$form]);};if(options.error){var oldError=options.error;options.error=function(xhr,status,error){var context=options.context||this;oldError.apply(context,[xhr,status,error,$form]);};}if(options.complete){var oldComplete=options.complete;options.complete=function(xhr,status){var context=options.context||this;oldComplete.apply(context,[xhr,status,$form]);};}var fileInputs=$('input[type=file]:enabled',this).filter(function(){return $(this).val()!=='';});var hasFileInputs=fileInputs.length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp);var fileAPI=feature.fileapi&&feature.formdata;log('fileAPI :'+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;var jqxhr;if(options.iframe!==false&&(options.iframe||shouldUseFrame))if(options.closeKeepAlive)$.get(options.closeKeepAlive,function(){jqxhr=fileUploadIframe(a);});else jqxhr=fileUploadIframe(a);else if((hasFileInputs||multipart)&&fileAPI)jqxhr=fileUploadXhr(a);else jqxhr=$.ajax(options);$form.removeData('jqxhr').data('jqxhr',jqxhr);for(var k=0;k<elements.length;k++)elements[k]=null;this.trigger('form-submit-notify',[this,options]);return this;function deepSerialize(extraData){var serialized=$.param(extraData,options.traditional).split('&');var len=serialized.length;var result=[];var i,part;for(i=0;i<len;i++){serialized[i]=serialized[i].replace(/\+/g,' ');part=serialized[i].split('=');result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]);}return result;}function fileUploadXhr(a){var formdata=new FormData();for(var i=0;i<a.length;i++)formdata.append(a[i].name,a[i].value);if(options.extraData){var serializedData=deepSerialize(options.extraData);for(i=0;i<serializedData.length;i++)if(serializedData[i])formdata.append(serializedData[i][0],serializedData[i][1]);}options.data=null;var s=$.extend(true,{},$.ajaxSettings,options,{contentType:false,processData:false,cache:false,type:method||'POST'});if(options.uploadProgress)s.xhr=function(){var xhr=$.ajaxSettings.xhr();if(xhr.upload)xhr.upload.addEventListener('progress',function(event){var percent=0;var position=event.loaded||event.position;var total=event.total;if(event.lengthComputable)percent=Math.ceil(position/total*100);options.uploadProgress(event,position,total,percent);},false);return xhr;};s.data=null;var beforeSend=s.beforeSend;s.beforeSend=function(xhr,o){if(options.formData)o.data=options.formData;else o.data=formdata;
31if(beforeSend)beforeSend.call(this,xhr,o);};return $.ajax(s);}function fileUploadIframe(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var deferred=$.Deferred();deferred.abort=function(status){xhr.abort(status);};if(a)for(i=0;i<elements.length;i++){el=$(elements[i]);if(hasProp)el.prop('disabled',false);else el.removeAttr('disabled');}s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+new Date().getTime();var ownerDocument=form.ownerDocument;var $body=$form.closest('body');if(s.iframeTarget){$io=$(s.iframeTarget,ownerDocument);n=$io.attr2('name');if(!n)$io.attr2('name',id);else id=n;}else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />',ownerDocument);$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;try{if(io.contentWindow.document.execCommand)io.contentWindow.document.execCommand('Stop');}catch(ignore){}$io.attr('src',s.iframeSrc);xhr.error=e;if(s.error)s.error.call(s.context,xhr,e,status);if(g)$.event.trigger('ajaxError',[xhr,s,e]);if(s.complete)s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&$.active++===0)$.event.trigger('ajaxStart');if(g)$.event.trigger('ajaxSend',[xhr,s]);if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global)$.active--;deferred.reject();return deferred;}if(xhr.aborted){deferred.reject();return deferred;}sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type==='image'){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=null;try{if(frame.contentWindow)doc=frame.contentWindow.document;}catch(err){log('cannot get iframe.contentWindow document: '+err);}if(doc)return doc;try{doc=frame.contentDocument?frame.contentDocument:frame.document;}catch(err){log('cannot get iframe.contentDocument: '+err);doc=frame.document;}return doc;}var csrf_token=$('meta[name=csrf-token]').attr('content');var csrf_param=$('meta[name=csrf-param]').attr('content');if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token;}function doSubmit(){var t=$form.attr2('target'),a=$form.attr2('action'),mp='multipart/form-data',et=$form.attr('enctype')||$form.attr('encoding')||mp;form.setAttribute('target',id);if(!method||/post/i.test(method))form.setAttribute('method','POST');if(a!==s.url)form.setAttribute('action',s.url);if(!s.skipEncodingOverride&&(!method||/post/i.test(method)))$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});if(s.timeout)timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state&&state.toLowerCase()==='uninitialized')setTimeout(checkState,50);}catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);if(timeoutHandle)clearTimeout(timeoutHandle);timeoutHandle=undefined;}}var extraInputs=[];try{if(s.extraData)for(var n in s.extraData)if(s.extraData.hasOwnProperty(n))if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value'))extraInputs.push($('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value).appendTo(form)[0]);else extraInputs.push($('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]).appendTo(form)[0]);if(!s.iframeTarget)$io.appendTo($body);if(io.attachEvent)io.attachEvent('onload',cb);else io.addEventListener('load',cb,false);setTimeout(checkState,15);try{form.submit();}catch(err){var submitFn=document.createElement('form').submit;submitFn.apply(form);}}finally{form.setAttribute('action',a);form.setAttribute('enctype',et);if(t)form.setAttribute('target',t);else $form.removeAttr('target');$(extraInputs).remove();}}if(s.forceSync)doSubmit();else setTimeout(doSubmit,10);var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed)return;doc=getDoc(io);if(!doc){log('cannot access response document');e=SERVER_ABORT;}if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');deferred.reject(xhr,'timeout');return;}if(e===SERVER_ABORT&&xhr){xhr.abort('server abort');deferred.reject(xhr,'error','server abort');return;}if(!doc||doc.location.href===s.iframeSrc)if(!timedOut)return;if(io.detachEvent)io.detachEvent('onload',cb);else io.removeEventListener('load',cb,false);var status='success',errMsg;
31try{if(timedOut)throw 'timeout';var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML))if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header.toLowerCase()];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}var dt=(s.dataType||'').toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}else{if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre)xhr.responseText=pre.textContent?pre.textContent:pre.innerText;else{if(b)xhr.responseText=b.textContent?b.textContent:b.innerText;}}}}else{if(dt==='xml'&&!xhr.responseXML&&xhr.responseText)xhr.responseXML=toXml(xhr.responseText);}try{data=httpData(xhr,dt,s);}catch(err){status='parsererror';xhr.error=errMsg=(err||status);}}catch(err){log('error caught: ',err);status='error';xhr.error=errMsg=(err||status);}if(xhr.aborted){log('upload aborted');status=null;}if(xhr.status)status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error';if(status==='success'){if(s.success)s.success.call(s.context,data,'success',xhr);deferred.resolve(xhr.responseText,'success',xhr);if(g)$.event.trigger('ajaxSuccess',[xhr,s]);}else{if(status){if(typeof errMsg==='undefined')errMsg=xhr.statusText;if(s.error)s.error.call(s.context,xhr,status,errMsg);deferred.reject(xhr,'error',errMsg);if(g)$.event.trigger('ajaxError',[xhr,s,errMsg]);}}if(g)$.event.trigger('ajaxComplete',[xhr,s]);if(g&&!--$.active)$.event.trigger('ajaxStop');if(s.complete)s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)$io.remove();else $io.attr('src',s.iframeSrc);xhr.responseXML=null;},100);}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}else doc=(new DOMParser()).parseFromString(s,'text/xml');return (doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null;};var parseJSON=$.parseJSON||function(s){return window['eval']('('+s+')');};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0),data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror')if($.error)$.error('parsererror');if(s&&s.dataFilter)data=s.dataFilter(data,type);if(typeof data==='string')if((type==='json'||!type)&&ct.indexOf('json')>=0)data=parseJSON(data);else{if((type==='script'||!type)&&ct.indexOf('javascript')>=0)$.globalEval(data);}return data;};return deferred;}};$.fn.ajaxForm=function(options,data,dataType,onSuccess){if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}options=options||{};options.delegation=options.delegation&&typeof $.fn.on==='function';if(!options.delegation&&this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}if(options.delegation){$(document).off('submit.form-plugin',this.selector,doAjaxSubmit).off('click.form-plugin',this.selector,captureSubmittingElement).on('submit.form-plugin',this.selector,options,doAjaxSubmit).on('click.form-plugin',this.selector,options,captureSubmittingElement);return this;}if(options.beforeFormUnbind)options.beforeFormUnbind(this,options);return this.ajaxFormUnbind().on('submit.form-plugin',options,doAjaxSubmit).on('click.form-plugin',options,captureSubmittingElement);};function doAjaxSubmit(e){var options=e.data;if(!e.isDefaultPrevented()){e.preventDefault();$(e.target).closest('form').ajaxSubmit(options);}}function captureSubmittingElement(e){var target=e.target;var $el=$(target);if(!$el.is('[type=submit],[type=image]')){var t=$el.closest('[type=submit]');if(t.length===0)return;target=t[0];}var form=target.form;form.clk=target;if(target.type==='image')if(typeof e.offsetX!=='undefined'){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset==='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);}$.fn.ajaxFormUnbind=function(){return this.off('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic,elements,filtering){var a=[];if(this.length===0)return a;var form=this[0];var formId=this.attr('id');var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements;var els2;if(els)els=$.makeArray(els);if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){els2=$(':input[form="'+formId+'"]').get();if(els2.length)els=(els||[]).concat(els2);}if(!els||!els.length)return a;
31if(typeof (filtering)==="function")els=$.map(els,filtering);var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n||el.disabled)continue;if(semantic&&form.clk&&el.type==='image'){if(form.clk===el){a.push({name:n,value:$(el).val(),type:el.type});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor===Array){if(elements)elements.push(el);for(j=0,jmax=v.length;j<jmax;j++)a.push({name:n,value:v[j]});}else if(feature.fileapi&&el.type==='file'){if(elements)elements.push(el);var files=el.files;if(files.length)for(j=0;j<files.length;j++)a.push({name:n,value:files[j],type:el.type});else a.push({name:n,value:'',type:el.type});}else{if(v!==null&&typeof v!=='undefined'){if(elements)elements.push(el);a.push({name:n,value:v,type:el.type,required:el.required});}}}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type==='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor===Array)for(var i=0,max=v.length;i<max;i++)a.push({name:n,value:v[i]});else{if(v!==null&&typeof v!=='undefined')a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length))continue;if(Array.isArray(v))val=val.concat(v);else val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful==='undefined')successful=true;if(successful&&(!n||el.disabled||t==='reset'||t==='button'||(t==='checkbox'||t==='radio')&&!el.checked||(t==='submit'||t==='image')&&el.form&&el.form.clk!==el||tag==='select'&&el.selectedIndex===-1))return null;if(tag==='select'){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=(t==='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected&&!op.disabled){var v=op.value;if(!v)v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;if(one)return v;a.push(v);}}return a;}return $(el).val().replace(rCRLF,'\r\n');};$.fn.clearForm=function(includeHidden){return this.each(function(){$('input,select,textarea',this).clearFields(includeHidden);});};$.fn.clearFields=$.fn.clearInputs=function(includeHidden){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag==='textarea')this.value='';else if(t==='checkbox'||t==='radio')this.checked=false;else if(tag==='select')this.selectedIndex=-1;else if(t==='file')if(/MSIE/.test(navigator.userAgent))$(this).replaceWith($(this).clone(true));else $(this).val('');else{if(includeHidden)if((includeHidden===true&&/hidden/.test(t))||(typeof includeHidden==='string'&&$(this).is(includeHidden)))this.value='';}});};$.fn.resetForm=function(){return this.each(function(){var el=$(this);var tag=this.tagName.toLowerCase();switch(tag){case 'input':this.checked=this.defaultChecked;case 'textarea':this.value=this.defaultValue;return true;case 'option':case 'optgroup':var select=el.parents('select');if(select.length&&select[0].multiple)if(tag==='option')this.selected=this.defaultSelected;else el.find('option').resetForm();else select.resetForm();return true;case 'select':el.find('option').each(function(i){this.selected=this.defaultSelected;if(this.defaultSelected&&!el[0].multiple){el[0].selectedIndex=i;return false;}});return true;case 'label':var forEl=$(el.attr('for'));var list=el.find('input,select,textarea');if(forEl[0])list.unshift(forEl[0]);list.resetForm();return true;case 'form':if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType))this.reset();return true;default:el.find('form,input,label,select,textarea').resetForm();return true;}}
31);};$.fn.enable=function(b){if(typeof b==='undefined')b=true;return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(typeof select==='undefined')select=true;return this.each(function(){var t=this.type;if(t==='checkbox'||t==='radio')this.checked=select;else{if(this.tagName.toLowerCase()==='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type==='select-one')$sel.find('option').selected(false);this.selected=select;}}});};$.fn.ajaxSubmit.debug=false;function log(){if(!$.fn.ajaxSubmit.debug)return;var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log)window.console.log(msg);else{if(window.opera&&window.opera.postError)window.opera.postError(msg);}}}));;
32/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
33(function($,Drupal,drupalSettings){Drupal.Views={};Drupal.Views.parseQueryString=function(query){const args={};if(query.includes('?'))query=query.substring(query.indexOf('?')+1);let pair;const pairs=query.split('&');for(let i=0;i<pairs.length;i++){pair=pairs[i].split('=');if(pair[0]!=='q')if(pair[1])args[decodeURIComponent(pair[0].replace(/\+/g,' '))]=decodeURIComponent(pair[1].replace(/\+/g,' '));else args[decodeURIComponent(pair[0].replace(/\+/g,' '))]='';}return args;};Drupal.Views.parseViewArgs=function(href,viewPath){const returnObj={};const path=Drupal.Views.getPath(href);const viewHref=Drupal.url(viewPath).substring(drupalSettings.path.baseUrl.length);if(viewHref&&path.startsWith(`${viewHref}/`)){returnObj.view_args=decodeURIComponent(path.substring(viewHref.length+1,path.length));returnObj.view_path=path;}return returnObj;};Drupal.Views.pathPortion=function(href){const protocol=window.location.protocol;if(href.startsWith(protocol))href=href.substring(href.indexOf('/',protocol.length+2));return href;};Drupal.Views.getPath=function(href){href=Drupal.Views.pathPortion(href);href=href.substring(drupalSettings.path.baseUrl.length,href.length);if(href.startsWith('?q='))href=href.substring(3,href.length);const chars=['#','?','&'];for(let i=0;i<chars.length;i++)if(href.includes(chars[i]))href=href.substring(0,href.indexOf(chars[i]));return href;};})(jQuery,Drupal,drupalSettings);;
34(function($,Drupal,drupalSettings){Drupal.behaviors.ViewsAjaxView={};Drupal.behaviors.ViewsAjaxView.attach=function(context,settings){if(settings&&settings.views&&settings.views.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{Drupal.views.instances[i]=new Drupal.views.ajaxView(ajaxViews[i]);});}};Drupal.behaviors.ViewsAjaxView.detach=(context,settings,trigger)=>{if(trigger==='unload')if(settings&&settings.views&&settings.views.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{const selector=`.js-view-dom-id-${ajaxViews[i].view_dom_id}`;if($(selector,context).length){delete Drupal.views.instances[i];delete settings.views.ajaxViews[i];}});}};Drupal.views={};Drupal.views.instances={};Drupal.views.ajaxView=function(settings){const selector=`.js-view-dom-id-${settings.view_dom_id}`;this.$view=$(selector);let ajaxPath=drupalSettings.views.ajax_path;if(ajaxPath.constructor.toString().includes('Array'))ajaxPath=ajaxPath[0];let queryString=window.location.search||'';if(queryString!==''){queryString=queryString.slice(1).replace(/q=[^&]+&?|page=[^&]+&?|&?render=[^&]+/,'');if(queryString!=='')queryString=(/\?/.test(ajaxPath)?'&':'?')+queryString;}let allowed_views=['acquia_search','custom_on_page_search_view','directory_biography_listing_view_solr'];if(allowed_views.includes(settings.view_name))$(once('prettyPathFacetsViewsExposeForm','#edit-submit-acquia-search--2, #edit-submit-custom-on-page-search-view--2, #edit-submit-directory-biography-listing-view-solr--2')).click(function(){let current_path=window.location.pathname;settings.view_path=current_path;});this.element_settings={url:ajaxPath+queryString,submit:settings,httpMethod:'GET',setClick:true,event:'click',selector,progress:{type:'fullscreen'}};this.settings=settings;this.$exposed_form=$(`form#views-exposed-form-${settings.view_name.replace(/_/g,'-')}-${settings.view_display_id.replace(/_/g,'-')}`);once('exposed-form',this.$exposed_form).forEach(this.attachExposedFormAjax.bind(this));
34once('ajax-pager',this.$view.filter(this.filterNestedViews.bind(this))).forEach(this.attachPagerAjax.bind(this));const selfSettings=$.extend({},this.element_settings,{event:'RefreshView',base:this.selector,httpMethod:'GET',element:this.$view.get(0)});this.refreshViewAjax=Drupal.ajax(selfSettings);};Drupal.views.ajaxView.prototype.attachExposedFormAjax=function(){const that=this;this.exposedFormAjax=[];if(that.element_settings.submit)that.element_settings.submit.exposed_form_display=1;$('input[type=submit], button[type=submit], input[type=image]',this.$exposed_form).not('[data-drupal-selector=edit-reset]').each(function(index){const selfSettings=$.extend({},that.element_settings,{base:$(this).attr('id'),element:this});that.exposedFormAjax[index]=Drupal.ajax(selfSettings);});};Drupal.views.ajaxView.prototype.filterNestedViews=function(){return !this.$view.parents('.view').length;};Drupal.views.ajaxView.prototype.attachPagerAjax=function(){this.$view.find('.js-pager__items a, th.views-field a, .attachment .views-summary a').each(this.attachPagerLinkAjax.bind(this));};Drupal.views.ajaxView.prototype.attachPagerLinkAjax=function(id,link){const $link=$(link);const viewData={};const href=$link.attr('href');$.extend(viewData,this.settings,Drupal.Views.parseQueryString(href),Drupal.Views.parseViewArgs(href,this.settings.view_base_path));if(typeof drupalSettings.facet_settings!=='undefined'&&drupalSettings.facet_settings.url_processor=='facets_pretty_paths')viewData.view_path=window.location.pathname;const selfSettings=$.extend({},this.element_settings,{submit:viewData,base:false,element:link,httpMethod:'GET'});this.pagerAjax=Drupal.ajax(selfSettings);};Drupal.AjaxCommands.prototype.viewsScrollTop=function(ajax,response){Drupal.AjaxCommands.prototype.scrollTop(ajax,response);};})(jQuery,Drupal,drupalSettings);;
35(function($,drupalSettings){Drupal.Ajax.prototype.originalBeforeSerialize=Drupal.Ajax.prototype.beforeSerialize;Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(options.url&&options.url.indexOf('/views/ajax')!==-1&&drupalSettings.viewsAjaxGet&&typeof drupalSettings.viewsAjaxGet[options.data.view_name]!=='undefined'){if(this.form){var settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.form,settings,'serialize');}options.type='GET';options.url=Drupal.url('views/ajax');return;}return this.originalBeforeSerialize(element,options);};})(jQuery,drupalSettings);;
36(function($,Drupal,drupalSettings){var original={path:window.location.protocol+"//"+window.location.hostname+(window.location.port?':'+window.location.port:'')+window.location.pathname,query:window.location.search||''};window.onpageshow=function(event){if(event.persisted)window.location.reload();};Drupal.ViewsAjaxHistory=Drupal.ViewsAjaxHistory||{};Drupal.ViewsAjaxHistory.beforeSubmit=Drupal.Ajax.prototype.beforeSubmit;Drupal.ViewsAjaxHistory.beforeSerialize=Drupal.Ajax.prototype.beforeSerialize;Drupal.ViewsAjaxHistory.beforeSend=Drupal.Ajax.prototype.beforeSend;Drupal.behaviors.viewsAjaxHistory={attach:function(context,drupalSettings){if(once('views-ajax-history-first-page-load','body').length)drupalSettings.viewsAjaxHistory.onloadPageItem=drupalSettings.viewsAjaxHistory.renderPageItem;}};var parseQueryString=function(query){var args={};var pos=query.indexOf('?');if(pos!=-1)query=query.substring(pos+1);var pairs=query.split('&');var pair,key,value;for(var i in pairs)if(typeof (pairs[i])=='string'){pair=pairs[i].split('=');if(pair[0]!='q'&&pair[1]){key=decodeURIComponent(pair[0].replace(/\+/g,' '));value=decodeURIComponent(pair[1].replace(/\+/g,' '));if(/\[\]$/.test(key))if(!(key in args))args[key]=[value];else{if(!$.inArray(value,args[key])!==-1)args[key].push(value);}else args[key]=value;}}return args;};var cleanURL=function(url,viewArgs){var args=('reset' in viewArgs)?{}:parseQueryString(url);var query=[];if(/\?/.test(drupalSettings.views.ajax_path))query.push('q='+Drupal.Views.getPath(url));$.each(args,function(name,value){if(name in viewArgs)value=viewArgs[name];if(Array.isArray(value))$.merge(query,$.map($.unique(value),function(sub){return name+'='+encodeURIComponent(sub);}));else query.push(name+'='+encodeURIComponent(value));});url=window.location.href.split('?');return url[0]+(query.length?'?'+query.join('&'):'');};var cleanStateForHistory=function(state){var stateWithNoFunctions={};for(var key in state)if(typeof state[key]!=="function")stateWithNoFunctions[key]=state[key];return stateWithNoFunctions;};var parseQuery=function(queryString){var query={};$.map(queryString.split('&'),function(val){var s=val.split('=');query[s[0]]=s[1];});return query;};var addState=function(options,url){var historyOptions=$.extend({},options);drupalSettings.viewsAjaxHistory.lastViewDomID=options.data.view_dom_id;$(window).unbind('popstate',loadView);history.pushState(cleanStateForHistory(historyOptions),document.title,cleanURL(url,options.data));$(window).bind('popstate',loadView);};var loadView=function(){var options;if(history.state===null){var viewsAjaxSettingsKey='views_dom_id:'+drupalSettings.viewsAjaxHistory.lastViewDomID;if(drupalSettings.views.ajaxViews.hasOwnProperty(viewsAjaxSettingsKey)){var viewsAjaxSettings=drupalSettings.views.ajaxViews[viewsAjaxSettingsKey];var initialExposedInput=drupalSettings.viewsAjaxHistory.initialExposedInput[viewsAjaxSettingsKey];$.extend(viewsAjaxSettings,initialExposedInput);viewsAjaxSettings.page=drupalSettings.viewsAjaxHistory.onloadPageItem;options={data:viewsAjaxSettings,url:drupalSettings.views.ajax_path};}}else options=history.state;var settings=$.extend({submit:options.data,setClick:true,event:'click',selector:'.view-dom-id-'+options.data.view_dom_id,progress:{type:'throbber'},httpMethod:'GET'},options);var viewsAjaxSubmit=Drupal.ajax(settings);viewsAjaxSubmit.execute();};var hasFacets=function(viewName){var hasFacets=false;
36if(drupalSettings.facets_views_ajax)$.each(drupalSettings.facets_views_ajax,function(facetId,facetSettings){if(facetSettings.view_id===viewName)hasFacets=true;});return hasFacets;};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(options.data.view_name&&element&&$(element).is('a')){let params=new URLSearchParams($(element).attr('href'));if(!$.isEmptyObject(drupalSettings.viewsAjaxHistory.excludeArgs)){var keysToRemove=[];$.each(drupalSettings.viewsAjaxHistory.excludeArgs,function(index,pathToExclude){params.forEach(function(value,key,parent){if(key.startsWith(pathToExclude))keysToRemove.push(key);});});keysToRemove.forEach(function(key){params.delete(key);});}addState(options,'?'+params.toString());}Drupal.ViewsAjaxHistory.beforeSerialize.apply(this,arguments);};Drupal.Ajax.prototype.beforeSubmit=function(form_values,element,options){if(options&&options.data&&options.data.view_name){var url=original.path+'?'+new URLSearchParams(new FormData(element.get(0))).toString();var currentQuery=parseQueryString(window.location.href);var ajaxUrl=options.url.split('?')[0];var ajaxQuery=parseQueryString(options.url);if($.inArray("page",Object.keys(currentQuery))!==-1){delete currentQuery.page;delete ajaxQuery.page;}$.each(form_values,function(){if(/\[\]$/.test(this.name)){if(!options.data[this.name])options.data[this.name]=[];options.data[this.name].push(this.value);}else options.data[this.name]=this.value;});element.find('[name]').each(function(){if(currentQuery[this.name]){delete currentQuery[this.name];delete ajaxQuery[this.name];}});element.find('input[type="checkbox"]').each(function(key,value){if(!form_values[this.name]){if(currentQuery[this.name])delete currentQuery[this.name];else{if(options.data[this.name])delete options.data[this.name];}if(ajaxQuery[this.name])delete ajaxQuery[this.name];}});let removeMultiValueQueryKeys=function(multiValueParamToRemove,queryParams){Object.getOwnPropertyNames(queryParams).forEach(function(queryKey){let queryKeyWithoutBracket=queryKey.replace(/\[\d+]$/,'');if(multiValueParamToRemove===queryKeyWithoutBracket)delete queryParams[queryKey];});return queryParams;};element.find('select[multiple]').each(function(key,value){if($(value).val().length===0){delete options.data[this.name];delete currentQuery[this.name];delete ajaxQuery[this.name];}let nameWithoutBracket=this.name.replace(/\[]$/,'');currentQuery=removeMultiValueQueryKeys(nameWithoutBracket,currentQuery);ajaxQuery=removeMultiValueQueryKeys(nameWithoutBracket,ajaxQuery);});url+=(/\?/.test(url)?'&':'?')+$.param(currentQuery);options.url=ajaxUrl+'?'+$.param(ajaxQuery);addState(options,url);}Drupal.ViewsAjaxHistory.beforeSubmit.apply(this,arguments);};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){var data=(typeof options.data==='string')?parseQuery(options.data):{};if(data.view_name&&options.type!=='GET')if(hasFacets(data.view_name)===true){var currentQuery=parseQueryString(window.location.href);options.url=drupalSettings.views.ajax_path+'?'+$.param(currentQuery)+'&'+Drupal.ajax.WRAPPER_FORMAT+'=drupal_ajax';}else{var delimiter=drupalSettings.views.ajax_path.indexOf('?')===-1?'?':'&';options.url=drupalSettings.views.ajax_path+delimiter+Drupal.ajax.WRAPPER_FORMAT+'=drupal_ajax';}Drupal.ViewsAjaxHistory.beforeSend.apply(this,arguments);};})(jQuery,Drupal,drupalSettings);;

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.