{"version":3,"sources":["jsdelivr-header.js","/npm/@convergebr/tagged-console@1.0.1/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,mBAAgB,EACxB,MAAM,cACF,WAAA,CAAY,EAAM,GAAkB,GAAM,OAAE,EAAS,SAAY,CAAC,GAC9D,KAAK,iBAAkB,EACvB,KAAK,KAAO,EACZ,KAAK,OAAS,EACd,KAAK,gBAAkB,CAC3B,CACA,WAAA,CAAY,EAAQ,GACf,KAAoB,gBACjB,KAAK,OAAO,GAAQ,IAAG,IAAI,MAAO,uBAAuB,KAAK,UAAU,KACxE,KAAK,OAAO,GAAQ,IAAI,KAAK,UAAU,IAC/C,CACA,GAAA,CAAI,GACA,KAAK,YAAY,MAAO,EAC5B,CACA,IAAA,CAAK,GACD,KAAK,YAAY,OAAQ,EAC7B,CACA,KAAA,CAAM,GACF,KAAK,YAAY,QAAS,EAC9B,EAEJ,QAAQ,cAAgB","file":"/npm/@convergebr/tagged-console@1.0.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@convergebr/tagged-console@1.0.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TaggedConsole = void 0;\nclass TaggedConsole {\n    constructor(name, displayDateTime = true, { logger = console } = {}) {\n        this.displayDateTime = false;\n        this.name = name;\n        this.logger = logger;\n        this.displayDateTime = displayDateTime;\n    }\n    dispatchLog(method, msg) {\n        (this.displayDateTime) ?\n            this.logger[method](`${new Date().toLocaleString()} - [${this.name}]: ${msg}`) :\n            this.logger[method](`[${this.name}]: ${msg}`);\n    }\n    log(msg) {\n        this.dispatchLog('log', msg);\n    }\n    warn(msg) {\n        this.dispatchLog('warn', msg);\n    }\n    error(msg) {\n        this.dispatchLog('error', msg);\n    }\n}\nexports.TaggedConsole = TaggedConsole;\n"]}