(function () { var storageKey = 'lte-theme'; var theme = 'auto'; try { var storedTheme = window.localStorage.getItem(storageKey); if (storedTheme === 'dark' || storedTheme === 'light' || storedTheme === 'auto') { theme = storedTheme; } } catch (error) { theme = 'auto'; } document.documentElement.dataset.bsTheme = theme; document.documentElement.style.colorScheme = theme; }());