(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{55:function(t,e,n){"use strict";n.r(e);const o=(t,e)=>t.getAttribute("data-"+e),i=t=>(t=t,l="was-processed",a="true",r="data-"+l,void(null!==a?t.setAttribute(r,a):t.removeAttribute(r)));var s,l,a,r;const c=t=>"true"===o(t,"was-processed"),d=function(t){return t.getBoundingClientRect().top+window.pageYOffset-t.ownerDocument.documentElement.clientTop},u=function(t,e,n){return(e===window?window.innerHeight+window.pageYOffset:d(e)+e.offsetHeight)<=d(t)-n},_=function(t){return t.getBoundingClientRect().left+window.pageXOffset-t.ownerDocument.documentElement.clientLeft},h=function(t,e,n){const o=window.innerWidth;return(e===window?o+window.pageXOffset:_(e)+o)<=_(t)-n},g=function(t,e,n){return(e===window?window.pageYOffset:d(e))>=d(t)+n+t.offsetHeight},p=function(t,e,n){return(e===window?window.pageXOffset:_(e))>=_(t)+n+t.offsetWidth};const f=function(t,e){var n;let o=new t(e);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:o}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:o})}window.dispatchEvent(n)};const m=(t,e)=>e?t.replace(/\.(jpe?g|png)/gi,".webp"):t,w="undefined"!=typeof window,b=w&&!("onscroll"in window)||/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),v=w&&"classList"in document.createElement("p"),E=w&&(!(!(L=document.createElement("canvas")).getContext||!L.getContext("2d"))&&0===L.toDataURL("image/webp").indexOf("data:image/webp"));var L;const T=(t,e)=>{v?t.classList.add(e):t.className+=(t.className?" ":"")+e},S=function(t,e,n,i){for(let s,l=0;s=t.children[l];l+=1)if("SOURCE"===s.tagName){let t=o(s,n);H(s,e,t,i)}},H=function(t,e,n,o){n&&t.setAttribute(e,m(n,o))},k={IMG:(t,e)=>{const n=E&&e.to_webp,i=e.data_srcset,s=t.parentNode;s&&"PICTURE"===s.tagName&&S(s,"srcset",i,n);const l=o(t,e.data_sizes);H(t,"sizes",l);const a=o(t,i);H(t,"srcset",a,n);const r=o(t,e.data_src);H(t,"src",r,n)},IFRAME:(t,e)=>{const n=o(t,e.data_src);H(t,"src",n)},VIDEO:(t,e)=>{const n=e.data_src,i=o(t,n);S(t,"src",n),H(t,"src",i),t.load()}},O=(t,e)=>{const n=e._settings,i=t.tagName,s=k[i];if(s)return s(t,n),e._updateLoadingCount(1),void(e._elements=((t,e)=>t.filter(t=>t!==e))(e._elements,t));((t,e)=>{const n=E&&e.to_webp,i=o(t,e.data_src),s=o(t,e.data_bg);if(i){let e=m(i,n);t.style.backgroundImage=`url("${e}")`}if(s){let e=m(s,n);t.style.backgroundImage=e}})(t,n)},y=function(t,e){t&&t(e)},C=(t,e,n)=>{t.addEventListener(e,n)},N=(t,e,n)=>{t.removeEventListener(e,n)},z=(t,e,n)=>{N(t,"load",e),N(t,"loadeddata",e),N(t,"error",n)},A=function(t,e,n){var o=n._settings;const i=e?o.class_loaded:o.class_error,s=e?o.callback_load:o.callback_error,l=t.target;((t,e)=>{v?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")})(l,o.class_loading),T(l,i),y(s,l),n._updateLoadingCount(-1)},I=(t,e)=>{const n=i=>{A(i,!0,e),z(t,n,o)},o=i=>{A(i,!1,e),z(t,n,o)};((t,e,n)=>{C(t,"load",e),C(t,"loadeddata",e),C(t,"error",n)})(t,n,o)},R=["IMG","IFRAME","VIDEO"];const D=function(t){this._settings=Object.assign({},(()=>({elements_selector:"img",container:window,threshold:300,throttle:150,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_initial:"initial",skip_invisible:!0,callback_load:null,callback_error:null,callback_set:null,callback_enter:null,callback_finish:null,to_webp:!1}))(),t),this._loadingCount=0,this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._boundHandleScroll=this.handleScroll.bind(this),this._isFirstLoop=!0,window.addEventListener("resize",this._boundHandleScroll),this.update()};D.prototype={_loopThroughElements:function(t){const e=this._settings,n=this._elements,o=n?n.length:0;let i,s=[],l=this._isFirstLoop;if(l&&(this._isFirstLoop=!1),0!==o){for(i=0;i{for(;e.length;)t.splice(e.pop(),1)})(n,s)}else this._stopScrollHandler()},_startScrollHandler:function(){this._isHandlingScroll||(this._isHandlingScroll=!0,this._settings.container.addEventListener("scroll",this._boundHandleScroll))},_stopScrollHandler:function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,this._settings.container.removeEventListener("scroll",this._boundHandleScroll))},_updateLoadingCount:function(t){this._loadingCount+=t,0===this._elements.length&&0===this._loadingCount&&y(this._settings.callback_finish)},handleScroll:function(){const t=this._settings.throttle;if(0!==t){let e=Date.now(),n=t-(e-this._previousLoopTime);n<=0||n>t?(this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._previousLoopTime=e,this._loopThroughElements()):this._loopTimeout||(this._loopTimeout=setTimeout(function(){this._previousLoopTime=Date.now(),this._loopTimeout=null,this._loopThroughElements()}.bind(this),n))}else this._loopThroughElements()},loadAll:function(){this._loopThroughElements(!0)},update:function(t){const e=this._settings,n=t||this._queryOriginNode.querySelectorAll(e.elements_selector);this._elements=(t=>t.filter(t=>!c(t)))(Array.prototype.slice.call(n)),b?this.loadAll():(this._loopThroughElements(),this._startScrollHandler())},destroy:function(){window.removeEventListener("resize",this._boundHandleScroll),this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._stopScrollHandler(),this._elements=null,this._queryOriginNode=null,this._settings=null},load:function(t,e){!function(t,e,n){var o=e._settings;!n&&c(t)||(y(o.callback_enter,t),R.indexOf(t.tagName)>-1&&(I(t,e),T(t,o.class_loading)),O(t,e),i(t),y(o.callback_set,t))}(t,this,e)}},w&&function(t,e){if(e)if(e.length)for(let n,o=0;n=e[o];o+=1)f(t,n);else f(t,e)}(D,window.lazyLoadOptions),e.default=D}}]);