var LazyLoad=function(){"use strict"
var t,e
return t={_lazyLoadImages:function(){for(var e=document.querySelectorAll(".lazy-load"),n=0;n<e.length;n++){var i=e[n],o=i.getAttribute("data-bgsrc")||i.getAttribute("data-src")?!0:!1,a=i.classList.contains("hidden-inview")||!1
o&&t._isElementVisible(i,a)&&t._loadImage(i,function(t){setTimeout(function(){t.classList.add("wooble"),setTimeout(function(){t.classList.remove("lazy-load")},300)},60),t.removeAttribute("data-src"),t.removeAttribute("data-bgsrc")})}},_isElementVisible:function(t,e){var n=t.getBoundingClientRect(),i=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,a=function(t,e){return document.elementFromPoint(t,e)}
return n.right<0||n.bottom<0||n.left>i||n.top>o?!1:!e&&n.left>=0&&n.top>=0&&n.right<=i&&n.bottom<=o?!0:t.contains(a(n.left,n.top))||t.contains(a(n.right,n.top))||t.contains(a(n.right,n.bottom))||t.contains(a(n.left,n.bottom))},_loadImage:function(t,e){var n=t.getAttribute("data-bgsrc")?!0:!1,i=new Image,o=n?t.getAttribute("data-bgsrc"):t.getAttribute("data-src")
i.onload=function(){n?t.style.backgroundImage="url("+o+")":t.src=o,e?e(t):null},i.onerror=function(){n?t.style.backgroundImage=o:t.src=o,e?e(t):null},i.src=o}},e={lazyLoadImages:function(){return t._lazyLoadImages.apply(this,arguments)},isElementVisible:function(){return t._isElementVisible.apply(this,arguments)}}}()
