var BaseLazyLoadHelper=function(){function u(r){for(var e,u,o,f=0;f<r.length;f++)e=r[f],e.intersectionRatio>0&&e.target.style.visibility!=="hidden"&&(u=e.target,t.unobserve(u),u.setAttribute("data-loaded",!0),o=u.getAttribute("data-lazyloadid"),o&&n[o]?n[o](u):n[i]&&n[i](u))}var r={rootMargin:"100px 0px",threshold:.01},i="default",t=null,n={};return{loadElement:function(f,e,o,s){if("IntersectionObserver"in window&&f.getAttribute("data-loaded")==="false"){e(f);t===null&&(t=new IntersectionObserver(u,r));var h=f.getAttribute("data-lazyloadid");h?n[h]=s:n[i]=s;t.observe(f)}else o(f)}}}(),LazyLoadHelper,SuggestionLazyLoadHelper;window.addEventListener("load",function(){for(var t=document.querySelectorAll(".lazy-bg"),n=0;n<t.length;n++)LazyLoadHelper.loadElement(t[n])});LazyLoadHelper=function(){function n(n,t){if(n.tagName.toLowerCase()==="img"){var u=n.getAttribute("data-images")||null,f=n.getAttribute("data-image")||null,r=JSON.parse(u),i=r&&r[t]?r[t]:JSON.parse(f);i&&(i.src&&n.src!==i.src&&(n.src=i.src),i.srcset&&n.srcset!==i.srcset&&(n.srcset=i.srcset))}else n.classList.toggle("lazy-bg")}function t(t){BaseLazyLoadHelper.loadElement(t,function(n){n.tagName.toLowerCase()==="img"&&n.setAttribute("data-loaded",!1)},function(t){n(t,0);t.tagName.toLowerCase()==="img"&&t.setAttribute("data-loaded",!0)},function(t){n(t,0);t.setAttribute("onload","")})}return{loadElement:t,setImage:n}}();SuggestionLazyLoadHelper=function(){function n(n,t){BaseLazyLoadHelper.loadElement(n,function(){},t,t)}return{loadElement:n}}()