2&&y>2&&!t.hidden?(q=p,G=0):q=y>1&&G>1&&U<6?v:0),m!==d&&(w=innerWidth+d*z,N=innerHeight+d,f=-1*d,m=d),s=h[a].getBoundingClientRect(),(T=s.bottom)>=f&&(L=s.top)<=N&&(O=s.right)>=f*z&&(S=s.left)<=w&&(T||O||S||L)&&(i.loadHidden||K(h[a]))&&(u&&U<3&&!g&&(y<3||G<4)||Q(h[a],d))){if(ie(h[a]),c=!0,U>9)break}else!c&&u&&!l&&U<4&&G<4&&y>2&&(o[0]||i.preloadAfterLoad)&&(o[0]||!g&&(T||O||S||L||"auto"!=h[a].getAttribute(i.sizesAttr)))&&(l=o[0]||h[a]);l&&!c&&ie(l)}},X=(P=V,F=0,R=i.throttleDelay,j=i.ricTimeout,D=function(){B=!1,F=a.now(),P()},k=c&&j>49?function(){c(D,{timeout:j}),j!==i.ricTimeout&&(j=i.ricTimeout)}:_(function(){l(D)},!0),function(e){var t;(e=!0===e)&&(j=33),B||(B=!0,(t=R-(a.now()-F))<0&&(t=0),e||t<9?k():l(k,t))}),Y=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(J(e),v(t,i.loadedClass),p(t,i.loadingClass),z(t,ee),h(t,"lazyloaded"))},Z=_(Y),ee=function(e){Z({target:e.target})},te=function(e){var t,n=e.getAttribute(i.srcsetAttr);(t=i.customMedia[e.getAttribute("data-media")||e.getAttribute("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},ne=_(function(e,t,n,r,a){var o,s,u,c,y,m;(y=h(e,"lazybeforeunveil",t)).defaultPrevented||(r&&(n?v(e,i.autosizesClass):e.setAttribute("sizes",r)),s=e.getAttribute(i.srcsetAttr),o=e.getAttribute(i.srcAttr),a&&(u=e.parentNode,c=u&&d.test(u.nodeName||"")),m=t.firesLoad||"src"in e&&(s||o||c),y={target:e},v(e,i.loadingClass),m&&(clearTimeout(f),f=l(J,2500),z(e,ee,!0)),c&&g.call(u.getElementsByTagName("source"),te),s?e.setAttribute("srcset",s):o&&!c&&($.test(e.nodeName)?function(e,t){try{e.contentWindow.location.replace(t)}catch(n){e.src=t}}(e,o):e.src=o),a&&(s||c)&&b(e,{src:o})),e._lazyRace&&delete e._lazyRace,p(e,i.lazyClass),E(function(){var t=e.complete&&e.naturalWidth>1;m&&!t||(t&&v(e,"ls-is-cached"),Y(y),e._lazyCache=!0,l(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&U--},!0)}),ie=function(e){if(!e._lazyRace){var t,n=H.test(e.nodeName),r=n&&(e.getAttribute(i.sizesAttr)||e.getAttribute("sizes")),a="auto"==r;(!a&&u||!n||!e.getAttribute("src")&&!e.srcset||e.complete||m(e,i.errorClass)||!m(e,i.lazyClass))&&(t=h(e,"lazyunveilread").detail,a&&x.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,U++,ne(e,t,a,r,n))}},re=M(function(){i.loadMode=3,X()}),ae=function(){3==i.loadMode&&(i.loadMode=2),re()},oe=function(){u||(a.now()-C<999?l(oe,999):(u=!0,i.loadMode=3,X(),s("scroll",ae,!0)))};return{_:function(){C=a.now(),n.elements=t.getElementsByClassName(i.lazyClass),o=t.getElementsByClassName(i.lazyClass+" "+i.preloadClass),s("scroll",X,!0),s("resize",X,!0),e.MutationObserver?new MutationObserver(X).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r.addEventListener("DOMNodeInserted",X,!0),r.addEventListener("DOMAttrModified",X,!0),setInterval(X,999)),s("hashchange",X,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t.addEventListener(e,X,!0)}),/d$|^c/.test(t.readyState)?oe():(s("load",oe),t.addEventListener("DOMContentLoaded",X),l(oe,2e4)),n.elements.length?(V(),E._lsFlush()):X()},checkElems:X,unveil:ie,_aLSL:ae}}(),x=(S=_(function(e,t,n,i){var r,a,o;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),d.test(t.nodeName||""))for(r=t.getElementsByTagName("source"),a=0,o=r.length;a