"use strict";document.addEventListener("DOMContentLoaded",function(){var n=[].slice.call(document.querySelectorAll("img.lazy"));if("IntersectionObserver"in window){var s=new IntersectionObserver(function(e,t){e.forEach(function(e){if(e.isIntersecting){var t=e.target;t.src=t.dataset.src,t.dataset.srcset&&(t.srcset=t.dataset.srcset),t.dataset.sizes&&(t.sizes=t.dataset.sizes),t.classList.remove("lazy"),s.unobserve(t)}})});n.forEach(function(e){s.observe(e)})}else{var t=!1,e=function e(){!1===t&&(t=!0,setTimeout(function(){n.forEach(function(t){t.getBoundingClientRect().top<=window.innerHeight&&0<=t.getBoundingClientRect().bottom&&"none"!==getComputedStyle(t).display&&(t.src=t.dataset.src,t.dataset.srcset&&(t.srcset=t.dataset.srcset),t.dataset.sizes&&(t.sizes=t.dataset.sizes),t.classList.remove("lazy"),0===(n=n.filter(function(e){return e!==t})).length&&(document.removeEventListener("scroll",e),window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)))}),t=!1},200))};document.addEventListener("scroll",e),window.addEventListener("resize",e),window.addEventListener("orientationchange",e)}});