1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8373],{8373:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var i=n(1805),s=n(9639);const a=class Takeover{constructor(e){this.element=e,this.init()}init(){const e=this.element.querySelector(".takeover__button"),t=this.element.querySelector(".takeover__media"),n=this.element.querySelector(".takeover__video"),i=this.element.querySelector(".takeover__modal");e&&t&&n&&(this.bindEvents(e),this.setupMedia(t,n),this.setupModal(i))}bindEvents(e){e.addEventListener("click",(e=>this.onClickButton(e)))}setupModal(e){setTimeout((()=>e.classList.add("is-active")),500)}setupMedia(e,t){e.classList.add("takeover__media--video"),this.addVideoSource(t)}addVideoSource(e){const t=JSON.parse(e.dataset.sources),n=this.getVideoWidth(),i=t.find((e=>e.size===n)).source,s=document.createElement("source");s.src=i.src,s.type=i.type,e.appendChild(s)}getVideoWidth(){return s.Z.isLaptopAndBigger?1920:s.Z.isTabletLandscapeAndBigger?1280:s.Z.isTabletPortraitAndBigger?960:640}onClickButton(e){e.preventDefault(),i.Z.set("takeover",!0,{expires:7,path:"/"}),window.location.href=e.currentTarget.href}}},3721:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(3493),s=n.n(i);function generateNamespace(e,t){return`${e}.${t}`}const a=new class RafThrottle{constructor(){this.namespaces={},this.timeoutList={},this.runningList={}}set(e){this._addEvents(e)}remove(e){e&&this._removeEvents(e)}_addEvents(e){e.forEach((e=>{const t={element:e.element,event:e.event,namespace:generateNamespace(e.event,e.namespace),callback:t=>this._trigger(e,t),eventOptions:{passive:!0},delay:e.delay};this.timeoutList[t.namespace]=null,this.runningList[t.namespace]=!1,this._addThrottledEvent(t)}))}_removeEvents(e){e.forEach((e=>{const t={element:e.element,event:e.event,namespace:generateNamespace(e.event,e.namespace)};this._removeThrottledEvent(t)}))}_trigger(e,t){const n=generateNamespace(e.event,e.namespace);this.runningList[n]||(e.delay&&0!==e.delay?(this.timeoutList[n]&&clearTimeout(this.timeoutList[n]),this.timeoutList[n]=setTimeout((()=>{s()((()=>{e.fn(t),e.element=!1,this.runningList[n]=!1}))}),e.delay)):s()((()=>{e.fn(t),this.runningList[n]=!1})),this.runningList[n]=!0)}_addThrottledEvent(e){const{element:t,event:n,namespace:i,callback:s}=e;let{eventOptions:a}=e;this.namespaces[i]=s,a=a||!1,t.addEventListener(n,s,a)}_removeThrottledEvent(e){const{element:t,event:n,namespace:i}=e;this.namespaces[i]&&(t.removeEventListener(n,this.namespaces[i]),delete this.namespaces[i])}}},9639:(e,t,n)=>{n.d(t,{Z:()=>i});const i=n(976).Z},976:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(3721);const s=[{reference:"isMobile",breakpoint:320},{reference:"isMobilePlus",breakpoint:480},{reference:"isTabletPortrait",breakpoint:768},{reference:"isTabletLandscape",breakpoint:1024},{reference:"isLaptop",breakpoint:1240},{reference:"isDesktop",breakpoint:1600},{reference:"isWidescreen",breakpoint:1920}];const installMediaQueryWatcher=(e,t)=>{const n=window.matchMedia(e);n.addListener((e=>t(e.matches,e.media))),t(n.matches,n.media)},a=new class ScreenDimensions{get screenHeight(){return this.height}get screenWidth(){return this.width}constructor(){i.Z.set([{element:window,event:"resize",namespace:"ScreenDimensionsWidthChange",fn:()=>this.updateWidth()}]),s.forEach(((e,t)=>{const n=e.breakpoint;installMediaQueryWatcher(`(min-width: ${n}px)`,(t=>{this[`${e.reference}AndBigger`]=t})),t?s[t+1]?installMediaQueryWatcher(`(min-width: ${n}px) and (max-width: ${s[t+1].breakpoint-1}px)`,(t=>{this[e.reference]=t})):installMediaQueryWatcher(`(min-width: ${n}px)`,(t=>{this[e.reference]=t})):installMediaQueryWatcher(`(max-width: ${n}px)`,(t=>{this[e.reference]=t}))})),this.updateWidth()}updateWidth(){this.width=window.innerWidth,this.height=window.innerHeight}}}}]);
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.