\n \n \n \n \n \n `,commentBarrageConfig.barrageTimer.push(r),commentBarrageConfig.dom.append(r)}function removeCommentBarrage(e){e.className="comment-barrage-item out",setTimeout((()=>{commentBarrageConfig.dom&&commentBarrageConfig.dom.contains(e)&&commentBarrageConfig.dom.removeChild(e)}),1e3)}document.querySelector(".comment-barrage").addEventListener("mouseenter",(function(){hoverOnCommentBarrage=!0})),document.querySelector(".comment-barrage").addEventListener("mouseleave",(function(){hoverOnCommentBarrage=!1}));const e=new IntersectionObserver((e=>{const r=document.querySelector(".comment-barrage"),a=document.getElementById("post-comment");e.forEach((e=>{a&&r&&document.body.clientWidth>768&&(r.style.bottom=e.isIntersecting?`-${200*commentBarrageConfig.maxBarrage}px`:"0")}))}),{root:null,rootMargin:"0px",threshold:0}),r=document.getElementById("post-comment");r&&e.observe(r),initCommentBarrage(),"false"!==localStorage.getItem("commentBarrageSwitch")?(document.querySelector(".comment-barrage").style.display="flex",document.querySelector(".menu-commentBarrage-text").textContent="关闭热评"):(document.querySelector(".comment-barrage").style.display="none",document.querySelector(".menu-commentBarrage-text").textContent="显示热评"),document.addEventListener("pjax:send",(function(){clearInterval(commentInterval)}))}