let i4 = document.documentElement, j3 = ["light", "dark"];
function k4(b5) {
var c5;
(Array.isArray(a2) ? a2 : [a2]).forEach((a3) => {
let c6 = a3 === "class", d4 = c6 && f3 ? e3.map((a4) => f3[a4] || a4) : e3;
c6 ? (i4.classList.remove(...d4), i4.classList.add(f3 && f3[b5] ? f3[b5] : b5)) : i4.setAttribute(a3, b5);
}), c5 = b5, h4 && j3.includes(c5) && (i4.style.colorScheme = c5);
}
if (d3) k4(d3);
else try {
let a3 = localStorage.getItem(b4) || c4, d4 = g5 && a3 === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : a3;
k4(d4);
} catch {
}
})("class","theme","system",null,["light","dark"],null,true,true)