@nationalarchives/frontend 0.1.63 → 0.1.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/config/.babelrc.json +19 -0
  2. package/config/.eslintrc.js +25 -0
  3. package/config/.htmlvalidate.json +10 -0
  4. package/config/stylelint.config.js +239 -0
  5. package/nationalarchives/all.css +1 -3
  6. package/nationalarchives/all.css.map +1 -1
  7. package/nationalarchives/all.js +1 -1
  8. package/nationalarchives/all.js.map +1 -1
  9. package/nationalarchives/all.mjs +34 -0
  10. package/nationalarchives/all.scss +0 -2
  11. package/nationalarchives/components/_index.scss +1 -0
  12. package/nationalarchives/components/accordion/accordion.css +1 -1
  13. package/nationalarchives/components/accordion/accordion.css.map +1 -1
  14. package/nationalarchives/components/accordion/accordion.js +1 -1
  15. package/nationalarchives/components/accordion/accordion.js.map +1 -1
  16. package/nationalarchives/components/accordion/accordion.mjs +92 -24
  17. package/nationalarchives/components/accordion/accordion.scss +56 -18
  18. package/nationalarchives/components/accordion/accordion.stories.js +31 -9
  19. package/nationalarchives/components/accordion/fixtures.json +34 -7
  20. package/nationalarchives/components/accordion/macro-options.json +14 -2
  21. package/nationalarchives/components/accordion/template.njk +7 -5
  22. package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
  23. package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
  24. package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +0 -10
  25. package/nationalarchives/components/breadcrumbs/template.njk +1 -1
  26. package/nationalarchives/components/button/button.css +1 -1
  27. package/nationalarchives/components/button/button.css.map +1 -1
  28. package/nationalarchives/components/button/button.scss +23 -1
  29. package/nationalarchives/components/button/button.stories.js +3 -0
  30. package/nationalarchives/components/button/macro-options.json +6 -0
  31. package/nationalarchives/components/button/template.njk +3 -1
  32. package/nationalarchives/components/card/card.css.map +1 -1
  33. package/nationalarchives/components/card/template.njk +5 -5
  34. package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
  35. package/nationalarchives/components/checkboxes/checkboxes.njk +1 -1
  36. package/nationalarchives/components/checkboxes/template.njk +1 -1
  37. package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
  38. package/nationalarchives/components/compound-filters/template.njk +1 -1
  39. package/nationalarchives/components/cookie-banner/cookie-banner.css +1 -1
  40. package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
  41. package/nationalarchives/components/cookie-banner/cookie-banner.scss +0 -2
  42. package/nationalarchives/components/cookie-banner/template.njk +1 -2
  43. package/nationalarchives/components/date-input/date-input.css.map +1 -1
  44. package/nationalarchives/components/date-input/template.njk +1 -1
  45. package/nationalarchives/components/date-search/date-search.css.map +1 -1
  46. package/nationalarchives/components/date-search/date-search.njk +2 -2
  47. package/nationalarchives/components/date-search/template.njk +1 -1
  48. package/nationalarchives/components/details/details.css.map +1 -1
  49. package/nationalarchives/components/details/template.njk +1 -1
  50. package/nationalarchives/components/error-summary/error-summary.css +1 -1
  51. package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
  52. package/nationalarchives/components/error-summary/template.njk +1 -1
  53. package/nationalarchives/components/featured-records/featured-records.css +1 -1
  54. package/nationalarchives/components/featured-records/featured-records.css.map +1 -1
  55. package/nationalarchives/components/featured-records/featured-records.scss +1 -1
  56. package/nationalarchives/components/featured-records/template.njk +1 -1
  57. package/nationalarchives/components/files/_index.scss +1 -0
  58. package/nationalarchives/components/files/files.css +1 -0
  59. package/nationalarchives/components/files/files.css.map +1 -0
  60. package/nationalarchives/components/files/files.scss +79 -0
  61. package/nationalarchives/components/files/files.stories.js +59 -0
  62. package/nationalarchives/components/files/fixtures.json +71 -0
  63. package/nationalarchives/components/files/macro-options.json +58 -0
  64. package/nationalarchives/components/files/macro.njk +3 -0
  65. package/nationalarchives/components/files/template.njk +33 -0
  66. package/nationalarchives/components/footer/footer.css +1 -1
  67. package/nationalarchives/components/footer/footer.css.map +1 -1
  68. package/nationalarchives/components/footer/footer.scss +0 -2
  69. package/nationalarchives/components/footer/macro-options.json +0 -6
  70. package/nationalarchives/components/footer/template.njk +1 -1
  71. package/nationalarchives/components/gallery/fixtures.json +35 -1
  72. package/nationalarchives/components/gallery/gallery.css +1 -1
  73. package/nationalarchives/components/gallery/gallery.css.map +1 -1
  74. package/nationalarchives/components/gallery/gallery.js +1 -1
  75. package/nationalarchives/components/gallery/gallery.js.map +1 -1
  76. package/nationalarchives/components/gallery/gallery.mjs +192 -53
  77. package/nationalarchives/components/gallery/gallery.scss +318 -56
  78. package/nationalarchives/components/gallery/gallery.stories.js +45 -32
  79. package/nationalarchives/components/gallery/macro-options.json +34 -49
  80. package/nationalarchives/components/gallery/template.njk +70 -33
  81. package/nationalarchives/components/global-header/global-header.css +1 -1
  82. package/nationalarchives/components/global-header/global-header.css.map +1 -1
  83. package/nationalarchives/components/global-header/global-header.scss +0 -2
  84. package/nationalarchives/components/global-header/template.njk +1 -1
  85. package/nationalarchives/components/grid/grid.css +1 -1
  86. package/nationalarchives/components/grid/grid.css.map +1 -1
  87. package/nationalarchives/components/grid/grid.scss +2 -2
  88. package/nationalarchives/components/grid/template.njk +1 -1
  89. package/nationalarchives/components/header/header.css +1 -1
  90. package/nationalarchives/components/header/header.css.map +1 -1
  91. package/nationalarchives/components/header/header.scss +3 -5
  92. package/nationalarchives/components/header/template.njk +1 -1
  93. package/nationalarchives/components/hero/hero.css.map +1 -1
  94. package/nationalarchives/components/hero/template.njk +1 -1
  95. package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
  96. package/nationalarchives/components/index-grid/template.njk +3 -3
  97. package/nationalarchives/components/pagination/pagination.css +1 -1
  98. package/nationalarchives/components/pagination/pagination.css.map +1 -1
  99. package/nationalarchives/components/pagination/pagination.scss +1 -1
  100. package/nationalarchives/components/pagination/template.njk +1 -1
  101. package/nationalarchives/components/phase-banner/phase-banner.css +1 -1
  102. package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
  103. package/nationalarchives/components/phase-banner/phase-banner.scss +0 -2
  104. package/nationalarchives/components/phase-banner/template.njk +1 -1
  105. package/nationalarchives/components/picture/picture.css.map +1 -1
  106. package/nationalarchives/components/picture/picture.js +1 -1
  107. package/nationalarchives/components/picture/picture.js.map +1 -1
  108. package/nationalarchives/components/picture/picture.mjs +2 -2
  109. package/nationalarchives/components/picture/template.njk +1 -1
  110. package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
  111. package/nationalarchives/components/quick-filters/template.njk +1 -1
  112. package/nationalarchives/components/radios/radios.css.map +1 -1
  113. package/nationalarchives/components/radios/radios.njk +1 -1
  114. package/nationalarchives/components/radios/template.njk +1 -1
  115. package/nationalarchives/components/search-field/search-field.css +1 -1
  116. package/nationalarchives/components/search-field/search-field.css.map +1 -1
  117. package/nationalarchives/components/search-field/search-field.scss +2 -1
  118. package/nationalarchives/components/search-field/template.njk +2 -2
  119. package/nationalarchives/components/search-filters/search-filters.css.map +1 -1
  120. package/nationalarchives/components/search-filters/template.njk +1 -1
  121. package/nationalarchives/components/select/select.css.map +1 -1
  122. package/nationalarchives/components/select/template.njk +2 -2
  123. package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
  124. package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
  125. package/nationalarchives/components/sensitive-image/sensitive-image.scss +1 -1
  126. package/nationalarchives/components/sensitive-image/template.njk +1 -1
  127. package/nationalarchives/components/sidebar/fixtures.json +6 -6
  128. package/nationalarchives/components/sidebar/macro-options.json +9 -2
  129. package/nationalarchives/components/sidebar/sidebar.css.map +1 -1
  130. package/nationalarchives/components/sidebar/sidebar.stories.js +9 -6
  131. package/nationalarchives/components/sidebar/template.njk +3 -3
  132. package/nationalarchives/components/skip-link/skip-link.css +1 -1
  133. package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
  134. package/nationalarchives/components/skip-link/skip-link.scss +0 -2
  135. package/nationalarchives/components/skip-link/template.njk +1 -1
  136. package/nationalarchives/components/tabs/tabs.css +1 -1
  137. package/nationalarchives/components/tabs/tabs.css.map +1 -1
  138. package/nationalarchives/components/tabs/tabs.scss +0 -12
  139. package/nationalarchives/components/tabs/template.njk +1 -1
  140. package/nationalarchives/components/text-input/template.njk +1 -1
  141. package/nationalarchives/components/text-input/text-input.css.map +1 -1
  142. package/nationalarchives/components/text-input/text-input.njk +2 -2
  143. package/nationalarchives/components/textarea/template.njk +2 -2
  144. package/nationalarchives/components/textarea/textarea.css.map +1 -1
  145. package/nationalarchives/components/warning/template.njk +1 -1
  146. package/nationalarchives/components/warning/warning.css.map +1 -1
  147. package/nationalarchives/components/warning/warning.scss +1 -0
  148. package/nationalarchives/global-header-package.css +1 -1
  149. package/nationalarchives/global-header-package.css.map +1 -1
  150. package/nationalarchives/print.css +6 -0
  151. package/nationalarchives/print.css.map +1 -0
  152. package/nationalarchives/print.scss +44 -0
  153. package/nationalarchives/prototype-kit.css +1 -3
  154. package/nationalarchives/prototype-kit.css.map +1 -1
  155. package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +28 -50
  156. package/nationalarchives/templates/layouts/_generic.njk +6 -6
  157. package/nationalarchives/tools/_a11y.scss +4 -0
  158. package/nationalarchives/tools/_colour.scss +52 -31
  159. package/nationalarchives/tools/_media.scss +0 -10
  160. package/nationalarchives/utilities/_overrides.scss +6 -0
  161. package/nationalarchives/utilities/_typography.scss +11 -10
  162. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TNAFrontend=e():t.TNAFrontend=e()}(self,(()=>(()=>{"use strict";var t={944:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function o(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{Accordion:()=>s});var s=o((function t(e){var i,n,r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,(n=a(n="polyfillRequired"))in i?Object.defineProperty(i,n,{value:null,enumerable:!0,configurable:!0,writable:!0}):i[n]=null,this.$module=e,this.$firstDetailsElement=e&&e.querySelector(".tna-accordion__details[name]"),this.$detailsElements=e&&this.$firstDetailsElement&&document.querySelectorAll('.tna-accordion__details[name="'.concat(this.$firstDetailsElement.getAttribute("name"),'"]')),this.$module&&this.$detailsElements&&Array.from(this.$detailsElements).forEach((function(t){t.addEventListener("toggle",(function(t){var e=t.target;e.hasAttribute("open")&&Array.from(r.$detailsElements).filter((function(t){return t!==e&&t.hasAttribute("open")})).forEach((function(t){return t.removeAttribute("open")}))}))}))}))},592:(t,e,i)=>{i.d(e,{Breadcrumbs:()=>l});var n=i(181);function r(t){return r="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},r(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function a(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var l=a((function t(e){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$breadcrumbsList=e&&e.querySelector(".tna-breadcrumbs__list"),this.$breadcrumbs=e&&this.$breadcrumbsList&&e.querySelectorAll(".tna-breadcrumbs__item"),this.$module&&this.$breadcrumbsList&&this.$breadcrumbs&&this.$breadcrumbs.length>2&&!this.$module.classList.contains("tna-breadcrumbs--no-collapse")){var r="tna-breadcrumbs-".concat((0,n.A)()),o=document.createElement("li");o.classList.add("tna-breadcrumbs__item","tna-breadcrumbs__item--expandable"),o.style.display="none";var a=document.createElement("button");a.classList.add("tna-breadcrumbs__link"),a.innerHTML="<span class='tna-!--visually-hidden'>Expand breadcrumbs</span>&hellip;",a.setAttribute("aria-expanded","false"),a.setAttribute("aria-controls",r),a.addEventListener("click",(function(){i.$module.classList.remove("tna-breadcrumbs--collapsed"),o.remove(),i.$module.setAttribute("tabindex","0"),i.$module.focus(),i.$module.setAttribute("tabindex","-1")})),o.appendChild(a),this.$breadcrumbsList.setAttribute("id",r),this.$breadcrumbsList.insertBefore(o,this.$breadcrumbs[this.$breadcrumbs.length-2].nextSibling),this.$module.classList.add("tna-breadcrumbs--collapsed")}}))},24:(t,e,i)=>{i.d(e,{CookieBanner:()=>s});var n=i(169);function r(t){return r="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},r(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$acceptButton=e&&e.querySelector('[value="accept"]'),this.$rejectButton=e&&e.querySelector('[value="reject"]'),this.$prompt=e&&e.querySelector(".tna-cookie-banner__message--prompt"),this.$acceptedMessage=e&&e.querySelector(".tna-cookie-banner__message--accepted"),this.$rejectedMessage=e&&e.querySelector(".tna-cookie-banner__message--rejected"),this.$closeButtons=e&&e.querySelectorAll('[value="close"]'),this.$module&&this.$acceptButton&&this.$rejectButton&&this.$prompt&&this.$acceptedMessage&&this.$rejectedMessage&&this.$closeButtons){var r=(this.$module.getAttribute("data-policies")||"").split(",").filter((function(t){return t})).map((function(t){return t.trim()})),o=this.$module.getAttribute("data-domain")||void 0,a=this.$module.getAttribute("data-path")||void 0,s=this.$module.getAttribute("data-secure")||void 0,l=this.$module.getAttribute("data-policieskey")||void 0;this.cookies=new n.A({extraPolicies:r,domain:o,path:a,secure:s,policiesKey:l,newInstance:!0}),this.cookiePreferencesSet=this.$module.getAttribute("data-preferenceskey")||"cookie_preferences_set",this.cookies.hasValue(this.cookiePreferencesSet,"true")||(this.$module.removeAttribute("hidden"),this.$acceptButton.addEventListener("click",(function(){return i.accept()})),this.$rejectButton.addEventListener("click",(function(){return i.reject()})))}},(e=[{key:"accept",value:function(){this.$prompt.setAttribute("hidden",!0),this.complete(),this.$acceptedMessage.removeAttribute("hidden"),this.$acceptedMessage.focus(),this.$acceptedMessage.setAttribute("tabindex","-1"),this.cookies.acceptAllPolicies()}},{key:"reject",value:function(){this.$prompt.setAttribute("hidden",!0),this.complete(),this.$rejectedMessage.removeAttribute("hidden"),this.$rejectedMessage.focus(),this.$rejectedMessage.setAttribute("tabindex","-1"),this.cookies.rejectAllPolicies()}},{key:"complete",value:function(){var t=this;this.cookies.set(this.cookiePreferencesSet,!0),this.$closeButtons.forEach((function(e){e.addEventListener("click",(function(){return t.close()}))}))}},{key:"close",value:function(){this.$module.setAttribute("hidden",!0)}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},552:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{ErrorSummary:()=>a});var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e},e=[{key:"init",value:function(){var t;this.$module&&(null!==(t="true"===this.$module.getAttribute("data-disableautofocus"))&&void 0!==t&&t||this.setFocus(this.$module))}},{key:"setFocus",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getAttribute("tabindex");function r(){var e;null===(e=i.onBlur)||void 0===e||e.call(t),n||t.removeAttribute("tabindex")}n||t.setAttribute("tabindex","-1"),t.addEventListener("focus",(function(){t.addEventListener("blur",r,{once:!0})}),{once:!0}),null===(e=i.onBeforeFocus)||void 0===e||e.call(t),t.focus()}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},876:(t,e,i)=>{i.d(e,{Footer:()=>s});var n=i(169);function r(t){return r="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},r(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$themeSelector=e&&e.querySelector(".tna-footer__theme-selector"),this.$tnaTemplate=document.querySelector(".tna-template"),this.$module&&this.$themeSelector&&this.$tnaTemplate&&(this.$themeSelectorButtons=this.$themeSelector.querySelectorAll("button.tna-footer__theme-selector-button[value]"),Array.from(this.$themeSelectorButtons).forEach((function(t){t.addEventListener("click",(function(t){var e=t.target;i.setTheme(e.value),i.selectThemeSelectorButton(e)}))})),this.cookies=new n.A,this.cookies.isPolicyAccepted("settings")&&this.showThemeSelector(),this.cookies.on("changePolicy",(function(t){Object.hasOwn(t,"settings")&&(!0===t.settings?i.showThemeSelector():(i.cookies.delete("theme"),i.hideThemeSelector()))})))},(e=[{key:"showThemeSelector",value:function(){var t=this;if(this.$themeSelector.removeAttribute("hidden"),this.cookies.exists("theme")){var e=Array.from(this.$themeSelectorButtons).find((function(e){return e.value===t.cookies.get("theme")}));e&&this.selectThemeSelectorButton(e)}}},{key:"hideThemeSelector",value:function(){this.$themeSelector.setAttribute("hidden",!0)}},{key:"setTheme",value:function(t){if("light"===t)this.$tnaTemplate.classList.remove("tna-template--system-theme","tna-template--dark-theme");else if("dark"===t)this.$tnaTemplate.classList.remove("tna-template--system-theme"),this.$tnaTemplate.classList.add("tna-template--dark-theme");else{if("system"!==t)return;this.$tnaTemplate.classList.remove("tna-template--dark-theme"),this.$tnaTemplate.classList.add("tna-template--system-theme")}this.cookies.set("theme",t)}},{key:"selectThemeSelectorButton",value:function(t){Array.from(this.$themeSelectorButtons).forEach((function(e){e.value===t.value?(e.classList.remove("tna-button--plain"),e.setAttribute("aria-current",!0)):(e.classList.add("tna-button--plain"),e.removeAttribute("aria-current"))}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},344:(t,e,i)=>{i.d(e,{Gallery:()=>s});var n=i(181);function r(t){return r="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},r(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$items=e&&e.querySelector(".tna-gallery__items"),this.opened=!1,this.$module&&this.$items&&(this.items=this.$module.querySelectorAll(".tna-gallery__item").length,this.items>1)){var r="tna-gallery-".concat((0,n.A)());this.$module.classList.add("tna-gallery--collapsed"),this.$items.setAttribute("tabindex","-1"),this.$galleryToggle=document.createElement("button"),this.$galleryToggle.classList.add("tna-gallery__toggle","tna-button","tna-button--accent"),this.$galleryToggle.setAttribute("aria-controls",r),this.$galleryToggle.setAttribute("aria-expanded",!1),this.$galleryToggle.innerText="View ".concat(this.items," images"),this.$galleryToggle.addEventListener("click",(function(){i.handleToggleGallery()})),this.$galleryToggleWrapper=document.createElement("div"),this.$galleryToggleWrapper.classList.add("tna-column","tna-column--full","tna-gallery__toggle-wrapper"),this.$galleryToggleWrapper.appendChild(this.$galleryToggle),this.$items.parentElement.appendChild(this.$galleryToggleWrapper),this.$items.setAttribute("id",r)}},(e=[{key:"handleToggleGallery",value:function(){this.opened=!this.opened,this.opened?(this.$module.classList.remove("tna-gallery--collapsed"),this.$galleryToggle.setAttribute("aria-expanded",!0),this.$galleryToggle.innerText="Close images",this.$items.setAttribute("tabindex","0"),this.$items.focus(),this.$items.setAttribute("tabindex","-1")):(this.$module.classList.add("tna-gallery--collapsed"),this.$galleryToggle.setAttribute("aria-expanded",!1),this.$galleryToggle.innerText="View ".concat(this.items," images"))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},576:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{GlobalHeader:()=>a});var a=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$toggleButton=e&&e.querySelector(".tna-global-header__navigation-button"),this.$navigation=e&&e.querySelector(".tna-global-header__navigation-wrapper"),this.$topNavigation=e&&e.querySelector(".tna-global-header__top-navigation-wrapper"),this.$links=e&&(this.$navigation&&this.$navigation.querySelectorAll("[tabindex='0']")||this.$topNavigation&&this.$topNavigation.querySelectorAll("[tabindex='0']")),this.menuOpened=!1,this.mql=window.matchMedia("(max-width: 48em)"),this.$module&&this.$toggleButton&&(this.$navigation||this.$topNavigation)&&(this.$toggleButton.removeAttribute("hidden"),this.syncState(),this.$toggleButton.addEventListener("click",(function(){return i.handleToggleNavigation()})),"addEventListener"in this.mql?this.mql.addEventListener("change",(function(){return i.syncState()})):this.mql.addListener((function(){return i.syncState()})),this.$navigation.addEventListener("keyup",(function(t){"Escape"===t.code&&(i.menuOpened=!1,i.syncState(),i.$toggleButton.focus())})),this.$topNavigation.addEventListener("keyup",(function(t){"Escape"===t.code&&(i.menuOpened=!1,i.syncState(),i.$toggleButton.focus())})))},(e=[{key:"handleToggleNavigation",value:function(){this.menuOpened=!this.menuOpened,this.syncState()}},{key:"syncState",value:function(){this.mql.matches?this.menuOpened?this.show():this.hide():this.show()}},{key:"hide",value:function(){this.$navigation&&(this.$navigation.hidden=!0,this.$navigation.setAttribute("aria-hidden","true")),this.$topNavigation&&(this.$topNavigation.hidden=!0,this.$topNavigation.setAttribute("aria-hidden","true")),this.$toggleButton.setAttribute("aria-expanded","false"),this.$toggleButton.setAttribute("title","Open menu"),this.$toggleButton.classList.remove("tna-global-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","-1")}},{key:"show",value:function(){this.$navigation&&(this.$navigation.hidden=!1,this.$navigation.setAttribute("aria-hidden","false")),this.$topNavigation&&(this.$topNavigation.hidden=!1,this.$topNavigation.setAttribute("aria-hidden","false")),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu"),this.$toggleButton.classList.add("tna-global-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","0")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},432:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{Header:()=>a});var a=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$toggleButton=e&&e.querySelector(".tna-header__navigation-toggle-button"),this.$navigation=e&&e.querySelector(".tna-header__navigation"),this.$links=e&&this.$navigation&&this.$navigation.querySelectorAll("[tabindex='0']"),this.menuOpened=!1,this.mql=window.matchMedia("(max-width: 48em)"),this.$module&&this.$toggleButton&&this.$navigation&&(this.$toggleButton.removeAttribute("hidden"),this.syncState(),this.$toggleButton.addEventListener("click",(function(){return i.handleToggleNavigation()})),"addEventListener"in this.mql?this.mql.addEventListener("change",(function(){return i.syncState()})):this.mql.addListener((function(){return i.syncState()})),this.$navigation.addEventListener("keyup",(function(t){"Escape"===t.code&&(i.menuOpened=!1,i.syncState(),i.$toggleButton.focus())})))},(e=[{key:"handleToggleNavigation",value:function(){this.menuOpened=!this.menuOpened,this.syncState()}},{key:"syncState",value:function(){this.mql.matches?this.menuOpened?this.show():this.hide():this.show()}},{key:"show",value:function(){this.$navigation.classList.add("tna-header__navigation--open"),this.$navigation.hidden=!1,this.$navigation.setAttribute("aria-hidden","false"),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu"),this.$toggleButton.classList.add("tna-header__navigation-toggle-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","0")}},{key:"hide",value:function(){this.$navigation.classList.remove("tna-header__navigation--open"),this.$navigation.hidden=!0,this.$navigation.setAttribute("aria-hidden","true"),this.$toggleButton.setAttribute("aria-expanded","false"),this.$toggleButton.setAttribute("title","Open menu"),this.$toggleButton.classList.remove("tna-header__navigation-toggle-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","-1")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},384:(t,e,i)=>{i.d(e,{Picture:()=>s});var n=i(181);function r(t){return r="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},r(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$imageWrapper=e&&e.querySelector(".tna-picture__image-wrapper"),this.$transcript=e&&e.querySelector(".tna-picture__transcript"),this.transcriptOpened=!1,this.$module&&this.$imageWrapper&&this.$transcript){this.openLabel=this.$module.getAttribute("data-informationlabelopen")||"Open transcript",this.closeLabel=this.$module.getAttribute("data-informationlabelclose")||"Close transcript";var r="tna-picture-".concat((0,n.A)());this.$transcriptToggle=document.createElement("button"),this.$transcriptToggle.classList.add("tna-picture__toggle-transcript","tna-button","tna-button--small","tna-button--solid-hover"),this.$transcriptToggle.setAttribute("aria-controls",r),this.$transcriptToggle.setAttribute("aria-expanded",!1),this.$transcriptToggle.innerText=this.openLabel,this.$transcriptToggle.addEventListener("click",(function(){return i.handleToggleTranscript()})),this.$imageWrapper.appendChild(this.$transcriptToggle),this.$transcript.setAttribute("id",r),this.$transcript.setAttribute("hidden",!0)}},(e=[{key:"handleToggleTranscript",value:function(){this.transcriptOpened=!this.transcriptOpened,this.transcriptOpened?(this.$transcriptToggle.setAttribute("aria-expanded",!0),this.$transcriptToggle.innerText=this.closeLabel,this.$transcript.removeAttribute("hidden")):(this.$transcriptToggle.setAttribute("aria-expanded",!1),this.$transcriptToggle.innerText=this.openLabel,this.$transcript.setAttribute("hidden",!0))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},922:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{SearchFilters:()=>a});var a=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$module&&(this.$module.classList.add("tna-search-filters--js-enabled"),Array.from(this.$module.querySelectorAll(".tna-search-filters__fieldset")).forEach((function(t){var e=t.querySelector(".tna-search-filters__item-toggle"),n=t.querySelector(".tna-search-filters__heading-inner"),r=t.querySelector(".tna-search-filters__item");e&&n&&r&&(e.removeAttribute("hidden"),n.remove(),i.syncItem(e,r),e.addEventListener("click",(function(){i.toggleItem(e,r)})))})))},(e=[{key:"toggleItem",value:function(t,e){t.setAttribute("aria-expanded","false"==t.getAttribute("aria-expanded")),this.syncItem(t,e)}},{key:"syncItem",value:function(t,e){"true"==t.getAttribute("aria-expanded")?e.removeAttribute("hidden"):e.setAttribute("hidden",!0)}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},352:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{SensitiveImage:()=>a});var a=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$imageDetails=e&&e.querySelector(".tna-sensitive-image__details"),this.$image=e&&e.querySelector(".tna-sensitive-image__image"),this.imageIsVisible=!1,this.$module&&this.$imageDetails&&this.$image&&this.$imageDetails.addEventListener("toggle",(function(){return i.handleImageDetailsToggle()}))},(e=[{key:"handleImageDetailsToggle",value:function(){this.$imageDetails.hasAttribute("open")&&this.$image.focus({preventScroll:!0,focusVisible:!0})}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},292:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{SkipLink:()=>a});var a=function(){return t=function t(e){var i,n,r,a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,r=!1,(n=o(n="linkedElementListener"))in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,this.$module=e,this.linkedElementId=e.getAttribute("href").split("#").pop(),this.$linkedElement=e&&this.linkedElementId&&document.getElementById(this.linkedElementId),this.$module&&this.$linkedElement&&this.$module.addEventListener("click",(function(){return a.focusLinkedElement()}))},(e=[{key:"focusLinkedElement",value:function(){var t=this;this.$linkedElement.getAttribute("tabindex")||(this.$linkedElement.setAttribute("tabindex","-1"),this.$linkedElement.classList.add("tna-!--no-focus-style"),this.linkedElementListener||(this.$linkedElement.addEventListener("blur",(function(){return t.removeFocusProperties()})),this.linkedElementListener=!0)),this.$linkedElement.focus()}},{key:"removeFocusProperties",value:function(){this.$linkedElement.removeAttribute("tabindex"),this.$linkedElement.classList.remove("tna-!--no-focus-style")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},42:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,e):void 0}}(t)||function(){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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{Tabs:()=>l});var l=function(){return t=function t(e){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$tabList=e&&e.querySelector(".tna-tabs__list"),this.$tabListItemLinks=e&&this.$tabList&&e.querySelectorAll(".tna-tabs__list-item-link"),this.$tabItems=e&&e.querySelectorAll(".tna-tabs__item"),this.$module&&this.$tabList&&this.$tabListItemLinks&&this.$tabItems&&this.$tabListItemLinks.length===this.$tabItems.length){this.sticky=this.$module.classList.contains("tna-tabs--sticky");var n=window.location.hash.replace(/^#/,""),o=r(this.$tabItems).some((function(t){return t.getAttribute("id")===n}));this.$newTabList=document.createElement("div"),this.$newTabList.setAttribute("role","tablist"),this.$newTabList.setAttribute("class",this.$tabList.getAttribute("class")),this.$tabItems.forEach((function(t,e){t.setAttribute("role","tabpanel"),t.setAttribute("aria-labelledby","".concat(t.getAttribute("id"),"-tab")),t.setAttribute("tabindex","0"),(o&&t.getAttribute("id")!==n||!o&&e>0)&&t.setAttribute("hidden",!0)})),this.$tabListItemLinks.forEach((function(t){var e,n=document.createElement("button");n.innerText=t.innerText,n.setAttribute("class",t.getAttribute("class")),n.setAttribute("role","tab"),n.setAttribute("id",t.getAttribute("id")),n.setAttribute("aria-controls",null===(e=t.getAttribute("href"))||void 0===e?void 0:e.replace(/^#/,"")),n.setAttribute("tabindex","-1"),i.$newTabList.appendChild(n)})),this.$tabList.replaceWith(this.$newTabList),this.$tabListItemLinks=this.$module.querySelectorAll(".tna-tabs__list-item-link"),this.$tabListItemLinks.forEach((function(t,e){n&&t.getAttribute("aria-controls")==="".concat(n)||!n&&0===e?(t.classList.add("tna-tabs__list-item-link--selected"),t.setAttribute("aria-selected",!0),t.setAttribute("tabindex","0")):t.setAttribute("aria-selected",!1),t.addEventListener("keydown",(function(t){return i.handleItemLinkKeyDown(t)}),!0),t.addEventListener("click",(function(t){return i.handleItemLinkClick(t)}),!0)}))}},(e=[{key:"handleItemLinkClick",value:function(t){t.preventDefault();var e=t.currentTarget.getAttribute("aria-controls");this.switchTab(e)}},{key:"handleItemLinkKeyDown",value:function(t){var e=t.currentTarget,i=!1;switch(t.key){case"ArrowLeft":case"ArrowUp":this.setSelectedToPreviousTab(e),i=!0;break;case"ArrowRight":case"ArrowDown":this.setSelectedToNextTab(e),i=!0;break;case"Home":this.switchTab(this.$tabListItemLinks[0].getAttribute("aria-controls")),i=!0;break;case"End":this.switchTab(this.$tabListItemLinks[this.$tabListItemLinks.length-1].getAttribute("aria-controls")),i=!0}i&&(t.stopPropagation(),t.preventDefault())}},{key:"setSelectedToNextTab",value:function(t){var e,i=r(this.$tabListItemLinks).findIndex((function(e){return e.getAttribute("id")===t.getAttribute("id")}));e=i<this.$tabListItemLinks.length-1?i+1:0,this.switchTab(this.$tabListItemLinks[e].getAttribute("aria-controls"))}},{key:"setSelectedToPreviousTab",value:function(t){var e,i=r(this.$tabListItemLinks).findIndex((function(e){return e.getAttribute("id")===t.getAttribute("id")}));e=i>=1?i-1:this.$tabListItemLinks.length-1,this.switchTab(this.$tabListItemLinks[e].getAttribute("aria-controls"))}},{key:"switchTab",value:function(t){this.$tabListItemLinks.forEach((function(e){e.getAttribute("aria-controls")===t?(e.classList.add("tna-tabs__list-item-link--selected"),e.setAttribute("aria-selected",!0),e.setAttribute("tabindex","0"),e.focus()):(e.classList.remove("tna-tabs__list-item-link--selected"),e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"))})),this.$tabItems.forEach((function(e){e.getAttribute("id")===t?(e.removeAttribute("hidden"),e.setAttribute("tabindex","0")):(e.setAttribute("hidden",!0),e.setAttribute("tabindex","-1"))})),this.sticky&&(history.replaceState?history.replaceState(null,null,"#".concat(t)):location.hash="#".concat(t))}}])&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},169:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(t,e):void 0}}(t)||function(){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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function c(t,e,i){return e&&u(t.prototype,e),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t,e,i){return(e=d(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function d(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{A:()=>f}),window.TNAFrontendCookies=window.TNAFrontendCookies||null,window.TNAFrontendCookieEvents=window.TNAFrontendCookieEvents||null;var m=function(){return c((function t(){if(l(this,t),h(this,"events",{}),h(this,"oneTimeEvents",{}),window.TNAFrontendCookieEvents)return window.TNAFrontendCookieEvents;window.TNAFrontendCookieEvents=this}),[{key:"on",value:function(t,e){Object.hasOwn(this.events,t)||(this.events[t]=[]),this.events[t]=[].concat(a(this.events[t]),[e])}},{key:"once",value:function(t,e){Object.hasOwn(this.oneTimeEvents,t)||(this.oneTimeEvents[t]=[]),this.oneTimeEvents[t]=[].concat(a(this.oneTimeEvents[t]),[e])}},{key:"trigger",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.hasOwn(this.events,t)&&this.events[t].forEach((function(t){return t.call(e,i)})),Object.hasOwn(this.oneTimeEvents,t))for(var n=this.oneTimeEvents[t].length-1;n>=0;n--)this.oneTimeEvents[t][n].call(this,i),this.oneTimeEvents[t].splice(n,1)}}])}(),f=function(){return c((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,t),h(this,"extraPolicies",[]),h(this,"domain",""),h(this,"path",""),h(this,"secure",!0),h(this,"policiesKey",""),h(this,"events",null);var i=e.extraPolicies,n=void 0===i?[]:i,r=e.domain,o=void 0===r?"":r,a=e.path,s=void 0===a?"/":a,u=e.secure,c=void 0===u||u,d=e.policiesKey,f=void 0===d?"cookies_policy":d,b=e.newInstance;if(void 0!==b&&b)this.destroyInstance();else if(window.TNAFrontendCookies)return window.TNAFrontendCookies;this.extraPolicies=n,this.domain=o,this.path=s,this.secure=c,this.policiesKey=f,this.events=new m,this.init(),window.TNAFrontendCookies=this}),[{key:"init",value:function(){this.savePolicies(o(o(o({},Object.fromEntries(this.extraPolicies.map((function(t){return[t.toLowerCase(),!1]})))),{},{usage:!1,settings:!1},this.policies),{},{essential:!0}))}},{key:"destroyInstance",value:function(){window.TNAFrontendCookies=null}},{key:"all",get:function(){var t={};return document.cookie.split("; ").filter((function(t){return t})).forEach((function(e){var i=e.trim().split("=");i[0]&&(t[i[0]]=i[1])})),t}},{key:"policies",get:function(){try{return JSON.parse(this.get(this.policiesKey)||"{}")}catch(t){return{}}}},{key:"exists",value:function(t){return Object.hasOwn(this.all,t)}},{key:"hasValue",value:function(t,e){return this.get(t)==e}},{key:"get",value:function(t){return this.exists(t)?decodeURIComponent(this.all[t]):null}},{key:"set",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.maxAge,r=void 0===n?31536e3:n,o=i.sameSite,a=void 0===o?"Lax":o,s=i.domain,l=void 0===s?this.domain:s,u=i.path,c=void 0===u?this.path:u,h=i.secure,d=void 0===h?this.secure:h;if(t){var m="".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e),";").concat(l?" domain=".concat(l,"; "):""," samesite=").concat(a,"; path=").concat(c,"; max-age=").concat(r).concat(d?"; secure":"");document.cookie=m,this.events.trigger("setCookie",{key:t,value:e,maxAge:r,path:c,sameSite:a,domain:l,secure:d,cookie:m})}}},{key:"delete",value:function(t){var e={maxAge:-1,path:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",domain:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)||void 0};this.set(t,"",e),this.events.trigger("deleteCookie",o({key:t},e))}},{key:"deleteAll",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Object.keys(this.all).forEach((function(n){t.delete(n,e,i)})),this.events.trigger("deleteAllCookies",{path:e,domain:i})}},{key:"acceptPolicy",value:function(t){this.setPolicy(t,!0),this.events.trigger("acceptPolicy",t),this.events.trigger("changePolicy",h({},t,!0))}},{key:"rejectPolicy",value:function(t){this.setPolicy(t,!1),this.events.trigger("rejectPolicy",t),this.events.trigger("changePolicy",h({},t,!1))}},{key:"setPolicy",value:function(t,e){"essential"!==t&&(this.savePolicies(o(o({},this.policies),{},h(h({},t,e),"essential",!0))),this.events.trigger("changePolicy",h({},t,e)))}},{key:"acceptAllPolicies",value:function(){var t=Object.fromEntries(Object.keys(this.policies).map((function(t){return[t.toLowerCase(),!0]})));this.savePolicies(t),this.events.trigger("acceptAllPolicies"),this.events.trigger("changePolicy",t)}},{key:"rejectAllPolicies",value:function(){var t=o(o({},Object.fromEntries(Object.keys(this.policies).map((function(t){return[t.toLowerCase(),!1]})))),{},{essential:!0});this.savePolicies(t),this.events.trigger("rejectAllPolicies"),this.events.trigger("changePolicy",t)}},{key:"savePolicies",value:function(t){this.set(this.policiesKey,JSON.stringify(t))}},{key:"isPolicyAccepted",value:function(t){return Object.hasOwn(this.policies,t)?!0===this.policies[t]:null}},{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"once",value:function(t,e){this.events.once(t,e)}}])}()},181:(t,e,i)=>{i.d(e,{A:()=>n});const n=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};i.r(n),i.d(n,{Accordion:()=>r.Accordion,Breadcrumbs:()=>o.Breadcrumbs,CookieBanner:()=>a.CookieBanner,Cookies:()=>p.A,ErrorSummary:()=>s.ErrorSummary,Footer:()=>l.Footer,Gallery:()=>u.Gallery,GlobalHeader:()=>c.GlobalHeader,Header:()=>h.Header,Picture:()=>d.Picture,SearchFilters:()=>m.SearchFilters,SensitiveImage:()=>f.SensitiveImage,SkipLink:()=>b.SkipLink,Tabs:()=>y.Tabs,initAll:()=>g});var r=i(944),o=i(592),a=i(24),s=i(552),l=i(876),u=i(344),c=i(576),h=i(432),d=i(384),m=i(922),f=i(352),b=i(292),y=i(42),p=i(169),v=document.documentElement;v.classList.add("tna-template--js-enabled"),window.addEventListener("touchstart",(function t(){window.removeEventListener("touchstart",t),v.classList.add("tna-template--touched")})),window.addEventListener("keydown",(function(t){"Tab"===t.key&&(v.classList.add("tna-template--tabbed"),v.classList.remove("tna-template--clicked"))})),window.addEventListener("mousedown",(function(){v.classList.add("tna-template--clicked"),v.classList.remove("tna-template--tabbed")}));var g=function(t){var e=(t=void 0!==t?t:{}).scope instanceof HTMLElement?t.scope:document;e.querySelectorAll('[data-module="tna-accordion"]').forEach((function(t){new r.Accordion(t)}));var i=e.querySelector('[data-module="tna-breadcrumbs"]');i&&new o.Breadcrumbs(i);var n=e.querySelector('[data-module="tna-cookie-banner"]');n&&new a.CookieBanner(n);var p=e.querySelector('[data-module="tna-error-summary"]');p&&new s.ErrorSummary(p).init();var v=e.querySelector('[data-module="tna-footer"]');v&&new l.Footer(v),e.querySelectorAll('[data-module="tna-gallery"]').forEach((function(t){new u.Gallery(t)}));var g=e.querySelector('[data-module="tna-global-header"]');g&&new c.GlobalHeader(g);var $=e.querySelector('[data-module="tna-header"]');$&&new h.Header($),e.querySelectorAll('[data-module="tna-picture"]').forEach((function(t){new d.Picture(t)})),e.querySelectorAll('[data-module="tna-search-filters"]').forEach((function(t){new m.SearchFilters(t)})),e.querySelectorAll('[data-module="tna-sensitive-image"]').forEach((function(t){new f.SensitiveImage(t)})),e.querySelectorAll('[data-module="tna-skip-link"]').forEach((function(t){new b.SkipLink(t)})),e.querySelectorAll('[data-module="tna-tabs"]').forEach((function(t){new y.Tabs(t)}))};return n})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TNAFrontend=e():t.TNAFrontend=e()}(self,(()=>(()=>{"use strict";var t={944:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{Accordion:()=>a});var a=function(){return t=function t(e){var i,n,r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,(n=o(n="polyfillRequired"))in i?Object.defineProperty(i,n,{value:null,enumerable:!0,configurable:!0,writable:!0}):i[n]=null,this.$module=e,this.$items=e&&e.querySelectorAll(".tna-accordion__item"),this.$module&&this.$items&&(this.allowMultipleItemsOpen="true"===this.$module.dataset.multipleitems,this.$items.forEach((function(t){return r.initItem(t)})),this.initState())},(e=[{key:"initItem",value:function(t){var e=this,i=t.querySelector(".tna-accordion__heading"),n=t.querySelector(".tna-accordion__body");if(i&&n){t.classList.add("tna-accordion__details"),t.classList.remove("tna-accordion__item"),i.removeAttribute("class"),n.classList.add("tna-accordion__content"),n.classList.remove("tna-accordion__body"),n.setAttribute("hidden","until-found"),n.addEventListener("blur",(function(){n.removeAttribute("tabindex")}));var r=document.createElement("button");r.classList.add("tna-accordion__summary"),r.setAttribute("aria-controls",n.id),i.parentNode.insertBefore(r,i.nextSibling),r.appendChild(i),r.addEventListener("click",(function(){"true"===r.getAttribute("aria-expanded")?e.closeItem(t):e.openItem(t)}))}}},{key:"initState",value:function(){var t=this;this.$items.forEach((function(e){"true"===e.dataset.isopen?t.openItem(e):t.closeItem(e),e.removeAttribute("data-isopen")}))}},{key:"openItem",value:function(t){this.allowMultipleItemsOpen||this.closeAllItemsExcept(t);var e=t.querySelector(".tna-accordion__summary"),i=t.querySelector(".tna-accordion__content");e.setAttribute("aria-expanded","true"),e.setAttribute("aria-label","".concat(e.innerText,", Hide this section")),i.removeAttribute("hidden"),i.setAttribute("tabindex","0"),i.focus()}},{key:"closeItem",value:function(t){var e=t.querySelector(".tna-accordion__summary"),i=t.querySelector(".tna-accordion__content");e.setAttribute("aria-expanded","false"),e.setAttribute("aria-label","".concat(e.innerText,", Show this section")),i.setAttribute("hidden","until-found")}},{key:"closeAllItemsExcept",value:function(t){var e=this;Array.from(this.$items).filter((function(e){return e.querySelector(".tna-accordion__summary")!==t&&"true"===e.querySelector(".tna-accordion__summary").getAttribute("aria-expanded")})).forEach((function(t){return e.closeItem(t)}))}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},592:(t,e,i)=>{i.d(e,{Breadcrumbs:()=>l});var n=i(181);function r(t){return r="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},r(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function a(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var l=a((function t(e){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$breadcrumbsList=e&&e.querySelector(".tna-breadcrumbs__list"),this.$breadcrumbs=e&&this.$breadcrumbsList&&e.querySelectorAll(".tna-breadcrumbs__item"),this.$module&&this.$breadcrumbsList&&this.$breadcrumbs&&this.$breadcrumbs.length>2&&!this.$module.classList.contains("tna-breadcrumbs--no-collapse")){var r="tna-breadcrumbs-".concat((0,n.A)()),o=document.createElement("li");o.classList.add("tna-breadcrumbs__item","tna-breadcrumbs__item--expandable"),o.style.display="none";var a=document.createElement("button");a.classList.add("tna-breadcrumbs__link"),a.innerHTML="<span class='tna-!--visually-hidden'>Expand breadcrumbs</span>&hellip;",a.setAttribute("aria-expanded","false"),a.setAttribute("aria-controls",r),a.addEventListener("click",(function(){i.$module.classList.remove("tna-breadcrumbs--collapsed"),o.remove(),i.$module.setAttribute("tabindex","0"),i.$module.focus(),i.$module.setAttribute("tabindex","-1")})),o.appendChild(a),this.$breadcrumbsList.setAttribute("id",r),this.$breadcrumbsList.insertBefore(o,this.$breadcrumbs[this.$breadcrumbs.length-2].nextSibling),this.$module.classList.add("tna-breadcrumbs--collapsed")}}))},24:(t,e,i)=>{i.d(e,{CookieBanner:()=>s});var n=i(169);function r(t){return r="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},r(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$acceptButton=e&&e.querySelector('[value="accept"]'),this.$rejectButton=e&&e.querySelector('[value="reject"]'),this.$prompt=e&&e.querySelector(".tna-cookie-banner__message--prompt"),this.$acceptedMessage=e&&e.querySelector(".tna-cookie-banner__message--accepted"),this.$rejectedMessage=e&&e.querySelector(".tna-cookie-banner__message--rejected"),this.$closeButtons=e&&e.querySelectorAll('[value="close"]'),this.$module&&this.$acceptButton&&this.$rejectButton&&this.$prompt&&this.$acceptedMessage&&this.$rejectedMessage&&this.$closeButtons){var r=(this.$module.getAttribute("data-policies")||"").split(",").filter((function(t){return t})).map((function(t){return t.trim()})),o=this.$module.getAttribute("data-domain")||void 0,a=this.$module.getAttribute("data-path")||void 0,s=this.$module.getAttribute("data-secure")||void 0,l=this.$module.getAttribute("data-policieskey")||void 0;this.cookies=new n.A({extraPolicies:r,domain:o,path:a,secure:s,policiesKey:l,newInstance:!0}),this.cookiePreferencesSet=this.$module.getAttribute("data-preferenceskey")||"cookie_preferences_set",this.cookies.hasValue(this.cookiePreferencesSet,"true")||(this.$module.removeAttribute("hidden"),this.$acceptButton.addEventListener("click",(function(){return i.accept()})),this.$rejectButton.addEventListener("click",(function(){return i.reject()})))}},(e=[{key:"accept",value:function(){this.$prompt.setAttribute("hidden",!0),this.complete(),this.$acceptedMessage.removeAttribute("hidden"),this.$acceptedMessage.focus(),this.$acceptedMessage.setAttribute("tabindex","-1"),this.cookies.acceptAllPolicies()}},{key:"reject",value:function(){this.$prompt.setAttribute("hidden",!0),this.complete(),this.$rejectedMessage.removeAttribute("hidden"),this.$rejectedMessage.focus(),this.$rejectedMessage.setAttribute("tabindex","-1"),this.cookies.rejectAllPolicies()}},{key:"complete",value:function(){var t=this;this.cookies.set(this.cookiePreferencesSet,!0),this.$closeButtons.forEach((function(e){e.addEventListener("click",(function(){return t.close()}))}))}},{key:"close",value:function(){this.$module.setAttribute("hidden",!0)}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},552:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{ErrorSummary:()=>a});var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e},e=[{key:"init",value:function(){var t;this.$module&&(null!==(t="true"===this.$module.getAttribute("data-disableautofocus"))&&void 0!==t&&t||this.setFocus(this.$module))}},{key:"setFocus",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getAttribute("tabindex");function r(){var e;null===(e=i.onBlur)||void 0===e||e.call(t),n||t.removeAttribute("tabindex")}n||t.setAttribute("tabindex","-1"),t.addEventListener("focus",(function(){t.addEventListener("blur",r,{once:!0})}),{once:!0}),null===(e=i.onBeforeFocus)||void 0===e||e.call(t),t.focus()}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},876:(t,e,i)=>{i.d(e,{Footer:()=>s});var n=i(169);function r(t){return r="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},r(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$themeSelector=e&&e.querySelector(".tna-footer__theme-selector"),this.$tnaTemplate=document.querySelector(".tna-template"),this.$module&&this.$themeSelector&&this.$tnaTemplate&&(this.$themeSelectorButtons=this.$themeSelector.querySelectorAll("button.tna-footer__theme-selector-button[value]"),Array.from(this.$themeSelectorButtons).forEach((function(t){t.addEventListener("click",(function(t){var e=t.target;i.setTheme(e.value),i.selectThemeSelectorButton(e)}))})),this.cookies=new n.A,this.cookies.isPolicyAccepted("settings")&&this.showThemeSelector(),this.cookies.on("changePolicy",(function(t){Object.hasOwn(t,"settings")&&(!0===t.settings?i.showThemeSelector():(i.cookies.delete("theme"),i.hideThemeSelector()))})))},(e=[{key:"showThemeSelector",value:function(){var t=this;if(this.$themeSelector.removeAttribute("hidden"),this.cookies.exists("theme")){var e=Array.from(this.$themeSelectorButtons).find((function(e){return e.value===t.cookies.get("theme")}));e&&this.selectThemeSelectorButton(e)}}},{key:"hideThemeSelector",value:function(){this.$themeSelector.setAttribute("hidden",!0)}},{key:"setTheme",value:function(t){if("light"===t)this.$tnaTemplate.classList.remove("tna-template--system-theme","tna-template--dark-theme");else if("dark"===t)this.$tnaTemplate.classList.remove("tna-template--system-theme"),this.$tnaTemplate.classList.add("tna-template--dark-theme");else{if("system"!==t)return;this.$tnaTemplate.classList.remove("tna-template--dark-theme"),this.$tnaTemplate.classList.add("tna-template--system-theme")}this.cookies.set("theme",t)}},{key:"selectThemeSelectorButton",value:function(t){Array.from(this.$themeSelectorButtons).forEach((function(e){e.value===t.value?(e.classList.remove("tna-button--plain"),e.setAttribute("aria-current",!0)):(e.classList.add("tna-button--plain"),e.removeAttribute("aria-current"))}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},344:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{Gallery:()=>a});var a=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$itemsContainer=e&&e.querySelector(".tna-gallery__items"),this.$items=this.$itemsContainer&&this.$itemsContainer.querySelectorAll(".tna-gallery__item"),this.$navigation=e&&e.querySelector(".tna-gallery__navigation"),this.$navigationItems=this.$navigation&&e.querySelectorAll(".tna-gallery__navigation-item"),this.$options=e&&e.querySelector(".tna-gallery__options"),this.$navigationButtons=e&&e.querySelector(".tna-gallery__navigation-buttons"),this.$module&&this.$itemsContainer&&this.$items&&this.$navigation&&this.$navigationItems&&this.$options&&this.$navigationButtons&&(this.$module.classList.add("tna-gallery--js"),this.$showIndex=this.$options.querySelector('button[value="show-index"]'),this.$enterFullscreen=this.$options.querySelector('button[value="enter-fullscreen"]'),this.$exitFullscreen=this.$options.querySelector('button[value="exit-fullscreen"]'),this.$navigationButtonPrev=this.$navigationButtons.querySelector(".tna-gallery__navigation-prev"),this.$navigationButtonNext=this.$navigationButtons.querySelector(".tna-gallery__navigation-next"),this.$module.addEventListener("fullscreenchange",(function(){return i.syncFullScreen()})),this.setup(),this.allowIndex=!1,this.allowIndex?this.showIndex():(this.currentId=this.$items[0].id,this.showItem(this.currentId)))},e=[{key:"setup",value:function(){var t,e,i,n,r,o,a,s=this;this.$items.forEach((function(t){t.setAttribute("hidden","until-found"),t.setAttribute("role","tabpanel")})),this.$navigation.removeAttribute("hidden"),this.$navigationItems.forEach((function(t){t.addEventListener("click",(function(){return s.showItem(t.getAttribute("aria-controls"),!0)}))})),this.$module.setAttribute("tabindex","0"),this.$module.addEventListener("keydown",(function(t){switch(t.key){case"ArrowLeft":case"ArrowUp":s.showPreviousItem();break;case"ArrowRight":case"ArrowDown":s.showNextItem();break;case"Home":s.showFirstItem();break;case"End":s.showLastItem()}})),this.$options.removeAttribute("hidden"),document.fullscreenEnabled&&this.$enterFullscreen&&this.$exitFullscreen&&(null===(r=this.$enterFullscreen)||void 0===r||r.addEventListener("click",(function(){return s.enterFullScreen()})),null===(o=this.$exitFullscreen)||void 0===o||o.addEventListener("click",(function(){return s.exitFullScreen()})),null===(a=this.$enterFullscreen)||void 0===a||a.removeAttribute("hidden")),null===(t=this.$showIndex)||void 0===t||t.addEventListener("click",(function(){return s.showIndex()})),null===(e=this.$navigationButtons)||void 0===e||e.removeAttribute("hidden"),null===(i=this.$navigationButtonPrev)||void 0===i||i.addEventListener("click",(function(){return s.showPreviousItem()})),null===(n=this.$navigationButtonNext)||void 0===n||n.addEventListener("click",(function(){return s.showNextItem()}))}},{key:"showIndex",value:function(){var t;this.showItem(""),this.$itemsContainer.setAttribute("tabindex","-1"),null===(t=this.$showIndex)||void 0===t||t.setAttribute("hidden",!0)}},{key:"showItem",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$items.forEach((function(e){t&&e.id===t?(e.removeAttribute("hidden"),e.removeAttribute("tabindex")):(e.setAttribute("hidden","until-found"),e.setAttribute("tabindex","-1"))})),this.$navigationItems.forEach((function(e,i){t?e.getAttribute("aria-controls")===t?(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")):(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1")):(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex",0===i?"0":"-1"))})),this.allowIndex&&(null===(e=this.$showIndex)||void 0===e||e.removeAttribute("hidden")),this.currentId=t,this.$itemsContainer.setAttribute("tabindex","0"),i&&this.$itemsContainer.focus()}},{key:"getCurrentItemIndex",value:function(){var t=this;return Array.from(this.$items).findIndex((function(e){return e.id===t.currentId}))}},{key:"showPreviousItem",value:function(){var t=this.getCurrentItemIndex()-1;t<0&&(t=this.$items.length-1),this.showItem(this.$items[t].id,!0)}},{key:"showNextItem",value:function(){var t=this.getCurrentItemIndex()+1;t>=this.$items.length&&(t=0),this.showItem(this.$items[t].id,!0)}},{key:"showFirstItem",value:function(){this.showItem(this.$items[0].id,!0)}},{key:"showLastItem",value:function(){this.showItem(this.$items[this.$items.length-1].id,!0)}},{key:"toggleFullScreen",value:function(){document.fullscreenElement?document.exitFullscreen&&this.exitFullScreen():this.enterFullScreen()}},{key:"enterFullScreen",value:function(){this.$module.requestFullscreen(),this.syncFullScreen()}},{key:"exitFullScreen",value:function(){document.exitFullscreen(),this.syncFullScreen()}},{key:"syncFullScreen",value:function(){document.fullscreenElement?(this.$enterFullscreen.setAttribute("hidden",!0),this.$exitFullscreen.removeAttribute("hidden"),this.$module.classList.add("tna-gallery--fullscreen")):(this.$exitFullscreen.setAttribute("hidden",!0),this.$enterFullscreen.removeAttribute("hidden"),this.$module.classList.remove("tna-gallery--fullscreen"))}}],e&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},576:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{GlobalHeader:()=>a});var a=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$toggleButton=e&&e.querySelector(".tna-global-header__navigation-button"),this.$navigation=e&&e.querySelector(".tna-global-header__navigation-wrapper"),this.$topNavigation=e&&e.querySelector(".tna-global-header__top-navigation-wrapper"),this.$links=e&&(this.$navigation&&this.$navigation.querySelectorAll("[tabindex='0']")||this.$topNavigation&&this.$topNavigation.querySelectorAll("[tabindex='0']")),this.menuOpened=!1,this.mql=window.matchMedia("(max-width: 48em)"),this.$module&&this.$toggleButton&&(this.$navigation||this.$topNavigation)&&(this.$toggleButton.removeAttribute("hidden"),this.syncState(),this.$toggleButton.addEventListener("click",(function(){return i.handleToggleNavigation()})),"addEventListener"in this.mql?this.mql.addEventListener("change",(function(){return i.syncState()})):this.mql.addListener((function(){return i.syncState()})),this.$navigation.addEventListener("keyup",(function(t){"Escape"===t.code&&(i.menuOpened=!1,i.syncState(),i.$toggleButton.focus())})),this.$topNavigation.addEventListener("keyup",(function(t){"Escape"===t.code&&(i.menuOpened=!1,i.syncState(),i.$toggleButton.focus())})))},(e=[{key:"handleToggleNavigation",value:function(){this.menuOpened=!this.menuOpened,this.syncState()}},{key:"syncState",value:function(){this.mql.matches?this.menuOpened?this.show():this.hide():this.show()}},{key:"hide",value:function(){this.$navigation&&(this.$navigation.hidden=!0,this.$navigation.setAttribute("aria-hidden","true")),this.$topNavigation&&(this.$topNavigation.hidden=!0,this.$topNavigation.setAttribute("aria-hidden","true")),this.$toggleButton.setAttribute("aria-expanded","false"),this.$toggleButton.setAttribute("title","Open menu"),this.$toggleButton.classList.remove("tna-global-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","-1")}},{key:"show",value:function(){this.$navigation&&(this.$navigation.hidden=!1,this.$navigation.setAttribute("aria-hidden","false")),this.$topNavigation&&(this.$topNavigation.hidden=!1,this.$topNavigation.setAttribute("aria-hidden","false")),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu"),this.$toggleButton.classList.add("tna-global-header__navigation-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","0")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},432:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{Header:()=>a});var a=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$toggleButton=e&&e.querySelector(".tna-header__navigation-toggle-button"),this.$navigation=e&&e.querySelector(".tna-header__navigation"),this.$links=e&&this.$navigation&&this.$navigation.querySelectorAll("[tabindex='0']"),this.menuOpened=!1,this.mql=window.matchMedia("(max-width: 48em)"),this.$module&&this.$toggleButton&&this.$navigation&&(this.$toggleButton.removeAttribute("hidden"),this.syncState(),this.$toggleButton.addEventListener("click",(function(){return i.handleToggleNavigation()})),"addEventListener"in this.mql?this.mql.addEventListener("change",(function(){return i.syncState()})):this.mql.addListener((function(){return i.syncState()})),this.$navigation.addEventListener("keyup",(function(t){"Escape"===t.code&&(i.menuOpened=!1,i.syncState(),i.$toggleButton.focus())})))},(e=[{key:"handleToggleNavigation",value:function(){this.menuOpened=!this.menuOpened,this.syncState()}},{key:"syncState",value:function(){this.mql.matches?this.menuOpened?this.show():this.hide():this.show()}},{key:"show",value:function(){this.$navigation.classList.add("tna-header__navigation--open"),this.$navigation.hidden=!1,this.$navigation.setAttribute("aria-hidden","false"),this.$toggleButton.setAttribute("aria-expanded","true"),this.$toggleButton.setAttribute("title","Close menu"),this.$toggleButton.classList.add("tna-header__navigation-toggle-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","0")}},{key:"hide",value:function(){this.$navigation.classList.remove("tna-header__navigation--open"),this.$navigation.hidden=!0,this.$navigation.setAttribute("aria-hidden","true"),this.$toggleButton.setAttribute("aria-expanded","false"),this.$toggleButton.setAttribute("title","Open menu"),this.$toggleButton.classList.remove("tna-header__navigation-toggle-button--opened");for(var t=0;t<this.$links.length;t++)this.$links[t].setAttribute("tabindex","-1")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},384:(t,e,i)=>{i.d(e,{Picture:()=>s});var n=i(181);function r(t){return r="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},r(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$imageWrapper=e&&e.querySelector(".tna-picture__image-wrapper"),this.$transcript=e&&e.querySelector(".tna-picture__transcript"),this.transcriptOpened=!1,this.$module&&this.$imageWrapper&&this.$transcript){this.openLabel=this.$module.getAttribute("data-informationlabelopen")||"Open transcript",this.closeLabel=this.$module.getAttribute("data-informationlabelclose")||"Close transcript";var r="tna-picture-".concat((0,n.A)());this.$transcriptToggle=document.createElement("button"),this.$transcriptToggle.classList.add("tna-picture__toggle-transcript","tna-button","tna-button--small","tna-button--solid-hover"),this.$transcriptToggle.setAttribute("aria-controls",r),this.$transcriptToggle.setAttribute("aria-expanded",!1),this.$transcriptToggle.innerText=this.openLabel,this.$transcriptToggle.addEventListener("click",(function(){return i.handleToggleTranscript()})),this.$imageWrapper.appendChild(this.$transcriptToggle),this.$transcript.setAttribute("id",r),this.$transcript.setAttribute("hidden","until-found")}},(e=[{key:"handleToggleTranscript",value:function(){this.transcriptOpened=!this.transcriptOpened,this.transcriptOpened?(this.$transcriptToggle.setAttribute("aria-expanded",!0),this.$transcriptToggle.innerText=this.closeLabel,this.$transcript.removeAttribute("hidden")):(this.$transcriptToggle.setAttribute("aria-expanded",!1),this.$transcriptToggle.innerText=this.openLabel,this.$transcript.setAttribute("hidden","until-found"))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},922:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{SearchFilters:()=>a});var a=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$module&&(this.$module.classList.add("tna-search-filters--js-enabled"),Array.from(this.$module.querySelectorAll(".tna-search-filters__fieldset")).forEach((function(t){var e=t.querySelector(".tna-search-filters__item-toggle"),n=t.querySelector(".tna-search-filters__heading-inner"),r=t.querySelector(".tna-search-filters__item");e&&n&&r&&(e.removeAttribute("hidden"),n.remove(),i.syncItem(e,r),e.addEventListener("click",(function(){i.toggleItem(e,r)})))})))},(e=[{key:"toggleItem",value:function(t,e){t.setAttribute("aria-expanded","false"==t.getAttribute("aria-expanded")),this.syncItem(t,e)}},{key:"syncItem",value:function(t,e){"true"==t.getAttribute("aria-expanded")?e.removeAttribute("hidden"):e.setAttribute("hidden",!0)}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},352:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{SensitiveImage:()=>a});var a=function(){return t=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$imageDetails=e&&e.querySelector(".tna-sensitive-image__details"),this.$image=e&&e.querySelector(".tna-sensitive-image__image"),this.imageIsVisible=!1,this.$module&&this.$imageDetails&&this.$image&&this.$imageDetails.addEventListener("toggle",(function(){return i.handleImageDetailsToggle()}))},(e=[{key:"handleImageDetailsToggle",value:function(){this.$imageDetails.hasAttribute("open")&&this.$image.focus({preventScroll:!0,focusVisible:!0})}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},292:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{SkipLink:()=>a});var a=function(){return t=function t(e){var i,n,r,a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,r=!1,(n=o(n="linkedElementListener"))in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,this.$module=e,this.linkedElementId=e.getAttribute("href").split("#").pop(),this.$linkedElement=e&&this.linkedElementId&&document.getElementById(this.linkedElementId),this.$module&&this.$linkedElement&&this.$module.addEventListener("click",(function(){return a.focusLinkedElement()}))},(e=[{key:"focusLinkedElement",value:function(){var t=this;this.$linkedElement.getAttribute("tabindex")||(this.$linkedElement.setAttribute("tabindex","-1"),this.$linkedElement.classList.add("tna-!--no-focus-style"),this.linkedElementListener||(this.$linkedElement.addEventListener("blur",(function(){return t.removeFocusProperties()})),this.linkedElementListener=!0)),this.$linkedElement.focus()}},{key:"removeFocusProperties",value:function(){this.$linkedElement.removeAttribute("tabindex"),this.$linkedElement.classList.remove("tna-!--no-focus-style")}}])&&r(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},42:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,e):void 0}}(t)||function(){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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{Tabs:()=>l});var l=function(){return t=function t(e){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$module=e,this.$tabList=e&&e.querySelector(".tna-tabs__list"),this.$tabListItemLinks=e&&this.$tabList&&e.querySelectorAll(".tna-tabs__list-item-link"),this.$tabItems=e&&e.querySelectorAll(".tna-tabs__item"),this.$module&&this.$tabList&&this.$tabListItemLinks&&this.$tabItems&&this.$tabListItemLinks.length===this.$tabItems.length){this.sticky=this.$module.classList.contains("tna-tabs--sticky");var n=window.location.hash.replace(/^#/,""),o=r(this.$tabItems).some((function(t){return t.getAttribute("id")===n}));this.$newTabList=document.createElement("div"),this.$newTabList.setAttribute("role","tablist"),this.$newTabList.setAttribute("class",this.$tabList.getAttribute("class")),this.$tabItems.forEach((function(t,e){t.setAttribute("role","tabpanel"),t.setAttribute("aria-labelledby","".concat(t.getAttribute("id"),"-tab")),t.setAttribute("tabindex","0"),(o&&t.getAttribute("id")!==n||!o&&e>0)&&t.setAttribute("hidden",!0)})),this.$tabListItemLinks.forEach((function(t){var e,n=document.createElement("button");n.innerText=t.innerText,n.setAttribute("class",t.getAttribute("class")),n.setAttribute("role","tab"),n.setAttribute("id",t.getAttribute("id")),n.setAttribute("aria-controls",null===(e=t.getAttribute("href"))||void 0===e?void 0:e.replace(/^#/,"")),n.setAttribute("tabindex","-1"),i.$newTabList.appendChild(n)})),this.$tabList.replaceWith(this.$newTabList),this.$tabListItemLinks=this.$module.querySelectorAll(".tna-tabs__list-item-link"),this.$tabListItemLinks.forEach((function(t,e){n&&t.getAttribute("aria-controls")==="".concat(n)||!n&&0===e?(t.classList.add("tna-tabs__list-item-link--selected"),t.setAttribute("aria-selected",!0),t.setAttribute("tabindex","0")):t.setAttribute("aria-selected",!1),t.addEventListener("keydown",(function(t){return i.handleItemLinkKeyDown(t)}),!0),t.addEventListener("click",(function(t){return i.handleItemLinkClick(t)}),!0)}))}},(e=[{key:"handleItemLinkClick",value:function(t){t.preventDefault();var e=t.currentTarget.getAttribute("aria-controls");this.switchTab(e)}},{key:"handleItemLinkKeyDown",value:function(t){var e=t.currentTarget,i=!1;switch(t.key){case"ArrowLeft":case"ArrowUp":this.setSelectedToPreviousTab(e),i=!0;break;case"ArrowRight":case"ArrowDown":this.setSelectedToNextTab(e),i=!0;break;case"Home":this.switchTab(this.$tabListItemLinks[0].getAttribute("aria-controls")),i=!0;break;case"End":this.switchTab(this.$tabListItemLinks[this.$tabListItemLinks.length-1].getAttribute("aria-controls")),i=!0}i&&(t.stopPropagation(),t.preventDefault())}},{key:"setSelectedToNextTab",value:function(t){var e,i=r(this.$tabListItemLinks).findIndex((function(e){return e.getAttribute("id")===t.getAttribute("id")}));e=i<this.$tabListItemLinks.length-1?i+1:0,this.switchTab(this.$tabListItemLinks[e].getAttribute("aria-controls"))}},{key:"setSelectedToPreviousTab",value:function(t){var e,i=r(this.$tabListItemLinks).findIndex((function(e){return e.getAttribute("id")===t.getAttribute("id")}));e=i>=1?i-1:this.$tabListItemLinks.length-1,this.switchTab(this.$tabListItemLinks[e].getAttribute("aria-controls"))}},{key:"switchTab",value:function(t){this.$tabListItemLinks.forEach((function(e){e.getAttribute("aria-controls")===t?(e.classList.add("tna-tabs__list-item-link--selected"),e.setAttribute("aria-selected",!0),e.setAttribute("tabindex","0"),e.focus()):(e.classList.remove("tna-tabs__list-item-link--selected"),e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"))})),this.$tabItems.forEach((function(e){e.getAttribute("id")===t?(e.removeAttribute("hidden"),e.setAttribute("tabindex","0")):(e.setAttribute("hidden",!0),e.setAttribute("tabindex","-1"))})),this.sticky&&(history.replaceState?history.replaceState(null,null,"#".concat(t)):location.hash="#".concat(t))}}])&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},169:(t,e,i)=>{function n(t){return n="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},n(t)}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){d(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(t,e):void 0}}(t)||function(){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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function c(t,e,i){return e&&u(t.prototype,e),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function d(t,e,i){return(e=h(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function h(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}i.d(e,{A:()=>f}),window.TNAFrontendCookies=window.TNAFrontendCookies||null,window.TNAFrontendCookieEvents=window.TNAFrontendCookieEvents||null;var m=function(){return c((function t(){if(l(this,t),d(this,"events",{}),d(this,"oneTimeEvents",{}),window.TNAFrontendCookieEvents)return window.TNAFrontendCookieEvents;window.TNAFrontendCookieEvents=this}),[{key:"on",value:function(t,e){Object.hasOwn(this.events,t)||(this.events[t]=[]),this.events[t]=[].concat(a(this.events[t]),[e])}},{key:"once",value:function(t,e){Object.hasOwn(this.oneTimeEvents,t)||(this.oneTimeEvents[t]=[]),this.oneTimeEvents[t]=[].concat(a(this.oneTimeEvents[t]),[e])}},{key:"trigger",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.hasOwn(this.events,t)&&this.events[t].forEach((function(t){return t.call(e,i)})),Object.hasOwn(this.oneTimeEvents,t))for(var n=this.oneTimeEvents[t].length-1;n>=0;n--)this.oneTimeEvents[t][n].call(this,i),this.oneTimeEvents[t].splice(n,1)}}])}(),f=function(){return c((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,t),d(this,"extraPolicies",[]),d(this,"domain",""),d(this,"path",""),d(this,"secure",!0),d(this,"policiesKey",""),d(this,"events",null);var i=e.extraPolicies,n=void 0===i?[]:i,r=e.domain,o=void 0===r?"":r,a=e.path,s=void 0===a?"/":a,u=e.secure,c=void 0===u||u,h=e.policiesKey,f=void 0===h?"cookies_policy":h,b=e.newInstance;if(void 0!==b&&b)this.destroyInstance();else if(window.TNAFrontendCookies)return window.TNAFrontendCookies;this.extraPolicies=n,this.domain=o,this.path=s,this.secure=c,this.policiesKey=f,this.events=new m,this.init(),window.TNAFrontendCookies=this}),[{key:"init",value:function(){this.savePolicies(o(o(o({},Object.fromEntries(this.extraPolicies.map((function(t){return[t.toLowerCase(),!1]})))),{},{usage:!1,settings:!1},this.policies),{},{essential:!0}))}},{key:"destroyInstance",value:function(){window.TNAFrontendCookies=null}},{key:"all",get:function(){var t={};return document.cookie.split("; ").filter((function(t){return t})).forEach((function(e){var i=e.trim().split("=");i[0]&&(t[i[0]]=i[1])})),t}},{key:"policies",get:function(){try{return JSON.parse(this.get(this.policiesKey)||"{}")}catch(t){return{}}}},{key:"exists",value:function(t){return Object.hasOwn(this.all,t)}},{key:"hasValue",value:function(t,e){return this.get(t)==e}},{key:"get",value:function(t){return this.exists(t)?decodeURIComponent(this.all[t]):null}},{key:"set",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.maxAge,r=void 0===n?31536e3:n,o=i.sameSite,a=void 0===o?"Lax":o,s=i.domain,l=void 0===s?this.domain:s,u=i.path,c=void 0===u?this.path:u,d=i.secure,h=void 0===d?this.secure:d;if(t){var m="".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e),";").concat(l?" domain=".concat(l,"; "):""," samesite=").concat(a,"; path=").concat(c,"; max-age=").concat(r).concat(h?"; secure":"");document.cookie=m,this.events.trigger("setCookie",{key:t,value:e,maxAge:r,path:c,sameSite:a,domain:l,secure:h,cookie:m})}}},{key:"delete",value:function(t){var e={maxAge:-1,path:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",domain:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)||void 0};this.set(t,"",e),this.events.trigger("deleteCookie",o({key:t},e))}},{key:"deleteAll",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Object.keys(this.all).forEach((function(n){t.delete(n,e,i)})),this.events.trigger("deleteAllCookies",{path:e,domain:i})}},{key:"acceptPolicy",value:function(t){this.setPolicy(t,!0),this.events.trigger("acceptPolicy",t),this.events.trigger("changePolicy",d({},t,!0))}},{key:"rejectPolicy",value:function(t){this.setPolicy(t,!1),this.events.trigger("rejectPolicy",t),this.events.trigger("changePolicy",d({},t,!1))}},{key:"setPolicy",value:function(t,e){"essential"!==t&&(this.savePolicies(o(o({},this.policies),{},d(d({},t,e),"essential",!0))),this.events.trigger("changePolicy",d({},t,e)))}},{key:"acceptAllPolicies",value:function(){var t=Object.fromEntries(Object.keys(this.policies).map((function(t){return[t.toLowerCase(),!0]})));this.savePolicies(t),this.events.trigger("acceptAllPolicies"),this.events.trigger("changePolicy",t)}},{key:"rejectAllPolicies",value:function(){var t=o(o({},Object.fromEntries(Object.keys(this.policies).map((function(t){return[t.toLowerCase(),!1]})))),{},{essential:!0});this.savePolicies(t),this.events.trigger("rejectAllPolicies"),this.events.trigger("changePolicy",t)}},{key:"savePolicies",value:function(t){this.set(this.policiesKey,JSON.stringify(t))}},{key:"isPolicyAccepted",value:function(t){return Object.hasOwn(this.policies,t)?!0===this.policies[t]:null}},{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"once",value:function(t,e){this.events.once(t,e)}}])}()},181:(t,e,i)=>{i.d(e,{A:()=>n});const n=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};i.r(n),i.d(n,{Accordion:()=>r.Accordion,Breadcrumbs:()=>o.Breadcrumbs,CookieBanner:()=>a.CookieBanner,Cookies:()=>y.A,ErrorSummary:()=>s.ErrorSummary,Footer:()=>l.Footer,Gallery:()=>u.Gallery,GlobalHeader:()=>c.GlobalHeader,Header:()=>d.Header,Picture:()=>h.Picture,SearchFilters:()=>m.SearchFilters,SensitiveImage:()=>f.SensitiveImage,SkipLink:()=>b.SkipLink,Tabs:()=>v.Tabs,initAll:()=>g});var r=i(944),o=i(592),a=i(24),s=i(552),l=i(876),u=i(344),c=i(576),d=i(432),h=i(384),m=i(922),f=i(352),b=i(292),v=i(42),y=i(169),p=document.documentElement;p.classList.add("tna-template--js-enabled"),window.addEventListener("touchstart",(function t(){window.removeEventListener("touchstart",t),p.classList.add("tna-template--touched")})),window.addEventListener("keydown",(function(t){"Tab"===t.key&&(p.classList.add("tna-template--tabbed"),p.classList.remove("tna-template--clicked"))})),window.addEventListener("mousedown",(function(){p.classList.add("tna-template--clicked"),p.classList.remove("tna-template--tabbed")}));var g=function(t){var e=(t=void 0!==t?t:{}).scope instanceof HTMLElement?t.scope:document;e.querySelectorAll('[data-module="tna-accordion"]').forEach((function(t){new r.Accordion(t)}));var i=e.querySelector('[data-module="tna-breadcrumbs"]');i&&new o.Breadcrumbs(i);var n=e.querySelector('[data-module="tna-cookie-banner"]');n&&new a.CookieBanner(n);var y=e.querySelector('[data-module="tna-error-summary"]');y&&new s.ErrorSummary(y).init();var p=e.querySelector('[data-module="tna-footer"]');p&&new l.Footer(p),e.querySelectorAll('[data-module="tna-gallery"]').forEach((function(t){new u.Gallery(t)}));var g=e.querySelector('[data-module="tna-global-header"]');g&&new c.GlobalHeader(g);var $=e.querySelector('[data-module="tna-header"]');$&&new d.Header($),e.querySelectorAll('[data-module="tna-picture"]').forEach((function(t){new h.Picture(t)})),e.querySelectorAll('[data-module="tna-search-filters"]').forEach((function(t){new m.SearchFilters(t)})),e.querySelectorAll('[data-module="tna-sensitive-image"]').forEach((function(t){new f.SensitiveImage(t)})),e.querySelectorAll('[data-module="tna-skip-link"]').forEach((function(t){new b.SkipLink(t)})),e.querySelectorAll('[data-module="tna-tabs"]').forEach((function(t){new v.Tabs(t)}))};return window.matchMedia("print").addEventListener("change",(function(t){t.matches?(document.querySelectorAll(".tna-details__details:not([open])").forEach((function(t){t.setAttribute("open",""),t.dataset.wasclosed=""})),document.querySelectorAll('.tna-accordion__content[hidden="until-found"], .tna-picture__transcript[hidden="until-found"]').forEach((function(t){t.removeAttribute("hidden"),t.dataset.wasclosed=""}))):(document.querySelectorAll(".tna-details__details[data-wasclosed]").forEach((function(t){t.removeAttribute("open"),delete t.dataset.wasclosed})),document.querySelectorAll(".tna-accordion__content[data-wasclosed], .tna-picture__transcript[data-wasclosed]").forEach((function(t){t.setAttribute("hidden","until-closed"),t.dataset.wasclosed=""})))})),n})()));
2
2
  //# sourceMappingURL=all.js.map