1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[562],{1696:(e,t,n)=>{function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,s(o.key),o)}}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}n.d(t,{default:()=>l});const l=function(){return e=function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).selector,n=void 0===t?".js-location-selector":t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selector=n,this.init(),this.handleResize(),window.addEventListener("resize",this.handleResize.bind(this))},t=[{key:"init",value:function(){var e=this;this.blocks=document.querySelectorAll(this.selector),this.blocks.length&&this.blocks.forEach(function(t){t.querySelectorAll(".js-location-toggle").forEach(function(n){n.addEventListener("click",function(o){return e.toggleItem(o,n,t)}),n.addEventListener("keydown",function(o){"button"===n.tagName.toLowerCase()||"Enter"!==o.key&&" "!==o.key||(o.preventDefault(),e.toggleItem(o,n,t))})})})}},{key:"handleResize",value:function(){var e=this,t=window.matchMedia("(min-width: 1200px)").matches;this.blocks.forEach(function(n){n.querySelectorAll(".js-location-item").forEach(function(n){var o=n.querySelector(".js-location-content"),i=n.querySelector(".js-location-toggle"),s=n.querySelector(".location-selector__link-icon .icon");o&&i&&(t?(e.openContent(o),i.setAttribute("aria-expanded","true"),null==s||s.classList.remove("icon-mask-plus"),null==s||s.classList.add("icon-mask-minus")):(e.closeContent(o,!0),i.setAttribute("aria-expanded","false"),null==s||s.classList.add("icon-mask-plus"),null==s||s.classList.remove("icon-mask-minus")))})})}},{key:"toggleItem",value:function(e,t,n){var o=this;e.preventDefault();var i=t.closest(".js-location-item"),s=null==i?void 0:i.querySelector(".js-location-content"),l=t.querySelector(".icon");if(s&&l){var r=s.classList.contains("is-open");n.querySelectorAll(".js-location-content.is-open").forEach(function(e){if(e!==s){var t=e.closest(".js-location-item"),n=null==t?void 0:t.querySelector(".js-location-toggle"),i=null==n?void 0:n.querySelector(".icon");o.closeContent(e),i&&(i.classList.add("icon-mask-plus"),i.classList.remove("icon-mask-minus")),null==n||n.setAttribute("aria-expanded","false")}}),r?this.closeContent(s):this.openContent(s),l.classList.toggle("icon-mask-plus",r),l.classList.toggle("icon-mask-minus",!r),t.setAttribute("aria-expanded",String(!r))}}},{key:"openContent",value:function(e){e.style.display="block",e.classList.add("is-open"),e.style.maxHeight="0",e.offsetHeight,e.style.maxHeight=e.scrollHeight+"px",e.style.opacity="1",e.style.overflow="hidden"}},{key:"closeContent",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return e.style.display="none",e.style.maxHeight="0",e.style.opacity="0",void e.classList.remove("is-open");e.style.maxHeight=e.scrollHeight+"px",e.offsetHeight,requestAnimationFrame(function(){e.style.maxHeight="0",e.style.opacity="0",e.style.overflow="hidden",e.classList.remove("is-open")}),e.addEventListener("transitionend",function t(n){"max-height"===n.propertyName&&(e.style.display="none",e.removeEventListener("transitionend",t))})}}],t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()}}]);
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.