new ResizeObserver(resizeChart).observe(document.getElementById("chart"));
        let theme = current_url.searchParams.get("theme");

        function setColorTheme(e, t) {
            theme = e, t && window.localStorage.setItem("theme", theme), document.documentElement.setAttribute("data-theme", theme), redrawChart()
        }

        if (-1 === ["dark", "light"].indexOf(theme) && (theme = window.localStorage.getItem("theme")), theme || (theme = "dark"), theme) document.documentElement.setAttribute("data