@introspection-ai/recipes 0.56.0 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/batch/index.d.ts +2 -0
  2. package/dist/batch/index.d.ts.map +1 -1
  3. package/dist/batch/index.js +2 -1
  4. package/dist/batch/index.js.map +1 -1
  5. package/dist/batch/runner.d.ts +5 -0
  6. package/dist/batch/runner.d.ts.map +1 -1
  7. package/dist/batch/runner.js +6 -0
  8. package/dist/batch/runner.js.map +1 -1
  9. package/dist/batch/shards.d.ts +1 -1
  10. package/dist/batch/shards.d.ts.map +1 -1
  11. package/dist/batch/shards.js +3 -3
  12. package/dist/batch/shards.js.map +1 -1
  13. package/dist/child/agent.d.ts.map +1 -1
  14. package/dist/child/agent.js +6 -5
  15. package/dist/child/agent.js.map +1 -1
  16. package/dist/child/session.d.ts +1 -0
  17. package/dist/child/session.d.ts.map +1 -1
  18. package/dist/child/session.js +9 -6
  19. package/dist/child/session.js.map +1 -1
  20. package/dist/judges/classifier.d.ts +8 -0
  21. package/dist/judges/classifier.d.ts.map +1 -0
  22. package/dist/judges/classifier.js +30 -0
  23. package/dist/judges/classifier.js.map +1 -0
  24. package/dist/judges/cli-main.d.ts +41 -0
  25. package/dist/judges/cli-main.d.ts.map +1 -0
  26. package/dist/judges/cli-main.js +182 -0
  27. package/dist/judges/cli-main.js.map +1 -0
  28. package/dist/judges/cli.d.ts +2 -0
  29. package/dist/judges/cli.d.ts.map +1 -0
  30. package/dist/judges/cli.js +43 -0
  31. package/dist/judges/cli.js.map +1 -0
  32. package/dist/judges/controller.d.ts +78 -0
  33. package/dist/judges/controller.d.ts.map +1 -0
  34. package/dist/judges/controller.js +243 -0
  35. package/dist/judges/controller.js.map +1 -0
  36. package/dist/judges/definition.d.ts +86 -0
  37. package/dist/judges/definition.d.ts.map +1 -0
  38. package/dist/judges/definition.js +100 -0
  39. package/dist/judges/definition.js.map +1 -0
  40. package/dist/judges/gate.d.ts +46 -0
  41. package/dist/judges/gate.d.ts.map +1 -0
  42. package/dist/judges/gate.js +256 -0
  43. package/dist/judges/gate.js.map +1 -0
  44. package/dist/judges/identity.d.ts +21 -0
  45. package/dist/judges/identity.d.ts.map +1 -0
  46. package/dist/judges/identity.js +48 -0
  47. package/dist/judges/identity.js.map +1 -0
  48. package/dist/judges/index.d.ts +10 -0
  49. package/dist/judges/index.d.ts.map +1 -0
  50. package/dist/judges/index.js +10 -0
  51. package/dist/judges/index.js.map +1 -0
  52. package/dist/judges/resolve-hooks.d.ts +10 -0
  53. package/dist/judges/resolve-hooks.d.ts.map +1 -0
  54. package/dist/judges/resolve-hooks.js +25 -0
  55. package/dist/judges/resolve-hooks.js.map +1 -0
  56. package/dist/judges/run.d.ts +123 -0
  57. package/dist/judges/run.d.ts.map +1 -0
  58. package/dist/judges/run.js +319 -0
  59. package/dist/judges/run.js.map +1 -0
  60. package/dist/judges/session.d.ts +9 -0
  61. package/dist/judges/session.d.ts.map +1 -0
  62. package/dist/judges/session.js +109 -0
  63. package/dist/judges/session.js.map +1 -0
  64. package/dist/judges/trajectory.d.ts +91 -0
  65. package/dist/judges/trajectory.d.ts.map +1 -0
  66. package/dist/judges/trajectory.js +223 -0
  67. package/dist/judges/trajectory.js.map +1 -0
  68. package/dist/judges/verdict.d.ts +31 -0
  69. package/dist/judges/verdict.d.ts.map +1 -0
  70. package/dist/judges/verdict.js +121 -0
  71. package/dist/judges/verdict.js.map +1 -0
  72. package/dist/mcp/daemon/server.d.ts +0 -2
  73. package/dist/mcp/daemon/server.d.ts.map +1 -1
  74. package/dist/mcp/daemon/server.js +1 -1
  75. package/dist/mcp/daemon/server.js.map +1 -1
  76. package/dist/mcp-chunks/{auth-command-PZLSOYAT.js → auth-command-WE7QY6RH.js} +27 -27
  77. package/dist/mcp-chunks/call-arguments-2ABANGLE.js +16 -0
  78. package/dist/mcp-chunks/{call-command-VILJIFYG.js → call-command-OOBUGVTM.js} +56 -70
  79. package/dist/mcp-chunks/{chunk-N2U2FODH.js → chunk-2PTK6KBV.js} +4 -4
  80. package/dist/mcp-chunks/{chunk-F2X4Y2TQ.js → chunk-2R2HWX2E.js} +1 -1
  81. package/dist/mcp-chunks/{chunk-ORJND4AI.js → chunk-2R7UGABC.js} +70 -70
  82. package/dist/mcp-chunks/{chunk-US63Y6XE.js → chunk-32UZRZIL.js} +1 -1
  83. package/dist/mcp-chunks/{chunk-THRMUZZD.js → chunk-37VJZIFW.js} +8 -8
  84. package/dist/mcp-chunks/{chunk-5Z6WSV5D.js → chunk-3KSDZBUJ.js} +5 -5
  85. package/dist/mcp-chunks/{chunk-JTPTAO4M.js → chunk-44KI6DPL.js} +24 -15
  86. package/dist/mcp-chunks/{chunk-BHXCAVFP.js → chunk-4ACA5GWL.js} +1 -1
  87. package/dist/mcp-chunks/{chunk-E76ZUBOJ.js → chunk-4NABHXDS.js} +4 -4
  88. package/dist/mcp-chunks/{chunk-AJDK5Z7O.js → chunk-4SO2DY7F.js} +2 -3
  89. package/dist/mcp-chunks/{chunk-I6UFV7RW.js → chunk-5ZQKSEUN.js} +1 -1
  90. package/dist/mcp-chunks/{chunk-KZGUH7E2.js → chunk-73TMUGJL.js} +2039 -1148
  91. package/dist/mcp-chunks/{chunk-UVRJ3AAD.js → chunk-7KOGD2JK.js} +2 -2
  92. package/dist/mcp-chunks/{chunk-KJ5FPQF6.js → chunk-7SQZWTDU.js} +30 -26
  93. package/dist/mcp-chunks/{chunk-MYAMG6VL.js → chunk-ABPXAKP7.js} +89 -28
  94. package/dist/mcp-chunks/{chunk-2YV72LUA.js → chunk-AIUZOMBB.js} +12 -12
  95. package/dist/mcp-chunks/{chunk-V42T3QNK.js → chunk-BI6L3SYV.js} +9 -9
  96. package/dist/mcp-chunks/{chunk-757ZF552.js → chunk-CFRA424Y.js} +4 -4
  97. package/dist/mcp-chunks/{chunk-DU4SDPEV.js → chunk-CIQX62WO.js} +2 -2
  98. package/dist/mcp-chunks/{chunk-MHUMLEBO.js → chunk-CWM4RO33.js} +1 -1
  99. package/dist/mcp-chunks/{chunk-TUPFPO4L.js → chunk-DEYGZRBD.js} +5 -5
  100. package/dist/mcp-chunks/{chunk-3SXP4S2A.js → chunk-DL3GVI4M.js} +2 -2
  101. package/dist/mcp-chunks/{chunk-O7SIXJM6.js → chunk-EUHXZKP2.js} +108 -108
  102. package/dist/mcp-chunks/{chunk-H5PBSJP3.js → chunk-EV3SP7ME.js} +1 -1
  103. package/dist/mcp-chunks/chunk-EVEVCVYR.js +42 -0
  104. package/dist/mcp-chunks/{chunk-RUF27IUF.js → chunk-FDVES4CU.js} +2 -2
  105. package/dist/mcp-chunks/{chunk-L2MSWQDL.js → chunk-FJNWUAGR.js} +1 -1
  106. package/dist/mcp-chunks/{chunk-IWCVZ46B.js → chunk-G5DK4L6M.js} +2 -2
  107. package/dist/mcp-chunks/{chunk-3ETUDW7N.js → chunk-GQM53HF7.js} +1 -1
  108. package/dist/mcp-chunks/{chunk-2AKSS7WR.js → chunk-H44A4G2O.js} +2 -2
  109. package/dist/mcp-chunks/{chunk-WDWSA7RL.js → chunk-HGEKP2E5.js} +4 -4
  110. package/dist/mcp-chunks/{chunk-ELHS763C.js → chunk-HKMH4N3Z.js} +1 -1
  111. package/dist/mcp-chunks/{chunk-GZ53GNFP.js → chunk-HPFIAALB.js} +13 -10
  112. package/dist/mcp-chunks/chunk-KUJUYFDC.js +224 -0
  113. package/dist/mcp-chunks/{chunk-OIK5AH2S.js → chunk-MG6EVYIM.js} +41 -19
  114. package/dist/mcp-chunks/{chunk-QNXOIF5U.js → chunk-MSPGQEWX.js} +12 -12
  115. package/dist/mcp-chunks/{chunk-JEHI2YU4.js → chunk-MW3YO24Q.js} +3 -3
  116. package/dist/mcp-chunks/{chunk-WQL7FJQ3.js → chunk-NJR33E7V.js} +4 -4
  117. package/dist/mcp-chunks/{chunk-7U5NSQ5T.js → chunk-OSK2JGFH.js} +2 -2
  118. package/dist/mcp-chunks/{chunk-ZEA3Y5ZD.js → chunk-QHD5RXW4.js} +7 -7
  119. package/dist/mcp-chunks/{chunk-TC2JPBFB.js → chunk-QYR3UKJS.js} +7 -4
  120. package/dist/mcp-chunks/{chunk-3FRLDHVD.js → chunk-SYBDN4SV.js} +5 -5
  121. package/dist/mcp-chunks/{chunk-3P3KGT4H.js → chunk-TQ5T5VO7.js} +2 -2
  122. package/dist/mcp-chunks/{chunk-OWGTNJNR.js → chunk-TT3LOCMN.js} +2 -2
  123. package/dist/mcp-chunks/{chunk-3LENTPGE.js → chunk-TTVO6RCP.js} +2 -2
  124. package/dist/mcp-chunks/{chunk-IRSL7JRH.js → chunk-UY2QWZB3.js} +53 -49
  125. package/dist/mcp-chunks/{chunk-B6S43WID.js → chunk-VJ45Y5IO.js} +1 -1
  126. package/dist/mcp-chunks/{chunk-IRARVOUM.js → chunk-VJ5VDK6D.js} +1 -1
  127. package/dist/mcp-chunks/{chunk-6O42UGLI.js → chunk-VLJQSE6L.js} +9 -9
  128. package/dist/mcp-chunks/{chunk-HNQSUT44.js → chunk-W47YAN6W.js} +3 -3
  129. package/dist/mcp-chunks/{chunk-66VSGFXA.js → chunk-XU4D5QN2.js} +1 -1
  130. package/dist/mcp-chunks/{chunk-CXST5CVH.js → chunk-Y7JQJ352.js} +22 -18
  131. package/dist/mcp-chunks/{chunk-3HSC6NHZ.js → chunk-Y7UTXETL.js} +1 -1
  132. package/dist/mcp-chunks/{chunk-O3RTM5HD.js → chunk-YFPPHEDE.js} +1 -1
  133. package/dist/mcp-chunks/{chunk-N6YUOYDS.js → chunk-YGT57XUN.js} +2 -2
  134. package/dist/mcp-chunks/{chunk-BUOGKTKK.js → chunk-Z43KJRXY.js} +1 -1
  135. package/dist/mcp-chunks/{chunk-6P3KAQ5N.js → chunk-Z5XOB522.js} +1 -1
  136. package/dist/mcp-chunks/{chunk-63L6SHK3.js → chunk-ZEMVGFKG.js} +2 -2
  137. package/dist/mcp-chunks/{chunk-MEQXX43K.js → chunk-ZJZ53NIB.js} +1 -1
  138. package/dist/mcp-chunks/{cli-UQ5QXFXU.js → cli-TJFAYJO4.js} +81 -283
  139. package/dist/mcp-chunks/client-LDKUW5K5.js +32 -0
  140. package/dist/mcp-chunks/{config-command-ZSPJI34E.js → config-command-YGNK2VVL.js} +29 -29
  141. package/dist/mcp-chunks/daemon-command-UYAYRHVD.js +36 -0
  142. package/dist/mcp-chunks/dist-5JNZD3JV.js +69 -0
  143. package/dist/mcp-chunks/{dist-Q7WSCBBK.js → dist-IFOLXE2R.js} +351 -1305
  144. package/dist/mcp-chunks/{emit-ts-command-SY4LQE4S.js → emit-ts-command-4EVF6CIG.js} +28 -25
  145. package/dist/mcp-chunks/{generate-cli-runner-LQBBQ7F5.js → generate-cli-runner-UFVSXJVK.js} +58 -49
  146. package/dist/mcp-chunks/generated-daemon-runtime-LTH36X2R.js +32 -0
  147. package/dist/mcp-chunks/{inspect-cli-command-JPX4ON6N.js → inspect-cli-command-L3JGLLTG.js} +11 -11
  148. package/dist/mcp-chunks/{launch-UG7IH27P.js → launch-LUKDWKH4.js} +1 -1
  149. package/dist/mcp-chunks/{lifecycle-QBYGUHQ3.js → lifecycle-H57PYAZ5.js} +1 -1
  150. package/dist/mcp-chunks/{list-command-SDITI3ZM.js → list-command-QBO4LK5Q.js} +53 -42
  151. package/dist/mcp-chunks/logger-LvdykevT-BQ5B4N5O.js +995 -0
  152. package/dist/mcp-chunks/{output-utils-YTMZTA7J.js → output-utils-MB3PEV2M.js} +3 -3
  153. package/dist/mcp-chunks/{pi-mcp-runtime-OLO25D7A.js → pi-mcp-runtime-OIMIJV5A.js} +73 -17
  154. package/dist/mcp-chunks/{prompt-DkftHXS7-N7UENQ4C.js → prompt-DkftHXS7-TE2LNPAM.js} +1 -1
  155. package/dist/mcp-chunks/{record-command-JGTMATYI.js → record-command-RYDP3Y2A.js} +5 -5
  156. package/dist/mcp-chunks/{replay-command-S2VAC4RW.js → replay-command-QDJCQ5JU.js} +6 -6
  157. package/dist/mcp-chunks/{resource-command-SRFQQROJ.js → resource-command-RKHHQBFP.js} +9 -9
  158. package/dist/mcp-chunks/{result-utils-JASGNHXK.js → result-utils-ZD5GFX7P.js} +3 -3
  159. package/dist/mcp-chunks/runtime-F7PP4V25.js +39 -0
  160. package/dist/mcp-chunks/{runtime-wrapper-7HYO3NM5.js → runtime-wrapper-AV4JCNRF.js} +3 -3
  161. package/dist/mcp-chunks/{serve-command-YKSIXG7K.js → serve-command-MRPTK4XX.js} +26 -26
  162. package/dist/mcp-chunks/server-2WSYXDII.js +43 -0
  163. package/dist/mcp-chunks/{timeouts-BJWDJEMH.js → timeouts-2SQIDYBE.js} +4 -3
  164. package/dist/mcp-chunks/{vault-command-EYOIFWEY.js → vault-command-6JVDCFWU.js} +5 -5
  165. package/dist/mcp-chunks/{webapi-WMMA3OEC.js → webapi-CI4O7AUX.js} +1 -1
  166. package/dist/mcp-daemon.js +35 -31
  167. package/dist/mcp-run-worker.js +34 -30
  168. package/dist/model-binding.d.ts +44 -3
  169. package/dist/model-binding.d.ts.map +1 -1
  170. package/dist/model-binding.js +195 -4
  171. package/dist/model-binding.js.map +1 -1
  172. package/dist/recipe/manifest.generated.d.ts +2 -2
  173. package/dist/recipe/manifest.generated.d.ts.map +1 -1
  174. package/dist/recipe/manifest.generated.js +2 -2
  175. package/dist/recipe/manifest.generated.js.map +1 -1
  176. package/dist/recipe/model.d.ts +7 -12
  177. package/dist/recipe/model.d.ts.map +1 -1
  178. package/dist/recipe/model.js +197 -249
  179. package/dist/recipe/model.js.map +1 -1
  180. package/dist/session.d.ts +11 -0
  181. package/dist/session.d.ts.map +1 -1
  182. package/dist/session.js +59 -6
  183. package/dist/session.js.map +1 -1
  184. package/dist/suggestion-picker.d.ts +2 -2
  185. package/dist/suggestion-picker.d.ts.map +1 -1
  186. package/dist/suggestion-picker.js +5 -3
  187. package/dist/suggestion-picker.js.map +1 -1
  188. package/docs/README.md +1 -0
  189. package/docs/batch.md +2 -2
  190. package/docs/judges.md +269 -0
  191. package/docs/recipe-format.md +23 -12
  192. package/docs/recipe-judges.md +119 -59
  193. package/package.json +20 -16
  194. package/skills/documents/SKILL.md +6 -2
  195. package/skills/issues/SKILL.md +2 -1
  196. package/skills/search/SKILL.md +3 -0
  197. package/skills/signature/SKILL.md +4 -4
  198. package/dist/mcp-chunks/call-arguments-GCXZA4HC.js +0 -16
  199. package/dist/mcp-chunks/client-SBELHRAE.js +0 -32
  200. package/dist/mcp-chunks/daemon-command-MQS6AP2W.js +0 -32
  201. package/dist/mcp-chunks/dist-SDPPH7XQ.js +0 -65
  202. package/dist/mcp-chunks/generated-daemon-runtime-TUCZ3JEP.js +0 -32
  203. package/dist/mcp-chunks/runtime-5SOGEUTQ.js +0 -39
  204. package/dist/mcp-chunks/server-HQBFWAJR.js +0 -41
