!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=80)}({80:function(e,t){function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}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,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){e.behaviors.anchorMenu={attach:function(e){var r=document.querySelectorAll(".anchor-menu");t("anchor-menu",r).forEach((function(e){var t,o=navigator.userAgent.toLowerCase().includes("firefox"),a=[],i=!1,l=function(){t=e.offsetHeight+10;var r,o=n(document.querySelectorAll("[data-alt-anchor-link]"));try{for(o.s();!(r=o.n()).done;){r.value.style.scrollMargin=t+"px"}}catch(e){o.e(e)}finally{o.f()}},c=function(e){var t,r=n(a);try{for(r.s();!(t=r.n()).done;){t.value.classList.remove("active")}}catch(e){r.e(e)}finally{r.f()}e.classList.add("active"),o||e.scrollIntoView({behavior:"smooth",container:"nearest",inline:"center"})},u=e.querySelector(".menu-scroller"),f=document.querySelectorAll("[data-alt-anchor-link]");if(r&&f){for(var d=1,s=function(e){var t=f[e];t.dataset.altAnchorTargetId||(t.dataset.altAnchorTargetId="alt-target-"+d,d++);var n=document.createElement("button");n.className="anchor-btn",0===e&&n.classList.add("active"),n.innerHTML=t.dataset.altAnchorLink,n.dataset.altTarget=t.dataset.altAnchorTargetId,u.appendChild(n),n.addEventListener("click",(function(e){i=!0,t.scrollIntoView({behavior:"smooth"}),c(n)})),a.push(n)},v=0;v<f.length;v++)s(v);document.addEventListener("scrollend",(function(){i=!1})),l(),u.addEventListener("scroll",(function(t){Math.max(u.scrollWidth-u.getBoundingClientRect().width,0)===u.scrollLeft?e.classList.add("end"):e.classList.remove("end")})),window.addEventListener("resize",(function(e){window.debounce(l,100)})),window.addEventListener("scroll",(function(e){if(!i){for(var r=f.length-1;r>=0;r--){var o=f[r];if(o.getBoundingClientRect().top<t+10){var l=document.querySelector('[data-alt-target="'+o.dataset.altAnchorTargetId+'"]');c(l);break}}var u=window.scrollY+window.innerHeight;if(document.body.scrollHeight-5<=u){var d,s=n(a);try{for(s.s();!(d=s.n()).done;){d.value.classList.remove("active")}}catch(e){s.e(e)}finally{s.f()}a[a.length-1].classList.add("active")}}}))}}))}}}(Drupal,once)}});
//# sourceMappingURL=tm-am.js.map