1/** 2 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1. 3 * Original file: /npm/[email protected]/lazysizes.js 4 * 5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 6 */ 7var te={exports:{}},ze;function Ne(){return ze||(ze=1,(function(ae){(function(j,h){var d=h(j,j.document,Date);j.lazySizes=d,ae.exports&&(ae.exports=d)})(typeof window<"u"?window:{},function(h,d,R){var S,r;if((function(){var a,t={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};r=h.lazySizesConfig||h.lazysizesConfig||{};for(a in t)a in r||(r[a]=t[a])})(),!d||!d.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var B=d.documentElement,ge=h.HTMLPictureElement,k="addEventListener",y="getAttribute",F=h[k].bind(h),A=h.setTimeout,re=h.requestAnimationFrame||A,X=h.requestIdleCallback,ie=/^picture$/i,pe=["load","error","lazyincluded","_lazyloaded"],G={},ye=Array.prototype.forEach,q=function(a,t){return G[t]||(G[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),G[t].test(a[y]("class")||"")&&G[t]},H=function(a,t){q(a,t)||a.setAttribute("class",(a[y]("class")||"").trim()+" "+t)},Y=function(a,t){var s;(s=q(a,t))&&a.setAttribute("class",(a[y]("class")||"").replace(s," "))},Z=function(a,t,s){var c=s?k:"removeEventListener";s&&Z(a,t),pe.forEach(function(f){a[c](f,t)})},O=function(a,t,s,c,f){var n=d.createEvent("Event");return s||(s={}),s.instance=S,n.initEvent(t,!c,!f),n.detail=s,a.dispatchEvent(n),n},w=function(a,t){var s;!ge&&(s=h.picturefill||r.pf)?(t&&t.src&&!a[y]("srcset")&&a.setAttribute("srcset",t.src),s({reevaluate:!0,elements:[a]})):t&&t.src&&(a.src=t.src)},$=function(a,t){return(getComputedStyle(a,null)||{})[t]},se=function(a,t,s){for(s=s||a.offsetWidth;s<r.minSize&&t&&!a._lazysizesWidth;)s=t.offsetWidth,t=t.parentNode;return s},U=(function(){var a,t,s=[],c=[],f=s,n=function(){var o=f;for(f=s.length?c:s,a=!0,t=!1;o.length;)o.shift()();a=!1},v=function(o,u){a&&!u?o.apply(this,arguments):(f.push(o),t||(t=!0,(d.hidden?A:re)(n)))};return v._lsFlush=n,v})(),J=function(a,t){return t?function(){U(a)}:function(){var s=this,c=arguments;U(function(){a.apply(s,c)})}},he=function(a){var t,s=0,c=r.throttleDelay,f=r.ricTimeout,n=function(){t=!1,s=R.now(),a()},v=X&&f>49?function(){X(n,{timeout:f}),f!==r.ricTimeout&&(f=r.ricTimeout)}:J(function(){A(n)},!0);return function(o){var u;(o=o===!0)&&(f=33),!t&&(t=!0,u=c-(R.now()-s),u<0&&(u=0),o||u<9?v():A(v,u))}},ne=function(a){var t,s,c=99,f=function(){t=null,a()},n=function(){var v=R.now()-s;v<c?A(n,c-v):(X||f)(f)};return function(){s=R.now(),t||(t=A(n,c))}},oe=(function(){var a,t,s,c,f,n,v,o,u,C,m,T,Ce=/^img$/i,Ee=/^iframe$/i,be="onscroll"in h&&!/(gle|ing)bot/.test(navigator.userAgent),Ae=0,V=0,L=0,I=-1,le=function(e){L--,(!e||L<0||!e.target)&&(L=0)},ue=function(e){return T==null&&(T=$(d.body,"visibility")=="hidden"),T||!($(e.parentNode,"visibility")=="hidden"&&$(e,"visibility")=="hidden")},Le=function(e,i){var l,z=e,g=ue(e);for(o-=i,m+=i,u-=i,C+=i;g&&(z=z.offsetParent)&&z!=d.body&&z!=B;)g=($(z,"opacity")||1)>0,g&&$(z,"overflow")!="visible"&&(l=z.getBoundingClientRect(),g=C>l.left&&u<l.right&&m>l.top-1&&o<l.bottom+1);return g},fe=function(){var e,i,l,z,g,p,_,x,N,M,W,P,b=S.elements;if((c=r.loadMode)&&L<8&&(e=b.length)){for(i=0,I++;i<e;i++)if(!(!b[i]||b[i]._lazyRace)){if(!be||S.prematureUnveil&&S.prematureUnveil(b[i])){D(b[i]);continue}if((!(x=b[i][y]("data-expand"))||!(p=x*1))&&(p=V),M||(M=!r.expand||r.expand<1?B.clientHeight>500&&B.clientWidth>500?500:370:r.expand,S._defEx=M,W=M*r.expFactor,P=r.hFac,T=null,V<W&&L<1&&I>2&&c>2&&!d.hidden?(V=W,I=0):c>1&&I>1&&L<6?V=M:V=Ae),N!==p&&(n=innerWidth+p*P,v=innerHeight+p,_=p*-1,N=p),l=b[i].getBoundingClientRect(),(m=l.bottom)>=_&&(o=l.top)<=v&&(C=l.right)>=_*P&&(u=l.left)<=n&&(m||C||u||o)&&(r.loadHidden||ue(b[i]))&&(t&&L<3&&!x&&(c<3||I<4)||Le(b[i],p))){if(D(b[i]),g=!0,L>9)break}else!g&&t&&!z&&L<4&&I<4&&c>
72&&(a[0]||r.preloadAfterLoad)&&(a[0]||!x&&(m||C||u||o||b[i][y](r.sizesAttr)!="auto"))&&(z=a[0]||b[i])}z&&!g&&D(z)}},E=he(fe),ce=function(e){var i=e.target;if(i._lazyCache){delete i._lazyCache;return}le(e),H(i,r.loadedClass),Y(i,r.loadingClass),Z(i,de),O(i,"lazyloaded")},me=J(ce),de=function(e){me({target:e.target})},Se=function(e,i){var l=e.getAttribute("data-load-mode")||r.iframeLoadMode;l==0?e.contentWindow.location.replace(i):l==1&&(e.src=i)},_e=function(e){var i,l=e[y](r.srcsetAttr);(i=r.customMedia[e[y]("data-media")||e[y]("media")])&&e.setAttribute("media",i),l&&e.setAttribute("srcset",l)},xe=J(function(e,i,l,z,g){var p,_,x,N,M,W;(M=O(e,"lazybeforeunveil",i)).defaultPrevented||(z&&(l?H(e,r.autosizesClass):e.setAttribute("sizes",z)),_=e[y](r.srcsetAttr),p=e[y](r.srcAttr),g&&(x=e.parentNode,N=x&&ie.test(x.nodeName||"")),W=i.firesLoad||"src"in e&&(_||p||N),M={target:e},H(e,r.loadingClass),W&&(clearTimeout(s),s=A(le,2500),Z(e,de,!0)),N&&ye.call(x.getElementsByTagName("source"),_e),_?e.setAttribute("srcset",_):p&&!N&&(Ee.test(e.nodeName)?Se(e,p):e.src=p),g&&(_||N)&&w(e,{src:p})),e._lazyRace&&delete e._lazyRace,Y(e,r.lazyClass),U(function(){var P=e.complete&&e.naturalWidth>1;(!W||P)&&(P&&H(e,r.fastLoadedClass),ce(M),e._lazyCache=!0,A(function(){"_lazyCache"in e&&delete e._lazyCache},9)),e.loading=="lazy"&&L--},!0)}),D=function(e){if(!e._lazyRace){var i,l=Ce.test(e.nodeName),z=l&&(e[y](r.sizesAttr)||e[y]("sizes")),g=z=="auto";(g||!t)&&l&&(e[y]("src")||e.srcset)&&!e.complete&&!q(e,r.errorClass)&&q(e,r.lazyClass)||(i=O(e,"lazyunveilread").detail,g&&ee.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,L++,xe(e,i,g,z,l))}},Me=ne(function(){r.loadMode=3,E()}),ve=function(){r.loadMode==3&&(r.loadMode=2),Me()},Q=function(){if(!t){if(R.now()-f<999){A(Q,999);return}t=!0,r.loadMode=3,E(),F("scroll",ve,!0)}};return{_:function(){f=R.now(),S.elements=d.getElementsByClassName(r.lazyClass),a=d.getElementsByClassName(r.lazyClass+" "+r.preloadClass),F("scroll",E,!0),F("resize",E,!0),F("pageshow",function(e){if(e.persisted){var i=d.querySelectorAll("."+r.loadingClass);i.length&&i.forEach&&re(function(){i.forEach(function(l){l.complete&&D(l)})})}}),h.MutationObserver?new MutationObserver(E).observe(B,{childList:!0,subtree:!0,attributes:!0}):(B[k]("DOMNodeInserted",E,!0),B[k]("DOMAttrModified",E,!0),setInterval(E,999)),F("hashchange",E,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){d[k](e,E,!0)}),/d$|^c/.test(d.readyState)?Q():(F("load",Q),d[k]("DOMContentLoaded",E),A(Q,2e4)),S.elements.length?(fe(),U._lsFlush()):E()},checkElems:E,unveil:D,_aLSL:ve}})(),ee=(function(){var a,t=J(function(n,v,o,u){var C,m,T;if(n._lazysizesWidth=u,u+="px",n.setAttribute("sizes",u),ie.test(v.nodeName||""))for(C=v.getElementsByTagName("source"),m=0,T=C.length;m<T;m++)C[m].setAttribute("sizes",u);o.detail.dataAttr||w(n,o.detail)}),s=function(n,v,o){var u,C=n.parentNode;C&&(o=se(n,C,o),u=O(n,"lazybeforesizes",{width:o,dataAttr:!!v}),u.defaultPrevented||(o=u.detail.width,o&&o!==n._lazysizesWidth&&t(n,C,u,o)))},c=function(){var n,v=a.length;if(v)for(n=0;n<v;n++)s(a[n])},f=ne(c);return{_:function(){a=d.getElementsByClassName(r.autosizesClass),F("resize",f)},checkElems:f,updateElem:s}})(),K=function(){!K.i&&d.getElementsByClassName&&(K.i=!0,ee._(),oe._())};return A(function(){r.init&&K()}),S={cfg:r,autoSizer:ee,loader:oe,init:K,uP:w,aC:H,rC:Y,hC:q,fire:O,gW:se,rAF:U},S})})(te)),te.exports}var Fe=Ne();export{Fe as default};
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.