{"version":3,"file":"index.umd.production.min.cjs","sources":["../src/index.ts"],"sourcesContent":["import dayjs, { Dayjs, PluginFunc } from 'dayjs';\n\nexport const dayjsInspectPlugin: PluginFunc = (option, dayjsClass, dayjsFactory) =>\n{\n\t// @ts-ignore\n\tdayjsClass.prototype[Symbol.for('nodejs.util.inspect.custom')] = function ()\n\t{\n\t\treturn `Dayjs<${this.format()}>`\n\t}\n}\n\nexport { dayjsInspectPlugin as plugin }\n\nexport function install(): Dayjs\n{\n\treturn dayjs.extend(dayjsInspectPlugin)\n}\n\nexport default dayjsInspectPlugin\n\n// @ts-ignore\nif (process.env.TSDX_FORMAT !== 'esm')\n{\n\tObject.defineProperty(dayjsInspectPlugin, \"__esModule\", { value: true });\n\n\tObject.defineProperty(dayjsInspectPlugin, 'dayjsInspectPlugin', { value: dayjsInspectPlugin });\n\tObject.defineProperty(dayjsInspectPlugin, 'default', { value: dayjsInspectPlugin });\n\n\tObject.defineProperty(dayjsInspectPlugin, 'install', { value: install });\n\tObject.defineProperty(dayjsInspectPlugin, 'plugin', { value: dayjsInspectPlugin });\n}\n"],"names":["dayjsInspectPlugin","option","dayjsClass","dayjsFactory","prototype","Symbol","for","this","format","install","dayjs","extend","Object","defineProperty","value"],"mappings":";;;;EAEaA,MAAAA,qBAAiCA,CAACC,GAAQC,GAAYC;IAGlED,EAAWE,UAAUC,OAAOC,IAAI,iCAAiC;MAEhE,gBAAgBC,KAAKC;;AACrB;WAKcC;IAEf,OAAOC,EAAMC,OAAOX;AACrB;EAOCY,OAAOC,eAAeb,oBAAoB,cAAc;IAAEc,QAAO;MAEjEF,OAAOC,eAAeb,oBAAoB,sBAAsB;IAAEc,OAAOd;MACzEY,OAAOC,eAAeb,oBAAoB,WAAW;IAAEc,OAAOd;MAE9DY,OAAOC,eAAeb,oBAAoB,WAAW;IAAEc,OAAOL;MAC9DG,OAAOC,eAAeb,oBAAoB,UAAU;IAAEc,OAAOd;;;;;"}