import"./echo-DEnbW3qE.js";import"./_commonjsHelpers-Cpj98o6Y.js";document.addEventListener("DOMContentLoaded",n=>{r()});function r(){document.getElementById("chatContent").scrollTop=document.getElementById("chatContent").scrollHeight}const s=document.querySelector(".emoji-button"),c=$(".message-area #messageInput");if(s){const n=new EmojiButton({autoHide:!1,position:"top-start"});s.addEventListener("click",e=>{e.preventDefault(),n.togglePicker(s)}),n.on("emoji",e=>{const t=c[0],i=t.selectionStart,l=t.selectionEnd,o=c.val(),a=o.substring(0,i)+e+o.substring(l,o.length);c.val(a),t.selectionStart=t.selectionEnd=i+e.length,t.focus()})}