@@ -0,0 +1,995 @@
1
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
+ import {
3
+ __exportAll
4
+ } from "./chunk-EVEVCVYR.js";
5
+ import "./chunk-LRKZP7DJ.js";
6
+
7
+ // node_modules/.pnpm/rolldown@1.2.16/node_modules/rolldown/dist/shared/logger-LvdykevT.mjs
8
+ import { sep } from "node:path";
9
+ import { formatWithOptions } from "node:util";
10
+ import g$1 from "node:process";
11
+ import * as tty from "node:tty";
12
+ var LogLevels = {
13
+ silent: Number.NEGATIVE_INFINITY,
14
+ fatal: 0,
15
+ error: 0,
16
+ warn: 1,
17
+ log: 2,
18
+ info: 3,
19
+ success: 3,
20
+ fail: 3,
21
+ ready: 3,
22
+ start: 3,
23
+ box: 3,
24
+ debug: 4,
25
+ trace: 5,
26
+ verbose: Number.POSITIVE_INFINITY
27
+ };
28
+ var LogTypes = {
29
+ silent: { level: -1 },
30
+ fatal: { level: LogLevels.fatal },
31
+ error: { level: LogLevels.error },
32
+ warn: { level: LogLevels.warn },
33
+ log: { level: LogLevels.log },
34
+ info: { level: LogLevels.info },
35
+ success: { level: LogLevels.success },
36
+ fail: { level: LogLevels.fail },
37
+ ready: { level: LogLevels.info },
38
+ start: { level: LogLevels.info },
39
+ box: { level: LogLevels.info },
40
+ debug: { level: LogLevels.debug },
41
+ trace: { level: LogLevels.trace },
42
+ verbose: { level: LogLevels.verbose }
43
+ };
44
+ function isPlainObject$1(value) {
45
+ if (value === null || typeof value !== "object") return false;
46
+ const prototype = Object.getPrototypeOf(value);
47
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
48
+ if (Symbol.iterator in value) return false;
49
+ if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
50
+ return true;
51
+ }
52
+ function _defu(baseObject, defaults, namespace = ".", merger) {
53
+ if (!isPlainObject$1(defaults)) return _defu(baseObject, {}, namespace, merger);
54
+ const object = Object.assign({}, defaults);
55
+ for (const key in baseObject) {
56
+ if (key === "__proto__" || key === "constructor") continue;
57
+ const value = baseObject[key];
58
+ if (value === null || value === void 0) continue;
59
+ if (merger && merger(object, key, value, namespace)) continue;
60
+ if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
61
+ else if (isPlainObject$1(value) && isPlainObject$1(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
62
+ else object[key] = value;
63
+ }
64
+ return object;
65
+ }
66
+ function createDefu(merger) {
67
+ return (...arguments_) => arguments_.reduce((p, c2) => _defu(p, c2, "", merger), {});
68
+ }
69
+ var defu = createDefu();
70
+ function isPlainObject(obj) {
71
+ return Object.prototype.toString.call(obj) === "[object Object]";
72
+ }
73
+ function isLogObj(arg) {
74
+ if (!isPlainObject(arg)) return false;
75
+ if (!arg.message && !arg.args) return false;
76
+ if (arg.stack) return false;
77
+ return true;
78
+ }
79
+ var paused = false;
80
+ var queue = [];
81
+ var Consola = class Consola2 {
82
+ options;
83
+ _lastLog;
84
+ _mockFn;
85
+ /**
86
+ * Creates an instance of Consola with specified options or defaults.
87
+ *
88
+ * @param {Partial<ConsolaOptions>} [options={}] - Configuration options for the Consola instance.
89
+ */
90
+ constructor(options = {}) {
91
+ const types = options.types || LogTypes;
92
+ this.options = defu({
93
+ ...options,
94
+ defaults: { ...options.defaults },
95
+ level: _normalizeLogLevel(options.level, types),
96
+ reporters: [...options.reporters || []]
97
+ }, {
98
+ types: LogTypes,
99
+ throttle: 1e3,
100
+ throttleMin: 5,
101
+ formatOptions: {
102
+ date: true,
103
+ colors: false,
104
+ compact: true
105
+ }
106
+ });
107
+ for (const type in types) {
108
+ const defaults = {
109
+ type,
110
+ ...this.options.defaults,
111
+ ...types[type]
112
+ };
113
+ this[type] = this._wrapLogFn(defaults);
114
+ this[type].raw = this._wrapLogFn(defaults, true);
115
+ }
116
+ if (this.options.mockFn) this.mockTypes();
117
+ this._lastLog = {};
118
+ }
119
+ /**
120
+ * Gets the current log level of the Consola instance.
121
+ *
122
+ * @returns {number} The current log level.
123
+ */
124
+ get level() {
125
+ return this.options.level;
126
+ }
127
+ /**
128
+ * Sets the minimum log level that will be output by the instance.
129
+ *
130
+ * @param {number} level - The new log level to set.
131
+ */
132
+ set level(level) {
133
+ this.options.level = _normalizeLogLevel(level, this.options.types, this.options.level);
134
+ }
135
+ /**
136
+ * Displays a prompt to the user and returns the response.
137
+ * Throw an error if `prompt` is not supported by the current configuration.
138
+ *
139
+ * @template T
140
+ * @param {string} message - The message to display in the prompt.
141
+ * @param {T} [opts] - Optional options for the prompt. See {@link PromptOptions}.
142
+ * @returns {promise<T>} A promise that infer with the prompt options. See {@link PromptOptions}.
143
+ */
144
+ prompt(message, opts) {
145
+ if (!this.options.prompt) throw new Error("prompt is not supported!");
146
+ return this.options.prompt(message, opts);
147
+ }
148
+ /**
149
+ * Creates a new instance of Consola, inheriting options from the current instance, with possible overrides.
150
+ *
151
+ * @param {Partial<ConsolaOptions>} options - Optional overrides for the new instance. See {@link ConsolaOptions}.
152
+ * @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
153
+ */
154
+ create(options) {
155
+ const instance = new Consola2({
156
+ ...this.options,
157
+ ...options
158
+ });
159
+ if (this._mockFn) instance.mockTypes(this._mockFn);
160
+ return instance;
161
+ }
162
+ /**
163
+ * Creates a new Consola instance with the specified default log object properties.
164
+ *
165
+ * @param {InputLogObject} defaults - Default properties to include in any log from the new instance. See {@link InputLogObject}.
166
+ * @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
167
+ */
168
+ withDefaults(defaults) {
169
+ return this.create({
170
+ ...this.options,
171
+ defaults: {
172
+ ...this.options.defaults,
173
+ ...defaults
174
+ }
175
+ });
176
+ }
177
+ /**
178
+ * Creates a new Consola instance with a specified tag, which will be included in every log.
179
+ *
180
+ * @param {string} tag - The tag to include in each log of the new instance.
181
+ * @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
182
+ */
183
+ withTag(tag) {
184
+ return this.withDefaults({ tag: this.options.defaults.tag ? this.options.defaults.tag + ":" + tag : tag });
185
+ }
186
+ /**
187
+ * Adds a custom reporter to the Consola instance.
188
+ * Reporters will be called for each log message, depending on their implementation and log level.
189
+ *
190
+ * @param {ConsolaReporter} reporter - The reporter to add. See {@link ConsolaReporter}.
191
+ * @returns {Consola} The current Consola instance.
192
+ */
193
+ addReporter(reporter) {
194
+ this.options.reporters.push(reporter);
195
+ return this;
196
+ }
197
+ /**
198
+ * Removes a custom reporter from the Consola instance.
199
+ * If no reporter is specified, all reporters will be removed.
200
+ *
201
+ * @param {ConsolaReporter} reporter - The reporter to remove. See {@link ConsolaReporter}.
202
+ * @returns {Consola} The current Consola instance.
203
+ */
204
+ removeReporter(reporter) {
205
+ if (reporter) {
206
+ const i2 = this.options.reporters.indexOf(reporter);
207
+ if (i2 !== -1) return this.options.reporters.splice(i2, 1);
208
+ } else this.options.reporters.splice(0);
209
+ return this;
210
+ }
211
+ /**
212
+ * Replaces all reporters of the Consola instance with the specified array of reporters.
213
+ *
214
+ * @param {ConsolaReporter[]} reporters - The new reporters to set. See {@link ConsolaReporter}.
215
+ * @returns {Consola} The current Consola instance.
216
+ */
217
+ setReporters(reporters) {
218
+ this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];
219
+ return this;
220
+ }
221
+ wrapAll() {
222
+ this.wrapConsole();
223
+ this.wrapStd();
224
+ }
225
+ restoreAll() {
226
+ this.restoreConsole();
227
+ this.restoreStd();
228
+ }
229
+ /**
230
+ * Overrides console methods with Consola logging methods for consistent logging.
231
+ */
232
+ wrapConsole() {
233
+ for (const type in this.options.types) {
234
+ if (!console["__" + type]) console["__" + type] = console[type];
235
+ console[type] = this[type].raw;
236
+ }
237
+ }
238
+ /**
239
+ * Restores the original console methods, removing Consola overrides.
240
+ */
241
+ restoreConsole() {
242
+ for (const type in this.options.types) if (console["__" + type]) {
243
+ console[type] = console["__" + type];
244
+ delete console["__" + type];
245
+ }
246
+ }
247
+ /**
248
+ * Overrides standard output and error streams to redirect them through Consola.
249
+ */
250
+ wrapStd() {
251
+ this._wrapStream(this.options.stdout, "log");
252
+ this._wrapStream(this.options.stderr, "log");
253
+ }
254
+ _wrapStream(stream, type) {
255
+ if (!stream) return;
256
+ if (!stream.__write) stream.__write = stream.write;
257
+ stream.write = (data) => {
258
+ this[type].raw(String(data).trim());
259
+ };
260
+ }
261
+ /**
262
+ * Restores the original standard output and error streams, removing the Consola redirection.
263
+ */
264
+ restoreStd() {
265
+ this._restoreStream(this.options.stdout);
266
+ this._restoreStream(this.options.stderr);
267
+ }
268
+ _restoreStream(stream) {
269
+ if (!stream) return;
270
+ if (stream.__write) {
271
+ stream.write = stream.__write;
272
+ delete stream.__write;
273
+ }
274
+ }
275
+ /**
276
+ * Pauses logging, queues incoming logs until resumed.
277
+ */
278
+ pauseLogs() {
279
+ paused = true;
280
+ }
281
+ /**
282
+ * Resumes logging, processing any queued logs.
283
+ */
284
+ resumeLogs() {
285
+ paused = false;
286
+ const _queue = queue.splice(0);
287
+ for (const item of _queue) item[0]._logFn(item[1], item[2]);
288
+ }
289
+ /**
290
+ * Replaces logging methods with mocks if a mock function is provided.
291
+ *
292
+ * @param {ConsolaOptions["mockFn"]} mockFn - The function to use for mocking logging methods. See {@link ConsolaOptions["mockFn"]}.
293
+ */
294
+ mockTypes(mockFn) {
295
+ const _mockFn = mockFn || this.options.mockFn;
296
+ this._mockFn = _mockFn;
297
+ if (typeof _mockFn !== "function") return;
298
+ for (const type in this.options.types) {
299
+ this[type] = _mockFn(type, this.options.types[type]) || this[type];
300
+ this[type].raw = this[type];
301
+ }
302
+ }
303
+ _wrapLogFn(defaults, isRaw) {
304
+ return (...args) => {
305
+ if (paused) {
306
+ queue.push([
307
+ this,
308
+ defaults,
309
+ args,
310
+ isRaw
311
+ ]);
312
+ return;
313
+ }
314
+ return this._logFn(defaults, args, isRaw);
315
+ };
316
+ }
317
+ _logFn(defaults, args, isRaw) {
318
+ if ((defaults.level || 0) > this.level) return false;
319
+ const logObj = {
320
+ date: /* @__PURE__ */ new Date(),
321
+ args: [],
322
+ ...defaults,
323
+ level: _normalizeLogLevel(defaults.level, this.options.types)
324
+ };
325
+ if (!isRaw && args.length === 1 && isLogObj(args[0])) Object.assign(logObj, args[0]);
326
+ else logObj.args = [...args];
327
+ if (logObj.message) {
328
+ logObj.args.unshift(logObj.message);
329
+ delete logObj.message;
330
+ }
331
+ if (logObj.additional) {
332
+ if (!Array.isArray(logObj.additional)) logObj.additional = logObj.additional.split("\n");
333
+ logObj.args.push("\n" + logObj.additional.join("\n"));
334
+ delete logObj.additional;
335
+ }
336
+ logObj.type = typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log";
337
+ logObj.tag = typeof logObj.tag === "string" ? logObj.tag : "";
338
+ const resolveLog = (newLog = false) => {
339
+ const repeated = (this._lastLog.count || 0) - this.options.throttleMin;
340
+ if (this._lastLog.object && repeated > 0) {
341
+ const args2 = [...this._lastLog.object.args];
342
+ if (repeated > 1) args2.push(`(repeated ${repeated} times)`);
343
+ this._log({
344
+ ...this._lastLog.object,
345
+ args: args2
346
+ });
347
+ this._lastLog.count = 1;
348
+ }
349
+ if (newLog) {
350
+ this._lastLog.object = logObj;
351
+ this._log(logObj);
352
+ }
353
+ };
354
+ clearTimeout(this._lastLog.timeout);
355
+ const diffTime = this._lastLog.time && logObj.date ? logObj.date.getTime() - this._lastLog.time.getTime() : 0;
356
+ this._lastLog.time = logObj.date;
357
+ if (diffTime < this.options.throttle) try {
358
+ const serializedLog = JSON.stringify([
359
+ logObj.type,
360
+ logObj.tag,
361
+ logObj.args
362
+ ]);
363
+ const isSameLog = this._lastLog.serialized === serializedLog;
364
+ this._lastLog.serialized = serializedLog;
365
+ if (isSameLog) {
366
+ this._lastLog.count = (this._lastLog.count || 0) + 1;
367
+ if (this._lastLog.count > this.options.throttleMin) {
368
+ this._lastLog.timeout = setTimeout(resolveLog, this.options.throttle);
369
+ return;
370
+ }
371
+ }
372
+ } catch {
373
+ }
374
+ resolveLog(true);
375
+ }
376
+ _log(logObj) {
377
+ for (const reporter of this.options.reporters) reporter.log(logObj, { options: this.options });
378
+ }
379
+ };
380
+ function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
381
+ if (input === void 0) return defaultLevel;
382
+ if (typeof input === "number") return input;
383
+ if (types[input] && types[input].level !== void 0) return types[input].level;
384
+ return defaultLevel;
385
+ }
386
+ Consola.prototype.add = Consola.prototype.addReporter;
387
+ Consola.prototype.remove = Consola.prototype.removeReporter;
388
+ Consola.prototype.clear = Consola.prototype.removeReporter;
389
+ Consola.prototype.withScope = Consola.prototype.withTag;
390
+ Consola.prototype.mock = Consola.prototype.mockTypes;
391
+ Consola.prototype.pause = Consola.prototype.pauseLogs;
392
+ Consola.prototype.resume = Consola.prototype.resumeLogs;
393
+ function createConsola$1(options = {}) {
394
+ return new Consola(options);
395
+ }
396
+ function parseStack(stack, message) {
397
+ const cwd = process.cwd() + sep;
398
+ return stack.split("\n").splice(message.split("\n").length).map((l2) => l2.trim().replace("file://", "").replace(cwd, ""));
399
+ }
400
+ function writeStream(data, stream) {
401
+ return (stream.__write || stream.write).call(stream, data);
402
+ }
403
+ var bracket = (x) => x ? `[${x}]` : "";
404
+ var BasicReporter = class {
405
+ formatStack(stack, message, opts) {
406
+ const indent = " ".repeat((opts?.errorLevel || 0) + 1);
407
+ return indent + parseStack(stack, message).join(`
408
+ ${indent}`);
409
+ }
410
+ formatError(err, opts) {
411
+ const message = err.message ?? formatWithOptions(opts, err);
412
+ const stack = err.stack ? this.formatStack(err.stack, message, opts) : "";
413
+ const level = opts?.errorLevel || 0;
414
+ const causedPrefix = level > 0 ? `${" ".repeat(level)}[cause]: ` : "";
415
+ const causedError = err.cause ? "\n\n" + this.formatError(err.cause, {
416
+ ...opts,
417
+ errorLevel: level + 1
418
+ }) : "";
419
+ return causedPrefix + message + "\n" + stack + causedError;
420
+ }
421
+ formatArgs(args, opts) {
422
+ const _args = args.map((arg) => {
423
+ if (arg && typeof arg.stack === "string") return this.formatError(arg, opts);
424
+ return arg;
425
+ });
426
+ return formatWithOptions(opts, ..._args);
427
+ }
428
+ formatDate(date, opts) {
429
+ return opts.date ? date.toLocaleTimeString() : "";
430
+ }
431
+ filterAndJoin(arr) {
432
+ return arr.filter(Boolean).join(" ");
433
+ }
434
+ formatLogObj(logObj, opts) {
435
+ const message = this.formatArgs(logObj.args, opts);
436
+ if (logObj.type === "box") return "\n" + [
437
+ bracket(logObj.tag),
438
+ logObj.title && logObj.title,
439
+ ...message.split("\n")
440
+ ].filter(Boolean).map((l2) => " > " + l2).join("\n") + "\n";
441
+ return this.filterAndJoin([
442
+ bracket(logObj.type),
443
+ bracket(logObj.tag),
444
+ message
445
+ ]);
446
+ }
447
+ log(logObj, ctx) {
448
+ return writeStream(this.formatLogObj(logObj, {
449
+ columns: ctx.options.stdout.columns || 0,
450
+ ...ctx.options.formatOptions
451
+ }) + "\n", logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout);
452
+ }
453
+ };
454
+ var { env = {}, argv = [], platform = "" } = typeof process === "undefined" ? {} : process;
455
+ var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
456
+ var isForced = "FORCE_COLOR" in env || argv.includes("--color");
457
+ var isWindows = platform === "win32";
458
+ var isDumbTerminal = env.TERM === "dumb";
459
+ var isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal;
460
+ var isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
461
+ var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
462
+ function replaceClose(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
463
+ return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
464
+ }
465
+ function clearBleed(index, string, open, close, replace) {
466
+ return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
467
+ }
468
+ function filterEmpty(open, close, replace = open, at = open.length + 1) {
469
+ return (string) => string || !(string === "" || string === void 0) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
470
+ }
471
+ function init(open, close, replace) {
472
+ return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
473
+ }
474
+ var colorDefs = {
475
+ reset: init(0, 0),
476
+ bold: init(1, 22, "\x1B[22m\x1B[1m"),
477
+ dim: init(2, 22, "\x1B[22m\x1B[2m"),
478
+ italic: init(3, 23),
479
+ underline: init(4, 24),
480
+ inverse: init(7, 27),
481
+ hidden: init(8, 28),
482
+ strikethrough: init(9, 29),
483
+ black: init(30, 39),
484
+ red: init(31, 39),
485
+ green: init(32, 39),
486
+ yellow: init(33, 39),
487
+ blue: init(34, 39),
488
+ magenta: init(35, 39),
489
+ cyan: init(36, 39),
490
+ white: init(37, 39),
491
+ gray: init(90, 39),
492
+ bgBlack: init(40, 49),
493
+ bgRed: init(41, 49),
494
+ bgGreen: init(42, 49),
495
+ bgYellow: init(43, 49),
496
+ bgBlue: init(44, 49),
497
+ bgMagenta: init(45, 49),
498
+ bgCyan: init(46, 49),
499
+ bgWhite: init(47, 49),
500
+ blackBright: init(90, 39),
501
+ redBright: init(91, 39),
502
+ greenBright: init(92, 39),
503
+ yellowBright: init(93, 39),
504
+ blueBright: init(94, 39),
505
+ magentaBright: init(95, 39),
506
+ cyanBright: init(96, 39),
507
+ whiteBright: init(97, 39),
508
+ bgBlackBright: init(100, 49),
509
+ bgRedBright: init(101, 49),
510
+ bgGreenBright: init(102, 49),
511
+ bgYellowBright: init(103, 49),
512
+ bgBlueBright: init(104, 49),
513
+ bgMagentaBright: init(105, 49),
514
+ bgCyanBright: init(106, 49),
515
+ bgWhiteBright: init(107, 49)
516
+ };
517
+ function createColors(useColor = isColorSupported) {
518
+ return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
519
+ }
520
+ var colors = createColors();
521
+ function getColor$1(color, fallback = "reset") {
522
+ return colors[color] || colors[fallback];
523
+ }
524
+ var ansiRegex$1 = [String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`, String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");
525
+ function stripAnsi$1(text) {
526
+ return text.replace(new RegExp(ansiRegex$1, "g"), "");
527
+ }
528
+ var boxStylePresets = {
529
+ solid: {
530
+ tl: "\u250C",
531
+ tr: "\u2510",
532
+ bl: "\u2514",
533
+ br: "\u2518",
534
+ h: "\u2500",
535
+ v: "\u2502"
536
+ },
537
+ double: {
538
+ tl: "\u2554",
539
+ tr: "\u2557",
540
+ bl: "\u255A",
541
+ br: "\u255D",
542
+ h: "\u2550",
543
+ v: "\u2551"
544
+ },
545
+ doubleSingle: {
546
+ tl: "\u2553",
547
+ tr: "\u2556",
548
+ bl: "\u2559",
549
+ br: "\u255C",
550
+ h: "\u2500",
551
+ v: "\u2551"
552
+ },
553
+ doubleSingleRounded: {
554
+ tl: "\u256D",
555
+ tr: "\u256E",
556
+ bl: "\u2570",
557
+ br: "\u256F",
558
+ h: "\u2500",
559
+ v: "\u2551"
560
+ },
561
+ singleThick: {
562
+ tl: "\u250F",
563
+ tr: "\u2513",
564
+ bl: "\u2517",
565
+ br: "\u251B",
566
+ h: "\u2501",
567
+ v: "\u2503"
568
+ },
569
+ singleDouble: {
570
+ tl: "\u2552",
571
+ tr: "\u2555",
572
+ bl: "\u2558",
573
+ br: "\u255B",
574
+ h: "\u2550",
575
+ v: "\u2502"
576
+ },
577
+ singleDoubleRounded: {
578
+ tl: "\u256D",
579
+ tr: "\u256E",
580
+ bl: "\u2570",
581
+ br: "\u256F",
582
+ h: "\u2550",
583
+ v: "\u2502"
584
+ },
585
+ rounded: {
586
+ tl: "\u256D",
587
+ tr: "\u256E",
588
+ bl: "\u2570",
589
+ br: "\u256F",
590
+ h: "\u2500",
591
+ v: "\u2502"
592
+ }
593
+ };
594
+ var defaultStyle = {
595
+ borderColor: "white",
596
+ borderStyle: "rounded",
597
+ valign: "center",
598
+ padding: 2,
599
+ marginLeft: 1,
600
+ marginTop: 1,
601
+ marginBottom: 1
602
+ };
603
+ function box(text, _opts = {}) {
604
+ const opts = {
605
+ ..._opts,
606
+ style: {
607
+ ...defaultStyle,
608
+ ..._opts.style
609
+ }
610
+ };
611
+ const textLines = text.split("\n");
612
+ const boxLines = [];
613
+ const _color = getColor$1(opts.style.borderColor);
614
+ const borderStyle = { ...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets.solid : opts.style.borderStyle };
615
+ if (_color) for (const key in borderStyle) borderStyle[key] = _color(borderStyle[key]);
616
+ const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
617
+ const height = textLines.length + paddingOffset;
618
+ const width = Math.max(...textLines.map((line) => stripAnsi$1(line).length), opts.title ? stripAnsi$1(opts.title).length : 0) + paddingOffset;
619
+ const widthOffset = width + paddingOffset;
620
+ const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
621
+ if (opts.style.marginTop > 0) boxLines.push("".repeat(opts.style.marginTop));
622
+ if (opts.title) {
623
+ const title = _color ? _color(opts.title) : opts.title;
624
+ const left = borderStyle.h.repeat(Math.floor((width - stripAnsi$1(opts.title).length) / 2));
625
+ const right = borderStyle.h.repeat(width - stripAnsi$1(opts.title).length - stripAnsi$1(left).length + paddingOffset);
626
+ boxLines.push(`${leftSpace}${borderStyle.tl}${left}${title}${right}${borderStyle.tr}`);
627
+ } else boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
628
+ const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
629
+ for (let i2 = 0; i2 < height; i2++) if (i2 < valignOffset || i2 >= valignOffset + textLines.length) boxLines.push(`${leftSpace}${borderStyle.v}${" ".repeat(widthOffset)}${borderStyle.v}`);
630
+ else {
631
+ const line = textLines[i2 - valignOffset];
632
+ const left = " ".repeat(paddingOffset);
633
+ const right = " ".repeat(width - stripAnsi$1(line).length);
634
+ boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
635
+ }
636
+ boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
637
+ if (opts.style.marginBottom > 0) boxLines.push("".repeat(opts.style.marginBottom));
638
+ return boxLines.join("\n");
639
+ }
640
+ var r = /* @__PURE__ */ Object.create(null);
641
+ var i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
642
+ var o = new Proxy(r, {
643
+ get(e, s2) {
644
+ return i()[s2] ?? r[s2];
645
+ },
646
+ has(e, s2) {
647
+ return s2 in i() || s2 in r;
648
+ },
649
+ set(e, s2, E) {
650
+ const B = i(true);
651
+ return B[s2] = E, true;
652
+ },
653
+ deleteProperty(e, s2) {
654
+ if (!s2) return false;
655
+ const E = i(true);
656
+ return delete E[s2], true;
657
+ },
658
+ ownKeys() {
659
+ const e = i(true);
660
+ return Object.keys(e);
661
+ }
662
+ });
663
+ var t = typeof process < "u" && process.env && process.env.NODE_ENV || "";
664
+ var f = [
665
+ ["APPVEYOR"],
666
+ [
667
+ "AWS_AMPLIFY",
668
+ "AWS_APP_ID",
669
+ { ci: true }
670
+ ],
671
+ ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
672
+ ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],
673
+ ["APPCIRCLE", "AC_APPCIRCLE"],
674
+ ["BAMBOO", "bamboo_planKey"],
675
+ ["BITBUCKET", "BITBUCKET_COMMIT"],
676
+ ["BITRISE", "BITRISE_IO"],
677
+ ["BUDDY", "BUDDY_WORKSPACE_ID"],
678
+ ["BUILDKITE"],
679
+ ["CIRCLE", "CIRCLECI"],
680
+ ["CIRRUS", "CIRRUS_CI"],
681
+ [
682
+ "CLOUDFLARE_PAGES",
683
+ "CF_PAGES",
684
+ { ci: true }
685
+ ],
686
+ ["CODEBUILD", "CODEBUILD_BUILD_ARN"],
687
+ ["CODEFRESH", "CF_BUILD_ID"],
688
+ ["DRONE"],
689
+ ["DRONE", "DRONE_BUILD_EVENT"],
690
+ ["DSARI"],
691
+ ["GITHUB_ACTIONS"],
692
+ ["GITLAB", "GITLAB_CI"],
693
+ ["GITLAB", "CI_MERGE_REQUEST_ID"],
694
+ ["GOCD", "GO_PIPELINE_LABEL"],
695
+ ["LAYERCI"],
696
+ ["HUDSON", "HUDSON_URL"],
697
+ ["JENKINS", "JENKINS_URL"],
698
+ ["MAGNUM"],
699
+ ["NETLIFY"],
700
+ [
701
+ "NETLIFY",
702
+ "NETLIFY_LOCAL",
703
+ { ci: false }
704
+ ],
705
+ ["NEVERCODE"],
706
+ ["RENDER"],
707
+ ["SAIL", "SAILCI"],
708
+ ["SEMAPHORE"],
709
+ ["SCREWDRIVER"],
710
+ ["SHIPPABLE"],
711
+ ["SOLANO", "TDDIUM"],
712
+ ["STRIDER"],
713
+ ["TEAMCITY", "TEAMCITY_VERSION"],
714
+ ["TRAVIS"],
715
+ ["VERCEL", "NOW_BUILDER"],
716
+ [
717
+ "VERCEL",
718
+ "VERCEL",
719
+ { ci: false }
720
+ ],
721
+ [
722
+ "VERCEL",
723
+ "VERCEL_ENV",
724
+ { ci: false }
725
+ ],
726
+ ["APPCENTER", "APPCENTER_BUILD_ID"],
727
+ [
728
+ "CODESANDBOX",
729
+ "CODESANDBOX_SSE",
730
+ { ci: false }
731
+ ],
732
+ [
733
+ "CODESANDBOX",
734
+ "CODESANDBOX_HOST",
735
+ { ci: false }
736
+ ],
737
+ ["STACKBLITZ"],
738
+ ["STORMKIT"],
739
+ ["CLEAVR"],
740
+ ["ZEABUR"],
741
+ [
742
+ "CODESPHERE",
743
+ "CODESPHERE_APP_ID",
744
+ { ci: true }
745
+ ],
746
+ ["RAILWAY", "RAILWAY_PROJECT_ID"],
747
+ ["RAILWAY", "RAILWAY_SERVICE_ID"],
748
+ ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"],
749
+ [
750
+ "FIREBASE_APP_HOSTING",
751
+ "FIREBASE_APP_HOSTING",
752
+ { ci: true }
753
+ ]
754
+ ];
755
+ function b() {
756
+ if (globalThis.process?.env) for (const e of f) {
757
+ const s2 = e[1] || e[0];
758
+ if (globalThis.process?.env[s2]) return {
759
+ name: e[0].toLowerCase(),
760
+ ...e[2]
761
+ };
762
+ }
763
+ return globalThis.process?.env?.SHELL === "/bin/jsh" && globalThis.process?.versions?.webcontainer ? {
764
+ name: "stackblitz",
765
+ ci: false
766
+ } : {
767
+ name: "",
768
+ ci: false
769
+ };
770
+ }
771
+ var l = b();
772
+ l.name;
773
+ function n(e) {
774
+ return e ? e !== "false" : false;
775
+ }
776
+ var I = globalThis.process?.platform || "";
777
+ var T = n(o.CI) || l.ci !== false;
778
+ var a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
779
+ var g = n(o.DEBUG);
780
+ var R = t === "test" || n(o.TEST);
781
+ o.MINIMAL;
782
+ var A = /^win/i.test(I);
783
+ !n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
784
+ var C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
785
+ Number(C?.split(".")[0]);
786
+ var y = globalThis.process || /* @__PURE__ */ Object.create(null);
787
+ var _ = { versions: {} };
788
+ new Proxy(y, { get(e, s2) {
789
+ if (s2 === "env") return o;
790
+ if (s2 in e) return e[s2];
791
+ if (s2 in _) return _[s2];
792
+ } });
793
+ var c = globalThis.process?.release?.name === "node";
794
+ var O = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
795
+ var D = !!globalThis.Deno;
796
+ var L = !!globalThis.fastly;
797
+ var S = !!globalThis.Netlify;
798
+ var u = !!globalThis.EdgeRuntime;
799
+ var N = globalThis.navigator?.userAgent === "Cloudflare-Workers";
800
+ var F = [
801
+ [S, "netlify"],
802
+ [u, "edge-light"],
803
+ [N, "workerd"],
804
+ [L, "fastly"],
805
+ [D, "deno"],
806
+ [O, "bun"],
807
+ [c, "node"]
808
+ ];
809
+ function G() {
810
+ const e = F.find((s2) => s2[0]);
811
+ if (e) return { name: e[1] };
812
+ }
813
+ G()?.name;
814
+ function ansiRegex({ onlyFirst = false } = {}) {
815
+ const pattern = [`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))`, "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
816
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
817
+ }
818
+ var regex = ansiRegex();
819
+ function stripAnsi(string) {
820
+ if (typeof string !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
821
+ return string.replace(regex, "");
822
+ }
823
+ function isAmbiguous(x) {
824
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
825
+ }
826
+ function isFullWidth(x) {
827
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
828
+ }
829
+ function isWide(x) {
830
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
831
+ }
832
+ function validate(codePoint) {
833
+ if (!Number.isSafeInteger(codePoint)) throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
834
+ }
835
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
836
+ validate(codePoint);
837
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) return 2;
838
+ return 1;
839
+ }
840
+ var emojiRegex = () => {
841
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
842
+ };
843
+ var segmenter = globalThis.Intl?.Segmenter ? new Intl.Segmenter() : { segment: (str) => str.split("") };
844
+ var defaultIgnorableCodePointRegex = new RegExp("^\\p{Default_Ignorable_Code_Point}$", "u");
845
+ function stringWidth$1(string, options = {}) {
846
+ if (typeof string !== "string" || string.length === 0) return 0;
847
+ const { ambiguousIsNarrow = true, countAnsiEscapeCodes = false } = options;
848
+ if (!countAnsiEscapeCodes) string = stripAnsi(string);
849
+ if (string.length === 0) return 0;
850
+ let width = 0;
851
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
852
+ for (const { segment: character } of segmenter.segment(string)) {
853
+ const codePoint = character.codePointAt(0);
854
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) continue;
855
+ if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) continue;
856
+ if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) continue;
857
+ if (codePoint >= 55296 && codePoint <= 57343) continue;
858
+ if (codePoint >= 65024 && codePoint <= 65039) continue;
859
+ if (defaultIgnorableCodePointRegex.test(character)) continue;
860
+ if (emojiRegex().test(character)) {
861
+ width += 2;
862
+ continue;
863
+ }
864
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
865
+ }
866
+ return width;
867
+ }
868
+ function isUnicodeSupported() {
869
+ const { env: env2 } = g$1;
870
+ const { TERM, TERM_PROGRAM } = env2;
871
+ if (g$1.platform !== "win32") return TERM !== "linux";
872
+ return Boolean(env2.WT_SESSION) || Boolean(env2.TERMINUS_SUBLIME) || env2.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env2.TERMINAL_EMULATOR === "JetBrains-JediTerm";
873
+ }
874
+ var TYPE_COLOR_MAP = {
875
+ info: "cyan",
876
+ fail: "red",
877
+ success: "green",
878
+ ready: "green",
879
+ start: "magenta"
880
+ };
881
+ var LEVEL_COLOR_MAP = {
882
+ 0: "red",
883
+ 1: "yellow"
884
+ };
885
+ var unicode = isUnicodeSupported();
886
+ var s = (c2, fallback) => unicode ? c2 : fallback;
887
+ var TYPE_ICONS = {
888
+ error: s("\u2716", "\xD7"),
889
+ fatal: s("\u2716", "\xD7"),
890
+ ready: s("\u2714", "\u221A"),
891
+ warn: s("\u26A0", "\u203C"),
892
+ info: s("\u2139", "i"),
893
+ success: s("\u2714", "\u221A"),
894
+ debug: s("\u2699", "D"),
895
+ trace: s("\u2192", "\u2192"),
896
+ fail: s("\u2716", "\xD7"),
897
+ start: s("\u25D0", "o"),
898
+ log: ""
899
+ };
900
+ function stringWidth(str) {
901
+ if (!(typeof Intl === "object") || !Intl.Segmenter) return stripAnsi$1(str).length;
902
+ return stringWidth$1(str);
903
+ }
904
+ var FancyReporter = class extends BasicReporter {
905
+ formatStack(stack, message, opts) {
906
+ const indent = " ".repeat((opts?.errorLevel || 0) + 1);
907
+ return `
908
+ ${indent}` + parseStack(stack, message).map((line) => " " + line.replace(/^at +/, (m) => colors.gray(m)).replace(/\((.+)\)/, (_2, m) => `(${colors.cyan(m)})`)).join(`
909
+ ${indent}`);
910
+ }
911
+ formatType(logObj, isBadge, opts) {
912
+ const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
913
+ if (isBadge) return getBgColor(typeColor)(colors.black(` ${logObj.type.toUpperCase()} `));
914
+ const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
915
+ return _type ? getColor(typeColor)(_type) : "";
916
+ }
917
+ formatLogObj(logObj, opts) {
918
+ const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
919
+ if (logObj.type === "box") return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
920
+ title: logObj.title ? characterFormat(logObj.title) : void 0,
921
+ style: logObj.style
922
+ });
923
+ const date = this.formatDate(logObj.date, opts);
924
+ const coloredDate = date && colors.gray(date);
925
+ const isBadge = logObj.badge ?? logObj.level < 2;
926
+ const type = this.formatType(logObj, isBadge, opts);
927
+ const tag = logObj.tag ? colors.gray(logObj.tag) : "";
928
+ let line;
929
+ const left = this.filterAndJoin([type, characterFormat(message)]);
930
+ const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);
931
+ const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
932
+ line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
933
+ line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
934
+ if (logObj.type === "trace") {
935
+ const _err = /* @__PURE__ */ new Error("Trace: " + logObj.message);
936
+ line += this.formatStack(_err.stack || "", _err.message);
937
+ }
938
+ return isBadge ? "\n" + line + "\n" : line;
939
+ }
940
+ };
941
+ function characterFormat(str) {
942
+ return str.replace(/`([^`]+)`/gm, (_2, m) => colors.cyan(m)).replace(/\s+_([^_]+)_\s+/gm, (_2, m) => ` ${colors.underline(m)} `);
943
+ }
944
+ function getColor(color = "white") {
945
+ return colors[color] || colors.white;
946
+ }
947
+ function getBgColor(color = "bgWhite") {
948
+ return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;
949
+ }
950
+ function createConsola(options = {}) {
951
+ let level = _getDefaultLogLevel();
952
+ if (process.env.CONSOLA_LEVEL) level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
953
+ return createConsola$1({
954
+ level,
955
+ defaults: { level },
956
+ stdout: process.stdout,
957
+ stderr: process.stderr,
958
+ prompt: (...args) => import("./prompt-DkftHXS7-TE2LNPAM.js").then((m) => m.prompt(...args)),
959
+ reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
960
+ ...options
961
+ });
962
+ }
963
+ function _getDefaultLogLevel() {
964
+ if (g) return LogLevels.debug;
965
+ if (R) return LogLevels.warn;
966
+ return LogLevels.info;
967
+ }
968
+ createConsola();
969
+ var logger_exports = /* @__PURE__ */ __exportAll({ logger: () => logger });
970
+ var logger = process.env.ROLLDOWN_TEST ? createTestingLogger() : createConsola({ formatOptions: { date: false } });
971
+ function createTestingLogger() {
972
+ const types = [
973
+ "silent",
974
+ "fatal",
975
+ "error",
976
+ "warn",
977
+ "log",
978
+ "info",
979
+ "success",
980
+ "fail",
981
+ "ready",
982
+ "start",
983
+ "box",
984
+ "debug",
985
+ "trace",
986
+ "verbose"
987
+ ];
988
+ const ret = /* @__PURE__ */ Object.create(null);
989
+ for (const type of types) ret[type] = (...args) => console.log(...args);
990
+ return ret;
991
+ }
992
+ export {
993
+ logger_exports as n,
994
+ logger as t
995
+ };