1!function(t){function e(e){for(var n,s,o=e[0],r=e[1],a=0,l=[];a<o.length;a++)s=o[a],Object.prototype.hasOwnProperty.call(i,s)&&i[s]&&l.push(i[s][0]),i[s]=0;for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);for(c&&c(e);l.length;)l.shift()()}var n={},i={0:0};function s(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,s),i.l=!0,i.exports}s.e=function(){return Promise.resolve()},s.m=t,s.c=n,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/content/static/js/",s.oe=function(t){throw console.error(t),t};var o=window.webpackJsonp=window.webpackJsonp||[],r=o.push.bind(o);o.push=e,o=o.slice();for(var a=0;a<o.length;a++)e(o[a]);var c=r;s(s.s=136)}({135:function(t,e,n){"use strict";function i(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),i=1;i<arguments.length;i++){var s=arguments[i];if(null!=s)for(var o=Object.keys(Object(s)),r=0,a=o.length;r<a;r++){var c=o[r],l=Object.getOwnPropertyDescriptor(s,c);void 0!==l&&l.enumerable&&(n[c]=s[c])}}return n}t.exports={assign:i,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:i})}}},136:function(t,n,i){"use strict";i.r(n);var s=i(6),o=(i(92),i(2)),r=function(t){return("0000"+t).slice(-2)},a=function(t){this.value="".concat(t.latlng.lat,",").concat(t.latlng.lng)},c=function(t){var e=document.getElementById(t.getAttribute(o.b.SELECTOR)),n=e.querySelector("input");e&&n&&t.addEventListener("change",(function(t){t.target.value===o.b.TARGET_VALUE&&t.target.checked&&e.hasAttribute("hidden")&&e.removeAttribute("hidden"),t.target.value!==o.b.TARGET_VALUE||t.target.checked||e.hasAttribute("hidden")||(e.setAttribute("hidden","hidden"),n.value="")}))},l=i(7),u=i.n(l),d=function(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},h=function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t},f=function(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop},m={classNames:{ready:".js-wall--is-ready",trigger:".js-wall-trigger",item:".js-wall-item",content:".js-wall-child",panel:".js-wall-panel",panelInner:".js-wall-panel-inner",open:".js-wall--is-open",animating:".js-wall--is-animating",closeButton:".js-wall-close",nextButton:".js-wall-next",previousButton:".js-wall-previous"},offset:120},p={ERRORS:{ROOT:"Wall cannot be initialised, no trigger elements found",ITEM:"Wall item cannot be found",TRIGGER:"Wall trigger cannot be found"},KEYCODES:[13,32],EVENTS:["click","keydown"]};function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)} 2/** 3 * @name storm-wall: Interactive animating content wall 4 * @version 1.2.4: Tue, 09 Apr 2019 08:27:53 GMT 5 * @author stormid 6 * @license MIT 7 */var v={init:function(){var t=this;return this.openIndex=!1,this.initThrottled(),this.initItems(),this.initTriggers(),this.initPanel(),this.initButtons(),window.addEventListener("resize",this.throttledResize.bind(this)),setTimeout(this.equalHeight.bind(this),100),this.node.classList.add(this.settings.classNames.ready.substr(1)),setTimeout((function(){window.location.hash&&~document.getElementById(window.location.hash.slice(1)).className.indexOf(t.settings.classNames.trigger.substr(1))&&document.getElementById(window.location.hash.slice(1)).click()}),260),this},initThrottled:function(){var t=this;this.throttledResize=u()((function(){t.equalHeight(t.setPanelTop.bind(t))})),this.throttledChange=u()(this.change),this.throttledPrevious=u()(this.previous),this.throttledNext=u()(this.next)},initTriggers:function(){var t=this;
7this.items.forEach((function(e,n){var i=e.node.querySelector(t.settings.classNames.trigger);if(!i)throw new Error(p.ERRORS.TRIGGER);p.EVENTS.forEach((function(e){i.addEventListener(e,(function(e){e.keyCode&&!~p.KEYCODES.indexOf(e.keyCode)||(t.throttledChange(n),e.preventDefault())}))}))}))},initPanel:function(){var t=function(t,e,n){var i=document.createElement(t);for(var s in i.className=e,n)n.hasOwnProperty(s)&&i.setAttribute(s,n[s]);return i},e=t(this.items[0].node.tagName.toLowerCase(),this.settings.classNames.panel.substr(1),{"aria-hidden":!0});return this.panelInner=t("div",this.settings.classNames.panelInner.substr(1)),this.panel=this.node.appendChild(e),this},initButtons:function(){var t=this,e='<button class="'.concat(this.settings.classNames.closeButton.substr(1),'" aria-label="close">\n\t\t\t\t\t\t\t\t<svg fill="#000000" height="30" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t\t\t<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>\n\t\t\t\t\t\t\t\t\t<path d="M0 0h24v24H0z" fill="none"/>\n\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t \t\t<button class="').concat(this.settings.classNames.previousButton.substr(1),'" aria-label="previous">\n\t\t\t\t\t\t\t\t <svg fill="#000000" height="36" viewBox="0 0 24 24" width="36" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t\t\t\t<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>\n\t\t\t\t\t\t\t\t\t\t<path d="M0 0h24v24H0z" fill="none"/>\n\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t \t\t<button class="').concat(this.settings.classNames.nextButton.substr(1),'" aria-label="next">\n\t\t\t\t\t\t\t\t\t<svg fill="#000000" height="36" viewBox="0 0 24 24" width="36" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t\t\t\t<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>\n\t\t\t\t\t\t\t\t\t\t<path d="M0 0h24v24H0z" fill="none"/>\n\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t </button>');this.panel.innerHTML="".concat(this.panel.innerHTML).concat(e),p.EVENTS.forEach((function(e){t.panel.querySelector(t.settings.classNames.closeButton).addEventListener(e,(function(e){e.keyCode&&!~p.KEYCODES.indexOf(e.keyCode)||t.close.call(t)})),t.panel.querySelector(t.settings.classNames.previousButton).addEventListener(e,(function(e){e.keyCode&&!~p.KEYCODES.indexOf(e.keyCode)||t.throttledPrevious.call(t)})),t.panel.querySelector(t.settings.classNames.nextButton).addEventListener(e,(function(e){e.keyCode&&!~p.KEYCODES.indexOf(e.keyCode)||t.throttledNext.call(t)}))}))},initItems:function(){var t=this,e=[].slice.call(this.node.querySelectorAll(this.settings.classNames.item));if(0===e.length)throw new Error(p.ERRORS.ITEM);this.items=e.map((function(e){return{node:e,content:e.querySelector(t.settings.classNames.content),trigger:e.querySelector(t.settings.classNames.trigger)}}))},change:function(t){var e=this;return!1===this.openIndex?this.open(t):this.openIndex===t?this.close():void(this.items[this.openIndex].node.offsetTop===this.items[t].node.offsetTop?this.close((function(){return e.open(t,e.panel.offsetHeight)}),this.panel.offsetHeight):this.close((function(){return e.open(t)})))},open:function(t,e,n){var i=this;this.panelSourceContainer=this.items[t].content,this.openIndex=t,this.setPanelTop(),this.panelContent=this.panelSourceContainer.firstElementChild.cloneNode(!0),this.panelInner.appendChild(this.panelContent),this.panelSourceContainer.removeChild(this.panelSourceContainer.firstElementChild),this.panel.insertBefore(this.panelInner,this.panel.firstElementChild);var s=0,o=e||0,r=this.panel.offsetHeight-o,a=this.closedHeight+o,c=r,l=n||16;return this.node.classList.add(this.settings.classNames.open.substr(1)),this.panel.removeAttribute("aria-hidden"),this.items[t].trigger.setAttribute("aria-expanded",!0),function e(){var n,u,m;s++,i.panel.style.height=d(s,o,r,l)+"px",i.resizeRow(i.items[i.openIndex].node,d(s,a,c,l)+"px"),s<l?window.requestAnimationFrame(e.bind(i)):(i.panel.style.height="auto",i.items[t].node.parentNode.insertBefore(i.panel,i.items[t].node.nextElementSibling),window.history&&window.history.pushState&&window.history.pushState({URL:"#".concat(i.items[t].trigger.getAttribute("id"))},"","#".concat(i.items[t].trigger.getAttribute("id"))),n=i.panel,u=function(){return{l:0,t:0,b:(window.innerHeight||document.documentElement.clientHeight)-i.panel.offsetHeight,r:window.innerWidth||document.documentElement.clientWidth}},(m=n.getBoundingClientRect()).right>=u.l&&m.bottom>=u.t&&m.left<=u.r&&m.top<=u.b||function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2?arguments[2]:void 0,i=f(),s=t-i,o=0,r=20,a=function t(){var a=d(o+=r,i,s,e);h(a),o<e?window.requestAnimationFrame(t):n&&"function"==typeof n&&n()};a()}(i.panel.offsetTop-i.settings.offset))}.call(this),this},close:function(t,e,n){var i=this,s=e||0,o=0,r=this.panel.offsetHeight,a=s-r,c=this.items[this.openIndex].node.offsetHeight,l=a,u=n||16;this.node.classList.add(this.settings.classNames.animating.substr(1)),function e(){o++,i.panel.style.height=d(o,r,a,u)+"px",i.resizeRow(i.items[i.openIndex].node,d(o,c,l,u)+"px"),o<u?window.requestAnimationFrame(e.bind(i)):(s||(i.panel.style.height="auto"),i.panelInner.removeChild(i.panelContent),i.panel.setAttribute("aria-hidden",!0),i.items[i.openIndex].trigger.setAttribute("aria-expanded",!1),i.panelSourceContainer.appendChild(i.panelContent),i.node.classList.remove(i.settings.classNames.animating.substr(1)),i.node.classList.remove(i.settings.classNames.open.substr(1)),i.openIndex=!1,"function"==typeof t?t():window.history&&window.history.pushState&&history.pushState("",document.title,window.location.pathname+window.location.search))}.call(this)},previous:function(){return this.change(this.openIndex-1<0?this.items.length-1:this.openIndex-1)},next:function(){return this.change(this.openIndex+1===this.items.length?0:this.openIndex+1)},equalHeight:function(t){var e=this,n=0,i=0;this.items.map((function(t,s){return t.node.style.height="auto",!1!==e.openIndex&&t.node.offsetTop===e.items[e.openIndex].node.offsetTop?e.openIndex===s&&(n=t.node.offsetHeight+e.panel.offsetHeight):t.node.offsetHeight>i&&(i=t.node.offsetHeight),t})).map((function(t,n){e.openIndex!==n&&(t.node.style.height=i+"px")})),this.openHeight=n,this.closedHeight=0===i?this.closedHeight:i,this.openHeight>0&&(this.resizeRow(this.items[this.openIndex].node,this.openHeight+"px"),"function"==typeof t&&t())}
7,resizeRow:function(t,e){return this.items.forEach((function(n){n.node.offsetTop===t.offsetTop&&(n.node.style.height=e)})),this},setPanelTop:function(){this.panel.style.top="".concat(this.items[this.openIndex].node.offsetTop+this.items[this.openIndex].trigger.offsetHeight,"px")}},b=function(t,e){var n=[].slice.call(document.querySelectorAll(t));if(0===n.length)throw new Error(p.ERRORS.ROOT);return n.map((function(t){return g(Object.create(v),{node:t,settings:g({},m,e)}).init()}))},y={buttonPreviousSelector:".js-slides__previous",buttonNextSelector:".js-slides__next",navItemSelector:".js-slides__nav-item",itemSelector:".js-slides__item",liveRegionSelector:".js-slides__liveregion",loadingClass:"is--loading",activeClass:"is--current",showPreviousClass:"show--previous",showNextClass:"show--next",hidePreviousClass:"hide--previous",hideNextClass:"hide--next",isCarousel:!0,startIndex:0,preload:!1,autoPlay:!1,slideDuration:5},w=13,C=["click","keydown"],k={init:function(){var t=this;if(this.slides=[].slice.call(this.node.querySelectorAll(this.settings.itemSelector)).map((function(t){return{unloadedImgs:[].slice.call(t.querySelectorAll("[data-srcset], [data-src]")),container:t}})),this.nextButton=this.node.querySelector(this.settings.buttonNextSelector),this.previousButton=this.node.querySelector(this.settings.buttonPreviousSelector),this.navItems=[].slice.call(this.node.querySelectorAll(this.settings.navItemSelector)),this.navItems.length>0&&this.navItems.length!==this.slides.length)throw new Error("Slide navigation does not match the number of slides.");return this.notification=this.node.querySelector(this.settings.liveRegionSelector),this.setCurrent(this.settings.startIndex),this.slides[this.currentIndex].container.classList.add(this.settings.activeClass),this.initHandlers(),this.settings.preload?this.slides.forEach((function(e,n){t.loadImage(n)})):this.loadImages(this.settings.startIndex),this.settings.autoPlay&&this.autoPlay(this.settings.slideDuration),this},initHandlers:function(){var t=this;C.forEach((function(e){["previous","next"].forEach((function(n){t["".concat(n,"Button")]&&t["".concat(n,"Button")].addEventListener(e,(function(e){e.keyCode&&e.keyCode!==w||t[n]()}))})),t.navItems.length>0&&t.navItems.forEach((function(n,i){n.addEventListener(e,(function(e){e.keyCode&&e.keyCode!==w||t.change(i)}))}))}))},loadImage:function(t){var e=this;this.slides[t].unloadedImgs.length&&(this.slides[t].container.classList.add(this.settings.loadingClass),this.slides[t].unloadedImgs=this.slides[t].unloadedImgs.reduce((function(n,i){return["src","srcset"].forEach((function(n){i.hasAttribute("data-".concat(n))&&(i.setAttribute(n,i.getAttribute("data-".concat(n))),i.removeAttribute("data-".concat(n))),e.slides[t].container.classList.remove(e.settings.loadingClass)})),n}),[]))},loadImages:function(t){var e=this;if(this.node.querySelector("[data-src], [data-srcset]")){var n=[t];this.slides.length>1&&n.push(0===t?this.slides.length-1:t-1),this.slides.length>
72&&n.push(t===this.slides.length-1?0:t+1),n.forEach((function(t){e.loadImage(t)}))}},reset:function(){this.slides[this.currentIndex].container.classList.remove(this.settings.activeClass),this.slides[this.currentIndex].container.removeAttribute("tabindex"),this.navItems.length&&this.navItems[this.currentIndex].removeAttribute("aria-current");var t=this.node.querySelector(".".concat(this.settings.hidePreviousClass)),e=this.node.querySelector(".".concat(this.settings.showPreviousClass)),n=this.node.querySelector(".".concat(this.settings.showNextClass)),i=this.node.querySelector(".".concat(this.settings.hideNextClass));t&&t.classList.remove(this.settings.hidePreviousClass),e&&e.classList.remove(this.settings.showPreviousClass),n&&n.classList.remove(this.settings.showNextClass),i&&i.classList.remove(this.settings.hideNextClass)},next:function(){this.change(this.currentIndex===this.slides.length-1?0:this.currentIndex+1)},previous:function(){this.change(0===this.currentIndex?this.slides.length-1:this.currentIndex-1)},change:function(t){if(t!==this.currentIndex){this.reset(),t=-1===t?this.slides.length-1:t===this.slides.length?0:t,this.loadImages(t);var e=(t>this.currentIndex||0===t&&this.currentIndex===this.slides.length-1)&&!(t===this.slides.length-1&&0===this.currentIndex);this.slides[this.currentIndex].container.classList.add(e?this.settings.hidePreviousClass:this.settings.hideNextClass),this.slides[t].container.classList.add("".concat(e?this.settings.showNextClass:this.settings.showPreviousClass)),this.setCurrent(t),!this.settings.autoPlay&&this.slides[t].container.focus(),this.settings.callback&&"function"==typeof this.settings.callback&&this.settings.callback()}},setCurrent:function(t){this.slides[t].container.classList.add(this.settings.activeClass),this.slides[t].container.setAttribute("tabindex","-1"),this.navItems.length&&this.navItems[t].setAttribute("aria-current",!0),this.notification.innerHTML="Slide ".concat(t+1," of ").concat(this.slides.length),this.currentIndex=t},autoPlay:function(t){var e=this;this.interval=setInterval((function(){e.next()}),t?1e3*t:5e3)}};function S(){return(S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)} 8/** 9 * @name storm-slides: Slides/carousel/fader/slider component 10 * @version 0.3.4: Fri, 29 Jun 2018 12:18:32 GMT 11 * @author stormid 12 * @license MIT 13 */var E=function(t,e){var n=[].slice.call(document.querySelectorAll(t));if(!n.length)throw new Error("Slides not initialised, no augmentable elements found");return n.map((function(t){return S(Object.create(k),{node:t,settings:S({},y,e)}).init()}))};function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,s=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(i=(r=a.next()).done)&&(n.push(r.value),!e||n.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(s)throw o}}return n}(t,e)||x(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){if(t){if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(t,e):void 0}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function O(){return(O=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var _=function(t){document.cookie=["".concat(t.settings.name,"=").concat(btoa(JSON.stringify(O({},t.consent,{intent:t.intent}))),";"),"expires=".concat(new Date((new Date).getTime()+24*t.settings.expiry*60*60*1e3).toGMTString(),";"),t.settings.path?"path=".concat(t.settings.path,";"):"",t.settings.domain?"domain=".concat(t.settings.domain,";"):"",t.settings.samesite?"SameSite=".concat(t.settings.samesite,";"):"",t.settings.secure?"secure":""].join("")},I=function(t){try{var e=function(t){for(var e=document.cookie.split("; "),n=0;n<=e.length;n++){if(!e[n])return!1;var i=T(e[n].split("="),2),s=i[0],o=i[1];if(s===t.name)return window.atob(o)}return!1}(t);if(!e)return[!1,{}];var n=JSON.parse(e),i=void 0!==n;return $(Object.keys(n),Object.keys(t.types))?[i,n||{}]:[!1,{}]}catch(t){return[!1,{}]}},$=function(t,e){if(t.length!==e.length)return!1;var n,i=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=x(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return r=t.done,t},e:function(t){a=!0,o=t},f:function(){try{r||null==n.return||n.return()}finally{if(a)throw o}}}}(e);try{for(i.s();!(n=i.n()).done;){var s=n.value;if(-1===t.indexOf(s))return!1}}catch(t){i.e(t)}finally{i.f()}return!0},M=function(t){document.cookie.split("; ").map((function(t){return{name:t.split("=")[0],value:t.split("=")[1],expiry:"Thu, 01 Jan 1970 00:00:01 GMT"}})).map(function(t){return function(e){var n=["".concat(e.name,"=").concat(e.value,";"),"expires=".concat(e.expiry,";"),"domain=".concat(t.settings.domain,";"),"path=".concat(t.settings.path,";")].join("");document.cookie=n}}(t))},j=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not
13([tabindex="-1])'],N="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|be|bf|bg|bh|bi|bj|bm|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|cl|cm|cn|co|cr|cu|cv|cw|cx|cz|de|dj|dk|dm|do|dz|ec|ee|eg|es|et|eu|fi|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|im|in|io|iq|ir|is|it|je|jo|jp|kg|ki|km|kn|kp|kr|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|na|nc|ne|nf|ng|nl|no|nr|nu|nz|om|pa|pe|pf|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|yt".split("|"),R="netlify|azurewebsites|com|edu|gov|net|mil|org|nom|sch|caa|res|off|gob|int|tur|ip6|uri|urn|asn|act|nsw|qld|tas|vic|pro|biz|adm|adv|agr|arq|art|ato|bio|bmd|cim|cng|cnt|ecn|eco|emp|eng|esp|etc|eti|far|fnd|fot|fst|g12|ggf|imb|ind|inf|jor|jus|leg|lel|mat|med|mus|not|ntr|odo|ppg|psc|psi|qsl|rec|slg|srv|teo|tmp|trd|vet|zlg|web|ltd|sld|pol|fin|k12|lib|pri|aip|fie|eun|sci|prd|cci|pvt|mod|idv|rel|sex|gen|nic|abr|bas|cal|cam|emr|fvg|laz|lig|lom|mar|mol|pmn|pug|sar|sic|taa|tos|umb|vao|vda|ven|mie|åæµ·é|åæå±±|ç¥å¥å·|鹿å
å³¶|ass|rep|tra|per|ngo|soc|grp|plc|its|air|and|bus|can|ddr|jfk|mad|nrw|nyc|ski|spy|tcm|ulm|usa|war|fhs|vgs|dep|eid|fet|fla|flÃ¥|gol|hof|hol|sel|vik|cri|iwi|ing|abo|fam|gok|gon|gop|gos|aid|atm|gsm|sos|elk|waw|est|aca|bar|cpa|jur|law|sec|plo|www|bir|cbg|jar|khv|msk|nov|nsk|ptz|rnd|spb|stv|tom|tsk|udm|vrn|cmw|kms|nkz|snz|pub|fhv|red|ens|nat|rns|rnu|bbs|tel|bel|kep|nhs|dni|fed|isa|nsn|gub|e12|tec|оÑг|обÑ|ÑпÑ|alt|nis|jpn|mex|ath|iki|nid|gda|inc".split("|"),q={name:".wscc.consent.2",domain:"localhost"===window.location.hostname?"localhost":".".concat(function(t){for(var e=(t=t.replace(/^www\./,"")).split(".");e.length>3;)e.shift();return 3===e.length&&-1===R.indexOf(e[1])&&-1===N.indexOf(e[2])&&e.shift(),e.join(".")}(window.location.hostname)),path:"/",secure:!0,expiry:365,types:{},policyURL:"/cookies",classNames:{banner:"preferences-banner",form:"preferences-form",btn:"preferences-banner__btn",field:"preferences-banner__field",updateContainer:"preferences-banner__update",acceptBtn:"preferences-banner__accept-btn",rejectBtn:"preferences-banner__reject-btn",updateBtn:"preferences-banner__update-btn",successMessage:"preferences-banner__success"},updateBtnTemplate:function(t){return'<button class="'.concat(t.classNames.updateBtn,' btn">Update cookie preferences</button>')},bannerTemplate:function(t){return'<section tabindex="-1" role="dialog" aria-live="polite" aria-label="Cookie consent" aria-describedby="preferences-banner__content" class="'.concat(t.classNames.banner,'">\n\t\t\x3c!--googleoff: all--\x3e\n\t\t<div id="preferences-banner__content" class="preferences-banner__content">\n\t\t\t<p class="preferences-banner__title">\n\t\t\t').concat(window.preferencesMessage,'\n\t\t\t</p>\n <div class="preferences__cta">\n <button \n type="button" class="btn btn--primary ').concat(t.classNames.acceptBtn,'">Accept all cookies</button>\n <button \n type="button" class="btn btn--primary ').concat(t.classNames.rejectBtn,'">Accept only essential cookies</button>\n </div>\n\t\t</div>\n\t\t\x3c!--googleon: all--\x3e\n\t</section>')},formTemplate:function(t){return'<form class="form '.concat(t.classNames.form,'">\n <ul>\n ').concat(Object.keys(t.types).map((function(e){return'<li><label class="checkbox">\n <input\n class="'.concat(t.classNames.field,'"\n type="checkbox"\n value="').concat(e,'"\n ').concat(t.types[e].checked?" checked":"","\n ").concat(t.types[e].disabled?" disabled":"",">\n ").concat(e.substr(0,1).toUpperCase()).concat(e.substr(1)," cookies\n </label></li>")})).join(""),'\n <li>\n <button class="btn btn--primary ').concat(t.classNames.updateBtn,'">Save preferences</button>\n </li>\n </ul>\n </section>')},successTemplate:function(t){return'<div class="alert alert--success '.concat(t.classNames.successMessage,'" tabindex="-1">\n <div class="icon-ok">\n <p>Your cookie preferences have been updated.</p>\n </div>\n </div>')}},H=function(t){var e=!0;Object.keys(t.consent).forEach((function(n){t.consent[n]&&(e=!1),t.consent[n]&&t.settings.types[n]&&t.settings.types[n].fns.forEach((function(e){return e(t)}))}
13)),e&&document.cookie.split("; ").filter((function(t){return-1!==t.indexOf("_ga")})).forEach((function(e){document.cookie="".concat(e,"; path=").concat(t.settings.path,"; domain=").concat(t.settings.domain,"; expires=Thu, 01 Jan 1970 00:00:01 GMT;")}))};function B(){return(B=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var P=function(t,e){return B({},t,e)},F=function(t,e){return B({},t,e)},D=function(t,e){return B({},t,e)},z=function(t){return function(e){if(!document.querySelector(".".concat(e.settings.classNames.updateContainer))){document.body.firstElementChild.insertAdjacentHTML("beforebegin",e.settings.bannerTemplate(e.settings));var n=document.querySelector(".".concat(e.settings.classNames.acceptBtn)),i=document.querySelector(".".concat(e.settings.classNames.rejectBtn)),s=document.querySelector(".".concat(e.settings.classNames.banner));n.addEventListener("click",(function(n){var i=Object.keys(e.settings.types).reduce((function(t,e){return t[e]=!0,t}),{});t.update(D,{consent:i},[_,H,K])})),i.addEventListener("click",(function(n){var i=Object.keys(e.settings.types).reduce((function(t,e){return t[e]=!1,t}),{});t.update(D,{consent:i},[M,_,K])})),t.update(F,{banner:s},[function(){return s.focus()},function(){return document.addEventListener("keydown",e.keyListener)}])}}},K=function(t){t.banner.parentNode.removeChild(t.banner),document.removeEventListener("keydown",t.keyListener)},U=function(t){return function(e){var n=document.querySelector(".".concat(e.settings.classNames.updateContainer));if(n){n.innerHTML=e.settings.formTemplate(function(t){return O({},t.settings,{types:Object.keys(t.settings.types).reduce((function(e,n){return void 0!==t.consent[n]?e[n]=O({},t.settings.types[n],{checked:t.consent[n]}):e[n]=t.settings.types[n],e}),{})})}(e));var i=document.querySelector(".".concat(e.settings.classNames.form)),s=[].slice.call(document.querySelectorAll(".".concat(e.settings.classNames.field)));i.addEventListener("submit",(function(e){e.preventDefault();var i=s.reduce((function(t,e){return t[e.value]=e.checked,t}),{}),o=0===Object.keys(i).filter((function(t){return i[t]})).length;t.update(D,{consent:i},o?[M,_,function(t){return n.innerHTML=t.settings.successTemplate(t.settings)},function(t){return window.setTimeout((function(){return document.querySelector(".".concat(t.settings.classNames.successMessage)).focus()}),260)}]:[_,H,function(t){return n.innerHTML=t.settings.successTemplate(t.settings)},function(t){return window.setTimeout((function(){return document.querySelector(".".concat(t.settings.classNames.successMessage)).focus()}),260)}])}))}}},G=function(t){return function(e){if(!document.querySelector(".modal.active")){var n,i=(n=t.banner,[].slice.call(n.querySelectorAll(j.join(","))).filter((function(t){return t.offsetWidth>0||t.offsetHeight>0}))),s=i.indexOf(document.activeElement);e.shiftKey&&0===s?(e.preventDefault(),i[i.length-1].focus()):(e.shiftKey||s!==i.length-1)&&t.banner.contains(document.activeElement)||(e.preventDefault(),i[0].focus())}}},V=function(t){return function(e){t.getState().banner&&9===e.keyCode&&G(t.getState())(e)}};function Y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,s=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(i=(r=a.next()).done)&&(n.push(r.value),!e||n.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(s)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return W(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var J=function(t){if(function(){try{document.cookie="cookietest=1";var t=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}()){var e={state:{},update:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.state=t(this.state,e),i.length>
130&&i.forEach((function(t){t(n.state)}))},getState:function(){return this.state}},n=Y(I(t),2),i=n[0],s=n[1];e.update(P,{settings:t,consent:s,keyListener:V(e)},[H,function(t){return!i&&z(e)(t)},U(e)])}};function Z(){return(Z=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var Q=function(t){return J(Z({},q,t,{types:Object.keys(t.types).reduce((function(e,n){return e[n]?e[n]=Z({},e[n],{fns:e[n].fns.concat(t.types[n].fns),checked:void 0!==t.types[n].checked?t.types[n].checked:void 0!==q.types[n].checked&&q.types[n].checked}):e[n]=t.types[n],e}),q.types)}))},X=function(t){return function(){var e=window,n=document,i="script",s="dataLayer";e[s]=e[s]||[],e[s].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var o=n.getElementsByTagName(i)[0],r=n.createElement(i);r.async=!0,r.src="https://www.googletagmanager.com/gtm.js?id=".concat(t),o.parentNode.insertBefore(r,o)}},tt=".js-gm-embed",et=".js-embed",nt=function(t){var e,n=t.parentNode,i=(e=t.dataset,Object.keys(e).map((function(t){return{name:t.replace("gm","").toLowerCase(),value:e[t]}}))).reduce((function(t,e){return t.setAttribute(e.name,e.value),"title"===e.name&&(t.innerText=e.value),t}),document.createElement("iframe"));n.insertBefore(i,t),n.removeChild(t)},it=function(){document.querySelector(tt)&&[].slice.call(document.querySelectorAll(tt)).forEach(nt)},st=function(t){var e=t.nextElementSibling;t.insertAdjacentHTML("afterend",e.innerHTML),t.parentNode.removeChild(t),e.parentNode.removeChild(e)},ot=function(){document.querySelector(et)&&[].slice.call(document.querySelectorAll(et)).forEach(st)};function rt(...t){function e(t){const e={};return function t(n,i){for(const[s,o]of Object.entries(n)){const n=i?`${i}.${s}`:s;o&&"object"==typeof o?t(o,n):e[n]=o}}(t),e}const n={};for(const i of t){const t=e(i);for(const[e,i]of Object.entries(t))n[e]=i}return n}function at(t,e){const n={};for(const[i,s]of Object.entries(t)){const t=i.split(".");if(t[0]===e){t.length>1&&t.shift();n[t.join(".")]=s}}return n}function ct(t){if(t.includes("#"))return t.split("#").pop()}function lt(t){const e="--govuk-frontend-breakpoint-"+t;return{property:e,value:window.getComputedStyle(document.documentElement).getPropertyValue(e)||void 0}}function ut(t,e={}){var n;const i=t.getAttribute("tabindex");function s(){var n;null==(n=e.onBlur)||n.call(t),i||t.removeAttribute("tabindex")}i||t.setAttribute("tabindex","-1"),t.addEventListener("focus",(function(){t.addEventListener("blur",s,{once:!0})}),{once:!0}),null==(n=e.onBeforeFocus)||n.call(t),t.focus()}function dt(t=document.body){return!!t&&t.classList.contains("govuk-frontend-supported")}function ht(t){if("string"!=typeof t)return t;const e=t.trim();return"true"===e||"false"!==e&&(e.length>0&&isFinite(Number(e))?Number(e):t)}function ft(t){const e={};for(const[n,i]of Object.entries(t))e[n]=ht(i);return e}class mt extends Error{constructor(...t){super(...t),this.name="GOVUKFrontendError"}}class pt extends mt{constructor(t=document.body){const e="noModule"in HTMLScriptElement.prototype?'GOV.UK Frontend initialised without `<body class="govuk-frontend-supported">` from template `<script>` snippet':"GOV.UK Frontend is not supported in this browser";super(t?e:'GOV.UK Frontend initialised without `<script type="module">`'),this.name="SupportError"}}class gt extends mt{constructor(...t){super(...t),this.name="ConfigError"}}class vt extends mt{constructor(t){let e="string"==typeof t?t:"";if("object"==typeof t){const{componentName:n,identifier:i,element:s,expectedType:o}=t;e=`${n}: ${i}`,e+=s?" is not of type "+(null!=o?o:"HTMLElement"):" not found"}super(e),this.name="ElementError"}}class bt{constructor(){this.checkSupport()}checkSupport(){if(!dt())throw new pt}}class yt{constructor(t={},e={}){var n;this.translations=void 0,this.locale=void 0,this.translations=t,this.locale=null!=(n=e.locale)?n:document.documentElement.lang||"en"}t(t,e){if(!t)throw new Error("i18n: lookup key missing");"number"==typeof(null==e?void 0:e.count)&&(t=`${t}.${this.getPluralSuffix(t,e.count)}`);const n=this.translations[t];if("string"==typeof n){if(n.match(/%{(.\S+)}/)){if(!e)throw new Error("i18n: cannot replace placeholders in string if no option data provided");return this.replacePlaceholders(n,e)}return n}return t}replacePlaceholders(t,e){const n=Intl.NumberFormat.supportedLocalesOf(this.locale).length?new Intl.NumberFormat(this.locale):void 0;return t.replace(/%{(.\S+)}/g,(function(t,i){if(Object.prototype.hasOwnProperty.call(e,i)){const t=e[i];return!1===t||"number"!=typeof t&&"string"!=typeof t?"":"number"==typeof t?n?n.format(t):""+t:t}throw new Error(`i18n: no data found to replace ${t} placeholder in string`)}))}hasIntlPluralRulesSupport(){return Boolean("PluralRules"in window.Intl&&Intl.PluralRules.supportedLocalesOf(this.locale).length)}getPluralSuffix(t,e){if(e=Number(e),!isFinite(e))return"other";const n=this.hasIntlPluralRulesSupport()?new Intl.PluralRules(this.locale).select(e):this.selectPluralFormUsingFallbackRules(e);if(`${t}.${n}`in this.translations)return n;if(t+".other"in this.translations)return console.warn(`i18n: Missing plural form ".${n}" for "${this.locale}" locale. Falling back to ".other".`),"other";throw new Error(`i18n: Plural form ".other" is required for "${this.locale}" locale`)}
13selectPluralFormUsingFallbackRules(t){t=Math.abs(Math.floor(t));const e=this.getPluralRulesForLocale();return e?yt.pluralRules[e](t):"other"}getPluralRulesForLocale(){const t=this.locale.split("-")[0];for(const e in yt.pluralRulesMap){const n=yt.pluralRulesMap[e];if(n.includes(this.locale)||n.includes(t))return e}}}yt.pluralRulesMap={arabic:["ar"],chinese:["my","zh","id","ja","jv","ko","ms","th","vi"],french:["hy","bn","fr","gu","hi","fa","pa","zu"],german:["af","sq","az","eu","bg","ca","da","nl","en","et","fi","ka","de","el","hu","lb","no","so","sw","sv","ta","te","tr","ur"],irish:["ga"],russian:["ru","uk"],scottish:["gd"],spanish:["pt-PT","it","es"],welsh:["cy"]},yt.pluralRules={arabic:t=>0===t?"zero":1===t?"one":2===t?"two":t%100>=3&&t%100<=10?"few":t%100>=11&&t%100<=99?"many":"other",chinese:()=>"other",french:t=>0===t||1===t?"one":"other",german:t=>1===t?"one":"other",irish:t=>1===t?"one":2===t?"two":t>=3&&t<=6?"few":t>=7&&t<=10?"many":"other",russian(t){const e=t%100,n=e%10;return 1===n&&11!==e?"one":n>=2&&n<=4&&!(e>=12&&e<=14)?"few":0===n||n>=5&&n<=9||e>=11&&e<=14?"many":"other"},scottish:t=>1===t||11===t?"one":2===t||12===t?"two":t>=3&&t<=10||t>=13&&t<=19?"few":"other",spanish:t=>1===t?"one":t%1e6==0&&0!==t?"many":"other",welsh:t=>0===t?"zero":1===t?"one":2===t?"two":3===t?"few":6===t?"many":"other"}; 14/**
15 * Accordion component 16 * 17 * This allows a collection of sections to be collapsed by default, showing only 18 * their headers. Sections can be expanded or collapsed individually by clicking 19 * their headers. A "Show all sections" button is also added to the top of the 20 * accordion, which switches to "Hide all sections" when all the sections are 21 * expanded. 22 * 23 * The state of each section is saved to the DOM via the `aria-expanded` 24 * attribute, which also provides accessibility. 25 * 26 * @preserve 27 */ 28class wt extends bt{constructor(t,e={}){if(super(),this.$module=void 0,this.config=void 0,this.i18n=void 0,this.controlsClass="govuk-accordion__controls",this.showAllClass="govuk-accordion__show-all",this.showAllTextClass="govuk-accordion__show-all-text",this.sectionClass="govuk-accordion__section",this.sectionExpandedClass="govuk-accordion__section--expanded",this.sectionButtonClass="govuk-accordion__section-button",this.sectionHeaderClass="govuk-accordion__section-header",this.sectionHeadingClass="govuk-accordion__section-heading",this.sectionHeadingDividerClass="govuk-accordion__section-heading-divider",this.sectionHeadingTextClass="govuk-accordion__section-heading-text",this.sectionHeadingTextFocusClass="govuk-accordion__section-heading-text-focus",this.sectionShowHideToggleClass="govuk-accordion__section-toggle",this.sectionShowHideToggleFocusClass="govuk-accordion__section-toggle-focus",this.sectionShowHideTextClass="govuk-accordion__section-toggle-text",this.upChevronIconClass="govuk-accordion-nav__chevron",this.downChevronIconClass="govuk-accordion-nav__chevron--down",this.sectionSummaryClass="govuk-accordion__section-summary",this.sectionSummaryFocusClass="govuk-accordion__section-summary-focus",this.sectionContentClass="govuk-accordion__section-content",this.$sections=void 0,this.browserSupportsSessionStorage=!1,this.$showAllButton=null,this.$showAllIcon=null,this.$showAllText=null,!(t instanceof HTMLElement))throw new vt({componentName:"Accordion",element:t,identifier:"Root element (`$module`)"});this.$module=t,this.config=rt(wt.defaults,e,ft(t.dataset)),this.i18n=new yt(at(this.config,"i18n"));const n=this.$module.querySelectorAll("."+this.sectionClass);if(!n.length)throw new vt({componentName:"Accordion",identifier:`Sections (\`<div class="${this.sectionClass}">\`)`});this.$sections=n,this.browserSupportsSessionStorage=Ct.checkForSessionStorage(),this.initControls(),this.initSectionHeaders();const i=this.checkIfAllSectionsOpen();this.updateShowAllButton(i)}initControls(){this.$showAllButton=document.createElement("button"),this.$showAllButton.setAttribute("type","button"),this.$showAllButton.setAttribute("class",this.showAllClass),this.$showAllButton.setAttribute("aria-expanded","false"),this.$showAllIcon=document.createElement("span"),this.$showAllIcon.classList.add(this.upChevronIconClass),this.$showAllButton.appendChild(this.$showAllIcon);const t=document.createElement("div");t.setAttribute("class",this.controlsClass),t.appendChild(this.$showAllButton),this.$module.insertBefore(t,this.$module.firstChild),this.$showAllText=document.createElement("span"),this.$showAllText.classList.add(this.showAllTextClass),this.$showAllButton.appendChild(this.$showAllText),this.$showAllButton.addEventListener("click",()=>this.onShowOrHideAllToggle()),"onbeforematch"in document&&document.addEventListener("beforematch",t=>this.onBeforeMatch(t))}initSectionHeaders(){this.$sections.forEach((t,e)=>{const n=t.querySelector("."+this.sectionHeaderClass);if(!n)throw new vt({componentName:"Accordion",identifier:`Section headers (\`<div class="${this.sectionHeaderClass}">\`)`});this.constructHeaderMarkup(n,e),this.setExpanded(this.isExpanded(t),t),n.addEventListener("click",()=>this.onSectionToggle(t)),this.setInitialState(t)})}constructHeaderMarkup(t,e){const n=t.querySelector("."+this.sectionButtonClass),i=t.querySelector("."+this.sectionHeadingClass),s=t.querySelector("."+this.sectionSummaryClass);if(!i)throw new vt({componentName:"Accordion",identifier:`Section heading (\`.${this.sectionHeadingClass}\`)`});if(!n)throw new vt({componentName:"Accordion",identifier:`Section button placeholder (\`<sp
28an class="${this.sectionButtonClass}">\`)`});const o=document.createElement("button");o.setAttribute("type","button"),o.setAttribute("aria-controls",`${this.$module.id}-content-${e+1}`);for(const t of Array.from(n.attributes))"id"!==t.nodeName&&o.setAttribute(t.nodeName,""+t.nodeValue);const r=document.createElement("span");r.classList.add(this.sectionHeadingTextClass),r.id=n.id;const a=document.createElement("span");a.classList.add(this.sectionHeadingTextFocusClass),r.appendChild(a),a.innerHTML=n.innerHTML;const c=document.createElement("span");c.classList.add(this.sectionShowHideToggleClass),c.setAttribute("data-nosnippet","");const l=document.createElement("span");l.classList.add(this.sectionShowHideToggleFocusClass),c.appendChild(l);const u=document.createElement("span"),d=document.createElement("span");if(d.classList.add(this.upChevronIconClass),l.appendChild(d),u.classList.add(this.sectionShowHideTextClass),l.appendChild(u),o.appendChild(r),o.appendChild(this.getButtonPunctuationEl()),null!=s&&s.parentNode){const t=document.createElement("span"),e=document.createElement("span");e.classList.add(this.sectionSummaryFocusClass),t.appendChild(e);for(const e of Array.from(s.attributes))t.setAttribute(e.nodeName,""+e.nodeValue);e.innerHTML=s.innerHTML,s.parentNode.replaceChild(t,s),o.appendChild(t),o.appendChild(this.getButtonPunctuationEl())}o.appendChild(c),i.removeChild(n),i.appendChild(o)}onBeforeMatch(t){const e=t.target;if(!(e instanceof Element))return;const n=e.closest("."+this.sectionClass);n&&this.setExpanded(!0,n)}onSectionToggle(t){const e=this.isExpanded(t);this.setExpanded(!e,t),this.storeState(t)}onShowOrHideAllToggle(){const t=!this.checkIfAllSectionsOpen();this.$sections.forEach(e=>{this.setExpanded(t,e),this.storeState(e)}),this.updateShowAllButton(t)}setExpanded(t,e){const n=e.querySelector("."+this.upChevronIconClass),i=e.querySelector("."+this.sectionShowHideTextClass),s=e.querySelector("."+this.sectionButtonClass),o=e.querySelector("."+this.sectionContentClass);if(!o)throw new vt({componentName:"Accordion",identifier:`Section content (\`<div class="${this.sectionContentClass}">\`)`});if(!n||!i||!s)return;const r=t?this.i18n.t("hideSection"):this.i18n.t("showSection");i.textContent=r,s.setAttribute("aria-expanded",""+t);const a=[],c=e.querySelector("."+this.sectionHeadingTextClass);c&&a.push((""+c.textContent).trim());const l=e.querySelector("."+this.sectionSummaryClass);l&&a.push((""+l.textContent).trim());const u=t?this.i18n.t("hideSectionAriaLabel"):this.i18n.t("showSectionAriaLabel");a.push(u),s.setAttribute("aria-label",a.join(" , ")),t?(o.removeAttribute("hidden"),e.classList.add(this.sectionExpandedClass),n.classList.remove(this.downChevronIconClass)):(o.setAttribute("hidden","until-found"),e.classList.remove(this.sectionExpandedClass),n.classList.add(this.downChevronIconClass));const d=this.checkIfAllSectionsOpen();this.updateShowAllButton(d)}isExpanded(t){return t.classList.contains(this.sectionExpandedClass)}checkIfAllSectionsOpen(){return this.$sections.length===this.$module.querySelectorAll("."+this.sectionExpandedClass).length}updateShowAllButton(t){this.$showAllButton&&this.$showAllText&&this.$showAllIcon&&(this.$showAllButton.setAttribute("aria-expanded",t.toString()),this.$showAllText.textContent=t?this.i18n.t("hideAllSections"):this.i18n.t("showAllSections"),this.$showAllIcon.classList.toggle(this.downChevronIconClass,!t))}storeState(t){if(this.browserSupportsSessionStorage&&this.config.rememberExpanded){const e=t.querySelector("."+this.sectionButtonClass);if(e){const t=e.getAttribute("aria-controls"),n=e.getAttribute("aria-expanded");t&&n&&window.sessionStorage.setItem(t,n)}}}setInitialState(t){if(this.browserSupportsSessionStorage&&this.config.rememberExpanded){const e=t.querySelector("."+this.sectionButtonClass);if(e){const n=e.getAttribute("aria-controls"),i=n?window.sessionStorage.getItem(n):null;null!==i&&this.setExpanded("true"===i,t)}}}getButtonPunctuationEl(){const t=document.createElement("span");return t.classList.add("govuk-visually-hidden",this.sectionHeadingDividerClass),t.innerHTML=", ",t}}wt.moduleName="govuk-accordion",wt.defaults=Object.freeze({i18n:{hideAllSections:"Hide all sections",hideSection:"Hide",hideSectionAriaLabel:"Hide this section",showAllSections:"Show all sections",showSection:"Show",
28showSectionAriaLabel:"Show this section"},rememberExpanded:!0});const Ct={checkForSessionStorage:function(){const t="this is the test string";let e;try{return window.sessionStorage.setItem(t,t),e=window.sessionStorage.getItem(t)===t.toString(),window.sessionStorage.removeItem(t),e}catch(t){return!1}}}; 29/** 30 * JavaScript enhancements for the Button component 31 * 32 * @preserve 33 */ 34class kt extends bt{constructor(t,e={}){if(super(),this.$module=void 0,this.config=void 0,this.debounceFormSubmitTimer=null,!(t instanceof HTMLElement))throw new vt({componentName:"Button",element:t,identifier:"Root element (`$module`)"});this.$module=t,this.config=rt(kt.defaults,e,ft(t.dataset)),this.$module.addEventListener("keydown",t=>this.handleKeyDown(t)),this.$module.addEventListener("click",t=>this.debounce(t))}handleKeyDown(t){const e=t.target;32===t.keyCode&&e instanceof HTMLElement&&"button"===e.getAttribute("role")&&(t.preventDefault(),e.click())}debounce(t){if(this.config.preventDoubleClick)return this.debounceFormSubmitTimer?(t.preventDefault(),!1):void(this.debounceFormSubmitTimer=window.setTimeout(()=>{this.debounceFormSubmitTimer=null},1e3))}}function St(t,e){const n=t.closest(`[${e}]`);return n?n.getAttribute(e):null} 35/** 36 * Character count component 37 * 38 * Tracks the number of characters or words in the `.govuk-js-character-count` 39 * `<textarea>` inside the element. Displays a message with the remaining number 40 * of characters/words available, or the number of characters/words in excess. 41 * 42 * You can configure the message to only appear after a certain percentage 43 * of the available characters/words has been entered. 44 * 45 * @preserve 46 */kt.moduleName="govuk-button",kt.defaults=Object.freeze({preventDoubleClick:!1});class Et extends bt{constructor(t,e={}){var n,i;if(super(),this.$module=void 0,this.$textarea=void 0,this.$visibleCountMessage=void 0,this.$screenReaderCountMessage=void 0,this.lastInputTimestamp=null,this.lastInputValue="",this.valueChecker=null,this.config=void 0,this.i18n=void 0,this.maxLength=void 0,!(t instanceof HTMLElement))throw new vt({componentName:"Character count",element:t,identifier:"Root element (`$module`)"});const s=t.querySelector(".govuk-js-character-count");if(!(s instanceof HTMLTextAreaElement||s instanceof HTMLInputElement))throw new vt({componentName:"Character count",element:s,expectedType:"HTMLTextareaElement or HTMLInputElement",identifier:"Form field (`.govuk-js-character-count`)"});const o=ft(t.dataset);let r={};("maxwords"in o||"maxlength"in o)&&(r={maxlength:void 0,maxwords:void 0}),this.config=rt(Et.defaults,e,r,o);const a=function(t,e){const n=[];for(const[i,s]of Object.entries(t)){const t=[];for(const{required:n,errorMessage:i}of s)n.every(t=>!!e[t])||t.push(i);"anyOf"!==i||s.length-t.length>=1||n.push(...t)}return n}(Et.schema,this.config);if(a[0])throw new gt("Character count: "+a[0]);this.i18n=new yt(at(this.config,"i18n"),{locale:St(t,"lang")}),this.maxLength=null!=(n=null!=(i=this.config.maxwords)?i:this.config.maxlength)?n:1/0,this.$module=t,this.$textarea=s;const c=this.$textarea.id+"-info",l=document.getElementById(c);if(!l)throw new vt({componentName:"Character count",element:l,identifier:`Count message (\`id="${c}"\`)`});(""+l.textContent).match(/^\s*$/)&&(l.textContent=this.i18n.t("textareaDescription",{count:this.maxLength})),this.$textarea.insertAdjacentElement("afterend",l);const u=document.createElement("div");u.className="govuk-character-count__sr-status govuk-visually-hidden",u.setAttribute("aria-live","polite"),this.$screenReaderCountMessage=u,l.insertAdjacentElement("afterend",u);const d=document.createElement("div");d.className=l.className,d.classList.add("govuk-character-count__status"),d.setAttribute("aria-hidden","true"),this.$visibleCountMessage=d,l.insertAdjacentElement("afterend",d),l.classList.add("govuk-visually-hidden"),this.$textarea.removeAttribute("maxlength"),this.bindChangeEvents(),window.addEventListener("pageshow",()=>this.updateCountMessage()),this.updateCountMessage()}bindChangeEvents(){this.$textarea.addEventListener("keyup",()=>this.handleKeyUp()),this.$textarea.addEventListener("focus",()=>this.handleFocus()),this.$textarea.addEventListener("blur",()=>this.handleBlur())}handleKeyUp(){this.updateVisibleCountMessage(),this.lastInputTimestamp=Date.now()}handleFocus(){this.valueChecker=window.setInterval(()=>{(!this.lastInputTimestamp||Date.now()-500>=this.lastInputTimestamp)&&this.updateIfValueChanged()},1e3)}handleBlur(){this.valueChecker&&window.clearInterval(this.valueChecker)}updateIfValueChanged(){this.$textarea.value!==this.lastInputValue&&(this.lastInputValue=this.$textarea.value,this.updateCountMessage())}updateCountMessage(){this.updateVisibleCountMessage(),this.updateScreenReaderCountMessage()}updateVisibleCountMessage(){const t=this.maxLength-this.count(this.$textarea.value)<0;this.$visibleCountMessage.classList.toggle("govuk-character-count__message--disabled",!this.isOverThreshold()),this.$textarea.classList.toggle("govuk-textarea--error",t),this.$visibleCountMessage.classList.toggle("govuk-error-message",t),this.$visibleCountMessage.classList.toggle("govuk-hint",!t),this.$visibleCountMessage.textContent=this.getCountMessage()}updateScreenReaderCountMessage(){this.isOverThreshold()?this.$screenReaderCountMessage.removeAttribute("aria-hidden"):this.$screenReaderCountMessage.setAttribute("aria-hidden","true"),this.$screenReaderCountMessage.textContent=this.getCountMessage()}count(t){if(this.config.maxwords){var e;return(null!=(e=t.match(/\S+/g))?e:[]).length}return t.length}getCountMessage(){const t=this.maxLength-this.count(this.$textarea.value),e=this.config.maxwords?"words":"characters";return this.formatCountMessage(t,e)}formatCountMessage(t,e){if(0===t)return this.i18n.t(e+"AtLimit");const n=t<0?"OverLimit":"UnderLimit";return this.i18n.t(`${e}${n}`,{count:Math.abs(t)})}isOverThreshold(){if(!this.config.threshold)return!0;const t=this.count(this.$textarea.value);return this.maxLength*this.config.threshold/100<=t}}Et.moduleName="govuk-character-count",Et.defaults=Object.freeze({threshold:0,i18n:{charactersUnderLimit:{one:"You have %{count} character remaining",other:"You have %{count} characters remaining"},charactersAtLimit:"You have 0 characters remaining",charactersOverLimit:{one:"You have %{count} character too many",other:"You have %{count} characters too many"},wordsUnderLimit:{one:"You have %{count} word remaining",other:"You have %{count} words remaining"},wordsAtLimit:"You have 0 words remaining",wordsOverLimit:{one:"You have %{count} word too many",other:"You have %{count} words too many"},textareaDescription:{other:""}}}),Et.schema=Object.freeze({anyOf:[{required:["maxwords"],errorMessage:'Either "maxlength" or "maxwords" must be provided'},{required:["maxlength"],errorMessage:'Either "maxlength" or "maxwords" must be provided'}]}); 47/** 48 * Checkboxes component 49 * 50 * @preserve 51 */ 52class Tt extends bt{constructor(t){if(super(),this.$module=void 0,this.$inputs=void 0,!(t instanceof HTMLElement))throw new vt({componentName:"Checkboxes",element:t,identifier:"Root element (`$module`)"});const e=t.querySelectorAll('input[type="checkbox"]');if(!e.length)throw new vt({componentName:"Checkboxes",identifier:'Form inputs (`<input type="checkbox">`)'});
52this.$module=t,this.$inputs=e,this.$inputs.forEach(t=>{const e=t.getAttribute("data-aria-controls");if(e){if(!document.getElementById(e))throw new vt({componentName:"Checkboxes",identifier:`Conditional reveal (\`id="${e}"\`)`});t.setAttribute("aria-controls",e),t.removeAttribute("data-aria-controls")}}),window.addEventListener("pageshow",()=>this.syncAllConditionalReveals()),this.syncAllConditionalReveals(),this.$module.addEventListener("click",t=>this.handleClick(t))}syncAllConditionalReveals(){this.$inputs.forEach(t=>this.syncConditionalRevealWithInputState(t))}syncConditionalRevealWithInputState(t){const e=t.getAttribute("aria-controls");if(!e)return;const n=document.getElementById(e);if(n&&n.classList.contains("govuk-checkboxes__conditional")){const e=t.checked;t.setAttribute("aria-expanded",e.toString()),n.classList.toggle("govuk-checkboxes__conditional--hidden",!e)}}unCheckAllInputsExcept(t){document.querySelectorAll(`input[type="checkbox"][name="${t.name}"]`).forEach(e=>{t.form===e.form&&e!==t&&(e.checked=!1,this.syncConditionalRevealWithInputState(e))})}unCheckExclusiveInputs(t){document.querySelectorAll(`input[data-behaviour="exclusive"][type="checkbox"][name="${t.name}"]`).forEach(e=>{t.form===e.form&&(e.checked=!1,this.syncConditionalRevealWithInputState(e))})}handleClick(t){const e=t.target;if(!(e instanceof HTMLInputElement)||"checkbox"!==e.type)return;if(e.getAttribute("aria-controls")&&this.syncConditionalRevealWithInputState(e),!e.checked)return;"exclusive"===e.getAttribute("data-behaviour")?this.unCheckAllInputsExcept(e):this.unCheckExclusiveInputs(e)}}Tt.moduleName="govuk-checkboxes"; 53/** 54 * Error summary component 55 * 56 * Takes focus on initialisation for accessible announcement, unless disabled in 57 * configuration. 58 * 59 * @preserve 60 */ 61class xt extends bt{constructor(t,e={}){if(super(),this.$module=void 0,this.config=void 0,!(t instanceof HTMLElement))throw new vt({componentName:"Error summary",element:t,identifier:"Root element (`$module`)"});this.$module=t,this.config=rt(xt.defaults,e,ft(t.dataset)),this.config.disableAutoFocus||ut(this.$module),this.$module.addEventListener("click",t=>this.handleClick(t))}handleClick(t){const e=t.target;e&&this.focusTarget(e)&&t.preventDefault()}focusTarget(t){if(!(t instanceof HTMLAnchorElement))return!1;const e=ct(t.href);if(!e)return!1;const n=document.getElementById(e);if(!n)return!1;const i=this.getAssociatedLegendOrLabel(n);return!!i&&(i.scrollIntoView(),n.focus({preventScroll:!0}),!0)}getAssociatedLegendOrLabel(t){var e;const n=t.closest("fieldset");if(n){const e=n.getElementsByTagName("legend");if(e.length){const n=e[0];if(t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type))return n;const i=n.getBoundingClientRect().top,s=t.getBoundingClientRect();if(s.height&&window.innerHeight){if(s.top+s.height-i<window.innerHeight/2)return n}}}return null!=(e=document.querySelector(`label[for='${t.getAttribute("id")}']`))?e:t.closest("label")}}xt.moduleName="govuk-error-summary",xt.defaults=Object.freeze({disableAutoFocus:!1}); 62/** 63 * Exit this page component 64 * 65 * @preserve 66 */ 67class Lt extends bt{constructor(t,e={}){if(super(),this.$module=void 0,this.config=void 0,this.i18n=void 0,this.$button=void 0,this.$skiplinkButton=null,this.$updateSpan=null,this.$indicatorContainer=null,this.$overlay=null,this.keypressCounter=0,this.lastKeyWasModified=!1,this.timeoutTime=5e3,this.keypressTimeoutId=null,this.timeoutMessageId=null,!(t instanceof HTMLElement))throw new vt({componentName:"Exit this page",element:t,identifier:"Root element (`$module`)"});const n=t.querySelector(".govuk-exit-this-page__button");if(!(n instanceof HTMLAnchorElement))throw new vt({componentName:"Exit this page",element:n,expectedType:"HTMLAnchorElement",identifier:"Button (`.govuk-exit-this-page__button`)"});this.config=rt(Lt.defaults,e,ft(t.dataset)),this.i18n=new yt(at(this.config,"i18n")),this.$module=t,this.$button=n;const i=document.querySelector(".govuk-js-exit-this-page-skiplink");i instanceof HTMLAnchorElement&&(this.$skiplinkButton=i),this.buildIndicator(),this.initUpdateSpan(),this.initButtonClickHandler(),"govukFrontendExitThisPageKeypress"in document.body.dataset||(document.addEventListener("keyup",this.handleKeypress.bind(this),!0),document.body.dataset.govukFrontendExitThisPageKeypress="true"),window.addEventListener("pageshow",this.resetPage.bind(this))}initUpdateSpan(){this.$updateSpan=document.createElement("span"),this.$updateSpan.setAttribute("role","status"),this.$updateSpan.className="govuk-visually-hidden",this.$module.appendChild(this.$updateSpan)}initButtonClickHandler(){this.$button.addEventListener("click",this.handleClick.bind(this)),this.$skiplinkButton&&this.$skiplinkButton.addEventListener("click",this.handleClick.bind(this))}buildIndicator(){this.$indicatorContainer=document.createElement("div"),this.$indicatorContainer.className="govuk-exit-this-page__indicator",this.$indicatorContainer.setAttribute("aria-hidden","true");for(let t=0;t<3;t++){const t=document.createElement("div");t.className="govuk-exit-this-page__indicator-light",this.$indicatorContainer.appendChild(t)}this.$button.appendChild(this.$indicatorContainer)}updateIndicator(){if(!this.$indicatorContainer)return;this.$indicatorContainer.classList.toggle("govuk-exit-this-page__indicator--visible",this.keypressCounter>0);this.$indicatorContainer.querySelectorAll(".govuk-exit-this-page__indicator-light").forEach((t,e)=>{t.classList.toggle("govuk-exit-this-page__indicator-light--on",e<this.keypressCounter)})}exitPage(){this.$updateSpan&&(this.$updateSpan.textContent="",document.body.classList.add("govuk-exit-this-page-hide-content"),this.$overlay=document.createElement("div"),this.$overlay.className="govuk-exit-this-page-overlay",this.$overlay.setAttribute("role","alert"),document.body.appendChild(this.$overlay),this.$overlay.textContent=this.i18n.t("activated"),window.location.href=this.$button.href)}handleClick(t){t.preventDefault(),this.exitPage()}handleKeypress(t){this.$updateSpan&&("Shift"!==t.key&&16!==t.keyCode&&16!==t.which||this.lastKeyWasModified?this.keypressTimeoutId&&this.resetKeypressTimer():(this.keypressCounter+=1,this.updateIndicator(),this.timeoutMessageId&&(window.clearTimeout(this.timeoutMessageId),this.timeoutMessageId=null),this.keypressCounter>=3?(this.keypressCounter=0,this.keypressTimeoutId&&(window.clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=null),this.exitPage()):1===this.keypressCounter?this.$updateSpan.textContent=this.i18n.t("pressTwoMoreTimes"):this.$updateSpan.textContent=this.i18n.t("pressOneMoreTime"),this.setKeypressTimer()),this.lastKeyWasModified=t.shiftKey)}setKeypressTimer(){this.keypressTimeoutId&&window.clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=window.setTimeout(this.resetKeypressTimer.bind(this),this.timeoutTime)}resetKeypressTimer(){if(!this.$updateSpan)return;this.keypressTimeoutId&&(window.clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=null);const t=this.$updateSpan;this.keypressCounter=0,t.textContent=this.i18n.t("timedOut"),this.timeoutMessageId=window.setTimeout(()=>{t.textContent=""},this.timeoutTime),this.updateIndicator()}resetPage(){document.body.classList.remove("govuk-exit-this-page-hide-content"),this.$overlay&&(this.$overlay.remove(),this.$overlay=null),this.$updateSpan&&(this.$updateSpan.setAttribute("role","status"),this.$updateSpan.textContent=""),this.updateIndicator(),this.keypressTimeoutId&&window.clearTimeout(this.keypressTimeoutId),this.timeoutMessageId&&window.clearTimeout(this.timeoutMessageId)}}Lt.moduleName="govuk-exit-this-page",Lt.defaults=Object.freeze({i18n:{activated:"Loading.",timedOut:"Exit this page expired.",pressTwoMoreTimes:"Shift, press 2 more times to exit.",pressOneMoreTime:"Shift, press 1 more time to exit."}}); 68/** 69 * Header component 70 * 71 * @preserve 72 */ 73class At extends bt{constructor(t){if(super(),this.$module=void 0,this.$menuButton=void 0,this.$menu=void 0,this.menuIsOpen=!1,this.mql=null,!t)throw new vt({componentName:"Header",element:t,identifier:"Root element (`$module`)"});this.$module=t;const e=t.querySelector(".govuk-js-header-toggle");if(!e)return this;const n=e.getAttribute("aria-controls");if(!n)throw new vt({componentName:"Header",identifier:'Navigation button (`<button class="govuk-js-header-toggle">`) attribute (`aria-controls`)'});const i=document.getElementById(n);if(!i)throw new vt({componentName:"Header",element:i,identifier:`Navigation (\`<ul id="${n}">\`)`});this.$menu=i,this.$menuButton=e,this.setupResponsiveChecks(),this.$menuButton.addEventListener("click",()=>this.handleMenuButtonClick())}setupResponsiveChecks(){const t=lt("desktop");if(!t.value)throw new vt({componentName:"Header",identifier:`CSS custom property (\`${t.property}\`) on pseudo-class \`:root\``});this.mql=window.matchMedia(`(min-width: ${t.value})`),"addEventListener"in this.mql?this.mql.addEventListener("change",()=>this.checkMode()):this.mql.addListener(()=>this.checkMode()),this.checkMode()}checkMode(){this.mql&&this.$menu&&this.$menuButton&&(this.mql.matches?(this.$menu.removeAttribute("hidden"),this.$menuButton.setAttribute("hidden","")):(this.$menuButton.removeAttribute("hidden"),this.$menuButton.setAttribute("aria-expanded",this.menuIsOpen.toString()),this.menuIsOpen?this.$menu.removeAttribute("hidden"):this.$menu.setAttribute("hidden","")))}handleMenuButtonClick(){this.menuIsOpen=!this.menuIsOpen,this.checkMode()}}At.moduleName="govuk-header"; 74/** 75 * Notification Banner component 76 * 77 * @preserve 78 */ 79class Ot extends bt{constructor(t,e={}){if(super(),this.$module=void 0,this.config=void 0,!(t instanceof HTMLElement))throw new vt({componentName:"Notification banner",element:t,identifier:"Root element (`$module`)"});this.$module=t,this.config=rt(Ot.defaults,e,ft(t.dataset)),"alert"!==this.$module.getAttribute("role")||this.config.disableAutoFocus||ut(this.$module)}}Ot.moduleName="govuk-notification-banner",Ot.defaults=Object.freeze({disableAutoFocus:!1}); 80/** 81 * Radios component 82 * 83 * @preserve 84 */ 85class _t extends bt{constructor(t){if(super(),this.$module=void 0,this.$inputs=void 0,!(t instanceof HTMLElement))throw new vt({componentName:"Radios",element:t,identifier:"Root element (`$module`)"});const e=t.querySelectorAll('input[type="radio"]');
85if(!e.length)throw new vt({componentName:"Radios",identifier:'Form inputs (`<input type="radio">`)'});this.$module=t,this.$inputs=e,this.$inputs.forEach(t=>{const e=t.getAttribute("data-aria-controls");if(e){if(!document.getElementById(e))throw new vt({componentName:"Radios",identifier:`Conditional reveal (\`id="${e}"\`)`});t.setAttribute("aria-controls",e),t.removeAttribute("data-aria-controls")}}),window.addEventListener("pageshow",()=>this.syncAllConditionalReveals()),this.syncAllConditionalReveals(),this.$module.addEventListener("click",t=>this.handleClick(t))}syncAllConditionalReveals(){this.$inputs.forEach(t=>this.syncConditionalRevealWithInputState(t))}syncConditionalRevealWithInputState(t){const e=t.getAttribute("aria-controls");if(!e)return;const n=document.getElementById(e);if(null!=n&&n.classList.contains("govuk-radios__conditional")){const e=t.checked;t.setAttribute("aria-expanded",e.toString()),n.classList.toggle("govuk-radios__conditional--hidden",!e)}}handleClick(t){const e=t.target;if(!(e instanceof HTMLInputElement)||"radio"!==e.type)return;const n=document.querySelectorAll('input[type="radio"][aria-controls]'),i=e.form,s=e.name;n.forEach(t=>{const e=t.form===i;t.name===s&&e&&this.syncConditionalRevealWithInputState(t)})}}_t.moduleName="govuk-radios"; 86/** 87 * Skip link component 88 * 89 * @preserve 90 */ 91class It extends bt{constructor(t){var e;if(super(),this.$module=void 0,!(t instanceof HTMLAnchorElement))throw new vt({componentName:"Skip link",element:t,expectedType:"HTMLAnchorElement",identifier:"Root element (`$module`)"});this.$module=t;const n=this.$module.hash,i=null!=(e=this.$module.getAttribute("href"))?e:"";let s;try{s=new window.URL(this.$module.href)}catch(t){throw new vt(`Skip link: Target link (\`href="${i}"\`) is invalid`)}if(s.origin!==window.location.origin||s.pathname!==window.location.pathname)return;const o=ct(n);if(!o)throw new vt(`Skip link: Target link (\`href="${i}"\`) has no hash fragment`);const r=document.getElementById(o);if(!r)throw new vt({componentName:"Skip link",element:r,identifier:`Target content (\`id="${o}"\`)`});this.$module.addEventListener("click",()=>ut(r,{onBeforeFocus(){r.classList.add("govuk-skip-link-focused-element")},onBlur(){r.classList.remove("govuk-skip-link-focused-element")}}))}}It.moduleName="govuk-skip-link"; 92/** 93 * Tabs component 94 * 95 * @preserve 96 */ 97class $t extends bt{constructor(t){if(super(),this.$module=void 0,this.$tabs=void 0,this.$tabList=void 0,this.$tabListItems=void 0,this.keys={left:37,right:39,up:38,down:40},this.jsHiddenClass="govuk-tabs__panel--hidden",this.changingHash=!1,this.boundTabClick=void 0,this.boundTabKeydown=void 0,this.boundOnHashChange=void 0,this.mql=null,!t)throw new vt({componentName:"Tabs",element:t,identifier:"Root element (`$module`)"});const e=t.querySelectorAll("a.govuk-tabs__tab");if(!e.length)throw new vt({componentName:"Tabs",identifier:'Links (`<a class="govuk-tabs__tab">`)'});this.$module=t,this.$tabs=e,this.boundTabClick=this.onTabClick.bind(this),this.boundTabKeydown=this.onTabKeydown.bind(this),this.boundOnHashChange=this.onHashChange.bind(this);const n=this.$module.querySelector(".govuk-tabs__list"),i=this.$module.querySelectorAll("li.govuk-tabs__list-item");if(!n)throw new vt({componentName:"Tabs",identifier:'List (`<ul class="govuk-tabs__list">`)'});if(!i.length)throw new vt({componentName:"Tabs",identifier:'List items (`<li class="govuk-tabs__list-item">`)'});this.$tabList=n,this.$tabListItems=i,this.setupResponsiveChecks()}setupResponsiveChecks(){const t=lt("tablet");if(!t.value)throw new vt({componentName:"Tabs",identifier:`CSS custom property (\`${t.property}\`) on pseudo-class \`:root\``});this.mql=window.matchMedia(`(min-width: ${t.value})`),"addEventListener"in this.mql?this.mql.addEventListener("change",()=>this.checkMode()):this.mql.addListener(()=>this.checkMode()),this.checkMode()}checkMode(){var t;null!=(t=this.mql)&&t.matches?this.setup():this.teardown()}setup(){var t;this.$tabList.setAttribute("role","tablist"),this.$tabListItems.forEach(t=>{t.setAttribute("role","presentation")}
97),this.$tabs.forEach(t=>{this.setAttributes(t),t.addEventListener("click",this.boundTabClick,!0),t.addEventListener("keydown",this.boundTabKeydown,!0),this.hideTab(t)});const e=null!=(t=this.getTab(window.location.hash))?t:this.$tabs[0];this.showTab(e),window.addEventListener("hashchange",this.boundOnHashChange,!0)}teardown(){this.$tabList.removeAttribute("role"),this.$tabListItems.forEach(t=>{t.removeAttribute("role")}),this.$tabs.forEach(t=>{t.removeEventListener("click",this.boundTabClick,!0),t.removeEventListener("keydown",this.boundTabKeydown,!0),this.unsetAttributes(t)}),window.removeEventListener("hashchange",this.boundOnHashChange,!0)}onHashChange(){const t=window.location.hash,e=this.getTab(t);if(!e)return;if(this.changingHash)return void(this.changingHash=!1);const n=this.getCurrentTab();n&&(this.hideTab(n),this.showTab(e),e.focus())}hideTab(t){this.unhighlightTab(t),this.hidePanel(t)}showTab(t){this.highlightTab(t),this.showPanel(t)}getTab(t){return this.$module.querySelector(`a.govuk-tabs__tab[href="${t}"]`)}setAttributes(t){const e=ct(t.href);if(!e)return;t.setAttribute("id","tab_"+e),t.setAttribute("role","tab"),t.setAttribute("aria-controls",e),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1");const n=this.getPanel(t);n&&(n.setAttribute("role","tabpanel"),n.setAttribute("aria-labelledby",t.id),n.classList.add(this.jsHiddenClass))}unsetAttributes(t){t.removeAttribute("id"),t.removeAttribute("role"),t.removeAttribute("aria-controls"),t.removeAttribute("aria-selected"),t.removeAttribute("tabindex");const e=this.getPanel(t);e&&(e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.classList.remove(this.jsHiddenClass))}onTabClick(t){const e=this.getCurrentTab(),n=t.currentTarget;e&&n instanceof HTMLAnchorElement&&(t.preventDefault(),this.hideTab(e),this.showTab(n),this.createHistoryEntry(n))}createHistoryEntry(t){const e=this.getPanel(t);if(!e)return;const n=e.id;e.id="",this.changingHash=!0,window.location.hash=n,e.id=n}onTabKeydown(t){switch(t.keyCode){case this.keys.left:case this.keys.up:this.activatePreviousTab(),t.preventDefault();break;case this.keys.right:case this.keys.down:this.activateNextTab(),t.preventDefault()}}activateNextTab(){const t=this.getCurrentTab();if(null==t||!t.parentElement)return;const e=t.parentElement.nextElementSibling;if(!e)return;const n=e.querySelector("a.govuk-tabs__tab");n&&(this.hideTab(t),this.showTab(n),n.focus(),this.createHistoryEntry(n))}activatePreviousTab(){const t=this.getCurrentTab();if(null==t||!t.parentElement)return;const e=t.parentElement.previousElementSibling;if(!e)return;const n=e.querySelector("a.govuk-tabs__tab");n&&(this.hideTab(t),this.showTab(n),n.focus(),this.createHistoryEntry(n))}getPanel(t){const e=ct(t.href);return e?this.$module.querySelector("#"+e):null}showPanel(t){const e=this.getPanel(t);e&&e.classList.remove(this.jsHiddenClass)}hidePanel(t){const e=this.getPanel(t);e&&e.classList.add(this.jsHiddenClass)}unhighlightTab(t){t.parentElement&&(t.setAttribute("aria-selected","false"),t.parentElement.classList.remove("govuk-tabs__list-item--selected"),t.setAttribute("tabindex","-1"))}highlightTab(t){t.parentElement&&(t.setAttribute("aria-selected","true"),t.parentElement.classList.add("govuk-tabs__list-item--selected"),t.setAttribute("tabindex","0"))}getCurrentTab(){return this.$module.querySelector(".govuk-tabs__list-item--selected a.govuk-tabs__tab")}}$t.moduleName="govuk-tabs";var Mt=i(9),jt=i.n(Mt),Nt={fullscreen:!1,preload:!1,totals:!0,scrollable:!1,single:!1},Rt=function(t){return'<div class="modal-gallery__details">\n <h1 class="modal-gallery__title">'.concat(t.title,'</h1>\n <div class="modal-gallery__description">').concat(t.description,"</div>\n </div>")},qt=9,Ht=27,Bt=37,Pt=39,Ft=13,Dt=window.PointerEvent?["pointerdown","keydown"]:["ontouchstart"in window?"touchstart":"click","keydown"],zt={init:function(){var t=this;return this.isOpen=!1,this.current=!1,this.imageCache=[],this.items[0].trigger&&this.initTriggers(),this.settings.preload&&this.items.forEac
97h((function(e,n){t.loadImage(n)})),this},initTriggers:function(){var t=this;this.items.forEach((function(e,n){e.trigger.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.open(n)}),!0)}))},initUI:function(t){var e,n=this;return this.DOMOverlay=document.body.appendChild(function(){var t=document.createElement("div");return t.className="modal-gallery__outer js-modal-gallery__outer",t.setAttribute("role","dialog"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden",!0),t}()),document.body.classList.add("gallery-open"),this.DOMOverlay.insertAdjacentHTML("beforeend",function(t){return'<div class="modal-gallery__inner js-modal-gallery__inner" role="group" aria-roledescription="carousel">\n <div class="modal-gallery__action">\n <button class="js-modal-gallery__previous modal-gallery__previous" aria-label="Previous image">\n <svg focusable="false" aria-hidden="true" width="22" height="30" viewBox="0 0 44 60">\n <polyline points="30 10 10 30 30 50" stroke="rgb(255,255,255)" stroke-width="5" stroke-linecap="butt" fill="none" stroke-linejoin="round"></polyline>\n </svg>\n </button>\n <button class="js-modal-gallery__next modal-gallery__next" aria-label="Next image">\n <svg focusable="false" aria-hidden="true" width="22" height="30" viewBox="0 0 44 60">\n <polyline points="14 10 34 30 14 50" stroke="rgb(255,255,255)" stroke-width="5" stroke-linecap="butt" fill="none" stroke-linejoin="round"/>\n </svg>\n </button>\n </div>\n <button class="js-modal-gallery__close modal-gallery__close" aria-label="Close gallery">\n <svg focusable="false" aria-hidden="true" width="30" height="30">\n <g stroke="rgb(255,255,255)" stroke-width="4">\n <line x1="5" y1="5" x2="25" y2="25"/>\n <line x1="5" y1="25" x2="25" y2="5"/>\n </g>\n </svg>\n </button>\n <div class="modal-gallery__content js-modal-gallery__content" aria-atomic="false" aria-live="polite">\n '.concat(t,'\n </div>\n </div>\n <div class="modal-gallery__total js-gallery-totals"></div>')}(this.items.map(Rt).map((e=this.items,function(t,n){return'<div class="modal-gallery__item js-modal-gallery__item" role="group" aria-roledescription="slide" aria-label="Image '.concat(n+1," of ").concat(e.length,'">\n <div class="modal-gallery__img-container js-modal-gallery__img-container"></div>\n ').concat(t,"\n </div>")})).join(""))),this.DOMItems=[].slice.call(this.DOMOverlay.querySelectorAll(".js-modal-gallery__item")),this.DOMTotals=this.DOMOverlay.querySelector(".js-gallery-totals"),this.imageCache.length===this.items.length?this.imageCache.forEach((function(t,e){n.writeImage(e)})):this.loadImages(t),this},unmountUI:function(){this.DOMOverlay.parentNode.removeChild(this.DOMOverlay),document.body.classList.remove("gallery-open")},initButtons:function(){var t=this;this.closeBtn=this.DOMOverlay.querySelector(".js-modal-gallery__close"),this.closeBtn.addEventListener("click",this.close.bind(this)),this.items.length<2?this.DOMOverlay.firstElementChild.removeChild(this.DOMOverlay.querySelector(".modal-gallery__action")):(this.previousBtn=this.DOMOverlay.querySelector(".js-modal-gallery__previous"),this.nextBtn=this.DOMOverlay.querySelector(".js-modal-gallery__next"),Dt.forEach((function(e){["previous","next"].forEach((function(n){t["".concat(n,"Btn")].addEventListener(e,(function(e){e.keyCode&&e.keyCode!==Ft||t[
97n]()}))}))})))},writeTotals:function(){this.DOMTotals.innerHTML="".concat(this.current+1,"/").concat(this.items.length)},writeImage:function(t){var e=this.DOMItems[t].querySelector(".js-modal-gallery__img-container"),n=this.settings.scrollable?"modal-gallery__img modal-gallery__img--scrollable":"modal-gallery__img",i=this.items[t].srcset?' srcset="'.concat(this.items[t].srcset,'"'):"",s=this.items[t].sizes?' sizes="'.concat(this.items[t].sizes,'"'):"";e.innerHTML='<img class="'.concat(n,'" src="').concat(this.items[t].src,'" alt="').concat(this.items[t].alt,'"').concat(i).concat(s,">"),this.DOMItems[t].classList.remove("loading")},loadImage:function(t){var e=this,n=new Image,i=function(){e.imageCache[t]=n,e.writeImage(t)};n.onload=i,n.src=this.items[t].src,n.onerror=function(){e.DOMItems[t].classList.remove("loading"),e.DOMItems[t].classList.add("error")},n.complete&&i()},loadImages:function(t){var e=this,n=[t];this.items.length>1&&n.push(0===t?this.items.length-1:t-1),this.items.length>2&&n.push(t===this.items.length-1?0:t+1),n.forEac
97h((function(t){void 0===e.imageCache[t]&&(e.DOMItems[t].classList.add("loading"),e.loadImage(t))}))},getFocusableChildren:function(){return[].slice.call(this.DOMOverlay.querySelectorAll(["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",")))},trapTab:function(t){var e=this.focusableChildren.indexOf(document.activeElement);t.shiftKey&&0===e?(t.preventDefault(),this.focusableChildren[this.focusableChildren.length-1].focus()):t.shiftKey||e!==this.focusableChildren.length-1||(t.preventDefault(),this.focusableChildren[0].focus())},keyListener:function(t){if(this.isOpen)switch(t.keyCode){case Ht:t.preventDefault(),this.close();break;case qt:this.trapTab(t);break;case Bt:this.previous();break;case Pt:this.next()}},incrementDecrement:function(t){!1!==this.current&&this.DOMItems[this.current].classList.remove("active"),this.current=t(),this.DOMItems[this.current].classList.add("active"),this.loadImages(this.current),this.items.length>1&&this.settings.totals&&this.writeTotals()},previous:function(){var t=this;this.incrementDecrement((function(){return 0===t.current?t.DOMItems.length-1:t.current-1}))},next:function(){var t=this;this.incrementDecrement((function(){return t.current===t.DOMItems.length-1?0:t.current+1}))},open:function(t){this.boundKeyListener=this.keyListener.bind(this),this.initUI(t),this.initButtons(),this.focusableChildren=this.getFocusableChildren(),document.addEventListener("keydown",this.boundKeyListener),this.lastFocused=document.activeElement,this.focusableChildren.length&&window.setTimeout(function(){this.focusableChildren[0].focus()}.bind(this),0),this.DOMItems[t||0].classList.add("active"),this.toggle(t||0)},close:function(){document.removeEventListener("keydown",this.boundKeyListener),this.lastFocused&&this.lastFocused.focus(),this.DOMItems[this.current].classList.remove("active"),this.toggle(null),this.unmountUI()},toggle:function(t){this.isOpen=!this.isOpen,this.current=t,this.DOMOverlay.classList.toggle("active"),this.DOMOverlay.setAttribute("aria-hidden",!this.isOpen),this.DOMOverlay.setAttribute("tabindex",this.isOpen?"0":"-1"),this.settings.fullscreen&&this.toggleFullScreen(),this.items.length>1&&this.settings.totals&&this.writeTotals()},toggleFullScreen:function(){this.isOpen?(this.DOMOverlay.requestFullscreen&&this.DOMOverlay.requestFullscreen(),this.DOMOverlay.webkitRequestFullscreen&&this.DOMOverlay.webkitRequestFullscreen(),this.DOMOverlay.mozRequestFullScreen&&this.DOMOverlay.mozRequestFullScreen()):(document.exitFullscreen&&document.exitFullscreen(),document.mozCancelFullScreen&&document.mozCancelFullScreen(),document.webkitExitFullscreen&&document.webkitExitFullscreen())}};function Kt(){return(Kt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)} 98/** 99 * @name storm-modal-gallery: Modal gallery/lightbox 100 * @version 1.5.0: Mon, 03 Aug 2020 12:44:52 GMT 101 * @author mjbp 102 * @license MIT 103 */var Ut=function(t,e){return Kt(Object.create(zt),{items:t,settings:Kt({},Nt,e)}).init()},Gt=function(t,e){if(!t.length)throw new Error("Modal Gallery cannot be initialised, no images found");return e&&e.single?function(t,e){var n=[].slice.call(document.querySelectorAll(t));if(!n.length)throw new Error("Modal Gallery cannot be initialised, no images found");return n.map((function(t){return Ut([{trigger:t,src:t.getAttribute("href"),srcset:t.getAttribute("data-srcset")||null,sizes:t.getAttribute("data-sizes")||null,title:t.getAttribute("data-title")||"",description:t.getAttribute("data-description")||"",alt:t.getAttribute("data-alt")||""}],e)}))}(t,e):function(t,e){var n;if("string"==typeof t){var i=[].slice.call(document.querySelectorAll(t));if(!i.length)throw new Error("Modal Gallery cannot be initialised, no images found");n=i.map((function(t){return{trigger:t,src:t.getAttribute("href"),srcset:t.getAttribute("data-srcset")||null,sizes:t.getAttribute("data-sizes")||null,title:t.getAttribute("data-title")||"",description:t.getAttribute("data-description")||"",alt:t.getAttribute("data-alt")||""}}))}else n=t;return Ut(n,e)}(t,e)},Vt=[function(){document.querySelector(o.d.SELECTOR.DEFAULT)&&[].slice.call(document.querySelectorAll(
103o.d.SELECTOR.DEFAULT)).forEach((function(t){new Pikaday({field:t,format:"LL",maxDate:new Date})})),document.querySelector(o.d.SELECTOR.SCHOOL_CLOSURE)&&[].slice.call(document.querySelectorAll(o.d.SELECTOR.SCHOOL_CLOSURE)).forEach((function(t){new Pikaday({field:t,minDate:new Date,onSelect:function(e){t.value="".concat(r(e.getDate()),"/").concat(r(e.getMonth()+1),"/").concat(e.getFullYear())}})}))},function(){document.querySelector("[".concat(o.b.SELECTOR,"]"))&&[].slice.call(document.querySelectorAll("[".concat(o.b.SELECTOR,"]"))).forEach(c)},function(){document.querySelector(o.f.SELECTOR.MAP)&&function(){var t=!1,n=document.querySelector(o.f.SELECTOR.INPUT),i=new L.Map(o.f.SELECTOR.MAP.substr(1),{scrollWheelZoom:!0});i.attributionControl.options.prefix="",i.on("load",(function(){if(n.value){var s=n.value.split(","),o={lat:parseFloat(s[0]),lng:parseFloat(s[1])};t=L.marker(o,{draggable:!0,alt:"Selected location: ".concat(e.latlng.lat.toFixed(2),", ").concat(e.latlng.lng.toFixed(2))}).addTo(i)}}));var s=new L.TileLayer(o.f.TILE_LAYER.OSM_URL,{minZoom:o.f.MIN_ZOOM,attribution:o.f.TILE_LAYER.OSM_ATTRIBUTION});
103i.setView(new L.LatLng(o.f.CENTRE[0],o.f.CENTRE[1]),o.f.ZOOM),i.addLayer(s),i.on("click",(function(e){t&&i.removeLayer(t),t=L.marker(e.latlng,{draggable:!0,alt:"Selected location: ".concat(e.latlng.lat.toFixed(2),", ").concat(e.latlng.lng.toFixed(2))}).addTo(i),a.call(n,e)}))}()},function(){var t;document.querySelector("#drug-litter-location-supporting-information")&&(t=document.getElementById("drug-litter-location-supporting-information"),document.getElementById("LocationOfLitterPostcode").onkeyup=function(e){e.target.value.length>0?t.style.display="":t.style.display="none"})},function(){X(o.e.NECESSARY)(),Q({types:{functional:{fns:[X(o.e.PERFORMANCE),ot,it]},marketing:{fns:[X(o.e.MARKETING)]}}})},function(){document.querySelector(o.j.SELECTOR)&&b(o.j.SELECTOR)},function(){document.querySelector(o.g.SELECTOR)&&E(o.g.SELECTOR)},function(){var t=document.querySelector(o.i.SELECTOR);t&&(t.parentNode.setAttribute("tabindex",0),t.parentElement.style.outline="none",t.parentNode.focus())},function(){if(document.querySelector(o.c.SELECTOR)){var t=document.querySelector(o.c.SELECTOR),e=t.querySelector(".js-contact-form-active > *:first-child"),n=[].slice.call(t.querySelectorAll(".js-selected-item")),i="";n.forEach((function(t,e){i=i+(0===e?"Selected ":" and ")+t.getAttribute("data-column-title")+": "+t.querySelector(".js-item-name").textContent+" "})),e&&(i=(i=""===i?"":i+". ")+" "+e.querySelector(".js-column-name").textContent,e.setAttribute("aria-label",i),e.focus())}},function(){document.querySelectorAll('[data-module="govuk-exit-this-page"]').forEach((function(t){new Lt(t)}))},function(){document.querySelector(o.h.SELECTOR.GLOBAL)&&jt()(o.h.SELECTOR.GLOBAL),document.querySelector(o.h.SELECTOR.LOCAL)&&jt()(o.h.SELECTOR.LOCAL,o.h.OPTIONS.LOCAL)},function(){document.querySelector(".js-modal-gallery")&&Gt(".js-modal-gallery")}];window.Promise=window.Promise?window.Promise:s.a;var Yt=function(t){return t.then?t():s.a.resolve(t())};Object.assign?s.a.all(Vt.map(Yt)):Promise.resolve().then(i.t.bind(null,137,7)).then((function(){return s.a.all(Vt.map(Yt))}))},137:function(t,e,n){n(135).polyfill()},2:function(t,e,n){"use strict";n.d(e,"h",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return o})),n.d(e,"f",(function(){return r})),n.d(e,"i",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"j",(function(){return u})),n.d(e,"g",(function(){return d})),n.d(e,"a",(function(){return h}));var i={SELECTOR:{GLOBAL:".js-toggle",LOCAL:".js-toggle-local"},OPTIONS:{LOCAL:{local:!0}}},s={SELECTOR:"data-conditional",TARGET_VALUE:"Other"},o={SELECTOR:{DEFAULT:".js-datepicker",SCHOOL_CLOSURE:".js-datepicker--closure"}},r={SELECTOR:{MAP:".js-lat-lng-finder",INPUT:".js-litter-location"},CENTRE:[50.9448852,-.4565359],ZOOM:9,MIN_ZOOM:5,TILE_LAYER:{OSM_URL:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",OSM_ATTRIBUTION:'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors'}},a={SELECTOR:".input-validation-error"},c={SELECTOR:".js-contact-form"},l=(window.recaptcha_site_key,window.recaptcha_verify_api_url,{NECESSARY:"GTM-K42J3XQH",PERFORMANCE:"GTM-NZCH7ZP",MARKETING:"GTM-NP8QF46"}),u={SELECTOR:".js-wall"},d={SELECTOR:".js-slides"},h={}},4:function(t,e){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})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},6:function(t,e,n){"use strict";(function(t){var i=n(81),s=n(82);function o(t){return(o="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})(t)}var r=setTimeout;function a(t){return Boolean(t&&void 0!==t.length)}function c(){}function l(t){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(t,this)}function u(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,l._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var i;try{i=n(t._value)}catch(t){return void h(e.promise,t)}d(e.promise,i)}else(1===t._state?d:h)(e.promise,t._value)}))):t._deferreds.push(e)}function d(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===o(e)||"function"==typeof e)){var n=e.then;if(e instanceof l)return t._state=3,t._value=e,void f(t);if("function"==typeof n)return void p((i=n,s=e,function(){i.apply(s,arguments)}),t)}t._state=1,t._value=e,f(t)}catch(e){h(t,e)}var i,s}function h(t,e){t._state=2,t._value=e,f(t)}function f(t){2===t._state&&0===t._deferreds.length&&l._immediateFn((function(){t._handled||l._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)u(t,t._deferreds[e]);t._deferreds=null}function m(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function p(t,e){var n=!1;try{t((function(t){n||(n=!0,d(e,t))}),(function(t){n||(n=!0,h(e,t))}))}catch(t){if(n)return;n=!0,h(e,t)}}l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){var n=new this.constructor(c);return u(this,new m(t,e,n)),n},l.prototype.finally=i.a,l.all=function(t){return new l((function(e,n){if(!a(t))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);var s=i.length;
103function r(t,a){try{if(a&&("object"===o(a)||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void c.call(a,(function(e){r(t,e)}),n)}i[t]=a,0==--s&&e(i)}catch(t){n(t)}}for(var c=0;c<i.length;c++)r(c,i[c])}))},l.allSettled=s.a,l.resolve=function(t){return t&&"object"===o(t)&&t.constructor===l?t:new l((function(e){e(t)}))},l.reject=function(t){return new l((function(e,n){n(t)}))},l.race=function(t){return new l((function(e,n){if(!a(t))return n(new TypeError("Promise.race accepts an array"));for(var i=0,s=t.length;i<s;i++)l.resolve(t[i]).then(e,n)}))},l._immediateFn="function"==typeof t&&function(e){t(e)}||function(t){r(t,0)},l._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},e.a=l}).call(this,n(89).setImmediate)},7:function(t,e,n){"use strict";t.exports=function(t){var e,n=null,i=function(i){return function(){n=null,t.apply(i,e)}},s=function(){for(var t=arguments.length,s=new Array(t),o=0;o<t;o++)s[o]=arguments[o];e=s,null===n&&(n=requestAnimationFrame(i(this)))};return s.cancel=function(){cancelAnimationFrame(n),n=null},s}},81:function(t,e,n){"use strict";e.a=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))}},82:function(t,e,n){"use strict";function i(t){return(i="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})(t)}e.a=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(i(t)+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var s=Array.prototype.slice.call(t);if(0===s.length)return e([]);var o=s.length;function r(t,n){if(n&&("object"===i(n)||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(e){r(t,e)}),(function(n){s[t]={status:"rejected",reason:n},0==--o&&e(s)}))}s[t]={status:"fulfilled",value:n},0==--o&&e(s)}for(var a=0;a<s.length;a++)r(a,s[a])}))}},89:function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,s=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(s.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(s.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(90),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(4))},9:function(t,e,n){var i,s;function o(t){return(o="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})(t)}!function(r,a){"object"==o(e)&&void 0!==t?t.exports=a():void 0===(s="function"==typeof(i=a)?i.call(e,n,e,t):i)||(t.exports=s)}(0,(function(){function t(){return(t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var e={delay:0,startOpen:!1,local:!1,prehook:!1,callback:!1,focus:!0,trapTab:!1,closeOnBlur:!1,closeOnClick:!1,useHidden:!1},n=["button","a"],i=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not
103([tabindex="-1"])'],s={OPEN:"toggle.open",CLOSE:"toggle.close"},o=function(t){return function(){var e=t.getState(),n=e.toggles,i=e.node;e.settings.useHidden&&(i.hidden=!0),n.forEach((function(e){var n=i.getAttribute("id");if("BUTTON"!==e.tagName&&e.setAttribute("role","button"),!n)throw console.warn("The toggle target should have an id.");e.setAttribute("aria-controls",n),e.setAttribute("aria-expanded","false"),e.addEventListener("click",(function(e){e.preventDefault(),a(t)()}))}))}},r=function(t){return function(){t.dispatch({isOpen:!t.getState().isOpen},[u,v(t),g(t),b(t)])}},a=function(t){return function(){var e=t.getState(),n=e.node,i=e.toggles,s=e.settings,o=e.isOpen,a=e.classTarget,c=e.animatingClass;s.prehook&&"function"==typeof s.prehook&&s.prehook({node:n,toggles:i,isOpen:o}),a.classList.add(c);var l=function(){r(t)(),s.callback&&"function"==typeof s.callback&&s.callback({node:n,toggles:i,isOpen:t.getState().isOpen})};o&&+s.delay>0?window.setTimeout(l,+s.delay):l()}},c=function(t){var e,i=t.getAttribute("data-toggle"),s=t.getAttribute("data-toggle")&&[].slice.call(document.querySelectorAll((e=i,n.map((function(t){return t+"."+e})).join(", "))));return s||console.warn("Toggle cannot be initialised, no buttons or anchors found for "+t+". Does it have a data-toggle attribute that identifies toggle buttons?"),s},l=function(t){return[].slice.call(t.querySelectorAll(i.join(",")))},u=function(t){var e=t.isOpen,n=t.node,i=t.classTarget,s=t.animatingClass,o=t.statusClass,r=t.settings;t.toggles.forEach((function(t){return t.setAttribute("aria-expanded",e)})),i.classList.remove(s),i.classList[e?"add":"remove"](o),r.useHidden&&(n.hidden=!e)},d=function(t){return function(e){switch(e.keyCode){case 27:e.preventDefault();break;case 9:h(t,e)}}},h=function(t,e){var n=t.getState().focusableChildren,i=n.indexOf(document.activeElement);e.shiftKey&&0===i?(e.preventDefault(),n[n.length-1].focus()):e.shiftKey||i!==n.length-1||(e.preventDefault(),n[0].focus())},f=function(t,e){return t.reduce((function(t,n){return(n===e||n.contains(e))&&(t=!0),t}),!1)},m=function(t){return function(e){var n=t.getState();n.node.contains(e.target)||f(n.toggles,e.target)||r(t)()}},p=function(t){return function(e){var n=t.getState(),i=n.toggles;n.node.contains(e.target)||f(i,e.target)||r(t)()}},g=function(t){return function(){var e=t.getState(),n=e.settings,i=e.isOpen,s=e.clickListener;n.closeOnBlur&&document[(i?"add":"remove")+"EventListener"]("focusin",e.focusInListener),n.closeOnClick&&document[(i?"add":"remove")+"EventListener"]("click",s)}},v=function(t){return function(){var e=t.getState(),n=e.focusableChildren,i=e.settings,s=e.lastFocused,o=e.keyListener;if((i.focus||i.trapTab)&&0!==n.length)if(e.isOpen){t.dispatch({lastFocused:document.activeElement});var r=function(){return n[0].focus()};if(i.delay?window.setTimeout(r,i.delay):r(),!i.trapTab)return;i.trapTab&&document.addEventListener("keydown",o)}else{if(!i.trapTab)return;document.removeEventListener("keydown",o);var a=function(){s&&s.focus(),t.dispatch({lastFocused:!1})};i.delay?window.setTimeout(a,i.delay):a()}}},b=function(t){return function(e){var n=new CustomEvent(s[e.isOpen?"OPEN":"CLOSE"],{bubbles:!0,detail:{getState:t.getState}});e.node.dispatchEvent(n)}};return function(n,i){var s=function(t){return"string"==typeof t?[].slice.call(document.querySelectorAll(t)):t instanceof Array?t:Object.prototype.isPrototypeOf.call(NodeList.prototype,t)?[].slice.call(t):t instanceof HTMLElement?[t]:[]}(n);return 0===s.length?console.warn("Toggle not initialised, no elements found for selector '"+n+"'"):s.map((function(n){return Object.create(function(e){var n,i=e.node,s=e.settings,u=(n={},{dispatch:function(e,i){n=e?t({},n,e):n,i&&i.forEach((function(t){t(n)}))},getState:function(){return n}}),h=function(t,e){var n=e.local?t.parentNode:document.documentElement,i=e.local?"is--active":"on--"+t.getAttribute("id");return{classTarget:n,statusClass:i,shouldStartOpen:e.startOpen||n.classList.contains(i)}}(i,s),f=h.classTarget,g=h.statusClass,v=h.shouldStartOpen;return u.dispatch({node:i,settings:s,toggles:c(i),isOpen:!1,classTarget:f,statusClass:g,animatingClass:s.local?"animating--"+i.getAttribute("id"):"is--animating",focusableChildren:l(i),lastFocused:!1,keyListener:d(u),focusInListener:m(u),clickListener:p(u)},[o(u),function(){v&&a(u)()}]),{node:i,startToggle:a(u),toggle:r(u),getState:u.getState}}({settings:t({},e,i,n.dataset),node:n}))}
vendor: 3,948 bytes, line 103
103))}}))},90:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,s,o,r,a,c=1,l={},u=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){m(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){m(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(s=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){m(t),e.onreadystatechange=null,s.removeChild(e),e=null},s.appendChild(e)}):i=function(t){setTimeout(m,0,t)}:(r="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&m(+e.data.slice(r.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(r+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var s={callback:t,args:e};return l[c]=s,i(c),c++},h.clearImmediate=f}function f(t){delete l[t]}function m(t){if(u)setTimeout(m,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(4),n(91))},91:function(t,e){var n,i,s=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(t){i=r}}();var c,l=[],u=!1,d=-1;function h(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var t=a(h);u=!0;for(var e=l.length;e;){for(c=l,l=[];++d<e;)c&&c[d].run();d=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new m(t,e)),1!==l.length||u||a(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=p,s.addListener=p,s.once=p,s.off=p,s.removeListener=p,s.removeAllListeners=p,s.emit=p,s.prependListener=p,s.prependOnceListener=p,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},92:function(t,e,n){var i,s,o;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})(t)}o=function(){document.addEventListener("mousedown",(function(){document.documentElement.classList.add("no-outline")})),document.addEventListener("keydown",(function(){document.documentElement.classList.remove("no-outline")}))},"object"==r(e)&&void 0!==t?o():void 0===(s="function"==typeof(i=o)?i.call(e,n,e,t):i)||(t.exports=s)}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.