@rzl-zone/build-tools 0.0.8 → 0.0.9

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 (59) hide show
  1. package/dist/.references/index.d.cts +1 -1
  2. package/dist/.references/index.d.ts +1 -1
  3. package/dist/bundler/rolldown.cjs +2 -2
  4. package/dist/bundler/rolldown.d.cts +2 -2
  5. package/dist/bundler/rolldown.d.ts +2 -2
  6. package/dist/bundler/rolldown.js +1 -1
  7. package/dist/bundler/tsdown.cjs +3 -3
  8. package/dist/bundler/tsdown.d.cts +2 -2
  9. package/dist/bundler/tsdown.d.ts +2 -2
  10. package/dist/bundler/tsdown.js +3 -3
  11. package/dist/bundler/utils.cjs +2 -2
  12. package/dist/bundler/utils.d.cts +2 -2
  13. package/dist/bundler/utils.d.ts +2 -2
  14. package/dist/bundler/utils.js +2 -2
  15. package/dist/{client-BczBMDS6.cjs → client-C3jHSAqV.cjs} +3 -3
  16. package/dist/{client-BczBMDS6.cjs.map → client-C3jHSAqV.cjs.map} +1 -1
  17. package/dist/{client-C0ZDdv36.js → client-DUlrjus0.js} +3 -3
  18. package/dist/{client-C0ZDdv36.js.map → client-DUlrjus0.js.map} +1 -1
  19. package/dist/commander-kit/index.cjs +5 -5
  20. package/dist/commander-kit/index.d.cts +3 -3
  21. package/dist/commander-kit/index.d.ts +3 -3
  22. package/dist/commander-kit/index.js +5 -5
  23. package/dist/{extra-CnJhk-pp.d.cts → extra-CsRmdXC4.d.cts} +2 -2
  24. package/dist/{extra-CDUxrgcT.d.ts → extra-DxvrBev9.d.ts} +2 -2
  25. package/dist/{fast-globe-options-CMxk8gD9.d.ts → fast-globe-options-Cz8KJqKc.d.ts} +3 -3
  26. package/dist/{fast-globe-options-B4edSsWz.d.cts → fast-globe-options-PH-bHWVK.d.cts} +3 -3
  27. package/dist/{helper-2m5t07Qe.js → helper-D11A-ZKL.js} +2 -2
  28. package/dist/{helper-2m5t07Qe.js.map → helper-D11A-ZKL.js.map} +1 -1
  29. package/dist/{helper-BRO-s2fI.cjs → helper-DpeqwciR.cjs} +2 -2
  30. package/dist/{helper-BRO-s2fI.cjs.map → helper-DpeqwciR.cjs.map} +1 -1
  31. package/dist/{identity-1Zk_fLSI.cjs → identity-ByjqnR8L.cjs} +6 -6
  32. package/dist/{identity-1Zk_fLSI.cjs.map → identity-ByjqnR8L.cjs.map} +1 -1
  33. package/dist/{identity-CCGqrTRL.js → identity-C5MeSAA7.js} +6 -6
  34. package/dist/{identity-CCGqrTRL.js.map → identity-C5MeSAA7.js.map} +1 -1
  35. package/dist/{index-DPGJBhEK.d.ts → index-B1t7Xs3T.d.ts} +2 -2
  36. package/dist/{index-C-jXEIZS.d.ts → index-Dvmmz0f_.d.ts} +2 -2
  37. package/dist/{index-De-ymoL3.d.cts → index-TgjbNRWB.d.cts} +2 -2
  38. package/dist/{index-B3ChWfIR.d.cts → index-xAz8brx-.d.cts} +2 -2
  39. package/dist/index.cjs +6 -6
  40. package/dist/index.d.cts +5 -5
  41. package/dist/index.d.ts +5 -5
  42. package/dist/index.js +6 -6
  43. package/dist/{package-banner-BAbZghTB.cjs → package-banner-ByfR7yCv.cjs} +5 -5
  44. package/dist/{package-banner-BAbZghTB.cjs.map → package-banner-ByfR7yCv.cjs.map} +1 -1
  45. package/dist/{package-banner-BM84W-TO.js → package-banner-vwqcAX8E.js} +5 -5
  46. package/dist/{package-banner-BM84W-TO.js.map → package-banner-vwqcAX8E.js.map} +1 -1
  47. package/dist/{server-DH801yY1.js → server-1H2HFAbi.js} +3 -3
  48. package/dist/{server-DH801yY1.js.map → server-1H2HFAbi.js.map} +1 -1
  49. package/dist/{server-DL-uLx4N.cjs → server-BK6eykjo.cjs} +3 -3
  50. package/dist/{server-DL-uLx4N.cjs.map → server-BK6eykjo.cjs.map} +1 -1
  51. package/dist/utils/client.cjs +2 -2
  52. package/dist/utils/client.d.cts +1 -1
  53. package/dist/utils/client.d.ts +1 -1
  54. package/dist/utils/client.js +2 -2
  55. package/dist/utils/server.cjs +2 -2
  56. package/dist/utils/server.d.cts +2 -2
  57. package/dist/utils/server.d.ts +2 -2
  58. package/dist/utils/server.js +2 -2
  59. package/package.json +3 -3
@@ -2,7 +2,7 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
@@ -2,7 +2,7 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
@@ -2,7 +2,7 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
@@ -10,7 +10,7 @@
10
10
 
11
11
  "use strict";
12
12
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
13
- const require_helper = require('../helper-BRO-s2fI.cjs');
13
+ const require_helper = require('../helper-DpeqwciR.cjs');
14
14
  const require_bundler_utils = require('./utils.cjs');
15
15
  require("@rzl-zone/node-only");
16
16
  let rolldown = require("rolldown");
@@ -2,13 +2,13 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { i as NonUndefined } from "../extra-CnJhk-pp.cjs";
11
+ import { i as NonUndefined } from "../extra-CsRmdXC4.cjs";
12
12
  import * as _rolldown from "rolldown";
13
13
  import * as _rolldownPlugin from "rolldown/plugins";
14
14
 
@@ -2,13 +2,13 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { i as NonUndefined } from "../extra-CDUxrgcT.js";
11
+ import { i as NonUndefined } from "../extra-DxvrBev9.js";
12
12
  import * as _rolldown from "rolldown";
13
13
  import * as _rolldownPlugin from "rolldown/plugins";
14
14
 
@@ -2,7 +2,7 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
@@ -2,7 +2,7 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
@@ -10,8 +10,8 @@
10
10
 
11
11
  "use strict";
12
12
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
13
- const require_helper = require('../helper-BRO-s2fI.cjs');
14
- const require_package_banner = require('../package-banner-BAbZghTB.cjs');
13
+ const require_helper = require('../helper-DpeqwciR.cjs');
14
+ const require_package_banner = require('../package-banner-ByfR7yCv.cjs');
15
15
  require("@rzl-zone/node-only");
16
16
  let semver = require("semver");
17
17
  semver = require_helper.__toESM(semver, 1);
@@ -2,13 +2,13 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { l as StrictAwaitable, n as Arrayable, o as OverrideTypes, s as Prettify } from "../extra-CnJhk-pp.cjs";
11
+ import { l as StrictAwaitable, n as Arrayable, o as OverrideTypes, s as Prettify } from "../extra-CsRmdXC4.cjs";
12
12
  import * as _tsDown from "tsdown";
13
13
  import { DepsConfig as DepsConfig$1, InlineConfig as InlineConfig$1, UserConfig as UserConfig$1 } from "tsdown";
14
14
 
@@ -2,13 +2,13 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { l as StrictAwaitable, n as Arrayable, o as OverrideTypes, s as Prettify } from "../extra-CDUxrgcT.js";
11
+ import { l as StrictAwaitable, n as Arrayable, o as OverrideTypes, s as Prettify } from "../extra-DxvrBev9.js";
12
12
  import * as _tsDown from "tsdown";
13
13
  import { DepsConfig as DepsConfig$1, InlineConfig as InlineConfig$1, UserConfig as UserConfig$1 } from "tsdown";
14
14
 
@@ -2,14 +2,14 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { b as toArray, o as isFunction, r as isArray } from "../helper-2m5t07Qe.js";
12
- import { n as getPackageJson, t as generatePackageBanner } from "../package-banner-BM84W-TO.js";
11
+ import { b as toArray, o as isFunction, r as isArray } from "../helper-D11A-ZKL.js";
12
+ import { n as getPackageJson, t as generatePackageBanner } from "../package-banner-vwqcAX8E.js";
13
13
  import "@rzl-zone/node-only";
14
14
  import semver from "semver";
15
15
  import * as _tsDown from "tsdown";
@@ -2,7 +2,7 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
@@ -10,7 +10,7 @@
10
10
 
11
11
  "use strict";
