PageSourceSearch

https://kolberg.com/theme/287500808247a6edd0e510785635c7cf/js/kolb…/kolberg-theme.lazy-load.plugin.6f1b24.js

js kolberg.com collected 2026-10-02 10:08:46 UTC 14,505 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[86471],{857:t=>{"use strict";var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?o(Array.isArray(t)?[]:{},t,e):t}function i(t,e,n){return t.concat(e).map(function(t){return r(t,n)})}function a(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function s(t,e){try{return e in t}catch(t){return!1}}function o(t,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=r;var c,u,d=Array.isArray(n);return d!==Array.isArray(t)?r(n,l):d?l.arrayMerge(t,n,l):(u={},(c=l).isMergeableObject(t)&&a(t).forEach(function(e){u[e]=r(t[e],c)}),a(n).forEach(function(e){(!s(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(s(t,e)&&c.isMergeableObject(n[e])?u[e]=(function(t,e){if(!e.customMerge)return o;var n=e.customMerge(t);return"function"==typeof n?n:o})(e,c)(t[e],n[e],c):u[e]=r(n[e],c))}),u)}o.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,n){return o(t,n,e)},{})},t.exports=o},471:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var r=n(209),i=n.n(r),a=n(568);class s extends a.Z{init(){this._initLazyLoading()}_initLazyLoading(){if(!window.lazyLoadInstance){window.lazyLoadInstance=new(i())({elements_selector:".f_lazy"});return}window.lazyLoadInstance.update()}}},209:function(t){t.exports=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,i=e&&"classList"in document.createElement("p"),a=e&&window.devicePixelRatio>1,s={elements_selector:".lazy",container:n||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},o=function(e){return t({},s,e)},l=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)},c=function(t,e){return t.getAttribute("data-"+e)},u=function(t,e,n){var r="data-"+e;null!==n?t.setAttribute(r,n):t.removeAttribute(r)},d=function(t){return c(t,"ll-status")},f=function(t,e){return u(t,"ll-status",e)},h=function(t){return f(t,null)},g=function(t){return null===d(t)},p=function(t){return"native"===d(t)},b=["loading","loaded","applied","error"],_=function(t,e,n,r){t&&(void 0===r?void 0===n?t(e):t(e,n):t(e,n,r))},m=function(t,e){i?t.classList.add(e):t.className+=(t.className?" ":"")+e},v=function(t,e){i?t.classList.remove(e):t.className=t.className.replace(RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},y=function(t){return t.llTempImage},E=function(t,e){if(e){var n=e._observer;n&&n.unobserve(t)}},w=function(t,e){t&&(t.loadingCount+=e)},A=function(t,e){t&&(t.toLoadCount=e)},L=function(t){for(var e,n=[],r=0;e=t.children[r];r+=1)"SOURCE"===e.tagName&&n.push(e);return n},O=function(t,e,n){n&&t.setAttribute(e,n)},N=function(t,e){t.removeAttribute(e)},I=function(t){return!!t.llOriginalAttrs},C=function(t){if(!I(t)){var e={};e.src=t.getAttribute("src"),e.srcset=t.getAttribute("srcset"),e.sizes=t.getAttribute("sizes"),t.llOriginalAttrs=e}},M=function(t){if(I(t)){var e=t.llOriginalAttrs;
1O(t,"src",e.src),O(t,"srcset",e.srcset),O(t,"sizes",e.sizes)}},z=function(t,e){O(t,"sizes",c(t,e.data_sizes)),O(t,"srcset",c(t,e.data_srcset)),O(t,"src",c(t,e.data_src))},x=function(t){N(t,"src"),N(t,"srcset"),N(t,"sizes")},k=function(t,e){var n=t.parentNode;n&&"PICTURE"===n.tagName&&L(n).forEach(e)},j=function(t,e){L(t).forEach(e)},T={IMG:function(t,e){k(t,function(t){C(t),z(t,e)}),C(t),z(t,e)},IFRAME:function(t,e){O(t,"src",c(t,e.data_src))},VIDEO:function(t,e){j(t,function(t){O(t,"src",c(t,e.data_src))}),O(t,"poster",c(t,e.data_poster)),O(t,"src",c(t,e.data_src)),t.load()}},S=function(t,e){var n=T[t.tagName];n&&n(t,e)},F=function(t,e,n){w(n,1),m(t,e.class_loading),f(t,"loading"),_(e.callback_loading,t,n)},P={IMG:function(t,e){u(t,e.data_src,null),u(t,e.data_srcset,null),u(t,e.data_sizes,null),k(t,function(t){u(t,e.data_srcset,null),u(t,e.data_sizes,null)})},IFRAME:function(t,e){u(t,e.data_src,null)},VIDEO:function(t,e){u(t,e.data_src,null),u(t,e.data_poster,null),j(t,function(t){u(t,e.data_src,null)})}},Z=function(t,e){u(t,e.data_bg_multi,null),u(t,e.data_bg_multi_hidpi,null)},R=function(t,e){var n=P[t.tagName];n?n(t,e):(u(t,e.data_bg,null),u(t,e.data_bg_hidpi,null))},q=["IMG","IFRAME","VIDEO"],D=function(t,e){!e||e.loadingCount>0||e.toLoadCount>0||_(t.callback_finish,e)},$=function(t,e,n){t.addEventListener(e,n),t.llEvLisnrs[e]=n},G=function(t,e,n){t.removeEventListener(e,n)},U=function(t){return!!t.llEvLisnrs},H=function(t){if(U(t)){var e=t.llEvLisnrs;for(var n in e){var r=e[n];G(t,n,r)}delete t.llEvLisnrs}},V=function(t,e,n){delete t.llTempImage,w(n,-1),n&&(n.toLoadCount-=1),v(t,e.class_loading),e.unobserve_completed&&E(t,n)},J=function(t,e,n){var r,i=y(t)||t;U(i)||(U(i)||(i.llEvLisnrs={}),r="VIDEO"===i.tagName?"loadeddata":"load",$(i,r,function(r){var a;a=p(t),V(t,e,n),m(t,e.class_loaded),f(t,"loaded"),R(t,e),_(e.callback_loaded,t,n),a||D(e,n),H(i)}),$(i,"error",function(r){var a;a=p(t),V(t,e,n),m(t,e.class_error),f(t,"error"),_(e.callback_error,t,n),a||D(e,n),H(i)}))},B=function(t,e,n){var r,i,s,o,l,u;t.llTempImage=document.createElement("IMG"),J(t,e,n),r=c(t,e.data_bg),i=c(t,e.data_bg_hidpi),(s=a&&i?i:r)&&(t.style.backgroundImage='url("'.concat(s,'")'),y(t).setAttribute("src",s),F(t,e,n)),o=c(t,e.data_bg_multi),l=c(t,e.data_bg_multi_hidpi),(u=a&&l?l:o)&&(t.style.backgroundImage=u,m(t,e.class_applied),f(t,"applied"),Z(t,e),e.unobserve_completed&&E(t,e),_(e.callback_applied,t,n))},K=function(t,e,n){q.indexOf(t.tagName)>-1?(J(t,e,n),S(t,e),F(t,e,n)):B(t,e,n)},Q=["IMG","IFRAME"],W=function(t){return t.use_native&&"loading"in HTMLImageElement.prototype},X=function(t,e,n){t.forEach(function(t){var r,i;return t.isIntersecting||t.intersectionRatio>0?void(f(r=t.target,"entered"),e.unobserve_entered&&E(r,n),_(e.callback_enter,r,t,n),b.indexOf(d(r))>=0||K(r,e,n)):void(g(i=t.target)||(e.cancel_on_exit&&"loading"===d(i)&&"IMG"===i.tagName&&(H(i),k(i,function(t){x(t)}),x(i),k(i,function(t){M(t)}),M(i),v(i,e.class_loading),w(n,-1),h(i),_(e.callback_cancel,i,t,n)),_(e.callback_exit,i,t,n)))})},Y=function(t){return Array.prototype.slice.call(t)},tt=function(t){return t.container.querySelectorAll(t.elements_selector)},te=function(t){return"error"===d(t)},tn=function(t,e){return Y(t||tt(e)).filter(g)},tr=function(t,n){var i,a,s=o(t);this._settings=s,this.loadingCount=0,i=this,r&&!W(s)&&(i._observer=new IntersectionObserver(function(t){X(t,s,i)},{root:s.container===document?null:s.container,rootMargin:s.thresholds||s.threshold+"px"})),a=this,e&&window.addEventListener("online",function(){Y(tt(s)).filter(te).forEach(function(t){v(t,s.class_error),h(t)}),a.update()}),this.update(n)};return tr.prototype={update:function(t){var e,i,a=this._settings,s=tn(t,a);A(this,s.length),!n&&r?W(a)?(e=this,s.forEach(function(t){-1!==Q.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),J(t,a,e),S(t,a),R(t,a),f(t,"native"))}),A(e,0)):(function(t){t.disconnect()}(i=this._observer),function(t,e){e.forEach(function(e){t.observe(e)})}(i,s)):this.loadAll(s)},destroy:function(){this._observer&&this._observer.disconnect(),tt(this._settings).forEach(function(t){delete t.llOriginalAttrs}),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var e=this,n=this._settings;
1tn(t,n).forEach(function(t){E(t,e),K(t,n,e)})}},tr.load=function(t,e){K(t,o(e))},tr.resetStatus=function(t){h(t)},e&&function(t,e){if(e){if(e.length)for(var n,r=0;n=e[r];r+=1)l(t,n);else l(t,e)}}(tr,window.lazyLoadOptions),tr}()},49:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(140);class i{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!i.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!1===i.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(n)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=e.replace(/^data(|-)/,""),s=r.Z.toLowerCamelCase(a,"-");if(!i.isNode(t)){if(n)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(n)throw Error("This node doesn't support the dataset attribute!");return}let o=t.dataset[s];if(void 0===o){if(n)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return o}return r.Z.parsePrimitive(o)}static querySelector(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let r=t.querySelector(e)||!1;if(n&&!1===r)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return r}static querySelectorAll(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let r=t.querySelectorAll(e);if(0===r.length&&(r=!1),n&&!1===r)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return r}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return t.querySelectorAll('\n            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n            select:not([tabindex^="-"]):not([disabled]),\n            textarea:not([tabindex^="-"]):not([disabled]),\n            button:not([tabindex^="-"]):not([disabled]),\n            a[href]:not([tabindex^="-"]):not([disabled]),\n            [tabindex]:not([tabindex^="-"]):not([disabled])\n        ')}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}},830:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});class r{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new CustomEvent(t,{detail:e,cancelable:n});return this.el.dispatchEvent(r),r}subscribe(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this,i=t.split("."),a=n.scope?e.bind(n.scope):e;if(n.once&&!0===n.once){let e=a;a=function(n){r.unsubscribe(t),e(n)}}return this.el.addEventListener(i[0],a),this.listeners.push({splitEventName:i,opts:n,cb:a}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,n)=>([...n.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(n.splitEventName[0],n.cb):t.push(n),t),[]),!0}reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}}},140:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});class r{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let n=r.toUpperCamelCase(t,e);return r.lcFirst(n)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>
1r.ucFirst(t.toLowerCase())).join(""):r.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}},568:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(857),i=n.n(r),a=n(49),s=n(140),o=n(830);class l{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let e=s.Z.toDashCase(this._pluginName),n=a.Z.getDataAttribute(this.el,"data-".concat(e,"-config"),!1),r=a.Z.getAttribute(this.el,"data-".concat(e,"-options"),!1),o=[this.constructor.options,this.options,t];n&&o.push(window.PluginConfigManager.get(this._pluginName,n));try{r&&o.push(JSON.parse(r))}catch(t){throw console.error(this.el),Error('The data attribute "data-'.concat(e,'-options" could not be parsed to json: ').concat(t.message))}return i().all(o.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}constructor(t,e={},n=!1){if(!a.Z.isNode(t))throw Error("There is no valid element given.");this.el=t,this.$emitter=new o.Z(this.el),this._pluginName=this._getPluginName(n),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}}}}]);

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.