import { __toESM as e } from "../../../../../_virtual/_rolldown/runtime.js";
import { require_dayjs_min as t } from "../../../../dayjs/dayjs.min.js";
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.mjs
var n = /* @__PURE__ */ e(t(), 1), r = Object.defineProperty, i = (e, t) => r(e, "name", {
	value: t,
	configurable: !0
}), a = (e, t) => {
	for (var n in t) r(e, n, {
		get: t[n],
		enumerable: !0
	});
}, o = {
	trace: 0,
	debug: 1,
	info: 2,
	warn: 3,
	error: 4,
	fatal: 5
}, s = {
	trace: /* @__PURE__ */ i((...e) => {}, "trace"),
	debug: /* @__PURE__ */ i((...e) => {}, "debug"),
	info: /* @__PURE__ */ i((...e) => {}, "info"),
	warn: /* @__PURE__ */ i((...e) => {}, "warn"),
	error: /* @__PURE__ */ i((...e) => {}, "error"),
	fatal: /* @__PURE__ */ i((...e) => {}, "fatal")
}, c = /* @__PURE__ */ i(function(e = "fatal") {
	let t = o.fatal;
	typeof e == "string" ? e.toLowerCase() in o && (t = o[e]) : typeof e == "number" && (t = e), s.trace = () => {}, s.debug = () => {}, s.info = () => {}, s.warn = () => {}, s.error = () => {}, s.fatal = () => {}, t <= o.fatal && (s.fatal = console.error ? console.error.bind(console, l("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", l("FATAL"))), t <= o.error && (s.error = console.error ? console.error.bind(console, l("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", l("ERROR"))), t <= o.warn && (s.warn = console.warn ? console.warn.bind(console, l("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", l("WARN"))), t <= o.info && (s.info = console.info ? console.info.bind(console, l("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", l("INFO"))), t <= o.debug && (s.debug = console.debug ? console.debug.bind(console, l("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", l("DEBUG"))), t <= o.trace && (s.trace = console.debug ? console.debug.bind(console, l("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", l("TRACE")));
}, "setLogLevel"), l = /* @__PURE__ */ i((e) => `%c${(0, n.default)().format("ss.SSS")} : ${e} : `, "format");
//#endregion
export { a as __export, i as __name, s as log, c as setLogLevel };
