function watchDeviceAppearance(e){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(function(a){e(a.matches?"dark":"light")}));if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches){return"dark"}return"light"}export{watchDeviceAppearance as w};