`:"
",t+=`
${o}
${e.title||""}
`)}),s.insertAdjacentHTML("beforeend",t))}function resetHomeInfiniteScroll(){var e;isDestroyed||(loadedNewsIds.clear(),hasMoreData=!(isLoading=!1),lastScrollTop=lastRequestTime=consecutiveEmptyResponses=0,(e=document.querySelector(".list"))&&(e.innerHTML='Trending
'),loadMoreNews())}function stopHomeInfiniteScroll(){isLoading=hasMoreData=!1}function resumeHomeInfiniteScroll(){isDestroyed||(hasMoreData=!0,consecutiveEmptyResponses=0,isLoading)||loadMoreNews()}function getHomeInfiniteScrollStatus(){return{isLoading:isLoading,hasMoreData:hasMoreData,loadedCount:loadedNewsIds.size,consecutiveEmptyResponses:consecutiveEmptyResponses,isDestroyed:isDestroyed}}