class c {
  options = /* @__PURE__ */ new Map();
  setLogger(e, r) {
    this.options.set(e, r);
    const [i] = r.reporters, { title: o } = i?.getOptions() || {}, { B2X_VERSIONS: t = {} } = window || {};
    !t?.[e] && o && Object.assign(window, { B2X_VERSIONS: { [e]: o, ...t } });
  }
  getLogger(e) {
    const { reporters: r = [] } = this.options.get(e) || {};
    return (o, t) => {
      const n = new Intl.DateTimeFormat(["pt-PT", "de-DE", "en-GB"], {
        year: "numeric",
        month: "2-digit",
        day: "2-digit",
        hour: "2-digit",
        minute: "2-digit",
        second: "2-digit"
      }).format(Date.now());
      for (const s of r)
        s.report(o, { ...t, date: n });
    };
  }
  createLoggerGroup(e, r) {
    const { reporters: i = [] } = this.options.get(e) || {};
    return {
      info: (o, ...t) => {
        for (const n of i)
          n.reportInfo(o, r, ...t);
      },
      warn: (o, ...t) => {
        for (const n of i)
          n.reportWarning(o, r, ...t);
      },
      error: (o, ...t) => {
        for (const n of i)
          n.reportError(o, r, ...t);
      }
    };
  }
}
function g() {
  return new c();
}
const f = g();
export {
  f as consola
};
//# sourceMappingURL=consola.mjs.map
