(()=>{function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId],module;return cachedModule!==undefined?cachedModule.exports:(module=__webpack_module_cache__[moduleId]={exports:{}},__webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.exports)}var __webpack_modules__={"./node_modules/lazysizes/lazysizes.js":module=>{(function(window,factory){var lazySizes=factory(window,window.document,Date);window.lazySizes=lazySizes;!0&&module.exports&&(module.exports=lazySizes)})(typeof window!="undefined"?window:{},function(window,document,Date){"use strict";var lazysizes,lazySizesCfg;if(function(){var prop,lazySizesDefaults={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};lazySizesCfg=window.lazySizesConfig||window.lazysizesConfig||{};for(prop in lazySizesDefaults)prop in lazySizesCfg||(lazySizesCfg[prop]=lazySizesDefaults[prop])}(),!document||!document.getElementsByClassName)return{init:function(){},cfg:lazySizesCfg,noSupport:!0};var docElem=document.documentElement,supportPicture=window.HTMLPictureElement,_addEventListener="addEventListener",_getAttribute="getAttribute",addEventListener=window[_addEventListener].bind(window),setTimeout=window.setTimeout,requestAnimationFrame=window.requestAnimationFrame||setTimeout,requestIdleCallback=window.requestIdleCallback,regPicture=/^picture$/i,loadEvents=["load","error","lazyincluded","_lazyloaded"],regClassCache={},forEach=Array.prototype.forEach,hasClass=function(ele,cls){return regClassCache[cls]||(regClassCache[cls]=new RegExp("(\\s|^)"+cls+"(\\s|$)")),regClassCache[cls].test(ele[_getAttribute]("class")||"")&&regClassCache[cls]},addClass=function(ele,cls){hasClass(ele,cls)||ele.setAttribute("class",(ele[_getAttribute]("class")||"").trim()+" "+cls)},removeClass=function(ele,cls){var reg;(reg=hasClass(ele,cls))&&ele.setAttribute("class",(ele[_getAttribute]("class")||"").replace(reg," "))},addRemoveLoadEvents=function(dom,fn,add){var action=add?_addEventListener:"removeEventListener";add&&addRemoveLoadEvents(dom,fn);loadEvents.forEach(function(evt){dom[action](evt,fn)})},triggerEvent=function(elem,name,detail,noBubbles,noCancelable){var event=document.createEvent("Event");return detail||(detail={}),detail.instance=lazysizes,event.initEvent(name,!noBubbles,!noCancelable),event.detail=detail,elem.dispatchEvent(event),event},updatePolyfill=function(el,full){var polyfill;!supportPicture&&(polyfill=window.picturefill||lazySizesCfg.pf)?(full&&full.src&&!el[_getAttribute]("srcset")&&el.setAttribute("srcset",full.src),polyfill({reevaluate:!0,elements:[el]})):full&&full.src&&(el.src=full.src)},getCSS=function(elem,style){return(getComputedStyle(elem,null)||{})[style]},getWidth=function(elem,parent,width){for(width=width||elem.offsetWidth;width<lazySizesCfg.minSize&&parent&&!elem._lazysizesWidth;)width=parent.offsetWidth,parent=parent.parentNode;return width},rAF=function(){var running,waiting,firstFns=[],secondFns=[],fns=firstFns,run=function(){var runFns=fns;for(fns=firstFns.length?secondFns:firstFns,running=!0,waiting=!1;runFns.length;)runFns.shift()();running=!1},rafBatch=function(fn,queue){running&&!queue?fn.apply(this,arguments):(fns.push(fn),waiting||(waiting=!0,(document.hidden?setTimeout:requestAnimationFrame)(run)))};return rafBatch._lsFlush=run,rafBatch}(),rAFIt=function(fn,simple){return simple?function(){rAF(fn)}:function(){var that=this,args=arguments;rAF(function(){fn.apply(that,args)})}},throttle=function(fn){var running,lastTime=0,gDelay=lazySizesCfg.throttleDelay,rICTimeout=lazySizesCfg.ricTimeout,run=function(){running=!1;lastTime=Date.now();fn()},idleCallback=requestIdleCallback&&rICTimeout>49?function(){requestIdleCallback(run,{timeout:rICTimeout});rICTimeout!==lazySizesCfg.ricTimeout&&(rICTimeout=lazySizesCfg.ricTimeout)}:rAFIt(function(){setTimeout(run)},!0);return function(isPriority){var delay;((isPriority=isPriority===!0)&&(rICTimeout=33),running)||(running=!0,delay=gDelay-(Date.now()-lastTime),delay<0&&(delay=0),isPriority||delay<9?idleCallback():setTimeout(idleCallback,delay))}},debounce=function(func){var timeout,timestamp,wait=99,run=function(){timeout=null;func()},later=function(){var last=Date.now()-timestamp;last<wait?setTimeout(later,wait-last):(requestIdleCallback||run)(run)};return function(){timestamp=Date.now();timeout||(timeout=setTimeout(later,wait))}},loader=function(){var preloadElems,isCompleted,resetPreloadingTimer,loadMode,started,eLvW,elvH,eLtop,eLleft,eLright,eLbottom,isBodyHidden,regImg=/^img$/i,regIframe=/^iframe$/i,supportScroll="onscroll"in window&&!/(gle|ing)bot/.test(navigator.userAgent),shrinkExpand=0,currentExpand=0,isLoading=0,lowRuns=-1,resetPreloading=function(e){isLoading--;(!e||isLoading<0||!e.target)&&(isLoading=0)},isVisible=function(elem){return isBodyHidden==null&&(isBodyHidden=getCSS(document.body,"visibility")=="hidden"),isBodyHidden||!(getCSS(elem.parentNode,"visibility")=="hidden"&&getCSS(elem,"visibility")=="hidden")},isNestedVisible=function(elem,elemExpand){var outerRect,parent=elem,visible=isVisible(elem);for(eLtop-=elemExpand,eLbottom+=elemExpand,eLleft-=elemExpand,eLright+=elemExpand;visible&&(parent=parent.offsetParent)&&parent!=document.body&&parent!=docElem;)visible=(getCSS(parent,"opacity")||1)>0,visible&&getCSS(parent,"overflow")!="visible"&&(outerRect=parent.getBoundingClientRect(),visible=eLright>outerRect.left&&eLleft<outerRect.right&&eLbottom>outerRect.top-1&&eLtop<outerRect.bottom+1);return visible},checkElements=function(){var eLlen,i,rect,autoLoadElem,loadedSomething,elemExpand,elemNegativeExpand,elemExpandVal,beforeExpandVal,defaultExpand,preloadExpand,hFac,lazyloadElems=lazysizes.elements;if((loadMode=lazySizesCfg.loadMode)&&isLoading<8&&(eLlen=lazyloadElems.length)){for(i=0,lowRuns++;i<eLlen;i++)if(lazyloadElems[i]&&!lazyloadElems[i]._lazyRace){if(!supportScroll||lazysizes.prematureUnveil&&lazysizes.prematureUnveil(lazyloadElems[i])){unveilElement(lazyloadElems[i]);continue}if((elemExpandVal=lazyloadElems[i][_getAttribute]("data-expand"))&&(elemExpand=elemExpandVal*1)||(elemExpand=currentExpand),defaultExpand||(defaultExpand=!lazySizesCfg.expand||lazySizesCfg.expand<1?docElem.clientHeight>500&&docElem.clientWidth>500?500:370:lazySizesCfg.expand,lazysizes._defEx=defaultExpand,preloadExpand=defaultExpand*lazySizesCfg.expFactor,hFac=lazySizesCfg.hFac,isBodyHidden=null,currentExpand<preloadExpand&&isLoading<1&&lowRuns>2&&loadMode>2&&!document.hidden?(currentExpand=preloadExpand,lowRuns=0):currentExpand=loadMode>1&&lowRuns>1&&isLoading<6?defaultExpand:shrinkExpand),beforeExpandVal!==elemExpand&&(eLvW=innerWidth+elemExpand*hFac,elvH=innerHeight+elemExpand,elemNegativeExpand=elemExpand*-1,beforeExpandVal=elemExpand),rect=lazyloadElems[i].getBoundingClientRect(),(eLbottom=rect.bottom)>=elemNegativeExpand&&(eLtop=rect.top)<=elvH&&(eLright=rect.right)>=elemNegativeExpand*hFac&&(eLleft=rect.left)<=eLvW&&(eLbottom||eLright||eLleft||eLtop)&&(lazySizesCfg.loadHidden||isVisible(lazyloadElems[i]))&&(isCompleted&&isLoading<3&&!elemExpandVal&&(loadMode<3||lowRuns<4)||isNestedVisible(lazyloadElems[i],elemExpand))){if(unveilElement(lazyloadElems[i]),loadedSomething=!0,isLoading>9)break}else!loadedSomething&&isCompleted&&!autoLoadElem&&isLoading<4&&lowRuns<4&&loadMode>2&&(preloadElems[0]||lazySizesCfg.preloadAfterLoad)&&(preloadElems[0]||!elemExpandVal&&(eLbottom||eLright||eLleft||eLtop||lazyloadElems[i][_getAttribute](lazySizesCfg.sizesAttr)!="auto"))&&(autoLoadElem=preloadElems[0]||lazyloadElems[i])}autoLoadElem&&!loadedSomething&&unveilElement(autoLoadElem)}},throttledCheckElements=throttle(checkElements),switchLoadingClass=function(e){var elem=e.target;if(elem._lazyCache){delete elem._lazyCache;return}resetPreloading(e);addClass(elem,lazySizesCfg.loadedClass);removeClass(elem,lazySizesCfg.loadingClass);addRemoveLoadEvents(elem,rafSwitchLoadingClass);triggerEvent(elem,"lazyloaded")},rafedSwitchLoadingClass=rAFIt(switchLoadingClass),rafSwitchLoadingClass=function(e){rafedSwitchLoadingClass({target:e.target})},changeIframeSrc=function(elem,src){var loadMode=elem.getAttribute("data-load-mode")||lazySizesCfg.iframeLoadMode;loadMode==0?elem.contentWindow.location.replace(src):loadMode==1&&(elem.src=src)},handleSources=function(source){var customMedia,sourceSrcset=source[_getAttribute](lazySizesCfg.srcsetAttr);(customMedia=lazySizesCfg.customMedia[source[_getAttribute]("data-media")||source[_getAttribute]("media")])&&source.setAttribute("media",customMedia);sourceSrcset&&source.setAttribute("srcset",sourceSrcset)},lazyUnveil=rAFIt(function(elem,detail,isAuto,sizes,isImg){var src,srcset,parent,isPicture,event,firesLoad;(event=triggerEvent(elem,"lazybeforeunveil",detail)).defaultPrevented||(sizes&&(isAuto?addClass(elem,lazySizesCfg.autosizesClass):elem.setAttribute("sizes",sizes)),srcset=elem[_getAttribute](lazySizesCfg.srcsetAttr),src=elem[_getAttribute](lazySizesCfg.srcAttr),isImg&&(parent=elem.parentNode,isPicture=parent&&regPicture.test(parent.nodeName||"")),firesLoad=detail.firesLoad||"src"in elem&&(srcset||src||isPicture),event={target:elem},addClass(elem,lazySizesCfg.loadingClass),firesLoad&&(clearTimeout(resetPreloadingTimer),resetPreloadingTimer=setTimeout(resetPreloading,2500),addRemoveLoadEvents(elem,rafSwitchLoadingClass,!0)),isPicture&&forEach.call(parent.getElementsByTagName("source"),handleSources),srcset?elem.setAttribute("srcset",srcset):src&&!isPicture&&(regIframe.test(elem.nodeName)?changeIframeSrc(elem,src):elem.src=src),isImg&&(srcset||isPicture)&&updatePolyfill(elem,{src:src}));elem._lazyRace&&delete elem._lazyRace;removeClass(elem,lazySizesCfg.lazyClass);rAF(function(){var isLoaded=elem.complete&&elem.naturalWidth>1;(!firesLoad||isLoaded)&&(isLoaded&&addClass(elem,lazySizesCfg.fastLoadedClass),switchLoadingClass(event),elem._lazyCache=!0,setTimeout(function(){"_lazyCache"in elem&&delete elem._lazyCache},9));elem.loading=="lazy"&&isLoading--},!0)}),unveilElement=function(elem){if(!elem._lazyRace){var detail,isImg=regImg.test(elem.nodeName),sizes=isImg&&(elem[_getAttribute](lazySizesCfg.sizesAttr)||elem[_getAttribute]("sizes")),isAuto=sizes=="auto";(isAuto||!isCompleted)&&isImg&&(elem[_getAttribute]("src")||elem.srcset)&&!elem.complete&&!hasClass(elem,lazySizesCfg.errorClass)&&hasClass(elem,lazySizesCfg.lazyClass)||(detail=triggerEvent(elem,"lazyunveilread").detail,isAuto&&autoSizer.updateElem(elem,!0,elem.offsetWidth),elem._lazyRace=!0,isLoading++,lazyUnveil(elem,detail,isAuto,sizes,isImg))}},afterScroll=debounce(function(){lazySizesCfg.loadMode=3;throttledCheckElements()}),altLoadmodeScrollListner=function(){lazySizesCfg.loadMode==3&&(lazySizesCfg.loadMode=2);afterScroll()},onload=function(){if(!isCompleted){if(Date.now()-started<999){setTimeout(onload,999);return}isCompleted=!0;lazySizesCfg.loadMode=3;throttledCheckElements();addEventListener("scroll",altLoadmodeScrollListner,!0)}};return{_:function(){started=Date.now();lazysizes.elements=document.getElementsByClassName(lazySizesCfg.lazyClass);preloadElems=document.getElementsByClassName(lazySizesCfg.lazyClass+" "+lazySizesCfg.preloadClass);addEventListener("scroll",throttledCheckElements,!0);addEventListener("resize",throttledCheckElements,!0);addEventListener("pageshow",function(e){if(e.persisted){var loadingElements=document.querySelectorAll("."+lazySizesCfg.loadingClass);loadingElements.length&&loadingElements.forEach&&requestAnimationFrame(function(){loadingElements.forEach(function(img){img.complete&&unveilElement(img)})})}});window.MutationObserver?new MutationObserver(throttledCheckElements).observe(docElem,{childList:!0,subtree:!0,attributes:!0}):(docElem[_addEventListener]("DOMNodeInserted",throttledCheckElements,!0),docElem[_addEventListener]("DOMAttrModified",throttledCheckElements,!0),setInterval(throttledCheckElements,999));addEventListener("hashchange",throttledCheckElements,!0);["focus","mouseover","click","load","transitionend","animationend"].forEach(function(name){document[_addEventListener](name,throttledCheckElements,!0)});/d$|^c/.test(document.readyState)?onload():(addEventListener("load",onload),document[_addEventListener]("DOMContentLoaded",throttledCheckElements),setTimeout(onload,2e4));lazysizes.elements.length?(checkElements(),rAF._lsFlush()):throttledCheckElements()},checkElems:throttledCheckElements,unveil:unveilElement,_aLSL:altLoadmodeScrollListner}}(),autoSizer=function(){var autosizesElems,sizeElement=rAFIt(function(elem,parent,event,width){var sources,i,len;if(elem._lazysizesWidth=width,width+="px",elem.setAttribute("sizes",width),regPicture.test(parent.nodeName||""))for(sources=parent.getElementsByTagName("source"),i=0,len=sources.length;i<len;i++)sources[i].setAttribute("sizes",width);event.detail.dataAttr||updatePolyfill(elem,event.detail)}),getSizeElement=function(elem,dataAttr,width){var event,parent=elem.parentNode;parent&&(width=getWidth(elem,parent,width),event=triggerEvent(elem,"lazybeforesizes",{width:width,dataAttr:!!dataAttr}),event.defaultPrevented||(width=event.detail.width,width&&width!==elem._lazysizesWidth&&sizeElement(elem,parent,event,width)))},updateElementsSizes=function(){var i,len=autosizesElems.length;if(len)for(i=0;i<len;i++)getSizeElement(autosizesElems[i])},debouncedUpdateElementsSizes=debounce(updateElementsSizes);return{_:function(){autosizesElems=document.getElementsByClassName(lazySizesCfg.autosizesClass);addEventListener("resize",debouncedUpdateElementsSizes)},checkElems:debouncedUpdateElementsSizes,updateElem:getSizeElement}}(),init=function(){!init.i&&document.getElementsByClassName&&(init.i=!0,autoSizer._(),loader._())};return setTimeout(function(){lazySizesCfg.init&&init()}),lazysizes={cfg:lazySizesCfg,autoSizer:autoSizer,loader:loader,init:init,uP:updatePolyfill,aC:addClass,rC:removeClass,hC:hasClass,fire:triggerEvent,gW:getWidth,rAF:rAF}})},"./node_modules/lazysizes/plugins/respimg/ls.respimg.js":(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(window,factory){if(window){var globalInstall=function(){factory(window.lazySizes);window.removeEventListener("lazyunveilread",globalInstall,!0)};factory=factory.bind(null,window,window.document);!0&&module.exports?factory(__webpack_require__("./node_modules/lazysizes/lazysizes.js")):!0&&!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__("./node_modules/lazysizes/lazysizes.js")],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__=="function"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}})(typeof window!="undefined"?window:0,function(window,document,lazySizes){"use strict";var polyfill,lazySizesCfg=lazySizes.cfg,img=document.createElement("img"),supportSrcset="sizes"in img&&"srcset"in img,regHDesc=/\s+\d+h/g,fixEdgeHDescriptor=function(){var regDescriptors=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,forEach=Array.prototype.forEach;return function(){var img=document.createElement("img"),removeHDescriptors=function(source){var ratio,match,srcset=source.getAttribute(lazySizesCfg.srcsetAttr);srcset&&(match=srcset.match(regDescriptors))&&(ratio=match[2]=="w"?match[1]/match[3]:match[3]/match[1],ratio&&source.setAttribute("data-aspectratio",ratio),source.setAttribute(lazySizesCfg.srcsetAttr,srcset.replace(regHDesc,"")))},handler=function(e){if(e.detail.instance==lazySizes){var picture=e.target.parentNode;picture&&picture.nodeName=="PICTURE"&&forEach.call(picture.getElementsByTagName("source"),removeHDescriptors);removeHDescriptors(e.target)}},test=function(){!img.currentSrc||document.removeEventListener("lazybeforeunveil",handler)};document.addEventListener("lazybeforeunveil",handler);img.onload=test;img.onerror=test;img.srcset="data:,a 1w 1h";img.complete&&test()}}();if(lazySizesCfg.supportsType||(lazySizesCfg.supportsType=function(type){return!type}),window.HTMLPictureElement&&supportSrcset){!lazySizes.hasHDescriptorFix&&document.msElementsFromPoint&&(lazySizes.hasHDescriptorFix=!0,fixEdgeHDescriptor());return}window.picturefill||lazySizesCfg.pf||(lazySizesCfg.pf=function(options){var i,len;if(!window.picturefill)for(i=0,len=options.elements.length;i<len;i++)polyfill(options.elements[i])},polyfill=function(){var ascendingSort=function(a,b){return a.w-b.w},regPxLength=/^\s*\d+\.*\d*px\s*$/,reduceCandidate=function(srces){var lowerCandidate,bonusFactor,len=srces.length,candidate=srces[len-1],i=0;for(i;i<len;i++)if(candidate=srces[i],candidate.d=candidate.w/srces.w,candidate.d>=srces.d){!candidate.cached&&(lowerCandidate=srces[i-1])&&lowerCandidate.d>srces.d-.13*Math.pow(srces.d,2.2)&&(bonusFactor=Math.pow(lowerCandidate.d-.6,1.6),lowerCandidate.cached&&(lowerCandidate.d+=.15*bonusFactor),lowerCandidate.d+(candidate.d-srces.d)*bonusFactor>srces.d&&(candidate=lowerCandidate));break}return candidate},parseWsrcset=function(){var candidates,regWCandidates=/(([^,\s].[^\s]+)\s+(\d+)w)/g,regMultiple=/\s/,addCandidate=function(match,candidate,url,wDescriptor){candidates.push({c:candidate,u:url,w:wDescriptor*1})};return function(input){return candidates=[],input=input.trim(),input.replace(regHDesc,"").replace(regWCandidates,addCandidate),candidates.length||!input||regMultiple.test(input)||candidates.push({c:input,u:input,w:99}),candidates}}(),runMatchMedia=function(){runMatchMedia.init||(runMatchMedia.init=!0,addEventListener("resize",function(){var timer,matchMediaElems=document.getElementsByClassName("lazymatchmedia"),run=function(){for(var i=0,len=matchMediaElems.length;i<len;i++)polyfill(matchMediaElems[i])};return function(){clearTimeout(timer);timer=setTimeout(run,66)}}()))},createSrcset=function(elem,isImage){var parsedSet,srcSet=elem.getAttribute("srcset")||elem.getAttribute(lazySizesCfg.srcsetAttr);!srcSet&&isImage&&(srcSet=elem._lazypolyfill?elem._lazypolyfill._set:elem.getAttribute(lazySizesCfg.srcAttr)||elem.getAttribute("src"));elem._lazypolyfill&&elem._lazypolyfill._set==srcSet||(parsedSet=parseWsrcset(srcSet||""),isImage&&elem.parentNode&&(parsedSet.isPicture=elem.parentNode.nodeName.toUpperCase()=="PICTURE",parsedSet.isPicture&&window.matchMedia&&(lazySizes.aC(elem,"lazymatchmedia"),runMatchMedia())),parsedSet._set=srcSet,Object.defineProperty(elem,"_lazypolyfill",{value:parsedSet,writable:!0}))},getX=function(elem){var dpr=window.devicePixelRatio||1,optimum=lazySizes.getX&&lazySizes.getX(elem);return Math.min(optimum||dpr,2.5,dpr)},matchesMedia=function(media){if(window.matchMedia)matchesMedia=function(media){return!media||(matchMedia(media)||{}).matches};else return!media;return matchesMedia(media)},getCandidate=function(elem){var sources,i,len,source,srces,src,width;if(source=elem,createSrcset(source,!0),srces=source._lazypolyfill,srces.isPicture)for(i=0,sources=elem.parentNode.getElementsByTagName("source"),len=sources.length;i<len;i++)if(lazySizesCfg.supportsType(sources[i].getAttribute("type"),elem)&&matchesMedia(sources[i].getAttribute("media"))){source=sources[i];createSrcset(source);srces=source._lazypolyfill;break}return srces.length>1?(width=source.getAttribute("sizes")||"",width=regPxLength.test(width)&&parseInt(width,10)||lazySizes.gW(elem,elem.parentNode),srces.d=getX(elem),!srces.src||!srces.w||srces.w<width?(srces.w=width,src=reduceCandidate(srces.sort(ascendingSort)),srces.src=src):src=srces.src):src=srces[0],src},p=function(elem){if(!supportSrcset||!elem.parentNode||elem.parentNode.nodeName.toUpperCase()=="PICTURE"){var candidate=getCandidate(elem);candidate&&candidate.u&&elem._lazypolyfill.cur!=candidate.u&&(elem._lazypolyfill.cur=candidate.u,candidate.cached=!0,elem.setAttribute(lazySizesCfg.srcAttr,candidate.u),elem.setAttribute("src",candidate.u))}};return p.parse=parseWsrcset,p}(),lazySizesCfg.loadedClass&&lazySizesCfg.loadingClass&&function(){var sels=[];['img[sizes$="px"][srcset].',"picture > img:not([srcset])."].forEach(function(sel){sels.push(sel+lazySizesCfg.loadedClass);sels.push(sel+lazySizesCfg.loadingClass)});lazySizesCfg.pf({elements:document.querySelectorAll(sels.join(", "))})}())})}},__webpack_module_cache__={};(()=>{"use strict";
/*!*****************************************!*\
  !*** ./ts/dist/modules/dependancies.js ***!
  \*****************************************/
Object.defineProperty({},"__esModule",{value:!0});__webpack_require__("./node_modules/lazysizes/lazysizes.js");__webpack_require__("./node_modules/lazysizes/plugins/respimg/ls.respimg.js")})();(()=>{
/*!*****************************************!*\
  !*** ./ts/dist/modules/ksbmain/news.js ***!
  \*****************************************/
document.addEventListener("DOMContentLoaded",function(){function showMoreNews(){var moreNews=document.getElementById("news-container__load-more");newsContainer.removeChild(moreNews);currentPage=currentPage+1;getNewsPageView(nodeId,currentPage,getSearchText(),newsContainer)}function getNewsPageView(nodeID,listPageNum,searchText,newsContainer){var spinnerBox=document.createElement("div"),spinnerIcon;spinnerBox.classList.add("news-spinner-container");newsContainer.appendChild(spinnerBox);spinnerIcon=document.createElement("div");spinnerIcon.classList.add("spinner-border");spinnerBox.appendChild(spinnerIcon);var actTagContainer=document.getElementById("news-tags__pill-list__activity"),newsInfo={currentNodeID:nodeID,listPageNum:listPageNum,searchText:searchText,actTagList:[],topicTagList:[]},params="currentNodeID="+nodeID+"&listPageNum="+listPageNum+"&searchText="+searchText,xhr=new XMLHttpRequest;xhr.open("GET","/Umbraco/surface/NewsSurface/GetMoreNewsPartial?"+params);xhr.onreadystatechange=function(){xhr.readyState===4&&(newsContainer.removeChild(spinnerBox),newsContainer.innerHTML=newsContainer.innerHTML+this.responseText)};xhr.send()}function displayNewsSection(currentID,data,newsContainer){for(var newsItem,newsMainContainer,newsSmallContainer,dateOptions={month:"short",day:"numeric"},newsList=[],i=0;i<data.length;i++)data[i].Id!=currentID&&(newsItem=newsSectionCard(data[i],i,dateOptions),newsList.push(newsItem));newsMainContainer=document.createElement("div");newsMainContainer.classList.add("news-container__main-news","align-self-stretch");newsMainContainer.appendChild(newsList[0]);newsSmallContainer=document.createElement("div");newsSmallContainer.classList.add("news-container__small-container","d-flex","flex-column","align-self-stretch","justify-content-between");newsSmallContainer.appendChild(newsList[1]);newsSmallContainer.appendChild(newsList[2]);newsContainer.appendChild(newsMainContainer);newsContainer.appendChild(newsSmallContainer)}function newsSectionCard(data,num,dateOptions){var newsBox=document.createElement("div"),linkBox=document.createElement("a"),imgCont,img,textCont,titleCont,dateCont;linkBox.setAttribute("href",data.linkUrl);linkBox.setAttribute("title",data.title);switch(num){case 0:newsBox.classList.add("news-card","news-card__section--main","d-flex","flex-column","align-content-stretch","flex-grow");linkBox.classList.add("d-flex","flex-column","align-content-stretch","flex-grow");break;case 1:newsBox.classList.add("news-card","news-card__section--small","news-card__section--small--top","d-flex","flex-column","flex-md-row");linkBox.classList.add("d-flex","flex-row","align-content-stretch","flex-grow");break;case 2:newsBox.classList.add("news-card","news-card__section--small","d-flex","flex-column","flex-md-row");linkBox.classList.add("d-flex","flex-row","align-content-stretch","flex-grow");break;default:newsBox.classList.add("news-card","news-card__section--main","d-flex","flex-column","align-content-stretch")}return newsBox.appendChild(linkBox),imgCont=document.createElement("div"),imgCont.classList.add("news-card__image"),linkBox.appendChild(imgCont),img=generateImage(data.imgUrlBox,data.imgUrlRow,data.topStory),imgCont.appendChild(img),textCont=document.createElement("div"),textCont.classList.add("news-card__text"),linkBox.appendChild(textCont),titleCont=document.createElement("div"),titleCont.classList.add("news-card__title"),titleCont.innerText=data.title,textCont.appendChild(titleCont),dateCont=document.createElement("div"),dateCont.classList.add("news-card__date"),dateCont.innerText=parseDMY(data.date).toLocaleDateString("en-GB",dateOptions),textCont.appendChild(dateCont),newsBox}function parseDMY(value){var date=value.split("/"),d=parseInt(date[0],10),m=parseInt(date[1],10),y=parseInt(date[2],10);return new Date(y,m-1,d)}function getNews(data,firstPage,newsContainer){var currentID=parseInt(document.getElementById("hidden-fields__node-id").innerText),i,topStory,newsItem,textCont;if(data.length>0)for(i=0;i<data.length;i++)data[i].Id!=currentID&&(topStory=!1,topStory=firstPage&&i==0?!0:!1,newsItem=newsPageCard(data[i],topStory),newsContainer.appendChild(newsItem));else textCont=document.createElement("div"),textCont.classList.add("news-card__no-entries"),textCont.innerText="No more entries",newsContainer.appendChild(textCont)}function newsPageCard(data,topStory){var newsBox=document.createElement("div"),linkBox,imgCont,img,textCont,titleCont,dateCont;return topStory?newsBox.classList.add("news-card","news-card__page--main","d-flex","flex-column","align-content-stretch","flex-grow"):newsBox.classList.add("news-card","news-card__page--small","d-flex","flex-column","align-content-stretch","flex-grow"),linkBox=document.createElement("a"),linkBox.setAttribute("href",data.linkUrl),linkBox.setAttribute("title",data.title),linkBox.classList.add("d-flex","flex-column","align-content-stretch","flex-grow"),newsBox.appendChild(linkBox),imgCont=document.createElement("div"),imgCont.classList.add("news-card__image"),linkBox.appendChild(imgCont),img=generateImage(data.imgUrlBox,data.imgUrlRow,data.topStory),imgCont.appendChild(img),textCont=document.createElement("div"),textCont.classList.add("news-card__text"),textCont.classList.add("flex-grow"),linkBox.appendChild(textCont),titleCont=document.createElement("div"),titleCont.classList.add("news-card__title"),titleCont.innerText=data.title,textCont.appendChild(titleCont),dateCont=document.createElement("div"),dateCont.classList.add("news-card__date"),textCont.appendChild(dateCont),newsBox}function generateImage(imgUrlBox,imgUrlRow,isTop){var imgPicture=document.createElement("picture"),sourceJpgRow,sourceWebPRow,sourceJpgBox,sourceWebPBox,img;return imgPicture.insertAdjacentHTML("beforeend","<!--[if IE 9]><video style='display: none'><![endif]-->"),sourceJpgRow=imgSource(imgUrlRow,"image/jpeg",0,768),sourceWebPRow=imgSource(imgUrlRow,"image/webp",0,768),isTop?(sourceJpgBox=imgSource(imgUrlRow,"image/jpeg",769,0),sourceWebPBox=imgSource(imgUrlRow,"image/webp",769,0),imgPicture.append(sourceJpgBox),imgPicture.append(sourceWebPBox)):(sourceJpgBox=imgSource(imgUrlBox,"image/jpeg",769,0),sourceWebPBox=imgSource(imgUrlBox,"image/webp",769,0),imgPicture.append(sourceJpgBox),imgPicture.append(sourceWebPBox)),imgPicture.append(sourceJpgRow),imgPicture.append(sourceWebPRow),imgPicture.insertAdjacentHTML("beforeend","<!--[if IE 9]><\/video><![endif]-->"),img=document.createElement("img"),img.src=imgUrlBox,img.setAttribute("src",imgUrlBox),img.setAttribute("slimmage","true"),img.setAttribute("pixel-width","370"),img.classList.add("lazyloaded"),img.dataset.sizes="auto",imgPicture.appendChild(img),imgPicture}function imgSource(imgUrl,type,minwidth,maxwidth){var source=document.createElement("source"),sourceset=imgUrl+" 160w,"+imgUrl+" 320w,"+imgUrl+" 480w,"+imgUrl+" 640w,"+imgUrl+" 800w,"+imgUrl+" 960w,"+imgUrl+" 1120w,"+imgUrl+" 1280w,"+imgUrl+" 1440w,"+imgUrl+" 1600w,"+imgUrl+" 1760w,"+imgUrl+" 1920w";return source.dataset.srcset=sourceset,source.setAttribute("srcset",imgUrl),source.setAttribute("type",type),source.dataset.sizes="auto",minwidth>0&&maxwidth>0?source.setAttribute("media","(min-width: "+minwidth+"px) and (max-width: "+maxwidth+"px)"):minwidth>0?source.setAttribute("media","(min-width: "+minwidth+"px)"):maxwidth>0&&source.setAttribute("media","(max-width: "+maxwidth+"px)"),source}var currentPage=0,nodeId=parseInt(document.getElementById("hidden-fields__node-id").innerText),newsContainer=document.getElementById("news-container"),pageType=document.getElementById("hidden-fields__page-type").innerText,filterSearchBox,filterSearchBoxGo_1;if(newsContainer!=null&&newsContainer.addEventListener("click",function(e){e.target.classList.contains("news-container__load-more")&&showMoreNews()}),document.getElementById("news-filter-row__text-filter")){filterSearchBox=document.getElementById("news-filter-row__text-filter");filterSearchBoxGo_1=document.getElementById("news-filter-row__search-go");function getSearchText(){var textFilter="";return document.getElementById("news-filter-row__text-filter")&&(textFilter=document.getElementById("news-filter-row__text-filter").value),textFilter}filterSearchBox.addEventListener("keyup",filterText);function filterText(e){e.keyCode==13&&filterSearchBoxGo_1.click()}filterSearchBoxGo_1.addEventListener("click",searchNews);function searchNews(){newsContainer.innerHTML="";var textFilter=getSearchText();currentPage=0;getNewsPageView(nodeId,currentPage,textFilter,newsContainer)}}})})();(()=>{
/*!****************************************!*\
  !*** ./ts/dist/modules/ksbmain/nav.js ***!
  \****************************************/
document.addEventListener("DOMContentLoaded",function(){function closeSearchModal(){searchModal.classList.contains("active")&&searchModal.classList.remove("active")}function closeMobileMenu(){header.classList.remove("active");mobileMenu.classList.remove("active");document.querySelector("#menu-icon").setAttribute("data-icon","bars")}var mobileMenu=document.querySelector("#mobile-menu"),header=document.querySelector("#header"),close=document.querySelector("#close"),menulist=document.querySelectorAll(".nav-menu__title"),searchButtons=document.querySelectorAll(".search-button"),searchModal=document.getElementById("search-modal"),searchBox=document.getElementById("searchBox"),searchBoxText=document.getElementById("search-box__text"),searchResults=document.getElementById("searchResults"),sticky,value;searchButtons.forEach(function(searchBtn){searchBtn.addEventListener("click",function(){searchModal.classList.contains("active")?searchModal.classList.remove("active"):(searchModal.classList.add("active"),closeMobileMenu(),searchBoxText.focus())})});mobileMenu.addEventListener("click",function(){event.stopPropagation();var iconAttr=document.querySelector("#menu-icon").getAttribute("data-icon");iconAttr==="bars"?(document.querySelector("#menu-icon").setAttribute("data-icon","times"),header.classList.add("active"),mobileMenu.classList.add("active"),closeSearchModal()):closeMobileMenu()});sticky=document.getElementById("header");value=sticky.offsetTop;window.onscroll=function(){window.pageYOffset>value?sticky.classList.add("mini"):sticky.classList.remove("mini")}})})();(()=>{
/*!*******************************************!*\
  !*** ./ts/dist/modules/ksbmain/search.js ***!
  \*******************************************/
function performSearch(searchString){if(searchString!==""){var searchUrl="/search?searchTerm="+searchString;window.location.href=searchUrl}}document.addEventListener("DOMContentLoaded",function(){var searchBoxList=document.querySelectorAll(".search-box");searchBoxList.forEach(function(searchbox){var searchTextBox=searchbox.querySelector(".search-box__text"),searchTextButton=searchbox.querySelector(".search-box__search-button");searchTextButton.addEventListener("click",function(e){if(e.target&&(e.target.matches(".search-box__search-button")||e.target.parentElement.matches(".search-box__search-button"))){var clickedVideoContainer=e.target,searchString=searchTextBox.value;performSearch(searchString)}});searchTextBox.addEventListener("keypress",function(e){if(e.key==="Enter"){var searchString=searchTextBox.value;performSearch(searchString)}})})})})();(()=>{
/*!***************************************************!*\
  !*** ./ts/dist/modules/ksbmain/cookie-control.js ***!
  \***************************************************/
var ready=function(callback){document.readyState!="loading"?callback():document.addEventListener("DOMContentLoaded",callback)};ready(function(){function setCookie(){var d=new Date;d.setTime(d.getTime()+1296e7);document.cookie="ksbCookie=1;expires="+d.toUTCString()+";path=/"}function checkCookie(){document.cookie.match(/^(.*;)?\s*ksbCookie\s*=\s*[^;]+(.*)?$/)||genCookieAlertDiv()}function okCookie(cDiv){cDiv.remove();setCookie()}function genCookieAlertDiv(){var cDiv=document.createElement("div"),cDivText,cDivButton;cDiv.id="cookie-div";cDiv.className="cookie-div";cDivText=document.createElement("div");cDivText.className="cookie-message";cDivText.innerHTML='Our website uses cookies to track visits and to help provide the best user experience. We do not store any personal details. By continuing to use the site, you are agreeing to our use of cookies. <a href="/cookies">Find out more about cookies<\/a>';cDiv.appendChild(cDivText);cDivButton=document.createElement("button");cDivButton.id="cookie-button";cDivButton.className="btn cookie-button";cDivButton.textContent="Ok";cDivButton.addEventListener("click",function(){okCookie(cDiv)});cDiv.appendChild(cDivButton);document.body.prepend(cDiv)}checkCookie()})})();(()=>{
/*!******************************************!*\
  !*** ./ts/dist/modules/ksbmain/forms.js ***!
  \******************************************/
document.addEventListener("DOMContentLoaded",function(){for(var maximumSize=10485760,fileUploads=document.getElementsByClassName("file-upload"),_loop_1=function(){var fileUploadInput=fileUploads[i].querySelector(".file-upload-input"),validationDiv=fileUploads[i].querySelector(".file-upload-validation");fileUploadInput.addEventListener("change",function(){var files=Array.from(this.files),approvedFiles=[];files.forEach(function(file){file.size<=maximumSize?approvedFiles.push(file):validationDiv.innerText="File size too large"})})},i=0;i<fileUploads.length;i++)_loop_1()})})();(()=>{
/*!************************************************!*\
  !*** ./ts/dist/modules/ksbmain/back-to-top.js ***!
  \************************************************/
function yScroll(){var yPos=window.pageYOffset,topBtn=document.getElementById("scroll-top-btn");topBtn&&(topBtn.style.bottom=yPos>20?"20px":"-50px")}document.addEventListener("scroll",yScroll);document.addEventListener("DOMContentLoaded",function(){if(document.getElementById("scroll-top-btn")){var scrollTopButton_1=document.getElementById("scroll-top-btn");scrollTopButton_1.addEventListener("click",function(){var i=window.pageYOffset,intervalTimer=setInterval(function(){i>0?(window.scrollTo(0,i),i-=60):(scrollTopButton_1&&(scrollTopButton_1.style.bottom="-50px"),clearInterval(intervalTimer))},1)})}})})()})();
//# sourceMappingURL=/sb/nmap/ksbmain-bundle.js.v638723892350000000