12
12
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
13
- const require_package_banner = require('../package-banner-BAbZghTB.cjs');
13
+ const require_package_banner = require('../package-banner-ByfR7yCv.cjs');
14
14
  const nodeExternalPatterns = [
15
15
  /^node:/,
16
16
  /^node/,
@@ -2,13 +2,13 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { t as GeneratePackageBannerOptions } from "../index-De-ymoL3.cjs";
11
+ import { t as GeneratePackageBannerOptions } from "../index-TgjbNRWB.cjs";
12
12
 
13
13
  /** ----------------------------------------------------------------
14
14
  * * ***External modules matching patterns.***
@@ -2,13 +2,13 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { t as GeneratePackageBannerOptions } from "../index-C-jXEIZS.js";
11
+ import { t as GeneratePackageBannerOptions } from "../index-Dvmmz0f_.js";
12
12
 
13
13
  /** ----------------------------------------------------------------
14
14
  * * ***External modules matching patterns.***
@@ -2,13 +2,13 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { t as generatePackageBanner } from "../package-banner-BM84W-TO.js";
11
+ import { t as generatePackageBanner } from "../package-banner-vwqcAX8E.js";
12
12
  const nodeExternalPatterns = [
13
13
  /^node:/,
14
14
  /^node/,
@@ -2,14 +2,14 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
11
  "use strict";
12
- const require_helper = require('./helper-BRO-s2fI.cjs');
12
+ const require_helper = require('./helper-DpeqwciR.cjs');
13
13
  let picocolors = require("picocolors");
14
14
  picocolors = require_helper.__toESM(picocolors, 1);
15
15
  const hasGlobalRequire = (value) => require_helper.isObject(value) && require_helper.isFunction(value.require);
@@ -218,4 +218,4 @@ Object.defineProperty(exports, 'plural', {
218
218
  return plural;
219
219
  }
220
220
  });
221
- //# sourceMappingURL=client-BczBMDS6.cjs.map
221
+ //# sourceMappingURL=client-C3jHSAqV.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-BczBMDS6.cjs","names":["isObject","isFunction","picocolors","pcr","isNonEmptyString","isSet","isMap","isArray","isPlainObject","isRegExp","isString","isNumber","isBoolean","isNil","isObject","deepFreeze","isNonEmptyString"],"sources":["../src/utils/helper/node-require.ts","../src/utils/helper/formatter.ts","../src/utils/errors/configuration-error.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport type { Module } from \"node:module\";\nimport { isFunction, isObject } from \"@/_internal/utils/helper\";\n\n/** ----------------------------------------------------------------\n * * ***Typed mapping of commonly-used Node.js builtin module identifiers\n * (including `node:`-prefixed and legacy aliases).***\n * ----------------------------------------------------------------\n *\n * This is a **best-effort typing helper**, not a canonical or version-\n * exhaustive list of all Node.js builtins.\n *\n * - ***⚠️ Note:***\n * - This map provides **type-level hints only**.\n * - Presence in this map does **not guarantee runtime availability**.\n * - Availability of entries depends on the installed TypeScript version and `@types/node`.\n *\n * Consumers must ensure a Node.js runtime before calling `require`\n * with these identifiers.\n */\nexport type NodeBuiltinModuleMap = {\n // ======================\n // Filesystem\n // ======================\n \"node:fs\": typeof import(\"node:fs\");\n fs: typeof import(\"node:fs\");\n \"node:fs/promises\": typeof import(\"node:fs/promises\");\n \"fs/promises\": typeof import(\"node:fs/promises\");\n\n // ======================\n // Path / URL\n // ======================\n \"node:path\": typeof import(\"node:path\");\n path: typeof import(\"node:path\");\n \"node:url\": typeof import(\"node:url\");\n url: typeof import(\"node:url\");\n\n // ======================\n // OS / Process\n // ======================\n \"node:os\": typeof import(\"node:os\");\n os: typeof import(\"node:os\");\n \"node:process\": typeof import(\"node:process\");\n process: typeof import(\"node:process\");\n\n // ======================\n // Module system\n // ======================\n \"node:module\": typeof import(\"node:module\");\n module: typeof import(\"node:module\");\n\n // ======================\n // Buffer / Timers\n // ======================\n \"node:buffer\": typeof import(\"node:buffer\");\n buffer: typeof import(\"node:buffer\");\n \"node:timers\": typeof import(\"node:timers\");\n timers: typeof import(\"node:timers\");\n \"node:timers/promises\": typeof import(\"node:timers/promises\");\n \"timers/promises\": typeof import(\"node:timers/promises\");\n\n // ======================\n // Streams\n // ======================\n \"node:stream\": typeof import(\"node:stream\");\n stream: typeof import(\"node:stream\");\n \"node:stream/promises\": typeof import(\"node:stream/promises\");\n \"stream/promises\": typeof import(\"node:stream/promises\");\n \"node:stream/consumers\": typeof import(\"node:stream/consumers\");\n \"stream/consumers\": typeof import(\"node:stream/consumers\");\n \"node:stream/web\": typeof import(\"node:stream/web\");\n \"stream/web\": typeof import(\"node:stream/web\");\n\n // ======================\n // Crypto / Net / TLS\n // ======================\n \"node:crypto\": typeof import(\"node:crypto\");\n crypto: typeof import(\"node:crypto\");\n \"node:net\": typeof import(\"node:net\");\n net: typeof import(\"node:net\");\n \"node:tls\": typeof import(\"node:tls\");\n tls: typeof import(\"node:tls\");\n\n // ======================\n // HTTP\n // ======================\n \"node:http\": typeof import(\"node:http\");\n http: typeof import(\"node:http\");\n \"node:https\": typeof import(\"node:https\");\n https: typeof import(\"node:https\");\n \"node:http2\": typeof import(\"node:http2\");\n http2: typeof import(\"node:http2\");\n\n // ======================\n // Child / Worker\n // ======================\n \"node:child_process\": typeof import(\"node:child_process\");\n child_process: typeof import(\"node:child_process\");\n \"node:worker_threads\": typeof import(\"node:worker_threads\");\n worker_threads: typeof import(\"node:worker_threads\");\n\n // ======================\n // Events / Util / Assert\n // ======================\n \"node:events\": typeof import(\"node:events\");\n events: typeof import(\"node:events\");\n \"node:util\": typeof import(\"node:util\");\n util: typeof import(\"node:util\");\n \"node:assert\": typeof import(\"node:assert\");\n assert: typeof import(\"node:assert\");\n \"node:assert/strict\": typeof import(\"node:assert/strict\");\n \"assert/strict\": typeof import(\"node:assert/strict\");\n\n // ======================\n // Diagnostics / Debug\n // ======================\n \"node:diagnostics_channel\": typeof import(\"node:diagnostics_channel\");\n diagnostics_channel: typeof import(\"node:diagnostics_channel\");\n \"node:inspector\": typeof import(\"node:inspector\");\n inspector: typeof import(\"node:inspector\");\n\n // ======================\n // Encoding\n // ======================\n \"node:string_decoder\": typeof import(\"node:string_decoder\");\n string_decoder: typeof import(\"node:string_decoder\");\n\n // ======================\n // Readline / REPL\n // ======================\n \"node:readline\": typeof import(\"node:readline\");\n readline: typeof import(\"node:readline\");\n \"node:readline/promises\": typeof import(\"node:readline/promises\");\n \"readline/promises\": typeof import(\"node:readline/promises\");\n \"node:repl\": typeof import(\"node:repl\");\n repl: typeof import(\"node:repl\");\n\n // ======================\n // DNS\n // ======================\n \"node:dns\": typeof import(\"node:dns\");\n dns: typeof import(\"node:dns\");\n \"node:dns/promises\": typeof import(\"node:dns/promises\");\n \"dns/promises\": typeof import(\"node:dns/promises\");\n\n // ======================\n // Zlib\n // ======================\n \"node:zlib\": typeof import(\"node:zlib\");\n zlib: typeof import(\"node:zlib\");\n\n // ======================\n // VM / V8\n // ======================\n \"node:vm\": typeof import(\"node:vm\");\n vm: typeof import(\"node:vm\");\n \"node:v8\": typeof import(\"node:v8\");\n v8: typeof import(\"node:v8\");\n\n // ======================\n // Performance / Trace\n // ======================\n \"node:perf_hooks\": typeof import(\"node:perf_hooks\");\n perf_hooks: typeof import(\"node:perf_hooks\");\n \"node:trace_events\": typeof import(\"node:trace_events\");\n trace_events: typeof import(\"node:trace_events\");\n\n // ======================\n // Async / Legacy\n // ======================\n \"node:async_hooks\": typeof import(\"node:async_hooks\");\n async_hooks: typeof import(\"node:async_hooks\");\n \"node:domain\": typeof import(\"node:domain\");\n domain: typeof import(\"node:domain\");\n\n // ======================\n // Constants\n // ======================\n \"node:constants\": typeof import(\"node:constants\");\n constants: typeof import(\"node:constants\");\n};\n\n/** ----------------------------------------------------------------\n * * ***Callable `require`-like interface (runtime-safe).***\n * ----------------------------------------------------------------\n *\n * Represents a **minimal, honest abstraction** of Node.js `require`\n * that is safe to reference in mixed runtimes (CJS, ESM, bundlers,\n * and non-Node environments).\n *\n * - ***This type intentionally:***\n * - Requires only the callable signature `(id: string) => any`.\n * - Treats all standard `require` properties (`resolve`, `cache`,\n * `main`, etc.) as **optional**.\n *\n * This avoids lying to the type system while still allowing\n * property access when a real Node.js `require` is available.\n *\n */\ntype RequireCallable = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (id: string): any;\n} & Partial<NodeJS.Require>;\n\n/** ------------------------------------------------------------------------\n * * Global object shape exposing a `require` function.\n * -------------------------------------------------------------------------\n *\n * Describes environments where a global `require` function may exist.\n *\n * This is commonly used for **runtime detection**, such as checking\n * whether `require` is available before attempting to use it.\n *\n * @example\n * ```ts\n * const g = globalThis as typeof globalThis & GlobalWithRequire;\n *\n * if (typeof g.require === \"function\") {\n * const fs = g.require(\"fs\");\n * }\n * ```\n */\ntype GlobalWithRequire = { require: RequireCallable };\n\n/** ----------------------------------------------------------------\n * * ***Runtime type guard for a global `require` function.***\n * ----------------------------------------------------------------\n *\n * Determines whether a given value exposes a **callable `require`\n * property** at runtime.\n *\n * This guard does **not assume a Node.js environment** and does not\n * rely on environment heuristics such as `process`, `Node`, or\n * `process.versions.node`.\n *\n * - ***Instead, it performs a **pure runtime structural check**:***\n * - The value must be an object.\n * - It must expose a `require` property.\n * - That property must be callable.\n *\n * - ***This makes the guard safe to use in:***\n * - Node.js (CommonJS).\n * - Node.js (ESM / loader contexts).\n * - Bundler execution environments.\n * - Browsers (where it will correctly return `false`).\n *\n * Implemented as a **user-defined type guard** to enable proper\n * TypeScript narrowing, allowing safe access to `value.require`\n * without repeated casting.\n *\n * @param value - Any value to test for a global `require` function.\n * @returns `true` if the value exposes a callable `require` property.\n *\n */\nexport const hasGlobalRequire = (value: unknown): value is GlobalWithRequire =>\n isObject(value) && isFunction(value.require);\n\n/** ----------------------------------------------------------------\n * * ***Safely resolve the global `require` function.***\n * ----------------------------------------------------------------\n *\n * Attempts to retrieve the global CommonJS `require` function\n * if and only if it is **actually available at runtime**.\n *\n * Unlike naive Node checks (e.g. `process.versions.node`),\n * this function avoids false positives in environments such as:\n * - Node.js ESM loaders.\n * - Build-time execution environments.\n * - Bundler config evaluation.\n *\n * If `require` is not present, this function returns `undefined`\n * instead of throwing.\n *\n * ----------------------------------------------------------------\n * - ***⚠️ Note:***\n * - This helper intentionally does not attempt to detect\n * loader-injected or sandboxed `require` bindings.\n * ----------------------------------------------------------------\n *\n * @returns The global `require` function if available; otherwise `undefined`.\n */\nexport const getRuntimeRequire = (): RequireCallable | undefined => {\n if (!hasGlobalRequire(globalThis)) return undefined;\n return globalThis.require;\n};\n\n/** ----------------------------------------------------------------\n * * ***Deferred runtime `require` accessor.***\n * ----------------------------------------------------------------\n *\n * Provides a **lazy, runtime-resolved accessor** for a `require`\n * function without creating a static reference.\n *\n * - ***Intended for:***\n * - Runtime-agnostic tooling.\n * - Build / bundler utilities.\n * - CLI infrastructure.\n * - ***Behavior:***\n * - Delegates to a real `require` function *only if one exists at runtime*.\n * - Avoids top-level `require` references that bundlers may rewrite.\n * - Remains callable even when `require` is absent.\n *\n * When `Proxy` is available, property access (e.g. `require.resolve`)\n * is dynamically forwarded to the real `require` once it becomes\n * available.\n *\n * If invoked in an environment that does not expose `require`,\n * the call fails with a descriptive runtime error.\n *\n * ⚠️ Typed overloads do not guarantee that the requested module\n * exists or can be resolved at runtime.\n *\n * Runtime errors may still occur depending on the execution environment.\n *\n * ⚠️ This is **not** a polyfill and does **not** emulate Node.js\n * CommonJS resolution. It merely defers access to an existing\n * `require` function when present.\n *\n * ⚠️ When accessed before a real `require` is available,\n * properties such as `resolve`, `cache`, or `main`\n * may be `undefined`.\n */\nexport const __runtimeRequire: {\n <K extends keyof NodeBuiltinModuleMap>(id: K): NodeBuiltinModuleMap[K];\n (id: string): unknown;\n} = ((x: RequireCallable) => {\n const r = getRuntimeRequire();\n\n if (r) return r;\n\n if (typeof Proxy !== \"undefined\") {\n return new Proxy(x, {\n get(target, prop: keyof RequireCallable) {\n const r2 = getRuntimeRequire();\n return r2 ? r2[prop] : target[prop];\n }\n });\n }\n\n return x;\n})(function (this: unknown, id: string) {\n const r = getRuntimeRequire();\n if (r) return r.call(this, id);\n\n throw new Error(\n `Calling \\`require\\` for \"${id}\" in an environment that doesn't expose the \\`require\\` function.`\n );\n});\n\n/** ----------------------------------------------------------------\n * * ***Lazily resolves Node.js `createRequire`.***\n * ----------------------------------------------------------------\n *\n * Lazily resolves Node.js {@link Module.createRequire | **`createRequire`**}\n * **at runtime** using a strategy that is safe across mixed execution\n * environments (CJS, ESM, bundlers, and tooling contexts).\n *\n * - ***This helper intentionally avoids:***\n * - Static ESM imports that may execute during build time.\n * - Direct top-level `require` access that bundlers can rewrite or hoist.\n *\n * - ***Resolution strategy:***\n * - If a global CommonJS `require` is available at runtime, the\n * `node:module` builtin is loaded through the deferred.\n * {@link __runtimeRequire | **`__runtimeRequire`**} accessor.\n * - Otherwise, falls back to a dynamic `import(\"node:module\")`,\n * which is safe in ESM-only or bundled environments.\n *\n * This function does **not** assume a Node.js environment at evaluation\n * time, but **does require Node.js at runtime**. It will throw if the\n * `node:module` builtin cannot be resolved by either strategy.\n *\n * - ***Intended for:***\n * - Tooling that operates across mixed CJS / ESM runtimes.\n * - Bundler or compiler internals.\n * - CLI configuration and plugin loaders.\n *\n * @returns\n * A reference to Node.js {@link Module.createRequire | **`createRequire`**}.\n *\n * @throws\n * Throws if the `node:module` builtin cannot be resolved at runtime.\n *\n * @example\n * ***ESM / bundler-safe usage:***\n * ```ts\n * const createRequire = await getCreateRequire();\n *\n * const require = createRequire(import.meta.url);\n *\n * const fs = require(\"fs\");\n * const path = require(\"path\");\n *\n * console.log(fs.existsSync(path.resolve(\"package.json\")));\n * ```\n *\n * @example\n * ***Loading CommonJS or JSON config from ESM:***\n * ```ts\n * const createRequire = await getCreateRequire();\n *\n * const require = createRequire(process.cwd() + \"/\");\n *\n * const config = require(\"./my.config.cjs\");\n * const pkg = require(\"./package.json\");\n * ```\n *\n * @example\n * ***CommonJS (Node.js – compatibility usage):***\n *\n * In pure CommonJS environments this helper is usually unnecessary.\n * This example demonstrates interoperability with the same runtime-safe API.\n *\n * ```js\n * (async () => {\n * const { getCreateRequire } = await import(\"./getCreateRequire.js\");\n *\n * const createRequire = await getCreateRequire();\n * const requireFromHere = createRequire(__filename);\n *\n * const pkg = requireFromHere(\"some-cjs-only-package\");\n * console.log(pkg);\n * })();\n * ```\n *\n * @example\n * ***UMD / IIFE (Node execution):***\n * ```js\n * const createRequire = await getCreateRequire();\n *\n * const requireFromHere =\n * typeof __filename !== \"undefined\"\n * ? createRequire(__filename)\n * : createRequire(import.meta.url);\n *\n * const pkg = requireFromHere(\"some-cjs-only-package\");\n * ```\n */\nexport async function getCreateRequire(): Promise<\n typeof import(\"node:module\").createRequire\n> {\n const r = getRuntimeRequire();\n if (r) {\n return __runtimeRequire(\"node:module\").createRequire;\n }\n\n // ESM-safe fallback (unrun / tsdown / bundlers)\n const mod = await import(\"node:module\");\n return mod.createRequire;\n}\n","import type { Colors } from \"picocolors/types\";\nimport pcr from \"picocolors\";\n\nimport {\n isArray,\n isBoolean,\n isMap,\n isNil,\n isNonEmptyString,\n isNumber,\n isObject,\n isPlainObject,\n isRegExp,\n isSet,\n isString\n} from \"@/_internal/utils/helper\";\nimport { __runtimeRequire, hasGlobalRequire } from \"./node-require\";\n\ntype Picocolors = Colors & {\n createColors: (enabled?: boolean) => Colors;\n};\n\n/** ----------------------------------------------------------------\n * * ***Re-export of the `picocolors` default export.***\n * ----------------------------------------------------------------\n * This utility provides a lightweight and dependency-free\n * terminal color formatting helper, identical to the\n * original `picocolors` package export.\n *\n * - **It is re-exported to:**\n * - Provide a stable internal import path.\n * - Avoid direct dependency imports in consumers.\n * - Ensure consistent color handling across the codebase.\n *\n * @see {@link https://github.com/alexeyraspopov/picocolors | **`picocolors repository`**.}\n */\nexport const picocolors: Picocolors = pcr;\n\n/** ----------------------------------------------------------------\n * * ***Normalized newline character.***\n * ----------------------------------------------------------------\n *\n * Represents a single line feed character (`\\n`), used as a\n * **consistent newline** across all platforms.\n *\n * This value is intentionally **not platform-specific** and does\n * not vary between operating systems (e.g. Windows CRLF vs POSIX LF).\n * It is suitable for generated files, formatters, and build tools\n * where deterministic output is required.\n *\n * The value is base64-encoded to avoid embedding a literal newline\n * in the bundled output during minification.\n *\n * @type {string}\n */\nexport const NEWLINE: string = atob(\"Cg==\");\n\n/** ----------------------------------------------------------------\n * * ***Platform-specific end-of-line character.***\n * ----------------------------------------------------------------\n *\n * Resolves to the operating system's default end-of-line sequence:\n * - `\\n` on POSIX systems (Linux, macOS)\n * - `\\r\\n` on Windows\n *\n * Used to ensure generated multiline strings are compatible\n * with the host environment.\n *\n * In non-Node environments, this value falls back to `\\n`.\n * The fallback is encoded to avoid embedding a literal newline\n * in the bundled output during minification.\n *\n * @type {string}\n */\nexport const EOL: string = hasGlobalRequire(globalThis)\n ? __runtimeRequire(\"node:os\").EOL\n : NEWLINE;\n\n/** -------------------------------------------------------\n * * ***Utility Function: `plural`.***\n * -------------------------------------------------------\n * **Returns the correct singular or plural form of a word\n * based on a numeric count.**\n *\n * This helper is commonly used when generating human-readable\n * CLI messages where a word must change depending on quantity.\n *\n * By default, the function pluralizes a word by appending `\"s\"`\n * when the `count` is not equal to `1`.\n *\n * For irregular plural forms, a custom `pluralWord` may be\n * provided explicitly.\n *\n * ⚠️ This utility performs **simple English pluralization only**.\n * It does **not** automatically handle irregular plural forms\n * such as `person ➔ people` or `child ➔ children` unless the\n * plural form is provided manually.\n *\n * - **Behavior:**\n * - If `count === 1` ➔ returns the singular `word`.\n * - Otherwise ➔ returns `pluralWord` if provided,\n * or `${word}s` by default.\n *\n * @param count - The numeric count used to determine pluralization.\n * @param word - The singular form of the word.\n * @param pluralWord - Optional explicit plural form.\n *\n * @returns The appropriate singular or plural word form.\n *\n * @example\n * ```ts\n * plural(1, \"file\");\n * // ➔ \"file\"\n *\n * plural(3, \"file\");\n * // ➔ \"files\"\n * ```\n *\n * @example\n * ```ts\n * plural(1, \"person\", \"people\");\n * // ➔ \"person\"\n *\n * plural(5, \"person\", \"people\");\n * // ➔ \"people\"\n * ```\n *\n * @example\n * ```ts\n * const count = 2;\n * console.log(`${count} ${plural(count, \"file\")} copied`);\n * // ➔ \"2 files copied\"\n * ```\n */\nexport function plural(\n count: number,\n word: string,\n pluralWord?: string\n): string {\n if (count === 1) return word;\n return pluralWord ?? `${word}s`;\n}\n\n/** ----------------------------------------------------------------\n * * ***Conditionally pads a value with leading and/or trailing spaces.***\n * ----------------------------------------------------------------\n *\n * Formats a value by optionally prepending and/or appending a single\n * space character (`\" \"`), depending on the provided options.\n *\n * Only **valid non-empty strings** are padded.\n * A value is considered **invalid** when it is:\n * - not a string.\n * - an empty string (`\"\"`).\n * - a string containing only whitespace.\n *\n * When the value is invalid, this utility can optionally return\n * a single space instead of an empty string.\n *\n * @param {unknown} value - The value to be padded.\n * @param {{ start?: boolean; end?: boolean; padOnInvalid?: boolean; }} options - Padding behavior configuration.\n * @param options.start - Prepend a single space before the value.\n * @param options.end - Append a single space after the value.\n * @param options.padOnInvalid - Return a single space when the value\n * is not a valid non-empty string.\n *\n * @returns A formatted string with optional leading and/or trailing\n * spaces, or a single space / empty string when the input is invalid.\n *\n * @example\n * ```ts\n * padText(\"hello\");\n * // ➔ \" hello \"\n * ```\n *\n * @example\n * ```ts\n * padText(\"hello\", { start: true, end: false });\n * // ➔ \" hello\"\n * ```\n *\n * @example\n * ```ts\n * padText(\"\", { padOnInvalid: true });\n * // ➔ \" \"\n * ```\n *\n * @example\n * ```ts\n * padText(null, { padOnInvalid: false });\n * // ➔ \"\"\n * ```\n */\nexport function padText(\n value: unknown,\n options: {\n /**\n * Whether to prepend a single space to the output.\n *\n * @default true\n */\n start?: boolean;\n\n /**\n * Whether to append a single space to the output.\n *\n * @default true\n */\n end?: boolean;\n\n /**\n * Return a single space when the input is not a valid non-empty string.\n *\n * This applies to non-string values, empty strings,\n * or strings containing only whitespace.\n *\n * @default true\n */\n padOnInvalid?: boolean;\n } = {}\n): string {\n const { start = true, end = true, padOnInvalid = true } = options;\n if (!isNonEmptyString(value)) return padOnInvalid ? \" \" : \"\";\n return `${start ? \" \" : \"\"}${value}${end ? \" \" : \"\"}`;\n}\n\n/** ----------------------------------------------------------------\n * * ***Joins text segments into a compact space-separated string.***\n * ----------------------------------------------------------------\n *\n * Joins multiple values into a single string separated by a\n * **single space character** (`\" \"`).\n *\n * This utility removes all non-renderable values before joining,\n * producing a compact inline string without unintended spacing.\n *\n * - *Filtering behavior:*\n * - `false`, `null`, and `undefined` are removed.\n * - Empty strings (`\"\"`) are also removed.\n *\n * This makes the output suitable for inline text composition\n * where line breaks and extra spacing are not desired.\n *\n * - *Useful for:*\n * - Inline CLI messages.\n * - Error summaries.\n * - Concatenating optional labels or fragments.\n * - Single-line log output.\n *\n * @param {Array<string | false | null | undefined>} text - A list of\n * strings or falsy values to be joined. Empty strings are excluded\n * to prevent extra spaces in the output.\n *\n * @returns {string} A single string with values joined by a\n * single space character.\n *\n * @example\n * ```ts\n * joinInline(\"Hello\", false, \"\", \"world\");\n * // ➔ \"Hello world\"\n * ```\n *\n * @example\n * ```ts\n * joinInline(\n * \"Error:\",\n * undefined,\n * \"Invalid\",\n * null,\n * \"input\"\n * );\n * // ➔ \"Error: Invalid input\"\n * ```\n */\nexport function joinInline(\n ...text: Array<string | false | null | undefined>\n): string {\n return text.filter(Boolean).join(\" \");\n}\n\n/** ----------------------------------------------------------------\n * * ***Joins text lines into a compact newline-separated string.***\n * ----------------------------------------------------------------\n *\n * Joins multiple values into a single string separated by the\n * platform-specific end-of-line character ({@link EOL | **`EOL`**}).\n *\n * This utility removes all non-renderable values before joining,\n * ensuring a compact output with no unintended blank lines.\n *\n * - *Filtering behavior:*\n * - `false`, `null`, and `undefined` are removed.\n * - Empty strings (`\"\"`) are also removed.\n *\n * This makes the output dense and suitable for cases where\n * vertical spacing should not be preserved.\n *\n * - *Useful for:*\n * - CLI error messages.\n * - Compact help or status output.\n * - Multi-line logs without spacing gaps.\n *\n * @param {Array<string | false | null | undefined>} text - A list of\n * strings or falsy values to be joined. Empty strings are excluded\n * to prevent blank lines in the output.\n *\n * @returns {string} A single string joined using the OS-specific\n * end-of-line character.\n *\n * @example\n * ```ts\n * joinLines(\"Line 1\", false, \"\", \"Line 2\");\n * // ➔ \"Line 1\\nLine 2\"\n * ```\n *\n * @example\n * ```ts\n * joinLines(\n * \"Header\",\n * undefined,\n * \"\",\n * \"Body\",\n * null,\n * \"Footer\"\n * );\n * // ➔ \"Header\\nBody\\nFooter\"\n * ```\n */\nexport function joinLines(\n ...text: Array<string | false | null | undefined>\n): string {\n return text.filter(Boolean).join(EOL);\n}\n\n/** ----------------------------------------------------------------\n * * ***Joins text lines while preserving explicit empty lines.***\n * ----------------------------------------------------------------\n *\n * Joins multiple values into a single string separated by the\n * platform-specific end-of-line character ({@link EOL | **`EOL`**}).\n *\n * Unlike {@link joinLines | **`joinLines`**}, this variant **preserves empty strings**\n * (`\"\"`) to intentionally create blank lines in the output.\n *\n * - *Filtering behavior:*\n * - `false`, `null`, and `undefined` are removed.\n * - Empty strings (`\"\"`) are kept as-is.\n *\n * This allows precise control over vertical spacing when composing\n * formatted text.\n *\n * - *Useful for:*\n * - CLI help output with paragraph separation.\n * - Multi-section descriptions.\n * - Human-readable documentation formatting.\n *\n * @param {Array<string | false | null | undefined>} text - A list of\n * strings or falsy values to be joined. Empty strings are preserved\n * to produce blank lines in the output.\n *\n * @returns {string} A single string joined using the OS-specific\n * end-of-line character.\n *\n * @example\n * ```ts\n * joinLinesLoose(\n * \"Line one\",\n * \"Line two\",\n * \"\",\n * \"New paragraph\"\n * );\n * // ➔ \"Line one\\nLine two\\n\\nNew paragraph\"\n * ```\n *\n * @example\n * ```ts\n * joinLinesLoose(\n * \"Header\",\n * null,\n * \"\",\n * \"Body\",\n * false,\n * null,\n * undefined\n * );\n * // ➔ \"Header\\n\\nBody\"\n * ```\n */\nexport function joinLinesLoose(\n ...text: Array<string | false | null | undefined>\n): string {\n return text\n .filter((v): v is string => v !== false && v !== null && v !== undefined)\n .join(EOL);\n}\n\ntype FormatOptionValueOptions = {\n /** @default false */\n pretty?: boolean;\n /** @default 2 */\n indent?: number;\n /** @default false */\n sortKeys?: boolean;\n /** @default false */\n sortArray?: boolean;\n};\n\n/** ----------------------------------------------------------------\n * * Formats a value into a compact, colorized CLI representation.\n * ----------------------------------------------------------------\n *\n * Recursively converts an arbitrary value into a human-readable,\n * ANSI-colored string intended strictly for terminal output.\n *\n * This formatter is designed for developer-facing CLI diagnostics\n * and must NOT be used for logging, serialization, persistence,\n * or programmatic comparison.\n *\n * - *Behavior:*\n * - Arrays are rendered inline: `[a, b, c]`.\n * - `Set` values are converted to arrays before rendering.\n * - `Map` values are converted to plain objects via `Object.fromEntries`.\n * - Plain objects are rendered inline: `{ key: value }`.\n * - `RegExp` values are colorized by delimiter, source, and flags.\n * - Strings are wrapped in double quotes.\n * - Numbers (including `NaN`) and booleans are highlighted.\n * - `null` and `undefined` are red-bright color.\n * - Other objects fall back to `Object.prototype.toString`.\n *\n * - *Characteristics:*\n * - Recursive.\n * - Compact (single-line).\n * - No pretty-print indentation.\n * - No key or array sorting.\n * - No JSON serialization.\n * - No circular reference handling.\n *\n * @param value - The value to format for CLI display.\n *\n * @returns A colorized string optimized for terminal readability.\n *\n * @example\n * formatOptionValue([\"a\", \"b\"]);\n * // ➔ [ \"a\", \"b\" ]\n *\n * @example\n * formatOptionValue({ foo: 1, bar: true });\n * // ➔ { foo: 1, bar: true }\n *\n * @example\n * formatOptionValue(new Set([\"dist/**\"]));\n * // ➔ [ \"dist/**\" ]\n *\n * @example\n * formatOptionValue(/abc/i);\n * // ➔ /abc/i (colorized segments)\n */\nexport function formatOptionValue(\n value: unknown,\n options?: FormatOptionValueOptions\n): string {\n const {\n pretty = false,\n indent = 2,\n sortKeys = false,\n sortArray = false\n } = options ?? {};\n\n const indentUnit = \" \".repeat(indent);\n\n function formatRecursive(input: unknown, depth = 0): string {\n const currentIndent = indentUnit.repeat(depth);\n const nextIndent = indentUnit.repeat(depth + 1);\n const joinInline = picocolors.dim(\", \");\n const joinPretty = `,${EOL}`;\n\n /* ------------------------------------------------------------ */\n /* Set ➔ Array */\n /* ------------------------------------------------------------ */\n if (isSet(input)) {\n return formatRecursive([...input], depth);\n }\n\n /* ------------------------------------------------------------ */\n /* Map ➔ Plain Object */\n /* ------------------------------------------------------------ */\n if (isMap(input)) {\n return formatRecursive(Object.fromEntries(input), depth);\n }\n\n /* ------------------------------------------------------------ */\n /* Array */\n /* ------------------------------------------------------------ */\n if (isArray(input)) {\n const arr = sortArray ? [...input].sort() : input;\n\n if (arr.length === 0) return picocolors.gray(\"[]\");\n\n if (!pretty) {\n const items = arr\n .map((v) => formatRecursive(v, depth))\n .join(joinInline);\n return picocolors.gray(\"[\") + items + picocolors.gray(\"]\");\n }\n\n const items = arr\n .map((v) => nextIndent + formatRecursive(v, depth + 1))\n .join(joinPretty);\n\n return (\n picocolors.gray(`[${EOL}`) +\n items +\n EOL +\n currentIndent +\n picocolors.gray(\"]\")\n );\n }\n\n /* ------------------------------------------------------------ */\n /* Plain Object */\n /* ------------------------------------------------------------ */\n if (isPlainObject(input)) {\n let entries = Object.entries(input);\n\n if (sortKeys) {\n entries = entries.sort(([a], [b]) => a.localeCompare(b));\n }\n\n if (entries.length === 0) return picocolors.gray(\"{}\");\n\n if (!pretty) {\n const props = entries\n .map(([key, val]) => {\n return (\n picocolors.dim(key) +\n picocolors.gray(\": \") +\n formatRecursive(val, depth)\n );\n })\n .join(joinInline);\n\n return picocolors.gray(\"{ \") + props + picocolors.gray(\" }\");\n }\n\n const props = entries\n .map(([key, val]) => {\n return (\n nextIndent +\n picocolors.dim(key) +\n picocolors.gray(\": \") +\n formatRecursive(val, depth + 1)\n );\n })\n .join(joinPretty);\n\n return (\n picocolors.gray(`{${EOL}`) +\n props +\n EOL +\n currentIndent +\n picocolors.gray(\"}\")\n );\n }\n\n /* ------------------------------------------------------------ */\n /* RegExp */\n /* ------------------------------------------------------------ */\n if (isRegExp(input)) {\n return (\n picocolors.greenBright(\"/\") +\n picocolors.redBright(input.source) +\n picocolors.greenBright(\"/\") +\n picocolors.magentaBright(input.flags)\n );\n }\n\n /* ------------------------------------------------------------ */\n /* Primitive */\n /* ------------------------------------------------------------ */\n if (isString(input)) {\n return picocolors.gray(`\"${input}\"`);\n }\n\n if (isNumber(input, { includeNaN: true })) {\n return picocolors.redBright(String(input));\n }\n\n if (isBoolean(input)) {\n return picocolors.redBright(String(input));\n }\n\n if (isNil(input)) {\n return picocolors.redBright(String(input));\n }\n\n if (isObject(input)) {\n return picocolors.cyanBright(Object.prototype.toString.call(input));\n }\n\n return picocolors.cyanBright(String(input));\n }\n\n return formatRecursive(value);\n}\n","import { deepFreeze, isNonEmptyString } from \"@/_internal/utils/helper\";\n\n/** ----------------------------------------------------------------\n * * ***Structured metadata for {@link ConfigurationError | `ConfigurationError`}.***\n * ----------------------------------------------------------------\n *\n * Describes machine-readable contextual information attached to a\n * {@link ConfigurationError | `ConfigurationError`} instance.\n *\n * - ***This structure is designed to:***\n * - Provide debugging insight without parsing the error message.\n * - Support structured logging and telemetry pipelines.\n * - Remain extensible while preserving strong autocomplete support.\n *\n * ----------------------------------------------------------------\n * #### Common Fields:\n * ----------------------------------------------------------------\n *\n * - `received` — The actual value that failed validation.\n * - `context` — Logical origin of the validation\n * (e.g. function or factory name).\n *\n * Additional custom metadata may be attached as needed.\n *\n * ----------------------------------------------------------------\n * @remarks\n * - All properties are optional.\n * - This type intentionally allows arbitrary additional keys.\n * - Intended for machine-readable data (not human-facing text).\n */\nexport interface ConfigurationErrorDetails {\n /** * ***The actual received value that caused the validation failure.*** */\n readonly received?: unknown;\n\n /** * ***Logical origin of the validation (e.g. function name).*** */\n readonly context?: string;\n\n /** * ***Additional arbitrary metadata.*** */\n readonly [key: string]: unknown;\n}\n\n/** ----------------------------------------------------------------\n * * ***Represents a developer configuration error.***\n * ----------------------------------------------------------------\n *\n * Thrown when invalid, inconsistent, or malformed configuration\n * is detected during application or library initialization.\n *\n * This error indicates a **programmer mistake** in how a component,\n * module, or library has been configured. It should **not** be used\n * for runtime user input validation.\n *\n * ----------------------------------------------------------------\n * #### When to use?\n * ----------------------------------------------------------------\n *\n * Use `ConfigurationError` for configuration-related issues such as:\n *\n * - Invalid initialization or factory options.\n * - Incorrect constructor arguments.\n * - Broken integration or adapter contracts.\n * - Misconfigured environment or setup parameters.\n * - Violations of expected configuration schemas.\n *\n * Do **not** use this error type for runtime user input validation\n * (such as request payloads, form data, or command arguments).\n * Those scenarios should use domain-specific validation errors instead.\n *\n * ----------------------------------------------------------------\n * #### Behavior\n * ----------------------------------------------------------------\n *\n * - Extends the native {@link Error | `Error`}.\n * - Sets `.name` to `\"ConfigurationError\"`.\n * - Preserves the original stack trace.\n * - Supports contextual metadata via `details`.\n * - Exposes a stable `code` identifier for programmatic handling.\n *\n * ----------------------------------------------------------------\n * #### Handling\n * ----------------------------------------------------------------\n *\n * Consumers may safely narrow using `instanceof`\n * or {@link ConfigurationError.is | `ConfigurationError.is`}\n * to access structured metadata.\n *\n * @example\n * ```ts\n * try {\n * initializeSetup(options);\n * } catch (err) {\n * if (err instanceof ConfigurationError) {\n * console.error(err.message);\n * console.error(\"Code:\", err.code);\n * console.error(\"Details:\", err.details);\n * }\n * }\n * ```\n *\n * @example\n * ```ts\n * throw ConfigurationError.invalid(\n * \"options.timeout\",\n * \"must be a positive number\",\n * { received: value },\n * \"createComponent\"\n * );\n * ```\n *\n * @example\n * ```ts\n * throw ConfigurationError.type(\n * \"config.adapter\",\n * \"function\",\n * value\n * );\n * ```\n *\n * ----------------------------------------------------------------\n * @remarks\n * - Represents a **programmer-level configuration mistake**.\n * - Typically indicates a **non-recoverable initialization failure**.\n * - Intended for validating configuration in libraries or frameworks.\n */\nexport class ConfigurationError extends Error {\n /** ----------------------------------------------------------------\n * * ***Stable base label for configuration error messages.***\n * ----------------------------------------------------------------\n *\n * Used as the standardized prefix when composing error messages.\n * Extracted to avoid string duplication and enable future\n * refactoring or localization.\n *\n * @private\n * @internal\n */\n private static readonly _LABEL = \"Invalid configuration\";\n\n /** ----------------------------------------------------------------\n * * ***Normalizes a reason fragment for error message composition.***\n * ----------------------------------------------------------------\n *\n * Ensures consistent formatting of message fragments used in\n * factory helpers such as {@link invalid | `ConfigurationError.invalid`}\n * and {@link type | `ConfigurationError.type`}.\n *\n * - Trims surrounding whitespace.\n * - Removes trailing period(s).\n * - Converts the first character to lowercase.\n *\n * This guarantees that reason fragments behave as natural\n * sentence continuations when appended after a field reference.\n *\n * @param reason - Raw reason fragment (may contain punctuation or capitalization).\n * @returns A normalized, lowercase, punctuation-free fragment.\n *\n * @private\n * @internal\n */\n private static _normalizeReason(reason: string): string {\n const trimmed = reason.trim().replace(/\\.*$/, \"\");\n\n if (trimmed.length === 0) {\n return trimmed;\n }\n\n return trimmed.charAt(0).toLowerCase() + trimmed.slice(1);\n }\n\n /** ----------------------------------------------------------------\n * * ***Composes a standardized configuration error message.***\n * ----------------------------------------------------------------\n *\n * Centralizes message construction logic for all factory helpers.\n *\n * - Applies context prefix when provided.\n * - Wraps field and context in inline-code formatting.\n * - Ensures the final message is normalized via {@link format | `format`}.\n *\n * This prevents duplication and guarantees consistent structure\n * across all configuration-related errors.\n *\n * @param field - Dot-notated configuration path.\n * @param body - Already-normalized message fragment.\n * @param context - Optional logical origin of the validation.\n *\n * @returns A fully formatted error message.\n *\n * @private\n * @internal\n */\n private static _compose(\n field: string,\n body: string,\n context?: string\n ): string {\n const prefix = context\n ? `${ConfigurationError._LABEL} in ${ConfigurationError.wrapCode(context)}:`\n : `${ConfigurationError._LABEL}:`;\n\n return ConfigurationError.format(\n `${prefix} ${ConfigurationError.wrapCode(field)} ${body}`\n );\n }\n\n /** ----------------------------------------------------------------\n * * ***Creates a new `ConfigurationError` instance.***\n * ----------------------------------------------------------------\n *\n * @param message - Fully formatted error message.\n * @param details - Optional structured metadata describing the error.\n *\n * @remarks\n * - The message is expected to be finalized (including punctuation).\n * - Restores the prototype chain for ES5 targets.\n * - Captures a clean stack trace in Node.js environments.\n */\n public constructor(\n message: string,\n details?: Readonly<ConfigurationErrorDetails>\n ) {\n super(message);\n\n this.name = ConfigurationError.NAME;\n this.code = ConfigurationError.CODE;\n\n // Deep-ish metadata immutability guard\n this.details = details ? deepFreeze({ ...details }) : undefined;\n\n // Fix prototype chain (important for TS + ES5 targets)\n Object.setPrototypeOf(this, new.target.prototype);\n\n // Capture clean stack (Node.js environments)\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, ConfigurationError);\n }\n\n // Freeze instance to prevent runtime mutation\n if (Object.getPrototypeOf(this) === ConfigurationError.prototype) {\n Object.freeze(this);\n }\n }\n\n /** ----------------------------------------------------------------\n * * ***Stable runtime name for this error type.***\n * ----------------------------------------------------------------\n *\n * - ***Mirrors the class identifier and is used to:***\n * - Set the `.name` property consistently.\n * - Provide cross-runtime identification.\n * - Avoid hardcoded string duplication.\n *\n * This value should remain stable across versions.\n */\n public static readonly NAME = \"ConfigurationError\" as const;\n\n /** ----------------------------------------------------------------\n * * ***Stable error identifier for `ConfigurationError`.***\n * ----------------------------------------------------------------\n *\n * Can be used for:\n * - Programmatic error discrimination.\n * - Cross-bundle or cross-runtime error detection.\n * - Structured logging and telemetry systems.\n *\n * This identifier is guaranteed to remain stable across versions.\n */\n public static readonly CODE = \"CONFIGURATION_ERROR\" as const;\n\n /** ----------------------------------------------------------------\n * * ***Stable error code associated with this instance.***\n * ----------------------------------------------------------------\n *\n * Mirrors {@link CODE | `ConfigurationError.CODE`}.\n *\n * Useful when `instanceof` checks are not reliable\n * across different runtime contexts.\n */\n public readonly code: \"CONFIGURATION_ERROR\" = ConfigurationError.CODE;\n\n /** ----------------------------------------------------------------\n * * ***Optional structured metadata associated with this error.***\n * ----------------------------------------------------------------\n *\n * Provides additional contextual information useful for:\n *\n * - Debugging.\n * - Structured logging.\n * - Programmatic error handling.\n *\n * The structure of this object is defined by\n * {@link ConfigurationErrorDetails| `ConfigurationErrorDetails`}.\n *\n * ----------------------------------------------------------------\n * #### Common Usage\n * ----------------------------------------------------------------\n *\n * @example\n * ```ts\n * try {\n * throw ConfigurationError.type(\n * \"options.myFunction\",\n * \"myFunction\",\n * value\n * );\n * } catch (err) {\n * if (err instanceof ConfigurationError) {\n * console.log(err.details?.received);\n * console.log(err.details?.context);\n * }\n * }\n * ```\n * ----------------------------------------------------------------\n * @remarks\n * - Intended for machine-readable data.\n * - Immutable (`readonly`) to prevent accidental mutation.\n * - May contain additional custom metadata fields.\n */\n public readonly details?: Readonly<ConfigurationErrorDetails>;\n\n /** ----------------------------------------------------------------\n * * ***Normalizes an error message to ensure a single trailing period.***\n * ----------------------------------------------------------------\n *\n * - Trims surrounding whitespace.\n * - Removes any existing trailing period(s).\n * - Appends exactly one `.` at the end.\n *\n * This guarantees consistent punctuation regardless of how\n * the message fragments are constructed.\n *\n * ----------------------------------------------------------------\n * @example\n * ```ts\n * ConfigurationError.format(\"Invalid value\")\n * // ➔ \"Invalid value.\"\n * ```\n *\n * @example\n * ```ts\n * ConfigurationError.format(\"Invalid value.\")\n * // ➔ \"Invalid value.\"\n * ```\n *\n * @example\n * ```ts\n * ConfigurationError.format(\" Invalid value... \")\n * // ➔ \"Invalid value.\"\n * ```\n * ----------------------------------------------------------------\n */\n static format(message: string): string {\n if (typeof message !== \"string\" || message.trim().length === 0) {\n throw new TypeError(\n `${this._LABEL}: ${ConfigurationError.NAME}.format(message) expects a non-empty string.`\n );\n }\n\n const trimmed = message.trim().replace(/\\.*$/, \"\");\n return trimmed + \".\";\n }\n\n /** ----------------------------------------------------------------\n * * ***Safely wraps a string in a single pair of backticks.***\n * ----------------------------------------------------------------\n *\n * Ensures consistent inline-code formatting while preventing\n * duplicated or nested backticks.\n *\n * - Removes any existing backticks from the input.\n * - Trims surrounding whitespace.\n * - Wraps the cleaned value in exactly one pair of backticks.\n *\n * This prevents malformed output such as:\n *\n * ```text\n * ``validateConfig``\n * ```\n *\n * ----------------------------------------------------------------\n * @param value - Raw string to be formatted as inline code.\n * @returns The sanitized value wrapped in a single pair of backticks.\n *\n * ----------------------------------------------------------------\n * @example\n * ```ts\n * ConfigurationError.wrapCode(\"fieldName\")\n * // ➔ \"`fieldName`\"\n * ```\n *\n * @example\n * ```ts\n * ConfigurationError.wrapCode(\"`fieldName`\")\n * // ➔ \"`fieldName`\"\n * ```\n *\n * @example\n * ```ts\n * ConfigurationError.wrapCode(\" ``fieldName`` \")\n * // ➔ \"`fieldName`\"\n * ```\n * ----------------------------------------------------------------\n */\n static wrapCode(value: string): string {\n if (!isNonEmptyString(value)) {\n throw new TypeError(\n `${this._LABEL}: ${ConfigurationError.NAME}.wrapCode(value) expects a non-empty string.`\n );\n }\n\n const cleaned = value.replace(/`+/g, \"\").trim();\n return `\\`${cleaned}\\``;\n }\n\n /** ----------------------------------------------------------------\n * * ***Type guard for `ConfigurationError`.***\n * ----------------------------------------------------------------\n *\n * Provides a robust alternative to `instanceof`,\n * especially across bundle boundaries or mixed module systems.\n *\n * @param value - Unknown value to test.\n * @returns `true` if the value is a {@link ConfigurationError | `ConfigurationError`}.\n *\n * @example\n * if (ConfigurationError.is(err)) {\n * console.error(err.code);\n * }\n */\n static is(value: unknown): value is ConfigurationError {\n if (typeof value !== \"object\" || value === null) {\n return false;\n }\n\n if (!(\"code\" in value) || !(\"name\" in value)) {\n return false;\n }\n\n const { code, name } = value as {\n code?: unknown;\n name?: unknown;\n };\n\n return code === ConfigurationError.CODE && name === ConfigurationError.NAME;\n }\n\n /** ----------------------------------------------------------------\n * * ***Serializes the error into a structured JSON representation.***\n * ----------------------------------------------------------------\n *\n * Provides a stable, machine-readable representation of the error,\n * suitable for:\n *\n * - Structured logging.\n * - Transport across process boundaries.\n * - Diagnostics.\n * - JSON.stringify().\n *\n * Unlike the native `Error` object, this method ensures that:\n *\n * - `name`, `message`, and `code` are always included.\n * - `details` is preserved (if provided).\n * - `stack` is included only when available.\n *\n * This guarantees predictable output when serializing errors.\n *\n * ----------------------------------------------------------------\n * @returns A plain JSON-safe object describing the error.\n *\n * ----------------------------------------------------------------\n * @example\n * ```ts\n * const err = ConfigurationError.invalid(\n * \"options.title\",\n * \"must be a non-empty string\",\n * { received: \"\" }\n * );\n *\n * console.log(JSON.stringify(err, null, 2));\n * ```\n *\n * Possible output:\n *\n * ```json\n * {\n * \"name\": \"ConfigurationError\",\n * \"message\": \"Invalid configuration: `options.title` must be a non-empty string.\",\n * \"code\": \"CONFIGURATION_ERROR\",\n * \"details\": { \"received\": \"\" },\n * \"stack\": \"ConfigurationError: ...\"\n * }\n * ```\n * ----------------------------------------------------------------\n */\n toJSON(): {\n /** ----------------------------------------------------------------\n * * ***Runtime identifier of the error instance.***\n * ----------------------------------------------------------------\n *\n * Mirrors {@link ConfigurationError.NAME | `ConfigurationError.NAME`}.\n *\n * - ***Intended for:***\n * - Programmatic error discrimination.\n * - Logging and diagnostic pipelines.\n * - Cross-runtime error identification.\n *\n * This property is useful when `instanceof` checks are unreliable\n * across module boundaries or bundled execution contexts.\n */\n name: string;\n\n /** ----------------------------------------------------------------\n * * ***Fully formatted error message.***\n * ----------------------------------------------------------------\n *\n * The message is guaranteed to be normalized by internal factory helpers.\n *\n * - ***Guarantees:***\n * - Consistent punctuation rules.\n * - Safe inline-code formatting.\n * - Stable human-readable output.\n *\n * The message is expected to represent a finalized diagnostic string\n * suitable for display, logging, or transport.\n */\n message: string;\n\n /** ----------------------------------------------------------------\n * * ***Stable machine-readable error code.***\n * ----------------------------------------------------------------\n *\n * Mirrors {@link ConfigurationError.CODE | `ConfigurationError.CODE`}.\n *\n * - ***Intended for:***\n * - Cross-runtime error identification.\n * - Structured logging systems.\n * - Type-safe error discrimination without relying on `instanceof`.\n *\n * This identifier is guaranteed to remain stable across versions.\n */\n code: typeof ConfigurationError.CODE;\n\n /** ----------------------------------------------------------------\n * * ***Optional structured debugging metadata attached to the error.***\n * ----------------------------------------------------------------\n *\n * #### Contains machine-readable contextual information such as:\n * - Validation input values that caused the error.\n * - Logical origin or execution context.\n * - Custom diagnostic extensions.\n *\n * #### This field is designed for:\n * - Developer debugging.\n * - Telemetry collection.\n * - Internal system analysis.\n *\n * The structure is defined by\n * {@link ConfigurationErrorDetails | `ConfigurationErrorDetails`}.\n */\n details?: Readonly<ConfigurationErrorDetails>;\n\n /** ----------------------------------------------------------------\n * * ***Optional stack trace captured at the error creation site.***\n * ----------------------------------------------------------------\n *\n * May be undefined in environments where stack capture is unavailable.\n *\n * Stack traces are preserved primarily for debugging and\n * post-mortem diagnostics.\n */\n stack?: string;\n } {\n return {\n name: this.name,\n message: this.message,\n code: this.code,\n details: this.details,\n stack: this.stack\n };\n }\n\n /** ----------------------------------------------------------------\n * * ***Factory helper for generic configuration validation errors.***\n * ----------------------------------------------------------------\n *\n * Produces a standardized error when a configuration field\n * fails validation.\n *\n * @param field - Dot-notated configuration path (e.g. `\"ui.usage\"`).\n * @param reason - Short descriptive phrase explaining the issue\n * (without trailing period).\n * @param details - Optional structured metadata for debugging.\n * @param context - Optional logical origin of the validation\n * (e.g. `\"validateConfig\"`), when provided,\n * it is included in {@link details | `details`}\n * under the `context` key and reflected in the error message.\n *\n * @returns A `ConfigurationError` instance with a normalized message.\n *\n * @example\n * ConfigurationError.invalid(\n * \"ui.usage\",\n * \"must be a non-empty string\",\n * { received: usage },\n * \"validateConfig\"\n * );\n *\n * // ➔ Invalid configuration in `validateConfig`:\n * // `ui.usage` must be a non-empty string.\n */\n static invalid(\n field: string,\n reason: string,\n details?: Record<string, unknown>,\n context?: string\n ): ConfigurationError {\n const body = ConfigurationError._normalizeReason(reason);\n\n return new ConfigurationError(\n ConfigurationError._compose(field, body, context),\n {\n ...details,\n ...(context ? { context } : {})\n }\n );\n }\n\n /** ----------------------------------------------------------------\n * * ***Factory helper for configuration type mismatch errors.***\n * ----------------------------------------------------------------\n *\n * Produces a standardized error when a configuration field\n * does not match the expected type or structural contract.\n *\n * @param field - Dot-notated configuration path.\n * @param expected - Short description of the expected type or shape\n * (without trailing period).\n * @param received - The actual received value.\n * @param context - Optional logical origin of the validation\n * (e.g. `\"myFunction\"`), when provided,\n * it is included in {@link details | `details`}\n * under the `context` key and reflected in the error message.\n *\n * @returns A `ConfigurationError` instance including the received value.\n *\n * @example\n * ConfigurationError.type(\n * \"options.myMainFunction\",\n * \"MyMainFunction\",\n * value,\n * \"myFunction\"\n * );\n *\n * // ➔ Invalid configuration in `myFunction`:\n * // `options.myMainFunction` must be MyMainFunction.\n */\n static type(\n field: string,\n expected: string,\n received: unknown,\n context?: string\n ): ConfigurationError {\n const body = `must be ${expected}`;\n\n return new ConfigurationError(\n ConfigurationError._compose(field, body, context),\n {\n received,\n ...(context ? { context } : {})\n }\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8PA,MAAa,oBAAoB,UAC/BA,wBAAS,MAAM,IAAIC,0BAAW,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;AA0B9C,MAAa,0BAAuD;AAClE,KAAI,CAAC,iBAAiB,WAAW,CAAE,QAAO;AAC1C,QAAO,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCpB,MAAa,qBAGP,MAAuB;CAC3B,MAAM,IAAI,mBAAmB;AAE7B,KAAI,EAAG,QAAO;AAEd,KAAI,OAAO,UAAU,YACnB,QAAO,IAAI,MAAM,GAAG,EAClB,IAAI,QAAQ,MAA6B;EACvC,MAAM,KAAK,mBAAmB;AAC9B,SAAO,KAAK,GAAG,QAAQ,OAAO;IAEjC,CAAC;AAGJ,QAAO;GACN,SAAyB,IAAY;CACtC,MAAM,IAAI,mBAA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,CAAC,QAAQ,QAAQ,GAAG,GACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CnB,OAAO,SAAS,OAAuB;AACrC,MAAI,CAACC,gCAAiB,MAAM,CAC1B,OAAM,IAAI,UACR,GAAG,KAAK,OAAO,IAAI,mBAAmB,KAAK,8CAC5C;AAIH,SAAO,KADS,MAAM,QAAQ,OAAO,GAAG,CAAC,MAAM,CAC3B;;;;;;;;;;;;;;;;;CAkBtB,OAAO,GAAG,OAA6C;AACrD,MAAI,OAAO,UAAU,YAAY,UAAU,KACzC,QAAO;AAGT,MAAI,EAAE,UAAU,UAAU,EAAE,UAAU,OACpC,QAAO;EAGT,MAAM,EAAE,MAAM,SAAS;AAKvB,SAAO,SAAS,mBAAmB,QAAQ,SAAS,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDzE,SA6EE;AACA,SAAO;GACL,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,KAAK;GACX,SAAS,KAAK;GACd,OAAO,KAAK;GACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCH,OAAO,QACL,OACA,QACA,SACA,SACoB;EACpB,MAAM,OAAO,mBAAmB,iBAAiB,OAAO;AAExD,SAAO,IAAI,mBACT,mBAAmB,SAAS,OAAO,MAAM,QAAQ,EACjD;GACE,GAAG;GACH,GAAI,UAAU,EAAE,SAAS,GAAG,EAAE;GAC/B,CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCH,OAAO,KACL,OACA,UACA,UACA,SACoB;EACpB,MAAM,OAAO,WAAW;AAExB,SAAO,IAAI,mBACT,mBAAmB,SAAS,OAAO,MAAM,QAAQ,EACjD;GACE;GACA,GAAI,UAAU,EAAE,SAAS,GAAG,EAAE;GAC/B,CACF"}
1
+ {"version":3,"file":"client-C3jHSAqV.cjs","names":["isObject","isFunction","picocolors","pcr","isNonEmptyString","isSet","isMap","isArray","isPlainObject","isRegExp","isString","isNumber","isBoolean","isNil","isObject","deepFreeze","isNonEmptyString"],"sources":["../src/utils/helper/node-require.ts","../src/utils/helper/formatter.ts","../src/utils/errors/configuration-error.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport type { Module } from \"node:module\";\nimport { isFunction, isObject } from \"@/_internal/utils/helper\";\n\n/** ----------------------------------------------------------------\n * * ***Typed mapping of commonly-used Node.js builtin module identifiers\n * (including `node:`-prefixed and legacy aliases).***\n * ----------------------------------------------------------------\n *\n * This is a **best-effort typing helper**, not a canonical or version-\n * exhaustive list of all Node.js builtins.\n *\n * - ***⚠️ Note:***\n * - This map provides **type-level hints only**.\n * - Presence in this map does **not guarantee runtime availability**.\n * - Availability of entries depends on the installed TypeScript version and `@types/node`.\n *\n * Consumers must ensure a Node.js runtime before calling `require`\n * with these identifiers.\n */\nexport type NodeBuiltinModuleMap = {\n // ======================\n // Filesystem\n // ======================\n \"node:fs\": typeof import(\"node:fs\");\n fs: typeof import(\"node:fs\");\n \"node:fs/promises\": typeof import(\"node:fs/promises\");\n \"fs/promises\": typeof import(\"node:fs/promises\");\n\n // ======================\n // Path / URL\n // ======================\n \"node:path\": typeof import(\"node:path\");\n path: typeof import(\"node:path\");\n \"node:url\": typeof import(\"node:url\");\n url: typeof import(\"node:url\");\n\n // ======================\n // OS / Process\n // ======================\n \"node:os\": typeof import(\"node:os\");\n os: typeof import(\"node:os\");\n \"node:process\": typeof import(\"node:process\");\n process: typeof import(\"node:process\");\n\n // ======================\n // Module system\n // ======================\n \"node:module\": typeof import(\"node:module\");\n module: typeof import(\"node:module\");\n\n // ======================\n // Buffer / Timers\n // ======================\n \"node:buffer\": typeof import(\"node:buffer\");\n buffer: typeof import(\"node:buffer\");\n \"node:timers\": typeof import(\"node:timers\");\n timers: typeof import(\"node:timers\");\n \"node:timers/promises\": typeof import(\"node:timers/promises\");\n \"timers/promises\": typeof import(\"node:timers/promises\");\n\n // ======================\n // Streams\n // ======================\n \"node:stream\": typeof import(\"node:stream\");\n stream: typeof import(\"node:stream\");\n \"node:stream/promises\": typeof import(\"node:stream/promises\");\n \"stream/promises\": typeof import(\"node:stream/promises\");\n \"node:stream/consumers\": typeof import(\"node:stream/consumers\");\n \"stream/consumers\": typeof import(\"node:stream/consumers\");\n \"node:stream/web\": typeof import(\"node:stream/web\");\n \"stream/web\": typeof import(\"node:stream/web\");\n\n // ======================\n // Crypto / Net / TLS\n // ======================\n \"node:crypto\": typeof import(\"node:crypto\");\n crypto: typeof import(\"node:crypto\");\n \"node:net\": typeof import(\"node:net\");\n net: typeof import(\"node:net\");\n \"node:tls\": typeof import(\"node:tls\");\n tls: typeof import(\"node:tls\");\n\n // ======================\n // HTTP\n // ======================\n \"node:http\": typeof import(\"node:http\");\n http: typeof import(\"node:http\");\n \"node:https\": typeof import(\"node:https\");\n https: typeof import(\"node:https\");\n \"node:http2\": typeof import(\"node:http2\");\n http2: typeof import(\"node:http2\");\n\n // ======================\n // Child / Worker\n // ======================\n \"node:child_process\": typeof import(\"node:child_process\");\n child_process: typeof import(\"node:child_process\");\n \"node:worker_threads\": typeof import(\"node:worker_threads\");\n worker_threads: typeof import(\"node:worker_threads\");\n\n // ======================\n // Events / Util / Assert\n // ======================\n \"node:events\": typeof import(\"node:events\");\n events: typeof import(\"node:events\");\n \"node:util\": typeof import(\"node:util\");\n util: typeof import(\"node:util\");\n \"node:assert\": typeof import(\"node:assert\");\n assert: typeof import(\"node:assert\");\n \"node:assert/strict\": typeof import(\"node:assert/strict\");\n \"assert/strict\": typeof import(\"node:assert/strict\");\n\n // ======================\n // Diagnostics / Debug\n // ======================\n \"node:diagnostics_channel\": typeof import(\"node:diagnostics_channel\");\n diagnostics_channel: typeof import(\"node:diagnostics_channel\");\n \"node:inspector\": typeof import(\"node:inspector\");\n inspector: typeof import(\"node:inspector\");\n\n // ======================\n // Encoding\n // ======================\n \"node:string_decoder\": typeof import(\"node:string_decoder\");\n string_decoder: typeof import(\"node:string_decoder\");\n\n // ======================\n // Readline / REPL\n // ======================\n \"node:readline\": typeof import(\"node:readline\");\n readline: typeof import(\"node:readline\");\n \"node:readline/promises\": typeof import(\"node:readline/promises\");\n \"readline/promises\": typeof import(\"node:readline/promises\");\n \"node:repl\": typeof import(\"node:repl\");\n repl: typeof import(\"node:repl\");\n\n // ======================\n // DNS\n // ======================\n \"node:dns\": typeof import(\"node:dns\");\n dns: typeof import(\"node:dns\");\n \"node:dns/promises\": typeof import(\"node:dns/promises\");\n \"dns/promises\": typeof import(\"node:dns/promises\");\n\n // ======================\n // Zlib\n // ======================\n \"node:zlib\": typeof import(\"node:zlib\");\n zlib: typeof import(\"node:zlib\");\n\n // ======================\n // VM / V8\n // ======================\n \"node:vm\": typeof import(\"node:vm\");\n vm: typeof import(\"node:vm\");\n \"node:v8\": typeof import(\"node:v8\");\n v8: typeof import(\"node:v8\");\n\n // ======================\n // Performance / Trace\n // ======================\n \"node:perf_hooks\": typeof import(\"node:perf_hooks\");\n perf_hooks: typeof import(\"node:perf_hooks\");\n \"node:trace_events\": typeof import(\"node:trace_events\");\n trace_events: typeof import(\"node:trace_events\");\n\n // ======================\n // Async / Legacy\n // ======================\n \"node:async_hooks\": typeof import(\"node:async_hooks\");\n async_hooks: typeof import(\"node:async_hooks\");\n \"node:domain\": typeof import(\"node:domain\");\n domain: typeof import(\"node:domain\");\n\n // ======================\n // Constants\n // ======================\n \"node:constants\": typeof import(\"node:constants\");\n constants: typeof import(\"node:constants\");\n};\n\n/** ----------------------------------------------------------------\n * * ***Callable `require`-like interface (runtime-safe).***\n * ----------------------------------------------------------------\n *\n * Represents a **minimal, honest abstraction** of Node.js `require`\n * that is safe to reference in mixed runtimes (CJS, ESM, bundlers,\n * and non-Node environments).\n *\n * - ***This type intentionally:***\n * - Requires only the callable signature `(id: string) => any`.\n * - Treats all standard `require` properties (`resolve`, `cache`,\n * `main`, etc.) as **optional**.\n *\n * This avoids lying to the type system while still allowing\n * property access when a real Node.js `require` is available.\n *\n */\ntype RequireCallable = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (id: string): any;\n} & Partial<NodeJS.Require>;\n\n/** ------------------------------------------------------------------------\n * * Global object shape exposing a `require` function.\n * -------------------------------------------------------------------------\n *\n * Describes environments where a global `require` function may exist.\n *\n * This is commonly used for **runtime detection**, such as checking\n * whether `require` is available before attempting to use it.\n *\n * @example\n * ```ts\n * const g = globalThis as typeof globalThis & GlobalWithRequire;\n *\n * if (typeof g.require === \"function\") {\n * const fs = g.require(\"fs\");\n * }\n * ```\n */\ntype GlobalWithRequire = { require: RequireCallable };\n\n/** ----------------------------------------------------------------\n * * ***Runtime type guard for a global `require` function.***\n * ----------------------------------------------------------------\n *\n * Determines whether a given value exposes a **callable `require`\n * property** at runtime.\n *\n * This guard does **not assume a Node.js environment** and does not\n * rely on environment heuristics such as `process`, `Node`, or\n * `process.versions.node`.\n *\n * - ***Instead, it performs a **pure runtime structural check**:***\n * - The value must be an object.\n * - It must expose a `require` property.\n * - That property must be callable.\n *\n * - ***This makes the guard safe to use in:***\n * - Node.js (CommonJS).\n * - Node.js (ESM / loader contexts).\n * - Bundler execution environments.\n * - Browsers (where it will correctly return `false`).\n *\n * Implemented as a **user-defined type guard** to enable proper\n * TypeScript narrowing, allowing safe access to `value.require`\n * without repeated casting.\n *\n * @param value - Any value to test for a global `require` function.\n * @returns `true` if the value exposes a callable `require` property.\n *\n */\nexport const hasGlobalRequire = (value: unknown): value is GlobalWithRequire =>\n isObject(value) && isFunction(value.require);\n\n/** ----------------------------------------------------------------\n * * ***Safely resolve the global `require` function.***\n * ----------------------------------------------------------------\n *\n * Attempts to retrieve the global CommonJS `require` function\n * if and only if it is **actually available at runtime**.\n *\n * Unlike naive Node checks (e.g. `process.versions.node`),\n * this function avoids false positives in environments such as:\n * - Node.js ESM loaders.\n * - Build-time execution environments.\n * - Bundler config evaluation.\n *\n * If `require` is not present, this function returns `undefined`\n * instead of throwing.\n *\n * ----------------------------------------------------------------\n * - ***⚠️ Note:***\n * - This helper intentionally does not attempt to detect\n * loader-injected or sandboxed `require` bindings.\n * ----------------------------------------------------------------\n *\n * @returns The global `require` function if available; otherwise `undefined`.\n */\nexport const getRuntimeRequire = (): RequireCallable | undefined => {\n if (!hasGlobalRequire(globalThis)) return undefined;\n return globalThis.require;\n};\n\n/** ----------------------------------------------------------------\n * * ***Deferred runtime `require` accessor.***\n * ----------------------------------------------------------------\n *\n * Provides a **lazy, runtime-resolved accessor** for a `require`\n * function without creating a static reference.\n *\n * - ***Intended for:***\n * - Runtime-agnostic tooling.\n * - Build / bundler utilities.\n * - CLI infrastructure.\n * - ***Behavior:***\n * - Delegates to a real `require` function *only if one exists at runtime*.\n * - Avoids top-level `require` references that bundlers may rewrite.\n * - Remains callable even when `require` is absent.\n *\n * When `Proxy` is available, property access (e.g. `require.resolve`)\n * is dynamically forwarded to the real `require` once it becomes\n * available.\n *\n * If invoked in an environment that does not expose `require`,\n * the call fails with a descriptive runtime error.\n *\n * ⚠️ Typed overloads do not guarantee that the requested module\n * exists or can be resolved at runtime.\n *\n * Runtime errors may still occur depending on the execution environment.\n *\n * ⚠️ This is **not** a polyfill and does **not** emulate Node.js\n * CommonJS resolution. It merely defers access to an existing\n * `require` function when present.\n *\n * ⚠️ When accessed before a real `require` is available,\n * properties such as `resolve`, `cache`, or `main`\n * may be `undefined`.\n */\nexport const __runtimeRequire: {\n <K extends keyof NodeBuiltinModuleMap>(id: K): NodeBuiltinModuleMap[K];\n (id: string): unknown;\n} = ((x: RequireCallable) => {\n const r = getRuntimeRequire();\n\n if (r) return r;\n\n if (typeof Proxy !== \"undefined\") {\n return new Proxy(x, {\n get(target, prop: keyof RequireCallable) {\n const r2 = getRuntimeRequire();\n return r2 ? r2[prop] : target[prop];\n }\n });\n }\n\n return x;\n})(function (this: unknown, id: string) {\n const r = getRuntimeRequire();\n if (r) return r.call(this, id);\n\n throw new Error(\n `Calling \\`require\\` for \"${id}\" in an environment that doesn't expose the \\`require\\` function.`\n );\n});\n\n/** ----------------------------------------------------------------\n * * ***Lazily resolves Node.js `createRequire`.***\n * ----------------------------------------------------------------\n *\n * Lazily resolves Node.js {@link Module.createRequire | **`createRequire`**}\n * **at runtime** using a strategy that is safe across mixed execution\n * environments (CJS, ESM, bundlers, and tooling contexts).\n *\n * - ***This helper intentionally avoids:***\n * - Static ESM imports that may execute during build time.\n * - Direct top-level `require` access that bundlers can rewrite or hoist.\n *\n * - ***Resolution strategy:***\n * - If a global CommonJS `require` is available at runtime, the\n * `node:module` builtin is loaded through the deferred.\n * {@link __runtimeRequire | **`__runtimeRequire`**} accessor.\n * - Otherwise, falls back to a dynamic `import(\"node:module\")`,\n * which is safe in ESM-only or bundled environments.\n *\n * This function does **not** assume a Node.js environment at evaluation\n * time, but **does require Node.js at runtime**. It will throw if the\n * `node:module` builtin cannot be resolved by either strategy.\n *\n * - ***Intended for:***\n * - Tooling that operates across mixed CJS / ESM runtimes.\n * - Bundler or compiler internals.\n * - CLI configuration and plugin loaders.\n *\n * @returns\n * A reference to Node.js {@link Module.createRequire | **`createRequire`**}.\n *\n * @throws\n * Throws if the `node:module` builtin cannot be resolved at runtime.\n *\n * @example\n * ***ESM / bundler-safe usage:***\n * ```ts\n * const createRequire = await getCreateRequire();\n *\n * const require = createRequire(import.meta.url);\n *\n * const fs = require(\"fs\");\n * const path = require(\"path\");\n *\n * console.log(fs.existsSync(path.resolve(\"package.json\")));\n * ```\n *\n * @example\n * ***Loading CommonJS or JSON config from ESM:***\n * ```ts\n * const createRequire = await getCreateRequire();\n *\n * const require = createRequire(process.cwd() + \"/\");\n *\n * const config = require(\"./my.config.cjs\");\n * const pkg = require(\"./package.json\");\n * ```\n *\n * @example\n * ***CommonJS (Node.js – compatibility usage):***\n *\n * In pure CommonJS environments this helper is usually unnecessary.\n * This example demonstrates interoperability with the same runtime-safe API.\n *\n * ```js\n * (async () => {\n * const { getCreateRequire } = await import(\"./getCreateRequire.js\");\n *\n * const createRequire = await getCreateRequire();\n * const requireFromHere = createRequire(__filename);\n *\n * const pkg = requireFromHere(\"some-cjs-only-package\");\n * console.log(pkg);\n * })();\n * ```\n *\n * @example\n * ***UMD / IIFE (Node execution):***\n * ```js\n * const createRequire = await getCreateRequire();\n *\n * const requireFromHere =\n * typeof __filename !== \"undefined\"\n * ? createRequire(__filename)\n * : createRequire(import.meta.url);\n *\n * const pkg = requireFromHere(\"some-cjs-only-package\");\n * ```\n */\nexport async function getCreateRequire(): Promise<\n typeof import(\"node:module\").createRequire\n> {\n const r = getRuntimeRequire();\n if (r) {\n return __runtimeRequire(\"node:module\").createRequire;\n }\n\n // ESM-safe fallback (unrun / tsdown / bundlers)\n const mod = await import(\"node:module\");\n return mod.createRequire;\n}\n","import type { Colors } from \"picocolors/types\";\nimport pcr from \"picocolors\";\n\nimport {\n isArray,\n isBoolean,\n isMap,\n isNil,\n isNonEmptyString,\n isNumber,\n isObject,\n isPlainObject,\n isRegExp,\n isSet,\n isString\n} from \"@/_internal/utils/helper\";\nimport { __runtimeRequire, hasGlobalRequire } from \"./node-require\";\n\ntype Picocolors = Colors & {\n createColors: (enabled?: boolean) => Colors;\n};\n\n/** ----------------------------------------------------------------\n * * ***Re-export of the `picocolors` default export.***\n * ----------------------------------------------------------------\n * This utility provides a lightweight and dependency-free\n * terminal color formatting helper, identical to the\n * original `picocolors` package export.\n *\n * - **It is re-exported to:**\n * - Provide a stable internal import path.\n * - Avoid direct dependency imports in consumers.\n * - Ensure consistent color handling across the codebase.\n *\n * @see {@link https://github.com/alexeyraspopov/picocolors | **`picocolors repository`**.}\n */\nexport const picocolors: Picocolors = pcr;\n\n/** ----------------------------------------------------------------\n * * ***Normalized newline character.***\n * ----------------------------------------------------------------\n *\n * Represents a single line feed character (`\\n`), used as a\n * **consistent newline** across all platforms.\n *\n * This value is intentionally **not platform-specific** and does\n * not vary between operating systems (e.g. Windows CRLF vs POSIX LF).\n * It is suitable for generated files, formatters, and build tools\n * where deterministic output is required.\n *\n * The value is base64-encoded to avoid embedding a literal newline\n * in the bundled output during minification.\n *\n * @type {string}\n */\nexport const NEWLINE: string = atob(\"Cg==\");\n\n/** ----------------------------------------------------------------\n * * ***Platform-specific end-of-line character.***\n * ----------------------------------------------------------------\n *\n * Resolves to the operating system's default end-of-line sequence:\n * - `\\n` on POSIX systems (Linux, macOS)\n * - `\\r\\n` on Windows\n *\n * Used to ensure generated multiline strings are compatible\n * with the host environment.\n *\n * In non-Node environments, this value falls back to `\\n`.\n * The fallback is encoded to avoid embedding a literal newline\n * in the bundled output during minification.\n *\n * @type {string}\n */\nexport const EOL: string = hasGlobalRequire(globalThis)\n ? __runtimeRequire(\"node:os\").EOL\n : NEWLINE;\n\n/** -------------------------------------------------------\n * * ***Utility Function: `plural`.***\n * -------------------------------------------------------\n * **Returns the correct singular or plural form of a word\n * based on a numeric count.**\n *\n * This helper is commonly used when generating human-readable\n * CLI messages where a word must change depending on quantity.\n *\n * By default, the function pluralizes a word by appending `\"s\"`\n * when the `count` is not equal to `1`.\n *\n * For irregular plural forms, a custom `pluralWord` may be\n * provided explicitly.\n *\n * ⚠️ This utility performs **simple English pluralization only**.\n * It does **not** automatically handle irregular plural forms\n * such as `person ➔ people` or `child ➔ children` unless the\n * plural form is provided manually.\n *\n * - **Behavior:**\n * - If `count === 1` ➔ returns the singular `word`.\n * - Otherwise ➔ returns `pluralWord` if provided,\n * or `${word}s` by default.\n *\n * @param count - The numeric count used to determine pluralization.\n * @param word - The singular form of the word.\n * @param pluralWord - Optional explicit plural form.\n *\n * @returns The appropriate singular or plural word form.\n *\n * @example\n * ```ts\n * plural(1, \"file\");\n * // ➔ \"file\"\n *\n * plural(3, \"file\");\n * // ➔ \"files\"\n * ```\n *\n * @example\n * ```ts\n * plural(1, \"person\", \"people\");\n * // ➔ \"person\"\n *\n * plural(5, \"person\", \"people\");\n * // ➔ \"people\"\n * ```\n *\n * @example\n * ```ts\n * const count = 2;\n * console.log(`${count} ${plural(count, \"file\")} copied`);\n * // ➔ \"2 files copied\"\n * ```\n */\nexport function plural(\n count: number,\n word: string,\n pluralWord?: string\n): string {\n if (count === 1) return word;\n return pluralWord ?? `${word}s`;\n}\n\n/** ----------------------------------------------------------------\n * * ***Conditionally pads a value with leading and/or trailing spaces.***\n * ----------------------------------------------------------------\n *\n * Formats a value by optionally prepending and/or appending a single\n * space character (`\" \"`), depending on the provided options.\n *\n * Only **valid non-empty strings** are padded.\n * A value is considered **invalid** when it is:\n * - not a string.\n * - an empty string (`\"\"`).\n * - a string containing only whitespace.\n *\n * When the value is invalid, this utility can optionally return\n * a single space instead of an empty string.\n *\n * @param {unknown} value - The value to be padded.\n * @param {{ start?: boolean; end?: boolean; padOnInvalid?: boolean; }} options - Padding behavior configuration.\n * @param options.start - Prepend a single space before the value.\n * @param options.end - Append a single space after the value.\n * @param options.padOnInvalid - Return a single space when the value\n * is not a valid non-empty string.\n *\n * @returns A formatted string with optional leading and/or trailing\n * spaces, or a single space / empty string when the input is invalid.\n *\n * @example\n * ```ts\n * padText(\"hello\");\n * // ➔ \" hello \"\n * ```\n *\n * @example\n * ```ts\n * padText(\"hello\", { start: true, end: false });\n * // ➔ \" hello\"\n * ```\n *\n * @example\n * ```ts\n * padText(\"\", { padOnInvalid: true });\n * // ➔ \" \"\n * ```\n *\n * @example\n * ```ts\n * padText(null, { padOnInvalid: false });\n * // ➔ \"\"\n * ```\n */\nexport function padText(\n value: unknown,\n options: {\n /**\n * Whether to prepend a single space to the output.\n *\n * @default true\n */\n start?: boolean;\n\n /**\n * Whether to append a single space to the output.\n *\n * @default true\n */\n end?: boolean;\n\n /**\n * Return a single space when the input is not a valid non-empty string.\n *\n * This applies to non-string values, empty strings,\n * or strings containing only whitespace.\n *\n * @default true\n */\n padOnInvalid?: boolean;\n } = {}\n): string {\n const { start = true, end = true, padOnInvalid = true } = options;\n if (!isNonEmptyString(value)) return padOnInvalid ? \" \" : \"\";\n return `${start ? \" \" : \"\"}${value}${end ? \" \" : \"\"}`;\n}\n\n/** ----------------------------------------------------------------\n * * ***Joins text segments into a compact space-separated string.***\n * ----------------------------------------------------------------\n *\n * Joins multiple values into a single string separated by a\n * **single space character** (`\" \"`).\n *\n * This utility removes all non-renderable values before joining,\n * producing a compact inline string without unintended spacing.\n *\n * - *Filtering behavior:*\n * - `false`, `null`, and `undefined` are removed.\n * - Empty strings (`\"\"`) are also removed.\n *\n * This makes the output suitable for inline text composition\n * where line breaks and extra spacing are not desired.\n *\n * - *Useful for:*\n * - Inline CLI messages.\n * - Error summaries.\n * - Concatenating optional labels or fragments.\n * - Single-line log output.\n *\n * @param {Array<string | false | null | undefined>} text - A list of\n * strings or falsy values to be joined. Empty strings are excluded\n * to prevent extra spaces in the output.\n *\n * @returns {string} A single string with values joined by a\n * single space character.\n *\n * @example\n * ```ts\n * joinInline(\"Hello\", false, \"\", \"world\");\n * // ➔ \"Hello world\"\n * ```\n *\n * @example\n * ```ts\n * joinInline(\n * \"Error:\",\n * undefined,\n * \"Invalid\",\n * null,\n * \"input\"\n * );\n * // ➔ \"Error: Invalid input\"\n * ```\n */\nexport function joinInline(\n ...text: Array<string | false | null | undefined>\n): string {\n return text.filter(Boolean).join(\" \");\n}\n\n/** ----------------------------------------------------------------\n * * ***Joins text lines into a compact newline-separated string.***\n * ----------------------------------------------------------------\n *\n * Joins multiple values into a single string separated by the\n * platform-specific end-of-line character ({@link EOL | **`EOL`**}).\n *\n * This utility removes all non-renderable values before joining,\n * ensuring a compact output with no unintended blank lines.\n *\n * - *Filtering behavior:*\n * - `false`, `null`, and `undefined` are removed.\n * - Empty strings (`\"\"`) are also removed.\n *\n * This makes the output dense and suitable for cases where\n * vertical spacing should not be preserved.\n *\n * - *Useful for:*\n * - CLI error messages.\n * - Compact help or status output.\n * - Multi-line logs without spacing gaps.\n *\n * @param {Array<string | false | null | undefined>} text - A list of\n * strings or falsy values to be joined. Empty strings are excluded\n * to prevent blank lines in the output.\n *\n * @returns {string} A single string joined using the OS-specific\n * end-of-line character.\n *\n * @example\n * ```ts\n * joinLines(\"Line 1\", false, \"\", \"Line 2\");\n * // ➔ \"Line 1\\nLine 2\"\n * ```\n *\n * @example\n * ```ts\n * joinLines(\n * \"Header\",\n * undefined,\n * \"\",\n * \"Body\",\n * null,\n * \"Footer\"\n * );\n * // ➔ \"Header\\nBody\\nFooter\"\n * ```\n */\nexport function joinLines(\n ...text: Array<string | false | null | undefined>\n): string {\n return text.filter(Boolean).join(EOL);\n}\n\n/** ----------------------------------------------------------------\n * * ***Joins text lines while preserving explicit empty lines.***\n * ----------------------------------------------------------------\n *\n * Joins multiple values into a single string separated by the\n * platform-specific end-of-line character ({@link EOL | **`EOL`**}).\n *\n * Unlike {@link joinLines | **`joinLines`**}, this variant **preserves empty strings**\n * (`\"\"`) to intentionally create blank lines in the output.\n *\n * - *Filtering behavior:*\n * - `false`, `null`, and `undefined` are removed.\n * - Empty strings (`\"\"`) are kept as-is.\n *\n * This allows precise control over vertical spacing when composing\n * formatted text.\n *\n * - *Useful for:*\n * - CLI help output with paragraph separation.\n * - Multi-section descriptions.\n * - Human-readable documentation formatting.\n *\n * @param {Array<string | false | null | undefined>} text - A list of\n * strings or falsy values to be joined. Empty strings are preserved\n * to produce blank lines in the output.\n *\n * @returns {string} A single string joined using the OS-specific\n * end-of-line character.\n *\n * @example\n * ```ts\n * joinLinesLoose(\n * \"Line one\",\n * \"Line two\",\n * \"\",\n * \"New paragraph\"\n * );\n * // ➔ \"Line one\\nLine two\\n\\nNew paragraph\"\n * ```\n *\n * @example\n * ```ts\n * joinLinesLoose(\n * \"Header\",\n * null,\n * \"\",\n * \"Body\",\n * false,\n * null,\n * undefined\n * );\n * // ➔ \"Header\\n\\nBody\"\n * ```\n */\nexport function joinLinesLoose(\n ...text: Array<string | false | null | undefined>\n): string {\n return text\n .filter((v): v is string => v !== false && v !== null && v !== undefined)\n .join(EOL);\n}\n\ntype FormatOptionValueOptions = {\n /** @default false */\n pretty?: boolean;\n /** @default 2 */\n indent?: number;\n /** @default false */\n sortKeys?: boolean;\n /** @default false */\n sortArray?: boolean;\n};\n\n/** ----------------------------------------------------------------\n * * Formats a value into a compact, colorized CLI representation.\n * ----------------------------------------------------------------\n *\n * Recursively converts an arbitrary value into a human-readable,\n * ANSI-colored string intended strictly for terminal output.\n *\n * This formatter is designed for developer-facing CLI diagnostics\n * and must NOT be used for logging, serialization, persistence,\n * or programmatic comparison.\n *\n * - *Behavior:*\n * - Arrays are rendered inline: `[a, b, c]`.\n * - `Set` values are converted to arrays before rendering.\n * - `Map` values are converted to plain objects via `Object.fromEntries`.\n * - Plain objects are rendered inline: `{ key: value }`.\n * - `RegExp` values are colorized by delimiter, source, and flags.\n * - Strings are wrapped in double quotes.\n * - Numbers (including `NaN`) and booleans are highlighted.\n * - `null` and `undefined` are red-bright color.\n * - Other objects fall back to `Object.prototype.toString`.\n *\n * - *Characteristics:*\n * - Recursive.\n * - Compact (single-line).\n * - No pretty-print indentation.\n * - No key or array sorting.\n * - No JSON serialization.\n * - No circular reference handling.\n *\n * @param value - The value to format for CLI display.\n *\n * @returns A colorized string optimized for terminal readability.\n *\n * @example\n * formatOptionValue([\"a\", \"b\"]);\n * // ➔ [ \"a\", \"b\" ]\n *\n * @example\n * formatOptionValue({ foo: 1, bar: true });\n * // ➔ { foo: 1, bar: true }\n *\n * @example\n * formatOptionValue(new Set([\"dist/**\"]));\n * // ➔ [ \"dist/**\" ]\n *\n * @example\n * formatOptionValue(/abc/i);\n * // ➔ /abc/i (colorized segments)\n */\nexport function formatOptionValue(\n value: unknown,\n options?: FormatOptionValueOptions\n): string {\n const {\n pretty = false,\n indent = 2,\n sortKeys = false,\n sortArray = false\n } = options ?? {};\n\n const indentUnit = \" \".repeat(indent);\n\n function formatRecursive(input: unknown, depth = 0): string {\n const currentIndent = indentUnit.repeat(depth);\n const nextIndent = indentUnit.repeat(depth + 1);\n const joinInline = picocolors.dim(\", \");\n const joinPretty = `,${EOL}`;\n\n /* ------------------------------------------------------------ */\n /* Set ➔ Array */\n /* ------------------------------------------------------------ */\n if (isSet(input)) {\n return formatRecursive([...input], depth);\n }\n\n /* ------------------------------------------------------------ */\n /* Map ➔ Plain Object */\n /* ------------------------------------------------------------ */\n if (isMap(input)) {\n return formatRecursive(Object.fromEntries(input), depth);\n }\n\n /* ------------------------------------------------------------ */\n /* Array */\n /* ------------------------------------------------------------ */\n if (isArray(input)) {\n const arr = sortArray ? [...input].sort() : input;\n\n if (arr.length === 0) return picocolors.gray(\"[]\");\n\n if (!pretty) {\n const items = arr\n .map((v) => formatRecursive(v, depth))\n .join(joinInline);\n return picocolors.gray(\"[\") + items + picocolors.gray(\"]\");\n }\n\n const items = arr\n .map((v) => nextIndent + formatRecursive(v, depth + 1))\n .join(joinPretty);\n\n return (\n picocolors.gray(`[${EOL}`) +\n items +\n EOL +\n currentIndent +\n picocolors.gray(\"]\")\n );\n }\n\n /* ------------------------------------------------------------ */\n /* Plain Object */\n /* ------------------------------------------------------------ */\n if (isPlainObject(input)) {\n let entries = Object.entries(input);\n\n if (sortKeys) {\n entries = entries.sort(([a], [b]) => a.localeCompare(b));\n }\n\n if (entries.length === 0) return picocolors.gray(\"{}\");\n\n if (!pretty) {\n const props = entries\n .map(([key, val]) => {\n return (\n picocolors.dim(key) +\n picocolors.gray(\": \") +\n formatRecursive(val, depth)\n );\n })\n .join(joinInline);\n\n return picocolors.gray(\"{ \") + props + picocolors.gray(\" }\");\n }\n\n const props = entries\n .map(([key, val]) => {\n return (\n nextIndent +\n picocolors.dim(key) +\n picocolors.gray(\": \") +\n formatRecursive(val, depth + 1)\n );\n })\n .join(joinPretty);\n\n return (\n picocolors.gray(`{${EOL}`) +\n props +\n EOL +\n currentIndent +\n picocolors.gray(\"}\")\n );\n }\n\n /* ------------------------------------------------------------ */\n /* RegExp */\n /* ------------------------------------------------------------ */\n if (isRegExp(input)) {\n return (\n picocolors.greenBright(\"/\") +\n picocolors.redBright(input.source) +\n picocolors.greenBright(\"/\") +\n picocolors.magentaBright(input.flags)\n );\n }\n\n /* ------------------------------------------------------------ */\n /* Primitive */\n /* ------------------------------------------------------------ */\n if (isString(input)) {\n return picocolors.gray(`\"${input}\"`);\n }\n\n if (isNumber(input, { includeNaN: true })) {\n return picocolors.redBright(String(input));\n }\n\n if (isBoolean(input)) {\n return picocolors.redBright(String(input));\n }\n\n if (isNil(input)) {\n return picocolors.redBright(String(input));\n }\n\n if (isObject(input)) {\n return picocolors.cyanBright(Object.prototype.toString.call(input));\n }\n\n return picocolors.cyanBright(String(input));\n }\n\n return formatRecursive(value);\n}\n","import { deepFreeze, isNonEmptyString } from \"@/_internal/utils/helper\";\n\n/** ----------------------------------------------------------------\n * * ***Structured metadata for {@link ConfigurationError | `ConfigurationError`}.***\n * ----------------------------------------------------------------\n *\n * Describes machine-readable contextual information attached to a\n * {@link ConfigurationError | `ConfigurationError`} instance.\n *\n * - ***This structure is designed to:***\n * - Provide debugging insight without parsing the error message.\n * - Support structured logging and telemetry pipelines.\n * - Remain extensible while preserving strong autocomplete support.\n *\n * ----------------------------------------------------------------\n * #### Common Fields:\n * ----------------------------------------------------------------\n *\n * - `received` — The actual value that failed validation.\n * - `context` — Logical origin of the validation\n * (e.g. function or factory name).\n *\n * Additional custom metadata may be attached as needed.\n *\n * ----------------------------------------------------------------\n * @remarks\n * - All properties are optional.\n * - This type intentionally allows arbitrary additional keys.\n * - Intended for machine-readable data (not human-facing text).\n */\nexport interface ConfigurationErrorDetails {\n /** * ***The actual received value that caused the validation failure.*** */\n readonly received?: unknown;\n\n /** * ***Logical origin of the validation (e.g. function name).*** */\n readonly context?: string;\n\n /** * ***Additional arbitrary metadata.*** */\n readonly [key: string]: unknown;\n}\n\n/** ----------------------------------------------------------------\n * * ***Represents a developer configuration error.***\n * ----------------------------------------------------------------\n *\n * Thrown when invalid, inconsistent, or malformed configuration\n * is detected during application or library initialization.\n *\n * This error indicates a **programmer mistake** in how a component,\n * module, or library has been configured. It should **not** be used\n * for runtime user input validation.\n *\n * ----------------------------------------------------------------\n * #### When to use?\n * ----------------------------------------------------------------\n *\n * Use `ConfigurationError` for configuration-related issues such as:\n *\n * - Invalid initialization or factory options.\n * - Incorrect constructor arguments.\n * - Broken integration or adapter contracts.\n * - Misconfigured environment or setup parameters.\n * - Violations of expected configuration schemas.\n *\n * Do **not** use this error type for runtime user input validation\n * (such as request payloads, form data, or command arguments).\n * Those scenarios should use domain-specific validation errors instead.\n *\n * ----------------------------------------------------------------\n * #### Behavior\n * ----------------------------------------------------------------\n *\n * - Extends the native {@link Error | `Error`}.\n * - Sets `.name` to `\"ConfigurationError\"`.\n * - Preserves the original stack trace.\n * - Supports contextual metadata via `details`.\n * - Exposes a stable `code` identifier for programmatic handling.\n *\n * ----------------------------------------------------------------\n * #### Handling\n * ----------------------------------------------------------------\n *\n * Consumers may safely narrow using `instanceof`\n * or {@link ConfigurationError.is | `ConfigurationError.is`}\n * to access structured metadata.\n *\n * @example\n * ```ts\n * try {\n * initializeSetup(options);\n * } catch (err) {\n * if (err instanceof ConfigurationError) {\n * console.error(err.message);\n * console.error(\"Code:\", err.code);\n * console.error(\"Details:\", err.details);\n * }\n * }\n * ```\n *\n * @example\n * ```ts\n * throw ConfigurationError.invalid(\n * \"options.timeout\",\n * \"must be a positive number\",\n * { received: value },\n * \"createComponent\"\n * );\n * ```\n *\n * @example\n * ```ts\n * throw ConfigurationError.type(\n * \"config.adapter\",\n * \"function\",\n * value\n * );\n * ```\n *\n * ----------------------------------------------------------------\n * @remarks\n * - Represents a **programmer-level configuration mistake**.\n * - Typically indicates a **non-recoverable initialization failure**.\n * - Intended for validating configuration in libraries or frameworks.\n */\nexport class ConfigurationError extends Error {\n /** ----------------------------------------------------------------\n * * ***Stable base label for configuration error messages.***\n * ----------------------------------------------------------------\n *\n * Used as the standardized prefix when composing error messages.\n * Extracted to avoid string duplication and enable future\n * refactoring or localization.\n *\n * @private\n * @internal\n */\n private static readonly _LABEL = \"Invalid configuration\";\n\n /** ----------------------------------------------------------------\n * * ***Normalizes a reason fragment for error message composition.***\n * ----------------------------------------------------------------\n *\n * Ensures consistent formatting of message fragments used in\n * factory helpers such as {@link invalid | `ConfigurationError.invalid`}\n * and {@link type | `ConfigurationError.type`}.\n *\n * - Trims surrounding whitespace.\n * - Removes trailing period(s).\n * - Converts the first character to lowercase.\n *\n * This guarantees that reason fragments behave as natural\n * sentence continuations when appended after a field reference.\n *\n * @param reason - Raw reason fragment (may contain punctuation or capitalization).\n * @returns A normalized, lowercase, punctuation-free fragment.\n *\n * @private\n * @internal\n */\n private static _normalizeReason(reason: string): string {\n const trimmed = reason.trim().replace(/\\.*$/, \"\");\n\n if (trimmed.length === 0) {\n return trimmed;\n }\n\n return trimmed.charAt(0).toLowerCase() + trimmed.slice(1);\n }\n\n /** ----------------------------------------------------------------\n * * ***Composes a standardized configuration error message.***\n * ----------------------------------------------------------------\n *\n * Centralizes message construction logic for all factory helpers.\n *\n * - Applies context prefix when provided.\n * - Wraps field and context in inline-code formatting.\n * - Ensures the final message is normalized via {@link format | `format`}.\n *\n * This prevents duplication and guarantees consistent structure\n * across all configuration-related errors.\n *\n * @param field - Dot-notated configuration path.\n * @param body - Already-normalized message fragment.\n * @param context - Optional logical origin of the validation.\n *\n * @returns A fully formatted error message.\n *\n * @private\n * @internal\n */\n private static _compose(\n field: string,\n body: string,\n context?: string\n ): string {\n const prefix = context\n ? `${ConfigurationError._LABEL} in ${ConfigurationError.wrapCode(context)}:`\n : `${ConfigurationError._LABEL}:`;\n\n return ConfigurationError.format(\n `${prefix} ${ConfigurationError.wrapCode(field)} ${body}`\n );\n }\n\n /** ----------------------------------------------------------------\n * * ***Creates a new `ConfigurationError` instance.***\n * ----------------------------------------------------------------\n *\n * @param message - Fully formatted error message.\n * @param details - Optional structured metadata describing the error.\n *\n * @remarks\n * - The message is expected to be finalized (including punctuation).\n * - Restores the prototype chain for ES5 targets.\n * - Captures a clean stack trace in Node.js environments.\n */\n public constructor(\n message: string,\n details?: Readonly<ConfigurationErrorDetails>\n ) {\n super(message);\n\n this.name = ConfigurationError.NAME;\n this.code = ConfigurationError.CODE;\n\n // Deep-ish metadata immutability guard\n this.details = details ? deepFreeze({ ...details }) : undefined;\n\n // Fix prototype chain (important for TS + ES5 targets)\n Object.setPrototypeOf(this, new.target.prototype);\n\n // Capture clean stack (Node.js environments)\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, ConfigurationError);\n }\n\n // Freeze instance to prevent runtime mutation\n if (Object.getPrototypeOf(this) === ConfigurationError.prototype) {\n Object.freeze(this);\n }\n }\n\n /** ----------------------------------------------------------------\n * * ***Stable runtime name for this error type.***\n * ----------------------------------------------------------------\n *\n * - ***Mirrors the class identifier and is used to:***\n * - Set the `.name` property consistently.\n * - Provide cross-runtime identification.\n * - Avoid hardcoded string duplication.\n *\n * This value should remain stable across versions.\n */\n public static readonly NAME = \"ConfigurationError\" as const;\n\n /** ----------------------------------------------------------------\n * * ***Stable error identifier for `ConfigurationError`.***\n * ----------------------------------------------------------------\n *\n * Can be used for:\n * - Programmatic error discrimination.\n * - Cross-bundle or cross-runtime error detection.\n * - Structured logging and telemetry systems.\n *\n * This identifier is guaranteed to remain stable across versions.\n */\n public static readonly CODE = \"CONFIGURATION_ERROR\" as const;\n\n /** ----------------------------------------------------------------\n * * ***Stable error code associated with this instance.***\n * ----------------------------------------------------------------\n *\n * Mirrors {@link CODE | `ConfigurationError.CODE`}.\n *\n * Useful when `instanceof` checks are not reliable\n * across different runtime contexts.\n */\n public readonly code: \"CONFIGURATION_ERROR\" = ConfigurationError.CODE;\n\n /** ----------------------------------------------------------------\n * * ***Optional structured metadata associated with this error.***\n * ----------------------------------------------------------------\n *\n * Provides additional contextual information useful for:\n *\n * - Debugging.\n * - Structured logging.\n * - Programmatic error handling.\n *\n * The structure of this object is defined by\n * {@link ConfigurationErrorDetails| `ConfigurationErrorDetails`}.\n *\n * ----------------------------------------------------------------\n * #### Common Usage\n * ----------------------------------------------------------------\n *\n * @example\n * ```ts\n * try {\n * throw ConfigurationError.type(\n * \"options.myFunction\",\n * \"myFunction\",\n * value\n * );\n * } catch (err) {\n * if (err instanceof ConfigurationError) {\n * console.log(err.details?.received);\n * console.log(err.details?.context);\n * }\n * }\n * ```\n * ----------------------------------------------------------------\n * @remarks\n * - Intended for machine-readable data.\n * - Immutable (`readonly`) to prevent accidental mutation.\n * - May contain additional custom metadata fields.\n */\n public readonly details?: Readonly<ConfigurationErrorDetails>;\n\n /** ----------------------------------------------------------------\n * * ***Normalizes an error message to ensure a single trailing period.***\n * ----------------------------------------------------------------\n *\n * - Trims surrounding whitespace.\n * - Removes any existing trailing period(s).\n * - Appends exactly one `.` at the end.\n *\n * This guarantees consistent punctuation regardless of how\n * the message fragments are constructed.\n *\n * ----------------------------------------------------------------\n * @example\n * ```ts\n * ConfigurationError.format(\"Invalid value\")\n * // ➔ \"Invalid value.\"\n * ```\n *\n * @example\n * ```ts\n * ConfigurationError.format(\"Invalid value.\")\n * // ➔ \"Invalid value.\"\n * ```\n *\n * @example\n * ```ts\n * ConfigurationError.format(\" Invalid value... \")\n * // ➔ \"Invalid value.\"\n * ```\n * ----------------------------------------------------------------\n */\n static format(message: string): string {\n if (typeof message !== \"string\" || message.trim().length === 0) {\n throw new TypeError(\n `${this._LABEL}: ${ConfigurationError.NAME}.format(message) expects a non-empty string.`\n );\n }\n\n const trimmed = message.trim().replace(/\\.*$/, \"\");\n return trimmed + \".\";\n }\n\n /** ----------------------------------------------------------------\n * * ***Safely wraps a string in a single pair of backticks.***\n * ----------------------------------------------------------------\n *\n * Ensures consistent inline-code formatting while preventing\n * duplicated or nested backticks.\n *\n * - Removes any existing backticks from the input.\n * - Trims surrounding whitespace.\n * - Wraps the cleaned value in exactly one pair of backticks.\n *\n * This prevents malformed output such as:\n *\n * ```text\n * ``validateConfig``\n * ```\n *\n * ----------------------------------------------------------------\n * @param value - Raw string to be formatted as inline code.\n * @returns The sanitized value wrapped in a single pair of backticks.\n *\n * ----------------------------------------------------------------\n * @example\n * ```ts\n * ConfigurationError.wrapCode(\"fieldName\")\n * // ➔ \"`fieldName`\"\n * ```\n *\n * @example\n * ```ts\n * ConfigurationError.wrapCode(\"`fieldName`\")\n * // ➔ \"`fieldName`\"\n * ```\n *\n * @example\n * ```ts\n * ConfigurationError.wrapCode(\" ``fieldName`` \")\n * // ➔ \"`fieldName`\"\n * ```\n * ----------------------------------------------------------------\n */\n static wrapCode(value: string): string {\n if (!isNonEmptyString(value)) {\n throw new TypeError(\n `${this._LABEL}: ${ConfigurationError.NAME}.wrapCode(value) expects a non-empty string.`\n );\n }\n\n const cleaned = value.replace(/`+/g, \"\").trim();\n return `\\`${cleaned}\\``;\n }\n\n /** ----------------------------------------------------------------\n * * ***Type guard for `ConfigurationError`.***\n * ----------------------------------------------------------------\n *\n * Provides a robust alternative to `instanceof`,\n * especially across bundle boundaries or mixed module systems.\n *\n * @param value - Unknown value to test.\n * @returns `true` if the value is a {@link ConfigurationError | `ConfigurationError`}.\n *\n * @example\n * if (ConfigurationError.is(err)) {\n * console.error(err.code);\n * }\n */\n static is(value: unknown): value is ConfigurationError {\n if (typeof value !== \"object\" || value === null) {\n return false;\n }\n\n if (!(\"code\" in value) || !(\"name\" in value)) {\n return false;\n }\n\n const { code, name } = value as {\n code?: unknown;\n name?: unknown;\n };\n\n return code === ConfigurationError.CODE && name === ConfigurationError.NAME;\n }\n\n /** ----------------------------------------------------------------\n * * ***Serializes the error into a structured JSON representation.***\n * ----------------------------------------------------------------\n *\n * Provides a stable, machine-readable representation of the error,\n * suitable for:\n *\n * - Structured logging.\n * - Transport across process boundaries.\n * - Diagnostics.\n * - JSON.stringify().\n *\n * Unlike the native `Error` object, this method ensures that:\n *\n * - `name`, `message`, and `code` are always included.\n * - `details` is preserved (if provided).\n * - `stack` is included only when available.\n *\n * This guarantees predictable output when serializing errors.\n *\n * ----------------------------------------------------------------\n * @returns A plain JSON-safe object describing the error.\n *\n * ----------------------------------------------------------------\n * @example\n * ```ts\n * const err = ConfigurationError.invalid(\n * \"options.title\",\n * \"must be a non-empty string\",\n * { received: \"\" }\n * );\n *\n * console.log(JSON.stringify(err, null, 2));\n * ```\n *\n * Possible output:\n *\n * ```json\n * {\n * \"name\": \"ConfigurationError\",\n * \"message\": \"Invalid configuration: `options.title` must be a non-empty string.\",\n * \"code\": \"CONFIGURATION_ERROR\",\n * \"details\": { \"received\": \"\" },\n * \"stack\": \"ConfigurationError: ...\"\n * }\n * ```\n * ----------------------------------------------------------------\n */\n toJSON(): {\n /** ----------------------------------------------------------------\n * * ***Runtime identifier of the error instance.***\n * ----------------------------------------------------------------\n *\n * Mirrors {@link ConfigurationError.NAME | `ConfigurationError.NAME`}.\n *\n * - ***Intended for:***\n * - Programmatic error discrimination.\n * - Logging and diagnostic pipelines.\n * - Cross-runtime error identification.\n *\n * This property is useful when `instanceof` checks are unreliable\n * across module boundaries or bundled execution contexts.\n */\n name: string;\n\n /** ----------------------------------------------------------------\n * * ***Fully formatted error message.***\n * ----------------------------------------------------------------\n *\n * The message is guaranteed to be normalized by internal factory helpers.\n *\n * - ***Guarantees:***\n * - Consistent punctuation rules.\n * - Safe inline-code formatting.\n * - Stable human-readable output.\n *\n * The message is expected to represent a finalized diagnostic string\n * suitable for display, logging, or transport.\n */\n message: string;\n\n /** ----------------------------------------------------------------\n * * ***Stable machine-readable error code.***\n * ----------------------------------------------------------------\n *\n * Mirrors {@link ConfigurationError.CODE | `ConfigurationError.CODE`}.\n *\n * - ***Intended for:***\n * - Cross-runtime error identification.\n * - Structured logging systems.\n * - Type-safe error discrimination without relying on `instanceof`.\n *\n * This identifier is guaranteed to remain stable across versions.\n */\n code: typeof ConfigurationError.CODE;\n\n /** ----------------------------------------------------------------\n * * ***Optional structured debugging metadata attached to the error.***\n * ----------------------------------------------------------------\n *\n * #### Contains machine-readable contextual information such as:\n * - Validation input values that caused the error.\n * - Logical origin or execution context.\n * - Custom diagnostic extensions.\n *\n * #### This field is designed for:\n * - Developer debugging.\n * - Telemetry collection.\n * - Internal system analysis.\n *\n * The structure is defined by\n * {@link ConfigurationErrorDetails | `ConfigurationErrorDetails`}.\n */\n details?: Readonly<ConfigurationErrorDetails>;\n\n /** ----------------------------------------------------------------\n * * ***Optional stack trace captured at the error creation site.***\n * ----------------------------------------------------------------\n *\n * May be undefined in environments where stack capture is unavailable.\n *\n * Stack traces are preserved primarily for debugging and\n * post-mortem diagnostics.\n */\n stack?: string;\n } {\n return {\n name: this.name,\n message: this.message,\n code: this.code,\n details: this.details,\n stack: this.stack\n };\n }\n\n /** ----------------------------------------------------------------\n * * ***Factory helper for generic configuration validation errors.***\n * ----------------------------------------------------------------\n *\n * Produces a standardized error when a configuration field\n * fails validation.\n *\n * @param field - Dot-notated configuration path (e.g. `\"ui.usage\"`).\n * @param reason - Short descriptive phrase explaining the issue\n * (without trailing period).\n * @param details - Optional structured metadata for debugging.\n * @param context - Optional logical origin of the validation\n * (e.g. `\"validateConfig\"`), when provided,\n * it is included in {@link details | `details`}\n * under the `context` key and reflected in the error message.\n *\n * @returns A `ConfigurationError` instance with a normalized message.\n *\n * @example\n * ConfigurationError.invalid(\n * \"ui.usage\",\n * \"must be a non-empty string\",\n * { received: usage },\n * \"validateConfig\"\n * );\n *\n * // ➔ Invalid configuration in `validateConfig`:\n * // `ui.usage` must be a non-empty string.\n */\n static invalid(\n field: string,\n reason: string,\n details?: Record<string, unknown>,\n context?: string\n ): ConfigurationError {\n const body = ConfigurationError._normalizeReason(reason);\n\n return new ConfigurationError(\n ConfigurationError._compose(field, body, context),\n {\n ...details,\n ...(context ? { context } : {})\n }\n );\n }\n\n /** ----------------------------------------------------------------\n * * ***Factory helper for configuration type mismatch errors.***\n * ----------------------------------------------------------------\n *\n * Produces a standardized error when a configuration field\n * does not match the expected type or structural contract.\n *\n * @param field - Dot-notated configuration path.\n * @param expected - Short description of the expected type or shape\n * (without trailing period).\n * @param received - The actual received value.\n * @param context - Optional logical origin of the validation\n * (e.g. `\"myFunction\"`), when provided,\n * it is included in {@link details | `details`}\n * under the `context` key and reflected in the error message.\n *\n * @returns A `ConfigurationError` instance including the received value.\n *\n * @example\n * ConfigurationError.type(\n * \"options.myMainFunction\",\n * \"MyMainFunction\",\n * value,\n * \"myFunction\"\n * );\n *\n * // ➔ Invalid configuration in `myFunction`:\n * // `options.myMainFunction` must be MyMainFunction.\n */\n static type(\n field: string,\n expected: string,\n received: unknown,\n context?: string\n ): ConfigurationError {\n const body = `must be ${expected}`;\n\n return new ConfigurationError(\n ConfigurationError._compose(field, body, context),\n {\n received,\n ...(context ? { context } : {})\n }\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8PA,MAAa,oBAAoB,UAC/BA,wBAAS,MAAM,IAAIC,0BAAW,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;AA0B9C,MAAa,0BAAuD;AAClE,KAAI,CAAC,iBAAiB,WAAW,CAAE,QAAO;AAC1C,QAAO,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCpB,MAAa,qBAGP,MAAuB;CAC3B,MAAM,IAAI,mBAAmB;AAE7B,KAAI,EAAG,QAAO;AAEd,KAAI,OAAO,UAAU,YACnB,QAAO,IAAI,MAAM,GAAG,EAClB,IAAI,QAAQ,MAA6B;EACvC,MAAM,KAAK,mBAAmB;AAC9B,SAAO,KAAK,GAAG,QAAQ,OAAO;IAEjC,CAAC;AAGJ,QAAO;GACN,SAAyB,IAAY;CACtC,MAAM,IAAI,mBAAmB;AAC7B,KAAI,EAAG,QAAO,EAAE,KAAK,MAAM,GAAG;AAE9B,OAAM,IAAI,MACR,4BAA4B,GAAG,mEAChC;EACD;;;;;;;;;;;;;;;;;;ACvTF,MAAaC,eAAyBC;;;;;;;;;;;;;;;;;;AAmBtC,MAAa,UAAkB,KAAK,OAAO;;;;;;;;;;;;;;;;;;AAmB3C,MAAa,MAAc,iBAAiB,WAAW,GACnD,iBAAiB,UAAU,CAAC,MAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DJ,SAAgB,OACd,OACA,MACA,YAC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UAAU,UAAU,EAAE,UAAU,OACpC,QAAO;EAGT,MAAM,EAAE,MAAM,SAAS;AAKvB,SAAO,SAAS,mBAAmB,QAAQ,SAAS,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDzE,SA6EE;AACA,SAAO;GACL,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,KAAK;GACX,SAAS,KAAK;GACd,OAAO,KAAK;GACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCH,OAAO,QACL,OACA,QACA,SACA,SACoB;EACpB,MAAM,OAAO,mBAAmB,iBAAiB,OAAO;AAExD,SAAO,IAAI,mBACT,mBAAmB,SAAS,OAAO,MAAM,QAAQ,EACjD;GACE,GAAG;GACH,GAAI,UAAU,EAAE,SAAS,GAAG,EAAE;GAC/B,CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCH,OAAO,KACL,OACA,UACA,UACA,SACoB;EACpB,MAAM,OAAO,WAAW;AAExB,SAAO,IAAI,mBACT,mBAAmB,SAAS,OAAO,MAAM,QAAQ,EACjD;GACE;GACA,GAAI,UAAU,EAAE,SAAS,GAAG,EAAE;GAC/B,CACF"}
@@ -2,13 +2,13 @@
2
2
  * ========================================================================
3
3
  * @rzl-zone/build-tools
4
4
  * ------------------------------------------------------------------------
5
- * Version: `0.0.8`
5
+ * Version: `0.0.9`
6
6
  * Author: `Rizalvin Dwiky <rizalvindwiky1998@gmail.com>`
7
7
  * Repository: `https://github.com/rzl-zone/rzl-zone/tree/main/packages/build-tools`
8
8
  * ========================================================================
9
9
  */
10
10
 
11
- import { c as isNil, d as isNumber, f as isObject, g as isString, h as isSet, i as isBoolean, l as isNonEmptyString, m as isRegExp, o as isFunction, p as isPlainObject, r as isArray, s as isMap, t as deepFreeze } from "./helper-2m5t07Qe.js";
11
+ import { c as isNil, d as isNumber, f as isObject, g as isString, h as isSet, i as isBoolean, l as isNonEmptyString, m as isRegExp, o as isFunction, p as isPlainObject, r as isArray, s as isMap, t as deepFreeze } from "./helper-D11A-ZKL.js";
12
12
  import pcr from "picocolors";
13
13
  const hasGlobalRequire = (value) => isObject(value) && isFunction(value.require);
14
14
  const getRuntimeRequire = () => {
@@ -157,4 +157,4 @@ var ConfigurationError = class ConfigurationError extends Error {
157
157
  }
158
158
  };
159
159
  export { joinInline as a, padText as c, formatOptionValue as i, picocolors as l, EOL as n, joinLines as o, NEWLINE as r, joinLinesLoose as s, ConfigurationError as t, plural as u };
160
- //# sourceMappingURL=client-C0ZDdv36.js.map
160
+ //# sourceMappingURL=client-DUlrjus0.js.map