function r(r){return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(e=>{r(e.matches?"dark":"light")})),window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}export{r as w}