function scrollNavbar(){let e=document.getElementById("landing-navbar"),o=0;e&&window.addEventListener("scroll",function(){var t=window.pageYOffset||document.documentElement.scrollTop;100<t?e.classList.add("top-fixed"):e.classList.remove("top-fixed","top-hide","top-scroll-up"),e.classList.contains("top-fixed")&&(t>o?(e.classList.add("top-hide"),e.classList.remove("top-scroll-up")):t<o&&(e.classList.remove("top-hide"),e.classList.add("top-scroll-up"))),o=t<=0?0:t})}function themeToggle(){let e=document.documentElement;var t=document.getElementById("theme-toggle"),o=localStorage.getItem("theme")||"light";e.setAttribute("data-bs-theme",o),t&&t.addEventListener("click",()=>{var t="dark"===e.getAttribute("data-bs-theme")?"light":"dark";e.setAttribute("data-bs-theme",t),localStorage.setItem("theme",t)})}scrollNavbar(),themeToggle();