!function(e,t){var n=t(e,e.document);e.lazySizes=n,"object"==typeof module&&module.exports&&(module.exports=n)}(window,function(e,t){"use strict";if(t.getElementsByClassName){var n,i,a=t.documentElement,r=e.Date,o=e.HTMLPictureElement,s="addEventListener",l="getAttribute",u=e[s],c=e.setTimeout,d=e.requestAnimationFrame||c,f=e.requestIdleCallback,m=/^picture$/i,z=["load","error","lazyincluded","_lazyloaded"],g={},v=Array.prototype.forEach,y=function(e,t){return g[t]||(g[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),g[t].test(e[l]("class")||"")&&g[t]},h=function(e,t){y(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},p=function(e,t){var n;(n=y(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(n," "))},C=function(e,t,n){var i=n?s:"removeEventListener";n&&C(e,t),z.forEach(function(n){e[i](n,t)})},b=function(e,i,a,r,o){var s=t.createEvent("CustomEvent");return a||(a={}),a.instance=n,s.initCustomEvent(i,!r,!o,a),e.dispatchEvent(s),s},E=function(t,n){var a;!o&&(a=e.picturefill||i.pf)?a({reevaluate:!0,elements:[t]}):n&&n.src&&(t.src=n.src)},A=function(e,t){return(getComputedStyle(e,null)||{})[t]},L=function(e,t,n){for(n=n||e.offsetWidth;ni&&(i=0),e||9>i&&f?l():c(l,i))}},S=function(e){var t,n,i=99,a=function(){t=null,e()},o=function(){var e=r.now()-n;i>e?c(o,i-e):(f||a)(a)};return function(){n=r.now(),t||(t=c(o,i))}};!function(){var t,n={lazyClass:"js--lazyload",loadedClass:"is--lazyloaded",loadingClass:"has--lazyloading",preloadClass:"js--lazypreload",errorClass:"has--lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:1,loadHidden:!0,ricTimeout:180};i=e.lazySizesConfig||e.lazysizesConfig||{};for(t in n)t in i||(i[t]=n[t]);e.lazySizesConfig=i,c(function(){i.init&&x()})}();var _=function(){var o,d,f,z,g,L,_,x,W,B,F,P,H,R,k=/^img$/i,q=/^iframe$/i,O="onscroll"in e&&!/glebot/.test(navigator.userAgent),$=0,j=0,D=0,I=-1,G=function(e){D--,e&&e.target&&C(e.target,G),(!e||0>D||!e.target)&&(D=0)},J=function(e,n){var i,r=e,o="hidden"==A(t.body,"visibility")||"hidden"!=A(e,"visibility");for(x-=n,F+=n,W-=n,B+=n;o&&(r=r.offsetParent)&&r!=t.body&&r!=a;)o=(A(r,"opacity")||1)>0,o&&"visible"!=A(r,"overflow")&&(i=r.getBoundingClientRect(),o=B>i.left&&Wi.top-1&&xD&&(e=y.length)){r=0,I++,null==H&&("expand"in i||(i.expand=a.clientHeight>500&&a.clientWidth>500?500:370),P=i.expand,H=P*i.expFactor),H>j&&1>D&&I>2&&z>2&&!t.hidden?(j=H,I=0):j=z>1&&I>1&&6>D?P:$;for(;e>r;r++)if(y[r]&&!y[r]._lazyRace)if(O)if((g=y[r][l]("data-expand"))&&(f=1*g)||(f=j),v!==f&&(L=innerWidth+f*R,_=innerHeight+f,m=-1*f,v=f),s=y[r].getBoundingClientRect(),(F=s.bottom)>=m&&(x=s.top)<=_&&(B=s.right)>=m*R&&(W=s.left)<=L&&(F||B||W||x)&&(i.loadHidden||"hidden"!=A(y[r],"visibility"))&&(d&&3>D&&!g&&(3>z||4>I)||J(y[r],f))){if(te(y[r]),c=!0,D>9)break}else!c&&d&&!u&&4>D&&4>I&&z>2&&(o[0]||i.preloadAfterLoad)&&(o[0]||!g&&(F||B||W||x||"auto"!=y[r][l](i.sizesAttr)))&&(u=o[0]||y[r]);else te(y[r]);u&&!c&&te(u)}},Q=M(K),U=function(e){h(e.target,i.loadedClass),p(e.target,i.loadingClass),C(e.target,X),b(e.target,"is--lazyloaded")},V=w(U),X=function(e){V({target:e.target})},Y=function(e,t){try{e.contentWindow.location.replace(t)}catch(n){e.src=t}},Z=function(e){var t,n=e[l](i.srcsetAttr);(t=i.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},ee=w(function(e,t,n,a,r){var o,s,u,d,z,g;(z=b(e,"lazybeforeunveil",t)).defaultPrevented||(a&&(n?h(e,i.autosizesClass):e.setAttribute("sizes",a)),s=e[l](i.srcsetAttr),o=e[l](i.srcAttr),r&&(u=e.parentNode,d=u&&m.test(u.nodeName||"")),g=t.firesLoad||"src"in e&&(s||o||d),z={target:e},g&&(C(e,G,!0),clearTimeout(f),f=c(G,2500),h(e,i.loadingClass),C(e,X,!0)),d&&v.call(u.getElementsByTagName("source"),Z),s?e.setAttribute("srcset",s):o&&!d&&(q.test(e.nodeName)?Y(e,o):e.src=o),r&&(s||d)&&E(e,{src:o})),e._lazyRace&&delete e._lazyRace,p(e,i.lazyClass),N(function(){(!g||e.complete&&e.naturalWidth>1)&&(g?G(z):D--,U(z))},!0)}),te=function(e){var t,n=k.test(e.nodeName),a=n&&(e[l](i.sizesAttr)||e[l]("sizes")),r="auto"==a;(!r&&d||!n||!e[l]("src")&&!e.srcset||e.complete||y(e,i.errorClass)||!y(e,i.lazyClass))&&(t=b(e,"lazyunveilread").detail,r&&T.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,D++,ee(e,t,r,a,n))},ne=function(){if(!d){if(r.now()-g<999)return void c(ne,999);var e=S(function(){i.loadMode=3,Q()});d=!0,i.loadMode=3,Q(),u("scroll",function(){3==i.loadMode&&(i.loadMode=2),e()},!0)}};return{_:function(){g=r.now(),n.elements=t.getElementsByClassName(i.lazyClass),o=t.getElementsByClassName(i.lazyClass+" "+i.preloadClass),R=i.hFac,u("scroll",Q,!0),u("resize",Q,!0),e.MutationObserver?new MutationObserver(Q).observe(a,{childList:!0,subtree:!0,attributes:!0}):(a[s]("DOMNodeInserted",Q,!0),a[s]("DOMAttrModified",Q,!0),setInterval(Q,999)),u("hashchange",Q,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){t[s](e,Q,!0)}),/d$|^c/.test(t.readyState)?ne():(u("load",ne),t[s]("DOMContentLoaded",Q),c(ne,2e4)),n.elements.length?(K(),N._lsFlush()):Q()},checkElems:Q,unveil:te}}(),T=function(){var e,n=w(function(e,t,n,i){var a,r,o;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),m.test(t.nodeName||""))for(a=t.getElementsByTagName("source"),r=0,o=a.length;o>r;r++)a[r].setAttribute("sizes",i);n.detail.dataAttr||E(e,n.detail)}),a=function(e,t,i){var a,r=e.parentNode;r&&(i=L(e,r,i),a=b(e,"lazybeforesizes",{width:i,dataAttr:!!t}),a.defaultPrevented||(i=a.detail.width,i&&i!==e._lazysizesWidth&&n(e,r,a,i)))},r=function(){var t,n=e.length;if(n)for(t=0;n>t;t++)a(e[t])},o=S(r);return{_:function(){e=t.getElementsByClassName(i.autosizesClass),u("resize",o)},checkElems:o,updateElem:a}}(),x=function(){x.i||(x.i=!0,T._(),_._())};return n={cfg:i,autoSizer:T,loader:_,init:x,uP:E,aC:h,rC:p,hC:y,fire:b,gW:L,rAF:N}}}),function(e,t){var n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,function(e,t,n){"use strict";var i={nodeName:""},a=!!e.HTMLPictureElement&&"sizes"in t.createElement("img"),r=e.lazySizes&&n.cfg||e.lazySizesConfig,o=function(e){var t,r,o,s,l,u=e.target.querySelectorAll("img, iframe");for(t=0;tl)||o||(o=!0,e.detail.firesLoad=!1,n.fire(e.target,"_lazyloaded",{},!1,!0)),t&&t.target&&(t.target.removeEventListener("load",s),t.target.removeEventListener("error",s))},setTimeout(s,3500)),l++,u[t].addEventListener("load",s),u[t].addEventListener("error",s))};r||(r={},e.lazySizesConfig=r),r.getNoscriptContent=function(e){return e.textContent||e.innerText},e.addEventListener("lazybeforeunveil",function(e){if(e.detail.instance==n&&!e.defaultPrevented&&null!=e.target.getAttribute("data-noscript")){var t=e.target.querySelector('noscript, script[type*="html"]')||{},i=r.getNoscriptContent(t);i&&(e.target.innerHTML=i,o(e))}})});