PageSourceSearch

https://www.arabalears.cat/lazyload/lazyload.min.js

js arabalears.cat collected 2026-10-02 05:11:57 UTC 5,566 bytes, 1 lines download raw bytes

1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).LazyLoad=e()}(this,function(){"use strict";function t(){return(t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var e="undefined"!=typeof window,n=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),r=e&&"IntersectionObserver"in window,a=e&&"classList"in document.createElement("p"),o={elements_selector:"img",container:n||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_poster:"poster",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,callback_enter:null,callback_exit:null,callback_reveal:null,callback_loaded:null,callback_error:null,callback_finish:null,use_native:!1},i=function(t,e){var n,r=new t(e);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:r}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:r})}window.dispatchEvent(n)},s=function(t,e){return t.getAttribute("data-"+e)},c=function(t,e,n){var r="data-"+e;null!==n?t.setAttribute(r,n):t.removeAttribute(r)},l=function(t){return"true"===s(t,"was-processed")},u=function(t,e){return c(t,"ll-timeout",e)},d=function(t){return s(t,"ll-timeout")},f=function(t){for(var e,n=[],r=0;e=t.children[r];r+=1)"SOURCE"===e.tagName&&n.push(e);return n},_=function(t,e,n){n&&t.setAttribute(e,n)},v=function(t,e){_(t,"sizes",s(t,e.data_sizes)),_(t,"srcset",s(t,e.data_srcset)),_(t,"src",s(t,e.data_src))},g={IMG:function(t,e){var n=t.parentNode;n&&"PICTURE"===n.tagName&&f(n).forEach(function(t){v(t,e)}),v(t,e)},IFRAME:function(t,e){_(t,"src",s(t,e.data_src))},VIDEO:function(t,e){f(t).forEach(function(t){_(t,"src",s(t,e.data_src))}),_(t,"poster",s(t,e.data_poster)),_(t,"src",s(t,e.data_src)),t.load()}},h=function(t,e){a?t.classList.add(e):t.className+=(t.className?" ":"")+e},m=function(t,e){a?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},b=function(t,e,n,r){t&&(void 0===r?void 0===n?t(e):t(e,n):t(e,n,r))},p=function(t,e,n){t.addEventListener(e,n)},y=function(t,e,n){t.removeEventListener(e,n)},E=function(t,e,n){y(t,"load",e),y(t,"loadeddata",e),y(t,"error",n)},w=function(t,e,n){var r=n._settings,a=e?r.class_loaded:r.class_error,o=e?r.callback_loaded:r.callback_error,i=t.target;m(i,r.class_loading),h(i,a),b(o,i,n),n.loadingCount-=1,0===n._elements.length&&0===n.loadingCount&&b(r.callback_finish,n)},I=["IMG","IFRAME","VIDEO"],k=function(t,e){var n=e._observer;A(t,e),n&&e._settings.auto_unobserve&&n.unobserve(t)},A=function(t,e,n){var r=e._settings;!n&&l(t)||(I.indexOf(t.tagName)>-1&&(function(t,e){var n=function n(a){w(a,!0,e),E(t,n,r)},r=function r(a){w(a,!1,e),E(t,n,r)};!function(t,e,n){p(t,"load",e),p(t,"loadeddata",e),p(t,"error",n)}(t,n,r)}(t,e),h(t,r.class_loading)),function(t,e){var n,r,a=e._settings,o=t.tagName,i=g[o];if(i)return i(t,a),e.loadingCount+=1,void(e._elements=(n=e._elements,r=t,n.filter(function(t){return t!==r})));!function(t,e){var n=s(t,e.data_src),r=s(t,e.data_bg);n&&(t.style.backgroundImage='url("'.concat(n,'")')),r&&(t.style.backgroundImage=r)}(t,a)}(t,e),function(t){c(t,"was-processed","true")}(t),b(r.callback_reveal,t,e))},L=function(t){var e=d(t);e&&(clearTimeout(e),u(t,null))},z=function(t){return!!r&&(t._observer=new IntersectionObserver(function(e){e.forEach(function(e){return function(t){return t.isIntersecting||t.intersectionRatio>0}(e)?function(t,e,n){var r=n._settings;b(r.callback_enter,t,e,n),r.load_delay?function(t,e){var n=e._settings.load_delay,r=d(t);r||(r=setTimeout(function(){k(t,e),L(t)},n),u(t,r))}(t,n):k(t,n)}(e.target,e,t):function(t,e,n){var r=n._settings;b(r.callback_exit,t,e,n),r.load_delay&&L(t)}(e.target,e,t)})},{root:(e=t._settings).container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}),!0);var e},O=["IMG","IFRAME"],N=function(t){return Array.prototype.slice.call(t)},C=function(t,e){return function(t){return t.filter(function(t){return!l(t)})}(N(t||function(t){return t.container.querySelectorAll(t.elements_selector)}(e)))},x=function(n,r){var a;this._settings=function(e){return t({},o,e)}(n),this.loadingCount=0,z(this),this.update(r),a=this,e&&window.addEventListener("online",function(t){!function(t){var e=t._settings,n=e.container.querySelectorAll("."+e.class_error);
1N(n).forEach(function(t){m(t,e.class_error),function(t){c(t,"was-processed",null)}(t)}),t.update()}(a)})};return x.prototype={update:function(t){var e,r=this,a=this._settings;this._elements=C(t,a),!n&&this._observer?(function(t){return t.use_native&&"loading"in HTMLImageElement.prototype}(a)&&((e=this)._elements.forEach(function(t){-1!==O.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),A(t,e))}),this._elements=C(t,a)),this._elements.forEach(function(t){r._observer.observe(t)})):this.loadAll()},destroy:function(){var t=this;this._observer&&(this._elements.forEach(function(e){t._observer.unobserve(e)}),this._observer=null),this._elements=null,this._settings=null},load:function(t,e){A(t,this,e)},loadAll:function(){var t=this;this._elements.forEach(function(e){k(e,t)})}},e&&function(t,e){if(e)if(e.length)for(var n,r=0;n=e[r];r+=1)i(t,n);else i(t,e)}(x,window.lazyLoadOptions),x});

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.