import{g as a,s as m,D as c,T as o}from"./chunks/store-aiW_fD0x.js";const t=document.getElementById("opt-theme"),n=document.getElementById("opt-engine");a(o).then(e=>{e?t.value=e:t.value=document.documentElement.dataset.theme||"dark"});a(c).then(e=>{e&&(n.value=e)});t.addEventListener("change",()=>{const e=t.value;document.documentElement.dataset.theme=e,m(o,e);try{localStorage.setItem("lvonce-theme",e)}catch{}});n.addEventListener("change",()=>{m(c,n.value)});
